Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 8965431

Browse files
committedJun 27, 2023
feat(gkehub): update the api
#### gkehub:v1 The following keys were deleted: - schemas.ConfigManagementConfigSync.properties.managed.$ref (Total Keys: 1) - schemas.ConfigManagementManaged (Total Keys: 4) - schemas.MembershipFeatureSpec.properties.fleetInherited.type (Total Keys: 1) The following keys were added: - schemas.ConfigManagementConfigSync.properties.allowVerticalScale.deprecated (Total Keys: 1) - schemas.ConfigManagementConfigSync.properties.stopSyncing.type (Total Keys: 1) - schemas.ConfigManagementMembershipSpec.properties.management.type (Total Keys: 1) - schemas.ConfigManagementSyncState.properties.lastSync.deprecated (Total Keys: 1) - schemas.MembershipFeatureSpec.properties.origin.$ref (Total Keys: 1) - schemas.Origin (Total Keys: 3) - schemas.ServiceMeshMembershipSpec.properties.controlPlane.deprecated (Total Keys: 1) #### gkehub:v1alpha The following keys were deleted: - schemas.ConfigManagementConfigSync.properties.managed.$ref (Total Keys: 1) - schemas.ConfigManagementManaged (Total Keys: 4) - schemas.MembershipFeatureSpec.properties.fleetInherited.type (Total Keys: 1) The following keys were added: - resources.projects.resources.locations.resources.memberships.resources.rbacrolebindings.methods.create (Total Keys: 14) - resources.projects.resources.locations.resources.memberships.resources.rbacrolebindings.methods.delete (Total Keys: 11) - resources.projects.resources.locations.resources.memberships.resources.rbacrolebindings.methods.generateMembershipRBACRoleBindingYAML (Total Keys: 14) - resources.projects.resources.locations.resources.memberships.resources.rbacrolebindings.methods.get (Total Keys: 11) - resources.projects.resources.locations.resources.memberships.resources.rbacrolebindings.methods.list (Total Keys: 16) - resources.projects.resources.locations.resources.memberships.resources.rbacrolebindings.methods.patch (Total Keys: 15) - schemas.ConfigManagementConfigSync.properties.allowVerticalScale.deprecated (Total Keys: 1) - schemas.ConfigManagementConfigSync.properties.stopSyncing.type (Total Keys: 1) - schemas.ConfigManagementMembershipSpec.properties.management.type (Total Keys: 1) - schemas.ConfigManagementSyncState.properties.lastSync.deprecated (Total Keys: 1) - schemas.GenerateMembershipRBACRoleBindingYAMLResponse (Total Keys: 3) - schemas.ListMembershipRBACRoleBindingsResponse (Total Keys: 5) - schemas.MembershipFeatureSpec.properties.origin.$ref (Total Keys: 1) - schemas.MultiClusterIngressFeatureSpec.properties.billing.deprecated (Total Keys: 1) - schemas.Origin (Total Keys: 3) - schemas.ServiceMeshMembershipSpec.properties.controlPlane.deprecated (Total Keys: 1) #### gkehub:v1beta The following keys were deleted: - schemas.ConfigManagementConfigSync.properties.managed.$ref (Total Keys: 1) - schemas.ConfigManagementManaged (Total Keys: 4) - schemas.MembershipFeatureSpec.properties.fleetInherited.type (Total Keys: 1) The following keys were added: - resources.projects.resources.locations.resources.memberships.resources.rbacrolebindings.methods.create (Total Keys: 14) - resources.projects.resources.locations.resources.memberships.resources.rbacrolebindings.methods.delete (Total Keys: 11) - resources.projects.resources.locations.resources.memberships.resources.rbacrolebindings.methods.generateMembershipRBACRoleBindingYAML (Total Keys: 14) - resources.projects.resources.locations.resources.memberships.resources.rbacrolebindings.methods.get (Total Keys: 11) - resources.projects.resources.locations.resources.memberships.resources.rbacrolebindings.methods.list (Total Keys: 16) - resources.projects.resources.locations.resources.memberships.resources.rbacrolebindings.methods.patch (Total Keys: 15) - schemas.ConfigManagementConfigSync.properties.allowVerticalScale.deprecated (Total Keys: 1) - schemas.ConfigManagementConfigSync.properties.stopSyncing.type (Total Keys: 1) - schemas.ConfigManagementMembershipSpec.properties.management.type (Total Keys: 1) - schemas.ConfigManagementSyncState.properties.lastSync.deprecated (Total Keys: 1) - schemas.GenerateMembershipRBACRoleBindingYAMLResponse (Total Keys: 3) - schemas.ListMembershipRBACRoleBindingsResponse (Total Keys: 5) - schemas.MembershipFeatureSpec.properties.origin.$ref (Total Keys: 1) - schemas.MultiClusterIngressFeatureSpec.properties.billing.deprecated (Total Keys: 1) - schemas.Origin (Total Keys: 3) - schemas.ServiceMeshMembershipSpec.properties.controlPlane.deprecated (Total Keys: 1) #### gkehub:v1beta1 The following keys were added: - schemas.MembershipState.properties.updateTime.deprecated (Total Keys: 1)
1 parent 3d64eb8 commit 8965431

