HotFix para manejo de excepciones de timeout para referencias de oxxo, ahora se envian las claves 'error' y 'url' en el mismo cuerpo de la respuesta, también se mejoró el código del método para crear la referencia de oxxo y el de edición del cliente para agregar los campos personalizados de Site y Antena/Sectorial

This commit is contained in:
server 2025-03-05 05:33:07 +00:00
parent 4276097212
commit 2819804ad8
18915 changed files with 41317 additions and 2390 deletions

File diff suppressed because one or more lines are too long

View File

@ -5,7 +5,7 @@
"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 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.7",
"version": "2.6.8",
"unmsVersionCompliancy": {
"min": "2.1.0",
"max": null

View File

@ -59,93 +59,87 @@ abstract class AbstractOxxoOperationsFacade
* @throws Exception
*/
public function createOxxoPaymentIntent($event_json, $amount = null): string
{
$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'];
{
$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'];
$baseUri = 'https://' . $IPServer . '/crm/api/v1.0/';
$this->ucrmApi = UcrmApi::create();
$currentUserAdmin = $this->ucrmApi->get('users/admins', []);
$clientID = $event_json['client_id'];
$stripeCustomerId = null;
$clientEmail = '';
$stripeCustomerId = null;
$clientEmail = '';
$clientGuzzleHttp = new Client([
'base_uri' => $baseUri,
'headers' => [
'X-Auth-App-Key' => $tokenCRM,
'Accept' => 'application/json',
],
'verify' => false,
'timeout' => 5, // Timeout de 5 segundos
]);
try {
//$this->logger->info("Obteniendo el cliente de CRM: " . $clientID . PHP_EOL);
$response = $clientGuzzleHttp->request('GET', "clients/" . $clientID);
$arrayClientCRM = json_decode($response->getBody()->getContents(), true);
} catch (RequestException $e) {
if ($e->getCode() === 404) {
$this->logger->error("Error al obtener el cliente de CRM" . PHP_EOL);
return 'errorGetClientNofFound';
} else {
$this->logger->error("Error al obtener el cliente de CRM" . PHP_EOL);
return 'errorGetClient';
}
$clientGuzzleHttp = new Client([
'base_uri' => $baseUri,
'headers' => [
'X-Auth-App-Key' => $tokenCRM,
'Accept' => 'application/json',
],
'verify' => false,
'timeout' => 5, // Timeout de 5 segundos
]);
try {
$response = $clientGuzzleHttp->request('GET', "clients/" . $clientID);
$arrayClientCRM = json_decode($response->getBody()->getContents(), true);
} catch (RequestException $e) {
if ($e->getCode() === 404) {
$this->logger->error("Cliente no encontrado en CRM: " . $clientID . PHP_EOL);
return 'errorGetClientNotFound';
}
$this->logger->error("Error al obtener el cliente en CRM (Error {$e->getCode()}): " . $e->getMessage() . PHP_EOL);
return 'errorGetClient';
}
// Obtener email del cliente
foreach ($arrayClientCRM['contacts'] as $contact) {
if (!empty($contact['email'])) {
$clientEmail = $contact['email'];
break;
} else {
$clientEmail = 'siip8873@gmail.com';
}
}
try {
// Obtener stripeCustomerId
foreach ($arrayClientCRM['attributes'] as $attribute) {
if ($attribute['key'] === 'stripeCustomerId') {
$stripeCustomerId = $attribute['value'];
break;
}
}
$this->logger->info("Se obtuvo el Stripe Customer ID del cliente: " . $stripeCustomerId . PHP_EOL);
} catch (RequestException $e) {
$this->logger->error("Error al obtener el Customer ID de Stripe" . PHP_EOL);
return 'errorGetCustomerStripe';
}
// Verificar si $amount es null para determinar si es necesario consultar la API
if ($amount === null) {
// Obtener el monto pendiente del cliente en centavos
$amount = abs($arrayClientCRM['accountOutstanding']);
// Obtener email del cliente
foreach ($arrayClientCRM['contacts'] as $contact) {
if (!empty($contact['email'])) {
$clientEmail = $contact['email'];
break;
} else {
$this->logger->info("Monto proporcionado directamente: $amount " . PHP_EOL);
$clientEmail = 'siip8873@gmail.com'; // Default
}
}
try {
// Obtener stripeCustomerId
foreach ($arrayClientCRM['attributes'] as $attribute) {
if ($attribute['key'] === 'stripeCustomerId') {
$stripeCustomerId = $attribute['value'];
break;
}
}
// 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([
$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);
return 'errorGetCustomerStripe';
}
if ($amount === null) {
$amount = abs($arrayClientCRM['accountOutstanding']);
} else {
$this->logger->info("Monto proporcionado directamente: $amount " . PHP_EOL);
}
if ($amount > 10) {
$amount = intval($amount * 100);
try {
$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'],
@ -156,81 +150,85 @@ abstract class AbstractOxxoOperationsFacade
'createdBy' => 'UCRM',
'paymentType' => 'card.one_time',
'signedInAdminId' => $currentUserAdmin[1]['id'],
'tipoPago' => 'OXXO'
'tipoPago' => 'OXXO',
],
'payment_method_options' => [
'oxxo' => [
'expires_after_days' => 3,
],
],
]);
]
]);
$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);
return 'errorTimeoutCreatePaymentIntent';
} catch (\Stripe\Exception\ApiErrorException $e) {
$this->logger->error("Error de la API de Stripe: " . $e->getMessage() . PHP_EOL);
return 'errorCreatePaymentIntent';
} catch (Exception $e) {
$this->logger->error("Error inesperado al crear PaymentIntent (Error {$e->getCode()}): " . $e->getMessage() . PHP_EOL);
return 'errorCreatePaymentIntent';
}
} catch (Exception $e) {
$this->logger->error('Error al crear el payment intent: ' . $e->getMessage() . PHP_EOL);
return 'errorCreatePaymentIntent';
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);
return 'errorNombreApellidoInvalido';
}
try {
// Obtener los nombres del cliente
$firstName = isset($arrayClientCRM['firstName']) ? trim($arrayClientCRM['firstName']) : '';
$lastName = isset($arrayClientCRM['lastName']) ? trim($arrayClientCRM['lastName']) : '';
// Validar que los nombres no estén vacíos y tengan al menos 2 caracteres
if (strlen($firstName) < 2 || strlen($lastName) < 2) {
$this->logger->error('El nombre o apellido del cliente es inválido. Ambos deben tener al menos 2 caracteres.' . PHP_EOL);
return 'errorNombreApellidoInvalido';
}
$this->logger->info("El nombre del cliente es: " . $firstName . ' ' . $lastName . PHP_EOL);
$this->logger->info("Creando payment methods del voucher" . PHP_EOL);
$paymentMethod = $stripe->paymentMethods->create([
$responsePaymentMethod = $guzzleClient->post('https://api.stripe.com/v1/payment_methods', [
'auth' => [$StripeToken, ''],
'form_params' => [
'type' => 'oxxo',
'billing_details' => [
'name' => $firstName . ' ' . $lastName,
'name' => "$firstName $lastName",
'email' => $clientEmail,
],
]);
]
]);
$paymentMethod = json_decode($responsePaymentMethod->getBody()->getContents(), true);
$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);
$responseConfirmPaymentIntent = $guzzleClient->post('https://api.stripe.com/v1/payment_intents/' . $paymentIntent['id'] . '/confirm', [
'auth' => [$StripeToken, ''],
'form_params' => [
'payment_method' => $paymentMethod['id'],
]
]);
} catch (Exception $e) {
if ($e->getCode() === 408) {
$this->logger->error('Error de timeout al confirmar el payment intent: ' . $e->getMessage() . PHP_EOL);
return 'errorTimeoutConfirmPaymentIntent';
} else {
$this->logger->error('Error al confirmar el payment intent: ' . $e->getMessage() . PHP_EOL);
return 'errorConfirmPaymentIntent';
}
$paymentIntentConfirm = json_decode($responseConfirmPaymentIntent->getBody()->getContents(), true);
}
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 'errorPaymentIntentWithoutOxxoDetails';
}
} else {
$this->logger->info("Este cliente no tiene adeudos por lo tanto no se puede generar su referencia de OXXO. " . PHP_EOL);
return 'errorsinadeudo';
} catch (Exception $e) {
$this->logger->error("Error al confirmar PaymentIntent: " . $e->getMessage() . PHP_EOL);
return 'errorConfirmPaymentIntent';
}
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);
return $oxxo_receipt_url;
} else {
$this->logger->info("El PaymentIntent no tiene detalles de OXXO disponibles. Estado: " . $paymentIntentConfirm['status'] . PHP_EOL);
return 'errorPaymentIntentWithoutOxxoDetails';
}
} else {
$this->logger->info("Este cliente no tiene adeudos." . PHP_EOL);
return 'noAdeudo';
}
}

