diff --git a/src/CloudRun/GoogleCloudRunV2Container.php b/src/CloudRun/GoogleCloudRunV2Container.php index d818265cbe..b0b0c0379f 100644 --- a/src/CloudRun/GoogleCloudRunV2Container.php +++ b/src/CloudRun/GoogleCloudRunV2Container.php @@ -73,6 +73,13 @@ class GoogleCloudRunV2Container extends \Google\Collection protected $readinessProbeDataType = ''; protected $resourcesType = GoogleCloudRunV2ResourceRequirements::class; protected $resourcesDataType = ''; + /** + * Optional. Indicates that this container can act as a sandbox supervisor and + * launch sandboxes. + * + * @var bool + */ + public $sandboxLauncher; protected $sourceCodeType = GoogleCloudRunV2SourceCode::class; protected $sourceCodeDataType = ''; protected $startupProbeType = GoogleCloudRunV2Probe::class; @@ -289,6 +296,23 @@ public function getResources() { return $this->resources; } + /** + * Optional. Indicates that this container can act as a sandbox supervisor and + * launch sandboxes. + * + * @param bool $sandboxLauncher + */ + public function setSandboxLauncher($sandboxLauncher) + { + $this->sandboxLauncher = $sandboxLauncher; + } + /** + * @return bool + */ + public function getSandboxLauncher() + { + return $this->sandboxLauncher; + } /** * Optional. Location of the source. * diff --git a/src/CloudRun/GoogleCloudRunV2Revision.php b/src/CloudRun/GoogleCloudRunV2Revision.php index 8b27cefc29..c5d0c06246 100644 --- a/src/CloudRun/GoogleCloudRunV2Revision.php +++ b/src/CloudRun/GoogleCloudRunV2Revision.php @@ -255,6 +255,8 @@ class GoogleCloudRunV2Revision extends \Google\Collection * @var bool */ public $reconciling; + protected $sandboxesType = GoogleCloudRunV2SandboxConfiguration::class; + protected $sandboxesDataType = ''; /** * Output only. Reserved for future use. * @@ -733,6 +735,22 @@ public function getReconciling() { return $this->reconciling; } + /** + * Output only. Configuration for sandboxes. + * + * @param GoogleCloudRunV2SandboxConfiguration $sandboxes + */ + public function setSandboxes(GoogleCloudRunV2SandboxConfiguration $sandboxes) + { + $this->sandboxes = $sandboxes; + } + /** + * @return GoogleCloudRunV2SandboxConfiguration + */ + public function getSandboxes() + { + return $this->sandboxes; + } /** * Output only. Reserved for future use. * diff --git a/src/CloudRun/GoogleCloudRunV2RevisionTemplate.php b/src/CloudRun/GoogleCloudRunV2RevisionTemplate.php index baddf9fb78..ae971087e8 100644 --- a/src/CloudRun/GoogleCloudRunV2RevisionTemplate.php +++ b/src/CloudRun/GoogleCloudRunV2RevisionTemplate.php @@ -142,6 +142,8 @@ class GoogleCloudRunV2RevisionTemplate extends \Google\Collection * @var string */ public $revision; + protected $sandboxesType = GoogleCloudRunV2SandboxConfiguration::class; + protected $sandboxesDataType = ''; protected $scalingType = GoogleCloudRunV2RevisionScaling::class; protected $scalingDataType = ''; /** @@ -424,6 +426,22 @@ public function getRevision() { return $this->revision; } + /** + * Optional. Configuration for sandboxes. + * + * @param GoogleCloudRunV2SandboxConfiguration $sandboxes + */ + public function setSandboxes(GoogleCloudRunV2SandboxConfiguration $sandboxes) + { + $this->sandboxes = $sandboxes; + } + /** + * @return GoogleCloudRunV2SandboxConfiguration + */ + public function getSandboxes() + { + return $this->sandboxes; + } /** * Optional. Scaling settings for this Revision. * diff --git a/src/CloudRun/GoogleCloudRunV2SandboxConfiguration.php b/src/CloudRun/GoogleCloudRunV2SandboxConfiguration.php new file mode 100644 index 0000000000..dde100a030 --- /dev/null +++ b/src/CloudRun/GoogleCloudRunV2SandboxConfiguration.php @@ -0,0 +1,46 @@ +templates = $templates; + } + /** + * @return GoogleCloudRunV2Container[] + */ + public function getTemplates() + { + return $this->templates; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(GoogleCloudRunV2SandboxConfiguration::class, 'Google_Service_CloudRun_GoogleCloudRunV2SandboxConfiguration');