Class: Google::Compute::Data::InstanceSchedulingApi
- Inherits:
-
InstanceScheduling
- Object
- InstanceScheduling
- Google::Compute::Data::InstanceSchedulingApi
- 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
-
#initialize(args) ⇒ InstanceSchedulingApi
constructor
A new instance of InstanceSchedulingApi.
Methods inherited from InstanceScheduling
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 |