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.
2341 2342 2343 |
# File 'lib/google/apis/redis_v1/classes.rb', line 2341 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
2317 2318 2319 |
# File 'lib/google/apis/redis_v1/classes.rb', line 2317 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
2322 2323 2324 |
# File 'lib/google/apis/redis_v1/classes.rb', line 2322 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
2332 2333 2334 |
# File 'lib/google/apis/redis_v1/classes.rb', line 2332 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
2339 2340 2341 |
# File 'lib/google/apis/redis_v1/classes.rb', line 2339 def rdb_snapshot_start_time @rdb_snapshot_start_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2346 2347 2348 2349 2350 2351 |
# File 'lib/google/apis/redis_v1/classes.rb', line 2346 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 |