Skip to content

Commit b9fb1b5

Browse files
1 parent 66a9e33 commit b9fb1b5

9 files changed

+276
-58
lines changed

src/GKEHub/ConfigManagementConfigSync.php

Lines changed: 33 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ class ConfigManagementConfigSync extends \Google\Collection
2323
protected $deploymentOverridesType = ConfigManagementDeploymentOverride::class;
2424
protected $deploymentOverridesDataType = 'array';
2525
/**
26-
* Optional. Enables the installation of ConfigSync. If set to true,
27-
* ConfigSync resources will be created and the other ConfigSync fields will
28-
* be applied if exist. If set to false, all other ConfigSync fields will be
29-
* ignored, ConfigSync resources will be deleted. If omitted, ConfigSync
30-
* resources will be managed depends on the presence of the git or oci field.
26+
* Optional. Enables the installation of Config Sync. If set to true, the
27+
* Feature will manage Config Sync resources, and apply the other ConfigSync
28+
* fields if they exist. If set to false, the Feature will ignore all other
29+
* ConfigSync fields and delete the Config Sync resources. If omitted,
30+
* ConfigSync is considered enabled if the git or oci field is present.
3131
*
3232
* @var bool
3333
*/
@@ -54,15 +54,19 @@ class ConfigManagementConfigSync extends \Google\Collection
5454
protected $ociDataType = '';
5555
/**
5656
* Optional. Set to true to enable the Config Sync admission webhook to
57-
* prevent drifts. If set to `false`, disables the Config Sync admission
58-
* webhook and does not prevent drifts.
57+
* prevent drifts. If set to false, disables the Config Sync admission webhook
58+
* and does not prevent drifts. Defaults to false. See
59+
* https://docs.cloud.google.com/kubernetes-engine/config-sync/docs/how-
60+
* to/prevent-config-drift for details.
5961
*
6062
* @var bool
6163
*/
6264
public $preventDrift;
6365
/**
64-
* Optional. Specifies whether the Config Sync Repo is in "hierarchical" or
65-
* "unstructured" mode.
66+
* Optional. Specifies whether the Config Sync repo is in `hierarchical` or
67+
* `unstructured` mode. Defaults to `hierarchical`. See
68+
* https://docs.cloud.google.com/kubernetes-engine/config-
69+
* sync/docs/concepts/configs#organize-configs for an explanation.
6670
*
6771
* @var string
6872
*/
@@ -76,7 +80,13 @@ class ConfigManagementConfigSync extends \Google\Collection
7680
public $stopSyncing;
7781

7882
/**
79-
* Optional. Configuration for deployment overrides.
83+
* Optional. Configuration for deployment overrides. Applies only to Config
84+
* Sync deployments with containers that are not a root or namespace
85+
* reconciler: `reconciler-manager`, `otel-collector`, `resource-group-
86+
* controller-manager`, `admission-webhook`. To override a root or namespace
87+
* reconciler, use the rootsync or reposync fields at
88+
* https://docs.cloud.google.com/kubernetes-engine/config-
89+
* sync/docs/reference/rootsync-reposync-fields#override-resources instead.
8090
*
8191
* @param ConfigManagementDeploymentOverride[] $deploymentOverrides
8292
*/
@@ -92,11 +102,11 @@ public function getDeploymentOverrides()
92102
return $this->deploymentOverrides;
93103
}
94104
/**
95-
* Optional. Enables the installation of ConfigSync. If set to true,
96-
* ConfigSync resources will be created and the other ConfigSync fields will
97-
* be applied if exist. If set to false, all other ConfigSync fields will be
98-
* ignored, ConfigSync resources will be deleted. If omitted, ConfigSync
99-
* resources will be managed depends on the presence of the git or oci field.
105+
* Optional. Enables the installation of Config Sync. If set to true, the
106+
* Feature will manage Config Sync resources, and apply the other ConfigSync
107+
* fields if they exist. If set to false, the Feature will ignore all other
108+
* ConfigSync fields and delete the Config Sync resources. If omitted,
109+
* ConfigSync is considered enabled if the git or oci field is present.
100110
*
101111
* @param bool $enabled
102112
*/
@@ -172,8 +182,10 @@ public function getOci()
172182
}
173183
/**
174184
* Optional. Set to true to enable the Config Sync admission webhook to
175-
* prevent drifts. If set to `false`, disables the Config Sync admission
176-
* webhook and does not prevent drifts.
185+
* prevent drifts. If set to false, disables the Config Sync admission webhook
186+
* and does not prevent drifts. Defaults to false. See
187+
* https://docs.cloud.google.com/kubernetes-engine/config-sync/docs/how-
188+
* to/prevent-config-drift for details.
177189
*
178190
* @param bool $preventDrift
179191
*/
@@ -189,8 +201,10 @@ public function getPreventDrift()
189201
return $this->preventDrift;
190202
}
191203
/**
192-
* Optional. Specifies whether the Config Sync Repo is in "hierarchical" or
193-
* "unstructured" mode.
204+
* Optional. Specifies whether the Config Sync repo is in `hierarchical` or
205+
* `unstructured` mode. Defaults to `hierarchical`. See
206+
* https://docs.cloud.google.com/kubernetes-engine/config-
207+
* sync/docs/concepts/configs#organize-configs for an explanation.
194208
*
195209
* @param string $sourceFormat
196210
*/

