Class: Google::Compute::Property::BackeServiConneDrain

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

Overview

A class to manage input to connection_draining for backend_service.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.api_munge(value) ⇒ Object

Used for parsing GCP API responses



116
117
118
119
# File 'lib/google/compute/property/backendservice_connection_draining.rb', line 116

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

.unsafe_munge(value) ⇒ Object

Used for parsing Puppet catalog



110
111
112
113
# File 'lib/google/compute/property/backendservice_connection_draining.rb', line 110

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

Instance Method Details

#unsafe_munge(value) ⇒ Object

Used for parsing Puppet catalog



105
106
107
# File 'lib/google/compute/property/backendservice_connection_draining.rb', line 105

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