diff --git a/Container/metadata/V1/ClusterService.php b/Container/metadata/V1/ClusterService.php
index 8801f61a05bb..421eeb6dd743 100644
Binary files a/Container/metadata/V1/ClusterService.php and b/Container/metadata/V1/ClusterService.php differ
diff --git a/Container/src/V1/ClusterUpdate.php b/Container/src/V1/ClusterUpdate.php
index 6ce484dcd5c3..13e12fbceee4 100644
--- a/Container/src/V1/ClusterUpdate.php
+++ b/Container/src/V1/ClusterUpdate.php
@@ -467,6 +467,20 @@ class ClusterUpdate extends \Google\Protobuf\Internal\Message
* Generated from protobuf field optional .google.container.v1.RBACBindingConfig desired_rbac_binding_config = 144;
*/
protected $desired_rbac_binding_config = null;
+ /**
+ * The desired enterprise configuration for the cluster.
+ *
+ * Generated from protobuf field .google.container.v1.DesiredEnterpriseConfig desired_enterprise_config = 147;
+ */
+ protected $desired_enterprise_config = null;
+ /**
+ * The desired Linux node config for all auto-provisioned node pools
+ * in autopilot clusters and node auto-provisioning enabled clusters.
+ * Currently only `cgroup_mode` can be set here.
+ *
+ * Generated from protobuf field .google.container.v1.LinuxNodeConfig desired_node_pool_auto_config_linux_node_config = 150;
+ */
+ protected $desired_node_pool_auto_config_linux_node_config = null;
/**
* Constructor.
@@ -673,6 +687,12 @@ class ClusterUpdate extends \Google\Protobuf\Internal\Message
* @type \Google\Cloud\Container\V1\RBACBindingConfig $desired_rbac_binding_config
* RBACBindingConfig allows user to restrict ClusterRoleBindings an
* RoleBindings that can be created.
+ * @type \Google\Cloud\Container\V1\DesiredEnterpriseConfig $desired_enterprise_config
+ * The desired enterprise configuration for the cluster.
+ * @type \Google\Cloud\Container\V1\LinuxNodeConfig $desired_node_pool_auto_config_linux_node_config
+ * The desired Linux node config for all auto-provisioned node pools
+ * in autopilot clusters and node auto-provisioning enabled clusters.
+ * Currently only `cgroup_mode` can be set here.
* }
*/
public function __construct($data = NULL) {
@@ -2970,5 +2990,81 @@ public function setDesiredRbacBindingConfig($var)
return $this;
}
+ /**
+ * The desired enterprise configuration for the cluster.
+ *
+ * Generated from protobuf field .google.container.v1.DesiredEnterpriseConfig desired_enterprise_config = 147;
+ * @return \Google\Cloud\Container\V1\DesiredEnterpriseConfig|null
+ */
+ public function getDesiredEnterpriseConfig()
+ {
+ return $this->desired_enterprise_config;
+ }
+
+ public function hasDesiredEnterpriseConfig()
+ {
+ return isset($this->desired_enterprise_config);
+ }
+
+ public function clearDesiredEnterpriseConfig()
+ {
+ unset($this->desired_enterprise_config);
+ }
+
+ /**
+ * The desired enterprise configuration for the cluster.
+ *
+ * Generated from protobuf field .google.container.v1.DesiredEnterpriseConfig desired_enterprise_config = 147;
+ * @param \Google\Cloud\Container\V1\DesiredEnterpriseConfig $var
+ * @return $this
+ */
+ public function setDesiredEnterpriseConfig($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\DesiredEnterpriseConfig::class);
+ $this->desired_enterprise_config = $var;
+
+ return $this;
+ }
+
+ /**
+ * The desired Linux node config for all auto-provisioned node pools
+ * in autopilot clusters and node auto-provisioning enabled clusters.
+ * Currently only `cgroup_mode` can be set here.
+ *
+ * Generated from protobuf field .google.container.v1.LinuxNodeConfig desired_node_pool_auto_config_linux_node_config = 150;
+ * @return \Google\Cloud\Container\V1\LinuxNodeConfig|null
+ */
+ public function getDesiredNodePoolAutoConfigLinuxNodeConfig()
+ {
+ return $this->desired_node_pool_auto_config_linux_node_config;
+ }
+
+ public function hasDesiredNodePoolAutoConfigLinuxNodeConfig()
+ {
+ return isset($this->desired_node_pool_auto_config_linux_node_config);
+ }
+
+ public function clearDesiredNodePoolAutoConfigLinuxNodeConfig()
+ {
+ unset($this->desired_node_pool_auto_config_linux_node_config);
+ }
+
+ /**
+ * The desired Linux node config for all auto-provisioned node pools
+ * in autopilot clusters and node auto-provisioning enabled clusters.
+ * Currently only `cgroup_mode` can be set here.
+ *
+ * Generated from protobuf field .google.container.v1.LinuxNodeConfig desired_node_pool_auto_config_linux_node_config = 150;
+ * @param \Google\Cloud\Container\V1\LinuxNodeConfig $var
+ * @return $this
+ */
+ public function setDesiredNodePoolAutoConfigLinuxNodeConfig($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\LinuxNodeConfig::class);
+ $this->desired_node_pool_auto_config_linux_node_config = $var;
+
+ return $this;
+ }
+
}
diff --git a/Container/src/V1/DesiredEnterpriseConfig.php b/Container/src/V1/DesiredEnterpriseConfig.php
new file mode 100644
index 000000000000..fd73cb72520d
--- /dev/null
+++ b/Container/src/V1/DesiredEnterpriseConfig.php
@@ -0,0 +1,67 @@
+google.container.v1.DesiredEnterpriseConfig
+ */
+class DesiredEnterpriseConfig extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * desired_tier specifies the desired tier of the cluster.
+ *
+ * Generated from protobuf field .google.container.v1.EnterpriseConfig.ClusterTier desired_tier = 1;
+ */
+ protected $desired_tier = 0;
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type int $desired_tier
+ * desired_tier specifies the desired tier of the cluster.
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Container\V1\ClusterService::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * desired_tier specifies the desired tier of the cluster.
+ *
+ * Generated from protobuf field .google.container.v1.EnterpriseConfig.ClusterTier desired_tier = 1;
+ * @return int
+ */
+ public function getDesiredTier()
+ {
+ return $this->desired_tier;
+ }
+
+ /**
+ * desired_tier specifies the desired tier of the cluster.
+ *
+ * Generated from protobuf field .google.container.v1.EnterpriseConfig.ClusterTier desired_tier = 1;
+ * @param int $var
+ * @return $this
+ */
+ public function setDesiredTier($var)
+ {
+ GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\EnterpriseConfig\ClusterTier::class);
+ $this->desired_tier = $var;
+
+ return $this;
+ }
+
+}
+
diff --git a/Container/src/V1/EnterpriseConfig.php b/Container/src/V1/EnterpriseConfig.php
index 8f53cca0b529..13ee23ee7804 100644
--- a/Container/src/V1/EnterpriseConfig.php
+++ b/Container/src/V1/EnterpriseConfig.php
@@ -21,6 +21,12 @@ class EnterpriseConfig extends \Google\Protobuf\Internal\Message
* Generated from protobuf field .google.container.v1.EnterpriseConfig.ClusterTier cluster_tier = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
protected $cluster_tier = 0;
+ /**
+ * desired_tier specifies the desired tier of the cluster.
+ *
+ * Generated from protobuf field .google.container.v1.EnterpriseConfig.ClusterTier desired_tier = 2;
+ */
+ protected $desired_tier = 0;
/**
* Constructor.
@@ -30,6 +36,8 @@ class EnterpriseConfig extends \Google\Protobuf\Internal\Message
*
* @type int $cluster_tier
* Output only. cluster_tier indicates the effective tier of the cluster.
+ * @type int $desired_tier
+ * desired_tier specifies the desired tier of the cluster.
* }
*/
public function __construct($data = NULL) {
@@ -63,5 +71,31 @@ public function setClusterTier($var)
return $this;
}
+ /**
+ * desired_tier specifies the desired tier of the cluster.
+ *
+ * Generated from protobuf field .google.container.v1.EnterpriseConfig.ClusterTier desired_tier = 2;
+ * @return int
+ */
+ public function getDesiredTier()
+ {
+ return $this->desired_tier;
+ }
+
+ /**
+ * desired_tier specifies the desired tier of the cluster.
+ *
+ * Generated from protobuf field .google.container.v1.EnterpriseConfig.ClusterTier desired_tier = 2;
+ * @param int $var
+ * @return $this
+ */
+ public function setDesiredTier($var)
+ {
+ GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\EnterpriseConfig\ClusterTier::class);
+ $this->desired_tier = $var;
+
+ return $this;
+ }
+
}
diff --git a/Container/src/V1/LinuxNodeConfig.php b/Container/src/V1/LinuxNodeConfig.php
index 225a457d7f61..8505b0ae96e7 100644
--- a/Container/src/V1/LinuxNodeConfig.php
+++ b/Container/src/V1/LinuxNodeConfig.php
@@ -30,6 +30,9 @@ class LinuxNodeConfig extends \Google\Protobuf\Internal\Message
* net.ipv4.tcp_rmem
* net.ipv4.tcp_wmem
* net.ipv4.tcp_tw_reuse
+ * kernel.shmmni
+ * kernel.shmmax
+ * kernel.shmall
*
* Generated from protobuf field map sysctls = 1;
*/
@@ -68,6 +71,9 @@ class LinuxNodeConfig extends \Google\Protobuf\Internal\Message
* net.ipv4.tcp_rmem
* net.ipv4.tcp_wmem
* net.ipv4.tcp_tw_reuse
+ * kernel.shmmni
+ * kernel.shmmax
+ * kernel.shmall
* @type int $cgroup_mode
* cgroup_mode specifies the cgroup mode to be used on the node.
* @type \Google\Cloud\Container\V1\LinuxNodeConfig\HugepagesConfig $hugepages
@@ -94,6 +100,9 @@ public function __construct($data = NULL) {
* net.ipv4.tcp_rmem
* net.ipv4.tcp_wmem
* net.ipv4.tcp_tw_reuse
+ * kernel.shmmni
+ * kernel.shmmax
+ * kernel.shmall
*
* Generated from protobuf field map sysctls = 1;
* @return \Google\Protobuf\Internal\MapField
@@ -118,6 +127,9 @@ public function getSysctls()
* net.ipv4.tcp_rmem
* net.ipv4.tcp_wmem
* net.ipv4.tcp_tw_reuse
+ * kernel.shmmni
+ * kernel.shmmax
+ * kernel.shmall
*
* Generated from protobuf field map sysctls = 1;
* @param array|\Google\Protobuf\Internal\MapField $var
diff --git a/Container/src/V1/NodeConfig.php b/Container/src/V1/NodeConfig.php
index 57436b5cb6c3..c55ffcc2a281 100644
--- a/Container/src/V1/NodeConfig.php
+++ b/Container/src/V1/NodeConfig.php
@@ -349,6 +349,13 @@ class NodeConfig extends \Google\Protobuf\Internal\Message
* Generated from protobuf field optional .google.container.v1.SecondaryBootDiskUpdateStrategy secondary_boot_disk_update_strategy = 50;
*/
protected $secondary_boot_disk_update_strategy = null;
+ /**
+ * Specifies which method should be used for encrypting the
+ * Local SSDs attahced to the node.
+ *
+ * Generated from protobuf field optional .google.container.v1.NodeConfig.LocalSsdEncryptionMode local_ssd_encryption_mode = 54;
+ */
+ protected $local_ssd_encryption_mode = null;
/**
* Output only. effective_cgroup_mode is the cgroup mode actually used by the
* node pool. It is determined by the cgroup mode specified in the
@@ -535,6 +542,9 @@ class NodeConfig extends \Google\Protobuf\Internal\Message
* List of Storage Pools where boot disks are provisioned.
* @type \Google\Cloud\Container\V1\SecondaryBootDiskUpdateStrategy $secondary_boot_disk_update_strategy
* Secondary boot disk update strategy.
+ * @type int $local_ssd_encryption_mode
+ * Specifies which method should be used for encrypting the
+ * Local SSDs attahced to the node.
* @type int $effective_cgroup_mode
* Output only. effective_cgroup_mode is the cgroup mode actually used by the
* node pool. It is determined by the cgroup mode specified in the
@@ -1957,6 +1967,44 @@ public function setSecondaryBootDiskUpdateStrategy($var)
return $this;
}
+ /**
+ * Specifies which method should be used for encrypting the
+ * Local SSDs attahced to the node.
+ *
+ * Generated from protobuf field optional .google.container.v1.NodeConfig.LocalSsdEncryptionMode local_ssd_encryption_mode = 54;
+ * @return int
+ */
+ public function getLocalSsdEncryptionMode()
+ {
+ return isset($this->local_ssd_encryption_mode) ? $this->local_ssd_encryption_mode : 0;
+ }
+
+ public function hasLocalSsdEncryptionMode()
+ {
+ return isset($this->local_ssd_encryption_mode);
+ }
+
+ public function clearLocalSsdEncryptionMode()
+ {
+ unset($this->local_ssd_encryption_mode);
+ }
+
+ /**
+ * Specifies which method should be used for encrypting the
+ * Local SSDs attahced to the node.
+ *
+ * Generated from protobuf field optional .google.container.v1.NodeConfig.LocalSsdEncryptionMode local_ssd_encryption_mode = 54;
+ * @param int $var
+ * @return $this
+ */
+ public function setLocalSsdEncryptionMode($var)
+ {
+ GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\NodeConfig\LocalSsdEncryptionMode::class);
+ $this->local_ssd_encryption_mode = $var;
+
+ return $this;
+ }
+
/**
* Output only. effective_cgroup_mode is the cgroup mode actually used by the
* node pool. It is determined by the cgroup mode specified in the
diff --git a/Container/src/V1/NodeConfig/LocalSsdEncryptionMode.php b/Container/src/V1/NodeConfig/LocalSsdEncryptionMode.php
new file mode 100644
index 000000000000..0ce3a6de1bd3
--- /dev/null
+++ b/Container/src/V1/NodeConfig/LocalSsdEncryptionMode.php
@@ -0,0 +1,70 @@
+google.container.v1.NodeConfig.LocalSsdEncryptionMode
+ */
+class LocalSsdEncryptionMode
+{
+ /**
+ * The given node will be encrypted using keys managed by Google
+ * infrastructure and the keys will be deleted when the node is
+ * deleted.
+ *
+ * Generated from protobuf enum LOCAL_SSD_ENCRYPTION_MODE_UNSPECIFIED = 0;
+ */
+ const LOCAL_SSD_ENCRYPTION_MODE_UNSPECIFIED = 0;
+ /**
+ * The given node will be encrypted using keys managed by Google
+ * infrastructure and the keys will be deleted when the node is
+ * deleted.
+ *
+ * Generated from protobuf enum STANDARD_ENCRYPTION = 1;
+ */
+ const STANDARD_ENCRYPTION = 1;
+ /**
+ * The given node will opt-in for using ephemeral key for
+ * encryption of Local SSDs.
+ * The Local SSDs will not be able to recover data in case of node
+ * crash.
+ *
+ * Generated from protobuf enum EPHEMERAL_KEY_ENCRYPTION = 2;
+ */
+ const EPHEMERAL_KEY_ENCRYPTION = 2;
+
+ private static $valueToName = [
+ self::LOCAL_SSD_ENCRYPTION_MODE_UNSPECIFIED => 'LOCAL_SSD_ENCRYPTION_MODE_UNSPECIFIED',
+ self::STANDARD_ENCRYPTION => 'STANDARD_ENCRYPTION',
+ self::EPHEMERAL_KEY_ENCRYPTION => 'EPHEMERAL_KEY_ENCRYPTION',
+ ];
+
+ public static function name($value)
+ {
+ if (!isset(self::$valueToName[$value])) {
+ throw new UnexpectedValueException(sprintf(
+ 'Enum %s has no name defined for value %s', __CLASS__, $value));
+ }
+ return self::$valueToName[$value];
+ }
+
+
+ public static function value($name)
+ {
+ $const = __CLASS__ . '::' . strtoupper($name);
+ if (!defined($const)) {
+ throw new UnexpectedValueException(sprintf(
+ 'Enum %s has no value defined for name %s', __CLASS__, $name));
+ }
+ return constant($const);
+ }
+}
+
+
diff --git a/Container/src/V1/NodePoolAutoConfig.php b/Container/src/V1/NodePoolAutoConfig.php
index 8c5b50bb7d9d..d6a0ea64361c 100644
--- a/Container/src/V1/NodePoolAutoConfig.php
+++ b/Container/src/V1/NodePoolAutoConfig.php
@@ -39,6 +39,12 @@ class NodePoolAutoConfig extends \Google\Protobuf\Internal\Message
* Generated from protobuf field .google.container.v1.NodeKubeletConfig node_kubelet_config = 3;
*/
protected $node_kubelet_config = null;
+ /**
+ * Output only. Configuration options for Linux nodes.
+ *
+ * Generated from protobuf field .google.container.v1.LinuxNodeConfig linux_node_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ */
+ protected $linux_node_config = null;
/**
* Constructor.
@@ -57,6 +63,8 @@ class NodePoolAutoConfig extends \Google\Protobuf\Internal\Message
* @type \Google\Cloud\Container\V1\NodeKubeletConfig $node_kubelet_config
* NodeKubeletConfig controls the defaults for autoprovisioned node-pools.
* Currently only `insecure_kubelet_readonly_port_enabled` can be set here.
+ * @type \Google\Cloud\Container\V1\LinuxNodeConfig $linux_node_config
+ * Output only. Configuration options for Linux nodes.
* }
*/
public function __construct($data = NULL) {
@@ -182,5 +190,41 @@ public function setNodeKubeletConfig($var)
return $this;
}
+ /**
+ * Output only. Configuration options for Linux nodes.
+ *
+ * Generated from protobuf field .google.container.v1.LinuxNodeConfig linux_node_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * @return \Google\Cloud\Container\V1\LinuxNodeConfig|null
+ */
+ public function getLinuxNodeConfig()
+ {
+ return $this->linux_node_config;
+ }
+
+ public function hasLinuxNodeConfig()
+ {
+ return isset($this->linux_node_config);
+ }
+
+ public function clearLinuxNodeConfig()
+ {
+ unset($this->linux_node_config);
+ }
+
+ /**
+ * Output only. Configuration options for Linux nodes.
+ *
+ * Generated from protobuf field .google.container.v1.LinuxNodeConfig linux_node_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * @param \Google\Cloud\Container\V1\LinuxNodeConfig $var
+ * @return $this
+ */
+ public function setLinuxNodeConfig($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\LinuxNodeConfig::class);
+ $this->linux_node_config = $var;
+
+ return $this;
+ }
+
}
diff --git a/Container/src/V1/NodePoolAutoscaling.php b/Container/src/V1/NodePoolAutoscaling.php
index 6f5f3887bcfe..7b1aa62433e0 100644
--- a/Container/src/V1/NodePoolAutoscaling.php
+++ b/Container/src/V1/NodePoolAutoscaling.php
@@ -23,14 +23,14 @@ class NodePoolAutoscaling extends \Google\Protobuf\Internal\Message
*/
protected $enabled = false;
/**
- * Minimum number of nodes for one location in the NodePool. Must be >= 1 and
- * <= max_node_count.
+ * Minimum number of nodes for one location in the node pool. Must be greater
+ * than or equal to 0 and less than or equal to max_node_count.
*
* Generated from protobuf field int32 min_node_count = 2;
*/
protected $min_node_count = 0;
/**
- * Maximum number of nodes for one location in the NodePool. Must be >=
+ * Maximum number of nodes for one location in the node pool. Must be >=
* min_node_count. There has to be enough quota to scale up the cluster.
*
* Generated from protobuf field int32 max_node_count = 3;
@@ -49,8 +49,8 @@ class NodePoolAutoscaling extends \Google\Protobuf\Internal\Message
*/
protected $location_policy = 0;
/**
- * Minimum number of nodes in the node pool. Must be greater than 1 less than
- * total_max_node_count.
+ * Minimum number of nodes in the node pool. Must be greater than or equal
+ * to 0 and less than or equal to total_max_node_count.
* The total_*_node_count fields are mutually exclusive with the *_node_count
* fields.
*
@@ -58,7 +58,7 @@ class NodePoolAutoscaling extends \Google\Protobuf\Internal\Message
*/
protected $total_min_node_count = 0;
/**
- * Maximum number of nodes in the node pool. Must be greater than
+ * Maximum number of nodes in the node pool. Must be greater than or equal to
* total_min_node_count. There has to be enough quota to scale up the cluster.
* The total_*_node_count fields are mutually exclusive with the *_node_count
* fields.
@@ -76,22 +76,22 @@ class NodePoolAutoscaling extends \Google\Protobuf\Internal\Message
* @type bool $enabled
* Is autoscaling enabled for this node pool.
* @type int $min_node_count
- * Minimum number of nodes for one location in the NodePool. Must be >= 1 and
- * <= max_node_count.
+ * Minimum number of nodes for one location in the node pool. Must be greater
+ * than or equal to 0 and less than or equal to max_node_count.
* @type int $max_node_count
- * Maximum number of nodes for one location in the NodePool. Must be >=
+ * Maximum number of nodes for one location in the node pool. Must be >=
* min_node_count. There has to be enough quota to scale up the cluster.
* @type bool $autoprovisioned
* Can this node pool be deleted automatically.
* @type int $location_policy
* Location policy used when scaling up a nodepool.
* @type int $total_min_node_count
- * Minimum number of nodes in the node pool. Must be greater than 1 less than
- * total_max_node_count.
+ * Minimum number of nodes in the node pool. Must be greater than or equal
+ * to 0 and less than or equal to total_max_node_count.
* The total_*_node_count fields are mutually exclusive with the *_node_count
* fields.
* @type int $total_max_node_count
- * Maximum number of nodes in the node pool. Must be greater than
+ * Maximum number of nodes in the node pool. Must be greater than or equal to
* total_min_node_count. There has to be enough quota to scale up the cluster.
* The total_*_node_count fields are mutually exclusive with the *_node_count
* fields.
@@ -129,8 +129,8 @@ public function setEnabled($var)
}
/**
- * Minimum number of nodes for one location in the NodePool. Must be >= 1 and
- * <= max_node_count.
+ * Minimum number of nodes for one location in the node pool. Must be greater
+ * than or equal to 0 and less than or equal to max_node_count.
*
* Generated from protobuf field int32 min_node_count = 2;
* @return int
@@ -141,8 +141,8 @@ public function getMinNodeCount()
}
/**
- * Minimum number of nodes for one location in the NodePool. Must be >= 1 and
- * <= max_node_count.
+ * Minimum number of nodes for one location in the node pool. Must be greater
+ * than or equal to 0 and less than or equal to max_node_count.
*
* Generated from protobuf field int32 min_node_count = 2;
* @param int $var
@@ -157,7 +157,7 @@ public function setMinNodeCount($var)
}
/**
- * Maximum number of nodes for one location in the NodePool. Must be >=
+ * Maximum number of nodes for one location in the node pool. Must be >=
* min_node_count. There has to be enough quota to scale up the cluster.
*
* Generated from protobuf field int32 max_node_count = 3;
@@ -169,7 +169,7 @@ public function getMaxNodeCount()
}
/**
- * Maximum number of nodes for one location in the NodePool. Must be >=
+ * Maximum number of nodes for one location in the node pool. Must be >=
* min_node_count. There has to be enough quota to scale up the cluster.
*
* Generated from protobuf field int32 max_node_count = 3;
@@ -237,8 +237,8 @@ public function setLocationPolicy($var)
}
/**
- * Minimum number of nodes in the node pool. Must be greater than 1 less than
- * total_max_node_count.
+ * Minimum number of nodes in the node pool. Must be greater than or equal
+ * to 0 and less than or equal to total_max_node_count.
* The total_*_node_count fields are mutually exclusive with the *_node_count
* fields.
*
@@ -251,8 +251,8 @@ public function getTotalMinNodeCount()
}
/**
- * Minimum number of nodes in the node pool. Must be greater than 1 less than
- * total_max_node_count.
+ * Minimum number of nodes in the node pool. Must be greater than or equal
+ * to 0 and less than or equal to total_max_node_count.
* The total_*_node_count fields are mutually exclusive with the *_node_count
* fields.
*
@@ -269,7 +269,7 @@ public function setTotalMinNodeCount($var)
}
/**
- * Maximum number of nodes in the node pool. Must be greater than
+ * Maximum number of nodes in the node pool. Must be greater than or equal to
* total_min_node_count. There has to be enough quota to scale up the cluster.
* The total_*_node_count fields are mutually exclusive with the *_node_count
* fields.
@@ -283,7 +283,7 @@ public function getTotalMaxNodeCount()
}
/**
- * Maximum number of nodes in the node pool. Must be greater than
+ * Maximum number of nodes in the node pool. Must be greater than or equal to
* total_min_node_count. There has to be enough quota to scale up the cluster.
* The total_*_node_count fields are mutually exclusive with the *_node_count
* fields.
diff --git a/Container/src/V1/UpgradeInfoEvent.php b/Container/src/V1/UpgradeInfoEvent.php
new file mode 100644
index 000000000000..440f2f2400ad
--- /dev/null
+++ b/Container/src/V1/UpgradeInfoEvent.php
@@ -0,0 +1,364 @@
+google.container.v1.UpgradeInfoEvent
+ */
+class UpgradeInfoEvent extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * The resource type associated with the upgrade.
+ *
+ * Generated from protobuf field .google.container.v1.UpgradeResourceType resource_type = 1;
+ */
+ protected $resource_type = 0;
+ /**
+ * The operation associated with this upgrade.
+ *
+ * Generated from protobuf field string operation = 2;
+ */
+ protected $operation = '';
+ /**
+ * The time when the operation was started.
+ *
+ * Generated from protobuf field .google.protobuf.Timestamp start_time = 3;
+ */
+ protected $start_time = null;
+ /**
+ * The time when the operation ended.
+ *
+ * Generated from protobuf field .google.protobuf.Timestamp end_time = 4;
+ */
+ protected $end_time = null;
+ /**
+ * The current version before the upgrade.
+ *
+ * Generated from protobuf field string current_version = 5;
+ */
+ protected $current_version = '';
+ /**
+ * The target version for the upgrade.
+ *
+ * Generated from protobuf field string target_version = 6;
+ */
+ protected $target_version = '';
+ /**
+ * Optional relative path to the resource. For example in node pool upgrades,
+ * the relative path of the node pool.
+ *
+ * Generated from protobuf field string resource = 7;
+ */
+ protected $resource = '';
+ /**
+ * Output only. The state of the upgrade.
+ *
+ * Generated from protobuf field .google.container.v1.UpgradeInfoEvent.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ */
+ protected $state = 0;
+ /**
+ * A brief description of the event.
+ *
+ * Generated from protobuf field string description = 11;
+ */
+ protected $description = '';
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type int $resource_type
+ * The resource type associated with the upgrade.
+ * @type string $operation
+ * The operation associated with this upgrade.
+ * @type \Google\Protobuf\Timestamp $start_time
+ * The time when the operation was started.
+ * @type \Google\Protobuf\Timestamp $end_time
+ * The time when the operation ended.
+ * @type string $current_version
+ * The current version before the upgrade.
+ * @type string $target_version
+ * The target version for the upgrade.
+ * @type string $resource
+ * Optional relative path to the resource. For example in node pool upgrades,
+ * the relative path of the node pool.
+ * @type int $state
+ * Output only. The state of the upgrade.
+ * @type string $description
+ * A brief description of the event.
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Container\V1\ClusterService::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * The resource type associated with the upgrade.
+ *
+ * Generated from protobuf field .google.container.v1.UpgradeResourceType resource_type = 1;
+ * @return int
+ */
+ public function getResourceType()
+ {
+ return $this->resource_type;
+ }
+
+ /**
+ * The resource type associated with the upgrade.
+ *
+ * Generated from protobuf field .google.container.v1.UpgradeResourceType resource_type = 1;
+ * @param int $var
+ * @return $this
+ */
+ public function setResourceType($var)
+ {
+ GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\UpgradeResourceType::class);
+ $this->resource_type = $var;
+
+ return $this;
+ }
+
+ /**
+ * The operation associated with this upgrade.
+ *
+ * Generated from protobuf field string operation = 2;
+ * @return string
+ */
+ public function getOperation()
+ {
+ return $this->operation;
+ }
+
+ /**
+ * The operation associated with this upgrade.
+ *
+ * Generated from protobuf field string operation = 2;
+ * @param string $var
+ * @return $this
+ */
+ public function setOperation($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->operation = $var;
+
+ return $this;
+ }
+
+ /**
+ * The time when the operation was started.
+ *
+ * Generated from protobuf field .google.protobuf.Timestamp start_time = 3;
+ * @return \Google\Protobuf\Timestamp|null
+ */
+ public function getStartTime()
+ {
+ return $this->start_time;
+ }
+
+ public function hasStartTime()
+ {
+ return isset($this->start_time);
+ }
+
+ public function clearStartTime()
+ {
+ unset($this->start_time);
+ }
+
+ /**
+ * The time when the operation was started.
+ *
+ * Generated from protobuf field .google.protobuf.Timestamp start_time = 3;
+ * @param \Google\Protobuf\Timestamp $var
+ * @return $this
+ */
+ public function setStartTime($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
+ $this->start_time = $var;
+
+ return $this;
+ }
+
+ /**
+ * The time when the operation ended.
+ *
+ * Generated from protobuf field .google.protobuf.Timestamp end_time = 4;
+ * @return \Google\Protobuf\Timestamp|null
+ */
+ public function getEndTime()
+ {
+ return $this->end_time;
+ }
+
+ public function hasEndTime()
+ {
+ return isset($this->end_time);
+ }
+
+ public function clearEndTime()
+ {
+ unset($this->end_time);
+ }
+
+ /**
+ * The time when the operation ended.
+ *
+ * Generated from protobuf field .google.protobuf.Timestamp end_time = 4;
+ * @param \Google\Protobuf\Timestamp $var
+ * @return $this
+ */
+ public function setEndTime($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
+ $this->end_time = $var;
+
+ return $this;
+ }
+
+ /**
+ * The current version before the upgrade.
+ *
+ * Generated from protobuf field string current_version = 5;
+ * @return string
+ */
+ public function getCurrentVersion()
+ {
+ return $this->current_version;
+ }
+
+ /**
+ * The current version before the upgrade.
+ *
+ * Generated from protobuf field string current_version = 5;
+ * @param string $var
+ * @return $this
+ */
+ public function setCurrentVersion($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->current_version = $var;
+
+ return $this;
+ }
+
+ /**
+ * The target version for the upgrade.
+ *
+ * Generated from protobuf field string target_version = 6;
+ * @return string
+ */
+ public function getTargetVersion()
+ {
+ return $this->target_version;
+ }
+
+ /**
+ * The target version for the upgrade.
+ *
+ * Generated from protobuf field string target_version = 6;
+ * @param string $var
+ * @return $this
+ */
+ public function setTargetVersion($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->target_version = $var;
+
+ return $this;
+ }
+
+ /**
+ * Optional relative path to the resource. For example in node pool upgrades,
+ * the relative path of the node pool.
+ *
+ * Generated from protobuf field string resource = 7;
+ * @return string
+ */
+ public function getResource()
+ {
+ return $this->resource;
+ }
+
+ /**
+ * Optional relative path to the resource. For example in node pool upgrades,
+ * the relative path of the node pool.
+ *
+ * Generated from protobuf field string resource = 7;
+ * @param string $var
+ * @return $this
+ */
+ public function setResource($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->resource = $var;
+
+ return $this;
+ }
+
+ /**
+ * Output only. The state of the upgrade.
+ *
+ * Generated from protobuf field .google.container.v1.UpgradeInfoEvent.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * @return int
+ */
+ public function getState()
+ {
+ return $this->state;
+ }
+
+ /**
+ * Output only. The state of the upgrade.
+ *
+ * Generated from protobuf field .google.container.v1.UpgradeInfoEvent.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * @param int $var
+ * @return $this
+ */
+ public function setState($var)
+ {
+ GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\UpgradeInfoEvent\State::class);
+ $this->state = $var;
+
+ return $this;
+ }
+
+ /**
+ * A brief description of the event.
+ *
+ * Generated from protobuf field string description = 11;
+ * @return string
+ */
+ public function getDescription()
+ {
+ return $this->description;
+ }
+
+ /**
+ * A brief description of the event.
+ *
+ * Generated from protobuf field string description = 11;
+ * @param string $var
+ * @return $this
+ */
+ public function setDescription($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->description = $var;
+
+ return $this;
+ }
+
+}
+
diff --git a/Container/src/V1/UpgradeInfoEvent/State.php b/Container/src/V1/UpgradeInfoEvent/State.php
new file mode 100644
index 000000000000..c3a520cdf1d5
--- /dev/null
+++ b/Container/src/V1/UpgradeInfoEvent/State.php
@@ -0,0 +1,76 @@
+google.container.v1.UpgradeInfoEvent.State
+ */
+class State
+{
+ /**
+ * STATE_UNSPECIFIED indicates the state is unspecified.
+ *
+ * Generated from protobuf enum STATE_UNSPECIFIED = 0;
+ */
+ const STATE_UNSPECIFIED = 0;
+ /**
+ * STARTED indicates the upgrade has started.
+ *
+ * Generated from protobuf enum STARTED = 3;
+ */
+ const STARTED = 3;
+ /**
+ * SUCCEEDED indicates the upgrade has completed successfully.
+ *
+ * Generated from protobuf enum SUCCEEDED = 4;
+ */
+ const SUCCEEDED = 4;
+ /**
+ * FAILED indicates the upgrade has failed.
+ *
+ * Generated from protobuf enum FAILED = 5;
+ */
+ const FAILED = 5;
+ /**
+ * CANCELED indicates the upgrade has canceled.
+ *
+ * Generated from protobuf enum CANCELED = 6;
+ */
+ const CANCELED = 6;
+
+ private static $valueToName = [
+ self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED',
+ self::STARTED => 'STARTED',
+ self::SUCCEEDED => 'SUCCEEDED',
+ self::FAILED => 'FAILED',
+ self::CANCELED => 'CANCELED',
+ ];
+
+ public static function name($value)
+ {
+ if (!isset(self::$valueToName[$value])) {
+ throw new UnexpectedValueException(sprintf(
+ 'Enum %s has no name defined for value %s', __CLASS__, $value));
+ }
+ return self::$valueToName[$value];
+ }
+
+
+ public static function value($name)
+ {
+ $const = __CLASS__ . '::' . strtoupper($name);
+ if (!defined($const)) {
+ throw new UnexpectedValueException(sprintf(
+ 'Enum %s has no value defined for name %s', __CLASS__, $name));
+ }
+ return constant($const);
+ }
+}
+
+