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.



44698
44699
44700
# File 'lib/google/apis/compute_alpha/classes.rb', line 44698

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

Instance Attribute Details

#availability_domainFixnum

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

Returns:

  • (Fixnum)


44691
44692
44693
# File 'lib/google/apis/compute_alpha/classes.rb', line 44691

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)


44696
44697
44698
# File 'lib/google/apis/compute_alpha/classes.rb', line 44696

def termination_timestamp
  @termination_timestamp
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



44703
44704
44705
44706
# File 'lib/google/apis/compute_alpha/classes.rb', line 44703

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