Class: Google::Compute::Data::InstanceSchedulingApi

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

Overview

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

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

Returns a new instance of InstanceSchedulingApi.



90
91
92
93
94
95
96
97
98
99
# File 'lib/google/compute/property/instance_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