Skip to content

Commit 6bfcaa7

Browse files
1 parent c9415da commit 6bfcaa7

11 files changed

Lines changed: 378 additions & 28 deletions
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 AccurateTimeConfig extends \Google\Model
21+
{
22+
/**
23+
* Enables enhanced time synchronization using PTP-KVM.
24+
*
25+
* @var bool
26+
*/
27+
public $enablePtpKvmTimeSync;
28+
29+
/**
30+
* Enables enhanced time synchronization using PTP-KVM.
31+
*
32+
* @param bool $enablePtpKvmTimeSync
33+
*/
34+
public function setEnablePtpKvmTimeSync($enablePtpKvmTimeSync)
35+
{
36+
$this->enablePtpKvmTimeSync = $enablePtpKvmTimeSync;
37+
}
38+
/**
39+
* @return bool
40+
*/
41+
public function getEnablePtpKvmTimeSync()
42+
{
43+
return $this->enablePtpKvmTimeSync;
44+
}
45+
}
46+
47+
// Adding a class alias for backwards compatibility with the previous class name.
48+
class_alias(AccurateTimeConfig::class, 'Google_Service_Container_AccurateTimeConfig');

src/Container/CertificateAuthorityDomainConfig.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ class CertificateAuthorityDomainConfig extends \Google\Collection
2222
protected $collection_key = 'fqdns';
2323
/**
2424
* List of fully qualified domain names (FQDN). Specifying port is supported.
25-
* Wildcards are NOT supported. Examples: - my.customdomain.com -
26-
* 10.0.1.2:5000
25+
* Wildcards are NOT supported. Examples: - `my.customdomain.com` -
26+
* `10.0.1.2:5000`
2727
*
2828
* @var string[]
2929
*/
@@ -33,8 +33,8 @@ class CertificateAuthorityDomainConfig extends \Google\Collection
3333

3434
/**
3535
* List of fully qualified domain names (FQDN). Specifying port is supported.
36-
* Wildcards are NOT supported. Examples: - my.customdomain.com -
37-
* 10.0.1.2:5000
36+
* Wildcards are NOT supported. Examples: - `my.customdomain.com` -
37+
* `10.0.1.2:5000`
3838
*
3939
* @param string[] $fqdns
4040
*/

