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.



253
254
255
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 253

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)


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

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)


251
252
253
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 251

def ttl
  @ttl
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



258
259
260
261
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 258

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