Class: Google::Apis::RedisV1::ClusterPersistenceConfig
- Inherits:
-
Object
- Object
- Google::Apis::RedisV1::ClusterPersistenceConfig
- 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
-
#aof_config ⇒ Google::Apis::RedisV1::AofConfig
Configuration of the AOF based persistence.
-
#mode ⇒ String
Optional.
-
#rdb_config ⇒ Google::Apis::RedisV1::RdbConfig
Configuration of the RDB based persistence.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ClusterPersistenceConfig
constructor
A new instance of ClusterPersistenceConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ClusterPersistenceConfig
Returns a new instance of ClusterPersistenceConfig.
564 565 566 |
# File 'lib/google/apis/redis_v1/classes.rb', line 564 def initialize(**args) update!(**args) end |
Instance Attribute Details
#aof_config ⇒ Google::Apis::RedisV1::AofConfig
Configuration of the AOF based persistence.
Corresponds to the JSON property aofConfig
552 553 554 |
# File 'lib/google/apis/redis_v1/classes.rb', line 552 def aof_config @aof_config end |
#mode ⇒ String
Optional. The mode of persistence.
Corresponds to the JSON property mode
557 558 559 |
# File 'lib/google/apis/redis_v1/classes.rb', line 557 def mode @mode end |
#rdb_config ⇒ Google::Apis::RedisV1::RdbConfig
Configuration of the RDB based persistence.
Corresponds to the JSON property rdbConfig
562 563 564 |
# File 'lib/google/apis/redis_v1/classes.rb', line 562 def rdb_config @rdb_config end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
569 570 571 572 573 |
# File 'lib/google/apis/redis_v1/classes.rb', line 569 def update!(**args) @aof_config = args[:aof_config] if args.key?(:aof_config) @mode = args[:mode] if args.key?(:mode) @rdb_config = args[:rdb_config] if args.key?(:rdb_config) end |