Class: Google::Apis::TpuV1alpha1::SchedulingConfig
- Inherits:
-
Object
- Object
- Google::Apis::TpuV1alpha1::SchedulingConfig
- 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
Sets the scheduling options for this node.
Instance Attribute Summary collapse
-
#preemptible ⇒ Boolean
(also: #preemptible?)
Defines whether the node is preemptible.
-
#reserved ⇒ Boolean
(also: #reserved?)
Whether the node is created under a reservation.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SchedulingConfig
constructor
A new instance of SchedulingConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SchedulingConfig
Returns a new instance of SchedulingConfig.
580 581 582 |
# File 'generated/google/apis/tpu_v1alpha1/classes.rb', line 580 def initialize(**args) update!(**args) end |
Instance Attribute Details
#preemptible ⇒ Boolean Also known as: preemptible?
Defines whether the node is preemptible.
Corresponds to the JSON property preemptible
571 572 573 |
# File 'generated/google/apis/tpu_v1alpha1/classes.rb', line 571 def preemptible @preemptible end |
#reserved ⇒ Boolean Also known as: reserved?
Whether the node is created under a reservation.
Corresponds to the JSON property reserved
577 578 579 |
# File 'generated/google/apis/tpu_v1alpha1/classes.rb', line 577 def reserved @reserved end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
585 586 587 588 |
# File 'generated/google/apis/tpu_v1alpha1/classes.rb', line 585 def update!(**args) @preemptible = args[:preemptible] if args.key?(:preemptible) @reserved = args[:reserved] if args.key?(:reserved) end |