Class: Google::Compute::Property::InsTemSouImaEncKey
- Inherits:
-
Puppet::Property
- Object
- Puppet::Property
- Google::Compute::Property::InsTemSouImaEncKey
- Defined in:
- lib/google/compute/property/instancetemplate_source_image_encryption_key.rb
Overview
A class to manage input to source_image_encryption_key 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
121 122 123 124 |
# File 'lib/google/compute/property/instancetemplate_source_image_encryption_key.rb', line 121 def self.api_munge(value) return if value.nil? Data::InsTemSouImaEncKeyApi.new(value) end |
.unsafe_munge(value) ⇒ Object
Used for parsing Puppet catalog
115 116 117 118 |
# File 'lib/google/compute/property/instancetemplate_source_image_encryption_key.rb', line 115 def self.unsafe_munge(value) return if value.nil? Data::InsTemSouImaEncKeyCatalog.new(value) end |
Instance Method Details
#unsafe_munge(value) ⇒ Object
Used for parsing Puppet catalog
110 111 112 |
# File 'lib/google/compute/property/instancetemplate_source_image_encryption_key.rb', line 110 def unsafe_munge(value) self.class.unsafe_munge(value) end |