Class: Google::Compute::Property::InstanceDisks

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

Overview

A class to manage input to disks for instance.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.api_munge(value) ⇒ Object

Used for parsing GCP API responses



192
193
194
195
# File 'lib/google/compute/property/instance_disks.rb', line 192

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

.unsafe_munge(value) ⇒ Object

Used for parsing Puppet catalog



186
187
188
189
# File 'lib/google/compute/property/instance_disks.rb', line 186

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

Instance Method Details

#unsafe_munge(value) ⇒ Object

Used for parsing Puppet catalog



181
182
183
# File 'lib/google/compute/property/instance_disks.rb', line 181

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