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.
2578 2579 2580 |
# File 'lib/google/apis/redis_v1/classes.rb', line 2578 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
2554 2555 2556 |
# File 'lib/google/apis/redis_v1/classes.rb', line 2554 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
2559 2560 2561 |
# File 'lib/google/apis/redis_v1/classes.rb', line 2559 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
2569 2570 2571 |
# File 'lib/google/apis/redis_v1/classes.rb', line 2569 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
2576 2577 2578 |
# File 'lib/google/apis/redis_v1/classes.rb', line 2576 def rdb_snapshot_start_time @rdb_snapshot_start_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2583 2584 2585 2586 2587 2588 |
# File 'lib/google/apis/redis_v1/classes.rb', line 2583 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 |