src/Container/Cluster.php

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ class Cluster extends \Google\Collection
8888
protected $conditionsDataType = 'array';
8989
protected $confidentialNodesType = ConfidentialNodes::class;
9090
protected $confidentialNodesDataType = '';
91+
protected $controlPlaneEgressType = ControlPlaneEgress::class;
92+
protected $controlPlaneEgressDataType = '';
9193
protected $controlPlaneEndpointsConfigType = ControlPlaneEndpointsConfig::class;
9294
protected $controlPlaneEndpointsConfigDataType = '';
9395
protected $costManagementConfigType = CostManagementConfig::class;
@@ -381,6 +383,8 @@ class Cluster extends \Google\Collection
381383
protected $scheduleUpgradeConfigDataType = '';
382384
protected $secretManagerConfigType = SecretManagerConfig::class;
383385
protected $secretManagerConfigDataType = '';
386+
protected $secretSyncConfigType = SecretSyncConfig::class;
387+
protected $secretSyncConfigDataType = '';
384388
protected $securityPostureConfigType = SecurityPostureConfig::class;
385389
protected $securityPostureConfigDataType = '';
386390
/**
@@ -636,6 +640,22 @@ public function getConfidentialNodes()
636640
{
637641
return $this->confidentialNodes;
638642
}
643+
/**
644+
* Configuration for control plane egress control.
645+
*
646+
* @param ControlPlaneEgress $controlPlaneEgress
647+
*/
648+
public function setControlPlaneEgress(ControlPlaneEgress $controlPlaneEgress)
649+
{
650+
$this->controlPlaneEgress = $controlPlaneEgress;
651+
}
652+
/**
653+
* @return ControlPlaneEgress
654+
*/
655+
public function getControlPlaneEgress()
656+
{
657+
return $this->controlPlaneEgress;
658+
}
639659
/**
640660
* Configuration for all cluster's control plane endpoints.
641661
*
@@ -1695,6 +1715,22 @@ public function getSecretManagerConfig()
16951715
{
16961716
return $this->secretManagerConfig;
16971717
}
1718+
/**
1719+
* Configuration for sync Secret Manager secrets as k8s secrets.
1720+
*
1721+
* @param SecretSyncConfig $secretSyncConfig
1722+
*/
1723+
public function setSecretSyncConfig(SecretSyncConfig $secretSyncConfig)
1724+
{
1725+
$this->secretSyncConfig = $secretSyncConfig;
1726+
}
1727+
/**
1728+
* @return SecretSyncConfig
1729+
*/
1730+
public function getSecretSyncConfig()
1731+
{
1732+
return $this->secretSyncConfig;
1733+
}
16981734
/**
16991735
* Optional. Enable/Disable Security Posture API features for the cluster.
17001736
*

src/Container/ClusterUpdate.php

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ class ClusterUpdate extends \Google\Collection
9999
protected $desiredCompliancePostureConfigDataType = '';
100100
protected $desiredContainerdConfigType = ContainerdConfig::class;
101101
protected $desiredContainerdConfigDataType = '';
102+
protected $desiredControlPlaneEgressType = ControlPlaneEgress::class;
103+
protected $desiredControlPlaneEgressDataType = '';
102104
protected $desiredControlPlaneEndpointsConfigType = ControlPlaneEndpointsConfig::class;
103105
protected $desiredControlPlaneEndpointsConfigDataType = '';
104106
protected $desiredCostManagementConfigType = CostManagementConfig::class;
@@ -310,6 +312,8 @@ class ClusterUpdate extends \Google\Collection
310312
protected $desiredResourceUsageExportConfigDataType = '';
311313
protected $desiredSecretManagerConfigType = SecretManagerConfig::class;
312314
protected $desiredSecretManagerConfigDataType = '';
315+
protected $desiredSecretSyncConfigType = SecretSyncConfig::class;
316+
protected $desiredSecretSyncConfigDataType = '';
313317
protected $desiredSecurityPostureConfigType = SecurityPostureConfig::class;
314318
protected $desiredSecurityPostureConfigDataType = '';
315319
protected $desiredServiceExternalIpsConfigType = ServiceExternalIPsConfig::class;
@@ -546,6 +550,22 @@ public function getDesiredContainerdConfig()
546550
{
547551
return $this->desiredContainerdConfig;
548552
}
553+
/**
554+
* The desired control plane egress control config for the cluster.
555+
*
556+
* @param ControlPlaneEgress $desiredControlPlaneEgress
557+
*/
558+
public function setDesiredControlPlaneEgress(ControlPlaneEgress $desiredControlPlaneEgress)
559+
{
560+
$this->desiredControlPlaneEgress = $desiredControlPlaneEgress;
561+
}
562+
/**
563+
* @return ControlPlaneEgress
564+
*/
565+
public function getDesiredControlPlaneEgress()
566+
{
567+
return $this->desiredControlPlaneEgress;
568+
}
549569
/**
550570
* Control plane endpoints configuration.
551571
*
@@ -1471,6 +1491,22 @@ public function getDesiredSecretManagerConfig()
14711491
{
14721492
return $this->desiredSecretManagerConfig;
14731493
}
1494+
/**
1495+
* Configuration for sync Secret Manager secrets as k8s secrets.
1496+
*
1497+
* @param SecretSyncConfig $desiredSecretSyncConfig
1498+
*/
1499+
public function setDesiredSecretSyncConfig(SecretSyncConfig $desiredSecretSyncConfig)
1500+
{
1501+
$this->desiredSecretSyncConfig = $desiredSecretSyncConfig;
1502+
}
1503+
/**
1504+
* @return SecretSyncConfig
1505+
*/
1506+
public function getDesiredSecretSyncConfig()
1507+
{
1508+
return $this->desiredSecretSyncConfig;
1509+
}
14741510
/**
14751511
* Enable/Disable Security Posture API features for the cluster.
14761512
*
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
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 ControlPlaneEgress extends \Google\Model
21+
{
22+
/**
23+
* Default value not specified.
24+
*/
25+
public const MODE_MODE_UNSPECIFIED = 'MODE_UNSPECIFIED';
26+
/**
27+
* Control plane has public IP and no restriction on egress.
28+
*/
29+
public const MODE_VIA_CONTROL_PLANE = 'VIA_CONTROL_PLANE';
30+
/**
31+
* No public IP on control plane and only internal allowlisted egress.
32+
*/
33+
public const MODE_NONE = 'NONE';
34+
/**
35+
* Defines the mode of control plane egress.
36+
*
37+
* @var string
38+
*/
39+
public $mode;
40+
41+
/**
42+
* Defines the mode of control plane egress.
43+
*
44+
* Accepted values: MODE_UNSPECIFIED, VIA_CONTROL_PLANE, NONE
45+
*
46+
* @param self::MODE_* $mode
47+
*/
48+
public function setMode($mode)
49+
{
50+
$this->mode = $mode;
51+
}
52+
/**
53+
* @return self::MODE_*
54+
*/
55+
public function getMode()
56+
{
57+
return $this->mode;
58+
}
59+
}
60+
61+
// Adding a class alias for backwards compatibility with the previous class name.
62+
class_alias(ControlPlaneEgress::class, 'Google_Service_Container_ControlPlaneEgress');

