Skip to content

Commit 2502ed6

Browse files
feat(networkconnectivity): update the api
#### networkconnectivity:v1 The following keys were added: - resources.projects.resources.locations.resources.global.resources.hubs.resources.groups.methods.patch (Total Keys: 17) - schemas.AutoAccept (Total Keys: 4) - schemas.Group.properties.autoAccept.$ref (Total Keys: 1) - schemas.Group.properties.routeTable (Total Keys: 2) - schemas.Hub.properties.exportPsc.type (Total Keys: 1) - schemas.Hub.properties.policyMode.type (Total Keys: 1) - schemas.Hub.properties.presetTopology.type (Total Keys: 1)
1 parent b6c6fee commit 2502ed6

File tree

4 files changed

+179
-2
lines changed

4 files changed

+179
-2
lines changed

docs/dyn/networkconnectivity_v1.projects.locations.global_.hubs.groups.html

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,9 @@ <h2>Instance Methods</h2>
8989
<p class="toc_element">
9090
<code><a href="#list_next">list_next()</a></code></p>
9191
<p class="firstline">Retrieves the next page of results.</p>
92+
<p class="toc_element">
93+
<code><a href="#patch">patch(name, body=None, requestId=None, updateMask=None, x__xgafv=None)</a></code></p>
94+
<p class="firstline">Updates the parameters of a Network Connectivity Center group.</p>
9295
<p class="toc_element">
9396
<code><a href="#setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</a></code></p>
9497
<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>
@@ -116,12 +119,18 @@ <h3>Method Details</h3>
116119
An object of the form:
117120

