diff --git a/Container/metadata/V1/ClusterService.php b/Container/metadata/V1/ClusterService.php index 36b49e5bae55..49cd887467db 100644 Binary files a/Container/metadata/V1/ClusterService.php and b/Container/metadata/V1/ClusterService.php differ diff --git a/Container/src/V1/NodePool.php b/Container/src/V1/NodePool.php index 81ba1cb9d7f8..653bbe9d7da9 100644 --- a/Container/src/V1/NodePool.php +++ b/Container/src/V1/NodePool.php @@ -159,6 +159,12 @@ class NodePool extends \Google\Protobuf\Internal\Message * Generated from protobuf field string etag = 110; */ private $etag = ''; + /** + * Specifies the configuration of queued provisioning. + * + * Generated from protobuf field .google.container.v1.NodePool.QueuedProvisioning queued_provisioning = 112; + */ + private $queued_provisioning = null; /** * Enable best effort provisioning for nodes * @@ -234,6 +240,8 @@ class NodePool extends \Google\Protobuf\Internal\Message * This checksum is computed by the server based on the value of node pool * fields, and may be sent on update requests to ensure the client has an * up-to-date value before proceeding. + * @type \Google\Cloud\Container\V1\NodePool\QueuedProvisioning $queued_provisioning + * Specifies the configuration of queued provisioning. * @type \Google\Cloud\Container\V1\BestEffortProvisioning $best_effort_provisioning * Enable best effort provisioning for nodes * } @@ -869,6 +877,42 @@ public function setEtag($var) return $this; } + /** + * Specifies the configuration of queued provisioning. + * + * Generated from protobuf field .google.container.v1.NodePool.QueuedProvisioning queued_provisioning = 112; + * @return \Google\Cloud\Container\V1\NodePool\QueuedProvisioning|null + */ + public function getQueuedProvisioning() + { + return $this->queued_provisioning; + } + + public function hasQueuedProvisioning() + { + return isset($this->queued_provisioning); + } + + public function clearQueuedProvisioning() + { + unset($this->queued_provisioning); + } + + /** + * Specifies the configuration of queued provisioning. + * + * Generated from protobuf field .google.container.v1.NodePool.QueuedProvisioning queued_provisioning = 112; + * @param \Google\Cloud\Container\V1\NodePool\QueuedProvisioning $var + * @return $this + */ + public function setQueuedProvisioning($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePool\QueuedProvisioning::class); + $this->queued_provisioning = $var; + + return $this; + } + /** * Enable best effort provisioning for nodes * diff --git a/Container/src/V1/NodePool/QueuedProvisioning.php b/Container/src/V1/NodePool/QueuedProvisioning.php new file mode 100644 index 000000000000..2f68a0e7a0c2 --- /dev/null +++ b/Container/src/V1/NodePool/QueuedProvisioning.php @@ -0,0 +1,78 @@ +google.container.v1.NodePool.QueuedProvisioning + */ +class QueuedProvisioning extends \Google\Protobuf\Internal\Message +{ + /** + * Denotes that this nodepool is QRM specific, meaning nodes can be only + * obtained through queuing via the Cluster Autoscaler ProvisioningRequest + * API. + * + * Generated from protobuf field bool enabled = 1; + */ + private $enabled = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $enabled + * Denotes that this nodepool is QRM specific, meaning nodes can be only + * obtained through queuing via the Cluster Autoscaler ProvisioningRequest + * API. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Denotes that this nodepool is QRM specific, meaning nodes can be only + * obtained through queuing via the Cluster Autoscaler ProvisioningRequest + * API. + * + * Generated from protobuf field bool enabled = 1; + * @return bool + */ + public function getEnabled() + { + return $this->enabled; + } + + /** + * Denotes that this nodepool is QRM specific, meaning nodes can be only + * obtained through queuing via the Cluster Autoscaler ProvisioningRequest + * API. + * + * Generated from protobuf field bool enabled = 1; + * @param bool $var + * @return $this + */ + public function setEnabled($var) + { + GPBUtil::checkBool($var); + $this->enabled = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(QueuedProvisioning::class, \Google\Cloud\Container\V1\NodePool_QueuedProvisioning::class); +