Cloud TPU V1 API - Class Google::Cloud::Tpu::V1::Node (v0.4.0)

Reference documentation and code samples for the Cloud TPU V1 API class Google::Cloud::Tpu::V1::Node.

A TPU instance.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#accelerator_type

def accelerator_type() -> ::String
Returns
  • (::String) — Required. The type of hardware accelerators associated with this node.

#accelerator_type=

def accelerator_type=(value) -> ::String
Parameter
  • value (::String) — Required. The type of hardware accelerators associated with this node.
Returns
  • (::String) — Required. The type of hardware accelerators associated with this node.

#api_version

def api_version() -> ::Google::Cloud::Tpu::V1::Node::ApiVersion
Returns

#cidr_block

def cidr_block() -> ::String
Returns
  • (::String) — 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.

#cidr_block=

def cidr_block=(value) -> ::String
Parameter
  • value (::String) — 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.
Returns
  • (::String) — 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.

#create_time

def create_time() -> ::Google::Protobuf::Timestamp
Returns

#description

def description() -> ::String
Returns
  • (::String) — The user-supplied description of the TPU. Maximum of 512 characters.

#description=

def description=(value) -> ::String
Parameter
  • value (::String) — The user-supplied description of the TPU. Maximum of 512 characters.
Returns
  • (::String) — The user-supplied description of the TPU. Maximum of 512 characters.

#health

def health() -> ::Google::Cloud::Tpu::V1::Node::Health
Returns

#health=

def health=(value) -> ::Google::Cloud::Tpu::V1::Node::Health
Parameter
Returns

#health_description

def health_description() -> ::String
Returns
  • (::String) — Output only. If this field is populated, it contains a description of why the TPU Node is unhealthy.

#ip_address

def ip_address() -> ::String
Returns
  • (::String) — Output only. DEPRECATED! Use network_endpoints instead. The network address for the TPU Node as visible to Compute Engine instances.

#ip_address=

def ip_address=(value) -> ::String
Parameter
  • value (::String) — Output only. DEPRECATED! Use network_endpoints instead. The network address for the TPU Node as visible to Compute Engine instances.
Returns
  • (::String) — Output only. DEPRECATED! Use network_endpoints instead. The network address for the TPU Node as visible to Compute Engine instances.

#labels

def labels() -> ::Google::Protobuf::Map{::String => ::String}
Returns
  • (::Google::Protobuf::Map{::String => ::String}) — Resource labels to represent user-provided metadata.

#labels=

def labels=(value) -> ::Google::Protobuf::Map{::String => ::String}
Parameter
  • value (::Google::Protobuf::Map{::String => ::String}) — Resource labels to represent user-provided metadata.
Returns
  • (::Google::Protobuf::Map{::String => ::String}) — Resource labels to represent user-provided metadata.

#name

def name() -> ::String
Returns
  • (::String) — Output only. Immutable. The name of the TPU

#network

def network() -> ::String
Returns
  • (::String) — The name of a network they wish to peer the TPU node to. It must be a preexisting Compute Engine network inside of the project on which this API has been activated. If none is provided, "default" will be used.

#network=

def network=(value) -> ::String
Parameter
  • value (::String) — The name of a network they wish to peer the TPU node to. It must be a preexisting Compute Engine network inside of the project on which this API has been activated. If none is provided, "default" will be used.
Returns
  • (::String) — The name of a network they wish to peer the TPU node to. It must be a preexisting Compute Engine network inside of the project on which this API has been activated. If none is provided, "default" will be used.

#network_endpoints

def network_endpoints() -> ::Array<::Google::Cloud::Tpu::V1::NetworkEndpoint>
Returns
  • (::Array<::Google::Cloud::Tpu::V1::NetworkEndpoint>) — Output only. The network endpoints where TPU workers can be accessed and sent work. It is recommended that Tensorflow clients of the node reach out to the 0th entry in this map first.

#port

def port() -> ::String
Returns
  • (::String) — Output only. DEPRECATED! Use network_endpoints instead. The network port for the TPU Node as visible to Compute Engine instances.

#port=

def port=(value) -> ::String
Parameter
  • value (::String) — Output only. DEPRECATED! Use network_endpoints instead. The network port for the TPU Node as visible to Compute Engine instances.
Returns
  • (::String) — Output only. DEPRECATED! Use network_endpoints instead. The network port for the TPU Node as visible to Compute Engine instances.

#scheduling_config

def scheduling_config() -> ::Google::Cloud::Tpu::V1::SchedulingConfig
Returns

#scheduling_config=

def scheduling_config=(value) -> ::Google::Cloud::Tpu::V1::SchedulingConfig
Parameter
Returns

#service_account

def service_account() -> ::String
Returns
  • (::String) — Output only. The service account used to run the tensor flow services within the node. To share resources, including Google Cloud Storage data, with the Tensorflow job running in the Node, this account must have permissions to that data.

#state

def state() -> ::Google::Cloud::Tpu::V1::Node::State
Returns

#symptoms

def symptoms() -> ::Array<::Google::Cloud::Tpu::V1::Symptom>
Returns

#tensorflow_version

def tensorflow_version() -> ::String
Returns
  • (::String) — Required. The version of Tensorflow running in the Node.

#tensorflow_version=

def tensorflow_version=(value) -> ::String
Parameter
  • value (::String) — Required. The version of Tensorflow running in the Node.
Returns
  • (::String) — Required. The version of Tensorflow running in the Node.

#use_service_networking

def use_service_networking() -> ::Boolean
Returns
  • (::Boolean) — Whether the VPC peering for the node is set up through Service Networking API. The VPC Peering should be set up before provisioning the node. If this field is set, cidr_block field should not be specified. If the network, that you want to peer the TPU Node to, is Shared VPC networks, the node must be created with this this field enabled.

#use_service_networking=

def use_service_networking=(value) -> ::Boolean
Parameter
  • value (::Boolean) — Whether the VPC peering for the node is set up through Service Networking API. The VPC Peering should be set up before provisioning the node. If this field is set, cidr_block field should not be specified. If the network, that you want to peer the TPU Node to, is Shared VPC networks, the node must be created with this this field enabled.
Returns
  • (::Boolean) — Whether the VPC peering for the node is set up through Service Networking API. The VPC Peering should be set up before provisioning the node. If this field is set, cidr_block field should not be specified. If the network, that you want to peer the TPU Node to, is Shared VPC networks, the node must be created with this this field enabled.