gestione documentale avanzata 1 parte

This commit is contained in:
2026-05-28 09:34:28 +02:00
parent 3471befb1a
commit f2b0833b90
34482 changed files with 4312269 additions and 546 deletions
@@ -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\CloudRun;
class Addressable extends \Google\Model
{
/**
* @var string
*/
public $url;
/**
* @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(Addressable::class, 'Google_Service_CloudRun_Addressable');
@@ -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 AuditConfig extends \Google\Collection
{
protected $collection_key = 'auditLogConfigs';
protected $auditLogConfigsType = AuditLogConfig::class;
protected $auditLogConfigsDataType = 'array';
/**
* @var string
*/
public $service;
/**
* @param AuditLogConfig[]
*/
public function setAuditLogConfigs($auditLogConfigs)
{
$this->auditLogConfigs = $auditLogConfigs;
}
/**
* @return AuditLogConfig[]
*/
public function getAuditLogConfigs()
{
return $this->auditLogConfigs;
}
/**
* @param string
*/
public function setService($service)
{
$this->service = $service;
}
/**
* @return string
*/
public function getService()
{
return $this->service;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AuditConfig::class, 'Google_Service_CloudRun_AuditConfig');
@@ -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\CloudRun;
class AuditLogConfig extends \Google\Collection
{
protected $collection_key = 'exemptedMembers';
/**
* @var string[]
*/
public $exemptedMembers;
/**
* @var string
*/
public $logType;
/**
* @param string[]
*/
public function setExemptedMembers($exemptedMembers)
{
$this->exemptedMembers = $exemptedMembers;
}
/**
* @return string[]
*/
public function getExemptedMembers()
{
return $this->exemptedMembers;
}
/**
* @param string
*/
public function setLogType($logType)
{
$this->logType = $logType;
}
/**
* @return string
*/
public function getLogType()
{
return $this->logType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AuditLogConfig::class, 'Google_Service_CloudRun_AuditLogConfig');
@@ -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 AuthorizedDomain extends \Google\Model
{
/**
* @var string
*/
public $id;
/**
* @var string
*/
public $name;
/**
* @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;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AuthorizedDomain::class, 'Google_Service_CloudRun_AuthorizedDomain');
@@ -0,0 +1,79 @@
<?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 Binding extends \Google\Collection
{
protected $collection_key = 'members';
protected $conditionType = Expr::class;
protected $conditionDataType = '';
/**
* @var string[]
*/
public $members;
/**
* @var string
*/
public $role;
/**
* @param Expr
*/
public function setCondition(Expr $condition)
{
$this->condition = $condition;
}
/**
* @return Expr
*/
public function getCondition()
{
return $this->condition;
}
/**
* @param string[]
*/
public function setMembers($members)
{
$this->members = $members;
}
/**
* @return string[]
*/
public function getMembers()
{
return $this->members;
}
/**
* @param string
*/
public function setRole($role)
{
$this->role = $role;
}
/**
* @return string
*/
public function getRole()
{
return $this->role;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Binding::class, 'Google_Service_CloudRun_Binding');
@@ -0,0 +1,78 @@
<?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 ConfigMapEnvSource extends \Google\Model
{
protected $localObjectReferenceType = LocalObjectReference::class;
protected $localObjectReferenceDataType = '';
/**
* @var string
*/
public $name;
/**
* @var bool
*/
public $optional;
/**
* @param LocalObjectReference
*/
public function setLocalObjectReference(LocalObjectReference $localObjectReference)
{
$this->localObjectReference = $localObjectReference;
}
/**
* @return LocalObjectReference
*/
public function getLocalObjectReference()
{
return $this->localObjectReference;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param bool
*/
public function setOptional($optional)
{
$this->optional = $optional;
}
/**
* @return bool
*/
public function getOptional()
{
return $this->optional;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ConfigMapEnvSource::class, 'Google_Service_CloudRun_ConfigMapEnvSource');
@@ -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;
class ConfigMapKeySelector extends \Google\Model
{
/**
* @var string
*/
public $key;
protected $localObjectReferenceType = LocalObjectReference::class;
protected $localObjectReferenceDataType = '';
/**
* @var string
*/
public $name;
/**
* @var bool
*/
public $optional;
/**
* @param string
*/
public function setKey($key)
{
$this->key = $key;
}
/**
* @return string
*/
public function getKey()
{
return $this->key;
}
/**
* @param LocalObjectReference
*/
public function setLocalObjectReference(LocalObjectReference $localObjectReference)
{
$this->localObjectReference = $localObjectReference;
}
/**
* @return LocalObjectReference
*/
public function getLocalObjectReference()
{
return $this->localObjectReference;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param bool
*/
public function setOptional($optional)
{
$this->optional = $optional;
}
/**
* @return bool
*/
public function getOptional()
{
return $this->optional;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ConfigMapKeySelector::class, 'Google_Service_CloudRun_ConfigMapKeySelector');
@@ -0,0 +1,97 @@
<?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 ConfigMapVolumeSource extends \Google\Collection
{
protected $collection_key = 'items';
/**
* @var int
*/
public $defaultMode;
protected $itemsType = KeyToPath::class;
protected $itemsDataType = 'array';
/**
* @var string
*/
public $name;
/**
* @var bool
*/
public $optional;
/**
* @param int
*/
public function setDefaultMode($defaultMode)
{
$this->defaultMode = $defaultMode;
}
/**
* @return int
*/
public function getDefaultMode()
{
return $this->defaultMode;
}
/**
* @param KeyToPath[]
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return KeyToPath[]
*/
public function getItems()
{
return $this->items;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param bool
*/
public function setOptional($optional)
{
$this->optional = $optional;
}
/**
* @return bool
*/
public function getOptional()
{
return $this->optional;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ConfigMapVolumeSource::class, 'Google_Service_CloudRun_ConfigMapVolumeSource');
@@ -0,0 +1,110 @@
<?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 Configuration extends \Google\Model
{
/**
* @var string
*/
public $apiVersion;
/**
* @var string
*/
public $kind;
protected $metadataType = ObjectMeta::class;
protected $metadataDataType = '';
protected $specType = ConfigurationSpec::class;
protected $specDataType = '';
protected $statusType = ConfigurationStatus::class;
protected $statusDataType = '';
/**
* @param string
*/
public function setApiVersion($apiVersion)
{
$this->apiVersion = $apiVersion;
}
/**
* @return string
*/
public function getApiVersion()
{
return $this->apiVersion;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param ObjectMeta
*/
public function setMetadata(ObjectMeta $metadata)
{
$this->metadata = $metadata;
}
/**
* @return ObjectMeta
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* @param ConfigurationSpec
*/
public function setSpec(ConfigurationSpec $spec)
{
$this->spec = $spec;
}
/**
* @return ConfigurationSpec
*/
public function getSpec()
{
return $this->spec;
}
/**
* @param ConfigurationStatus
*/
public function setStatus(ConfigurationStatus $status)
{
$this->status = $status;
}
/**
* @return ConfigurationStatus
*/
public function getStatus()
{
return $this->status;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Configuration::class, 'Google_Service_CloudRun_Configuration');
@@ -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\CloudRun;
class ConfigurationSpec extends \Google\Model
{
protected $templateType = RevisionTemplate::class;
protected $templateDataType = '';
/**
* @param RevisionTemplate
*/
public function setTemplate(RevisionTemplate $template)
{
$this->template = $template;
}
/**
* @return RevisionTemplate
*/
public function getTemplate()
{
return $this->template;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ConfigurationSpec::class, 'Google_Service_CloudRun_ConfigurationSpec');
@@ -0,0 +1,97 @@
<?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 ConfigurationStatus extends \Google\Collection
{
protected $collection_key = 'conditions';
protected $conditionsType = GoogleCloudRunV1Condition::class;
protected $conditionsDataType = 'array';
/**
* @var string
*/
public $latestCreatedRevisionName;
/**
* @var string
*/
public $latestReadyRevisionName;
/**
* @var int
*/
public $observedGeneration;
/**
* @param GoogleCloudRunV1Condition[]
*/
public function setConditions($conditions)
{
$this->conditions = $conditions;
}
/**
* @return GoogleCloudRunV1Condition[]
*/
public function getConditions()
{
return $this->conditions;
}
/**
* @param string
*/
public function setLatestCreatedRevisionName($latestCreatedRevisionName)
{
$this->latestCreatedRevisionName = $latestCreatedRevisionName;
}
/**
* @return string
*/
public function getLatestCreatedRevisionName()
{
return $this->latestCreatedRevisionName;
}
/**
* @param string
*/
public function setLatestReadyRevisionName($latestReadyRevisionName)
{
$this->latestReadyRevisionName = $latestReadyRevisionName;
}
/**
* @return string
*/
public function getLatestReadyRevisionName()
{
return $this->latestReadyRevisionName;
}
/**
* @param int
*/
public function setObservedGeneration($observedGeneration)
{
$this->observedGeneration = $observedGeneration;
}
/**
* @return int
*/
public function getObservedGeneration()
{
return $this->observedGeneration;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ConfigurationStatus::class, 'Google_Service_CloudRun_ConfigurationStatus');
@@ -0,0 +1,315 @@
<?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 Container extends \Google\Collection
{
protected $collection_key = 'volumeMounts';
/**
* @var string[]
*/
public $args;
/**
* @var string[]
*/
public $command;
protected $envType = EnvVar::class;
protected $envDataType = 'array';
protected $envFromType = EnvFromSource::class;
protected $envFromDataType = 'array';
/**
* @var string
*/
public $image;
/**
* @var string
*/
public $imagePullPolicy;
protected $livenessProbeType = Probe::class;
protected $livenessProbeDataType = '';
/**
* @var string
*/
public $name;
protected $portsType = ContainerPort::class;
protected $portsDataType = 'array';
protected $readinessProbeType = Probe::class;
protected $readinessProbeDataType = '';
protected $resourcesType = ResourceRequirements::class;
protected $resourcesDataType = '';
protected $securityContextType = SecurityContext::class;
protected $securityContextDataType = '';
protected $startupProbeType = Probe::class;
protected $startupProbeDataType = '';
/**
* @var string
*/
public $terminationMessagePath;
/**
* @var string
*/
public $terminationMessagePolicy;
protected $volumeMountsType = VolumeMount::class;
protected $volumeMountsDataType = 'array';
/**
* @var string
*/
public $workingDir;
/**
* @param string[]
*/
public function setArgs($args)
{
$this->args = $args;
}
/**
* @return string[]
*/
public function getArgs()
{
return $this->args;
}
/**
* @param string[]
*/
public function setCommand($command)
{
$this->command = $command;
}
/**
* @return string[]
*/
public function getCommand()
{
return $this->command;
}
/**
* @param EnvVar[]
*/
public function setEnv($env)
{
$this->env = $env;
}
/**
* @return EnvVar[]
*/
public function getEnv()
{
return $this->env;
}
/**
* @param EnvFromSource[]
*/
public function setEnvFrom($envFrom)
{
$this->envFrom = $envFrom;
}
/**
* @return EnvFromSource[]
*/
public function getEnvFrom()
{
return $this->envFrom;
}
/**
* @param string
*/
public function setImage($image)
{
$this->image = $image;
}
/**
* @return string
*/
public function getImage()
{
return $this->image;
}
/**
* @param string
*/
public function setImagePullPolicy($imagePullPolicy)
{
$this->imagePullPolicy = $imagePullPolicy;
}
/**
* @return string
*/
public function getImagePullPolicy()
{
return $this->imagePullPolicy;
}
/**
* @param Probe
*/
public function setLivenessProbe(Probe $livenessProbe)
{
$this->livenessProbe = $livenessProbe;
}
/**
* @return Probe
*/
public function getLivenessProbe()
{
return $this->livenessProbe;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param ContainerPort[]
*/
public function setPorts($ports)
{
$this->ports = $ports;
}
/**
* @return ContainerPort[]
*/
public function getPorts()
{
return $this->ports;
}
/**
* @param Probe
*/
public function setReadinessProbe(Probe $readinessProbe)
{
$this->readinessProbe = $readinessProbe;
}
/**
* @return Probe
*/
public function getReadinessProbe()
{
return $this->readinessProbe;
}
/**
* @param ResourceRequirements
*/
public function setResources(ResourceRequirements $resources)
{
$this->resources = $resources;
}
/**
* @return ResourceRequirements
*/
public function getResources()
{
return $this->resources;
}
/**
* @param SecurityContext
*/
public function setSecurityContext(SecurityContext $securityContext)
{
$this->securityContext = $securityContext;
}
/**
* @return SecurityContext
*/
public function getSecurityContext()
{
return $this->securityContext;
}
/**
* @param Probe
*/
public function setStartupProbe(Probe $startupProbe)
{
$this->startupProbe = $startupProbe;
}
/**
* @return Probe
*/
public function getStartupProbe()
{
return $this->startupProbe;
}
/**
* @param string
*/
public function setTerminationMessagePath($terminationMessagePath)
{
$this->terminationMessagePath = $terminationMessagePath;
}
/**
* @return string
*/
public function getTerminationMessagePath()
{
return $this->terminationMessagePath;
}
/**
* @param string
*/
public function setTerminationMessagePolicy($terminationMessagePolicy)
{
$this->terminationMessagePolicy = $terminationMessagePolicy;
}
/**
* @return string
*/
public function getTerminationMessagePolicy()
{
return $this->terminationMessagePolicy;
}
/**
* @param VolumeMount[]
*/
public function setVolumeMounts($volumeMounts)
{
$this->volumeMounts = $volumeMounts;
}
/**
* @return VolumeMount[]
*/
public function getVolumeMounts()
{
return $this->volumeMounts;
}
/**
* @param string
*/
public function setWorkingDir($workingDir)
{
$this->workingDir = $workingDir;
}
/**
* @return string
*/
public function getWorkingDir()
{
return $this->workingDir;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Container::class, 'Google_Service_CloudRun_Container');
@@ -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 ContainerPort extends \Google\Model
{
/**
* @var int
*/
public $containerPort;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $protocol;
/**
* @param int
*/
public function setContainerPort($containerPort)
{
$this->containerPort = $containerPort;
}
/**
* @return int
*/
public function getContainerPort()
{
return $this->containerPort;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setProtocol($protocol)
{
$this->protocol = $protocol;
}
/**
* @return string
*/
public function getProtocol()
{
return $this->protocol;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ContainerPort::class, 'Google_Service_CloudRun_ContainerPort');
@@ -0,0 +1,110 @@
<?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 DomainMapping extends \Google\Model
{
/**
* @var string
*/
public $apiVersion;
/**
* @var string
*/
public $kind;
protected $metadataType = ObjectMeta::class;
protected $metadataDataType = '';
protected $specType = DomainMappingSpec::class;
protected $specDataType = '';
protected $statusType = DomainMappingStatus::class;
protected $statusDataType = '';
/**
* @param string
*/
public function setApiVersion($apiVersion)
{
$this->apiVersion = $apiVersion;
}
/**
* @return string
*/
public function getApiVersion()
{
return $this->apiVersion;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param ObjectMeta
*/
public function setMetadata(ObjectMeta $metadata)
{
$this->metadata = $metadata;
}
/**
* @return ObjectMeta
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* @param DomainMappingSpec
*/
public function setSpec(DomainMappingSpec $spec)
{
$this->spec = $spec;
}
/**
* @return DomainMappingSpec
*/
public function getSpec()
{
return $this->spec;
}
/**
* @param DomainMappingStatus
*/
public function setStatus(DomainMappingStatus $status)
{
$this->status = $status;
}
/**
* @return DomainMappingStatus
*/
public function getStatus()
{
return $this->status;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DomainMapping::class, 'Google_Service_CloudRun_DomainMapping');
@@ -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 DomainMappingSpec extends \Google\Model
{
/**
* @var string
*/
public $certificateMode;
/**
* @var bool
*/
public $forceOverride;
/**
* @var string
*/
public $routeName;
/**
* @param string
*/
public function setCertificateMode($certificateMode)
{
$this->certificateMode = $certificateMode;
}
/**
* @return string
*/
public function getCertificateMode()
{
return $this->certificateMode;
}
/**
* @param bool
*/
public function setForceOverride($forceOverride)
{
$this->forceOverride = $forceOverride;
}
/**
* @return bool
*/
public function getForceOverride()
{
return $this->forceOverride;
}
/**
* @param string
*/
public function setRouteName($routeName)
{
$this->routeName = $routeName;
}
/**
* @return string
*/
public function getRouteName()
{
return $this->routeName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DomainMappingSpec::class, 'Google_Service_CloudRun_DomainMappingSpec');
@@ -0,0 +1,113 @@
<?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 DomainMappingStatus extends \Google\Collection
{
protected $collection_key = 'resourceRecords';
protected $conditionsType = GoogleCloudRunV1Condition::class;
protected $conditionsDataType = 'array';
/**
* @var string
*/
public $mappedRouteName;
/**
* @var int
*/
public $observedGeneration;
protected $resourceRecordsType = ResourceRecord::class;
protected $resourceRecordsDataType = 'array';
/**
* @var string
*/
public $url;
/**
* @param GoogleCloudRunV1Condition[]
*/
public function setConditions($conditions)
{
$this->conditions = $conditions;
}
/**
* @return GoogleCloudRunV1Condition[]
*/
public function getConditions()
{
return $this->conditions;
}
/**
* @param string
*/
public function setMappedRouteName($mappedRouteName)
{
$this->mappedRouteName = $mappedRouteName;
}
/**
* @return string
*/
public function getMappedRouteName()
{
return $this->mappedRouteName;
}
/**
* @param int
*/
public function setObservedGeneration($observedGeneration)
{
$this->observedGeneration = $observedGeneration;
}
/**
* @return int
*/
public function getObservedGeneration()
{
return $this->observedGeneration;
}
/**
* @param ResourceRecord[]
*/
public function setResourceRecords($resourceRecords)
{
$this->resourceRecords = $resourceRecords;
}
/**
* @return ResourceRecord[]
*/
public function getResourceRecords()
{
return $this->resourceRecords;
}
/**
* @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(DomainMappingStatus::class, 'Google_Service_CloudRun_DomainMappingStatus');
@@ -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 EnvFromSource extends \Google\Model
{
protected $configMapRefType = ConfigMapEnvSource::class;
protected $configMapRefDataType = '';
/**
* @var string
*/
public $prefix;
protected $secretRefType = SecretEnvSource::class;
protected $secretRefDataType = '';
/**
* @param ConfigMapEnvSource
*/
public function setConfigMapRef(ConfigMapEnvSource $configMapRef)
{
$this->configMapRef = $configMapRef;
}
/**
* @return ConfigMapEnvSource
*/
public function getConfigMapRef()
{
return $this->configMapRef;
}
/**
* @param string
*/
public function setPrefix($prefix)
{
$this->prefix = $prefix;
}
/**
* @return string
*/
public function getPrefix()
{
return $this->prefix;
}
/**
* @param SecretEnvSource
*/
public function setSecretRef(SecretEnvSource $secretRef)
{
$this->secretRef = $secretRef;
}
/**
* @return SecretEnvSource
*/
public function getSecretRef()
{
return $this->secretRef;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EnvFromSource::class, 'Google_Service_CloudRun_EnvFromSource');
@@ -0,0 +1,78 @@
<?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 EnvVar extends \Google\Model
{
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $value;
protected $valueFromType = EnvVarSource::class;
protected $valueFromDataType = '';
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
/**
* @param EnvVarSource
*/
public function setValueFrom(EnvVarSource $valueFrom)
{
$this->valueFrom = $valueFrom;
}
/**
* @return EnvVarSource
*/
public function getValueFrom()
{
return $this->valueFrom;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EnvVar::class, 'Google_Service_CloudRun_EnvVar');
@@ -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\CloudRun;
class EnvVarSource extends \Google\Model
{
protected $configMapKeyRefType = ConfigMapKeySelector::class;
protected $configMapKeyRefDataType = '';
protected $secretKeyRefType = SecretKeySelector::class;
protected $secretKeyRefDataType = '';
/**
* @param ConfigMapKeySelector
*/
public function setConfigMapKeyRef(ConfigMapKeySelector $configMapKeyRef)
{
$this->configMapKeyRef = $configMapKeyRef;
}
/**
* @return ConfigMapKeySelector
*/
public function getConfigMapKeyRef()
{
return $this->configMapKeyRef;
}
/**
* @param SecretKeySelector
*/
public function setSecretKeyRef(SecretKeySelector $secretKeyRef)
{
$this->secretKeyRef = $secretKeyRef;
}
/**
* @return SecretKeySelector
*/
public function getSecretKeyRef()
{
return $this->secretKeyRef;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EnvVarSource::class, 'Google_Service_CloudRun_EnvVarSource');
@@ -0,0 +1,45 @@
<?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 ExecAction extends \Google\Collection
{
protected $collection_key = 'command';
/**
* @var string[]
*/
public $command;
/**
* @param string[]
*/
public function setCommand($command)
{
$this->command = $command;
}
/**
* @return string[]
*/
public function getCommand()
{
return $this->command;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExecAction::class, 'Google_Service_CloudRun_ExecAction');
+98
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\CloudRun;
class Expr extends \Google\Model
{
/**
* @var string
*/
public $description;
/**
* @var string
*/
public $expression;
/**
* @var string
*/
public $location;
/**
* @var string
*/
public $title;
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param string
*/
public function setExpression($expression)
{
$this->expression = $expression;
}
/**
* @return string
*/
public function getExpression()
{
return $this->expression;
}
/**
* @param string
*/
public function setLocation($location)
{
$this->location = $location;
}
/**
* @return string
*/
public function getLocation()
{
return $this->location;
}
/**
* @param string
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Expr::class, 'Google_Service_CloudRun_Expr');
@@ -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 GoogleCloudRunOpV2BinaryAuthorization extends \Google\Model
{
/**
* @var string
*/
public $breakglassJustification;
/**
* @var bool
*/
public $useDefault;
/**
* @param string
*/
public function setBreakglassJustification($breakglassJustification)
{
$this->breakglassJustification = $breakglassJustification;
}
/**
* @return string
*/
public function getBreakglassJustification()
{
return $this->breakglassJustification;
}
/**
* @param bool
*/
public function setUseDefault($useDefault)
{
$this->useDefault = $useDefault;
}
/**
* @return bool
*/
public function getUseDefault()
{
return $this->useDefault;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRunOpV2BinaryAuthorization::class, 'Google_Service_CloudRun_GoogleCloudRunOpV2BinaryAuthorization');
@@ -0,0 +1,45 @@
<?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 GoogleCloudRunOpV2CloudSqlInstance extends \Google\Collection
{
protected $collection_key = 'connections';
/**
* @var string[]
*/
public $connections;
/**
* @param string[]
*/
public function setConnections($connections)
{
$this->connections = $connections;
}
/**
* @return string[]
*/
public function getConnections()
{
return $this->connections;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRunOpV2CloudSqlInstance::class, 'Google_Service_CloudRun_GoogleCloudRunOpV2CloudSqlInstance');
@@ -0,0 +1,206 @@
<?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 GoogleCloudRunOpV2Condition extends \Google\Model
{
/**
* @var string
*/
public $domainMappingReason;
/**
* @var string
*/
public $executionReason;
/**
* @var string
*/
public $internalReason;
/**
* @var string
*/
public $lastTransitionTime;
/**
* @var string
*/
public $message;
/**
* @var string
*/
public $reason;
/**
* @var string
*/
public $revisionReason;
/**
* @var string
*/
public $severity;
/**
* @var string
*/
public $state;
/**
* @var string
*/
public $type;
/**
* @param string
*/
public function setDomainMappingReason($domainMappingReason)
{
$this->domainMappingReason = $domainMappingReason;
}
/**
* @return string
*/
public function getDomainMappingReason()
{
return $this->domainMappingReason;
}
/**
* @param string
*/
public function setExecutionReason($executionReason)
{
$this->executionReason = $executionReason;
}
/**
* @return string
*/
public function getExecutionReason()
{
return $this->executionReason;
}
/**
* @param string
*/
public function setInternalReason($internalReason)
{
$this->internalReason = $internalReason;
}
/**
* @return string
*/
public function getInternalReason()
{
return $this->internalReason;
}
/**
* @param string
*/
public function setLastTransitionTime($lastTransitionTime)
{
$this->lastTransitionTime = $lastTransitionTime;
}
/**
* @return string
*/
public function getLastTransitionTime()
{
return $this->lastTransitionTime;
}
/**
* @param string
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
/**
* @param string
*/
public function setReason($reason)
{
$this->reason = $reason;
}
/**
* @return string
*/
public function getReason()
{
return $this->reason;
}
/**
* @param string
*/
public function setRevisionReason($revisionReason)
{
$this->revisionReason = $revisionReason;
}
/**
* @return string
*/
public function getRevisionReason()
{
return $this->revisionReason;
}
/**
* @param string
*/
public function setSeverity($severity)
{
$this->severity = $severity;
}
/**
* @return string
*/
public function getSeverity()
{
return $this->severity;
}
/**
* @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(GoogleCloudRunOpV2Condition::class, 'Google_Service_CloudRun_GoogleCloudRunOpV2Condition');
@@ -0,0 +1,163 @@
<?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 GoogleCloudRunOpV2Container extends \Google\Collection
{
protected $collection_key = 'volumeMounts';
/**
* @var string[]
*/
public $args;
/**
* @var string[]
*/
public $command;
protected $envType = GoogleCloudRunOpV2EnvVar::class;
protected $envDataType = 'array';
/**
* @var string
*/
public $image;
/**
* @var string
*/
public $name;
protected $portsType = GoogleCloudRunOpV2ContainerPort::class;
protected $portsDataType = 'array';
protected $resourcesType = GoogleCloudRunOpV2ResourceRequirements::class;
protected $resourcesDataType = '';
protected $volumeMountsType = GoogleCloudRunOpV2VolumeMount::class;
protected $volumeMountsDataType = 'array';
/**
* @param string[]
*/
public function setArgs($args)
{
$this->args = $args;
}
/**
* @return string[]
*/
public function getArgs()
{
return $this->args;
}
/**
* @param string[]
*/
public function setCommand($command)
{
$this->command = $command;
}
/**
* @return string[]
*/
public function getCommand()
{
return $this->command;
}
/**
* @param GoogleCloudRunOpV2EnvVar[]
*/
public function setEnv($env)
{
$this->env = $env;
}
/**
* @return GoogleCloudRunOpV2EnvVar[]
*/
public function getEnv()
{
return $this->env;
}
/**
* @param string
*/
public function setImage($image)
{
$this->image = $image;
}
/**
* @return string
*/
public function getImage()
{
return $this->image;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param GoogleCloudRunOpV2ContainerPort[]
*/
public function setPorts($ports)
{
$this->ports = $ports;
}
/**
* @return GoogleCloudRunOpV2ContainerPort[]
*/
public function getPorts()
{
return $this->ports;
}
/**
* @param GoogleCloudRunOpV2ResourceRequirements
*/
public function setResources(GoogleCloudRunOpV2ResourceRequirements $resources)
{
$this->resources = $resources;
}
/**
* @return GoogleCloudRunOpV2ResourceRequirements
*/
public function getResources()
{
return $this->resources;
}
/**
* @param GoogleCloudRunOpV2VolumeMount[]
*/
public function setVolumeMounts($volumeMounts)
{
$this->volumeMounts = $volumeMounts;
}
/**
* @return GoogleCloudRunOpV2VolumeMount[]
*/
public function getVolumeMounts()
{
return $this->volumeMounts;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRunOpV2Container::class, 'Google_Service_CloudRun_GoogleCloudRunOpV2Container');
@@ -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 GoogleCloudRunOpV2ContainerPort extends \Google\Model
{
/**
* @var int
*/
public $containerPort;
/**
* @var string
*/
public $name;
/**
* @param int
*/
public function setContainerPort($containerPort)
{
$this->containerPort = $containerPort;
}
/**
* @return int
*/
public function getContainerPort()
{
return $this->containerPort;
}
/**
* @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(GoogleCloudRunOpV2ContainerPort::class, 'Google_Service_CloudRun_GoogleCloudRunOpV2ContainerPort');
@@ -0,0 +1,78 @@
<?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 GoogleCloudRunOpV2EnvVar extends \Google\Model
{
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $value;
protected $valueSourceType = GoogleCloudRunOpV2EnvVarSource::class;
protected $valueSourceDataType = '';
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
/**
* @param GoogleCloudRunOpV2EnvVarSource
*/
public function setValueSource(GoogleCloudRunOpV2EnvVarSource $valueSource)
{
$this->valueSource = $valueSource;
}
/**
* @return GoogleCloudRunOpV2EnvVarSource
*/
public function getValueSource()
{
return $this->valueSource;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRunOpV2EnvVar::class, 'Google_Service_CloudRun_GoogleCloudRunOpV2EnvVar');
@@ -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\CloudRun;
class GoogleCloudRunOpV2EnvVarSource extends \Google\Model
{
protected $secretKeyRefType = GoogleCloudRunOpV2SecretKeySelector::class;
protected $secretKeyRefDataType = '';
/**
* @param GoogleCloudRunOpV2SecretKeySelector
*/
public function setSecretKeyRef(GoogleCloudRunOpV2SecretKeySelector $secretKeyRef)
{
$this->secretKeyRef = $secretKeyRef;
}
/**
* @return GoogleCloudRunOpV2SecretKeySelector
*/
public function getSecretKeyRef()
{
return $this->secretKeyRef;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRunOpV2EnvVarSource::class, 'Google_Service_CloudRun_GoogleCloudRunOpV2EnvVarSource');
@@ -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 GoogleCloudRunOpV2ListRevisionsResponse extends \Google\Collection
{
protected $collection_key = 'revisions';
/**
* @var string
*/
public $nextPageToken;
protected $revisionsType = GoogleCloudRunOpV2Revision::class;
protected $revisionsDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param GoogleCloudRunOpV2Revision[]
*/
public function setRevisions($revisions)
{
$this->revisions = $revisions;
}
/**
* @return GoogleCloudRunOpV2Revision[]
*/
public function getRevisions()
{
return $this->revisions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRunOpV2ListRevisionsResponse::class, 'Google_Service_CloudRun_GoogleCloudRunOpV2ListRevisionsResponse');
@@ -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 GoogleCloudRunOpV2ListServicesResponse extends \Google\Collection
{
protected $collection_key = 'services';
/**
* @var string
*/
public $nextPageToken;
protected $servicesType = GoogleCloudRunOpV2Service::class;
protected $servicesDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param GoogleCloudRunOpV2Service[]
*/
public function setServices($services)
{
$this->services = $services;
}
/**
* @return GoogleCloudRunOpV2Service[]
*/
public function getServices()
{
return $this->services;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRunOpV2ListServicesResponse::class, 'Google_Service_CloudRun_GoogleCloudRunOpV2ListServicesResponse');
@@ -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 GoogleCloudRunOpV2ResourceRequirements extends \Google\Model
{
/**
* @var bool
*/
public $cpuIdle;
/**
* @var string[]
*/
public $limits;
/**
* @param bool
*/
public function setCpuIdle($cpuIdle)
{
$this->cpuIdle = $cpuIdle;
}
/**
* @return bool
*/
public function getCpuIdle()
{
return $this->cpuIdle;
}
/**
* @param string[]
*/
public function setLimits($limits)
{
$this->limits = $limits;
}
/**
* @return string[]
*/
public function getLimits()
{
return $this->limits;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRunOpV2ResourceRequirements::class, 'Google_Service_CloudRun_GoogleCloudRunOpV2ResourceRequirements');
@@ -0,0 +1,485 @@
<?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 GoogleCloudRunOpV2Revision extends \Google\Collection
{
protected $collection_key = 'volumes';
/**
* @var string[]
*/
public $annotations;
protected $conditionsType = GoogleCloudRunOpV2Condition::class;
protected $conditionsDataType = 'array';
/**
* @var bool
*/
public $confidential;
/**
* @var int
*/
public $containerConcurrency;
protected $containersType = GoogleCloudRunOpV2Container::class;
protected $containersDataType = 'array';
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $deleteTime;
/**
* @var string
*/
public $encryptionKey;
/**
* @var string
*/
public $etag;
/**
* @var string
*/
public $executionEnvironment;
/**
* @var string
*/
public $expireTime;
/**
* @var string
*/
public $generation;
/**
* @var string[]
*/
public $labels;
/**
* @var string
*/
public $launchStage;
/**
* @var string
*/
public $logUri;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $observedGeneration;
/**
* @var bool
*/
public $reconciling;
protected $scalingType = GoogleCloudRunOpV2RevisionScaling::class;
protected $scalingDataType = '';
/**
* @var string
*/
public $service;
/**
* @var string
*/
public $serviceAccount;
/**
* @var string
*/
public $timeout;
/**
* @var string
*/
public $uid;
/**
* @var string
*/
public $updateTime;
protected $volumesType = GoogleCloudRunOpV2Volume::class;
protected $volumesDataType = 'array';
protected $vpcAccessType = GoogleCloudRunOpV2VpcAccess::class;
protected $vpcAccessDataType = '';
/**
* @param string[]
*/
public function setAnnotations($annotations)
{
$this->annotations = $annotations;
}
/**
* @return string[]
*/
public function getAnnotations()
{
return $this->annotations;
}
/**
* @param GoogleCloudRunOpV2Condition[]
*/
public function setConditions($conditions)
{
$this->conditions = $conditions;
}
/**
* @return GoogleCloudRunOpV2Condition[]
*/
public function getConditions()
{
return $this->conditions;
}
/**
* @param bool
*/
public function setConfidential($confidential)
{
$this->confidential = $confidential;
}
/**
* @return bool
*/
public function getConfidential()
{
return $this->confidential;
}
/**
* @param int
*/
public function setContainerConcurrency($containerConcurrency)
{
$this->containerConcurrency = $containerConcurrency;
}
/**
* @return int
*/
public function getContainerConcurrency()
{
return $this->containerConcurrency;
}
/**
* @param GoogleCloudRunOpV2Container[]
*/
public function setContainers($containers)
{
$this->containers = $containers;
}
/**
* @return GoogleCloudRunOpV2Container[]
*/
public function getContainers()
{
return $this->containers;
}
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setDeleteTime($deleteTime)
{
$this->deleteTime = $deleteTime;
}
/**
* @return string
*/
public function getDeleteTime()
{
return $this->deleteTime;
}
/**
* @param string
*/
public function setEncryptionKey($encryptionKey)
{
$this->encryptionKey = $encryptionKey;
}
/**
* @return string
*/
public function getEncryptionKey()
{
return $this->encryptionKey;
}
/**
* @param string
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* @param string
*/
public function setExecutionEnvironment($executionEnvironment)
{
$this->executionEnvironment = $executionEnvironment;
}
/**
* @return string
*/
public function getExecutionEnvironment()
{
return $this->executionEnvironment;
}
/**
* @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 string[]
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* @param string
*/
public function setLaunchStage($launchStage)
{
$this->launchStage = $launchStage;
}
/**
* @return string
*/
public function getLaunchStage()
{
return $this->launchStage;
}
/**
* @param string
*/
public function setLogUri($logUri)
{
$this->logUri = $logUri;
}
/**
* @return string
*/
public function getLogUri()
{
return $this->logUri;
}
/**
* @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 GoogleCloudRunOpV2RevisionScaling
*/
public function setScaling(GoogleCloudRunOpV2RevisionScaling $scaling)
{
$this->scaling = $scaling;
}
/**
* @return GoogleCloudRunOpV2RevisionScaling
*/
public function getScaling()
{
return $this->scaling;
}
/**
* @param string
*/
public function setService($service)
{
$this->service = $service;
}
/**
* @return string
*/
public function getService()
{
return $this->service;
}
/**
* @param string
*/
public function setServiceAccount($serviceAccount)
{
$this->serviceAccount = $serviceAccount;
}
/**
* @return string
*/
public function getServiceAccount()
{
return $this->serviceAccount;
}
/**
* @param string
*/
public function setTimeout($timeout)
{
$this->timeout = $timeout;
}
/**
* @return string
*/
public function getTimeout()
{
return $this->timeout;
}
/**
* @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;
}
/**
* @param GoogleCloudRunOpV2Volume[]
*/
public function setVolumes($volumes)
{
$this->volumes = $volumes;
}
/**
* @return GoogleCloudRunOpV2Volume[]
*/
public function getVolumes()
{
return $this->volumes;
}
/**
* @param GoogleCloudRunOpV2VpcAccess
*/
public function setVpcAccess(GoogleCloudRunOpV2VpcAccess $vpcAccess)
{
$this->vpcAccess = $vpcAccess;
}
/**
* @return GoogleCloudRunOpV2VpcAccess
*/
public function getVpcAccess()
{
return $this->vpcAccess;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRunOpV2Revision::class, 'Google_Service_CloudRun_GoogleCloudRunOpV2Revision');
@@ -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 GoogleCloudRunOpV2RevisionScaling extends \Google\Model
{
/**
* @var int
*/
public $maxInstanceCount;
/**
* @var int
*/
public $minInstanceCount;
/**
* @param int
*/
public function setMaxInstanceCount($maxInstanceCount)
{
$this->maxInstanceCount = $maxInstanceCount;
}
/**
* @return int
*/
public function getMaxInstanceCount()
{
return $this->maxInstanceCount;
}
/**
* @param int
*/
public function setMinInstanceCount($minInstanceCount)
{
$this->minInstanceCount = $minInstanceCount;
}
/**
* @return int
*/
public function getMinInstanceCount()
{
return $this->minInstanceCount;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRunOpV2RevisionScaling::class, 'Google_Service_CloudRun_GoogleCloudRunOpV2RevisionScaling');
@@ -0,0 +1,253 @@
<?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 GoogleCloudRunOpV2RevisionTemplate extends \Google\Collection
{
protected $collection_key = 'volumes';
/**
* @var string[]
*/
public $annotations;
/**
* @var bool
*/
public $confidential;
/**
* @var int
*/
public $containerConcurrency;
protected $containersType = GoogleCloudRunOpV2Container::class;
protected $containersDataType = 'array';
/**
* @var string
*/
public $encryptionKey;
/**
* @var string
*/
public $executionEnvironment;
/**
* @var string[]
*/
public $labels;
/**
* @var string
*/
public $revision;
protected $scalingType = GoogleCloudRunOpV2RevisionScaling::class;
protected $scalingDataType = '';
/**
* @var string
*/
public $serviceAccount;
/**
* @var string
*/
public $timeout;
protected $volumesType = GoogleCloudRunOpV2Volume::class;
protected $volumesDataType = 'array';
protected $vpcAccessType = GoogleCloudRunOpV2VpcAccess::class;
protected $vpcAccessDataType = '';
/**
* @param string[]
*/
public function setAnnotations($annotations)
{
$this->annotations = $annotations;
}
/**
* @return string[]
*/
public function getAnnotations()
{
return $this->annotations;
}
/**
* @param bool
*/
public function setConfidential($confidential)
{
$this->confidential = $confidential;
}
/**
* @return bool
*/
public function getConfidential()
{
return $this->confidential;
}
/**
* @param int
*/
public function setContainerConcurrency($containerConcurrency)
{
$this->containerConcurrency = $containerConcurrency;
}
/**
* @return int
*/
public function getContainerConcurrency()
{
return $this->containerConcurrency;
}
/**
* @param GoogleCloudRunOpV2Container[]
*/
public function setContainers($containers)
{
$this->containers = $containers;
}
/**
* @return GoogleCloudRunOpV2Container[]
*/
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 setExecutionEnvironment($executionEnvironment)
{
$this->executionEnvironment = $executionEnvironment;
}
/**
* @return string
*/
public function getExecutionEnvironment()
{
return $this->executionEnvironment;
}
/**
* @param string[]
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* @param string
*/
public function setRevision($revision)
{
$this->revision = $revision;
}
/**
* @return string
*/
public function getRevision()
{
return $this->revision;
}
/**
* @param GoogleCloudRunOpV2RevisionScaling
*/
public function setScaling(GoogleCloudRunOpV2RevisionScaling $scaling)
{
$this->scaling = $scaling;
}
/**
* @return GoogleCloudRunOpV2RevisionScaling
*/
public function getScaling()
{
return $this->scaling;
}
/**
* @param string
*/
public function setServiceAccount($serviceAccount)
{
$this->serviceAccount = $serviceAccount;
}
/**
* @return string
*/
public function getServiceAccount()
{
return $this->serviceAccount;
}
/**
* @param string
*/
public function setTimeout($timeout)
{
$this->timeout = $timeout;
}
/**
* @return string
*/
public function getTimeout()
{
return $this->timeout;
}
/**
* @param GoogleCloudRunOpV2Volume[]
*/
public function setVolumes($volumes)
{
$this->volumes = $volumes;
}
/**
* @return GoogleCloudRunOpV2Volume[]
*/
public function getVolumes()
{
return $this->volumes;
}
/**
* @param GoogleCloudRunOpV2VpcAccess
*/
public function setVpcAccess(GoogleCloudRunOpV2VpcAccess $vpcAccess)
{
$this->vpcAccess = $vpcAccess;
}
/**
* @return GoogleCloudRunOpV2VpcAccess
*/
public function getVpcAccess()
{
return $this->vpcAccess;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRunOpV2RevisionTemplate::class, 'Google_Service_CloudRun_GoogleCloudRunOpV2RevisionTemplate');
@@ -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 GoogleCloudRunOpV2SecretKeySelector extends \Google\Model
{
/**
* @var string
*/
public $secret;
/**
* @var string
*/
public $version;
/**
* @param string
*/
public function setSecret($secret)
{
$this->secret = $secret;
}
/**
* @return string
*/
public function getSecret()
{
return $this->secret;
}
/**
* @param string
*/
public function setVersion($version)
{
$this->version = $version;
}
/**
* @return string
*/
public function getVersion()
{
return $this->version;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRunOpV2SecretKeySelector::class, 'Google_Service_CloudRun_GoogleCloudRunOpV2SecretKeySelector');
@@ -0,0 +1,79 @@
<?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 GoogleCloudRunOpV2SecretVolumeSource extends \Google\Collection
{
protected $collection_key = 'items';
/**
* @var int
*/
public $defaultMode;
protected $itemsType = GoogleCloudRunOpV2VersionToPath::class;
protected $itemsDataType = 'array';
/**
* @var string
*/
public $secret;
/**
* @param int
*/
public function setDefaultMode($defaultMode)
{
$this->defaultMode = $defaultMode;
}
/**
* @return int
*/
public function getDefaultMode()
{
return $this->defaultMode;
}
/**
* @param GoogleCloudRunOpV2VersionToPath[]
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return GoogleCloudRunOpV2VersionToPath[]
*/
public function getItems()
{
return $this->items;
}
/**
* @param string
*/
public function setSecret($secret)
{
$this->secret = $secret;
}
/**
* @return string
*/
public function getSecret()
{
return $this->secret;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRunOpV2SecretVolumeSource::class, 'Google_Service_CloudRun_GoogleCloudRunOpV2SecretVolumeSource');
@@ -0,0 +1,519 @@
<?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 GoogleCloudRunOpV2Service extends \Google\Collection
{
protected $collection_key = 'trafficStatuses';
/**
* @var string[]
*/
public $annotations;
protected $binaryAuthorizationType = GoogleCloudRunOpV2BinaryAuthorization::class;
protected $binaryAuthorizationDataType = '';
/**
* @var string
*/
public $client;
/**
* @var string
*/
public $clientVersion;
protected $conditionsType = GoogleCloudRunOpV2Condition::class;
protected $conditionsDataType = 'array';
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $creator;
/**
* @var string
*/
public $deleteTime;
/**
* @var string
*/
public $description;
/**
* @var string
*/
public $etag;
/**
* @var string
*/
public $expireTime;
/**
* @var string
*/
public $generation;
/**
* @var string
*/
public $ingress;
/**
* @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;
protected $templateType = GoogleCloudRunOpV2RevisionTemplate::class;
protected $templateDataType = '';
protected $terminalConditionType = GoogleCloudRunOpV2Condition::class;
protected $terminalConditionDataType = '';
protected $trafficType = GoogleCloudRunOpV2TrafficTarget::class;
protected $trafficDataType = 'array';
protected $trafficStatusesType = GoogleCloudRunOpV2TrafficTargetStatus::class;
protected $trafficStatusesDataType = 'array';
/**
* @var string
*/
public $uid;
/**
* @var string
*/
public $updateTime;
/**
* @var string
*/
public $uri;
/**
* @param string[]
*/
public function setAnnotations($annotations)
{
$this->annotations = $annotations;
}
/**
* @return string[]
*/
public function getAnnotations()
{
return $this->annotations;
}
/**
* @param GoogleCloudRunOpV2BinaryAuthorization
*/
public function setBinaryAuthorization(GoogleCloudRunOpV2BinaryAuthorization $binaryAuthorization)
{
$this->binaryAuthorization = $binaryAuthorization;
}
/**
* @return GoogleCloudRunOpV2BinaryAuthorization
*/
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 GoogleCloudRunOpV2Condition[]
*/
public function setConditions($conditions)
{
$this->conditions = $conditions;
}
/**
* @return GoogleCloudRunOpV2Condition[]
*/
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 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 string
*/
public function setIngress($ingress)
{
$this->ingress = $ingress;
}
/**
* @return string
*/
public function getIngress()
{
return $this->ingress;
}
/**
* @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 GoogleCloudRunOpV2RevisionTemplate
*/
public function setTemplate(GoogleCloudRunOpV2RevisionTemplate $template)
{
$this->template = $template;
}
/**
* @return GoogleCloudRunOpV2RevisionTemplate
*/
public function getTemplate()
{
return $this->template;
}
/**
* @param GoogleCloudRunOpV2Condition
*/
public function setTerminalCondition(GoogleCloudRunOpV2Condition $terminalCondition)
{
$this->terminalCondition = $terminalCondition;
}
/**
* @return GoogleCloudRunOpV2Condition
*/
public function getTerminalCondition()
{
return $this->terminalCondition;
}
/**
* @param GoogleCloudRunOpV2TrafficTarget[]
*/
public function setTraffic($traffic)
{
$this->traffic = $traffic;
}
/**
* @return GoogleCloudRunOpV2TrafficTarget[]
*/
public function getTraffic()
{
return $this->traffic;
}
/**
* @param GoogleCloudRunOpV2TrafficTargetStatus[]
*/
public function setTrafficStatuses($trafficStatuses)
{
$this->trafficStatuses = $trafficStatuses;
}
/**
* @return GoogleCloudRunOpV2TrafficTargetStatus[]
*/
public function getTrafficStatuses()
{
return $this->trafficStatuses;
}
/**
* @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;
}
/**
* @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(GoogleCloudRunOpV2Service::class, 'Google_Service_CloudRun_GoogleCloudRunOpV2Service');
@@ -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\CloudRun;
class GoogleCloudRunOpV2TrafficTarget extends \Google\Model
{
/**
* @var int
*/
public $percent;
/**
* @var string
*/
public $revision;
/**
* @var string
*/
public $tag;
/**
* @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 setTag($tag)
{
$this->tag = $tag;
}
/**
* @return string
*/
public function getTag()
{
return $this->tag;
}
/**
* @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(GoogleCloudRunOpV2TrafficTarget::class, 'Google_Service_CloudRun_GoogleCloudRunOpV2TrafficTarget');
@@ -0,0 +1,116 @@
<?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 GoogleCloudRunOpV2TrafficTargetStatus extends \Google\Model
{
/**
* @var int
*/
public $percent;
/**
* @var string
*/
public $revision;
/**
* @var string
*/
public $tag;
/**
* @var string
*/
public $type;
/**
* @var string
*/
public $uri;
/**
* @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 setTag($tag)
{
$this->tag = $tag;
}
/**
* @return string
*/
public function getTag()
{
return $this->tag;
}
/**
* @param string
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
/**
* @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(GoogleCloudRunOpV2TrafficTargetStatus::class, 'Google_Service_CloudRun_GoogleCloudRunOpV2TrafficTargetStatus');
@@ -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 GoogleCloudRunOpV2VersionToPath extends \Google\Model
{
/**
* @var int
*/
public $mode;
/**
* @var string
*/
public $path;
/**
* @var string
*/
public $version;
/**
* @param int
*/
public function setMode($mode)
{
$this->mode = $mode;
}
/**
* @return int
*/
public function getMode()
{
return $this->mode;
}
/**
* @param string
*/
public function setPath($path)
{
$this->path = $path;
}
/**
* @return string
*/
public function getPath()
{
return $this->path;
}
/**
* @param string
*/
public function setVersion($version)
{
$this->version = $version;
}
/**
* @return string
*/
public function getVersion()
{
return $this->version;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRunOpV2VersionToPath::class, 'Google_Service_CloudRun_GoogleCloudRunOpV2VersionToPath');
@@ -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 GoogleCloudRunOpV2Volume extends \Google\Model
{
protected $cloudSqlInstanceType = GoogleCloudRunOpV2CloudSqlInstance::class;
protected $cloudSqlInstanceDataType = '';
/**
* @var string
*/
public $name;
protected $secretType = GoogleCloudRunOpV2SecretVolumeSource::class;
protected $secretDataType = '';
/**
* @param GoogleCloudRunOpV2CloudSqlInstance
*/
public function setCloudSqlInstance(GoogleCloudRunOpV2CloudSqlInstance $cloudSqlInstance)
{
$this->cloudSqlInstance = $cloudSqlInstance;
}
/**
* @return GoogleCloudRunOpV2CloudSqlInstance
*/
public function getCloudSqlInstance()
{
return $this->cloudSqlInstance;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param GoogleCloudRunOpV2SecretVolumeSource
*/
public function setSecret(GoogleCloudRunOpV2SecretVolumeSource $secret)
{
$this->secret = $secret;
}
/**
* @return GoogleCloudRunOpV2SecretVolumeSource
*/
public function getSecret()
{
return $this->secret;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRunOpV2Volume::class, 'Google_Service_CloudRun_GoogleCloudRunOpV2Volume');
@@ -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 GoogleCloudRunOpV2VolumeMount extends \Google\Model
{
/**
* @var string
*/
public $mountPath;
/**
* @var string
*/
public $name;
/**
* @param string
*/
public function setMountPath($mountPath)
{
$this->mountPath = $mountPath;
}
/**
* @return string
*/
public function getMountPath()
{
return $this->mountPath;
}
/**
* @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(GoogleCloudRunOpV2VolumeMount::class, 'Google_Service_CloudRun_GoogleCloudRunOpV2VolumeMount');
@@ -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 GoogleCloudRunOpV2VpcAccess extends \Google\Model
{
/**
* @var string
*/
public $connector;
/**
* @var string
*/
public $egress;
/**
* @param string
*/
public function setConnector($connector)
{
$this->connector = $connector;
}
/**
* @return string
*/
public function getConnector()
{
return $this->connector;
}
/**
* @param string
*/
public function setEgress($egress)
{
$this->egress = $egress;
}
/**
* @return string
*/
public function getEgress()
{
return $this->egress;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRunOpV2VpcAccess::class, 'Google_Service_CloudRun_GoogleCloudRunOpV2VpcAccess');
@@ -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 GoogleCloudRunV1Condition extends \Google\Model
{
/**
* @var string
*/
public $lastTransitionTime;
/**
* @var string
*/
public $message;
/**
* @var string
*/
public $reason;
/**
* @var string
*/
public $severity;
/**
* @var string
*/
public $status;
/**
* @var string
*/
public $type;
/**
* @param string
*/
public function setLastTransitionTime($lastTransitionTime)
{
$this->lastTransitionTime = $lastTransitionTime;
}
/**
* @return string
*/
public function getLastTransitionTime()
{
return $this->lastTransitionTime;
}
/**
* @param string
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
/**
* @param string
*/
public function setReason($reason)
{
$this->reason = $reason;
}
/**
* @return string
*/
public function getReason()
{
return $this->reason;
}
/**
* @param string
*/
public function setSeverity($severity)
{
$this->severity = $severity;
}
/**
* @return string
*/
public function getSeverity()
{
return $this->severity;
}
/**
* @param string
*/
public function setStatus($status)
{
$this->status = $status;
}
/**
* @return string
*/
public function getStatus()
{
return $this->status;
}
/**
* @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(GoogleCloudRunV1Condition::class, 'Google_Service_CloudRun_GoogleCloudRunV1Condition');
@@ -0,0 +1,102 @@
<?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 GoogleCloudRunV2BinaryAuthorization extends \Google\Model
{
/**
* Optional. If present, indicates to use Breakglass using this justification.
* If use_default is False, then it must be empty. For more information on
* breakglass, see https://cloud.google.com/binary-authorization/docs/using-
* breakglass
*
* @var string
*/
public $breakglassJustification;
/**
* Optional. The path to a binary authorization policy. Format:
* `projects/{project}/platforms/cloudRun/{policy-name}`
*
* @var string
*/
public $policy;
/**
* Optional. If True, indicates to use the default project's binary
* authorization policy. If False, binary authorization will be disabled.
*
* @var bool
*/
public $useDefault;
/**
* Optional. If present, indicates to use Breakglass using this justification.
* If use_default is False, then it must be empty. For more information on
* breakglass, see https://cloud.google.com/binary-authorization/docs/using-
* breakglass
*
* @param string $breakglassJustification
*/
public function setBreakglassJustification($breakglassJustification)
{
$this->breakglassJustification = $breakglassJustification;
}
/**
* @return string
*/
public function getBreakglassJustification()
{
return $this->breakglassJustification;
}
/**
* Optional. The path to a binary authorization policy. Format:
* `projects/{project}/platforms/cloudRun/{policy-name}`
*
* @param string $policy
*/
public function setPolicy($policy)
{
$this->policy = $policy;
}
/**
* @return string
*/
public function getPolicy()
{
return $this->policy;
}
/**
* Optional. If True, indicates to use the default project's binary
* authorization policy. If False, binary authorization will be disabled.
*
* @param bool $useDefault
*/
public function setUseDefault($useDefault)
{
$this->useDefault = $useDefault;
}
/**
* @return bool
*/
public function getUseDefault()
{
return $this->useDefault;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRunV2BinaryAuthorization::class, 'Google_Service_CloudRun_GoogleCloudRunV2BinaryAuthorization');
@@ -0,0 +1,248 @@
<?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
{
/**
* Optional. The base image used to build the function.
*
* @var string
*/
public $baseImage;
/**
* Optional. Sets whether the function will receive automatic base image
* updates.
*
* @var bool
*/
public $enableAutomaticUpdates;
/**
* Optional. User-provided build-time environment variables for the function
*
* @var string[]
*/
public $environmentVariables;
/**
* Optional. The name of the function (as defined in source code) that will be
* executed. Defaults to the resource name suffix, if not specified. For
* backward compatibility, if function with given name is not found, then the
* system will try to use function named "function".
*
* @var string
*/
public $functionTarget;
/**
* Optional. Artifact Registry URI to store the built image.
*
* @var string
*/
public $imageUri;
/**
* Output only. The Cloud Build name of the latest successful deployment of
* the function.
*
* @var string
*/
public $name;
/**
* Optional. Service account to be used for building the container. The format
* of this field is
* `projects/{projectId}/serviceAccounts/{serviceAccountEmail}`.
*
* @var string
*/
public $serviceAccount;
/**
* The Cloud Storage bucket URI where the function source code is located.
*
* @var string
*/
public $sourceLocation;
/**
* Optional. Name of the Cloud Build Custom Worker Pool that should be used to
* build the Cloud Run function. The format of this field is
* `projects/{project}/locations/{region}/workerPools/{workerPool}` where
* `{project}` and `{region}` are the project id and region respectively where
* the worker pool is defined and `{workerPool}` is the short name of the
* worker pool.
*
* @var string
*/
public $workerPool;
/**
* Optional. The base image used to build the function.
*
* @param string $baseImage
*/
public function setBaseImage($baseImage)
{
$this->baseImage = $baseImage;
}
/**
* @return string
*/
public function getBaseImage()
{
return $this->baseImage;
}
/**
* Optional. Sets whether the function will receive automatic base image
* updates.
*
* @param bool $enableAutomaticUpdates
*/
public function setEnableAutomaticUpdates($enableAutomaticUpdates)
{
$this->enableAutomaticUpdates = $enableAutomaticUpdates;
}
/**
* @return bool
*/
public function getEnableAutomaticUpdates()
{
return $this->enableAutomaticUpdates;
}
/**
* Optional. User-provided build-time environment variables for the function
*
* @param string[] $environmentVariables
*/
public function setEnvironmentVariables($environmentVariables)
{
$this->environmentVariables = $environmentVariables;
}
/**
* @return string[]
*/
public function getEnvironmentVariables()
{
return $this->environmentVariables;
}
/**
* Optional. The name of the function (as defined in source code) that will be
* executed. Defaults to the resource name suffix, if not specified. For
* backward compatibility, if function with given name is not found, then the
* system will try to use function named "function".
*
* @param string $functionTarget
*/
public function setFunctionTarget($functionTarget)
{
$this->functionTarget = $functionTarget;
}
/**
* @return string
*/
public function getFunctionTarget()
{
return $this->functionTarget;
}
/**
* Optional. Artifact Registry URI to store the built image.
*
* @param string $imageUri
*/
public function setImageUri($imageUri)
{
$this->imageUri = $imageUri;
}
/**
* @return string
*/
public function getImageUri()
{
return $this->imageUri;
}
/**
* Output only. The Cloud Build name of the latest successful deployment of
* the function.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Optional. Service account to be used for building the container. The format
* of this field is
* `projects/{projectId}/serviceAccounts/{serviceAccountEmail}`.
*
* @param string $serviceAccount
*/
public function setServiceAccount($serviceAccount)
{
$this->serviceAccount = $serviceAccount;
}
/**
* @return string
*/
public function getServiceAccount()
{
return $this->serviceAccount;
}
/**
* The Cloud Storage bucket URI where the function source code is located.
*
* @param string $sourceLocation
*/
public function setSourceLocation($sourceLocation)
{
$this->sourceLocation = $sourceLocation;
}
/**
* @return string
*/
public function getSourceLocation()
{
return $this->sourceLocation;
}
/**
* Optional. Name of the Cloud Build Custom Worker Pool that should be used to
* build the Cloud Run function. The format of this field is
* `projects/{project}/locations/{region}/workerPools/{workerPool}` where
* `{project}` and `{region}` are the project id and region respectively where
* the worker pool is defined and `{workerPool}` is the short name of the
* worker pool.
*
* @param string $workerPool
*/
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');
@@ -0,0 +1,72 @@
<?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
{
/**
* Output only. Entry point of the function when the image is a Cloud Run
* function.
*
* @var string
*/
public $functionTarget;
/**
* Output only. Source code location of the image.
*
* @var string
*/
public $sourceLocation;
/**
* Output only. Entry point of the function when the image is a Cloud Run
* function.
*
* @param string $functionTarget
*/
public function setFunctionTarget($functionTarget)
{
$this->functionTarget = $functionTarget;
}
/**
* @return string
*/
public function getFunctionTarget()
{
return $this->functionTarget;
}
/**
* Output only. Source code location of the image.
*
* @param string $sourceLocation
*/
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');
@@ -0,0 +1,201 @@
<?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 GoogleCloudRunV2BuildpacksBuild extends \Google\Model
{
/**
* Optional. The base image to use for the build.
*
* @var string
*/
public $baseImage;
/**
* Optional. cache_image_uri is the GCR/AR URL where the cache image will be
* stored. cache_image_uri is optional and omitting it will disable caching.
* This URL must be stable across builds. It is used to derive a build-
* specific temporary URL by substituting the tag with the build ID. The build
* will clean up the temporary image on a best-effort basis.
*
* @var string
*/
public $cacheImageUri;
/**
* Optional. Whether or not the application container will be enrolled in
* automatic base image updates. When true, the application will be built on a
* scratch base image, so the base layers can be appended at run time.
*
* @var bool
*/
public $enableAutomaticUpdates;
/**
* Optional. User-provided build-time environment variables.
*
* @var string[]
*/
public $environmentVariables;
/**
* Optional. Name of the function target if the source is a function source.
* Required for function builds.
*
* @var string
*/
public $functionTarget;
/**
* Optional. project_descriptor stores the path to the project descriptor
* file. When empty, it means that there is no project descriptor file in the
* source.
*
* @var string
*/
public $projectDescriptor;
/**
* The runtime name, e.g. 'go113'. Leave blank for generic builds.
*
* @deprecated
* @var string
*/
public $runtime;
/**
* Optional. The base image to use for the build.
*
* @param string $baseImage
*/
public function setBaseImage($baseImage)
{
$this->baseImage = $baseImage;
}
/**
* @return string
*/
public function getBaseImage()
{
return $this->baseImage;
}
/**
* Optional. cache_image_uri is the GCR/AR URL where the cache image will be
* stored. cache_image_uri is optional and omitting it will disable caching.
* This URL must be stable across builds. It is used to derive a build-
* specific temporary URL by substituting the tag with the build ID. The build
* will clean up the temporary image on a best-effort basis.
*
* @param string $cacheImageUri
*/
public function setCacheImageUri($cacheImageUri)
{
$this->cacheImageUri = $cacheImageUri;
}
/**
* @return string
*/
public function getCacheImageUri()
{
return $this->cacheImageUri;
}
/**
* Optional. Whether or not the application container will be enrolled in
* automatic base image updates. When true, the application will be built on a
* scratch base image, so the base layers can be appended at run time.
*
* @param bool $enableAutomaticUpdates
*/
public function setEnableAutomaticUpdates($enableAutomaticUpdates)
{
$this->enableAutomaticUpdates = $enableAutomaticUpdates;
}
/**
* @return bool
*/
public function getEnableAutomaticUpdates()
{
return $this->enableAutomaticUpdates;
}
/**
* Optional. User-provided build-time environment variables.
*
* @param string[] $environmentVariables
*/
public function setEnvironmentVariables($environmentVariables)
{
$this->environmentVariables = $environmentVariables;
}
/**
* @return string[]
*/
public function getEnvironmentVariables()
{
return $this->environmentVariables;
}
/**
* Optional. Name of the function target if the source is a function source.
* Required for function builds.
*
* @param string $functionTarget
*/
public function setFunctionTarget($functionTarget)
{
$this->functionTarget = $functionTarget;
}
/**
* @return string
*/
public function getFunctionTarget()
{
return $this->functionTarget;
}
/**
* Optional. project_descriptor stores the path to the project descriptor
* file. When empty, it means that there is no project descriptor file in the
* source.
*
* @param string $projectDescriptor
*/
public function setProjectDescriptor($projectDescriptor)
{
$this->projectDescriptor = $projectDescriptor;
}
/**
* @return string
*/
public function getProjectDescriptor()
{
return $this->projectDescriptor;
}
/**
* The runtime name, e.g. 'go113'. Leave blank for generic builds.
*
* @deprecated
* @param string $runtime
*/
public function setRuntime($runtime)
{
$this->runtime = $runtime;
}
/**
* @deprecated
* @return string
*/
public function getRuntime()
{
return $this->runtime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRunV2BuildpacksBuild::class, 'Google_Service_CloudRun_GoogleCloudRunV2BuildpacksBuild');
@@ -0,0 +1,74 @@
<?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 GoogleCloudRunV2CancelExecutionRequest extends \Google\Model
{
/**
* A system-generated fingerprint for this version of the resource. This may
* be used to detect modification conflict during updates.
*
* @var string
*/
public $etag;
/**
* Indicates that the request should be validated without actually cancelling
* any resources.
*
* @var bool
*/
public $validateOnly;
/**
* A system-generated fingerprint for this version of the resource. This may
* be used to detect modification conflict during updates.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* Indicates that the request should be validated without actually cancelling
* any resources.
*
* @param bool $validateOnly
*/
public function setValidateOnly($validateOnly)
{
$this->validateOnly = $validateOnly;
}
/**
* @return bool
*/
public function getValidateOnly()
{
return $this->validateOnly;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRunV2CancelExecutionRequest::class, 'Google_Service_CloudRun_GoogleCloudRunV2CancelExecutionRequest');
@@ -0,0 +1,69 @@
<?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 GoogleCloudRunV2CloudSqlInstance extends \Google\Collection
{
protected $collection_key = 'instances';
/**
* A list of Cloud SQL instance connection names. Cloud Run uses these to
* establish connections to the specified Cloud SQL instances. While the SQL
* instance name itself is unique within a project, the full connection name
* requires the location for proper routing. Format:
* `{project}:{location}:{instance}` Example: `my-project:us-central1:my-
* instance` You can find this value on the instance's **Overview** page in
* the Google Cloud console or by using the following `gcloud` command: ```sh
* gcloud sql instances describe INSTANCE_NAME \
* --format='value(connectionName)' ``` Visit
* https://cloud.google.com/sql/docs/mysql/connect-run for more information on
* how to connect Cloud SQL and Cloud Run.
*
* @var string[]
*/
public $instances;
/**
* A list of Cloud SQL instance connection names. Cloud Run uses these to
* establish connections to the specified Cloud SQL instances. While the SQL
* instance name itself is unique within a project, the full connection name
* requires the location for proper routing. Format:
* `{project}:{location}:{instance}` Example: `my-project:us-central1:my-
* instance` You can find this value on the instance's **Overview** page in
* the Google Cloud console or by using the following `gcloud` command: ```sh
* gcloud sql instances describe INSTANCE_NAME \
* --format='value(connectionName)' ``` Visit
* https://cloud.google.com/sql/docs/mysql/connect-run for more information on
* how to connect Cloud SQL and Cloud Run.
*
* @param string[] $instances
*/
public function setInstances($instances)
{
$this->instances = $instances;
}
/**
* @return string[]
*/
public function getInstances()
{
return $this->instances;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRunV2CloudSqlInstance::class, 'Google_Service_CloudRun_GoogleCloudRunV2CloudSqlInstance');
@@ -0,0 +1,92 @@
<?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 GoogleCloudRunV2CloudStorageSource extends \Google\Model
{
/**
* Required. The Cloud Storage bucket name.
*
* @var string
*/
public $bucket;
/**
* Optional. The Cloud Storage object generation.
*
* @var string
*/
public $generation;
/**
* Required. The Cloud Storage object name.
*
* @var string
*/
public $object;
/**
* Required. The Cloud Storage bucket name.
*
* @param string $bucket
*/
public function setBucket($bucket)
{
$this->bucket = $bucket;
}
/**
* @return string
*/
public function getBucket()
{
return $this->bucket;
}
/**
* Optional. The Cloud Storage object generation.
*
* @param string $generation
*/
public function setGeneration($generation)
{
$this->generation = $generation;
}
/**
* @return string
*/
public function getGeneration()
{
return $this->generation;
}
/**
* Required. The Cloud Storage object name.
*
* @param string $object
*/
public function setObject($object)
{
$this->object = $object;
}
/**
* @return string
*/
public function getObject()
{
return $this->object;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRunV2CloudStorageSource::class, 'Google_Service_CloudRun_GoogleCloudRunV2CloudStorageSource');
@@ -0,0 +1,419 @@
<?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 GoogleCloudRunV2Condition extends \Google\Model
{
/**
* Default value.
*/
public const EXECUTION_REASON_EXECUTION_REASON_UNDEFINED = 'EXECUTION_REASON_UNDEFINED';
/**
* Internal system error getting execution status. System will retry.
*/
public const EXECUTION_REASON_JOB_STATUS_SERVICE_POLLING_ERROR = 'JOB_STATUS_SERVICE_POLLING_ERROR';
/**
* A task reached its retry limit and the last attempt failed due to the user
* container exiting with a non-zero exit code.
*/
public const EXECUTION_REASON_NON_ZERO_EXIT_CODE = 'NON_ZERO_EXIT_CODE';
/**
* The execution was cancelled by users.
*/
public const EXECUTION_REASON_CANCELLED = 'CANCELLED';
/**
* The execution is in the process of being cancelled.
*/
public const EXECUTION_REASON_CANCELLING = 'CANCELLING';
/**
* The execution was deleted.
*/
public const EXECUTION_REASON_DELETED = 'DELETED';
/**
* A delayed execution is waiting for a start time.
*/
public const EXECUTION_REASON_DELAYED_START_PENDING = 'DELAYED_START_PENDING';
/**
* Default value.
*/
public const REASON_COMMON_REASON_UNDEFINED = 'COMMON_REASON_UNDEFINED';
/**
* Reason unknown. Further details will be in message.
*/
public const REASON_UNKNOWN = 'UNKNOWN';
/**
* Revision creation process failed.
*/
public const REASON_REVISION_FAILED = 'REVISION_FAILED';
/**
* Timed out waiting for completion.
*/
public const REASON_PROGRESS_DEADLINE_EXCEEDED = 'PROGRESS_DEADLINE_EXCEEDED';
/**
* The container image path is incorrect.
*/
public const REASON_CONTAINER_MISSING = 'CONTAINER_MISSING';
/**
* Insufficient permissions on the container image.
*/
public const REASON_CONTAINER_PERMISSION_DENIED = 'CONTAINER_PERMISSION_DENIED';
/**
* Container image is not authorized by policy.
*/
public const REASON_CONTAINER_IMAGE_UNAUTHORIZED = 'CONTAINER_IMAGE_UNAUTHORIZED';
/**
* Container image policy authorization check failed.
*/
public const REASON_CONTAINER_IMAGE_AUTHORIZATION_CHECK_FAILED = 'CONTAINER_IMAGE_AUTHORIZATION_CHECK_FAILED';
/**
* Insufficient permissions on encryption key.
*/
public const REASON_ENCRYPTION_KEY_PERMISSION_DENIED = 'ENCRYPTION_KEY_PERMISSION_DENIED';
/**
* Permission check on encryption key failed.
*/
public const REASON_ENCRYPTION_KEY_CHECK_FAILED = 'ENCRYPTION_KEY_CHECK_FAILED';
/**
* At least one Access check on secrets failed.
*/
public const REASON_SECRETS_ACCESS_CHECK_FAILED = 'SECRETS_ACCESS_CHECK_FAILED';
/**
* Waiting for operation to complete.
*/
public const REASON_WAITING_FOR_OPERATION = 'WAITING_FOR_OPERATION';
/**
* System will retry immediately.
*/
public const REASON_IMMEDIATE_RETRY = 'IMMEDIATE_RETRY';
/**
* System will retry later; current attempt failed.
*/
public const REASON_POSTPONED_RETRY = 'POSTPONED_RETRY';
/**
* An internal error occurred. Further information may be in the message.
*/
public const REASON_INTERNAL = 'INTERNAL';
/**
* User-provided VPC network was not found.
*/
public const REASON_VPC_NETWORK_NOT_FOUND = 'VPC_NETWORK_NOT_FOUND';
/**
* Default value.
*/
public const REVISION_REASON_REVISION_REASON_UNDEFINED = 'REVISION_REASON_UNDEFINED';
/**
* Revision in Pending state.
*/
public const REVISION_REASON_PENDING = 'PENDING';
/**
* Revision is in Reserve state.
*/
public const REVISION_REASON_RESERVE = 'RESERVE';
/**
* Revision is Retired.
*/
public const REVISION_REASON_RETIRED = 'RETIRED';
/**
* Revision is being retired.
*/
public const REVISION_REASON_RETIRING = 'RETIRING';
/**
* Revision is being recreated.
*/
public const REVISION_REASON_RECREATING = 'RECREATING';
/**
* There was a health check error.
*/
public const REVISION_REASON_HEALTH_CHECK_CONTAINER_ERROR = 'HEALTH_CHECK_CONTAINER_ERROR';
/**
* Health check failed due to user error from customized path of the
* container. System will retry.
*/
public const REVISION_REASON_CUSTOMIZED_PATH_RESPONSE_PENDING = 'CUSTOMIZED_PATH_RESPONSE_PENDING';
/**
* A revision with min_instance_count > 0 was created and is reserved, but it
* was not configured to serve traffic, so it's not live. This can also happen
* momentarily during traffic migration.
*/
public const REVISION_REASON_MIN_INSTANCES_NOT_PROVISIONED = 'MIN_INSTANCES_NOT_PROVISIONED';
/**
* The maximum allowed number of active revisions has been reached.
*/
public const REVISION_REASON_ACTIVE_REVISION_LIMIT_REACHED = 'ACTIVE_REVISION_LIMIT_REACHED';
/**
* There was no deployment defined. This value is no longer used, but Services
* created in older versions of the API might contain this value.
*/
public const REVISION_REASON_NO_DEPLOYMENT = 'NO_DEPLOYMENT';
/**
* A revision's container has no port specified since the revision is of a
* manually scaled service with 0 instance count
*/
public const REVISION_REASON_HEALTH_CHECK_SKIPPED = 'HEALTH_CHECK_SKIPPED';
/**
* A revision with min_instance_count > 0 was created and is waiting for
* enough instances to begin a traffic migration.
*/
public const REVISION_REASON_MIN_INSTANCES_WARMING = 'MIN_INSTANCES_WARMING';
/**
* Unspecified severity
*/
public const SEVERITY_SEVERITY_UNSPECIFIED = 'SEVERITY_UNSPECIFIED';
/**
* Error severity.
*/
public const SEVERITY_ERROR = 'ERROR';
/**
* Warning severity.
*/
public const SEVERITY_WARNING = 'WARNING';
/**
* Info severity.
*/
public const SEVERITY_INFO = 'INFO';
/**
* The default value. This value is used if the state is omitted.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* Transient state: Reconciliation has not started yet.
*/
public const STATE_CONDITION_PENDING = 'CONDITION_PENDING';
/**
* Transient state: reconciliation is still in progress.
*/
public const STATE_CONDITION_RECONCILING = 'CONDITION_RECONCILING';
/**
* Terminal state: Reconciliation did not succeed.
*/
public const STATE_CONDITION_FAILED = 'CONDITION_FAILED';
/**
* Terminal state: Reconciliation completed successfully.
*/
public const STATE_CONDITION_SUCCEEDED = 'CONDITION_SUCCEEDED';
/**
* Output only. A reason for the execution condition.
*
* @var string
*/
public $executionReason;
/**
* Last time the condition transitioned from one status to another.
*
* @var string
*/
public $lastTransitionTime;
/**
* Human readable message indicating details about the current status.
*
* @var string
*/
public $message;
/**
* Output only. A common (service-level) reason for this condition.
*
* @var string
*/
public $reason;
/**
* Output only. A reason for the revision condition.
*
* @var string
*/
public $revisionReason;
/**
* How to interpret failures of this condition, one of Error, Warning, Info
*
* @var string
*/
public $severity;
/**
* State of the condition.
*
* @var string
*/
public $state;
/**
* type is used to communicate the status of the reconciliation process. See
* also:
* https://github.com/knative/serving/blob/main/docs/spec/errors.md#error-
* conditions-and-reporting Types common to all resources include: * "Ready":
* True when the Resource is ready.
*
* @var string
*/
public $type;
/**
* Output only. A reason for the execution condition.
*
* Accepted values: EXECUTION_REASON_UNDEFINED,
* JOB_STATUS_SERVICE_POLLING_ERROR, NON_ZERO_EXIT_CODE, CANCELLED,
* CANCELLING, DELETED, DELAYED_START_PENDING
*
* @param self::EXECUTION_REASON_* $executionReason
*/
public function setExecutionReason($executionReason)
{
$this->executionReason = $executionReason;
}
/**
* @return self::EXECUTION_REASON_*
*/
public function getExecutionReason()
{
return $this->executionReason;
}
/**
* Last time the condition transitioned from one status to another.
*
* @param string $lastTransitionTime
*/
public function setLastTransitionTime($lastTransitionTime)
{
$this->lastTransitionTime = $lastTransitionTime;
}
/**
* @return string
*/
public function getLastTransitionTime()
{
return $this->lastTransitionTime;
}
/**
* Human readable message indicating details about the current status.
*
* @param string $message
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
/**
* Output only. A common (service-level) reason for this condition.
*
* Accepted values: COMMON_REASON_UNDEFINED, UNKNOWN, REVISION_FAILED,
* PROGRESS_DEADLINE_EXCEEDED, CONTAINER_MISSING, CONTAINER_PERMISSION_DENIED,
* CONTAINER_IMAGE_UNAUTHORIZED, CONTAINER_IMAGE_AUTHORIZATION_CHECK_FAILED,
* ENCRYPTION_KEY_PERMISSION_DENIED, ENCRYPTION_KEY_CHECK_FAILED,
* SECRETS_ACCESS_CHECK_FAILED, WAITING_FOR_OPERATION, IMMEDIATE_RETRY,
* POSTPONED_RETRY, INTERNAL, VPC_NETWORK_NOT_FOUND
*
* @param self::REASON_* $reason
*/
public function setReason($reason)
{
$this->reason = $reason;
}
/**
* @return self::REASON_*
*/
public function getReason()
{
return $this->reason;
}
/**
* Output only. A reason for the revision condition.
*
* Accepted values: REVISION_REASON_UNDEFINED, PENDING, RESERVE, RETIRED,
* RETIRING, RECREATING, HEALTH_CHECK_CONTAINER_ERROR,
* CUSTOMIZED_PATH_RESPONSE_PENDING, MIN_INSTANCES_NOT_PROVISIONED,
* ACTIVE_REVISION_LIMIT_REACHED, NO_DEPLOYMENT, HEALTH_CHECK_SKIPPED,
* MIN_INSTANCES_WARMING
*
* @param self::REVISION_REASON_* $revisionReason
*/
public function setRevisionReason($revisionReason)
{
$this->revisionReason = $revisionReason;
}
/**
* @return self::REVISION_REASON_*
*/
public function getRevisionReason()
{
return $this->revisionReason;
}
/**
* How to interpret failures of this condition, one of Error, Warning, Info
*
* Accepted values: SEVERITY_UNSPECIFIED, ERROR, WARNING, INFO
*
* @param self::SEVERITY_* $severity
*/
public function setSeverity($severity)
{
$this->severity = $severity;
}
/**
* @return self::SEVERITY_*
*/
public function getSeverity()
{
return $this->severity;
}
/**
* State of the condition.
*
* Accepted values: STATE_UNSPECIFIED, CONDITION_PENDING,
* CONDITION_RECONCILING, CONDITION_FAILED, CONDITION_SUCCEEDED
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* type is used to communicate the status of the reconciliation process. See
* also:
* https://github.com/knative/serving/blob/main/docs/spec/errors.md#error-
* conditions-and-reporting Types common to all resources include: * "Ready":
* True when the Resource is ready.
*
* @param string $type
*/
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(GoogleCloudRunV2Condition::class, 'Google_Service_CloudRun_GoogleCloudRunV2Condition');
@@ -0,0 +1,362 @@
<?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 GoogleCloudRunV2Container extends \Google\Collection
{
protected $collection_key = 'volumeMounts';
/**
* Arguments to the entrypoint. The docker image's CMD is used if this is not
* provided.
*
* @var string[]
*/
public $args;
/**
* Base image for this container. Only supported for services. If set, it
* indicates that the service is enrolled into automatic base image update.
*
* @var string
*/
public $baseImageUri;
protected $buildInfoType = GoogleCloudRunV2BuildInfo::class;
protected $buildInfoDataType = '';
/**
* Entrypoint array. Not executed within a shell. The docker image's
* ENTRYPOINT is used if this is not provided.
*
* @var string[]
*/
public $command;
/**
* Names of the containers that must start before this container.
*
* @var string[]
*/
public $dependsOn;
protected $envType = GoogleCloudRunV2EnvVar::class;
protected $envDataType = 'array';
/**
* Required. Name of the container image in Dockerhub, Google Artifact
* Registry, or Google Container Registry. If the host is not provided,
* Dockerhub is assumed.
*
* @var string
*/
public $image;
protected $livenessProbeType = GoogleCloudRunV2Probe::class;
protected $livenessProbeDataType = '';
/**
* Name of the container specified as a DNS_LABEL (RFC 1123).
*
* @var string
*/
public $name;
protected $portsType = GoogleCloudRunV2ContainerPort::class;
protected $portsDataType = 'array';
protected $readinessProbeType = GoogleCloudRunV2Probe::class;
protected $readinessProbeDataType = '';
protected $resourcesType = GoogleCloudRunV2ResourceRequirements::class;
protected $resourcesDataType = '';
protected $sourceCodeType = GoogleCloudRunV2SourceCode::class;
protected $sourceCodeDataType = '';
protected $startupProbeType = GoogleCloudRunV2Probe::class;
protected $startupProbeDataType = '';
protected $volumeMountsType = GoogleCloudRunV2VolumeMount::class;
protected $volumeMountsDataType = 'array';
/**
* Container's working directory. If not specified, the container runtime's
* default will be used, which might be configured in the container image.
*
* @var string
*/
public $workingDir;
/**
* Arguments to the entrypoint. The docker image's CMD is used if this is not
* provided.
*
* @param string[] $args
*/
public function setArgs($args)
{
$this->args = $args;
}
/**
* @return string[]
*/
public function getArgs()
{
return $this->args;
}
/**
* Base image for this container. Only supported for services. If set, it
* indicates that the service is enrolled into automatic base image update.
*
* @param string $baseImageUri
*/
public function setBaseImageUri($baseImageUri)
{
$this->baseImageUri = $baseImageUri;
}
/**
* @return string
*/
public function getBaseImageUri()
{
return $this->baseImageUri;
}
/**
* Output only. The build info of the container image.
*
* @param GoogleCloudRunV2BuildInfo $buildInfo
*/
public function setBuildInfo(GoogleCloudRunV2BuildInfo $buildInfo)
{
$this->buildInfo = $buildInfo;
}
/**
* @return GoogleCloudRunV2BuildInfo
*/
public function getBuildInfo()
{
return $this->buildInfo;
}
/**
* Entrypoint array. Not executed within a shell. The docker image's
* ENTRYPOINT is used if this is not provided.
*
* @param string[] $command
*/
public function setCommand($command)
{
$this->command = $command;
}
/**
* @return string[]
*/
public function getCommand()
{
return $this->command;
}
/**
* Names of the containers that must start before this container.
*
* @param string[] $dependsOn
*/
public function setDependsOn($dependsOn)
{
$this->dependsOn = $dependsOn;
}
/**
* @return string[]
*/
public function getDependsOn()
{
return $this->dependsOn;
}
/**
* List of environment variables to set in the container.
*
* @param GoogleCloudRunV2EnvVar[] $env
*/
public function setEnv($env)
{
$this->env = $env;
}
/**
* @return GoogleCloudRunV2EnvVar[]
*/
public function getEnv()
{
return $this->env;
}
/**
* Required. Name of the container image in Dockerhub, Google Artifact
* Registry, or Google Container Registry. If the host is not provided,
* Dockerhub is assumed.
*
* @param string $image
*/
public function setImage($image)
{
$this->image = $image;
}
/**
* @return string
*/
public function getImage()
{
return $this->image;
}
/**
* Periodic probe of container liveness. Container will be restarted if the
* probe fails.
*
* @param GoogleCloudRunV2Probe $livenessProbe
*/
public function setLivenessProbe(GoogleCloudRunV2Probe $livenessProbe)
{
$this->livenessProbe = $livenessProbe;
}
/**
* @return GoogleCloudRunV2Probe
*/
public function getLivenessProbe()
{
return $this->livenessProbe;
}
/**
* Name of the container specified as a DNS_LABEL (RFC 1123).
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* List of ports to expose from the container. Only a single port can be
* specified. The specified ports must be listening on all interfaces
* (0.0.0.0) within the container to be accessible. If omitted, a port number
* will be chosen and passed to the container through the PORT environment
* variable for the container to listen on.
*
* @param GoogleCloudRunV2ContainerPort[] $ports
*/
public function setPorts($ports)
{
$this->ports = $ports;
}
/**
* @return GoogleCloudRunV2ContainerPort[]
*/
public function getPorts()
{
return $this->ports;
}
/**
* Readiness probe to be used for health checks.
*
* @param GoogleCloudRunV2Probe $readinessProbe
*/
public function setReadinessProbe(GoogleCloudRunV2Probe $readinessProbe)
{
$this->readinessProbe = $readinessProbe;
}
/**
* @return GoogleCloudRunV2Probe
*/
public function getReadinessProbe()
{
return $this->readinessProbe;
}
/**
* Compute Resource requirements by this container.
*
* @param GoogleCloudRunV2ResourceRequirements $resources
*/
public function setResources(GoogleCloudRunV2ResourceRequirements $resources)
{
$this->resources = $resources;
}
/**
* @return GoogleCloudRunV2ResourceRequirements
*/
public function getResources()
{
return $this->resources;
}
/**
* Optional. Location of the source.
*
* @param GoogleCloudRunV2SourceCode $sourceCode
*/
public function setSourceCode(GoogleCloudRunV2SourceCode $sourceCode)
{
$this->sourceCode = $sourceCode;
}
/**
* @return GoogleCloudRunV2SourceCode
*/
public function getSourceCode()
{
return $this->sourceCode;
}
/**
* Startup probe of application within the container. All other probes are
* disabled if a startup probe is provided, until it succeeds. Container will
* not be added to service endpoints if the probe fails.
*
* @param GoogleCloudRunV2Probe $startupProbe
*/
public function setStartupProbe(GoogleCloudRunV2Probe $startupProbe)
{
$this->startupProbe = $startupProbe;
}
/**
* @return GoogleCloudRunV2Probe
*/
public function getStartupProbe()
{
return $this->startupProbe;
}
/**
* Volume to mount into the container's filesystem.
*
* @param GoogleCloudRunV2VolumeMount[] $volumeMounts
*/
public function setVolumeMounts($volumeMounts)
{
$this->volumeMounts = $volumeMounts;
}
/**
* @return GoogleCloudRunV2VolumeMount[]
*/
public function getVolumeMounts()
{
return $this->volumeMounts;
}
/**
* Container's working directory. If not specified, the container runtime's
* default will be used, which might be configured in the container image.
*
* @param string $workingDir
*/
public function setWorkingDir($workingDir)
{
$this->workingDir = $workingDir;
}
/**
* @return string
*/
public function getWorkingDir()
{
return $this->workingDir;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRunV2Container::class, 'Google_Service_CloudRun_GoogleCloudRunV2Container');
@@ -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 GoogleCloudRunV2ContainerOverride extends \Google\Collection
{
protected $collection_key = 'env';
/**
* Optional. Arguments to the entrypoint. Will replace existing args for
* override.
*
* @var string[]
*/
public $args;
/**
* Optional. True if the intention is to clear out existing args list.
*
* @var bool
*/
public $clearArgs;
protected $envType = GoogleCloudRunV2EnvVar::class;
protected $envDataType = 'array';
/**
* The name of the container specified as a DNS_LABEL.
*
* @var string
*/
public $name;
/**
* Optional. Arguments to the entrypoint. Will replace existing args for
* override.
*
* @param string[] $args
*/
public function setArgs($args)
{
$this->args = $args;
}
/**
* @return string[]
*/
public function getArgs()
{
return $this->args;
}
/**
* Optional. True if the intention is to clear out existing args list.
*
* @param bool $clearArgs
*/
public function setClearArgs($clearArgs)
{
$this->clearArgs = $clearArgs;
}
/**
* @return bool
*/
public function getClearArgs()
{
return $this->clearArgs;
}
/**
* List of environment variables to set in the container. Will be merged with
* existing env for override.
*
* @param GoogleCloudRunV2EnvVar[] $env
*/
public function setEnv($env)
{
$this->env = $env;
}
/**
* @return GoogleCloudRunV2EnvVar[]
*/
public function getEnv()
{
return $this->env;
}
/**
* The name of the container specified as a DNS_LABEL.
*
* @param string $name
*/
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(GoogleCloudRunV2ContainerOverride::class, 'Google_Service_CloudRun_GoogleCloudRunV2ContainerOverride');
@@ -0,0 +1,74 @@
<?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 GoogleCloudRunV2ContainerPort extends \Google\Model
{
/**
* Port number the container listens on. This must be a valid TCP port number,
* 0 < container_port < 65536.
*
* @var int
*/
public $containerPort;
/**
* If specified, used to specify which protocol to use. Allowed values are
* "http1" and "h2c".
*
* @var string
*/
public $name;
/**
* Port number the container listens on. This must be a valid TCP port number,
* 0 < container_port < 65536.
*
* @param int $containerPort
*/
public function setContainerPort($containerPort)
{
$this->containerPort = $containerPort;
}
/**
* @return int
*/
public function getContainerPort()
{
return $this->containerPort;
}
/**
* If specified, used to specify which protocol to use. Allowed values are
* "http1" and "h2c".
*
* @param string $name
*/
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(GoogleCloudRunV2ContainerPort::class, 'Google_Service_CloudRun_GoogleCloudRunV2ContainerPort');
@@ -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 GoogleCloudRunV2ContainerStatus extends \Google\Model
{
/**
* ImageDigest holds the resolved digest for the image specified and resolved
* during the creation of Revision. This field holds the digest value
* regardless of whether a tag or digest was originally specified in the
* Container object.
*
* @var string
*/
public $imageDigest;
/**
* The name of the container, if specified.
*
* @var string
*/
public $name;
/**
* ImageDigest holds the resolved digest for the image specified and resolved
* during the creation of Revision. This field holds the digest value
* regardless of whether a tag or digest was originally specified in the
* Container object.
*
* @param string $imageDigest
*/
public function setImageDigest($imageDigest)
{
$this->imageDigest = $imageDigest;
}
/**
* @return string
*/
public function getImageDigest()
{
return $this->imageDigest;
}
/**
* The name of the container, if specified.
*
* @param string $name
*/
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(GoogleCloudRunV2ContainerStatus::class, 'Google_Service_CloudRun_GoogleCloudRunV2ContainerStatus');
@@ -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\CloudRun;
class GoogleCloudRunV2DockerBuild extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRunV2DockerBuild::class, 'Google_Service_CloudRun_GoogleCloudRunV2DockerBuild');
@@ -0,0 +1,103 @@
<?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 GoogleCloudRunV2EmptyDirVolumeSource extends \Google\Model
{
/**
* When not specified, falls back to the default implementation which is
* currently in memory (this may change over time).
*/
public const MEDIUM_MEDIUM_UNSPECIFIED = 'MEDIUM_UNSPECIFIED';
/**
* Explicitly set the EmptyDir to be in memory. Uses tmpfs.
*/
public const MEDIUM_MEMORY = 'MEMORY';
/**
* Explicitly sets the EmptyDir to be a disk.
*/
public const MEDIUM_DISK = 'DISK';
/**
* The medium on which the data is stored. Acceptable values today is only
* MEMORY or none. When none, the default will currently be backed by memory
* but could change over time. +optional
*
* @var string
*/
public $medium;
/**
* Limit on the storage usable by this EmptyDir volume. The size limit is also
* applicable for memory medium. The maximum usage on memory medium EmptyDir
* would be the minimum value between the SizeLimit specified here and the sum
* of memory limits of all containers. The default is nil which means that the
* limit is undefined. More info:
* https://cloud.google.com/run/docs/configuring/in-memory-volumes#configure-
* volume. Info in Kubernetes:
* https://kubernetes.io/docs/concepts/storage/volumes/#emptydir
*
* @var string
*/
public $sizeLimit;
/**
* The medium on which the data is stored. Acceptable values today is only
* MEMORY or none. When none, the default will currently be backed by memory
* but could change over time. +optional
*
* Accepted values: MEDIUM_UNSPECIFIED, MEMORY, DISK
*
* @param self::MEDIUM_* $medium
*/
public function setMedium($medium)
{
$this->medium = $medium;
}
/**
* @return self::MEDIUM_*
*/
public function getMedium()
{
return $this->medium;
}
/**
* Limit on the storage usable by this EmptyDir volume. The size limit is also
* applicable for memory medium. The maximum usage on memory medium EmptyDir
* would be the minimum value between the SizeLimit specified here and the sum
* of memory limits of all containers. The default is nil which means that the
* limit is undefined. More info:
* https://cloud.google.com/run/docs/configuring/in-memory-volumes#configure-
* volume. Info in Kubernetes:
* https://kubernetes.io/docs/concepts/storage/volumes/#emptydir
*
* @param string $sizeLimit
*/
public function setSizeLimit($sizeLimit)
{
$this->sizeLimit = $sizeLimit;
}
/**
* @return string
*/
public function getSizeLimit()
{
return $this->sizeLimit;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRunV2EmptyDirVolumeSource::class, 'Google_Service_CloudRun_GoogleCloudRunV2EmptyDirVolumeSource');
@@ -0,0 +1,92 @@
<?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 GoogleCloudRunV2EnvVar extends \Google\Model
{
/**
* Required. Name of the environment variable. Must not exceed 32768
* characters.
*
* @var string
*/
public $name;
/**
* Literal value of the environment variable. Defaults to "", and the maximum
* length is 32768 bytes. Variable references are not supported in Cloud Run.
*
* @var string
*/
public $value;
protected $valueSourceType = GoogleCloudRunV2EnvVarSource::class;
protected $valueSourceDataType = '';
/**
* Required. Name of the environment variable. Must not exceed 32768
* characters.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Literal value of the environment variable. Defaults to "", and the maximum
* length is 32768 bytes. Variable references are not supported in Cloud Run.
*
* @param string $value
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
/**
* Source for the environment variable's value.
*
* @param GoogleCloudRunV2EnvVarSource $valueSource
*/
public function setValueSource(GoogleCloudRunV2EnvVarSource $valueSource)
{
$this->valueSource = $valueSource;
}
/**
* @return GoogleCloudRunV2EnvVarSource
*/
public function getValueSource()
{
return $this->valueSource;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRunV2EnvVar::class, 'Google_Service_CloudRun_GoogleCloudRunV2EnvVar');
@@ -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\CloudRun;
class GoogleCloudRunV2EnvVarSource extends \Google\Model
{
protected $secretKeyRefType = GoogleCloudRunV2SecretKeySelector::class;
protected $secretKeyRefDataType = '';
/**
* Selects a secret and a specific version from Cloud Secret Manager.
*
* @param GoogleCloudRunV2SecretKeySelector $secretKeyRef
*/
public function setSecretKeyRef(GoogleCloudRunV2SecretKeySelector $secretKeyRef)
{
$this->secretKeyRef = $secretKeyRef;
}
/**
* @return GoogleCloudRunV2SecretKeySelector
*/
public function getSecretKeyRef()
{
return $this->secretKeyRef;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRunV2EnvVarSource::class, 'Google_Service_CloudRun_GoogleCloudRunV2EnvVarSource');
@@ -0,0 +1,807 @@
<?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 GoogleCloudRunV2Execution extends \Google\Collection
{
/**
* Do not use this default value.
*/
public const LAUNCH_STAGE_LAUNCH_STAGE_UNSPECIFIED = 'LAUNCH_STAGE_UNSPECIFIED';
/**
* The feature is not yet implemented. Users can not use it.
*/
public const LAUNCH_STAGE_UNIMPLEMENTED = 'UNIMPLEMENTED';
/**
* Prelaunch features are hidden from users and are only visible internally.
*/
public const LAUNCH_STAGE_PRELAUNCH = 'PRELAUNCH';
/**
* Early Access features are limited to a closed group of testers. To use
* these features, you must sign up in advance and sign a Trusted Tester
* agreement (which includes confidentiality provisions). These features may
* be unstable, changed in backward-incompatible ways, and are not guaranteed
* to be released.
*/
public const LAUNCH_STAGE_EARLY_ACCESS = 'EARLY_ACCESS';
/**
* Alpha is a limited availability test for releases before they are cleared
* for widespread use. By Alpha, all significant design issues are resolved
* and we are in the process of verifying functionality. Alpha customers need
* to apply for access, agree to applicable terms, and have their projects
* allowlisted. Alpha releases don't have to be feature complete, no SLAs are
* provided, and there are no technical support obligations, but they will be
* far enough along that customers can actually use them in test environments
* or for limited-use tests -- just like they would in normal production
* cases.
*/
public const LAUNCH_STAGE_ALPHA = 'ALPHA';
/**
* Beta is the point at which we are ready to open a release for any customer
* to use. There are no SLA or technical support obligations in a Beta
* release. Products will be complete from a feature perspective, but may have
* some open outstanding issues. Beta releases are suitable for limited
* production use cases.
*/
public const LAUNCH_STAGE_BETA = 'BETA';
/**
* GA features are open to all developers and are considered stable and fully
* qualified for production use.
*/
public const LAUNCH_STAGE_GA = 'GA';
/**
* Deprecated features are scheduled to be shut down and removed. For more
* information, see the "Deprecation Policy" section of our [Terms of
* Service](https://cloud.google.com/terms/) and the [Google Cloud Platform
* Subject to the Deprecation
* Policy](https://cloud.google.com/terms/deprecation) documentation.
*/
public const LAUNCH_STAGE_DEPRECATED = 'DEPRECATED';
protected $collection_key = 'conditions';
/**
* Output only. Unstructured key value map that may be set by external tools
* to store and arbitrary metadata. They are not queryable and should be
* preserved when modifying objects.
*
* @var string[]
*/
public $annotations;
/**
* Output only. The number of tasks which reached phase Cancelled.
*
* @var int
*/
public $cancelledCount;
/**
* Output only. Arbitrary identifier for the API client.
*
* @var string
*/
public $client;
/**
* Output only. Arbitrary version identifier for the API client.
*
* @var string
*/
public $clientVersion;
/**
* Output only. Represents time when the execution was completed. It is not
* guaranteed to be set in happens-before order across separate operations.
*
* @var string
*/
public $completionTime;
protected $conditionsType = GoogleCloudRunV2Condition::class;
protected $conditionsDataType = 'array';
/**
* Output only. Represents time when the execution was acknowledged by the
* execution controller. It is not guaranteed to be set in happens-before
* order across separate operations.
*
* @var string
*/
public $createTime;
/**
* Output only. Email address of the authenticated creator.
*
* @var string
*/
public $creator;
/**
* Output only. For a deleted resource, the deletion time. It is only
* populated as a response to a Delete request.
*
* @var string
*/
public $deleteTime;
/**
* Output only. A system-generated fingerprint for this version of the
* resource. May be used to detect modification conflict during updates.
*
* @var string
*/
public $etag;
/**
* Output only. For a deleted resource, the time after which it will be
* permamently deleted. It is only populated as a response to a Delete
* request.
*
* @var string
*/
public $expireTime;
/**
* Output only. The number of tasks which reached phase Failed.
*
* @var int
*/
public $failedCount;
/**
* Output only. A number that monotonically increases every time the user
* modifies the desired state.
*
* @var string
*/
public $generation;
/**
* Output only. The name of the parent Job.
*
* @var string
*/
public $job;
/**
* Output only. Unstructured key value map that can be used to organize and
* categorize objects. User-provided labels are shared with Google's billing
* system, so they can be used to filter, or break down billing charges by
* team, component, environment, state, etc. For more information, visit
* https://cloud.google.com/resource-manager/docs/creating-managing-labels or
* https://cloud.google.com/run/docs/configuring/labels
*
* @var string[]
*/
public $labels;
/**
* The least stable launch stage needed to create this resource, as defined by
* [Google Cloud Platform Launch
* Stages](https://cloud.google.com/terms/launch-stages). Cloud Run supports
* `ALPHA`, `BETA`, and `GA`. Note that this value might not be what was used
* as input. For example, if ALPHA was provided as input in the parent
* resource, but only BETA and GA-level features are used, this field will be
* BETA.
*
* @var string
*/
public $launchStage;
/**
* Output only. URI where logs for this execution can be found in Cloud
* Console.
*
* @var string
*/
public $logUri;
/**
* Output only. The unique name of this Execution.
*
* @var string
*/
public $name;
/**
* Output only. The generation of this Execution. See comments in
* `reconciling` for additional information on reconciliation process in Cloud
* Run.
*
* @var string
*/
public $observedGeneration;
/**
* Output only. Specifies the maximum desired number of tasks the execution
* should run at any given time. Must be <= task_count. The actual number of
* tasks running in steady state will be less than this number when
* ((.spec.task_count - .status.successful) < .spec.parallelism), i.e. when
* the work left to do is less than max parallelism.
*
* @var int
*/
public $parallelism;
/**
* Output only. Indicates whether the resource's reconciliation is still in
* progress. See comments in `Job.reconciling` for additional information on
* reconciliation process in Cloud Run.
*
* @var bool
*/
public $reconciling;
/**
* Output only. The number of tasks which have retried at least once.
*
* @var int
*/
public $retriedCount;
/**
* Output only. The number of actively running tasks.
*
* @var int
*/
public $runningCount;
/**
* Output only. Reserved for future use.
*
* @var bool
*/
public $satisfiesPzs;
/**
* Output only. Represents time when the execution started to run. It is not
* guaranteed to be set in happens-before order across separate operations.
*
* @var string
*/
public $startTime;
/**
* Output only. The number of tasks which reached phase Succeeded.
*
* @var int
*/
public $succeededCount;
/**
* Output only. Specifies the desired number of tasks the execution should
* run. Setting to 1 means that parallelism is limited to 1 and the success of
* that task signals the success of the execution.
*
* @var int
*/
public $taskCount;
protected $templateType = GoogleCloudRunV2TaskTemplate::class;
protected $templateDataType = '';
/**
* Output only. Server assigned unique identifier for the Execution. The value
* is a UUID4 string and guaranteed to remain unchanged until the resource is
* deleted.
*
* @var string
*/
public $uid;
/**
* Output only. The last-modified time.
*
* @var string
*/
public $updateTime;
/**
* Output only. Unstructured key value map that may be set by external tools
* to store and arbitrary metadata. They are not queryable and should be
* preserved when modifying objects.
*
* @param string[] $annotations
*/
public function setAnnotations($annotations)
{
$this->annotations = $annotations;
}
/**
* @return string[]
*/
public function getAnnotations()
{
return $this->annotations;
}
/**
* Output only. The number of tasks which reached phase Cancelled.
*
* @param int $cancelledCount
*/
public function setCancelledCount($cancelledCount)
{
$this->cancelledCount = $cancelledCount;
}
/**
* @return int
*/
public function getCancelledCount()
{
return $this->cancelledCount;
}
/**
* Output only. Arbitrary identifier for the API client.
*
* @param string $client
*/
public function setClient($client)
{
$this->client = $client;
}
/**
* @return string
*/
public function getClient()
{
return $this->client;
}
/**
* Output only. Arbitrary version identifier for the API client.
*
* @param string $clientVersion
*/
public function setClientVersion($clientVersion)
{
$this->clientVersion = $clientVersion;
}
/**
* @return string
*/
public function getClientVersion()
{
return $this->clientVersion;
}
/**
* Output only. Represents time when the execution was completed. It is not
* guaranteed to be set in happens-before order across separate operations.
*
* @param string $completionTime
*/
public function setCompletionTime($completionTime)
{
$this->completionTime = $completionTime;
}
/**
* @return string
*/
public function getCompletionTime()
{
return $this->completionTime;
}
/**
* Output only. The Condition of this Execution, containing its readiness
* status, and detailed error information in case it did not reach the desired
* state.
*
* @param GoogleCloudRunV2Condition[] $conditions
*/
public function setConditions($conditions)
{
$this->conditions = $conditions;
}
/**
* @return GoogleCloudRunV2Condition[]
*/
public function getConditions()
{
return $this->conditions;
}
/**
* Output only. Represents time when the execution was acknowledged by the
* execution controller. It is not guaranteed to be set in happens-before
* order across separate operations.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Output only. Email address of the authenticated creator.
*
* @param string $creator
*/
public function setCreator($creator)
{
$this->creator = $creator;
}
/**
* @return string
*/
public function getCreator()
{
return $this->creator;
}
/**
* Output only. For a deleted resource, the deletion time. It is only
* populated as a response to a Delete request.
*
* @param string $deleteTime
*/
public function setDeleteTime($deleteTime)
{
$this->deleteTime = $deleteTime;
}
/**
* @return string
*/
public function getDeleteTime()
{
return $this->deleteTime;
}
/**
* Output only. A system-generated fingerprint for this version of the
* resource. May be used to detect modification conflict during updates.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* Output only. For a deleted resource, the time after which it will be
* permamently deleted. It is only populated as a response to a Delete
* request.
*
* @param string $expireTime
*/
public function setExpireTime($expireTime)
{
$this->expireTime = $expireTime;
}
/**
* @return string
*/
public function getExpireTime()
{
return $this->expireTime;
}
/**
* Output only. The number of tasks which reached phase Failed.
*
* @param int $failedCount
*/
public function setFailedCount($failedCount)
{
$this->failedCount = $failedCount;
}
/**
* @return int
*/
public function getFailedCount()
{
return $this->failedCount;
}
/**
* Output only. A number that monotonically increases every time the user
* modifies the desired state.
*
* @param string $generation
*/
public function setGeneration($generation)
{
$this->generation = $generation;
}
/**
* @return string
*/
public function getGeneration()
{
return $this->generation;
}
/**
* Output only. The name of the parent Job.
*
* @param string $job
*/
public function setJob($job)
{
$this->job = $job;
}
/**
* @return string
*/
public function getJob()
{
return $this->job;
}
/**
* Output only. Unstructured key value map that can be used to organize and
* categorize objects. User-provided labels are shared with Google's billing
* system, so they can be used to filter, or break down billing charges by
* team, component, environment, state, etc. For more information, visit
* https://cloud.google.com/resource-manager/docs/creating-managing-labels or
* https://cloud.google.com/run/docs/configuring/labels
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* The least stable launch stage needed to create this resource, as defined by
* [Google Cloud Platform Launch
* Stages](https://cloud.google.com/terms/launch-stages). Cloud Run supports
* `ALPHA`, `BETA`, and `GA`. Note that this value might not be what was used
* as input. For example, if ALPHA was provided as input in the parent
* resource, but only BETA and GA-level features are used, this field will be
* BETA.
*
* Accepted values: LAUNCH_STAGE_UNSPECIFIED, UNIMPLEMENTED, PRELAUNCH,
* EARLY_ACCESS, ALPHA, BETA, GA, DEPRECATED
*
* @param self::LAUNCH_STAGE_* $launchStage
*/
public function setLaunchStage($launchStage)
{
$this->launchStage = $launchStage;
}
/**
* @return self::LAUNCH_STAGE_*
*/
public function getLaunchStage()
{
return $this->launchStage;
}
/**
* Output only. URI where logs for this execution can be found in Cloud
* Console.
*
* @param string $logUri
*/
public function setLogUri($logUri)
{
$this->logUri = $logUri;
}
/**
* @return string
*/
public function getLogUri()
{
return $this->logUri;
}
/**
* Output only. The unique name of this Execution.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. The generation of this Execution. See comments in
* `reconciling` for additional information on reconciliation process in Cloud
* Run.
*
* @param string $observedGeneration
*/
public function setObservedGeneration($observedGeneration)
{
$this->observedGeneration = $observedGeneration;
}
/**
* @return string
*/
public function getObservedGeneration()
{
return $this->observedGeneration;
}
/**
* Output only. Specifies the maximum desired number of tasks the execution
* should run at any given time. Must be <= task_count. The actual number of
* tasks running in steady state will be less than this number when
* ((.spec.task_count - .status.successful) < .spec.parallelism), i.e. when
* the work left to do is less than max parallelism.
*
* @param int $parallelism
*/
public function setParallelism($parallelism)
{
$this->parallelism = $parallelism;
}
/**
* @return int
*/
public function getParallelism()
{
return $this->parallelism;
}
/**
* Output only. Indicates whether the resource's reconciliation is still in
* progress. See comments in `Job.reconciling` for additional information on
* reconciliation process in Cloud Run.
*
* @param bool $reconciling
*/
public function setReconciling($reconciling)
{
$this->reconciling = $reconciling;
}
/**
* @return bool
*/
public function getReconciling()
{
return $this->reconciling;
}
/**
* Output only. The number of tasks which have retried at least once.
*
* @param int $retriedCount
*/
public function setRetriedCount($retriedCount)
{
$this->retriedCount = $retriedCount;
}
/**
* @return int
*/
public function getRetriedCount()
{
return $this->retriedCount;
}
/**
* Output only. The number of actively running tasks.
*
* @param int $runningCount
*/
public function setRunningCount($runningCount)
{
$this->runningCount = $runningCount;
}
/**
* @return int
*/
public function getRunningCount()
{
return $this->runningCount;
}
/**
* Output only. Reserved for future use.
*
* @param bool $satisfiesPzs
*/
public function setSatisfiesPzs($satisfiesPzs)
{
$this->satisfiesPzs = $satisfiesPzs;
}
/**
* @return bool
*/
public function getSatisfiesPzs()
{
return $this->satisfiesPzs;
}
/**
* Output only. Represents time when the execution started to run. It is not
* guaranteed to be set in happens-before order across separate operations.
*
* @param string $startTime
*/
public function setStartTime($startTime)
{
$this->startTime = $startTime;
}
/**
* @return string
*/
public function getStartTime()
{
return $this->startTime;
}
/**
* Output only. The number of tasks which reached phase Succeeded.
*
* @param int $succeededCount
*/
public function setSucceededCount($succeededCount)
{
$this->succeededCount = $succeededCount;
}
/**
* @return int
*/
public function getSucceededCount()
{
return $this->succeededCount;
}
/**
* Output only. Specifies the desired number of tasks the execution should
* run. Setting to 1 means that parallelism is limited to 1 and the success of
* that task signals the success of the execution.
*
* @param int $taskCount
*/
public function setTaskCount($taskCount)
{
$this->taskCount = $taskCount;
}
/**
* @return int
*/
public function getTaskCount()
{
return $this->taskCount;
}
/**
* Output only. The template used to create tasks for this execution.
*
* @param GoogleCloudRunV2TaskTemplate $template
*/
public function setTemplate(GoogleCloudRunV2TaskTemplate $template)
{
$this->template = $template;
}
/**
* @return GoogleCloudRunV2TaskTemplate
*/
public function getTemplate()
{
return $this->template;
}
/**
* Output only. Server assigned unique identifier for the Execution. The value
* is a UUID4 string and guaranteed to remain unchanged until the resource is
* deleted.
*
* @param string $uid
*/
public function setUid($uid)
{
$this->uid = $uid;
}
/**
* @return string
*/
public function getUid()
{
return $this->uid;
}
/**
* Output only. The last-modified time.
*
* @param string $updateTime
*/
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(GoogleCloudRunV2Execution::class, 'Google_Service_CloudRun_GoogleCloudRunV2Execution');
@@ -0,0 +1,165 @@
<?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 GoogleCloudRunV2ExecutionReference extends \Google\Model
{
/**
* The default value. This value is used if the state is omitted.
*/
public const COMPLETION_STATUS_COMPLETION_STATUS_UNSPECIFIED = 'COMPLETION_STATUS_UNSPECIFIED';
/**
* Job execution has succeeded.
*/
public const COMPLETION_STATUS_EXECUTION_SUCCEEDED = 'EXECUTION_SUCCEEDED';
/**
* Job execution has failed.
*/
public const COMPLETION_STATUS_EXECUTION_FAILED = 'EXECUTION_FAILED';
/**
* Job execution is running normally.
*/
public const COMPLETION_STATUS_EXECUTION_RUNNING = 'EXECUTION_RUNNING';
/**
* Waiting for backing resources to be provisioned.
*/
public const COMPLETION_STATUS_EXECUTION_PENDING = 'EXECUTION_PENDING';
/**
* Job execution has been cancelled by the user.
*/
public const COMPLETION_STATUS_EXECUTION_CANCELLED = 'EXECUTION_CANCELLED';
/**
* Status for the execution completion.
*
* @var string
*/
public $completionStatus;
/**
* Creation timestamp of the execution.
*
* @var string
*/
public $completionTime;
/**
* Creation timestamp of the execution.
*
* @var string
*/
public $createTime;
/**
* The deletion time of the execution. It is only populated as a response to a
* Delete request.
*
* @var string
*/
public $deleteTime;
/**
* Name of the execution.
*
* @var string
*/
public $name;
/**
* Status for the execution completion.
*
* Accepted values: COMPLETION_STATUS_UNSPECIFIED, EXECUTION_SUCCEEDED,
* EXECUTION_FAILED, EXECUTION_RUNNING, EXECUTION_PENDING, EXECUTION_CANCELLED
*
* @param self::COMPLETION_STATUS_* $completionStatus
*/
public function setCompletionStatus($completionStatus)
{
$this->completionStatus = $completionStatus;
}
/**
* @return self::COMPLETION_STATUS_*
*/
public function getCompletionStatus()
{
return $this->completionStatus;
}
/**
* Creation timestamp of the execution.
*
* @param string $completionTime
*/
public function setCompletionTime($completionTime)
{
$this->completionTime = $completionTime;
}
/**
* @return string
*/
public function getCompletionTime()
{
return $this->completionTime;
}
/**
* Creation timestamp of the execution.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* The deletion time of the execution. It is only populated as a response to a
* Delete request.
*
* @param string $deleteTime
*/
public function setDeleteTime($deleteTime)
{
$this->deleteTime = $deleteTime;
}
/**
* @return string
*/
public function getDeleteTime()
{
return $this->deleteTime;
}
/**
* Name of the execution.
*
* @param string $name
*/
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(GoogleCloudRunV2ExecutionReference::class, 'Google_Service_CloudRun_GoogleCloudRunV2ExecutionReference');
@@ -0,0 +1,221 @@
<?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 GoogleCloudRunV2ExecutionTemplate extends \Google\Model
{
/**
* Unstructured key value map that may be set by external tools to store and
* arbitrary metadata. They are not queryable and should be preserved when
* modifying objects. Cloud Run API v2 does not support annotations with
* `run.googleapis.com`, `cloud.googleapis.com`, `serving.knative.dev`, or
* `autoscaling.knative.dev` namespaces, and they will be rejected. All system
* annotations in v1 now have a corresponding field in v2 ExecutionTemplate.
* This field follows Kubernetes annotations' namespacing, limits, and rules.
*
* @var string[]
*/
public $annotations;
/**
* Optional. Arbitrary identifier for the API client.
*
* @var string
*/
public $client;
/**
* Optional. Arbitrary version identifier for the API client.
*
* @var string
*/
public $clientVersion;
/**
* Unstructured key value map that can be used to organize and categorize
* objects. User-provided labels are shared with Google's billing system, so
* they can be used to filter, or break down billing charges by team,
* component, environment, state, etc. For more information, visit
* https://cloud.google.com/resource-manager/docs/creating-managing-labels or
* https://cloud.google.com/run/docs/configuring/labels. Cloud Run API v2 does
* not support labels with `run.googleapis.com`, `cloud.googleapis.com`,
* `serving.knative.dev`, or `autoscaling.knative.dev` namespaces, and they
* will be rejected. All system labels in v1 now have a corresponding field in
* v2 ExecutionTemplate.
*
* @var string[]
*/
public $labels;
/**
* Optional. Specifies the maximum desired number of tasks the execution
* should run at given time. When the job is run, if this field is 0 or unset,
* the maximum possible value will be used for that execution. The actual
* number of tasks running in steady state will be less than this number when
* there are fewer tasks waiting to be completed remaining, i.e. when the work
* left to do is less than max parallelism.
*
* @var int
*/
public $parallelism;
/**
* Specifies the desired number of tasks the execution should run. Setting to
* 1 means that parallelism is limited to 1 and the success of that task
* signals the success of the execution. Defaults to 1.
*
* @var int
*/
public $taskCount;
protected $templateType = GoogleCloudRunV2TaskTemplate::class;
protected $templateDataType = '';
/**
* Unstructured key value map that may be set by external tools to store and
* arbitrary metadata. They are not queryable and should be preserved when
* modifying objects. Cloud Run API v2 does not support annotations with
* `run.googleapis.com`, `cloud.googleapis.com`, `serving.knative.dev`, or
* `autoscaling.knative.dev` namespaces, and they will be rejected. All system
* annotations in v1 now have a corresponding field in v2 ExecutionTemplate.
* This field follows Kubernetes annotations' namespacing, limits, and rules.
*
* @param string[] $annotations
*/
public function setAnnotations($annotations)
{
$this->annotations = $annotations;
}
/**
* @return string[]
*/
public function getAnnotations()
{
return $this->annotations;
}
/**
* Optional. Arbitrary identifier for the API client.
*
* @param string $client
*/
public function setClient($client)
{
$this->client = $client;
}
/**
* @return string
*/
public function getClient()
{
return $this->client;
}
/**
* Optional. Arbitrary version identifier for the API client.
*
* @param string $clientVersion
*/
public function setClientVersion($clientVersion)
{
$this->clientVersion = $clientVersion;
}
/**
* @return string
*/
public function getClientVersion()
{
return $this->clientVersion;
}
/**
* Unstructured key value map that can be used to organize and categorize
* objects. User-provided labels are shared with Google's billing system, so
* they can be used to filter, or break down billing charges by team,
* component, environment, state, etc. For more information, visit
* https://cloud.google.com/resource-manager/docs/creating-managing-labels or
* https://cloud.google.com/run/docs/configuring/labels. Cloud Run API v2 does
* not support labels with `run.googleapis.com`, `cloud.googleapis.com`,
* `serving.knative.dev`, or `autoscaling.knative.dev` namespaces, and they
* will be rejected. All system labels in v1 now have a corresponding field in
* v2 ExecutionTemplate.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Optional. Specifies the maximum desired number of tasks the execution
* should run at given time. When the job is run, if this field is 0 or unset,
* the maximum possible value will be used for that execution. The actual
* number of tasks running in steady state will be less than this number when
* there are fewer tasks waiting to be completed remaining, i.e. when the work
* left to do is less than max parallelism.
*
* @param int $parallelism
*/
public function setParallelism($parallelism)
{
$this->parallelism = $parallelism;
}
/**
* @return int
*/
public function getParallelism()
{
return $this->parallelism;
}
/**
* Specifies the desired number of tasks the execution should run. Setting to
* 1 means that parallelism is limited to 1 and the success of that task
* signals the success of the execution. Defaults to 1.
*
* @param int $taskCount
*/
public function setTaskCount($taskCount)
{
$this->taskCount = $taskCount;
}
/**
* @return int
*/
public function getTaskCount()
{
return $this->taskCount;
}
/**
* Required. Describes the task(s) that will be created when executing an
* execution.
*
* @param GoogleCloudRunV2TaskTemplate $template
*/
public function setTemplate(GoogleCloudRunV2TaskTemplate $template)
{
$this->template = $template;
}
/**
* @return GoogleCloudRunV2TaskTemplate
*/
public function getTemplate()
{
return $this->template;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRunV2ExecutionTemplate::class, 'Google_Service_CloudRun_GoogleCloudRunV2ExecutionTemplate');
@@ -0,0 +1,48 @@
<?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 GoogleCloudRunV2ExportImageRequest extends \Google\Model
{
/**
* Required. The export destination url (the Artifact Registry repo).
*
* @var string
*/
public $destinationRepo;
/**
* Required. The export destination url (the Artifact Registry repo).
*
* @param string $destinationRepo
*/
public function setDestinationRepo($destinationRepo)
{
$this->destinationRepo = $destinationRepo;
}
/**
* @return string
*/
public function getDestinationRepo()
{
return $this->destinationRepo;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRunV2ExportImageRequest::class, 'Google_Service_CloudRun_GoogleCloudRunV2ExportImageRequest');
@@ -0,0 +1,50 @@
<?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 GoogleCloudRunV2ExportImageResponse extends \Google\Model
{
/**
* An operation ID used to track the status of image exports tied to the
* original pod ID in the request.
*
* @var string
*/
public $operationId;
/**
* An operation ID used to track the status of image exports tied to the
* original pod ID in the request.
*
* @param string $operationId
*/
public function setOperationId($operationId)
{
$this->operationId = $operationId;
}
/**
* @return string
*/
public function getOperationId()
{
return $this->operationId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRunV2ExportImageResponse::class, 'Google_Service_CloudRun_GoogleCloudRunV2ExportImageResponse');
@@ -0,0 +1,103 @@
<?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 GoogleCloudRunV2ExportStatusResponse extends \Google\Collection
{
/**
* State unspecified.
*/
public const OPERATION_STATE_OPERATION_STATE_UNSPECIFIED = 'OPERATION_STATE_UNSPECIFIED';
/**
* Operation still in progress.
*/
public const OPERATION_STATE_IN_PROGRESS = 'IN_PROGRESS';
/**
* Operation finished.
*/
public const OPERATION_STATE_FINISHED = 'FINISHED';
protected $collection_key = 'imageExportStatuses';
protected $imageExportStatusesType = GoogleCloudRunV2ImageExportStatus::class;
protected $imageExportStatusesDataType = 'array';
/**
* The operation id.
*
* @var string
*/
public $operationId;
/**
* Output only. The state of the overall export operation.
*
* @var string
*/
public $operationState;
/**
* The status of each image export job.
*
* @param GoogleCloudRunV2ImageExportStatus[] $imageExportStatuses
*/
public function setImageExportStatuses($imageExportStatuses)
{
$this->imageExportStatuses = $imageExportStatuses;
}
/**
* @return GoogleCloudRunV2ImageExportStatus[]
*/
public function getImageExportStatuses()
{
return $this->imageExportStatuses;
}
/**
* The operation id.
*
* @param string $operationId
*/
public function setOperationId($operationId)
{
$this->operationId = $operationId;
}
/**
* @return string
*/
public function getOperationId()
{
return $this->operationId;
}
/**
* Output only. The state of the overall export operation.
*
* Accepted values: OPERATION_STATE_UNSPECIFIED, IN_PROGRESS, FINISHED
*
* @param self::OPERATION_STATE_* $operationState
*/
public function setOperationState($operationState)
{
$this->operationState = $operationState;
}
/**
* @return self::OPERATION_STATE_*
*/
public function getOperationState()
{
return $this->operationState;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRunV2ExportStatusResponse::class, 'Google_Service_CloudRun_GoogleCloudRunV2ExportStatusResponse');
@@ -0,0 +1,95 @@
<?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 GoogleCloudRunV2GCSVolumeSource extends \Google\Collection
{
protected $collection_key = 'mountOptions';
/**
* Cloud Storage Bucket name.
*
* @var string
*/
public $bucket;
/**
* A list of additional flags to pass to the gcsfuse CLI. Options should be
* specified without the leading "--".
*
* @var string[]
*/
public $mountOptions;
/**
* If true, the volume will be mounted as read only for all mounts.
*
* @var bool
*/
public $readOnly;
/**
* Cloud Storage Bucket name.
*
* @param string $bucket
*/
public function setBucket($bucket)
{
$this->bucket = $bucket;
}
/**
* @return string
*/
public function getBucket()
{
return $this->bucket;
}
/**
* A list of additional flags to pass to the gcsfuse CLI. Options should be
* specified without the leading "--".
*
* @param string[] $mountOptions
*/
public function setMountOptions($mountOptions)
{
$this->mountOptions = $mountOptions;
}
/**
* @return string[]
*/
public function getMountOptions()
{
return $this->mountOptions;
}
/**
* If true, the volume will be mounted as read only for all mounts.
*
* @param bool $readOnly
*/
public function setReadOnly($readOnly)
{
$this->readOnly = $readOnly;
}
/**
* @return bool
*/
public function getReadOnly()
{
return $this->readOnly;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRunV2GCSVolumeSource::class, 'Google_Service_CloudRun_GoogleCloudRunV2GCSVolumeSource');
@@ -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 GoogleCloudRunV2GRPCAction extends \Google\Model
{
/**
* Optional. Port number of the gRPC service. Number must be in the range 1 to
* 65535. If not specified, defaults to the exposed port of the container,
* which is the value of container.ports[0].containerPort.
*
* @var int
*/
public $port;
/**
* Optional. Service is the name of the service to place in the gRPC
* HealthCheckRequest (see
* https://github.com/grpc/grpc/blob/master/doc/health-checking.md ). If this
* is not specified, the default behavior is defined by gRPC.
*
* @var string
*/
public $service;
/**
* Optional. Port number of the gRPC service. Number must be in the range 1 to
* 65535. If not specified, defaults to the exposed port of the container,
* which is the value of container.ports[0].containerPort.
*
* @param int $port
*/
public function setPort($port)
{
$this->port = $port;
}
/**
* @return int
*/
public function getPort()
{
return $this->port;
}
/**
* Optional. Service is the name of the service to place in the gRPC
* HealthCheckRequest (see
* https://github.com/grpc/grpc/blob/master/doc/health-checking.md ). If this
* is not specified, the default behavior is defined by gRPC.
*
* @param string $service
*/
public function setService($service)
{
$this->service = $service;
}
/**
* @return string
*/
public function getService()
{
return $this->service;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRunV2GRPCAction::class, 'Google_Service_CloudRun_GoogleCloudRunV2GRPCAction');
@@ -0,0 +1,94 @@
<?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 GoogleCloudRunV2HTTPGetAction extends \Google\Collection
{
protected $collection_key = 'httpHeaders';
protected $httpHeadersType = GoogleCloudRunV2HTTPHeader::class;
protected $httpHeadersDataType = 'array';
/**
* Optional. Path to access on the HTTP server. Defaults to '/'.
*
* @var string
*/
public $path;
/**
* Optional. Port number to access on the container. Must be in the range 1 to
* 65535. If not specified, defaults to the exposed port of the container,
* which is the value of container.ports[0].containerPort.
*
* @var int
*/
public $port;
/**
* Optional. Custom headers to set in the request. HTTP allows repeated
* headers.
*
* @param GoogleCloudRunV2HTTPHeader[] $httpHeaders
*/
public function setHttpHeaders($httpHeaders)
{
$this->httpHeaders = $httpHeaders;
}
/**
* @return GoogleCloudRunV2HTTPHeader[]
*/
public function getHttpHeaders()
{
return $this->httpHeaders;
}
/**
* Optional. Path to access on the HTTP server. Defaults to '/'.
*
* @param string $path
*/
public function setPath($path)
{
$this->path = $path;
}
/**
* @return string
*/
public function getPath()
{
return $this->path;
}
/**
* Optional. Port number to access on the container. Must be in the range 1 to
* 65535. If not specified, defaults to the exposed port of the container,
* which is the value of container.ports[0].containerPort.
*
* @param int $port
*/
public function setPort($port)
{
$this->port = $port;
}
/**
* @return int
*/
public function getPort()
{
return $this->port;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRunV2HTTPGetAction::class, 'Google_Service_CloudRun_GoogleCloudRunV2HTTPGetAction');
@@ -0,0 +1,70 @@
<?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 GoogleCloudRunV2HTTPHeader extends \Google\Model
{
/**
* Required. The header field name
*
* @var string
*/
public $name;
/**
* Optional. The header field value
*
* @var string
*/
public $value;
/**
* Required. The header field name
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Optional. The header field value
*
* @param string $value
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRunV2HTTPHeader::class, 'Google_Service_CloudRun_GoogleCloudRunV2HTTPHeader');
@@ -0,0 +1,126 @@
<?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 GoogleCloudRunV2ImageExportStatus extends \Google\Model
{
/**
* State unspecified.
*/
public const EXPORT_JOB_STATE_EXPORT_JOB_STATE_UNSPECIFIED = 'EXPORT_JOB_STATE_UNSPECIFIED';
/**
* Job still in progress.
*/
public const EXPORT_JOB_STATE_IN_PROGRESS = 'IN_PROGRESS';
/**
* Job finished.
*/
public const EXPORT_JOB_STATE_FINISHED = 'FINISHED';
/**
* Output only. Has the image export job finished (regardless of successful or
* failure).
*
* @var string
*/
public $exportJobState;
/**
* The exported image ID as it will appear in Artifact Registry.
*
* @var string
*/
public $exportedImageDigest;
protected $statusType = UtilStatusProto::class;
protected $statusDataType = '';
/**
* The image tag as it will appear in Artifact Registry.
*
* @var string
*/
public $tag;
/**
* Output only. Has the image export job finished (regardless of successful or
* failure).
*
* Accepted values: EXPORT_JOB_STATE_UNSPECIFIED, IN_PROGRESS, FINISHED
*
* @param self::EXPORT_JOB_STATE_* $exportJobState
*/
public function setExportJobState($exportJobState)
{
$this->exportJobState = $exportJobState;
}
/**
* @return self::EXPORT_JOB_STATE_*
*/
public function getExportJobState()
{
return $this->exportJobState;
}
/**
* The exported image ID as it will appear in Artifact Registry.
*
* @param string $exportedImageDigest
*/
public function setExportedImageDigest($exportedImageDigest)
{
$this->exportedImageDigest = $exportedImageDigest;
}
/**
* @return string
*/
public function getExportedImageDigest()
{
return $this->exportedImageDigest;
}
/**
* The status of the export task if done.
*
* @param UtilStatusProto $status
*/
public function setStatus(UtilStatusProto $status)
{
$this->status = $status;
}
/**
* @return UtilStatusProto
*/
public function getStatus()
{
return $this->status;
}
/**
* The image tag as it will appear in Artifact Registry.
*
* @param string $tag
*/
public function setTag($tag)
{
$this->tag = $tag;
}
/**
* @return string
*/
public function getTag()
{
return $this->tag;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRunV2ImageExportStatus::class, 'Google_Service_CloudRun_GoogleCloudRunV2ImageExportStatus');
@@ -0,0 +1,45 @@
<?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 GoogleCloudRunV2InlinedSource extends \Google\Collection
{
protected $collection_key = 'sources';
protected $sourcesType = GoogleCloudRunV2SourceFile::class;
protected $sourcesDataType = 'array';
/**
* Required. Input only. The source code.
*
* @param GoogleCloudRunV2SourceFile[] $sources
*/
public function setSources($sources)
{
$this->sources = $sources;
}
/**
* @return GoogleCloudRunV2SourceFile[]
*/
public function getSources()
{
return $this->sources;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRunV2InlinedSource::class, 'Google_Service_CloudRun_GoogleCloudRunV2InlinedSource');
File diff suppressed because it is too large Load Diff
@@ -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\CloudRun;
class GoogleCloudRunV2InstanceSplit extends \Google\Model
{
/**
* Unspecified instance allocation type.
*/
public const TYPE_INSTANCE_SPLIT_ALLOCATION_TYPE_UNSPECIFIED = 'INSTANCE_SPLIT_ALLOCATION_TYPE_UNSPECIFIED';
/**
* Allocates instances to the Service's latest ready Revision.
*/
public const TYPE_INSTANCE_SPLIT_ALLOCATION_TYPE_LATEST = 'INSTANCE_SPLIT_ALLOCATION_TYPE_LATEST';
/**
* Allocates instances to a Revision by name.
*/
public const TYPE_INSTANCE_SPLIT_ALLOCATION_TYPE_REVISION = 'INSTANCE_SPLIT_ALLOCATION_TYPE_REVISION';
/**
* Specifies percent of the instance split to this Revision. This defaults to
* zero if unspecified.
*
* @var int
*/
public $percent;
/**
* Revision to which to assign this portion of instances, if split allocation
* is by revision.
*
* @var string
*/
public $revision;
/**
* The allocation type for this instance split.
*
* @var string
*/
public $type;
/**
* Specifies percent of the instance split to this Revision. This defaults to
* zero if unspecified.
*
* @param int $percent
*/
public function setPercent($percent)
{
$this->percent = $percent;
}
/**
* @return int
*/
public function getPercent()
{
return $this->percent;
}
/**
* Revision to which to assign this portion of instances, if split allocation
* is by revision.
*
* @param string $revision
*/
public function setRevision($revision)
{
$this->revision = $revision;
}
/**
* @return string
*/
public function getRevision()
{
return $this->revision;
}
/**
* The allocation type for this instance split.
*
* Accepted values: INSTANCE_SPLIT_ALLOCATION_TYPE_UNSPECIFIED,
* INSTANCE_SPLIT_ALLOCATION_TYPE_LATEST,
* INSTANCE_SPLIT_ALLOCATION_TYPE_REVISION
*
* @param self::TYPE_* $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return self::TYPE_*
*/
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');
@@ -0,0 +1,108 @@
<?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
{
/**
* Unspecified instance allocation type.
*/
public const TYPE_INSTANCE_SPLIT_ALLOCATION_TYPE_UNSPECIFIED = 'INSTANCE_SPLIT_ALLOCATION_TYPE_UNSPECIFIED';
/**
* Allocates instances to the Service's latest ready Revision.
*/
public const TYPE_INSTANCE_SPLIT_ALLOCATION_TYPE_LATEST = 'INSTANCE_SPLIT_ALLOCATION_TYPE_LATEST';
/**
* Allocates instances to a Revision by name.
*/
public const TYPE_INSTANCE_SPLIT_ALLOCATION_TYPE_REVISION = 'INSTANCE_SPLIT_ALLOCATION_TYPE_REVISION';
/**
* Specifies percent of the instance split to this Revision.
*
* @var int
*/
public $percent;
/**
* Revision to which this instance split is assigned.
*
* @var string
*/
public $revision;
/**
* The allocation type for this instance split.
*
* @var string
*/
public $type;
/**
* Specifies percent of the instance split to this Revision.
*
* @param int $percent
*/
public function setPercent($percent)
{
$this->percent = $percent;
}
/**
* @return int
*/
public function getPercent()
{
return $this->percent;
}
/**
* Revision to which this instance split is assigned.
*
* @param string $revision
*/
public function setRevision($revision)
{
$this->revision = $revision;
}
/**
* @return string
*/
public function getRevision()
{
return $this->revision;
}
/**
* The allocation type for this instance split.
*
* Accepted values: INSTANCE_SPLIT_ALLOCATION_TYPE_UNSPECIFIED,
* INSTANCE_SPLIT_ALLOCATION_TYPE_LATEST,
* INSTANCE_SPLIT_ALLOCATION_TYPE_REVISION
*
* @param self::TYPE_* $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return self::TYPE_*
*/
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');
@@ -0,0 +1,739 @@
<?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 GoogleCloudRunV2Job extends \Google\Collection
{
/**
* Do not use this default value.
*/
public const LAUNCH_STAGE_LAUNCH_STAGE_UNSPECIFIED = 'LAUNCH_STAGE_UNSPECIFIED';
/**
* The feature is not yet implemented. Users can not use it.
*/
public const LAUNCH_STAGE_UNIMPLEMENTED = 'UNIMPLEMENTED';
/**
* Prelaunch features are hidden from users and are only visible internally.
*/
public const LAUNCH_STAGE_PRELAUNCH = 'PRELAUNCH';
/**
* Early Access features are limited to a closed group of testers. To use
* these features, you must sign up in advance and sign a Trusted Tester
* agreement (which includes confidentiality provisions). These features may
* be unstable, changed in backward-incompatible ways, and are not guaranteed
* to be released.
*/
public const LAUNCH_STAGE_EARLY_ACCESS = 'EARLY_ACCESS';
/**
* Alpha is a limited availability test for releases before they are cleared
* for widespread use. By Alpha, all significant design issues are resolved
* and we are in the process of verifying functionality. Alpha customers need
* to apply for access, agree to applicable terms, and have their projects
* allowlisted. Alpha releases don't have to be feature complete, no SLAs are
* provided, and there are no technical support obligations, but they will be
* far enough along that customers can actually use them in test environments
* or for limited-use tests -- just like they would in normal production
* cases.
*/
public const LAUNCH_STAGE_ALPHA = 'ALPHA';
/**
* Beta is the point at which we are ready to open a release for any customer
* to use. There are no SLA or technical support obligations in a Beta
* release. Products will be complete from a feature perspective, but may have
* some open outstanding issues. Beta releases are suitable for limited
* production use cases.
*/
public const LAUNCH_STAGE_BETA = 'BETA';
/**
* GA features are open to all developers and are considered stable and fully
* qualified for production use.
*/
public const LAUNCH_STAGE_GA = 'GA';
/**
* Deprecated features are scheduled to be shut down and removed. For more
* information, see the "Deprecation Policy" section of our [Terms of
* Service](https://cloud.google.com/terms/) and the [Google Cloud Platform
* Subject to the Deprecation
* Policy](https://cloud.google.com/terms/deprecation) documentation.
*/
public const LAUNCH_STAGE_DEPRECATED = 'DEPRECATED';
protected $collection_key = 'conditions';
/**
* Unstructured key value map that may be set by external tools to store and
* arbitrary metadata. They are not queryable and should be preserved when
* modifying objects. Cloud Run API v2 does not support annotations with
* `run.googleapis.com`, `cloud.googleapis.com`, `serving.knative.dev`, or
* `autoscaling.knative.dev` namespaces, and they will be rejected on new
* resources. All system annotations in v1 now have a corresponding field in
* v2 Job. This field follows Kubernetes annotations' namespacing, limits, and
* rules.
*
* @var string[]
*/
public $annotations;
protected $binaryAuthorizationType = GoogleCloudRunV2BinaryAuthorization::class;
protected $binaryAuthorizationDataType = '';
/**
* Arbitrary identifier for the API client.
*
* @var string
*/
public $client;
/**
* Arbitrary version identifier for the API client.
*
* @var string
*/
public $clientVersion;
protected $conditionsType = GoogleCloudRunV2Condition::class;
protected $conditionsDataType = 'array';
/**
* Output only. The creation time.
*
* @var string
*/
public $createTime;
/**
* Output only. Email address of the authenticated creator.
*
* @var string
*/
public $creator;
/**
* Output only. The deletion time. It is only populated as a response to a
* Delete request.
*
* @var string
*/
public $deleteTime;
/**
* Optional. A system-generated fingerprint for this version of the resource.
* May be used to detect modification conflict during updates.
*
* @var string
*/
public $etag;
/**
* Output only. Number of executions created for this job.
*
* @var int
*/
public $executionCount;
/**
* Output only. For a deleted resource, the time after which it will be
* permamently deleted.
*
* @var string
*/
public $expireTime;
/**
* Output only. A number that monotonically increases every time the user
* modifies the desired state.
*
* @var string
*/
public $generation;
/**
* Unstructured key value map that can be used to organize and categorize
* objects. User-provided labels are shared with Google's billing system, so
* they can be used to filter, or break down billing charges by team,
* component, environment, state, etc. For more information, visit
* https://cloud.google.com/resource-manager/docs/creating-managing-labels or
* https://cloud.google.com/run/docs/configuring/labels. Cloud Run API v2 does
* not support labels with `run.googleapis.com`, `cloud.googleapis.com`,
* `serving.knative.dev`, or `autoscaling.knative.dev` namespaces, and they
* will be rejected. All system labels in v1 now have a corresponding field in
* v2 Job.
*
* @var string[]
*/
public $labels;
/**
* Output only. Email address of the last authenticated modifier.
*
* @var string
*/
public $lastModifier;
protected $latestCreatedExecutionType = GoogleCloudRunV2ExecutionReference::class;
protected $latestCreatedExecutionDataType = '';
/**
* The launch stage as defined by [Google Cloud Platform Launch
* Stages](https://cloud.google.com/terms/launch-stages). Cloud Run supports
* `ALPHA`, `BETA`, and `GA`. If no value is specified, GA is assumed. Set the
* launch stage to a preview stage on input to allow use of preview features
* in that stage. On read (or output), describes whether the resource uses
* preview features. For example, if ALPHA is provided as input, but only BETA
* and GA-level features are used, this field will be BETA on output.
*
* @var string
*/
public $launchStage;
/**
* The fully qualified name of this Job. Format:
* projects/{project}/locations/{location}/jobs/{job}
*
* @var string
*/
public $name;
/**
* Output only. The generation of this Job. See comments in `reconciling` for
* additional information on reconciliation process in Cloud Run.
*
* @var string
*/
public $observedGeneration;
/**
* Output only. Returns true if the Job is currently being acted upon by the
* system to bring it into the desired state. When a new Job is created, or an
* existing one is updated, Cloud Run will asynchronously perform all
* necessary steps to bring the Job to the desired state. This process is
* called reconciliation. While reconciliation is in process,
* `observed_generation` and `latest_succeeded_execution`, will have transient
* values that might mismatch the intended state: Once reconciliation is over
* (and this field is false), there are two possible outcomes: reconciliation
* succeeded and the state matches the Job, or there was an error, and
* reconciliation failed. This state can be found in
* `terminal_condition.state`. If reconciliation succeeded, the following
* fields will match: `observed_generation` and `generation`,
* `latest_succeeded_execution` and `latest_created_execution`. If
* reconciliation failed, `observed_generation` and
* `latest_succeeded_execution` will have the state of the last succeeded
* execution or empty for newly created Job. Additional information on the
* failure can be found in `terminal_condition` and `conditions`.
*
* @var bool
*/
public $reconciling;
/**
* A unique string used as a suffix for creating a new execution. The Job will
* become ready when the execution is successfully completed. The sum of job
* name and token length must be fewer than 63 characters.
*
* @var string
*/
public $runExecutionToken;
/**
* Output only. Reserved for future use.
*
* @var bool
*/
public $satisfiesPzs;
/**
* A unique string used as a suffix creating a new execution. The Job will
* become ready when the execution is successfully started. The sum of job
* name and token length must be fewer than 63 characters.
*
* @var string
*/
public $startExecutionToken;
protected $templateType = GoogleCloudRunV2ExecutionTemplate::class;
protected $templateDataType = '';
protected $terminalConditionType = GoogleCloudRunV2Condition::class;
protected $terminalConditionDataType = '';
/**
* Output only. Server assigned unique identifier for the Execution. The value
* is a UUID4 string and guaranteed to remain unchanged until the resource is
* deleted.
*
* @var string
*/
public $uid;
/**
* Output only. The last-modified time.
*
* @var string
*/
public $updateTime;
/**
* Unstructured key value map that may be set by external tools to store and
* arbitrary metadata. They are not queryable and should be preserved when
* modifying objects. Cloud Run API v2 does not support annotations with
* `run.googleapis.com`, `cloud.googleapis.com`, `serving.knative.dev`, or
* `autoscaling.knative.dev` namespaces, and they will be rejected on new
* resources. All system annotations in v1 now have a corresponding field in
* v2 Job. This field follows Kubernetes annotations' namespacing, limits, and
* rules.
*
* @param string[] $annotations
*/
public function setAnnotations($annotations)
{
$this->annotations = $annotations;
}
/**
* @return string[]
*/
public function getAnnotations()
{
return $this->annotations;
}
/**
* Settings for the Binary Authorization feature.
*
* @param GoogleCloudRunV2BinaryAuthorization $binaryAuthorization
*/
public function setBinaryAuthorization(GoogleCloudRunV2BinaryAuthorization $binaryAuthorization)
{
$this->binaryAuthorization = $binaryAuthorization;
}
/**
* @return GoogleCloudRunV2BinaryAuthorization
*/
public function getBinaryAuthorization()
{
return $this->binaryAuthorization;
}
/**
* Arbitrary identifier for the API client.
*
* @param string $client
*/
public function setClient($client)
{
$this->client = $client;
}
/**
* @return string
*/
public function getClient()
{
return $this->client;
}
/**
* Arbitrary version identifier for the API client.
*
* @param string $clientVersion
*/
public function setClientVersion($clientVersion)
{
$this->clientVersion = $clientVersion;
}
/**
* @return string
*/
public function getClientVersion()
{
return $this->clientVersion;
}
/**
* Output only. The Conditions of all other associated sub-resources. They
* contain additional diagnostics information in case the Job does not reach
* its desired state. See comments in `reconciling` for additional information
* on reconciliation process in Cloud Run.
*
* @param GoogleCloudRunV2Condition[] $conditions
*/
public function setConditions($conditions)
{
$this->conditions = $conditions;
}
/**
* @return GoogleCloudRunV2Condition[]
*/
public function getConditions()
{
return $this->conditions;
}
/**
* Output only. The creation time.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Output only. Email address of the authenticated creator.
*
* @param string $creator
*/
public function setCreator($creator)
{
$this->creator = $creator;
}
/**
* @return string
*/
public function getCreator()
{
return $this->creator;
}
/**
* Output only. The deletion time. It is only populated as a response to a
* Delete request.
*
* @param string $deleteTime
*/
public function setDeleteTime($deleteTime)
{
$this->deleteTime = $deleteTime;
}
/**
* @return string
*/
public function getDeleteTime()
{
return $this->deleteTime;
}
/**
* Optional. A system-generated fingerprint for this version of the resource.
* May be used to detect modification conflict during updates.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* Output only. Number of executions created for this job.
*
* @param int $executionCount
*/
public function setExecutionCount($executionCount)
{
$this->executionCount = $executionCount;
}
/**
* @return int
*/
public function getExecutionCount()
{
return $this->executionCount;
}
/**
* Output only. For a deleted resource, the time after which it will be
* permamently deleted.
*
* @param string $expireTime
*/
public function setExpireTime($expireTime)
{
$this->expireTime = $expireTime;
}
/**
* @return string
*/
public function getExpireTime()
{
return $this->expireTime;
}
/**
* Output only. A number that monotonically increases every time the user
* modifies the desired state.
*
* @param string $generation
*/
public function setGeneration($generation)
{
$this->generation = $generation;
}
/**
* @return string
*/
public function getGeneration()
{
return $this->generation;
}
/**
* Unstructured key value map that can be used to organize and categorize
* objects. User-provided labels are shared with Google's billing system, so
* they can be used to filter, or break down billing charges by team,
* component, environment, state, etc. For more information, visit
* https://cloud.google.com/resource-manager/docs/creating-managing-labels or
* https://cloud.google.com/run/docs/configuring/labels. Cloud Run API v2 does
* not support labels with `run.googleapis.com`, `cloud.googleapis.com`,
* `serving.knative.dev`, or `autoscaling.knative.dev` namespaces, and they
* will be rejected. All system labels in v1 now have a corresponding field in
* v2 Job.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Output only. Email address of the last authenticated modifier.
*
* @param string $lastModifier
*/
public function setLastModifier($lastModifier)
{
$this->lastModifier = $lastModifier;
}
/**
* @return string
*/
public function getLastModifier()
{
return $this->lastModifier;
}
/**
* Output only. Name of the last created execution.
*
* @param GoogleCloudRunV2ExecutionReference $latestCreatedExecution
*/
public function setLatestCreatedExecution(GoogleCloudRunV2ExecutionReference $latestCreatedExecution)
{
$this->latestCreatedExecution = $latestCreatedExecution;
}
/**
* @return GoogleCloudRunV2ExecutionReference
*/
public function getLatestCreatedExecution()
{
return $this->latestCreatedExecution;
}
/**
* The launch stage as defined by [Google Cloud Platform Launch
* Stages](https://cloud.google.com/terms/launch-stages). Cloud Run supports
* `ALPHA`, `BETA`, and `GA`. If no value is specified, GA is assumed. Set the
* launch stage to a preview stage on input to allow use of preview features
* in that stage. On read (or output), describes whether the resource uses
* preview features. For example, if ALPHA is provided as input, but only BETA
* and GA-level features are used, this field will be BETA on output.
*
* Accepted values: LAUNCH_STAGE_UNSPECIFIED, UNIMPLEMENTED, PRELAUNCH,
* EARLY_ACCESS, ALPHA, BETA, GA, DEPRECATED
*
* @param self::LAUNCH_STAGE_* $launchStage
*/
public function setLaunchStage($launchStage)
{
$this->launchStage = $launchStage;
}
/**
* @return self::LAUNCH_STAGE_*
*/
public function getLaunchStage()
{
return $this->launchStage;
}
/**
* The fully qualified name of this Job. Format:
* projects/{project}/locations/{location}/jobs/{job}
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. The generation of this Job. See comments in `reconciling` for
* additional information on reconciliation process in Cloud Run.
*
* @param string $observedGeneration
*/
public function setObservedGeneration($observedGeneration)
{
$this->observedGeneration = $observedGeneration;
}
/**
* @return string
*/
public function getObservedGeneration()
{
return $this->observedGeneration;
}
/**
* Output only. Returns true if the Job is currently being acted upon by the
* system to bring it into the desired state. When a new Job is created, or an
* existing one is updated, Cloud Run will asynchronously perform all
* necessary steps to bring the Job to the desired state. This process is
* called reconciliation. While reconciliation is in process,
* `observed_generation` and `latest_succeeded_execution`, will have transient
* values that might mismatch the intended state: Once reconciliation is over
* (and this field is false), there are two possible outcomes: reconciliation
* succeeded and the state matches the Job, or there was an error, and
* reconciliation failed. This state can be found in
* `terminal_condition.state`. If reconciliation succeeded, the following
* fields will match: `observed_generation` and `generation`,
* `latest_succeeded_execution` and `latest_created_execution`. If
* reconciliation failed, `observed_generation` and
* `latest_succeeded_execution` will have the state of the last succeeded
* execution or empty for newly created Job. Additional information on the
* failure can be found in `terminal_condition` and `conditions`.
*
* @param bool $reconciling
*/
public function setReconciling($reconciling)
{
$this->reconciling = $reconciling;
}
/**
* @return bool
*/
public function getReconciling()
{
return $this->reconciling;
}
/**
* A unique string used as a suffix for creating a new execution. The Job will
* become ready when the execution is successfully completed. The sum of job
* name and token length must be fewer than 63 characters.
*
* @param string $runExecutionToken
*/
public function setRunExecutionToken($runExecutionToken)
{
$this->runExecutionToken = $runExecutionToken;
}
/**
* @return string
*/
public function getRunExecutionToken()
{
return $this->runExecutionToken;
}
/**
* Output only. Reserved for future use.
*
* @param bool $satisfiesPzs
*/
public function setSatisfiesPzs($satisfiesPzs)
{
$this->satisfiesPzs = $satisfiesPzs;
}
/**
* @return bool
*/
public function getSatisfiesPzs()
{
return $this->satisfiesPzs;
}
/**
* A unique string used as a suffix creating a new execution. The Job will
* become ready when the execution is successfully started. The sum of job
* name and token length must be fewer than 63 characters.
*
* @param string $startExecutionToken
*/
public function setStartExecutionToken($startExecutionToken)
{
$this->startExecutionToken = $startExecutionToken;
}
/**
* @return string
*/
public function getStartExecutionToken()
{
return $this->startExecutionToken;
}
/**
* Required. The template used to create executions for this Job.
*
* @param GoogleCloudRunV2ExecutionTemplate $template
*/
public function setTemplate(GoogleCloudRunV2ExecutionTemplate $template)
{
$this->template = $template;
}
/**
* @return GoogleCloudRunV2ExecutionTemplate
*/
public function getTemplate()
{
return $this->template;
}
/**
* Output only. The Condition of this Job, containing its readiness status,
* and detailed error information in case it did not reach the desired state.
*
* @param GoogleCloudRunV2Condition $terminalCondition
*/
public function setTerminalCondition(GoogleCloudRunV2Condition $terminalCondition)
{
$this->terminalCondition = $terminalCondition;
}
/**
* @return GoogleCloudRunV2Condition
*/
public function getTerminalCondition()
{
return $this->terminalCondition;
}
/**
* Output only. Server assigned unique identifier for the Execution. The value
* is a UUID4 string and guaranteed to remain unchanged until the resource is
* deleted.
*
* @param string $uid
*/
public function setUid($uid)
{
$this->uid = $uid;
}
/**
* @return string
*/
public function getUid()
{
return $this->uid;
}
/**
* Output only. The last-modified time.
*
* @param string $updateTime
*/
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(GoogleCloudRunV2Job::class, 'Google_Service_CloudRun_GoogleCloudRunV2Job');
@@ -0,0 +1,69 @@
<?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 GoogleCloudRunV2ListExecutionsResponse extends \Google\Collection
{
protected $collection_key = 'executions';
protected $executionsType = GoogleCloudRunV2Execution::class;
protected $executionsDataType = 'array';
/**
* A token indicating there are more items than page_size. Use it in the next
* ListExecutions request to continue.
*
* @var string
*/
public $nextPageToken;
/**
* The resulting list of Executions.
*
* @param GoogleCloudRunV2Execution[] $executions
*/
public function setExecutions($executions)
{
$this->executions = $executions;
}
/**
* @return GoogleCloudRunV2Execution[]
*/
public function getExecutions()
{
return $this->executions;
}
/**
* A token indicating there are more items than page_size. Use it in the next
* ListExecutions request to continue.
*
* @param string $nextPageToken
*/
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(GoogleCloudRunV2ListExecutionsResponse::class, 'Google_Service_CloudRun_GoogleCloudRunV2ListExecutionsResponse');
@@ -0,0 +1,69 @@
<?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 GoogleCloudRunV2ListInstancesResponse extends \Google\Collection
{
protected $collection_key = 'instances';
protected $instancesType = GoogleCloudRunV2Instance::class;
protected $instancesDataType = 'array';
/**
* A token indicating there are more items than page_size. Use it in the next
* ListInstances request to continue.
*
* @var string
*/
public $nextPageToken;
/**
* The resulting list of Instances.
*
* @param GoogleCloudRunV2Instance[] $instances
*/
public function setInstances($instances)
{
$this->instances = $instances;
}
/**
* @return GoogleCloudRunV2Instance[]
*/
public function getInstances()
{
return $this->instances;
}
/**
* A token indicating there are more items than page_size. Use it in the next
* ListInstances request to continue.
*
* @param string $nextPageToken
*/
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(GoogleCloudRunV2ListInstancesResponse::class, 'Google_Service_CloudRun_GoogleCloudRunV2ListInstancesResponse');
@@ -0,0 +1,69 @@
<?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 GoogleCloudRunV2ListJobsResponse extends \Google\Collection
{
protected $collection_key = 'jobs';
protected $jobsType = GoogleCloudRunV2Job::class;
protected $jobsDataType = 'array';
/**
* A token indicating there are more items than page_size. Use it in the next
* ListJobs request to continue.
*
* @var string
*/
public $nextPageToken;
/**
* The resulting list of Jobs.
*
* @param GoogleCloudRunV2Job[] $jobs
*/
public function setJobs($jobs)
{
$this->jobs = $jobs;
}
/**
* @return GoogleCloudRunV2Job[]
*/
public function getJobs()
{
return $this->jobs;
}
/**
* A token indicating there are more items than page_size. Use it in the next
* ListJobs request to continue.
*
* @param string $nextPageToken
*/
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(GoogleCloudRunV2ListJobsResponse::class, 'Google_Service_CloudRun_GoogleCloudRunV2ListJobsResponse');
@@ -0,0 +1,69 @@
<?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 GoogleCloudRunV2ListRevisionsResponse extends \Google\Collection
{
protected $collection_key = 'revisions';
/**
* A token indicating there are more items than page_size. Use it in the next
* ListRevisions request to continue.
*
* @var string
*/
public $nextPageToken;
protected $revisionsType = GoogleCloudRunV2Revision::class;
protected $revisionsDataType = 'array';
/**
* A token indicating there are more items than page_size. Use it in the next
* ListRevisions request to continue.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* The resulting list of Revisions.
*
* @param GoogleCloudRunV2Revision[] $revisions
*/
public function setRevisions($revisions)
{
$this->revisions = $revisions;
}
/**
* @return GoogleCloudRunV2Revision[]
*/
public function getRevisions()
{
return $this->revisions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRunV2ListRevisionsResponse::class, 'Google_Service_CloudRun_GoogleCloudRunV2ListRevisionsResponse');
@@ -0,0 +1,93 @@
<?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 GoogleCloudRunV2ListServicesResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* A token indicating there are more items than page_size. Use it in the next
* ListServices request to continue.
*
* @var string
*/
public $nextPageToken;
protected $servicesType = GoogleCloudRunV2Service::class;
protected $servicesDataType = 'array';
/**
* Output only. For global requests, returns the list of regions that could
* not be reached within the deadline.
*
* @var string[]
*/
public $unreachable;
/**
* A token indicating there are more items than page_size. Use it in the next
* ListServices request to continue.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* The resulting list of Services.
*
* @param GoogleCloudRunV2Service[] $services
*/
public function setServices($services)
{
$this->services = $services;
}
/**
* @return GoogleCloudRunV2Service[]
*/
public function getServices()
{
return $this->services;
}
/**
* Output only. For global requests, returns the list of regions that could
* not be reached within the deadline.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRunV2ListServicesResponse::class, 'Google_Service_CloudRun_GoogleCloudRunV2ListServicesResponse');
@@ -0,0 +1,69 @@
<?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 GoogleCloudRunV2ListTasksResponse extends \Google\Collection
{
protected $collection_key = 'tasks';
/**
* A token indicating there are more items than page_size. Use it in the next
* ListTasks request to continue.
*
* @var string
*/
public $nextPageToken;
protected $tasksType = GoogleCloudRunV2Task::class;
protected $tasksDataType = 'array';
/**
* A token indicating there are more items than page_size. Use it in the next
* ListTasks request to continue.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* The resulting list of Tasks.
*
* @param GoogleCloudRunV2Task[] $tasks
*/
public function setTasks($tasks)
{
$this->tasks = $tasks;
}
/**
* @return GoogleCloudRunV2Task[]
*/
public function getTasks()
{
return $this->tasks;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRunV2ListTasksResponse::class, 'Google_Service_CloudRun_GoogleCloudRunV2ListTasksResponse');
@@ -0,0 +1,69 @@
<?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';
/**
* A token indicating there are more items than page_size. Use it in the next
* ListWorkerPools request to continue.
*
* @var string
*/
public $nextPageToken;
protected $workerPoolsType = GoogleCloudRunV2WorkerPool::class;
protected $workerPoolsDataType = 'array';
/**
* A token indicating there are more items than page_size. Use it in the next
* ListWorkerPools request to continue.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* The resulting list of WorkerPools.
*
* @param GoogleCloudRunV2WorkerPool[] $workerPools
*/
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');
@@ -0,0 +1,50 @@
<?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 GoogleCloudRunV2Metadata extends \Google\Model
{
/**
* JSON encoded Google-generated Customer Metadata for a given
* resource/project.
*
* @var string
*/
public $metadata;
/**
* JSON encoded Google-generated Customer Metadata for a given
* resource/project.
*
* @param string $metadata
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return string
*/
public function getMetadata()
{
return $this->metadata;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRunV2Metadata::class, 'Google_Service_CloudRun_GoogleCloudRunV2Metadata');
@@ -0,0 +1,71 @@
<?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 GoogleCloudRunV2MultiRegionSettings extends \Google\Collection
{
protected $collection_key = 'regions';
/**
* Optional. System-generated unique id for the multi-region Service.
*
* @var string
*/
public $multiRegionId;
/**
* Required. List of regions to deploy to, including primary region.
*
* @var string[]
*/
public $regions;
/**
* Optional. System-generated unique id for the multi-region Service.
*
* @param string $multiRegionId
*/
public function setMultiRegionId($multiRegionId)
{
$this->multiRegionId = $multiRegionId;
}
/**
* @return string
*/
public function getMultiRegionId()
{
return $this->multiRegionId;
}
/**
* Required. List of regions to deploy to, including primary region.
*
* @param string[] $regions
*/
public function setRegions($regions)
{
$this->regions = $regions;
}
/**
* @return string[]
*/
public function getRegions()
{
return $this->regions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRunV2MultiRegionSettings::class, 'Google_Service_CloudRun_GoogleCloudRunV2MultiRegionSettings');
@@ -0,0 +1,92 @@
<?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 GoogleCloudRunV2NFSVolumeSource extends \Google\Model
{
/**
* Path that is exported by the NFS server.
*
* @var string
*/
public $path;
/**
* If true, the volume will be mounted as read only for all mounts.
*
* @var bool
*/
public $readOnly;
/**
* Hostname or IP address of the NFS server
*
* @var string
*/
public $server;
/**
* Path that is exported by the NFS server.
*
* @param string $path
*/
public function setPath($path)
{
$this->path = $path;
}
/**
* @return string
*/
public function getPath()
{
return $this->path;
}
/**
* If true, the volume will be mounted as read only for all mounts.
*
* @param bool $readOnly
*/
public function setReadOnly($readOnly)
{
$this->readOnly = $readOnly;
}
/**
* @return bool
*/
public function getReadOnly()
{
return $this->readOnly;
}
/**
* Hostname or IP address of the NFS server
*
* @param string $server
*/
public function setServer($server)
{
$this->server = $server;
}
/**
* @return string
*/
public function getServer()
{
return $this->server;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRunV2NFSVolumeSource::class, 'Google_Service_CloudRun_GoogleCloudRunV2NFSVolumeSource');
@@ -0,0 +1,109 @@
<?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 GoogleCloudRunV2NetworkInterface extends \Google\Collection
{
protected $collection_key = 'tags';
/**
* Optional. The VPC network that the Cloud Run resource will be able to send
* traffic to. At least one of network or subnetwork must be specified. If
* both network and subnetwork are specified, the given VPC subnetwork must
* belong to the given VPC network. If network is not specified, it will be
* looked up from the subnetwork.
*
* @var string
*/
public $network;
/**
* Optional. The VPC subnetwork that the Cloud Run resource will get IPs from.
* At least one of network or subnetwork must be specified. If both network
* and subnetwork are specified, the given VPC subnetwork must belong to the
* given VPC network. If subnetwork is not specified, the subnetwork with the
* same name with the network will be used.
*
* @var string
*/
public $subnetwork;
/**
* Optional. Network tags applied to this Cloud Run resource.
*
* @var string[]
*/
public $tags;
/**
* Optional. The VPC network that the Cloud Run resource will be able to send
* traffic to. At least one of network or subnetwork must be specified. If
* both network and subnetwork are specified, the given VPC subnetwork must
* belong to the given VPC network. If network is not specified, it will be
* looked up from the subnetwork.
*
* @param string $network
*/
public function setNetwork($network)
{
$this->network = $network;
}
/**
* @return string
*/
public function getNetwork()
{
return $this->network;
}
/**
* Optional. The VPC subnetwork that the Cloud Run resource will get IPs from.
* At least one of network or subnetwork must be specified. If both network
* and subnetwork are specified, the given VPC subnetwork must belong to the
* given VPC network. If subnetwork is not specified, the subnetwork with the
* same name with the network will be used.
*
* @param string $subnetwork
*/
public function setSubnetwork($subnetwork)
{
$this->subnetwork = $subnetwork;
}
/**
* @return string
*/
public function getSubnetwork()
{
return $this->subnetwork;
}
/**
* Optional. Network tags applied to this Cloud Run resource.
*
* @param string[] $tags
*/
public function setTags($tags)
{
$this->tags = $tags;
}
/**
* @return string[]
*/
public function getTags()
{
return $this->tags;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRunV2NetworkInterface::class, 'Google_Service_CloudRun_GoogleCloudRunV2NetworkInterface');
@@ -0,0 +1,48 @@
<?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 GoogleCloudRunV2NodeSelector extends \Google\Model
{
/**
* Required. GPU accelerator type to attach to an instance.
*
* @var string
*/
public $accelerator;
/**
* Required. GPU accelerator type to attach to an instance.
*
* @param string $accelerator
*/
public function setAccelerator($accelerator)
{
$this->accelerator = $accelerator;
}
/**
* @return string
*/
public function getAccelerator()
{
return $this->accelerator;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRunV2NodeSelector::class, 'Google_Service_CloudRun_GoogleCloudRunV2NodeSelector');
@@ -0,0 +1,95 @@
<?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 GoogleCloudRunV2Overrides extends \Google\Collection
{
protected $collection_key = 'containerOverrides';
protected $containerOverridesType = GoogleCloudRunV2ContainerOverride::class;
protected $containerOverridesDataType = 'array';
/**
* Optional. The desired number of tasks the execution should run. Will
* replace existing task_count value.
*
* @var int
*/
public $taskCount;
/**
* Duration in seconds the task may be active before the system will actively
* try to mark it failed and kill associated containers. Will replace existing
* timeout_seconds value.
*
* @var string
*/
public $timeout;
/**
* Per container override specification.
*
* @param GoogleCloudRunV2ContainerOverride[] $containerOverrides
*/
public function setContainerOverrides($containerOverrides)
{
$this->containerOverrides = $containerOverrides;
}
/**
* @return GoogleCloudRunV2ContainerOverride[]
*/
public function getContainerOverrides()
{
return $this->containerOverrides;
}
/**
* Optional. The desired number of tasks the execution should run. Will
* replace existing task_count value.
*
* @param int $taskCount
*/
public function setTaskCount($taskCount)
{
$this->taskCount = $taskCount;
}
/**
* @return int
*/
public function getTaskCount()
{
return $this->taskCount;
}
/**
* Duration in seconds the task may be active before the system will actively
* try to mark it failed and kill associated containers. Will replace existing
* timeout_seconds value.
*
* @param string $timeout
*/
public function setTimeout($timeout)
{
$this->timeout = $timeout;
}
/**
* @return string
*/
public function getTimeout()
{
return $this->timeout;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRunV2Overrides::class, 'Google_Service_CloudRun_GoogleCloudRunV2Overrides');
@@ -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\CloudRun;
class GoogleCloudRunV2Probe extends \Google\Model
{
/**
* Optional. Minimum consecutive failures for the probe to be considered
* failed after having succeeded. Defaults to 3. Minimum value is 1.
*
* @var int
*/
public $failureThreshold;
protected $grpcType = GoogleCloudRunV2GRPCAction::class;
protected $grpcDataType = '';
protected $httpGetType = GoogleCloudRunV2HTTPGetAction::class;
protected $httpGetDataType = '';
/**
* Optional. Number of seconds after the container has started before the
* probe is initiated. Defaults to 0 seconds. Minimum value is 0. Maximum
* value for liveness probe is 3600. Maximum value for startup probe is 240.
*
* @var int
*/
public $initialDelaySeconds;
/**
* Optional. How often (in seconds) to perform the probe. Default to 10
* seconds. Minimum value is 1. Maximum value for liveness probe is 3600.
* Maximum value for startup probe is 240. Must be greater or equal than
* timeout_seconds.
*
* @var int
*/
public $periodSeconds;
protected $tcpSocketType = GoogleCloudRunV2TCPSocketAction::class;
protected $tcpSocketDataType = '';
/**
* Optional. Number of seconds after which the probe times out. Defaults to 1
* second. Minimum value is 1. Maximum value is 3600. Must be smaller than
* period_seconds.
*
* @var int
*/
public $timeoutSeconds;
/**
* Optional. Minimum consecutive failures for the probe to be considered
* failed after having succeeded. Defaults to 3. Minimum value is 1.
*
* @param int $failureThreshold
*/
public function setFailureThreshold($failureThreshold)
{
$this->failureThreshold = $failureThreshold;
}
/**
* @return int
*/
public function getFailureThreshold()
{
return $this->failureThreshold;
}
/**
* Optional. GRPC specifies an action involving a gRPC port. Exactly one of
* httpGet, tcpSocket, or grpc must be specified.
*
* @param GoogleCloudRunV2GRPCAction $grpc
*/
public function setGrpc(GoogleCloudRunV2GRPCAction $grpc)
{
$this->grpc = $grpc;
}
/**
* @return GoogleCloudRunV2GRPCAction
*/
public function getGrpc()
{
return $this->grpc;
}
/**
* Optional. HTTPGet specifies the http request to perform. Exactly one of
* httpGet, tcpSocket, or grpc must be specified.
*
* @param GoogleCloudRunV2HTTPGetAction $httpGet
*/
public function setHttpGet(GoogleCloudRunV2HTTPGetAction $httpGet)
{
$this->httpGet = $httpGet;
}
/**
* @return GoogleCloudRunV2HTTPGetAction
*/
public function getHttpGet()
{
return $this->httpGet;
}
/**
* Optional. Number of seconds after the container has started before the
* probe is initiated. Defaults to 0 seconds. Minimum value is 0. Maximum
* value for liveness probe is 3600. Maximum value for startup probe is 240.
*
* @param int $initialDelaySeconds
*/
public function setInitialDelaySeconds($initialDelaySeconds)
{
$this->initialDelaySeconds = $initialDelaySeconds;
}
/**
* @return int
*/
public function getInitialDelaySeconds()
{
return $this->initialDelaySeconds;
}
/**
* Optional. How often (in seconds) to perform the probe. Default to 10
* seconds. Minimum value is 1. Maximum value for liveness probe is 3600.
* Maximum value for startup probe is 240. Must be greater or equal than
* timeout_seconds.
*
* @param int $periodSeconds
*/
public function setPeriodSeconds($periodSeconds)
{
$this->periodSeconds = $periodSeconds;
}
/**
* @return int
*/
public function getPeriodSeconds()
{
return $this->periodSeconds;
}
/**
* Optional. TCPSocket specifies an action involving a TCP port. Exactly one
* of httpGet, tcpSocket, or grpc must be specified.
*
* @param GoogleCloudRunV2TCPSocketAction $tcpSocket
*/
public function setTcpSocket(GoogleCloudRunV2TCPSocketAction $tcpSocket)
{
$this->tcpSocket = $tcpSocket;
}
/**
* @return GoogleCloudRunV2TCPSocketAction
*/
public function getTcpSocket()
{
return $this->tcpSocket;
}
/**
* Optional. Number of seconds after which the probe times out. Defaults to 1
* second. Minimum value is 1. Maximum value is 3600. Must be smaller than
* period_seconds.
*
* @param int $timeoutSeconds
*/
public function setTimeoutSeconds($timeoutSeconds)
{
$this->timeoutSeconds = $timeoutSeconds;
}
/**
* @return int
*/
public function getTimeoutSeconds()
{
return $this->timeoutSeconds;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRunV2Probe::class, 'Google_Service_CloudRun_GoogleCloudRunV2Probe');
@@ -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\CloudRun;
class GoogleCloudRunV2ResourceRequirements extends \Google\Model
{
/**
* Determines whether CPU is only allocated during requests (true by default).
* However, if ResourceRequirements is set, the caller must explicitly set
* this field to true to preserve the default behavior.
*
* @var bool
*/
public $cpuIdle;
/**
* Only `memory`, `cpu` and `nvidia.com/gpu` keys in the map are supported.
* Notes: * The only supported values for CPU are '1', '2', '4', and '8'.
* Setting 4 CPU requires at least 2Gi of memory. For more information, go to
* https://cloud.google.com/run/docs/configuring/cpu. * For supported 'memory'
* values and syntax, go to
* https://cloud.google.com/run/docs/configuring/memory-limits * The only
* supported 'nvidia.com/gpu' value is '1'.
*
* @var string[]
*/
public $limits;
/**
* Determines whether CPU should be boosted on startup of a new container
* instance above the requested CPU threshold, this can help reduce cold-start
* latency.
*
* @var bool
*/
public $startupCpuBoost;
/**
* Determines whether CPU is only allocated during requests (true by default).
* However, if ResourceRequirements is set, the caller must explicitly set
* this field to true to preserve the default behavior.
*
* @param bool $cpuIdle
*/
public function setCpuIdle($cpuIdle)
{
$this->cpuIdle = $cpuIdle;
}
/**
* @return bool
*/
public function getCpuIdle()
{
return $this->cpuIdle;
}
/**
* Only `memory`, `cpu` and `nvidia.com/gpu` keys in the map are supported.
* Notes: * The only supported values for CPU are '1', '2', '4', and '8'.
* Setting 4 CPU requires at least 2Gi of memory. For more information, go to
* https://cloud.google.com/run/docs/configuring/cpu. * For supported 'memory'
* values and syntax, go to
* https://cloud.google.com/run/docs/configuring/memory-limits * The only
* supported 'nvidia.com/gpu' value is '1'.
*
* @param string[] $limits
*/
public function setLimits($limits)
{
$this->limits = $limits;
}
/**
* @return string[]
*/
public function getLimits()
{
return $this->limits;
}
/**
* Determines whether CPU should be boosted on startup of a new container
* instance above the requested CPU threshold, this can help reduce cold-start
* latency.
*
* @param bool $startupCpuBoost
*/
public function setStartupCpuBoost($startupCpuBoost)
{
$this->startupCpuBoost = $startupCpuBoost;
}
/**
* @return bool
*/
public function getStartupCpuBoost()
{
return $this->startupCpuBoost;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRunV2ResourceRequirements::class, 'Google_Service_CloudRun_GoogleCloudRunV2ResourceRequirements');
@@ -0,0 +1,936 @@
<?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 GoogleCloudRunV2Revision extends \Google\Collection
{
/**
* Unspecified
*/
public const ENCRYPTION_KEY_REVOCATION_ACTION_ENCRYPTION_KEY_REVOCATION_ACTION_UNSPECIFIED = 'ENCRYPTION_KEY_REVOCATION_ACTION_UNSPECIFIED';
/**
* Prevents the creation of new instances.
*/
public const ENCRYPTION_KEY_REVOCATION_ACTION_PREVENT_NEW = 'PREVENT_NEW';
/**
* Shuts down existing instances, and prevents creation of new ones.
*/
public const ENCRYPTION_KEY_REVOCATION_ACTION_SHUTDOWN = 'SHUTDOWN';
/**
* Unspecified
*/
public const EXECUTION_ENVIRONMENT_EXECUTION_ENVIRONMENT_UNSPECIFIED = 'EXECUTION_ENVIRONMENT_UNSPECIFIED';
/**
* Uses the First Generation environment.
*/
public const EXECUTION_ENVIRONMENT_EXECUTION_ENVIRONMENT_GEN1 = 'EXECUTION_ENVIRONMENT_GEN1';
/**
* Uses Second Generation environment.
*/
public const EXECUTION_ENVIRONMENT_EXECUTION_ENVIRONMENT_GEN2 = 'EXECUTION_ENVIRONMENT_GEN2';
/**
* Do not use this default value.
*/
public const LAUNCH_STAGE_LAUNCH_STAGE_UNSPECIFIED = 'LAUNCH_STAGE_UNSPECIFIED';
/**
* The feature is not yet implemented. Users can not use it.
*/
public const LAUNCH_STAGE_UNIMPLEMENTED = 'UNIMPLEMENTED';
/**
* Prelaunch features are hidden from users and are only visible internally.
*/
public const LAUNCH_STAGE_PRELAUNCH = 'PRELAUNCH';
/**
* Early Access features are limited to a closed group of testers. To use
* these features, you must sign up in advance and sign a Trusted Tester
* agreement (which includes confidentiality provisions). These features may
* be unstable, changed in backward-incompatible ways, and are not guaranteed
* to be released.
*/
public const LAUNCH_STAGE_EARLY_ACCESS = 'EARLY_ACCESS';
/**
* Alpha is a limited availability test for releases before they are cleared
* for widespread use. By Alpha, all significant design issues are resolved
* and we are in the process of verifying functionality. Alpha customers need
* to apply for access, agree to applicable terms, and have their projects
* allowlisted. Alpha releases don't have to be feature complete, no SLAs are
* provided, and there are no technical support obligations, but they will be
* far enough along that customers can actually use them in test environments
* or for limited-use tests -- just like they would in normal production
* cases.
*/
public const LAUNCH_STAGE_ALPHA = 'ALPHA';
/**
* Beta is the point at which we are ready to open a release for any customer
* to use. There are no SLA or technical support obligations in a Beta
* release. Products will be complete from a feature perspective, but may have
* some open outstanding issues. Beta releases are suitable for limited
* production use cases.
*/
public const LAUNCH_STAGE_BETA = 'BETA';
/**
* GA features are open to all developers and are considered stable and fully
* qualified for production use.
*/
public const LAUNCH_STAGE_GA = 'GA';
/**
* Deprecated features are scheduled to be shut down and removed. For more
* information, see the "Deprecation Policy" section of our [Terms of
* Service](https://cloud.google.com/terms/) and the [Google Cloud Platform
* Subject to the Deprecation
* Policy](https://cloud.google.com/terms/deprecation) documentation.
*/
public const LAUNCH_STAGE_DEPRECATED = 'DEPRECATED';
protected $collection_key = 'volumes';
/**
* Output only. Unstructured key value map that may be set by external tools
* to store and arbitrary metadata. They are not queryable and should be
* preserved when modifying objects.
*
* @var string[]
*/
public $annotations;
/**
* Output only. Arbitrary identifier for the API client.
*
* @var string
*/
public $client;
/**
* Output only. Arbitrary version identifier for the API client.
*
* @var string
*/
public $clientVersion;
protected $conditionsType = GoogleCloudRunV2Condition::class;
protected $conditionsDataType = 'array';
protected $containersType = GoogleCloudRunV2Container::class;
protected $containersDataType = 'array';
/**
* Output only. The creation time.
*
* @var string
*/
public $createTime;
/**
* Output only. Email address of the authenticated creator.
*
* @var string
*/
public $creator;
/**
* Output only. For a deleted resource, the deletion time. It is only
* populated as a response to a Delete request.
*
* @var string
*/
public $deleteTime;
/**
* A reference to a customer managed encryption key (CMEK) to use to encrypt
* this container image. For more information, go to
* https://cloud.google.com/run/docs/securing/using-cmek
*
* @var string
*/
public $encryptionKey;
/**
* The action to take if the encryption key is revoked.
*
* @var string
*/
public $encryptionKeyRevocationAction;
/**
* If encryption_key_revocation_action is SHUTDOWN, the duration before
* shutting down all instances. The minimum increment is 1 hour.
*
* @var string
*/
public $encryptionKeyShutdownDuration;
/**
* Output only. A system-generated fingerprint for this version of the
* resource. May be used to detect modification conflict during updates.
*
* @var string
*/
public $etag;
/**
* The execution environment being used to host this Revision.
*
* @var string
*/
public $executionEnvironment;
/**
* Output only. For a deleted resource, the time after which it will be
* permamently deleted. It is only populated as a response to a Delete
* request.
*
* @var string
*/
public $expireTime;
/**
* Output only. A number that monotonically increases every time the user
* modifies the desired state.
*
* @var string
*/
public $generation;
/**
* Optional. Output only. True if GPU zonal redundancy is disabled on this
* revision.
*
* @var bool
*/
public $gpuZonalRedundancyDisabled;
/**
* Output only. Unstructured key value map that can be used to organize and
* categorize objects. User-provided labels are shared with Google's billing
* system, so they can be used to filter, or break down billing charges by
* team, component, environment, state, etc. For more information, visit
* https://cloud.google.com/resource-manager/docs/creating-managing-labels or
* https://cloud.google.com/run/docs/configuring/labels.
*
* @var string[]
*/
public $labels;
/**
* The least stable launch stage needed to create this resource, as defined by
* [Google Cloud Platform Launch
* Stages](https://cloud.google.com/terms/launch-stages). Cloud Run supports
* `ALPHA`, `BETA`, and `GA`. Note that this value might not be what was used
* as input. For example, if ALPHA was provided as input in the parent
* resource, but only BETA and GA-level features are used, this field will be
* BETA.
*
* @var string
*/
public $launchStage;
/**
* Output only. The Google Console URI to obtain logs for the Revision.
*
* @var string
*/
public $logUri;
/**
* Sets the maximum number of requests that each serving instance can receive.
*
* @var int
*/
public $maxInstanceRequestConcurrency;
/**
* Output only. The unique name of this Revision.
*
* @var string
*/
public $name;
protected $nodeSelectorType = GoogleCloudRunV2NodeSelector::class;
protected $nodeSelectorDataType = '';
/**
* Output only. The generation of this Revision currently serving traffic. See
* comments in `reconciling` for additional information on reconciliation
* process in Cloud Run.
*
* @var string
*/
public $observedGeneration;
/**
* Output only. Indicates whether the resource's reconciliation is still in
* progress. See comments in `Service.reconciling` for additional information
* on reconciliation process in Cloud Run.
*
* @var bool
*/
public $reconciling;
/**
* Output only. Reserved for future use.
*
* @var bool
*/
public $satisfiesPzs;
protected $scalingType = GoogleCloudRunV2RevisionScaling::class;
protected $scalingDataType = '';
protected $scalingStatusType = GoogleCloudRunV2RevisionScalingStatus::class;
protected $scalingStatusDataType = '';
/**
* Output only. The name of the parent service.
*
* @var string
*/
public $service;
/**
* Email address of the IAM service account associated with the revision of
* the service. The service account represents the identity of the running
* revision, and determines what permissions the revision has.
*
* @var string
*/
public $serviceAccount;
protected $serviceMeshType = GoogleCloudRunV2ServiceMesh::class;
protected $serviceMeshDataType = '';
/**
* Enable session affinity.
*
* @var bool
*/
public $sessionAffinity;
/**
* Max allowed time for an instance to respond to a request.
*
* @var string
*/
public $timeout;
/**
* Output only. Server assigned unique identifier for the Revision. The value
* is a UUID4 string and guaranteed to remain unchanged until the resource is
* deleted.
*
* @var string
*/
public $uid;
/**
* Output only. The last-modified time.
*
* @var string
*/
public $updateTime;
protected $volumesType = GoogleCloudRunV2Volume::class;
protected $volumesDataType = 'array';
protected $vpcAccessType = GoogleCloudRunV2VpcAccess::class;
protected $vpcAccessDataType = '';
/**
* Output only. Unstructured key value map that may be set by external tools
* to store and arbitrary metadata. They are not queryable and should be
* preserved when modifying objects.
*
* @param string[] $annotations
*/
public function setAnnotations($annotations)
{
$this->annotations = $annotations;
}
/**
* @return string[]
*/
public function getAnnotations()
{
return $this->annotations;
}
/**
* Output only. Arbitrary identifier for the API client.
*
* @param string $client
*/
public function setClient($client)
{
$this->client = $client;
}
/**
* @return string
*/
public function getClient()
{
return $this->client;
}
/**
* Output only. Arbitrary version identifier for the API client.
*
* @param string $clientVersion
*/
public function setClientVersion($clientVersion)
{
$this->clientVersion = $clientVersion;
}
/**
* @return string
*/
public function getClientVersion()
{
return $this->clientVersion;
}
/**
* Output only. The Condition of this Revision, containing its readiness
* status, and detailed error information in case it did not reach a serving
* state.
*
* @param GoogleCloudRunV2Condition[] $conditions
*/
public function setConditions($conditions)
{
$this->conditions = $conditions;
}
/**
* @return GoogleCloudRunV2Condition[]
*/
public function getConditions()
{
return $this->conditions;
}
/**
* Holds the list which define the units of execution for this Revision.
*
* @param GoogleCloudRunV2Container[] $containers
*/
public function setContainers($containers)
{
$this->containers = $containers;
}
/**
* @return GoogleCloudRunV2Container[]
*/
public function getContainers()
{
return $this->containers;
}
/**
* Output only. The creation time.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Output only. Email address of the authenticated creator.
*
* @param string $creator
*/
public function setCreator($creator)
{
$this->creator = $creator;
}
/**
* @return string
*/
public function getCreator()
{
return $this->creator;
}
/**
* Output only. For a deleted resource, the deletion time. It is only
* populated as a response to a Delete request.
*
* @param string $deleteTime
*/
public function setDeleteTime($deleteTime)
{
$this->deleteTime = $deleteTime;
}
/**
* @return string
*/
public function getDeleteTime()
{
return $this->deleteTime;
}
/**
* A reference to a customer managed encryption key (CMEK) to use to encrypt
* this container image. For more information, go to
* https://cloud.google.com/run/docs/securing/using-cmek
*
* @param string $encryptionKey
*/
public function setEncryptionKey($encryptionKey)
{
$this->encryptionKey = $encryptionKey;
}
/**
* @return string
*/
public function getEncryptionKey()
{
return $this->encryptionKey;
}
/**
* The action to take if the encryption key is revoked.
*
* Accepted values: ENCRYPTION_KEY_REVOCATION_ACTION_UNSPECIFIED, PREVENT_NEW,
* SHUTDOWN
*
* @param self::ENCRYPTION_KEY_REVOCATION_ACTION_* $encryptionKeyRevocationAction
*/
public function setEncryptionKeyRevocationAction($encryptionKeyRevocationAction)
{
$this->encryptionKeyRevocationAction = $encryptionKeyRevocationAction;
}
/**
* @return self::ENCRYPTION_KEY_REVOCATION_ACTION_*
*/
public function getEncryptionKeyRevocationAction()
{
return $this->encryptionKeyRevocationAction;
}
/**
* If encryption_key_revocation_action is SHUTDOWN, the duration before
* shutting down all instances. The minimum increment is 1 hour.
*
* @param string $encryptionKeyShutdownDuration
*/
public function setEncryptionKeyShutdownDuration($encryptionKeyShutdownDuration)
{
$this->encryptionKeyShutdownDuration = $encryptionKeyShutdownDuration;
}
/**
* @return string
*/
public function getEncryptionKeyShutdownDuration()
{
return $this->encryptionKeyShutdownDuration;
}
/**
* Output only. A system-generated fingerprint for this version of the
* resource. May be used to detect modification conflict during updates.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* The execution environment being used to host this Revision.
*
* Accepted values: EXECUTION_ENVIRONMENT_UNSPECIFIED,
* EXECUTION_ENVIRONMENT_GEN1, EXECUTION_ENVIRONMENT_GEN2
*
* @param self::EXECUTION_ENVIRONMENT_* $executionEnvironment
*/
public function setExecutionEnvironment($executionEnvironment)
{
$this->executionEnvironment = $executionEnvironment;
}
/**
* @return self::EXECUTION_ENVIRONMENT_*
*/
public function getExecutionEnvironment()
{
return $this->executionEnvironment;
}
/**
* Output only. For a deleted resource, the time after which it will be
* permamently deleted. It is only populated as a response to a Delete
* request.
*
* @param string $expireTime
*/
public function setExpireTime($expireTime)
{
$this->expireTime = $expireTime;
}
/**
* @return string
*/
public function getExpireTime()
{
return $this->expireTime;
}
/**
* Output only. A number that monotonically increases every time the user
* modifies the desired state.
*
* @param string $generation
*/
public function setGeneration($generation)
{
$this->generation = $generation;
}
/**
* @return string
*/
public function getGeneration()
{
return $this->generation;
}
/**
* Optional. Output only. True if GPU zonal redundancy is disabled on this
* revision.
*
* @param bool $gpuZonalRedundancyDisabled
*/
public function setGpuZonalRedundancyDisabled($gpuZonalRedundancyDisabled)
{
$this->gpuZonalRedundancyDisabled = $gpuZonalRedundancyDisabled;
}
/**
* @return bool
*/
public function getGpuZonalRedundancyDisabled()
{
return $this->gpuZonalRedundancyDisabled;
}
/**
* Output only. Unstructured key value map that can be used to organize and
* categorize objects. User-provided labels are shared with Google's billing
* system, so they can be used to filter, or break down billing charges by
* team, component, environment, state, etc. For more information, visit
* https://cloud.google.com/resource-manager/docs/creating-managing-labels or
* https://cloud.google.com/run/docs/configuring/labels.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* The least stable launch stage needed to create this resource, as defined by
* [Google Cloud Platform Launch
* Stages](https://cloud.google.com/terms/launch-stages). Cloud Run supports
* `ALPHA`, `BETA`, and `GA`. Note that this value might not be what was used
* as input. For example, if ALPHA was provided as input in the parent
* resource, but only BETA and GA-level features are used, this field will be
* BETA.
*
* Accepted values: LAUNCH_STAGE_UNSPECIFIED, UNIMPLEMENTED, PRELAUNCH,
* EARLY_ACCESS, ALPHA, BETA, GA, DEPRECATED
*
* @param self::LAUNCH_STAGE_* $launchStage
*/
public function setLaunchStage($launchStage)
{
$this->launchStage = $launchStage;
}
/**
* @return self::LAUNCH_STAGE_*
*/
public function getLaunchStage()
{
return $this->launchStage;
}
/**
* Output only. The Google Console URI to obtain logs for the Revision.
*
* @param string $logUri
*/
public function setLogUri($logUri)
{
$this->logUri = $logUri;
}
/**
* @return string
*/
public function getLogUri()
{
return $this->logUri;
}
/**
* Sets the maximum number of requests that each serving instance can receive.
*
* @param int $maxInstanceRequestConcurrency
*/
public function setMaxInstanceRequestConcurrency($maxInstanceRequestConcurrency)
{
$this->maxInstanceRequestConcurrency = $maxInstanceRequestConcurrency;
}
/**
* @return int
*/
public function getMaxInstanceRequestConcurrency()
{
return $this->maxInstanceRequestConcurrency;
}
/**
* Output only. The unique name of this Revision.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The node selector for the revision.
*
* @param GoogleCloudRunV2NodeSelector $nodeSelector
*/
public function setNodeSelector(GoogleCloudRunV2NodeSelector $nodeSelector)
{
$this->nodeSelector = $nodeSelector;
}
/**
* @return GoogleCloudRunV2NodeSelector
*/
public function getNodeSelector()
{
return $this->nodeSelector;
}
/**
* Output only. The generation of this Revision currently serving traffic. See
* comments in `reconciling` for additional information on reconciliation
* process in Cloud Run.
*
* @param string $observedGeneration
*/
public function setObservedGeneration($observedGeneration)
{
$this->observedGeneration = $observedGeneration;
}
/**
* @return string
*/
public function getObservedGeneration()
{
return $this->observedGeneration;
}
/**
* Output only. Indicates whether the resource's reconciliation is still in
* progress. See comments in `Service.reconciling` for additional information
* on reconciliation process in Cloud Run.
*
* @param bool $reconciling
*/
public function setReconciling($reconciling)
{
$this->reconciling = $reconciling;
}
/**
* @return bool
*/
public function getReconciling()
{
return $this->reconciling;
}
/**
* Output only. Reserved for future use.
*
* @param bool $satisfiesPzs
*/
public function setSatisfiesPzs($satisfiesPzs)
{
$this->satisfiesPzs = $satisfiesPzs;
}
/**
* @return bool
*/
public function getSatisfiesPzs()
{
return $this->satisfiesPzs;
}
/**
* Scaling settings for this revision.
*
* @param GoogleCloudRunV2RevisionScaling $scaling
*/
public function setScaling(GoogleCloudRunV2RevisionScaling $scaling)
{
$this->scaling = $scaling;
}
/**
* @return GoogleCloudRunV2RevisionScaling
*/
public function getScaling()
{
return $this->scaling;
}
/**
* Output only. The current effective scaling settings for the revision.
*
* @param GoogleCloudRunV2RevisionScalingStatus $scalingStatus
*/
public function setScalingStatus(GoogleCloudRunV2RevisionScalingStatus $scalingStatus)
{
$this->scalingStatus = $scalingStatus;
}
/**
* @return GoogleCloudRunV2RevisionScalingStatus
*/
public function getScalingStatus()
{
return $this->scalingStatus;
}
/**
* Output only. The name of the parent service.
*
* @param string $service
*/
public function setService($service)
{
$this->service = $service;
}
/**
* @return string
*/
public function getService()
{
return $this->service;
}
/**
* Email address of the IAM service account associated with the revision of
* the service. The service account represents the identity of the running
* revision, and determines what permissions the revision has.
*
* @param string $serviceAccount
*/
public function setServiceAccount($serviceAccount)
{
$this->serviceAccount = $serviceAccount;
}
/**
* @return string
*/
public function getServiceAccount()
{
return $this->serviceAccount;
}
/**
* Enables service mesh connectivity.
*
* @param GoogleCloudRunV2ServiceMesh $serviceMesh
*/
public function setServiceMesh(GoogleCloudRunV2ServiceMesh $serviceMesh)
{
$this->serviceMesh = $serviceMesh;
}
/**
* @return GoogleCloudRunV2ServiceMesh
*/
public function getServiceMesh()
{
return $this->serviceMesh;
}
/**
* Enable session affinity.
*
* @param bool $sessionAffinity
*/
public function setSessionAffinity($sessionAffinity)
{
$this->sessionAffinity = $sessionAffinity;
}
/**
* @return bool
*/
public function getSessionAffinity()
{
return $this->sessionAffinity;
}
/**
* Max allowed time for an instance to respond to a request.
*
* @param string $timeout
*/
public function setTimeout($timeout)
{
$this->timeout = $timeout;
}
/**
* @return string
*/
public function getTimeout()
{
return $this->timeout;
}
/**
* Output only. Server assigned unique identifier for the Revision. The value
* is a UUID4 string and guaranteed to remain unchanged until the resource is
* deleted.
*
* @param string $uid
*/
public function setUid($uid)
{
$this->uid = $uid;
}
/**
* @return string
*/
public function getUid()
{
return $this->uid;
}
/**
* Output only. The last-modified time.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
/**
* A list of Volumes to make available to containers.
*
* @param GoogleCloudRunV2Volume[] $volumes
*/
public function setVolumes($volumes)
{
$this->volumes = $volumes;
}
/**
* @return GoogleCloudRunV2Volume[]
*/
public function getVolumes()
{
return $this->volumes;
}
/**
* VPC Access configuration for this Revision. For more information, visit
* https://cloud.google.com/run/docs/configuring/connecting-vpc.
*
* @param GoogleCloudRunV2VpcAccess $vpcAccess
*/
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(GoogleCloudRunV2Revision::class, 'Google_Service_CloudRun_GoogleCloudRunV2Revision');
@@ -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 GoogleCloudRunV2RevisionScaling extends \Google\Model
{
/**
* Optional. Determines a threshold for concurrency utilization before scaling
* begins. Accepted values are between `0.1` and `0.95` (inclusive) or `0.0`
* to disable concurrency utilization as threshold for scaling. CPU and
* concurrency scaling cannot both be disabled.
*
* @var float
*/
public $concurrencyUtilization;
/**
* Optional. Determines a threshold for CPU utilization before scaling begins.
* Accepted values are between `0.1` and `0.95` (inclusive) or `0.0` to
* disable CPU utilization as threshold for scaling. CPU and concurrency
* scaling cannot both be disabled.
*
* @var float
*/
public $cpuUtilization;
/**
* Optional. Maximum number of serving instances that this resource should
* have. When unspecified, the field is set to the server default value of
* 100. For more information see
* https://cloud.google.com/run/docs/configuring/max-instances
*
* @var int
*/
public $maxInstanceCount;
/**
* Optional. Minimum number of serving instances that this resource should
* have.
*
* @var int
*/
public $minInstanceCount;
/**
* Optional. Determines a threshold for concurrency utilization before scaling
* begins. Accepted values are between `0.1` and `0.95` (inclusive) or `0.0`
* to disable concurrency utilization as threshold for scaling. CPU and
* concurrency scaling cannot both be disabled.
*
* @param float $concurrencyUtilization
*/
public function setConcurrencyUtilization($concurrencyUtilization)
{
$this->concurrencyUtilization = $concurrencyUtilization;
}
/**
* @return float
*/
public function getConcurrencyUtilization()
{
return $this->concurrencyUtilization;
}
/**
* Optional. Determines a threshold for CPU utilization before scaling begins.
* Accepted values are between `0.1` and `0.95` (inclusive) or `0.0` to
* disable CPU utilization as threshold for scaling. CPU and concurrency
* scaling cannot both be disabled.
*
* @param float $cpuUtilization
*/
public function setCpuUtilization($cpuUtilization)
{
$this->cpuUtilization = $cpuUtilization;
}
/**
* @return float
*/
public function getCpuUtilization()
{
return $this->cpuUtilization;
}
/**
* Optional. Maximum number of serving instances that this resource should
* have. When unspecified, the field is set to the server default value of
* 100. For more information see
* https://cloud.google.com/run/docs/configuring/max-instances
*
* @param int $maxInstanceCount
*/
public function setMaxInstanceCount($maxInstanceCount)
{
$this->maxInstanceCount = $maxInstanceCount;
}
/**
* @return int
*/
public function getMaxInstanceCount()
{
return $this->maxInstanceCount;
}
/**
* Optional. Minimum number of serving instances that this resource should
* have.
*
* @param int $minInstanceCount
*/
public function setMinInstanceCount($minInstanceCount)
{
$this->minInstanceCount = $minInstanceCount;
}
/**
* @return int
*/
public function getMinInstanceCount()
{
return $this->minInstanceCount;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRunV2RevisionScaling::class, 'Google_Service_CloudRun_GoogleCloudRunV2RevisionScaling');
@@ -0,0 +1,48 @@
<?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 GoogleCloudRunV2RevisionScalingStatus extends \Google\Model
{
/**
* The current number of min instances provisioned for this revision.
*
* @var int
*/
public $desiredMinInstanceCount;
/**
* The current number of min instances provisioned for this revision.
*
* @param int $desiredMinInstanceCount
*/
public function setDesiredMinInstanceCount($desiredMinInstanceCount)
{
$this->desiredMinInstanceCount = $desiredMinInstanceCount;
}
/**
* @return int
*/
public function getDesiredMinInstanceCount()
{
return $this->desiredMinInstanceCount;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRunV2RevisionScalingStatus::class, 'Google_Service_CloudRun_GoogleCloudRunV2RevisionScalingStatus');
@@ -0,0 +1,547 @@
<?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 GoogleCloudRunV2RevisionTemplate extends \Google\Collection
{
/**
* Unspecified
*/
public const ENCRYPTION_KEY_REVOCATION_ACTION_ENCRYPTION_KEY_REVOCATION_ACTION_UNSPECIFIED = 'ENCRYPTION_KEY_REVOCATION_ACTION_UNSPECIFIED';
/**
* Prevents the creation of new instances.
*/
public const ENCRYPTION_KEY_REVOCATION_ACTION_PREVENT_NEW = 'PREVENT_NEW';
/**
* Shuts down existing instances, and prevents creation of new ones.
*/
public const ENCRYPTION_KEY_REVOCATION_ACTION_SHUTDOWN = 'SHUTDOWN';
/**
* Unspecified
*/
public const EXECUTION_ENVIRONMENT_EXECUTION_ENVIRONMENT_UNSPECIFIED = 'EXECUTION_ENVIRONMENT_UNSPECIFIED';
/**
* Uses the First Generation environment.
*/
public const EXECUTION_ENVIRONMENT_EXECUTION_ENVIRONMENT_GEN1 = 'EXECUTION_ENVIRONMENT_GEN1';
/**
* Uses Second Generation environment.
*/
public const EXECUTION_ENVIRONMENT_EXECUTION_ENVIRONMENT_GEN2 = 'EXECUTION_ENVIRONMENT_GEN2';
protected $collection_key = 'volumes';
/**
* Optional. Unstructured key value map that may be set by external tools to
* store and arbitrary metadata. They are not queryable and should be
* preserved when modifying objects. Cloud Run API v2 does not support
* annotations with `run.googleapis.com`, `cloud.googleapis.com`,
* `serving.knative.dev`, or `autoscaling.knative.dev` namespaces, and they
* will be rejected. All system annotations in v1 now have a corresponding
* field in v2 RevisionTemplate. This field follows Kubernetes annotations'
* namespacing, limits, and rules.
*
* @var string[]
*/
public $annotations;
/**
* Optional. Arbitrary identifier for the API client.
*
* @var string
*/
public $client;
/**
* Optional. Arbitrary version identifier for the API client.
*
* @var string
*/
public $clientVersion;
protected $containersType = GoogleCloudRunV2Container::class;
protected $containersDataType = 'array';
/**
* A reference to a customer managed encryption key (CMEK) to use to encrypt
* this container image. For more information, go to
* https://cloud.google.com/run/docs/securing/using-cmek
*
* @var string
*/
public $encryptionKey;
/**
* Optional. The action to take if the encryption key is revoked.
*
* @var string
*/
public $encryptionKeyRevocationAction;
/**
* Optional. If encryption_key_revocation_action is SHUTDOWN, the duration
* before shutting down all instances. The minimum increment is 1 hour.
*
* @var string
*/
public $encryptionKeyShutdownDuration;
/**
* Optional. The sandbox environment to host this Revision.
*
* @var string
*/
public $executionEnvironment;
/**
* Optional. True if GPU zonal redundancy is disabled on this revision.
*
* @var bool
*/
public $gpuZonalRedundancyDisabled;
/**
* Optional. Disables health checking containers during deployment.
*
* @var bool
*/
public $healthCheckDisabled;
/**
* Optional. Unstructured key value map that can be used to organize and
* categorize objects. User-provided labels are shared with Google's billing
* system, so they can be used to filter, or break down billing charges by
* team, component, environment, state, etc. For more information, visit
* https://cloud.google.com/resource-manager/docs/creating-managing-labels or
* https://cloud.google.com/run/docs/configuring/labels. Cloud Run API v2 does
* not support labels with `run.googleapis.com`, `cloud.googleapis.com`,
* `serving.knative.dev`, or `autoscaling.knative.dev` namespaces, and they
* will be rejected. All system labels in v1 now have a corresponding field in
* v2 RevisionTemplate.
*
* @var string[]
*/
public $labels;
/**
* Optional. Sets the maximum number of requests that each serving instance
* can receive. If not specified or 0, concurrency defaults to 80 when
* requested `CPU >= 1` and defaults to 1 when requested `CPU < 1`.
*
* @var int
*/
public $maxInstanceRequestConcurrency;
protected $nodeSelectorType = GoogleCloudRunV2NodeSelector::class;
protected $nodeSelectorDataType = '';
/**
* Optional. The unique name for the revision. If this field is omitted, it
* will be automatically generated based on the Service name.
*
* @var string
*/
public $revision;
protected $scalingType = GoogleCloudRunV2RevisionScaling::class;
protected $scalingDataType = '';
/**
* Optional. Email address of the IAM service account associated with the
* revision of the service. The service account represents the identity of the
* running revision, and determines what permissions the revision has. If not
* provided, the revision will use the project's default service account.
*
* @var string
*/
public $serviceAccount;
protected $serviceMeshType = GoogleCloudRunV2ServiceMesh::class;
protected $serviceMeshDataType = '';
/**
* Optional. Enable session affinity.
*
* @var bool
*/
public $sessionAffinity;
/**
* Optional. Max allowed time for an instance to respond to a request.
*
* @var string
*/
public $timeout;
protected $volumesType = GoogleCloudRunV2Volume::class;
protected $volumesDataType = 'array';
protected $vpcAccessType = GoogleCloudRunV2VpcAccess::class;
protected $vpcAccessDataType = '';
/**
* Optional. Unstructured key value map that may be set by external tools to
* store and arbitrary metadata. They are not queryable and should be
* preserved when modifying objects. Cloud Run API v2 does not support
* annotations with `run.googleapis.com`, `cloud.googleapis.com`,
* `serving.knative.dev`, or `autoscaling.knative.dev` namespaces, and they
* will be rejected. All system annotations in v1 now have a corresponding
* field in v2 RevisionTemplate. This field follows Kubernetes annotations'
* namespacing, limits, and rules.
*
* @param string[] $annotations
*/
public function setAnnotations($annotations)
{
$this->annotations = $annotations;
}
/**
* @return string[]
*/
public function getAnnotations()
{
return $this->annotations;
}
/**
* Optional. Arbitrary identifier for the API client.
*
* @param string $client
*/
public function setClient($client)
{
$this->client = $client;
}
/**
* @return string
*/
public function getClient()
{
return $this->client;
}
/**
* Optional. Arbitrary version identifier for the API client.
*
* @param string $clientVersion
*/
public function setClientVersion($clientVersion)
{
$this->clientVersion = $clientVersion;
}
/**
* @return string
*/
public function getClientVersion()
{
return $this->clientVersion;
}
/**
* Holds the list which define the units of execution for this Revision.
*
* @param GoogleCloudRunV2Container[] $containers
*/
public function setContainers($containers)
{
$this->containers = $containers;
}
/**
* @return GoogleCloudRunV2Container[]
*/
public function getContainers()
{
return $this->containers;
}
/**
* A reference to a customer managed encryption key (CMEK) to use to encrypt
* this container image. For more information, go to
* https://cloud.google.com/run/docs/securing/using-cmek
*
* @param string $encryptionKey
*/
public function setEncryptionKey($encryptionKey)
{
$this->encryptionKey = $encryptionKey;
}
/**
* @return string
*/
public function getEncryptionKey()
{
return $this->encryptionKey;
}
/**
* Optional. The action to take if the encryption key is revoked.
*
* Accepted values: ENCRYPTION_KEY_REVOCATION_ACTION_UNSPECIFIED, PREVENT_NEW,
* SHUTDOWN
*
* @param self::ENCRYPTION_KEY_REVOCATION_ACTION_* $encryptionKeyRevocationAction
*/
public function setEncryptionKeyRevocationAction($encryptionKeyRevocationAction)
{
$this->encryptionKeyRevocationAction = $encryptionKeyRevocationAction;
}
/**
* @return self::ENCRYPTION_KEY_REVOCATION_ACTION_*
*/
public function getEncryptionKeyRevocationAction()
{
return $this->encryptionKeyRevocationAction;
}
/**
* Optional. If encryption_key_revocation_action is SHUTDOWN, the duration
* before shutting down all instances. The minimum increment is 1 hour.
*
* @param string $encryptionKeyShutdownDuration
*/
public function setEncryptionKeyShutdownDuration($encryptionKeyShutdownDuration)
{
$this->encryptionKeyShutdownDuration = $encryptionKeyShutdownDuration;
}
/**
* @return string
*/
public function getEncryptionKeyShutdownDuration()
{
return $this->encryptionKeyShutdownDuration;
}
/**
* Optional. The sandbox environment to host this Revision.
*
* Accepted values: EXECUTION_ENVIRONMENT_UNSPECIFIED,
* EXECUTION_ENVIRONMENT_GEN1, EXECUTION_ENVIRONMENT_GEN2
*
* @param self::EXECUTION_ENVIRONMENT_* $executionEnvironment
*/
public function setExecutionEnvironment($executionEnvironment)
{
$this->executionEnvironment = $executionEnvironment;
}
/**
* @return self::EXECUTION_ENVIRONMENT_*
*/
public function getExecutionEnvironment()
{
return $this->executionEnvironment;
}
/**
* Optional. True if GPU zonal redundancy is disabled on this revision.
*
* @param bool $gpuZonalRedundancyDisabled
*/
public function setGpuZonalRedundancyDisabled($gpuZonalRedundancyDisabled)
{
$this->gpuZonalRedundancyDisabled = $gpuZonalRedundancyDisabled;
}
/**
* @return bool
*/
public function getGpuZonalRedundancyDisabled()
{
return $this->gpuZonalRedundancyDisabled;
}
/**
* Optional. Disables health checking containers during deployment.
*
* @param bool $healthCheckDisabled
*/
public function setHealthCheckDisabled($healthCheckDisabled)
{
$this->healthCheckDisabled = $healthCheckDisabled;
}
/**
* @return bool
*/
public function getHealthCheckDisabled()
{
return $this->healthCheckDisabled;
}
/**
* Optional. Unstructured key value map that can be used to organize and
* categorize objects. User-provided labels are shared with Google's billing
* system, so they can be used to filter, or break down billing charges by
* team, component, environment, state, etc. For more information, visit
* https://cloud.google.com/resource-manager/docs/creating-managing-labels or
* https://cloud.google.com/run/docs/configuring/labels. Cloud Run API v2 does
* not support labels with `run.googleapis.com`, `cloud.googleapis.com`,
* `serving.knative.dev`, or `autoscaling.knative.dev` namespaces, and they
* will be rejected. All system labels in v1 now have a corresponding field in
* v2 RevisionTemplate.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Optional. Sets the maximum number of requests that each serving instance
* can receive. If not specified or 0, concurrency defaults to 80 when
* requested `CPU >= 1` and defaults to 1 when requested `CPU < 1`.
*
* @param int $maxInstanceRequestConcurrency
*/
public function setMaxInstanceRequestConcurrency($maxInstanceRequestConcurrency)
{
$this->maxInstanceRequestConcurrency = $maxInstanceRequestConcurrency;
}
/**
* @return int
*/
public function getMaxInstanceRequestConcurrency()
{
return $this->maxInstanceRequestConcurrency;
}
/**
* Optional. The node selector for the revision template.
*
* @param GoogleCloudRunV2NodeSelector $nodeSelector
*/
public function setNodeSelector(GoogleCloudRunV2NodeSelector $nodeSelector)
{
$this->nodeSelector = $nodeSelector;
}
/**
* @return GoogleCloudRunV2NodeSelector
*/
public function getNodeSelector()
{
return $this->nodeSelector;
}
/**
* Optional. The unique name for the revision. If this field is omitted, it
* will be automatically generated based on the Service name.
*
* @param string $revision
*/
public function setRevision($revision)
{
$this->revision = $revision;
}
/**
* @return string
*/
public function getRevision()
{
return $this->revision;
}
/**
* Optional. Scaling settings for this Revision.
*
* @param GoogleCloudRunV2RevisionScaling $scaling
*/
public function setScaling(GoogleCloudRunV2RevisionScaling $scaling)
{
$this->scaling = $scaling;
}
/**
* @return GoogleCloudRunV2RevisionScaling
*/
public function getScaling()
{
return $this->scaling;
}
/**
* Optional. Email address of the IAM service account associated with the
* revision of the service. The service account represents the identity of the
* running revision, and determines what permissions the revision has. If not
* provided, the revision will use the project's default service account.
*
* @param string $serviceAccount
*/
public function setServiceAccount($serviceAccount)
{
$this->serviceAccount = $serviceAccount;
}
/**
* @return string
*/
public function getServiceAccount()
{
return $this->serviceAccount;
}
/**
* Optional. Enables service mesh connectivity.
*
* @param GoogleCloudRunV2ServiceMesh $serviceMesh
*/
public function setServiceMesh(GoogleCloudRunV2ServiceMesh $serviceMesh)
{
$this->serviceMesh = $serviceMesh;
}
/**
* @return GoogleCloudRunV2ServiceMesh
*/
public function getServiceMesh()
{
return $this->serviceMesh;
}
/**
* Optional. Enable session affinity.
*
* @param bool $sessionAffinity
*/
public function setSessionAffinity($sessionAffinity)
{
$this->sessionAffinity = $sessionAffinity;
}
/**
* @return bool
*/
public function getSessionAffinity()
{
return $this->sessionAffinity;
}
/**
* Optional. Max allowed time for an instance to respond to a request.
*
* @param string $timeout
*/
public function setTimeout($timeout)
{
$this->timeout = $timeout;
}
/**
* @return string
*/
public function getTimeout()
{
return $this->timeout;
}
/**
* Optional. A list of Volumes to make available to containers.
*
* @param GoogleCloudRunV2Volume[] $volumes
*/
public function setVolumes($volumes)
{
$this->volumes = $volumes;
}
/**
* @return GoogleCloudRunV2Volume[]
*/
public function getVolumes()
{
return $this->volumes;
}
/**
* Optional. VPC Access configuration to use for this Revision. For more
* information, visit
* https://cloud.google.com/run/docs/configuring/connecting-vpc.
*
* @param GoogleCloudRunV2VpcAccess $vpcAccess
*/
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(GoogleCloudRunV2RevisionTemplate::class, 'Google_Service_CloudRun_GoogleCloudRunV2RevisionTemplate');
@@ -0,0 +1,93 @@
<?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 GoogleCloudRunV2RunJobRequest extends \Google\Model
{
/**
* A system-generated fingerprint for this version of the resource. May be
* used to detect modification conflict during updates.
*
* @var string
*/
public $etag;
protected $overridesType = GoogleCloudRunV2Overrides::class;
protected $overridesDataType = '';
/**
* Indicates that the request should be validated without actually deleting
* any resources.
*
* @var bool
*/
public $validateOnly;
/**
* A system-generated fingerprint for this version of the resource. May be
* used to detect modification conflict during updates.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* Overrides specification for a given execution of a job. If provided,
* overrides will be applied to update the execution or task spec.
*
* @param GoogleCloudRunV2Overrides $overrides
*/
public function setOverrides(GoogleCloudRunV2Overrides $overrides)
{
$this->overrides = $overrides;
}
/**
* @return GoogleCloudRunV2Overrides
*/
public function getOverrides()
{
return $this->overrides;
}
/**
* Indicates that the request should be validated without actually deleting
* any resources.
*
* @param bool $validateOnly
*/
public function setValidateOnly($validateOnly)
{
$this->validateOnly = $validateOnly;
}
/**
* @return bool
*/
public function getValidateOnly()
{
return $this->validateOnly;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRunV2RunJobRequest::class, 'Google_Service_CloudRun_GoogleCloudRunV2RunJobRequest');
@@ -0,0 +1,78 @@
<?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 GoogleCloudRunV2SecretKeySelector extends \Google\Model
{
/**
* Required. The name of the secret in Cloud Secret Manager. Format:
* {secret_name} if the secret is in the same project.
* projects/{project}/secrets/{secret_name} if the secret is in a different
* project.
*
* @var string
*/
public $secret;
/**
* The Cloud Secret Manager secret version. Can be 'latest' for the latest
* version, an integer for a specific version, or a version alias.
*
* @var string
*/
public $version;
/**
* Required. The name of the secret in Cloud Secret Manager. Format:
* {secret_name} if the secret is in the same project.
* projects/{project}/secrets/{secret_name} if the secret is in a different
* project.
*
* @param string $secret
*/
public function setSecret($secret)
{
$this->secret = $secret;
}
/**
* @return string
*/
public function getSecret()
{
return $this->secret;
}
/**
* The Cloud Secret Manager secret version. Can be 'latest' for the latest
* version, an integer for a specific version, or a version alias.
*
* @param string $version
*/
public function setVersion($version)
{
$this->version = $version;
}
/**
* @return string
*/
public function getVersion()
{
return $this->version;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRunV2SecretKeySelector::class, 'Google_Service_CloudRun_GoogleCloudRunV2SecretKeySelector');
@@ -0,0 +1,119 @@
<?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 GoogleCloudRunV2SecretVolumeSource extends \Google\Collection
{
protected $collection_key = 'items';
/**
* Integer representation of mode bits to use on created files by default.
* Must be a value between 0000 and 0777 (octal), defaulting to 0444.
* Directories within the path are not affected by this setting. Notes *
* Internally, a umask of 0222 will be applied to any non-zero value. * This
* is an integer representation of the mode bits. So, the octal integer value
* should look exactly as the chmod numeric notation with a leading zero. Some
* examples: for chmod 640 (u=rw,g=r), set to 0640 (octal) or 416 (base-10).
* For chmod 755 (u=rwx,g=rx,o=rx), set to 0755 (octal) or 493 (base-10). *
* This might be in conflict with other options that affect the file mode,
* like fsGroup, and the result can be other mode bits set. This might be in
* conflict with other options that affect the file mode, like fsGroup, and as
* a result, other mode bits could be set.
*
* @var int
*/
public $defaultMode;
protected $itemsType = GoogleCloudRunV2VersionToPath::class;
protected $itemsDataType = 'array';
/**
* Required. The name of the secret in Cloud Secret Manager. Format: {secret}
* if the secret is in the same project. projects/{project}/secrets/{secret}
* if the secret is in a different project.
*
* @var string
*/
public $secret;
/**
* Integer representation of mode bits to use on created files by default.
* Must be a value between 0000 and 0777 (octal), defaulting to 0444.
* Directories within the path are not affected by this setting. Notes *
* Internally, a umask of 0222 will be applied to any non-zero value. * This
* is an integer representation of the mode bits. So, the octal integer value
* should look exactly as the chmod numeric notation with a leading zero. Some
* examples: for chmod 640 (u=rw,g=r), set to 0640 (octal) or 416 (base-10).
* For chmod 755 (u=rwx,g=rx,o=rx), set to 0755 (octal) or 493 (base-10). *
* This might be in conflict with other options that affect the file mode,
* like fsGroup, and the result can be other mode bits set. This might be in
* conflict with other options that affect the file mode, like fsGroup, and as
* a result, other mode bits could be set.
*
* @param int $defaultMode
*/
public function setDefaultMode($defaultMode)
{
$this->defaultMode = $defaultMode;
}
/**
* @return int
*/
public function getDefaultMode()
{
return $this->defaultMode;
}
/**
* If unspecified, the volume will expose a file whose name is the secret,
* relative to VolumeMount.mount_path + VolumeMount.sub_path. If specified,
* the key will be used as the version to fetch from Cloud Secret Manager and
* the path will be the name of the file exposed in the volume. When items are
* defined, they must specify a path and a version.
*
* @param GoogleCloudRunV2VersionToPath[] $items
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return GoogleCloudRunV2VersionToPath[]
*/
public function getItems()
{
return $this->items;
}
/**
* Required. The name of the secret in Cloud Secret Manager. Format: {secret}
* if the secret is in the same project. projects/{project}/secrets/{secret}
* if the secret is in a different project.
*
* @param string $secret
*/
public function setSecret($secret)
{
$this->secret = $secret;
}
/**
* @return string
*/
public function getSecret()
{
return $this->secret;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRunV2SecretVolumeSource::class, 'Google_Service_CloudRun_GoogleCloudRunV2SecretVolumeSource');
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,52 @@
<?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 GoogleCloudRunV2ServiceMesh extends \Google\Model
{
/**
* The Mesh resource name. Format:
* `projects/{project}/locations/global/meshes/{mesh}`, where `{project}` can
* be project id or number.
*
* @var string
*/
public $mesh;
/**
* The Mesh resource name. Format:
* `projects/{project}/locations/global/meshes/{mesh}`, where `{project}` can
* be project id or number.
*
* @param string $mesh
*/
public function setMesh($mesh)
{
$this->mesh = $mesh;
}
/**
* @return string
*/
public function getMesh()
{
return $this->mesh;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRunV2ServiceMesh::class, 'Google_Service_CloudRun_GoogleCloudRunV2ServiceMesh');

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