Class: Google::Compute::Property::UrlMapHostRules

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

Overview

A class to manage input to host_rules for url_map.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.api_munge(value) ⇒ Object

Used for parsing GCP API responses



130
131
132
133
# File 'lib/google/compute/property/urlmap_host_rules.rb', line 130

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

.unsafe_munge(value) ⇒ Object

Used for parsing Puppet catalog



124
125
126
127
# File 'lib/google/compute/property/urlmap_host_rules.rb', line 124

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

Instance Method Details

#unsafe_munge(value) ⇒ Object

Used for parsing Puppet catalog



119
120
121
# File 'lib/google/compute/property/urlmap_host_rules.rb', line 119

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