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.
338 339 340 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 338 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
326 327 328 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 326 def create_time @create_time end |
#file_name ⇒ String
Output only. e.g: .rdb
Corresponds to the JSON property fileName
331 332 333 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 331 def file_name @file_name end |
#size_bytes ⇒ Fixnum
Output only. Size of the backup file in bytes.
Corresponds to the JSON property sizeBytes
336 337 338 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 336 def size_bytes @size_bytes end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
343 344 345 346 347 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 343 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 |