Class: Google::Compute::Property::DiskSourSnapEncrKey

Inherits:
Puppet::Property
  • Object
show all
Defined in:
lib/google/compute/property/disk_source_snapshot_encryption_key.rb

Overview

A class to manage input to source_snapshot_encryption_key for disk.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.api_munge(value) ⇒ Object

Used for parsing GCP API responses



119
120
121
122
# File 'lib/google/compute/property/disk_source_snapshot_encryption_key.rb', line 119

def self.api_munge(value)
  return if value.nil?
  Data::DiskSourSnapEncrKeyApi.new(value)
end

.unsafe_munge(value) ⇒ Object

Used for parsing Puppet catalog



113
114
115
116
# File 'lib/google/compute/property/disk_source_snapshot_encryption_key.rb', line 113

def self.unsafe_munge(value)
  return if value.nil?
  Data::DiskSourSnapEncrKeyCatalog.new(value)
end

Instance Method Details

#unsafe_munge(value) ⇒ Object

Used for parsing Puppet catalog



108
109
110
# File 'lib/google/compute/property/disk_source_snapshot_encryption_key.rb', line 108

def unsafe_munge(value)
  self.class.unsafe_munge(value)
end