Class: Google::Compute::Property::BackeServiCdnPolic

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

Overview

A class to manage input to cdn_policy for backend_service.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.api_munge(value) ⇒ Object

Used for parsing GCP API responses



117
118
119
120
# File 'lib/google/compute/property/backendservice_cdn_policy.rb', line 117

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

.unsafe_munge(value) ⇒ Object

Used for parsing Puppet catalog



111
112
113
114
# File 'lib/google/compute/property/backendservice_cdn_policy.rb', line 111

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

Instance Method Details

#unsafe_munge(value) ⇒ Object

Used for parsing Puppet catalog



106
107
108
# File 'lib/google/compute/property/backendservice_cdn_policy.rb', line 106

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