Class: Google::Compute::Property::InstancTemplatDisks
- Inherits:
-
Puppet::Property
- Object
- Puppet::Property
- Google::Compute::Property::InstancTemplatDisks
- Defined in:
- lib/google/compute/property/instancetemplate_disks.rb
Overview
A class to manage input to disks 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
191 192 193 194 |
# File 'lib/google/compute/property/instancetemplate_disks.rb', line 191 def self.api_munge(value) return if value.nil? Data::InstancTemplatDisksApi.new(value) end |
.unsafe_munge(value) ⇒ Object
Used for parsing Puppet catalog
185 186 187 188 |
# File 'lib/google/compute/property/instancetemplate_disks.rb', line 185 def self.unsafe_munge(value) return if value.nil? Data::InstancTemplatDisksCatalog.new(value) end |
Instance Method Details
#unsafe_munge(value) ⇒ Object
Used for parsing Puppet catalog
180 181 182 |
# File 'lib/google/compute/property/instancetemplate_disks.rb', line 180 def unsafe_munge(value) self.class.unsafe_munge(value) end |