Class: Google::Compute::Property::InstGrouManaNamePort
- Inherits:
-
Puppet::Property
- Object
- Puppet::Property
- Google::Compute::Property::InstGrouManaNamePort
- Defined in:
- lib/google/compute/property/instancegroupmanager_named_ports.rb
Overview
A class to manage input to named_ports for instance_group_manager.
Class Method Summary collapse
-
.api_munge(value) ⇒ Object
Used for parsing GCP API responses.
-
.unsafe_munge(value) ⇒ Object
Used for parsing Puppet catalog.
Instance Method Summary collapse
-
#unsafe_munge(value) ⇒ Object
Used for parsing Puppet catalog.
Class Method Details
.api_munge(value) ⇒ Object
Used for parsing GCP API responses
118 119 120 121 |
# File 'lib/google/compute/property/instancegroupmanager_named_ports.rb', line 118 def self.api_munge(value) return if value.nil? Data::InstGrouManaNamePortApi.new(value) end |
.unsafe_munge(value) ⇒ Object
Used for parsing Puppet catalog
112 113 114 115 |
# File 'lib/google/compute/property/instancegroupmanager_named_ports.rb', line 112 def self.unsafe_munge(value) return if value.nil? Data::InstGrouManaNamePortCatalog.new(value) end |
Instance Method Details
#unsafe_munge(value) ⇒ Object
Used for parsing Puppet catalog
107 108 109 |
# File 'lib/google/compute/property/instancegroupmanager_named_ports.rb', line 107 def unsafe_munge(value) self.class.unsafe_munge(value) end |