Class: Google::Apis::RedisV1beta1::AutomatedBackupConfig

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

Overview

The automated backup config for a cluster.

Instance Attribute Summary collapse

Instance Method Summary collapse

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_modeString

Optional. The automated backup mode. If the mode is disabled, the other fields will be ignored. Corresponds to the JSON property automatedBackupMode

Returns:

  • (String)


52
53
54
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 52

def automated_backup_mode
  @automated_backup_mode
end

#fixed_frequency_scheduleGoogle::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

#retentionString

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

Returns:

  • (String)


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