Skip to content

Commit d2412fd

Browse files
1 parent 59d2b97 commit d2412fd

11 files changed

+443
-3
lines changed

src/Container/Autopilot.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919

2020
class Autopilot extends \Google\Model
2121
{
22+
protected $clusterPolicyConfigType = ClusterPolicyConfig::class;
23+
protected $clusterPolicyConfigDataType = '';
2224
/**
2325
* Enable Autopilot
2426
*
@@ -30,6 +32,23 @@ class Autopilot extends \Google\Model
3032
protected $workloadPolicyConfigType = WorkloadPolicyConfig::class;
3133
protected $workloadPolicyConfigDataType = '';
3234

35+
/**
36+
* ClusterPolicyConfig denotes cluster level policies that are enforced for
37+
* the cluster.
38+
*
39+
* @param ClusterPolicyConfig $clusterPolicyConfig
40+
*/
41+
public function setClusterPolicyConfig(ClusterPolicyConfig $clusterPolicyConfig)
42+
{
43+
$this->clusterPolicyConfig = $clusterPolicyConfig;
44+
}
45+
/**
46+
* @return ClusterPolicyConfig
47+
*/
48+
public function getClusterPolicyConfig()
49+
{
50+
return $this->clusterPolicyConfig;
51+
}
3352
/**
3453
* Enable Autopilot
3554
*

src/Container/Cluster.php

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,8 @@ class Cluster extends \Google\Collection
280280
public $loggingService;
281281
protected $maintenancePolicyType = MaintenancePolicy::class;
282282
protected $maintenancePolicyDataType = '';
283+
protected $managedMachineLearningDiagnosticsConfigType = ManagedMachineLearningDiagnosticsConfig::class;
284+
protected $managedMachineLearningDiagnosticsConfigDataType = '';
283285
protected $managedOpentelemetryConfigType = ManagedOpenTelemetryConfig::class;
284286
protected $managedOpentelemetryConfigDataType = '';
285287
protected $masterAuthType = MasterAuth::class;
@@ -375,6 +377,8 @@ class Cluster extends \Google\Collection
375377
* @var bool
376378
*/
377379
public $satisfiesPzs;
380+
protected $scheduleUpgradeConfigType = ScheduleUpgradeConfig::class;
381+
protected $scheduleUpgradeConfigDataType = '';
378382
protected $secretManagerConfigType = SecretManagerConfig::class;
379383
protected $secretManagerConfigDataType = '';
380384
protected $securityPostureConfigType = SecurityPostureConfig::class;
@@ -1196,6 +1200,22 @@ public function getMaintenancePolicy()
11961200
{
11971201
return $this->maintenancePolicy;
11981202
}
1203+
/**
1204+
* Configuration for Managed Machine Learning Diagnostics.
1205+
*
1206+
* @param ManagedMachineLearningDiagnosticsConfig $managedMachineLearningDiagnosticsConfig
1207+
*/
1208+
public function setManagedMachineLearningDiagnosticsConfig(ManagedMachineLearningDiagnosticsConfig $managedMachineLearningDiagnosticsConfig)
1209+
{
1210+
$this->managedMachineLearningDiagnosticsConfig = $managedMachineLearningDiagnosticsConfig;
1211+
}
1212+
/**
1213+
* @return ManagedMachineLearningDiagnosticsConfig
1214+
*/
1215+
public function getManagedMachineLearningDiagnosticsConfig()
1216+
{
1217+
return $this->managedMachineLearningDiagnosticsConfig;
1218+
}
11991219
/**
12001220
* Configuration for Managed OpenTelemetry pipeline.
12011221
*
@@ -1643,6 +1663,22 @@ public function getSatisfiesPzs()
16431663
{
16441664
return $this->satisfiesPzs;
16451665
}
1666+
/**
1667+
* Optional. Configuration for scheduled upgrades.
1668+
*
1669+
* @param ScheduleUpgradeConfig $scheduleUpgradeConfig
1670+
*/
1671+
public function setScheduleUpgradeConfig(ScheduleUpgradeConfig $scheduleUpgradeConfig)
1672+
{
1673+
$this->scheduleUpgradeConfig = $scheduleUpgradeConfig;
1674+
}
1675+
/**
1676+
* @return ScheduleUpgradeConfig
1677+
*/
1678+
public function getScheduleUpgradeConfig()
1679+
{
1680+
return $this->scheduleUpgradeConfig;
1681+
}
16461682
/**
16471683
* Secret CSI driver configuration.
16481684
*
Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
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 ClusterPolicyConfig extends \Google\Model
21+
{
22+
/**
23+
* Denotes preventing standard node pools and requiring only autopilot node
24+
* pools.
25+
*
26+
* @var bool
27+
*/
28+
public $noStandardNodePools;
29+
/**
30+
* Denotes preventing impersonation and CSRs for GKE System users.
31+
*
32+
* @var bool
33+
*/
34+
public $noSystemImpersonation;
35+
/**
36+
* Denotes that preventing creation and mutation of resources in GKE managed
37+
* namespaces and cluster-scoped GKE managed resources .
38+
*
39+
* @var bool
40+
*/
41+
public $noSystemMutation;
42+
/**
43+
* Denotes preventing unsafe webhooks.
44+
*
45+
* @var bool
46+
*/
47+
public $noUnsafeWebhooks;
48+
49+
/**
50+
* Denotes preventing standard node pools and requiring only autopilot node
51+
* pools.
52+
*
53+
* @param bool $noStandardNodePools
54+
*/
55+
public function setNoStandardNodePools($noStandardNodePools)
56+
{
57+
$this->noStandardNodePools = $noStandardNodePools;
58+
}
59+
/**
60+
* @return bool
61+
*/
62+
public function getNoStandardNodePools()
63+
{
64+
return $this->noStandardNodePools;
65+
}
66+
/**
67+
* Denotes preventing impersonation and CSRs for GKE System users.
68+
*
69+
* @param bool $noSystemImpersonation
70+
*/
71+
public function setNoSystemImpersonation($noSystemImpersonation)
72+
{
73+
$this->noSystemImpersonation = $noSystemImpersonation;
74+
}
75+
/**
76+
* @return bool
77+
*/
78+
public function getNoSystemImpersonation()
79+
{
80+
return $this->noSystemImpersonation;
81+
}
82+
/**
83+
* Denotes that preventing creation and mutation of resources in GKE managed
84+
* namespaces and cluster-scoped GKE managed resources .
85+
*
86+
* @param bool $noSystemMutation
87+
*/
88+
public function setNoSystemMutation($noSystemMutation)
89+
{
90+
$this->noSystemMutation = $noSystemMutation;
91+
}
92+
/**
93+
* @return bool
94+
*/
95+
public function getNoSystemMutation()
96+
{
97+
return $this->noSystemMutation;
98+
}
99+
/**
100+
* Denotes preventing unsafe webhooks.
101+
*
102+
* @param bool $noUnsafeWebhooks
103+
*/
104+
public function setNoUnsafeWebhooks($noUnsafeWebhooks)
105+
{
106+
$this->noUnsafeWebhooks = $noUnsafeWebhooks;
107+
}
108+
/**
109+
* @return bool
110+
*/
111+
public function getNoUnsafeWebhooks()
112+
{
113+
return $this->noUnsafeWebhooks;
114+
}
115+
}
116+
117+
// Adding a class alias for backwards compatibility with the previous class name.
118+
class_alias(ClusterPolicyConfig::class, 'Google_Service_Container_ClusterPolicyConfig');

