Skip to content

Commit 2a905ea

Browse files
feat(gkehub): update the api
#### gkehub:v1 The following keys were deleted: - schemas.ConfigManagementConfigSync.properties.resourceRequirements (Total Keys: 2) - schemas.ConfigManagementContainerResourceRequirements (Total Keys: 5) - schemas.ConfigManagementGitConfig.properties.noSslVerify.type (Total Keys: 1) - schemas.ConfigManagementGitConfig.properties.syncDepth (Total Keys: 2) - schemas.ConfigManagementQuantity (Total Keys: 3) #### gkehub:v1alpha The following keys were deleted: - schemas.ConfigManagementConfigSync.properties.resourceRequirements (Total Keys: 2) - schemas.ConfigManagementContainerResourceRequirements (Total Keys: 5) - schemas.ConfigManagementGitConfig.properties.noSslVerify.type (Total Keys: 1) - schemas.ConfigManagementGitConfig.properties.syncDepth (Total Keys: 2) - schemas.ConfigManagementQuantity (Total Keys: 3) The following keys were added: - resources.projects.resources.locations.resources.memberships.methods.listAdmin (Total Keys: 20) - schemas.Authority (Total Keys: 9) - schemas.ConfigManagementConfigSync.properties.enabled.type (Total Keys: 1) - schemas.GkeCluster (Total Keys: 5) - schemas.KubernetesMetadata (Total Keys: 18) - schemas.ListAdminClusterMembershipsResponse (Total Keys: 7) - schemas.Membership (Total Keys: 36) - schemas.MultiCloudCluster (Total Keys: 5) - schemas.OnPremCluster (Total Keys: 6) #### gkehub:v1beta The following keys were deleted: - schemas.ConfigManagementConfigSync.properties.resourceRequirements (Total Keys: 2) - schemas.ConfigManagementContainerResourceRequirements (Total Keys: 5) - schemas.ConfigManagementGitConfig.properties.noSslVerify.type (Total Keys: 1) - schemas.ConfigManagementGitConfig.properties.syncDepth (Total Keys: 2) - schemas.ConfigManagementQuantity (Total Keys: 3)
1 parent ba7a288 commit 2a905ea

9 files changed

+422
-455
lines changed

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

Lines changed: 0 additions & 104 deletions
Large diffs are not rendered by default.

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

Lines changed: 8 additions & 104 deletions
Large diffs are not rendered by default.

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

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,12 @@ <h2>Instance Methods</h2>
8080
<p class="toc_element">
8181
<code><a href="#getIamPolicy">getIamPolicy(resource, options_requestedPolicyVersion=None, x__xgafv=None)</a></code></p>
8282
<p class="firstline">Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.</p>
83+
<p class="toc_element">
84+
<code><a href="#listAdmin">listAdmin(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
85+
<p class="firstline">Lists Memberships of admin clusters in a given project and location. **This method is only used internally**.</p>
86+
<p class="toc_element">
87+
<code><a href="#listAdmin_next">listAdmin_next(previous_request, previous_response)</a></code></p>
88+
<p class="firstline">Retrieves the next page of results.</p>
8389
<p class="toc_element">
8490
<code><a href="#setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</a></code></p>
8591
<p class="firstline">Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.</p>
@@ -140,6 +146,93 @@ <h3>Method Details</h3>
140146
}</pre>
141147
</div>
142148