118121
{ # A group represents a subset of spokes attached to a hub.
122+
&quot;autoAccept&quot;: { # The auto-accept setting for a group controls whether proposed spokes are automatically attached to the hub. If auto-accept is enabled, the spoke immediately is attached to the hub and becomes part of the group. In this case, the new spoke is in the ACTIVE state. If auto-accept is disabled, the spoke goes to the INACTIVE state, and it must be reviewed and accepted by a hub administrator. # Optional. The auto-accept setting for this group.
123+
&quot;autoAcceptProjects&quot;: [ # A list of project ids or project numbers for which you want to enable auto-accept. The auto-accept setting is applied to spokes being created or updated in these projects.
124+
&quot;A String&quot;,
125+
],
126+
},
119127
&quot;createTime&quot;: &quot;A String&quot;, # Output only. The time the group was created.
120128
&quot;description&quot;: &quot;A String&quot;, # Optional. The description of the group.
121129
&quot;labels&quot;: { # Optional. Labels in key-value pair format. For more information about labels, see [Requirements for labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements).
122130
&quot;a_key&quot;: &quot;A String&quot;,
123131
},
124132
&quot;name&quot;: &quot;A String&quot;, # Immutable. The name of the group. Group names must be unique. They use the following form: `projects/{project_number}/locations/global/hubs/{hub}/groups/{group_id}`
133+
&quot;routeTable&quot;: &quot;A String&quot;, # Output only. The name of the route table that corresponds to this group. They use the following form: `projects/{project_number}/locations/global/hubs/{hub_id}/routeTables/{route_table_id}`
125134
&quot;state&quot;: &quot;A String&quot;, # Output only. The current lifecycle state of this group.
126135
&quot;uid&quot;: &quot;A String&quot;, # Output only. The Google-generated UUID for the group. This value is unique across all group resources. If a group is deleted and another with the same name is created, the new route table is assigned a different unique_id.
127136
&quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time the group was last updated.
@@ -197,12 +206,18 @@ <h3>Method Details</h3>
197206
{ # Response for HubService.ListGroups method.
198207
&quot;groups&quot;: [ # The requested groups.
199208
{ # A group represents a subset of spokes attached to a hub.
209+
&quot;autoAccept&quot;: { # The auto-accept setting for a group controls whether proposed spokes are automatically attached to the hub. If auto-accept is enabled, the spoke immediately is attached to the hub and becomes part of the group. In this case, the new spoke is in the ACTIVE state. If auto-accept is disabled, the spoke goes to the INACTIVE state, and it must be reviewed and accepted by a hub administrator. # Optional. The auto-accept setting for this group.
210+
&quot;autoAcceptProjects&quot;: [ # A list of project ids or project numbers for which you want to enable auto-accept. The auto-accept setting is applied to spokes being created or updated in these projects.
211+
&quot;A String&quot;,
212+
],
213+
},
200214
&quot;createTime&quot;: &quot;A String&quot;, # Output only. The time the group was created.
201215
&quot;description&quot;: &quot;A String&quot;, # Optional. The description of the group.
202216
&quot;labels&quot;: { # Optional. Labels in key-value pair format. For more information about labels, see [Requirements for labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements).
203217
&quot;a_key&quot;: &quot;A String&quot;,
204218
},
205219
&quot;name&quot;: &quot;A String&quot;, # Immutable. The name of the group. Group names must be unique. They use the following form: `projects/{project_number}/locations/global/hubs/{hub}/groups/{group_id}`
220+
&quot;routeTable&quot;: &quot;A String&quot;, # Output only. The name of the route table that corresponds to this group. They use the following form: `projects/{project_number}/locations/global/hubs/{hub_id}/routeTables/{route_table_id}`
206221
&quot;state&quot;: &quot;A String&quot;, # Output only. The current lifecycle state of this group.
207222
&quot;uid&quot;: &quot;A String&quot;, # Output only. The Google-generated UUID for the group. This value is unique across all group resources. If a group is deleted and another with the same name is created, the new route table is assigned a different unique_id.
208223
&quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time the group was last updated.
@@ -229,6 +244,64 @@ <h3>Method Details</h3>
229244
</pre>
230245
</div>
231246

247+
<div class="method">
248+
<code class="details" id="patch">patch(name, body=None, requestId=None, updateMask=None, x__xgafv=None)</code>
249+
<pre>Updates the parameters of a Network Connectivity Center group.
250+
251+
Args:
252+
name: string, Immutable. The name of the group. Group names must be unique. They use the following form: `projects/{project_number}/locations/global/hubs/{hub}/groups/{group_id}` (required)
253+
body: object, The request body.
254+
The object takes the form of:
255+
256+
{ # A group represents a subset of spokes attached to a hub.
257+
&quot;autoAccept&quot;: { # The auto-accept setting for a group controls whether proposed spokes are automatically attached to the hub. If auto-accept is enabled, the spoke immediately is attached to the hub and becomes part of the group. In this case, the new spoke is in the ACTIVE state. If auto-accept is disabled, the spoke goes to the INACTIVE state, and it must be reviewed and accepted by a hub administrator. # Optional. The auto-accept setting for this group.
258+
&quot;autoAcceptProjects&quot;: [ # A list of project ids or project numbers for which you want to enable auto-accept. The auto-accept setting is applied to spokes being created or updated in these projects.
259+
&quot;A String&quot;,
260+
],
261+
},
262+
&quot;createTime&quot;: &quot;A String&quot;, # Output only. The time the group was created.
263+
&quot;description&quot;: &quot;A String&quot;, # Optional. The description of the group.
264+
&quot;labels&quot;: { # Optional. Labels in key-value pair format. For more information about labels, see [Requirements for labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements).
265+
&quot;a_key&quot;: &quot;A String&quot;,
266+
},
267+
&quot;name&quot;: &quot;A String&quot;, # Immutable. The name of the group. Group names must be unique. They use the following form: `projects/{project_number}/locations/global/hubs/{hub}/groups/{group_id}`
268+
&quot;routeTable&quot;: &quot;A String&quot;, # Output only. The name of the route table that corresponds to this group. They use the following form: `projects/{project_number}/locations/global/hubs/{hub_id}/routeTables/{route_table_id}`
269+
&quot;state&quot;: &quot;A String&quot;, # Output only. The current lifecycle state of this group.
270+
&quot;uid&quot;: &quot;A String&quot;, # Output only. The Google-generated UUID for the group. This value is unique across all group resources. If a group is deleted and another with the same name is created, the new route table is assigned a different unique_id.
271+
&quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time the group was last updated.
272+
}
273+
274+
requestId: string, Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server knows to ignore the request if it has already been completed. The server guarantees that a request doesn&#x27;t result in creation of duplicate commitments for at least 60 minutes. 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 to see whether the original operation was received. If it was, the server ignores the second request. This behavior prevents clients from mistakenly 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).
275+
updateMask: string, Optional. In the case of an update to an existing group, field mask is used to specify the fields to be overwritten. The fields specified in the update_mask are relative to the resource, not the full request. A field is overwritten if it is in the mask. If the user does not provide a mask, then all fields are overwritten.
276+
x__xgafv: string, V1 error format.
277+
Allowed values
278+
1 - v1 error format
279+
2 - v2 error format
280+
281+
Returns:
282+
An object of the form:
283+
284+
{ # This resource represents a long-running operation that is the result of a network API call.
285+
&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.
286+
&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.
287+
&quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
288+
&quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
289+
{
290+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
291+
},
292+
],
293+
&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.
294+
},
295+
&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.
296+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
297+
},
298+
&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}`.
299+
&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`.
300+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
301+
},
302+
}</pre>
303+
</div>
304+
232305
<div class="method">
233306
<code class="details" id="setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</code>
234307
<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)