Skip to content

Commit

Permalink
feat(networkconnectivity): update the api
Browse files Browse the repository at this point in the history
#### networkconnectivity:v1

The following keys were added:
- resources.projects.resources.locations.resources.global.resources.hubs.resources.groups.methods.get (Total Keys: 11)
- resources.projects.resources.locations.resources.global.resources.hubs.resources.groups.methods.list (Total Keys: 20)
- schemas.Group (Total Keys: 15)
- schemas.ListGroupsResponse (Total Keys: 7)
- schemas.Spoke.properties.group.type (Total Keys: 1)
  • Loading branch information
yoshi-automation committed Aug 8, 2023
1 parent c4f5485 commit 8f1af4a
Show file tree
Hide file tree
Showing 9 changed files with 276 additions and 16 deletions.
Expand Up @@ -77,9 +77,18 @@ <h2>Instance Methods</h2>
<p class="toc_element">
<code><a href="#close">close()</a></code></p>
<p class="firstline">Close httplib2 connections.</p>
<p class="toc_element">
<code><a href="#get">get(name, x__xgafv=None)</a></code></p>
<p class="firstline">Gets details about a Network Connectivity Center group.</p>
<p class="toc_element">
<code><a href="#getIamPolicy">getIamPolicy(resource, options_requestedPolicyVersion=None, x__xgafv=None)</a></code></p>
<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>
<p class="toc_element">
<code><a href="#list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
<p class="firstline">Lists groups in a given hub.</p>
<p class="toc_element">
<code><a href="#list_next">list_next()</a></code></p>
<p class="firstline">Retrieves the next page of results.</p>
<p class="toc_element">
<code><a href="#setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</a></code></p>
<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>
Expand All @@ -92,6 +101,33 @@ <h3>Method Details</h3>
<pre>Close httplib2 connections.</pre>
</div>

<div class="method">
<code class="details" id="get">get(name, x__xgafv=None)</code>
<pre>Gets details about a Network Connectivity Center group.

Args:
name: string, Required. The name of the route table resource. (required)
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format

Returns:
An object of the form:

{ # A group is a set of spokes to which you can apply policies. Each group of spokes has its own route table. For each group, you can also set different rules for whether spokes can be automatically attached to the hub.
&quot;createTime&quot;: &quot;A String&quot;, # Output only. The time the group was created.
&quot;description&quot;: &quot;A String&quot;, # Optional. The description of the group.
&quot;labels&quot;: { # Optional. Labels in key:value format. For more information about labels, see [Requirements for labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements).
&quot;a_key&quot;: &quot;A String&quot;,
},
&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}`
&quot;state&quot;: &quot;A String&quot;, # Output only. The current lifecycle state of this group.
&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.
&quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time the group was last updated.
}</pre>
</div>

<div class="method">
<code class="details" id="getIamPolicy">getIamPolicy(resource, options_requestedPolicyVersion=None, x__xgafv=None)</code>
<pre>Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
Expand Down Expand Up @@ -140,6 +176,59 @@ <h3>Method Details</h3>
}</pre>
</div>

<div class="method">
<code class="details" id="list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
<pre>Lists groups in a given hub.

Args:
parent: string, Required. The parent resource&#x27;s name. (required)
filter: string, An expression that filters the list of results.
orderBy: string, Sort the results by a certain order.
pageSize: integer, The maximum number of results to return per page.
pageToken: string, The page token.
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format

Returns:
An object of the form:

{ # Response for HubService.ListGroups method.
&quot;groups&quot;: [ # The requested groups.
{ # A group is a set of spokes to which you can apply policies. Each group of spokes has its own route table. For each group, you can also set different rules for whether spokes can be automatically attached to the hub.
&quot;createTime&quot;: &quot;A String&quot;, # Output only. The time the group was created.
&quot;description&quot;: &quot;A String&quot;, # Optional. The description of the group.
&quot;labels&quot;: { # Optional. Labels in key:value format. For more information about labels, see [Requirements for labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements).
&quot;a_key&quot;: &quot;A String&quot;,
},
&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}`
&quot;state&quot;: &quot;A String&quot;, # Output only. The current lifecycle state of this group.
&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.
&quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time the group was last updated.
},
],
&quot;nextPageToken&quot;: &quot;A String&quot;, # The token for the next page of the response. To see more results, use this value as the page_token for your next request. If this value is empty, there are no more results.
&quot;unreachable&quot;: [ # Hubs that could not be reached.
&quot;A String&quot;,
],
}</pre>
</div>

