diff --git a/Container/metadata/V1/ClusterService.php b/Container/metadata/V1/ClusterService.php index d1ea00507ec2..1d3d9cc9b87b 100644 Binary files a/Container/metadata/V1/ClusterService.php and b/Container/metadata/V1/ClusterService.php differ diff --git a/Container/src/V1/AdvancedMachineFeatures.php b/Container/src/V1/AdvancedMachineFeatures.php index 9bbb87ca6435..08fe71546397 100644 --- a/Container/src/V1/AdvancedMachineFeatures.php +++ b/Container/src/V1/AdvancedMachineFeatures.php @@ -23,6 +23,12 @@ class AdvancedMachineFeatures extends \Google\Protobuf\Internal\Message * Generated from protobuf field optional int64 threads_per_core = 1; */ private $threads_per_core = null; + /** + * Whether or not to enable nested virtualization (defaults to false). + * + * Generated from protobuf field optional bool enable_nested_virtualization = 2; + */ + private $enable_nested_virtualization = null; /** * Constructor. @@ -34,6 +40,8 @@ class AdvancedMachineFeatures extends \Google\Protobuf\Internal\Message * The number of threads per physical core. To disable simultaneous * multithreading (SMT) set this to 1. If unset, the maximum number of threads * supported per core by the underlying processor is assumed. + * @type bool $enable_nested_virtualization + * Whether or not to enable nested virtualization (defaults to false). * } */ public function __construct($data = NULL) { @@ -81,5 +89,41 @@ public function setThreadsPerCore($var) return $this; } + /** + * Whether or not to enable nested virtualization (defaults to false). + * + * Generated from protobuf field optional bool enable_nested_virtualization = 2; + * @return bool + */ + public function getEnableNestedVirtualization() + { + return isset($this->enable_nested_virtualization) ? $this->enable_nested_virtualization : false; + } + + public function hasEnableNestedVirtualization() + { + return isset($this->enable_nested_virtualization); + } + + public function clearEnableNestedVirtualization() + { + unset($this->enable_nested_virtualization); + } + + /** + * Whether or not to enable nested virtualization (defaults to false). + * + * Generated from protobuf field optional bool enable_nested_virtualization = 2; + * @param bool $var + * @return $this + */ + public function setEnableNestedVirtualization($var) + { + GPBUtil::checkBool($var); + $this->enable_nested_virtualization = $var; + + return $this; + } + } diff --git a/Container/src/V1/Cluster.php b/Container/src/V1/Cluster.php index d49351ecef09..21e28bdd7446 100644 --- a/Container/src/V1/Cluster.php +++ b/Container/src/V1/Cluster.php @@ -543,6 +543,18 @@ class Cluster extends \Google\Protobuf\Internal\Message * Generated from protobuf field .google.container.v1.EnterpriseConfig enterprise_config = 149; */ private $enterprise_config = null; + /** + * Output only. Reserved for future use. + * + * Generated from protobuf field optional bool satisfies_pzs = 152 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $satisfies_pzs = null; + /** + * Output only. Reserved for future use. + * + * Generated from protobuf field optional bool satisfies_pzi = 153 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $satisfies_pzi = null; /** * Constructor. @@ -803,6 +815,10 @@ class Cluster extends \Google\Protobuf\Internal\Message * Beta APIs Config * @type \Google\Cloud\Container\V1\EnterpriseConfig $enterprise_config * GKE Enterprise Configuration. + * @type bool $satisfies_pzs + * Output only. Reserved for future use. + * @type bool $satisfies_pzi + * Output only. Reserved for future use. * } */ public function __construct($data = NULL) { @@ -3160,5 +3176,77 @@ public function setEnterpriseConfig($var) return $this; } + /** + * Output only. Reserved for future use. + * + * Generated from protobuf field optional bool satisfies_pzs = 152 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getSatisfiesPzs() + { + return isset($this->satisfies_pzs) ? $this->satisfies_pzs : false; + } + + public function hasSatisfiesPzs() + { + return isset($this->satisfies_pzs); + } + + public function clearSatisfiesPzs() + { + unset($this->satisfies_pzs); + } + + /** + * Output only. Reserved for future use. + * + * Generated from protobuf field optional bool satisfies_pzs = 152 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setSatisfiesPzs($var) + { + GPBUtil::checkBool($var); + $this->satisfies_pzs = $var; + + return $this; + } + + /** + * Output only. Reserved for future use. + * + * Generated from protobuf field optional bool satisfies_pzi = 153 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getSatisfiesPzi() + { + return isset($this->satisfies_pzi) ? $this->satisfies_pzi : false; + } + + public function hasSatisfiesPzi() + { + return isset($this->satisfies_pzi); + } + + public function clearSatisfiesPzi() + { + unset($this->satisfies_pzi); + } + + /** + * Output only. Reserved for future use. + * + * Generated from protobuf field optional bool satisfies_pzi = 153 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setSatisfiesPzi($var) + { + GPBUtil::checkBool($var); + $this->satisfies_pzi = $var; + + return $this; + } + } diff --git a/Container/src/V1/ClusterUpdate.php b/Container/src/V1/ClusterUpdate.php index fafade884efd..293cc070cb3a 100644 --- a/Container/src/V1/ClusterUpdate.php +++ b/Container/src/V1/ClusterUpdate.php @@ -169,7 +169,12 @@ class ClusterUpdate extends \Google\Protobuf\Internal\Message */ private $desired_vertical_pod_autoscaling = null; /** - * The desired private cluster configuration. + * The desired private cluster configuration. master_global_access_config is + * the only field that can be changed via this field. + * See also + * [ClusterUpdate.desired_enable_private_endpoint][google.container.v1.ClusterUpdate.desired_enable_private_endpoint] + * for modifying other fields within + * [PrivateClusterConfig][google.container.v1.PrivateClusterConfig]. * * Generated from protobuf field .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; */ @@ -364,6 +369,12 @@ class ClusterUpdate extends \Google\Protobuf\Internal\Message * Generated from protobuf field .google.container.v1.K8sBetaAPIConfig desired_k8s_beta_apis = 131; */ private $desired_k8s_beta_apis = null; + /** + * The desired containerd config for the cluster. + * + * Generated from protobuf field .google.container.v1.ContainerdConfig desired_containerd_config = 134; + */ + private $desired_containerd_config = null; /** * Enable/Disable Multi-Networking for the cluster * @@ -389,6 +400,19 @@ class ClusterUpdate extends \Google\Protobuf\Internal\Message * Generated from protobuf field optional bool desired_enable_cilium_clusterwide_network_policy = 138; */ private $desired_enable_cilium_clusterwide_network_policy = null; + /** + * The desired node kubelet config for the cluster. + * + * Generated from protobuf field .google.container.v1.NodeKubeletConfig desired_node_kubelet_config = 141; + */ + private $desired_node_kubelet_config = null; + /** + * The desired node kubelet config for all auto-provisioned node pools + * in autopilot clusters and node auto-provisioning enabled clusters. + * + * Generated from protobuf field .google.container.v1.NodeKubeletConfig desired_node_pool_auto_config_kubelet_config = 142; + */ + private $desired_node_pool_auto_config_kubelet_config = null; /** * Constructor. @@ -472,7 +496,12 @@ class ClusterUpdate extends \Google\Protobuf\Internal\Message * @type \Google\Cloud\Container\V1\VerticalPodAutoscaling $desired_vertical_pod_autoscaling * Cluster-level Vertical Pod Autoscaling configuration. * @type \Google\Cloud\Container\V1\PrivateClusterConfig $desired_private_cluster_config - * The desired private cluster configuration. + * The desired private cluster configuration. master_global_access_config is + * the only field that can be changed via this field. + * See also + * [ClusterUpdate.desired_enable_private_endpoint][google.container.v1.ClusterUpdate.desired_enable_private_endpoint] + * for modifying other fields within + * [PrivateClusterConfig][google.container.v1.PrivateClusterConfig]. * @type \Google\Cloud\Container\V1\IntraNodeVisibilityConfig $desired_intra_node_visibility_config * The desired config of Intra-node visibility. * @type \Google\Cloud\Container\V1\DefaultSnatStatus $desired_default_snat_status @@ -547,6 +576,8 @@ class ClusterUpdate extends \Google\Protobuf\Internal\Message * The desired workload policy configuration for the autopilot cluster. * @type \Google\Cloud\Container\V1\K8sBetaAPIConfig $desired_k8s_beta_apis * Desired Beta APIs to be enabled for cluster. + * @type \Google\Cloud\Container\V1\ContainerdConfig $desired_containerd_config + * The desired containerd config for the cluster. * @type bool $desired_enable_multi_networking * Enable/Disable Multi-Networking for the cluster * @type \Google\Cloud\Container\V1\ResourceManagerTags $desired_node_pool_auto_config_resource_manager_tags @@ -556,6 +587,11 @@ class ClusterUpdate extends \Google\Protobuf\Internal\Message * Specify the details of in-transit encryption. * @type bool $desired_enable_cilium_clusterwide_network_policy * Enable/Disable Cilium Clusterwide Network Policy for the cluster. + * @type \Google\Cloud\Container\V1\NodeKubeletConfig $desired_node_kubelet_config + * The desired node kubelet config for the cluster. + * @type \Google\Cloud\Container\V1\NodeKubeletConfig $desired_node_pool_auto_config_kubelet_config + * The desired node kubelet config for all auto-provisioned node pools + * in autopilot clusters and node auto-provisioning enabled clusters. * } */ public function __construct($data = NULL) { @@ -1262,7 +1298,12 @@ public function setDesiredVerticalPodAutoscaling($var) } /** - * The desired private cluster configuration. + * The desired private cluster configuration. master_global_access_config is + * the only field that can be changed via this field. + * See also + * [ClusterUpdate.desired_enable_private_endpoint][google.container.v1.ClusterUpdate.desired_enable_private_endpoint] + * for modifying other fields within + * [PrivateClusterConfig][google.container.v1.PrivateClusterConfig]. * * Generated from protobuf field .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; * @return \Google\Cloud\Container\V1\PrivateClusterConfig|null @@ -1283,7 +1324,12 @@ public function clearDesiredPrivateClusterConfig() } /** - * The desired private cluster configuration. + * The desired private cluster configuration. master_global_access_config is + * the only field that can be changed via this field. + * See also + * [ClusterUpdate.desired_enable_private_endpoint][google.container.v1.ClusterUpdate.desired_enable_private_endpoint] + * for modifying other fields within + * [PrivateClusterConfig][google.container.v1.PrivateClusterConfig]. * * Generated from protobuf field .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; * @param \Google\Cloud\Container\V1\PrivateClusterConfig $var @@ -2323,6 +2369,42 @@ public function setDesiredK8SBetaApis($var) return $this; } + /** + * The desired containerd config for the cluster. + * + * Generated from protobuf field .google.container.v1.ContainerdConfig desired_containerd_config = 134; + * @return \Google\Cloud\Container\V1\ContainerdConfig|null + */ + public function getDesiredContainerdConfig() + { + return $this->desired_containerd_config; + } + + public function hasDesiredContainerdConfig() + { + return isset($this->desired_containerd_config); + } + + public function clearDesiredContainerdConfig() + { + unset($this->desired_containerd_config); + } + + /** + * The desired containerd config for the cluster. + * + * Generated from protobuf field .google.container.v1.ContainerdConfig desired_containerd_config = 134; + * @param \Google\Cloud\Container\V1\ContainerdConfig $var + * @return $this + */ + public function setDesiredContainerdConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ContainerdConfig::class); + $this->desired_containerd_config = $var; + + return $this; + } + /** * Enable/Disable Multi-Networking for the cluster * @@ -2469,5 +2551,79 @@ public function setDesiredEnableCiliumClusterwideNetworkPolicy($var) return $this; } + /** + * The desired node kubelet config for the cluster. + * + * Generated from protobuf field .google.container.v1.NodeKubeletConfig desired_node_kubelet_config = 141; + * @return \Google\Cloud\Container\V1\NodeKubeletConfig|null + */ + public function getDesiredNodeKubeletConfig() + { + return $this->desired_node_kubelet_config; + } + + public function hasDesiredNodeKubeletConfig() + { + return isset($this->desired_node_kubelet_config); + } + + public function clearDesiredNodeKubeletConfig() + { + unset($this->desired_node_kubelet_config); + } + + /** + * The desired node kubelet config for the cluster. + * + * Generated from protobuf field .google.container.v1.NodeKubeletConfig desired_node_kubelet_config = 141; + * @param \Google\Cloud\Container\V1\NodeKubeletConfig $var + * @return $this + */ + public function setDesiredNodeKubeletConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodeKubeletConfig::class); + $this->desired_node_kubelet_config = $var; + + return $this; + } + + /** + * The desired node kubelet config for all auto-provisioned node pools + * in autopilot clusters and node auto-provisioning enabled clusters. + * + * Generated from protobuf field .google.container.v1.NodeKubeletConfig desired_node_pool_auto_config_kubelet_config = 142; + * @return \Google\Cloud\Container\V1\NodeKubeletConfig|null + */ + public function getDesiredNodePoolAutoConfigKubeletConfig() + { + return $this->desired_node_pool_auto_config_kubelet_config; + } + + public function hasDesiredNodePoolAutoConfigKubeletConfig() + { + return isset($this->desired_node_pool_auto_config_kubelet_config); + } + + public function clearDesiredNodePoolAutoConfigKubeletConfig() + { + unset($this->desired_node_pool_auto_config_kubelet_config); + } + + /** + * The desired node kubelet config for all auto-provisioned node pools + * in autopilot clusters and node auto-provisioning enabled clusters. + * + * Generated from protobuf field .google.container.v1.NodeKubeletConfig desired_node_pool_auto_config_kubelet_config = 142; + * @param \Google\Cloud\Container\V1\NodeKubeletConfig $var + * @return $this + */ + public function setDesiredNodePoolAutoConfigKubeletConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodeKubeletConfig::class); + $this->desired_node_pool_auto_config_kubelet_config = $var; + + return $this; + } + } diff --git a/Container/src/V1/ContainerdConfig.php b/Container/src/V1/ContainerdConfig.php new file mode 100644 index 000000000000..364fbee8cbc9 --- /dev/null +++ b/Container/src/V1/ContainerdConfig.php @@ -0,0 +1,81 @@ +google.container.v1.ContainerdConfig + */ +class ContainerdConfig extends \Google\Protobuf\Internal\Message +{ + /** + * PrivateRegistryAccessConfig is used to configure access configuration + * for private container registries. + * + * Generated from protobuf field .google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig private_registry_access_config = 1; + */ + private $private_registry_access_config = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Container\V1\ContainerdConfig\PrivateRegistryAccessConfig $private_registry_access_config + * PrivateRegistryAccessConfig is used to configure access configuration + * for private container registries. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * PrivateRegistryAccessConfig is used to configure access configuration + * for private container registries. + * + * Generated from protobuf field .google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig private_registry_access_config = 1; + * @return \Google\Cloud\Container\V1\ContainerdConfig\PrivateRegistryAccessConfig|null + */ + public function getPrivateRegistryAccessConfig() + { + return $this->private_registry_access_config; + } + + public function hasPrivateRegistryAccessConfig() + { + return isset($this->private_registry_access_config); + } + + public function clearPrivateRegistryAccessConfig() + { + unset($this->private_registry_access_config); + } + + /** + * PrivateRegistryAccessConfig is used to configure access configuration + * for private container registries. + * + * Generated from protobuf field .google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig private_registry_access_config = 1; + * @param \Google\Cloud\Container\V1\ContainerdConfig\PrivateRegistryAccessConfig $var + * @return $this + */ + public function setPrivateRegistryAccessConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ContainerdConfig\PrivateRegistryAccessConfig::class); + $this->private_registry_access_config = $var; + + return $this; + } + +} + diff --git a/Container/src/V1/ContainerdConfig/PrivateRegistryAccessConfig.php b/Container/src/V1/ContainerdConfig/PrivateRegistryAccessConfig.php new file mode 100644 index 000000000000..f3d5d3a0aea7 --- /dev/null +++ b/Container/src/V1/ContainerdConfig/PrivateRegistryAccessConfig.php @@ -0,0 +1,105 @@ +google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + */ +class PrivateRegistryAccessConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Private registry access is enabled. + * + * Generated from protobuf field bool enabled = 1; + */ + private $enabled = false; + /** + * Private registry access configuration. + * + * Generated from protobuf field repeated .google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig.CertificateAuthorityDomainConfig certificate_authority_domain_config = 2; + */ + private $certificate_authority_domain_config; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $enabled + * Private registry access is enabled. + * @type array<\Google\Cloud\Container\V1\ContainerdConfig\PrivateRegistryAccessConfig\CertificateAuthorityDomainConfig>|\Google\Protobuf\Internal\RepeatedField $certificate_authority_domain_config + * Private registry access configuration. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Private registry access is enabled. + * + * Generated from protobuf field bool enabled = 1; + * @return bool + */ + public function getEnabled() + { + return $this->enabled; + } + + /** + * Private registry access is enabled. + * + * Generated from protobuf field bool enabled = 1; + * @param bool $var + * @return $this + */ + public function setEnabled($var) + { + GPBUtil::checkBool($var); + $this->enabled = $var; + + return $this; + } + + /** + * Private registry access configuration. + * + * Generated from protobuf field repeated .google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig.CertificateAuthorityDomainConfig certificate_authority_domain_config = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getCertificateAuthorityDomainConfig() + { + return $this->certificate_authority_domain_config; + } + + /** + * Private registry access configuration. + * + * Generated from protobuf field repeated .google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig.CertificateAuthorityDomainConfig certificate_authority_domain_config = 2; + * @param array<\Google\Cloud\Container\V1\ContainerdConfig\PrivateRegistryAccessConfig\CertificateAuthorityDomainConfig>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setCertificateAuthorityDomainConfig($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\ContainerdConfig\PrivateRegistryAccessConfig\CertificateAuthorityDomainConfig::class); + $this->certificate_authority_domain_config = $arr; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(PrivateRegistryAccessConfig::class, \Google\Cloud\Container\V1\ContainerdConfig_PrivateRegistryAccessConfig::class); + diff --git a/Container/src/V1/ContainerdConfig/PrivateRegistryAccessConfig/CertificateAuthorityDomainConfig.php b/Container/src/V1/ContainerdConfig/PrivateRegistryAccessConfig/CertificateAuthorityDomainConfig.php new file mode 100644 index 000000000000..9e22533515ee --- /dev/null +++ b/Container/src/V1/ContainerdConfig/PrivateRegistryAccessConfig/CertificateAuthorityDomainConfig.php @@ -0,0 +1,133 @@ +google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig.CertificateAuthorityDomainConfig + */ +class CertificateAuthorityDomainConfig extends \Google\Protobuf\Internal\Message +{ + /** + * List of fully qualified domain names (FQDN). + * Specifying port is supported. + * Wilcards are NOT supported. + * Examples: + * - my.customdomain.com + * - 10.0.1.2:5000 + * + * Generated from protobuf field repeated string fqdns = 1; + */ + private $fqdns; + protected $certificate_config; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\RepeatedField $fqdns + * List of fully qualified domain names (FQDN). + * Specifying port is supported. + * Wilcards are NOT supported. + * Examples: + * - my.customdomain.com + * - 10.0.1.2:5000 + * @type \Google\Cloud\Container\V1\ContainerdConfig\PrivateRegistryAccessConfig\CertificateAuthorityDomainConfig\GCPSecretManagerCertificateConfig $gcp_secret_manager_certificate_config + * Google Secret Manager (GCP) certificate configuration. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * List of fully qualified domain names (FQDN). + * Specifying port is supported. + * Wilcards are NOT supported. + * Examples: + * - my.customdomain.com + * - 10.0.1.2:5000 + * + * Generated from protobuf field repeated string fqdns = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getFqdns() + { + return $this->fqdns; + } + + /** + * List of fully qualified domain names (FQDN). + * Specifying port is supported. + * Wilcards are NOT supported. + * Examples: + * - my.customdomain.com + * - 10.0.1.2:5000 + * + * Generated from protobuf field repeated string fqdns = 1; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setFqdns($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->fqdns = $arr; + + return $this; + } + + /** + * Google Secret Manager (GCP) certificate configuration. + * + * Generated from protobuf field .google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig.CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig gcp_secret_manager_certificate_config = 2; + * @return \Google\Cloud\Container\V1\ContainerdConfig\PrivateRegistryAccessConfig\CertificateAuthorityDomainConfig\GCPSecretManagerCertificateConfig|null + */ + public function getGcpSecretManagerCertificateConfig() + { + return $this->readOneof(2); + } + + public function hasGcpSecretManagerCertificateConfig() + { + return $this->hasOneof(2); + } + + /** + * Google Secret Manager (GCP) certificate configuration. + * + * Generated from protobuf field .google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig.CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig gcp_secret_manager_certificate_config = 2; + * @param \Google\Cloud\Container\V1\ContainerdConfig\PrivateRegistryAccessConfig\CertificateAuthorityDomainConfig\GCPSecretManagerCertificateConfig $var + * @return $this + */ + public function setGcpSecretManagerCertificateConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ContainerdConfig\PrivateRegistryAccessConfig\CertificateAuthorityDomainConfig\GCPSecretManagerCertificateConfig::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * @return string + */ + public function getCertificateConfig() + { + return $this->whichOneof("certificate_config"); + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(CertificateAuthorityDomainConfig::class, \Google\Cloud\Container\V1\ContainerdConfig_PrivateRegistryAccessConfig_CertificateAuthorityDomainConfig::class); + diff --git a/Container/src/V1/ContainerdConfig/PrivateRegistryAccessConfig/CertificateAuthorityDomainConfig/GCPSecretManagerCertificateConfig.php b/Container/src/V1/ContainerdConfig/PrivateRegistryAccessConfig/CertificateAuthorityDomainConfig/GCPSecretManagerCertificateConfig.php new file mode 100644 index 000000000000..56f0b109db32 --- /dev/null +++ b/Container/src/V1/ContainerdConfig/PrivateRegistryAccessConfig/CertificateAuthorityDomainConfig/GCPSecretManagerCertificateConfig.php @@ -0,0 +1,79 @@ +google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig.CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig + */ +class GCPSecretManagerCertificateConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Secret URI, in the form + * "projects/$PROJECT_ID/secrets/$SECRET_NAME/versions/$VERSION". + * Version can be fixed (e.g. "2") or "latest" + * + * Generated from protobuf field string secret_uri = 1; + */ + private $secret_uri = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $secret_uri + * Secret URI, in the form + * "projects/$PROJECT_ID/secrets/$SECRET_NAME/versions/$VERSION". + * Version can be fixed (e.g. "2") or "latest" + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Secret URI, in the form + * "projects/$PROJECT_ID/secrets/$SECRET_NAME/versions/$VERSION". + * Version can be fixed (e.g. "2") or "latest" + * + * Generated from protobuf field string secret_uri = 1; + * @return string + */ + public function getSecretUri() + { + return $this->secret_uri; + } + + /** + * Secret URI, in the form + * "projects/$PROJECT_ID/secrets/$SECRET_NAME/versions/$VERSION". + * Version can be fixed (e.g. "2") or "latest" + * + * Generated from protobuf field string secret_uri = 1; + * @param string $var + * @return $this + */ + public function setSecretUri($var) + { + GPBUtil::checkString($var, True); + $this->secret_uri = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(GCPSecretManagerCertificateConfig::class, \Google\Cloud\Container\V1\ContainerdConfig_PrivateRegistryAccessConfig_CertificateAuthorityDomainConfig_GCPSecretManagerCertificateConfig::class); + diff --git a/Container/src/V1/DNSConfig.php b/Container/src/V1/DNSConfig.php index 75df21a17c3e..d47492e08354 100644 --- a/Container/src/V1/DNSConfig.php +++ b/Container/src/V1/DNSConfig.php @@ -33,6 +33,12 @@ class DNSConfig extends \Google\Protobuf\Internal\Message * Generated from protobuf field string cluster_dns_domain = 3; */ private $cluster_dns_domain = ''; + /** + * Optional. The domain used in Additive VPC scope. + * + * Generated from protobuf field string additive_vpc_scope_dns_domain = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $additive_vpc_scope_dns_domain = ''; /** * Constructor. @@ -46,6 +52,8 @@ class DNSConfig extends \Google\Protobuf\Internal\Message * cluster_dns_scope indicates the scope of access to cluster DNS records. * @type string $cluster_dns_domain * cluster_dns_domain is the suffix used for all cluster service records. + * @type string $additive_vpc_scope_dns_domain + * Optional. The domain used in Additive VPC scope. * } */ public function __construct($data = NULL) { @@ -131,5 +139,31 @@ public function setClusterDnsDomain($var) return $this; } + /** + * Optional. The domain used in Additive VPC scope. + * + * Generated from protobuf field string additive_vpc_scope_dns_domain = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getAdditiveVpcScopeDnsDomain() + { + return $this->additive_vpc_scope_dns_domain; + } + + /** + * Optional. The domain used in Additive VPC scope. + * + * Generated from protobuf field string additive_vpc_scope_dns_domain = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setAdditiveVpcScopeDnsDomain($var) + { + GPBUtil::checkString($var, True); + $this->additive_vpc_scope_dns_domain = $var; + + return $this; + } + } diff --git a/Container/src/V1/GPUSharingConfig/GPUSharingStrategy.php b/Container/src/V1/GPUSharingConfig/GPUSharingStrategy.php index b7c519c60962..5f02af567fdb 100644 --- a/Container/src/V1/GPUSharingConfig/GPUSharingStrategy.php +++ b/Container/src/V1/GPUSharingConfig/GPUSharingStrategy.php @@ -25,10 +25,17 @@ class GPUSharingStrategy * Generated from protobuf enum TIME_SHARING = 1; */ const TIME_SHARING = 1; + /** + * GPUs are shared between containers with NVIDIA MPS. + * + * Generated from protobuf enum MPS = 2; + */ + const MPS = 2; private static $valueToName = [ self::GPU_SHARING_STRATEGY_UNSPECIFIED => 'GPU_SHARING_STRATEGY_UNSPECIFIED', self::TIME_SHARING => 'TIME_SHARING', + self::MPS => 'MPS', ]; public static function name($value) diff --git a/Container/src/V1/Gapic/ClusterManagerGapicClient.php b/Container/src/V1/Gapic/ClusterManagerGapicClient.php index 536476a3a37e..7e777cde9e2b 100644 --- a/Container/src/V1/Gapic/ClusterManagerGapicClient.php +++ b/Container/src/V1/Gapic/ClusterManagerGapicClient.php @@ -33,6 +33,7 @@ use Google\ApiCore\Transport\TransportInterface; use Google\ApiCore\ValidationException; use Google\Auth\FetchAuthTokenInterface; +use Google\Cloud\Container\V1\AcceleratorConfig; use Google\Cloud\Container\V1\AddonsConfig; use Google\Cloud\Container\V1\CancelOperationRequest; use Google\Cloud\Container\V1\CheckAutopilotCompatibilityRequest; @@ -42,6 +43,7 @@ use Google\Cloud\Container\V1\CompleteIPRotationRequest; use Google\Cloud\Container\V1\CompleteNodePoolUpgradeRequest; use Google\Cloud\Container\V1\ConfidentialNodes; +use Google\Cloud\Container\V1\ContainerdConfig; use Google\Cloud\Container\V1\CreateClusterRequest; use Google\Cloud\Container\V1\CreateNodePoolRequest; use Google\Cloud\Container\V1\DeleteClusterRequest; @@ -2811,6 +2813,10 @@ public function updateMaster($masterVersion, array $optionalArgs = []) * Google Compute Engine resources. * @type WindowsNodeConfig $windowsNodeConfig * Parameters that can be configured on Windows nodes. + * @type AcceleratorConfig[] $accelerators + * A list of hardware accelerators to be attached to each node. + * See https://cloud.google.com/compute/docs/gpus for more information about + * support for GPUs. * @type string $machineType * Optional. The desired [Google Compute Engine machine * type](https://cloud.google.com/compute/docs/machine-types) for nodes in the @@ -2830,6 +2836,10 @@ public function updateMaster($masterVersion, array $optionalArgs = []) * Desired resource manager tag keys and values to be attached to the nodes * for managing Compute Engine firewalls using Network Firewall Policies. * Existing tags will be replaced with new values. + * @type ContainerdConfig $containerdConfig + * The desired containerd config for nodes in the node pool. + * Initiates an upgrade operation that recreates the nodes with the new + * config. * @type QueuedProvisioning $queuedProvisioning * Specifies the configuration of queued provisioning. * @type RetrySettings|array $retrySettings @@ -2941,6 +2951,10 @@ public function updateNodePool($nodeVersion, $imageType, array $optionalArgs = [ $request->setWindowsNodeConfig($optionalArgs['windowsNodeConfig']); } + if (isset($optionalArgs['accelerators'])) { + $request->setAccelerators($optionalArgs['accelerators']); + } + if (isset($optionalArgs['machineType'])) { $request->setMachineType($optionalArgs['machineType']); } @@ -2957,6 +2971,10 @@ public function updateNodePool($nodeVersion, $imageType, array $optionalArgs = [ $request->setResourceManagerTags($optionalArgs['resourceManagerTags']); } + if (isset($optionalArgs['containerdConfig'])) { + $request->setContainerdConfig($optionalArgs['containerdConfig']); + } + if (isset($optionalArgs['queuedProvisioning'])) { $request->setQueuedProvisioning($optionalArgs['queuedProvisioning']); } diff --git a/Container/src/V1/LinuxNodeConfig.php b/Container/src/V1/LinuxNodeConfig.php index a369164109ff..d42dad43c5f3 100644 --- a/Container/src/V1/LinuxNodeConfig.php +++ b/Container/src/V1/LinuxNodeConfig.php @@ -40,6 +40,12 @@ class LinuxNodeConfig extends \Google\Protobuf\Internal\Message * Generated from protobuf field .google.container.v1.LinuxNodeConfig.CgroupMode cgroup_mode = 2; */ private $cgroup_mode = 0; + /** + * Optional. Amounts for 2M and 1G hugepages + * + * Generated from protobuf field optional .google.container.v1.LinuxNodeConfig.HugepagesConfig hugepages = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $hugepages = null; /** * Constructor. @@ -64,6 +70,8 @@ class LinuxNodeConfig extends \Google\Protobuf\Internal\Message * net.ipv4.tcp_tw_reuse * @type int $cgroup_mode * cgroup_mode specifies the cgroup mode to be used on the node. + * @type \Google\Cloud\Container\V1\LinuxNodeConfig\HugepagesConfig $hugepages + * Optional. Amounts for 2M and 1G hugepages * } */ public function __construct($data = NULL) { @@ -149,5 +157,41 @@ public function setCgroupMode($var) return $this; } + /** + * Optional. Amounts for 2M and 1G hugepages + * + * Generated from protobuf field optional .google.container.v1.LinuxNodeConfig.HugepagesConfig hugepages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Container\V1\LinuxNodeConfig\HugepagesConfig|null + */ + public function getHugepages() + { + return $this->hugepages; + } + + public function hasHugepages() + { + return isset($this->hugepages); + } + + public function clearHugepages() + { + unset($this->hugepages); + } + + /** + * Optional. Amounts for 2M and 1G hugepages + * + * Generated from protobuf field optional .google.container.v1.LinuxNodeConfig.HugepagesConfig hugepages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Container\V1\LinuxNodeConfig\HugepagesConfig $var + * @return $this + */ + public function setHugepages($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\LinuxNodeConfig\HugepagesConfig::class); + $this->hugepages = $var; + + return $this; + } + } diff --git a/Container/src/V1/LinuxNodeConfig/HugepagesConfig.php b/Container/src/V1/LinuxNodeConfig/HugepagesConfig.php new file mode 100644 index 000000000000..b9e8aa04233a --- /dev/null +++ b/Container/src/V1/LinuxNodeConfig/HugepagesConfig.php @@ -0,0 +1,124 @@ +google.container.v1.LinuxNodeConfig.HugepagesConfig + */ +class HugepagesConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Amount of 2M hugepages + * + * Generated from protobuf field optional int32 hugepage_size2m = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $hugepage_size2m = null; + /** + * Optional. Amount of 1G hugepages + * + * Generated from protobuf field optional int32 hugepage_size1g = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $hugepage_size1g = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $hugepage_size2m + * Optional. Amount of 2M hugepages + * @type int $hugepage_size1g + * Optional. Amount of 1G hugepages + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Amount of 2M hugepages + * + * Generated from protobuf field optional int32 hugepage_size2m = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getHugepageSize2M() + { + return isset($this->hugepage_size2m) ? $this->hugepage_size2m : 0; + } + + public function hasHugepageSize2M() + { + return isset($this->hugepage_size2m); + } + + public function clearHugepageSize2M() + { + unset($this->hugepage_size2m); + } + + /** + * Optional. Amount of 2M hugepages + * + * Generated from protobuf field optional int32 hugepage_size2m = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setHugepageSize2M($var) + { + GPBUtil::checkInt32($var); + $this->hugepage_size2m = $var; + + return $this; + } + + /** + * Optional. Amount of 1G hugepages + * + * Generated from protobuf field optional int32 hugepage_size1g = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getHugepageSize1G() + { + return isset($this->hugepage_size1g) ? $this->hugepage_size1g : 0; + } + + public function hasHugepageSize1G() + { + return isset($this->hugepage_size1g); + } + + public function clearHugepageSize1G() + { + unset($this->hugepage_size1g); + } + + /** + * Optional. Amount of 1G hugepages + * + * Generated from protobuf field optional int32 hugepage_size1g = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setHugepageSize1G($var) + { + GPBUtil::checkInt32($var); + $this->hugepage_size1g = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(HugepagesConfig::class, \Google\Cloud\Container\V1\LinuxNodeConfig_HugepagesConfig::class); + diff --git a/Container/src/V1/MonitoringComponentConfig/Component.php b/Container/src/V1/MonitoringComponentConfig/Component.php index afcbfb191c68..0882617a731d 100644 --- a/Container/src/V1/MonitoringComponentConfig/Component.php +++ b/Container/src/V1/MonitoringComponentConfig/Component.php @@ -79,6 +79,18 @@ class Component * Generated from protobuf enum STATEFULSET = 12; */ const STATEFULSET = 12; + /** + * CADVISOR + * + * Generated from protobuf enum CADVISOR = 13; + */ + const CADVISOR = 13; + /** + * KUBELET + * + * Generated from protobuf enum KUBELET = 14; + */ + const KUBELET = 14; private static $valueToName = [ self::COMPONENT_UNSPECIFIED => 'COMPONENT_UNSPECIFIED', @@ -92,6 +104,8 @@ class Component self::DAEMONSET => 'DAEMONSET', self::DEPLOYMENT => 'DEPLOYMENT', self::STATEFULSET => 'STATEFULSET', + self::CADVISOR => 'CADVISOR', + self::KUBELET => 'KUBELET', ]; public static function name($value) diff --git a/Container/src/V1/NetworkConfig.php b/Container/src/V1/NetworkConfig.php index 318e9bb254c5..48ea018b3dac 100644 --- a/Container/src/V1/NetworkConfig.php +++ b/Container/src/V1/NetworkConfig.php @@ -110,6 +110,7 @@ class NetworkConfig extends \Google\Protobuf\Internal\Message private $enable_fqdn_network_policy = null; /** * Specify the details of in-transit encryption. + * Now named inter-node transparent encryption. * * Generated from protobuf field optional .google.container.v1.InTransitEncryptionConfig in_transit_encryption_config = 20; */ @@ -170,6 +171,7 @@ class NetworkConfig extends \Google\Protobuf\Internal\Message * Whether FQDN Network Policy is enabled on this cluster. * @type int $in_transit_encryption_config * Specify the details of in-transit encryption. + * Now named inter-node transparent encryption. * @type bool $enable_cilium_clusterwide_network_policy * Whether CiliumClusterwideNetworkPolicy is enabled on this cluster. * } @@ -609,6 +611,7 @@ public function setEnableFqdnNetworkPolicy($var) /** * Specify the details of in-transit encryption. + * Now named inter-node transparent encryption. * * Generated from protobuf field optional .google.container.v1.InTransitEncryptionConfig in_transit_encryption_config = 20; * @return int @@ -630,6 +633,7 @@ public function clearInTransitEncryptionConfig() /** * Specify the details of in-transit encryption. + * Now named inter-node transparent encryption. * * Generated from protobuf field optional .google.container.v1.InTransitEncryptionConfig in_transit_encryption_config = 20; * @param int $var diff --git a/Container/src/V1/NodeConfig.php b/Container/src/V1/NodeConfig.php index 679d8545f32a..867619014af8 100644 --- a/Container/src/V1/NodeConfig.php +++ b/Container/src/V1/NodeConfig.php @@ -313,6 +313,12 @@ class NodeConfig extends \Google\Protobuf\Internal\Message * Generated from protobuf field .google.container.v1.SoleTenantConfig sole_tenant_config = 42; */ private $sole_tenant_config = null; + /** + * Parameters for containerd customization. + * + * Generated from protobuf field .google.container.v1.ContainerdConfig containerd_config = 43; + */ + private $containerd_config = null; /** * A map of resource manager tag keys and values to be attached to the nodes. * @@ -502,6 +508,8 @@ class NodeConfig extends \Google\Protobuf\Internal\Message * If unspecified, ephemeral storage is backed by the boot disk. * @type \Google\Cloud\Container\V1\SoleTenantConfig $sole_tenant_config * Parameters for node pools to be backed by shared sole tenant node groups. + * @type \Google\Cloud\Container\V1\ContainerdConfig $containerd_config + * Parameters for containerd customization. * @type \Google\Cloud\Container\V1\ResourceManagerTags $resource_manager_tags * A map of resource manager tag keys and values to be attached to the nodes. * @type bool $enable_confidential_storage @@ -1741,6 +1749,42 @@ public function setSoleTenantConfig($var) return $this; } + /** + * Parameters for containerd customization. + * + * Generated from protobuf field .google.container.v1.ContainerdConfig containerd_config = 43; + * @return \Google\Cloud\Container\V1\ContainerdConfig|null + */ + public function getContainerdConfig() + { + return $this->containerd_config; + } + + public function hasContainerdConfig() + { + return isset($this->containerd_config); + } + + public function clearContainerdConfig() + { + unset($this->containerd_config); + } + + /** + * Parameters for containerd customization. + * + * Generated from protobuf field .google.container.v1.ContainerdConfig containerd_config = 43; + * @param \Google\Cloud\Container\V1\ContainerdConfig $var + * @return $this + */ + public function setContainerdConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ContainerdConfig::class); + $this->containerd_config = $var; + + return $this; + } + /** * A map of resource manager tag keys and values to be attached to the nodes. * diff --git a/Container/src/V1/NodeConfigDefaults.php b/Container/src/V1/NodeConfigDefaults.php index 4780dc6ffa96..7dc29c1760c6 100644 --- a/Container/src/V1/NodeConfigDefaults.php +++ b/Container/src/V1/NodeConfigDefaults.php @@ -27,6 +27,19 @@ class NodeConfigDefaults extends \Google\Protobuf\Internal\Message * Generated from protobuf field .google.container.v1.NodePoolLoggingConfig logging_config = 3; */ private $logging_config = null; + /** + * Parameters for containerd customization. + * + * Generated from protobuf field .google.container.v1.ContainerdConfig containerd_config = 4; + */ + private $containerd_config = null; + /** + * NodeKubeletConfig controls the defaults for new node-pools. + * Currently only `insecure_kubelet_readonly_port_enabled` can be set here. + * + * Generated from protobuf field .google.container.v1.NodeKubeletConfig node_kubelet_config = 6; + */ + private $node_kubelet_config = null; /** * Constructor. @@ -38,6 +51,11 @@ class NodeConfigDefaults extends \Google\Protobuf\Internal\Message * GCFS (Google Container File System, also known as Riptide) options. * @type \Google\Cloud\Container\V1\NodePoolLoggingConfig $logging_config * Logging configuration for node pools. + * @type \Google\Cloud\Container\V1\ContainerdConfig $containerd_config + * Parameters for containerd customization. + * @type \Google\Cloud\Container\V1\NodeKubeletConfig $node_kubelet_config + * NodeKubeletConfig controls the defaults for new node-pools. + * Currently only `insecure_kubelet_readonly_port_enabled` can be set here. * } */ public function __construct($data = NULL) { @@ -117,5 +135,79 @@ public function setLoggingConfig($var) return $this; } + /** + * Parameters for containerd customization. + * + * Generated from protobuf field .google.container.v1.ContainerdConfig containerd_config = 4; + * @return \Google\Cloud\Container\V1\ContainerdConfig|null + */ + public function getContainerdConfig() + { + return $this->containerd_config; + } + + public function hasContainerdConfig() + { + return isset($this->containerd_config); + } + + public function clearContainerdConfig() + { + unset($this->containerd_config); + } + + /** + * Parameters for containerd customization. + * + * Generated from protobuf field .google.container.v1.ContainerdConfig containerd_config = 4; + * @param \Google\Cloud\Container\V1\ContainerdConfig $var + * @return $this + */ + public function setContainerdConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ContainerdConfig::class); + $this->containerd_config = $var; + + return $this; + } + + /** + * NodeKubeletConfig controls the defaults for new node-pools. + * Currently only `insecure_kubelet_readonly_port_enabled` can be set here. + * + * Generated from protobuf field .google.container.v1.NodeKubeletConfig node_kubelet_config = 6; + * @return \Google\Cloud\Container\V1\NodeKubeletConfig|null + */ + public function getNodeKubeletConfig() + { + return $this->node_kubelet_config; + } + + public function hasNodeKubeletConfig() + { + return isset($this->node_kubelet_config); + } + + public function clearNodeKubeletConfig() + { + unset($this->node_kubelet_config); + } + + /** + * NodeKubeletConfig controls the defaults for new node-pools. + * Currently only `insecure_kubelet_readonly_port_enabled` can be set here. + * + * Generated from protobuf field .google.container.v1.NodeKubeletConfig node_kubelet_config = 6; + * @param \Google\Cloud\Container\V1\NodeKubeletConfig $var + * @return $this + */ + public function setNodeKubeletConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodeKubeletConfig::class); + $this->node_kubelet_config = $var; + + return $this; + } + } diff --git a/Container/src/V1/NodePoolAutoConfig.php b/Container/src/V1/NodePoolAutoConfig.php index 8686148420c3..08bab92e1010 100644 --- a/Container/src/V1/NodePoolAutoConfig.php +++ b/Container/src/V1/NodePoolAutoConfig.php @@ -32,6 +32,13 @@ class NodePoolAutoConfig extends \Google\Protobuf\Internal\Message * Generated from protobuf field .google.container.v1.ResourceManagerTags resource_manager_tags = 2; */ private $resource_manager_tags = null; + /** + * NodeKubeletConfig controls the defaults for autoprovisioned node-pools. + * Currently only `insecure_kubelet_readonly_port_enabled` can be set here. + * + * Generated from protobuf field .google.container.v1.NodeKubeletConfig node_kubelet_config = 3; + */ + private $node_kubelet_config = null; /** * Constructor. @@ -47,6 +54,9 @@ class NodePoolAutoConfig extends \Google\Protobuf\Internal\Message * @type \Google\Cloud\Container\V1\ResourceManagerTags $resource_manager_tags * Resource manager tag keys and values to be attached to the nodes * for managing Compute Engine firewalls using Network Firewall Policies. + * @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. * } */ public function __construct($data = NULL) { @@ -134,5 +144,43 @@ public function setResourceManagerTags($var) return $this; } + /** + * NodeKubeletConfig controls the defaults for autoprovisioned node-pools. + * Currently only `insecure_kubelet_readonly_port_enabled` can be set here. + * + * Generated from protobuf field .google.container.v1.NodeKubeletConfig node_kubelet_config = 3; + * @return \Google\Cloud\Container\V1\NodeKubeletConfig|null + */ + public function getNodeKubeletConfig() + { + return $this->node_kubelet_config; + } + + public function hasNodeKubeletConfig() + { + return isset($this->node_kubelet_config); + } + + public function clearNodeKubeletConfig() + { + unset($this->node_kubelet_config); + } + + /** + * NodeKubeletConfig controls the defaults for autoprovisioned node-pools. + * Currently only `insecure_kubelet_readonly_port_enabled` can be set here. + * + * Generated from protobuf field .google.container.v1.NodeKubeletConfig node_kubelet_config = 3; + * @param \Google\Cloud\Container\V1\NodeKubeletConfig $var + * @return $this + */ + public function setNodeKubeletConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodeKubeletConfig::class); + $this->node_kubelet_config = $var; + + return $this; + } + } diff --git a/Container/src/V1/SecurityPostureConfig/Mode.php b/Container/src/V1/SecurityPostureConfig/Mode.php index 4175f3bae536..ee855449d84f 100644 --- a/Container/src/V1/SecurityPostureConfig/Mode.php +++ b/Container/src/V1/SecurityPostureConfig/Mode.php @@ -31,11 +31,18 @@ class Mode * Generated from protobuf enum BASIC = 2; */ const BASIC = 2; + /** + * Applies the Security Posture off cluster Enterprise level features. + * + * Generated from protobuf enum ENTERPRISE = 3; + */ + const ENTERPRISE = 3; private static $valueToName = [ self::MODE_UNSPECIFIED => 'MODE_UNSPECIFIED', self::DISABLED => 'DISABLED', self::BASIC => 'BASIC', + self::ENTERPRISE => 'ENTERPRISE', ]; public static function name($value) diff --git a/Container/src/V1/UpdateNodePoolRequest.php b/Container/src/V1/UpdateNodePoolRequest.php index f7634379bcc4..64e098bd3f2c 100644 --- a/Container/src/V1/UpdateNodePoolRequest.php +++ b/Container/src/V1/UpdateNodePoolRequest.php @@ -196,6 +196,14 @@ class UpdateNodePoolRequest extends \Google\Protobuf\Internal\Message * Generated from protobuf field .google.container.v1.WindowsNodeConfig windows_node_config = 34; */ private $windows_node_config = null; + /** + * A list of hardware accelerators to be attached to each node. + * See https://cloud.google.com/compute/docs/gpus for more information about + * support for GPUs. + * + * Generated from protobuf field repeated .google.container.v1.AcceleratorConfig accelerators = 35; + */ + private $accelerators; /** * Optional. The desired [Google Compute Engine machine * type](https://cloud.google.com/compute/docs/machine-types) for nodes in the @@ -231,6 +239,14 @@ class UpdateNodePoolRequest extends \Google\Protobuf\Internal\Message * Generated from protobuf field .google.container.v1.ResourceManagerTags resource_manager_tags = 39; */ private $resource_manager_tags = null; + /** + * The desired containerd config for nodes in the node pool. + * Initiates an upgrade operation that recreates the nodes with the new + * config. + * + * Generated from protobuf field .google.container.v1.ContainerdConfig containerd_config = 40; + */ + private $containerd_config = null; /** * Specifies the configuration of queued provisioning. * @@ -325,6 +341,10 @@ class UpdateNodePoolRequest extends \Google\Protobuf\Internal\Message * Google Compute Engine resources. * @type \Google\Cloud\Container\V1\WindowsNodeConfig $windows_node_config * Parameters that can be configured on Windows nodes. + * @type array<\Google\Cloud\Container\V1\AcceleratorConfig>|\Google\Protobuf\Internal\RepeatedField $accelerators + * A list of hardware accelerators to be attached to each node. + * See https://cloud.google.com/compute/docs/gpus for more information about + * support for GPUs. * @type string $machine_type * Optional. The desired [Google Compute Engine machine * type](https://cloud.google.com/compute/docs/machine-types) for nodes in the @@ -344,6 +364,10 @@ class UpdateNodePoolRequest extends \Google\Protobuf\Internal\Message * Desired resource manager tag keys and values to be attached to the nodes * for managing Compute Engine firewalls using Network Firewall Policies. * Existing tags will be replaced with new values. + * @type \Google\Cloud\Container\V1\ContainerdConfig $containerd_config + * The desired containerd config for nodes in the node pool. + * Initiates an upgrade operation that recreates the nodes with the new + * config. * @type \Google\Cloud\Container\V1\NodePool\QueuedProvisioning $queued_provisioning * Specifies the configuration of queued provisioning. * } @@ -1209,6 +1233,36 @@ public function setWindowsNodeConfig($var) return $this; } + /** + * A list of hardware accelerators to be attached to each node. + * See https://cloud.google.com/compute/docs/gpus for more information about + * support for GPUs. + * + * Generated from protobuf field repeated .google.container.v1.AcceleratorConfig accelerators = 35; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAccelerators() + { + return $this->accelerators; + } + + /** + * A list of hardware accelerators to be attached to each node. + * See https://cloud.google.com/compute/docs/gpus for more information about + * support for GPUs. + * + * Generated from protobuf field repeated .google.container.v1.AcceleratorConfig accelerators = 35; + * @param array<\Google\Cloud\Container\V1\AcceleratorConfig>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAccelerators($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\AcceleratorConfig::class); + $this->accelerators = $arr; + + return $this; + } + /** * Optional. The desired [Google Compute Engine machine * type](https://cloud.google.com/compute/docs/machine-types) for nodes in the @@ -1345,6 +1399,46 @@ public function setResourceManagerTags($var) return $this; } + /** + * The desired containerd config for nodes in the node pool. + * Initiates an upgrade operation that recreates the nodes with the new + * config. + * + * Generated from protobuf field .google.container.v1.ContainerdConfig containerd_config = 40; + * @return \Google\Cloud\Container\V1\ContainerdConfig|null + */ + public function getContainerdConfig() + { + return $this->containerd_config; + } + + public function hasContainerdConfig() + { + return isset($this->containerd_config); + } + + public function clearContainerdConfig() + { + unset($this->containerd_config); + } + + /** + * The desired containerd config for nodes in the node pool. + * Initiates an upgrade operation that recreates the nodes with the new + * config. + * + * Generated from protobuf field .google.container.v1.ContainerdConfig containerd_config = 40; + * @param \Google\Cloud\Container\V1\ContainerdConfig $var + * @return $this + */ + public function setContainerdConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ContainerdConfig::class); + $this->containerd_config = $var; + + return $this; + } + /** * Specifies the configuration of queued provisioning. * diff --git a/Container/tests/Unit/V1/Client/ClusterManagerClientTest.php b/Container/tests/Unit/V1/Client/ClusterManagerClientTest.php index 793bc0ac34d3..4197afa1a6e5 100644 --- a/Container/tests/Unit/V1/Client/ClusterManagerClientTest.php +++ b/Container/tests/Unit/V1/Client/ClusterManagerClientTest.php @@ -685,6 +685,8 @@ public function getClusterTest() $tpuIpv4CidrBlock = 'tpuIpv4CidrBlock1137906646'; $id = 'id3355'; $etag = 'etag3123477'; + $satisfiesPzs = false; + $satisfiesPzi = false; $expectedResponse = new Cluster(); $expectedResponse->setName($name2); $expectedResponse->setDescription($description); @@ -713,6 +715,8 @@ public function getClusterTest() $expectedResponse->setTpuIpv4CidrBlock($tpuIpv4CidrBlock); $expectedResponse->setId($id); $expectedResponse->setEtag($etag); + $expectedResponse->setSatisfiesPzs($satisfiesPzs); + $expectedResponse->setSatisfiesPzi($satisfiesPzi); $transport->addResponse($expectedResponse); $request = new GetClusterRequest(); $response = $gapicClient->getCluster($request); diff --git a/Container/tests/Unit/V1/ClusterManagerClientTest.php b/Container/tests/Unit/V1/ClusterManagerClientTest.php index 1689208db7a5..e7fcf8407318 100644 --- a/Container/tests/Unit/V1/ClusterManagerClientTest.php +++ b/Container/tests/Unit/V1/ClusterManagerClientTest.php @@ -632,6 +632,8 @@ public function getClusterTest() $tpuIpv4CidrBlock = 'tpuIpv4CidrBlock1137906646'; $id = 'id3355'; $etag = 'etag3123477'; + $satisfiesPzs = false; + $satisfiesPzi = false; $expectedResponse = new Cluster(); $expectedResponse->setName($name2); $expectedResponse->setDescription($description); @@ -660,6 +662,8 @@ public function getClusterTest() $expectedResponse->setTpuIpv4CidrBlock($tpuIpv4CidrBlock); $expectedResponse->setId($id); $expectedResponse->setEtag($etag); + $expectedResponse->setSatisfiesPzs($satisfiesPzs); + $expectedResponse->setSatisfiesPzi($satisfiesPzi); $transport->addResponse($expectedResponse); $response = $gapicClient->getCluster(); $this->assertEquals($expectedResponse, $response);