Class: Google::Apis::RedisV1beta1::ClusterPersistenceConfig

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ClusterPersistenceConfig

Returns a new instance of ClusterPersistenceConfig.



1300
1301
1302
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 1300

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#aof_configGoogle::Apis::RedisV1beta1::AofConfig

Configuration of the AOF based persistence. Corresponds to the JSON property aofConfig



1288
1289
1290
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 1288

def aof_config
  @aof_config
end

#modeString

Optional. The mode of persistence. Corresponds to the JSON property mode

Returns:

  • (String)


1293
1294
1295
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 1293

def mode
  @mode
end

#rdb_configGoogle::Apis::RedisV1beta1::RdbConfig

Configuration of the RDB based persistence. Corresponds to the JSON property rdbConfig



1298
1299
1300
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 1298

def rdb_config
  @rdb_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1305
1306
1307
1308
1309
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 1305

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