Class: Google::Apis::RedisV1beta1::RetentionSettings

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RetentionSettings

Returns a new instance of RetentionSettings.



2190
2191
2192
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 2190

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#quantity_based_retentionFixnum

Corresponds to the JSON property quantityBasedRetention

Returns:

  • (Fixnum)


2178
2179
2180
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 2178

def quantity_based_retention
  @quantity_based_retention
end

#retention_unitString

The unit that 'retained_backups' represents. Corresponds to the JSON property retentionUnit

Returns:

  • (String)


2183
2184
2185
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 2183

def retention_unit
  @retention_unit
end

#time_based_retentionString

Corresponds to the JSON property timeBasedRetention

Returns:

  • (String)


2188
2189
2190
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 2188

def time_based_retention
  @time_based_retention
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2195
2196
2197
2198
2199
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 2195

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