Skip to content

Commit 35bfe13

Browse files
1 parent cf9e46b commit 35bfe13

9 files changed

Lines changed: 86 additions & 20 deletions

src/Container/AddonsConfig.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ class AddonsConfig extends \Google\Model
4747
protected $networkPolicyConfigDataType = '';
4848
protected $parallelstoreCsiDriverConfigType = ParallelstoreCsiDriverConfig::class;
4949
protected $parallelstoreCsiDriverConfigDataType = '';
50+
protected $podSnapshotConfigType = PodSnapshotConfig::class;
51+
protected $podSnapshotConfigDataType = '';
5052
protected $rayOperatorConfigType = RayOperatorConfig::class;
5153
protected $rayOperatorConfigDataType = '';
5254
protected $sliceControllerConfigType = SliceControllerConfig::class;
@@ -291,6 +293,22 @@ public function getParallelstoreCsiDriverConfig()
291293
{
292294
return $this->parallelstoreCsiDriverConfig;
293295
}
296+
/**
297+
* Optional. Configuration for the Pod Snapshot feature.
298+
*
299+
* @param PodSnapshotConfig $podSnapshotConfig
300+
*/
301+
public function setPodSnapshotConfig(PodSnapshotConfig $podSnapshotConfig)
302+
{
303+
$this->podSnapshotConfig = $podSnapshotConfig;
304+
}
305+
/**
306+
* @return PodSnapshotConfig
307+
*/
308+
public function getPodSnapshotConfig()
309+
{
310+
return $this->podSnapshotConfig;
311+
}
294312
/**
295313
* Optional. Configuration for Ray Operator addon.
296314
*

src/Container/NodeNetworkConfig.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -232,11 +232,11 @@ public function getNetworkTierConfig()
232232
return $this->networkTierConfig;
233233
}
234234
/**
235-
* [PRIVATE FIELD] Pod CIDR size overprovisioning config for the nodepool. Pod
236-
* CIDR size per node depends on max_pods_per_node. By default, the value of
237-
* max_pods_per_node is rounded off to next power of 2 and we then double that
238-
* to get the size of pod CIDR block per node. Example: max_pods_per_node of
239-
* 30 would result in 64 IPs (/26). This config can disable the doubling of
235+
* [PRIVATE FIELD] Pod CIDR size overprovisioning config for the node pool.
236+
* Pod CIDR size per node depends on max_pods_per_node. By default, the value
237+
* of max_pods_per_node is rounded off to next power of 2 and we then double
238+
* that to get the size of pod CIDR block per node. Example: max_pods_per_node
239+
* of 30 would result in 64 IPs (/26). This config can disable the doubling of
240240
* IPs (we still round off to next power of 2) Example: max_pods_per_node of
241241
* 30 will result in 32 IPs (/27) when overprovisioning is disabled.
242242
*

src/Container/NodePoolAutoscaling.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class NodePoolAutoscaling extends \Google\Model
4545
*/
4646
public $enabled;
4747
/**
48-
* Location policy used when scaling up a nodepool.
48+
* Location policy used when scaling up a node pool.
4949
*
5050
* @var string
5151
*/
@@ -115,7 +115,7 @@ public function getEnabled()
115115
return $this->enabled;
116116
}
117117
/**
118-
* Location policy used when scaling up a nodepool.
118+
* Location policy used when scaling up a node pool.
119119
*
120120
* Accepted values: LOCATION_POLICY_UNSPECIFIED, BALANCED, ANY
121121
*

src/Container/NodePoolUpgradeInfo.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ class NodePoolUpgradeInfo extends \Google\Collection
2727
*/
2828
public $autoUpgradeStatus;
2929
/**
30-
* The nodepool's current minor version's end of extended support timestamp.
30+
* The node pool's current minor version's end of extended support timestamp.
3131
*
3232
* @var string
3333
*/
3434
public $endOfExtendedSupportTimestamp;
3535
/**
36-
* The nodepool's current minor version's end of standard support timestamp.
36+
* The node pool's current minor version's end of standard support timestamp.
3737
*
3838
* @var string
3939
*/
@@ -76,7 +76,7 @@ public function getAutoUpgradeStatus()
7676
return $this->autoUpgradeStatus;
7777
}
7878
/**
79-
* The nodepool's current minor version's end of extended support timestamp.
79+
* The node pool's current minor version's end of extended support timestamp.
8080
*
8181
* @param string $endOfExtendedSupportTimestamp
8282
*/
@@ -92,7 +92,7 @@ public function getEndOfExtendedSupportTimestamp()
9292
return $this->endOfExtendedSupportTimestamp;
9393
}
9494
/**
95-
* The nodepool's current minor version's end of standard support timestamp.
95+
* The node pool's current minor version's end of standard support timestamp.
9696
*
9797
* @param string $endOfStandardSupportTimestamp
9898
*/
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
<?php
2+
/*
3+
* Copyright 2014 Google Inc.
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
6+
* use this file except in compliance with the License. You may obtain a copy of
7+
* the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14+
* License for the specific language governing permissions and limitations under
15+
* the License.
16+
*/
17+
18+
namespace Google\Service\Container;
19+
20+
class PodSnapshotConfig extends \Google\Model
21+
{
22+
/**
23+
* Whether or not the Pod Snapshots feature is enabled.
24+
*
25+
* @var bool
26+
*/
27+
public $enabled;
28+
29+
/**
30+
* Whether or not the Pod Snapshots feature is enabled.
31+
*
32+
* @param bool $enabled
33+
*/
34+
public function setEnabled($enabled)
35+
{
36+
$this->enabled = $enabled;
37+
}
38+
/**
39+
* @return bool
40+
*/
41+
public function getEnabled()
42+
{
43+
return $this->enabled;
44+
}
45+
}
46+
47+
// Adding a class alias for backwards compatibility with the previous class name.
48+
class_alias(PodSnapshotConfig::class, 'Google_Service_Container_PodSnapshotConfig');

