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
-
#duration_based_retention ⇒ String
Duration based retention period i.e.
-
#quantity_based_retention ⇒ Fixnum
Quantity based retention period i.e.
-
#retention_unit ⇒ String
The unit that 'retained_backups' represents.
-
#time_based_retention ⇒ String
Duration based retention period i.e.
-
#timestamp_based_retention_time ⇒ String
Timestamp based retention period i.e.
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.
4279 4280 4281 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 4279 def initialize(**args) update!(**args) end |
Instance Attribute Details
#duration_based_retention ⇒ String
Duration based retention period i.e. 172800 seconds (2 days)
Corresponds to the JSON property durationBasedRetention
4257 4258 4259 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 4257 def duration_based_retention @duration_based_retention end |
#quantity_based_retention ⇒ Fixnum
Quantity based retention period i.e. 7 backups
Corresponds to the JSON property quantityBasedRetention
4262 4263 4264 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 4262 def quantity_based_retention @quantity_based_retention end |
#retention_unit ⇒ String
The unit that 'retained_backups' represents.
Corresponds to the JSON property retentionUnit
4267 4268 4269 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 4267 def retention_unit @retention_unit end |
#time_based_retention ⇒ String
Duration based retention period i.e. 172800 seconds (2 days)
Corresponds to the JSON property timeBasedRetention
4272 4273 4274 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 4272 def time_based_retention @time_based_retention end |
#timestamp_based_retention_time ⇒ String
Timestamp based retention period i.e. 2024-05-01T00:00:00Z
Corresponds to the JSON property timestampBasedRetentionTime
4277 4278 4279 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 4277 def @timestamp_based_retention_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4284 4285 4286 4287 4288 4289 4290 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 4284 def update!(**args) @duration_based_retention = args[:duration_based_retention] if args.key?(:duration_based_retention) @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) @timestamp_based_retention_time = args[:timestamp_based_retention_time] if args.key?(:timestamp_based_retention_time) end |