Class: Google::Compute::Data::InstancTemplatSchedulCatalog

Inherits:
InstancTemplatSchedul show all
Defined in:
lib/google/compute/property/instancetemplate_scheduling.rb

Overview

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

Instance Attribute Summary

Attributes inherited from InstancTemplatSchedul

#automatic_restart, #on_host_maintenance, #preemptible

Instance Method Summary collapse

Methods inherited from InstancTemplatSchedul

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

Constructor Details

#initialize(args) ⇒ InstancTemplatSchedulCatalog

Returns a new instance of InstancTemplatSchedulCatalog.



105
106
107
108
109
110
111
112
113
114
# File 'lib/google/compute/property/instancetemplate_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