src/GKEHub/ConfigManagementContainerOverride.php

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,25 +26,33 @@ class ConfigManagementContainerOverride extends \Google\Model
2626
*/
2727
public $containerName;
2828
/**
29-
* Optional. The cpu limit of the container.
29+
* Optional. The cpu limit of the container. Use the following CPU resource
30+
* units: https://kubernetes.io/docs/concepts/configuration/manage-resources-
31+
* containers/#meaning-of-cpu.
3032
*
3133
* @var string
3234
*/
3335
public $cpuLimit;
3436
/**
35-
* Optional. The cpu request of the container.
37+
* Optional. The cpu request of the container. Use the following CPU resource
38+
* units: https://kubernetes.io/docs/concepts/configuration/manage-resources-
39+
* containers/#meaning-of-cpu.
3640
*
3741
* @var string
3842
*/
3943
public $cpuRequest;
4044
/**
41-
* Optional. The memory limit of the container.
45+
* Optional. The memory limit of the container. Use the following memory
46+
* resource units: https://kubernetes.io/docs/concepts/configuration/manage-
47+
* resources-containers/#meaning-of-memory.
4248
*
4349
* @var string
4450
*/
4551
public $memoryLimit;
4652
/**
47-
* Optional. The memory request of the container.
53+
* Optional. The memory request of the container. Use the following memory
54+
* resource units: https://kubernetes.io/docs/concepts/configuration/manage-
55+
* resources-containers/#meaning-of-memory.
4856
*
4957
* @var string
5058
*/
@@ -67,7 +75,9 @@ public function getContainerName()
6775
return $this->containerName;
6876
}
6977
/**
70-
* Optional. The cpu limit of the container.
78+
* Optional. The cpu limit of the container. Use the following CPU resource
79+
* units: https://kubernetes.io/docs/concepts/configuration/manage-resources-
80+
* containers/#meaning-of-cpu.
7181
*
7282
* @param string $cpuLimit
7383
*/
@@ -83,7 +93,9 @@ public function getCpuLimit()
8393
return $this->cpuLimit;
8494
}
8595
/**
86-
* Optional. The cpu request of the container.
96+
* Optional. The cpu request of the container. Use the following CPU resource
97+
* units: https://kubernetes.io/docs/concepts/configuration/manage-resources-
98+
* containers/#meaning-of-cpu.
8799
*
88100
* @param string $cpuRequest
89101
*/
@@ -99,7 +111,9 @@ public function getCpuRequest()
99111
return $this->cpuRequest;
100112
}
101113
/**
102-
* Optional. The memory limit of the container.
114+
* Optional. The memory limit of the container. Use the following memory
115+
* resource units: https://kubernetes.io/docs/concepts/configuration/manage-
116+
* resources-containers/#meaning-of-memory.
103117
*
104118
* @param string $memoryLimit
105119
*/
@@ -115,7 +129,9 @@ public function getMemoryLimit()
115129
return $this->memoryLimit;
116130
}
117131
/**
118-
* Optional. The memory request of the container.
132+
* Optional. The memory request of the container. Use the following memory
133+
* resource units: https://kubernetes.io/docs/concepts/configuration/manage-
134+
* resources-containers/#meaning-of-memory.
119135
*
120136
* @param string $memoryRequest
121137
*/

