Summary of entries of Methods for tpu.
google.cloud.tpu_v1.services.tpu.TpuAsyncClient
TpuAsyncClient(*, credentials: typing.Optional[google.auth.credentials.Credentials] = None, transport: typing.Optional[typing.Union[str, google.cloud.tpu_v1.services.tpu.transports.base.TpuTransport, typing.Callable[[...], google.cloud.tpu_v1.services.tpu.transports.base.TpuTransport]]] = 'grpc_asyncio', client_options: typing.Optional[google.api_core.client_options.ClientOptions] = None, client_info: google.api_core.gapic_v1.client_info.ClientInfo =
Instantiates the tpu async client.
google.cloud.tpu_v1.services.tpu.TpuAsyncClient.accelerator_type_path
accelerator_type_path(project: str, location: str, accelerator_type: str) -> str
Returns a fully-qualified accelerator_type string.
See more: google.cloud.tpu_v1.services.tpu.TpuAsyncClient.accelerator_type_path
google.cloud.tpu_v1.services.tpu.TpuAsyncClient.cancel_operation
cancel_operation(
request: typing.Optional[
google.longrunning.operations_pb2.CancelOperationRequest
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> None
Starts asynchronous cancellation on a long-running operation.
See more: google.cloud.tpu_v1.services.tpu.TpuAsyncClient.cancel_operation
google.cloud.tpu_v1.services.tpu.TpuAsyncClient.common_billing_account_path
common_billing_account_path(billing_account: str) -> str
Returns a fully-qualified billing_account string.
See more: google.cloud.tpu_v1.services.tpu.TpuAsyncClient.common_billing_account_path
google.cloud.tpu_v1.services.tpu.TpuAsyncClient.common_folder_path
common_folder_path(folder: str) -> str
Returns a fully-qualified folder string.
See more: google.cloud.tpu_v1.services.tpu.TpuAsyncClient.common_folder_path
google.cloud.tpu_v1.services.tpu.TpuAsyncClient.common_location_path
common_location_path(project: str, location: str) -> str
Returns a fully-qualified location string.
See more: google.cloud.tpu_v1.services.tpu.TpuAsyncClient.common_location_path
google.cloud.tpu_v1.services.tpu.TpuAsyncClient.common_organization_path
common_organization_path(organization: str) -> str
Returns a fully-qualified organization string.
See more: google.cloud.tpu_v1.services.tpu.TpuAsyncClient.common_organization_path
google.cloud.tpu_v1.services.tpu.TpuAsyncClient.common_project_path
common_project_path(project: str) -> str
Returns a fully-qualified project string.
See more: google.cloud.tpu_v1.services.tpu.TpuAsyncClient.common_project_path
google.cloud.tpu_v1.services.tpu.TpuAsyncClient.create_node
create_node(
request: typing.Optional[
typing.Union[google.cloud.tpu_v1.types.cloud_tpu.CreateNodeRequest, dict]
] = None,
*,
parent: typing.Optional[str] = None,
node: typing.Optional[google.cloud.tpu_v1.types.cloud_tpu.Node] = None,
node_id: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.api_core.operation_async.AsyncOperation
Creates a node.
See more: google.cloud.tpu_v1.services.tpu.TpuAsyncClient.create_node
google.cloud.tpu_v1.services.tpu.TpuAsyncClient.delete_node
delete_node(
request: typing.Optional[
typing.Union[google.cloud.tpu_v1.types.cloud_tpu.DeleteNodeRequest, dict]
] = None,
*,
name: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.api_core.operation_async.AsyncOperation
Deletes a node.
See more: google.cloud.tpu_v1.services.tpu.TpuAsyncClient.delete_node
google.cloud.tpu_v1.services.tpu.TpuAsyncClient.delete_operation
delete_operation(
request: typing.Optional[
google.longrunning.operations_pb2.DeleteOperationRequest
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> None
Deletes a long-running operation.
See more: google.cloud.tpu_v1.services.tpu.TpuAsyncClient.delete_operation
google.cloud.tpu_v1.services.tpu.TpuAsyncClient.from_service_account_file
from_service_account_file(filename: str, *args, **kwargs)
Creates an instance of this client using the provided credentials file.
See more: google.cloud.tpu_v1.services.tpu.TpuAsyncClient.from_service_account_file
google.cloud.tpu_v1.services.tpu.TpuAsyncClient.from_service_account_info
from_service_account_info(info: dict, *args, **kwargs)
Creates an instance of this client using the provided credentials info.
See more: google.cloud.tpu_v1.services.tpu.TpuAsyncClient.from_service_account_info
google.cloud.tpu_v1.services.tpu.TpuAsyncClient.from_service_account_json
from_service_account_json(filename: str, *args, **kwargs)
Creates an instance of this client using the provided credentials file.
See more: google.cloud.tpu_v1.services.tpu.TpuAsyncClient.from_service_account_json
google.cloud.tpu_v1.services.tpu.TpuAsyncClient.get_accelerator_type
get_accelerator_type(
request: typing.Optional[
typing.Union[
google.cloud.tpu_v1.types.cloud_tpu.GetAcceleratorTypeRequest, dict
]
] = None,
*,
name: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.cloud.tpu_v1.types.cloud_tpu.AcceleratorType
Gets AcceleratorType.
See more: google.cloud.tpu_v1.services.tpu.TpuAsyncClient.get_accelerator_type
google.cloud.tpu_v1.services.tpu.TpuAsyncClient.get_location
get_location(
request: typing.Optional[
google.cloud.location.locations_pb2.GetLocationRequest
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.cloud.location.locations_pb2.Location
Gets information about a location.
See more: google.cloud.tpu_v1.services.tpu.TpuAsyncClient.get_location
google.cloud.tpu_v1.services.tpu.TpuAsyncClient.get_mtls_endpoint_and_cert_source
get_mtls_endpoint_and_cert_source(
client_options: typing.Optional[
google.api_core.client_options.ClientOptions
] = None,
)
Return the API endpoint and client cert source for mutual TLS.
See more: google.cloud.tpu_v1.services.tpu.TpuAsyncClient.get_mtls_endpoint_and_cert_source
google.cloud.tpu_v1.services.tpu.TpuAsyncClient.get_node
get_node(
request: typing.Optional[
typing.Union[google.cloud.tpu_v1.types.cloud_tpu.GetNodeRequest, dict]
] = None,
*,
name: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.cloud.tpu_v1.types.cloud_tpu.Node
Gets the details of a node.
See more: google.cloud.tpu_v1.services.tpu.TpuAsyncClient.get_node
google.cloud.tpu_v1.services.tpu.TpuAsyncClient.get_operation
get_operation(
request: typing.Optional[
google.longrunning.operations_pb2.GetOperationRequest
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.longrunning.operations_pb2.Operation
Gets the latest state of a long-running operation.
See more: google.cloud.tpu_v1.services.tpu.TpuAsyncClient.get_operation
google.cloud.tpu_v1.services.tpu.TpuAsyncClient.get_tensor_flow_version
get_tensor_flow_version(
request: typing.Optional[
typing.Union[
google.cloud.tpu_v1.types.cloud_tpu.GetTensorFlowVersionRequest, dict
]
] = None,
*,
name: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.cloud.tpu_v1.types.cloud_tpu.TensorFlowVersion
Gets TensorFlow Version.
See more: google.cloud.tpu_v1.services.tpu.TpuAsyncClient.get_tensor_flow_version
google.cloud.tpu_v1.services.tpu.TpuAsyncClient.get_transport_class
get_transport_class() -> (
typing.Type[google.cloud.tpu_v1.services.tpu.transports.base.TpuTransport]
)
Returns an appropriate transport class.
See more: google.cloud.tpu_v1.services.tpu.TpuAsyncClient.get_transport_class
google.cloud.tpu_v1.services.tpu.TpuAsyncClient.list_accelerator_types
list_accelerator_types(
request: typing.Optional[
typing.Union[
google.cloud.tpu_v1.types.cloud_tpu.ListAcceleratorTypesRequest, dict
]
] = None,
*,
parent: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.cloud.tpu_v1.services.tpu.pagers.ListAcceleratorTypesAsyncPager
Lists accelerator types supported by this API.
See more: google.cloud.tpu_v1.services.tpu.TpuAsyncClient.list_accelerator_types
google.cloud.tpu_v1.services.tpu.TpuAsyncClient.list_locations
list_locations(
request: typing.Optional[
google.cloud.location.locations_pb2.ListLocationsRequest
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.cloud.location.locations_pb2.ListLocationsResponse
Lists information about the supported locations for this service.
See more: google.cloud.tpu_v1.services.tpu.TpuAsyncClient.list_locations
google.cloud.tpu_v1.services.tpu.TpuAsyncClient.list_nodes
list_nodes(
request: typing.Optional[
typing.Union[google.cloud.tpu_v1.types.cloud_tpu.ListNodesRequest, dict]
] = None,
*,
parent: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.cloud.tpu_v1.services.tpu.pagers.ListNodesAsyncPager
Lists nodes.
See more: google.cloud.tpu_v1.services.tpu.TpuAsyncClient.list_nodes
google.cloud.tpu_v1.services.tpu.TpuAsyncClient.list_operations
list_operations(
request: typing.Optional[
google.longrunning.operations_pb2.ListOperationsRequest
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.longrunning.operations_pb2.ListOperationsResponse
Lists operations that match the specified filter in the request.
See more: google.cloud.tpu_v1.services.tpu.TpuAsyncClient.list_operations
google.cloud.tpu_v1.services.tpu.TpuAsyncClient.list_tensor_flow_versions
list_tensor_flow_versions(
request: typing.Optional[
typing.Union[
google.cloud.tpu_v1.types.cloud_tpu.ListTensorFlowVersionsRequest, dict
]
] = None,
*,
parent: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.cloud.tpu_v1.services.tpu.pagers.ListTensorFlowVersionsAsyncPager
List TensorFlow versions supported by this API.
See more: google.cloud.tpu_v1.services.tpu.TpuAsyncClient.list_tensor_flow_versions
google.cloud.tpu_v1.services.tpu.TpuAsyncClient.node_path
node_path(project: str, location: str, node: str) -> str
Returns a fully-qualified node string.
See more: google.cloud.tpu_v1.services.tpu.TpuAsyncClient.node_path
google.cloud.tpu_v1.services.tpu.TpuAsyncClient.parse_accelerator_type_path
parse_accelerator_type_path(path: str) -> typing.Dict[str, str]
Parses a accelerator_type path into its component segments.
See more: google.cloud.tpu_v1.services.tpu.TpuAsyncClient.parse_accelerator_type_path
google.cloud.tpu_v1.services.tpu.TpuAsyncClient.parse_common_billing_account_path
parse_common_billing_account_path(path: str) -> typing.Dict[str, str]
Parse a billing_account path into its component segments.
See more: google.cloud.tpu_v1.services.tpu.TpuAsyncClient.parse_common_billing_account_path
google.cloud.tpu_v1.services.tpu.TpuAsyncClient.parse_common_folder_path
parse_common_folder_path(path: str) -> typing.Dict[str, str]
Parse a folder path into its component segments.
See more: google.cloud.tpu_v1.services.tpu.TpuAsyncClient.parse_common_folder_path
google.cloud.tpu_v1.services.tpu.TpuAsyncClient.parse_common_location_path
parse_common_location_path(path: str) -> typing.Dict[str, str]
Parse a location path into its component segments.
See more: google.cloud.tpu_v1.services.tpu.TpuAsyncClient.parse_common_location_path
google.cloud.tpu_v1.services.tpu.TpuAsyncClient.parse_common_organization_path
parse_common_organization_path(path: str) -> typing.Dict[str, str]
Parse a organization path into its component segments.
See more: google.cloud.tpu_v1.services.tpu.TpuAsyncClient.parse_common_organization_path
google.cloud.tpu_v1.services.tpu.TpuAsyncClient.parse_common_project_path
parse_common_project_path(path: str) -> typing.Dict[str, str]
Parse a project path into its component segments.
See more: google.cloud.tpu_v1.services.tpu.TpuAsyncClient.parse_common_project_path
google.cloud.tpu_v1.services.tpu.TpuAsyncClient.parse_node_path
parse_node_path(path: str) -> typing.Dict[str, str]
Parses a node path into its component segments.
See more: google.cloud.tpu_v1.services.tpu.TpuAsyncClient.parse_node_path
google.cloud.tpu_v1.services.tpu.TpuAsyncClient.parse_tensor_flow_version_path
parse_tensor_flow_version_path(path: str) -> typing.Dict[str, str]
Parses a tensor_flow_version path into its component segments.
See more: google.cloud.tpu_v1.services.tpu.TpuAsyncClient.parse_tensor_flow_version_path
google.cloud.tpu_v1.services.tpu.TpuAsyncClient.reimage_node
reimage_node(
request: typing.Optional[
typing.Union[google.cloud.tpu_v1.types.cloud_tpu.ReimageNodeRequest, dict]
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.api_core.operation_async.AsyncOperation
Reimages a node's OS.
See more: google.cloud.tpu_v1.services.tpu.TpuAsyncClient.reimage_node
google.cloud.tpu_v1.services.tpu.TpuAsyncClient.start_node
start_node(
request: typing.Optional[
typing.Union[google.cloud.tpu_v1.types.cloud_tpu.StartNodeRequest, dict]
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.api_core.operation_async.AsyncOperation
Starts a node.
See more: google.cloud.tpu_v1.services.tpu.TpuAsyncClient.start_node
google.cloud.tpu_v1.services.tpu.TpuAsyncClient.stop_node
stop_node(
request: typing.Optional[
typing.Union[google.cloud.tpu_v1.types.cloud_tpu.StopNodeRequest, dict]
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.api_core.operation_async.AsyncOperation
Stops a node, this operation is only available with single TPU nodes.
See more: google.cloud.tpu_v1.services.tpu.TpuAsyncClient.stop_node
google.cloud.tpu_v1.services.tpu.TpuAsyncClient.tensor_flow_version_path
tensor_flow_version_path(
project: str, location: str, tensor_flow_version: str
) -> str
Returns a fully-qualified tensor_flow_version string.
See more: google.cloud.tpu_v1.services.tpu.TpuAsyncClient.tensor_flow_version_path
google.cloud.tpu_v1.services.tpu.TpuClient
TpuClient(*, credentials: typing.Optional[google.auth.credentials.Credentials] = None, transport: typing.Optional[typing.Union[str, google.cloud.tpu_v1.services.tpu.transports.base.TpuTransport, typing.Callable[[...], google.cloud.tpu_v1.services.tpu.transports.base.TpuTransport]]] = None, client_options: typing.Optional[typing.Union[google.api_core.client_options.ClientOptions, dict]] = None, client_info: google.api_core.gapic_v1.client_info.ClientInfo =
Instantiates the tpu client.
google.cloud.tpu_v1.services.tpu.TpuClient.__exit__
__exit__(type, value, traceback)
Releases underlying transport's resources.
google.cloud.tpu_v1.services.tpu.TpuClient.accelerator_type_path
accelerator_type_path(project: str, location: str, accelerator_type: str) -> str
Returns a fully-qualified accelerator_type string.
See more: google.cloud.tpu_v1.services.tpu.TpuClient.accelerator_type_path
google.cloud.tpu_v1.services.tpu.TpuClient.cancel_operation
cancel_operation(
request: typing.Optional[
google.longrunning.operations_pb2.CancelOperationRequest
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> None
Starts asynchronous cancellation on a long-running operation.
See more: google.cloud.tpu_v1.services.tpu.TpuClient.cancel_operation
google.cloud.tpu_v1.services.tpu.TpuClient.common_billing_account_path
common_billing_account_path(billing_account: str) -> str
Returns a fully-qualified billing_account string.
See more: google.cloud.tpu_v1.services.tpu.TpuClient.common_billing_account_path
google.cloud.tpu_v1.services.tpu.TpuClient.common_folder_path
common_folder_path(folder: str) -> str
Returns a fully-qualified folder string.
See more: google.cloud.tpu_v1.services.tpu.TpuClient.common_folder_path
google.cloud.tpu_v1.services.tpu.TpuClient.common_location_path
common_location_path(project: str, location: str) -> str
Returns a fully-qualified location string.
See more: google.cloud.tpu_v1.services.tpu.TpuClient.common_location_path
google.cloud.tpu_v1.services.tpu.TpuClient.common_organization_path
common_organization_path(organization: str) -> str
Returns a fully-qualified organization string.
See more: google.cloud.tpu_v1.services.tpu.TpuClient.common_organization_path
google.cloud.tpu_v1.services.tpu.TpuClient.common_project_path
common_project_path(project: str) -> str
Returns a fully-qualified project string.
See more: google.cloud.tpu_v1.services.tpu.TpuClient.common_project_path
google.cloud.tpu_v1.services.tpu.TpuClient.create_node
create_node(
request: typing.Optional[
typing.Union[google.cloud.tpu_v1.types.cloud_tpu.CreateNodeRequest, dict]
] = None,
*,
parent: typing.Optional[str] = None,
node: typing.Optional[google.cloud.tpu_v1.types.cloud_tpu.Node] = None,
node_id: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.api_core.operation.Operation
Creates a node.
See more: google.cloud.tpu_v1.services.tpu.TpuClient.create_node
google.cloud.tpu_v1.services.tpu.TpuClient.delete_node
delete_node(
request: typing.Optional[
typing.Union[google.cloud.tpu_v1.types.cloud_tpu.DeleteNodeRequest, dict]
] = None,
*,
name: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.api_core.operation.Operation
Deletes a node.
See more: google.cloud.tpu_v1.services.tpu.TpuClient.delete_node
google.cloud.tpu_v1.services.tpu.TpuClient.delete_operation
delete_operation(
request: typing.Optional[
google.longrunning.operations_pb2.DeleteOperationRequest
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> None
Deletes a long-running operation.
See more: google.cloud.tpu_v1.services.tpu.TpuClient.delete_operation
google.cloud.tpu_v1.services.tpu.TpuClient.from_service_account_file
from_service_account_file(filename: str, *args, **kwargs)
Creates an instance of this client using the provided credentials file.
See more: google.cloud.tpu_v1.services.tpu.TpuClient.from_service_account_file
google.cloud.tpu_v1.services.tpu.TpuClient.from_service_account_info
from_service_account_info(info: dict, *args, **kwargs)
Creates an instance of this client using the provided credentials info.
See more: google.cloud.tpu_v1.services.tpu.TpuClient.from_service_account_info
google.cloud.tpu_v1.services.tpu.TpuClient.from_service_account_json
from_service_account_json(filename: str, *args, **kwargs)
Creates an instance of this client using the provided credentials file.
See more: google.cloud.tpu_v1.services.tpu.TpuClient.from_service_account_json
google.cloud.tpu_v1.services.tpu.TpuClient.get_accelerator_type
get_accelerator_type(
request: typing.Optional[
typing.Union[
google.cloud.tpu_v1.types.cloud_tpu.GetAcceleratorTypeRequest, dict
]
] = None,
*,
name: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.cloud.tpu_v1.types.cloud_tpu.AcceleratorType
Gets AcceleratorType.
See more: google.cloud.tpu_v1.services.tpu.TpuClient.get_accelerator_type
google.cloud.tpu_v1.services.tpu.TpuClient.get_location
get_location(
request: typing.Optional[
google.cloud.location.locations_pb2.GetLocationRequest
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.cloud.location.locations_pb2.Location
Gets information about a location.
See more: google.cloud.tpu_v1.services.tpu.TpuClient.get_location
google.cloud.tpu_v1.services.tpu.TpuClient.get_mtls_endpoint_and_cert_source
get_mtls_endpoint_and_cert_source(
client_options: typing.Optional[
google.api_core.client_options.ClientOptions
] = None,
)
Deprecated.
See more: google.cloud.tpu_v1.services.tpu.TpuClient.get_mtls_endpoint_and_cert_source
google.cloud.tpu_v1.services.tpu.TpuClient.get_node
get_node(
request: typing.Optional[
typing.Union[google.cloud.tpu_v1.types.cloud_tpu.GetNodeRequest, dict]
] = None,
*,
name: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.cloud.tpu_v1.types.cloud_tpu.Node
Gets the details of a node.
See more: google.cloud.tpu_v1.services.tpu.TpuClient.get_node
google.cloud.tpu_v1.services.tpu.TpuClient.get_operation
get_operation(
request: typing.Optional[
google.longrunning.operations_pb2.GetOperationRequest
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.longrunning.operations_pb2.Operation
Gets the latest state of a long-running operation.
See more: google.cloud.tpu_v1.services.tpu.TpuClient.get_operation
google.cloud.tpu_v1.services.tpu.TpuClient.get_tensor_flow_version
get_tensor_flow_version(
request: typing.Optional[
typing.Union[
google.cloud.tpu_v1.types.cloud_tpu.GetTensorFlowVersionRequest, dict
]
] = None,
*,
name: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.cloud.tpu_v1.types.cloud_tpu.TensorFlowVersion
Gets TensorFlow Version.
See more: google.cloud.tpu_v1.services.tpu.TpuClient.get_tensor_flow_version
google.cloud.tpu_v1.services.tpu.TpuClient.list_accelerator_types
list_accelerator_types(
request: typing.Optional[
typing.Union[
google.cloud.tpu_v1.types.cloud_tpu.ListAcceleratorTypesRequest, dict
]
] = None,
*,
parent: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.cloud.tpu_v1.services.tpu.pagers.ListAcceleratorTypesPager
Lists accelerator types supported by this API.
See more: google.cloud.tpu_v1.services.tpu.TpuClient.list_accelerator_types
google.cloud.tpu_v1.services.tpu.TpuClient.list_locations
list_locations(
request: typing.Optional[
google.cloud.location.locations_pb2.ListLocationsRequest
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.cloud.location.locations_pb2.ListLocationsResponse
Lists information about the supported locations for this service.
See more: google.cloud.tpu_v1.services.tpu.TpuClient.list_locations
google.cloud.tpu_v1.services.tpu.TpuClient.list_nodes
list_nodes(
request: typing.Optional[
typing.Union[google.cloud.tpu_v1.types.cloud_tpu.ListNodesRequest, dict]
] = None,
*,
parent: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.cloud.tpu_v1.services.tpu.pagers.ListNodesPager
Lists nodes.
See more: google.cloud.tpu_v1.services.tpu.TpuClient.list_nodes
google.cloud.tpu_v1.services.tpu.TpuClient.list_operations
list_operations(
request: typing.Optional[
google.longrunning.operations_pb2.ListOperationsRequest
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.longrunning.operations_pb2.ListOperationsResponse
Lists operations that match the specified filter in the request.
See more: google.cloud.tpu_v1.services.tpu.TpuClient.list_operations
google.cloud.tpu_v1.services.tpu.TpuClient.list_tensor_flow_versions
list_tensor_flow_versions(
request: typing.Optional[
typing.Union[
google.cloud.tpu_v1.types.cloud_tpu.ListTensorFlowVersionsRequest, dict
]
] = None,
*,
parent: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.cloud.tpu_v1.services.tpu.pagers.ListTensorFlowVersionsPager
List TensorFlow versions supported by this API.
See more: google.cloud.tpu_v1.services.tpu.TpuClient.list_tensor_flow_versions
google.cloud.tpu_v1.services.tpu.TpuClient.node_path
node_path(project: str, location: str, node: str) -> str
Returns a fully-qualified node string.
See more: google.cloud.tpu_v1.services.tpu.TpuClient.node_path
google.cloud.tpu_v1.services.tpu.TpuClient.parse_accelerator_type_path
parse_accelerator_type_path(path: str) -> typing.Dict[str, str]
Parses a accelerator_type path into its component segments.
See more: google.cloud.tpu_v1.services.tpu.TpuClient.parse_accelerator_type_path
google.cloud.tpu_v1.services.tpu.TpuClient.parse_common_billing_account_path
parse_common_billing_account_path(path: str) -> typing.Dict[str, str]
Parse a billing_account path into its component segments.
See more: google.cloud.tpu_v1.services.tpu.TpuClient.parse_common_billing_account_path
google.cloud.tpu_v1.services.tpu.TpuClient.parse_common_folder_path
parse_common_folder_path(path: str) -> typing.Dict[str, str]
Parse a folder path into its component segments.
See more: google.cloud.tpu_v1.services.tpu.TpuClient.parse_common_folder_path
google.cloud.tpu_v1.services.tpu.TpuClient.parse_common_location_path
parse_common_location_path(path: str) -> typing.Dict[str, str]
Parse a location path into its component segments.
See more: google.cloud.tpu_v1.services.tpu.TpuClient.parse_common_location_path
google.cloud.tpu_v1.services.tpu.TpuClient.parse_common_organization_path
parse_common_organization_path(path: str) -> typing.Dict[str, str]
Parse a organization path into its component segments.
See more: google.cloud.tpu_v1.services.tpu.TpuClient.parse_common_organization_path
google.cloud.tpu_v1.services.tpu.TpuClient.parse_common_project_path
parse_common_project_path(path: str) -> typing.Dict[str, str]
Parse a project path into its component segments.
See more: google.cloud.tpu_v1.services.tpu.TpuClient.parse_common_project_path
google.cloud.tpu_v1.services.tpu.TpuClient.parse_node_path
parse_node_path(path: str) -> typing.Dict[str, str]
Parses a node path into its component segments.
See more: google.cloud.tpu_v1.services.tpu.TpuClient.parse_node_path
google.cloud.tpu_v1.services.tpu.TpuClient.parse_tensor_flow_version_path
parse_tensor_flow_version_path(path: str) -> typing.Dict[str, str]
Parses a tensor_flow_version path into its component segments.
See more: google.cloud.tpu_v1.services.tpu.TpuClient.parse_tensor_flow_version_path
google.cloud.tpu_v1.services.tpu.TpuClient.reimage_node
reimage_node(
request: typing.Optional[
typing.Union[google.cloud.tpu_v1.types.cloud_tpu.ReimageNodeRequest, dict]
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.api_core.operation.Operation
Reimages a node's OS.
See more: google.cloud.tpu_v1.services.tpu.TpuClient.reimage_node
google.cloud.tpu_v1.services.tpu.TpuClient.start_node
start_node(
request: typing.Optional[
typing.Union[google.cloud.tpu_v1.types.cloud_tpu.StartNodeRequest, dict]
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.api_core.operation.Operation
Starts a node.
See more: google.cloud.tpu_v1.services.tpu.TpuClient.start_node
google.cloud.tpu_v1.services.tpu.TpuClient.stop_node
stop_node(
request: typing.Optional[
typing.Union[google.cloud.tpu_v1.types.cloud_tpu.StopNodeRequest, dict]
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.api_core.operation.Operation
Stops a node, this operation is only available with single TPU nodes.
See more: google.cloud.tpu_v1.services.tpu.TpuClient.stop_node
google.cloud.tpu_v1.services.tpu.TpuClient.tensor_flow_version_path
tensor_flow_version_path(
project: str, location: str, tensor_flow_version: str
) -> str
Returns a fully-qualified tensor_flow_version string.
See more: google.cloud.tpu_v1.services.tpu.TpuClient.tensor_flow_version_path
google.cloud.tpu_v1.services.tpu.pagers.ListAcceleratorTypesAsyncPager
ListAcceleratorTypesAsyncPager(
method: typing.Callable[
[...],
typing.Awaitable[
google.cloud.tpu_v1.types.cloud_tpu.ListAcceleratorTypesResponse
],
],
request: google.cloud.tpu_v1.types.cloud_tpu.ListAcceleratorTypesRequest,
response: google.cloud.tpu_v1.types.cloud_tpu.ListAcceleratorTypesResponse,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
)
Instantiates the pager.
See more: google.cloud.tpu_v1.services.tpu.pagers.ListAcceleratorTypesAsyncPager
google.cloud.tpu_v1.services.tpu.pagers.ListAcceleratorTypesPager
ListAcceleratorTypesPager(
method: typing.Callable[
[...], google.cloud.tpu_v1.types.cloud_tpu.ListAcceleratorTypesResponse
],
request: google.cloud.tpu_v1.types.cloud_tpu.ListAcceleratorTypesRequest,
response: google.cloud.tpu_v1.types.cloud_tpu.ListAcceleratorTypesResponse,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
)
Instantiate the pager.
See more: google.cloud.tpu_v1.services.tpu.pagers.ListAcceleratorTypesPager
google.cloud.tpu_v1.services.tpu.pagers.ListNodesAsyncPager
ListNodesAsyncPager(
method: typing.Callable[
[...], typing.Awaitable[google.cloud.tpu_v1.types.cloud_tpu.ListNodesResponse]
],
request: google.cloud.tpu_v1.types.cloud_tpu.ListNodesRequest,
response: google.cloud.tpu_v1.types.cloud_tpu.ListNodesResponse,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
)
Instantiates the pager.
See more: google.cloud.tpu_v1.services.tpu.pagers.ListNodesAsyncPager
google.cloud.tpu_v1.services.tpu.pagers.ListNodesPager
ListNodesPager(
method: typing.Callable[
[...], google.cloud.tpu_v1.types.cloud_tpu.ListNodesResponse
],
request: google.cloud.tpu_v1.types.cloud_tpu.ListNodesRequest,
response: google.cloud.tpu_v1.types.cloud_tpu.ListNodesResponse,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
)
Instantiate the pager.
See more: google.cloud.tpu_v1.services.tpu.pagers.ListNodesPager
google.cloud.tpu_v1.services.tpu.pagers.ListTensorFlowVersionsAsyncPager
ListTensorFlowVersionsAsyncPager(
method: typing.Callable[
[...],
typing.Awaitable[
google.cloud.tpu_v1.types.cloud_tpu.ListTensorFlowVersionsResponse
],
],
request: google.cloud.tpu_v1.types.cloud_tpu.ListTensorFlowVersionsRequest,
response: google.cloud.tpu_v1.types.cloud_tpu.ListTensorFlowVersionsResponse,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
)
Instantiates the pager.
See more: google.cloud.tpu_v1.services.tpu.pagers.ListTensorFlowVersionsAsyncPager
google.cloud.tpu_v1.services.tpu.pagers.ListTensorFlowVersionsPager
ListTensorFlowVersionsPager(
method: typing.Callable[
[...], google.cloud.tpu_v1.types.cloud_tpu.ListTensorFlowVersionsResponse
],
request: google.cloud.tpu_v1.types.cloud_tpu.ListTensorFlowVersionsRequest,
response: google.cloud.tpu_v1.types.cloud_tpu.ListTensorFlowVersionsResponse,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
)
Instantiate the pager.
See more: google.cloud.tpu_v1.services.tpu.pagers.ListTensorFlowVersionsPager
google.cloud.tpu_v2.services.tpu.TpuAsyncClient
TpuAsyncClient(*, credentials: typing.Optional[google.auth.credentials.Credentials] = None, transport: typing.Optional[typing.Union[str, google.cloud.tpu_v2.services.tpu.transports.base.TpuTransport, typing.Callable[[...], google.cloud.tpu_v2.services.tpu.transports.base.TpuTransport]]] = 'grpc_asyncio', client_options: typing.Optional[google.api_core.client_options.ClientOptions] = None, client_info: google.api_core.gapic_v1.client_info.ClientInfo =
Instantiates the tpu async client.
google.cloud.tpu_v2.services.tpu.TpuAsyncClient.accelerator_type_path
accelerator_type_path(project: str, location: str, accelerator_type: str) -> str
Returns a fully-qualified accelerator_type string.
See more: google.cloud.tpu_v2.services.tpu.TpuAsyncClient.accelerator_type_path
google.cloud.tpu_v2.services.tpu.TpuAsyncClient.cancel_operation
cancel_operation(
request: typing.Optional[
google.longrunning.operations_pb2.CancelOperationRequest
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> None
Starts asynchronous cancellation on a long-running operation.
See more: google.cloud.tpu_v2.services.tpu.TpuAsyncClient.cancel_operation
google.cloud.tpu_v2.services.tpu.TpuAsyncClient.common_billing_account_path
common_billing_account_path(billing_account: str) -> str
Returns a fully-qualified billing_account string.
See more: google.cloud.tpu_v2.services.tpu.TpuAsyncClient.common_billing_account_path
google.cloud.tpu_v2.services.tpu.TpuAsyncClient.common_folder_path
common_folder_path(folder: str) -> str
Returns a fully-qualified folder string.
See more: google.cloud.tpu_v2.services.tpu.TpuAsyncClient.common_folder_path
google.cloud.tpu_v2.services.tpu.TpuAsyncClient.common_location_path
common_location_path(project: str, location: str) -> str
Returns a fully-qualified location string.
See more: google.cloud.tpu_v2.services.tpu.TpuAsyncClient.common_location_path
google.cloud.tpu_v2.services.tpu.TpuAsyncClient.common_organization_path
common_organization_path(organization: str) -> str
Returns a fully-qualified organization string.
See more: google.cloud.tpu_v2.services.tpu.TpuAsyncClient.common_organization_path
google.cloud.tpu_v2.services.tpu.TpuAsyncClient.common_project_path
common_project_path(project: str) -> str
Returns a fully-qualified project string.
See more: google.cloud.tpu_v2.services.tpu.TpuAsyncClient.common_project_path
google.cloud.tpu_v2.services.tpu.TpuAsyncClient.create_node
create_node(
request: typing.Optional[
typing.Union[google.cloud.tpu_v2.types.cloud_tpu.CreateNodeRequest, dict]
] = None,
*,
parent: typing.Optional[str] = None,
node: typing.Optional[google.cloud.tpu_v2.types.cloud_tpu.Node] = None,
node_id: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.api_core.operation_async.AsyncOperation
Creates a node.
See more: google.cloud.tpu_v2.services.tpu.TpuAsyncClient.create_node
google.cloud.tpu_v2.services.tpu.TpuAsyncClient.delete_node
delete_node(
request: typing.Optional[
typing.Union[google.cloud.tpu_v2.types.cloud_tpu.DeleteNodeRequest, dict]
] = None,
*,
name: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.api_core.operation_async.AsyncOperation
Deletes a node.
See more: google.cloud.tpu_v2.services.tpu.TpuAsyncClient.delete_node
google.cloud.tpu_v2.services.tpu.TpuAsyncClient.delete_operation
delete_operation(
request: typing.Optional[
google.longrunning.operations_pb2.DeleteOperationRequest
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> None
Deletes a long-running operation.
See more: google.cloud.tpu_v2.services.tpu.TpuAsyncClient.delete_operation
google.cloud.tpu_v2.services.tpu.TpuAsyncClient.from_service_account_file
from_service_account_file(filename: str, *args, **kwargs)
Creates an instance of this client using the provided credentials file.
See more: google.cloud.tpu_v2.services.tpu.TpuAsyncClient.from_service_account_file
google.cloud.tpu_v2.services.tpu.TpuAsyncClient.from_service_account_info
from_service_account_info(info: dict, *args, **kwargs)
Creates an instance of this client using the provided credentials info.
See more: google.cloud.tpu_v2.services.tpu.TpuAsyncClient.from_service_account_info
google.cloud.tpu_v2.services.tpu.TpuAsyncClient.from_service_account_json
from_service_account_json(filename: str, *args, **kwargs)
Creates an instance of this client using the provided credentials file.
See more: google.cloud.tpu_v2.services.tpu.TpuAsyncClient.from_service_account_json
google.cloud.tpu_v2.services.tpu.TpuAsyncClient.generate_service_identity
generate_service_identity(
request: typing.Optional[
typing.Union[
google.cloud.tpu_v2.types.cloud_tpu.GenerateServiceIdentityRequest, dict
]
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.cloud.tpu_v2.types.cloud_tpu.GenerateServiceIdentityResponse
Generates the Cloud TPU service identity for the project.
See more: google.cloud.tpu_v2.services.tpu.TpuAsyncClient.generate_service_identity
google.cloud.tpu_v2.services.tpu.TpuAsyncClient.get_accelerator_type
get_accelerator_type(
request: typing.Optional[
typing.Union[
google.cloud.tpu_v2.types.cloud_tpu.GetAcceleratorTypeRequest, dict
]
] = None,
*,
name: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.cloud.tpu_v2.types.cloud_tpu.AcceleratorType
Gets AcceleratorType.
See more: google.cloud.tpu_v2.services.tpu.TpuAsyncClient.get_accelerator_type
google.cloud.tpu_v2.services.tpu.TpuAsyncClient.get_guest_attributes
get_guest_attributes(
request: typing.Optional[
typing.Union[
google.cloud.tpu_v2.types.cloud_tpu.GetGuestAttributesRequest, dict
]
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.cloud.tpu_v2.types.cloud_tpu.GetGuestAttributesResponse
Retrieves the guest attributes for the node.
See more: google.cloud.tpu_v2.services.tpu.TpuAsyncClient.get_guest_attributes
google.cloud.tpu_v2.services.tpu.TpuAsyncClient.get_location
get_location(
request: typing.Optional[
google.cloud.location.locations_pb2.GetLocationRequest
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.cloud.location.locations_pb2.Location
Gets information about a location.
See more: google.cloud.tpu_v2.services.tpu.TpuAsyncClient.get_location
google.cloud.tpu_v2.services.tpu.TpuAsyncClient.get_mtls_endpoint_and_cert_source
get_mtls_endpoint_and_cert_source(
client_options: typing.Optional[
google.api_core.client_options.ClientOptions
] = None,
)
Return the API endpoint and client cert source for mutual TLS.
See more: google.cloud.tpu_v2.services.tpu.TpuAsyncClient.get_mtls_endpoint_and_cert_source
google.cloud.tpu_v2.services.tpu.TpuAsyncClient.get_node
get_node(
request: typing.Optional[
typing.Union[google.cloud.tpu_v2.types.cloud_tpu.GetNodeRequest, dict]
] = None,
*,
name: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.cloud.tpu_v2.types.cloud_tpu.Node
Gets the details of a node.
See more: google.cloud.tpu_v2.services.tpu.TpuAsyncClient.get_node
google.cloud.tpu_v2.services.tpu.TpuAsyncClient.get_operation
get_operation(
request: typing.Optional[
google.longrunning.operations_pb2.GetOperationRequest
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.longrunning.operations_pb2.Operation
Gets the latest state of a long-running operation.
See more: google.cloud.tpu_v2.services.tpu.TpuAsyncClient.get_operation
google.cloud.tpu_v2.services.tpu.TpuAsyncClient.get_runtime_version
get_runtime_version(
request: typing.Optional[
typing.Union[google.cloud.tpu_v2.types.cloud_tpu.GetRuntimeVersionRequest, dict]
] = None,
*,
name: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.cloud.tpu_v2.types.cloud_tpu.RuntimeVersion
Gets a runtime version.
See more: google.cloud.tpu_v2.services.tpu.TpuAsyncClient.get_runtime_version
google.cloud.tpu_v2.services.tpu.TpuAsyncClient.get_transport_class
get_transport_class() -> (
typing.Type[google.cloud.tpu_v2.services.tpu.transports.base.TpuTransport]
)
Returns an appropriate transport class.
See more: google.cloud.tpu_v2.services.tpu.TpuAsyncClient.get_transport_class
google.cloud.tpu_v2.services.tpu.TpuAsyncClient.list_accelerator_types
list_accelerator_types(
request: typing.Optional[
typing.Union[
google.cloud.tpu_v2.types.cloud_tpu.ListAcceleratorTypesRequest, dict
]
] = None,
*,
parent: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.cloud.tpu_v2.services.tpu.pagers.ListAcceleratorTypesAsyncPager
Lists accelerator types supported by this API.
See more: google.cloud.tpu_v2.services.tpu.TpuAsyncClient.list_accelerator_types
google.cloud.tpu_v2.services.tpu.TpuAsyncClient.list_locations
list_locations(
request: typing.Optional[
google.cloud.location.locations_pb2.ListLocationsRequest
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.cloud.location.locations_pb2.ListLocationsResponse
Lists information about the supported locations for this service.
See more: google.cloud.tpu_v2.services.tpu.TpuAsyncClient.list_locations
google.cloud.tpu_v2.services.tpu.TpuAsyncClient.list_nodes
list_nodes(
request: typing.Optional[
typing.Union[google.cloud.tpu_v2.types.cloud_tpu.ListNodesRequest, dict]
] = None,
*,
parent: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.cloud.tpu_v2.services.tpu.pagers.ListNodesAsyncPager
Lists nodes.
See more: google.cloud.tpu_v2.services.tpu.TpuAsyncClient.list_nodes
google.cloud.tpu_v2.services.tpu.TpuAsyncClient.list_operations
list_operations(
request: typing.Optional[
google.longrunning.operations_pb2.ListOperationsRequest
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.longrunning.operations_pb2.ListOperationsResponse
Lists operations that match the specified filter in the request.
See more: google.cloud.tpu_v2.services.tpu.TpuAsyncClient.list_operations
google.cloud.tpu_v2.services.tpu.TpuAsyncClient.list_runtime_versions
list_runtime_versions(
request: typing.Optional[
typing.Union[
google.cloud.tpu_v2.types.cloud_tpu.ListRuntimeVersionsRequest, dict
]
] = None,
*,
parent: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.cloud.tpu_v2.services.tpu.pagers.ListRuntimeVersionsAsyncPager
Lists runtime versions supported by this API.
See more: google.cloud.tpu_v2.services.tpu.TpuAsyncClient.list_runtime_versions
google.cloud.tpu_v2.services.tpu.TpuAsyncClient.node_path
node_path(project: str, location: str, node: str) -> str
Returns a fully-qualified node string.
See more: google.cloud.tpu_v2.services.tpu.TpuAsyncClient.node_path
google.cloud.tpu_v2.services.tpu.TpuAsyncClient.parse_accelerator_type_path
parse_accelerator_type_path(path: str) -> typing.Dict[str, str]
Parses a accelerator_type path into its component segments.
See more: google.cloud.tpu_v2.services.tpu.TpuAsyncClient.parse_accelerator_type_path
google.cloud.tpu_v2.services.tpu.TpuAsyncClient.parse_common_billing_account_path
parse_common_billing_account_path(path: str) -> typing.Dict[str, str]
Parse a billing_account path into its component segments.
See more: google.cloud.tpu_v2.services.tpu.TpuAsyncClient.parse_common_billing_account_path
google.cloud.tpu_v2.services.tpu.TpuAsyncClient.parse_common_folder_path
parse_common_folder_path(path: str) -> typing.Dict[str, str]
Parse a folder path into its component segments.
See more: google.cloud.tpu_v2.services.tpu.TpuAsyncClient.parse_common_folder_path
google.cloud.tpu_v2.services.tpu.TpuAsyncClient.parse_common_location_path
parse_common_location_path(path: str) -> typing.Dict[str, str]
Parse a location path into its component segments.
See more: google.cloud.tpu_v2.services.tpu.TpuAsyncClient.parse_common_location_path
google.cloud.tpu_v2.services.tpu.TpuAsyncClient.parse_common_organization_path
parse_common_organization_path(path: str) -> typing.Dict[str, str]
Parse a organization path into its component segments.
See more: google.cloud.tpu_v2.services.tpu.TpuAsyncClient.parse_common_organization_path
google.cloud.tpu_v2.services.tpu.TpuAsyncClient.parse_common_project_path
parse_common_project_path(path: str) -> typing.Dict[str, str]
Parse a project path into its component segments.
See more: google.cloud.tpu_v2.services.tpu.TpuAsyncClient.parse_common_project_path
google.cloud.tpu_v2.services.tpu.TpuAsyncClient.parse_node_path
parse_node_path(path: str) -> typing.Dict[str, str]
Parses a node path into its component segments.
See more: google.cloud.tpu_v2.services.tpu.TpuAsyncClient.parse_node_path
google.cloud.tpu_v2.services.tpu.TpuAsyncClient.parse_runtime_version_path
parse_runtime_version_path(path: str) -> typing.Dict[str, str]
Parses a runtime_version path into its component segments.
See more: google.cloud.tpu_v2.services.tpu.TpuAsyncClient.parse_runtime_version_path
google.cloud.tpu_v2.services.tpu.TpuAsyncClient.runtime_version_path
runtime_version_path(project: str, location: str, runtime_version: str) -> str
Returns a fully-qualified runtime_version string.
See more: google.cloud.tpu_v2.services.tpu.TpuAsyncClient.runtime_version_path
google.cloud.tpu_v2.services.tpu.TpuAsyncClient.start_node
start_node(
request: typing.Optional[
typing.Union[google.cloud.tpu_v2.types.cloud_tpu.StartNodeRequest, dict]
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.api_core.operation_async.AsyncOperation
Starts a node.
See more: google.cloud.tpu_v2.services.tpu.TpuAsyncClient.start_node
google.cloud.tpu_v2.services.tpu.TpuAsyncClient.stop_node
stop_node(
request: typing.Optional[
typing.Union[google.cloud.tpu_v2.types.cloud_tpu.StopNodeRequest, dict]
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.api_core.operation_async.AsyncOperation
Stops a node.
See more: google.cloud.tpu_v2.services.tpu.TpuAsyncClient.stop_node
google.cloud.tpu_v2.services.tpu.TpuAsyncClient.update_node
update_node(
request: typing.Optional[
typing.Union[google.cloud.tpu_v2.types.cloud_tpu.UpdateNodeRequest, dict]
] = None,
*,
node: typing.Optional[google.cloud.tpu_v2.types.cloud_tpu.Node] = None,
update_mask: typing.Optional[google.protobuf.field_mask_pb2.FieldMask] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.api_core.operation_async.AsyncOperation
Updates the configurations of a node.
See more: google.cloud.tpu_v2.services.tpu.TpuAsyncClient.update_node
google.cloud.tpu_v2.services.tpu.TpuClient
TpuClient(*, credentials: typing.Optional[google.auth.credentials.Credentials] = None, transport: typing.Optional[typing.Union[str, google.cloud.tpu_v2.services.tpu.transports.base.TpuTransport, typing.Callable[[...], google.cloud.tpu_v2.services.tpu.transports.base.TpuTransport]]] = None, client_options: typing.Optional[typing.Union[google.api_core.client_options.ClientOptions, dict]] = None, client_info: google.api_core.gapic_v1.client_info.ClientInfo =
Instantiates the tpu client.
google.cloud.tpu_v2.services.tpu.TpuClient.__exit__
__exit__(type, value, traceback)
Releases underlying transport's resources.
google.cloud.tpu_v2.services.tpu.TpuClient.accelerator_type_path
accelerator_type_path(project: str, location: str, accelerator_type: str) -> str
Returns a fully-qualified accelerator_type string.
See more: google.cloud.tpu_v2.services.tpu.TpuClient.accelerator_type_path
google.cloud.tpu_v2.services.tpu.TpuClient.cancel_operation
cancel_operation(
request: typing.Optional[
google.longrunning.operations_pb2.CancelOperationRequest
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> None
Starts asynchronous cancellation on a long-running operation.
See more: google.cloud.tpu_v2.services.tpu.TpuClient.cancel_operation
google.cloud.tpu_v2.services.tpu.TpuClient.common_billing_account_path
common_billing_account_path(billing_account: str) -> str
Returns a fully-qualified billing_account string.
See more: google.cloud.tpu_v2.services.tpu.TpuClient.common_billing_account_path
google.cloud.tpu_v2.services.tpu.TpuClient.common_folder_path
common_folder_path(folder: str) -> str
Returns a fully-qualified folder string.
See more: google.cloud.tpu_v2.services.tpu.TpuClient.common_folder_path
google.cloud.tpu_v2.services.tpu.TpuClient.common_location_path
common_location_path(project: str, location: str) -> str
Returns a fully-qualified location string.
See more: google.cloud.tpu_v2.services.tpu.TpuClient.common_location_path
google.cloud.tpu_v2.services.tpu.TpuClient.common_organization_path
common_organization_path(organization: str) -> str
Returns a fully-qualified organization string.
See more: google.cloud.tpu_v2.services.tpu.TpuClient.common_organization_path
google.cloud.tpu_v2.services.tpu.TpuClient.common_project_path
common_project_path(project: str) -> str
Returns a fully-qualified project string.
See more: google.cloud.tpu_v2.services.tpu.TpuClient.common_project_path
google.cloud.tpu_v2.services.tpu.TpuClient.create_node
create_node(
request: typing.Optional[
typing.Union[google.cloud.tpu_v2.types.cloud_tpu.CreateNodeRequest, dict]
] = None,
*,
parent: typing.Optional[str] = None,
node: typing.Optional[google.cloud.tpu_v2.types.cloud_tpu.Node] = None,
node_id: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.api_core.operation.Operation
Creates a node.
See more: google.cloud.tpu_v2.services.tpu.TpuClient.create_node
google.cloud.tpu_v2.services.tpu.TpuClient.delete_node
delete_node(
request: typing.Optional[
typing.Union[google.cloud.tpu_v2.types.cloud_tpu.DeleteNodeRequest, dict]
] = None,
*,
name: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.api_core.operation.Operation
Deletes a node.
See more: google.cloud.tpu_v2.services.tpu.TpuClient.delete_node
google.cloud.tpu_v2.services.tpu.TpuClient.delete_operation
delete_operation(
request: typing.Optional[
google.longrunning.operations_pb2.DeleteOperationRequest
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> None
Deletes a long-running operation.
See more: google.cloud.tpu_v2.services.tpu.TpuClient.delete_operation
google.cloud.tpu_v2.services.tpu.TpuClient.from_service_account_file
from_service_account_file(filename: str, *args, **kwargs)
Creates an instance of this client using the provided credentials file.
See more: google.cloud.tpu_v2.services.tpu.TpuClient.from_service_account_file
google.cloud.tpu_v2.services.tpu.TpuClient.from_service_account_info
from_service_account_info(info: dict, *args, **kwargs)
Creates an instance of this client using the provided credentials info.
See more: google.cloud.tpu_v2.services.tpu.TpuClient.from_service_account_info
google.cloud.tpu_v2.services.tpu.TpuClient.from_service_account_json
from_service_account_json(filename: str, *args, **kwargs)
Creates an instance of this client using the provided credentials file.
See more: google.cloud.tpu_v2.services.tpu.TpuClient.from_service_account_json
google.cloud.tpu_v2.services.tpu.TpuClient.generate_service_identity
generate_service_identity(
request: typing.Optional[
typing.Union[
google.cloud.tpu_v2.types.cloud_tpu.GenerateServiceIdentityRequest, dict
]
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.cloud.tpu_v2.types.cloud_tpu.GenerateServiceIdentityResponse
Generates the Cloud TPU service identity for the project.
See more: google.cloud.tpu_v2.services.tpu.TpuClient.generate_service_identity
google.cloud.tpu_v2.services.tpu.TpuClient.get_accelerator_type
get_accelerator_type(
request: typing.Optional[
typing.Union[
google.cloud.tpu_v2.types.cloud_tpu.GetAcceleratorTypeRequest, dict
]
] = None,
*,
name: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.cloud.tpu_v2.types.cloud_tpu.AcceleratorType
Gets AcceleratorType.
See more: google.cloud.tpu_v2.services.tpu.TpuClient.get_accelerator_type
google.cloud.tpu_v2.services.tpu.TpuClient.get_guest_attributes
get_guest_attributes(
request: typing.Optional[
typing.Union[
google.cloud.tpu_v2.types.cloud_tpu.GetGuestAttributesRequest, dict
]
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.cloud.tpu_v2.types.cloud_tpu.GetGuestAttributesResponse
Retrieves the guest attributes for the node.
See more: google.cloud.tpu_v2.services.tpu.TpuClient.get_guest_attributes
google.cloud.tpu_v2.services.tpu.TpuClient.get_location
get_location(
request: typing.Optional[
google.cloud.location.locations_pb2.GetLocationRequest
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.cloud.location.locations_pb2.Location
Gets information about a location.
See more: google.cloud.tpu_v2.services.tpu.TpuClient.get_location
google.cloud.tpu_v2.services.tpu.TpuClient.get_mtls_endpoint_and_cert_source
get_mtls_endpoint_and_cert_source(
client_options: typing.Optional[
google.api_core.client_options.ClientOptions
] = None,
)
Deprecated.
See more: google.cloud.tpu_v2.services.tpu.TpuClient.get_mtls_endpoint_and_cert_source
google.cloud.tpu_v2.services.tpu.TpuClient.get_node
get_node(
request: typing.Optional[
typing.Union[google.cloud.tpu_v2.types.cloud_tpu.GetNodeRequest, dict]
] = None,
*,
name: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.cloud.tpu_v2.types.cloud_tpu.Node
Gets the details of a node.
See more: google.cloud.tpu_v2.services.tpu.TpuClient.get_node
google.cloud.tpu_v2.services.tpu.TpuClient.get_operation
get_operation(
request: typing.Optional[
google.longrunning.operations_pb2.GetOperationRequest
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.longrunning.operations_pb2.Operation
Gets the latest state of a long-running operation.
See more: google.cloud.tpu_v2.services.tpu.TpuClient.get_operation
google.cloud.tpu_v2.services.tpu.TpuClient.get_runtime_version
get_runtime_version(
request: typing.Optional[
typing.Union[google.cloud.tpu_v2.types.cloud_tpu.GetRuntimeVersionRequest, dict]
] = None,
*,
name: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.cloud.tpu_v2.types.cloud_tpu.RuntimeVersion
Gets a runtime version.
See more: google.cloud.tpu_v2.services.tpu.TpuClient.get_runtime_version
google.cloud.tpu_v2.services.tpu.TpuClient.list_accelerator_types
list_accelerator_types(
request: typing.Optional[
typing.Union[
google.cloud.tpu_v2.types.cloud_tpu.ListAcceleratorTypesRequest, dict
]
] = None,
*,
parent: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.cloud.tpu_v2.services.tpu.pagers.ListAcceleratorTypesPager
Lists accelerator types supported by this API.
See more: google.cloud.tpu_v2.services.tpu.TpuClient.list_accelerator_types
google.cloud.tpu_v2.services.tpu.TpuClient.list_locations
list_locations(
request: typing.Optional[
google.cloud.location.locations_pb2.ListLocationsRequest
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.cloud.location.locations_pb2.ListLocationsResponse
Lists information about the supported locations for this service.
See more: google.cloud.tpu_v2.services.tpu.TpuClient.list_locations
google.cloud.tpu_v2.services.tpu.TpuClient.list_nodes
list_nodes(
request: typing.Optional[
typing.Union[google.cloud.tpu_v2.types.cloud_tpu.ListNodesRequest, dict]
] = None,
*,
parent: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.cloud.tpu_v2.services.tpu.pagers.ListNodesPager
Lists nodes.
See more: google.cloud.tpu_v2.services.tpu.TpuClient.list_nodes
google.cloud.tpu_v2.services.tpu.TpuClient.list_operations
list_operations(
request: typing.Optional[
google.longrunning.operations_pb2.ListOperationsRequest
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.longrunning.operations_pb2.ListOperationsResponse
Lists operations that match the specified filter in the request.
See more: google.cloud.tpu_v2.services.tpu.TpuClient.list_operations
google.cloud.tpu_v2.services.tpu.TpuClient.list_runtime_versions
list_runtime_versions(
request: typing.Optional[
typing.Union[
google.cloud.tpu_v2.types.cloud_tpu.ListRuntimeVersionsRequest, dict
]
] = None,
*,
parent: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.cloud.tpu_v2.services.tpu.pagers.ListRuntimeVersionsPager
Lists runtime versions supported by this API.
See more: google.cloud.tpu_v2.services.tpu.TpuClient.list_runtime_versions
google.cloud.tpu_v2.services.tpu.TpuClient.node_path
node_path(project: str, location: str, node: str) -> str
Returns a fully-qualified node string.
See more: google.cloud.tpu_v2.services.tpu.TpuClient.node_path
google.cloud.tpu_v2.services.tpu.TpuClient.parse_accelerator_type_path
parse_accelerator_type_path(path: str) -> typing.Dict[str, str]
Parses a accelerator_type path into its component segments.
See more: google.cloud.tpu_v2.services.tpu.TpuClient.parse_accelerator_type_path
google.cloud.tpu_v2.services.tpu.TpuClient.parse_common_billing_account_path
parse_common_billing_account_path(path: str) -> typing.Dict[str, str]
Parse a billing_account path into its component segments.
See more: google.cloud.tpu_v2.services.tpu.TpuClient.parse_common_billing_account_path
google.cloud.tpu_v2.services.tpu.TpuClient.parse_common_folder_path
parse_common_folder_path(path: str) -> typing.Dict[str, str]
Parse a folder path into its component segments.
See more: google.cloud.tpu_v2.services.tpu.TpuClient.parse_common_folder_path
google.cloud.tpu_v2.services.tpu.TpuClient.parse_common_location_path
parse_common_location_path(path: str) -> typing.Dict[str, str]
Parse a location path into its component segments.
See more: google.cloud.tpu_v2.services.tpu.TpuClient.parse_common_location_path
google.cloud.tpu_v2.services.tpu.TpuClient.parse_common_organization_path
parse_common_organization_path(path: str) -> typing.Dict[str, str]
Parse a organization path into its component segments.
See more: google.cloud.tpu_v2.services.tpu.TpuClient.parse_common_organization_path
google.cloud.tpu_v2.services.tpu.TpuClient.parse_common_project_path
parse_common_project_path(path: str) -> typing.Dict[str, str]
Parse a project path into its component segments.
See more: google.cloud.tpu_v2.services.tpu.TpuClient.parse_common_project_path
google.cloud.tpu_v2.services.tpu.TpuClient.parse_node_path
parse_node_path(path: str) -> typing.Dict[str, str]
Parses a node path into its component segments.
See more: google.cloud.tpu_v2.services.tpu.TpuClient.parse_node_path
google.cloud.tpu_v2.services.tpu.TpuClient.parse_runtime_version_path
parse_runtime_version_path(path: str) -> typing.Dict[str, str]
Parses a runtime_version path into its component segments.
See more: google.cloud.tpu_v2.services.tpu.TpuClient.parse_runtime_version_path
google.cloud.tpu_v2.services.tpu.TpuClient.runtime_version_path
runtime_version_path(project: str, location: str, runtime_version: str) -> str
Returns a fully-qualified runtime_version string.
See more: google.cloud.tpu_v2.services.tpu.TpuClient.runtime_version_path
google.cloud.tpu_v2.services.tpu.TpuClient.start_node
start_node(
request: typing.Optional[
typing.Union[google.cloud.tpu_v2.types.cloud_tpu.StartNodeRequest, dict]
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.api_core.operation.Operation
Starts a node.
See more: google.cloud.tpu_v2.services.tpu.TpuClient.start_node
google.cloud.tpu_v2.services.tpu.TpuClient.stop_node
stop_node(
request: typing.Optional[
typing.Union[google.cloud.tpu_v2.types.cloud_tpu.StopNodeRequest, dict]
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.api_core.operation.Operation
Stops a node.
See more: google.cloud.tpu_v2.services.tpu.TpuClient.stop_node
google.cloud.tpu_v2.services.tpu.TpuClient.update_node
update_node(
request: typing.Optional[
typing.Union[google.cloud.tpu_v2.types.cloud_tpu.UpdateNodeRequest, dict]
] = None,
*,
node: typing.Optional[google.cloud.tpu_v2.types.cloud_tpu.Node] = None,
update_mask: typing.Optional[google.protobuf.field_mask_pb2.FieldMask] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.api_core.operation.Operation
Updates the configurations of a node.
See more: google.cloud.tpu_v2.services.tpu.TpuClient.update_node
google.cloud.tpu_v2.services.tpu.pagers.ListAcceleratorTypesAsyncPager
ListAcceleratorTypesAsyncPager(
method: typing.Callable[
[...],
typing.Awaitable[
google.cloud.tpu_v2.types.cloud_tpu.ListAcceleratorTypesResponse
],
],
request: google.cloud.tpu_v2.types.cloud_tpu.ListAcceleratorTypesRequest,
response: google.cloud.tpu_v2.types.cloud_tpu.ListAcceleratorTypesResponse,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
)
Instantiates the pager.
See more: google.cloud.tpu_v2.services.tpu.pagers.ListAcceleratorTypesAsyncPager
google.cloud.tpu_v2.services.tpu.pagers.ListAcceleratorTypesPager
ListAcceleratorTypesPager(
method: typing.Callable[
[...], google.cloud.tpu_v2.types.cloud_tpu.ListAcceleratorTypesResponse
],
request: google.cloud.tpu_v2.types.cloud_tpu.ListAcceleratorTypesRequest,
response: google.cloud.tpu_v2.types.cloud_tpu.ListAcceleratorTypesResponse,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
)
Instantiate the pager.
See more: google.cloud.tpu_v2.services.tpu.pagers.ListAcceleratorTypesPager
google.cloud.tpu_v2.services.tpu.pagers.ListNodesAsyncPager
ListNodesAsyncPager(
method: typing.Callable[
[...], typing.Awaitable[google.cloud.tpu_v2.types.cloud_tpu.ListNodesResponse]
],
request: google.cloud.tpu_v2.types.cloud_tpu.ListNodesRequest,
response: google.cloud.tpu_v2.types.cloud_tpu.ListNodesResponse,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
)
Instantiates the pager.
See more: google.cloud.tpu_v2.services.tpu.pagers.ListNodesAsyncPager
google.cloud.tpu_v2.services.tpu.pagers.ListNodesPager
ListNodesPager(
method: typing.Callable[
[...], google.cloud.tpu_v2.types.cloud_tpu.ListNodesResponse
],
request: google.cloud.tpu_v2.types.cloud_tpu.ListNodesRequest,
response: google.cloud.tpu_v2.types.cloud_tpu.ListNodesResponse,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
)
Instantiate the pager.
See more: google.cloud.tpu_v2.services.tpu.pagers.ListNodesPager
google.cloud.tpu_v2.services.tpu.pagers.ListRuntimeVersionsAsyncPager
ListRuntimeVersionsAsyncPager(
method: typing.Callable[
[...],
typing.Awaitable[
google.cloud.tpu_v2.types.cloud_tpu.ListRuntimeVersionsResponse
],
],
request: google.cloud.tpu_v2.types.cloud_tpu.ListRuntimeVersionsRequest,
response: google.cloud.tpu_v2.types.cloud_tpu.ListRuntimeVersionsResponse,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
)
Instantiates the pager.
See more: google.cloud.tpu_v2.services.tpu.pagers.ListRuntimeVersionsAsyncPager
google.cloud.tpu_v2.services.tpu.pagers.ListRuntimeVersionsPager
ListRuntimeVersionsPager(
method: typing.Callable[
[...], google.cloud.tpu_v2.types.cloud_tpu.ListRuntimeVersionsResponse
],
request: google.cloud.tpu_v2.types.cloud_tpu.ListRuntimeVersionsRequest,
response: google.cloud.tpu_v2.types.cloud_tpu.ListRuntimeVersionsResponse,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
)
Instantiate the pager.
See more: google.cloud.tpu_v2.services.tpu.pagers.ListRuntimeVersionsPager
google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient
TpuAsyncClient(*, credentials: typing.Optional[google.auth.credentials.Credentials] = None, transport: typing.Optional[typing.Union[str, google.cloud.tpu_v2alpha1.services.tpu.transports.base.TpuTransport, typing.Callable[[...], google.cloud.tpu_v2alpha1.services.tpu.transports.base.TpuTransport]]] = 'grpc_asyncio', client_options: typing.Optional[google.api_core.client_options.ClientOptions] = None, client_info: google.api_core.gapic_v1.client_info.ClientInfo =
Instantiates the tpu async client.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient
google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.accelerator_type_path
accelerator_type_path(project: str, location: str, accelerator_type: str) -> str
Returns a fully-qualified accelerator_type string.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.accelerator_type_path
google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.cancel_operation
cancel_operation(
request: typing.Optional[
google.longrunning.operations_pb2.CancelOperationRequest
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> None
Starts asynchronous cancellation on a long-running operation.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.cancel_operation
google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.common_billing_account_path
common_billing_account_path(billing_account: str) -> str
Returns a fully-qualified billing_account string.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.common_billing_account_path
google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.common_folder_path
common_folder_path(folder: str) -> str
Returns a fully-qualified folder string.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.common_folder_path
google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.common_location_path
common_location_path(project: str, location: str) -> str
Returns a fully-qualified location string.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.common_location_path
google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.common_organization_path
common_organization_path(organization: str) -> str
Returns a fully-qualified organization string.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.common_organization_path
google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.common_project_path
common_project_path(project: str) -> str
Returns a fully-qualified project string.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.common_project_path
google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.create_node
create_node(
request: typing.Optional[
typing.Union[google.cloud.tpu_v2alpha1.types.cloud_tpu.CreateNodeRequest, dict]
] = None,
*,
parent: typing.Optional[str] = None,
node: typing.Optional[google.cloud.tpu_v2alpha1.types.cloud_tpu.Node] = None,
node_id: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.api_core.operation_async.AsyncOperation
Creates a node.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.create_node
google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.create_queued_resource
create_queued_resource(
request: typing.Optional[
typing.Union[
google.cloud.tpu_v2alpha1.types.cloud_tpu.CreateQueuedResourceRequest, dict
]
] = None,
*,
parent: typing.Optional[str] = None,
queued_resource: typing.Optional[
google.cloud.tpu_v2alpha1.types.cloud_tpu.QueuedResource
] = None,
queued_resource_id: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.api_core.operation_async.AsyncOperation
Creates a QueuedResource TPU instance.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.create_queued_resource
google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.delete_node
delete_node(
request: typing.Optional[
typing.Union[google.cloud.tpu_v2alpha1.types.cloud_tpu.DeleteNodeRequest, dict]
] = None,
*,
name: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.api_core.operation_async.AsyncOperation
Deletes a node.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.delete_node
google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.delete_operation
delete_operation(
request: typing.Optional[
google.longrunning.operations_pb2.DeleteOperationRequest
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> None
Deletes a long-running operation.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.delete_operation
google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.delete_queued_resource
delete_queued_resource(
request: typing.Optional[
typing.Union[
google.cloud.tpu_v2alpha1.types.cloud_tpu.DeleteQueuedResourceRequest, dict
]
] = None,
*,
name: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.api_core.operation_async.AsyncOperation
Deletes a QueuedResource TPU instance.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.delete_queued_resource
google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.from_service_account_file
from_service_account_file(filename: str, *args, **kwargs)
Creates an instance of this client using the provided credentials file.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.from_service_account_file
google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.from_service_account_info
from_service_account_info(info: dict, *args, **kwargs)
Creates an instance of this client using the provided credentials info.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.from_service_account_info
google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.from_service_account_json
from_service_account_json(filename: str, *args, **kwargs)
Creates an instance of this client using the provided credentials file.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.from_service_account_json
google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.generate_service_identity
generate_service_identity(
request: typing.Optional[
typing.Union[
google.cloud.tpu_v2alpha1.types.cloud_tpu.GenerateServiceIdentityRequest,
dict,
]
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.cloud.tpu_v2alpha1.types.cloud_tpu.GenerateServiceIdentityResponse
Generates the Cloud TPU service identity for the project.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.generate_service_identity
google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.get_accelerator_type
get_accelerator_type(
request: typing.Optional[
typing.Union[
google.cloud.tpu_v2alpha1.types.cloud_tpu.GetAcceleratorTypeRequest, dict
]
] = None,
*,
name: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.cloud.tpu_v2alpha1.types.cloud_tpu.AcceleratorType
Gets AcceleratorType.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.get_accelerator_type
google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.get_guest_attributes
get_guest_attributes(
request: typing.Optional[
typing.Union[
google.cloud.tpu_v2alpha1.types.cloud_tpu.GetGuestAttributesRequest, dict
]
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.cloud.tpu_v2alpha1.types.cloud_tpu.GetGuestAttributesResponse
Retrieves the guest attributes for the node.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.get_guest_attributes
google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.get_location
get_location(
request: typing.Optional[
google.cloud.location.locations_pb2.GetLocationRequest
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.cloud.location.locations_pb2.Location
Gets information about a location.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.get_location
google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.get_mtls_endpoint_and_cert_source
get_mtls_endpoint_and_cert_source(
client_options: typing.Optional[
google.api_core.client_options.ClientOptions
] = None,
)
Return the API endpoint and client cert source for mutual TLS.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.get_mtls_endpoint_and_cert_source
google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.get_node
get_node(
request: typing.Optional[
typing.Union[google.cloud.tpu_v2alpha1.types.cloud_tpu.GetNodeRequest, dict]
] = None,
*,
name: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.cloud.tpu_v2alpha1.types.cloud_tpu.Node
Gets the details of a node.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.get_node
google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.get_operation
get_operation(
request: typing.Optional[
google.longrunning.operations_pb2.GetOperationRequest
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.longrunning.operations_pb2.Operation
Gets the latest state of a long-running operation.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.get_operation
google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.get_queued_resource
get_queued_resource(
request: typing.Optional[
typing.Union[
google.cloud.tpu_v2alpha1.types.cloud_tpu.GetQueuedResourceRequest, dict
]
] = None,
*,
name: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.cloud.tpu_v2alpha1.types.cloud_tpu.QueuedResource
Gets details of a queued resource.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.get_queued_resource
google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.get_runtime_version
get_runtime_version(
request: typing.Optional[
typing.Union[
google.cloud.tpu_v2alpha1.types.cloud_tpu.GetRuntimeVersionRequest, dict
]
] = None,
*,
name: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.cloud.tpu_v2alpha1.types.cloud_tpu.RuntimeVersion
Gets a runtime version.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.get_runtime_version
google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.get_transport_class
get_transport_class() -> (
typing.Type[google.cloud.tpu_v2alpha1.services.tpu.transports.base.TpuTransport]
)
Returns an appropriate transport class.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.get_transport_class
google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.list_accelerator_types
list_accelerator_types(
request: typing.Optional[
typing.Union[
google.cloud.tpu_v2alpha1.types.cloud_tpu.ListAcceleratorTypesRequest, dict
]
] = None,
*,
parent: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.cloud.tpu_v2alpha1.services.tpu.pagers.ListAcceleratorTypesAsyncPager
Lists accelerator types supported by this API.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.list_accelerator_types
google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.list_locations
list_locations(
request: typing.Optional[
google.cloud.location.locations_pb2.ListLocationsRequest
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.cloud.location.locations_pb2.ListLocationsResponse
Lists information about the supported locations for this service.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.list_locations
google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.list_nodes
list_nodes(
request: typing.Optional[
typing.Union[google.cloud.tpu_v2alpha1.types.cloud_tpu.ListNodesRequest, dict]
] = None,
*,
parent: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.cloud.tpu_v2alpha1.services.tpu.pagers.ListNodesAsyncPager
Lists nodes.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.list_nodes
google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.list_operations
list_operations(
request: typing.Optional[
google.longrunning.operations_pb2.ListOperationsRequest
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.longrunning.operations_pb2.ListOperationsResponse
Lists operations that match the specified filter in the request.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.list_operations
google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.list_queued_resources
list_queued_resources(
request: typing.Optional[
typing.Union[
google.cloud.tpu_v2alpha1.types.cloud_tpu.ListQueuedResourcesRequest, dict
]
] = None,
*,
parent: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.cloud.tpu_v2alpha1.services.tpu.pagers.ListQueuedResourcesAsyncPager
Lists queued resources.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.list_queued_resources
google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.list_runtime_versions
list_runtime_versions(
request: typing.Optional[
typing.Union[
google.cloud.tpu_v2alpha1.types.cloud_tpu.ListRuntimeVersionsRequest, dict
]
] = None,
*,
parent: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.cloud.tpu_v2alpha1.services.tpu.pagers.ListRuntimeVersionsAsyncPager
Lists runtime versions supported by this API.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.list_runtime_versions
google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.node_path
node_path(project: str, location: str, node: str) -> str
Returns a fully-qualified node string.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.node_path
google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.parse_accelerator_type_path
parse_accelerator_type_path(path: str) -> typing.Dict[str, str]
Parses a accelerator_type path into its component segments.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.parse_accelerator_type_path
google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.parse_common_billing_account_path
parse_common_billing_account_path(path: str) -> typing.Dict[str, str]
Parse a billing_account path into its component segments.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.parse_common_billing_account_path
google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.parse_common_folder_path
parse_common_folder_path(path: str) -> typing.Dict[str, str]
Parse a folder path into its component segments.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.parse_common_folder_path
google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.parse_common_location_path
parse_common_location_path(path: str) -> typing.Dict[str, str]
Parse a location path into its component segments.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.parse_common_location_path
google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.parse_common_organization_path
parse_common_organization_path(path: str) -> typing.Dict[str, str]
Parse a organization path into its component segments.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.parse_common_organization_path
google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.parse_common_project_path
parse_common_project_path(path: str) -> typing.Dict[str, str]
Parse a project path into its component segments.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.parse_common_project_path
google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.parse_node_path
parse_node_path(path: str) -> typing.Dict[str, str]
Parses a node path into its component segments.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.parse_node_path
google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.parse_queued_resource_path
parse_queued_resource_path(path: str) -> typing.Dict[str, str]
Parses a queued_resource path into its component segments.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.parse_queued_resource_path
google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.parse_runtime_version_path
parse_runtime_version_path(path: str) -> typing.Dict[str, str]
Parses a runtime_version path into its component segments.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.parse_runtime_version_path
google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.queued_resource_path
queued_resource_path(project: str, location: str, queued_resource: str) -> str
Returns a fully-qualified queued_resource string.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.queued_resource_path
google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.reset_queued_resource
reset_queued_resource(
request: typing.Optional[
typing.Union[
google.cloud.tpu_v2alpha1.types.cloud_tpu.ResetQueuedResourceRequest, dict
]
] = None,
*,
name: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.api_core.operation_async.AsyncOperation
Resets a QueuedResource TPU instance.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.reset_queued_resource
google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.runtime_version_path
runtime_version_path(project: str, location: str, runtime_version: str) -> str
Returns a fully-qualified runtime_version string.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.runtime_version_path
google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.simulate_maintenance_event
simulate_maintenance_event(
request: typing.Optional[
typing.Union[
google.cloud.tpu_v2alpha1.types.cloud_tpu.SimulateMaintenanceEventRequest,
dict,
]
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.api_core.operation_async.AsyncOperation
Simulates a maintenance event.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.simulate_maintenance_event
google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.start_node
start_node(
request: typing.Optional[
typing.Union[google.cloud.tpu_v2alpha1.types.cloud_tpu.StartNodeRequest, dict]
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.api_core.operation_async.AsyncOperation
Starts a node.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.start_node
google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.stop_node
stop_node(
request: typing.Optional[
typing.Union[google.cloud.tpu_v2alpha1.types.cloud_tpu.StopNodeRequest, dict]
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.api_core.operation_async.AsyncOperation
Stops a node.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.stop_node
google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.update_node
update_node(
request: typing.Optional[
typing.Union[google.cloud.tpu_v2alpha1.types.cloud_tpu.UpdateNodeRequest, dict]
] = None,
*,
node: typing.Optional[google.cloud.tpu_v2alpha1.types.cloud_tpu.Node] = None,
update_mask: typing.Optional[google.protobuf.field_mask_pb2.FieldMask] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.api_core.operation_async.AsyncOperation
Updates the configurations of a node.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuAsyncClient.update_node
google.cloud.tpu_v2alpha1.services.tpu.TpuClient
TpuClient(*, credentials: typing.Optional[google.auth.credentials.Credentials] = None, transport: typing.Optional[typing.Union[str, google.cloud.tpu_v2alpha1.services.tpu.transports.base.TpuTransport, typing.Callable[[...], google.cloud.tpu_v2alpha1.services.tpu.transports.base.TpuTransport]]] = None, client_options: typing.Optional[typing.Union[google.api_core.client_options.ClientOptions, dict]] = None, client_info: google.api_core.gapic_v1.client_info.ClientInfo =
Instantiates the tpu client.
google.cloud.tpu_v2alpha1.services.tpu.TpuClient.__exit__
__exit__(type, value, traceback)
Releases underlying transport's resources.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuClient.exit
google.cloud.tpu_v2alpha1.services.tpu.TpuClient.accelerator_type_path
accelerator_type_path(project: str, location: str, accelerator_type: str) -> str
Returns a fully-qualified accelerator_type string.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuClient.accelerator_type_path
google.cloud.tpu_v2alpha1.services.tpu.TpuClient.cancel_operation
cancel_operation(
request: typing.Optional[
google.longrunning.operations_pb2.CancelOperationRequest
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> None
Starts asynchronous cancellation on a long-running operation.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuClient.cancel_operation
google.cloud.tpu_v2alpha1.services.tpu.TpuClient.common_billing_account_path
common_billing_account_path(billing_account: str) -> str
Returns a fully-qualified billing_account string.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuClient.common_billing_account_path
google.cloud.tpu_v2alpha1.services.tpu.TpuClient.common_folder_path
common_folder_path(folder: str) -> str
Returns a fully-qualified folder string.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuClient.common_folder_path
google.cloud.tpu_v2alpha1.services.tpu.TpuClient.common_location_path
common_location_path(project: str, location: str) -> str
Returns a fully-qualified location string.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuClient.common_location_path
google.cloud.tpu_v2alpha1.services.tpu.TpuClient.common_organization_path
common_organization_path(organization: str) -> str
Returns a fully-qualified organization string.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuClient.common_organization_path
google.cloud.tpu_v2alpha1.services.tpu.TpuClient.common_project_path
common_project_path(project: str) -> str
Returns a fully-qualified project string.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuClient.common_project_path
google.cloud.tpu_v2alpha1.services.tpu.TpuClient.create_node
create_node(
request: typing.Optional[
typing.Union[google.cloud.tpu_v2alpha1.types.cloud_tpu.CreateNodeRequest, dict]
] = None,
*,
parent: typing.Optional[str] = None,
node: typing.Optional[google.cloud.tpu_v2alpha1.types.cloud_tpu.Node] = None,
node_id: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.api_core.operation.Operation
Creates a node.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuClient.create_node
google.cloud.tpu_v2alpha1.services.tpu.TpuClient.create_queued_resource
create_queued_resource(
request: typing.Optional[
typing.Union[
google.cloud.tpu_v2alpha1.types.cloud_tpu.CreateQueuedResourceRequest, dict
]
] = None,
*,
parent: typing.Optional[str] = None,
queued_resource: typing.Optional[
google.cloud.tpu_v2alpha1.types.cloud_tpu.QueuedResource
] = None,
queued_resource_id: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.api_core.operation.Operation
Creates a QueuedResource TPU instance.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuClient.create_queued_resource
google.cloud.tpu_v2alpha1.services.tpu.TpuClient.delete_node
delete_node(
request: typing.Optional[
typing.Union[google.cloud.tpu_v2alpha1.types.cloud_tpu.DeleteNodeRequest, dict]
] = None,
*,
name: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.api_core.operation.Operation
Deletes a node.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuClient.delete_node
google.cloud.tpu_v2alpha1.services.tpu.TpuClient.delete_operation
delete_operation(
request: typing.Optional[
google.longrunning.operations_pb2.DeleteOperationRequest
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> None
Deletes a long-running operation.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuClient.delete_operation
google.cloud.tpu_v2alpha1.services.tpu.TpuClient.delete_queued_resource
delete_queued_resource(
request: typing.Optional[
typing.Union[
google.cloud.tpu_v2alpha1.types.cloud_tpu.DeleteQueuedResourceRequest, dict
]
] = None,
*,
name: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.api_core.operation.Operation
Deletes a QueuedResource TPU instance.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuClient.delete_queued_resource
google.cloud.tpu_v2alpha1.services.tpu.TpuClient.from_service_account_file
from_service_account_file(filename: str, *args, **kwargs)
Creates an instance of this client using the provided credentials file.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuClient.from_service_account_file
google.cloud.tpu_v2alpha1.services.tpu.TpuClient.from_service_account_info
from_service_account_info(info: dict, *args, **kwargs)
Creates an instance of this client using the provided credentials info.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuClient.from_service_account_info
google.cloud.tpu_v2alpha1.services.tpu.TpuClient.from_service_account_json
from_service_account_json(filename: str, *args, **kwargs)
Creates an instance of this client using the provided credentials file.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuClient.from_service_account_json
google.cloud.tpu_v2alpha1.services.tpu.TpuClient.generate_service_identity
generate_service_identity(
request: typing.Optional[
typing.Union[
google.cloud.tpu_v2alpha1.types.cloud_tpu.GenerateServiceIdentityRequest,
dict,
]
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.cloud.tpu_v2alpha1.types.cloud_tpu.GenerateServiceIdentityResponse
Generates the Cloud TPU service identity for the project.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuClient.generate_service_identity
google.cloud.tpu_v2alpha1.services.tpu.TpuClient.get_accelerator_type
get_accelerator_type(
request: typing.Optional[
typing.Union[
google.cloud.tpu_v2alpha1.types.cloud_tpu.GetAcceleratorTypeRequest, dict
]
] = None,
*,
name: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.cloud.tpu_v2alpha1.types.cloud_tpu.AcceleratorType
Gets AcceleratorType.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuClient.get_accelerator_type
google.cloud.tpu_v2alpha1.services.tpu.TpuClient.get_guest_attributes
get_guest_attributes(
request: typing.Optional[
typing.Union[
google.cloud.tpu_v2alpha1.types.cloud_tpu.GetGuestAttributesRequest, dict
]
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.cloud.tpu_v2alpha1.types.cloud_tpu.GetGuestAttributesResponse
Retrieves the guest attributes for the node.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuClient.get_guest_attributes
google.cloud.tpu_v2alpha1.services.tpu.TpuClient.get_location
get_location(
request: typing.Optional[
google.cloud.location.locations_pb2.GetLocationRequest
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.cloud.location.locations_pb2.Location
Gets information about a location.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuClient.get_location
google.cloud.tpu_v2alpha1.services.tpu.TpuClient.get_mtls_endpoint_and_cert_source
get_mtls_endpoint_and_cert_source(
client_options: typing.Optional[
google.api_core.client_options.ClientOptions
] = None,
)
Deprecated.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuClient.get_mtls_endpoint_and_cert_source
google.cloud.tpu_v2alpha1.services.tpu.TpuClient.get_node
get_node(
request: typing.Optional[
typing.Union[google.cloud.tpu_v2alpha1.types.cloud_tpu.GetNodeRequest, dict]
] = None,
*,
name: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.cloud.tpu_v2alpha1.types.cloud_tpu.Node
Gets the details of a node.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuClient.get_node
google.cloud.tpu_v2alpha1.services.tpu.TpuClient.get_operation
get_operation(
request: typing.Optional[
google.longrunning.operations_pb2.GetOperationRequest
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.longrunning.operations_pb2.Operation
Gets the latest state of a long-running operation.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuClient.get_operation
google.cloud.tpu_v2alpha1.services.tpu.TpuClient.get_queued_resource
get_queued_resource(
request: typing.Optional[
typing.Union[
google.cloud.tpu_v2alpha1.types.cloud_tpu.GetQueuedResourceRequest, dict
]
] = None,
*,
name: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.cloud.tpu_v2alpha1.types.cloud_tpu.QueuedResource
Gets details of a queued resource.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuClient.get_queued_resource
google.cloud.tpu_v2alpha1.services.tpu.TpuClient.get_runtime_version
get_runtime_version(
request: typing.Optional[
typing.Union[
google.cloud.tpu_v2alpha1.types.cloud_tpu.GetRuntimeVersionRequest, dict
]
] = None,
*,
name: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.cloud.tpu_v2alpha1.types.cloud_tpu.RuntimeVersion
Gets a runtime version.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuClient.get_runtime_version
google.cloud.tpu_v2alpha1.services.tpu.TpuClient.list_accelerator_types
list_accelerator_types(
request: typing.Optional[
typing.Union[
google.cloud.tpu_v2alpha1.types.cloud_tpu.ListAcceleratorTypesRequest, dict
]
] = None,
*,
parent: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.cloud.tpu_v2alpha1.services.tpu.pagers.ListAcceleratorTypesPager
Lists accelerator types supported by this API.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuClient.list_accelerator_types
google.cloud.tpu_v2alpha1.services.tpu.TpuClient.list_locations
list_locations(
request: typing.Optional[
google.cloud.location.locations_pb2.ListLocationsRequest
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.cloud.location.locations_pb2.ListLocationsResponse
Lists information about the supported locations for this service.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuClient.list_locations
google.cloud.tpu_v2alpha1.services.tpu.TpuClient.list_nodes
list_nodes(
request: typing.Optional[
typing.Union[google.cloud.tpu_v2alpha1.types.cloud_tpu.ListNodesRequest, dict]
] = None,
*,
parent: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.cloud.tpu_v2alpha1.services.tpu.pagers.ListNodesPager
Lists nodes.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuClient.list_nodes
google.cloud.tpu_v2alpha1.services.tpu.TpuClient.list_operations
list_operations(
request: typing.Optional[
google.longrunning.operations_pb2.ListOperationsRequest
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.longrunning.operations_pb2.ListOperationsResponse
Lists operations that match the specified filter in the request.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuClient.list_operations
google.cloud.tpu_v2alpha1.services.tpu.TpuClient.list_queued_resources
list_queued_resources(
request: typing.Optional[
typing.Union[
google.cloud.tpu_v2alpha1.types.cloud_tpu.ListQueuedResourcesRequest, dict
]
] = None,
*,
parent: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.cloud.tpu_v2alpha1.services.tpu.pagers.ListQueuedResourcesPager
Lists queued resources.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuClient.list_queued_resources
google.cloud.tpu_v2alpha1.services.tpu.TpuClient.list_runtime_versions
list_runtime_versions(
request: typing.Optional[
typing.Union[
google.cloud.tpu_v2alpha1.types.cloud_tpu.ListRuntimeVersionsRequest, dict
]
] = None,
*,
parent: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.cloud.tpu_v2alpha1.services.tpu.pagers.ListRuntimeVersionsPager
Lists runtime versions supported by this API.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuClient.list_runtime_versions
google.cloud.tpu_v2alpha1.services.tpu.TpuClient.node_path
node_path(project: str, location: str, node: str) -> str
Returns a fully-qualified node string.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuClient.node_path
google.cloud.tpu_v2alpha1.services.tpu.TpuClient.parse_accelerator_type_path
parse_accelerator_type_path(path: str) -> typing.Dict[str, str]
Parses a accelerator_type path into its component segments.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuClient.parse_accelerator_type_path
google.cloud.tpu_v2alpha1.services.tpu.TpuClient.parse_common_billing_account_path
parse_common_billing_account_path(path: str) -> typing.Dict[str, str]
Parse a billing_account path into its component segments.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuClient.parse_common_billing_account_path
google.cloud.tpu_v2alpha1.services.tpu.TpuClient.parse_common_folder_path
parse_common_folder_path(path: str) -> typing.Dict[str, str]
Parse a folder path into its component segments.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuClient.parse_common_folder_path
google.cloud.tpu_v2alpha1.services.tpu.TpuClient.parse_common_location_path
parse_common_location_path(path: str) -> typing.Dict[str, str]
Parse a location path into its component segments.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuClient.parse_common_location_path
google.cloud.tpu_v2alpha1.services.tpu.TpuClient.parse_common_organization_path
parse_common_organization_path(path: str) -> typing.Dict[str, str]
Parse a organization path into its component segments.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuClient.parse_common_organization_path
google.cloud.tpu_v2alpha1.services.tpu.TpuClient.parse_common_project_path
parse_common_project_path(path: str) -> typing.Dict[str, str]
Parse a project path into its component segments.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuClient.parse_common_project_path
google.cloud.tpu_v2alpha1.services.tpu.TpuClient.parse_node_path
parse_node_path(path: str) -> typing.Dict[str, str]
Parses a node path into its component segments.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuClient.parse_node_path
google.cloud.tpu_v2alpha1.services.tpu.TpuClient.parse_queued_resource_path
parse_queued_resource_path(path: str) -> typing.Dict[str, str]
Parses a queued_resource path into its component segments.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuClient.parse_queued_resource_path
google.cloud.tpu_v2alpha1.services.tpu.TpuClient.parse_runtime_version_path
parse_runtime_version_path(path: str) -> typing.Dict[str, str]
Parses a runtime_version path into its component segments.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuClient.parse_runtime_version_path
google.cloud.tpu_v2alpha1.services.tpu.TpuClient.queued_resource_path
queued_resource_path(project: str, location: str, queued_resource: str) -> str
Returns a fully-qualified queued_resource string.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuClient.queued_resource_path
google.cloud.tpu_v2alpha1.services.tpu.TpuClient.reset_queued_resource
reset_queued_resource(
request: typing.Optional[
typing.Union[
google.cloud.tpu_v2alpha1.types.cloud_tpu.ResetQueuedResourceRequest, dict
]
] = None,
*,
name: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.api_core.operation.Operation
Resets a QueuedResource TPU instance.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuClient.reset_queued_resource
google.cloud.tpu_v2alpha1.services.tpu.TpuClient.runtime_version_path
runtime_version_path(project: str, location: str, runtime_version: str) -> str
Returns a fully-qualified runtime_version string.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuClient.runtime_version_path
google.cloud.tpu_v2alpha1.services.tpu.TpuClient.simulate_maintenance_event
simulate_maintenance_event(
request: typing.Optional[
typing.Union[
google.cloud.tpu_v2alpha1.types.cloud_tpu.SimulateMaintenanceEventRequest,
dict,
]
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.api_core.operation.Operation
Simulates a maintenance event.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuClient.simulate_maintenance_event
google.cloud.tpu_v2alpha1.services.tpu.TpuClient.start_node
start_node(
request: typing.Optional[
typing.Union[google.cloud.tpu_v2alpha1.types.cloud_tpu.StartNodeRequest, dict]
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.api_core.operation.Operation
Starts a node.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuClient.start_node
google.cloud.tpu_v2alpha1.services.tpu.TpuClient.stop_node
stop_node(
request: typing.Optional[
typing.Union[google.cloud.tpu_v2alpha1.types.cloud_tpu.StopNodeRequest, dict]
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.api_core.operation.Operation
Stops a node.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuClient.stop_node
google.cloud.tpu_v2alpha1.services.tpu.TpuClient.update_node
update_node(
request: typing.Optional[
typing.Union[google.cloud.tpu_v2alpha1.types.cloud_tpu.UpdateNodeRequest, dict]
] = None,
*,
node: typing.Optional[google.cloud.tpu_v2alpha1.types.cloud_tpu.Node] = None,
update_mask: typing.Optional[google.protobuf.field_mask_pb2.FieldMask] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.api_core.operation.Operation
Updates the configurations of a node.
See more: google.cloud.tpu_v2alpha1.services.tpu.TpuClient.update_node
google.cloud.tpu_v2alpha1.services.tpu.pagers.ListAcceleratorTypesAsyncPager
ListAcceleratorTypesAsyncPager(
method: typing.Callable[
[...],
typing.Awaitable[
google.cloud.tpu_v2alpha1.types.cloud_tpu.ListAcceleratorTypesResponse
],
],
request: google.cloud.tpu_v2alpha1.types.cloud_tpu.ListAcceleratorTypesRequest,
response: google.cloud.tpu_v2alpha1.types.cloud_tpu.ListAcceleratorTypesResponse,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
)
Instantiates the pager.
See more: google.cloud.tpu_v2alpha1.services.tpu.pagers.ListAcceleratorTypesAsyncPager
google.cloud.tpu_v2alpha1.services.tpu.pagers.ListAcceleratorTypesPager
ListAcceleratorTypesPager(
method: typing.Callable[
[...], google.cloud.tpu_v2alpha1.types.cloud_tpu.ListAcceleratorTypesResponse
],
request: google.cloud.tpu_v2alpha1.types.cloud_tpu.ListAcceleratorTypesRequest,
response: google.cloud.tpu_v2alpha1.types.cloud_tpu.ListAcceleratorTypesResponse,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
)
Instantiate the pager.
See more: google.cloud.tpu_v2alpha1.services.tpu.pagers.ListAcceleratorTypesPager
google.cloud.tpu_v2alpha1.services.tpu.pagers.ListNodesAsyncPager
ListNodesAsyncPager(
method: typing.Callable[
[...],
typing.Awaitable[google.cloud.tpu_v2alpha1.types.cloud_tpu.ListNodesResponse],
],
request: google.cloud.tpu_v2alpha1.types.cloud_tpu.ListNodesRequest,
response: google.cloud.tpu_v2alpha1.types.cloud_tpu.ListNodesResponse,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
)
Instantiates the pager.
See more: google.cloud.tpu_v2alpha1.services.tpu.pagers.ListNodesAsyncPager
google.cloud.tpu_v2alpha1.services.tpu.pagers.ListNodesPager
ListNodesPager(
method: typing.Callable[
[...], google.cloud.tpu_v2alpha1.types.cloud_tpu.ListNodesResponse
],
request: google.cloud.tpu_v2alpha1.types.cloud_tpu.ListNodesRequest,
response: google.cloud.tpu_v2alpha1.types.cloud_tpu.ListNodesResponse,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
)
Instantiate the pager.
See more: google.cloud.tpu_v2alpha1.services.tpu.pagers.ListNodesPager
google.cloud.tpu_v2alpha1.services.tpu.pagers.ListQueuedResourcesAsyncPager
ListQueuedResourcesAsyncPager(
method: typing.Callable[
[...],
typing.Awaitable[
google.cloud.tpu_v2alpha1.types.cloud_tpu.ListQueuedResourcesResponse
],
],
request: google.cloud.tpu_v2alpha1.types.cloud_tpu.ListQueuedResourcesRequest,
response: google.cloud.tpu_v2alpha1.types.cloud_tpu.ListQueuedResourcesResponse,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
)
Instantiates the pager.
See more: google.cloud.tpu_v2alpha1.services.tpu.pagers.ListQueuedResourcesAsyncPager
google.cloud.tpu_v2alpha1.services.tpu.pagers.ListQueuedResourcesPager
ListQueuedResourcesPager(
method: typing.Callable[
[...], google.cloud.tpu_v2alpha1.types.cloud_tpu.ListQueuedResourcesResponse
],
request: google.cloud.tpu_v2alpha1.types.cloud_tpu.ListQueuedResourcesRequest,
response: google.cloud.tpu_v2alpha1.types.cloud_tpu.ListQueuedResourcesResponse,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
)
Instantiate the pager.
See more: google.cloud.tpu_v2alpha1.services.tpu.pagers.ListQueuedResourcesPager
google.cloud.tpu_v2alpha1.services.tpu.pagers.ListRuntimeVersionsAsyncPager
ListRuntimeVersionsAsyncPager(
method: typing.Callable[
[...],
typing.Awaitable[
google.cloud.tpu_v2alpha1.types.cloud_tpu.ListRuntimeVersionsResponse
],
],
request: google.cloud.tpu_v2alpha1.types.cloud_tpu.ListRuntimeVersionsRequest,
response: google.cloud.tpu_v2alpha1.types.cloud_tpu.ListRuntimeVersionsResponse,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
)
Instantiates the pager.
See more: google.cloud.tpu_v2alpha1.services.tpu.pagers.ListRuntimeVersionsAsyncPager
google.cloud.tpu_v2alpha1.services.tpu.pagers.ListRuntimeVersionsPager
ListRuntimeVersionsPager(
method: typing.Callable[
[...], google.cloud.tpu_v2alpha1.types.cloud_tpu.ListRuntimeVersionsResponse
],
request: google.cloud.tpu_v2alpha1.types.cloud_tpu.ListRuntimeVersionsRequest,
response: google.cloud.tpu_v2alpha1.types.cloud_tpu.ListRuntimeVersionsResponse,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, str]] = ()
)
Instantiate the pager.
See more: google.cloud.tpu_v2alpha1.services.tpu.pagers.ListRuntimeVersionsPager