class Google::Apis::TpuV2alpha1::Node

A TPU instance.

Attributes

accelerator_type[RW]

The type of hardware accelerators associated with this node. Corresponds to the JSON property ‘acceleratorType` @return [String]

api_version[RW]

Output only. The API version that created this Node. Corresponds to the JSON property ‘apiVersion` @return [String]

cidr_block[RW]

The CIDR block that the TPU node will use when selecting an IP address. This CIDR block must be a /29 block; the Compute Engine networks API forbids a smaller block, and using a larger block would be wasteful (a node can only consume one IP address). Errors will occur if the CIDR block has already been used for a currently existing TPU node, the CIDR block conflicts with any subnetworks in the user’s provided network, or the provided network is peered with another network that is using that CIDR block. Corresponds to the JSON property ‘cidrBlock` @return [String]

create_time[RW]

Output only. The time when the node was created. Corresponds to the JSON property ‘createTime` @return [String]

data_disks[RW]

The additional data disks for the Node. Corresponds to the JSON property ‘dataDisks` @return [Array<Google::Apis::TpuV2alpha1::AttachedDisk>]

description[RW]

The user-supplied description of the TPU. Maximum of 512 characters. Corresponds to the JSON property ‘description` @return [String]

health[RW]

The health status of the TPU node. Corresponds to the JSON property ‘health` @return [String]

health_description[RW]

Output only. If this field is populated, it contains a description of why the TPU Node is unhealthy. Corresponds to the JSON property ‘healthDescription` @return [String]

id[RW]

Output only. The unique identifier for the TPU Node. Corresponds to the JSON property ‘id` @return [Fixnum]

labels[RW]

Resource labels to represent user-provided metadata. Corresponds to the JSON property ‘labels` @return [Hash<String,String>]

metadata[RW]

Custom metadata to apply to the TPU Node. Can set startup-script and shutdown- script Corresponds to the JSON property ‘metadata` @return [Hash<String,String>]

name[RW]

Output only. Immutable. The name of the TPU. Corresponds to the JSON property ‘name` @return [String]

network_config[RW]

Network related configurations. Corresponds to the JSON property ‘networkConfig` @return [Google::Apis::TpuV2alpha1::NetworkConfig]

network_endpoints[RW]

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. Corresponds to the JSON property ‘networkEndpoints` @return [Array<Google::Apis::TpuV2alpha1::NetworkEndpoint>]

runtime_version[RW]

Required. The runtime version running in the Node. Corresponds to the JSON property ‘runtimeVersion` @return [String]

scheduling_config[RW]

Sets the scheduling options for this node. Corresponds to the JSON property ‘schedulingConfig` @return [Google::Apis::TpuV2alpha1::SchedulingConfig]

service_account[RW]

A service account. Corresponds to the JSON property ‘serviceAccount` @return [Google::Apis::TpuV2alpha1::ServiceAccount]

state[RW]

Output only. The current state for the TPU Node. Corresponds to the JSON property ‘state` @return [String]

symptoms[RW]

Output only. The Symptoms that have occurred to the TPU Node. Corresponds to the JSON property ‘symptoms` @return [Array<Google::Apis::TpuV2alpha1::Symptom>]

tags[RW]

Tags to apply to the TPU Node. Tags are used to identify valid sources or targets for network firewalls. Corresponds to the JSON property ‘tags` @return [Array<String>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/tpu_v2alpha1/classes.rb, line 646
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/tpu_v2alpha1/classes.rb, line 651
def update!(**args)
  @accelerator_type = args[:accelerator_type] if args.key?(:accelerator_type)
  @api_version = args[:api_version] if args.key?(:api_version)
  @cidr_block = args[:cidr_block] if args.key?(:cidr_block)
  @create_time = args[:create_time] if args.key?(:create_time)
  @data_disks = args[:data_disks] if args.key?(:data_disks)
  @description = args[:description] if args.key?(:description)
  @health = args[:health] if args.key?(:health)
  @health_description = args[:health_description] if args.key?(:health_description)
  @id = args[:id] if args.key?(:id)
  @labels = args[:labels] if args.key?(:labels)
  @metadata = args[:metadata] if args.key?(:metadata)
  @name = args[:name] if args.key?(:name)
  @network_config = args[:network_config] if args.key?(:network_config)
  @network_endpoints = args[:network_endpoints] if args.key?(:network_endpoints)
  @runtime_version = args[:runtime_version] if args.key?(:runtime_version)
  @scheduling_config = args[:scheduling_config] if args.key?(:scheduling_config)
  @service_account = args[:service_account] if args.key?(:service_account)
  @state = args[:state] if args.key?(:state)
  @symptoms = args[:symptoms] if args.key?(:symptoms)
  @tags = args[:tags] if args.key?(:tags)
end