Class: Google::Apis::RedisV1beta1::BackupFile
- Inherits:
-
Object
- Object
- Google::Apis::RedisV1beta1::BackupFile
- 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
Backup is consisted of multiple backup files.
Instance Attribute Summary collapse
-
#create_time ⇒ String
Output only.
-
#file_name ⇒ String
Output only.
-
#size_bytes ⇒ Fixnum
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BackupFile
constructor
A new instance of BackupFile.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BackupFile
Returns a new instance of BackupFile.
363 364 365 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 363 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Output only. The time when the backup file was created.
Corresponds to the JSON property createTime
351 352 353 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 351 def create_time @create_time end |
#file_name ⇒ String
Output only. e.g: .rdb
Corresponds to the JSON property fileName
356 357 358 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 356 def file_name @file_name end |
#size_bytes ⇒ Fixnum
Output only. Size of the backup file in bytes.
Corresponds to the JSON property sizeBytes
361 362 363 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 361 def size_bytes @size_bytes end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
368 369 370 371 372 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 368 def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) @file_name = args[:file_name] if args.key?(:file_name) @size_bytes = args[:size_bytes] if args.key?(:size_bytes) end |