Class: Google::Compute::Data::InstancTemplatSchedulApi

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

Overview

Manages a InstancTemplatSchedul nested object Data is coming from the GCP API

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) ⇒ InstancTemplatSchedulApi

Returns a new instance of InstancTemplatSchedulApi.



90
91
92
93
94
95
96
97
98
99
# File 'lib/google/compute/property/instancetemplate_scheduling.rb', line 90

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