Class: Google::Compute::Property::InstaTemplServiAccouArray
- Defined in:
- lib/google/compute/property/instancetemplate_service_accounts.rb
Overview
A Puppet property that holds an integer
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.
Methods inherited from Array
Methods inherited from Base
Class Method Details
.api_munge(value) ⇒ Object
Used for parsing GCP API responses
143 144 145 146 147 148 |
# File 'lib/google/compute/property/instancetemplate_service_accounts.rb', line 143 def self.api_munge(value) return if value.nil? return InstaTemplServiAccou.api_munge(value) \ unless value.is_a?(::Array) value.map { |v| InstaTemplServiAccou.api_munge(v) } end |
.unsafe_munge(value) ⇒ Object
Used for parsing Puppet catalog
135 136 137 138 139 140 |
# File 'lib/google/compute/property/instancetemplate_service_accounts.rb', line 135 def self.unsafe_munge(value) return if value.nil? return InstaTemplServiAccou.unsafe_munge(value) \ unless value.is_a?(::Array) value.map { |v| InstaTemplServiAccou.unsafe_munge(v) } end |
Instance Method Details
#unsafe_munge(value) ⇒ Object
Used for parsing Puppet catalog
130 131 132 |
# File 'lib/google/compute/property/instancetemplate_service_accounts.rb', line 130 def unsafe_munge(value) self.class.unsafe_munge(value) end |