Class: Google::Apis::RedisV1beta1::RetentionSettings
- Inherits:
-
Object
- Object
- Google::Apis::RedisV1beta1::RetentionSettings
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/redis_v1beta1/classes.rb,
lib/google/apis/redis_v1beta1/representations.rb,
lib/google/apis/redis_v1beta1/representations.rb
Instance Attribute Summary collapse
-
#quantity_based_retention ⇒ Fixnum
Corresponds to the JSON property
quantityBasedRetention
. -
#retention_unit ⇒ String
The unit that 'retained_backups' represents.
-
#time_based_retention ⇒ String
Corresponds to the JSON property
timeBasedRetention
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RetentionSettings
constructor
A new instance of RetentionSettings.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RetentionSettings
Returns a new instance of RetentionSettings.
2275 2276 2277 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 2275 def initialize(**args) update!(**args) end |
Instance Attribute Details
#quantity_based_retention ⇒ Fixnum
Corresponds to the JSON property quantityBasedRetention
2263 2264 2265 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 2263 def quantity_based_retention @quantity_based_retention end |
#retention_unit ⇒ String
The unit that 'retained_backups' represents.
Corresponds to the JSON property retentionUnit
2268 2269 2270 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 2268 def retention_unit @retention_unit end |
#time_based_retention ⇒ String
Corresponds to the JSON property timeBasedRetention
2273 2274 2275 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 2273 def time_based_retention @time_based_retention end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2280 2281 2282 2283 2284 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 2280 def update!(**args) @quantity_based_retention = args[:quantity_based_retention] if args.key?(:quantity_based_retention) @retention_unit = args[:retention_unit] if args.key?(:retention_unit) @time_based_retention = args[:time_based_retention] if args.key?(:time_based_retention) end |