13 files changed

+1544
-295
lines changed
 

‎docs/dyn/gkehub_v1.projects.locations.features.html

+60-68
Large diffs are not rendered by default.

‎docs/dyn/gkehub_v1alpha.projects.locations.features.html

+60-68
Large diffs are not rendered by default.

‎docs/dyn/gkehub_v1alpha.projects.locations.memberships.html

+5
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,11 @@ <h2>Instance Methods</h2>
7979
</p>
8080
<p class="firstline">Returns the bindings Resource.</p>
8181

82+
<p class="toc_element">
83+
<code><a href="gkehub_v1alpha.projects.locations.memberships.rbacrolebindings.html">rbacrolebindings()</a></code>
84+
</p>
85+
<p class="firstline">Returns the rbacrolebindings Resource.</p>
86+
8287
<p class="toc_element">
8388
<code><a href="#close">close()</a></code></p>
8489
<p class="firstline">Close httplib2 connections.</p>

‎docs/dyn/gkehub_v1alpha.projects.locations.memberships.rbacrolebindings.html

+374
Large diffs are not rendered by default.

‎docs/dyn/gkehub_v1beta.projects.locations.features.html

+60-68
Large diffs are not rendered by default.

‎docs/dyn/gkehub_v1beta.projects.locations.memberships.html

+5
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,11 @@ <h2>Instance Methods</h2>
7979
</p>
8080
<p class="firstline">Returns the bindings Resource.</p>
8181

82+
<p class="toc_element">
83+
<code><a href="gkehub_v1beta.projects.locations.memberships.rbacrolebindings.html">rbacrolebindings()</a></code>
84+
</p>
85+
<p class="firstline">Returns the rbacrolebindings Resource.</p>
86+
8287
<p class="toc_element">
8388
<code><a href="#close">close()</a></code></p>
8489
<p class="firstline">Close httplib2 connections.</p>

‎docs/dyn/gkehub_v1beta.projects.locations.memberships.rbacrolebindings.html

+374
Large diffs are not rendered by default.

‎googleapiclient/discovery_cache/documents/gkehub.v1.json

