Class: Google::Apis::RedisV1beta1::BackupClusterRequest

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

Request for [BackupCluster].

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BackupClusterRequest

Returns a new instance of BackupClusterRequest.



241
242
243
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 241

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

Instance Attribute Details

#backup_idString

Optional. The id of the backup to be created. If not specified, the default value ([YYYYMMDDHHMMSS]_[Shortened Cluster UID] is used. Corresponds to the JSON property backupId

Returns:

  • (String)


233
234
235
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 233

def backup_id
  @backup_id
end

#ttlString

Optional. TTL for the backup to expire. Value range is 1 day to 100 years. If not specified, the default value is 100 years. Corresponds to the JSON property ttl

Returns:

  • (String)


239
240
241
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 239

def ttl
  @ttl
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



246
247
248
249
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 246

def update!(**args)
  @backup_id = args[:backup_id] if args.key?(:backup_id)
  @ttl = args[:ttl] if args.key?(:ttl)
end