Class: Google::Apis::RedisV1beta1::PersistenceConfig
- Inherits:
-
Object
- Object
- Google::Apis::RedisV1beta1::PersistenceConfig
- 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
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.
2062 2063 2064 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 2062 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
2038 2039 2040 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 2038 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
2043 2044 2045 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 2043 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
2053 2054 2055 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 2053 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
2060 2061 2062 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 2060 def rdb_snapshot_start_time @rdb_snapshot_start_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2067 2068 2069 2070 2071 2072 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 2067 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 |