+51-28
Original file line numberDiff line numberDiff line change
@@ -1518,7 +1518,7 @@
15181518
}
15191519
}
15201520
},
1521-
"revision": "20230609",
1521+
"revision": "20230620",
15221522
"rootUrl": "https://gkehub.googleapis.com/",
15231523
"schemas": {
15241524
"AppDevExperienceFeatureSpec": {
@@ -1701,23 +1701,20 @@
17011701
"id": "ConfigManagementConfigSync",
17021702
"properties": {
17031703
"allowVerticalScale": {
1704+
"deprecated": true,
17041705
"description": "Set to true to allow the vertical scaling. Defaults to false which disallows vertical scaling. This field is deprecated.",
17051706
"type": "boolean"
17061707
},
17071708
"enabled": {
1708-
"description": "Enables the installation of ConfigSync. If set to true, ConfigSync resources will be created and the other ConfigSync fields will be applied if exist. If set to false and Managed Config Sync is disabled, all other ConfigSync fields will be ignored, ConfigSync resources will be deleted. Setting this field to false while enabling Managed Config Sync is invalid. If omitted, ConfigSync resources will be managed if: * the git or oci field is present; or * Managed Config Sync is enabled (i.e., managed.enabled is true).",
1709+
"description": "Enables the installation of ConfigSync. If set to true, ConfigSync resources will be created and the other ConfigSync fields will be applied if exist. If set to false, all other ConfigSync fields will be ignored, ConfigSync resources will be deleted. If omitted, ConfigSync resources will be managed depends on the presence of the git or oci field.",
17091710
"type": "boolean"
17101711
},
17111712
"git": {
17121713
"$ref": "ConfigManagementGitConfig",
17131714
"description": "Git repo configuration for the cluster."
17141715
},
1715-
"managed": {
1716-
"$ref": "ConfigManagementManaged",
1717-
"description": "Configuration for Managed Config Sync."
1718-
},
17191716
"metricsGcpServiceAccountEmail": {
1720-
"description": "The Email of the GCP Service Account (GSA) used for exporting Config Sync metrics to Cloud Monitoring and Cloud Monarch when Workload Identity is enabled. The GSA should have the Monitoring Metric Writer (roles/monitoring.metricWriter) IAM role. The Kubernetes ServiceAccount `default` in the namespace `config-management-monitoring` should be binded to the GSA. This field is required when Managed Config Sync is enabled.",
1717+
"description": "The Email of the Google Cloud Service Account (GSA) used for exporting Config Sync metrics to Cloud Monitoring and Cloud Monarch when Workload Identity is enabled. The GSA should have the Monitoring Metric Writer (roles/monitoring.metricWriter) IAM role. The Kubernetes ServiceAccount `default` in the namespace `config-management-monitoring` should be binded to the GSA. This field is required when automatic Feature management is enabled.",
17211718
"type": "string"
17221719
},
17231720
"oci": {
@@ -1731,6 +1728,10 @@
17311728
"sourceFormat": {
17321729
"description": "Specifies whether the Config Sync Repo is in \"hierarchical\" or \"unstructured\" mode.",
17331730
"type": "string"
1731+
},
1732+
"stopSyncing": {
1733+
"description": "Set to true to stop syncing configs for a single cluster when automatic Feature management is enabled. Default to false. The field will be ignored when automatic Feature management is disabled.",
1734+
"type": "boolean"
17341735
}
17351736
},
17361737
"type": "object"
@@ -2009,7 +2010,7 @@
20092010
"id": "ConfigManagementGitConfig",
20102011
"properties": {
20112012
"gcpServiceAccountEmail": {
2012-
"description": "The GCP Service Account Email used for auth when secret_type is gcpServiceAccount.",
2013+
"description": "The Google Cloud Service Account Email used for auth when secret_type is gcpServiceAccount.",
20132014
"type": "string"
20142015
},
20152016
"httpsProxy": {
@@ -2162,21 +2163,6 @@
21622163
},
21632164
"type": "object"
21642165
},
2165-
"ConfigManagementManaged": {
2166-
"description": "Configuration for Managed Config Sync.",
2167-
"id": "ConfigManagementManaged",
2168-
"properties": {
2169-
"enabled": {
2170-
"description": "Set to true to enable Managed Config Sync. Defaults to false which disables Managed Config Sync. Setting this field to true when configSync.enabled is false is invalid.",
2171-
"type": "boolean"
2172-
},
2173-
"stopSyncing": {
2174-
"description": "Set to true to stop syncing configs for a single cluster. Default to false. If set to true, Managed Config Sync will not upgrade Config Sync.",
2175-
"type": "boolean"
2176-
}
2177-
},
2178-
"type": "object"
2179-
},
21802166
"ConfigManagementMembershipSpec": {
21812167
"description": "**Anthos Config Management**: Configuration for a single cluster. Intended to parallel the ConfigManagement CR.",
21822168
"id": "ConfigManagementMembershipSpec",
@@ -2193,6 +2179,20 @@
21932179
"$ref": "ConfigManagementHierarchyControllerConfig",
21942180
"description": "Hierarchy Controller configuration for the cluster."
21952181
},
2182+
"management": {
2183+
"description": "Enables automatic Feature management.",
2184+
"enum": [
2185+
"MANAGEMENT_UNSPECIFIED",
2186+
"MANAGEMENT_AUTOMATIC",
2187+
"MANAGEMENT_MANUAL"
2188+
],
2189+
"enumDescriptions": [
2190+
"Unspecified",
2191+
"Google will manage the Feature for the cluster.",
2192+
"User will manually manage the Feature for the cluster."
2193+
],
2194+
"type": "string"
2195+
},
21962196
"policyController": {
21972197
"$ref": "ConfigManagementPolicyController",
21982198
"description": "Policy Controller configuration for the cluster."
@@ -2240,7 +2240,7 @@
22402240
"id": "ConfigManagementOciConfig",
22412241
"properties": {
22422242
"gcpServiceAccountEmail": {
2243-
"description": "The GCP Service Account Email used for auth when secret_type is gcpServiceAccount.",
2243+
"description": "The Google Cloud Service Account Email used for auth when secret_type is gcpServiceAccount.",
22442244
"type": "string"
22452245
},
22462246
"policyDir": {
@@ -2488,6 +2488,7 @@
24882488
"type": "string"
24892489
},
24902490
"lastSync": {
2491+
"deprecated": true,
24912492
"description": "Deprecated: use last_sync_time instead. Timestamp of when ACM last successfully synced the repo The time format is specified in https://golang.org/pkg/time/#Time.String",
24922493
"type": "string"
24932494
},
@@ -3471,10 +3472,6 @@
34713472
"$ref": "ConfigManagementMembershipSpec",
34723473
"description": "Config Management-specific spec."
34733474
},
3474-
"fleetInherited": {
3475-
"description": "True if value of `feature_spec` was inherited from a fleet-level default.",
3476-
"type": "boolean"
3477-
},
34783475
"fleetobservability": {
34793476
"$ref": "FleetObservabilityMembershipSpec",
34803477
"description": "Fleet observability membership spec"
@@ -3486,6 +3483,10 @@
34863483
"mesh": {
34873484
"$ref": "ServiceMeshMembershipSpec",
34883485
"description": "Anthos Service Mesh-specific spec"
3486+
},
3487+
"origin": {
3488+
"$ref": "Origin",
3489+
"description": "Whether this per-Membership spec was inherited from a fleet-level default. This field can be updated by users by either overriding a Membership config (updated to USER implicitly) or setting to FLEET explicitly."
34893490
}
34903491
},
34913492
"type": "object"
@@ -3720,6 +3721,27 @@
37203721
},
37213722
"type": "object"
37223723
},
3724+
"Origin": {
3725+
"description": "Origin defines where this MembershipFeatureSpec originated from.",
3726+
"id": "Origin",
3727+
"properties": {
3728+
"type": {
3729+
"description": "Type specifies which type of origin is set.",
3730+
"enum": [
3731+
"TYPE_UNSPECIFIED",
3732+
"FLEET",
3733+
"USER"
3734+
],
3735+
"enumDescriptions": [
3736+
"Type is unknown or not set.",
3737+
"Per-Membership spec was inherited from the fleet-level default.",
3738+
"Per-Membership spec was inherited from a user specification."
3739+
],
3740+
"type": "string"
3741+
}
3742+
},
3743+
"type": "object"
3744+
},
37233745
"Policy": {
37243746
"description": "An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { \"bindings\": [ { \"role\": \"roles/resourcemanager.organizationAdmin\", \"members\": [ \"user:mike@example.com\", \"group:admins@example.com\", \"domain:google.com\", \"serviceAccount:my-project-id@appspot.gserviceaccount.com\" ] }, { \"role\": \"roles/resourcemanager.organizationViewer\", \"members\": [ \"user:eve@example.com\" ], \"condition\": { \"title\": \"expirable access\", \"description\": \"Does not grant access after Sep 2020\", \"expression\": \"request.time < timestamp('2020-10-01T00:00:00.000Z')\", } } ], \"etag\": \"BwWWja0YfJA=\", \"version\": 3 } **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).",
37253747
"id": "Policy",
@@ -3953,6 +3975,7 @@
39533975
"id": "ServiceMeshMembershipSpec",
39543976
"properties": {
39553977
"controlPlane": {
3978+
"deprecated": true,
39563979
"description": "Deprecated: use `management` instead Enables automatic control plane management.",
39573980
"enum": [
39583981
"CONTROL_PLANE_MANAGEMENT_UNSPECIFIED",

0 commit comments

Comments
 (0)
Please sign in to comment.