Class: Google::Storage::Data::BucketConditionCatalog

Inherits:
BucketCondition show all
Defined in:
lib/google/storage/property/bucket_condition.rb

Overview

Manages a BucketCondition nested object Data is coming from the Puppet manifest

Instance Attribute Summary

Attributes inherited from BucketCondition

#age_days, #created_before, #is_live, #matches_storage_class, #num_newer_versions

Instance Method Summary collapse

Methods inherited from BucketCondition

#<=>, #==, #to_json, #to_s

Constructor Details

#initialize(args) ⇒ BucketConditionCatalog

Returns a new instance of BucketConditionCatalog.



117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
# File 'lib/google/storage/property/bucket_condition.rb', line 117

def initialize(args)
  @age_days =
    Google::Storage::Property::Integer.unsafe_munge(args['age_days'])
  @created_before =
    Google::Storage::Property::Time.unsafe_munge(args['created_before'])
  @is_live =
    Google::Storage::Property::Boolean.unsafe_munge(args['is_live'])
  @matches_storage_class =
    Google::Storage::Property::StringArray.unsafe_munge(
      args['matches_storage_class']
    )
  @num_newer_versions = Google::Storage::Property::Integer.unsafe_munge(
    args['num_newer_versions']
  )
end