Class: Google::Compute::Property::ImageRawDisk

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

Overview

A class to manage input to raw_disk for image.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.api_munge(value) ⇒ Object

Used for parsing GCP API responses



129
130
131
132
# File 'lib/google/compute/property/image_raw_disk.rb', line 129

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

.unsafe_munge(value) ⇒ Object

Used for parsing Puppet catalog



123
124
125
126
# File 'lib/google/compute/property/image_raw_disk.rb', line 123

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

Instance Method Details

#unsafe_munge(value) ⇒ Object

Used for parsing Puppet catalog



118
119
120
# File 'lib/google/compute/property/image_raw_disk.rb', line 118

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