Class: Google::Compute::Property::InstaDiskEncryKey
- Inherits:
-
Puppet::Property
- Object
- Puppet::Property
- Google::Compute::Property::InstaDiskEncryKey
- Defined in:
- lib/google/compute/property/instance_disk_encryption_key.rb
Overview
A class to manage input to disk_encryption_key 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
128 129 130 131 |
# File 'lib/google/compute/property/instance_disk_encryption_key.rb', line 128 def self.api_munge(value) return if value.nil? Data::InstaDiskEncryKeyApi.new(value) end |
.unsafe_munge(value) ⇒ Object
Used for parsing Puppet catalog
122 123 124 125 |
# File 'lib/google/compute/property/instance_disk_encryption_key.rb', line 122 def self.unsafe_munge(value) return if value.nil? Data::InstaDiskEncryKeyCatalog.new(value) end |
Instance Method Details
#unsafe_munge(value) ⇒ Object
Used for parsing Puppet catalog
117 118 119 |
# File 'lib/google/compute/property/instance_disk_encryption_key.rb', line 117 def unsafe_munge(value) self.class.unsafe_munge(value) end |