src/Container/QueuedProvisioning.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
class QueuedProvisioning extends \Google\Model
2121
{
2222
/**
23-
* Denotes that this nodepool is QRM specific, meaning nodes can be only
23+
* Denotes that this node pool is QRM specific, meaning nodes can be only
2424
* obtained through queuing via the Cluster Autoscaler ProvisioningRequest
2525
* API.
2626
*
@@ -29,7 +29,7 @@ class QueuedProvisioning extends \Google\Model
2929
public $enabled;
3030

3131
/**
32-
* Denotes that this nodepool is QRM specific, meaning nodes can be only
32+
* Denotes that this node pool is QRM specific, meaning nodes can be only
3333
* obtained through queuing via the Cluster Autoscaler ProvisioningRequest
3434
* API.
3535
*

src/Container/Resource/ProjectsLocationsClustersNodePools.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,11 @@ public function delete($name, $optParams = [])
105105
return $this->call('delete', [$params], Operation::class);
106106
}
107107
/**
108-
* Fetch upgrade information of a specific nodepool.
108+
* Fetch upgrade information of a specific node pool.
109109
* (nodePools.fetchNodePoolUpgradeInfo)
110110
*
111-
* @param string $name Required. The name (project, location, cluster, nodepool)
112-
* of the nodepool to get. Specified in the format
111+
* @param string $name Required. The name (project, location, cluster, node
112+
* pool) of the node pool to get. Specified in the format
113113
* `projects/locations/clusters/nodePools` or
114114
* `projects/zones/clusters/nodePools`.
115115
* @param array $optParams Optional parameters.

src/Container/Resource/ProjectsZonesClustersNodePools.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,11 @@ public function delete($projectId, $zone, $clusterId, $nodePoolId, $optParams =
119119
return $this->call('delete', [$params], Operation::class);
120120
}
121121
/**
122-
* Fetch upgrade information of a specific nodepool.
122+
* Fetch upgrade information of a specific node pool.
123123
* (nodePools.fetchNodePoolUpgradeInfo)
124124
*
125-
* @param string $name Required. The name (project, location, cluster, nodepool)
126-
* of the nodepool to get. Specified in the format
125+
* @param string $name Required. The name (project, location, cluster, node
126+
* pool) of the node pool to get. Specified in the format
127127
* `projects/locations/clusters/nodePools` or
128128
* `projects/zones/clusters/nodePools`.
129129
* @param array $optParams Optional parameters.

src/Container/UpgradeSettings.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class UpgradeSettings extends \Google\Model
3535
public const STRATEGY_SURGE = 'SURGE';
3636
/**
3737
* SHORT_LIVED is the dedicated upgrade strategy for QueuedProvisioning and
38-
* flex start nodepools scaled up only by enqueueing to the Dynamic Workload
38+
* flex start node pools scaled up only by enqueueing to the Dynamic Workload
3939
* Scheduler (DWS).
4040
*/
4141
public const STRATEGY_SHORT_LIVED = 'SHORT_LIVED';

0 commit comments

Comments
 (0)