Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions src/CloudRun/GoogleCloudRunV2Container.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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.
*
Expand Down
18 changes: 18 additions & 0 deletions src/CloudRun/GoogleCloudRunV2Revision.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down Expand Up @@ -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.
*
Expand Down
18 changes: 18 additions & 0 deletions src/CloudRun/GoogleCloudRunV2RevisionTemplate.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '';
/**
Expand Down Expand Up @@ -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.
*
Expand Down
46 changes: 46 additions & 0 deletions src/CloudRun/GoogleCloudRunV2SandboxConfiguration.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<?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 GoogleCloudRunV2SandboxConfiguration extends \Google\Collection
{
protected $collection_key = 'templates';
protected $templatesType = GoogleCloudRunV2Container::class;
protected $templatesDataType = 'array';

/**
* Required. Container templates that can be launched through the `sandbox`
* CLI.
*
* @param GoogleCloudRunV2Container[] $templates
*/
public function setTemplates($templates)
{
$this->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');
Loading