Class: Google::Compute::Property::ImageGuestOsFeatu

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

Overview

A class to manage input to guest_os_features for image.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.api_munge(value) ⇒ Object

Used for parsing GCP API responses



112
113
114
115
# File 'lib/google/compute/property/image_guest_os_features.rb', line 112

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

.unsafe_munge(value) ⇒ Object

Used for parsing Puppet catalog



106
107
108
109
# File 'lib/google/compute/property/image_guest_os_features.rb', line 106

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

Instance Method Details

#unsafe_munge(value) ⇒ Object

Used for parsing Puppet catalog



101
102
103
# File 'lib/google/compute/property/image_guest_os_features.rb', line 101

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