Class: Google::Apis::RedisV1::PersistenceConfig
- Inherits:
-
Object
- Object
- Google::Apis::RedisV1::PersistenceConfig
- 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
Overview
Configuration of the persistence functionality.
Instance Attribute Summary collapse
-
#persistence_mode ⇒ String
Optional.
-
#rdb_next_snapshot_time ⇒ String
Output only.
-
#rdb_snapshot_period ⇒ String
Optional.
-
#rdb_snapshot_start_time ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PersistenceConfig
constructor
A new instance of PersistenceConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PersistenceConfig
Returns a new instance of PersistenceConfig.
2830 2831 2832 |
# File 'lib/google/apis/redis_v1/classes.rb', line 2830 def initialize(**args) update!(**args) end |
Instance Attribute Details
#persistence_mode ⇒ String
Optional. Controls whether Persistence features are enabled. If not provided,
the existing value will be used.
Corresponds to the JSON property persistenceMode
2806 2807 2808 |
# File 'lib/google/apis/redis_v1/classes.rb', line 2806 def persistence_mode @persistence_mode end |
#rdb_next_snapshot_time ⇒ String
Output only. The next time that a snapshot attempt is scheduled to occur.
Corresponds to the JSON property rdbNextSnapshotTime
2811 2812 2813 |
# File 'lib/google/apis/redis_v1/classes.rb', line 2811 def rdb_next_snapshot_time @rdb_next_snapshot_time end |
#rdb_snapshot_period ⇒ String
Optional. Period between RDB snapshots. Snapshots will be attempted every
period starting from the provided snapshot start time. For example, a start
time of 01/01/2033 06:45 and SIX_HOURS snapshot period will do nothing until
01/01/2033, and then trigger snapshots every day at 06:45, 12:45, 18:45, and
00:45 the next day, and so on. If not provided, TWENTY_FOUR_HOURS will be used
as default.
Corresponds to the JSON property rdbSnapshotPeriod
2821 2822 2823 |
# File 'lib/google/apis/redis_v1/classes.rb', line 2821 def rdb_snapshot_period @rdb_snapshot_period end |
#rdb_snapshot_start_time ⇒ String
Optional. Date and time that the first snapshot was/will be attempted, and to
which future snapshots will be aligned. If not provided, the current time will
be used.
Corresponds to the JSON property rdbSnapshotStartTime
2828 2829 2830 |
# File 'lib/google/apis/redis_v1/classes.rb', line 2828 def rdb_snapshot_start_time @rdb_snapshot_start_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2835 2836 2837 2838 2839 2840 |
# File 'lib/google/apis/redis_v1/classes.rb', line 2835 def update!(**args) @persistence_mode = args[:persistence_mode] if args.key?(:persistence_mode) @rdb_next_snapshot_time = args[:rdb_next_snapshot_time] if args.key?(:rdb_next_snapshot_time) @rdb_snapshot_period = args[:rdb_snapshot_period] if args.key?(:rdb_snapshot_period) @rdb_snapshot_start_time = args[:rdb_snapshot_start_time] if args.key?(:rdb_snapshot_start_time) end |