View File

@ -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);
@ -1003,16 +1010,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://sistema.siip.mx/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 . '"' .
'}';
@ -1032,9 +1041,11 @@ class ClientCallBellAPI
"Monto Ultimo Pago" => '💲 ' . $payments[0]['amount'],
"Estado" => ($notificationData->clientData['hasSuspendedService']) ? '🔴 Suspendido' : '🟢 Activo ',
"Resumen" => $resumenClienteJSON,
"Fecha Ulti-mo Pago" => '📆💸 ' . $fecha_ultimoPago_ajustada . ' con ' . $payment_method,
"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);
@ -1048,6 +1059,7 @@ 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));
$response = curl_exec($ch);

View File

@ -155,33 +155,40 @@ class Plugin
// if ($intentos > 1) {
// sleep(2);
// }
$url = $this->pluginOxxoNotifierFacade->createOxxoPaymentIntent($jsonData, $jsonData['amount']);
$responseOxxo = $this->pluginOxxoNotifierFacade->createOxxoPaymentIntent($jsonData, $jsonData['amount']);
$intentos++;
} while (strpos($url, 'https') !== 0 && $intentos < 3); //Mientras la url no contenga https y el número de intentos sea menor a 3
} while (strpos($responseOxxo, '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);
$intentos++;
} while (strpos($url, 'https') !== 0 && $intentos < 3); //Mientras la url no contenga https y el número de intentos sea menor a 3
} while (strpos($responseOxxo, 'https') !== 0 && $intentos < 3); //Mientras la url no contenga https y el número de intentos sea menor a 3
}
//Si la respuesta no contiene https
if (strpos($url, 'https') !== 0) {
$this->logger->error('Error al crear la referencia de OXXO: ' . $url);
//Si la respuesta no contiene https, se genera un error
if (strpos($responseOxxo, 'https') !== 0) {
$this->logger->error('Error al crear la referencia de OXXO: ' . $responseOxxo);
//crear una variable $response con un json con el error y otra clave con la url vacia por ejemplo {"error":"Error al crear la referencia de OXXO","url":""}
$response = '{' .
'"error": "' . $url . '"' .
'"error": "' . $responseOxxo . '",' .
'"url": ""' .
'}';
header('Content-Type: application/json');
echo $response;
break;
} else {
//crear una variable $response con un json con el error en blanco y otra clave url con el dato {"error":"","url":"https://stripe.voucher.com/voucher/1234567890"}
$response = '{' .
'"url": "' . $url . '"' .
'"error": "",' .
'"url": "' . $responseOxxo . '"' .
'}';
$this->logger->debug('Reponse que se envía a CallBell: ' . $response);
// Enviar el encabezado de respuesta como JSON
header('Content-Type: application/json');
@ -194,21 +201,6 @@ class Plugin
}
// $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);
// }
//$this->logger->info('Se está enviando esta respuesta: ' . json_encode($json_codificado) . PHP_EOL);
// Otros eventos relevantes
}
}
return;

