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.



363
364
365
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 363

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)


351
352
353
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 351

def create_time
  @create_time
end

#file_nameString

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

Returns:

  • (String)


356
357
358
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 356

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)


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