src/GKEHub/ConfigManagementGitConfig.php

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,15 @@ class ConfigManagementGitConfig extends \Google\Model
2121
{
2222
/**
2323
* Optional. The Google Cloud Service Account Email used for auth when
24-
* secret_type is gcpServiceAccount.
24+
* secret_type is `gcpserviceaccount`.
2525
*
2626
* @var string
2727
*/
2828
public $gcpServiceAccountEmail;
2929
/**
3030
* Optional. URL for the HTTPS proxy to be used when communicating with the
31-
* Git repo.
31+
* Git repo. Only specify when secret_type is `cookiefile`, `token`, or
32+
* `none`.
3233
*
3334
* @var string
3435
*/
@@ -42,8 +43,8 @@ class ConfigManagementGitConfig extends \Google\Model
4243
public $policyDir;
4344
/**
4445
* Required. Type of secret configured for access to the Git repo. Must be one
45-
* of ssh, cookiefile, gcenode, token, gcpserviceaccount, githubapp or none.
46-
* The validation of this is case-sensitive.
46+
* of `ssh`, `cookiefile`, `gcenode`, `token`, `gcpserviceaccount`,
47+
* `githubapp` or `none`. The validation of this is case-sensitive.
4748
*
4849
* @var string
4950
*/
@@ -75,7 +76,7 @@ class ConfigManagementGitConfig extends \Google\Model
7576

7677
/**
7778
* Optional. The Google Cloud Service Account Email used for auth when
78-
* secret_type is gcpServiceAccount.
79+
* secret_type is `gcpserviceaccount`.
7980
*
8081
* @param string $gcpServiceAccountEmail
8182
*/
@@ -92,7 +93,8 @@ public function getGcpServiceAccountEmail()
9293
}
9394
/**
9495
* Optional. URL for the HTTPS proxy to be used when communicating with the
95-
* Git repo.
96+
* Git repo. Only specify when secret_type is `cookiefile`, `token`, or
97+
* `none`.
9698
*
9799
* @param string $httpsProxy
98100
*/
@@ -126,8 +128,8 @@ public function getPolicyDir()
126128
}
127129
/**
128130
* Required. Type of secret configured for access to the Git repo. Must be one
129-
* of ssh, cookiefile, gcenode, token, gcpserviceaccount, githubapp or none.
130-
* The validation of this is case-sensitive.
131+
* of `ssh`, `cookiefile`, `gcenode`, `token`, `gcpserviceaccount`,
132+
* `githubapp` or `none`. The validation of this is case-sensitive.
131133
*
132134
* @param string $secretType
133135
*/

src/GKEHub/ConfigManagementOciConfig.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class ConfigManagementOciConfig extends \Google\Model
2121
{
2222
/**
2323
* Optional. The Google Cloud Service Account Email used for auth when
24-
* secret_type is gcpServiceAccount.
24+
* secret_type is `gcpserviceaccount`.
2525
*
2626
* @var string
2727
*/
@@ -35,8 +35,8 @@ class ConfigManagementOciConfig extends \Google\Model
3535
public $policyDir;
3636
/**
3737
* Required. Type of secret configured for access to the OCI repo. Must be one
38-
* of gcenode, gcpserviceaccount, k8sserviceaccount or none. The validation of
39-
* this is case-sensitive.
38+
* of `gcenode`, `gcpserviceaccount`, `k8sserviceaccount` or `none`. The
39+
* validation of this is case-sensitive.
4040
*
4141
* @var string
4242
*/
@@ -57,7 +57,7 @@ class ConfigManagementOciConfig extends \Google\Model
5757

5858
/**
5959
* Optional. The Google Cloud Service Account Email used for auth when
60-
* secret_type is gcpServiceAccount.
60+
* secret_type is `gcpserviceaccount`.
6161
*
6262
* @param string $gcpServiceAccountEmail
6363
*/
@@ -91,8 +91,8 @@ public function getPolicyDir()
9191
}
9292
/**
9393
* Required. Type of secret configured for access to the OCI repo. Must be one
94-
* of gcenode, gcpserviceaccount, k8sserviceaccount or none. The validation of
95-
* this is case-sensitive.
94+
* of `gcenode`, `gcpserviceaccount`, `k8sserviceaccount` or `none`. The
95+
* validation of this is case-sensitive.
9696
*
9797
* @param string $secretType
9898
*/

src/GKEHub/ConfigManagementSpec.php

