Class: Google::Compute::Property::InstancTemplatDisks

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

Overview

A class to manage input to disks for instance_template.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.api_munge(value) ⇒ Object

Used for parsing GCP API responses



191
192
193
194
# File 'lib/google/compute/property/instancetemplate_disks.rb', line 191

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

.unsafe_munge(value) ⇒ Object

Used for parsing Puppet catalog



185
186
187
188
# File 'lib/google/compute/property/instancetemplate_disks.rb', line 185

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

Instance Method Details

#unsafe_munge(value) ⇒ Object

Used for parsing Puppet catalog



180
181
182
# File 'lib/google/compute/property/instancetemplate_disks.rb', line 180

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