Class: Google::Storage::Data::BucketConditionApi
- Inherits:
-
BucketCondition
- Object
- BucketCondition
- Google::Storage::Data::BucketConditionApi
- Defined in:
- lib/google/storage/property/bucket_condition.rb
Overview
Manages a BucketCondition nested object Data is coming from the GCP API
Instance Attribute Summary
Attributes inherited from BucketCondition
#age_days, #created_before, #is_live, #matches_storage_class, #num_newer_versions
Instance Method Summary collapse
-
#initialize(args) ⇒ BucketConditionApi
constructor
A new instance of BucketConditionApi.
Methods inherited from BucketCondition
Constructor Details
#initialize(args) ⇒ BucketConditionApi
Returns a new instance of BucketConditionApi.
98 99 100 101 102 103 104 105 106 |
# File 'lib/google/storage/property/bucket_condition.rb', line 98 def initialize(args) @age_days = Google::Storage::Property::Integer.api_munge(args['age']) @created_before = Google::Storage::Property::Time.api_munge(args['createdBefore']) @is_live = Google::Storage::Property::Boolean.api_munge(args['isLive']) @matches_storage_class = Google::Storage::Property::StringArray.api_munge(args['matchesStorageClass']) @num_newer_versions = Google::Storage::Property::Integer.api_munge(args['numNewerVersions']) end |