Class: Google::Apis::ComputeV1::ResourceStatusScheduling
- Inherits:
-
Object
- Object
- Google::Apis::ComputeV1::ResourceStatusScheduling
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/compute_v1/classes.rb,
lib/google/apis/compute_v1/representations.rb,
lib/google/apis/compute_v1/representations.rb
Instance Attribute Summary collapse
-
#availability_domain ⇒ Fixnum
Specifies the availability domain to place the instance in.
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.
34183 34184 34185 |
# File 'lib/google/apis/compute_v1/classes.rb', line 34183 def initialize(**args) update!(**args) end |
Instance Attribute Details
#availability_domain ⇒ Fixnum
Specifies the availability domain to place the instance in. The value must be
a number between 1 and the number of availability domains specified in the
spread placement policy attached to the instance.
Corresponds to the JSON property availabilityDomain
34181 34182 34183 |
# File 'lib/google/apis/compute_v1/classes.rb', line 34181 def availability_domain @availability_domain end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
34188 34189 34190 |
# File 'lib/google/apis/compute_v1/classes.rb', line 34188 def update!(**args) @availability_domain = args[:availability_domain] if args.key?(:availability_domain) end |