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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions src/Container/Cluster.php
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down Expand Up @@ -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`
Expand Down
18 changes: 18 additions & 0 deletions src/Container/ClusterUpdate.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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.
*
Expand Down
98 changes: 98 additions & 0 deletions src/Container/ExclusionUntilEndOfSupport.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/

namespace Google\Service\Container;

class ExclusionUntilEndOfSupport extends \Google\Model
{
/**
* Optional. Indicates whether the exclusion is enabled.
*
* @var bool
*/
public $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.
*
* @var string
*/
public $endTime;
/**
* Output only. The start time of the maintenance exclusion. It is output
* only. It is the exclusion creation time.
*
* @var string
*/
public $startTime;

/**
* Optional. Indicates whether the exclusion is enabled.
*
* @param bool $enabled
*/
public function setEnabled($enabled)
{
$this->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');
63 changes: 63 additions & 0 deletions src/Container/NodeCreationConfig.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/

namespace Google\Service\Container;

class NodeCreationConfig extends \Google\Model
{
/**
* When no user input is provided.
*/
public const NODE_CREATION_MODE_MODE_UNSPECIFIED = 'MODE_UNSPECIFIED';
/**
* Kubelet registers itself.
*/
public const NODE_CREATION_MODE_VIA_KUBELET = 'VIA_KUBELET';
/**
* gcp-controller-manager automatically creates the node object after CSR
* approval.
*/
public const NODE_CREATION_MODE_VIA_CONTROL_PLANE = 'VIA_CONTROL_PLANE';
/**
* The mode of node creation.
*
* @var string
*/
public $nodeCreationMode;

/**
* The mode of node creation.
*
* Accepted values: MODE_UNSPECIFIED, VIA_KUBELET, VIA_CONTROL_PLANE
*
* @param self::NODE_CREATION_MODE_* $nodeCreationMode
*/
public function setNodeCreationMode($nodeCreationMode)
{
$this->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');
44 changes: 44 additions & 0 deletions src/Container/NodeDrainConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,57 @@

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.
*
* @var bool
*/
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.
*
Expand Down
18 changes: 18 additions & 0 deletions src/Container/NodePool.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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.
*
Expand Down
44 changes: 44 additions & 0 deletions src/Container/NodePoolMaintenancePolicy.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/

namespace Google\Service\Container;

class NodePoolMaintenancePolicy extends \Google\Model
{
protected $exclusionUntilEndOfSupportType = ExclusionUntilEndOfSupport::class;
protected $exclusionUntilEndOfSupportDataType = '';

/**
* Optional. The exclusion until end of support for the node pool.
*
* @param ExclusionUntilEndOfSupport $exclusionUntilEndOfSupport
*/
public function setExclusionUntilEndOfSupport(ExclusionUntilEndOfSupport $exclusionUntilEndOfSupport)
{
$this->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');
Loading