From ac29b4d408a9e7e0ceb9fc3c2cf5ed5efa4bc50a Mon Sep 17 00:00:00 2001 From: Yoshi Automation Date: Wed, 24 May 2023 18:27:16 +0000 Subject: [PATCH] feat(tpu): update the api #### 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) --- docs/dyn/tpu_v1.projects.locations.html | 4 ++-- docs/dyn/tpu_v1alpha1.projects.locations.html | 4 ++-- docs/dyn/tpu_v2.projects.locations.html | 4 ++-- docs/dyn/tpu_v2alpha1.projects.locations.html | 4 ++-- .../dyn/tpu_v2alpha1.projects.locations.nodes.html | 4 ++++ ...2alpha1.projects.locations.queuedResources.html | 8 ++++++-- .../discovery_cache/documents/tpu.v1.json | 4 ++-- .../discovery_cache/documents/tpu.v1alpha1.json | 4 ++-- .../discovery_cache/documents/tpu.v2.json | 4 ++-- .../discovery_cache/documents/tpu.v2alpha1.json | 14 ++++++++++++-- 10 files changed, 36 insertions(+), 18 deletions(-) diff --git a/docs/dyn/tpu_v1.projects.locations.html b/docs/dyn/tpu_v1.projects.locations.html index 82b0af7f17e..b097055a133 100644 --- a/docs/dyn/tpu_v1.projects.locations.html +++ b/docs/dyn/tpu_v1.projects.locations.html @@ -126,7 +126,7 @@

Method Details

