Class: Google::Storage::Property::BucketAcl

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

Overview

A class to manage input to acl for bucket.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.api_munge(value) ⇒ Object

Used for parsing GCP API responses



169
170
171
172
# File 'lib/google/storage/property/bucket_acl.rb', line 169

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

.unsafe_munge(value) ⇒ Object

Used for parsing Puppet catalog



163
164
165
166
# File 'lib/google/storage/property/bucket_acl.rb', line 163

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

Instance Method Details

#unsafe_munge(value) ⇒ Object

Used for parsing Puppet catalog



158
159
160
# File 'lib/google/storage/property/bucket_acl.rb', line 158

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