Class: Google::Apis::ComputeAlpha::ResourceStatusScheduling

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ResourceStatusScheduling

Returns a new instance of ResourceStatusScheduling.



37251
37252
37253
# File 'lib/google/apis/compute_alpha/classes.rb', line 37251

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#availability_domainFixnum

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

Returns:

  • (Fixnum)


37244
37245
37246
# File 'lib/google/apis/compute_alpha/classes.rb', line 37244

def availability_domain
  @availability_domain
end

#termination_timestampString

Time in future when the instance will be terminated in RFC3339 text format. Corresponds to the JSON property terminationTimestamp

Returns:

  • (String)


37249
37250
37251
# File 'lib/google/apis/compute_alpha/classes.rb', line 37249

def termination_timestamp
  @termination_timestamp
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



37256
37257
37258
37259
# File 'lib/google/apis/compute_alpha/classes.rb', line 37256

def update!(**args)
  @availability_domain = args[:availability_domain] if args.key?(:availability_domain)
  @termination_timestamp = args[:termination_timestamp] if args.key?(:termination_timestamp)
end