Returns: An object of the form: - { # A resource that represents Google Cloud Platform location. + { # A resource that represents a Google Cloud location. "displayName": "A String", # The friendly name for this location, typically a nearby city name. For example, "Tokyo". "labels": { # Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us-east1"} "a_key": "A String", @@ -158,7 +158,7 @@

Method Details

{ # The response message for Locations.ListLocations. "locations": [ # 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. "displayName": "A String", # The friendly name for this location, typically a nearby city name. For example, "Tokyo". "labels": { # Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us-east1"} "a_key": "A String", diff --git a/docs/dyn/tpu_v1alpha1.projects.locations.html b/docs/dyn/tpu_v1alpha1.projects.locations.html index 977fd2b73f8..8829446160b 100644 --- a/docs/dyn/tpu_v1alpha1.projects.locations.html +++ b/docs/dyn/tpu_v1alpha1.projects.locations.html @@ -126,7 +126,7 @@

Method Details

Returns: An object of the form: - { # A resource that represents Google Cloud Platform location. + { # A resource that represents a Google Cloud location. "displayName": "A String", # The friendly name for this location, typically a nearby city name. For example, "Tokyo". "labels": { # Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us-east1"} "a_key": "A String", @@ -158,7 +158,7 @@

Method Details

{ # The response message for Locations.ListLocations. "locations": [ # 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. "displayName": "A String", # The friendly name for this location, typically a nearby city name. For example, "Tokyo". "labels": { # Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us-east1"} "a_key": "A String", diff --git a/docs/dyn/tpu_v2.projects.locations.html b/docs/dyn/tpu_v2.projects.locations.html index bdb70b45846..10219f1d398 100644 --- a/docs/dyn/tpu_v2.projects.locations.html +++ b/docs/dyn/tpu_v2.projects.locations.html @@ -156,7 +156,7 @@

Method Details

Returns: An object of the form: - { # A resource that represents Google Cloud Platform location. + { # A resource that represents a Google Cloud location. "displayName": "A String", # The friendly name for this location, typically a nearby city name. For example, "Tokyo". "labels": { # Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us-east1"} "a_key": "A String", @@ -188,7 +188,7 @@

Method Details

{ # The response message for Locations.ListLocations. "locations": [ # 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. "displayName": "A String", # The friendly name for this location, typically a nearby city name. For example, "Tokyo". "labels": { # Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us-east1"} "a_key": "A String", diff --git a/docs/dyn/tpu_v2alpha1.projects.locations.html b/docs/dyn/tpu_v2alpha1.projects.locations.html index ebb4e235125..1b8361bc284 100644 --- a/docs/dyn/tpu_v2alpha1.projects.locations.html +++ b/docs/dyn/tpu_v2alpha1.projects.locations.html @@ -161,7 +161,7 @@

Method Details

Returns: An object of the form: - { # A resource that represents Google Cloud Platform location. + { # A resource that represents a Google Cloud location. "displayName": "A String", # The friendly name for this location, typically a nearby city name. For example, "Tokyo". "labels": { # Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us-east1"} "a_key": "A String", @@ -193,7 +193,7 @@

Method Details

{ # The response message for Locations.ListLocations. "locations": [ # 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. "displayName": "A String", # The friendly name for this location, typically a nearby city name. For example, "Tokyo". "labels": { # Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us-east1"} "a_key": "A String", diff --git a/docs/dyn/tpu_v2alpha1.projects.locations.nodes.html b/docs/dyn/tpu_v2alpha1.projects.locations.nodes.html index 38eac4c0b19..1322c755f99 100644 --- a/docs/dyn/tpu_v2alpha1.projects.locations.nodes.html +++ b/docs/dyn/tpu_v2alpha1.projects.locations.nodes.html @@ -147,6 +147,7 @@

Method Details

"metadata": { # Custom metadata to apply to the TPU Node. Can set startup-script and shutdown-script "a_key": "A String", }, + "multisliceNode": True or False, # Output only. Whether the Node belongs to a Multislice group. "name": "A String", # Output only. Immutable. The name of the TPU. "networkConfig": { # Network related configurations. # Network configurations for the TPU node. "canIpForward": 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. @@ -298,6 +299,7 @@

Method Details

"metadata": { # Custom metadata to apply to the TPU Node. Can set startup-script and shutdown-script "a_key": "A String", }, + "multisliceNode": True or False, # Output only. Whether the Node belongs to a Multislice group. "name": "A String", # Output only. Immutable. The name of the TPU. "networkConfig": { # Network related configurations. # Network configurations for the TPU node. "canIpForward": 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. @@ -430,6 +432,7 @@

Method Details

"metadata": { # Custom metadata to apply to the TPU Node. Can set startup-script and shutdown-script "a_key": "A String", }, + "multisliceNode": True or False, # Output only. Whether the Node belongs to a Multislice group. "name": "A String", # Output only. Immutable. The name of the TPU. "networkConfig": { # Network related configurations. # Network configurations for the TPU node. "canIpForward": 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. @@ -529,6 +532,7 @@

Method Details

"metadata": { # Custom metadata to apply to the TPU Node. Can set startup-script and shutdown-script "a_key": "A String", }, + "multisliceNode": True or False, # Output only. Whether the Node belongs to a Multislice group. "name": "A String", # Output only. Immutable. The name of the TPU. "networkConfig": { # Network related configurations. # Network configurations for the TPU node. "canIpForward": 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. diff --git a/docs/dyn/tpu_v2alpha1.projects.locations.queuedResources.html b/docs/dyn/tpu_v2alpha1.projects.locations.queuedResources.html index a0b5f2d7058..6155cb06714 100644 --- a/docs/dyn/tpu_v2alpha1.projects.locations.queuedResources.html +++ b/docs/dyn/tpu_v2alpha1.projects.locations.queuedResources.html @@ -81,7 +81,7 @@

Instance Methods

create(parent, body=None, queuedResourceId=None, requestId=None, x__xgafv=None)

Creates a QueuedResource TPU instance.

- delete(name, requestId=None, x__xgafv=None)

+ delete(name, force=None, requestId=None, x__xgafv=None)

Deletes a QueuedResource TPU instance.

get(name, x__xgafv=None)

@@ -182,6 +182,7 @@

Method Details

"metadata": { # Custom metadata to apply to the TPU Node. Can set startup-script and shutdown-script "a_key": "A String", }, + "multisliceNode": True or False, # Output only. Whether the Node belongs to a Multislice group. "name": "A String", # Output only. Immutable. The name of the TPU. "networkConfig": { # Network related configurations. # Network configurations for the TPU node. "canIpForward": 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. @@ -265,11 +266,12 @@

Method Details

- delete(name, requestId=None, x__xgafv=None) + delete(name, force=None, requestId=None, x__xgafv=None)
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
@@ -389,6 +391,7 @@ 

Method Details

"metadata": { # Custom metadata to apply to the TPU Node. Can set startup-script and shutdown-script "a_key": "A String", }, + "multisliceNode": True or False, # Output only. Whether the Node belongs to a Multislice group. "name": "A String", # Output only. Immutable. The name of the TPU. "networkConfig": { # Network related configurations. # Network configurations for the TPU node. "canIpForward": 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. @@ -535,6 +538,7 @@

Method Details

"metadata": { # Custom metadata to apply to the TPU Node. Can set startup-script and shutdown-script "a_key": "A String", }, + "multisliceNode": True or False, # Output only. Whether the Node belongs to a Multislice group. "name": "A String", # Output only. Immutable. The name of the TPU. "networkConfig": { # Network related configurations. # Network configurations for the TPU node. "canIpForward": 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. diff --git a/googleapiclient/discovery_cache/documents/tpu.v1.json b/googleapiclient/discovery_cache/documents/tpu.v1.json index 60e36ad16a2..68368467e38 100644 --- a/googleapiclient/discovery_cache/documents/tpu.v1.json +++ b/googleapiclient/discovery_cache/documents/tpu.v1.json @@ -659,7 +659,7 @@ } } }, - "revision": "20230410", + "revision": "20230512", "rootUrl": "https://tpu.googleapis.com/", "schemas": { "AcceleratorType": { @@ -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": { diff --git a/googleapiclient/discovery_cache/documents/tpu.v1alpha1.json b/googleapiclient/discovery_cache/documents/tpu.v1alpha1.json index 474ca56676a..e85317cddc0 100644 --- a/googleapiclient/discovery_cache/documents/tpu.v1alpha1.json +++ b/googleapiclient/discovery_cache/documents/tpu.v1alpha1.json @@ -669,7 +669,7 @@ } } }, - "revision": "20230410", + "revision": "20230512", "rootUrl": "https://tpu.googleapis.com/", "schemas": { "AcceleratorType": { @@ -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": { diff --git a/googleapiclient/discovery_cache/documents/tpu.v2.json b/googleapiclient/discovery_cache/documents/tpu.v2.json index 338abd034f2..1b83cd2c075 100644 --- a/googleapiclient/discovery_cache/documents/tpu.v2.json +++ b/googleapiclient/discovery_cache/documents/tpu.v2.json @@ -721,7 +721,7 @@ } } }, - "revision": "20230410", + "revision": "20230512", "rootUrl": "https://tpu.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -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": { diff --git a/googleapiclient/discovery_cache/documents/tpu.v2alpha1.json b/googleapiclient/discovery_cache/documents/tpu.v2alpha1.json index 1ecf9c95719..3de747425c8 100644 --- a/googleapiclient/discovery_cache/documents/tpu.v2alpha1.json +++ b/googleapiclient/discovery_cache/documents/tpu.v2alpha1.json @@ -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", @@ -892,7 +897,7 @@ } } }, - "revision": "20230410", + "revision": "20230512", "rootUrl": "https://tpu.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -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": { @@ -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,