Skip to content

Commit 288618f

Browse files
feat(networkservices): update the api
#### networkservices:v1beta1 The following keys were added: - resources.projects.resources.locations.resources.serviceBindings.methods.create (Total Keys: 14) - resources.projects.resources.locations.resources.serviceBindings.methods.delete (Total Keys: 11) - resources.projects.resources.locations.resources.serviceBindings.methods.get (Total Keys: 11) - resources.projects.resources.locations.resources.serviceBindings.methods.list (Total Keys: 16) - resources.projects.resources.locations.resources.serviceBindings.methods.patch (Total Keys: 15) - schemas.ListServiceBindingsResponse (Total Keys: 5) - schemas.ServiceBinding (Total Keys: 13)
1 parent 6ee6809 commit 288618f

File tree

3 files changed

+445
-2
lines changed

3 files changed

+445
-2
lines changed

docs/dyn/networkservices_v1beta1.projects.locations.serviceBindings.html

Lines changed: 230 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,27 @@ <h2>Instance Methods</h2>
7777
<p class="toc_element">
7878
<code><a href="#close">close()</a></code></p>
7979
<p class="firstline">Close httplib2 connections.</p>
80+
<p class="toc_element">
81+
<code><a href="#create">create(parent, body=None, serviceBindingId=None, x__xgafv=None)</a></code></p>
82+
<p class="firstline">Creates a new ServiceBinding in a given project and location.</p>
83+
<p class="toc_element">
84+
<code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
85+
<p class="firstline">Deletes a single ServiceBinding.</p>
86+
<p class="toc_element">
87+
<code><a href="#get">get(name, x__xgafv=None)</a></code></p>
88+
<p class="firstline">Gets details of a single ServiceBinding.</p>
8089
<p class="toc_element">
8190
<code><a href="#getIamPolicy">getIamPolicy(resource, options_requestedPolicyVersion=None, x__xgafv=None)</a></code></p>
8291
<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>
92+
<p class="toc_element">
93+
<code><a href="#list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
94+
<p class="firstline">Lists ServiceBinding in a given project and location.</p>
95+
<p class="toc_element">
96+
<code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
97+
<p class="firstline">Retrieves the next page of results.</p>
98+
<p class="toc_element">
99+
<code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
100+
<p class="firstline">Updates the parameters of a single ServiceBinding.</p>
83101
<p class="toc_element">
84102
<code><a href="#setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</a></code></p>
85103
<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>
@@ -92,6 +110,119 @@ <h3>Method Details</h3>
92110
<pre>Close httplib2 connections.</pre>
93111
</div>
94112

113+
<div class="method">
114+
<code class="details" id="create">create(parent, body=None, serviceBindingId=None, x__xgafv=None)</code>
115+
<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+
&quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp when the resource was created.
124+
&quot;description&quot;: &quot;A String&quot;, # Optional. A free-text description of the resource. Max length 1024 characters.
125+
&quot;endpointFilter&quot;: &quot;A String&quot;, # 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+
&quot;labels&quot;: { # Optional. Set of label tags associated with the ServiceBinding resource.
127+
&quot;a_key&quot;: &quot;A String&quot;,
128+
},
129+
&quot;name&quot;: &quot;A String&quot;, # Required. Name of the ServiceBinding resource. It matches pattern `projects/*/locations/global/serviceBindings/service_binding_name&gt;`.
130+
&quot;service&quot;: &quot;A String&quot;, # Required. The full service directory service name of the format /projects/*/locations/*/namespaces/*/services/*
131+
&quot;updateTime&quot;: &quot;A String&quot;, # 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+
&quot;done&quot;: 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+
&quot;error&quot;: { # 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+
&quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
147+
&quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
148+
{
149+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
150+
},
151+
],
152+
&quot;message&quot;: &quot;A String&quot;, # 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+
&quot;metadata&quot;: { # 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+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
156+
},
157+
&quot;name&quot;: &quot;A String&quot;, # 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+
&quot;response&quot;: { # 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+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
160+
},
161+
}</pre>
162+
</div>
163+
164+
<div class="method">
165+
<code class="details" id="delete">delete(name, x__xgafv=None)</code>
166+
<pre>Deletes a single ServiceBinding.
167+
168+
Args:
169+
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+
&quot;done&quot;: 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+
&quot;error&quot;: { # 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+
&quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
182+
&quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
183+
{
184+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
185+
},
186+
],
187+
&quot;message&quot;: &quot;A String&quot;, # 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+
&quot;metadata&quot;: { # 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+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
191+
},
192+
&quot;name&quot;: &quot;A String&quot;, # 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+
&quot;response&quot;: { # 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+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
195+
},
196+
}</pre>
197+
</div>
198+
199+
<div class="method">
200+
<code class="details" id="get">get(name, x__xgafv=None)</code>
201+
<pre>Gets details of a single ServiceBinding.
202+
203+
Args:
204+
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+
&quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp when the resource was created.
215+
&quot;description&quot;: &quot;A String&quot;, # Optional. A free-text description of the resource. Max length 1024 characters.
216+
&quot;endpointFilter&quot;: &quot;A String&quot;, # 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+
&quot;labels&quot;: { # Optional. Set of label tags associated with the ServiceBinding resource.
218+
&quot;a_key&quot;: &quot;A String&quot;,
219+
},
220+
&quot;name&quot;: &quot;A String&quot;, # Required. Name of the ServiceBinding resource. It matches pattern `projects/*/locations/global/serviceBindings/service_binding_name&gt;`.
221+
&quot;service&quot;: &quot;A String&quot;, # Required. The full service directory service name of the format /projects/*/locations/*/namespaces/*/services/*
222+
&quot;updateTime&quot;: &quot;A String&quot;, # Output only. The timestamp when the resource was updated.
223+
}</pre>
224+
</div>
225+
95226
<div class="method">
96227
<code class="details" id="getIamPolicy">getIamPolicy(resource, options_requestedPolicyVersion=None, x__xgafv=None)</code>
97228
<pre>Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
@@ -140,6 +271,105 @@ <h3>Method Details</h3>
140271
}</pre>
141272
</div>
142273

