Class: Google::Apis::RedisV1::RetentionSettings
- Inherits:
-
Object
- Object
- Google::Apis::RedisV1::RetentionSettings
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/redis_v1/classes.rb,
lib/google/apis/redis_v1/representations.rb,
lib/google/apis/redis_v1/representations.rb
Instance Attribute Summary collapse
-
#duration_based_retention ⇒ String
Duration based retention period i.e.
-
#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.
2932 2933 2934 |
# File 'lib/google/apis/redis_v1/classes.rb', line 2932 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
2915 2916 2917 |
# File 'lib/google/apis/redis_v1/classes.rb', line 2915 def duration_based_retention @duration_based_retention end |
#quantity_based_retention ⇒ Fixnum
Corresponds to the JSON property quantityBasedRetention
2920 2921 2922 |
# File 'lib/google/apis/redis_v1/classes.rb', line 2920 def quantity_based_retention @quantity_based_retention end |
#retention_unit ⇒ String
The unit that 'retained_backups' represents.
Corresponds to the JSON property retentionUnit
2925 2926 2927 |
# File 'lib/google/apis/redis_v1/classes.rb', line 2925 def retention_unit @retention_unit end |
#time_based_retention ⇒ String
Corresponds to the JSON property timeBasedRetention
2930 2931 2932 |
# File 'lib/google/apis/redis_v1/classes.rb', line 2930 def time_based_retention @time_based_retention end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2937 2938 2939 2940 2941 2942 |
# File 'lib/google/apis/redis_v1/classes.rb', line 2937 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) end |