class Google::Apis::TpuV2alpha1::SchedulingConfig

Sets the scheduling options for this node.

Attributes

preemptible[RW]

Defines whether the node is preemptible. Corresponds to the JSON property ‘preemptible` @return [Boolean]

preemptible?[RW]

Defines whether the node is preemptible. Corresponds to the JSON property ‘preemptible` @return [Boolean]

reserved[RW]

Whether the node is created under a reservation. Corresponds to the JSON property ‘reserved` @return [Boolean]

reserved?[RW]

Whether the node is created under a reservation. Corresponds to the JSON property ‘reserved` @return [Boolean]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/tpu_v2alpha1/classes.rb, line 835
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/tpu_v2alpha1/classes.rb, line 840
def update!(**args)
  @preemptible = args[:preemptible] if args.key?(:preemptible)
  @reserved = args[:reserved] if args.key?(:reserved)
end