Class: Google::Compute::Property::InstancInitialParams
- Inherits:
-
Puppet::Property
- Object
- Puppet::Property
- Google::Compute::Property::InstancInitialParams
- Defined in:
- lib/google/compute/property/instance_initialize_params.rb
Overview
A class to manage input to initialize_params 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
156 157 158 159 |
# File 'lib/google/compute/property/instance_initialize_params.rb', line 156 def self.api_munge(value) return if value.nil? Data::InstancInitialParamsApi.new(value) end |
.unsafe_munge(value) ⇒ Object
Used for parsing Puppet catalog
150 151 152 153 |
# File 'lib/google/compute/property/instance_initialize_params.rb', line 150 def self.unsafe_munge(value) return if value.nil? Data::InstancInitialParamsCatalog.new(value) end |
Instance Method Details
#unsafe_munge(value) ⇒ Object
Used for parsing Puppet catalog
145 146 147 |
# File 'lib/google/compute/property/instance_initialize_params.rb', line 145 def unsafe_munge(value) self.class.unsafe_munge(value) end |