src/Container/ClusterUpdate.php

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ class ClusterUpdate extends \Google\Collection
8787
protected $desiredAuthenticatorGroupsConfigDataType = '';
8888
protected $desiredAutoIpamConfigType = AutoIpamConfig::class;
8989
protected $desiredAutoIpamConfigDataType = '';
90+
protected $desiredAutopilotClusterPolicyConfigType = ClusterPolicyConfig::class;
91+
protected $desiredAutopilotClusterPolicyConfigDataType = '';
9092
protected $desiredAutopilotWorkloadPolicyConfigType = WorkloadPolicyConfig::class;
9193
protected $desiredAutopilotWorkloadPolicyConfigDataType = '';
9294
protected $desiredBinaryAuthorizationType = BinaryAuthorization::class;
@@ -210,6 +212,8 @@ class ClusterUpdate extends \Google\Collection
210212
* @var string
211213
*/
212214
public $desiredLoggingService;
215+
protected $desiredManagedMachineLearningDiagnosticsConfigType = ManagedMachineLearningDiagnosticsConfig::class;
216+
protected $desiredManagedMachineLearningDiagnosticsConfigDataType = '';
213217
protected $desiredManagedOpentelemetryConfigType = ManagedOpenTelemetryConfig::class;
214218
protected $desiredManagedOpentelemetryConfigDataType = '';
215219
protected $desiredMasterAuthorizedNetworksConfigType = MasterAuthorizedNetworksConfig::class;
@@ -441,6 +445,22 @@ public function getDesiredAutoIpamConfig()
441445
{
442446
return $this->desiredAutoIpamConfig;
443447
}
448+
/**
449+
* The desired autopilot cluster policies that to be enforced in the cluster.
450+
*
451+
* @param ClusterPolicyConfig $desiredAutopilotClusterPolicyConfig
452+
*/
453+
public function setDesiredAutopilotClusterPolicyConfig(ClusterPolicyConfig $desiredAutopilotClusterPolicyConfig)
454+
{
455+
$this->desiredAutopilotClusterPolicyConfig = $desiredAutopilotClusterPolicyConfig;
456+
}
457+
/**
458+
* @return ClusterPolicyConfig
459+
*/
460+
public function getDesiredAutopilotClusterPolicyConfig()
461+
{
462+
return $this->desiredAutopilotClusterPolicyConfig;
463+
}
444464
/**
445465
* WorkloadPolicyConfig is the configuration related to GCW workload policy
446466
*
@@ -956,6 +976,22 @@ public function getDesiredLoggingService()
956976
{
957977
return $this->desiredLoggingService;
958978
}
979+
/**
980+
* The desired managed machine learning diagnostics configuration.
981+
*
982+
* @param ManagedMachineLearningDiagnosticsConfig $desiredManagedMachineLearningDiagnosticsConfig
983+
*/
984+
public function setDesiredManagedMachineLearningDiagnosticsConfig(ManagedMachineLearningDiagnosticsConfig $desiredManagedMachineLearningDiagnosticsConfig)
985+
{
986+
$this->desiredManagedMachineLearningDiagnosticsConfig = $desiredManagedMachineLearningDiagnosticsConfig;
987+
}
988+
/**
989+
* @return ManagedMachineLearningDiagnosticsConfig
990+
*/
991+
public function getDesiredManagedMachineLearningDiagnosticsConfig()
992+
{
993+
return $this->desiredManagedMachineLearningDiagnosticsConfig;
994+
}
959995
/**
960996
* The desired managed open telemetry configuration.
961997
*

src/Container/DatabaseEncryption.php

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,19 @@ class DatabaseEncryption extends \Google\Collection
5050
* De-crypting Secrets to plain text in etcd encountered an error.
5151
*/
5252
public const CURRENT_STATE_CURRENT_STATE_DECRYPTION_ERROR = 'CURRENT_STATE_DECRYPTION_ERROR';
53+
/**
54+
* Encryption of all objects in the storage is enabled. It does not guarantee
55+
* that all objects in the storage are encrypted, but eventually they will be.
56+
*/
57+
public const CURRENT_STATE_CURRENT_STATE_ALL_OBJECTS_ENCRYPTION_ENABLED = 'CURRENT_STATE_ALL_OBJECTS_ENCRYPTION_ENABLED';
58+
/**
59+
* Enablement of the encryption of all objects in storage is pending.
60+
*/
61+
public const CURRENT_STATE_CURRENT_STATE_ALL_OBJECTS_ENCRYPTION_PENDING = 'CURRENT_STATE_ALL_OBJECTS_ENCRYPTION_PENDING';
62+
/**
63+
* Enabling encryption of all objects in storage encountered an error.
64+
*/
65+
public const CURRENT_STATE_CURRENT_STATE_ALL_OBJECTS_ENCRYPTION_ERROR = 'CURRENT_STATE_ALL_OBJECTS_ENCRYPTION_ERROR';
5366
/**
5467
* Should never be set
5568
*/
@@ -63,6 +76,11 @@ class DatabaseEncryption extends \Google\Collection
6376
* unrelated to Compute Engine level full disk encryption.
6477
*/
6578
public const STATE_DECRYPTED = 'DECRYPTED';
79+
/**
80+
* Encryption of all objects in the storage is enabled. There is no guarantee
81+
* that all objects in the storage are encrypted, but eventually they will be.
82+
*/
83+
public const STATE_ALL_OBJECTS_ENCRYPTION_ENABLED = 'ALL_OBJECTS_ENCRYPTION_ENABLED';
6684
protected $collection_key = 'lastOperationErrors';
6785
/**
6886
* Output only. The current state of etcd encryption.
@@ -99,7 +117,10 @@ class DatabaseEncryption extends \Google\Collection
99117
* Accepted values: CURRENT_STATE_UNSPECIFIED, CURRENT_STATE_ENCRYPTED,
100118
* CURRENT_STATE_DECRYPTED, CURRENT_STATE_ENCRYPTION_PENDING,
101119
* CURRENT_STATE_ENCRYPTION_ERROR, CURRENT_STATE_DECRYPTION_PENDING,
102-
* CURRENT_STATE_DECRYPTION_ERROR
120+
* CURRENT_STATE_DECRYPTION_ERROR,
121+
* CURRENT_STATE_ALL_OBJECTS_ENCRYPTION_ENABLED,
122+
* CURRENT_STATE_ALL_OBJECTS_ENCRYPTION_PENDING,
123+
* CURRENT_STATE_ALL_OBJECTS_ENCRYPTION_ERROR
103124
*
104125
* @param self::CURRENT_STATE_* $currentState
105126
*/
@@ -168,7 +189,8 @@ public function getLastOperationErrors()
168189
/**
169190
* The desired state of etcd encryption.
170191
*
171-
* Accepted values: UNKNOWN, ENCRYPTED, DECRYPTED
192+
* Accepted values: UNKNOWN, ENCRYPTED, DECRYPTED,
193+
* ALL_OBJECTS_ENCRYPTION_ENABLED
172194
*
173195
* @param self::STATE_* $state
174196
*/

