Skip to content

Commit

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

The following keys were added:
- resources.projects.resources.locations.resources.queuedResources.methods.delete.parameters.force (Total Keys: 2)
- schemas.Node.properties.multisliceNode (Total Keys: 2)
  • Loading branch information
yoshi-automation committed May 24, 2023
1 parent c54c68a commit ac29b4d
Show file tree
Hide file tree
Showing 10 changed files with 36 additions and 18 deletions.
4 changes: 2 additions & 2 deletions docs/dyn/tpu_v1.projects.locations.html
Expand Up @@ -126,7 +126,7 @@ <h3>Method Details</h3>
Returns:
An object of the form:

{ # A resource that represents Google Cloud Platform location.
{ # A resource that represents a Google Cloud location.
&quot;displayName&quot;: &quot;A String&quot;, # The friendly name for this location, typically a nearby city name. For example, &quot;Tokyo&quot;.
&quot;labels&quot;: { # Cross-service attributes for the location. For example {&quot;cloud.googleapis.com/region&quot;: &quot;us-east1&quot;}
&quot;a_key&quot;: &quot;A String&quot;,
Expand Down Expand Up @@ -158,7 +158,7 @@ <h3>Method Details</h3>

{ # The response message for Locations.ListLocations.
&quot;locations&quot;: [ # A list of locations that matches the specified filter in the request.
{ # A resource that represents Google Cloud Platform location.
{ # A resource that represents a Google Cloud location.
&quot;displayName&quot;: &quot;A String&quot;, # The friendly name for this location, typically a nearby city name. For example, &quot;Tokyo&quot;.
&quot;labels&quot;: { # Cross-service attributes for the location. For example {&quot;cloud.googleapis.com/region&quot;: &quot;us-east1&quot;}
&quot;a_key&quot;: &quot;A String&quot;,
Expand Down
4 changes: 2 additions & 2 deletions docs/dyn/tpu_v1alpha1.projects.locations.html
Expand Up @@ -126,7 +126,7 @@ <h3>Method Details</h3>
Returns:
An object of the form:

{ # A resource that represents Google Cloud Platform location.
{ # A resource that represents a Google Cloud location.
&quot;displayName&quot;: &quot;A String&quot;, # The friendly name for this location, typically a nearby city name. For example, &quot;Tokyo&quot;.
&quot;labels&quot;: { # Cross-service attributes for the location. For example {&quot;cloud.googleapis.com/region&quot;: &quot;us-east1&quot;}
&quot;a_key&quot;: &quot;A String&quot;,
Expand Down Expand Up @@ -158,7 +158,7 @@ <h3>Method Details</h3>

{ # The response message for Locations.ListLocations.
&quot;locations&quot;: [ # A list of locations that matches the specified filter in the request.
{ # A resource that represents Google Cloud Platform location.
{ # A resource that represents a Google Cloud location.
&quot;displayName&quot;: &quot;A String&quot;, # The friendly name for this location, typically a nearby city name. For example, &quot;Tokyo&quot;.
&quot;labels&quot;: { # Cross-service attributes for the location. For example {&quot;cloud.googleapis.com/region&quot;: &quot;us-east1&quot;}
&quot;a_key&quot;: &quot;A String&quot;,
Expand Down
4 changes: 2 additions & 2 deletions docs/dyn/tpu_v2.projects.locations.html
Expand Up @@ -156,7 +156,7 @@ <h3>Method Details</h3>
Returns:
An object of the form:

{ # A resource that represents Google Cloud Platform location.
{ # A resource that represents a Google Cloud location.
&quot;displayName&quot;: &quot;A String&quot;, # The friendly name for this location, typically a nearby city name. For example, &quot;Tokyo&quot;.
&quot;labels&quot;: { # Cross-service attributes for the location. For example {&quot;cloud.googleapis.com/region&quot;: &quot;us-east1&quot;}
&quot;a_key&quot;: &quot;A String&quot;,
Expand Down Expand Up @@ -188,7 +188,7 @@ <h3>Method Details</h3>

{ # The response message for Locations.ListLocations.
&quot;locations&quot;: [ # A list of locations that matches the specified filter in the request.
{ # A resource that represents Google Cloud Platform location.
{ # A resource that represents a Google Cloud location.
&quot;displayName&quot;: &quot;A String&quot;, # The friendly name for this location, typically a nearby city name. For example, &quot;Tokyo&quot;.
&quot;labels&quot;: { # Cross-service attributes for the location. For example {&quot;cloud.googleapis.com/region&quot;: &quot;us-east1&quot;}
&quot;a_key&quot;: &quot;A String&quot;,
Expand Down
4 changes: 2 additions & 2 deletions docs/dyn/tpu_v2alpha1.projects.locations.html
Expand Up @@ -161,7 +161,7 @@ <h3>Method Details</h3>
Returns:
An object of the form:

{ # A resource that represents Google Cloud Platform location.
{ # A resource that represents a Google Cloud location.
&quot;displayName&quot;: &quot;A String&quot;, # The friendly name for this location, typically a nearby city name. For example, &quot;Tokyo&quot;.
&quot;labels&quot;: { # Cross-service attributes for the location. For example {&quot;cloud.googleapis.com/region&quot;: &quot;us-east1&quot;}
&quot;a_key&quot;: &quot;A String&quot;,
Expand Down Expand Up @@ -193,7 +193,7 @@ <h3>Method Details</h3>

{ # The response message for Locations.ListLocations.
&quot;locations&quot;: [ # A list of locations that matches the specified filter in the request.
{ # A resource that represents Google Cloud Platform location.
{ # A resource that represents a Google Cloud location.
&quot;displayName&quot;: &quot;A String&quot;, # The friendly name for this location, typically a nearby city name. For example, &quot;Tokyo&quot;.
&quot;labels&quot;: { # Cross-service attributes for the location. For example {&quot;cloud.googleapis.com/region&quot;: &quot;us-east1&quot;}
&quot;a_key&quot;: &quot;A String&quot;,
Expand Down
4 changes: 4 additions & 0 deletions docs/dyn/tpu_v2alpha1.projects.locations.nodes.html
Expand Up @@ -147,6 +147,7 @@ <h3>Method Details</h3>
&quot;metadata&quot;: { # Custom metadata to apply to the TPU Node. Can set startup-script and shutdown-script
&quot;a_key&quot;: &quot;A String&quot;,
},
&quot;multisliceNode&quot;: True or False, # Output only. Whether the Node belongs to a Multislice group.
&quot;name&quot;: &quot;A String&quot;, # Output only. Immutable. The name of the TPU.
&quot;networkConfig&quot;: { # Network related configurations. # Network configurations for the TPU node.
&quot;canIpForward&quot;: True or False, # Allows the TPU node to send and receive packets with non-matching destination or source IPs. This is required if you plan to use the TPU workers to forward routes.
Expand Down Expand Up @@ -298,6 +299,7 @@ <h3>Method Details</h3>
&quot;metadata&quot;: { # Custom metadata to apply to the TPU Node. Can set startup-script and shutdown-script
&quot;a_key&quot;: &quot;A String&quot;,
},
&quot;multisliceNode&quot;: True or False, # Output only. Whether the Node belongs to a Multislice group.
&quot;name&quot;: &quot;A String&quot;, # Output only. Immutable. The name of the TPU.
&quot;networkConfig&quot;: { # Network related configurations. # Network configurations for the TPU node.
&quot;canIpForward&quot;: True or False, # Allows the TPU node to send and receive packets with non-matching destination or source IPs. This is required if you plan to use the TPU workers to forward routes.
Expand Down Expand Up @@ -430,6 +432,7 @@ <h3>Method Details</h3>
&quot;metadata&quot;: { # Custom metadata to apply to the TPU Node. Can set startup-script and shutdown-script
&quot;a_key&quot;: &quot;A String&quot;,
},
&quot;multisliceNode&quot;: True or False, # Output only. Whether the Node belongs to a Multislice group.
&quot;name&quot;: &quot;A String&quot;, # Output only. Immutable. The name of the TPU.
&quot;networkConfig&quot;: { # Network related configurations. # Network configurations for the TPU node.
&quot;canIpForward&quot;: True or False, # Allows the TPU node to send and receive packets with non-matching destination or source IPs. This is required if you plan to use the TPU workers to forward routes.
Expand Down Expand Up @@ -529,6 +532,7 @@ <h3>Method Details</h3>
&quot;metadata&quot;: { # Custom metadata to apply to the TPU Node. Can set startup-script and shutdown-script
&quot;a_key&quot;: &quot;A String&quot;,
},
&quot;multisliceNode&quot;: True or False, # Output only. Whether the Node belongs to a Multislice group.
&quot;name&quot;: &quot;A String&quot;, # Output only. Immutable. The name of the TPU.
&quot;networkConfig&quot;: { # Network related configurations. # Network configurations for the TPU node.
&quot;canIpForward&quot;: True or False, # Allows the TPU node to send and receive packets with non-matching destination or source IPs. This is required if you plan to use the TPU workers to forward routes.
Expand Down
8 changes: 6 additions & 2 deletions docs/dyn/tpu_v2alpha1.projects.locations.queuedResources.html
Expand Up @@ -81,7 +81,7 @@ <h2>Instance Methods</h2>
<code><a href="#create">create(parent, body=None, queuedResourceId=None, requestId=None, x__xgafv=None)</a></code></p>
<p class="firstline">Creates a QueuedResource TPU instance.</p>
<p class="toc_element">
<code><a href="#delete">delete(name, requestId=None, x__xgafv=None)</a></code></p>
<code><a href="#delete">delete(name, force=None, requestId=None, x__xgafv=None)</a></code></p>
<p class="firstline">Deletes a QueuedResource TPU instance.</p>
<p class="toc_element">
<code><a href="#get">get(name, x__xgafv=None)</a></code></p>
Expand Down Expand Up @@ -182,6 +182,7 @@ <h3>Method Details</h3>
&quot;metadata&quot;: { # Custom metadata to apply to the TPU Node. Can set startup-script and shutdown-script
&quot;a_key&quot;: &quot;A String&quot;,
},
&quot;multisliceNode&quot;: True or False, # Output only. Whether the Node belongs to a Multislice group.
&quot;name&quot;: &quot;A String&quot;, # Output only. Immutable. The name of the TPU.
&quot;networkConfig&quot;: { # Network related configurations. # Network configurations for the TPU node.
&quot;canIpForward&quot;: True or False, # Allows the TPU node to send and receive packets with non-matching destination or source IPs. This is required if you plan to use the TPU workers to forward routes.
Expand Down Expand Up @@ -265,11 +266,12 @@ <h3>Method Details</h3>
</div>

<div class="method">
<code class="details" id="delete">delete(name, requestId=None, x__xgafv=None)</code>
<code class="details" id="delete">delete(name, force=None, requestId=None, x__xgafv=None)</code>
<pre>Deletes a QueuedResource TPU instance.

Args:
name: string, Required. The resource name. (required)
force: boolean, If set to true, all running nodes belonging to this queued resource will be deleted first and then the queued resource will be deleted. Otherwise (i.e. force=false), the queued resource will only be deleted if its nodes have already been deleted or the queued resource is in the ACCEPTED, FAILED, or SUSPENDED state.
requestId: string, Idempotent request UUID.
x__xgafv: string, V1 error format.
Allowed values
Expand Down Expand Up @@ -389,6 +391,7 @@ <h3>Method Details</h3>
&quot;metadata&quot;: { # Custom metadata to apply to the TPU Node. Can set startup-script and shutdown-script
&quot;a_key&quot;: &quot;A String&quot;,
},
&quot;multisliceNode&quot;: True or False, # Output only. Whether the Node belongs to a Multislice group.
&quot;name&quot;: &quot;A String&quot;, # Output only. Immutable. The name of the TPU.
&quot;networkConfig&quot;: { # Network related configurations. # Network configurations for the TPU node.
&quot;canIpForward&quot;: True or False, # Allows the TPU node to send and receive packets with non-matching destination or source IPs. This is required if you plan to use the TPU workers to forward routes.
Expand Down Expand Up @@ -535,6 +538,7 @@ <h3>Method Details</h3>
&quot;metadata&quot;: { # Custom metadata to apply to the TPU Node. Can set startup-script and shutdown-script
&quot;a_key&quot;: &quot;A String&quot;,
},
&quot;multisliceNode&quot;: True or False, # Output only. Whether the Node belongs to a Multislice group.
&quot;name&quot;: &quot;A String&quot;, # Output only. Immutable. The name of the TPU.
&quot;networkConfig&quot;: { # Network related configurations. # Network configurations for the TPU node.
&quot;canIpForward&quot;: True or False, # Allows the TPU node to send and receive packets with non-matching destination or source IPs. This is required if you plan to use the TPU workers to forward routes.
Expand Down
4 changes: 2 additions & 2 deletions googleapiclient/discovery_cache/documents/tpu.v1.json
Expand Up @@ -659,7 +659,7 @@
}
}
},
"revision": "20230410",
"revision": "20230512",
"rootUrl": "https://tpu.googleapis.com/",
"schemas": {
"AcceleratorType": {
Expand Down Expand Up @@ -795,7 +795,7 @@
"type": "object"
},
"Location": {
"description": "A resource that represents Google Cloud Platform location.",
"description": "A resource that represents a Google Cloud location.",
"id": "Location",
"properties": {
"displayName": {
Expand Down
4 changes: 2 additions & 2 deletions googleapiclient/discovery_cache/documents/tpu.v1alpha1.json
Expand Up @@ -669,7 +669,7 @@
}
}
},
"revision": "20230410",
"revision": "20230512",
"rootUrl": "https://tpu.googleapis.com/",
"schemas": {
"AcceleratorType": {
Expand Down Expand Up @@ -805,7 +805,7 @@
"type": "object"
},
"Location": {
"description": "A resource that represents Google Cloud Platform location.",
"description": "A resource that represents a Google Cloud location.",
"id": "Location",
"properties": {
"displayName": {
Expand Down
4 changes: 2 additions & 2 deletions googleapiclient/discovery_cache/documents/tpu.v2.json
Expand Up @@ -721,7 +721,7 @@
}
}
},
"revision": "20230410",
"revision": "20230512",
"rootUrl": "https://tpu.googleapis.com/",
"schemas": {
"AcceleratorConfig": {
Expand Down Expand Up @@ -1025,7 +1025,7 @@
"type": "object"
},
"Location": {
"description": "A resource that represents Google Cloud Platform location.",
"description": "A resource that represents a Google Cloud location.",
"id": "Location",
"properties": {
"displayName": {
Expand Down
14 changes: 12 additions & 2 deletions googleapiclient/discovery_cache/documents/tpu.v2alpha1.json
Expand Up @@ -728,6 +728,11 @@
"name"
],
"parameters": {
"force": {
"description": "If set to true, all running nodes belonging to this queued resource will be deleted first and then the queued resource will be deleted. Otherwise (i.e. force=false), the queued resource will only be deleted if its nodes have already been deleted or the queued resource is in the ACCEPTED, FAILED, or SUSPENDED state.",
"location": "query",
"type": "boolean"
},
"name": {
"description": "Required. The resource name.",
"location": "path",
Expand Down Expand Up @@ -892,7 +897,7 @@
}
}
},
"revision": "20230410",
"revision": "20230512",
"rootUrl": "https://tpu.googleapis.com/",
"schemas": {
"AcceleratorConfig": {
Expand Down Expand Up @@ -1295,7 +1300,7 @@
"type": "object"
},
"Location": {
"description": "A resource that represents Google Cloud Platform location.",
"description": "A resource that represents a Google Cloud location.",
"id": "Location",
"properties": {
"displayName": {
Expand Down Expand Up @@ -1464,6 +1469,11 @@
"description": "Custom metadata to apply to the TPU Node. Can set startup-script and shutdown-script",
"type": "object"
},
"multisliceNode": {
"description": "Output only. Whether the Node belongs to a Multislice group.",
"readOnly": true,
"type": "boolean"
},
"name": {
"description": "Output only. Immutable. The name of the TPU.",
"readOnly": true,
Expand Down

0 comments on commit ac29b4d

Please sign in to comment.