| { |
| "canonicalName": "TPU", |
| "documentationLink": "https://cloud.google.com/tpu/", |
| "baseUrl": "https://tpu.googleapis.com/", |
| "servicePath": "", |
| "basePath": "", |
| "batchPath": "batch", |
| "discoveryVersion": "v1", |
| "name": "tpu", |
| "rootUrl": "https://tpu.googleapis.com/", |
| "ownerName": "Google", |
| "id": "tpu:v1alpha1", |
| "description": "TPU API provides customers with access to Google TPU technology.", |
| "title": "Cloud TPU API", |
| "revision": "20201014", |
| "parameters": { |
| "access_token": { |
| "description": "OAuth access token.", |
| "type": "string", |
| "location": "query" |
| }, |
| "uploadType": { |
| "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").", |
| "location": "query", |
| "type": "string" |
| }, |
| "$.xgafv": { |
| "enumDescriptions": [ |
| "v1 error format", |
| "v2 error format" |
| ], |
| "enum": [ |
| "1", |
| "2" |
| ], |
| "description": "V1 error format.", |
| "type": "string", |
| "location": "query" |
| }, |
| "quotaUser": { |
| "type": "string", |
| "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.", |
| "location": "query" |
| }, |
| "callback": { |
| "location": "query", |
| "description": "JSONP", |
| "type": "string" |
| }, |
| "prettyPrint": { |
| "location": "query", |
| "default": "true", |
| "type": "boolean", |
| "description": "Returns response with indentations and line breaks." |
| }, |
| "key": { |
| "location": "query", |
| "type": "string", |
| "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token." |
| }, |
| "oauth_token": { |
| "type": "string", |
| "description": "OAuth 2.0 token for the current user.", |
| "location": "query" |
| }, |
| "upload_protocol": { |
| "location": "query", |
| "type": "string", |
| "description": "Upload protocol for media (e.g. \"raw\", \"multipart\")." |
| }, |
| "alt": { |
| "location": "query", |
| "description": "Data format for response.", |
| "type": "string", |
| "default": "json", |
| "enumDescriptions": [ |
| "Responses with Content-Type of application/json", |
| "Media download with context-dependent Content-Type", |
| "Responses with Content-Type of application/x-protobuf" |
| ], |
| "enum": [ |
| "json", |
| "media", |
| "proto" |
| ] |
| }, |
| "fields": { |
| "description": "Selector specifying which fields to include in a partial response.", |
| "type": "string", |
| "location": "query" |
| } |
| }, |
| "icons": { |
| "x32": "http://www.google.com/images/icons/product/search-32.gif", |
| "x16": "http://www.google.com/images/icons/product/search-16.gif" |
| }, |
| "version": "v1alpha1", |
| "mtlsRootUrl": "https://tpu.mtls.googleapis.com/", |
| "schemas": { |
| "Empty": { |
| "properties": {}, |
| "type": "object", |
| "id": "Empty", |
| "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`." |
| }, |
| "ListTensorFlowVersionsResponse": { |
| "id": "ListTensorFlowVersionsResponse", |
| "type": "object", |
| "properties": { |
| "unreachable": { |
| "description": "Locations that could not be reached.", |
| "type": "array", |
| "items": { |
| "type": "string" |
| } |
| }, |
| "nextPageToken": { |
| "description": "The next page token or empty if none.", |
| "type": "string" |
| }, |
| "tensorflowVersions": { |
| "type": "array", |
| "description": "The listed nodes.", |
| "items": { |
| "$ref": "TensorFlowVersion" |
| } |
| } |
| }, |
| "description": "Response for ListTensorFlowVersions." |
| }, |
| "TensorFlowVersion": { |
| "properties": { |
| "name": { |
| "type": "string", |
| "description": "The resource name." |
| }, |
| "version": { |
| "type": "string", |
| "description": "the tensorflow version." |
| } |
| }, |
| "description": "A tensorflow version that a Node can be configured with.", |
| "id": "TensorFlowVersion", |
| "type": "object" |
| }, |
| "NetworkEndpoint": { |
| "type": "object", |
| "id": "NetworkEndpoint", |
| "properties": { |
| "port": { |
| "format": "int32", |
| "description": "The port of this network endpoint.", |
| "type": "integer" |
| }, |
| "ipAddress": { |
| "description": "The IP address of this network endpoint.", |
| "type": "string" |
| } |
| }, |
| "description": "A network endpoint over which a TPU worker can be reached." |
| }, |
| "Status": { |
| "description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).", |
| "type": "object", |
| "properties": { |
| "details": { |
| "description": "A list of messages that carry the error details. There is a common set of message types for APIs to use.", |
| "type": "array", |
| "items": { |
| "additionalProperties": { |
| "description": "Properties of the object. Contains field @type with type URL.", |
| "type": "any" |
| }, |
| "type": "object" |
| } |
| }, |
| "message": { |
| "type": "string", |
| "description": "A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client." |
| }, |
| "code": { |
| "type": "integer", |
| "format": "int32", |
| "description": "The status code, which should be an enum value of google.rpc.Code." |
| } |
| }, |
| "id": "Status" |
| }, |
| "Location": { |
| "id": "Location", |
| "description": "A resource that represents Google Cloud Platform location.", |
| "type": "object", |
| "properties": { |
| "metadata": { |
| "additionalProperties": { |
| "type": "any", |
| "description": "Properties of the object. Contains field @type with type URL." |
| }, |
| "type": "object", |
| "description": "Service-specific metadata. For example the available capacity at the given location." |
| }, |
| "name": { |
| "description": "Resource name for the location, which may vary between implementations. For example: `\"projects/example-project/locations/us-east1\"`", |
| "type": "string" |
| }, |
| "locationId": { |
| "description": "The canonical id for this location. For example: `\"us-east1\"`.", |
| "type": "string" |
| }, |
| "displayName": { |
| "description": "The friendly name for this location, typically a nearby city name. For example, \"Tokyo\".", |
| "type": "string" |
| }, |
| "labels": { |
| "description": "Cross-service attributes for the location. For example {\"cloud.googleapis.com/region\": \"us-east1\"}", |
| "additionalProperties": { |
| "type": "string" |
| }, |
| "type": "object" |
| } |
| } |
| }, |
| "ListLocationsResponse": { |
| "type": "object", |
| "description": "The response message for Locations.ListLocations.", |
| "properties": { |
| "nextPageToken": { |
| "type": "string", |
| "description": "The standard List next-page token." |
| }, |
| "locations": { |
| "type": "array", |
| "items": { |
| "$ref": "Location" |
| }, |
| "description": "A list of locations that matches the specified filter in the request." |
| } |
| }, |
| "id": "ListLocationsResponse" |
| }, |
| "Node": { |
| "description": "A TPU instance.", |
| "id": "Node", |
| "type": "object", |
| "properties": { |
| "acceleratorType": { |
| "type": "string", |
| "description": "Required. The type of hardware accelerators associated with this node." |
| }, |
| "labels": { |
| "type": "object", |
| "description": "Resource labels to represent user-provided metadata.", |
| "additionalProperties": { |
| "type": "string" |
| } |
| }, |
| "network": { |
| "type": "string", |
| "description": "The name of a network they wish to peer the TPU node to. It must be a preexisting Compute Engine network inside of the project on which this API has been activated. If none is provided, \"default\" will be used." |
| }, |
| "ipAddress": { |
| "type": "string", |
| "description": "Output only. DEPRECATED! Use network_endpoints instead. The network address for the TPU Node as visible to Compute Engine instances." |
| }, |
| "useServiceNetworking": { |
| "type": "boolean", |
| "description": "Whether the VPC peering for the node is set up through Service Networking API. The VPC Peering should be set up before provisioning the node. If this field is set, cidr_block field should not be specified. If the network, that you want to peer the TPU Node to, is Shared VPC networks, the node must be created with this this field enabled." |
| }, |
| "port": { |
| "description": "Output only. DEPRECATED! Use network_endpoints instead. The network port for the TPU Node as visible to Compute Engine instances.", |
| "type": "string" |
| }, |
| "symptoms": { |
| "type": "array", |
| "readOnly": true, |
| "items": { |
| "$ref": "Symptom" |
| }, |
| "description": "Output only. The Symptoms that have occurred to the TPU Node." |
| }, |
| "healthDescription": { |
| "type": "string", |
| "description": "Output only. If this field is populated, it contains a description of why the TPU Node is unhealthy.", |
| "readOnly": true |
| }, |
| "state": { |
| "readOnly": true, |
| "description": "Output only. The current state for the TPU Node.", |
| "enumDescriptions": [ |
| "TPU node state is not known/set.", |
| "TPU node is being created.", |
| "TPU node has been created and is fully usable.", |
| "TPU node is restarting.", |
| "TPU node is undergoing reimaging.", |
| "TPU node is being deleted.", |
| "TPU node is being repaired and may be unusable. Details can be found in the `help_description` field.", |
| "TPU node is stopped.", |
| "TPU node is currently stopping.", |
| "TPU node is currently starting.", |
| "TPU node has been preempted. Only applies to Preemptible TPU Nodes.", |
| "TPU node has been terminated due to maintenance or has reached the end of its life cycle (for preemptible nodes).", |
| "TPU node is currently hiding.", |
| "TPU node has been hidden.", |
| "TPU node is currently unhiding." |
| ], |
| "type": "string", |
| "enum": [ |
| "STATE_UNSPECIFIED", |
| "CREATING", |
| "READY", |
| "RESTARTING", |
| "REIMAGING", |
| "DELETING", |
| "REPAIRING", |
| "STOPPED", |
| "STOPPING", |
| "STARTING", |
| "PREEMPTED", |
| "TERMINATED", |
| "HIDING", |
| "HIDDEN", |
| "UNHIDING" |
| ] |
| }, |
| "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.", |
| "type": "string", |
| "readOnly": true |
| }, |
| "schedulingConfig": { |
| "description": "The scheduling options for this node.", |
| "$ref": "SchedulingConfig" |
| }, |
| "name": { |
| "description": "Output only. Immutable. The name of the TPU", |
| "type": "string", |
| "readOnly": true |
| }, |
| "health": { |
| "type": "string", |
| "enumDescriptions": [ |
| "Health status is unknown: not initialized or failed to retrieve.", |
| "The resource is healthy.", |
| "The resource is unhealthy.", |
| "The resource is unresponsive.", |
| "The in-guest ML stack is unhealthy.", |
| "The node is under maintenance/priority boost caused rescheduling and will resume running once rescheduled." |
| ], |
| "description": "The health status of the TPU node.", |
| "enum": [ |
| "HEALTH_UNSPECIFIED", |
| "HEALTHY", |
| "DEPRECATED_UNHEALTHY", |
| "TIMEOUT", |
| "UNHEALTHY_TENSORFLOW", |
| "UNHEALTHY_MAINTENANCE" |
| ] |
| }, |
| "tensorflowVersion": { |
| "type": "string", |
| "description": "Required. The version of Tensorflow running in the Node." |
| }, |
| "networkEndpoints": { |
| "items": { |
| "$ref": "NetworkEndpoint" |
| }, |
| "description": "Output only. The network endpoints where TPU workers can be accessed and sent work. It is recommended that Tensorflow clients of the node reach out to the 0th entry in this map first.", |
| "type": "array", |
| "readOnly": true |
| }, |
| "createTime": { |
| "description": "Output only. The time when the node was created.", |
| "type": "string", |
| "format": "google-datetime", |
| "readOnly": true |
| }, |
| "description": { |
| "type": "string", |
| "description": "The user-supplied description of the TPU. Maximum of 512 characters." |
| }, |
| "cidrBlock": { |
| "type": "string", |
| "description": "The CIDR block that the TPU node will use when selecting an IP address. This CIDR block must be a /29 block; the Compute Engine networks API forbids a smaller block, and using a larger block would be wasteful (a node can only consume one IP address). Errors will occur if the CIDR block has already been used for a currently existing TPU node, the CIDR block conflicts with any subnetworks in the user's provided network, or the provided network is peered with another network that is using that CIDR block." |
| } |
| } |
| }, |
| "OperationMetadata": { |
| "id": "OperationMetadata", |
| "properties": { |
| "verb": { |
| "description": "[Output only] Name of the verb executed by the operation.", |
| "type": "string" |
| }, |
| "cancelRequested": { |
| "type": "boolean", |
| "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`." |
| }, |
| "target": { |
| "description": "[Output only] Server-defined resource path for the target of the operation.", |
| "type": "string" |
| }, |
| "statusDetail": { |
| "description": "[Output only] Human-readable status of the operation, if any.", |
| "type": "string" |
| }, |
| "createTime": { |
| "type": "string", |
| "format": "google-datetime", |
| "description": "[Output only] The time the operation was created." |
| }, |
| "apiVersion": { |
| "type": "string", |
| "description": "[Output only] API version used to start the operation." |
| }, |
| "endTime": { |
| "type": "string", |
| "description": "[Output only] The time the operation finished running.", |
| "format": "google-datetime" |
| } |
| }, |
| "type": "object", |
| "description": "Represents the metadata of the long-running operation." |
| }, |
| "Operation": { |
| "type": "object", |
| "description": "This resource represents a long-running operation that is the result of a network API call.", |
| "properties": { |
| "metadata": { |
| "type": "object", |
| "description": "Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.", |
| "additionalProperties": { |
| "description": "Properties of the object. Contains field @type with type URL.", |
| "type": "any" |
| } |
| }, |
| "done": { |
| "type": "boolean", |
| "description": "If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available." |
| }, |
| "response": { |
| "additionalProperties": { |
| "type": "any", |
| "description": "Properties of the object. Contains field @type with type URL." |
| }, |
| "description": "The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.", |
| "type": "object" |
| }, |
| "name": { |
| "description": "The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.", |
| "type": "string" |
| }, |
| "error": { |
| "$ref": "Status", |
| "description": "The error result of the operation in case of failure or cancellation." |
| } |
| }, |
| "id": "Operation" |
| }, |
| "AcceleratorType": { |
| "id": "AcceleratorType", |
| "type": "object", |
| "description": "A accelerator type that a Node can be configured with.", |
| "properties": { |
| "name": { |
| "description": "The resource name.", |
| "type": "string" |
| }, |
| "type": { |
| "type": "string", |
| "description": "the accelerator type." |
| } |
| } |
| }, |
| "ListAcceleratorTypesResponse": { |
| "description": "Response for ListAcceleratorTypes.", |
| "properties": { |
| "acceleratorTypes": { |
| "type": "array", |
| "items": { |
| "$ref": "AcceleratorType" |
| }, |
| "description": "The listed nodes." |
| }, |
| "nextPageToken": { |
| "type": "string", |
| "description": "The next page token or empty if none." |
| }, |
| "unreachable": { |
| "description": "Locations that could not be reached.", |
| "type": "array", |
| "items": { |
| "type": "string" |
| } |
| } |
| }, |
| "id": "ListAcceleratorTypesResponse", |
| "type": "object" |
| }, |
| "StartNodeRequest": { |
| "id": "StartNodeRequest", |
| "type": "object", |
| "description": "Request for StartNode.", |
| "properties": {} |
| }, |
| "ReimageNodeRequest": { |
| "type": "object", |
| "properties": { |
| "tensorflowVersion": { |
| "description": "The version for reimage to create.", |
| "type": "string" |
| } |
| }, |
| "id": "ReimageNodeRequest", |
| "description": "Request for ReimageNode." |
| }, |
| "ListOperationsResponse": { |
| "description": "The response message for Operations.ListOperations.", |
| "id": "ListOperationsResponse", |
| "properties": { |
| "operations": { |
| "type": "array", |
| "description": "A list of operations that matches the specified filter in the request.", |
| "items": { |
| "$ref": "Operation" |
| } |
| }, |
| "nextPageToken": { |
| "description": "The standard List next-page token.", |
| "type": "string" |
| } |
| }, |
| "type": "object" |
| }, |
| "Symptom": { |
| "type": "object", |
| "properties": { |
| "createTime": { |
| "type": "string", |
| "format": "google-datetime", |
| "description": "Timestamp when the Symptom is created." |
| }, |
| "workerId": { |
| "type": "string", |
| "description": "A string used to uniquely distinguish a worker within a TPU node." |
| }, |
| "symptomType": { |
| "description": "Type of the Symptom.", |
| "enum": [ |
| "SYMPTOM_TYPE_UNSPECIFIED", |
| "LOW_MEMORY", |
| "OUT_OF_MEMORY", |
| "EXECUTE_TIMED_OUT", |
| "MESH_BUILD_FAIL", |
| "HBM_OUT_OF_MEMORY" |
| ], |
| "type": "string", |
| "enumDescriptions": [ |
| "Unspecified symptom.", |
| "TPU VM memory is low.", |
| "TPU runtime is out of memory.", |
| "TPU runtime execution has timed out.", |
| "TPU runtime fails to construct a mesh that recognizes each TPU device's neighbors.", |
| "TPU HBM is out of memory." |
| ] |
| }, |
| "details": { |
| "description": "Detailed information of the current Symptom.", |
| "type": "string" |
| } |
| }, |
| "id": "Symptom", |
| "description": "A Symptom instance." |
| }, |
| "StopNodeRequest": { |
| "properties": {}, |
| "type": "object", |
| "id": "StopNodeRequest", |
| "description": "Request for StopNode." |
| }, |
| "SchedulingConfig": { |
| "id": "SchedulingConfig", |
| "type": "object", |
| "properties": { |
| "preemptible": { |
| "description": "Defines whether the node is preemptible.", |
| "type": "boolean" |
| }, |
| "reserved": { |
| "type": "boolean", |
| "description": "Whether the node is created under a reservation." |
| } |
| }, |
| "description": "Sets the scheduling options for this node." |
| }, |
| "ListNodesResponse": { |
| "description": "Response for ListNodes.", |
| "id": "ListNodesResponse", |
| "type": "object", |
| "properties": { |
| "unreachable": { |
| "type": "array", |
| "description": "Locations that could not be reached.", |
| "items": { |
| "type": "string" |
| } |
| }, |
| "nodes": { |
| "description": "The listed nodes.", |
| "type": "array", |
| "items": { |
| "$ref": "Node" |
| } |
| }, |
| "nextPageToken": { |
| "description": "The next page token or empty if none.", |
| "type": "string" |
| } |
| } |
| } |
| }, |
| "fullyEncodeReservedExpansion": true, |
| "protocol": "rest", |
| "resources": { |
| "projects": { |
| "resources": { |
| "locations": { |
| "resources": { |
| "operations": { |
| "methods": { |
| "delete": { |
| "response": { |
| "$ref": "Empty" |
| }, |
| "parameters": { |
| "name": { |
| "type": "string", |
| "location": "path", |
| "description": "The name of the operation resource to be deleted.", |
| "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", |
| "required": true |
| } |
| }, |
| "scopes": [ |
| "https://www.googleapis.com/auth/cloud-platform" |
| ], |
| "id": "tpu.projects.locations.operations.delete", |
| "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", |
| "path": "v1alpha1/{+name}", |
| "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", |
| "parameterOrder": [ |
| "name" |
| ], |
| "httpMethod": "DELETE" |
| }, |
| "list": { |
| "scopes": [ |
| "https://www.googleapis.com/auth/cloud-platform" |
| ], |
| "response": { |
| "$ref": "ListOperationsResponse" |
| }, |
| "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/operations", |
| "httpMethod": "GET", |
| "parameterOrder": [ |
| "name" |
| ], |
| "id": "tpu.projects.locations.operations.list", |
| "parameters": { |
| "pageToken": { |
| "location": "query", |
| "type": "string", |
| "description": "The standard list page token." |
| }, |
| "filter": { |
| "description": "The standard list filter.", |
| "location": "query", |
| "type": "string" |
| }, |
| "pageSize": { |
| "format": "int32", |
| "description": "The standard list page size.", |
| "location": "query", |
| "type": "integer" |
| }, |
| "name": { |
| "description": "The name of the operation's parent resource.", |
| "required": true, |
| "location": "path", |
| "pattern": "^projects/[^/]+/locations/[^/]+$", |
| "type": "string" |
| } |
| }, |
| "path": "v1alpha1/{+name}/operations", |
| "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id." |
| }, |
| "cancel": { |
| "id": "tpu.projects.locations.operations.cancel", |
| "parameters": { |
| "name": { |
| "type": "string", |
| "description": "The name of the operation resource to be cancelled.", |
| "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", |
| "location": "path", |
| "required": true |
| } |
| }, |
| "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel", |
| "response": { |
| "$ref": "Empty" |
| }, |
| "path": "v1alpha1/{+name}:cancel", |
| "httpMethod": "POST", |
| "scopes": [ |
| "https://www.googleapis.com/auth/cloud-platform" |
| ], |
| "parameterOrder": [ |
| "name" |
| ], |
| "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`." |
| }, |
| "get": { |
| "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", |
| "id": "tpu.projects.locations.operations.get", |
| "response": { |
| "$ref": "Operation" |
| }, |
| "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", |
| "parameters": { |
| "name": { |
| "description": "The name of the operation resource.", |
| "type": "string", |
| "required": true, |
| "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", |
| "location": "path" |
| } |
| }, |
| "path": "v1alpha1/{+name}", |
| "parameterOrder": [ |
| "name" |
| ], |
| "scopes": [ |
| "https://www.googleapis.com/auth/cloud-platform" |
| ], |
| "httpMethod": "GET" |
| } |
| } |
| }, |
| "tensorflowVersions": { |
| "methods": { |
| "list": { |
| "response": { |
| "$ref": "ListTensorFlowVersionsResponse" |
| }, |
| "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/tensorflowVersions", |
| "id": "tpu.projects.locations.tensorflowVersions.list", |
| "parameterOrder": [ |
| "parent" |
| ], |
| "path": "v1alpha1/{+parent}/tensorflowVersions", |
| "scopes": [ |
| "https://www.googleapis.com/auth/cloud-platform" |
| ], |
| "description": "Lists TensorFlow versions supported by this API.", |
| "httpMethod": "GET", |
| "parameters": { |
| "orderBy": { |
| "type": "string", |
| "description": "Sort results.", |
| "location": "query" |
| }, |
| "parent": { |
| "location": "path", |
| "pattern": "^projects/[^/]+/locations/[^/]+$", |
| "description": "Required. The parent resource name.", |
| "required": true, |
| "type": "string" |
| }, |
| "pageSize": { |
| "type": "integer", |
| "format": "int32", |
| "description": "The maximum number of items to return.", |
| "location": "query" |
| }, |
| "filter": { |
| "description": "List filter.", |
| "type": "string", |
| "location": "query" |
| }, |
| "pageToken": { |
| "location": "query", |
| "description": "The next_page_token value returned from a previous List request, if any.", |
| "type": "string" |
| } |
| } |
| }, |
| "get": { |
| "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/tensorflowVersions/{tensorflowVersionsId}", |
| "httpMethod": "GET", |
| "scopes": [ |
| "https://www.googleapis.com/auth/cloud-platform" |
| ], |
| "id": "tpu.projects.locations.tensorflowVersions.get", |
| "response": { |
| "$ref": "TensorFlowVersion" |
| }, |
| "description": "Gets TensorFlow Version.", |
| "path": "v1alpha1/{+name}", |
| "parameterOrder": [ |
| "name" |
| ], |
| "parameters": { |
| "name": { |
| "type": "string", |
| "pattern": "^projects/[^/]+/locations/[^/]+/tensorflowVersions/[^/]+$", |
| "required": true, |
| "location": "path", |
| "description": "Required. The resource name." |
| } |
| } |
| } |
| } |
| }, |
| "nodes": { |
| "methods": { |
| "stop": { |
| "httpMethod": "POST", |
| "description": "Stops a node.", |
| "path": "v1alpha1/{+name}:stop", |
| "request": { |
| "$ref": "StopNodeRequest" |
| }, |
| "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/nodes/{nodesId}:stop", |
| "parameters": { |
| "name": { |
| "pattern": "^projects/[^/]+/locations/[^/]+/nodes/[^/]+$", |
| "description": "The resource name.", |
| "location": "path", |
| "type": "string", |
| "required": true |
| } |
| }, |
| "response": { |
| "$ref": "Operation" |
| }, |
| "id": "tpu.projects.locations.nodes.stop", |
| "scopes": [ |
| "https://www.googleapis.com/auth/cloud-platform" |
| ], |
| "parameterOrder": [ |
| "name" |
| ] |
| }, |
| "list": { |
| "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/nodes", |
| "response": { |
| "$ref": "ListNodesResponse" |
| }, |
| "httpMethod": "GET", |
| "parameters": { |
| "pageToken": { |
| "description": "The next_page_token value returned from a previous List request, if any.", |
| "type": "string", |
| "location": "query" |
| }, |
| "pageSize": { |
| "description": "The maximum number of items to return.", |
| "location": "query", |
| "type": "integer", |
| "format": "int32" |
| }, |
| "parent": { |
| "required": true, |
| "description": "Required. The parent resource name.", |
| "type": "string", |
| "location": "path", |
| "pattern": "^projects/[^/]+/locations/[^/]+$" |
| } |
| }, |
| "parameterOrder": [ |
| "parent" |
| ], |
| "path": "v1alpha1/{+parent}/nodes", |
| "description": "Lists nodes.", |
| "scopes": [ |
| "https://www.googleapis.com/auth/cloud-platform" |
| ], |
| "id": "tpu.projects.locations.nodes.list" |
| }, |
| "start": { |
| "parameterOrder": [ |
| "name" |
| ], |
| "request": { |
| "$ref": "StartNodeRequest" |
| }, |
| "httpMethod": "POST", |
| "parameters": { |
| "name": { |
| "required": true, |
| "description": "The resource name.", |
| "pattern": "^projects/[^/]+/locations/[^/]+/nodes/[^/]+$", |
| "location": "path", |
| "type": "string" |
| } |
| }, |
| "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/nodes/{nodesId}:start", |
| "scopes": [ |
| "https://www.googleapis.com/auth/cloud-platform" |
| ], |
| "description": "Starts a node.", |
| "path": "v1alpha1/{+name}:start", |
| "id": "tpu.projects.locations.nodes.start", |
| "response": { |
| "$ref": "Operation" |
| } |
| }, |
| "reimage": { |
| "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/nodes/{nodesId}:reimage", |
| "description": "Reimages a node's OS.", |
| "path": "v1alpha1/{+name}:reimage", |
| "parameterOrder": [ |
| "name" |
| ], |
| "scopes": [ |
| "https://www.googleapis.com/auth/cloud-platform" |
| ], |
| "parameters": { |
| "name": { |
| "description": "The resource name.", |
| "location": "path", |
| "type": "string", |
| "pattern": "^projects/[^/]+/locations/[^/]+/nodes/[^/]+$", |
| "required": true |
| } |
| }, |
| "id": "tpu.projects.locations.nodes.reimage", |
| "httpMethod": "POST", |
| "response": { |
| "$ref": "Operation" |
| }, |
| "request": { |
| "$ref": "ReimageNodeRequest" |
| } |
| }, |
| "get": { |
| "id": "tpu.projects.locations.nodes.get", |
| "path": "v1alpha1/{+name}", |
| "parameterOrder": [ |
| "name" |
| ], |
| "httpMethod": "GET", |
| "description": "Gets the details of a node.", |
| "scopes": [ |
| "https://www.googleapis.com/auth/cloud-platform" |
| ], |
| "response": { |
| "$ref": "Node" |
| }, |
| "parameters": { |
| "name": { |
| "required": true, |
| "location": "path", |
| "description": "Required. The resource name.", |
| "pattern": "^projects/[^/]+/locations/[^/]+/nodes/[^/]+$", |
| "type": "string" |
| } |
| }, |
| "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/nodes/{nodesId}" |
| }, |
| "create": { |
| "scopes": [ |
| "https://www.googleapis.com/auth/cloud-platform" |
| ], |
| "httpMethod": "POST", |
| "id": "tpu.projects.locations.nodes.create", |
| "request": { |
| "$ref": "Node" |
| }, |
| "path": "v1alpha1/{+parent}/nodes", |
| "parameterOrder": [ |
| "parent" |
| ], |
| "parameters": { |
| "nodeId": { |
| "description": "The unqualified resource name.", |
| "location": "query", |
| "type": "string" |
| }, |
| "parent": { |
| "description": "Required. The parent resource name.", |
| "pattern": "^projects/[^/]+/locations/[^/]+$", |
| "type": "string", |
| "location": "path", |
| "required": true |
| } |
| }, |
| "response": { |
| "$ref": "Operation" |
| }, |
| "description": "Creates a node.", |
| "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/nodes" |
| }, |
| "delete": { |
| "parameterOrder": [ |
| "name" |
| ], |
| "description": "Deletes a node.", |
| "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/nodes/{nodesId}", |
| "id": "tpu.projects.locations.nodes.delete", |
| "parameters": { |
| "name": { |
| "type": "string", |
| "description": "Required. The resource name.", |
| "pattern": "^projects/[^/]+/locations/[^/]+/nodes/[^/]+$", |
| "location": "path", |
| "required": true |
| } |
| }, |
| "path": "v1alpha1/{+name}", |
| "scopes": [ |
| "https://www.googleapis.com/auth/cloud-platform" |
| ], |
| "httpMethod": "DELETE", |
| "response": { |
| "$ref": "Operation" |
| } |
| } |
| } |
| }, |
| "acceleratorTypes": { |
| "methods": { |
| "get": { |
| "parameterOrder": [ |
| "name" |
| ], |
| "id": "tpu.projects.locations.acceleratorTypes.get", |
| "response": { |
| "$ref": "AcceleratorType" |
| }, |
| "parameters": { |
| "name": { |
| "description": "Required. The resource name.", |
| "pattern": "^projects/[^/]+/locations/[^/]+/acceleratorTypes/[^/]+$", |
| "location": "path", |
| "required": true, |
| "type": "string" |
| } |
| }, |
| "path": "v1alpha1/{+name}", |
| "httpMethod": "GET", |
| "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/acceleratorTypes/{acceleratorTypesId}", |
| "description": "Gets AcceleratorType.", |
| "scopes": [ |
| "https://www.googleapis.com/auth/cloud-platform" |
| ] |
| }, |
| "list": { |
| "scopes": [ |
| "https://www.googleapis.com/auth/cloud-platform" |
| ], |
| "parameters": { |
| "pageToken": { |
| "description": "The next_page_token value returned from a previous List request, if any.", |
| "location": "query", |
| "type": "string" |
| }, |
| "pageSize": { |
| "type": "integer", |
| "location": "query", |
| "format": "int32", |
| "description": "The maximum number of items to return." |
| }, |
| "orderBy": { |
| "type": "string", |
| "location": "query", |
| "description": "Sort results." |
| }, |
| "filter": { |
| "type": "string", |
| "location": "query", |
| "description": "List filter." |
| }, |
| "parent": { |
| "description": "Required. The parent resource name.", |
| "location": "path", |
| "required": true, |
| "type": "string", |
| "pattern": "^projects/[^/]+/locations/[^/]+$" |
| } |
| }, |
| "path": "v1alpha1/{+parent}/acceleratorTypes", |
| "id": "tpu.projects.locations.acceleratorTypes.list", |
| "description": "Lists accelerator types supported by this API.", |
| "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/acceleratorTypes", |
| "parameterOrder": [ |
| "parent" |
| ], |
| "response": { |
| "$ref": "ListAcceleratorTypesResponse" |
| }, |
| "httpMethod": "GET" |
| } |
| } |
| } |
| }, |
| "methods": { |
| "list": { |
| "response": { |
| "$ref": "ListLocationsResponse" |
| }, |
| "description": "Lists information about the supported locations for this service.", |
| "flatPath": "v1alpha1/projects/{projectsId}/locations", |
| "httpMethod": "GET", |
| "parameterOrder": [ |
| "name" |
| ], |
| "id": "tpu.projects.locations.list", |
| "scopes": [ |
| "https://www.googleapis.com/auth/cloud-platform" |
| ], |
| "parameters": { |
| "pageSize": { |
| "format": "int32", |
| "type": "integer", |
| "description": "The standard list page size.", |
| "location": "query" |
| }, |
| "name": { |
| "type": "string", |
| "location": "path", |
| "required": true, |
| "description": "The resource that owns the locations collection, if applicable.", |
| "pattern": "^projects/[^/]+$" |
| }, |
| "filter": { |
| "location": "query", |
| "description": "The standard list filter.", |
| "type": "string" |
| }, |
| "pageToken": { |
| "location": "query", |
| "description": "The standard list page token.", |
| "type": "string" |
| } |
| }, |
| "path": "v1alpha1/{+name}/locations" |
| }, |
| "get": { |
| "description": "Gets information about a location.", |
| "httpMethod": "GET", |
| "scopes": [ |
| "https://www.googleapis.com/auth/cloud-platform" |
| ], |
| "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}", |
| "parameters": { |
| "name": { |
| "required": true, |
| "location": "path", |
| "pattern": "^projects/[^/]+/locations/[^/]+$", |
| "type": "string", |
| "description": "Resource name for the location." |
| } |
| }, |
| "id": "tpu.projects.locations.get", |
| "parameterOrder": [ |
| "name" |
| ], |
| "response": { |
| "$ref": "Location" |
| }, |
| "path": "v1alpha1/{+name}" |
| } |
| } |
| } |
| } |
| } |
| }, |
| "auth": { |
| "oauth2": { |
| "scopes": { |
| "https://www.googleapis.com/auth/cloud-platform": { |
| "description": "View and manage your data across Google Cloud Platform services" |
| } |
| } |
| } |
| }, |
| "kind": "discovery#restDescription", |
| "version_module": true, |
| "ownerDomain": "google.com" |
| } |