Class: Google::Storage::Property::BucketRule

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

Overview

A class to manage input to rule for bucket.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.api_munge(value) ⇒ Object

Used for parsing GCP API responses



124
125
126
127
# File 'lib/google/storage/property/bucket_rule.rb', line 124

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

.unsafe_munge(value) ⇒ Object

Used for parsing Puppet catalog



118
119
120
121
# File 'lib/google/storage/property/bucket_rule.rb', line 118

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

Instance Method Details

#unsafe_munge(value) ⇒ Object

Used for parsing Puppet catalog



113
114
115
# File 'lib/google/storage/property/bucket_rule.rb', line 113

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