<div class="method">
<code class="details" id="list_next">list_next()</code>
<pre>Retrieves the next page of results.

Args:
previous_request: The request for the previous page. (required)
previous_response: The response from the request for the previous page. (required)

Returns:
A request object that you can call &#x27;execute()&#x27; on to request the next
page. Returns None if there are no more items in the collection.
</pre>
</div>

<div class="method">
<code class="details" id="setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</code>
<pre>Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
Expand Down
Expand Up @@ -445,6 +445,7 @@ <h3>Method Details</h3>
{ # A Network Connectivity Center spoke represents one or more network connectivity resources. When you create a spoke, you associate it with a hub. You must also identify a value for exactly one of the following fields: * linked_vpn_tunnels * linked_interconnect_attachments * linked_router_appliance_instances
&quot;createTime&quot;: &quot;A String&quot;, # Output only. The time the spoke was created.
&quot;description&quot;: &quot;A String&quot;, # An optional description of the spoke.
&quot;group&quot;: &quot;A String&quot;, # The name of the group that this spoke is associated with.
&quot;hub&quot;: &quot;A String&quot;, # Immutable. The name of the hub that this spoke is attached to.
&quot;labels&quot;: { # Optional labels in key:value format. For more information about labels, see [Requirements for labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements).
&quot;a_key&quot;: &quot;A String&quot;,
Expand Down
Expand Up @@ -224,7 +224,7 @@ <h3>Method Details</h3>
<pre>Lists ServiceClasses in a given project and location.

Args:
parent: string, Required. The parent resource&#x27;s name. (required)
parent: string, Required. The parent resource&#x27;s name. ex. projects/123/locations/us-east1 (required)
filter: string, A filter expression that filters the results listed in the response.
orderBy: string, Sort the results by a certain order.
pageSize: integer, The maximum number of results per page that should be returned.
Expand Down
Expand Up @@ -115,7 +115,7 @@ <h3>Method Details</h3>
<pre>Creates a new ServiceConnectionMap in a given project and location.

Args:
parent: string, Required. The parent resource&#x27;s name of the ServiceConnectionMap. (required)
parent: string, Required. The parent resource&#x27;s name of the ServiceConnectionMap. ex. projects/123/locations/us-east1 (required)
body: object, The request body.
The object takes the form of:

Expand Down Expand Up @@ -369,7 +369,7 @@ <h3>Method Details</h3>
<pre>Lists ServiceConnectionMaps in a given project and location.

Args:
parent: string, Required. The parent resource&#x27;s name. (required)
parent: string, Required. The parent resource&#x27;s name. ex. projects/123/locations/us-east1 (required)
filter: string, A filter expression that filters the results listed in the response.
orderBy: string, Sort the results by a certain order.
pageSize: integer, The maximum number of results per page that should be returned.
Expand Down
Expand Up @@ -115,7 +115,7 @@ <h3>Method Details</h3>
<pre>Creates a new ServiceConnectionPolicy in a given project and location.

Args:
parent: string, Required. The parent resource&#x27;s name of the ServiceConnectionPolicy. (required)
parent: string, Required. The parent resource&#x27;s name of the ServiceConnectionPolicy. ex. projects/123/locations/us-east1 (required)
body: object, The request body.
The object takes the form of:

Expand Down Expand Up @@ -349,7 +349,7 @@ <h3>Method Details</h3>
<pre>Lists ServiceConnectionPolicies in a given project and location.

Args:
parent: string, Required. The parent resource&#x27;s name. (required)
parent: string, Required. The parent resource&#x27;s name. ex. projects/123/locations/us-east1 (required)
filter: string, A filter expression that filters the results listed in the response.
orderBy: string, Sort the results by a certain order.
pageSize: integer, The maximum number of results per page that should be returned.
Expand Down
Expand Up @@ -103,7 +103,7 @@ <h3>Method Details</h3>
<pre>Creates a new ServiceConnectionToken in a given project and location.

Args:
parent: string, Required. The parent resource&#x27;s name of the ServiceConnectionToken. (required)
parent: string, Required. The parent resource&#x27;s name of the ServiceConnectionToken. ex. projects/123/locations/us-east1 (required)
body: object, The request body.
The object takes the form of:

Expand Down Expand Up @@ -223,7 +223,7 @@ <h3>Method Details</h3>
<pre>Lists ServiceConnectionTokens in a given project and location.

Args:
parent: string, Required. The parent resource&#x27;s name. (required)
parent: string, Required. The parent resource&#x27;s name. ex. projects/123/locations/us-east1 (required)
filter: string, A filter expression that filters the results listed in the response.
orderBy: string, Sort the results by a certain order.
pageSize: integer, The maximum number of results per page that should be returned.
Expand Down
Expand Up @@ -170,6 +170,7 @@ <h3>Method Details</h3>
{ # A Network Connectivity Center spoke represents one or more network connectivity resources. When you create a spoke, you associate it with a hub. You must also identify a value for exactly one of the following fields: * linked_vpn_tunnels * linked_interconnect_attachments * linked_router_appliance_instances
&quot;createTime&quot;: &quot;A String&quot;, # Output only. The time the spoke was created.
&quot;description&quot;: &quot;A String&quot;, # An optional description of the spoke.
&quot;group&quot;: &quot;A String&quot;, # The name of the group that this spoke is associated with.
&quot;hub&quot;: &quot;A String&quot;, # Immutable. The name of the hub that this spoke is attached to.
&quot;labels&quot;: { # Optional labels in key:value format. For more information about labels, see [Requirements for labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements).
&quot;a_key&quot;: &quot;A String&quot;,
Expand Down Expand Up @@ -302,6 +303,7 @@ <h3>Method Details</h3>
{ # A Network Connectivity Center spoke represents one or more network connectivity resources. When you create a spoke, you associate it with a hub. You must also identify a value for exactly one of the following fields: * linked_vpn_tunnels * linked_interconnect_attachments * linked_router_appliance_instances
&quot;createTime&quot;: &quot;A String&quot;, # Output only. The time the spoke was created.
&quot;description&quot;: &quot;A String&quot;, # An optional description of the spoke.
&quot;group&quot;: &quot;A String&quot;, # The name of the group that this spoke is associated with.
&quot;hub&quot;: &quot;A String&quot;, # Immutable. The name of the hub that this spoke is attached to.
&quot;labels&quot;: { # Optional labels in key:value format. For more information about labels, see [Requirements for labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements).
&quot;a_key&quot;: &quot;A String&quot;,
Expand Down Expand Up @@ -423,6 +425,7 @@ <h3>Method Details</h3>
{ # A Network Connectivity Center spoke represents one or more network connectivity resources. When you create a spoke, you associate it with a hub. You must also identify a value for exactly one of the following fields: * linked_vpn_tunnels * linked_interconnect_attachments * linked_router_appliance_instances
&quot;createTime&quot;: &quot;A String&quot;, # Output only. The time the spoke was created.
&quot;description&quot;: &quot;A String&quot;, # An optional description of the spoke.
&quot;group&quot;: &quot;A String&quot;, # The name of the group that this spoke is associated with.
&quot;hub&quot;: &quot;A String&quot;, # Immutable. The name of the hub that this spoke is attached to.
&quot;labels&quot;: { # Optional labels in key:value format. For more information about labels, see [Requirements for labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements).
&quot;a_key&quot;: &quot;A String&quot;,
Expand Down Expand Up @@ -503,6 +506,7 @@ <h3>Method Details</h3>
{ # A Network Connectivity Center spoke represents one or more network connectivity resources. When you create a spoke, you associate it with a hub. You must also identify a value for exactly one of the following fields: * linked_vpn_tunnels * linked_interconnect_attachments * linked_router_appliance_instances
&quot;createTime&quot;: &quot;A String&quot;, # Output only. The time the spoke was created.
&quot;description&quot;: &quot;A String&quot;, # An optional description of the spoke.
&quot;group&quot;: &quot;A String&quot;, # The name of the group that this spoke is associated with.
&quot;hub&quot;: &quot;A String&quot;, # Immutable. The name of the hub that this spoke is attached to.
&quot;labels&quot;: { # Optional labels in key:value format. For more information about labels, see [Requirements for labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements).
&quot;a_key&quot;: &quot;A String&quot;,
Expand Down

0 comments on commit 8f1af4a

Please sign in to comment.