Class: Google::Apis::TpuV1::SchedulingConfig
- Inherits:
-
Object
- Object
- Google::Apis::TpuV1::SchedulingConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/tpu_v1/classes.rb,
generated/google/apis/tpu_v1/representations.rb,
generated/google/apis/tpu_v1/representations.rb
Instance Attribute Summary collapse
-
#preemptible ⇒ Boolean
(also: #preemptible?)
Corresponds to the JSON property
preemptible
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SchedulingConfig
constructor
A new instance of SchedulingConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ SchedulingConfig
Returns a new instance of SchedulingConfig
595 596 597 |
# File 'generated/google/apis/tpu_v1/classes.rb', line 595 def initialize(**args) update!(**args) end |
Instance Attribute Details
#preemptible ⇒ Boolean Also known as: preemptible?
Corresponds to the JSON property preemptible
592 593 594 |
# File 'generated/google/apis/tpu_v1/classes.rb', line 592 def preemptible @preemptible end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
600 601 602 |
# File 'generated/google/apis/tpu_v1/classes.rb', line 600 def update!(**args) @preemptible = args[:preemptible] if args.key?(:preemptible) end |