Class: Google::Compute::Property::MachineTypeDepreca

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

Overview

A class to manage input to deprecated for machine_type.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.api_munge(value) ⇒ Object

Used for parsing GCP API responses



142
143
144
145
# File 'lib/google/compute/property/machinetype_deprecated.rb', line 142

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

.unsafe_munge(value) ⇒ Object

Used for parsing Puppet catalog



136
137
138
139
# File 'lib/google/compute/property/machinetype_deprecated.rb', line 136

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

Instance Method Details

#unsafe_munge(value) ⇒ Object

Used for parsing Puppet catalog



131
132
133
# File 'lib/google/compute/property/machinetype_deprecated.rb', line 131

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