274+
<div class="method">
275+
<code class="details" id="list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</code>
276+
<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+
&quot;nextPageToken&quot;: &quot;A String&quot;, # 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+
&quot;serviceBindings&quot;: [ # List of ServiceBinding resources.
293+
{ # ServiceBinding is the resource that defines a Service Directory Service to be used in a BackendService resource.
294+
&quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp when the resource was created.
295+
&quot;description&quot;: &quot;A String&quot;, # Optional. A free-text description of the resource. Max length 1024 characters.
296+
&quot;endpointFilter&quot;: &quot;A String&quot;, # 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+
&quot;labels&quot;: { # Optional. Set of label tags associated with the ServiceBinding resource.
298+
&quot;a_key&quot;: &quot;A String&quot;,
299+
},
300+
&quot;name&quot;: &quot;A String&quot;, # Required. Name of the ServiceBinding resource. It matches pattern `projects/*/locations/global/serviceBindings/service_binding_name&gt;`.
301+
&quot;service&quot;: &quot;A String&quot;, # Required. The full service directory service name of the format /projects/*/locations/*/namespaces/*/services/*
302+
&quot;updateTime&quot;: &quot;A String&quot;, # Output only. The timestamp when the resource was updated.
303+
},
304+
],
305+
}</pre>
306+
</div>
307+
308+
<div class="method">
309+
<code class="details" id="list_next">list_next(previous_request, previous_response)</code>
310+
<pre>Retrieves the next page of results.
311+
312+
Args:
313+
previous_request: The request for the previous page. (required)
314+
previous_response: The response from the request for the previous page. (required)
315+
316+
Returns:
317+
A request object that you can call &#x27;execute()&#x27; on to request the next
318+
page. Returns None if there are no more items in the collection.
319+
</pre>
320+
</div>
321+
322+
<div class="method">
323+
<code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
324+
<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&gt;`. (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+
&quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp when the resource was created.
333+
&quot;description&quot;: &quot;A String&quot;, # Optional. A free-text description of the resource. Max length 1024 characters.
334+
&quot;endpointFilter&quot;: &quot;A String&quot;, # 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+
&quot;labels&quot;: { # Optional. Set of label tags associated with the ServiceBinding resource.
336+
&quot;a_key&quot;: &quot;A String&quot;,
337+
},
338+
&quot;name&quot;: &quot;A String&quot;, # Required. Name of the ServiceBinding resource. It matches pattern `projects/*/locations/global/serviceBindings/service_binding_name&gt;`.
339+
&quot;service&quot;: &quot;A String&quot;, # Required. The full service directory service name of the format /projects/*/locations/*/namespaces/*/services/*
340+
&quot;updateTime&quot;: &quot;A String&quot;, # 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+
&quot;done&quot;: 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+
&quot;error&quot;: { # 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+
&quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
356+
&quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
357+
{
358+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
359+
},
360+
],
361+
&quot;message&quot;: &quot;A String&quot;, # 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+
&quot;metadata&quot;: { # 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+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
365+
},
366+
&quot;name&quot;: &quot;A String&quot;, # 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+
&quot;response&quot;: { # 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+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
369+
},
370+
}</pre>
371+
</div>
372+
143373
<div class="method">
144374
<code class="details" id="setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</code>
145375
<pre>Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.

googleapiclient/discovery_cache/documents/networkservices.v1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -822,7 +822,7 @@
822822
}
823823
}
824824
},
825-
"revision": "20211209",
825+
"revision": "20220105",
826826
"rootUrl": "https://networkservices.googleapis.com/",
827827
"schemas": {
828828
"AuditConfig": {

0 commit comments

Comments
 (0)