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:
- schemas.Node.properties.createTime.readOnly
- schemas.Node.properties.healthDescription.readOnly
- schemas.Node.properties.name.readOnly
- schemas.Node.properties.networkEndpoints.readOnly
- schemas.Node.properties.schedulingConfig.description
- schemas.Node.properties.serviceAccount.readOnly
- schemas.Node.properties.state.readOnly

The following keys were changed:
- resources.projects.resources.locations.resources.acceleratorTypes.methods.get.parameters.name.description
- resources.projects.resources.locations.resources.acceleratorTypes.methods.list.parameters.parent.description
- resources.projects.resources.locations.resources.nodes.methods.create.parameters.parent.description
- resources.projects.resources.locations.resources.nodes.methods.delete.parameters.name.description
- resources.projects.resources.locations.resources.nodes.methods.get.parameters.name.description
- resources.projects.resources.locations.resources.nodes.methods.list.parameters.parent.description
- resources.projects.resources.locations.resources.tensorflowVersions.methods.get.parameters.name.description
- resources.projects.resources.locations.resources.tensorflowVersions.methods.list.parameters.parent.description
- schemas.Node.properties.acceleratorType.description
- schemas.Node.properties.name.description
- schemas.Node.properties.tensorflowVersion.description

#### tpu:v1
The following keys were added:
- schemas.Node.properties.createTime.readOnly
- schemas.Node.properties.healthDescription.readOnly
- schemas.Node.properties.name.readOnly
- schemas.Node.properties.networkEndpoints.readOnly
- schemas.Node.properties.schedulingConfig.description
- schemas.Node.properties.serviceAccount.readOnly
- schemas.Node.properties.state.readOnly

The following keys were changed:
- resources.projects.resources.locations.resources.acceleratorTypes.methods.get.parameters.name.description
- resources.projects.resources.locations.resources.acceleratorTypes.methods.list.parameters.parent.description
- resources.projects.resources.locations.resources.nodes.methods.create.parameters.parent.description
- resources.projects.resources.locations.resources.nodes.methods.delete.parameters.name.description
- resources.projects.resources.locations.resources.nodes.methods.get.parameters.name.description
- resources.projects.resources.locations.resources.nodes.methods.list.parameters.parent.description
- resources.projects.resources.locations.resources.tensorflowVersions.methods.get.parameters.name.description
- resources.projects.resources.locations.resources.tensorflowVersions.methods.list.parameters.parent.description
- schemas.Node.properties.acceleratorType.description
- schemas.Node.properties.name.description
- schemas.Node.properties.tensorflowVersion.description
  • Loading branch information
