Class: Google::Storage::Property::BucketAction

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

Overview

A class to manage input to action for bucket.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.api_munge(value) ⇒ Object

Used for parsing GCP API responses



120
121
122
123
# File 'lib/google/storage/property/bucket_action.rb', line 120

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

.unsafe_munge(value) ⇒ Object

Used for parsing Puppet catalog



114
115
116
117
# File 'lib/google/storage/property/bucket_action.rb', line 114

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

Instance Method Details

#unsafe_munge(value) ⇒ Object

Used for parsing Puppet catalog



109
110
111
# File 'lib/google/storage/property/bucket_action.rb', line 109

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