src/Container/LustreCsiDriverConfig.php

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,15 @@
1919

2020
class LustreCsiDriverConfig extends \Google\Model
2121
{
22+
/**
23+
* When set to true, this disables multi-NIC support for the Lustre CSI
24+
* driver. By default, GKE enables multi-NIC support, which allows the Lustre
25+
* CSI driver to automatically detect and configure all suitable network
26+
* interfaces on a node to maximize I/O performance for demanding workloads.
27+
*
28+
* @var bool
29+
*/
30+
public $disableMultiNic;
2231
/**
2332
* If set to true, the Lustre CSI driver will install Lustre kernel modules
2433
* using port 6988. This serves as a workaround for a port conflict with the
@@ -40,6 +49,25 @@ class LustreCsiDriverConfig extends \Google\Model
4049
*/
4150
public $enabled;
4251

52+
/**
53+
* When set to true, this disables multi-NIC support for the Lustre CSI
54+
* driver. By default, GKE enables multi-NIC support, which allows the Lustre
55+
* CSI driver to automatically detect and configure all suitable network
56+
* interfaces on a node to maximize I/O performance for demanding workloads.
57+
*
58+
* @param bool $disableMultiNic
59+
*/
60+
public function setDisableMultiNic($disableMultiNic)
61+
{
62+
$this->disableMultiNic = $disableMultiNic;
63+
}
64+
/**
65+
* @return bool
66+
*/
67+
public function getDisableMultiNic()
68+
{
69+
return $this->disableMultiNic;
70+
}
4371
/**
4472
* If set to true, the Lustre CSI driver will install Lustre kernel modules
4573
* using port 6988. This serves as a workaround for a port conflict with the

0 commit comments

Comments
 (0)