Service Client: Google::Cloud::Tpu::V2alpha1::CloudTpu::TpuClient
Client stub representing the remote Tpu gRPC service. Delegates call dispatching to Google::gRPC::Client.
target
The endpoint target address. Defaults to tpu.googleapis.com:443.
credentials
The authentication credentials provider. Defaults to application default credentials via Google::Auth.
NAME
Google::Cloud::Tpu::V2alpha1::CloudTpu - Compiled Protocol Buffers messages for google/cloud/tpu/v2alpha1/cloud_tpu.proto
SYNOPSIS
use Google::Cloud::Tpu::V2alpha1::CloudTpu;
my $msg = Google::Cloud::Tpu::V2alpha1::CloudTpu::GuestAttributes->new({
query_path => $query_path,
query_value => $query_value,
});
# Read or update a field
my $val = $msg->query_path();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Tpu::V2alpha1::CloudTpu::GuestAttributes->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/tpu/v2alpha1/cloud_tpu.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().
MESSAGES
Google::Cloud::Tpu::V2alpha1::CloudTpu::GuestAttributes
A guest attributes.
Inherits from Protobuf::Message.
Accessors
$msg->query_path()/$msg->query_path($value)Type:
StringThe path to be queried. This can be the default namespace ('/') or a nested namespace ('/\<namespace\>/') or a specified key ('/\<namespace\>/\<key\>')
$msg->query_value()/$msg->query_value($value)Type:
Message(Google::Cloud::Tpu::V2alpha1::CloudTpu::GuestAttributesValue)The value of the requested queried path.
Google::Cloud::Tpu::V2alpha1::CloudTpu::GuestAttributesValue
Array of guest attribute namespace/key/value tuples.
Inherits from Protobuf::Message.
Accessors
$msg->items()/$msg->items($value)Type:
Message(Google::Cloud::Tpu::V2alpha1::CloudTpu::GuestAttributesEntry)The list of guest attributes entries.
Google::Cloud::Tpu::V2alpha1::CloudTpu::GuestAttributesEntry
A guest attributes namespace/key/value entry.
Inherits from Protobuf::Message.
Accessors
$msg->namespace()/$msg->namespace($value)Type:
StringNamespace for the guest attribute entry.
$msg->key()/$msg->key($value)Type:
StringKey for the guest attribute entry.
$msg->value()/$msg->value($value)Type:
StringValue for the guest attribute entry.
Google::Cloud::Tpu::V2alpha1::CloudTpu::AttachedDisk
A node-attached disk resource. Next ID: 8;
Inherits from Protobuf::Message.
Accessors
$msg->source_disk()/$msg->source_disk($value)Type:
StringSpecifies the full path to an existing disk. For example: "projects/my-project/zones/us-central1-c/disks/my-disk".
$msg->mode()/$msg->mode($value)Type:
Enum(Google::Cloud::Tpu::V2alpha1::AttachedDisk::DiskMode)The mode in which to attach this disk. If not specified, the default is READ_WRITE mode. Only applicable to data_disks.
Enum: AttachedDisk::DiskMode
DISK_MODE_UNSPECIFIED=>0READ_WRITE=>1READ_ONLY=>2
Google::Cloud::Tpu::V2alpha1::CloudTpu::SchedulingConfig
Sets the scheduling options for this node.
Inherits from Protobuf::Message.
Accessors
$msg->preemptible()/$msg->preemptible($value)Type:
BoolDefines whether the node is preemptible.
$msg->reserved()/$msg->reserved($value)Type:
BoolWhether the node is created under a reservation.
$msg->spot()/$msg->spot($value)Type:
BoolOptional. Defines whether the node is Spot VM.
Google::Cloud::Tpu::V2alpha1::CloudTpu::NetworkEndpoint
A network endpoint over which a TPU worker can be reached.
Inherits from Protobuf::Message.
Accessors
$msg->ip_address()/$msg->ip_address($value)Type:
StringThe internal IP address of this network endpoint.
$msg->port()/$msg->port($value)Type:
Int32The port of this network endpoint.
$msg->access_config()/$msg->access_config($value)Type:
Message(Google::Cloud::Tpu::V2alpha1::CloudTpu::AccessConfig)The access config for the TPU worker.
Google::Cloud::Tpu::V2alpha1::CloudTpu::AccessConfig
An access config attached to the TPU worker.
Inherits from Protobuf::Message.
Accessors
$msg->external_ip()/$msg->external_ip($value)Type:
StringOutput only. An external IP address associated with the TPU worker.
Google::Cloud::Tpu::V2alpha1::CloudTpu::NetworkConfig
Network related configurations.
Inherits from Protobuf::Message.
Accessors
$msg->network()/$msg->network($value)Type:
StringThe name of the network for the TPU node. It must be a preexisting Google Compute Engine network. If none is provided, "default" will be used.
$msg->subnetwork()/$msg->subnetwork($value)Type:
StringThe name of the subnetwork for the TPU node. It must be a preexisting Google Compute Engine subnetwork. If none is provided, "default" will be used.
$msg->enable_external_ips()/$msg->enable_external_ips($value)Type:
BoolIndicates that external IP addresses would be associated with the TPU workers. If set to false, the specified subnetwork or network should have Private Google Access enabled.
$msg->can_ip_forward()/$msg->can_ip_forward($value)Type:
BoolAllows the TPU node to send and receive packets with non-matching destination or source IPs. This is required if you plan to use the TPU workers to forward routes.
$msg->queue_count()/$msg->queue_count($value)Type:
Int32Optional. Specifies networking queue count for TPU VM instance's network interface.
Google::Cloud::Tpu::V2alpha1::CloudTpu::ServiceAccount
A service account.
Inherits from Protobuf::Message.
Accessors
$msg->email()/$msg->email($value)Type:
StringEmail address of the service account. If empty, default Compute service account will be used.
$msg->scope()/$msg->scope($value)Type:
StringThe list of scopes to be made available for this service account. If empty, access to all Cloud APIs will be allowed.
Google::Cloud::Tpu::V2alpha1::CloudTpu::Node
A TPU instance.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringOutput only. Immutable. The name of the TPU.
$msg->description()/$msg->description($value)Type:
StringThe user-supplied description of the TPU. Maximum of 512 characters.
$msg->accelerator_type()/$msg->accelerator_type($value)Type:
StringThe type of hardware accelerators associated with this node.
$msg->state()/$msg->state($value)Type:
Enum(Google::Cloud::Tpu::V2alpha1::Node::State)Output only. The current state for the TPU Node.
$msg->health_description()/$msg->health_description($value)Type:
StringOutput only. If this field is populated, it contains a description of why the TPU Node is unhealthy.
$msg->runtime_version()/$msg->runtime_version($value)Type:
StringRequired. The runtime version running in the Node.
$msg->network_config()/$msg->network_config($value)Type:
Message(Google::Cloud::Tpu::V2alpha1::CloudTpu::NetworkConfig)Network configurations for the TPU node. network_config and network_configs are mutually exclusive, you can only specify one of them. If both are specified, an error will be returned.
$msg->network_configs()/$msg->network_configs($value)Type:
Message(Google::Cloud::Tpu::V2alpha1::CloudTpu::NetworkConfig)Optional. Repeated network configurations for the TPU node. This field is used to specify multiple networks configs for the TPU node. network_config and network_configs are mutually exclusive, you can only specify one of them. If both are specified, an error will be returned.
$msg->cidr_block()/$msg->cidr_block($value)Type:
StringThe CIDR block that the TPU node will use when selecting an IP address. This CIDR block must be a /29 block; the Compute Engine networks API forbids a smaller block, and using a larger block would be wasteful (a node can only consume one IP address). Errors will occur if the CIDR block has already been used for a currently existing TPU node, the CIDR block conflicts with any subnetworks in the user's provided network, or the provided network is peered with another network that is using that CIDR block.
$msg->service_account()/$msg->service_account($value)Type:
Message(Google::Cloud::Tpu::V2alpha1::CloudTpu::ServiceAccount)The Google Cloud Platform Service Account to be used by the TPU node VMs. If None is specified, the default compute service account will be used.
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The time when the node was created.
$msg->scheduling_config()/$msg->scheduling_config($value)Type:
Message(Google::Cloud::Tpu::V2alpha1::CloudTpu::SchedulingConfig)The scheduling options for this node.
$msg->network_endpoints()/$msg->network_endpoints($value)Type:
Message(Google::Cloud::Tpu::V2alpha1::CloudTpu::NetworkEndpoint)Output only. The network endpoints where TPU workers can be accessed and sent work. It is recommended that runtime clients of the node reach out to the 0th entry in this map first.
$msg->health()/$msg->health($value)Type:
Enum(Google::Cloud::Tpu::V2alpha1::Node::Health)The health status of the TPU node.
$msg->labels()/$msg->labels($value)Type:
Message(Google::Cloud::Tpu::V2alpha1::CloudTpu::Node::LabelsEntry)Resource labels to represent user-provided metadata.
$msg->metadata()/$msg->metadata($value)Type:
Message(Google::Cloud::Tpu::V2alpha1::CloudTpu::Node::MetadataEntry)Custom metadata to apply to the TPU Node. Can set startup-script and shutdown-script
$msg->tags()/$msg->tags($value)Type:
StringTags to apply to the TPU Node. Tags are used to identify valid sources or targets for network firewalls.
$msg->id()/$msg->id($value)Type:
Int64Output only. The unique identifier for the TPU Node.
$msg->data_disks()/$msg->data_disks($value)Type:
Message(Google::Cloud::Tpu::V2alpha1::CloudTpu::AttachedDisk)The additional data disks for the Node.
$msg->api_version()/$msg->api_version($value)Type:
Enum(Google::Cloud::Tpu::V2alpha1::Node::ApiVersion)Output only. The API version that created this Node.
$msg->symptoms()/$msg->symptoms($value)Type:
Message(Google::Cloud::Tpu::V2alpha1::CloudTpu::Symptom)Output only. The Symptoms that have occurred to the TPU Node.
$msg->queued_resource()/$msg->queued_resource($value)Type:
StringOutput only. The qualified name of the QueuedResource that requested this Node.
$msg->accelerator_config()/$msg->accelerator_config($value)Type:
Message(Google::Cloud::Tpu::V2alpha1::CloudTpu::AcceleratorConfig)The AccleratorConfig for the TPU Node.
$msg->shielded_instance_config()/$msg->shielded_instance_config($value)Type:
Message(Google::Cloud::Tpu::V2alpha1::CloudTpu::ShieldedInstanceConfig)Shielded Instance options.
$msg->multislice_node()/$msg->multislice_node($value)Type:
BoolOutput only. Whether the Node belongs to a Multislice group.
$msg->autocheckpoint_enabled()/$msg->autocheckpoint_enabled($value)Type:
BoolOptional. Whether Autocheckpoint is enabled.
$msg->boot_disk_config()/$msg->boot_disk_config($value)Type:
Message(Google::Cloud::Tpu::V2alpha1::CloudTpu::BootDiskConfig)Optional. Boot disk configuration.
$msg->upcoming_maintenance()/$msg->upcoming_maintenance($value)Type:
Message(Google::Cloud::Tpu::V2alpha1::CloudTpu::UpcomingMaintenance)Output only. Upcoming maintenance on this TPU node.
Enum: Node::State
STATE_UNSPECIFIED=>0CREATING=>1READY=>2RESTARTING=>3REIMAGING=>4DELETING=>5REPAIRING=>6STOPPED=>8STOPPING=>9STARTING=>10PREEMPTED=>11TERMINATED=>12HIDING=>13HIDDEN=>14UNHIDING=>15UNKNOWN=>16
Enum: Node::Health
HEALTH_UNSPECIFIED=>0HEALTHY=>1TIMEOUT=>3UNHEALTHY_TENSORFLOW=>4UNHEALTHY_MAINTENANCE=>5
Enum: Node::ApiVersion
API_VERSION_UNSPECIFIED=>0V1_ALPHA1=>1V1=>2V2_ALPHA1=>3
Google::Cloud::Tpu::V2alpha1::CloudTpu::QueuedResource
A QueuedResource represents a request for resources that will be placed in a queue and fulfilled when the necessary resources are available.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringOutput only. Immutable. The name of the QueuedResource.
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The time when the QueuedResource was created.
$msg->tpu()/$msg->tpu($value)Type:
Message(Google::Cloud::Tpu::V2alpha1::CloudTpu::QueuedResource::Tpu)Defines a TPU resource.
$msg->best_effort()/$msg->best_effort($value)Type:
Message(Google::Cloud::Tpu::V2alpha1::CloudTpu::QueuedResource::BestEffort)The BestEffort tier.
$msg->guaranteed()/$msg->guaranteed($value)Type:
Message(Google::Cloud::Tpu::V2alpha1::CloudTpu::QueuedResource::Guaranteed)The Guaranteed tier.
$msg->spot()/$msg->spot($value)Type:
Message(Google::Cloud::Tpu::V2alpha1::CloudTpu::QueuedResource::Spot)Optional. The Spot tier.
$msg->queueing_policy()/$msg->queueing_policy($value)Type:
Message(Google::Cloud::Tpu::V2alpha1::CloudTpu::QueuedResource::QueueingPolicy)The queueing policy of the QueuedRequest.
$msg->state()/$msg->state($value)Type:
Message(Google::Cloud::Tpu::V2alpha1::CloudTpu::QueuedResourceState)Output only. State of the QueuedResource request.
$msg->reservation_name()/$msg->reservation_name($value)Type:
StringName of the reservation in which the resource should be provisioned. Format: projects/{project}/locations/{zone}/reservations/{reservation}
Google::Cloud::Tpu::V2alpha1::CloudTpu::QueuedResourceState
QueuedResourceState defines the details of the QueuedResource request.
Inherits from Protobuf::Message.
Accessors
$msg->state()/$msg->state($value)Type:
Enum(Google::Cloud::Tpu::V2alpha1::QueuedResourceState::State)State of the QueuedResource request.
$msg->creating_data()/$msg->creating_data($value)Type:
Message(Google::Cloud::Tpu::V2alpha1::CloudTpu::QueuedResourceState::CreatingData)Further data for the creating state.
$msg->accepted_data()/$msg->accepted_data($value)Type:
Message(Google::Cloud::Tpu::V2alpha1::CloudTpu::QueuedResourceState::AcceptedData)Further data for the accepted state.
$msg->provisioning_data()/$msg->provisioning_data($value)Type:
Message(Google::Cloud::Tpu::V2alpha1::CloudTpu::QueuedResourceState::ProvisioningData)Further data for the provisioning state.
$msg->failed_data()/$msg->failed_data($value)Type:
Message(Google::Cloud::Tpu::V2alpha1::CloudTpu::QueuedResourceState::FailedData)Further data for the failed state.
$msg->deleting_data()/$msg->deleting_data($value)Type:
Message(Google::Cloud::Tpu::V2alpha1::CloudTpu::QueuedResourceState::DeletingData)Further data for the deleting state.
$msg->active_data()/$msg->active_data($value)Type:
Message(Google::Cloud::Tpu::V2alpha1::CloudTpu::QueuedResourceState::ActiveData)Further data for the active state.
$msg->suspending_data()/$msg->suspending_data($value)Type:
Message(Google::Cloud::Tpu::V2alpha1::CloudTpu::QueuedResourceState::SuspendingData)Further data for the suspending state.
$msg->suspended_data()/$msg->suspended_data($value)Type:
Message(Google::Cloud::Tpu::V2alpha1::CloudTpu::QueuedResourceState::SuspendedData)Further data for the suspended state.
$msg->state_initiator()/$msg->state_initiator($value)Type:
Enum(Google::Cloud::Tpu::V2alpha1::QueuedResourceState::StateInitiator)Output only. The initiator of the QueuedResources's current state. Used to indicate whether the SUSPENDING/SUSPENDED state was initiated by the user or the service.
Enum: QueuedResourceState::State
STATE_UNSPECIFIED=>0CREATING=>1ACCEPTED=>2PROVISIONING=>3FAILED=>4DELETING=>5ACTIVE=>6SUSPENDING=>7SUSPENDED=>8WAITING_FOR_RESOURCES=>9
Enum: QueuedResourceState::StateInitiator
STATE_INITIATOR_UNSPECIFIED=>0USER=>1SERVICE=>2
Google::Cloud::Tpu::V2alpha1::CloudTpu::ListNodesRequest
Request for [ListNodes][google.cloud.tpu.v2alpha1.Tpu.ListNodes].
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent resource name.
$msg->page_size()/$msg->page_size($value)Type:
Int32The maximum number of items to return.
$msg->page_token()/$msg->page_token($value)Type:
StringThe next_page_token value returned from a previous List request, if any.
Google::Cloud::Tpu::V2alpha1::CloudTpu::ListNodesResponse
Response for [ListNodes][google.cloud.tpu.v2alpha1.Tpu.ListNodes].
Inherits from Protobuf::Message.
Accessors
$msg->nodes()/$msg->nodes($value)Type:
Message(Google::Cloud::Tpu::V2alpha1::CloudTpu::Node)The listed nodes.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringThe next page token or empty if none.
$msg->unreachable()/$msg->unreachable($value)Type:
StringLocations that could not be reached.
Google::Cloud::Tpu::V2alpha1::CloudTpu::GetNodeRequest
Request for [GetNode][google.cloud.tpu.v2alpha1.Tpu.GetNode].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The resource name.
Google::Cloud::Tpu::V2alpha1::CloudTpu::CreateNodeRequest
Request for [CreateNode][google.cloud.tpu.v2alpha1.Tpu.CreateNode].
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent resource name.
$msg->node_id()/$msg->node_id($value)Type:
StringThe unqualified resource name.
$msg->node()/$msg->node($value)Type:
Message(Google::Cloud::Tpu::V2alpha1::CloudTpu::Node)Required. The node.
$msg->request_id()/$msg->request_id($value)Type:
StringIdempotent request UUID.
Google::Cloud::Tpu::V2alpha1::CloudTpu::DeleteNodeRequest
Request for [DeleteNode][google.cloud.tpu.v2alpha1.Tpu.DeleteNode].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The resource name.
$msg->request_id()/$msg->request_id($value)Type:
StringIdempotent request UUID.
Google::Cloud::Tpu::V2alpha1::CloudTpu::StopNodeRequest
Request for [StopNode][google.cloud.tpu.v2alpha1.Tpu.StopNode].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The resource name.
Google::Cloud::Tpu::V2alpha1::CloudTpu::StartNodeRequest
Request for [StartNode][google.cloud.tpu.v2alpha1.Tpu.StartNode].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The resource name.
Google::Cloud::Tpu::V2alpha1::CloudTpu::UpdateNodeRequest
Request for [UpdateNode][google.cloud.tpu.v2alpha1.Tpu.UpdateNode].
Inherits from Protobuf::Message.
Accessors
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)Required. Mask of fields from [Node][Tpu.Node] to update. Supported fields: [description, tags, labels, metadata, network_config.enable_external_ips].
$msg->node()/$msg->node($value)Type:
Message(Google::Cloud::Tpu::V2alpha1::CloudTpu::Node)Required. The node. Only fields specified in update_mask are updated.
Google::Cloud::Tpu::V2alpha1::CloudTpu::ListQueuedResourcesRequest
Request for [ListQueuedResources][google.cloud.tpu.v2alpha1.Tpu.ListQueuedResources].
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent resource name.
$msg->page_size()/$msg->page_size($value)Type:
Int32The maximum number of items to return.
$msg->page_token()/$msg->page_token($value)Type:
StringThe next_page_token value returned from a previous List request, if any.
Google::Cloud::Tpu::V2alpha1::CloudTpu::ListQueuedResourcesResponse
Response for [ListQueuedResources][google.cloud.tpu.v2alpha1.Tpu.ListQueuedResources].
Inherits from Protobuf::Message.
Accessors
$msg->queued_resources()/$msg->queued_resources($value)Type:
Message(Google::Cloud::Tpu::V2alpha1::CloudTpu::QueuedResource)The listed queued resources.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringThe next page token or empty if none.
$msg->unreachable()/$msg->unreachable($value)Type:
StringLocations that could not be reached.
Google::Cloud::Tpu::V2alpha1::CloudTpu::GetQueuedResourceRequest
Request for [GetQueuedResource][google.cloud.tpu.v2alpha1.Tpu.GetQueuedResource]
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The resource name.
Google::Cloud::Tpu::V2alpha1::CloudTpu::CreateQueuedResourceRequest
Request for [CreateQueuedResource][google.cloud.tpu.v2alpha1.Tpu.CreateQueuedResource].
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent resource name.
$msg->queued_resource_id()/$msg->queued_resource_id($value)Type:
StringThe unqualified resource name. Should follow the `^[A-Za-z0-9_.~+%-]+$` regex format.
$msg->queued_resource()/$msg->queued_resource($value)Type:
Message(Google::Cloud::Tpu::V2alpha1::CloudTpu::QueuedResource)Required. The queued resource.
$msg->request_id()/$msg->request_id($value)Type:
StringIdempotent request UUID.
Google::Cloud::Tpu::V2alpha1::CloudTpu::DeleteQueuedResourceRequest
Request for [DeleteQueuedResource][google.cloud.tpu.v2alpha1.Tpu.DeleteQueuedResource].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The resource name.
$msg->request_id()/$msg->request_id($value)Type:
StringIdempotent request UUID.
$msg->force()/$msg->force($value)Type:
BoolIf set to true, all running nodes belonging to this queued resource will be deleted first and then the queued resource will be deleted. Otherwise (i.e. force=false), the queued resource will only be deleted if its nodes have already been deleted or the queued resource is in the ACCEPTED, FAILED, or SUSPENDED state.
Google::Cloud::Tpu::V2alpha1::CloudTpu::ResetQueuedResourceRequest
Request for [ResetQueuedResource][google.cloud.tpu.v2alpha1.Tpu.ResetQueuedResource].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the queued resource.
Google::Cloud::Tpu::V2alpha1::CloudTpu::ServiceIdentity
The per-product per-project service identity for Cloud TPU service.
Inherits from Protobuf::Message.
Accessors
$msg->email()/$msg->email($value)Type:
StringThe email address of the service identity.
Google::Cloud::Tpu::V2alpha1::CloudTpu::GenerateServiceIdentityRequest
Request for [GenerateServiceIdentity][google.cloud.tpu.v2alpha1.Tpu.GenerateServiceIdentity].
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent resource name.
Google::Cloud::Tpu::V2alpha1::CloudTpu::GenerateServiceIdentityResponse
Response for [GenerateServiceIdentity][google.cloud.tpu.v2alpha1.Tpu.GenerateServiceIdentity].
Inherits from Protobuf::Message.
Accessors
$msg->identity()/$msg->identity($value)Type:
Message(Google::Cloud::Tpu::V2alpha1::CloudTpu::ServiceIdentity)ServiceIdentity that was created or retrieved.
Google::Cloud::Tpu::V2alpha1::CloudTpu::AcceleratorType
A accelerator type that a Node can be configured with.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringThe resource name.
$msg->type()/$msg->type($value)Type:
StringThe accelerator type.
$msg->accelerator_configs()/$msg->accelerator_configs($value)Type:
Message(Google::Cloud::Tpu::V2alpha1::CloudTpu::AcceleratorConfig)The accelerator config.
Google::Cloud::Tpu::V2alpha1::CloudTpu::GetAcceleratorTypeRequest
Request for [GetAcceleratorType][google.cloud.tpu.v2alpha1.Tpu.GetAcceleratorType].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The resource name.
Google::Cloud::Tpu::V2alpha1::CloudTpu::ListAcceleratorTypesRequest
Request for [ListAcceleratorTypes][google.cloud.tpu.v2alpha1.Tpu.ListAcceleratorTypes].
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent resource name.
$msg->page_size()/$msg->page_size($value)Type:
Int32The maximum number of items to return.
$msg->page_token()/$msg->page_token($value)Type:
StringThe next_page_token value returned from a previous List request, if any.
$msg->filter()/$msg->filter($value)Type:
StringList filter.
$msg->order_by()/$msg->order_by($value)Type:
StringSort results.
Google::Cloud::Tpu::V2alpha1::CloudTpu::ListAcceleratorTypesResponse
Response for [ListAcceleratorTypes][google.cloud.tpu.v2alpha1.Tpu.ListAcceleratorTypes].
Inherits from Protobuf::Message.
Accessors
$msg->accelerator_types()/$msg->accelerator_types($value)Type:
Message(Google::Cloud::Tpu::V2alpha1::CloudTpu::AcceleratorType)The listed nodes.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringThe next page token or empty if none.
$msg->unreachable()/$msg->unreachable($value)Type:
StringLocations that could not be reached.
Google::Cloud::Tpu::V2alpha1::CloudTpu::RuntimeVersion
A runtime version that a Node can be configured with.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringThe resource name.
$msg->version()/$msg->version($value)Type:
StringThe runtime version.
Google::Cloud::Tpu::V2alpha1::CloudTpu::GetRuntimeVersionRequest
Request for [GetRuntimeVersion][google.cloud.tpu.v2alpha1.Tpu.GetRuntimeVersion].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The resource name.
Google::Cloud::Tpu::V2alpha1::CloudTpu::ListRuntimeVersionsRequest
Request for [ListRuntimeVersions][google.cloud.tpu.v2alpha1.Tpu.ListRuntimeVersions].
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent resource name.
$msg->page_size()/$msg->page_size($value)Type:
Int32The maximum number of items to return.
$msg->page_token()/$msg->page_token($value)Type:
StringThe next_page_token value returned from a previous List request, if any.
$msg->filter()/$msg->filter($value)Type:
StringList filter.
$msg->order_by()/$msg->order_by($value)Type:
StringSort results.
Google::Cloud::Tpu::V2alpha1::CloudTpu::ListRuntimeVersionsResponse
Response for [ListRuntimeVersions][google.cloud.tpu.v2alpha1.Tpu.ListRuntimeVersions].
Inherits from Protobuf::Message.
Accessors
$msg->runtime_versions()/$msg->runtime_versions($value)Type:
Message(Google::Cloud::Tpu::V2alpha1::CloudTpu::RuntimeVersion)The listed nodes.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringThe next page token or empty if none.
$msg->unreachable()/$msg->unreachable($value)Type:
StringLocations that could not be reached.
Google::Cloud::Tpu::V2alpha1::CloudTpu::OperationMetadata
Metadata describing an [Operation][google.longrunning.Operation]
Inherits from Protobuf::Message.
Accessors
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The time the operation was created.
$msg->end_time()/$msg->end_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The time the operation finished running.
$msg->target()/$msg->target($value)Type:
StringTarget of the operation - for example projects/project-1/connectivityTests/test-1
$msg->verb()/$msg->verb($value)Type:
StringName of the verb executed by the operation.
$msg->status_detail()/$msg->status_detail($value)Type:
StringHuman-readable status of the operation, if any.
$msg->cancel_requested()/$msg->cancel_requested($value)Type:
BoolSpecifies if cancellation was requested for the operation.
$msg->api_version()/$msg->api_version($value)Type:
StringAPI version.
Google::Cloud::Tpu::V2alpha1::CloudTpu::Symptom
A Symptom instance.
Inherits from Protobuf::Message.
Accessors
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Timestamp when the Symptom is created.
$msg->symptom_type()/$msg->symptom_type($value)Type:
Enum(Google::Cloud::Tpu::V2alpha1::Symptom::SymptomType)Type of the Symptom.
$msg->details()/$msg->details($value)Type:
StringDetailed information of the current Symptom.
$msg->worker_id()/$msg->worker_id($value)Type:
StringA string used to uniquely distinguish a worker within a TPU node.
Enum: Symptom::SymptomType
SYMPTOM_TYPE_UNSPECIFIED=>0LOW_MEMORY=>1OUT_OF_MEMORY=>2EXECUTE_TIMED_OUT=>3MESH_BUILD_FAIL=>4HBM_OUT_OF_MEMORY=>5PROJECT_ABUSE=>6
Google::Cloud::Tpu::V2alpha1::CloudTpu::GetGuestAttributesRequest
Request for [GetGuestAttributes][google.cloud.tpu.v2alpha1.Tpu.GetGuestAttributes].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The resource name.
$msg->query_path()/$msg->query_path($value)Type:
StringThe guest attributes path to be queried.
$msg->worker_ids()/$msg->worker_ids($value)Type:
StringThe 0-based worker ID. If it is empty, all workers' GuestAttributes will be returned.
Google::Cloud::Tpu::V2alpha1::CloudTpu::GetGuestAttributesResponse
Response for [GetGuestAttributes][google.cloud.tpu.v2alpha1.Tpu.GetGuestAttributes].
Inherits from Protobuf::Message.
Accessors
$msg->guest_attributes()/$msg->guest_attributes($value)Type:
Message(Google::Cloud::Tpu::V2alpha1::CloudTpu::GuestAttributes)The guest attributes for the TPU workers.
Google::Cloud::Tpu::V2alpha1::CloudTpu::SimulateMaintenanceEventRequest
Request for [SimulateMaintenanceEvent][google.cloud.tpu.v2alpha1.Tpu.SimulateMaintenanceEvent].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The resource name.
$msg->worker_ids()/$msg->worker_ids($value)Type:
StringThe 0-based worker ID. If it is empty, worker ID 0 will be selected for maintenance event simulation. A maintenance event will only be fired on the first specified worker ID. Future implementations may support firing on multiple workers.
Google::Cloud::Tpu::V2alpha1::CloudTpu::PerformMaintenanceRequest
Request for [PerformMaintenance][google.cloud.tpu.v2alpha1.Tpu.PerformMaintenance].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The resource name.
Google::Cloud::Tpu::V2alpha1::CloudTpu::PerformMaintenanceQueuedResourceRequest
Request for [PerformMaintenanceQueuedResource][google.cloud.tpu.v2alpha1.Tpu.PerformMaintenanceQueuedResource].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the QueuedResource which holds the nodes to perform maintenance on.
$msg->node_names()/$msg->node_names($value)Type:
StringThe names of the nodes to perform maintenance on.
Google::Cloud::Tpu::V2alpha1::CloudTpu::Reservation
A reservation describes the amount of a resource 'allotted' for a defined period of time.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringThe reservation name with the format: projects/{projectID}/locations/{location}/reservations/{reservationID}
$msg->standard()/$msg->standard($value)Type:
Message(Google::Cloud::Tpu::V2alpha1::CloudTpu::Reservation::Standard)A standard reservation.
$msg->state()/$msg->state($value)Type:
Enum(Google::Cloud::Tpu::V2alpha1::Reservation::State)Output only. The state of the Reservation.
Enum: Reservation::State
STATE_UNSPECIFIED=>0APPROVED=>3PROVISIONING=>4ACTIVE=>5DEPROVISIONING=>6EXPIRED=>7FAILED=>8
Google::Cloud::Tpu::V2alpha1::CloudTpu::ListReservationsRequest
Request for [ListReservations][google.cloud.tpu.v2alpha1.Tpu.ListReservations].
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent for reservations.
$msg->page_size()/$msg->page_size($value)Type:
Int32The maximum number of items to return. Defaults to 0 if not specified, which means no limit.
$msg->page_token()/$msg->page_token($value)Type:
StringThe next_page_token value returned from a previous List request, if any.
Google::Cloud::Tpu::V2alpha1::CloudTpu::ListReservationsResponse
Response for [ListReservations][google.cloud.tpu.v2alpha1.Tpu.ListReservations].
Inherits from Protobuf::Message.
Accessors
$msg->reservations()/$msg->reservations($value)Type:
Message(Google::Cloud::Tpu::V2alpha1::CloudTpu::Reservation)The listed reservations.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringThe next page token or empty if none.
Google::Cloud::Tpu::V2alpha1::CloudTpu::AcceleratorConfig
A TPU accelerator configuration.
Inherits from Protobuf::Message.
Accessors
$msg->type()/$msg->type($value)Type:
Enum(Google::Cloud::Tpu::V2alpha1::AcceleratorConfig::Type)Required. Type of TPU.
$msg->topology()/$msg->topology($value)Type:
StringRequired. Topology of TPU in chips.
Enum: AcceleratorConfig::Type
TYPE_UNSPECIFIED=>0V2=>2V3=>4V4=>7V5LITE_POD=>9V5P=>10V6E=>11
Google::Cloud::Tpu::V2alpha1::CloudTpu::ShieldedInstanceConfig
A set of Shielded Instance options.
Inherits from Protobuf::Message.
Accessors
$msg->enable_secure_boot()/$msg->enable_secure_boot($value)Type:
BoolDefines whether the instance has Secure Boot enabled.
Google::Cloud::Tpu::V2alpha1::CloudTpu::BootDiskConfig
Boot disk configurations.
Inherits from Protobuf::Message.
Accessors
$msg->customer_encryption_key()/$msg->customer_encryption_key($value)Type:
Message(Google::Cloud::Tpu::V2alpha1::CloudTpu::CustomerEncryptionKey)Optional. Customer encryption key for boot disk.
$msg->enable_confidential_compute()/$msg->enable_confidential_compute($value)Type:
BoolOptional. Whether the boot disk will be created with confidential compute mode.
Google::Cloud::Tpu::V2alpha1::CloudTpu::CustomerEncryptionKey
Customer's encryption key.
Inherits from Protobuf::Message.
Accessors
$msg->kms_key_name()/$msg->kms_key_name($value)Type:
StringThe name of the encryption key that is stored in Google Cloud KMS. For example: <pre class="lang-html">"kmsKeyName": "projects/ <var class="apiparam">kms_project_id</var>/locations/ <var class="apiparam">region</var>/keyRings/<var class="apiparam"> key_region</var>/cryptoKeys/<var class="apiparam">key</var> </pre> The fully-qualifed key name may be returned for resource GET requests. For example: <pre class="lang-html">"kmsKeyName": "projects/ <var class="apiparam">kms_project_id</var>/locations/ <var class="apiparam">region</var>/keyRings/<var class="apiparam"> key_region</var>/cryptoKeys/<var class="apiparam">key</var> /cryptoKeyVersions/1</pre>
Google::Cloud::Tpu::V2alpha1::CloudTpu::UpcomingMaintenance
Upcoming Maintenance notification information.
Inherits from Protobuf::Message.
Accessors
$msg->type()/$msg->type($value)Type:
Enum(Google::Cloud::Tpu::V2alpha1::UpcomingMaintenance::MaintenanceType)Defines the type of maintenance.
$msg->can_reschedule()/$msg->can_reschedule($value)Type:
BoolIndicates if the maintenance can be customer triggered.
$msg->window_start_time()/$msg->window_start_time($value)Type:
StringThe current start time of the maintenance window. This timestamp value is in RFC3339 text format.
$msg->window_end_time()/$msg->window_end_time($value)Type:
StringThe time by which the maintenance disruption will be completed. This timestamp value is in RFC3339 text format.
$msg->latest_window_start_time()/$msg->latest_window_start_time($value)Type:
StringThe latest time for the planned maintenance window to start. This timestamp value is in RFC3339 text format.
$msg->maintenance_status()/$msg->maintenance_status($value)Type:
Enum(Google::Cloud::Tpu::V2alpha1::UpcomingMaintenance::MaintenanceStatus)The status of the maintenance.
Enum: UpcomingMaintenance::MaintenanceType
UNKNOWN_TYPE=>0SCHEDULED=>1UNSCHEDULED=>2
Enum: UpcomingMaintenance::MaintenanceStatus
UNKNOWN=>0PENDING=>1ONGOING=>2
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Tpu::V2alpha1::CloudTpu::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.