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.



752
753
754
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 752

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)


740
741
742
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 740

def create_time
  @create_time
end

#file_nameString

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

Returns:

  • (String)


745
746
747
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 745

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)


750
751
752
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 750

def size_bytes
  @size_bytes
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



757
758
759
760
761
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 757

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