Class: Google::Apis::RedisV1beta1::BackupClusterRequest
- Inherits:
-
Object
- Object
- Google::Apis::RedisV1beta1::BackupClusterRequest
- 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
-
#backup_id ⇒ String
Optional.
-
#ttl ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BackupClusterRequest
constructor
A new instance of BackupClusterRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_id ⇒ String
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
245 246 247 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 245 def backup_id @backup_id end |
#ttl ⇒ String
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
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 |