Compare commits
10 Commits
12d19c46de
...
96d7fe6b27
| Author | SHA1 | Date | |
|---|---|---|---|
| 96d7fe6b27 | |||
| 9db9febc39 | |||
| 59aac17968 | |||
| 2819804ad8 | |||
| 4276097212 | |||
| cd74cafeda | |||
| 398dcc462f | |||
| c3824ba827 | |||
| e1e3f409c9 | |||
| eafc867742 |
5
.gitignore
vendored
Executable file
5
.gitignore
vendored
Executable file
@ -0,0 +1,5 @@
|
||||
*.pdf
|
||||
*.log
|
||||
*.png
|
||||
.vscode/
|
||||
*.zip
|
||||
12
README.md
12
README.md
@ -1,9 +1,7 @@
|
||||
# SMS notifier - Twilio
|
||||
# SIIP - Procesador de Pagos en línea con Stripe, Oxxo y Transferencia, Sincronizador de CallBell y Envío de Notificaciones y comprobantes vía WhatsApp
|
||||
|
||||
Este plugin sincroniza los clientes del sitema UISP CRM con los contactos de WhatsApp en CallBell, además procesa pagos de Stripe como las trasferencias bancarias y genera referencias de pago vía OXXO, además envía comprobantes de pago en formato imagen PNG o texto vía Whatsapp a los clientes
|
||||
|
||||
* This plugin sends SMS notifications to clients.
|
||||
* SMS is triggered by an event which happened in UCRM, e.g. new invoice has been issued, or client's sevice became suspended.
|
||||
* It only sends SMS to clients having a phone number set in their contacts details.
|
||||
* [Twilio](https://www.twilio.com/) account is required to access its API.
|
||||
|
||||
## Configuration
|
||||
|
||||
@ -29,7 +27,7 @@ Note: there are two sets of credentials available, the default ("LIVE credential
|
||||
## Usage
|
||||
* In UCRM admin, go to System / Webhooks / Endpoints
|
||||
* Click Test Endpoint
|
||||
* Go to System / Plugins / SMS notifications via Twilio
|
||||
* Go to System / Plugins / SIIP - Procesador de Pagos en línea con Stripe, Oxxo y Transferencia, Sincronizador de CallBell y Envío de Notificaciones y comprobantes vía WhatsApp
|
||||
* In the log output, you'll see `Webhook test successful.`
|
||||
|
||||
## Variables replaced
|
||||
@ -206,7 +204,7 @@ Client variables are replaced always; payment invoice and service only with the
|
||||
* Replace the TwilioNotifierFacade and any references to it with a different class which extends AbstractMessageNotifierFacade
|
||||
* Update libraries in composer.json as needed
|
||||
* Communicate with the remote system in the sendMessage() function
|
||||
* Preferably also change the SmsNotifier namespace to some other (not strictly necessary).
|
||||
|
||||
|
||||
Read more about creating your own plugin in the [Developer documentation](https://github.com/Ubiquiti-App/UCRM-plugins/blob/master/docs/index.md).
|
||||
|
||||
|
||||
Binary file not shown.
Binary file not shown.
|
Before Width: | Height: | Size: 79 KiB After Width: | Height: | Size: 104 KiB |
BIN
comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas_El_may.pdf
Executable file
BIN
comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas_El_may.pdf
Executable file
Binary file not shown.
BIN
comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas_El_may.png
Executable file
BIN
comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas_El_may.png
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 78 KiB |
BIN
comprobantes/Comprobante_Don_Miguel_Ángel_Guerrero_González.pdf
Executable file
BIN
comprobantes/Comprobante_Don_Miguel_Ángel_Guerrero_González.pdf
Executable file
Binary file not shown.
BIN
comprobantes/Comprobante_Don_Miguel_Ángel_Guerrero_González.png
Executable file
BIN
comprobantes/Comprobante_Don_Miguel_Ángel_Guerrero_González.png
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 104 KiB |
BIN
comprobantes/Comprobante_Mofles_El_Ruco_Lopez.pdf
Executable file
BIN
comprobantes/Comprobante_Mofles_El_Ruco_Lopez.pdf
Executable file
Binary file not shown.
BIN
comprobantes/Comprobante_Mofles_El_Ruco_Lopez.png
Executable file
BIN
comprobantes/Comprobante_Mofles_El_Ruco_Lopez.png
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 78 KiB |
BIN
comprobantes/Comprobante_Águila_Calva_En_el_Nopal.pdf
Executable file
BIN
comprobantes/Comprobante_Águila_Calva_En_el_Nopal.pdf
Executable file
Binary file not shown.
BIN
comprobantes/Comprobante_Águila_Calva_En_el_Nopal.png
Executable file
BIN
comprobantes/Comprobante_Águila_Calva_En_el_Nopal.png
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 79 KiB |
18414
data/plugin.log
18414
data/plugin.log
File diff suppressed because one or more lines are too long
@ -3,9 +3,9 @@
|
||||
"information": {
|
||||
"name": "siip-whatsapp-notifications",
|
||||
"displayName": "SIIP - Procesador de Pagos en línea con Stripe, Oxxo y Transferencia, Sincronizador de CallBell y Envío de Notificaciones y comprobantes vía WhatsApp",
|
||||
"description": "Este plugin sincroniza los clientes del sitema UISP CRM con los contactos de WhatsApp en CallBell, además procesa pagos de Stripe como las trasferencias bancarias y genera referencias de pago vía OXXO, además envía comprobantes de pago en formato imagen PNG o texto vía Whatsapp a los clientes",
|
||||
"description": "Este plugin sincroniza los clientes del sistema UISP CRM con los contactos de WhatsApp en CallBell, además procesa pagos de Stripe como las trasferencias bancarias y genera referencias de pago vía OXXO, además envía comprobantes de pago en formato imagen PNG o texto vía Whatsapp a los clientes",
|
||||
"url": "https://siip.mx/",
|
||||
"version": "2.6.2",
|
||||
"version": "2.7.0",
|
||||
"unmsVersionCompliancy": {
|
||||
"min": "2.1.0",
|
||||
"max": null
|
||||
|
||||
@ -69,28 +69,56 @@ abstract class AbstractMessageNotifierFacade
|
||||
|
||||
//$this->logger->debug(print_r(json_encode($notificationData),true).PHP_EOL);
|
||||
|
||||
// Obtener los números de teléfono de los contactos
|
||||
$arrayPhones = $this->clientPhoneNumber->getUcrmClientNumbers($notificationData, null);
|
||||
|
||||
// Imprimir el array de teléfonos
|
||||
$this->logger->info(json_encode($arrayPhones));
|
||||
|
||||
// Procesar el array de teléfonos y ejecutar la función correspondiente
|
||||
foreach ($arrayPhones as $type => $phones) {
|
||||
|
||||
foreach ($arrayPhones as $type => $phone) {
|
||||
// Registrar el tipo de contacto antes de la normalización para verificar qué valor se recibe
|
||||
$this->logger->info("Procesando tipo de contacto original: '$type'");
|
||||
|
||||
switch ($type) {
|
||||
case 'WhatsApp':
|
||||
$this->notifyAndUpdate($notificationData, $phone); // Ejecuta función de Notificar y Actualizar
|
||||
break;
|
||||
case 'WhatsNotifica':
|
||||
$this->notify($notificationData, $phone); // Ejecuta función de Notificar
|
||||
break;
|
||||
case 'WhatsActualiza':
|
||||
$this->onlyUpdate($notificationData, $phone); // Ejecuta función de Actualizar
|
||||
break;
|
||||
default:
|
||||
$this->logger->info("Tipo de contacto no reconocido: $type" . PHP_EOL);
|
||||
break;
|
||||
// Normalizar el tipo para manejar posibles diferencias en las mayúsculas o espacios en blanco
|
||||
$type = trim(strtolower($type));
|
||||
|
||||
// Registrar el tipo de contacto después de la normalización
|
||||
$this->logger->info("Tipo de contacto normalizado: '$type'");
|
||||
|
||||
// Asegurarse de que $phones es un array y recorrerlo
|
||||
if (is_array($phones)) {
|
||||
foreach ($phones as $phone) {
|
||||
switch ($type) {
|
||||
case 'whatsapp':
|
||||
// Ejecutar función de notificación y actualización
|
||||
$this->notifyAndUpdate($notificationData, $phone);
|
||||
break;
|
||||
|
||||
case 'whatsnotifica':
|
||||
// Ejecutar función de notificación
|
||||
$this->notify($notificationData, $phone);
|
||||
break;
|
||||
|
||||
case 'whatsactualiza':
|
||||
// Ejecutar función de actualización
|
||||
$this->onlyUpdate($notificationData, $phone, false);
|
||||
break;
|
||||
|
||||
default:
|
||||
// Registrar cuando el tipo no es reconocido
|
||||
$this->logger->info("Tipo de contacto no reconocido: '$type'" . PHP_EOL);
|
||||
break;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
$this->logger->info("Formato no esperado para los números de teléfono en el tipo: $type" . PHP_EOL);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
@ -103,20 +131,42 @@ abstract class AbstractMessageNotifierFacade
|
||||
$this->logger->debug(print_r(json_encode($notificationData), true) . PHP_EOL);
|
||||
|
||||
$arrayPhones = $this->clientPhoneNumber->getUcrmClientNumbers($notificationData, null);
|
||||
|
||||
|
||||
// Procesar el array de teléfonos y ejecutar la función correspondiente
|
||||
foreach ($arrayPhones as $type => $phones) {
|
||||
|
||||
foreach ($arrayPhones as $type => $phone) {
|
||||
// Registrar el tipo de contacto antes de la normalización para verificar qué valor se recibe
|
||||
$this->logger->info("Procesando tipo de contacto original: '$type'");
|
||||
|
||||
switch ($type) {
|
||||
case 'WhatsApp':
|
||||
$this->onlyUpdate($notificationData, $phone); // Ejecuta función de Notificar y Actualizar
|
||||
break;
|
||||
case 'WhatsActualiza':
|
||||
$this->onlyUpdate($notificationData, $phone); // Ejecuta función de Actualizar
|
||||
break;
|
||||
default:
|
||||
$this->logger->info("Tipo de contacto no reconocido: $type" . PHP_EOL);
|
||||
break;
|
||||
// Normalizar el tipo para manejar posibles diferencias en las mayúsculas o espacios en blanco
|
||||
$type = trim(strtolower($type));
|
||||
|
||||
// Registrar el tipo de contacto después de la normalización
|
||||
$this->logger->info("Tipo de contacto normalizado: '$type'");
|
||||
|
||||
// Asegurarse de que $phones es un array y recorrerlo
|
||||
if (is_array($phones)) {
|
||||
foreach ($phones as $phone) {
|
||||
switch ($type) {
|
||||
case 'whatsapp':
|
||||
// Ejecutar función de notificación y actualización
|
||||
$this->onlyUpdate($notificationData, $phone);
|
||||
break;
|
||||
|
||||
case 'whatsactualiza':
|
||||
// Ejecutar función de actualización
|
||||
$this->onlyUpdate($notificationData, $phone);
|
||||
break;
|
||||
|
||||
default:
|
||||
// Registrar cuando el tipo no es reconocido
|
||||
$this->logger->info("Tipo de contacto no reconocido: '$type'" . PHP_EOL);
|
||||
break;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
$this->logger->info("Formato no esperado para los números de teléfono en el tipo: $type" . PHP_EOL);
|
||||
}
|
||||
}
|
||||
|
||||
@ -131,20 +181,42 @@ abstract class AbstractMessageNotifierFacade
|
||||
//$this->logger->debug(print_r(json_encode($notificationData),true).PHP_EOL);
|
||||
|
||||
$arrayPhones = $this->clientPhoneNumber->getUcrmClientNumbers($notificationData, null);
|
||||
|
||||
|
||||
// Procesar el array de teléfonos y ejecutar la función correspondiente
|
||||
foreach ($arrayPhones as $type => $phones) {
|
||||
|
||||
foreach ($arrayPhones as $type => $phone) {
|
||||
// Registrar el tipo de contacto antes de la normalización para verificar qué valor se recibe
|
||||
$this->logger->info("Procesando tipo de contacto original: '$type'");
|
||||
|
||||
switch ($type) {
|
||||
case 'WhatsApp':
|
||||
$this->onlyUpdateService($notificationData, $phone); // Ejecuta función de Notificar y Actualizar
|
||||
break;
|
||||
case 'WhatsActualiza':
|
||||
$this->onlyUpdateService($notificationData, $phone); // Ejecuta función de Actualizar
|
||||
break;
|
||||
default:
|
||||
$this->logger->info("Tipo de contacto no reconocido: $type" . PHP_EOL);
|
||||
break;
|
||||
// Normalizar el tipo para manejar posibles diferencias en las mayúsculas o espacios en blanco
|
||||
$type = trim(strtolower($type));
|
||||
|
||||
// Registrar el tipo de contacto después de la normalización
|
||||
$this->logger->info("Tipo de contacto normalizado: '$type'");
|
||||
|
||||
// Asegurarse de que $phones es un array y recorrerlo
|
||||
if (is_array($phones)) {
|
||||
foreach ($phones as $phone) {
|
||||
switch ($type) {
|
||||
case 'whatsapp':
|
||||
// Ejecutar función de notificación y actualización
|
||||
$this->onlyUpdateService($notificationData, $phone);
|
||||
break;
|
||||
|
||||
case 'whatsactualiza':
|
||||
// Ejecutar función de actualización
|
||||
$this->onlyUpdateService($notificationData, $phone);
|
||||
break;
|
||||
|
||||
default:
|
||||
// Registrar cuando el tipo no es reconocido
|
||||
$this->logger->info("Tipo de contacto no reconocido: '$type'" . PHP_EOL);
|
||||
break;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
$this->logger->info("Formato no esperado para los números de teléfono en el tipo: $type" . PHP_EOL);
|
||||
}
|
||||
}
|
||||
|
||||
@ -226,7 +298,7 @@ abstract class AbstractMessageNotifierFacade
|
||||
break;
|
||||
}
|
||||
}
|
||||
$this->logger->debug('tipo de dato de installerWhatsApp: ' . gettype($installerWhatsApp) . PHP_EOL);
|
||||
//$this->logger->debug('tipo de dato de installerWhatsApp: ' . gettype($installerWhatsApp) . PHP_EOL);
|
||||
|
||||
// Validar si se encontró el WhatsApp
|
||||
if (empty($installerWhatsApp)) {
|
||||
@ -237,7 +309,8 @@ abstract class AbstractMessageNotifierFacade
|
||||
|
||||
$this->ucrmApi = UcrmApi::create();
|
||||
$usersInstallers = $this->ucrmApi->get('users/admins/' . $installerId, []);
|
||||
$this->logger->debug('Valor de $usersInstallers ' . json_encode($usersInstallers) . PHP_EOL);
|
||||
//$this->logger->debug('Valor de $usersInstallers ' . json_encode($usersInstallers) . PHP_EOL);
|
||||
|
||||
$firstName = $usersInstallers['firstName'] ?? '';
|
||||
$lastName = $usersInstallers['lastName'] ?? '';
|
||||
$installerFullName = trim("$firstName $lastName");
|
||||
@ -336,37 +409,48 @@ abstract class AbstractMessageNotifierFacade
|
||||
|
||||
|
||||
// Procesar el array de teléfonos y ejecutar la función correspondiente
|
||||
foreach ($arrayPhones as $type => $phone) {
|
||||
foreach ($arrayPhones as $type => $phones) {
|
||||
|
||||
// Normalizar el tipo para manejar posibles diferencias en las mayúsculas o espacios en blanco
|
||||
$type = trim(strtolower($type));
|
||||
|
||||
switch ($type) {
|
||||
case 'WhatsApp':
|
||||
case 'WhatsNotifica':
|
||||
case 'whatsapp':
|
||||
case 'whatsnotifica':
|
||||
$this->logger->debug("Se encontró un tipo de contacto $type" . PHP_EOL);
|
||||
|
||||
$attempts = 0;
|
||||
$maxAttempts = 3;
|
||||
$result = false;
|
||||
// Verificar si el valor es un array de teléfonos
|
||||
if (is_array($phones)) {
|
||||
foreach ($phones as $phone) {
|
||||
$attempts = 0;
|
||||
$maxAttempts = 3;
|
||||
$result = false;
|
||||
|
||||
// Reintentar hasta 3 veces si la función retorna false
|
||||
while ($attempts < $maxAttempts && $result === false) {
|
||||
$attempts++;
|
||||
$result = $client_callbell_api->sendJobNotificationWhatsAppToClient(
|
||||
$this->validarNumeroTelefono($phone),
|
||||
$jsonClientJobNotificationData,
|
||||
$reprogramming,
|
||||
$changeInstaller
|
||||
);
|
||||
// Reintentar hasta 3 veces si la función retorna false
|
||||
while ($attempts < $maxAttempts && $result === false) {
|
||||
$attempts++;
|
||||
$result = $client_callbell_api->sendJobNotificationWhatsAppToClient(
|
||||
$this->validarNumeroTelefono($phone), // Validar número de teléfono
|
||||
$jsonClientJobNotificationData, // Datos de notificación
|
||||
$reprogramming, // Reprogramación
|
||||
$changeInstaller // Cambio de instalador
|
||||
);
|
||||
|
||||
if ($result === false) {
|
||||
sleep(1);
|
||||
$this->logger->warning("Intento $attempts fallido para enviar notificación a $phone. Reintentando..." . PHP_EOL);
|
||||
if ($result === false) {
|
||||
sleep(1); // Esperar 1 segundo antes de reintentar
|
||||
$this->logger->warning("Intento $attempts fallido para enviar notificación a $phone. Reintentando..." . PHP_EOL);
|
||||
}
|
||||
}
|
||||
|
||||
// Verificar el resultado final
|
||||
if ($result === true) {
|
||||
$this->logger->info("Notificación enviada correctamente al contacto $phone después de $attempts intento(s)." . PHP_EOL);
|
||||
} else {
|
||||
$this->logger->error("No se pudo enviar la notificación al contacto $phone después de $maxAttempts intentos." . PHP_EOL);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Verificar el resultado final
|
||||
if ($result === true) {
|
||||
$this->logger->info("Notificación enviada correctamente al contacto $phone después de $attempts intento(s)." . PHP_EOL);
|
||||
} else {
|
||||
$this->logger->error("No se pudo enviar la notificación al contacto $phone después de $maxAttempts intentos." . PHP_EOL);
|
||||
$this->logger->warning("No se encontraron números de teléfono para el tipo de contacto $type." . PHP_EOL);
|
||||
}
|
||||
|
||||
break;
|
||||
@ -383,6 +467,7 @@ abstract class AbstractMessageNotifierFacade
|
||||
|
||||
|
||||
|
||||
|
||||
//$installerWhatsApp = $this->validarNumeroTelefono((string)$installerWhatsApp); //Obtiene el número de celular del cliente que sea del tipo de contacto "WhatsApp"
|
||||
$this->logger->debug('Valor de $installerWhatsApp en verifyJobActionToDo: ' . $installerWhatsApp . PHP_EOL);
|
||||
|
||||
@ -529,27 +614,49 @@ abstract class AbstractMessageNotifierFacade
|
||||
public function verifyInvoiceActionToDo(NotificationData $notificationData): void
|
||||
{
|
||||
|
||||
$accountBalance = $notificationData->clientData['accountBalance'];
|
||||
$this->logger->debug(print_r(json_encode($notificationData), true) . PHP_EOL);
|
||||
|
||||
$arrayPhones = $this->clientPhoneNumber->getUcrmClientNumbers($notificationData, null);
|
||||
|
||||
|
||||
|
||||
// Procesar el array de teléfonos y ejecutar la función correspondiente
|
||||
foreach ($arrayPhones as $type => $phones) {
|
||||
|
||||
foreach ($arrayPhones as $type => $phone) {
|
||||
// Registrar el tipo de contacto antes de la normalización para verificar qué valor se recibe
|
||||
$this->logger->info("Procesando tipo de contacto original: '$type'");
|
||||
|
||||
switch ($type) {
|
||||
case 'WhatsApp':
|
||||
$this->onlyUpdate($notificationData, $phone); // Ejecuta función de Notificar y Actualizar
|
||||
break;
|
||||
case 'WhatsActualiza':
|
||||
$this->onlyUpdate($notificationData, $phone); // Ejecuta función de Actualizar
|
||||
break;
|
||||
default:
|
||||
$this->logger->info("Tipo de contacto no reconocido: $type" . PHP_EOL);
|
||||
break;
|
||||
// Normalizar el tipo para manejar posibles diferencias en las mayúsculas o espacios en blanco
|
||||
$type = trim(strtolower($type));
|
||||
|
||||
// Registrar el tipo de contacto después de la normalización
|
||||
$this->logger->info("Tipo de contacto normalizado: '$type'");
|
||||
|
||||
// Asegurarse de que $phones es un array y recorrerlo
|
||||
if (is_array($phones)) {
|
||||
foreach ($phones as $phone) {
|
||||
switch ($type) {
|
||||
case 'whatsapp':
|
||||
// Ejec vb bbnbbnbvnutar función de notificación y actualización
|
||||
$this->onlyUpdate($notificationData, $phone, false);
|
||||
break;
|
||||
|
||||
case 'whatsactualiza':
|
||||
// Ejecutar función de actualización
|
||||
$this->onlyUpdate($notificationData, $phone, false);
|
||||
break;
|
||||
|
||||
default:
|
||||
// Registrar cuando el tipo no es reconocido
|
||||
$this->logger->info("Tipo de contacto no reconocido: '$type'" . PHP_EOL);
|
||||
break;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
$this->logger->info("Formato no esperado para los números de teléfono en el tipo: $type" . PHP_EOL);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
@ -789,7 +896,7 @@ abstract class AbstractMessageNotifierFacade
|
||||
/*
|
||||
* Update the client's data at CallBell
|
||||
*/
|
||||
public function onlyUpdate(NotificationData $notificationData, $phoneToUpdate = null): void
|
||||
public function onlyUpdate(NotificationData $notificationData, $phoneToUpdate = null, $updateEmail=false): void
|
||||
{
|
||||
//$this->logger->info("Se enviará una actualización a Callbell " . PHP_EOL);
|
||||
|
||||
@ -825,29 +932,32 @@ abstract class AbstractMessageNotifierFacade
|
||||
|
||||
}
|
||||
|
||||
$contacts = $notificationData->clientData['contacts'] ?? []; //Obtener los contactos que tiene el cliente
|
||||
if ($updateEmail) {
|
||||
$contacts = $notificationData->clientData['contacts'] ?? []; //Obtener los contactos que tiene el cliente para buscar el email
|
||||
|
||||
foreach ($contacts as $contact) {
|
||||
foreach ($contacts as $contact) {
|
||||
|
||||
$types = $contact['types'] ?? []; //Obtener los tipos de contactos del cliente
|
||||
foreach ($types as $type) {
|
||||
$types = $contact['types'] ?? []; //Obtener los tipos de contactos del cliente
|
||||
foreach ($types as $type) {
|
||||
|
||||
if ($type['name'] == 'WhatsApp') { //Si el tipo de contacto es Whatsapp
|
||||
if ($type['name'] == 'WhatsApp') { //Si el tipo de contacto es Whatsapp
|
||||
|
||||
$client_email = $contact['email']; //Asignar el correo del cliente a la variable
|
||||
break;
|
||||
$client_email = $contact['email']; //Asignar el correo del cliente a la variable
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
$this->logger->info("Se procesaron los contactos para revisar el o los email" . PHP_EOL);
|
||||
|
||||
$stripe = new \Stripe\StripeClient($StripeToken); //Instancia de la clase manejadora de clientes para la API de Stripe
|
||||
|
||||
if ($client_email !== null && $customerStripeID !== null) {
|
||||
$this->logger->info("Se actualizara el correo del cliente en Stripe: " . $client_email . PHP_EOL);
|
||||
$stripe->customers->update($customerStripeID, ['email' => $client_email]); //Actualiza el correo electrónico del cliente en la plataforma de Stripe en su correspondiente "customer Stripe ID"
|
||||
}
|
||||
}
|
||||
$this->logger->info("Se proceso los contactos " . PHP_EOL);
|
||||
|
||||
$stripe = new \Stripe\StripeClient($StripeToken); //Instancia de la clase manejadora de clientes para la API de Stripe
|
||||
|
||||
if ($client_email !== null && $customerStripeID !== null) {
|
||||
$this->logger->info("Se actualizara el correo del cliente en Stripe: " . $client_email . PHP_EOL);
|
||||
$stripe->customers->update($customerStripeID, ['email' => $client_email]); //Actualiza el correo electrónico del cliente en la plataforma de Stripe en su correspondiente "customer Stripe ID"
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@ -53,25 +53,34 @@ abstract class AbstractOxxoOperationsFacade
|
||||
|
||||
/*
|
||||
* Creates a PaymentIntent for OXXO in Stripe for a Customer
|
||||
* @param array $event_json
|
||||
* @param int|null $amount
|
||||
* @return array
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
* @throws \Stripe\Exception\ApiErrorException
|
||||
* @throws Exception
|
||||
*/
|
||||
public function createOxxoPaymentIntent($event_json, $amount = null): string
|
||||
public function createOxxoPaymentIntent($event_json, $amount = null): array
|
||||
{
|
||||
//declarar un array asociativo de strings pero no asignarle nada aun
|
||||
$arrayOxxoPayment = array();
|
||||
$integerAmount = $amount;
|
||||
|
||||
$this->logger->info("Creando referencia del cliente para OXXO: " . PHP_EOL);
|
||||
$configManager = \Ubnt\UcrmPluginSdk\Service\PluginConfigManager::create();
|
||||
$config = $configManager->loadConfig();
|
||||
$StripeToken = $config['tokenstripe'];
|
||||
$IPServer = $config['ipserver'];
|
||||
$tokenCRM = $config['apitoken'];
|
||||
|
||||
|
||||
$baseUri = 'https://' . $IPServer . '/crm/api/v1.0/';
|
||||
$stripe = new \Stripe\StripeClient($StripeToken);
|
||||
$this->ucrmApi = UcrmApi::create();
|
||||
$currentUserAdmin = $this->ucrmApi->get('users/admins', []);
|
||||
$clientID = $event_json['client_id'];
|
||||
|
||||
|
||||
$stripeCustomerId = null;
|
||||
$clientEmail = '';
|
||||
|
||||
|
||||
$clientGuzzleHttp = new Client([
|
||||
'base_uri' => $baseUri,
|
||||
'headers' => [
|
||||
@ -79,106 +88,259 @@ abstract class AbstractOxxoOperationsFacade
|
||||
'Accept' => 'application/json',
|
||||
],
|
||||
'verify' => false,
|
||||
'timeout' => 5, // Timeout de 5 segundos
|
||||
]);
|
||||
|
||||
$response = $clientGuzzleHttp->request('GET', "clients/" . $clientID);
|
||||
$arrayClientCRM = json_decode($response->getBody()->getContents(), true);
|
||||
|
||||
// Obtener stripeCustomerId
|
||||
foreach ($arrayClientCRM['attributes'] as $attribute) {
|
||||
if ($attribute['key'] === 'stripeCustomerId') {
|
||||
$stripeCustomerId = $attribute['value'];
|
||||
break;
|
||||
|
||||
try {
|
||||
$response = $clientGuzzleHttp->request('GET', "clients/" . $clientID);
|
||||
$arrayClientCRM = json_decode($response->getBody()->getContents(), true);
|
||||
//$this->logger->info("Valor de arrayClientCRM: " . print_r($arrayClientCRM, true) . PHP_EOL);
|
||||
$clientFullName = $arrayClientCRM['firstName'] . ' ' . $arrayClientCRM['lastName'];
|
||||
} catch (RequestException $e) {
|
||||
if ($e->getCode() === 404) {
|
||||
$this->logger->error("Cliente no encontrado en CRM: " . $clientID . PHP_EOL);
|
||||
//devolver un array con los campos del codigo error, descripción de la falla, clientID, clientFullName y amount
|
||||
$arrayOxxoPayment['oxxo_reference'] = '';
|
||||
$arrayOxxoPayment['url'] = '';
|
||||
$arrayOxxoPayment['error'] = 'errorGetClientNotFound';
|
||||
$arrayOxxoPayment['failDescription'] = 'Cliente no encontrado en CRM: ' . $clientID;
|
||||
$arrayOxxoPayment['clientID'] = $clientID;
|
||||
$arrayOxxoPayment['clientFullName'] = $clientFullName;
|
||||
$arrayOxxoPayment['amount'] = $integerAmount;
|
||||
return $arrayOxxoPayment;
|
||||
|
||||
|
||||
}
|
||||
//timeout
|
||||
if ($e->getCode() === 408) {
|
||||
$this->logger->error("Timeout al obtener el cliente en CRM: " . $clientID . PHP_EOL);
|
||||
//devolver un array con los campos del codigo error, descripción de la falla, clientID y amount
|
||||
$arrayOxxoPayment['oxxo_reference'] = '';
|
||||
$arrayOxxoPayment['error'] = 'errorTimeoutGetClient';
|
||||
$arrayOxxoPayment['failDescription'] = 'Timeout al obtener el cliente en CRM: ' . $clientID;
|
||||
$arrayOxxoPayment['clientID'] = $clientID;
|
||||
$arrayOxxoPayment['clientFullName'] = $clientFullName;
|
||||
$arrayOxxoPayment['amount'] = $integerAmount;
|
||||
return $arrayOxxoPayment;
|
||||
}
|
||||
$this->logger->error("Error al obtener el cliente en CRM (Error {$e->getCode()}): " . $e->getMessage() . PHP_EOL);
|
||||
//devolver un array con los campos del codigo error, descripción de la falla, clientID y amount
|
||||
$arrayOxxoPayment['oxxo_reference'] = '';
|
||||
$arrayOxxoPayment['error'] = 'errorGetClient';
|
||||
$arrayOxxoPayment['failDescription'] = 'Error al obtener el cliente en CRM: ' . $clientID;
|
||||
$arrayOxxoPayment['clientID'] = $clientID;
|
||||
$arrayOxxoPayment['clientFullName'] = $clientFullName;
|
||||
$arrayOxxoPayment['amount'] = $integerAmount;
|
||||
return $arrayOxxoPayment;
|
||||
|
||||
}
|
||||
|
||||
|
||||
// Obtener email del cliente
|
||||
foreach ($arrayClientCRM['contacts'] as $contact) {
|
||||
if (!empty($contact['email'])) {
|
||||
$clientEmail = $contact['email'];
|
||||
break;
|
||||
} else {
|
||||
$clientEmail = 'siip8873@gmail.com';
|
||||
$clientEmail = 'siip8873@gmail.com'; // Default
|
||||
}
|
||||
}
|
||||
|
||||
// Verificar si $amount es null para determinar si es necesario consultar la API
|
||||
if ($amount === null) {
|
||||
try {
|
||||
|
||||
|
||||
// Obtener el monto pendiente del cliente en centavos
|
||||
$amount = abs($arrayClientCRM['accountOutstanding']) * 100;
|
||||
|
||||
$this->logger->info("Se obtuvieron los datos del cliente y Stripe Customer ID: " . $stripeCustomerId . PHP_EOL);
|
||||
} catch (RequestException $e) {
|
||||
$this->logger->error("Error al obtener atributos personalizados del cliente: " . $e->getMessage() . PHP_EOL);
|
||||
return 'errorGetClientAttributes';
|
||||
|
||||
try {
|
||||
// Obtener stripeCustomerId
|
||||
foreach ($arrayClientCRM['attributes'] as $attribute) {
|
||||
if ($attribute['key'] === 'stripeCustomerId') {
|
||||
$stripeCustomerId = $attribute['value'];
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
$this->logger->info("Stripe Customer ID obtenido: " . $stripeCustomerId . PHP_EOL);
|
||||
} catch (Exception $e) {
|
||||
$this->logger->error("Error al obtener el Customer ID de Stripe (Error {$e->getCode()}): " . $e->getMessage() . PHP_EOL);
|
||||
//devolver un array con los campos del codigo error, descripción de la falla, clientID y amount
|
||||
$arrayOxxoPayment['oxxo_reference'] = '';
|
||||
$arrayOxxoPayment['error'] = 'errorGetCustomerStripe';
|
||||
$arrayOxxoPayment['failDescription'] = 'Error al obtener el Customer ID de Stripe: ' . $clientID;
|
||||
$arrayOxxoPayment['clientID'] = $clientID;
|
||||
$arrayOxxoPayment['clientFullName'] = $clientFullName;
|
||||
$arrayOxxoPayment['amount'] = $integerAmount;
|
||||
return $arrayOxxoPayment;
|
||||
}
|
||||
|
||||
if ($amount === null) {
|
||||
$amount = abs($arrayClientCRM['accountOutstanding']);
|
||||
} else {
|
||||
$this->logger->info("Monto proporcionado directamente: $amount " . PHP_EOL);
|
||||
}
|
||||
|
||||
// Validar que el monto sea mayor a 0 antes de proceder
|
||||
|
||||
if ($amount > 10) {
|
||||
$amount = intval($amount * 100);
|
||||
|
||||
try {
|
||||
$this->logger->info("Creando referencia en Stripe por: $amount para el cliente $stripeCustomerId" . PHP_EOL);
|
||||
$paymentIntent = $stripe->paymentIntents->create([
|
||||
'amount' => $amount,
|
||||
'currency' => 'mxn',
|
||||
'payment_method_types' => ['customer_balance', 'card', 'oxxo'],
|
||||
'description' => 'Pago de servicio de SIIP Internet',
|
||||
'customer' => $stripeCustomerId,
|
||||
'metadata' => [
|
||||
'clientId' => $clientID,
|
||||
'createdBy' => 'UCRM',
|
||||
'paymentType' => 'card.one_time',
|
||||
'signedInAdminId' => $currentUserAdmin[1]['id'],
|
||||
'tipoPago' => 'OXXO'
|
||||
],
|
||||
'payment_method_options' => [
|
||||
'oxxo' => [
|
||||
'expires_after_days' => 3,
|
||||
$this->logger->info("Creando referencia en Stripe por $amount para el cliente $stripeCustomerId" . PHP_EOL);
|
||||
$guzzleClient = new Client([
|
||||
'timeout' => 5,
|
||||
]);
|
||||
|
||||
$response = $guzzleClient->post('https://api.stripe.com/v1/payment_intents', [
|
||||
'auth' => [$StripeToken, ''],
|
||||
'form_params' => [
|
||||
'amount' => $amount,
|
||||
'currency' => 'mxn',
|
||||
'payment_method_types' => ['customer_balance', 'card', 'oxxo'],
|
||||
'description' => 'Pago de servicio de SIIP Internet',
|
||||
'customer' => $stripeCustomerId,
|
||||
'metadata' => [
|
||||
'clientId' => $clientID,
|
||||
'createdBy' => 'UCRM',
|
||||
'paymentType' => 'card.one_time',
|
||||
'signedInAdminId' => $currentUserAdmin[1]['id'],
|
||||
'tipoPago' => 'OXXO',
|
||||
],
|
||||
],
|
||||
'payment_method_options' => [
|
||||
'oxxo' => [
|
||||
'expires_after_days' => 3,
|
||||
],
|
||||
],
|
||||
]
|
||||
]);
|
||||
|
||||
$this->logger->info("Creando payment methods del voucher" . PHP_EOL);
|
||||
$paymentMethod = $stripe->paymentMethods->create([
|
||||
'type' => 'oxxo',
|
||||
'billing_details' => [
|
||||
'name' => $arrayClientCRM['firstName'] . ' ' . $arrayClientCRM['lastName'],
|
||||
'email' => $clientEmail,
|
||||
],
|
||||
]);
|
||||
|
||||
$this->logger->info("Confirmando el paymentIntent" . PHP_EOL);
|
||||
$paymentIntent = $stripe->paymentIntents->confirm(
|
||||
$paymentIntent->id,
|
||||
['payment_method' => $paymentMethod->id]
|
||||
);
|
||||
$this->logger->info("Se terminó de confirmar el paymentIntent" . PHP_EOL);
|
||||
if (!empty($paymentIntent->next_action) && isset($paymentIntent->next_action->oxxo_display_details)) {
|
||||
$oxxoPayment = $paymentIntent->next_action->oxxo_display_details;
|
||||
$oxxo_reference = $oxxoPayment->number;
|
||||
$oxxo_receipt_url = $oxxoPayment->hosted_voucher_url;
|
||||
|
||||
$this->logger->info("Referencia OXXO: " . $oxxo_reference . PHP_EOL);
|
||||
$this->logger->info("URL del recibo: " . $oxxo_receipt_url . PHP_EOL);
|
||||
return $oxxo_receipt_url;
|
||||
} else {
|
||||
$this->logger->info("El PaymentIntent no tiene detalles de OXXO disponibles aún. " . PHP_EOL);
|
||||
$this->logger->info("Estado actual del PaymentIntent: " . $paymentIntent->status . PHP_EOL);
|
||||
return 'errorPyamentIntentWithoutOxxoDetails';
|
||||
}
|
||||
|
||||
$paymentIntent = json_decode($response->getBody()->getContents(), true);
|
||||
|
||||
} catch (\Stripe\Exception\ApiConnectionException $e) {
|
||||
$this->logger->error("Error de conexión con Stripe (Error {$e->getCode()}): " . $e->getMessage() . PHP_EOL);
|
||||
//devolver un array con los campos del codigo error, descripción de la falla, clientID y amount
|
||||
$arrayOxxoPayment['oxxo_reference'] = '';
|
||||
$arrayOxxoPayment['url'] = '';
|
||||
$arrayOxxoPayment['error'] = 'errorConnectionStripe';
|
||||
$arrayOxxoPayment['failDescription'] = 'Error de conexión con Stripe: ' . $clientID;
|
||||
$arrayOxxoPayment['clientID'] = $clientID;
|
||||
$arrayOxxoPayment['clientFullName'] = $clientFullName;
|
||||
$arrayOxxoPayment['amount'] = $integerAmount;
|
||||
return $arrayOxxoPayment;
|
||||
|
||||
} catch (\Stripe\Exception\ApiErrorException $e) {
|
||||
$this->logger->error("Error de la API de Stripe: " . $e->getMessage() . PHP_EOL);
|
||||
//devolver un array con los campos del codigo error, descripción de la falla, clientID y amount
|
||||
$arrayOxxoPayment['oxxo_reference'] = '';
|
||||
$arrayOxxoPayment['url'] = '';
|
||||
$arrayOxxoPayment['error'] = 'errorApiStripe';
|
||||
$arrayOxxoPayment['failDescription'] = 'Error de la API de Stripe: ' . $clientID;
|
||||
$arrayOxxoPayment['clientID'] = $clientID;
|
||||
$arrayOxxoPayment['clientFullName'] = $clientFullName;
|
||||
$arrayOxxoPayment['amount'] = $integerAmount;
|
||||
return $arrayOxxoPayment;
|
||||
|
||||
} catch (Exception $e) {
|
||||
$this->logger->error('Error al crear el payment intent: ' . $e->getMessage() . PHP_EOL);
|
||||
return 'errorCreatePaymentIntent';
|
||||
$this->logger->error("Error inesperado al crear PaymentIntent (Error {$e->getCode()}): " . $e->getMessage() . PHP_EOL);
|
||||
//devolver un array con los campos del codigo error, descripción de la falla, clientID y amount
|
||||
$arrayOxxoPayment['oxxo_reference'] = '';
|
||||
$arrayOxxoPayment['url'] = '';
|
||||
$arrayOxxoPayment['error'] = 'errorCreatePaymentIntent';
|
||||
$arrayOxxoPayment['failDescription'] = 'Error inesperado al crear PaymentIntent: ' . $clientID;
|
||||
$arrayOxxoPayment['clientID'] = $clientID;
|
||||
$arrayOxxoPayment['amount'] = $integerAmount;
|
||||
$arrayOxxoPayment['clientFullName'] = $clientFullName;
|
||||
return $arrayOxxoPayment;
|
||||
|
||||
}
|
||||
|
||||
try {
|
||||
$firstName = isset($arrayClientCRM['firstName']) ? trim($arrayClientCRM['firstName']) : '';
|
||||
$lastName = isset($arrayClientCRM['lastName']) ? trim($arrayClientCRM['lastName']) : '';
|
||||
|
||||
if (strlen($firstName) < 2 || strlen($lastName) < 2) {
|
||||
$this->logger->error("Nombre/apellido inválido: ' . $firstName . ' ' . $lastName" . PHP_EOL);
|
||||
//devolver un array con los campos del codigo error, descripción de la falla, clientID y amount
|
||||
$arrayOxxoPayment['oxxo_reference'] = '';
|
||||
$arrayOxxoPayment['url'] = '';
|
||||
$arrayOxxoPayment['error'] = 'errorNombreApellidoInvalido';
|
||||
$arrayOxxoPayment['failDescription'] = "Nombre/apellido inválido: ' . $firstName . ' ' . $lastName";
|
||||
$arrayOxxoPayment['clientID'] = $clientID;
|
||||
$arrayOxxoPayment['clientFullName'] = $clientFullName;
|
||||
$arrayOxxoPayment['amount'] = $integerAmount;
|
||||
return $arrayOxxoPayment;
|
||||
|
||||
}
|
||||
|
||||
$responsePaymentMethod = $guzzleClient->post('https://api.stripe.com/v1/payment_methods', [
|
||||
'auth' => [$StripeToken, ''],
|
||||
'form_params' => [
|
||||
'type' => 'oxxo',
|
||||
'billing_details' => [
|
||||
'name' => "$firstName $lastName",
|
||||
'email' => $clientEmail,
|
||||
],
|
||||
]
|
||||
]);
|
||||
|
||||
$paymentMethod = json_decode($responsePaymentMethod->getBody()->getContents(), true);
|
||||
|
||||
$responseConfirmPaymentIntent = $guzzleClient->post('https://api.stripe.com/v1/payment_intents/' . $paymentIntent['id'] . '/confirm', [
|
||||
'auth' => [$StripeToken, ''],
|
||||
'form_params' => [
|
||||
'payment_method' => $paymentMethod['id'],
|
||||
]
|
||||
]);
|
||||
|
||||
$paymentIntentConfirm = json_decode($responseConfirmPaymentIntent->getBody()->getContents(), true);
|
||||
|
||||
} catch (Exception $e) {
|
||||
$this->logger->error("Error al confirmar PaymentIntent: " . $e->getMessage() . PHP_EOL);
|
||||
//devolver un array con los campos del codigo error, descripción de la falla, clientID y amount
|
||||
$arrayOxxoPayment['oxxo_reference'] = '';
|
||||
$arrayOxxoPayment['url'] = '';
|
||||
$arrayOxxoPayment['error'] = 'errorConfirmPaymentIntent';
|
||||
$arrayOxxoPayment['failDescription'] = 'Error al confirmar PaymentIntent: ' . $e->getMessage();
|
||||
$arrayOxxoPayment['clientID'] = $clientID;
|
||||
$arrayOxxoPayment['clientFullName'] = $clientFullName;
|
||||
$arrayOxxoPayment['amount'] = $integerAmount;
|
||||
return $arrayOxxoPayment;
|
||||
}
|
||||
|
||||
if (!empty($paymentIntentConfirm['next_action']) && isset($paymentIntentConfirm['next_action']['oxxo_display_details'])) {
|
||||
$oxxoPayment = $paymentIntentConfirm['next_action']['oxxo_display_details'];
|
||||
$oxxo_reference = $oxxoPayment['number'];
|
||||
$oxxo_receipt_url = $oxxoPayment['hosted_voucher_url'];
|
||||
|
||||
$this->logger->info("Referencia OXXO: " . $oxxo_reference . PHP_EOL);
|
||||
$this->logger->info("URL del recibo: " . $oxxo_receipt_url . PHP_EOL);
|
||||
$this->captureScreenshot($oxxo_receipt_url);
|
||||
//devolver un array con los campos de url de oxxo, descripción de la falla, clientID y amount
|
||||
$arrayOxxoPayment['oxxo_reference'] = $oxxo_reference;
|
||||
$arrayOxxoPayment['url'] = $oxxo_receipt_url;
|
||||
$arrayOxxoPayment['clientID'] = $clientID;
|
||||
$arrayOxxoPayment['clientFullName'] = $clientFullName;
|
||||
$arrayOxxoPayment['amount'] = $integerAmount;
|
||||
$arrayOxxoPayment['failDescription'] = '';
|
||||
$arrayOxxoPayment['error'] = '';
|
||||
$this->logger->info("Referencia OXXO creada correctamente." . PHP_EOL);
|
||||
return $arrayOxxoPayment;
|
||||
} else {
|
||||
$this->logger->info("El PaymentIntent no tiene detalles de OXXO disponibles. Estado: " . $paymentIntentConfirm['status'] . PHP_EOL);
|
||||
//devolver un array con los campos del codigo error, descripción de la falla, clientID y amount
|
||||
$arrayOxxoPayment['oxxo_reference'] = '';
|
||||
$arrayOxxoPayment['url'] = '';
|
||||
$arrayOxxoPayment['error'] = 'errorPaymentIntentWithoutOxxoDetails';
|
||||
$arrayOxxoPayment['failDescription'] = 'El PaymentIntent no tiene detalles de OXXO disponibles. Estado: ' . $paymentIntentConfirm['status'];
|
||||
$arrayOxxoPayment['clientID'] = $clientID;
|
||||
$arrayOxxoPayment['clientFullName'] = $clientFullName;
|
||||
$arrayOxxoPayment['amount'] = $integerAmount;
|
||||
return $arrayOxxoPayment;
|
||||
|
||||
}
|
||||
|
||||
} else {
|
||||
$this->logger->info("Este cliente no tiene adeudos por lo tanto no se puede generar su referencia de OXXO. " . PHP_EOL);
|
||||
return 'errorsinadeudo';
|
||||
$this->logger->info("Este cliente no tiene adeudos." . PHP_EOL);
|
||||
//devolver un array con los campos del codigo error, descripción de la falla, clientID y amount
|
||||
$arrayOxxoPayment['oxxo_reference'] = '';
|
||||
$arrayOxxoPayment['url'] = '';
|
||||
$arrayOxxoPayment['error'] = 'errorsinadeudo';
|
||||
$arrayOxxoPayment['failDescription'] = 'Este cliente no tiene adeudos.';
|
||||
$arrayOxxoPayment['clientID'] = $clientID;
|
||||
$arrayOxxoPayment['clientFullName'] = $clientFullName;
|
||||
$arrayOxxoPayment['amount'] = $integerAmount;
|
||||
return $arrayOxxoPayment;
|
||||
}
|
||||
}
|
||||
|
||||
@ -186,6 +348,7 @@ abstract class AbstractOxxoOperationsFacade
|
||||
|
||||
|
||||
|
||||
|
||||
// /**
|
||||
// * implement in subclass with the specific messaging provider
|
||||
// * @see TwilioNotifierFacade::sendWhatsApp()
|
||||
@ -317,4 +480,38 @@ abstract class AbstractOxxoOperationsFacade
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Función para capturar una pantalla de una URL usando el servicio Puppeteer.
|
||||
*
|
||||
* @param string $url La URL de la página web que se desea capturar.
|
||||
* @return string La ruta del archivo de la captura de pantalla.
|
||||
*/
|
||||
function captureScreenshot($url) {
|
||||
// URL del servicio Puppeteer
|
||||
$puppeteerUrl = 'http://172.16.5.134:4000';
|
||||
|
||||
// Datos a enviar
|
||||
$data = http_build_query(['url' => $url]);
|
||||
|
||||
// Configurar la solicitud POST
|
||||
$options = [
|
||||
'http' => [
|
||||
'header' => "Content-type: application/x-www-form-urlencoded\r\n",
|
||||
'method' => 'POST',
|
||||
'content' => $data,
|
||||
],
|
||||
];
|
||||
|
||||
// Ejecutar la solicitud
|
||||
$context = stream_context_create($options);
|
||||
$response = file_get_contents($puppeteerUrl, false, $context);
|
||||
|
||||
if ($response === false) {
|
||||
throw new Exception("Error al comunicarse con el servicio Puppeteer.");
|
||||
}
|
||||
|
||||
return trim($response);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -57,24 +57,43 @@ abstract class AbstractStripeOperationsFacade
|
||||
*/
|
||||
public function createPaymentIntent($event_json)
|
||||
{
|
||||
$this->logger->info("Evento recibido: " . json_encode($event_json) . PHP_EOL);
|
||||
|
||||
$configManager = \Ubnt\UcrmPluginSdk\Service\PluginConfigManager::create();
|
||||
$config = $configManager->loadConfig();
|
||||
$StripeToken = $config['tokenstripe'];
|
||||
$stripe = new \Stripe\StripeClient($StripeToken); //Token de clave privada para la API de Stripe
|
||||
|
||||
$customerId = $event_json->data->object->customer;
|
||||
$amount = $event_json->data->object->net_amount;
|
||||
$stripeQuery = $stripe->customers->retrieve($customerId, []);
|
||||
$UCRM_clientID = $stripeQuery['metadata']['ucrm_client_id'];
|
||||
|
||||
$this->ucrmApi = UcrmApi::create();
|
||||
$currentUserAdmin = $this->ucrmApi->get('users/admins', []);
|
||||
//$this->logger->info("User Admin ID: " . json_encode($currentUserAdmin) . PHP_EOL);
|
||||
// Asegurarse de que 'customer' esté presente en la estructura del evento
|
||||
if (!isset($event_json['data']['object']['customer'])) {
|
||||
$this->logger->info("Error: Invalid event structure. Customer ID not found." . PHP_EOL);
|
||||
return;
|
||||
}
|
||||
|
||||
$customerId = $event_json['data']['object']['customer'];
|
||||
if (is_null($customerId)) {
|
||||
$this->logger->info("Error: Customer ID is null." . PHP_EOL);
|
||||
return;
|
||||
}
|
||||
|
||||
// Validar que net_amount está presente
|
||||
if (!isset($event_json['data']['object']['net_amount'])) {
|
||||
$this->logger->info("Error: net_amount not found in event data." . PHP_EOL);
|
||||
return;
|
||||
}
|
||||
|
||||
$amount = $event_json['data']['object']['net_amount'];
|
||||
|
||||
try {
|
||||
// Obtener información del cliente desde Stripe
|
||||
$stripeQuery = $stripe->customers->retrieve($customerId, []);
|
||||
$UCRM_clientID = $stripeQuery['metadata']['ucrm_client_id'];
|
||||
|
||||
// Obtener información del administrador actual
|
||||
$this->ucrmApi = UcrmApi::create();
|
||||
$currentUserAdmin = $this->ucrmApi->get('users/admins', []);
|
||||
|
||||
// Crear PaymentIntent
|
||||
$paymentIntent = $stripe->paymentIntents->create([
|
||||
'amount' => $amount,
|
||||
'currency' => 'mxn',
|
||||
@ -99,16 +118,16 @@ abstract class AbstractStripeOperationsFacade
|
||||
|
||||
$this->logger->info("PaymentIntent creado: " . $paymentIntent->id . PHP_EOL);
|
||||
|
||||
|
||||
} catch (\Stripe\Exception\ApiErrorException $e) {
|
||||
$this->logger->info("Error creando PaymentIntent: " . $e->getMessage() . PHP_EOL);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Creates the Stripe Customer
|
||||
*/
|
||||
public function createStripeClient(NotificationData $notificationData): void
|
||||
public function createStripeClient(NotificationData $notificationData, $tagStripe = false): void
|
||||
{
|
||||
$configManager = \Ubnt\UcrmPluginSdk\Service\PluginConfigManager::create();
|
||||
$config = $configManager->loadConfig();
|
||||
@ -116,11 +135,20 @@ abstract class AbstractStripeOperationsFacade
|
||||
$IPServer = $config['ipserver'];
|
||||
$UCRMAPIToken = $config['apitoken'];
|
||||
$StripeToken = $config['tokenstripe'];
|
||||
$baseUri = 'https://' . $IPServer . '/crm/api/v1.0/'; //endpoint de la API REST del CRM
|
||||
|
||||
$stripe = new \Stripe\StripeClient($StripeToken); //Token de clave privada en modo prueba para la API de Stripe
|
||||
//$stripe = new \Stripe\StripeClient('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'); //Token de clave privada en modo prodcucción para la API de Stripe
|
||||
|
||||
|
||||
//$this->logger->info("Ya dentro del metodo Create Stripe Client " . PHP_EOL);
|
||||
//$this->sendWhatsApp('Hola Dany');
|
||||
|
||||
$this->ucrmApi = UcrmApi::create();
|
||||
if ($tagStripe) {
|
||||
$tagsIds = $this->ucrmApi->get('client-tags', ['name' => 'STRIPE']);
|
||||
$this->createCustomerStripe($notificationData, $stripe, $baseUri, $UCRMAPIToken);
|
||||
}
|
||||
$customAttributes = $this->ucrmApi->get('custom-attributes/', ['attributeType' => 'client']);//Obtener los atributos del sistema que estén vinculados a la entidad "cliente"
|
||||
//$this->logger->info("result del custom Attributes: " . json_encode($customAttributes) . PHP_EOL);
|
||||
|
||||
@ -145,10 +173,6 @@ abstract class AbstractStripeOperationsFacade
|
||||
|
||||
|
||||
|
||||
$baseUri = 'https://' . $IPServer . '/crm/api/v1.0/'; //endpoint de la API REST del CRM
|
||||
|
||||
$stripe = new \Stripe\StripeClient($StripeToken); //Token de clave privada en modo prueba para la API de Stripe
|
||||
//$stripe = new \Stripe\StripeClient('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'); //Token de clave privada en modo prodcucción para la API de Stripe
|
||||
|
||||
|
||||
// Verificar si la solicitud fue exitosa (código de estado 200)
|
||||
@ -164,18 +188,19 @@ abstract class AbstractStripeOperationsFacade
|
||||
return;
|
||||
}
|
||||
|
||||
$this->createCustomerStripe($notificationData, $stripe, $baseUri, $UCRMAPIToken);
|
||||
// Acceder a "isLead" de forma segura
|
||||
$isLead = $dataObject->isLead ?? null;
|
||||
// $isLead = $dataObject->isLead ?? null;
|
||||
|
||||
$this->logger->info("El valor de 'isLead' es: " . ($isLead ? "true" : "false") . PHP_EOL);
|
||||
// $this->logger->info("El valor de 'isLead' es: " . ($isLead ? "true" : "false") . PHP_EOL);
|
||||
|
||||
if ($isLead === true) {
|
||||
$this->logger->info("El cliente es un lead, no se procesará" . PHP_EOL);
|
||||
return;
|
||||
} else {
|
||||
$this->logger->info("El cliente NO es un lead, se procesará" . PHP_EOL);
|
||||
$this->createCustomerStripe($notificationData, $stripe, $baseUri, $UCRMAPIToken);
|
||||
}
|
||||
// if ($isLead === true) {
|
||||
// $this->logger->info("El cliente es un lead, no se procesará" . PHP_EOL);
|
||||
// return;
|
||||
// } else {
|
||||
// $this->logger->info("El cliente NO es un lead, se procesará" . PHP_EOL);
|
||||
// $this->createCustomerStripe($notificationData, $stripe, $baseUri, $UCRMAPIToken);
|
||||
// }
|
||||
|
||||
|
||||
}
|
||||
@ -193,7 +218,7 @@ abstract class AbstractStripeOperationsFacade
|
||||
): void;
|
||||
|
||||
|
||||
function createCustomerStripe($notificationData, $stripe, $baseUri, $token)
|
||||
function createCustomerStripe($notificationData, $stripe, $baseUri, $token): bool
|
||||
{
|
||||
$this->logger->info("Creando el Customer Stripe" . PHP_EOL);
|
||||
|
||||
@ -232,19 +257,41 @@ abstract class AbstractStripeOperationsFacade
|
||||
|
||||
$this->logger->info('ahora se procede a validar el teléfono!!! ' . PHP_EOL);
|
||||
|
||||
$phone = $this->validarNumeroTelefono($phone); //validamos y procesamos el número de celular del cliente para que se vaya a 10 dígitos ya que Stripe por si mismo les agrega el +52
|
||||
//******************************************** */
|
||||
//si la variable $phone no esta vacia o null se valida con la funcion validarNumeroTelefono
|
||||
if ($phone == '') {
|
||||
$this->logger->info('El número de teléfono está vacío o no es válido.' . PHP_EOL);
|
||||
//se manda a crear pero sin numero de teléfono
|
||||
$this->logger->info('AHORA SE MANDA A CREAR EL CLIENTE A STRIPE!!! ' . PHP_EOL);
|
||||
$result = $stripe->customers->create([
|
||||
"description" => "Cliente SIIP CRM con client_id: " . $ucrm_client_id,
|
||||
"name" => $firstName . ' ' . $lastName,
|
||||
"email" => $email,
|
||||
'preferred_locales' => ['es-419']
|
||||
]); //aquí se contruye la petición de creación de un customer en Stripe y se consume la API
|
||||
|
||||
$this->logger->info('AHORA SE MANDA A CREAR EL CLIENTE A STRIPE!!! ' . PHP_EOL);
|
||||
$result = $stripe->customers->create([
|
||||
"description" => "Cliente SIIP CRM con client_id: " . $ucrm_client_id,
|
||||
"name" => $firstName . ' ' . $lastName,
|
||||
"phone" => $phone,
|
||||
"email" => $email,
|
||||
'preferred_locales' => ['es-419']
|
||||
]); //aquí se contruye la petición de creación de un customer en Stripe y se consume la API
|
||||
} else {
|
||||
$phone = $this->validarNumeroTelefono($phone); //validamos y procesamos el número de celular del cliente para que se vaya a 10 dígitos ya que Stripe por si mismo les agrega el +52
|
||||
$this->logger->info('AHORA SE MANDA A CREAR EL CLIENTE A STRIPE!!! ' . PHP_EOL);
|
||||
$result = $stripe->customers->create([
|
||||
"description" => "Cliente SIIP CRM con client_id: " . $ucrm_client_id,
|
||||
"name" => $firstName . ' ' . $lastName,
|
||||
"phone" => $phone,
|
||||
"email" => $email,
|
||||
'preferred_locales' => ['es-419']
|
||||
]); //aquí se contruye la petición de creación de un customer en Stripe y se consume la API
|
||||
|
||||
}
|
||||
|
||||
$this->logger->info(json_encode($result) . PHP_EOL); //imprimir respuesta de creación del cliente
|
||||
//ejemplo de respuesta de stripe cuando se crea el cliente: {"id":"cus_Rkh9CoRTpjlZUu","object":"customer","address":null,"balance":0,"created":1739250682,"currency":null,"default_source":null,"delinquent":false,"description":"Cliente SIIP CRM con client_id: 167","discount":null,"email":null,"invoice_prefix":"5017E9D3","invoice_settings":{"custom_fields":null,"default_payment_method":null,"footer":null,"rendering_options":null},"livemode":false,"metadata":[],"name":"Javier Alatorre","next_invoice_sequence":1,"phone":"4181878106","preferred_locales":["es-419"],"shipping":null,"tax_exempt":"none","test_clock":null}
|
||||
|
||||
//validar si se creo el cliente con la API de Stripe $stripe->customers->create
|
||||
if (!isset($result['id'])) { //si no existe el ID del cliente en la respuesta de Stripe entonces se manda un mensaje de error
|
||||
$this->logger->info('Error al crear el cliente en Stripe: ' . json_encode($result) . PHP_EOL);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
$stripe_customer_id = $result['id']; //obtenemos el customer id de Stripe recibido por medio del consumo del API y lo asignamos a una variable $stripe_customer_id
|
||||
sleep(2);
|
||||
@ -324,12 +371,11 @@ abstract class AbstractStripeOperationsFacade
|
||||
|
||||
} catch (GuzzleException $error) {
|
||||
$this->logger->info("Error al hacer el patch al CRM: " . $error->getMessage() . PHP_EOL);
|
||||
//exit();
|
||||
return false; // Return false if patch fails
|
||||
}
|
||||
$this->logger->info(json_encode($responseCRM) . PHP_EOL); //imprimir respuesta del patch de CRM con la clabe y Customer ID Stripe
|
||||
|
||||
|
||||
|
||||
return true; // Return true if all operations succeed
|
||||
}
|
||||
|
||||
function validarNumeroTelefono($telefono)
|
||||
|
||||
@ -372,7 +372,7 @@ class ClientCallBellAPI
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
} catch (\Exception $e) {
|
||||
$log->appendLog("Error al manejar el comprobante de pago: " . $e->getMessage() . PHP_EOL);
|
||||
return false;
|
||||
@ -390,13 +390,13 @@ class ClientCallBellAPI
|
||||
$rutaImagen = str_replace('.pdf', '.png', $rutaArchivo);
|
||||
$image->writeImage($rutaImagen);
|
||||
$image->destroy();
|
||||
|
||||
|
||||
$log->appendLog("El archivo PNG se ha generado correctamente en: $rutaImagen" . PHP_EOL);
|
||||
} catch (ImagickException $e) {
|
||||
$log->appendLog("Error al convertir el PDF a PNG con Imagick: " . $e->getMessage() . PHP_EOL);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
$fileNameComprobanteImage = str_replace('.pdf', '.png', $fileNameComprobante);
|
||||
$url_file = $this->UploadReceiptToWordpressByImageFileName($fileNameComprobanteImage);//Carga del comprobante PDF a Wordpress para su posterior envío
|
||||
@ -867,20 +867,27 @@ class ClientCallBellAPI
|
||||
{
|
||||
|
||||
$log = PluginLogManager::create(); //Initialize Logger
|
||||
//imprimir notificacionData
|
||||
$log->appendLog("Notificacion data: " . json_encode($notificationData) . PHP_EOL);
|
||||
//ejemplo de $notificationData: {"uuid":"cad4fa25-176e-4823-9f4c-1421d05d2a31","changeType":"edit","entity":"client","entityId":2,"message":null,"clientId":2,"eventName":"client.edit","clientData":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":"Cliente espacial, el m\u00e1s chido","sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Pollerias2","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":170,"clientId":2,"email":null,"phone":"5214181817609","name":"Bussiness","isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"0021804341999569810","clientZoneVisible":true},{"id":178,"clientId":2,"customAttributeId":15,"name":"Site","key":"site","value":"0LOCS","clientZoneVisible":false},{"id":179,"clientId":2,"customAttributeId":16,"name":"Antena\/Sectorial","key":"antenaSectorial","value":"Sectorial-4b 172.16.13.16\/24","clientZoneVisible":false}],"accountBalance":1553.33,"accountCredit":1553.33,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[{"id":2,"name":"NS EXENTO","colorBackground":"#42a3df","colorText":"#fff"}],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":null,"paymentData":null}
|
||||
|
||||
// $IPSERVIDOR = $this->IPServer;
|
||||
// $log->appendLog("Valor de la IP del Servidor: " . $IPSERVIDOR . PHP_EOL);
|
||||
// $UCRMTOKEN= $this->UCRMAPIToken;
|
||||
// $log->appendLog("Valor del Token del UCRM: " . $UCRMTOKEN . PHP_EOL);
|
||||
// $CALLBELLTOKEN = $this->CallBellAPIToken;
|
||||
// $log->appendLog("Valor del Token de Call Bell: " . $CALLBELLTOKEN . PHP_EOL);
|
||||
//buscar el attribute con el key site y antenaSectorial
|
||||
$attributes = $notificationData->clientData['attributes']; //Obtener los atributos del cliente
|
||||
$site = '';
|
||||
$antenaSectorial = '';
|
||||
|
||||
//$notification_payment = $notificationData->paymentData; //array con los datos del pago
|
||||
// Iterar sobre los atributos
|
||||
foreach ($attributes as $attribute) {
|
||||
// Verificar si el key es "site"
|
||||
if ($attribute['key'] === 'site') {
|
||||
$site = $attribute['value'];
|
||||
}
|
||||
// Verificar si el key es "antenaSectorial"
|
||||
if ($attribute['key'] === 'antenaSectorial') {
|
||||
$antenaSectorial = $attribute['value'];
|
||||
}
|
||||
}
|
||||
|
||||
// $notification_payment_export = json_encode($notification_payment);
|
||||
// $this->logger->info("Valor de notification payment export: " . $notification_payment_export . PHP_EOL);
|
||||
|
||||
//$payment_id = $notification_payment['id'];
|
||||
|
||||
|
||||
$log->appendLog("Dentro del proceso del patch: " . PHP_EOL);
|
||||
@ -914,8 +921,17 @@ class ClientCallBellAPI
|
||||
'Authorization: Bearer ' . $this->CallBellAPIToken,
|
||||
'Content-Type: application/json',
|
||||
]);
|
||||
|
||||
$ch2 = curl_init();
|
||||
curl_setopt($ch2, CURLOPT_RETURNTRANSFER, true);
|
||||
curl_setopt($ch2, CURLOPT_CUSTOMREQUEST, 'PATCH');
|
||||
curl_setopt($ch2, CURLOPT_HTTPHEADER, [
|
||||
'Authorization: Bearer ' . $this->CallBellAPIToken,
|
||||
'Content-Type: application/json',
|
||||
]);
|
||||
$UrlChatCallBell = 'https://api.callbell.eu/v1/contacts/' . $uuid;
|
||||
curl_setopt($ch, CURLOPT_URL, $UrlChatCallBell);
|
||||
curl_setopt($ch2, CURLOPT_URL, $UrlChatCallBell);
|
||||
$nombre_cliente = sprintf("%s %s", $notificationData->clientData['firstName'], $notificationData->clientData['lastName']);
|
||||
$log->appendLog("Nombre del cliente que se va a actualizar: " . $nombre_cliente . PHP_EOL);
|
||||
$log->appendLog("UUID: " . $uuid . PHP_EOL);
|
||||
@ -1003,16 +1019,18 @@ class ClientCallBellAPI
|
||||
$resumenClienteJSON = '{' .
|
||||
'"Cliente": "' . $notificationData->clientData['id'] . '",' .
|
||||
'"Domicilio": "' .
|
||||
(($notificationData->clientData['fullAddress'] == null) ? '📍❌ Sin domicilio' : '📍 ' . $notificationData->clientData['fullAddress']) . '",' .
|
||||
'"Nombre": "' . sprintf("👤 %s %s", $notificationData->clientData['firstName'], $notificationData->clientData['lastName']) . '",' .
|
||||
'"URL": "🌐 https://172.16.5.120/crm/client/' . $notificationData->clientId . '",' .
|
||||
//(($notificationData->clientData['fullAddress'] == null) ? 'Sin domicilio' : '' . $notificationData->clientData['fullAddress']) . '",' .
|
||||
'"Nombre": "' . sprintf("%s %s", $notificationData->clientData['firstName'], $notificationData->clientData['lastName']) . '",' .
|
||||
'"URL": "https://sistema.siip.mx/crm/client/' . $notificationData->clientId . '",' .
|
||||
'"Saldo Actual": "' . $saldoTexto . '",' .
|
||||
'"Monto Ultimo Pago": "💲 ' . $payments[0]['amount'] . '",' .
|
||||
'"Monto Ultimo Pago": "$ ' . $payments[0]['amount'] . '",' .
|
||||
'"Estado": "' .
|
||||
(($notificationData->clientData['hasSuspendedService']) ? '🔴 Suspendido' : '🟢 Activo') . '",' .
|
||||
'"Fecha Ultimo Pago": "📆💰 ' . $fecha_ultimoPago_ajustada . ' con ' . $payment_method . '",' .
|
||||
'"Fecha Ultima Actualizacion": "📆🔄️ ' . $fecha_actual_ajustada . '",' .
|
||||
'"Clabe Interbancaria": "' . $clabeInterbancaria . '"' .
|
||||
(($notificationData->clientData['hasSuspendedService']) ? 'Suspendido' : 'Activo') . '",' .
|
||||
'"Fecha Ultimo Pago": " ' . $fecha_ultimoPago_ajustada . ' con ' . $payment_method . '",' .
|
||||
'"Fecha Ultima Actualizacion": "' . $fecha_actual_ajustada . '",' .
|
||||
'"Clabe Interbancaria": "' . $clabeInterbancaria . '",' .
|
||||
'"Site": "' . $site . '",' .
|
||||
'"Antena/Sectorial": "' . $antenaSectorial . '"' .
|
||||
'}';
|
||||
|
||||
|
||||
@ -1027,17 +1045,30 @@ class ClientCallBellAPI
|
||||
"Cliente" => $notificationData->clientData['id'],
|
||||
"Domicilio" => ($notificationData->clientData['fullAddress'] == null) ? '📍❌ Sin domicilio' : '📍 ' . $notificationData->clientData['fullAddress'],
|
||||
"Nombre" => sprintf("👤 %s %s", $notificationData->clientData['firstName'], $notificationData->clientData['lastName']),
|
||||
"URL" => '🌐 https://172.16.5.120/crm/client/' . $notificationData->clientId,
|
||||
"URL" => '🌐 https://sistema.siip.mx/crm/client/' . $notificationData->clientId,
|
||||
"Saldo Actual" => $saldoTexto,
|
||||
"Monto Ultimo Pago" => '💲 ' . $payments[0]['amount'],
|
||||
"Estado" => ($notificationData->clientData['hasSuspendedService']) ? '🔴 Suspendido' : '🟢 Activo ',
|
||||
"Resumen" => $resumenClienteJSON,
|
||||
"Fecha Ultimo Pago" => '📆💸 ' . $fecha_ultimoPago_ajustada . ' con ' . $payment_method,
|
||||
"Fecha Ultima Actualizacion" => '📆🔄️ ' . $fecha_actual_ajustada,
|
||||
"Clabe Interbancaria" => $clabeInterbancaria
|
||||
"Clabe Interbancaria" => $clabeInterbancaria,
|
||||
"Site" => $site,
|
||||
"Antena/Sectorial" => $antenaSectorial
|
||||
)
|
||||
);
|
||||
|
||||
$log->appendLog("JSON con los datos a actualizar: " . json_encode($data_CRM) . PHP_EOL);
|
||||
|
||||
|
||||
$data_CRM2 = array(
|
||||
"custom_fields" => array(
|
||||
"Resumen" => $resumenClienteJSON,
|
||||
)
|
||||
);
|
||||
|
||||
$log->appendLog("JSON con los datos a actualizar del resumen: " . $resumenClienteJSON . PHP_EOL);
|
||||
|
||||
if (
|
||||
$response_getContactCallBell['custom_fields']['Cliente'] != $data_CRM['custom_fields']['Cliente']
|
||||
|| $response_getContactCallBell['custom_fields']['Domicilio'] != $data_CRM['custom_fields']['Domicilio']
|
||||
@ -1048,12 +1079,17 @@ class ClientCallBellAPI
|
||||
|| $response_getContactCallBell['custom_fields']['Fecha Ultimo Pago'] != $data_CRM['custom_fields']['Fecha Ultimo Pago']
|
||||
|| $response_getContactCallBell['custom_fields']['Monto Ultimo Pago'] != $data_CRM['custom_fields']['Monto Ultimo Pago']
|
||||
|| $response_getContactCallBell['name'] != $data_CRM['name']
|
||||
|
||||
) {
|
||||
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data_CRM));
|
||||
curl_setopt($ch2, CURLOPT_POSTFIELDS, json_encode($data_CRM2));
|
||||
$response = curl_exec($ch);
|
||||
$log->appendLog("Response Patch CallBell: " . $response . PHP_EOL);
|
||||
$response2 = curl_exec($ch2);
|
||||
$log->appendLog("Response 2 Patch CallBell: " . $response2 . PHP_EOL);
|
||||
curl_close($ch);
|
||||
|
||||
curl_close($ch2);
|
||||
|
||||
// if($fileNameComprobante != null){
|
||||
// sleep(3);
|
||||
// $this->deleteFileWordPressAndLocal($fileNameComprobante);
|
||||
@ -1128,6 +1164,7 @@ class ClientCallBellAPI
|
||||
|
||||
|
||||
$data_CRM = array(
|
||||
"name" => $nombre_cliente,
|
||||
"custom_fields" => array(
|
||||
"Estado" => (
|
||||
isset($notificationData->serviceData['status'])
|
||||
@ -1156,101 +1193,6 @@ class ClientCallBellAPI
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function UploadFileWordpress($fileHandle): string
|
||||
{
|
||||
|
||||
$log = PluginLogManager::create(); //Initialize Logger
|
||||
|
||||
// Configuración de conexión FTP
|
||||
$ftp_server = "siip.mx";
|
||||
$ftp_username = "siip0001";
|
||||
$ftp_password = '$spGiT,[wa)n';
|
||||
//$fileName = $fileNameComprobantePDF;
|
||||
$remote_file = "/public_html/wp/wp-content/uploads/pdf/Comprobante_de_pago.pdf";
|
||||
//$file_to_upload = '/home/unms/data/ucrm/ucrm/data/payment_receipts/' . $fileName;
|
||||
$url = 'http://siip.mx/wp/wp-content/uploads/pdf/Comprobante_de_pago.pdf';
|
||||
|
||||
|
||||
|
||||
// Conexión FTP
|
||||
$ftp_conn = ftp_connect($ftp_server) or die("No se pudo conectar al servidor FTP");
|
||||
$login = ftp_login($ftp_conn, $ftp_username, $ftp_password);
|
||||
ftp_pasv($ftp_conn, true);
|
||||
// Verificar conexión y login
|
||||
if ($ftp_conn && $login) {
|
||||
$log->appendLog("Conexión FTP exitosa" . PHP_EOL);
|
||||
|
||||
// Cargar archivo
|
||||
if (ftp_fput($ftp_conn, $remote_file, $fileHandle, FTP_BINARY)) {
|
||||
$log->appendLog("El archivo ha sido cargado exitosamente." . PHP_EOL);
|
||||
$log->appendLog("La URL es: " . $url . PHP_EOL);
|
||||
// Cerrar conexión FTP
|
||||
ftp_close($ftp_conn);
|
||||
return $url;
|
||||
|
||||
} else {
|
||||
$log->appendLog("Error al cargar el archivo " . PHP_EOL);
|
||||
}
|
||||
|
||||
// Cerrar conexión FTP
|
||||
ftp_close($ftp_conn);
|
||||
return '';
|
||||
} else {
|
||||
$log->appendLog("No se pudo conectar o iniciar sesión en el servidor FTP." . PHP_EOL);
|
||||
return '';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
function UploadReceiptToWordpressByServerFileName($fileNamePaymentReceiptServer, $newCustomFileName): string
|
||||
{
|
||||
|
||||
$log = PluginLogManager::create(); //Initialize Logger
|
||||
|
||||
|
||||
|
||||
// Configuración de conexión FTP
|
||||
$ftp_server = "siip.mx";
|
||||
$ftp_username = "siip0001";
|
||||
$ftp_password = '$spGiT,[wa)n';
|
||||
$remote_file = "/public_html/wp/wp-content/uploads/pdf/" . $newCustomFileName;
|
||||
$file_to_upload = __DIR__ . '/../../../../payment_receipts/' . $fileNamePaymentReceiptServer;
|
||||
$url = 'https://siip.mx/wp/wp-content/uploads/pdf/' . $newCustomFileName;
|
||||
|
||||
|
||||
|
||||
// Conexión FTP
|
||||
$ftp_conn = ftp_connect($ftp_server) or die("No se pudo conectar al servidor FTP");
|
||||
$login = ftp_login($ftp_conn, $ftp_username, $ftp_password);
|
||||
ftp_pasv($ftp_conn, true);
|
||||
// Verificar conexión y login
|
||||
if ($ftp_conn && $login) {
|
||||
$log->appendLog("Conexión FTP exitosa" . PHP_EOL);
|
||||
|
||||
// Cargar archivo
|
||||
if (ftp_put($ftp_conn, $remote_file, $file_to_upload, FTP_BINARY)) {
|
||||
$log->appendLog("El archivo ha sido cargado exitosamente." . PHP_EOL);
|
||||
$log->appendLog("La URL es: " . $url . PHP_EOL);
|
||||
// Cerrar conexión FTP
|
||||
ftp_close($ftp_conn);
|
||||
return $url;
|
||||
|
||||
} else {
|
||||
$log->appendLog("Error al cargar el archivo " . PHP_EOL);
|
||||
}
|
||||
|
||||
// Cerrar conexión FTP
|
||||
ftp_close($ftp_conn);
|
||||
return '';
|
||||
} else {
|
||||
$log->appendLog("No se pudo conectar o iniciar sesión en el servidor FTP." . PHP_EOL);
|
||||
return '';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function UploadReceiptToWordpressByImageFileName($imageFileName): string
|
||||
{
|
||||
|
||||
@ -1288,9 +1230,11 @@ class ClientCallBellAPI
|
||||
if (ftp_put($ftp_conn, $remote_file, $file_to_upload, FTP_BINARY)) {
|
||||
$log->appendLog("El archivo ha sido cargado exitosamente." . PHP_EOL);
|
||||
$log->appendLog("La URL es: " . $url . PHP_EOL);
|
||||
|
||||
$this->deleteFilesWordpressExceptLastHundred($log,$ftp_conn,$remote_file);
|
||||
// Cerrar conexión FTP
|
||||
//ftp_close($ftp_conn);
|
||||
//return $url;
|
||||
ftp_close($ftp_conn);//COMENTAR AQUÍ SI SE BORRAN LOS ARCHIVOS DE WORDPRESS DESCOMENTANDO EL CÓDIGO DE MÁS ABAJO
|
||||
return $url;//COMENTAR AQUÍ SI SE BORRAN LOS ARCHIVOS DE WORDPRESS DESCOMENTANDO EL CÓDIGO DE MÁS ABAJO
|
||||
|
||||
} else {
|
||||
$log->appendLog("Error al cargar el archivo " . PHP_EOL);
|
||||
@ -1298,49 +1242,49 @@ class ClientCallBellAPI
|
||||
return '';
|
||||
}
|
||||
|
||||
//SI SE DECIDE VOLVER A ELIMINAR LOS COMPROBANTES ENTONCES DESCOMENTAR ESTA PARTE DE ABAJO Y COMENTAR LA SECCIÓN DE ARRIBA
|
||||
|
||||
// Obtener lista de archivos en la carpeta
|
||||
$files = ftp_nlist($ftp_conn, $remote_folder);
|
||||
if (is_array($files)) {
|
||||
// Eliminar la ruta del directorio de los archivos
|
||||
$files = array_map(function ($file) use ($remote_folder) {
|
||||
return str_replace($remote_folder, '', $file);
|
||||
}, $files);
|
||||
// $files = ftp_nlist($ftp_conn, $remote_folder);
|
||||
// if (is_array($files)) {
|
||||
// // Eliminar la ruta del directorio de los archivos
|
||||
// $files = array_map(function ($file) use ($remote_folder) {
|
||||
// return str_replace($remote_folder, '', $file);
|
||||
// }, $files);
|
||||
|
||||
// Obtener fechas de modificación
|
||||
$filesWithTime = [];
|
||||
foreach ($files as $file) {
|
||||
$modifiedTime = ftp_mdtm($ftp_conn, $remote_folder . $file);
|
||||
if ($modifiedTime != -1) {
|
||||
$filesWithTime[$file] = $modifiedTime;
|
||||
}
|
||||
}
|
||||
// // Obtener fechas de modificación
|
||||
// $filesWithTime = [];
|
||||
// foreach ($files as $file) {
|
||||
// $modifiedTime = ftp_mdtm($ftp_conn, $remote_folder . $file);
|
||||
// if ($modifiedTime != -1) {
|
||||
// $filesWithTime[$file] = $modifiedTime;
|
||||
// }
|
||||
// }
|
||||
|
||||
// Ordenar archivos por fecha de modificación, más recientes primero
|
||||
arsort($filesWithTime);
|
||||
// // Ordenar archivos por fecha de modificación, más recientes primero
|
||||
// arsort($filesWithTime);
|
||||
|
||||
// Obtener los archivos a eliminar (todos menos los 50 más recientes)
|
||||
$filesToDelete = array_slice(array_keys($filesWithTime), 50);
|
||||
// // Obtener los archivos a eliminar (todos menos los 50 más recientes)
|
||||
// $filesToDelete = array_slice(array_keys($filesWithTime), 50);
|
||||
|
||||
// // Eliminar archivos antiguos
|
||||
// foreach ($filesToDelete as $file) {
|
||||
// if (ftp_delete($ftp_conn, $remote_folder . $file)) {
|
||||
// $log->appendLog("Comprobante eliminado de Wordpress: " . $file . PHP_EOL);
|
||||
// } else {
|
||||
// $log->appendLog('Error al borrar comprobante' . $file . PHP_EOL);
|
||||
// }
|
||||
// }
|
||||
// $log->appendLog("Archivos eliminados" . PHP_EOL);
|
||||
// ftp_close($ftp_conn);
|
||||
// return $url;
|
||||
// } else {
|
||||
// $log->appendLog("No se pudo obtener la lista de archivos de la carpeta FTP" . PHP_EOL);
|
||||
// ftp_close($ftp_conn);
|
||||
// return $url;
|
||||
// }
|
||||
|
||||
// Eliminar archivos antiguos
|
||||
foreach ($filesToDelete as $file) {
|
||||
if (ftp_delete($ftp_conn, $remote_folder . $file)) {
|
||||
$log->appendLog("Comprobante eliminado de Wordpress: " . $file . PHP_EOL);
|
||||
} else {
|
||||
$log->appendLog('Error al borrar comprobante' . $file . PHP_EOL);
|
||||
}
|
||||
}
|
||||
$log->appendLog("Archivos eliminados" . PHP_EOL);
|
||||
ftp_close($ftp_conn);
|
||||
return $url;
|
||||
} else {
|
||||
$log->appendLog("No se pudo obtener la lista de archivos de la carpeta FTP" . PHP_EOL);
|
||||
ftp_close($ftp_conn);
|
||||
return $url;
|
||||
}
|
||||
|
||||
// Cerrar conexión FTP
|
||||
//ftp_close($ftp_conn);
|
||||
//return '';
|
||||
} else {
|
||||
$log->appendLog("No se pudo conectar o iniciar sesión en el servidor FTP." . PHP_EOL);
|
||||
return '';
|
||||
@ -1349,7 +1293,50 @@ class ClientCallBellAPI
|
||||
}
|
||||
|
||||
|
||||
function deleteFilesWordpressExceptLastHundred($log, $ftp_conn, $remote_folder): bool
|
||||
{
|
||||
|
||||
// Obtener lista de archivos en la carpeta
|
||||
$files = ftp_nlist($ftp_conn, $remote_folder);
|
||||
if (is_array($files)) {
|
||||
// Eliminar la ruta del directorio de los archivos
|
||||
$files = array_map(function ($file) use ($remote_folder) {
|
||||
return str_replace($remote_folder, '', $file);
|
||||
}, $files);
|
||||
|
||||
// Obtener fechas de modificación
|
||||
$filesWithTime = [];
|
||||
foreach ($files as $file) {
|
||||
$modifiedTime = ftp_mdtm($ftp_conn, $remote_folder . $file);
|
||||
if ($modifiedTime != -1) {
|
||||
$filesWithTime[$file] = $modifiedTime;
|
||||
}
|
||||
}
|
||||
|
||||
// Ordenar archivos por fecha de modificación, más recientes primero
|
||||
arsort($filesWithTime);
|
||||
|
||||
// Obtener los archivos a eliminar (todos menos los 50 más recientes)
|
||||
$filesToDelete = array_slice(array_keys($filesWithTime), 50);
|
||||
|
||||
// Eliminar archivos antiguos
|
||||
foreach ($filesToDelete as $file) {
|
||||
if (ftp_delete($ftp_conn, $remote_folder . $file)) {
|
||||
$log->appendLog("Comprobante eliminado de Wordpress: " . $file . PHP_EOL);
|
||||
} else {
|
||||
$log->appendLog('Error al borrar comprobante' . $file . PHP_EOL);
|
||||
}
|
||||
}
|
||||
$log->appendLog("Archivos eliminados" . PHP_EOL);
|
||||
ftp_close($ftp_conn);
|
||||
return true;
|
||||
} else {
|
||||
$log->appendLog("No se pudo obtener la lista de archivos de la carpeta FTP" . PHP_EOL);
|
||||
ftp_close($ftp_conn);
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
|
||||
246
src/Plugin.php
246
src/Plugin.php
@ -119,7 +119,7 @@ class Plugin
|
||||
return;
|
||||
}
|
||||
|
||||
$jsonData = @json_decode($userInput, true, 10);
|
||||
$jsonData = @json_decode($userInput, true, 50);
|
||||
|
||||
if (!isset($jsonData['uuid'])) {
|
||||
$this->logger->info('No UUID found in the webhook data');
|
||||
@ -152,53 +152,68 @@ class Plugin
|
||||
$this->logger->info('Referencia persnoalizada, Valor del monto: ' . $jsonData['amount'] . PHP_EOL);
|
||||
$intentos = 0;
|
||||
do {
|
||||
if ($intentos > 1) {
|
||||
sleep(2);
|
||||
}
|
||||
$url = $this->pluginOxxoNotifierFacade->createOxxoPaymentIntent($jsonData, $jsonData['amount']);
|
||||
// if ($intentos > 1) {
|
||||
// sleep(2);
|
||||
// }
|
||||
$responseOxxo = $this->pluginOxxoNotifierFacade->createOxxoPaymentIntent($jsonData, $jsonData['amount']);
|
||||
$this->logger->info('Referencia personalizada, Valor de la respuesta: ' . json_encode($responseOxxo) . PHP_EOL);
|
||||
//El array asociativo $responseOxxo es un array asosiativo con los siguientes campos: oxxo_reference, error, failDescription, clientID, amount
|
||||
$intentos++;
|
||||
} while (strpos($url, 'https') !== 0 && $intentos < 5);
|
||||
} while (strpos($responseOxxo['url'], 'https') !== 0 && $intentos < 3); //Mientras la url no contenga https y el número de intentos sea menor a 3
|
||||
} else {
|
||||
$intentos = 0;
|
||||
do {
|
||||
// if ($intentos > 1) {
|
||||
// sleep(2);
|
||||
// }
|
||||
$url = $this->pluginOxxoNotifierFacade->createOxxoPaymentIntent($jsonData);
|
||||
$responseOxxo = $this->pluginOxxoNotifierFacade->createOxxoPaymentIntent($jsonData);
|
||||
//El array asociativo $responseOxxo es un array asosiativo con los siguientes campos: oxxo_reference, error, failDescription, clientID, amount
|
||||
$intentos++;
|
||||
} while (strpos($url, 'https') !== 0 && $intentos < 5);
|
||||
} while (strpos($responseOxxo['url'], 'https') !== 0 && $intentos < 3); //Mientras la url no contenga https y el número de intentos sea menor a 3
|
||||
}
|
||||
|
||||
// Crear una respuesta en formato JSON
|
||||
// $response = [
|
||||
// 'event' => 'response.siip',
|
||||
// 'status' => 'success',
|
||||
// 'url' => $url
|
||||
// ];
|
||||
//El array asociativo $responseOxxo es un array asosiativo con los siguientes campos: oxxo_reference, error, failDescription, clientID, amount
|
||||
//Si la respuesta no contiene https, se genera un error
|
||||
if (strpos($responseOxxo['url'], 'https') !== 0) {
|
||||
//this->logger->error('Error al crear la referencia de OXXO: ' . $responseOxxo);
|
||||
//crear un json con variable $response que contenga las claves y valores del array $responseOxxo los cuales son: oxxo_reference, error, failDescription, clientID, clientFullName amount
|
||||
$response = '{' .
|
||||
'"url":' . $responseOxxo['url'] . ',' .
|
||||
'"error": "' . $responseOxxo['error'] . '",' .
|
||||
'"failDescription": "' . $responseOxxo['failDescription'] . '",' .
|
||||
'"clientID": "' . $responseOxxo['clientID'] . '",' .
|
||||
'"clientFullName": "' . $responseOxxo['clientFullName'] . '",' .
|
||||
'"amount": "' . $responseOxxo['amount'] . '",' .
|
||||
'}';
|
||||
|
||||
$response = '{' .
|
||||
'"url": "' . $url . '"' .
|
||||
'}';
|
||||
header('Content-Type: application/json');
|
||||
echo $response;
|
||||
break;
|
||||
} else {
|
||||
//crear un json con variable $response que contenga las claves y valores del array $responseOxxo los cuales son: oxxo_reference, error, failDescription, clientID, clientFullName, amount
|
||||
|
||||
$this->logger->debug('Reponse que se envía a CallBell: ' . $response);
|
||||
// $json_codificado = json_encode($response);
|
||||
// if (json_last_error() !== JSON_ERROR_NONE) {
|
||||
// $this->logger->error('Error en la codificación JSON: ' . json_last_error_msg() . PHP_EOL);
|
||||
$response = '{' .
|
||||
'"url": "' . $responseOxxo['url'] . '",' .
|
||||
'"oxxo_reference": "' . $responseOxxo['oxxo_reference'] . '",' .
|
||||
'"error": "' . $responseOxxo['error'] . '",' .
|
||||
'"failDescription": "' . $responseOxxo['failDescription'] . '",' .
|
||||
'"clientID": "' . $responseOxxo['clientID'] . '",' .
|
||||
'"clientFullName": "' . $responseOxxo['clientFullName'] . '",' .
|
||||
'"amount": "' . $responseOxxo['amount'] . '"' .
|
||||
'}';
|
||||
|
||||
// }
|
||||
$this->logger->debug('Reponse que se envía a CallBell: ' . $response);
|
||||
// Enviar el encabezado de respuesta como JSON
|
||||
header('Content-Type: application/json');
|
||||
|
||||
//$this->logger->info('Se está enviando esta respuesta: ' . json_encode($json_codificado) . PHP_EOL);
|
||||
// Enviar la respuesta en formato JSON
|
||||
//echo json_encode($response);
|
||||
echo $response;
|
||||
|
||||
// Enviar el encabezado de respuesta como JSON
|
||||
header('Content-Type: application/json');
|
||||
break;
|
||||
|
||||
// Enviar la respuesta en formato JSON
|
||||
//echo json_encode($response);
|
||||
echo $response;
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
// Otros eventos relevantes
|
||||
}
|
||||
}
|
||||
return;
|
||||
@ -221,44 +236,6 @@ class Plugin
|
||||
|
||||
$configManager = \Ubnt\UcrmPluginSdk\Service\PluginConfigManager::create();
|
||||
$config = $configManager->loadConfig();
|
||||
$installersData = $config['installersDataWhatsApp'];
|
||||
$this->logger->debug('Valor de $installersData: ' . $installersData . PHP_EOL);
|
||||
// Decodificar el JSON y verificar errores
|
||||
$jsonInstallersData = json_decode($installersData, true);
|
||||
|
||||
if (json_last_error() !== JSON_ERROR_NONE) {
|
||||
$this->logger->error('Error al decodificar el JSON de instaladores: ' . json_last_error_msg());
|
||||
return;
|
||||
}
|
||||
|
||||
// Verificar si el nodo "instaladores" existe
|
||||
if (!isset($jsonInstallersData['instaladores'])) {
|
||||
$this->logger->error('El nodo "instaladores" no existe en el JSON');
|
||||
return;
|
||||
}
|
||||
|
||||
// Buscar el número de WhatsApp en el JSON
|
||||
$installerWhatsApp = '';
|
||||
foreach ($jsonInstallersData['instaladores'] as $installer) {
|
||||
if ($installer['id'] === 1019) {
|
||||
$installerWhatsApp = $installer['whatsapp'];
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// Validar si se encontró el WhatsApp
|
||||
if (empty($installerWhatsApp)) {
|
||||
$this->logger->warning('No se encontró un número de WhatsApp para el instalador con ID 1019');
|
||||
} else {
|
||||
$this->logger->debug('Número de WhatsApp del Instalador: ' . $installerWhatsApp . PHP_EOL);
|
||||
}
|
||||
$this->ucrmApi = UcrmApi::create();
|
||||
$usersInstallers = $this->ucrmApi->get('users/admins/1019', []);
|
||||
$this->logger->debug('Valor de $usersInstallers ' . json_encode($usersInstallers) . PHP_EOL);
|
||||
$firstName = $usersInstallers['firstName'] ?? '';
|
||||
$lastName = $usersInstallers['lastName'] ?? '';
|
||||
$installerFullName = trim("$firstName $lastName");
|
||||
$this->logger->debug('Valor de $installerFullName: ' . $installerFullName . PHP_EOL);
|
||||
|
||||
$this->logger->info('Webhook test successful.');
|
||||
|
||||
@ -279,7 +256,7 @@ class Plugin
|
||||
if ($notification->eventName === 'payment.add') {
|
||||
|
||||
$result = json_encode($notification);
|
||||
$this->logger->debug('datos del notification para el invoice add:' . $result . PHP_EOL);
|
||||
$this->logger->debug('Notification encodificado en JSON:' . $result . PHP_EOL);
|
||||
|
||||
$datos_payment = $notification->paymentData;
|
||||
$this->logger->debug('valor del payment data: ' . json_encode($datos_payment) . PHP_EOL);
|
||||
@ -370,6 +347,8 @@ class Plugin
|
||||
} else if ($notification->eventName === 'client.edit') {
|
||||
$this->logger->debug('Se actualiza a un cliente');
|
||||
$this->logger->debug('Valor de json_data: ' . json_encode($jsonData));
|
||||
//ejemplo de json_data: {"uuid":"17e043a7-03b5-4312-ab81-a7818124a77e","changeType":"edit","entity":"client","entityId":"158","eventName":"client.edit","extraData":{"entity":{"id":158,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"23 San Luis","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37804","fullAddress":"San Luis 23, Guadalupe, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2025-01-06T00:00:00-0600","leadConvertedAt":"2025-02-09T03:15:49-0600","companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Luis","lastName":"Guti\u00e9rrez","username":null,"contacts":[{"id":162,"clientId":158,"email":null,"phone":null,"name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#2196f3","addressGpsLat":21.153272,"addressGpsLon":-100.9134508,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":{"id":158,"userIdent":null,"previousIsp":null,"isLead":true,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"23 San Luis","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37804","fullAddress":"San Luis 23, Guadalupe, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2025-01-06T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Luis","lastName":"Guti\u00e9rrez","username":null,"contacts":[{"id":162,"clientId":158,"email":null,"phone":null,"name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#2196f3","addressGpsLat":21.153272,"addressGpsLon":-100.9134508,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}}
|
||||
|
||||
|
||||
// Validar que 'extraData' existe y contiene las claves necesarias
|
||||
if (
|
||||
@ -381,51 +360,99 @@ class Plugin
|
||||
|
||||
$this->logger->debug('Validando claves dentro de entityBeforeEdit y entity');
|
||||
|
||||
// Validar que 'isLead' existe en ambas entidades
|
||||
// Validar si 'isLead' esta en true en entityBeforeEdit y en false en entity
|
||||
if (array_key_exists('isLead', $entityBeforeEdit) && array_key_exists('isLead', $entity)) {
|
||||
$this->logger->debug('Los datos entityBeforeEdit y entity contienen el campo isLead');
|
||||
|
||||
$isLeadBefore = $entityBeforeEdit['isLead'];
|
||||
$isLeadAfter = $entity['isLead'];
|
||||
|
||||
// Validar el tipo de dato de isLead
|
||||
if (!is_bool($isLeadBefore) || !is_bool($isLeadAfter)) {
|
||||
$this->logger->warning('El campo isLead no es de tipo booleano');
|
||||
// Comprobar si 'isLead' cambió de true a false
|
||||
if ($isLeadBefore === true && $isLeadAfter === false) {
|
||||
$this->logger->debug('El cliente cambió de potencial a cliente');
|
||||
$this->pluginNotifierFacade->createStripeClient($notification);
|
||||
} else {
|
||||
// Comprobar si 'isLead' cambió de true a false
|
||||
if ($isLeadBefore === true && $isLeadAfter === false) {
|
||||
$this->logger->debug('El campo isLead cambió de true a false');
|
||||
$this->pluginNotifierFacade->createStripeClient($notification);
|
||||
} else {
|
||||
$this->logger->debug('No hubo cambio de true a false en el campo isLead');
|
||||
}
|
||||
$this->logger->debug('El cliente no cambió de potencial a cliente');
|
||||
}
|
||||
} else {
|
||||
$this->logger->warning('El campo isLead no existe en entityBeforeEdit o entity');
|
||||
}
|
||||
|
||||
|
||||
// buscar si existe la etiqueta 'STRIPE' en entity pero no en entityBeforeEdit
|
||||
$tags = $jsonData['extraData']['entity']['tags'];
|
||||
$tagsBefore = $jsonData['extraData']['entityBeforeEdit']['tags'];
|
||||
|
||||
$this->logger->debug('Validando claves dentro de entity y entityBeforeEdit');
|
||||
|
||||
// Validar que 'tags' existe en ambas entidades
|
||||
if (array_key_exists('tags', $jsonData['extraData']['entity']) && array_key_exists('tags', $jsonData['extraData']['entityBeforeEdit'])) {
|
||||
$this->logger->debug('Los datos entity y entityBeforeEdit contienen el campo tags');
|
||||
|
||||
$tags = $jsonData['extraData']['entity']['tags'];
|
||||
$tagsBefore = $jsonData['extraData']['entityBeforeEdit']['tags'];
|
||||
|
||||
$this->logger->debug('Validando si la etiqueta STRIPE existe en entity pero no en entityBeforeEdit');
|
||||
|
||||
// Comprobar si la etiqueta 'STRIPE' existe en 'tags' pero no en 'tagsBefore'
|
||||
$stripeTagExists = false;
|
||||
$stripeTagExistsBefore = false;
|
||||
foreach ($tags as $tag) {
|
||||
if ($tag['name'] === 'CREARCLABESTRIPE') {
|
||||
$stripeTagExists = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
foreach ($tagsBefore as $tag) {
|
||||
if ($tag['name'] === 'CREARCLABESTRIPE') {
|
||||
$stripeTagExistsBefore = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// Comprobar si la etiqueta 'STRIPE' existe en 'tags' pero no en 'tagsBefore'
|
||||
if ($stripeTagExists && !$stripeTagExistsBefore) {
|
||||
$this->logger->debug('La etiqueta STRIPE se agregará al cliente');
|
||||
$this->pluginNotifierFacade->createStripeClient($notification, true);
|
||||
} else {
|
||||
$this->logger->debug('La etiqueta STRIPE no se agregó al cliente');
|
||||
}
|
||||
} else {
|
||||
$this->logger->warning('El campo tags no existe en entity o entityBeforeEdit');
|
||||
}
|
||||
|
||||
} else {
|
||||
$this->logger->warning('Los datos entityBeforeEdit o entity no están presentes en extraData');
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
$this->notifierFacade->verifyClientActionToDo($notification);
|
||||
} else if ($notification->eventName === 'client.add') {
|
||||
$this->logger->debug('Se agregó un nuevo cliente' . PHP_EOL);
|
||||
$this->logger->debug('Valor de json_data: ' . json_encode($jsonData));
|
||||
|
||||
// Verificar que existen tanto 'entityBeforeEdit' como 'entity'
|
||||
if (isset($event_json['extraData']['entity']['isLead'])) {
|
||||
$this->logger->debug('El campo isLead existe en los datos del evento');
|
||||
$isLead = $jsonData['extraData']['entity']['isLead'];
|
||||
// if (isset($jsonData['extraData']['entity']['isLead'])) {
|
||||
// $this->logger->debug('El campo isLead existe en los datos del evento');
|
||||
// $isLead = $jsonData['extraData']['entity']['isLead'];
|
||||
|
||||
// Comprobar si 'isLead' es true
|
||||
if ($isLead === true) {
|
||||
$this->logger->debug('El campo isLead es true');
|
||||
$this->pluginNotifierFacade->createStripeClient($notification);
|
||||
} else {
|
||||
$this->logger->debug('El campo isLead es false');
|
||||
}
|
||||
} else {
|
||||
$this->logger->warning('El campo isLead no existe en los datos del evento');
|
||||
}
|
||||
// // Comprobar si 'isLead' es true
|
||||
// if ($isLead === true) {
|
||||
// $this->logger->debug('El cliente es potencial');
|
||||
// $this->pluginNotifierFacade->createStripeClient($notification);
|
||||
// } else {
|
||||
// $this->logger->debug('El cliente no es potencial');
|
||||
// $this->pluginNotifierFacade->createStripeClient($notification);
|
||||
// }
|
||||
// } else {
|
||||
// $this->logger->warning('El campo isLead no existe en los datos del evento');
|
||||
// }
|
||||
|
||||
} else if ($notification->eventName === 'service.edit') {
|
||||
$this->logger->debug('Se editó el servicio a un cliente' . PHP_EOL);
|
||||
$this->notifierFacade->verifyServiceActionToDo($notification);
|
||||
} else if ($notification->eventName === 'service.suspend') {
|
||||
$this->logger->debug('Se suspendió el servicio a un cliente' . PHP_EOL);
|
||||
$this->notifierFacade->verifyServiceActionToDo($notification);
|
||||
@ -449,19 +476,28 @@ class Plugin
|
||||
$this->logger->debug('datos del notification para el invoice add:' . $result . PHP_EOL);
|
||||
|
||||
$accountBalance = $notification->clientData['accountBalance'];
|
||||
$invoiceAmountPaid = $notification->invoiceData['amountPaid'];
|
||||
//$invoiceAmountPaid = $notification->invoiceData['amountPaid'];
|
||||
$this->logger->debug("Account Balance: " . $accountBalance . PHP_EOL);
|
||||
$this->logger->debug("Pago hecho con la factura: " . $invoiceAmountPaid . PHP_EOL);
|
||||
// $this->logger->debug("Pago hecho con la factura: " . $invoiceAmountPaid . PHP_EOL);
|
||||
$this->notifierFacade->verifyInvoiceActionToDo($notification);
|
||||
} else if ($notification->eventName === 'invoice.edit') {
|
||||
$this->logger->debug('Edición de Factura' . PHP_EOL);
|
||||
$this->notifierFacade->verifyInvoiceActionToDo($notification);
|
||||
} else if ($notification->eventName === 'invoice.add_draft') {
|
||||
$this->logger->debug('Adición de borrador de Factura' . PHP_EOL);
|
||||
$this->notifierFacade->verifyInvoiceActionToDo($notification);
|
||||
} else if ($notification->eventName === 'invoice.draft_approved') {
|
||||
$this->logger->debug('Aprobación de Factura' . PHP_EOL);
|
||||
$this->notifierFacade->verifyInvoiceActionToDo($notification);
|
||||
} else if ($notification->eventName === 'invoice.delete') {
|
||||
$this->logger->debug('Eliminación de Factura' . PHP_EOL);
|
||||
$this->notifierFacade->verifyInvoiceActionToDo($notification);
|
||||
} else if ($notification->eventName === 'job.add') {
|
||||
$this->logger->debug('Se ha agregado un nuevo trabajo' . PHP_EOL);
|
||||
|
||||
|
||||
// Verificar que existen tanto 'assignedUserId' como 'entity'
|
||||
if (isset($event_json['extraData']['entity']['assignedUserId'])) {
|
||||
if (isset($jsonData['extraData']['entity']['assignedUserId'])) {
|
||||
$this->logger->debug('El campo assignedUserId existe en los datos del evento');
|
||||
$assignedUserId = $jsonData['extraData']['entity']['assignedUserId'];
|
||||
|
||||
@ -506,19 +542,19 @@ class Plugin
|
||||
if ($assignedUserIdBefore === null && $assignedUserIdAfter != null) { //Si el campo "assignedUserId" cambió de null a un valor
|
||||
$this->logger->debug('El instalador cambió de null a un valor');
|
||||
$this->notifierFacade->verifyJobActionToDo($jsonData); // Se envía notificación de trabajo asignado
|
||||
} else if (($assignedUserIdBefore != null && $assignedUserIdAfter != $assignedUserIdBefore)&&($dateBefore === $dateAfter)) {//Si el campo "assignedUserId" cambió de un valor a otro y la fecha no cambió
|
||||
} else if (($assignedUserIdBefore != null && $assignedUserIdAfter != $assignedUserIdBefore) && ($dateBefore === $dateAfter)) {//Si el campo "assignedUserId" cambió de un valor a otro y la fecha no cambió
|
||||
$this->logger->debug('El instalador cambió y la fecha no cambió');
|
||||
$this->notifierFacade->verifyJobActionToDo($jsonData, false , true); // Se envía notificación de trabajo reasignado
|
||||
}else if (($assignedUserIdBefore != null && $assignedUserIdBefore === $assignedUserIdAfter) && ($dateBefore != $dateAfter)) {//Si el campo "assignedUserId" no cambió y la fecha cambió
|
||||
$this->notifierFacade->verifyJobActionToDo($jsonData, false, true); // Se envía notificación de trabajo reasignado
|
||||
} else if (($assignedUserIdBefore != null && $assignedUserIdBefore === $assignedUserIdAfter) && ($dateBefore != $dateAfter)) {//Si el campo "assignedUserId" no cambió y la fecha cambió
|
||||
$this->logger->debug('El instalador no cambió y la fecha sí cambió');
|
||||
$this->notifierFacade->verifyJobActionToDo($jsonData, true , false); // Se envía notificación de reprogramación de trabajo
|
||||
} else if (($assignedUserIdBefore != null && $assignedUserIdAfter != $assignedUserIdBefore)&&($dateBefore != $dateAfter)){
|
||||
$this->notifierFacade->verifyJobActionToDo($jsonData, true, false); // Se envía notificación de reprogramación de trabajo
|
||||
} else if (($assignedUserIdBefore != null && $assignedUserIdAfter != $assignedUserIdBefore) && ($dateBefore != $dateAfter)) {
|
||||
$this->logger->debug('El instalador cambió y la fecha sí cambió');
|
||||
$this->notifierFacade->verifyJobActionToDo($jsonData, true , true); // Se envía notificación de trabajo reasignado
|
||||
$this->notifierFacade->verifyJobActionToDo($jsonData, true, true); // Se envía notificación de trabajo reasignado
|
||||
} else if ($assignedUserIdBefore != null && $assignedUserIdAfter === null) { //Si el campo "assignedUserId" cambió de un valor a null
|
||||
$this->logger->debug('El instalador cambió de un valor a null');
|
||||
$this->notifierFacade->verifyJobActionToDo($jsonData, null,true); // Se envía notificación de trabajo desasignado
|
||||
}else {
|
||||
$this->notifierFacade->verifyJobActionToDo($jsonData, null, true); // Se envía notificación de trabajo desasignado
|
||||
} else {
|
||||
$this->logger->debug('No hubo cambio en el instalador ni en la fecha');
|
||||
}
|
||||
|
||||
|
||||
@ -34,48 +34,43 @@ class SmsNumberProvider
|
||||
* go through client's contacts and find an applicable one, if any
|
||||
*/
|
||||
public function getUcrmClientNumbers(NotificationData $notificationData = null, $arrayClientCRM = null)
|
||||
{
|
||||
$log = PluginLogManager::create(); //Initialize Logger
|
||||
//$log->appendLog("Ejecutando metodo getUcrmClientNumbers: " . json_encode($arrayClientCRM) . PHP_EOL);
|
||||
// Array asociativo donde almacenarás los números de teléfono con sus tipos correspondientes
|
||||
$arrayPhones = [];
|
||||
{
|
||||
$log = PluginLogManager::create(); //Initialize Logger
|
||||
$arrayPhones = [];
|
||||
|
||||
if ($arrayClientCRM != null) {
|
||||
//$log->appendLog("Entrando al if del método getUcrmClientNumbers: " . $arrayClientCRM . PHP_EOL);
|
||||
//$jsonNotificationData = json_decode($jsonNotificationData, true);
|
||||
// Recorrer los contactos del cliente para encontrar los teléfonos con sus tipos
|
||||
foreach ($arrayClientCRM['contacts'] as $contact) {
|
||||
|
||||
if (!empty($contact['phone'])) { // Verificar que el teléfono no esté vacío
|
||||
if (isset($contact['types']) && is_array($contact['types'])) { // Verificar que 'types' exista y sea un array
|
||||
foreach ($contact['types'] as $type) {
|
||||
if (in_array($type['name'], ['WhatsApp', 'WhatsNotifica'])) {
|
||||
// Si el tipo de contacto es uno de los deseados, agregamos al array asociativo
|
||||
$arrayPhones[$type['name']] = $contact['phone'];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
} else {
|
||||
// Recorrer los contactos del cliente para encontrar los teléfonos con sus tipos
|
||||
foreach ($notificationData->clientData['contacts'] as $contact) {
|
||||
if (!empty($contact['phone'])) { // Verificar que el teléfono no esté vacío
|
||||
if (isset($contact['types']) && is_array($contact['types'])) { // Verificar que 'types' exista y sea un array
|
||||
foreach ($contact['types'] as $type) {
|
||||
if (in_array($type['name'], ['WhatsApp', 'WhatsNotifica', 'WhatsActualiza'])) {
|
||||
// Si el tipo de contacto es uno de los deseados, agregamos al array asociativo
|
||||
$arrayPhones[$type['name']] = $contact['phone'];
|
||||
}
|
||||
if ($arrayClientCRM != null) {
|
||||
foreach ($arrayClientCRM['contacts'] as $contact) {
|
||||
if (!empty($contact['phone'])) {
|
||||
if (isset($contact['types']) && is_array($contact['types'])) {
|
||||
foreach ($contact['types'] as $type) {
|
||||
if (in_array($type['name'], ['WhatsApp', 'WhatsNotifica'])) {
|
||||
// Almacena varios números bajo el mismo tipo
|
||||
$arrayPhones[$type['name']][] = $contact['phone'];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return $arrayPhones; // Devolver el arreglo de teléfonos por tipo
|
||||
} else {
|
||||
foreach ($notificationData->clientData['contacts'] as $contact) {
|
||||
if (!empty($contact['phone'])) {
|
||||
if (isset($contact['types']) && is_array($contact['types'])) {
|
||||
foreach ($contact['types'] as $type) {
|
||||
if (in_array($type['name'], ['WhatsApp', 'WhatsNotifica', 'WhatsActualiza'])) {
|
||||
// Almacena varios números bajo el mismo tipo
|
||||
$arrayPhones[$type['name']][] = $contact['phone'];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return $arrayPhones; // Devolver el arreglo de teléfonos por tipo
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* go through client's contacts and find an applicable one, if any
|
||||
*/
|
||||
|
||||
337
vendor/composer/autoload_classmap.php
vendored
337
vendor/composer/autoload_classmap.php
vendored
File diff suppressed because it is too large
Load Diff
337
vendor/composer/autoload_static.php
vendored
337
vendor/composer/autoload_static.php
vendored
File diff suppressed because it is too large
Load Diff
4
vendor/composer/installed.php
vendored
4
vendor/composer/installed.php
vendored
@ -5,7 +5,7 @@
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../../',
|
||||
'aliases' => array(),
|
||||
'reference' => '9fc3bcb8d9ddaccbfe7d320660582f1f65c7724d',
|
||||
'reference' => '9db9febc39027c302495c041d5a28e198c035b21',
|
||||
'name' => 'ucrm-plugins/sms-twilio',
|
||||
'dev' => false,
|
||||
),
|
||||
@ -307,7 +307,7 @@
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../../',
|
||||
'aliases' => array(),
|
||||
'reference' => '9fc3bcb8d9ddaccbfe7d320660582f1f65c7724d',
|
||||
'reference' => '9db9febc39027c302495c041d5a28e198c035b21',
|
||||
'dev_requirement' => false,
|
||||
),
|
||||
),
|
||||
|
||||
80
vendor/google/apiclient-services/src/Aiplatform/GoogleCloudAiplatformV1AutoraterConfig.php
vendored
Executable file
80
vendor/google/apiclient-services/src/Aiplatform/GoogleCloudAiplatformV1AutoraterConfig.php
vendored
Executable file
@ -0,0 +1,80 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
* use this file except in compliance with the License. You may obtain a copy of
|
||||
* the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
|
||||
namespace Google\Service\Aiplatform;
|
||||
|
||||
class GoogleCloudAiplatformV1AutoraterConfig extends \Google\Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $autoraterModel;
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
public $flipEnabled;
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $samplingCount;
|
||||
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setAutoraterModel($autoraterModel)
|
||||
{
|
||||
$this->autoraterModel = $autoraterModel;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getAutoraterModel()
|
||||
{
|
||||
return $this->autoraterModel;
|
||||
}
|
||||
/**
|
||||
* @param bool
|
||||
*/
|
||||
public function setFlipEnabled($flipEnabled)
|
||||
{
|
||||
$this->flipEnabled = $flipEnabled;
|
||||
}
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function getFlipEnabled()
|
||||
{
|
||||
return $this->flipEnabled;
|
||||
}
|
||||
/**
|
||||
* @param int
|
||||
*/
|
||||
public function setSamplingCount($samplingCount)
|
||||
{
|
||||
$this->samplingCount = $samplingCount;
|
||||
}
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getSamplingCount()
|
||||
{
|
||||
return $this->samplingCount;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(GoogleCloudAiplatformV1AutoraterConfig::class, 'Google_Service_Aiplatform_GoogleCloudAiplatformV1AutoraterConfig');
|
||||
62
vendor/google/apiclient-services/src/Aiplatform/GoogleCloudAiplatformV1CodeExecutionResult.php
vendored
Executable file
62
vendor/google/apiclient-services/src/Aiplatform/GoogleCloudAiplatformV1CodeExecutionResult.php
vendored
Executable file
@ -0,0 +1,62 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
* use this file except in compliance with the License. You may obtain a copy of
|
||||
* the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
|
||||
namespace Google\Service\Aiplatform;
|
||||
|
||||
class GoogleCloudAiplatformV1CodeExecutionResult extends \Google\Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $outcome;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $output;
|
||||
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setOutcome($outcome)
|
||||
{
|
||||
$this->outcome = $outcome;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getOutcome()
|
||||
{
|
||||
return $this->outcome;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setOutput($output)
|
||||
{
|
||||
$this->output = $output;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getOutput()
|
||||
{
|
||||
return $this->output;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(GoogleCloudAiplatformV1CodeExecutionResult::class, 'Google_Service_Aiplatform_GoogleCloudAiplatformV1CodeExecutionResult');
|
||||
91
vendor/google/apiclient-services/src/Aiplatform/GoogleCloudAiplatformV1EvaluateDatasetRequest.php
vendored
Executable file
91
vendor/google/apiclient-services/src/Aiplatform/GoogleCloudAiplatformV1EvaluateDatasetRequest.php
vendored
Executable file
@ -0,0 +1,91 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
* use this file except in compliance with the License. You may obtain a copy of
|
||||
* the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
|
||||
namespace Google\Service\Aiplatform;
|
||||
|
||||
class GoogleCloudAiplatformV1EvaluateDatasetRequest extends \Google\Collection
|
||||
{
|
||||
protected $collection_key = 'metrics';
|
||||
protected $autoraterConfigType = GoogleCloudAiplatformV1AutoraterConfig::class;
|
||||
protected $autoraterConfigDataType = '';
|
||||
protected $datasetType = GoogleCloudAiplatformV1EvaluationDataset::class;
|
||||
protected $datasetDataType = '';
|
||||
protected $metricsType = GoogleCloudAiplatformV1Metric::class;
|
||||
protected $metricsDataType = 'array';
|
||||
protected $outputConfigType = GoogleCloudAiplatformV1OutputConfig::class;
|
||||
protected $outputConfigDataType = '';
|
||||
|
||||
/**
|
||||
* @param GoogleCloudAiplatformV1AutoraterConfig
|
||||
*/
|
||||
public function setAutoraterConfig(GoogleCloudAiplatformV1AutoraterConfig $autoraterConfig)
|
||||
{
|
||||
$this->autoraterConfig = $autoraterConfig;
|
||||
}
|
||||
/**
|
||||
* @return GoogleCloudAiplatformV1AutoraterConfig
|
||||
*/
|
||||
public function getAutoraterConfig()
|
||||
{
|
||||
return $this->autoraterConfig;
|
||||
}
|
||||
/**
|
||||
* @param GoogleCloudAiplatformV1EvaluationDataset
|
||||
*/
|
||||
public function setDataset(GoogleCloudAiplatformV1EvaluationDataset $dataset)
|
||||
{
|
||||
$this->dataset = $dataset;
|
||||
}
|
||||
/**
|
||||
* @return GoogleCloudAiplatformV1EvaluationDataset
|
||||
*/
|
||||
public function getDataset()
|
||||
{
|
||||
return $this->dataset;
|
||||
}
|
||||
/**
|
||||
* @param GoogleCloudAiplatformV1Metric[]
|
||||
*/
|
||||
public function setMetrics($metrics)
|
||||
{
|
||||
$this->metrics = $metrics;
|
||||
}
|
||||
/**
|
||||
* @return GoogleCloudAiplatformV1Metric[]
|
||||
*/
|
||||
public function getMetrics()
|
||||
{
|
||||
return $this->metrics;
|
||||
}
|
||||
/**
|
||||
* @param GoogleCloudAiplatformV1OutputConfig
|
||||
*/
|
||||
public function setOutputConfig(GoogleCloudAiplatformV1OutputConfig $outputConfig)
|
||||
{
|
||||
$this->outputConfig = $outputConfig;
|
||||
}
|
||||
/**
|
||||
* @return GoogleCloudAiplatformV1OutputConfig
|
||||
*/
|
||||
public function getOutputConfig()
|
||||
{
|
||||
return $this->outputConfig;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(GoogleCloudAiplatformV1EvaluateDatasetRequest::class, 'Google_Service_Aiplatform_GoogleCloudAiplatformV1EvaluateDatasetRequest');
|
||||
58
vendor/google/apiclient-services/src/Aiplatform/GoogleCloudAiplatformV1EvaluationDataset.php
vendored
Executable file
58
vendor/google/apiclient-services/src/Aiplatform/GoogleCloudAiplatformV1EvaluationDataset.php
vendored
Executable file
@ -0,0 +1,58 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
* use this file except in compliance with the License. You may obtain a copy of
|
||||
* the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
|
||||
namespace Google\Service\Aiplatform;
|
||||
|
||||
class GoogleCloudAiplatformV1EvaluationDataset extends \Google\Model
|
||||
{
|
||||
protected $bigquerySourceType = GoogleCloudAiplatformV1BigQuerySource::class;
|
||||
protected $bigquerySourceDataType = '';
|
||||
protected $gcsSourceType = GoogleCloudAiplatformV1GcsSource::class;
|
||||
protected $gcsSourceDataType = '';
|
||||
|
||||
/**
|
||||
* @param GoogleCloudAiplatformV1BigQuerySource
|
||||
*/
|
||||
public function setBigquerySource(GoogleCloudAiplatformV1BigQuerySource $bigquerySource)
|
||||
{
|
||||
$this->bigquerySource = $bigquerySource;
|
||||
}
|
||||
/**
|
||||
* @return GoogleCloudAiplatformV1BigQuerySource
|
||||
*/
|
||||
public function getBigquerySource()
|
||||
{
|
||||
return $this->bigquerySource;
|
||||
}
|
||||
/**
|
||||
* @param GoogleCloudAiplatformV1GcsSource
|
||||
*/
|
||||
public function setGcsSource(GoogleCloudAiplatformV1GcsSource $gcsSource)
|
||||
{
|
||||
$this->gcsSource = $gcsSource;
|
||||
}
|
||||
/**
|
||||
* @return GoogleCloudAiplatformV1GcsSource
|
||||
*/
|
||||
public function getGcsSource()
|
||||
{
|
||||
return $this->gcsSource;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(GoogleCloudAiplatformV1EvaluationDataset::class, 'Google_Service_Aiplatform_GoogleCloudAiplatformV1EvaluationDataset');
|
||||
62
vendor/google/apiclient-services/src/Aiplatform/GoogleCloudAiplatformV1ExecutableCode.php
vendored
Executable file
62
vendor/google/apiclient-services/src/Aiplatform/GoogleCloudAiplatformV1ExecutableCode.php
vendored
Executable file
@ -0,0 +1,62 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
* use this file except in compliance with the License. You may obtain a copy of
|
||||
* the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
|
||||
namespace Google\Service\Aiplatform;
|
||||
|
||||
class GoogleCloudAiplatformV1ExecutableCode extends \Google\Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $code;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $language;
|
||||
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setCode($code)
|
||||
{
|
||||
$this->code = $code;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getCode()
|
||||
{
|
||||
return $this->code;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setLanguage($language)
|
||||
{
|
||||
$this->language = $language;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getLanguage()
|
||||
{
|
||||
return $this->language;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(GoogleCloudAiplatformV1ExecutableCode::class, 'Google_Service_Aiplatform_GoogleCloudAiplatformV1ExecutableCode');
|
||||
42
vendor/google/apiclient-services/src/Aiplatform/GoogleCloudAiplatformV1GenAiAdvancedFeaturesConfig.php
vendored
Executable file
42
vendor/google/apiclient-services/src/Aiplatform/GoogleCloudAiplatformV1GenAiAdvancedFeaturesConfig.php
vendored
Executable file
@ -0,0 +1,42 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
* use this file except in compliance with the License. You may obtain a copy of
|
||||
* the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
|
||||
namespace Google\Service\Aiplatform;
|
||||
|
||||
class GoogleCloudAiplatformV1GenAiAdvancedFeaturesConfig extends \Google\Model
|
||||
{
|
||||
protected $ragConfigType = GoogleCloudAiplatformV1GenAiAdvancedFeaturesConfigRagConfig::class;
|
||||
protected $ragConfigDataType = '';
|
||||
|
||||
/**
|
||||
* @param GoogleCloudAiplatformV1GenAiAdvancedFeaturesConfigRagConfig
|
||||
*/
|
||||
public function setRagConfig(GoogleCloudAiplatformV1GenAiAdvancedFeaturesConfigRagConfig $ragConfig)
|
||||
{
|
||||
$this->ragConfig = $ragConfig;
|
||||
}
|
||||
/**
|
||||
* @return GoogleCloudAiplatformV1GenAiAdvancedFeaturesConfigRagConfig
|
||||
*/
|
||||
public function getRagConfig()
|
||||
{
|
||||
return $this->ragConfig;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(GoogleCloudAiplatformV1GenAiAdvancedFeaturesConfig::class, 'Google_Service_Aiplatform_GoogleCloudAiplatformV1GenAiAdvancedFeaturesConfig');
|
||||
44
vendor/google/apiclient-services/src/Aiplatform/GoogleCloudAiplatformV1GenAiAdvancedFeaturesConfigRagConfig.php
vendored
Executable file
44
vendor/google/apiclient-services/src/Aiplatform/GoogleCloudAiplatformV1GenAiAdvancedFeaturesConfigRagConfig.php
vendored
Executable file
@ -0,0 +1,44 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
* use this file except in compliance with the License. You may obtain a copy of
|
||||
* the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
|
||||
namespace Google\Service\Aiplatform;
|
||||
|
||||
class GoogleCloudAiplatformV1GenAiAdvancedFeaturesConfigRagConfig extends \Google\Model
|
||||
{
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
public $enableRag;
|
||||
|
||||
/**
|
||||
* @param bool
|
||||
*/
|
||||
public function setEnableRag($enableRag)
|
||||
{
|
||||
$this->enableRag = $enableRag;
|
||||
}
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function getEnableRag()
|
||||
{
|
||||
return $this->enableRag;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(GoogleCloudAiplatformV1GenAiAdvancedFeaturesConfigRagConfig::class, 'Google_Service_Aiplatform_GoogleCloudAiplatformV1GenAiAdvancedFeaturesConfigRagConfig');
|
||||
61
vendor/google/apiclient-services/src/Aiplatform/GoogleCloudAiplatformV1ListModelVersionCheckpointsResponse.php
vendored
Executable file
61
vendor/google/apiclient-services/src/Aiplatform/GoogleCloudAiplatformV1ListModelVersionCheckpointsResponse.php
vendored
Executable file
@ -0,0 +1,61 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
* use this file except in compliance with the License. You may obtain a copy of
|
||||
* the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
|
||||
namespace Google\Service\Aiplatform;
|
||||
|
||||
class GoogleCloudAiplatformV1ListModelVersionCheckpointsResponse extends \Google\Collection
|
||||
{
|
||||
protected $collection_key = 'checkpoints';
|
||||
protected $checkpointsType = GoogleCloudAiplatformV1ModelVersionCheckpoint::class;
|
||||
protected $checkpointsDataType = 'array';
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $nextPageToken;
|
||||
|
||||
/**
|
||||
* @param GoogleCloudAiplatformV1ModelVersionCheckpoint[]
|
||||
*/
|
||||
public function setCheckpoints($checkpoints)
|
||||
{
|
||||
$this->checkpoints = $checkpoints;
|
||||
}
|
||||
/**
|
||||
* @return GoogleCloudAiplatformV1ModelVersionCheckpoint[]
|
||||
*/
|
||||
public function getCheckpoints()
|
||||
{
|
||||
return $this->checkpoints;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setNextPageToken($nextPageToken)
|
||||
{
|
||||
$this->nextPageToken = $nextPageToken;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getNextPageToken()
|
||||
{
|
||||
return $this->nextPageToken;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(GoogleCloudAiplatformV1ListModelVersionCheckpointsResponse::class, 'Google_Service_Aiplatform_GoogleCloudAiplatformV1ListModelVersionCheckpointsResponse');
|
||||
125
vendor/google/apiclient-services/src/Aiplatform/GoogleCloudAiplatformV1Metric.php
vendored
Executable file
125
vendor/google/apiclient-services/src/Aiplatform/GoogleCloudAiplatformV1Metric.php
vendored
Executable file
@ -0,0 +1,125 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
* use this file except in compliance with the License. You may obtain a copy of
|
||||
* the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
|
||||
namespace Google\Service\Aiplatform;
|
||||
|
||||
class GoogleCloudAiplatformV1Metric extends \Google\Collection
|
||||
{
|
||||
protected $collection_key = 'aggregationMetrics';
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public $aggregationMetrics;
|
||||
protected $bleuSpecType = GoogleCloudAiplatformV1BleuSpec::class;
|
||||
protected $bleuSpecDataType = '';
|
||||
protected $exactMatchSpecType = GoogleCloudAiplatformV1ExactMatchSpec::class;
|
||||
protected $exactMatchSpecDataType = '';
|
||||
protected $pairwiseMetricSpecType = GoogleCloudAiplatformV1PairwiseMetricSpec::class;
|
||||
protected $pairwiseMetricSpecDataType = '';
|
||||
protected $pointwiseMetricSpecType = GoogleCloudAiplatformV1PointwiseMetricSpec::class;
|
||||
protected $pointwiseMetricSpecDataType = '';
|
||||
protected $rougeSpecType = GoogleCloudAiplatformV1RougeSpec::class;
|
||||
protected $rougeSpecDataType = '';
|
||||
|
||||
/**
|
||||
* @param string[]
|
||||
*/
|
||||
public function setAggregationMetrics($aggregationMetrics)
|
||||
{
|
||||
$this->aggregationMetrics = $aggregationMetrics;
|
||||
}
|
||||
/**
|
||||
* @return string[]
|
||||
*/
|
||||
public function getAggregationMetrics()
|
||||
{
|
||||
return $this->aggregationMetrics;
|
||||
}
|
||||
/**
|
||||
* @param GoogleCloudAiplatformV1BleuSpec
|
||||
*/
|
||||
public function setBleuSpec(GoogleCloudAiplatformV1BleuSpec $bleuSpec)
|
||||
{
|
||||
$this->bleuSpec = $bleuSpec;
|
||||
}
|
||||
/**
|
||||
* @return GoogleCloudAiplatformV1BleuSpec
|
||||
*/
|
||||
public function getBleuSpec()
|
||||
{
|
||||
return $this->bleuSpec;
|
||||
}
|
||||
/**
|
||||
* @param GoogleCloudAiplatformV1ExactMatchSpec
|
||||
*/
|
||||
public function setExactMatchSpec(GoogleCloudAiplatformV1ExactMatchSpec $exactMatchSpec)
|
||||
{
|
||||
$this->exactMatchSpec = $exactMatchSpec;
|
||||
}
|
||||
/**
|
||||
* @return GoogleCloudAiplatformV1ExactMatchSpec
|
||||
*/
|
||||
public function getExactMatchSpec()
|
||||
{
|
||||
return $this->exactMatchSpec;
|
||||
}
|
||||
/**
|
||||
* @param GoogleCloudAiplatformV1PairwiseMetricSpec
|
||||
*/
|
||||
public function setPairwiseMetricSpec(GoogleCloudAiplatformV1PairwiseMetricSpec $pairwiseMetricSpec)
|
||||
{
|
||||
$this->pairwiseMetricSpec = $pairwiseMetricSpec;
|
||||
}
|
||||
/**
|
||||
* @return GoogleCloudAiplatformV1PairwiseMetricSpec
|
||||
*/
|
||||
public function getPairwiseMetricSpec()
|
||||
{
|
||||
return $this->pairwiseMetricSpec;
|
||||
}
|
||||
/**
|
||||
* @param GoogleCloudAiplatformV1PointwiseMetricSpec
|
||||
*/
|
||||
public function setPointwiseMetricSpec(GoogleCloudAiplatformV1PointwiseMetricSpec $pointwiseMetricSpec)
|
||||
{
|
||||
$this->pointwiseMetricSpec = $pointwiseMetricSpec;
|
||||
}
|
||||
/**
|
||||
* @return GoogleCloudAiplatformV1PointwiseMetricSpec
|
||||
*/
|
||||
public function getPointwiseMetricSpec()
|
||||
{
|
||||
return $this->pointwiseMetricSpec;
|
||||
}
|
||||
/**
|
||||
* @param GoogleCloudAiplatformV1RougeSpec
|
||||
*/
|
||||
public function setRougeSpec(GoogleCloudAiplatformV1RougeSpec $rougeSpec)
|
||||
{
|
||||
$this->rougeSpec = $rougeSpec;
|
||||
}
|
||||
/**
|
||||
* @return GoogleCloudAiplatformV1RougeSpec
|
||||
*/
|
||||
public function getRougeSpec()
|
||||
{
|
||||
return $this->rougeSpec;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(GoogleCloudAiplatformV1Metric::class, 'Google_Service_Aiplatform_GoogleCloudAiplatformV1Metric');
|
||||
62
vendor/google/apiclient-services/src/Aiplatform/GoogleCloudAiplatformV1ModalityTokenCount.php
vendored
Executable file
62
vendor/google/apiclient-services/src/Aiplatform/GoogleCloudAiplatformV1ModalityTokenCount.php
vendored
Executable file
@ -0,0 +1,62 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
* use this file except in compliance with the License. You may obtain a copy of
|
||||
* the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
|
||||
namespace Google\Service\Aiplatform;
|
||||
|
||||
class GoogleCloudAiplatformV1ModalityTokenCount extends \Google\Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $modality;
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $tokenCount;
|
||||
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setModality($modality)
|
||||
{
|
||||
$this->modality = $modality;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getModality()
|
||||
{
|
||||
return $this->modality;
|
||||
}
|
||||
/**
|
||||
* @param int
|
||||
*/
|
||||
public function setTokenCount($tokenCount)
|
||||
{
|
||||
$this->tokenCount = $tokenCount;
|
||||
}
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getTokenCount()
|
||||
{
|
||||
return $this->tokenCount;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(GoogleCloudAiplatformV1ModalityTokenCount::class, 'Google_Service_Aiplatform_GoogleCloudAiplatformV1ModalityTokenCount');
|
||||
98
vendor/google/apiclient-services/src/Aiplatform/GoogleCloudAiplatformV1ModelVersionCheckpoint.php
vendored
Executable file
98
vendor/google/apiclient-services/src/Aiplatform/GoogleCloudAiplatformV1ModelVersionCheckpoint.php
vendored
Executable file
@ -0,0 +1,98 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
* use this file except in compliance with the License. You may obtain a copy of
|
||||
* the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
|
||||
namespace Google\Service\Aiplatform;
|
||||
|
||||
class GoogleCloudAiplatformV1ModelVersionCheckpoint extends \Google\Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $checkpointId;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $epoch;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $name;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $step;
|
||||
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setCheckpointId($checkpointId)
|
||||
{
|
||||
$this->checkpointId = $checkpointId;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getCheckpointId()
|
||||
{
|
||||
return $this->checkpointId;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setEpoch($epoch)
|
||||
{
|
||||
$this->epoch = $epoch;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getEpoch()
|
||||
{
|
||||
return $this->epoch;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setName($name)
|
||||
{
|
||||
$this->name = $name;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getName()
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setStep($step)
|
||||
{
|
||||
$this->step = $step;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getStep()
|
||||
{
|
||||
return $this->step;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(GoogleCloudAiplatformV1ModelVersionCheckpoint::class, 'Google_Service_Aiplatform_GoogleCloudAiplatformV1ModelVersionCheckpoint');
|
||||
59
vendor/google/apiclient-services/src/Aiplatform/GoogleCloudAiplatformV1NotebookSoftwareConfig.php
vendored
Executable file
59
vendor/google/apiclient-services/src/Aiplatform/GoogleCloudAiplatformV1NotebookSoftwareConfig.php
vendored
Executable file
@ -0,0 +1,59 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
* use this file except in compliance with the License. You may obtain a copy of
|
||||
* the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
|
||||
namespace Google\Service\Aiplatform;
|
||||
|
||||
class GoogleCloudAiplatformV1NotebookSoftwareConfig extends \Google\Collection
|
||||
{
|
||||
protected $collection_key = 'env';
|
||||
protected $envType = GoogleCloudAiplatformV1EnvVar::class;
|
||||
protected $envDataType = 'array';
|
||||
protected $postStartupScriptConfigType = GoogleCloudAiplatformV1PostStartupScriptConfig::class;
|
||||
protected $postStartupScriptConfigDataType = '';
|
||||
|
||||
/**
|
||||
* @param GoogleCloudAiplatformV1EnvVar[]
|
||||
*/
|
||||
public function setEnv($env)
|
||||
{
|
||||
$this->env = $env;
|
||||
}
|
||||
/**
|
||||
* @return GoogleCloudAiplatformV1EnvVar[]
|
||||
*/
|
||||
public function getEnv()
|
||||
{
|
||||
return $this->env;
|
||||
}
|
||||
/**
|
||||
* @param GoogleCloudAiplatformV1PostStartupScriptConfig
|
||||
*/
|
||||
public function setPostStartupScriptConfig(GoogleCloudAiplatformV1PostStartupScriptConfig $postStartupScriptConfig)
|
||||
{
|
||||
$this->postStartupScriptConfig = $postStartupScriptConfig;
|
||||
}
|
||||
/**
|
||||
* @return GoogleCloudAiplatformV1PostStartupScriptConfig
|
||||
*/
|
||||
public function getPostStartupScriptConfig()
|
||||
{
|
||||
return $this->postStartupScriptConfig;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(GoogleCloudAiplatformV1NotebookSoftwareConfig::class, 'Google_Service_Aiplatform_GoogleCloudAiplatformV1NotebookSoftwareConfig');
|
||||
42
vendor/google/apiclient-services/src/Aiplatform/GoogleCloudAiplatformV1OutputConfig.php
vendored
Executable file
42
vendor/google/apiclient-services/src/Aiplatform/GoogleCloudAiplatformV1OutputConfig.php
vendored
Executable file
@ -0,0 +1,42 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
* use this file except in compliance with the License. You may obtain a copy of
|
||||
* the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
|
||||
namespace Google\Service\Aiplatform;
|
||||
|
||||
class GoogleCloudAiplatformV1OutputConfig extends \Google\Model
|
||||
{
|
||||
protected $gcsDestinationType = GoogleCloudAiplatformV1GcsDestination::class;
|
||||
protected $gcsDestinationDataType = '';
|
||||
|
||||
/**
|
||||
* @param GoogleCloudAiplatformV1GcsDestination
|
||||
*/
|
||||
public function setGcsDestination(GoogleCloudAiplatformV1GcsDestination $gcsDestination)
|
||||
{
|
||||
$this->gcsDestination = $gcsDestination;
|
||||
}
|
||||
/**
|
||||
* @return GoogleCloudAiplatformV1GcsDestination
|
||||
*/
|
||||
public function getGcsDestination()
|
||||
{
|
||||
return $this->gcsDestination;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(GoogleCloudAiplatformV1OutputConfig::class, 'Google_Service_Aiplatform_GoogleCloudAiplatformV1OutputConfig');
|
||||
80
vendor/google/apiclient-services/src/Aiplatform/GoogleCloudAiplatformV1PostStartupScriptConfig.php
vendored
Executable file
80
vendor/google/apiclient-services/src/Aiplatform/GoogleCloudAiplatformV1PostStartupScriptConfig.php
vendored
Executable file
@ -0,0 +1,80 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
* use this file except in compliance with the License. You may obtain a copy of
|
||||
* the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
|
||||
namespace Google\Service\Aiplatform;
|
||||
|
||||
class GoogleCloudAiplatformV1PostStartupScriptConfig extends \Google\Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $postStartupScript;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $postStartupScriptBehavior;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $postStartupScriptUrl;
|
||||
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setPostStartupScript($postStartupScript)
|
||||
{
|
||||
$this->postStartupScript = $postStartupScript;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getPostStartupScript()
|
||||
{
|
||||
return $this->postStartupScript;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setPostStartupScriptBehavior($postStartupScriptBehavior)
|
||||
{
|
||||
$this->postStartupScriptBehavior = $postStartupScriptBehavior;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getPostStartupScriptBehavior()
|
||||
{
|
||||
return $this->postStartupScriptBehavior;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setPostStartupScriptUrl($postStartupScriptUrl)
|
||||
{
|
||||
$this->postStartupScriptUrl = $postStartupScriptUrl;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getPostStartupScriptUrl()
|
||||
{
|
||||
return $this->postStartupScriptUrl;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(GoogleCloudAiplatformV1PostStartupScriptConfig::class, 'Google_Service_Aiplatform_GoogleCloudAiplatformV1PostStartupScriptConfig');
|
||||
60
vendor/google/apiclient-services/src/Aiplatform/GoogleCloudAiplatformV1RetrievalConfig.php
vendored
Executable file
60
vendor/google/apiclient-services/src/Aiplatform/GoogleCloudAiplatformV1RetrievalConfig.php
vendored
Executable file
@ -0,0 +1,60 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
* use this file except in compliance with the License. You may obtain a copy of
|
||||
* the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
|
||||
namespace Google\Service\Aiplatform;
|
||||
|
||||
class GoogleCloudAiplatformV1RetrievalConfig extends \Google\Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $languageCode;
|
||||
protected $latLngType = GoogleTypeLatLng::class;
|
||||
protected $latLngDataType = '';
|
||||
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setLanguageCode($languageCode)
|
||||
{
|
||||
$this->languageCode = $languageCode;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getLanguageCode()
|
||||
{
|
||||
return $this->languageCode;
|
||||
}
|
||||
/**
|
||||
* @param GoogleTypeLatLng
|
||||
*/
|
||||
public function setLatLng(GoogleTypeLatLng $latLng)
|
||||
{
|
||||
$this->latLng = $latLng;
|
||||
}
|
||||
/**
|
||||
* @return GoogleTypeLatLng
|
||||
*/
|
||||
public function getLatLng()
|
||||
{
|
||||
return $this->latLng;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(GoogleCloudAiplatformV1RetrievalConfig::class, 'Google_Service_Aiplatform_GoogleCloudAiplatformV1RetrievalConfig');
|
||||
76
vendor/google/apiclient-services/src/Aiplatform/GoogleCloudAiplatformV1SpeculativeDecodingSpec.php
vendored
Executable file
76
vendor/google/apiclient-services/src/Aiplatform/GoogleCloudAiplatformV1SpeculativeDecodingSpec.php
vendored
Executable file
@ -0,0 +1,76 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
* use this file except in compliance with the License. You may obtain a copy of
|
||||
* the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
|
||||
namespace Google\Service\Aiplatform;
|
||||
|
||||
class GoogleCloudAiplatformV1SpeculativeDecodingSpec extends \Google\Model
|
||||
{
|
||||
protected $draftModelSpeculationType = GoogleCloudAiplatformV1SpeculativeDecodingSpecDraftModelSpeculation::class;
|
||||
protected $draftModelSpeculationDataType = '';
|
||||
protected $ngramSpeculationType = GoogleCloudAiplatformV1SpeculativeDecodingSpecNgramSpeculation::class;
|
||||
protected $ngramSpeculationDataType = '';
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $speculativeTokenCount;
|
||||
|
||||
/**
|
||||
* @param GoogleCloudAiplatformV1SpeculativeDecodingSpecDraftModelSpeculation
|
||||
*/
|
||||
public function setDraftModelSpeculation(GoogleCloudAiplatformV1SpeculativeDecodingSpecDraftModelSpeculation $draftModelSpeculation)
|
||||
{
|
||||
$this->draftModelSpeculation = $draftModelSpeculation;
|
||||
}
|
||||
/**
|
||||
* @return GoogleCloudAiplatformV1SpeculativeDecodingSpecDraftModelSpeculation
|
||||
*/
|
||||
public function getDraftModelSpeculation()
|
||||
{
|
||||
return $this->draftModelSpeculation;
|
||||
}
|
||||
/**
|
||||
* @param GoogleCloudAiplatformV1SpeculativeDecodingSpecNgramSpeculation
|
||||
*/
|
||||
public function setNgramSpeculation(GoogleCloudAiplatformV1SpeculativeDecodingSpecNgramSpeculation $ngramSpeculation)
|
||||
{
|
||||
$this->ngramSpeculation = $ngramSpeculation;
|
||||
}
|
||||
/**
|
||||
* @return GoogleCloudAiplatformV1SpeculativeDecodingSpecNgramSpeculation
|
||||
*/
|
||||
public function getNgramSpeculation()
|
||||
{
|
||||
return $this->ngramSpeculation;
|
||||
}
|
||||
/**
|
||||
* @param int
|
||||
*/
|
||||
public function setSpeculativeTokenCount($speculativeTokenCount)
|
||||
{
|
||||
$this->speculativeTokenCount = $speculativeTokenCount;
|
||||
}
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getSpeculativeTokenCount()
|
||||
{
|
||||
return $this->speculativeTokenCount;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(GoogleCloudAiplatformV1SpeculativeDecodingSpec::class, 'Google_Service_Aiplatform_GoogleCloudAiplatformV1SpeculativeDecodingSpec');
|
||||
@ -0,0 +1,44 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
* use this file except in compliance with the License. You may obtain a copy of
|
||||
* the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
|
||||
namespace Google\Service\Aiplatform;
|
||||
|
||||
class GoogleCloudAiplatformV1SpeculativeDecodingSpecDraftModelSpeculation extends \Google\Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $draftModel;
|
||||
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setDraftModel($draftModel)
|
||||
{
|
||||
$this->draftModel = $draftModel;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getDraftModel()
|
||||
{
|
||||
return $this->draftModel;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(GoogleCloudAiplatformV1SpeculativeDecodingSpecDraftModelSpeculation::class, 'Google_Service_Aiplatform_GoogleCloudAiplatformV1SpeculativeDecodingSpecDraftModelSpeculation');
|
||||
@ -0,0 +1,44 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
* use this file except in compliance with the License. You may obtain a copy of
|
||||
* the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
|
||||
namespace Google\Service\Aiplatform;
|
||||
|
||||
class GoogleCloudAiplatformV1SpeculativeDecodingSpecNgramSpeculation extends \Google\Model
|
||||
{
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $ngramSize;
|
||||
|
||||
/**
|
||||
* @param int
|
||||
*/
|
||||
public function setNgramSize($ngramSize)
|
||||
{
|
||||
$this->ngramSize = $ngramSize;
|
||||
}
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getNgramSize()
|
||||
{
|
||||
return $this->ngramSize;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(GoogleCloudAiplatformV1SpeculativeDecodingSpecNgramSpeculation::class, 'Google_Service_Aiplatform_GoogleCloudAiplatformV1SpeculativeDecodingSpecNgramSpeculation');
|
||||
25
vendor/google/apiclient-services/src/Aiplatform/GoogleCloudAiplatformV1ToolCodeExecution.php
vendored
Executable file
25
vendor/google/apiclient-services/src/Aiplatform/GoogleCloudAiplatformV1ToolCodeExecution.php
vendored
Executable file
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
* use this file except in compliance with the License. You may obtain a copy of
|
||||
* the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
|
||||
namespace Google\Service\Aiplatform;
|
||||
|
||||
class GoogleCloudAiplatformV1ToolCodeExecution extends \Google\Model
|
||||
{
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(GoogleCloudAiplatformV1ToolCodeExecution::class, 'Google_Service_Aiplatform_GoogleCloudAiplatformV1ToolCodeExecution');
|
||||
44
vendor/google/apiclient-services/src/Aiplatform/GoogleTypeLatLng.php
vendored
Executable file
44
vendor/google/apiclient-services/src/Aiplatform/GoogleTypeLatLng.php
vendored
Executable file
@ -0,0 +1,44 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
* use this file except in compliance with the License. You may obtain a copy of
|
||||
* the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
|
||||
namespace Google\Service\Aiplatform;
|
||||
|
||||
class GoogleTypeLatLng extends \Google\Model
|
||||
{
|
||||
public $latitude;
|
||||
public $longitude;
|
||||
|
||||
public function setLatitude($latitude)
|
||||
{
|
||||
$this->latitude = $latitude;
|
||||
}
|
||||
public function getLatitude()
|
||||
{
|
||||
return $this->latitude;
|
||||
}
|
||||
public function setLongitude($longitude)
|
||||
{
|
||||
$this->longitude = $longitude;
|
||||
}
|
||||
public function getLongitude()
|
||||
{
|
||||
return $this->longitude;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(GoogleTypeLatLng::class, 'Google_Service_Aiplatform_GoogleTypeLatLng');
|
||||
62
vendor/google/apiclient-services/src/AnalyticsHub/JavaScriptUDF.php
vendored
Executable file
62
vendor/google/apiclient-services/src/AnalyticsHub/JavaScriptUDF.php
vendored
Executable file
@ -0,0 +1,62 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
* use this file except in compliance with the License. You may obtain a copy of
|
||||
* the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
|
||||
namespace Google\Service\AnalyticsHub;
|
||||
|
||||
class JavaScriptUDF extends \Google\Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $code;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $functionName;
|
||||
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setCode($code)
|
||||
{
|
||||
$this->code = $code;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getCode()
|
||||
{
|
||||
return $this->code;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setFunctionName($functionName)
|
||||
{
|
||||
$this->functionName = $functionName;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getFunctionName()
|
||||
{
|
||||
return $this->functionName;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(JavaScriptUDF::class, 'Google_Service_AnalyticsHub_JavaScriptUDF');
|
||||
60
vendor/google/apiclient-services/src/AnalyticsHub/MessageTransform.php
vendored
Executable file
60
vendor/google/apiclient-services/src/AnalyticsHub/MessageTransform.php
vendored
Executable file
@ -0,0 +1,60 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
* use this file except in compliance with the License. You may obtain a copy of
|
||||
* the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
|
||||
namespace Google\Service\AnalyticsHub;
|
||||
|
||||
class MessageTransform extends \Google\Model
|
||||
{
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
public $enabled;
|
||||
protected $javascriptUdfType = JavaScriptUDF::class;
|
||||
protected $javascriptUdfDataType = '';
|
||||
|
||||
/**
|
||||
* @param bool
|
||||
*/
|
||||
public function setEnabled($enabled)
|
||||
{
|
||||
$this->enabled = $enabled;
|
||||
}
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function getEnabled()
|
||||
{
|
||||
return $this->enabled;
|
||||
}
|
||||
/**
|
||||
* @param JavaScriptUDF
|
||||
*/
|
||||
public function setJavascriptUdf(JavaScriptUDF $javascriptUdf)
|
||||
{
|
||||
$this->javascriptUdf = $javascriptUdf;
|
||||
}
|
||||
/**
|
||||
* @return JavaScriptUDF
|
||||
*/
|
||||
public function getJavascriptUdf()
|
||||
{
|
||||
return $this->javascriptUdf;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(MessageTransform::class, 'Google_Service_AnalyticsHub_MessageTransform');
|
||||
53
vendor/google/apiclient-services/src/AndroidEnterprise/Resource/EnrollmentTokens.php
vendored
Executable file
53
vendor/google/apiclient-services/src/AndroidEnterprise/Resource/EnrollmentTokens.php
vendored
Executable file
@ -0,0 +1,53 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
* use this file except in compliance with the License. You may obtain a copy of
|
||||
* the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
|
||||
namespace Google\Service\AndroidEnterprise\Resource;
|
||||
|
||||
use Google\Service\AndroidEnterprise\EnrollmentToken;
|
||||
|
||||
/**
|
||||
* The "enrollmentTokens" collection of methods.
|
||||
* Typical usage is:
|
||||
* <code>
|
||||
* $androidenterpriseService = new Google\Service\AndroidEnterprise(...);
|
||||
* $enrollmentTokens = $androidenterpriseService->enrollmentTokens;
|
||||
* </code>
|
||||
*/
|
||||
class EnrollmentTokens extends \Google\Service\Resource
|
||||
{
|
||||
/**
|
||||
* Returns a token for device enrollment. The DPC can encode this token within
|
||||
* the QR/NFC/zero-touch enrollment payload or fetch it before calling the on-
|
||||
* device API to authenticate the user. The token can be generated for each
|
||||
* device or reused across multiple devices. (enrollmentTokens.create)
|
||||
*
|
||||
* @param string $enterpriseId Required. The ID of the enterprise.
|
||||
* @param EnrollmentToken $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return EnrollmentToken
|
||||
* @throws \Google\Service\Exception
|
||||
*/
|
||||
public function create($enterpriseId, EnrollmentToken $postBody, $optParams = [])
|
||||
{
|
||||
$params = ['enterpriseId' => $enterpriseId, 'postBody' => $postBody];
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('create', [$params], EnrollmentToken::class);
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(EnrollmentTokens::class, 'Google_Service_AndroidEnterprise_Resource_EnrollmentTokens');
|
||||
98
vendor/google/apiclient-services/src/Apigee/GoogleCloudApigeeV1ApiDebugSession.php
vendored
Executable file
98
vendor/google/apiclient-services/src/Apigee/GoogleCloudApigeeV1ApiDebugSession.php
vendored
Executable file
@ -0,0 +1,98 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
* use this file except in compliance with the License. You may obtain a copy of
|
||||
* the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
|
||||
namespace Google\Service\Apigee;
|
||||
|
||||
class GoogleCloudApigeeV1ApiDebugSession extends \Google\Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $apiProxyRevisionId;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $createTime;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $environmentId;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $id;
|
||||
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setApiProxyRevisionId($apiProxyRevisionId)
|
||||
{
|
||||
$this->apiProxyRevisionId = $apiProxyRevisionId;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getApiProxyRevisionId()
|
||||
{
|
||||
return $this->apiProxyRevisionId;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setCreateTime($createTime)
|
||||
{
|
||||
$this->createTime = $createTime;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getCreateTime()
|
||||
{
|
||||
return $this->createTime;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setEnvironmentId($environmentId)
|
||||
{
|
||||
$this->environmentId = $environmentId;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getEnvironmentId()
|
||||
{
|
||||
return $this->environmentId;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setId($id)
|
||||
{
|
||||
$this->id = $id;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getId()
|
||||
{
|
||||
return $this->id;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(GoogleCloudApigeeV1ApiDebugSession::class, 'Google_Service_Apigee_GoogleCloudApigeeV1ApiDebugSession');
|
||||
61
vendor/google/apiclient-services/src/Apigee/GoogleCloudApigeeV1ListApiDebugSessionsResponse.php
vendored
Executable file
61
vendor/google/apiclient-services/src/Apigee/GoogleCloudApigeeV1ListApiDebugSessionsResponse.php
vendored
Executable file
@ -0,0 +1,61 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
* use this file except in compliance with the License. You may obtain a copy of
|
||||
* the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
|
||||
namespace Google\Service\Apigee;
|
||||
|
||||
class GoogleCloudApigeeV1ListApiDebugSessionsResponse extends \Google\Collection
|
||||
{
|
||||
protected $collection_key = 'sessions';
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $nextPageToken;
|
||||
protected $sessionsType = GoogleCloudApigeeV1ApiDebugSession::class;
|
||||
protected $sessionsDataType = 'array';
|
||||
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setNextPageToken($nextPageToken)
|
||||
{
|
||||
$this->nextPageToken = $nextPageToken;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getNextPageToken()
|
||||
{
|
||||
return $this->nextPageToken;
|
||||
}
|
||||
/**
|
||||
* @param GoogleCloudApigeeV1ApiDebugSession[]
|
||||
*/
|
||||
public function setSessions($sessions)
|
||||
{
|
||||
$this->sessions = $sessions;
|
||||
}
|
||||
/**
|
||||
* @return GoogleCloudApigeeV1ApiDebugSession[]
|
||||
*/
|
||||
public function getSessions()
|
||||
{
|
||||
return $this->sessions;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(GoogleCloudApigeeV1ListApiDebugSessionsResponse::class, 'Google_Service_Apigee_GoogleCloudApigeeV1ListApiDebugSessionsResponse');
|
||||
57
vendor/google/apiclient-services/src/Apigee/Resource/OrganizationsApisDebugsessions.php
vendored
Executable file
57
vendor/google/apiclient-services/src/Apigee/Resource/OrganizationsApisDebugsessions.php
vendored
Executable file
@ -0,0 +1,57 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
* use this file except in compliance with the License. You may obtain a copy of
|
||||
* the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
|
||||
namespace Google\Service\Apigee\Resource;
|
||||
|
||||
use Google\Service\Apigee\GoogleCloudApigeeV1ListApiDebugSessionsResponse;
|
||||
|
||||
/**
|
||||
* The "debugsessions" collection of methods.
|
||||
* Typical usage is:
|
||||
* <code>
|
||||
* $apigeeService = new Google\Service\Apigee(...);
|
||||
* $debugsessions = $apigeeService->organizations_apis_debugsessions;
|
||||
* </code>
|
||||
*/
|
||||
class OrganizationsApisDebugsessions extends \Google\Service\Resource
|
||||
{
|
||||
/**
|
||||
* Lists debug sessions that are currently active in the given API Proxy.
|
||||
* (debugsessions.listOrganizationsApisDebugsessions)
|
||||
*
|
||||
* @param string $parent Required. The name of the API Proxy for which to list
|
||||
* debug sessions. Must be of the form:
|
||||
* `organizations/{organization}/apis/{api}`.
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param int pageSize Optional. Maximum number of debug sessions to return.
|
||||
* The page size defaults to 25.
|
||||
* @opt_param string pageToken Optional. Page token, returned from a previous
|
||||
* ListApiDebugSessions call, that you can use to retrieve the next page.
|
||||
* @return GoogleCloudApigeeV1ListApiDebugSessionsResponse
|
||||
* @throws \Google\Service\Exception
|
||||
*/
|
||||
public function listOrganizationsApisDebugsessions($parent, $optParams = [])
|
||||
{
|
||||
$params = ['parent' => $parent];
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('list', [$params], GoogleCloudApigeeV1ListApiDebugSessionsResponse::class);
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(OrganizationsApisDebugsessions::class, 'Google_Service_Apigee_Resource_OrganizationsApisDebugsessions');
|
||||
217
vendor/google/apiclient-services/src/Backupdr/BackupConfigDetails.php
vendored
Executable file
217
vendor/google/apiclient-services/src/Backupdr/BackupConfigDetails.php
vendored
Executable file
@ -0,0 +1,217 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
* use this file except in compliance with the License. You may obtain a copy of
|
||||
* the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
|
||||
namespace Google\Service\Backupdr;
|
||||
|
||||
class BackupConfigDetails extends \Google\Collection
|
||||
{
|
||||
protected $collection_key = 'backupLocations';
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $applicableResource;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $backupConfigSource;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $backupConfigSourceDisplayName;
|
||||
protected $backupDrPlanConfigType = BackupDrPlanConfig::class;
|
||||
protected $backupDrPlanConfigDataType = '';
|
||||
protected $backupDrTemplateConfigType = BackupDrTemplateConfig::class;
|
||||
protected $backupDrTemplateConfigDataType = '';
|
||||
protected $backupLocationsType = BackupLocation::class;
|
||||
protected $backupLocationsDataType = 'array';
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $backupVault;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $latestSuccessfulBackupTime;
|
||||
protected $pitrSettingsType = PitrSettings::class;
|
||||
protected $pitrSettingsDataType = '';
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $state;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $type;
|
||||
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setApplicableResource($applicableResource)
|
||||
{
|
||||
$this->applicableResource = $applicableResource;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getApplicableResource()
|
||||
{
|
||||
return $this->applicableResource;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setBackupConfigSource($backupConfigSource)
|
||||
{
|
||||
$this->backupConfigSource = $backupConfigSource;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getBackupConfigSource()
|
||||
{
|
||||
return $this->backupConfigSource;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setBackupConfigSourceDisplayName($backupConfigSourceDisplayName)
|
||||
{
|
||||
$this->backupConfigSourceDisplayName = $backupConfigSourceDisplayName;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getBackupConfigSourceDisplayName()
|
||||
{
|
||||
return $this->backupConfigSourceDisplayName;
|
||||
}
|
||||
/**
|
||||
* @param BackupDrPlanConfig
|
||||
*/
|
||||
public function setBackupDrPlanConfig(BackupDrPlanConfig $backupDrPlanConfig)
|
||||
{
|
||||
$this->backupDrPlanConfig = $backupDrPlanConfig;
|
||||
}
|
||||
/**
|
||||
* @return BackupDrPlanConfig
|
||||
*/
|
||||
public function getBackupDrPlanConfig()
|
||||
{
|
||||
return $this->backupDrPlanConfig;
|
||||
}
|
||||
/**
|
||||
* @param BackupDrTemplateConfig
|
||||
*/
|
||||
public function setBackupDrTemplateConfig(BackupDrTemplateConfig $backupDrTemplateConfig)
|
||||
{
|
||||
$this->backupDrTemplateConfig = $backupDrTemplateConfig;
|
||||
}
|
||||
/**
|
||||
* @return BackupDrTemplateConfig
|
||||
*/
|
||||
public function getBackupDrTemplateConfig()
|
||||
{
|
||||
return $this->backupDrTemplateConfig;
|
||||
}
|
||||
/**
|
||||
* @param BackupLocation[]
|
||||
*/
|
||||
public function setBackupLocations($backupLocations)
|
||||
{
|
||||
$this->backupLocations = $backupLocations;
|
||||
}
|
||||
/**
|
||||
* @return BackupLocation[]
|
||||
*/
|
||||
public function getBackupLocations()
|
||||
{
|
||||
return $this->backupLocations;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setBackupVault($backupVault)
|
||||
{
|
||||
$this->backupVault = $backupVault;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getBackupVault()
|
||||
{
|
||||
return $this->backupVault;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setLatestSuccessfulBackupTime($latestSuccessfulBackupTime)
|
||||
{
|
||||
$this->latestSuccessfulBackupTime = $latestSuccessfulBackupTime;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getLatestSuccessfulBackupTime()
|
||||
{
|
||||
return $this->latestSuccessfulBackupTime;
|
||||
}
|
||||
/**
|
||||
* @param PitrSettings
|
||||
*/
|
||||
public function setPitrSettings(PitrSettings $pitrSettings)
|
||||
{
|
||||
$this->pitrSettings = $pitrSettings;
|
||||
}
|
||||
/**
|
||||
* @return PitrSettings
|
||||
*/
|
||||
public function getPitrSettings()
|
||||
{
|
||||
return $this->pitrSettings;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setState($state)
|
||||
{
|
||||
$this->state = $state;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getState()
|
||||
{
|
||||
return $this->state;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setType($type)
|
||||
{
|
||||
$this->type = $type;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getType()
|
||||
{
|
||||
return $this->type;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(BackupConfigDetails::class, 'Google_Service_Backupdr_BackupConfigDetails');
|
||||
43
vendor/google/apiclient-services/src/Backupdr/BackupDrPlanConfig.php
vendored
Executable file
43
vendor/google/apiclient-services/src/Backupdr/BackupDrPlanConfig.php
vendored
Executable file
@ -0,0 +1,43 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
* use this file except in compliance with the License. You may obtain a copy of
|
||||
* the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
|
||||
namespace Google\Service\Backupdr;
|
||||
|
||||
class BackupDrPlanConfig extends \Google\Collection
|
||||
{
|
||||
protected $collection_key = 'backupDrPlanRules';
|
||||
protected $backupDrPlanRulesType = BackupDrPlanRule::class;
|
||||
protected $backupDrPlanRulesDataType = 'array';
|
||||
|
||||
/**
|
||||
* @param BackupDrPlanRule[]
|
||||
*/
|
||||
public function setBackupDrPlanRules($backupDrPlanRules)
|
||||
{
|
||||
$this->backupDrPlanRules = $backupDrPlanRules;
|
||||
}
|
||||
/**
|
||||
* @return BackupDrPlanRule[]
|
||||
*/
|
||||
public function getBackupDrPlanRules()
|
||||
{
|
||||
return $this->backupDrPlanRules;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(BackupDrPlanConfig::class, 'Google_Service_Backupdr_BackupDrPlanConfig');
|
||||
62
vendor/google/apiclient-services/src/Backupdr/BackupDrPlanRule.php
vendored
Executable file
62
vendor/google/apiclient-services/src/Backupdr/BackupDrPlanRule.php
vendored
Executable file
@ -0,0 +1,62 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
* use this file except in compliance with the License. You may obtain a copy of
|
||||
* the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
|
||||
namespace Google\Service\Backupdr;
|
||||
|
||||
class BackupDrPlanRule extends \Google\Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $lastSuccessfulBackupTime;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $ruleId;
|
||||
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setLastSuccessfulBackupTime($lastSuccessfulBackupTime)
|
||||
{
|
||||
$this->lastSuccessfulBackupTime = $lastSuccessfulBackupTime;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getLastSuccessfulBackupTime()
|
||||
{
|
||||
return $this->lastSuccessfulBackupTime;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setRuleId($ruleId)
|
||||
{
|
||||
$this->ruleId = $ruleId;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getRuleId()
|
||||
{
|
||||
return $this->ruleId;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(BackupDrPlanRule::class, 'Google_Service_Backupdr_BackupDrPlanRule');
|
||||
62
vendor/google/apiclient-services/src/Backupdr/BackupDrTemplateConfig.php
vendored
Executable file
62
vendor/google/apiclient-services/src/Backupdr/BackupDrTemplateConfig.php
vendored
Executable file
@ -0,0 +1,62 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
* use this file except in compliance with the License. You may obtain a copy of
|
||||
* the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
|
||||
namespace Google\Service\Backupdr;
|
||||
|
||||
class BackupDrTemplateConfig extends \Google\Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $firstPartyManagementUri;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $thirdPartyManagementUri;
|
||||
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setFirstPartyManagementUri($firstPartyManagementUri)
|
||||
{
|
||||
$this->firstPartyManagementUri = $firstPartyManagementUri;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getFirstPartyManagementUri()
|
||||
{
|
||||
return $this->firstPartyManagementUri;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setThirdPartyManagementUri($thirdPartyManagementUri)
|
||||
{
|
||||
$this->thirdPartyManagementUri = $thirdPartyManagementUri;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getThirdPartyManagementUri()
|
||||
{
|
||||
return $this->thirdPartyManagementUri;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(BackupDrTemplateConfig::class, 'Google_Service_Backupdr_BackupDrTemplateConfig');
|
||||
62
vendor/google/apiclient-services/src/Backupdr/BackupLocation.php
vendored
Executable file
62
vendor/google/apiclient-services/src/Backupdr/BackupLocation.php
vendored
Executable file
@ -0,0 +1,62 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
* use this file except in compliance with the License. You may obtain a copy of
|
||||
* the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
|
||||
namespace Google\Service\Backupdr;
|
||||
|
||||
class BackupLocation extends \Google\Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $locationId;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $type;
|
||||
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setLocationId($locationId)
|
||||
{
|
||||
$this->locationId = $locationId;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getLocationId()
|
||||
{
|
||||
return $this->locationId;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setType($type)
|
||||
{
|
||||
$this->type = $type;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getType()
|
||||
{
|
||||
return $this->type;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(BackupLocation::class, 'Google_Service_Backupdr_BackupLocation');
|
||||
61
vendor/google/apiclient-services/src/Backupdr/ListResourceBackupConfigsResponse.php
vendored
Executable file
61
vendor/google/apiclient-services/src/Backupdr/ListResourceBackupConfigsResponse.php
vendored
Executable file
@ -0,0 +1,61 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
* use this file except in compliance with the License. You may obtain a copy of
|
||||
* the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
|
||||
namespace Google\Service\Backupdr;
|
||||
|
||||
class ListResourceBackupConfigsResponse extends \Google\Collection
|
||||
{
|
||||
protected $collection_key = 'resourceBackupConfigs';
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $nextPageToken;
|
||||
protected $resourceBackupConfigsType = ResourceBackupConfig::class;
|
||||
protected $resourceBackupConfigsDataType = 'array';
|
||||
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setNextPageToken($nextPageToken)
|
||||
{
|
||||
$this->nextPageToken = $nextPageToken;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getNextPageToken()
|
||||
{
|
||||
return $this->nextPageToken;
|
||||
}
|
||||
/**
|
||||
* @param ResourceBackupConfig[]
|
||||
*/
|
||||
public function setResourceBackupConfigs($resourceBackupConfigs)
|
||||
{
|
||||
$this->resourceBackupConfigs = $resourceBackupConfigs;
|
||||
}
|
||||
/**
|
||||
* @return ResourceBackupConfig[]
|
||||
*/
|
||||
public function getResourceBackupConfigs()
|
||||
{
|
||||
return $this->resourceBackupConfigs;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(ListResourceBackupConfigsResponse::class, 'Google_Service_Backupdr_ListResourceBackupConfigsResponse');
|
||||
44
vendor/google/apiclient-services/src/Backupdr/PitrSettings.php
vendored
Executable file
44
vendor/google/apiclient-services/src/Backupdr/PitrSettings.php
vendored
Executable file
@ -0,0 +1,44 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
* use this file except in compliance with the License. You may obtain a copy of
|
||||
* the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
|
||||
namespace Google\Service\Backupdr;
|
||||
|
||||
class PitrSettings extends \Google\Model
|
||||
{
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $retentionDays;
|
||||
|
||||
/**
|
||||
* @param int
|
||||
*/
|
||||
public function setRetentionDays($retentionDays)
|
||||
{
|
||||
$this->retentionDays = $retentionDays;
|
||||
}
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getRetentionDays()
|
||||
{
|
||||
return $this->retentionDays;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(PitrSettings::class, 'Google_Service_Backupdr_PitrSettings');
|
||||
61
vendor/google/apiclient-services/src/Backupdr/Resource/ProjectsLocationsResourceBackupConfigs.php
vendored
Executable file
61
vendor/google/apiclient-services/src/Backupdr/Resource/ProjectsLocationsResourceBackupConfigs.php
vendored
Executable file
@ -0,0 +1,61 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
* use this file except in compliance with the License. You may obtain a copy of
|
||||
* the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
|
||||
namespace Google\Service\Backupdr\Resource;
|
||||
|
||||
use Google\Service\Backupdr\ListResourceBackupConfigsResponse;
|
||||
|
||||
/**
|
||||
* The "resourceBackupConfigs" collection of methods.
|
||||
* Typical usage is:
|
||||
* <code>
|
||||
* $backupdrService = new Google\Service\Backupdr(...);
|
||||
* $resourceBackupConfigs = $backupdrService->projects_locations_resourceBackupConfigs;
|
||||
* </code>
|
||||
*/
|
||||
class ProjectsLocationsResourceBackupConfigs extends \Google\Service\Resource
|
||||
{
|
||||
/**
|
||||
* Lists ResourceBackupConfigs.
|
||||
* (resourceBackupConfigs.listProjectsLocationsResourceBackupConfigs)
|
||||
*
|
||||
* @param string $parent Required. The project and location for which to
|
||||
* retrieve resource backup configs. Format:
|
||||
* 'projects/{project_id}/locations/{location}'. In Cloud Backup and DR,
|
||||
* locations map to Google Cloud regions, for example **us-central1**.
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param string filter Optional. Filtering results.
|
||||
* @opt_param string orderBy Optional. Hint for how to order the results.
|
||||
* @opt_param int pageSize Optional. Requested page size. Server may return
|
||||
* fewer items than requested. If unspecified, server will pick an appropriate
|
||||
* default.
|
||||
* @opt_param string pageToken Optional. A token identifying a page of results
|
||||
* the server should return.
|
||||
* @return ListResourceBackupConfigsResponse
|
||||
* @throws \Google\Service\Exception
|
||||
*/
|
||||
public function listProjectsLocationsResourceBackupConfigs($parent, $optParams = [])
|
||||
{
|
||||
$params = ['parent' => $parent];
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('list', [$params], ListResourceBackupConfigsResponse::class);
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(ProjectsLocationsResourceBackupConfigs::class, 'Google_Service_Backupdr_Resource_ProjectsLocationsResourceBackupConfigs');
|
||||
187
vendor/google/apiclient-services/src/Backupdr/ResourceBackupConfig.php
vendored
Executable file
187
vendor/google/apiclient-services/src/Backupdr/ResourceBackupConfig.php
vendored
Executable file
@ -0,0 +1,187 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
* use this file except in compliance with the License. You may obtain a copy of
|
||||
* the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
|
||||
namespace Google\Service\Backupdr;
|
||||
|
||||
class ResourceBackupConfig extends \Google\Collection
|
||||
{
|
||||
protected $collection_key = 'backupConfigsDetails';
|
||||
protected $backupConfigsDetailsType = BackupConfigDetails::class;
|
||||
protected $backupConfigsDetailsDataType = 'array';
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
public $backupConfigured;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $name;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $targetResource;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $targetResourceDisplayName;
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public $targetResourceLabels;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $targetResourceType;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $uid;
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
public $vaulted;
|
||||
|
||||
/**
|
||||
* @param BackupConfigDetails[]
|
||||
*/
|
||||
public function setBackupConfigsDetails($backupConfigsDetails)
|
||||
{
|
||||
$this->backupConfigsDetails = $backupConfigsDetails;
|
||||
}
|
||||
/**
|
||||
* @return BackupConfigDetails[]
|
||||
*/
|
||||
public function getBackupConfigsDetails()
|
||||
{
|
||||
return $this->backupConfigsDetails;
|
||||
}
|
||||
/**
|
||||
* @param bool
|
||||
*/
|
||||
public function setBackupConfigured($backupConfigured)
|
||||
{
|
||||
$this->backupConfigured = $backupConfigured;
|
||||
}
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function getBackupConfigured()
|
||||
{
|
||||
return $this->backupConfigured;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setName($name)
|
||||
{
|
||||
$this->name = $name;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getName()
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setTargetResource($targetResource)
|
||||
{
|
||||
$this->targetResource = $targetResource;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getTargetResource()
|
||||
{
|
||||
return $this->targetResource;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setTargetResourceDisplayName($targetResourceDisplayName)
|
||||
{
|
||||
$this->targetResourceDisplayName = $targetResourceDisplayName;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getTargetResourceDisplayName()
|
||||
{
|
||||
return $this->targetResourceDisplayName;
|
||||
}
|
||||
/**
|
||||
* @param string[]
|
||||
*/
|
||||
public function setTargetResourceLabels($targetResourceLabels)
|
||||
{
|
||||
$this->targetResourceLabels = $targetResourceLabels;
|
||||
}
|
||||
/**
|
||||
* @return string[]
|
||||
*/
|
||||
public function getTargetResourceLabels()
|
||||
{
|
||||
return $this->targetResourceLabels;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setTargetResourceType($targetResourceType)
|
||||
{
|
||||
$this->targetResourceType = $targetResourceType;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getTargetResourceType()
|
||||
{
|
||||
return $this->targetResourceType;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setUid($uid)
|
||||
{
|
||||
$this->uid = $uid;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getUid()
|
||||
{
|
||||
return $this->uid;
|
||||
}
|
||||
/**
|
||||
* @param bool
|
||||
*/
|
||||
public function setVaulted($vaulted)
|
||||
{
|
||||
$this->vaulted = $vaulted;
|
||||
}
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function getVaulted()
|
||||
{
|
||||
return $this->vaulted;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(ResourceBackupConfig::class, 'Google_Service_Backupdr_ResourceBackupConfig');
|
||||
44
vendor/google/apiclient-services/src/Batch/CancelJobRequest.php
vendored
Executable file
44
vendor/google/apiclient-services/src/Batch/CancelJobRequest.php
vendored
Executable file
@ -0,0 +1,44 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
* use this file except in compliance with the License. You may obtain a copy of
|
||||
* the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
|
||||
namespace Google\Service\Batch;
|
||||
|
||||
class CancelJobRequest extends \Google\Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $requestId;
|
||||
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setRequestId($requestId)
|
||||
{
|
||||
$this->requestId = $requestId;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getRequestId()
|
||||
{
|
||||
return $this->requestId;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(CancelJobRequest::class, 'Google_Service_Batch_CancelJobRequest');
|
||||
96
vendor/google/apiclient-services/src/BigQueryReservation/ReplicationStatus.php
vendored
Executable file
96
vendor/google/apiclient-services/src/BigQueryReservation/ReplicationStatus.php
vendored
Executable file
@ -0,0 +1,96 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
* use this file except in compliance with the License. You may obtain a copy of
|
||||
* the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
|
||||
namespace Google\Service\BigQueryReservation;
|
||||
|
||||
class ReplicationStatus extends \Google\Model
|
||||
{
|
||||
protected $errorType = Status::class;
|
||||
protected $errorDataType = '';
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $lastErrorTime;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $lastReplicationTime;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $softFailoverStartTime;
|
||||
|
||||
/**
|
||||
* @param Status
|
||||
*/
|
||||
public function setError(Status $error)
|
||||
{
|
||||
$this->error = $error;
|
||||
}
|
||||
/**
|
||||
* @return Status
|
||||
*/
|
||||
public function getError()
|
||||
{
|
||||
return $this->error;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setLastErrorTime($lastErrorTime)
|
||||
{
|
||||
$this->lastErrorTime = $lastErrorTime;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getLastErrorTime()
|
||||
{
|
||||
return $this->lastErrorTime;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setLastReplicationTime($lastReplicationTime)
|
||||
{
|
||||
$this->lastReplicationTime = $lastReplicationTime;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getLastReplicationTime()
|
||||
{
|
||||
return $this->lastReplicationTime;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setSoftFailoverStartTime($softFailoverStartTime)
|
||||
{
|
||||
$this->softFailoverStartTime = $softFailoverStartTime;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getSoftFailoverStartTime()
|
||||
{
|
||||
return $this->softFailoverStartTime;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(ReplicationStatus::class, 'Google_Service_BigQueryReservation_ReplicationStatus');
|
||||
63
vendor/google/apiclient-services/src/Bigquery/BatchDeleteRowAccessPoliciesRequest.php
vendored
Executable file
63
vendor/google/apiclient-services/src/Bigquery/BatchDeleteRowAccessPoliciesRequest.php
vendored
Executable file
@ -0,0 +1,63 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
* use this file except in compliance with the License. You may obtain a copy of
|
||||
* the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
|
||||
namespace Google\Service\Bigquery;
|
||||
|
||||
class BatchDeleteRowAccessPoliciesRequest extends \Google\Collection
|
||||
{
|
||||
protected $collection_key = 'policyIds';
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
public $force;
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public $policyIds;
|
||||
|
||||
/**
|
||||
* @param bool
|
||||
*/
|
||||
public function setForce($force)
|
||||
{
|
||||
$this->force = $force;
|
||||
}
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function getForce()
|
||||
{
|
||||
return $this->force;
|
||||
}
|
||||
/**
|
||||
* @param string[]
|
||||
*/
|
||||
public function setPolicyIds($policyIds)
|
||||
{
|
||||
$this->policyIds = $policyIds;
|
||||
}
|
||||
/**
|
||||
* @return string[]
|
||||
*/
|
||||
public function getPolicyIds()
|
||||
{
|
||||
return $this->policyIds;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(BatchDeleteRowAccessPoliciesRequest::class, 'Google_Service_Bigquery_BatchDeleteRowAccessPoliciesRequest');
|
||||
81
vendor/google/apiclient-services/src/Bigquery/StoredColumnsUnusedReason.php
vendored
Executable file
81
vendor/google/apiclient-services/src/Bigquery/StoredColumnsUnusedReason.php
vendored
Executable file
@ -0,0 +1,81 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
* use this file except in compliance with the License. You may obtain a copy of
|
||||
* the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
|
||||
namespace Google\Service\Bigquery;
|
||||
|
||||
class StoredColumnsUnusedReason extends \Google\Collection
|
||||
{
|
||||
protected $collection_key = 'uncoveredColumns';
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $code;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $message;
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public $uncoveredColumns;
|
||||
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setCode($code)
|
||||
{
|
||||
$this->code = $code;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getCode()
|
||||
{
|
||||
return $this->code;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setMessage($message)
|
||||
{
|
||||
$this->message = $message;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getMessage()
|
||||
{
|
||||
return $this->message;
|
||||
}
|
||||
/**
|
||||
* @param string[]
|
||||
*/
|
||||
public function setUncoveredColumns($uncoveredColumns)
|
||||
{
|
||||
$this->uncoveredColumns = $uncoveredColumns;
|
||||
}
|
||||
/**
|
||||
* @return string[]
|
||||
*/
|
||||
public function getUncoveredColumns()
|
||||
{
|
||||
return $this->uncoveredColumns;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(StoredColumnsUnusedReason::class, 'Google_Service_Bigquery_StoredColumnsUnusedReason');
|
||||
77
vendor/google/apiclient-services/src/Bigquery/StoredColumnsUsage.php
vendored
Executable file
77
vendor/google/apiclient-services/src/Bigquery/StoredColumnsUsage.php
vendored
Executable file
@ -0,0 +1,77 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
* use this file except in compliance with the License. You may obtain a copy of
|
||||
* the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
|
||||
namespace Google\Service\Bigquery;
|
||||
|
||||
class StoredColumnsUsage extends \Google\Collection
|
||||
{
|
||||
protected $collection_key = 'storedColumnsUnusedReasons';
|
||||
protected $baseTableType = TableReference::class;
|
||||
protected $baseTableDataType = '';
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
public $isQueryAccelerated;
|
||||
protected $storedColumnsUnusedReasonsType = StoredColumnsUnusedReason::class;
|
||||
protected $storedColumnsUnusedReasonsDataType = 'array';
|
||||
|
||||
/**
|
||||
* @param TableReference
|
||||
*/
|
||||
public function setBaseTable(TableReference $baseTable)
|
||||
{
|
||||
$this->baseTable = $baseTable;
|
||||
}
|
||||
/**
|
||||
* @return TableReference
|
||||
*/
|
||||
public function getBaseTable()
|
||||
{
|
||||
return $this->baseTable;
|
||||
}
|
||||
/**
|
||||
* @param bool
|
||||
*/
|
||||
public function setIsQueryAccelerated($isQueryAccelerated)
|
||||
{
|
||||
$this->isQueryAccelerated = $isQueryAccelerated;
|
||||
}
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function getIsQueryAccelerated()
|
||||
{
|
||||
return $this->isQueryAccelerated;
|
||||
}
|
||||
/**
|
||||
* @param StoredColumnsUnusedReason[]
|
||||
*/
|
||||
public function setStoredColumnsUnusedReasons($storedColumnsUnusedReasons)
|
||||
{
|
||||
$this->storedColumnsUnusedReasons = $storedColumnsUnusedReasons;
|
||||
}
|
||||
/**
|
||||
* @return StoredColumnsUnusedReason[]
|
||||
*/
|
||||
public function getStoredColumnsUnusedReasons()
|
||||
{
|
||||
return $this->storedColumnsUnusedReasons;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(StoredColumnsUsage::class, 'Google_Service_Bigquery_StoredColumnsUsage');
|
||||
63
vendor/google/apiclient-services/src/CertificateAuthorityService/UserDefinedAccessUrls.php
vendored
Executable file
63
vendor/google/apiclient-services/src/CertificateAuthorityService/UserDefinedAccessUrls.php
vendored
Executable file
@ -0,0 +1,63 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
* use this file except in compliance with the License. You may obtain a copy of
|
||||
* the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
|
||||
namespace Google\Service\CertificateAuthorityService;
|
||||
|
||||
class UserDefinedAccessUrls extends \Google\Collection
|
||||
{
|
||||
protected $collection_key = 'crlAccessUrls';
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public $aiaIssuingCertificateUrls;
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public $crlAccessUrls;
|
||||
|
||||
/**
|
||||
* @param string[]
|
||||
*/
|
||||
public function setAiaIssuingCertificateUrls($aiaIssuingCertificateUrls)
|
||||
{
|
||||
$this->aiaIssuingCertificateUrls = $aiaIssuingCertificateUrls;
|
||||
}
|
||||
/**
|
||||
* @return string[]
|
||||
*/
|
||||
public function getAiaIssuingCertificateUrls()
|
||||
{
|
||||
return $this->aiaIssuingCertificateUrls;
|
||||
}
|
||||
/**
|
||||
* @param string[]
|
||||
*/
|
||||
public function setCrlAccessUrls($crlAccessUrls)
|
||||
{
|
||||
$this->crlAccessUrls = $crlAccessUrls;
|
||||
}
|
||||
/**
|
||||
* @return string[]
|
||||
*/
|
||||
public function getCrlAccessUrls()
|
||||
{
|
||||
return $this->crlAccessUrls;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(UserDefinedAccessUrls::class, 'Google_Service_CertificateAuthorityService_UserDefinedAccessUrls');
|
||||
44
vendor/google/apiclient-services/src/CertificateManager/UsedBy.php
vendored
Executable file
44
vendor/google/apiclient-services/src/CertificateManager/UsedBy.php
vendored
Executable file
@ -0,0 +1,44 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
* use this file except in compliance with the License. You may obtain a copy of
|
||||
* the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
|
||||
namespace Google\Service\CertificateManager;
|
||||
|
||||
class UsedBy extends \Google\Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $name;
|
||||
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setName($name)
|
||||
{
|
||||
$this->name = $name;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getName()
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(UsedBy::class, 'Google_Service_CertificateManager_UsedBy');
|
||||
44
vendor/google/apiclient-services/src/ChromeManagement/GoogleChromeManagementVersionsV1GenericCaConnection.php
vendored
Executable file
44
vendor/google/apiclient-services/src/ChromeManagement/GoogleChromeManagementVersionsV1GenericCaConnection.php
vendored
Executable file
@ -0,0 +1,44 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
* use this file except in compliance with the License. You may obtain a copy of
|
||||
* the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
|
||||
namespace Google\Service\ChromeManagement;
|
||||
|
||||
class GoogleChromeManagementVersionsV1GenericCaConnection extends \Google\Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $caConnectionAdapterConfigReference;
|
||||
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setCaConnectionAdapterConfigReference($caConnectionAdapterConfigReference)
|
||||
{
|
||||
$this->caConnectionAdapterConfigReference = $caConnectionAdapterConfigReference;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getCaConnectionAdapterConfigReference()
|
||||
{
|
||||
return $this->caConnectionAdapterConfigReference;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(GoogleChromeManagementVersionsV1GenericCaConnection::class, 'Google_Service_ChromeManagement_GoogleChromeManagementVersionsV1GenericCaConnection');
|
||||
44
vendor/google/apiclient-services/src/ChromeManagement/GoogleChromeManagementVersionsV1GenericProfile.php
vendored
Executable file
44
vendor/google/apiclient-services/src/ChromeManagement/GoogleChromeManagementVersionsV1GenericProfile.php
vendored
Executable file
@ -0,0 +1,44 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
* use this file except in compliance with the License. You may obtain a copy of
|
||||
* the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
|
||||
namespace Google\Service\ChromeManagement;
|
||||
|
||||
class GoogleChromeManagementVersionsV1GenericProfile extends \Google\Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $profileAdapterConfigReference;
|
||||
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setProfileAdapterConfigReference($profileAdapterConfigReference)
|
||||
{
|
||||
$this->profileAdapterConfigReference = $profileAdapterConfigReference;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getProfileAdapterConfigReference()
|
||||
{
|
||||
return $this->profileAdapterConfigReference;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(GoogleChromeManagementVersionsV1GenericProfile::class, 'Google_Service_ChromeManagement_GoogleChromeManagementVersionsV1GenericProfile');
|
||||
@ -0,0 +1,44 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
* use this file except in compliance with the License. You may obtain a copy of
|
||||
* the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
|
||||
namespace Google\Service\ChromeManagement;
|
||||
|
||||
class GoogleChromeManagementVersionsV1alpha1GenericCaConnection extends \Google\Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $caConnectionAdapterConfigReference;
|
||||
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setCaConnectionAdapterConfigReference($caConnectionAdapterConfigReference)
|
||||
{
|
||||
$this->caConnectionAdapterConfigReference = $caConnectionAdapterConfigReference;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getCaConnectionAdapterConfigReference()
|
||||
{
|
||||
return $this->caConnectionAdapterConfigReference;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(GoogleChromeManagementVersionsV1alpha1GenericCaConnection::class, 'Google_Service_ChromeManagement_GoogleChromeManagementVersionsV1alpha1GenericCaConnection');
|
||||
44
vendor/google/apiclient-services/src/ChromeManagement/GoogleChromeManagementVersionsV1alpha1GenericProfile.php
vendored
Executable file
44
vendor/google/apiclient-services/src/ChromeManagement/GoogleChromeManagementVersionsV1alpha1GenericProfile.php
vendored
Executable file
@ -0,0 +1,44 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
* use this file except in compliance with the License. You may obtain a copy of
|
||||
* the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
|
||||
namespace Google\Service\ChromeManagement;
|
||||
|
||||
class GoogleChromeManagementVersionsV1alpha1GenericProfile extends \Google\Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $profileAdapterConfigReference;
|
||||
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setProfileAdapterConfigReference($profileAdapterConfigReference)
|
||||
{
|
||||
$this->profileAdapterConfigReference = $profileAdapterConfigReference;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getProfileAdapterConfigReference()
|
||||
{
|
||||
return $this->profileAdapterConfigReference;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(GoogleChromeManagementVersionsV1alpha1GenericProfile::class, 'Google_Service_ChromeManagement_GoogleChromeManagementVersionsV1alpha1GenericProfile');
|
||||
80
vendor/google/apiclient-services/src/CloudAlloyDBAdmin/CloudSQLBackupRunSource.php
vendored
Executable file
80
vendor/google/apiclient-services/src/CloudAlloyDBAdmin/CloudSQLBackupRunSource.php
vendored
Executable file
@ -0,0 +1,80 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
* use this file except in compliance with the License. You may obtain a copy of
|
||||
* the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
|
||||
namespace Google\Service\CloudAlloyDBAdmin;
|
||||
|
||||
class CloudSQLBackupRunSource extends \Google\Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $backupRunId;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $instanceId;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $project;
|
||||
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setBackupRunId($backupRunId)
|
||||
{
|
||||
$this->backupRunId = $backupRunId;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getBackupRunId()
|
||||
{
|
||||
return $this->backupRunId;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setInstanceId($instanceId)
|
||||
{
|
||||
$this->instanceId = $instanceId;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getInstanceId()
|
||||
{
|
||||
return $this->instanceId;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setProject($project)
|
||||
{
|
||||
$this->project = $project;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getProject()
|
||||
{
|
||||
return $this->project;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(CloudSQLBackupRunSource::class, 'Google_Service_CloudAlloyDBAdmin_CloudSQLBackupRunSource');
|
||||
117
vendor/google/apiclient-services/src/CloudAlloyDBAdmin/CsvImportOptions.php
vendored
Executable file
117
vendor/google/apiclient-services/src/CloudAlloyDBAdmin/CsvImportOptions.php
vendored
Executable file
@ -0,0 +1,117 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
* use this file except in compliance with the License. You may obtain a copy of
|
||||
* the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
|
||||
namespace Google\Service\CloudAlloyDBAdmin;
|
||||
|
||||
class CsvImportOptions extends \Google\Collection
|
||||
{
|
||||
protected $collection_key = 'columns';
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public $columns;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $escapeCharacter;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $fieldDelimiter;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $quoteCharacter;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $table;
|
||||
|
||||
/**
|
||||
* @param string[]
|
||||
*/
|
||||
public function setColumns($columns)
|
||||
{
|
||||
$this->columns = $columns;
|
||||
}
|
||||
/**
|
||||
* @return string[]
|
||||
*/
|
||||
public function getColumns()
|
||||
{
|
||||
return $this->columns;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setEscapeCharacter($escapeCharacter)
|
||||
{
|
||||
$this->escapeCharacter = $escapeCharacter;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getEscapeCharacter()
|
||||
{
|
||||
return $this->escapeCharacter;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setFieldDelimiter($fieldDelimiter)
|
||||
{
|
||||
$this->fieldDelimiter = $fieldDelimiter;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getFieldDelimiter()
|
||||
{
|
||||
return $this->fieldDelimiter;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setQuoteCharacter($quoteCharacter)
|
||||
{
|
||||
$this->quoteCharacter = $quoteCharacter;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getQuoteCharacter()
|
||||
{
|
||||
return $this->quoteCharacter;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setTable($table)
|
||||
{
|
||||
$this->table = $table;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getTable()
|
||||
{
|
||||
return $this->table;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(CsvImportOptions::class, 'Google_Service_CloudAlloyDBAdmin_CsvImportOptions');
|
||||
112
vendor/google/apiclient-services/src/CloudAlloyDBAdmin/ImportClusterRequest.php
vendored
Executable file
112
vendor/google/apiclient-services/src/CloudAlloyDBAdmin/ImportClusterRequest.php
vendored
Executable file
@ -0,0 +1,112 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
* use this file except in compliance with the License. You may obtain a copy of
|
||||
* the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
|
||||
namespace Google\Service\CloudAlloyDBAdmin;
|
||||
|
||||
class ImportClusterRequest extends \Google\Model
|
||||
{
|
||||
protected $csvImportOptionsType = CsvImportOptions::class;
|
||||
protected $csvImportOptionsDataType = '';
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $database;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $gcsUri;
|
||||
protected $sqlImportOptionsType = SqlImportOptions::class;
|
||||
protected $sqlImportOptionsDataType = '';
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $user;
|
||||
|
||||
/**
|
||||
* @param CsvImportOptions
|
||||
*/
|
||||
public function setCsvImportOptions(CsvImportOptions $csvImportOptions)
|
||||
{
|
||||
$this->csvImportOptions = $csvImportOptions;
|
||||
}
|
||||
/**
|
||||
* @return CsvImportOptions
|
||||
*/
|
||||
public function getCsvImportOptions()
|
||||
{
|
||||
return $this->csvImportOptions;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setDatabase($database)
|
||||
{
|
||||
$this->database = $database;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getDatabase()
|
||||
{
|
||||
return $this->database;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setGcsUri($gcsUri)
|
||||
{
|
||||
$this->gcsUri = $gcsUri;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getGcsUri()
|
||||
{
|
||||
return $this->gcsUri;
|
||||
}
|
||||
/**
|
||||
* @param SqlImportOptions
|
||||
*/
|
||||
public function setSqlImportOptions(SqlImportOptions $sqlImportOptions)
|
||||
{
|
||||
$this->sqlImportOptions = $sqlImportOptions;
|
||||
}
|
||||
/**
|
||||
* @return SqlImportOptions
|
||||
*/
|
||||
public function getSqlImportOptions()
|
||||
{
|
||||
return $this->sqlImportOptions;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setUser($user)
|
||||
{
|
||||
$this->user = $user;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getUser()
|
||||
{
|
||||
return $this->user;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(ImportClusterRequest::class, 'Google_Service_CloudAlloyDBAdmin_ImportClusterRequest');
|
||||
44
vendor/google/apiclient-services/src/CloudAlloyDBAdmin/ImportClusterResponse.php
vendored
Executable file
44
vendor/google/apiclient-services/src/CloudAlloyDBAdmin/ImportClusterResponse.php
vendored
Executable file
@ -0,0 +1,44 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
* use this file except in compliance with the License. You may obtain a copy of
|
||||
* the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
|
||||
namespace Google\Service\CloudAlloyDBAdmin;
|
||||
|
||||
class ImportClusterResponse extends \Google\Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $bytesDownloaded;
|
||||
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setBytesDownloaded($bytesDownloaded)
|
||||
{
|
||||
$this->bytesDownloaded = $bytesDownloaded;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getBytesDownloaded()
|
||||
{
|
||||
return $this->bytesDownloaded;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(ImportClusterResponse::class, 'Google_Service_CloudAlloyDBAdmin_ImportClusterResponse');
|
||||
44
vendor/google/apiclient-services/src/CloudAlloyDBAdmin/PscInterfaceConfig.php
vendored
Executable file
44
vendor/google/apiclient-services/src/CloudAlloyDBAdmin/PscInterfaceConfig.php
vendored
Executable file
@ -0,0 +1,44 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
* use this file except in compliance with the License. You may obtain a copy of
|
||||
* the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
|
||||
namespace Google\Service\CloudAlloyDBAdmin;
|
||||
|
||||
class PscInterfaceConfig extends \Google\Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $networkAttachmentResource;
|
||||
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setNetworkAttachmentResource($networkAttachmentResource)
|
||||
{
|
||||
$this->networkAttachmentResource = $networkAttachmentResource;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getNetworkAttachmentResource()
|
||||
{
|
||||
return $this->networkAttachmentResource;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(PscInterfaceConfig::class, 'Google_Service_CloudAlloyDBAdmin_PscInterfaceConfig');
|
||||
25
vendor/google/apiclient-services/src/CloudAlloyDBAdmin/SqlImportOptions.php
vendored
Executable file
25
vendor/google/apiclient-services/src/CloudAlloyDBAdmin/SqlImportOptions.php
vendored
Executable file
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
* use this file except in compliance with the License. You may obtain a copy of
|
||||
* the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
|
||||
namespace Google\Service\CloudAlloyDBAdmin;
|
||||
|
||||
class SqlImportOptions extends \Google\Model
|
||||
{
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(SqlImportOptions::class, 'Google_Service_CloudAlloyDBAdmin_SqlImportOptions');
|
||||
25
vendor/google/apiclient-services/src/CloudFunctions/DetachFunctionRequest.php
vendored
Executable file
25
vendor/google/apiclient-services/src/CloudFunctions/DetachFunctionRequest.php
vendored
Executable file
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
* use this file except in compliance with the License. You may obtain a copy of
|
||||
* the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
|
||||
namespace Google\Service\CloudFunctions;
|
||||
|
||||
class DetachFunctionRequest extends \Google\Model
|
||||
{
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(DetachFunctionRequest::class, 'Google_Service_CloudFunctions_DetachFunctionRequest');
|
||||
44
vendor/google/apiclient-services/src/CloudHealthcare/BulkExportGcsDestination.php
vendored
Executable file
44
vendor/google/apiclient-services/src/CloudHealthcare/BulkExportGcsDestination.php
vendored
Executable file
@ -0,0 +1,44 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
* use this file except in compliance with the License. You may obtain a copy of
|
||||
* the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
|
||||
namespace Google\Service\CloudHealthcare;
|
||||
|
||||
class BulkExportGcsDestination extends \Google\Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $uriPrefix;
|
||||
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setUriPrefix($uriPrefix)
|
||||
{
|
||||
$this->uriPrefix = $uriPrefix;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getUriPrefix()
|
||||
{
|
||||
return $this->uriPrefix;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(BulkExportGcsDestination::class, 'Google_Service_CloudHealthcare_BulkExportGcsDestination');
|
||||
82
vendor/google/apiclient-services/src/CloudHealthcare/Resource/ProjectsLocationsDatasetsFhirStoresOperations.php
vendored
Executable file
82
vendor/google/apiclient-services/src/CloudHealthcare/Resource/ProjectsLocationsDatasetsFhirStoresOperations.php
vendored
Executable file
@ -0,0 +1,82 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
* use this file except in compliance with the License. You may obtain a copy of
|
||||
* the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
|
||||
namespace Google\Service\CloudHealthcare\Resource;
|
||||
|
||||
use Google\Service\CloudHealthcare\HttpBody;
|
||||
|
||||
/**
|
||||
* The "operations" collection of methods.
|
||||
* Typical usage is:
|
||||
* <code>
|
||||
* $healthcareService = new Google\Service\CloudHealthcare(...);
|
||||
* $operations = $healthcareService->projects_locations_datasets_fhirStores_operations;
|
||||
* </code>
|
||||
*/
|
||||
class ProjectsLocationsDatasetsFhirStoresOperations extends \Google\Service\Resource
|
||||
{
|
||||
/**
|
||||
* Deletes operations as defined in the FHIR specification. Implements the FHIR
|
||||
* implementation guide [bulk data delete
|
||||
* request](https://build.fhir.org/ig/HL7/bulk-data/export.html#bulk-data-
|
||||
* delete-request). Returns success if the operation was successfully cancelled.
|
||||
* If the operation is complete, or has already been cancelled, returns an error
|
||||
* response. (operations.deleteFhirOperation)
|
||||
*
|
||||
* @param string $name Required. Name of the operation to be deleted, in the
|
||||
* format `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/f
|
||||
* hirStores/{fhir_store_id}/operations/{operation_id}`.
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return HttpBody
|
||||
* @throws \Google\Service\Exception
|
||||
*/
|
||||
public function deleteFhirOperation($name, $optParams = [])
|
||||
{
|
||||
$params = ['name' => $name];
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('delete-fhir-operation', [$params], HttpBody::class);
|
||||
}
|
||||
/**
|
||||
* Gets the status of operations as defined in the FHIR specification.
|
||||
* Implements the FHIR implementation guide [bulk data status
|
||||
* request](https://build.fhir.org/ig/HL7/bulk-data/export.html#bulk-data-
|
||||
* status-request). Operations can have one of these states: * in-progress:
|
||||
* response status code is `202` and `X-Progress` header is set to `in
|
||||
* progress`. * complete: response status code is `200` and the body is a JSON-
|
||||
* encoded operation response as defined by the spec. For a bulk export, this
|
||||
* response is defined in https://build.fhir.org/ig/HL7/bulk-
|
||||
* data/export.html#response---complete-status. * error: response status code is
|
||||
* `5XX`, and the body is a JSON-encoded `OperationOutcome` resource describing
|
||||
* the reason for the error. (operations.getFhirOperationStatus)
|
||||
*
|
||||
* @param string $name Required. Name of the operation to query, in the format `
|
||||
* projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/fhirStore
|
||||
* s/{fhir_store_id}/operations/{operation_id}`.
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return HttpBody
|
||||
* @throws \Google\Service\Exception
|
||||
*/
|
||||
public function getFhirOperationStatus($name, $optParams = [])
|
||||
{
|
||||
$params = ['name' => $name];
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('get-fhir-operation-status', [$params], HttpBody::class);
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(ProjectsLocationsDatasetsFhirStoresOperations::class, 'Google_Service_CloudHealthcare_Resource_ProjectsLocationsDatasetsFhirStoresOperations');
|
||||
62
vendor/google/apiclient-services/src/CloudKMS/ChecksummedData.php
vendored
Executable file
62
vendor/google/apiclient-services/src/CloudKMS/ChecksummedData.php
vendored
Executable file
@ -0,0 +1,62 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
* use this file except in compliance with the License. You may obtain a copy of
|
||||
* the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
|
||||
namespace Google\Service\CloudKMS;
|
||||
|
||||
class ChecksummedData extends \Google\Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $crc32cChecksum;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $data;
|
||||
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setCrc32cChecksum($crc32cChecksum)
|
||||
{
|
||||
$this->crc32cChecksum = $crc32cChecksum;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getCrc32cChecksum()
|
||||
{
|
||||
return $this->crc32cChecksum;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setData($data)
|
||||
{
|
||||
$this->data = $data;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getData()
|
||||
{
|
||||
return $this->data;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(ChecksummedData::class, 'Google_Service_CloudKMS_ChecksummedData');
|
||||
99
vendor/google/apiclient-services/src/CloudRedis/EncryptionInfo.php
vendored
Executable file
99
vendor/google/apiclient-services/src/CloudRedis/EncryptionInfo.php
vendored
Executable file
@ -0,0 +1,99 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
* use this file except in compliance with the License. You may obtain a copy of
|
||||
* the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
|
||||
namespace Google\Service\CloudRedis;
|
||||
|
||||
class EncryptionInfo extends \Google\Collection
|
||||
{
|
||||
protected $collection_key = 'kmsKeyVersions';
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $encryptionType;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $kmsKeyPrimaryState;
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public $kmsKeyVersions;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $lastUpdateTime;
|
||||
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setEncryptionType($encryptionType)
|
||||
{
|
||||
$this->encryptionType = $encryptionType;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getEncryptionType()
|
||||
{
|
||||
return $this->encryptionType;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setKmsKeyPrimaryState($kmsKeyPrimaryState)
|
||||
{
|
||||
$this->kmsKeyPrimaryState = $kmsKeyPrimaryState;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getKmsKeyPrimaryState()
|
||||
{
|
||||
return $this->kmsKeyPrimaryState;
|
||||
}
|
||||
/**
|
||||
* @param string[]
|
||||
*/
|
||||
public function setKmsKeyVersions($kmsKeyVersions)
|
||||
{
|
||||
$this->kmsKeyVersions = $kmsKeyVersions;
|
||||
}
|
||||
/**
|
||||
* @return string[]
|
||||
*/
|
||||
public function getKmsKeyVersions()
|
||||
{
|
||||
return $this->kmsKeyVersions;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setLastUpdateTime($lastUpdateTime)
|
||||
{
|
||||
$this->lastUpdateTime = $lastUpdateTime;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getLastUpdateTime()
|
||||
{
|
||||
return $this->lastUpdateTime;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(EncryptionInfo::class, 'Google_Service_CloudRedis_EncryptionInfo');
|
||||
44
vendor/google/apiclient-services/src/CloudRedis/GCBDRConfiguration.php
vendored
Executable file
44
vendor/google/apiclient-services/src/CloudRedis/GCBDRConfiguration.php
vendored
Executable file
@ -0,0 +1,44 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
* use this file except in compliance with the License. You may obtain a copy of
|
||||
* the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
|
||||
namespace Google\Service\CloudRedis;
|
||||
|
||||
class GCBDRConfiguration extends \Google\Model
|
||||
{
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
public $gcbdrManaged;
|
||||
|
||||
/**
|
||||
* @param bool
|
||||
*/
|
||||
public function setGcbdrManaged($gcbdrManaged)
|
||||
{
|
||||
$this->gcbdrManaged = $gcbdrManaged;
|
||||
}
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function getGcbdrManaged()
|
||||
{
|
||||
return $this->gcbdrManaged;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(GCBDRConfiguration::class, 'Google_Service_CloudRedis_GCBDRConfiguration');
|
||||
44
vendor/google/apiclient-services/src/CloudRetail/GoogleCloudRetailV2RulePinAction.php
vendored
Executable file
44
vendor/google/apiclient-services/src/CloudRetail/GoogleCloudRetailV2RulePinAction.php
vendored
Executable file
@ -0,0 +1,44 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
* use this file except in compliance with the License. You may obtain a copy of
|
||||
* the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
|
||||
namespace Google\Service\CloudRetail;
|
||||
|
||||
class GoogleCloudRetailV2RulePinAction extends \Google\Model
|
||||
{
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public $pinMap;
|
||||
|
||||
/**
|
||||
* @param string[]
|
||||
*/
|
||||
public function setPinMap($pinMap)
|
||||
{
|
||||
$this->pinMap = $pinMap;
|
||||
}
|
||||
/**
|
||||
* @return string[]
|
||||
*/
|
||||
public function getPinMap()
|
||||
{
|
||||
return $this->pinMap;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(GoogleCloudRetailV2RulePinAction::class, 'Google_Service_CloudRetail_GoogleCloudRetailV2RulePinAction');
|
||||
188
vendor/google/apiclient-services/src/CloudRun/GoogleCloudRunV2BuildConfig.php
vendored
Executable file
188
vendor/google/apiclient-services/src/CloudRun/GoogleCloudRunV2BuildConfig.php
vendored
Executable file
@ -0,0 +1,188 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
* use this file except in compliance with the License. You may obtain a copy of
|
||||
* the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
|
||||
namespace Google\Service\CloudRun;
|
||||
|
||||
class GoogleCloudRunV2BuildConfig extends \Google\Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $baseImage;
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
public $enableAutomaticUpdates;
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public $environmentVariables;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $functionTarget;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $imageUri;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $name;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $serviceAccount;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $sourceLocation;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $workerPool;
|
||||
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setBaseImage($baseImage)
|
||||
{
|
||||
$this->baseImage = $baseImage;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getBaseImage()
|
||||
{
|
||||
return $this->baseImage;
|
||||
}
|
||||
/**
|
||||
* @param bool
|
||||
*/
|
||||
public function setEnableAutomaticUpdates($enableAutomaticUpdates)
|
||||
{
|
||||
$this->enableAutomaticUpdates = $enableAutomaticUpdates;
|
||||
}
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function getEnableAutomaticUpdates()
|
||||
{
|
||||
return $this->enableAutomaticUpdates;
|
||||
}
|
||||
/**
|
||||
* @param string[]
|
||||
*/
|
||||
public function setEnvironmentVariables($environmentVariables)
|
||||
{
|
||||
$this->environmentVariables = $environmentVariables;
|
||||
}
|
||||
/**
|
||||
* @return string[]
|
||||
*/
|
||||
public function getEnvironmentVariables()
|
||||
{
|
||||
return $this->environmentVariables;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setFunctionTarget($functionTarget)
|
||||
{
|
||||
$this->functionTarget = $functionTarget;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getFunctionTarget()
|
||||
{
|
||||
return $this->functionTarget;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setImageUri($imageUri)
|
||||
{
|
||||
$this->imageUri = $imageUri;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getImageUri()
|
||||
{
|
||||
return $this->imageUri;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setName($name)
|
||||
{
|
||||
$this->name = $name;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getName()
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setServiceAccount($serviceAccount)
|
||||
{
|
||||
$this->serviceAccount = $serviceAccount;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getServiceAccount()
|
||||
{
|
||||
return $this->serviceAccount;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setSourceLocation($sourceLocation)
|
||||
{
|
||||
$this->sourceLocation = $sourceLocation;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getSourceLocation()
|
||||
{
|
||||
return $this->sourceLocation;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setWorkerPool($workerPool)
|
||||
{
|
||||
$this->workerPool = $workerPool;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getWorkerPool()
|
||||
{
|
||||
return $this->workerPool;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(GoogleCloudRunV2BuildConfig::class, 'Google_Service_CloudRun_GoogleCloudRunV2BuildConfig');
|
||||
62
vendor/google/apiclient-services/src/CloudRun/GoogleCloudRunV2BuildInfo.php
vendored
Executable file
62
vendor/google/apiclient-services/src/CloudRun/GoogleCloudRunV2BuildInfo.php
vendored
Executable file
@ -0,0 +1,62 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
* use this file except in compliance with the License. You may obtain a copy of
|
||||
* the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
|
||||
namespace Google\Service\CloudRun;
|
||||
|
||||
class GoogleCloudRunV2BuildInfo extends \Google\Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $functionTarget;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $sourceLocation;
|
||||
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setFunctionTarget($functionTarget)
|
||||
{
|
||||
$this->functionTarget = $functionTarget;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getFunctionTarget()
|
||||
{
|
||||
return $this->functionTarget;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setSourceLocation($sourceLocation)
|
||||
{
|
||||
$this->sourceLocation = $sourceLocation;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getSourceLocation()
|
||||
{
|
||||
return $this->sourceLocation;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(GoogleCloudRunV2BuildInfo::class, 'Google_Service_CloudRun_GoogleCloudRunV2BuildInfo');
|
||||
80
vendor/google/apiclient-services/src/CloudRun/GoogleCloudRunV2InstanceSplit.php
vendored
Executable file
80
vendor/google/apiclient-services/src/CloudRun/GoogleCloudRunV2InstanceSplit.php
vendored
Executable file
@ -0,0 +1,80 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
* use this file except in compliance with the License. You may obtain a copy of
|
||||
* the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
|
||||
namespace Google\Service\CloudRun;
|
||||
|
||||
class GoogleCloudRunV2InstanceSplit extends \Google\Model
|
||||
{
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $percent;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $revision;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $type;
|
||||
|
||||
/**
|
||||
* @param int
|
||||
*/
|
||||
public function setPercent($percent)
|
||||
{
|
||||
$this->percent = $percent;
|
||||
}
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getPercent()
|
||||
{
|
||||
return $this->percent;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setRevision($revision)
|
||||
{
|
||||
$this->revision = $revision;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getRevision()
|
||||
{
|
||||
return $this->revision;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setType($type)
|
||||
{
|
||||
$this->type = $type;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getType()
|
||||
{
|
||||
return $this->type;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(GoogleCloudRunV2InstanceSplit::class, 'Google_Service_CloudRun_GoogleCloudRunV2InstanceSplit');
|
||||
80
vendor/google/apiclient-services/src/CloudRun/GoogleCloudRunV2InstanceSplitStatus.php
vendored
Executable file
80
vendor/google/apiclient-services/src/CloudRun/GoogleCloudRunV2InstanceSplitStatus.php
vendored
Executable file
@ -0,0 +1,80 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
* use this file except in compliance with the License. You may obtain a copy of
|
||||
* the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
|
||||
namespace Google\Service\CloudRun;
|
||||
|
||||
class GoogleCloudRunV2InstanceSplitStatus extends \Google\Model
|
||||
{
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $percent;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $revision;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $type;
|
||||
|
||||
/**
|
||||
* @param int
|
||||
*/
|
||||
public function setPercent($percent)
|
||||
{
|
||||
$this->percent = $percent;
|
||||
}
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getPercent()
|
||||
{
|
||||
return $this->percent;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setRevision($revision)
|
||||
{
|
||||
$this->revision = $revision;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getRevision()
|
||||
{
|
||||
return $this->revision;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setType($type)
|
||||
{
|
||||
$this->type = $type;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getType()
|
||||
{
|
||||
return $this->type;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(GoogleCloudRunV2InstanceSplitStatus::class, 'Google_Service_CloudRun_GoogleCloudRunV2InstanceSplitStatus');
|
||||
61
vendor/google/apiclient-services/src/CloudRun/GoogleCloudRunV2ListWorkerPoolsResponse.php
vendored
Executable file
61
vendor/google/apiclient-services/src/CloudRun/GoogleCloudRunV2ListWorkerPoolsResponse.php
vendored
Executable file
@ -0,0 +1,61 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
* use this file except in compliance with the License. You may obtain a copy of
|
||||
* the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
|
||||
namespace Google\Service\CloudRun;
|
||||
|
||||
class GoogleCloudRunV2ListWorkerPoolsResponse extends \Google\Collection
|
||||
{
|
||||
protected $collection_key = 'workerPools';
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $nextPageToken;
|
||||
protected $workerPoolsType = GoogleCloudRunV2WorkerPool::class;
|
||||
protected $workerPoolsDataType = 'array';
|
||||
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setNextPageToken($nextPageToken)
|
||||
{
|
||||
$this->nextPageToken = $nextPageToken;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getNextPageToken()
|
||||
{
|
||||
return $this->nextPageToken;
|
||||
}
|
||||
/**
|
||||
* @param GoogleCloudRunV2WorkerPool[]
|
||||
*/
|
||||
public function setWorkerPools($workerPools)
|
||||
{
|
||||
$this->workerPools = $workerPools;
|
||||
}
|
||||
/**
|
||||
* @return GoogleCloudRunV2WorkerPool[]
|
||||
*/
|
||||
public function getWorkerPools()
|
||||
{
|
||||
return $this->workerPools;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(GoogleCloudRunV2ListWorkerPoolsResponse::class, 'Google_Service_CloudRun_GoogleCloudRunV2ListWorkerPoolsResponse');
|
||||
535
vendor/google/apiclient-services/src/CloudRun/GoogleCloudRunV2WorkerPool.php
vendored
Executable file
535
vendor/google/apiclient-services/src/CloudRun/GoogleCloudRunV2WorkerPool.php
vendored
Executable file
@ -0,0 +1,535 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
* use this file except in compliance with the License. You may obtain a copy of
|
||||
* the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
|
||||
namespace Google\Service\CloudRun;
|
||||
|
||||
class GoogleCloudRunV2WorkerPool extends \Google\Collection
|
||||
{
|
||||
protected $collection_key = 'instanceSplits';
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public $annotations;
|
||||
protected $binaryAuthorizationType = GoogleCloudRunV2BinaryAuthorization::class;
|
||||
protected $binaryAuthorizationDataType = '';
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $client;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $clientVersion;
|
||||
protected $conditionsType = GoogleCloudRunV2Condition::class;
|
||||
protected $conditionsDataType = 'array';
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $createTime;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $creator;
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public $customAudiences;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $deleteTime;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $description;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $etag;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $expireTime;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $generation;
|
||||
protected $instanceSplitStatusesType = GoogleCloudRunV2InstanceSplitStatus::class;
|
||||
protected $instanceSplitStatusesDataType = 'array';
|
||||
protected $instanceSplitsType = GoogleCloudRunV2InstanceSplit::class;
|
||||
protected $instanceSplitsDataType = 'array';
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public $labels;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $lastModifier;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $latestCreatedRevision;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $latestReadyRevision;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $launchStage;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $name;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $observedGeneration;
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
public $reconciling;
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
public $satisfiesPzs;
|
||||
protected $scalingType = GoogleCloudRunV2WorkerPoolScaling::class;
|
||||
protected $scalingDataType = '';
|
||||
protected $templateType = GoogleCloudRunV2WorkerPoolRevisionTemplate::class;
|
||||
protected $templateDataType = '';
|
||||
protected $terminalConditionType = GoogleCloudRunV2Condition::class;
|
||||
protected $terminalConditionDataType = '';
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $uid;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $updateTime;
|
||||
|
||||
/**
|
||||
* @param string[]
|
||||
*/
|
||||
public function setAnnotations($annotations)
|
||||
{
|
||||
$this->annotations = $annotations;
|
||||
}
|
||||
/**
|
||||
* @return string[]
|
||||
*/
|
||||
public function getAnnotations()
|
||||
{
|
||||
return $this->annotations;
|
||||
}
|
||||
/**
|
||||
* @param GoogleCloudRunV2BinaryAuthorization
|
||||
*/
|
||||
public function setBinaryAuthorization(GoogleCloudRunV2BinaryAuthorization $binaryAuthorization)
|
||||
{
|
||||
$this->binaryAuthorization = $binaryAuthorization;
|
||||
}
|
||||
/**
|
||||
* @return GoogleCloudRunV2BinaryAuthorization
|
||||
*/
|
||||
public function getBinaryAuthorization()
|
||||
{
|
||||
return $this->binaryAuthorization;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setClient($client)
|
||||
{
|
||||
$this->client = $client;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getClient()
|
||||
{
|
||||
return $this->client;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setClientVersion($clientVersion)
|
||||
{
|
||||
$this->clientVersion = $clientVersion;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getClientVersion()
|
||||
{
|
||||
return $this->clientVersion;
|
||||
}
|
||||
/**
|
||||
* @param GoogleCloudRunV2Condition[]
|
||||
*/
|
||||
public function setConditions($conditions)
|
||||
{
|
||||
$this->conditions = $conditions;
|
||||
}
|
||||
/**
|
||||
* @return GoogleCloudRunV2Condition[]
|
||||
*/
|
||||
public function getConditions()
|
||||
{
|
||||
return $this->conditions;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setCreateTime($createTime)
|
||||
{
|
||||
$this->createTime = $createTime;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getCreateTime()
|
||||
{
|
||||
return $this->createTime;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setCreator($creator)
|
||||
{
|
||||
$this->creator = $creator;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getCreator()
|
||||
{
|
||||
return $this->creator;
|
||||
}
|
||||
/**
|
||||
* @param string[]
|
||||
*/
|
||||
public function setCustomAudiences($customAudiences)
|
||||
{
|
||||
$this->customAudiences = $customAudiences;
|
||||
}
|
||||
/**
|
||||
* @return string[]
|
||||
*/
|
||||
public function getCustomAudiences()
|
||||
{
|
||||
return $this->customAudiences;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setDeleteTime($deleteTime)
|
||||
{
|
||||
$this->deleteTime = $deleteTime;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getDeleteTime()
|
||||
{
|
||||
return $this->deleteTime;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setDescription($description)
|
||||
{
|
||||
$this->description = $description;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getDescription()
|
||||
{
|
||||
return $this->description;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setEtag($etag)
|
||||
{
|
||||
$this->etag = $etag;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getEtag()
|
||||
{
|
||||
return $this->etag;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setExpireTime($expireTime)
|
||||
{
|
||||
$this->expireTime = $expireTime;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getExpireTime()
|
||||
{
|
||||
return $this->expireTime;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setGeneration($generation)
|
||||
{
|
||||
$this->generation = $generation;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getGeneration()
|
||||
{
|
||||
return $this->generation;
|
||||
}
|
||||
/**
|
||||
* @param GoogleCloudRunV2InstanceSplitStatus[]
|
||||
*/
|
||||
public function setInstanceSplitStatuses($instanceSplitStatuses)
|
||||
{
|
||||
$this->instanceSplitStatuses = $instanceSplitStatuses;
|
||||
}
|
||||
/**
|
||||
* @return GoogleCloudRunV2InstanceSplitStatus[]
|
||||
*/
|
||||
public function getInstanceSplitStatuses()
|
||||
{
|
||||
return $this->instanceSplitStatuses;
|
||||
}
|
||||
/**
|
||||
* @param GoogleCloudRunV2InstanceSplit[]
|
||||
*/
|
||||
public function setInstanceSplits($instanceSplits)
|
||||
{
|
||||
$this->instanceSplits = $instanceSplits;
|
||||
}
|
||||
/**
|
||||
* @return GoogleCloudRunV2InstanceSplit[]
|
||||
*/
|
||||
public function getInstanceSplits()
|
||||
{
|
||||
return $this->instanceSplits;
|
||||
}
|
||||
/**
|
||||
* @param string[]
|
||||
*/
|
||||
public function setLabels($labels)
|
||||
{
|
||||
$this->labels = $labels;
|
||||
}
|
||||
/**
|
||||
* @return string[]
|
||||
*/
|
||||
public function getLabels()
|
||||
{
|
||||
return $this->labels;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setLastModifier($lastModifier)
|
||||
{
|
||||
$this->lastModifier = $lastModifier;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getLastModifier()
|
||||
{
|
||||
return $this->lastModifier;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setLatestCreatedRevision($latestCreatedRevision)
|
||||
{
|
||||
$this->latestCreatedRevision = $latestCreatedRevision;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getLatestCreatedRevision()
|
||||
{
|
||||
return $this->latestCreatedRevision;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setLatestReadyRevision($latestReadyRevision)
|
||||
{
|
||||
$this->latestReadyRevision = $latestReadyRevision;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getLatestReadyRevision()
|
||||
{
|
||||
return $this->latestReadyRevision;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setLaunchStage($launchStage)
|
||||
{
|
||||
$this->launchStage = $launchStage;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getLaunchStage()
|
||||
{
|
||||
return $this->launchStage;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setName($name)
|
||||
{
|
||||
$this->name = $name;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getName()
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setObservedGeneration($observedGeneration)
|
||||
{
|
||||
$this->observedGeneration = $observedGeneration;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getObservedGeneration()
|
||||
{
|
||||
return $this->observedGeneration;
|
||||
}
|
||||
/**
|
||||
* @param bool
|
||||
*/
|
||||
public function setReconciling($reconciling)
|
||||
{
|
||||
$this->reconciling = $reconciling;
|
||||
}
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function getReconciling()
|
||||
{
|
||||
return $this->reconciling;
|
||||
}
|
||||
/**
|
||||
* @param bool
|
||||
*/
|
||||
public function setSatisfiesPzs($satisfiesPzs)
|
||||
{
|
||||
$this->satisfiesPzs = $satisfiesPzs;
|
||||
}
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function getSatisfiesPzs()
|
||||
{
|
||||
return $this->satisfiesPzs;
|
||||
}
|
||||
/**
|
||||
* @param GoogleCloudRunV2WorkerPoolScaling
|
||||
*/
|
||||
public function setScaling(GoogleCloudRunV2WorkerPoolScaling $scaling)
|
||||
{
|
||||
$this->scaling = $scaling;
|
||||
}
|
||||
/**
|
||||
* @return GoogleCloudRunV2WorkerPoolScaling
|
||||
*/
|
||||
public function getScaling()
|
||||
{
|
||||
return $this->scaling;
|
||||
}
|
||||
/**
|
||||
* @param GoogleCloudRunV2WorkerPoolRevisionTemplate
|
||||
*/
|
||||
public function setTemplate(GoogleCloudRunV2WorkerPoolRevisionTemplate $template)
|
||||
{
|
||||
$this->template = $template;
|
||||
}
|
||||
/**
|
||||
* @return GoogleCloudRunV2WorkerPoolRevisionTemplate
|
||||
*/
|
||||
public function getTemplate()
|
||||
{
|
||||
return $this->template;
|
||||
}
|
||||
/**
|
||||
* @param GoogleCloudRunV2Condition
|
||||
*/
|
||||
public function setTerminalCondition(GoogleCloudRunV2Condition $terminalCondition)
|
||||
{
|
||||
$this->terminalCondition = $terminalCondition;
|
||||
}
|
||||
/**
|
||||
* @return GoogleCloudRunV2Condition
|
||||
*/
|
||||
public function getTerminalCondition()
|
||||
{
|
||||
return $this->terminalCondition;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setUid($uid)
|
||||
{
|
||||
$this->uid = $uid;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getUid()
|
||||
{
|
||||
return $this->uid;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setUpdateTime($updateTime)
|
||||
{
|
||||
$this->updateTime = $updateTime;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getUpdateTime()
|
||||
{
|
||||
return $this->updateTime;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(GoogleCloudRunV2WorkerPool::class, 'Google_Service_CloudRun_GoogleCloudRunV2WorkerPool');
|
||||
251
vendor/google/apiclient-services/src/CloudRun/GoogleCloudRunV2WorkerPoolRevisionTemplate.php
vendored
Executable file
251
vendor/google/apiclient-services/src/CloudRun/GoogleCloudRunV2WorkerPoolRevisionTemplate.php
vendored
Executable file
@ -0,0 +1,251 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
* use this file except in compliance with the License. You may obtain a copy of
|
||||
* the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
|
||||
namespace Google\Service\CloudRun;
|
||||
|
||||
class GoogleCloudRunV2WorkerPoolRevisionTemplate extends \Google\Collection
|
||||
{
|
||||
protected $collection_key = 'volumes';
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public $annotations;
|
||||
protected $containersType = GoogleCloudRunV2Container::class;
|
||||
protected $containersDataType = 'array';
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $encryptionKey;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $encryptionKeyRevocationAction;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $encryptionKeyShutdownDuration;
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public $labels;
|
||||
protected $nodeSelectorType = GoogleCloudRunV2NodeSelector::class;
|
||||
protected $nodeSelectorDataType = '';
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $revision;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $serviceAccount;
|
||||
protected $serviceMeshType = GoogleCloudRunV2ServiceMesh::class;
|
||||
protected $serviceMeshDataType = '';
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
public $sessionAffinity;
|
||||
protected $volumesType = GoogleCloudRunV2Volume::class;
|
||||
protected $volumesDataType = 'array';
|
||||
protected $vpcAccessType = GoogleCloudRunV2VpcAccess::class;
|
||||
protected $vpcAccessDataType = '';
|
||||
|
||||
/**
|
||||
* @param string[]
|
||||
*/
|
||||
public function setAnnotations($annotations)
|
||||
{
|
||||
$this->annotations = $annotations;
|
||||
}
|
||||
/**
|
||||
* @return string[]
|
||||
*/
|
||||
public function getAnnotations()
|
||||
{
|
||||
return $this->annotations;
|
||||
}
|
||||
/**
|
||||
* @param GoogleCloudRunV2Container[]
|
||||
*/
|
||||
public function setContainers($containers)
|
||||
{
|
||||
$this->containers = $containers;
|
||||
}
|
||||
/**
|
||||
* @return GoogleCloudRunV2Container[]
|
||||
*/
|
||||
public function getContainers()
|
||||
{
|
||||
return $this->containers;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setEncryptionKey($encryptionKey)
|
||||
{
|
||||
$this->encryptionKey = $encryptionKey;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getEncryptionKey()
|
||||
{
|
||||
return $this->encryptionKey;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setEncryptionKeyRevocationAction($encryptionKeyRevocationAction)
|
||||
{
|
||||
$this->encryptionKeyRevocationAction = $encryptionKeyRevocationAction;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getEncryptionKeyRevocationAction()
|
||||
{
|
||||
return $this->encryptionKeyRevocationAction;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setEncryptionKeyShutdownDuration($encryptionKeyShutdownDuration)
|
||||
{
|
||||
$this->encryptionKeyShutdownDuration = $encryptionKeyShutdownDuration;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getEncryptionKeyShutdownDuration()
|
||||
{
|
||||
return $this->encryptionKeyShutdownDuration;
|
||||
}
|
||||
/**
|
||||
* @param string[]
|
||||
*/
|
||||
public function setLabels($labels)
|
||||
{
|
||||
$this->labels = $labels;
|
||||
}
|
||||
/**
|
||||
* @return string[]
|
||||
*/
|
||||
public function getLabels()
|
||||
{
|
||||
return $this->labels;
|
||||
}
|
||||
/**
|
||||
* @param GoogleCloudRunV2NodeSelector
|
||||
*/
|
||||
public function setNodeSelector(GoogleCloudRunV2NodeSelector $nodeSelector)
|
||||
{
|
||||
$this->nodeSelector = $nodeSelector;
|
||||
}
|
||||
/**
|
||||
* @return GoogleCloudRunV2NodeSelector
|
||||
*/
|
||||
public function getNodeSelector()
|
||||
{
|
||||
return $this->nodeSelector;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setRevision($revision)
|
||||
{
|
||||
$this->revision = $revision;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getRevision()
|
||||
{
|
||||
return $this->revision;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setServiceAccount($serviceAccount)
|
||||
{
|
||||
$this->serviceAccount = $serviceAccount;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getServiceAccount()
|
||||
{
|
||||
return $this->serviceAccount;
|
||||
}
|
||||
/**
|
||||
* @param GoogleCloudRunV2ServiceMesh
|
||||
*/
|
||||
public function setServiceMesh(GoogleCloudRunV2ServiceMesh $serviceMesh)
|
||||
{
|
||||
$this->serviceMesh = $serviceMesh;
|
||||
}
|
||||
/**
|
||||
* @return GoogleCloudRunV2ServiceMesh
|
||||
*/
|
||||
public function getServiceMesh()
|
||||
{
|
||||
return $this->serviceMesh;
|
||||
}
|
||||
/**
|
||||
* @param bool
|
||||
*/
|
||||
public function setSessionAffinity($sessionAffinity)
|
||||
{
|
||||
$this->sessionAffinity = $sessionAffinity;
|
||||
}
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function getSessionAffinity()
|
||||
{
|
||||
return $this->sessionAffinity;
|
||||
}
|
||||
/**
|
||||
* @param GoogleCloudRunV2Volume[]
|
||||
*/
|
||||
public function setVolumes($volumes)
|
||||
{
|
||||
$this->volumes = $volumes;
|
||||
}
|
||||
/**
|
||||
* @return GoogleCloudRunV2Volume[]
|
||||
*/
|
||||
public function getVolumes()
|
||||
{
|
||||
return $this->volumes;
|
||||
}
|
||||
/**
|
||||
* @param GoogleCloudRunV2VpcAccess
|
||||
*/
|
||||
public function setVpcAccess(GoogleCloudRunV2VpcAccess $vpcAccess)
|
||||
{
|
||||
$this->vpcAccess = $vpcAccess;
|
||||
}
|
||||
/**
|
||||
* @return GoogleCloudRunV2VpcAccess
|
||||
*/
|
||||
public function getVpcAccess()
|
||||
{
|
||||
return $this->vpcAccess;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(GoogleCloudRunV2WorkerPoolRevisionTemplate::class, 'Google_Service_CloudRun_GoogleCloudRunV2WorkerPoolRevisionTemplate');
|
||||
134
vendor/google/apiclient-services/src/CloudRun/GoogleCloudRunV2WorkerPoolScaling.php
vendored
Executable file
134
vendor/google/apiclient-services/src/CloudRun/GoogleCloudRunV2WorkerPoolScaling.php
vendored
Executable file
@ -0,0 +1,134 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
* use this file except in compliance with the License. You may obtain a copy of
|
||||
* the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
|
||||
namespace Google\Service\CloudRun;
|
||||
|
||||
class GoogleCloudRunV2WorkerPoolScaling extends \Google\Model
|
||||
{
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $manualInstanceCount;
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $maxInstanceCount;
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $maxSurge;
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $maxUnavailable;
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $minInstanceCount;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $scalingMode;
|
||||
|
||||
/**
|
||||
* @param int
|
||||
*/
|
||||
public function setManualInstanceCount($manualInstanceCount)
|
||||
{
|
||||
$this->manualInstanceCount = $manualInstanceCount;
|
||||
}
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getManualInstanceCount()
|
||||
{
|
||||
return $this->manualInstanceCount;
|
||||
}
|
||||
/**
|
||||
* @param int
|
||||
*/
|
||||
public function setMaxInstanceCount($maxInstanceCount)
|
||||
{
|
||||
$this->maxInstanceCount = $maxInstanceCount;
|
||||
}
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getMaxInstanceCount()
|
||||
{
|
||||
return $this->maxInstanceCount;
|
||||
}
|
||||
/**
|
||||
* @param int
|
||||
*/
|
||||
public function setMaxSurge($maxSurge)
|
||||
{
|
||||
$this->maxSurge = $maxSurge;
|
||||
}
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getMaxSurge()
|
||||
{
|
||||
return $this->maxSurge;
|
||||
}
|
||||
/**
|
||||
* @param int
|
||||
*/
|
||||
public function setMaxUnavailable($maxUnavailable)
|
||||
{
|
||||
$this->maxUnavailable = $maxUnavailable;
|
||||
}
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getMaxUnavailable()
|
||||
{
|
||||
return $this->maxUnavailable;
|
||||
}
|
||||
/**
|
||||
* @param int
|
||||
*/
|
||||
public function setMinInstanceCount($minInstanceCount)
|
||||
{
|
||||
$this->minInstanceCount = $minInstanceCount;
|
||||
}
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getMinInstanceCount()
|
||||
{
|
||||
return $this->minInstanceCount;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setScalingMode($scalingMode)
|
||||
{
|
||||
$this->scalingMode = $scalingMode;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getScalingMode()
|
||||
{
|
||||
return $this->scalingMode;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(GoogleCloudRunV2WorkerPoolScaling::class, 'Google_Service_CloudRun_GoogleCloudRunV2WorkerPoolScaling');
|
||||
60
vendor/google/apiclient-services/src/CloudRun/GoogleDevtoolsCloudbuildV1Dependency.php
vendored
Executable file
60
vendor/google/apiclient-services/src/CloudRun/GoogleDevtoolsCloudbuildV1Dependency.php
vendored
Executable file
@ -0,0 +1,60 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
* use this file except in compliance with the License. You may obtain a copy of
|
||||
* the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
|
||||
namespace Google\Service\CloudRun;
|
||||
|
||||
class GoogleDevtoolsCloudbuildV1Dependency extends \Google\Model
|
||||
{
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
public $empty;
|
||||
protected $gitSourceType = GoogleDevtoolsCloudbuildV1GitSourceDependency::class;
|
||||
protected $gitSourceDataType = '';
|
||||
|
||||
/**
|
||||
* @param bool
|
||||
*/
|
||||
public function setEmpty($empty)
|
||||
{
|
||||
$this->empty = $empty;
|
||||
}
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function getEmpty()
|
||||
{
|
||||
return $this->empty;
|
||||
}
|
||||
/**
|
||||
* @param GoogleDevtoolsCloudbuildV1GitSourceDependency
|
||||
*/
|
||||
public function setGitSource(GoogleDevtoolsCloudbuildV1GitSourceDependency $gitSource)
|
||||
{
|
||||
$this->gitSource = $gitSource;
|
||||
}
|
||||
/**
|
||||
* @return GoogleDevtoolsCloudbuildV1GitSourceDependency
|
||||
*/
|
||||
public function getGitSource()
|
||||
{
|
||||
return $this->gitSource;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(GoogleDevtoolsCloudbuildV1Dependency::class, 'Google_Service_CloudRun_GoogleDevtoolsCloudbuildV1Dependency');
|
||||
114
vendor/google/apiclient-services/src/CloudRun/GoogleDevtoolsCloudbuildV1GitSourceDependency.php
vendored
Executable file
114
vendor/google/apiclient-services/src/CloudRun/GoogleDevtoolsCloudbuildV1GitSourceDependency.php
vendored
Executable file
@ -0,0 +1,114 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
* use this file except in compliance with the License. You may obtain a copy of
|
||||
* the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
|
||||
namespace Google\Service\CloudRun;
|
||||
|
||||
class GoogleDevtoolsCloudbuildV1GitSourceDependency extends \Google\Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $depth;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $destPath;
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
public $recurseSubmodules;
|
||||
protected $repositoryType = GoogleDevtoolsCloudbuildV1GitSourceRepository::class;
|
||||
protected $repositoryDataType = '';
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $revision;
|
||||
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setDepth($depth)
|
||||
{
|
||||
$this->depth = $depth;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getDepth()
|
||||
{
|
||||
return $this->depth;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setDestPath($destPath)
|
||||
{
|
||||
$this->destPath = $destPath;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getDestPath()
|
||||
{
|
||||
return $this->destPath;
|
||||
}
|
||||
/**
|
||||
* @param bool
|
||||
*/
|
||||
public function setRecurseSubmodules($recurseSubmodules)
|
||||
{
|
||||
$this->recurseSubmodules = $recurseSubmodules;
|
||||
}
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function getRecurseSubmodules()
|
||||
{
|
||||
return $this->recurseSubmodules;
|
||||
}
|
||||
/**
|
||||
* @param GoogleDevtoolsCloudbuildV1GitSourceRepository
|
||||
*/
|
||||
public function setRepository(GoogleDevtoolsCloudbuildV1GitSourceRepository $repository)
|
||||
{
|
||||
$this->repository = $repository;
|
||||
}
|
||||
/**
|
||||
* @return GoogleDevtoolsCloudbuildV1GitSourceRepository
|
||||
*/
|
||||
public function getRepository()
|
||||
{
|
||||
return $this->repository;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setRevision($revision)
|
||||
{
|
||||
$this->revision = $revision;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getRevision()
|
||||
{
|
||||
return $this->revision;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(GoogleDevtoolsCloudbuildV1GitSourceDependency::class, 'Google_Service_CloudRun_GoogleDevtoolsCloudbuildV1GitSourceDependency');
|
||||
62
vendor/google/apiclient-services/src/CloudRun/GoogleDevtoolsCloudbuildV1GitSourceRepository.php
vendored
Executable file
62
vendor/google/apiclient-services/src/CloudRun/GoogleDevtoolsCloudbuildV1GitSourceRepository.php
vendored
Executable file
@ -0,0 +1,62 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
* use this file except in compliance with the License. You may obtain a copy of
|
||||
* the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
|
||||
namespace Google\Service\CloudRun;
|
||||
|
||||
class GoogleDevtoolsCloudbuildV1GitSourceRepository extends \Google\Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $developerConnect;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $url;
|
||||
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setDeveloperConnect($developerConnect)
|
||||
{
|
||||
$this->developerConnect = $developerConnect;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getDeveloperConnect()
|
||||
{
|
||||
return $this->developerConnect;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setUrl($url)
|
||||
{
|
||||
$this->url = $url;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getUrl()
|
||||
{
|
||||
return $this->url;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(GoogleDevtoolsCloudbuildV1GitSourceRepository::class, 'Google_Service_CloudRun_GoogleDevtoolsCloudbuildV1GitSourceRepository');
|
||||
134
vendor/google/apiclient-services/src/CloudRun/GoogleDevtoolsCloudbuildV1GoModule.php
vendored
Executable file
134
vendor/google/apiclient-services/src/CloudRun/GoogleDevtoolsCloudbuildV1GoModule.php
vendored
Executable file
@ -0,0 +1,134 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
* use this file except in compliance with the License. You may obtain a copy of
|
||||
* the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
|
||||
namespace Google\Service\CloudRun;
|
||||
|
||||
class GoogleDevtoolsCloudbuildV1GoModule extends \Google\Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $modulePath;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $moduleVersion;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $repositoryLocation;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $repositoryName;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $repositoryProjectId;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $sourcePath;
|
||||
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setModulePath($modulePath)
|
||||
{
|
||||
$this->modulePath = $modulePath;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getModulePath()
|
||||
{
|
||||
return $this->modulePath;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setModuleVersion($moduleVersion)
|
||||
{
|
||||
$this->moduleVersion = $moduleVersion;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getModuleVersion()
|
||||
{
|
||||
return $this->moduleVersion;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setRepositoryLocation($repositoryLocation)
|
||||
{
|
||||
$this->repositoryLocation = $repositoryLocation;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getRepositoryLocation()
|
||||
{
|
||||
return $this->repositoryLocation;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setRepositoryName($repositoryName)
|
||||
{
|
||||
$this->repositoryName = $repositoryName;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getRepositoryName()
|
||||
{
|
||||
return $this->repositoryName;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setRepositoryProjectId($repositoryProjectId)
|
||||
{
|
||||
$this->repositoryProjectId = $repositoryProjectId;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getRepositoryProjectId()
|
||||
{
|
||||
return $this->repositoryProjectId;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setSourcePath($sourcePath)
|
||||
{
|
||||
$this->sourcePath = $sourcePath;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getSourcePath()
|
||||
{
|
||||
return $this->sourcePath;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(GoogleDevtoolsCloudbuildV1GoModule::class, 'Google_Service_CloudRun_GoogleDevtoolsCloudbuildV1GoModule');
|
||||
76
vendor/google/apiclient-services/src/CloudRun/GoogleDevtoolsCloudbuildV1UploadedGoModule.php
vendored
Executable file
76
vendor/google/apiclient-services/src/CloudRun/GoogleDevtoolsCloudbuildV1UploadedGoModule.php
vendored
Executable file
@ -0,0 +1,76 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
* use this file except in compliance with the License. You may obtain a copy of
|
||||
* the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
|
||||
namespace Google\Service\CloudRun;
|
||||
|
||||
class GoogleDevtoolsCloudbuildV1UploadedGoModule extends \Google\Model
|
||||
{
|
||||
protected $fileHashesType = GoogleDevtoolsCloudbuildV1FileHashes::class;
|
||||
protected $fileHashesDataType = '';
|
||||
protected $pushTimingType = GoogleDevtoolsCloudbuildV1TimeSpan::class;
|
||||
protected $pushTimingDataType = '';
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $uri;
|
||||
|
||||
/**
|
||||
* @param GoogleDevtoolsCloudbuildV1FileHashes
|
||||
*/
|
||||
public function setFileHashes(GoogleDevtoolsCloudbuildV1FileHashes $fileHashes)
|
||||
{
|
||||
$this->fileHashes = $fileHashes;
|
||||
}
|
||||
/**
|
||||
* @return GoogleDevtoolsCloudbuildV1FileHashes
|
||||
*/
|
||||
public function getFileHashes()
|
||||
{
|
||||
return $this->fileHashes;
|
||||
}
|
||||
/**
|
||||
* @param GoogleDevtoolsCloudbuildV1TimeSpan
|
||||
*/
|
||||
public function setPushTiming(GoogleDevtoolsCloudbuildV1TimeSpan $pushTiming)
|
||||
{
|
||||
$this->pushTiming = $pushTiming;
|
||||
}
|
||||
/**
|
||||
* @return GoogleDevtoolsCloudbuildV1TimeSpan
|
||||
*/
|
||||
public function getPushTiming()
|
||||
{
|
||||
return $this->pushTiming;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setUri($uri)
|
||||
{
|
||||
$this->uri = $uri;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getUri()
|
||||
{
|
||||
return $this->uri;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(GoogleDevtoolsCloudbuildV1UploadedGoModule::class, 'Google_Service_CloudRun_GoogleDevtoolsCloudbuildV1UploadedGoModule');
|
||||
234
vendor/google/apiclient-services/src/CloudRun/Resource/ProjectsLocationsWorkerPools.php
vendored
Executable file
234
vendor/google/apiclient-services/src/CloudRun/Resource/ProjectsLocationsWorkerPools.php
vendored
Executable file
@ -0,0 +1,234 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
* use this file except in compliance with the License. You may obtain a copy of
|
||||
* the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
|
||||
namespace Google\Service\CloudRun\Resource;
|
||||
|
||||
use Google\Service\CloudRun\GoogleCloudRunV2ListWorkerPoolsResponse;
|
||||
use Google\Service\CloudRun\GoogleCloudRunV2WorkerPool;
|
||||
use Google\Service\CloudRun\GoogleIamV1Policy;
|
||||
use Google\Service\CloudRun\GoogleIamV1SetIamPolicyRequest;
|
||||
use Google\Service\CloudRun\GoogleIamV1TestIamPermissionsRequest;
|
||||
use Google\Service\CloudRun\GoogleIamV1TestIamPermissionsResponse;
|
||||
use Google\Service\CloudRun\GoogleLongrunningOperation;
|
||||
|
||||
/**
|
||||
* The "workerPools" collection of methods.
|
||||
* Typical usage is:
|
||||
* <code>
|
||||
* $runService = new Google\Service\CloudRun(...);
|
||||
* $workerPools = $runService->projects_locations_workerPools;
|
||||
* </code>
|
||||
*/
|
||||
class ProjectsLocationsWorkerPools extends \Google\Service\Resource
|
||||
{
|
||||
/**
|
||||
* Creates a new WorkerPool in a given project and location.
|
||||
* (workerPools.create)
|
||||
*
|
||||
* @param string $parent Required. The location and project in which this worker
|
||||
* pool should be created. Format: projects/{project}/locations/{location},
|
||||
* where {project} can be project id or number. Only lowercase characters,
|
||||
* digits, and hyphens.
|
||||
* @param GoogleCloudRunV2WorkerPool $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param bool validateOnly Optional. Indicates that the request should be
|
||||
* validated and default values populated, without persisting the request or
|
||||
* creating any resources.
|
||||
* @opt_param string workerPoolId Required. The unique identifier for the
|
||||
* WorkerPool. It must begin with letter, and cannot end with hyphen; must
|
||||
* contain fewer than 50 characters. The name of the worker pool becomes
|
||||
* {parent}/workerPools/{worker_pool_id}.
|
||||
* @return GoogleLongrunningOperation
|
||||
* @throws \Google\Service\Exception
|
||||
*/
|
||||
public function create($parent, GoogleCloudRunV2WorkerPool $postBody, $optParams = [])
|
||||
{
|
||||
$params = ['parent' => $parent, 'postBody' => $postBody];
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('create', [$params], GoogleLongrunningOperation::class);
|
||||
}
|
||||
/**
|
||||
* Deletes a WorkerPool. (workerPools.delete)
|
||||
*
|
||||
* @param string $name Required. The full name of the WorkerPool. Format:
|
||||
* projects/{project}/locations/{location}/workerPools/{worker_pool}, where
|
||||
* {project} can be project id or number.
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param string etag A system-generated fingerprint for this version of the
|
||||
* resource. May be used to detect modification conflict during updates.
|
||||
* @opt_param bool validateOnly Optional. Indicates that the request should be
|
||||
* validated without actually deleting any resources.
|
||||
* @return GoogleLongrunningOperation
|
||||
* @throws \Google\Service\Exception
|
||||
*/
|
||||
public function delete($name, $optParams = [])
|
||||
{
|
||||
$params = ['name' => $name];
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('delete', [$params], GoogleLongrunningOperation::class);
|
||||
}
|
||||
/**
|
||||
* Gets information about a WorkerPool. (workerPools.get)
|
||||
*
|
||||
* @param string $name Required. The full name of the WorkerPool. Format:
|
||||
* projects/{project}/locations/{location}/workerPools/{worker_pool}, where
|
||||
* {project} can be project id or number.
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return GoogleCloudRunV2WorkerPool
|
||||
* @throws \Google\Service\Exception
|
||||
*/
|
||||
public function get($name, $optParams = [])
|
||||
{
|
||||
$params = ['name' => $name];
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('get', [$params], GoogleCloudRunV2WorkerPool::class);
|
||||
}
|
||||
/**
|
||||
* Gets the IAM Access Control policy currently in effect for the given Cloud
|
||||
* Run WorkerPool. This result does not include any inherited policies.
|
||||
* (workerPools.getIamPolicy)
|
||||
*
|
||||
* @param string $resource REQUIRED: The resource for which the policy is being
|
||||
* requested. See [Resource
|
||||
* names](https://cloud.google.com/apis/design/resource_names) for the
|
||||
* appropriate value for this field.
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param int options.requestedPolicyVersion Optional. The maximum policy
|
||||
* version that will be used to format the policy. Valid values are 0, 1, and 3.
|
||||
* Requests specifying an invalid value will be rejected. Requests for policies
|
||||
* with any conditional role bindings must specify version 3. Policies with no
|
||||
* conditional role bindings may specify any valid value or leave the field
|
||||
* unset. The policy in the response might use the policy version that you
|
||||
* specified, or it might use a lower policy version. For example, if you
|
||||
* specify version 3, but the policy has no conditional role bindings, the
|
||||
* response uses version 1. To learn which resources support conditions in their
|
||||
* IAM policies, see the [IAM
|
||||
* documentation](https://cloud.google.com/iam/help/conditions/resource-
|
||||
* policies).
|
||||
* @return GoogleIamV1Policy
|
||||
* @throws \Google\Service\Exception
|
||||
*/
|
||||
public function getIamPolicy($resource, $optParams = [])
|
||||
{
|
||||
$params = ['resource' => $resource];
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('getIamPolicy', [$params], GoogleIamV1Policy::class);
|
||||
}
|
||||
/**
|
||||
* Lists WorkerPools. Results are sorted by creation time, descending.
|
||||
* (workerPools.listProjectsLocationsWorkerPools)
|
||||
*
|
||||
* @param string $parent Required. The location and project to list resources
|
||||
* on. Location must be a valid Google Cloud region, and cannot be the "-"
|
||||
* wildcard. Format: projects/{project}/locations/{location}, where {project}
|
||||
* can be project id or number.
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param int pageSize Maximum number of WorkerPools to return in this call.
|
||||
* @opt_param string pageToken A page token received from a previous call to
|
||||
* ListWorkerPools. All other parameters must match.
|
||||
* @opt_param bool showDeleted If true, returns deleted (but unexpired)
|
||||
* resources along with active ones.
|
||||
* @return GoogleCloudRunV2ListWorkerPoolsResponse
|
||||
* @throws \Google\Service\Exception
|
||||
*/
|
||||
public function listProjectsLocationsWorkerPools($parent, $optParams = [])
|
||||
{
|
||||
$params = ['parent' => $parent];
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('list', [$params], GoogleCloudRunV2ListWorkerPoolsResponse::class);
|
||||
}
|
||||
/**
|
||||
* Updates a WorkerPool. (workerPools.patch)
|
||||
*
|
||||
* @param string $name The fully qualified name of this WorkerPool. In
|
||||
* CreateWorkerPoolRequest, this field is ignored, and instead composed from
|
||||
* CreateWorkerPoolRequest.parent and CreateWorkerPoolRequest.worker_id. Format:
|
||||
* projects/{project}/locations/{location}/workerPools/{worker_id}
|
||||
* @param GoogleCloudRunV2WorkerPool $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param bool allowMissing Optional. If set to true, and if the WorkerPool
|
||||
* does not exist, it will create a new one. The caller must have
|
||||
* 'run.workerpools.create' permissions if this is set to true and the
|
||||
* WorkerPool does not exist.
|
||||
* @opt_param bool forceNewRevision Optional. If set to true, a new revision
|
||||
* will be created from the template even if the system doesn't detect any
|
||||
* changes from the previously deployed revision. This may be useful for cases
|
||||
* where the underlying resources need to be recreated or reinitialized. For
|
||||
* example if the image is specified by label, but the underlying image digest
|
||||
* has changed) or if the container performs deployment initialization work that
|
||||
* needs to be performed again.
|
||||
* @opt_param string updateMask Optional. The list of fields to be updated.
|
||||
* @opt_param bool validateOnly Optional. Indicates that the request should be
|
||||
* validated and default values populated, without persisting the request or
|
||||
* updating any resources.
|
||||
* @return GoogleLongrunningOperation
|
||||
* @throws \Google\Service\Exception
|
||||
*/
|
||||
public function patch($name, GoogleCloudRunV2WorkerPool $postBody, $optParams = [])
|
||||
{
|
||||
$params = ['name' => $name, 'postBody' => $postBody];
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('patch', [$params], GoogleLongrunningOperation::class);
|
||||
}
|
||||
/**
|
||||
* Sets the IAM Access control policy for the specified WorkerPool. Overwrites
|
||||
* any existing policy. (workerPools.setIamPolicy)
|
||||
*
|
||||
* @param string $resource REQUIRED: The resource for which the policy is being
|
||||
* specified. See [Resource
|
||||
* names](https://cloud.google.com/apis/design/resource_names) for the
|
||||
* appropriate value for this field.
|
||||
* @param GoogleIamV1SetIamPolicyRequest $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return GoogleIamV1Policy
|
||||
* @throws \Google\Service\Exception
|
||||
*/
|
||||
public function setIamPolicy($resource, GoogleIamV1SetIamPolicyRequest $postBody, $optParams = [])
|
||||
{
|
||||
$params = ['resource' => $resource, 'postBody' => $postBody];
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('setIamPolicy', [$params], GoogleIamV1Policy::class);
|
||||
}
|
||||
/**
|
||||
* Returns permissions that a caller has on the specified Project. There are no
|
||||
* permissions required for making this API call.
|
||||
* (workerPools.testIamPermissions)
|
||||
*
|
||||
* @param string $resource REQUIRED: The resource for which the policy detail is
|
||||
* being requested. See [Resource
|
||||
* names](https://cloud.google.com/apis/design/resource_names) for the
|
||||
* appropriate value for this field.
|
||||
* @param GoogleIamV1TestIamPermissionsRequest $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return GoogleIamV1TestIamPermissionsResponse
|
||||
* @throws \Google\Service\Exception
|
||||
*/
|
||||
public function testIamPermissions($resource, GoogleIamV1TestIamPermissionsRequest $postBody, $optParams = [])
|
||||
{
|
||||
$params = ['resource' => $resource, 'postBody' => $postBody];
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('testIamPermissions', [$params], GoogleIamV1TestIamPermissionsResponse::class);
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(ProjectsLocationsWorkerPools::class, 'Google_Service_CloudRun_Resource_ProjectsLocationsWorkerPools');
|
||||
96
vendor/google/apiclient-services/src/CloudRun/Resource/ProjectsLocationsWorkerPoolsRevisions.php
vendored
Executable file
96
vendor/google/apiclient-services/src/CloudRun/Resource/ProjectsLocationsWorkerPoolsRevisions.php
vendored
Executable file
@ -0,0 +1,96 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
* use this file except in compliance with the License. You may obtain a copy of
|
||||
* the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
|
||||
namespace Google\Service\CloudRun\Resource;
|
||||
|
||||
use Google\Service\CloudRun\GoogleCloudRunV2ListRevisionsResponse;
|
||||
use Google\Service\CloudRun\GoogleCloudRunV2Revision;
|
||||
use Google\Service\CloudRun\GoogleLongrunningOperation;
|
||||
|
||||
/**
|
||||
* The "revisions" collection of methods.
|
||||
* Typical usage is:
|
||||
* <code>
|
||||
* $runService = new Google\Service\CloudRun(...);
|
||||
* $revisions = $runService->projects_locations_workerPools_revisions;
|
||||
* </code>
|
||||
*/
|
||||
class ProjectsLocationsWorkerPoolsRevisions extends \Google\Service\Resource
|
||||
{
|
||||
/**
|
||||
* Deletes a Revision. (revisions.delete)
|
||||
*
|
||||
* @param string $name Required. The name of the Revision to delete. Format: pro
|
||||
* jects/{project}/locations/{location}/services/{service}/revisions/{revision}
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param string etag A system-generated fingerprint for this version of the
|
||||
* resource. This may be used to detect modification conflict during updates.
|
||||
* @opt_param bool validateOnly Indicates that the request should be validated
|
||||
* without actually deleting any resources.
|
||||
* @return GoogleLongrunningOperation
|
||||
* @throws \Google\Service\Exception
|
||||
*/
|
||||
public function delete($name, $optParams = [])
|
||||
{
|
||||
$params = ['name' => $name];
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('delete', [$params], GoogleLongrunningOperation::class);
|
||||
}
|
||||
/**
|
||||
* Gets information about a Revision. (revisions.get)
|
||||
*
|
||||
* @param string $name Required. The full name of the Revision. Format: projects
|
||||
* /{project}/locations/{location}/services/{service}/revisions/{revision}
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return GoogleCloudRunV2Revision
|
||||
* @throws \Google\Service\Exception
|
||||
*/
|
||||
public function get($name, $optParams = [])
|
||||
{
|
||||
$params = ['name' => $name];
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('get', [$params], GoogleCloudRunV2Revision::class);
|
||||
}
|
||||
/**
|
||||
* Lists Revisions from a given Service, or from a given location. Results are
|
||||
* sorted by creation time, descending.
|
||||
* (revisions.listProjectsLocationsWorkerPoolsRevisions)
|
||||
*
|
||||
* @param string $parent Required. The Service from which the Revisions should
|
||||
* be listed. To list all Revisions across Services, use "-" instead of Service
|
||||
* name. Format: projects/{project}/locations/{location}/services/{service}
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param int pageSize Maximum number of revisions to return in this call.
|
||||
* @opt_param string pageToken A page token received from a previous call to
|
||||
* ListRevisions. All other parameters must match.
|
||||
* @opt_param bool showDeleted If true, returns deleted (but unexpired)
|
||||
* resources along with active ones.
|
||||
* @return GoogleCloudRunV2ListRevisionsResponse
|
||||
* @throws \Google\Service\Exception
|
||||
*/
|
||||
public function listProjectsLocationsWorkerPoolsRevisions($parent, $optParams = [])
|
||||
{
|
||||
$params = ['parent' => $parent];
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('list', [$params], GoogleCloudRunV2ListRevisionsResponse::class);
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(ProjectsLocationsWorkerPoolsRevisions::class, 'Google_Service_CloudRun_Resource_ProjectsLocationsWorkerPoolsRevisions');
|
||||
80
vendor/google/apiclient-services/src/CloudWorkstations/GceInstanceHost.php
vendored
Executable file
80
vendor/google/apiclient-services/src/CloudWorkstations/GceInstanceHost.php
vendored
Executable file
@ -0,0 +1,80 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
* use this file except in compliance with the License. You may obtain a copy of
|
||||
* the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
|
||||
namespace Google\Service\CloudWorkstations;
|
||||
|
||||
class GceInstanceHost extends \Google\Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $id;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $name;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $zone;
|
||||
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setId($id)
|
||||
{
|
||||
$this->id = $id;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getId()
|
||||
{
|
||||
return $this->id;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setName($name)
|
||||
{
|
||||
$this->name = $name;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getName()
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setZone($zone)
|
||||
{
|
||||
$this->zone = $zone;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getZone()
|
||||
{
|
||||
return $this->zone;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(GceInstanceHost::class, 'Google_Service_CloudWorkstations_GceInstanceHost');
|
||||
42
vendor/google/apiclient-services/src/CloudWorkstations/RuntimeHost.php
vendored
Executable file
42
vendor/google/apiclient-services/src/CloudWorkstations/RuntimeHost.php
vendored
Executable file
@ -0,0 +1,42 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
* use this file except in compliance with the License. You may obtain a copy of
|
||||
* the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
|
||||
namespace Google\Service\CloudWorkstations;
|
||||
|
||||
class RuntimeHost extends \Google\Model
|
||||
{
|
||||
protected $gceInstanceHostType = GceInstanceHost::class;
|
||||
protected $gceInstanceHostDataType = '';
|
||||
|
||||
/**
|
||||
* @param GceInstanceHost
|
||||
*/
|
||||
public function setGceInstanceHost(GceInstanceHost $gceInstanceHost)
|
||||
{
|
||||
$this->gceInstanceHost = $gceInstanceHost;
|
||||
}
|
||||
/**
|
||||
* @return GceInstanceHost
|
||||
*/
|
||||
public function getGceInstanceHost()
|
||||
{
|
||||
return $this->gceInstanceHost;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(RuntimeHost::class, 'Google_Service_CloudWorkstations_RuntimeHost');
|
||||
@ -19,6 +19,10 @@ namespace Google\Service\CloudWorkstations;
|
||||
|
||||
class StartWorkstationRequest extends \Google\Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $boostConfig;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
@ -28,6 +32,20 @@ class StartWorkstationRequest extends \Google\Model
|
||||
*/
|
||||
public $validateOnly;
|
||||
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setBoostConfig($boostConfig)
|
||||
{
|
||||
$this->boostConfig = $boostConfig;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getBoostConfig()
|
||||
{
|
||||
return $this->boostConfig;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user