Skip to content

Commit 2e75d3e

Browse files
1 parent aea2668 commit 2e75d3e

9 files changed

Lines changed: 330 additions & 16 deletions

src/Container/Cluster.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -579,15 +579,20 @@ public function getClusterIpv4Cidr()
579579
return $this->clusterIpv4Cidr;
580580
}
581581
/**
582-
* Enable/Disable Compliance Posture features for the cluster.
582+
* Optional. Deprecated: Compliance Posture is no longer supported. For more
583+
* details, see https://cloud.google.com/kubernetes-
584+
* engine/docs/deprecations/posture-management-deprecation. Enable/Disable
585+
* Compliance Posture features for the cluster.
583586
*
587+
* @deprecated
584588
* @param CompliancePostureConfig $compliancePostureConfig
585589
*/
586590
public function setCompliancePostureConfig(CompliancePostureConfig $compliancePostureConfig)
587591
{
588592
$this->compliancePostureConfig = $compliancePostureConfig;
589593
}
590594
/**
595+
* @deprecated
591596
* @return CompliancePostureConfig
592597
*/
593598
public function getCompliancePostureConfig()
@@ -1655,7 +1660,7 @@ public function getSecretManagerConfig()
16551660
return $this->secretManagerConfig;
16561661
}
16571662
/**
1658-
* Enable/Disable Security Posture API features for the cluster.
1663+
* Optional. Enable/Disable Security Posture API features for the cluster.
16591664
*
16601665
* @param SecurityPostureConfig $securityPostureConfig
16611666
*/

src/Container/ClusterAutoscaling.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ class ClusterAutoscaling extends \Google\Collection
2727
* Avoid extra IP consumption.
2828
*/
2929
public const AUTOPILOT_GENERAL_PROFILE_NO_PERFORMANCE = 'NO_PERFORMANCE';
30+
/**
31+
* Use default configuration.
32+
*/
33+
public const AUTOPILOT_GENERAL_PROFILE_NONE = 'NONE';
3034
/**
3135
* No change to autoscaling configuration.
3236
*/
@@ -78,7 +82,8 @@ class ClusterAutoscaling extends \Google\Collection
7882
* Autopilot general profile for the cluster, which defines the configuration
7983
* for the cluster.
8084
*
81-
* Accepted values: AUTOPILOT_GENERAL_PROFILE_UNSPECIFIED, NO_PERFORMANCE
85+
* Accepted values: AUTOPILOT_GENERAL_PROFILE_UNSPECIFIED, NO_PERFORMANCE,
86+
* NONE
8287
*
8388
* @param self::AUTOPILOT_GENERAL_PROFILE_* $autopilotGeneralProfile
8489
*/

src/Container/ClusterUpdate.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,15 +490,20 @@ public function getDesiredClusterAutoscaling()
490490
return $this->desiredClusterAutoscaling;
491491
}
492492
/**
493-
* Enable/Disable Compliance Posture features for the cluster.
493+
* Deprecated: Compliance Posture is no longer supported. For more details,
494+
* see https://cloud.google.com/kubernetes-engine/docs/deprecations/posture-
495+
* management-deprecation. Enable/Disable Compliance Posture features for the
496+
* cluster.
494497
*
498+
* @deprecated
495499
* @param CompliancePostureConfig $desiredCompliancePostureConfig
496500
*/
497501
public function setDesiredCompliancePostureConfig(CompliancePostureConfig $desiredCompliancePostureConfig)
498502
{
499503
$this->desiredCompliancePostureConfig = $desiredCompliancePostureConfig;
500504
}
501505
/**
506+
* @deprecated
502507
* @return CompliancePostureConfig
503508
*/
504509
public function getDesiredCompliancePostureConfig()
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
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 CrashLoopBackOffConfig extends \Google\Model
21+
{
22+
/**
23+
* Optional. The maximum duration the backoff delay can accrue to for
24+
* container restarts, minimum 1 second, maximum 300 seconds. If not set,
25+
* defaults to the internal crashloopbackoff maximum. The string must be a
26+
* sequence of decimal numbers, each with optional fraction and a unit suffix,
27+
* such as "300ms". Valid time units are "ns", "us" (or "µs"), "ms", "s", "m",
28+
* "h". See https://kubernetes.io/docs/concepts/workloads/pods/pod-
29+
* lifecycle/#configurable-container-restart-delay for more details.
30+
*
31+
* @var string
32+
*/
33+
public $maxContainerRestartPeriod;
34+
35+
/**
36+
* Optional. The maximum duration the backoff delay can accrue to for
37+
* container restarts, minimum 1 second, maximum 300 seconds. If not set,
38+
* defaults to the internal crashloopbackoff maximum. The string must be a
39+
* sequence of decimal numbers, each with optional fraction and a unit suffix,
40+
* such as "300ms". Valid time units are "ns", "us" (or "µs"), "ms", "s", "m",
41+
* "h". See https://kubernetes.io/docs/concepts/workloads/pods/pod-
42+
* lifecycle/#configurable-container-restart-delay for more details.
43+
*
44+
* @param string $maxContainerRestartPeriod
45+
*/
46+
public function setMaxContainerRestartPeriod($maxContainerRestartPeriod)
47+
{
48+
$this->maxContainerRestartPeriod = $maxContainerRestartPeriod;
49+
}
50+
/**
51+
* @return string
52+
*/
53+
public function getMaxContainerRestartPeriod()
54+
{
55+
return $this->maxContainerRestartPeriod;
56+
}
57+
}
58+
59+
// Adding a class alias for backwards compatibility with the previous class name.
60+
class_alias(CrashLoopBackOffConfig::class, 'Google_Service_Container_CrashLoopBackOffConfig');

