Class: Google::Compute::Property::InstancTemplatPropert
- Inherits:
-
Puppet::Property
- Object
- Puppet::Property
- Google::Compute::Property::InstancTemplatPropert
- Defined in:
- lib/google/compute/property/instancetemplate_properties.rb
Overview
A class to manage input to properties for instance_template.
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
225 226 227 228 |
# File 'lib/google/compute/property/instancetemplate_properties.rb', line 225 def self.api_munge(value) return if value.nil? Data::InstancTemplatPropertApi.new(value) end |
.unsafe_munge(value) ⇒ Object
Used for parsing Puppet catalog
219 220 221 222 |
# File 'lib/google/compute/property/instancetemplate_properties.rb', line 219 def self.unsafe_munge(value) return if value.nil? Data::InstancTemplatPropertCatalog.new(value) end |
Instance Method Details
#unsafe_munge(value) ⇒ Object
Used for parsing Puppet catalog
214 215 216 |
# File 'lib/google/compute/property/instancetemplate_properties.rb', line 214 def unsafe_munge(value) self.class.unsafe_munge(value) end |