Class: Google::Apis::RedisV1beta1::BackupFile

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

Backup is consisted of multiple backup files.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BackupFile

Returns a new instance of BackupFile.



459
460
461
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 459

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

Instance Attribute Details

#create_timeString

Output only. The time when the backup file was created. Corresponds to the JSON property createTime

Returns:

  • (String)


447
448
449
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 447

def create_time
  @create_time
end

#file_nameString

Output only. e.g: .rdb Corresponds to the JSON property fileName

Returns:

  • (String)


452
453
454
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 452

def file_name
  @file_name
end

#size_bytesFixnum

Output only. Size of the backup file in bytes. Corresponds to the JSON property sizeBytes

Returns:

  • (Fixnum)


457
458
459
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 457

def size_bytes
  @size_bytes
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



464
465
466
467
468
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 464

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