Class: Google::Apis::TpuV1alpha1::Node
- Inherits:
-
Object
- Object
- Google::Apis::TpuV1alpha1::Node
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/tpu_v1alpha1/classes.rb,
generated/google/apis/tpu_v1alpha1/representations.rb,
generated/google/apis/tpu_v1alpha1/representations.rb
Overview
A TPU instance.
Instance Attribute Summary collapse
-
#accelerator_type ⇒ String
The type of hardware accelerators associated with this node.
-
#cidr_block ⇒ String
The CIDR block that the TPU node will use when selecting //an IP address.
-
#create_time ⇒ String
The time when the node was created.
-
#description ⇒ String
The user-supplied description of the TPU.
-
#health_description ⇒ String
If this field is populated, it contains a description of why the TPU Node is unhealthy.
-
#ip_address ⇒ String
Output only.
-
#name ⇒ String
The immutable name of the TPU Corresponds to the JSON property
name
. -
#network ⇒ String
The name of a network they wish to peer the TPU node to.
-
#network_endpoints ⇒ Array<Google::Apis::TpuV1alpha1::NetworkEndpoint>
Output only.
-
#port ⇒ String
Output only.
-
#service_account ⇒ String
The service account used to run the tensor flow services within the node.
-
#state ⇒ String
The current state for the TPU Node.
-
#tensorflow_version ⇒ String
The version of Tensorflow running in the Node.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Node
constructor
A new instance of Node.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Node
Returns a new instance of Node
279 280 281 |
# File 'generated/google/apis/tpu_v1alpha1/classes.rb', line 279 def initialize(**args) update!(**args) end |
Instance Attribute Details
#accelerator_type ⇒ String
The type of hardware accelerators associated with this node.
Required.
Corresponds to the JSON property acceleratorType
192 193 194 |
# File 'generated/google/apis/tpu_v1alpha1/classes.rb', line 192 def accelerator_type @accelerator_type end |
#cidr_block ⇒ String
The CIDR block that the TPU node will use when selecting //an IP address.
This CIDR block must be a /29 block; the GCE 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.
Required.
Corresponds to the JSON property cidrBlock
204 205 206 |
# File 'generated/google/apis/tpu_v1alpha1/classes.rb', line 204 def cidr_block @cidr_block end |
#create_time ⇒ String
The time when the node was created.
Output only.
Corresponds to the JSON property createTime
210 211 212 |
# File 'generated/google/apis/tpu_v1alpha1/classes.rb', line 210 def create_time @create_time end |
#description ⇒ String
The user-supplied description of the TPU. Maximum of 512 characters.
Corresponds to the JSON property description
215 216 217 |
# File 'generated/google/apis/tpu_v1alpha1/classes.rb', line 215 def description @description end |
#health_description ⇒ String
If this field is populated, it contains a description of why the TPU Node
is unhealthy.
Output only.
Corresponds to the JSON property healthDescription
222 223 224 |
# File 'generated/google/apis/tpu_v1alpha1/classes.rb', line 222 def health_description @health_description end |
#ip_address ⇒ String
Output only.
DEPRECATED! Use network_endpoints instead.
The network address for the TPU Node as visible to GCE instances.
Corresponds to the JSON property ipAddress
229 230 231 |
# File 'generated/google/apis/tpu_v1alpha1/classes.rb', line 229 def ip_address @ip_address end |
#name ⇒ String
The immutable name of the TPU
Corresponds to the JSON property name
234 235 236 |
# File 'generated/google/apis/tpu_v1alpha1/classes.rb', line 234 def name @name end |
#network ⇒ String
The name of a network they wish to peer the TPU node to. It must be a
preexisting GCE network inside of the project on which this API has been
activated. If none is provided, "default" will be used.
Corresponds to the JSON property network
241 242 243 |
# File 'generated/google/apis/tpu_v1alpha1/classes.rb', line 241 def network @network end |
#network_endpoints ⇒ Array<Google::Apis::TpuV1alpha1::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.
Corresponds to the JSON property networkEndpoints
249 250 251 |
# File 'generated/google/apis/tpu_v1alpha1/classes.rb', line 249 def network_endpoints @network_endpoints end |
#port ⇒ String
Output only.
DEPRECATED! Use network_endpoints instead.
The network port for the TPU Node as visible to GCE instances.
Corresponds to the JSON property port
256 257 258 |
# File 'generated/google/apis/tpu_v1alpha1/classes.rb', line 256 def port @port end |
#service_account ⇒ String
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.
Output only.
Corresponds to the JSON property serviceAccount
265 266 267 |
# File 'generated/google/apis/tpu_v1alpha1/classes.rb', line 265 def service_account @service_account end |
#state ⇒ String
The current state for the TPU Node.
Output only.
Corresponds to the JSON property state
271 272 273 |
# File 'generated/google/apis/tpu_v1alpha1/classes.rb', line 271 def state @state end |
#tensorflow_version ⇒ String
The version of Tensorflow running in the Node.
Required.
Corresponds to the JSON property tensorflowVersion
277 278 279 |
# File 'generated/google/apis/tpu_v1alpha1/classes.rb', line 277 def tensorflow_version @tensorflow_version end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 |
# File 'generated/google/apis/tpu_v1alpha1/classes.rb', line 284 def update!(**args) @accelerator_type = args[:accelerator_type] if args.key?(:accelerator_type) @cidr_block = args[:cidr_block] if args.key?(:cidr_block) @create_time = args[:create_time] if args.key?(:create_time) @description = args[:description] if args.key?(:description) @health_description = args[:health_description] if args.key?(:health_description) @ip_address = args[:ip_address] if args.key?(:ip_address) @name = args[:name] if args.key?(:name) @network = args[:network] if args.key?(:network) @network_endpoints = args[:network_endpoints] if args.key?(:network_endpoints) @port = args[:port] if args.key?(:port) @service_account = args[:service_account] if args.key?(:service_account) @state = args[:state] if args.key?(:state) @tensorflow_version = args[:tensorflow_version] if args.key?(:tensorflow_version) end |