Lines changed: 26 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,14 @@ class ConfigManagementSpec extends \Google\Model
3434
protected $binauthzType = ConfigManagementBinauthzConfig::class;
3535
protected $binauthzDataType = '';
3636
/**
37-
* Optional. The user-specified cluster name used by Config Sync cluster-name-
38-
* selector annotation or ClusterSelector, for applying configs to only a
39-
* subset of clusters. Omit this field if the cluster's fleet membership name
40-
* is used by Config Sync cluster-name-selector annotation or ClusterSelector.
41-
* Set this field if a name different from the cluster's fleet membership name
42-
* is used by Config Sync cluster-name-selector annotation or ClusterSelector.
37+
* Optional. User-specified cluster name used by the Config Sync cluster-name-
38+
* selector annotation or ClusterSelector object, for applying configs to only
39+
* a subset of clusters. Read more about the cluster-name-selector annotation
40+
* and ClusterSelector object at https://docs.cloud.google.com/kubernetes-
41+
* engine/config-sync/docs/how-to/cluster-scoped-objects#limiting-configs.
42+
* Only set this field if a name different from the cluster's fleet membership
43+
* name is used by the Config Sync cluster-name-selector annotation or
44+
* ClusterSelector.
4345
*
4446
* @var string
4547
*/
@@ -59,15 +61,18 @@ class ConfigManagementSpec extends \Google\Model
5961
protected $policyControllerType = ConfigManagementPolicyController::class;
6062
protected $policyControllerDataType = '';
6163
/**
62-
* Optional. Version of ACM installed.
64+
* Optional. Version of Config Sync to install. Defaults to the latest
65+
* supported Config Sync version if the config_sync field is enabled. See
66+
* supported versions at https://cloud.google.com/kubernetes-engine/config-
67+
* sync/docs/get-support-config-sync#version_support_policy.
6368
*
6469
* @var string
6570
*/
6671
public $version;
6772

6873
/**
69-
* Optional. Binauthz conifguration for the cluster. Deprecated: This field
70-
* will be ignored and should not be set.
74+
* Optional. Deprecated: Binauthz configuration will be ignored and should not
75+
* be set.
7176
*
7277
* @deprecated
7378
* @param ConfigManagementBinauthzConfig $binauthz
@@ -85,12 +90,14 @@ public function getBinauthz()
8590
return $this->binauthz;
8691
}
8792
/**
88-
* Optional. The user-specified cluster name used by Config Sync cluster-name-
89-
* selector annotation or ClusterSelector, for applying configs to only a
90-
* subset of clusters. Omit this field if the cluster's fleet membership name
91-
* is used by Config Sync cluster-name-selector annotation or ClusterSelector.
92-
* Set this field if a name different from the cluster's fleet membership name
93-
* is used by Config Sync cluster-name-selector annotation or ClusterSelector.
93+
* Optional. User-specified cluster name used by the Config Sync cluster-name-
94+
* selector annotation or ClusterSelector object, for applying configs to only
95+
* a subset of clusters. Read more about the cluster-name-selector annotation
96+
* and ClusterSelector object at https://docs.cloud.google.com/kubernetes-
97+
* engine/config-sync/docs/how-to/cluster-scoped-objects#limiting-configs.
98+
* Only set this field if a name different from the cluster's fleet membership
99+
* name is used by the Config Sync cluster-name-selector annotation or
100+
* ClusterSelector.
94101
*
95102
* @param string $cluster
96103
*/
@@ -185,7 +192,10 @@ public function getPolicyController()
185192
return $this->policyController;
186193
}
187194
/**
188-
* Optional. Version of ACM installed.
195+
* Optional. Version of Config Sync to install. Defaults to the latest
196+
* supported Config Sync version if the config_sync field is enabled. See
197+
* supported versions at https://cloud.google.com/kubernetes-engine/config-
198+
* sync/docs/get-support-config-sync#version_support_policy.
189199
*
190200
* @param string $version
191201
*/

src/GKEHub/FeatureState.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ class FeatureState extends \Google\Model
3737
protected $servicemeshDataType = '';
3838
protected $stateType = State::class;
3939
protected $stateDataType = '';
40+
protected $workloadidentityType = WorkloadIdentityState::class;
41+
protected $workloadidentityDataType = '';
4042

4143
/**
4244
* Appdevexperience specific state.
@@ -182,6 +184,22 @@ public function getState()
182184
{
183185
return $this->state;
184186
}
187+
/**
188+
* Workload Identity state
189+
*
190+
* @param WorkloadIdentityState $workloadidentity
191+
*/
192+
public function setWorkloadidentity(WorkloadIdentityState $workloadidentity)
193+
{
194+
$this->workloadidentity = $workloadidentity;
195+
}
196+
/**
197+
* @return WorkloadIdentityState
198+
*/
199+
public function getWorkloadidentity()
200+
{
201+
return $this->workloadidentity;
202+
}
185203
}
186204

187205
// Adding a class alias for backwards compatibility with the previous class name.

0 commit comments

Comments
 (0)