Class: Google::Apis::RedisV1beta1::AutomatedBackupConfig
- Inherits:
-
Object
- Object
- Google::Apis::RedisV1beta1::AutomatedBackupConfig
- 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
Overview
The automated backup config for a cluster.
Instance Attribute Summary collapse
-
#automated_backup_mode ⇒ String
Optional.
-
#fixed_frequency_schedule ⇒ Google::Apis::RedisV1beta1::FixedFrequencySchedule
This schedule allows the backup to be triggered at a fixed frequency ( currently only daily is supported).
-
#retention ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AutomatedBackupConfig
constructor
A new instance of AutomatedBackupConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AutomatedBackupConfig
Returns a new instance of AutomatedBackupConfig.
67 68 69 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 67 def initialize(**args) update!(**args) end |
Instance Attribute Details
#automated_backup_mode ⇒ String
Optional. The automated backup mode. If the mode is disabled, the other fields
will be ignored.
Corresponds to the JSON property automatedBackupMode
52 53 54 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 52 def automated_backup_mode @automated_backup_mode end |
#fixed_frequency_schedule ⇒ Google::Apis::RedisV1beta1::FixedFrequencySchedule
This schedule allows the backup to be triggered at a fixed frequency (
currently only daily is supported).
Corresponds to the JSON property fixedFrequencySchedule
58 59 60 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 58 def fixed_frequency_schedule @fixed_frequency_schedule end |
#retention ⇒ String
Optional. How long to keep automated backups before the backups are deleted.
The value should be between 1 day and 365 days. If not specified, the default
value is 35 days.
Corresponds to the JSON property retention
65 66 67 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 65 def retention @retention end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
72 73 74 75 76 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 72 def update!(**args) @automated_backup_mode = args[:automated_backup_mode] if args.key?(:automated_backup_mode) @fixed_frequency_schedule = args[:fixed_frequency_schedule] if args.key?(:fixed_frequency_schedule) @retention = args[:retention] if args.key?(:retention) end |