Class: Google::Storage::Property::BucketVersioning

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

Overview

A class to manage input to versioning for bucket.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.api_munge(value) ⇒ Object

Used for parsing GCP API responses



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

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

.unsafe_munge(value) ⇒ Object

Used for parsing Puppet catalog



107
108
109
110
# File 'lib/google/storage/property/bucket_versioning.rb', line 107

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

Instance Method Details

#unsafe_munge(value) ⇒ Object

Used for parsing Puppet catalog



102
103
104
# File 'lib/google/storage/property/bucket_versioning.rb', line 102

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