Class: Google::Compute::Property::InstanceScheduling
- Inherits:
-
Puppet::Property
- Object
- Puppet::Property
- Google::Compute::Property::InstanceScheduling
- Defined in:
- lib/google/compute/property/instance_scheduling.rb
Overview
A class to manage input to scheduling for instance.
Class Method Summary collapse
-
.api_munge(value) ⇒ Object
Used for parsing GCP API responses.
-
.unsafe_munge(value) ⇒ Object
Used for parsing Puppet catalog.
Instance Method Summary collapse
-
#unsafe_munge(value) ⇒ Object
Used for parsing Puppet catalog.
Class Method Details
.api_munge(value) ⇒ Object
Used for parsing GCP API responses
133 134 135 136 |
# File 'lib/google/compute/property/instance_scheduling.rb', line 133 def self.api_munge(value) return if value.nil? Data::InstanceSchedulingApi.new(value) end |
.unsafe_munge(value) ⇒ Object
Used for parsing Puppet catalog
127 128 129 130 |
# File 'lib/google/compute/property/instance_scheduling.rb', line 127 def self.unsafe_munge(value) return if value.nil? Data::InstanceSchedulingCatalog.new(value) end |
Instance Method Details
#unsafe_munge(value) ⇒ Object
Used for parsing Puppet catalog
122 123 124 |
# File 'lib/google/compute/property/instance_scheduling.rb', line 122 def unsafe_munge(value) self.class.unsafe_munge(value) end |