Class: Google::Compute::Property::InstaTemplNetwoInter
- Inherits:
-
Puppet::Property
- Object
- Puppet::Property
- Google::Compute::Property::InstaTemplNetwoInter
- Defined in:
- lib/google/compute/property/instancetemplate_network_interfaces.rb
Overview
A class to manage input to network_interfaces for instance_template.
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
173 174 175 176 |
# File 'lib/google/compute/property/instancetemplate_network_interfaces.rb', line 173 def self.api_munge(value) return if value.nil? Data::InstaTemplNetwoInterApi.new(value) end |
.unsafe_munge(value) ⇒ Object
Used for parsing Puppet catalog
167 168 169 170 |
# File 'lib/google/compute/property/instancetemplate_network_interfaces.rb', line 167 def self.unsafe_munge(value) return if value.nil? Data::InstaTemplNetwoInterCatalog.new(value) end |
Instance Method Details
#unsafe_munge(value) ⇒ Object
Used for parsing Puppet catalog
162 163 164 |
# File 'lib/google/compute/property/instancetemplate_network_interfaces.rb', line 162 def unsafe_munge(value) self.class.unsafe_munge(value) end |