Skip to content

Commit

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

The following keys were added:
- resources.projects.resources.locations.resources.nodes.methods.create.parameters.requestId.description
- resources.projects.resources.locations.resources.nodes.methods.create.parameters.requestId.location
- resources.projects.resources.locations.resources.nodes.methods.create.parameters.requestId.type
- resources.projects.resources.locations.resources.nodes.methods.delete.parameters.requestId.description
- resources.projects.resources.locations.resources.nodes.methods.delete.parameters.requestId.location
- resources.projects.resources.locations.resources.nodes.methods.delete.parameters.requestId.type
- schemas.OperationMetadata.properties.apiVersion.readOnly
- schemas.OperationMetadata.properties.cancelRequested.readOnly
- schemas.OperationMetadata.properties.createTime.readOnly
- schemas.OperationMetadata.properties.endTime.readOnly
- schemas.OperationMetadata.properties.statusDetail.readOnly
- schemas.OperationMetadata.properties.target.readOnly
- schemas.OperationMetadata.properties.verb.readOnly

The following keys were changed:
- schemas.OperationMetadata.properties.apiVersion.description
- schemas.OperationMetadata.properties.cancelRequested.description
- schemas.OperationMetadata.properties.createTime.description
- schemas.OperationMetadata.properties.endTime.description
- schemas.OperationMetadata.properties.statusDetail.description
- schemas.OperationMetadata.properties.target.description
- schemas.OperationMetadata.properties.verb.description

#### tpu:v1

The following keys were added:
- schemas.OperationMetadata.properties.apiVersion.readOnly
- schemas.OperationMetadata.properties.cancelRequested.readOnly
- schemas.OperationMetadata.properties.createTime.readOnly
- schemas.OperationMetadata.properties.endTime.readOnly
- schemas.OperationMetadata.properties.statusDetail.readOnly
- schemas.OperationMetadata.properties.target.readOnly
- schemas.OperationMetadata.properties.verb.readOnly

The following keys were changed:
- schemas.OperationMetadata.properties.apiVersion.description
- schemas.OperationMetadata.properties.cancelRequested.description
- schemas.OperationMetadata.properties.createTime.description
- schemas.OperationMetadata.properties.endTime.description
- schemas.OperationMetadata.properties.statusDetail.description
- schemas.OperationMetadata.properties.target.description
- schemas.OperationMetadata.properties.verb.description
  • Loading branch information
