Class: Google::Compute::Property::UrlMapPathMatch

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

Overview

A class to manage input to path_matchers for url_map.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.api_munge(value) ⇒ Object

Used for parsing GCP API responses



146
147
148
149
# File 'lib/google/compute/property/urlmap_path_matchers.rb', line 146

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

.unsafe_munge(value) ⇒ Object

Used for parsing Puppet catalog



140
141
142
143
# File 'lib/google/compute/property/urlmap_path_matchers.rb', line 140

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

Instance Method Details

#unsafe_munge(value) ⇒ Object

Used for parsing Puppet catalog



135
136
137
# File 'lib/google/compute/property/urlmap_path_matchers.rb', line 135

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