UNPKG

@google-cloud/tpu

Version:
1,098 lines (1,097 loc) 255 kB
{ "nested": { "google": { "nested": { "cloud": { "nested": { "tpu": { "nested": { "v1": { "options": { "go_package": "cloud.google.com/go/tpu/apiv1/tpupb;tpupb", "java_multiple_files": true, "java_outer_classname": "CloudTpuProto", "java_package": "com.google.cloud.tpu.v1" }, "nested": { "Tpu": { "options": { "(google.api.default_host)": "tpu.googleapis.com", "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform" }, "methods": { "ListNodes": { "requestType": "ListNodesRequest", "responseType": "ListNodesResponse", "options": { "(google.api.http).get": "/v1/{parent=projects/*/locations/*}/nodes", "(google.api.method_signature)": "parent" }, "parsedOptions": [ { "(google.api.http)": { "get": "/v1/{parent=projects/*/locations/*}/nodes" } }, { "(google.api.method_signature)": "parent" } ] }, "GetNode": { "requestType": "GetNodeRequest", "responseType": "Node", "options": { "(google.api.http).get": "/v1/{name=projects/*/locations/*/nodes/*}", "(google.api.method_signature)": "name" }, "parsedOptions": [ { "(google.api.http)": { "get": "/v1/{name=projects/*/locations/*/nodes/*}" } }, { "(google.api.method_signature)": "name" } ] }, "CreateNode": { "requestType": "CreateNodeRequest", "responseType": "google.longrunning.Operation", "options": { "(google.api.http).post": "/v1/{parent=projects/*/locations/*}/nodes", "(google.api.http).body": "node", "(google.api.method_signature)": "parent,node,node_id", "(google.longrunning.operation_info).response_type": "Node", "(google.longrunning.operation_info).metadata_type": "OperationMetadata" }, "parsedOptions": [ { "(google.api.http)": { "post": "/v1/{parent=projects/*/locations/*}/nodes", "body": "node" } }, { "(google.api.method_signature)": "parent,node,node_id" }, { "(google.longrunning.operation_info)": { "response_type": "Node", "metadata_type": "OperationMetadata" } } ] }, "DeleteNode": { "requestType": "DeleteNodeRequest", "responseType": "google.longrunning.Operation", "options": { "(google.api.http).delete": "/v1/{name=projects/*/locations/*/nodes/*}", "(google.api.method_signature)": "name", "(google.longrunning.operation_info).response_type": "Node", "(google.longrunning.operation_info).metadata_type": "OperationMetadata" }, "parsedOptions": [ { "(google.api.http)": { "delete": "/v1/{name=projects/*/locations/*/nodes/*}" } }, { "(google.api.method_signature)": "name" }, { "(google.longrunning.operation_info)": { "response_type": "Node", "metadata_type": "OperationMetadata" } } ] }, "ReimageNode": { "requestType": "ReimageNodeRequest", "responseType": "google.longrunning.Operation", "options": { "(google.api.http).post": "/v1/{name=projects/*/locations/*/nodes/*}:reimage", "(google.api.http).body": "*", "(google.longrunning.operation_info).response_type": "Node", "(google.longrunning.operation_info).metadata_type": "OperationMetadata" }, "parsedOptions": [ { "(google.api.http)": { "post": "/v1/{name=projects/*/locations/*/nodes/*}:reimage", "body": "*" } }, { "(google.longrunning.operation_info)": { "response_type": "Node", "metadata_type": "OperationMetadata" } } ] }, "StopNode": { "requestType": "StopNodeRequest", "responseType": "google.longrunning.Operation", "options": { "(google.api.http).post": "/v1/{name=projects/*/locations/*/nodes/*}:stop", "(google.api.http).body": "*", "(google.longrunning.operation_info).response_type": "Node", "(google.longrunning.operation_info).metadata_type": "OperationMetadata" }, "parsedOptions": [ { "(google.api.http)": { "post": "/v1/{name=projects/*/locations/*/nodes/*}:stop", "body": "*" } }, { "(google.longrunning.operation_info)": { "response_type": "Node", "metadata_type": "OperationMetadata" } } ] }, "StartNode": { "requestType": "StartNodeRequest", "responseType": "google.longrunning.Operation", "options": { "(google.api.http).post": "/v1/{name=projects/*/locations/*/nodes/*}:start", "(google.api.http).body": "*", "(google.longrunning.operation_info).response_type": "Node", "(google.longrunning.operation_info).metadata_type": "OperationMetadata" }, "parsedOptions": [ { "(google.api.http)": { "post": "/v1/{name=projects/*/locations/*/nodes/*}:start", "body": "*" } }, { "(google.longrunning.operation_info)": { "response_type": "Node", "metadata_type": "OperationMetadata" } } ] }, "ListTensorFlowVersions": { "requestType": "ListTensorFlowVersionsRequest", "responseType": "ListTensorFlowVersionsResponse", "options": { "(google.api.http).get": "/v1/{parent=projects/*/locations/*}/tensorflowVersions", "(google.api.method_signature)": "parent" }, "parsedOptions": [ { "(google.api.http)": { "get": "/v1/{parent=projects/*/locations/*}/tensorflowVersions" } }, { "(google.api.method_signature)": "parent" } ] }, "GetTensorFlowVersion": { "requestType": "GetTensorFlowVersionRequest", "responseType": "TensorFlowVersion", "options": { "(google.api.http).get": "/v1/{name=projects/*/locations/*/tensorflowVersions/*}", "(google.api.method_signature)": "name" }, "parsedOptions": [ { "(google.api.http)": { "get": "/v1/{name=projects/*/locations/*/tensorflowVersions/*}" } }, { "(google.api.method_signature)": "name" } ] }, "ListAcceleratorTypes": { "requestType": "ListAcceleratorTypesRequest", "responseType": "ListAcceleratorTypesResponse", "options": { "(google.api.http).get": "/v1/{parent=projects/*/locations/*}/acceleratorTypes", "(google.api.method_signature)": "parent" }, "parsedOptions": [ { "(google.api.http)": { "get": "/v1/{parent=projects/*/locations/*}/acceleratorTypes" } }, { "(google.api.method_signature)": "parent" } ] }, "GetAcceleratorType": { "requestType": "GetAcceleratorTypeRequest", "responseType": "AcceleratorType", "options": { "(google.api.http).get": "/v1/{name=projects/*/locations/*/acceleratorTypes/*}", "(google.api.method_signature)": "name" }, "parsedOptions": [ { "(google.api.http)": { "get": "/v1/{name=projects/*/locations/*/acceleratorTypes/*}" } }, { "(google.api.method_signature)": "name" } ] } } }, "SchedulingConfig": { "fields": { "preemptible": { "type": "bool", "id": 1 }, "reserved": { "type": "bool", "id": 2 } } }, "NetworkEndpoint": { "fields": { "ipAddress": { "type": "string", "id": 1 }, "port": { "type": "int32", "id": 2 } } }, "Node": { "options": { "(google.api.resource).type": "tpu.googleapis.com/Node", "(google.api.resource).pattern": "projects/{project}/locations/{location}/nodes/{node}" }, "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } }, "description": { "type": "string", "id": 3 }, "acceleratorType": { "type": "string", "id": 5, "options": { "(google.api.field_behavior)": "REQUIRED" } }, "ipAddress": { "type": "string", "id": 8, "options": { "deprecated": true } }, "port": { "type": "string", "id": 14, "options": { "deprecated": true } }, "state": { "type": "State", "id": 9, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } }, "healthDescription": { "type": "string", "id": 10, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } }, "tensorflowVersion": { "type": "string", "id": 11, "options": { "(google.api.field_behavior)": "REQUIRED" } }, "network": { "type": "string", "id": 12 }, "cidrBlock": { "type": "string", "id": 13 }, "serviceAccount": { "type": "string", "id": 15, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } }, "createTime": { "type": "google.protobuf.Timestamp", "id": 16, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } }, "schedulingConfig": { "type": "SchedulingConfig", "id": 17 }, "networkEndpoints": { "rule": "repeated", "type": "NetworkEndpoint", "id": 21, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } }, "health": { "type": "Health", "id": 22 }, "labels": { "keyType": "string", "type": "string", "id": 24 }, "useServiceNetworking": { "type": "bool", "id": 27 }, "apiVersion": { "type": "ApiVersion", "id": 38, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } }, "symptoms": { "rule": "repeated", "type": "Symptom", "id": 39, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } } }, "nested": { "State": { "values": { "STATE_UNSPECIFIED": 0, "CREATING": 1, "READY": 2, "RESTARTING": 3, "REIMAGING": 4, "DELETING": 5, "REPAIRING": 6, "STOPPED": 8, "STOPPING": 9, "STARTING": 10, "PREEMPTED": 11, "TERMINATED": 12, "HIDING": 13, "HIDDEN": 14, "UNHIDING": 15, "UNKNOWN": 16 } }, "Health": { "values": { "HEALTH_UNSPECIFIED": 0, "HEALTHY": 1, "DEPRECATED_UNHEALTHY": 2, "TIMEOUT": 3, "UNHEALTHY_TENSORFLOW": 4, "UNHEALTHY_MAINTENANCE": 5 } }, "ApiVersion": { "values": { "API_VERSION_UNSPECIFIED": 0, "V1_ALPHA1": 1, "V1": 2, "V2_ALPHA1": 3 } } } }, "ListNodesRequest": { "fields": { "parent": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", "(google.api.resource_reference).child_type": "tpu.googleapis.com/Node" } }, "pageSize": { "type": "int32", "id": 2 }, "pageToken": { "type": "string", "id": 3 } } }, "ListNodesResponse": { "fields": { "nodes": { "rule": "repeated", "type": "Node", "id": 1 }, "nextPageToken": { "type": "string", "id": 2 }, "unreachable": { "rule": "repeated", "type": "string", "id": 3 } } }, "GetNodeRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", "(google.api.resource_reference).type": "tpu.googleapis.com/Node" } } } }, "CreateNodeRequest": { "fields": { "parent": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", "(google.api.resource_reference).child_type": "tpu.googleapis.com/Node" } }, "nodeId": { "type": "string", "id": 2 }, "node": { "type": "Node", "id": 3, "options": { "(google.api.field_behavior)": "REQUIRED" } } } }, "DeleteNodeRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", "(google.api.resource_reference).type": "tpu.googleapis.com/Node" } } } }, "ReimageNodeRequest": { "fields": { "name": { "type": "string", "id": 1 }, "tensorflowVersion": { "type": "string", "id": 2 } } }, "StopNodeRequest": { "fields": { "name": { "type": "string", "id": 1 } } }, "StartNodeRequest": { "fields": { "name": { "type": "string", "id": 1 } } }, "TensorFlowVersion": { "options": { "(google.api.resource).type": "tpu.googleapis.com/TensorFlowVersion", "(google.api.resource).pattern": "projects/{project}/locations/{location}/tensorFlowVersions/{tensor_flow_version}" }, "fields": { "name": { "type": "string", "id": 1 }, "version": { "type": "string", "id": 2 } } }, "GetTensorFlowVersionRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", "(google.api.resource_reference).type": "tpu.googleapis.com/TensorFlowVersion" } } } }, "ListTensorFlowVersionsRequest": { "fields": { "parent": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", "(google.api.resource_reference).type": "tpu.googleapis.com/TensorFlowVersion" } }, "pageSize": { "type": "int32", "id": 2 }, "pageToken": { "type": "string", "id": 3 }, "filter": { "type": "string", "id": 5 }, "orderBy": { "type": "string", "id": 6 } } }, "ListTensorFlowVersionsResponse": { "fields": { "tensorflowVersions": { "rule": "repeated", "type": "TensorFlowVersion", "id": 1 }, "nextPageToken": { "type": "string", "id": 2 }, "unreachable": { "rule": "repeated", "type": "string", "id": 3 } } }, "AcceleratorType": { "options": { "(google.api.resource).type": "tpu.googleapis.com/AcceleratorType", "(google.api.resource).pattern": "projects/{project}/locations/{location}/acceleratorTypes/{accelerator_type}" }, "fields": { "name": { "type": "string", "id": 1 }, "type": { "type": "string", "id": 2 } } }, "GetAcceleratorTypeRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", "(google.api.resource_reference).type": "tpu.googleapis.com/AcceleratorType" } } } }, "ListAcceleratorTypesRequest": { "fields": { "parent": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", "(google.api.resource_reference).type": "tpu.googleapis.com/AcceleratorType" } }, "pageSize": { "type": "int32", "id": 2 }, "pageToken": { "type": "string", "id": 3 }, "filter": { "type": "string", "id": 5 }, "orderBy": { "type": "string", "id": 6 } } }, "ListAcceleratorTypesResponse": { "fields": { "acceleratorTypes": { "rule": "repeated", "type": "AcceleratorType", "id": 1 }, "nextPageToken": { "type": "string", "id": 2 }, "unreachable": { "rule": "repeated", "type": "string", "id": 3 } } }, "OperationMetadata": { "fields": { "createTime": { "type": "google.protobuf.Timestamp", "id": 1 }, "endTime": { "type": "google.protobuf.Timestamp", "id": 2 }, "target": { "type": "string", "id": 3 }, "verb": { "type": "string", "id": 4 }, "statusDetail": { "type": "string", "id": 5 }, "cancelRequested": { "type": "bool", "id": 6 }, "apiVersion": { "type": "string", "id": 7 } } }, "Symptom": { "fields": { "createTime": { "type": "google.protobuf.Timestamp", "id": 1 }, "symptomType": { "type": "SymptomType", "id": 2 }, "details": { "type": "string", "id": 3 }, "workerId": { "type": "string", "id": 4 } }, "nested": { "SymptomType": { "values": { "SYMPTOM_TYPE_UNSPECIFIED": 0, "LOW_MEMORY": 1, "OUT_OF_MEMORY": 2, "EXECUTE_TIMED_OUT": 3, "MESH_BUILD_FAIL": 4, "HBM_OUT_OF_MEMORY": 5, "PROJECT_ABUSE": 6 } } } } } }, "v2": { "options": { "go_package": "cloud.google.com/go/tpu/apiv2/tpupb;tpupb", "java_multiple_files": true, "java_outer_classname": "CloudTpuProto", "java_package": "com.google.cloud.tpu.v2" }, "nested": { "Tpu": { "options": { "(google.api.default_host)": "tpu.googleapis.com", "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform" }, "methods": { "ListNodes": { "requestType": "ListNodesRequest", "responseType": "ListNodesResponse", "options": { "(google.api.http).get": "/v2/{parent=projects/*/locations/*}/nodes", "(google.api.method_signature)": "parent" }, "parsedOptions": [ { "(google.api.http)": { "get": "/v2/{parent=projects/*/locations/*}/nodes" } }, { "(google.api.method_signature)": "parent" } ] }, "GetNode": { "requestType": "GetNodeRequest", "responseType": "Node", "options": { "(google.api.http).get": "/v2/{name=projects/*/locations/*/nodes/*}", "(google.api.method_signature)": "name" }, "parsedOptions": [ { "(google.api.http)": { "get": "/v2/{name=projects/*/locations/*/nodes/*}" } }, { "(google.api.method_signature)": "name" } ] }, "CreateNode": { "requestType": "CreateNodeRequest", "responseType": "google.longrunning.Operation", "options": { "(google.api.http).post": "/v2/{parent=projects/*/locations/*}/nodes", "(google.api.http).body": "node", "(google.api.method_signature)": "parent,node,node_id", "(google.longrunning.operation_info).response_type": "Node", "(google.longrunning.operation_info).metadata_type": "OperationMetadata" }, "parsedOptions": [ { "(google.api.http)": { "post": "/v2/{parent=projects/*/locations/*}/nodes", "body": "node" } }, { "(google.api.method_signature)": "parent,node,node_id" }, { "(google.longrunning.operation_info)": { "response_type": "Node", "metadata_type": "OperationMetadata" } } ] }, "DeleteNode": { "requestType": "DeleteNodeRequest", "responseType": "google.longrunning.Operation", "options": { "(google.api.http).delete": "/v2/{name=projects/*/locations/*/nodes/*}", "(google.api.method_signature)": "name", "(google.longrunning.operation_info).response_type": "google.protobuf.Empty", "(google.longrunning.operation_info).metadata_type": "OperationMetadata" }, "parsedOptions": [ { "(google.api.http)": { "delete": "/v2/{name=projects/*/locations/*/nodes/*}" } }, { "(google.api.method_signature)": "name" }, { "(google.longrunning.operation_info)": { "response_type": "google.protobuf.Empty", "metadata_type": "OperationMetadata" } } ] }, "StopNode": { "requestType": "StopNodeRequest", "responseType": "google.longrunning.Operation", "options": { "(google.api.http).post": "/v2/{name=projects/*/locations/*/nodes/*}:stop", "(google.api.http).body": "*", "(google.longrunning.operation_info).response_type": "Node", "(google.longrunning.operation_info).metadata_type": "OperationMetadata" }, "parsedOptions": [ { "(google.api.http)": { "post": "/v2/{name=projects/*/locations/*/nodes/*}:stop", "body": "*" } }, { "(google.longrunning.operation_info)": { "response_type": "Node", "metadata_type": "OperationMetadata" } } ] }, "StartNode": { "requestType": "StartNodeRequest", "responseType": "google.longrunning.Operation", "options": { "(google.api.http).post": "/v2/{name=projects/*/locations/*/nodes/*}:start", "(google.api.http).body": "*", "(google.longrunning.operation_info).response_type": "Node", "(google.longrunning.operation_info).metadata_type": "OperationMetadata" }, "parsedOptions": [ { "(google.api.http)": { "post": "/v2/{name=projects/*/locations/*/nodes/*}:start", "body": "*" } }, { "(google.longrunning.operation_info)": { "response_type": "Node", "metadata_type": "OperationMetadata" } } ] }, "UpdateNode": { "requestType": "UpdateNodeRequest", "responseType": "google.longrunning.Operation", "options": { "(google.api.http).patch": "/v2/{node.name=projects/*/locations/*/nodes/*}", "(google.api.http).body": "node", "(google.api.method_signature)": "node,update_mask", "(google.longrunning.operation_info).response_type": "Node", "(google.longrunning.operation_info).metadata_type": "OperationMetadata" }, "parsedOptions": [ { "(google.api.http)": { "patch": "/v2/{node.name=projects/*/locations/*/nodes/*}", "body": "node" } }, { "(google.api.method_signature)": "node,update_mask" }, { "(google.longrunning.operation_info)": { "response_type": "Node", "metadata_type": "OperationMetadata" } } ] }, "ListQueuedResources": { "requestType": "ListQueuedResourcesRequest", "responseType": "ListQueuedResourcesResponse", "options": { "(google.api.http).get": "/v2/{parent=projects/*/locations/*}/queuedResources", "(google.api.method_signature)": "parent" }, "parsedOptions": [ { "(google.api.http)": { "get": "/v2/{parent=projects/*/locations/*}/queuedResources" } }, { "(google.api.method_signature)": "parent" } ] }, "GetQueuedResource": { "requestType": "GetQueuedResourceRequest", "responseType": "QueuedResource", "options": { "(google.api.http).get": "/v2/{name=projects/*/locations/*/queuedResources/*}", "(google.api.method_signature)": "name" }, "parsedOptions": [ { "(google.api.http)": { "get": "/v2/{name=projects/*/locations/*/queuedResources/*}" } }, { "(google.api.method_signature)": "name" } ] }, "CreateQueuedResource": { "requestType": "CreateQueuedResourceRequest", "responseType": "google.longrunning.Operation", "options": { "(google.api.http).post": "/v2/{parent=projects/*/locations/*}/queuedResources", "(google.api.http).body": "queued_resource", "(google.api.method_signature)": "parent,queued_resource,queued_resource_id", "(google.longrunning.operation_info).response_type": "QueuedResource", "(google.longrunning.operation_info).metadata_type": "OperationMetadata" }, "parsedOptions": [ { "(google.api.http)": { "post": "/v2/{parent=projects/*/locations/*}/queuedResources", "body": "queued_resource" } }, { "(google.api.method_signature)": "parent,queued_resource,queued_resource_id" }, { "(google.longrunning.operation_info)": { "response_type": "QueuedResource", "metadata_type": "OperationMetadata" } } ] }, "DeleteQueuedResource": { "requestType": "DeleteQueuedResourceRequest", "responseType": "google.longrunning.Operation", "options": { "(google.api.http).delete": "/v2/{name=projects/*/locations/*/queuedResources/*}", "(google.api.method_signature)": "name", "(google.longrunning.operation_info).response_type": "google.protobuf.Empty", "(google.longrunning.operation_info).metadata_type": "OperationMetadata" }, "parsedOptions": [ { "(google.api.http)": { "delete": "/v2/{name=projects/*/locations/*/queuedResources/*}" } }, { "(google.api.method_signature)": "name" }, { "(google.longrunning.operation_info)": { "response_type": "google.protobuf.Empty", "metadata_type": "OperationMetadata" } } ] }, "ResetQueuedResource": { "requestType": "ResetQueuedResourceRequest", "responseType": "google.longrunning.Operation", "options": { "(google.api.http).post": "/v2/{name=projects/*/locations/*/queuedResources/*}:reset", "(google.api.http).body": "*", "(google.api.method_signature)": "name", "(google.longrunning.operation_info).response_type": "QueuedResource", "(google.longrunning.operation_info).metadata_type": "OperationMetadata" }, "parsedOptions": [ { "(google.api.http)": { "post": "/v2/{name=projects/*/locations/*/queuedResources/*}:reset", "body": "*" } }, { "(google.api.method_signature)": "name" }, { "(google.longrunning.operation_info)": { "response_type": "QueuedResource", "metadata_type": "OperationMetadata" } } ] }, "GenerateServiceIdentity": { "requestType": "GenerateServiceIdentityRequest", "responseType": "GenerateServiceIdentityResponse", "options": { "(google.api.http).post": "/v2/{parent=projects/*/locations/*}:generateServiceIdentity", "(google.api.http).body": "*" }, "parsedOptions": [ { "(google.api.http)": { "post": "/v2/{parent=projects/*/locations/*}:generateServiceIdentity", "body": "*" } } ] }, "ListAcceleratorTypes": { "requestType": "ListAcceleratorTypesRequest", "responseType": "ListAcceleratorTypesResponse", "options": { "(google.api.http).get": "/v2/{parent=projects/*/locations/*}/acceleratorTypes", "(google.api.method_signature)": "parent" }, "parsedOptions": [ { "(google.api.http)": {