Class: Google::Compute::Property::InstancTemplatPropert

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

Overview

A class to manage input to properties for instance_template.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.api_munge(value) ⇒ Object

Used for parsing GCP API responses



225
226
227
228
# File 'lib/google/compute/property/instancetemplate_properties.rb', line 225

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

.unsafe_munge(value) ⇒ Object

Used for parsing Puppet catalog



219
220
221
222
# File 'lib/google/compute/property/instancetemplate_properties.rb', line 219

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

Instance Method Details

#unsafe_munge(value) ⇒ Object

Used for parsing Puppet catalog



214
215
216
# File 'lib/google/compute/property/instancetemplate_properties.rb', line 214

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