Skip to content

Commit

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

The following keys were changed:
- resources.projects.resources.locations.resources.nodes.methods.start.parameters.name.description
- resources.projects.resources.locations.resources.nodes.methods.stop.parameters.name.description
- schemas.NodeSpec.properties.nodeId.description

#### tpu:v2

The following keys were changed:
- resources.projects.resources.locations.resources.nodes.methods.start.parameters.name.description
- resources.projects.resources.locations.resources.nodes.methods.stop.parameters.name.description
  • Loading branch information
yoshi-automation authored and sofisl committed Feb 2, 2023
1 parent 656c975 commit fe71ffb
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
6 changes: 3 additions & 3 deletions discovery/tpu-v2.json
Expand Up @@ -473,7 +473,7 @@
],
"parameters": {
"name": {
"description": "The resource name.",
"description": "Required. The resource name.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/nodes/[^/]+$",
"required": true,
Expand Down Expand Up @@ -501,7 +501,7 @@
],
"parameters": {
"name": {
"description": "The resource name.",
"description": "Required. The resource name.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/nodes/[^/]+$",
"required": true,
Expand Down Expand Up @@ -721,7 +721,7 @@
}
}
},
"revision": "20221004",
"revision": "20230105",
"rootUrl": "https://tpu.googleapis.com/",
"schemas": {
"AcceleratorType": {
Expand Down
8 changes: 4 additions & 4 deletions discovery/tpu-v2alpha1.json
Expand Up @@ -511,7 +511,7 @@
],
"parameters": {
"name": {
"description": "The resource name.",
"description": "Required. The resource name.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/nodes/[^/]+$",
"required": true,
Expand Down Expand Up @@ -539,7 +539,7 @@
],
"parameters": {
"name": {
"description": "The resource name.",
"description": "Required. The resource name.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/nodes/[^/]+$",
"required": true,
Expand Down Expand Up @@ -892,7 +892,7 @@
}
}
},
"revision": "20221130",
"revision": "20230105",
"rootUrl": "https://tpu.googleapis.com/",
"schemas": {
"AcceleratorType": {
Expand Down Expand Up @@ -1530,7 +1530,7 @@
"description": "Required. The node."
},
"nodeId": {
"description": "The unqualified resource name. Should follow the ^[A-Za-z0-9_.~+%-]+$ regex format. This is only specified when requesting a single node. In case of multi-node requests, multi_node_params must be populated instead. It's an error to specify both node_id and multi_node_params.",
"description": "The unqualified resource name. Should follow the `^[A-Za-z0-9_.~+%-]+$` regex format. This is only specified when requesting a single node. In case of multi-node requests, multi_node_params must be populated instead. It's an error to specify both node_id and multi_node_params.",
"type": "string"
},
"parent": {
Expand Down
8 changes: 4 additions & 4 deletions src/apis/tpu/v2.ts
Expand Up @@ -2342,7 +2342,7 @@ export namespace tpu_v2 {
*
* // Do the magic
* const res = await tpu.projects.locations.nodes.start({
* // The resource name.
* // Required. The resource name.
* name: 'projects/my-project/locations/my-location/nodes/my-node',
*
* // Request body metadata
Expand Down Expand Up @@ -2478,7 +2478,7 @@ export namespace tpu_v2 {
*
* // Do the magic
* const res = await tpu.projects.locations.nodes.stop({
* // The resource name.
* // Required. The resource name.
* name: 'projects/my-project/locations/my-location/nodes/my-node',
*
* // Request body metadata
Expand Down Expand Up @@ -2664,7 +2664,7 @@ export namespace tpu_v2 {
export interface Params$Resource$Projects$Locations$Nodes$Start
extends StandardParameters {
/**
* The resource name.
* Required. The resource name.
*/
name?: string;

Expand All @@ -2676,7 +2676,7 @@ export namespace tpu_v2 {
export interface Params$Resource$Projects$Locations$Nodes$Stop
extends StandardParameters {
/**
* The resource name.
* Required. The resource name.
*/
name?: string;

Expand Down
10 changes: 5 additions & 5 deletions src/apis/tpu/v2alpha1.ts
Expand Up @@ -551,7 +551,7 @@ export namespace tpu_v2alpha1 {
*/
node?: Schema$Node;
/**
* The unqualified resource name. Should follow the ^[A-Za-z0-9_.~+%-]+$ regex format. This is only specified when requesting a single node. In case of multi-node requests, multi_node_params must be populated instead. It's an error to specify both node_id and multi_node_params.
* The unqualified resource name. Should follow the `^[A-Za-z0-9_.~+%-]+$` regex format. This is only specified when requesting a single node. In case of multi-node requests, multi_node_params must be populated instead. It's an error to specify both node_id and multi_node_params.
*/
nodeId?: string | null;
/**
Expand Down Expand Up @@ -2713,7 +2713,7 @@ export namespace tpu_v2alpha1 {
*
* // Do the magic
* const res = await tpu.projects.locations.nodes.start({
* // The resource name.
* // Required. The resource name.
* name: 'projects/my-project/locations/my-location/nodes/my-node',
*
* // Request body metadata
Expand Down Expand Up @@ -2852,7 +2852,7 @@ export namespace tpu_v2alpha1 {
*
* // Do the magic
* const res = await tpu.projects.locations.nodes.stop({
* // The resource name.
* // Required. The resource name.
* name: 'projects/my-project/locations/my-location/nodes/my-node',
*
* // Request body metadata
Expand Down Expand Up @@ -3061,7 +3061,7 @@ export namespace tpu_v2alpha1 {
export interface Params$Resource$Projects$Locations$Nodes$Start
extends StandardParameters {
/**
* The resource name.
* Required. The resource name.
*/
name?: string;

Expand All @@ -3073,7 +3073,7 @@ export namespace tpu_v2alpha1 {
export interface Params$Resource$Projects$Locations$Nodes$Stop
extends StandardParameters {
/**
* The resource name.
* Required. The resource name.
*/
name?: string;

Expand Down

0 comments on commit fe71ffb

Please sign in to comment.