Class: Google::Storage::Property::BucketCors

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

Overview

A class to manage input to cors for bucket.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.api_munge(value) ⇒ Object

Used for parsing GCP API responses



142
143
144
145
# File 'lib/google/storage/property/bucket_cors.rb', line 142

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

.unsafe_munge(value) ⇒ Object

Used for parsing Puppet catalog



136
137
138
139
# File 'lib/google/storage/property/bucket_cors.rb', line 136

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

Instance Method Details

#unsafe_munge(value) ⇒ Object

Used for parsing Puppet catalog



131
132
133
# File 'lib/google/storage/property/bucket_cors.rb', line 131

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