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