Skip to content

Commit 2b586ca

Browse files
feat(networkservices): update the api
#### networkservices:v1 The following keys were added: - resources.projects.resources.locations.resources.serviceBindings.methods.patch (Total Keys: 15) #### networkservices:v1beta1 The following keys were added: - resources.projects.resources.locations.resources.serviceBindings.methods.patch (Total Keys: 15)
1 parent a94e8e8 commit 2b586ca

File tree

4 files changed

+178
-2
lines changed

4 files changed

+178
-2
lines changed

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

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@ <h2>Instance Methods</h2>
9292
<p class="toc_element">
9393
<code><a href="#list_next">list_next()</a></code></p>
9494
<p class="firstline">Retrieves the next page of results.</p>
95+
<p class="toc_element">
96+
<code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
97+
<p class="firstline">Updates the parameters of a single ServiceBinding.</p>
9598
<h3>Method Details</h3>
9699
<div class="method">
97100
<code class="details" id="close">close()</code>
@@ -262,4 +265,55 @@ <h3>Method Details</h3>
262265
</pre>
263266
</div>
264267

268+
<div class="method">
269+
<code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
270+
<pre>Updates the parameters of a single ServiceBinding.
271+
272+
Args:
273+
name: string, Identifier. Name of the ServiceBinding resource. It matches pattern `projects/*/locations/*/serviceBindings/`. (required)
274+
body: object, The request body.
275+
The object takes the form of:
276+
277+
{ # ServiceBinding can be used to: - Bind a Service Directory Service to be used in a BackendService resource. This feature will be deprecated soon. - Bind a Private Service Connect producer service to be used in consumer Cloud Service Mesh or Application Load Balancers. - Bind a Cloud Run service to be used in consumer Cloud Service Mesh or Application Load Balancers.
278+
&quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp when the resource was created.
279+
&quot;description&quot;: &quot;A String&quot;, # Optional. A free-text description of the resource. Max length 1024 characters.
280+
&quot;labels&quot;: { # Optional. Set of label tags associated with the ServiceBinding resource.
281+
&quot;a_key&quot;: &quot;A String&quot;,
282+
},
283+
&quot;name&quot;: &quot;A String&quot;, # Identifier. Name of the ServiceBinding resource. It matches pattern `projects/*/locations/*/serviceBindings/`.
284+
&quot;service&quot;: &quot;A String&quot;, # Optional. The full Service Directory Service name of the format `projects/*/locations/*/namespaces/*/services/*`. This field is for Service Directory integration which will be deprecated soon.
285+
&quot;serviceId&quot;: &quot;A String&quot;, # Output only. The unique identifier of the Service Directory Service against which the ServiceBinding resource is validated. This is populated when the Service Binding resource is used in another resource (like Backend Service). This is of the UUID4 format. This field is for Service Directory integration which will be deprecated soon.
286+
&quot;updateTime&quot;: &quot;A String&quot;, # Output only. The timestamp when the resource was updated.
287+
}
288+
289+
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.
290+
x__xgafv: string, V1 error format.
291+
Allowed values
292+
1 - v1 error format
293+
2 - v2 error format
294+
295+
Returns:
296+
An object of the form:
297+
298+
{ # This resource represents a long-running operation that is the result of a network API call.
299+
&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.
300+
&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.
301+
&quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
302+
&quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
303+
{
304+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
305+
},
306+
],
307+
&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.
308+
},
309+
&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.
310+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
311+
},
312+
&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}`.
313+
&quot;response&quot;: { # The normal, successful response of the operation. 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`.
314+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
315+
},
316+
}</pre>
317+
</div>
318+
265319
</body></html>

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

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@ <h2>Instance Methods</h2>
9292
<p class="toc_element">
9393
<code><a href="#list_next">list_next()</a></code></p>
9494
<p class="firstline">Retrieves the next page of results.</p>
95+
<p class="toc_element">
96+
<code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
97+
<p class="firstline">Updates the parameters of a single ServiceBinding.</p>
9598
<h3>Method Details</h3>
9699
<div class="method">
97100
<code class="details" id="close">close()</code>
@@ -262,4 +265,55 @@ <h3>Method Details</h3>
262265
</pre>
263266
</div>
264267

