diff --git a/src/Container/Cluster.php b/src/Container/Cluster.php index a2f40a3db39..6e8f56bbc33 100644 --- a/src/Container/Cluster.php +++ b/src/Container/Cluster.php @@ -331,6 +331,8 @@ class Cluster extends \Google\Collection protected $networkPolicyDataType = ''; protected $nodeConfigType = NodeConfig::class; protected $nodeConfigDataType = ''; + protected $nodeCreationConfigType = NodeCreationConfig::class; + protected $nodeCreationConfigDataType = ''; /** * Output only. The size of the address space on each node for hosting * containers. This is provisioned from within the `container_ipv4_cidr` @@ -1443,6 +1445,22 @@ public function getNodeConfig() { return $this->nodeConfig; } + /** + * Optional. Configuration for Node Creation Mode. + * + * @param NodeCreationConfig $nodeCreationConfig + */ + public function setNodeCreationConfig(NodeCreationConfig $nodeCreationConfig) + { + $this->nodeCreationConfig = $nodeCreationConfig; + } + /** + * @return NodeCreationConfig + */ + public function getNodeCreationConfig() + { + return $this->nodeCreationConfig; + } /** * Output only. The size of the address space on each node for hosting * containers. This is provisioned from within the `container_ipv4_cidr` diff --git a/src/Container/ClusterUpdate.php b/src/Container/ClusterUpdate.php index aeb7db78da9..c10a287f31d 100644 --- a/src/Container/ClusterUpdate.php +++ b/src/Container/ClusterUpdate.php @@ -253,6 +253,8 @@ class ClusterUpdate extends \Google\Collection protected $desiredNetworkPerformanceConfigDataType = ''; protected $desiredNetworkTierConfigType = NetworkTierConfig::class; protected $desiredNetworkTierConfigDataType = ''; + protected $desiredNodeCreationConfigType = NodeCreationConfig::class; + protected $desiredNodeCreationConfigDataType = ''; protected $desiredNodeKubeletConfigType = NodeKubeletConfig::class; protected $desiredNodeKubeletConfigDataType = ''; protected $desiredNodePoolAutoConfigKubeletConfigType = NodeKubeletConfig::class; @@ -1158,6 +1160,22 @@ public function getDesiredNetworkTierConfig() { return $this->desiredNetworkTierConfig; } + /** + * Optional. The desired NodeCreationConfig for the cluster. + * + * @param NodeCreationConfig $desiredNodeCreationConfig + */ + public function setDesiredNodeCreationConfig(NodeCreationConfig $desiredNodeCreationConfig) + { + $this->desiredNodeCreationConfig = $desiredNodeCreationConfig; + } + /** + * @return NodeCreationConfig + */ + public function getDesiredNodeCreationConfig() + { + return $this->desiredNodeCreationConfig; + } /** * The desired node kubelet config for the cluster. * diff --git a/src/Container/ExclusionUntilEndOfSupport.php b/src/Container/ExclusionUntilEndOfSupport.php new file mode 100644 index 00000000000..971c09a0a05 --- /dev/null +++ b/src/Container/ExclusionUntilEndOfSupport.php @@ -0,0 +1,98 @@ +enabled = $enabled; + } + /** + * @return bool + */ + public function getEnabled() + { + return $this->enabled; + } + /** + * Output only. The end time of the maintenance exclusion. It is output only. + * It is the cluster control plane version's end of support time, or end of + * extended support time when the cluster is on extended support channel. + * + * @param string $endTime + */ + public function setEndTime($endTime) + { + $this->endTime = $endTime; + } + /** + * @return string + */ + public function getEndTime() + { + return $this->endTime; + } + /** + * Output only. The start time of the maintenance exclusion. It is output + * only. It is the exclusion creation time. + * + * @param string $startTime + */ + public function setStartTime($startTime) + { + $this->startTime = $startTime; + } + /** + * @return string + */ + public function getStartTime() + { + return $this->startTime; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ExclusionUntilEndOfSupport::class, 'Google_Service_Container_ExclusionUntilEndOfSupport'); diff --git a/src/Container/NodeCreationConfig.php b/src/Container/NodeCreationConfig.php new file mode 100644 index 00000000000..a96d77417d3 --- /dev/null +++ b/src/Container/NodeCreationConfig.php @@ -0,0 +1,63 @@ +nodeCreationMode = $nodeCreationMode; + } + /** + * @return self::NODE_CREATION_MODE_* + */ + public function getNodeCreationMode() + { + return $this->nodeCreationMode; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(NodeCreationConfig::class, 'Google_Service_Container_NodeCreationConfig'); diff --git a/src/Container/NodeDrainConfig.php b/src/Container/NodeDrainConfig.php index 08a76ad1b07..90358fb08a2 100644 --- a/src/Container/NodeDrainConfig.php +++ b/src/Container/NodeDrainConfig.php @@ -19,6 +19,18 @@ class NodeDrainConfig extends \Google\Model { + /** + * The duration of the grace termination period for node drain. + * + * @var string + */ + public $graceTerminationDuration; + /** + * The duration of the PDB timeout period for node drain. + * + * @var string + */ + public $pdbTimeoutDuration; /** * Whether to respect PDB during node pool deletion. * @@ -26,6 +38,38 @@ class NodeDrainConfig extends \Google\Model */ public $respectPdbDuringNodePoolDeletion; + /** + * The duration of the grace termination period for node drain. + * + * @param string $graceTerminationDuration + */ + public function setGraceTerminationDuration($graceTerminationDuration) + { + $this->graceTerminationDuration = $graceTerminationDuration; + } + /** + * @return string + */ + public function getGraceTerminationDuration() + { + return $this->graceTerminationDuration; + } + /** + * The duration of the PDB timeout period for node drain. + * + * @param string $pdbTimeoutDuration + */ + public function setPdbTimeoutDuration($pdbTimeoutDuration) + { + $this->pdbTimeoutDuration = $pdbTimeoutDuration; + } + /** + * @return string + */ + public function getPdbTimeoutDuration() + { + return $this->pdbTimeoutDuration; + } /** * Whether to respect PDB during node pool deletion. * diff --git a/src/Container/NodePool.php b/src/Container/NodePool.php index 59442dd56fb..b2302082f18 100644 --- a/src/Container/NodePool.php +++ b/src/Container/NodePool.php @@ -105,6 +105,8 @@ class NodePool extends \Google\Collection * @var string[] */ public $locations; + protected $maintenancePolicyType = NodePoolMaintenancePolicy::class; + protected $maintenancePolicyDataType = ''; protected $managementType = NodeManagement::class; protected $managementDataType = ''; protected $maxPodsConstraintType = MaxPodsConstraint::class; @@ -324,6 +326,22 @@ public function getLocations() { return $this->locations; } + /** + * Optional. Specifies the maintenance policy for the node pool. + * + * @param NodePoolMaintenancePolicy $maintenancePolicy + */ + public function setMaintenancePolicy(NodePoolMaintenancePolicy $maintenancePolicy) + { + $this->maintenancePolicy = $maintenancePolicy; + } + /** + * @return NodePoolMaintenancePolicy + */ + public function getMaintenancePolicy() + { + return $this->maintenancePolicy; + } /** * NodeManagement configuration for this NodePool. * diff --git a/src/Container/NodePoolMaintenancePolicy.php b/src/Container/NodePoolMaintenancePolicy.php new file mode 100644 index 00000000000..a83e478548b --- /dev/null +++ b/src/Container/NodePoolMaintenancePolicy.php @@ -0,0 +1,44 @@ +exclusionUntilEndOfSupport = $exclusionUntilEndOfSupport; + } + /** + * @return ExclusionUntilEndOfSupport + */ + public function getExclusionUntilEndOfSupport() + { + return $this->exclusionUntilEndOfSupport; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(NodePoolMaintenancePolicy::class, 'Google_Service_Container_NodePoolMaintenancePolicy');