yoshi-automation authored and JustinBeckwith committed Jul 10, 2021
1 parent 653aa00 commit f61f41e
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 30 deletions.
23 changes: 15 additions & 8 deletions discovery/tpu-v1.json
Expand Up @@ -659,7 +659,7 @@
}
}
},
"revision": "20210414",
"revision": "20210707",
"rootUrl": "https://tpu.googleapis.com/",
"schemas": {
"AcceleratorType": {
Expand Down Expand Up @@ -1047,33 +1047,40 @@
"id": "OperationMetadata",
"properties": {
"apiVersion": {
"description": "[Output only] API version used to start the operation.",
"description": "Output only. API version used to start the operation.",
"readOnly": true,
"type": "string"
},
"cancelRequested": {
"description": "[Output only] Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.",
"description": "Output only. Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.",
"readOnly": true,
"type": "boolean"
},
"createTime": {
"description": "[Output only] The time the operation was created.",
"description": "Output only. The time the operation was created.",
"format": "google-datetime",
"readOnly": true,
"type": "string"
},
"endTime": {
"description": "[Output only] The time the operation finished running.",
"description": "Output only. The time the operation finished running.",
"format": "google-datetime",
"readOnly": true,
"type": "string"
},
"statusDetail": {
"description": "[Output only] Human-readable status of the operation, if any.",
"description": "Output only. Human-readable status of the operation, if any.",
"readOnly": true,
"type": "string"
},
"target": {
"description": "[Output only] Server-defined resource path for the target of the operation.",
"description": "Output only. Server-defined resource path for the target of the operation.",
"readOnly": true,
"type": "string"
},
"verb": {
"description": "[Output only] Name of the verb executed by the operation.",
"description": "Output only. Name of the verb executed by the operation.",
"readOnly": true,
"type": "string"
}
},
Expand Down
33 changes: 25 additions & 8 deletions discovery/tpu-v1alpha1.json
Expand Up @@ -274,6 +274,11 @@
"pattern": "^projects/[^/]+/locations/[^/]+$",
"required": true,
"type": "string"
},
"requestId": {
"description": "Idempotent request UUID.",
"location": "query",
"type": "string"
}
},
"path": "v1alpha1/{+parent}/nodes",
Expand Down Expand Up @@ -302,6 +307,11 @@
"pattern": "^projects/[^/]+/locations/[^/]+/nodes/[^/]+$",
"required": true,
"type": "string"
},
"requestId": {
"description": "Idempotent request UUID.",
"location": "query",
"type": "string"
}
},
"path": "v1alpha1/{+name}",
Expand Down Expand Up @@ -659,7 +669,7 @@
}
}
},
"revision": "20210414",
"revision": "20210707",
"rootUrl": "https://tpu.googleapis.com/",
"schemas": {
"AcceleratorType": {
Expand Down Expand Up @@ -1047,33 +1057,40 @@
"id": "OperationMetadata",
"properties": {
"apiVersion": {
"description": "[Output only] API version used to start the operation.",
"description": "Output only. API version used to start the operation.",
"readOnly": true,
"type": "string"
},
"cancelRequested": {
"description": "[Output only] Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.",
"description": "Output only. Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.",
"readOnly": true,
"type": "boolean"
},
"createTime": {
"description": "[Output only] The time the operation was created.",
"description": "Output only. The time the operation was created.",
"format": "google-datetime",
"readOnly": true,
"type": "string"
},
"endTime": {
"description": "[Output only] The time the operation finished running.",
"description": "Output only. The time the operation finished running.",
"format": "google-datetime",
"readOnly": true,
"type": "string"
},
"statusDetail": {
"description": "[Output only] Human-readable status of the operation, if any.",
"description": "Output only. Human-readable status of the operation, if any.",
"readOnly": true,
"type": "string"
},
"target": {
"description": "[Output only] Server-defined resource path for the target of the operation.",
"description": "Output only. Server-defined resource path for the target of the operation.",
"readOnly": true,
"type": "string"
},
"verb": {
"description": "[Output only] Name of the verb executed by the operation.",
"description": "Output only. Name of the verb executed by the operation.",
"readOnly": true,
"type": "string"
}
},
Expand Down
14 changes: 7 additions & 7 deletions src/apis/tpu/v1.ts
Expand Up @@ -368,31 +368,31 @@ export namespace tpu_v1 {
*/
export interface Schema$OperationMetadata {
/**
* [Output only] API version used to start the operation.
* Output only. API version used to start the operation.
*/
apiVersion?: string | null;
/**
* [Output only] Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.
* Output only. Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.
*/
cancelRequested?: boolean | null;
/**
* [Output only] The time the operation was created.
* Output only. The time the operation was created.
*/
createTime?: string | null;
/**
* [Output only] The time the operation finished running.
* Output only. The time the operation finished running.
*/
endTime?: string | null;
/**
* [Output only] Human-readable status of the operation, if any.
* Output only. Human-readable status of the operation, if any.
*/
statusDetail?: string | null;
/**
* [Output only] Server-defined resource path for the target of the operation.
* Output only. Server-defined resource path for the target of the operation.
*/
target?: string | null;
/**
* [Output only] Name of the verb executed by the operation.
* Output only. Name of the verb executed by the operation.
*/
verb?: string | null;
}
Expand Down
26 changes: 19 additions & 7 deletions src/apis/tpu/v1alpha1.ts
Expand Up @@ -368,31 +368,31 @@ export namespace tpu_v1alpha1 {
*/
export interface Schema$OperationMetadata {
/**
* [Output only] API version used to start the operation.
* Output only. API version used to start the operation.
*/
apiVersion?: string | null;
/**
* [Output only] Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.
* Output only. Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.
*/
cancelRequested?: boolean | null;
/**
* [Output only] The time the operation was created.
* Output only. The time the operation was created.
*/
createTime?: string | null;
/**
* [Output only] The time the operation finished running.
* Output only. The time the operation finished running.
*/
endTime?: string | null;
/**
* [Output only] Human-readable status of the operation, if any.
* Output only. Human-readable status of the operation, if any.
*/
statusDetail?: string | null;
/**
* [Output only] Server-defined resource path for the target of the operation.
* Output only. Server-defined resource path for the target of the operation.
*/
target?: string | null;
/**
* [Output only] Name of the verb executed by the operation.
* Output only. Name of the verb executed by the operation.
*/
verb?: string | null;
}
Expand Down Expand Up @@ -1155,6 +1155,8 @@ export namespace tpu_v1alpha1 {
* nodeId: 'placeholder-value',
* // Required. The parent resource name.
* parent: 'projects/my-project/locations/my-location',
* // Idempotent request UUID.
* requestId: 'placeholder-value',
*
* // Request body metadata
* requestBody: {
Expand Down Expand Up @@ -1314,6 +1316,8 @@ export namespace tpu_v1alpha1 {
* const res = await tpu.projects.locations.nodes.delete({
* // Required. The resource name.
* name: 'projects/my-project/locations/my-location/nodes/my-node',
* // Idempotent request UUID.
* requestId: 'placeholder-value',
* });
* console.log(res.data);
*
Expand Down Expand Up @@ -2127,6 +2131,10 @@ export namespace tpu_v1alpha1 {
* Required. The parent resource name.
*/
parent?: string;
/**
* Idempotent request UUID.
*/
requestId?: string;

/**
* Request body metadata
Expand All @@ -2139,6 +2147,10 @@ export namespace tpu_v1alpha1 {
* Required. The resource name.
*/
name?: string;
/**
* Idempotent request UUID.
*/
requestId?: string;
}
export interface Params$Resource$Projects$Locations$Nodes$Get
extends StandardParameters {
Expand Down

0 comments on commit f61f41e

Please sign in to comment.