src/Container/HostConfig.php

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,10 @@ class HostConfig extends \Google\Collection
4646
protected $headerDataType = 'array';
4747
/**
4848
* Host configures the registry host/mirror. It supports fully qualified
49-
* domain names (FQDN) and IP addresses: Specifying port is supported.
50-
* Wildcards are NOT supported. Examples: - my.customdomain.com -
51-
* 10.0.1.2:5000
49+
* domain names (FQDNs) and IP addresses. Specifying scheme, port or path is
50+
* supported. Scheme can only be http or https. Wildcards are NOT supported.
51+
* Examples: - `my.customdomain.com` - `https://my.customdomain.com/path` -
52+
* `10.0.1.2:5000`
5253
*
5354
* @var string
5455
*/
@@ -151,9 +152,10 @@ public function getHeader()
151152
}
152153
/**
153154
* Host configures the registry host/mirror. It supports fully qualified
154-
* domain names (FQDN) and IP addresses: Specifying port is supported.
155-
* Wildcards are NOT supported. Examples: - my.customdomain.com -
156-
* 10.0.1.2:5000
155+
* domain names (FQDNs) and IP addresses. Specifying scheme, port or path is
156+
* supported. Scheme can only be http or https. Wildcards are NOT supported.
157+
* Examples: - `my.customdomain.com` - `https://my.customdomain.com/path` -
158+
* `10.0.1.2:5000`
157159
*
158160
* @param string $host
159161
*/

src/Container/LinuxNodeConfig.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ class LinuxNodeConfig extends \Google\Model
8585
* Transparent hugepage support for anonymous memory is disabled.
8686
*/
8787
public const TRANSPARENT_HUGEPAGE_ENABLED_TRANSPARENT_HUGEPAGE_ENABLED_NEVER = 'TRANSPARENT_HUGEPAGE_ENABLED_NEVER';
88+
protected $accurateTimeConfigType = AccurateTimeConfig::class;
89+
protected $accurateTimeConfigDataType = '';
8890
/**
8991
* cgroup_mode specifies the cgroup mode to be used on the node.
9092
*
@@ -145,6 +147,22 @@ class LinuxNodeConfig extends \Google\Model
145147
*/
146148
public $transparentHugepageEnabled;
147149

