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">Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.</p>
<pre>Creates a new ServiceBinding in a given project and location.
116
+
117
+
Args:
118
+
parent: string, Required. The parent resource of the ServiceBinding. Must be in the format `projects/*/locations/global`. (required)
119
+
body: object, The request body.
120
+
The object takes the form of:
121
+
122
+
{ # ServiceBinding is the resource that defines a Service Directory Service to be used in a BackendService resource.
123
+
"createTime": "A String", # Output only. The timestamp when the resource was created.
124
+
"description": "A String", # Optional. A free-text description of the resource. Max length 1024 characters.
125
+
"endpointFilter": "A String", # Optional. The endpoint filter associated with the Service Binding. The syntax is described in http://cloud/service-directory/docs/reference/rpc/google.cloud.servicedirectory.v1#google.cloud.servicedirectory.v1.ResolveServiceRequest
126
+
"labels": { # Optional. Set of label tags associated with the ServiceBinding resource.
127
+
"a_key": "A String",
128
+
},
129
+
"name": "A String", # Required. Name of the ServiceBinding resource. It matches pattern `projects/*/locations/global/serviceBindings/service_binding_name>`.
130
+
"service": "A String", # Required. The full service directory service name of the format /projects/*/locations/*/namespaces/*/services/*
131
+
"updateTime": "A String", # Output only. The timestamp when the resource was updated.
132
+
}
133
+
134
+
serviceBindingId: string, Required. Short name of the ServiceBinding resource to be created.
135
+
x__xgafv: string, V1 error format.
136
+
Allowed values
137
+
1 - v1 error format
138
+
2 - v2 error format
139
+
140
+
Returns:
141
+
An object of the form:
142
+
143
+
{ # This resource represents a long-running operation that is the result of a network API call.
144
+
"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.
145
+
"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.
146
+
"code": 42, # The status code, which should be an enum value of google.rpc.Code.
147
+
"details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
148
+
{
149
+
"a_key": "", # Properties of the object. Contains field @type with type URL.
150
+
},
151
+
],
152
+
"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.
153
+
},
154
+
"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.
155
+
"a_key": "", # Properties of the object. Contains field @type with type URL.
156
+
},
157
+
"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}`.
158
+
"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`.
159
+
"a_key": "", # Properties of the object. Contains field @type with type URL.
name: string, Required. A name of the ServiceBinding to delete. Must be in the format `projects/*/locations/global/serviceBindings/*`. (required)
170
+
x__xgafv: string, V1 error format.
171
+
Allowed values
172
+
1 - v1 error format
173
+
2 - v2 error format
174
+
175
+
Returns:
176
+
An object of the form:
177
+
178
+
{ # This resource represents a long-running operation that is the result of a network API call.
179
+
"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.
180
+
"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.
181
+
"code": 42, # The status code, which should be an enum value of google.rpc.Code.
182
+
"details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
183
+
{
184
+
"a_key": "", # Properties of the object. Contains field @type with type URL.
185
+
},
186
+
],
187
+
"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.
188
+
},
189
+
"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.
190
+
"a_key": "", # Properties of the object. Contains field @type with type URL.
191
+
},
192
+
"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}`.
193
+
"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`.
194
+
"a_key": "", # Properties of the object. Contains field @type with type URL.
name: string, Required. A name of the ServiceBinding to get. Must be in the format `projects/*/locations/global/serviceBindings/*`. (required)
205
+
x__xgafv: string, V1 error format.
206
+
Allowed values
207
+
1 - v1 error format
208
+
2 - v2 error format
209
+
210
+
Returns:
211
+
An object of the form:
212
+
213
+
{ # ServiceBinding is the resource that defines a Service Directory Service to be used in a BackendService resource.
214
+
"createTime": "A String", # Output only. The timestamp when the resource was created.
215
+
"description": "A String", # Optional. A free-text description of the resource. Max length 1024 characters.
216
+
"endpointFilter": "A String", # Optional. The endpoint filter associated with the Service Binding. The syntax is described in http://cloud/service-directory/docs/reference/rpc/google.cloud.servicedirectory.v1#google.cloud.servicedirectory.v1.ResolveServiceRequest
217
+
"labels": { # Optional. Set of label tags associated with the ServiceBinding resource.
218
+
"a_key": "A String",
219
+
},
220
+
"name": "A String", # Required. Name of the ServiceBinding resource. It matches pattern `projects/*/locations/global/serviceBindings/service_binding_name>`.
221
+
"service": "A String", # Required. The full service directory service name of the format /projects/*/locations/*/namespaces/*/services/*
222
+
"updateTime": "A String", # Output only. The timestamp when the resource was updated.
<pre>Lists ServiceBinding in a given project and location.
277
+
278
+
Args:
279
+
parent: string, Required. The project and location from which the ServiceBindings should be listed, specified in the format `projects/*/locations/global`. (required)
280
+
pageSize: integer, Maximum number of ServiceBindings to return per call.
281
+
pageToken: string, The value returned by the last `ListServiceBindingsResponse` Indicates that this is a continuation of a prior `ListRouters` call, and that the system should return the next page of data.
282
+
x__xgafv: string, V1 error format.
283
+
Allowed values
284
+
1 - v1 error format
285
+
2 - v2 error format
286
+
287
+
Returns:
288
+
An object of the form:
289
+
290
+
{ # Response returned by the ListServiceBindings method.
291
+
"nextPageToken": "A String", # If there might be more results than those appearing in this response, then `next_page_token` is included. To get the next set of results, call this method again using the value of `next_page_token` as `page_token`.
292
+
"serviceBindings": [ # List of ServiceBinding resources.
293
+
{ # ServiceBinding is the resource that defines a Service Directory Service to be used in a BackendService resource.
294
+
"createTime": "A String", # Output only. The timestamp when the resource was created.
295
+
"description": "A String", # Optional. A free-text description of the resource. Max length 1024 characters.
296
+
"endpointFilter": "A String", # Optional. The endpoint filter associated with the Service Binding. The syntax is described in http://cloud/service-directory/docs/reference/rpc/google.cloud.servicedirectory.v1#google.cloud.servicedirectory.v1.ResolveServiceRequest
297
+
"labels": { # Optional. Set of label tags associated with the ServiceBinding resource.
298
+
"a_key": "A String",
299
+
},
300
+
"name": "A String", # Required. Name of the ServiceBinding resource. It matches pattern `projects/*/locations/global/serviceBindings/service_binding_name>`.
301
+
"service": "A String", # Required. The full service directory service name of the format /projects/*/locations/*/namespaces/*/services/*
302
+
"updateTime": "A String", # Output only. The timestamp when the resource was updated.
<pre>Updates the parameters of a single ServiceBinding.
325
+
326
+
Args:
327
+
name: string, Required. Name of the ServiceBinding resource. It matches pattern `projects/*/locations/global/serviceBindings/service_binding_name>`. (required)
328
+
body: object, The request body.
329
+
The object takes the form of:
330
+
331
+
{ # ServiceBinding is the resource that defines a Service Directory Service to be used in a BackendService resource.
332
+
"createTime": "A String", # Output only. The timestamp when the resource was created.
333
+
"description": "A String", # Optional. A free-text description of the resource. Max length 1024 characters.
334
+
"endpointFilter": "A String", # Optional. The endpoint filter associated with the Service Binding. The syntax is described in http://cloud/service-directory/docs/reference/rpc/google.cloud.servicedirectory.v1#google.cloud.servicedirectory.v1.ResolveServiceRequest
335
+
"labels": { # Optional. Set of label tags associated with the ServiceBinding resource.
336
+
"a_key": "A String",
337
+
},
338
+
"name": "A String", # Required. Name of the ServiceBinding resource. It matches pattern `projects/*/locations/global/serviceBindings/service_binding_name>`.
339
+
"service": "A String", # Required. The full service directory service name of the format /projects/*/locations/*/namespaces/*/services/*
340
+
"updateTime": "A String", # Output only. The timestamp when the resource was updated.
341
+
}
342
+
343
+
updateMask: string, Optional. Field mask is used to specify the fields to be overwritten in the ServiceBinding resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.
344
+
x__xgafv: string, V1 error format.
345
+
Allowed values
346
+
1 - v1 error format
347
+
2 - v2 error format
348
+
349
+
Returns:
350
+
An object of the form:
351
+
352
+
{ # This resource represents a long-running operation that is the result of a network API call.
353
+
"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.
354
+
"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.
355
+
"code": 42, # The status code, which should be an enum value of google.rpc.Code.
356
+
"details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
357
+
{
358
+
"a_key": "", # Properties of the object. Contains field @type with type URL.
359
+
},
360
+
],
361
+
"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.
362
+
},
363
+
"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.
364
+
"a_key": "", # Properties of the object. Contains field @type with type URL.
365
+
},
366
+
"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}`.
367
+
"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`.
368
+
"a_key": "", # Properties of the object. Contains field @type with type URL.
<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