Class: Google::Storage::Property::BucketLogging

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

Overview

A class to manage input to logging for bucket.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.api_munge(value) ⇒ Object

Used for parsing GCP API responses



122
123
124
125
# File 'lib/google/storage/property/bucket_logging.rb', line 122

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

.unsafe_munge(value) ⇒ Object

Used for parsing Puppet catalog



116
117
118
119
# File 'lib/google/storage/property/bucket_logging.rb', line 116

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

Instance Method Details

#unsafe_munge(value) ⇒ Object

Used for parsing Puppet catalog



111
112
113
# File 'lib/google/storage/property/bucket_logging.rb', line 111

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