Class: Google::Apis::ComputeAlpha::ResourceStatusScheduling
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::ResourceStatusScheduling
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/compute_alpha/classes.rb,
lib/google/apis/compute_alpha/representations.rb,
lib/google/apis/compute_alpha/representations.rb
Instance Attribute Summary collapse
-
#availability_domain ⇒ Fixnum
Specifies the availability domain (AD), which this instance should be scheduled on.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ResourceStatusScheduling
constructor
A new instance of ResourceStatusScheduling.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ResourceStatusScheduling
Returns a new instance of ResourceStatusScheduling.
34187 34188 34189 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 34187 def initialize(**args) update!(**args) end |
Instance Attribute Details
#availability_domain ⇒ Fixnum
Specifies the availability domain (AD), which this instance should be
scheduled on. The AD belongs to the spread GroupPlacementPolicy resource
policy that has been assigned to the instance. Specify a value between 1-max
count of availability domains in your GroupPlacementPolicy. See go/placement-
policy-extension for more details.
Corresponds to the JSON property availabilityDomain
34185 34186 34187 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 34185 def availability_domain @availability_domain end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
34192 34193 34194 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 34192 def update!(**args) @availability_domain = args[:availability_domain] if args.key?(:availability_domain) end |