View 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');

View 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');

View 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');

View 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');

View 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');

View 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');

View 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');

View 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');

View 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');

View 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');

View 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');

View 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');

View 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');

View 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');

View 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');

View 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');

View 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 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');

View 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 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');

View 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');

View 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');

View 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');

View 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');

View 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');

View 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');

View 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');

View 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');

View 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');

View 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');

View 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');

View 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');

View 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');

View 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');

View 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');

View 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');

View 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');

View 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');

View 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');

View 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');

View 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');

View 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');

View 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');

View 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');

View 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');

View 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');

View 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 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');

View 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');

View 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');

View 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');

View 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');

View 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');

View 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');

View 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');

View 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');

View 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');

View 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');

View 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');

View 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');

View 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');

View 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');

View 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');

View 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');

View 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');

View 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');

View 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');

View 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');

View 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');

View 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');

View 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');

View 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');

View 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');

View 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');

View 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');

View 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');

View 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');

View 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');

View 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');

View File

View File

@ -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
*/

0
vendor/google/apiclient-services/src/CloudWorkstations/Status.php vendored Executable file → Normal file
View File

View File

View File

View File

@ -63,6 +63,12 @@ class Workstation extends \Google\Model
* @var bool
*/
public $reconciling;
protected $runtimeHostType = RuntimeHost::class;
protected $runtimeHostDataType = '';
/**
* @var string
*/
public $sourceWorkstation;
/**
* @var string
*/
@ -234,6 +240,34 @@ class Workstation extends \Google\Model
{
return $this->reconciling;
}
/**
* @param RuntimeHost
*/
public function setRuntimeHost(RuntimeHost $runtimeHost)
{
$this->runtimeHost = $runtimeHost;
}
/**
* @return RuntimeHost
*/
public function getRuntimeHost()
{
return $this->runtimeHost;
}
/**
* @param string
*/
public function setSourceWorkstation($sourceWorkstation)
{
$this->sourceWorkstation = $sourceWorkstation;
}
/**
* @return string
*/
public function getSourceWorkstation()
{
return $this->sourceWorkstation;
}
/**
* @param string
*/

View File

View File

View File

0
vendor/google/apiclient-services/src/Cloudbilling.php vendored Executable file → Normal file
View File

View File

0
vendor/google/apiclient-services/src/Cloudbilling/AuditConfig.php vendored Executable file → Normal file
View File

View File

View File

0
vendor/google/apiclient-services/src/Cloudbilling/Binding.php vendored Executable file → Normal file
View File

0
vendor/google/apiclient-services/src/Cloudbilling/Category.php vendored Executable file → Normal file
View File

0
vendor/google/apiclient-services/src/Cloudbilling/Expr.php vendored Executable file → Normal file
View File

0
vendor/google/apiclient-services/src/Cloudbilling/GeoTaxonomy.php vendored Executable file → Normal file
View File

Some files were not shown because too many files have changed in this diff Show More