268+
<div class="method">
269+
<code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
270+
<pre>Updates the parameters of a single ServiceBinding.
271+
272+
Args:
273+
name: string, Identifier. Name of the ServiceBinding resource. It matches pattern `projects/*/locations/*/serviceBindings/`. (required)
274+
body: object, The request body.
275+
The object takes the form of:
276+
277+
{ # ServiceBinding can be used to: - Bind a Service Directory Service to be used in a BackendService resource. This feature will be deprecated soon. - Bind a Private Service Connect producer service to be used in consumer Cloud Service Mesh or Application Load Balancers. - Bind a Cloud Run service to be used in consumer Cloud Service Mesh or Application Load Balancers.
278+
&quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp when the resource was created.
279+
&quot;description&quot;: &quot;A String&quot;, # Optional. A free-text description of the resource. Max length 1024 characters.
280+
&quot;labels&quot;: { # Optional. Set of label tags associated with the ServiceBinding resource.
281+
&quot;a_key&quot;: &quot;A String&quot;,
282+
},
283+
&quot;name&quot;: &quot;A String&quot;, # Identifier. Name of the ServiceBinding resource. It matches pattern `projects/*/locations/*/serviceBindings/`.
284+
&quot;service&quot;: &quot;A String&quot;, # Optional. The full Service Directory Service name of the format `projects/*/locations/*/namespaces/*/services/*`. This field is for Service Directory integration which will be deprecated soon.
285+
&quot;serviceId&quot;: &quot;A String&quot;, # Output only. The unique identifier of the Service Directory Service against which the ServiceBinding resource is validated. This is populated when the Service Binding resource is used in another resource (like Backend Service). This is of the UUID4 format. This field is for Service Directory integration which will be deprecated soon.
286+
&quot;updateTime&quot;: &quot;A String&quot;, # Output only. The timestamp when the resource was updated.
287+
}
288+
289+
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.
290+
x__xgafv: string, V1 error format.
291+
Allowed values
292+
1 - v1 error format
293+
2 - v2 error format
294+
295+
Returns:
296+
An object of the form:
297+
298+
{ # This resource represents a long-running operation that is the result of a network API call.
299+
&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.
300+
&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.
301+
&quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
302+
&quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
303+
{
304+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
305+
},
306+
],
307+
&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.
308+
},
309+
&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.
310+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
311+
},
312+
&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}`.
313+
&quot;response&quot;: { # The normal, successful response of the operation. 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`.
314+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
315+
},
316+
}</pre>
317+
</div>
318+
265319
</body></html>

googleapiclient/discovery_cache/documents/networkservices.v1.json

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2184,6 +2184,40 @@
21842184
"scopes": [
21852185
"https://www.googleapis.com/auth/cloud-platform"
21862186
]
2187+
},
2188+
"patch": {
2189+
"description": "Updates the parameters of a single ServiceBinding.",
2190+
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/serviceBindings/{serviceBindingsId}",
2191+
"httpMethod": "PATCH",
2192+
"id": "networkservices.projects.locations.serviceBindings.patch",
2193+
"parameterOrder": [
2194+
"name"
2195+
],
2196+
"parameters": {
2197+
"name": {
2198+
"description": "Identifier. Name of the ServiceBinding resource. It matches pattern `projects/*/locations/*/serviceBindings/`.",
2199+
"location": "path",
2200+
"pattern": "^projects/[^/]+/locations/[^/]+/serviceBindings/[^/]+$",
2201+
"required": true,
2202+
"type": "string"
2203+
},
2204+
"updateMask": {
2205+
"description": "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.",
2206+
"format": "google-fieldmask",
2207+
"location": "query",
2208+
"type": "string"
2209+
}
2210+
},
2211+
"path": "v1/{+name}",
2212+
"request": {
2213+
"$ref": "ServiceBinding"
2214+
},
2215+
"response": {
2216+
"$ref": "Operation"
2217+
},
2218+
"scopes": [
2219+
"https://www.googleapis.com/auth/cloud-platform"
2220+
]
21872221
}
21882222
}
21892223
},
@@ -2970,7 +3004,7 @@
29703004
}
29713005
}
29723006
},
2973-
"revision": "20250423",
3007+
"revision": "20250508",
29743008
"rootUrl": "https://networkservices.googleapis.com/",
29753009
"schemas": {
29763010
"AuditConfig": {

googleapiclient/discovery_cache/documents/networkservices.v1beta1.json

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2093,6 +2093,40 @@
20932093
"scopes": [
20942094
"https://www.googleapis.com/auth/cloud-platform"
20952095
]
2096+
},
2097+
"patch": {
2098+
"description": "Updates the parameters of a single ServiceBinding.",
2099+
"flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/serviceBindings/{serviceBindingsId}",
2100+
"httpMethod": "PATCH",
2101+
"id": "networkservices.projects.locations.serviceBindings.patch",
2102+
"parameterOrder": [
2103+
"name"
2104+
],
2105+
"parameters": {
2106+
"name": {
2107+
"description": "Identifier. Name of the ServiceBinding resource. It matches pattern `projects/*/locations/*/serviceBindings/`.",
2108+
"location": "path",
2109+
"pattern": "^projects/[^/]+/locations/[^/]+/serviceBindings/[^/]+$",
2110+
"required": true,
2111+
"type": "string"
2112+
},
2113+
"updateMask": {
2114+
"description": "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.",
2115+
"format": "google-fieldmask",
2116+
"location": "query",
2117+
"type": "string"
2118+
}
2119+
},
2120+
"path": "v1beta1/{+name}",
2121+
"request": {
2122+
"$ref": "ServiceBinding"
2123+
},
2124+
"response": {
2125+
"$ref": "Operation"
2126+
},
2127+
"scopes": [
2128+
"https://www.googleapis.com/auth/cloud-platform"
2129+
]
20962130
}
20972131
}
20982132
},
@@ -2879,7 +2913,7 @@
28792913
}
28802914
}
28812915
},
2882-
"revision": "20250423",
2916+
"revision": "20250508",
28832917
"rootUrl": "https://networkservices.googleapis.com/",
28842918
"schemas": {
28852919
"AuthzExtension": {

0 commit comments

Comments
 (0)