Class: Google::Apis::TpuV2alpha1::Node
- Inherits:
-
Object
- Object
- Google::Apis::TpuV2alpha1::Node
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/tpu_v2alpha1/classes.rb,
lib/google/apis/tpu_v2alpha1/representations.rb,
lib/google/apis/tpu_v2alpha1/representations.rb
Overview
A TPU instance.
Instance Attribute Summary collapse
-
#accelerator_type ⇒ String
Required.
-
#api_version ⇒ String
Output only.
-
#cidr_block ⇒ String
The CIDR block that the TPU node will use when selecting an IP address.
-
#create_time ⇒ String
Output only.
-
#data_disks ⇒ Array<Google::Apis::TpuV2alpha1::AttachedDisk>
The additional data disks for the Node.
-
#description ⇒ String
The user-supplied description of the TPU.
-
#health ⇒ String
The health status of the TPU node.
-
#health_description ⇒ String
Output only.
-
#id ⇒ Fixnum
Output only.
-
#labels ⇒ Hash<String,String>
Resource labels to represent user-provided metadata.
-
#metadata ⇒ Hash<String,String>
Custom metadata to apply to the TPU Node.
-
#name ⇒ String
Output only.
-
#network_config ⇒ Google::Apis::TpuV2alpha1::NetworkConfig
Network related configurations.
-
#network_endpoints ⇒ Array<Google::Apis::TpuV2alpha1::NetworkEndpoint>
Output only.
-
#runtime_version ⇒ String
Required.
-
#scheduling_config ⇒ Google::Apis::TpuV2alpha1::SchedulingConfig
Sets the scheduling options for this node.
-
#service_account ⇒ Google::Apis::TpuV2alpha1::ServiceAccount
A service account.
-
#state ⇒ String
Output only.
-
#symptoms ⇒ Array<Google::Apis::TpuV2alpha1::Symptom>
Output only.
-
#tags ⇒ Array<String>
Tags to apply to the TPU Node.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Node
constructor
A new instance of Node.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Node
Returns a new instance of Node.
638 639 640 |
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 638 def initialize(**args) update!(**args) end |
Instance Attribute Details
#accelerator_type ⇒ String
Required. The type of hardware accelerators associated with this node.
Corresponds to the JSON property acceleratorType
530 531 532 |
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 530 def accelerator_type @accelerator_type end |
#api_version ⇒ String
Output only. The API version that created this Node.
Corresponds to the JSON property apiVersion
535 536 537 |
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 535 def api_version @api_version 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 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
546 547 548 |
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 546 def cidr_block @cidr_block end |
#create_time ⇒ String
Output only. The time when the node was created.
Corresponds to the JSON property createTime
551 552 553 |
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 551 def create_time @create_time end |
#data_disks ⇒ Array<Google::Apis::TpuV2alpha1::AttachedDisk>
The additional data disks for the Node.
Corresponds to the JSON property dataDisks
556 557 558 |
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 556 def data_disks @data_disks end |
#description ⇒ String
The user-supplied description of the TPU. Maximum of 512 characters.
Corresponds to the JSON property description
561 562 563 |
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 561 def description @description end |
#health ⇒ String
The health status of the TPU node.
Corresponds to the JSON property health
566 567 568 |
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 566 def health @health end |
#health_description ⇒ String
Output only. If this field is populated, it contains a description of why the
TPU Node is unhealthy.
Corresponds to the JSON property healthDescription
572 573 574 |
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 572 def health_description @health_description end |
#id ⇒ Fixnum
Output only. The unique identifier for the TPU Node.
Corresponds to the JSON property id
577 578 579 |
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 577 def id @id end |
#labels ⇒ Hash<String,String>
Resource labels to represent user-provided metadata.
Corresponds to the JSON property labels
582 583 584 |
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 582 def labels @labels end |
#metadata ⇒ Hash<String,String>
Custom metadata to apply to the TPU Node. Can set startup-script and shutdown-
script
Corresponds to the JSON property metadata
588 589 590 |
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 588 def @metadata end |
#name ⇒ String
Output only. Immutable. The name of the TPU.
Corresponds to the JSON property name
593 594 595 |
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 593 def name @name end |
#network_config ⇒ Google::Apis::TpuV2alpha1::NetworkConfig
Network related configurations.
Corresponds to the JSON property networkConfig
598 599 600 |
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 598 def network_config @network_config end |
#network_endpoints ⇒ Array<Google::Apis::TpuV2alpha1::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.
Corresponds to the JSON property networkEndpoints
605 606 607 |
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 605 def network_endpoints @network_endpoints end |
#runtime_version ⇒ String
Required. The runtime version running in the Node.
Corresponds to the JSON property runtimeVersion
610 611 612 |
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 610 def runtime_version @runtime_version end |
#scheduling_config ⇒ Google::Apis::TpuV2alpha1::SchedulingConfig
Sets the scheduling options for this node.
Corresponds to the JSON property schedulingConfig
615 616 617 |
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 615 def scheduling_config @scheduling_config end |
#service_account ⇒ Google::Apis::TpuV2alpha1::ServiceAccount
A service account.
Corresponds to the JSON property serviceAccount
620 621 622 |
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 620 def service_account @service_account end |
#state ⇒ String
Output only. The current state for the TPU Node.
Corresponds to the JSON property state
625 626 627 |
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 625 def state @state end |
#symptoms ⇒ Array<Google::Apis::TpuV2alpha1::Symptom>
Output only. The Symptoms that have occurred to the TPU Node.
Corresponds to the JSON property symptoms
630 631 632 |
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 630 def symptoms @symptoms end |
#tags ⇒ Array<String>
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
636 637 638 |
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 636 def @tags end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 |
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 643 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 |