Class: Google::Storage::Property::BucketCondition

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

Overview

A class to manage input to condition for bucket.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.api_munge(value) ⇒ Object

Used for parsing GCP API responses



150
151
152
153
# File 'lib/google/storage/property/bucket_condition.rb', line 150

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

.unsafe_munge(value) ⇒ Object

Used for parsing Puppet catalog



144
145
146
147
# File 'lib/google/storage/property/bucket_condition.rb', line 144

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

Instance Method Details

#unsafe_munge(value) ⇒ Object

Used for parsing Puppet catalog



139
140
141
# File 'lib/google/storage/property/bucket_condition.rb', line 139

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