149+
<div class="method">
150+
<code class="details" id="listAdmin">listAdmin(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
151+
<pre>Lists Memberships of admin clusters in a given project and location. **This method is only used internally**.
152+
153+
Args:
154+
parent: string, Required. The parent (project and location) where the Memberships of admin cluster will be listed. Specified in the format `projects/*/locations/*`. (required)
155+
filter: string, Optional. Lists Memberships of admin clusters that match the filter expression.
156+
orderBy: string, Optional. One or more fields to compare and use to sort the output. See https://google.aip.dev/132#ordering.
157+
pageSize: integer, Optional. When requesting a &#x27;page&#x27; of resources, `page_size` specifies number of resources to return. If unspecified or set to 0, all resources will be returned.
158+
pageToken: string, Optional. Token returned by previous call to `ListAdminClusterMemberships` which specifies the position in the list from where to continue listing the resources.
159+
x__xgafv: string, V1 error format.
160+
Allowed values
161+
1 - v1 error format
162+
2 - v2 error format
163+
164+
Returns:
165+
An object of the form:
166+
167+
{ # Response message for the `GkeHub.ListAdminClusterMemberships` method.
168+
&quot;adminClusterMemberships&quot;: [ # The list of matching Memberships of admin clusters.
169+
{ # Membership contains information about a member cluster.
170+
&quot;authority&quot;: { # Authority encodes how Google will recognize identities from this Membership. See the workload identity documentation for more details: https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity # Optional. How to identify workloads from this Membership. See the documentation on Workload Identity for more details: https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
171+
&quot;identityProvider&quot;: &quot;A String&quot;, # Output only. An identity provider that reflects the `issuer` in the workload identity pool.
172+
&quot;issuer&quot;: &quot;A String&quot;, # Optional. A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://` and be a valid URL with length &lt;2000 characters. If set, then Google will allow valid OIDC tokens from this issuer to authenticate within the workload_identity_pool. OIDC discovery will be performed on this URI to validate tokens from the issuer. Clearing `issuer` disables Workload Identity. `issuer` cannot be directly modified; it must be cleared (and Workload Identity disabled) before using a new issuer (and re-enabling Workload Identity).
173+
&quot;oidcJwks&quot;: &quot;A String&quot;, # Optional. OIDC verification keys for this Membership in JWKS format (RFC 7517). When this field is set, OIDC discovery will NOT be performed on `issuer`, and instead OIDC tokens will be validated using this field.
174+
&quot;workloadIdentityPool&quot;: &quot;A String&quot;, # Output only. The name of the workload identity pool in which `issuer` will be recognized. There is a single Workload Identity Pool per Hub that is shared between all Memberships that belong to that Hub. For a Hub hosted in {PROJECT_ID}, the workload pool format is `{PROJECT_ID}.hub.id.goog`, although this is subject to change in newer versions of this API.
175+
},
176+
&quot;createTime&quot;: &quot;A String&quot;, # Output only. When the Membership was created.
177+
&quot;deleteTime&quot;: &quot;A String&quot;, # Output only. When the Membership was deleted.
178+
&quot;description&quot;: &quot;A String&quot;, # Output only. Description of this membership, limited to 63 characters. Must match the regex: `a-zA-Z0-9*` This field is present for legacy purposes.
179+
&quot;endpoint&quot;: { # MembershipEndpoint contains information needed to contact a Kubernetes API, endpoint and any additional Kubernetes metadata. # Optional. Endpoint information to reach this member.
180+
&quot;gkeCluster&quot;: { # GkeCluster contains information specific to GKE clusters. # Optional. Specific information for a GKE-on-GCP cluster.
181+
&quot;clusterMissing&quot;: True or False, # Output only. If cluster_missing is set then it denotes that the GKE cluster no longer exists in the GKE Control Plane.
182+
&quot;resourceLink&quot;: &quot;A String&quot;, # Immutable. Self-link of the GCP resource for the GKE cluster. For example: //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster Zonal clusters are also supported.
183+
},
184+
&quot;kubernetesMetadata&quot;: { # KubernetesMetadata provides informational metadata for Memberships representing Kubernetes clusters. # Output only. Useful Kubernetes-specific metadata.
185+
&quot;kubernetesApiServerVersion&quot;: &quot;A String&quot;, # Output only. Kubernetes API server version string as reported by `/version`.
186+
&quot;memoryMb&quot;: 42, # Output only. The total memory capacity as reported by the sum of all Kubernetes nodes resources, defined in MB.
187+
&quot;nodeCount&quot;: 42, # Output only. Node count as reported by Kubernetes nodes resources.
188+
&quot;nodeProviderId&quot;: &quot;A String&quot;, # Output only. Node providerID as reported by the first node in the list of nodes on the Kubernetes endpoint. On Kubernetes platforms that support zero-node clusters (like GKE-on-GCP), the node_count will be zero and the node_provider_id will be empty.
189+
&quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time at which these details were last updated. This update_time is different from the Membership-level update_time since EndpointDetails are updated internally for API consumers.
190+
&quot;vcpuCount&quot;: 42, # Output only. vCPU count as reported by Kubernetes nodes resources.
191+
},
192+
&quot;multiCloudCluster&quot;: { # MultiCloudCluster contains information specific to GKE Multi-Cloud clusters. # Optional. Specific information for a GKE Multi-Cloud cluster.
193+
&quot;clusterMissing&quot;: True or False, # Output only. If cluster_missing is set then it denotes that API(gkemulticloud.googleapis.com) resource for this GKE Multi-Cloud cluster no longer exists.
194+
&quot;resourceLink&quot;: &quot;A String&quot;, # Immutable. Self-link of the GCP resource for the GKE Multi-Cloud cluster. For example: //gkemulticloud.googleapis.com/projects/my-project/locations/us-west1-a/awsClusters/my-cluster //gkemulticloud.googleapis.com/projects/my-project/locations/us-west1-a/azureClusters/my-cluster
195+
},
196+
&quot;onPremCluster&quot;: { # OnPremCluster contains information specific to GKE On-Prem clusters. # Optional. Specific information for a GKE On-Prem cluster.
197+
&quot;adminCluster&quot;: True or False, # Immutable. Whether the cluster is an admin cluster.
198+
&quot;clusterMissing&quot;: True or False, # Output only. If cluster_missing is set then it denotes that API(gkeonprem.googleapis.com) resource for this GKE On-Prem cluster no longer exists.
199+
&quot;resourceLink&quot;: &quot;A String&quot;, # Immutable. Self-link of the GCP resource for the GKE On-Prem cluster. For example: //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/vmwareClusters/my-cluster //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/bareMetalClusters/my-cluster
200+
},
201+
},
202+
&quot;externalId&quot;: &quot;A String&quot;, # Optional. An externally-generated and managed ID for this Membership. This ID may be modified after creation, but this is not recommended. The ID must match the regex: `a-zA-Z0-9*` If this Membership represents a Kubernetes cluster, this value should be set to the UID of the `kube-system` namespace object.
203+
&quot;labels&quot;: { # Optional. GCP labels for this membership.
204+
&quot;a_key&quot;: &quot;A String&quot;,
205+
},
206+
&quot;lastConnectionTime&quot;: &quot;A String&quot;, # Output only. For clusters using Connect, the timestamp of the most recent connection established with Google Cloud. This time is updated every several minutes, not continuously. For clusters that do not use GKE Connect, or that have never connected successfully, this field will be unset.
207+
&quot;name&quot;: &quot;A String&quot;, # Output only. The full, unique name of this Membership resource in the format `projects/*/locations/*/memberships/{membership_id}`, set during creation. `membership_id` must be a valid RFC 1123 compliant DNS label: 1. At most 63 characters in length 2. It must consist of lower case alphanumeric characters or `-` 3. It must start and end with an alphanumeric character Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, with a maximum length of 63 characters.
208+
&quot;state&quot;: { # MembershipState describes the state of a Membership resource. # Output only. State of the Membership resource.
209+
&quot;code&quot;: &quot;A String&quot;, # Output only. The current state of the Membership resource.
210+
},
211+
&quot;uniqueId&quot;: &quot;A String&quot;, # Output only. Google-generated UUID for this resource. This is unique across all Membership resources. If a Membership resource is deleted and another resource with the same name is created, it gets a different unique_id.
212+
&quot;updateTime&quot;: &quot;A String&quot;, # Output only. When the Membership was last updated.
213+
},
214+
],
215+
&quot;nextPageToken&quot;: &quot;A String&quot;, # A token to request the next page of resources from the `ListAdminClusterMemberships` method. The value of an empty string means that there are no more resources to return.
216+
&quot;unreachable&quot;: [ # List of locations that could not be reached while fetching this list.
217+
&quot;A String&quot;,
218+
],
219+
}</pre>
220+
</div>
221+
222+
<div class="method">
223+
<code class="details" id="listAdmin_next">listAdmin_next(previous_request, previous_response)</code>
224+
<pre>Retrieves the next page of results.
225+
226+
Args:
227+
previous_request: The request for the previous page. (required)
228+
previous_response: The response from the request for the previous page. (required)
229+
230+
Returns:
231+
A request object that you can call &#x27;execute()&#x27; on to request the next
232+
page. Returns None if there are no more items in the collection.
233+
</pre>
234+
</div>
235+
143236
<div class="method">
144237
<code class="details" id="setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</code>
145238
<pre>Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.

0 commit comments

Comments
 (0)