src/Container/DisruptionBudget.php

Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
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 DisruptionBudget extends \Google\Model
21+
{
22+
/**
23+
* Output only. The last time a disruption was performed on the control plane.
24+
*
25+
* @var string
26+
*/
27+
public $lastDisruptionTime;
28+
/**
29+
* Output only. The last time a minor version upgrade was performed on the
30+
* control plane.
31+
*
32+
* @var string
33+
*/
34+
public $lastMinorVersionDisruptionTime;
35+
/**
36+
* Optional. The minimum duration between two minor version upgrades of the
37+
* control plane.
38+
*
39+
* @var string
40+
*/
41+
public $minorVersionDisruptionInterval;
42+
/**
43+
* Optional. The minimum duration between two patch version upgrades of the
44+
* control plane.
45+
*
46+
* @var string
47+
*/
48+
public $patchVersionDisruptionInterval;
49+
50+
/**
51+
* Output only. The last time a disruption was performed on the control plane.
52+
*
53+
* @param string $lastDisruptionTime
54+
*/
55+
public function setLastDisruptionTime($lastDisruptionTime)
56+
{
57+
$this->lastDisruptionTime = $lastDisruptionTime;
58+
}
59+
/**
60+
* @return string
61+
*/
62+
public function getLastDisruptionTime()
63+
{
64+
return $this->lastDisruptionTime;
65+
}
66+
/**
67+
* Output only. The last time a minor version upgrade was performed on the
68+
* control plane.
69+
*
70+
* @param string $lastMinorVersionDisruptionTime
71+
*/
72+
public function setLastMinorVersionDisruptionTime($lastMinorVersionDisruptionTime)
73+
{
74+
$this->lastMinorVersionDisruptionTime = $lastMinorVersionDisruptionTime;
75+
}
76+
/**
77+
* @return string
78+
*/
79+
public function getLastMinorVersionDisruptionTime()
80+
{
81+
return $this->lastMinorVersionDisruptionTime;
82+
}
83+
/**
84+
* Optional. The minimum duration between two minor version upgrades of the
85+
* control plane.
86+
*
87+
* @param string $minorVersionDisruptionInterval
88+
*/
89+
public function setMinorVersionDisruptionInterval($minorVersionDisruptionInterval)
90+
{
91+
$this->minorVersionDisruptionInterval = $minorVersionDisruptionInterval;
92+
}
93+
/**
94+
* @return string
95+
*/
96+
public function getMinorVersionDisruptionInterval()
97+
{
98+
return $this->minorVersionDisruptionInterval;
99+
}
100+
/**
101+
* Optional. The minimum duration between two patch version upgrades of the
102+
* control plane.
103+
*
104+
* @param string $patchVersionDisruptionInterval
105+
*/
106+
public function setPatchVersionDisruptionInterval($patchVersionDisruptionInterval)
107+
{
108+
$this->patchVersionDisruptionInterval = $patchVersionDisruptionInterval;
109+
}
110+
/**
111+
* @return string
112+
*/
113+
public function getPatchVersionDisruptionInterval()
114+
{
115+
return $this->patchVersionDisruptionInterval;
116+
}
117+
}
118+
119+
// Adding a class alias for backwards compatibility with the previous class name.
120+
class_alias(DisruptionBudget::class, 'Google_Service_Container_DisruptionBudget');

src/Container/MaintenancePolicy.php

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

2020
class MaintenancePolicy extends \Google\Model
2121
{
22+
protected $disruptionBudgetType = DisruptionBudget::class;
23+
protected $disruptionBudgetDataType = '';
2224
/**
2325
* A hash identifying the version of this policy, so that updates to fields of
2426
* the policy won't accidentally undo intermediate changes (and so that users
@@ -32,6 +34,22 @@ class MaintenancePolicy extends \Google\Model
3234
protected $windowType = MaintenanceWindow::class;
3335
protected $windowDataType = '';
3436

37+
/**
38+
* Optional. The upgrade disruption budget for the cluster control plane.
39+
*
40+
* @param DisruptionBudget $disruptionBudget
41+
*/
42+
public function setDisruptionBudget(DisruptionBudget $disruptionBudget)
43+
{
44+
$this->disruptionBudget = $disruptionBudget;
45+
}
46+
/**
47+
* @return DisruptionBudget
48+
*/
49+
public function getDisruptionBudget()
50+
{
51+
return $this->disruptionBudget;
52+
}
3553
/**
3654
* A hash identifying the version of this policy, so that updates to fields of
3755
* the policy won't accidentally undo intermediate changes (and so that users

0 commit comments

Comments
 (0)