You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<pclass="firstline">Creates a new Membership. **This is currently only supported for GKE clusters on Google Cloud**. To register other clusters, follow the instructions at https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.</p>
<pclass="firstline">Removes a Membership. **This is currently only supported for GKE clusters on Google Cloud**. To unregister other clusters, follow the instructions at https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.</p>
<pre>Removes a Membership. **This is currently only supported for GKE clusters on Google Cloud**. To unregister other clusters, follow the instructions at https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
233
238
234
239
Args:
235
240
name: string, Required. The Membership resource name in the format `projects/*/locations/*/memberships/*`. (required)
241
+
force: boolean, Optional. If set to true, any subresource from this Membership will also be deleted. Otherwise, the request will only work if the Membership has no subresource.
236
242
requestId: string, Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
parent: string, Required. The parent (project and location) where the Scope will be created. Specified in the format `projects/*/locations/*`. (required)
107
+
body: object, The request body.
108
+
The object takes the form of:
109
+
110
+
{ # Scope represents a Scope in a Fleet.
111
+
"createTime": "A String", # Output only. When the scope was created.
112
+
"deleteTime": "A String", # Output only. When the scope was deleted.
113
+
"name": "A String", # The resource name for the scope `projects/{project}/locations/{location}/scopes/{scope}`
114
+
"state": { # ScopeLifecycleState describes the state of a Scope resource. # Output only. State of the scope resource.
115
+
"code": "A String", # Output only. The current state of the scope resource.
116
+
},
117
+
"uid": "A String", # Output only. Google-generated UUID for this resource. This is unique across all scope resources. If a scope resource is deleted and another resource with the same name is created, it gets a different uid.
118
+
"updateTime": "A String", # Output only. When the scope was last updated.
119
+
}
120
+
121
+
scopeId: string, Required. Client chosen ID for the Scope. `scope_id` must be a ????
122
+
x__xgafv: string, V1 error format.
123
+
Allowed values
124
+
1 - v1 error format
125
+
2 - v2 error format
126
+
127
+
Returns:
128
+
An object of the form:
129
+
130
+
{ # This resource represents a long-running operation that is the result of a network API call.
131
+
"done": True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
132
+
"error": { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
133
+
"code": 42, # The status code, which should be an enum value of google.rpc.Code.
134
+
"details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
135
+
{
136
+
"a_key": "", # Properties of the object. Contains field @type with type URL.
137
+
},
138
+
],
139
+
"message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
140
+
},
141
+
"metadata": { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
142
+
"a_key": "", # Properties of the object. Contains field @type with type URL.
143
+
},
144
+
"name": "A String", # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
145
+
"response": { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
146
+
"a_key": "", # Properties of the object. Contains field @type with type URL.
name: string, Required. The Scope resource name in the format `projects/*/locations/*/scopes/*`. (required)
157
+
x__xgafv: string, V1 error format.
158
+
Allowed values
159
+
1 - v1 error format
160
+
2 - v2 error format
161
+
162
+
Returns:
163
+
An object of the form:
164
+
165
+
{ # This resource represents a long-running operation that is the result of a network API call.
166
+
"done": True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
167
+
"error": { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
168
+
"code": 42, # The status code, which should be an enum value of google.rpc.Code.
169
+
"details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
170
+
{
171
+
"a_key": "", # Properties of the object. Contains field @type with type URL.
172
+
},
173
+
],
174
+
"message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
175
+
},
176
+
"metadata": { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
177
+
"a_key": "", # Properties of the object. Contains field @type with type URL.
178
+
},
179
+
"name": "A String", # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
180
+
"response": { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
181
+
"a_key": "", # Properties of the object. Contains field @type with type URL.
name: string, Required. The Scope resource name in the format `projects/*/locations/*/scopes/*`. (required)
192
+
x__xgafv: string, V1 error format.
193
+
Allowed values
194
+
1 - v1 error format
195
+
2 - v2 error format
196
+
197
+
Returns:
198
+
An object of the form:
199
+
200
+
{ # Scope represents a Scope in a Fleet.
201
+
"createTime": "A String", # Output only. When the scope was created.
202
+
"deleteTime": "A String", # Output only. When the scope was deleted.
203
+
"name": "A String", # The resource name for the scope `projects/{project}/locations/{location}/scopes/{scope}`
204
+
"state": { # ScopeLifecycleState describes the state of a Scope resource. # Output only. State of the scope resource.
205
+
"code": "A String", # Output only. The current state of the scope resource.
206
+
},
207
+
"uid": "A String", # Output only. Google-generated UUID for this resource. This is unique across all scope resources. If a scope resource is deleted and another resource with the same name is created, it gets a different uid.
208
+
"updateTime": "A String", # Output only. When the scope was last updated.
parent: string, Required. The parent (project and location) where the Scope will be listed. Specified in the format `projects/*/locations/*`. (required)
218
+
pageSize: integer, Optional. When requesting a 'page' of resources, `page_size` specifies number of resources to return. If unspecified or set to 0, all resources will be returned.
219
+
pageToken: string, Optional. Token returned by previous call to `ListScopes` which specifies the position in the list from where to continue listing the resources.
220
+
x__xgafv: string, V1 error format.
221
+
Allowed values
222
+
1 - v1 error format
223
+
2 - v2 error format
224
+
225
+
Returns:
226
+
An object of the form:
227
+
228
+
{ # List of Scopes.
229
+
"nextPageToken": "A String", # A token to request the next page of resources from the `ListScopes` method. The value of an empty string means that there are no more resources to return.
230
+
"scopes": [ # The list of Scopes
231
+
{ # Scope represents a Scope in a Fleet.
232
+
"createTime": "A String", # Output only. When the scope was created.
233
+
"deleteTime": "A String", # Output only. When the scope was deleted.
234
+
"name": "A String", # The resource name for the scope `projects/{project}/locations/{location}/scopes/{scope}`
235
+
"state": { # ScopeLifecycleState describes the state of a Scope resource. # Output only. State of the scope resource.
236
+
"code": "A String", # Output only. The current state of the scope resource.
237
+
},
238
+
"uid": "A String", # Output only. Google-generated UUID for this resource. This is unique across all scope resources. If a scope resource is deleted and another resource with the same name is created, it gets a different uid.
239
+
"updateTime": "A String", # Output only. When the scope was last updated.
0 commit comments