yoshi-automation authored and sofisl committed Oct 20, 2020
1 parent 5ba201f commit 9e02d17
Show file tree
Hide file tree
Showing 4 changed files with 100 additions and 80 deletions.
33 changes: 20 additions & 13 deletions discovery/tpu-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@
],
"parameters": {
"name": {
"description": "The resource name.",
"description": "Required. The resource name.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/acceleratorTypes/[^/]+$",
"required": true,
Expand Down Expand Up @@ -235,7 +235,7 @@
"type": "string"
},
"parent": {
"description": "The parent resource name.",
"description": "Required. The parent resource name.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+$",
"required": true,
Expand Down Expand Up @@ -269,7 +269,7 @@
"type": "string"
},
"parent": {
"description": "The parent resource name.",
"description": "Required. The parent resource name.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+$",
"required": true,
Expand Down Expand Up @@ -297,7 +297,7 @@
],
"parameters": {
"name": {
"description": "The resource name.",
"description": "Required. The resource name.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/nodes/[^/]+$",
"required": true,
Expand All @@ -322,7 +322,7 @@
],
"parameters": {
"name": {
"description": "The resource name.",
"description": "Required. The resource name.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/nodes/[^/]+$",
"required": true,
Expand Down Expand Up @@ -358,7 +358,7 @@
"type": "string"
},
"parent": {
"description": "The parent resource name.",
"description": "Required. The parent resource name.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+$",
"required": true,
Expand Down Expand Up @@ -591,7 +591,7 @@
],
"parameters": {
"name": {
"description": "The resource name.",
"description": "Required. The resource name.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/tensorflowVersions/[^/]+$",
"required": true,
Expand Down Expand Up @@ -637,7 +637,7 @@
"type": "string"
},
"parent": {
"description": "The parent resource name.",
"description": "Required. The parent resource name.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+$",
"required": true,
Expand All @@ -659,7 +659,7 @@
}
}
},
"revision": "20200909",
"revision": "20201014",
"rootUrl": "https://tpu.googleapis.com/",
"schemas": {
"AcceleratorType": {
Expand Down Expand Up @@ -849,7 +849,7 @@
"id": "Node",
"properties": {
"acceleratorType": {
"description": "The type of hardware accelerators associated with this node. Required.",
"description": "Required. The type of hardware accelerators associated with this node.",
"type": "string"
},
"cidrBlock": {
Expand All @@ -859,6 +859,7 @@
"createTime": {
"description": "Output only. The time when the node was created.",
"format": "google-datetime",
"readOnly": true,
"type": "string"
},
"description": {
Expand Down Expand Up @@ -887,6 +888,7 @@
},
"healthDescription": {
"description": "Output only. If this field is populated, it contains a description of why the TPU Node is unhealthy.",
"readOnly": true,
"type": "string"
},
"ipAddress": {
Expand All @@ -901,7 +903,8 @@
"type": "object"
},
"name": {
"description": "Output only. The immutable name of the TPU",
"description": "Output only. Immutable. The name of the TPU",
"readOnly": true,
"type": "string"
},
"network": {
Expand All @@ -913,17 +916,20 @@
"items": {
"$ref": "NetworkEndpoint"
},
"readOnly": true,
"type": "array"
},
"port": {
"description": "Output only. DEPRECATED! Use network_endpoints instead. The network port for the TPU Node as visible to Compute Engine instances.",
"type": "string"
},
"schedulingConfig": {
"$ref": "SchedulingConfig"
"$ref": "SchedulingConfig",
"description": "The scheduling options for this node."
},
"serviceAccount": {
"description": "Output only. The service account used to run the tensor flow services within the node. To share resources, including Google Cloud Storage data, with the Tensorflow job running in the Node, this account must have permissions to that data.",
"readOnly": true,
"type": "string"
},
"state": {
Expand Down Expand Up @@ -962,6 +968,7 @@
"TPU node has been hidden.",
"TPU node is currently unhiding."
],
"readOnly": true,
"type": "string"
},
"symptoms": {
Expand All @@ -973,7 +980,7 @@
"type": "array"
},
"tensorflowVersion": {
"description": "The version of Tensorflow running in the Node. Required.",
"description": "Required. The version of Tensorflow running in the Node.",
"type": "string"
},
"useServiceNetworking": {
Expand Down
33 changes: 20 additions & 13 deletions discovery/tpu-v1alpha1.json
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@
],
"parameters": {
"name": {
"description": "The resource name.",
"description": "Required. The resource name.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/acceleratorTypes/[^/]+$",
"required": true,
Expand Down Expand Up @@ -235,7 +235,7 @@
"type": "string"
},
"parent": {
"description": "The parent resource name.",
"description": "Required. The parent resource name.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+$",
"required": true,
Expand Down Expand Up @@ -269,7 +269,7 @@
"type": "string"
},
"parent": {
"description": "The parent resource name.",
"description": "Required. The parent resource name.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+$",
"required": true,
Expand Down Expand Up @@ -297,7 +297,7 @@
],
"parameters": {
"name": {
"description": "The resource name.",
"description": "Required. The resource name.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/nodes/[^/]+$",
"required": true,
Expand All @@ -322,7 +322,7 @@
],
"parameters": {
"name": {
"description": "The resource name.",
"description": "Required. The resource name.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/nodes/[^/]+$",
"required": true,
Expand Down Expand Up @@ -358,7 +358,7 @@
"type": "string"
},
"parent": {
"description": "The parent resource name.",
"description": "Required. The parent resource name.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+$",
"required": true,
Expand Down Expand Up @@ -591,7 +591,7 @@
],
"parameters": {
"name": {
"description": "The resource name.",
"description": "Required. The resource name.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/tensorflowVersions/[^/]+$",
"required": true,
Expand Down Expand Up @@ -637,7 +637,7 @@
"type": "string"
},
"parent": {
"description": "The parent resource name.",
"description": "Required. The parent resource name.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+$",
"required": true,
Expand All @@ -659,7 +659,7 @@
}
}
},
"revision": "20200909",
"revision": "20201014",
"rootUrl": "https://tpu.googleapis.com/",
"schemas": {
"AcceleratorType": {
Expand Down Expand Up @@ -849,7 +849,7 @@
"id": "Node",
"properties": {
"acceleratorType": {
"description": "The type of hardware accelerators associated with this node. Required.",
"description": "Required. The type of hardware accelerators associated with this node.",
"type": "string"
},
"cidrBlock": {
Expand All @@ -859,6 +859,7 @@
"createTime": {
"description": "Output only. The time when the node was created.",
"format": "google-datetime",
"readOnly": true,
"type": "string"
},
"description": {
Expand Down Expand Up @@ -887,6 +888,7 @@
},
"healthDescription": {
"description": "Output only. If this field is populated, it contains a description of why the TPU Node is unhealthy.",
"readOnly": true,
"type": "string"
},
"ipAddress": {
Expand All @@ -901,7 +903,8 @@
"type": "object"
},
"name": {
"description": "Output only. The immutable name of the TPU",
"description": "Output only. Immutable. The name of the TPU",
"readOnly": true,
"type": "string"
},
"network": {
Expand All @@ -913,17 +916,20 @@
"items": {
"$ref": "NetworkEndpoint"
},
"readOnly": true,
"type": "array"
},
"port": {
"description": "Output only. DEPRECATED! Use network_endpoints instead. The network port for the TPU Node as visible to Compute Engine instances.",
"type": "string"
},
"schedulingConfig": {
"$ref": "SchedulingConfig"
"$ref": "SchedulingConfig",
"description": "The scheduling options for this node."
},
"serviceAccount": {
"description": "Output only. The service account used to run the tensor flow services within the node. To share resources, including Google Cloud Storage data, with the Tensorflow job running in the Node, this account must have permissions to that data.",
"readOnly": true,
"type": "string"
},
"state": {
Expand Down Expand Up @@ -962,6 +968,7 @@
"TPU node has been hidden.",
"TPU node is currently unhiding."
],
"readOnly": true,
"type": "string"
},
"symptoms": {
Expand All @@ -973,7 +980,7 @@
"type": "array"
},
"tensorflowVersion": {
"description": "The version of Tensorflow running in the Node. Required.",
"description": "Required. The version of Tensorflow running in the Node.",
"type": "string"
},
"useServiceNetworking": {
Expand Down
Loading

0 comments on commit 9e02d17

Please sign in to comment.