150+
/**
151+
* Optional. The accurate time configuration for the node pool.
152+
*
153+
* @param AccurateTimeConfig $accurateTimeConfig
154+
*/
155+
public function setAccurateTimeConfig(AccurateTimeConfig $accurateTimeConfig)
156+
{
157+
$this->accurateTimeConfig = $accurateTimeConfig;
158+
}
159+
/**
160+
* @return AccurateTimeConfig
161+
*/
162+
public function getAccurateTimeConfig()
163+
{
164+
return $this->accurateTimeConfig;
165+
}
148166
/**
149167
* cgroup_mode specifies the cgroup mode to be used on the node.
150168
*

src/Container/NodeConfig.php

Lines changed: 24 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -137,13 +137,18 @@ class NodeConfig extends \Google\Collection
137137
protected $kubeletConfigType = NodeKubeletConfig::class;
138138
protected $kubeletConfigDataType = '';
139139
/**
140-
* The map of Kubernetes labels (key/value pairs) to be applied to each node.
141-
* These will added in addition to any default label(s) that Kubernetes may
142-
* apply to the node. In case of conflict in label keys, the applied set may
143-
* differ depending on the Kubernetes version -- it's best to assume the
144-
* behavior is undefined and conflicts should be avoided. For more
145-
* information, including usage and the valid values, see:
146-
* https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
140+
* The Kubernetes labels (key/value pairs) to apply to each node. The values
141+
* in this field are added to the set of default labels Kubernetes applies to
142+
* nodes. This field has the following restrictions: * Labels must use a valid
143+
* Kubernetes syntax and character set, as defined in
144+
* https://kubernetes.io/docs/concepts/overview/working-with-
145+
* objects/labels/#syntax-and-character-set. * This field supports up to 1,024
146+
* total characters in a single request. Depending on the Kubernetes version,
147+
* keys in this field might conflict with the keys of the default labels,
148+
* which might change which of your labels are applied to the nodes. Assume
149+
* that the behavior is unpredictable and avoid label key conflicts. For more
150+
* information about the default labels, see:
151+
* https://kubernetes.io/docs/reference/labels-annotations-taints/
147152
*
148153
* @var string[]
149154
*/
@@ -635,13 +640,18 @@ public function getKubeletConfig()
635640
return $this->kubeletConfig;
636641
}
637642
/**
638-
* The map of Kubernetes labels (key/value pairs) to be applied to each node.
639-
* These will added in addition to any default label(s) that Kubernetes may
640-
* apply to the node. In case of conflict in label keys, the applied set may
641-
* differ depending on the Kubernetes version -- it's best to assume the
642-
* behavior is undefined and conflicts should be avoided. For more
643-
* information, including usage and the valid values, see:
644-
* https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
643+
* The Kubernetes labels (key/value pairs) to apply to each node. The values
644+
* in this field are added to the set of default labels Kubernetes applies to
645+
* nodes. This field has the following restrictions: * Labels must use a valid
646+
* Kubernetes syntax and character set, as defined in
647+
* https://kubernetes.io/docs/concepts/overview/working-with-
648+
* objects/labels/#syntax-and-character-set. * This field supports up to 1,024
649+
* total characters in a single request. Depending on the Kubernetes version,
650+
* keys in this field might conflict with the keys of the default labels,
651+
* which might change which of your labels are applied to the nodes. Assume
652+
* that the behavior is unpredictable and avoid label key conflicts. For more
653+
* information about the default labels, see:
654+
* https://kubernetes.io/docs/reference/labels-annotations-taints/
645655
*
646656
* @param string[] $labels
647657
*/

src/Container/RegistryHostConfig.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ class RegistryHostConfig extends \Google\Collection
2626
* Defines the host name of the registry server, which will be used to create
2727
* configuration file as /etc/containerd/hosts.d//hosts.toml. It supports
2828
* fully qualified domain names (FQDN) and IP addresses: Specifying port is
29-
* supported. Wildcards are NOT supported. Examples: - my.customdomain.com -
30-
* 10.0.1.2:5000
29+
* supported, while scheme and path are NOT supported. Wildcards are NOT
30+
* supported. Examples: - `my.customdomain.com` - `10.0.1.2:5000`
3131
*
3232
* @var string
3333
*/
@@ -54,8 +54,8 @@ public function getHosts()
5454
* Defines the host name of the registry server, which will be used to create
5555
* configuration file as /etc/containerd/hosts.d//hosts.toml. It supports
5656
* fully qualified domain names (FQDN) and IP addresses: Specifying port is
57-
* supported. Wildcards are NOT supported. Examples: - my.customdomain.com -
58-
* 10.0.1.2:5000
57+
* supported, while scheme and path are NOT supported. Wildcards are NOT
58+
* supported. Examples: - `my.customdomain.com` - `10.0.1.2:5000`
5959
*
6060
* @param string $server
6161
*/

0 commit comments

Comments
 (0)