Class: Google::Compute::Data::InstanceSchedulingCatalog

Inherits:
InstanceScheduling show all
Defined in:
lib/google/compute/property/instance_scheduling.rb

Overview

Manages a InstanceScheduling nested object Data is coming from the Puppet manifest

Instance Attribute Summary

Attributes inherited from InstanceScheduling

#automatic_restart, #on_host_maintenance, #preemptible

Instance Method Summary collapse

Methods inherited from InstanceScheduling

#<=>, #==, #to_json, #to_s

Constructor Details

#initialize(args) ⇒ InstanceSchedulingCatalog

Returns a new instance of InstanceSchedulingCatalog.



105
106
107
108
109
110
111
112
113
114
# File 'lib/google/compute/property/instance_scheduling.rb', line 105

def initialize(args)
  @automatic_restart = Google::Compute::Property::Boolean.unsafe_munge(
    args['automatic_restart']
  )
  @on_host_maintenance = Google::Compute::Property::String.unsafe_munge(
    args['on_host_maintenance']
  )
  @preemptible =
    Google::Compute::Property::Boolean.unsafe_munge(args['preemptible'])
end