Class: Google::Apis::RedisV1beta1::BackupRun

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

A backup run.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BackupRun

Returns a new instance of BackupRun.



788
789
790
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 788

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

Instance Attribute Details

#end_timeString

The time the backup operation completed. REQUIRED Corresponds to the JSON property endTime

Returns:

  • (String)


771
772
773
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 771

def end_time
  @end_time
end

#errorGoogle::Apis::RedisV1beta1::OperationError

An error that occurred during a backup creation operation. Corresponds to the JSON property error



776
777
778
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 776

def error
  @error
end

#start_timeString

The time the backup operation started. REQUIRED Corresponds to the JSON property startTime

Returns:

  • (String)


781
782
783
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 781

def start_time
  @start_time
end

#statusString

The status of this run. REQUIRED Corresponds to the JSON property status

Returns:

  • (String)


786
787
788
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 786

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



793
794
795
796
797
798
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 793

def update!(**args)
  @end_time = args[:end_time] if args.key?(:end_time)
  @error = args[:error] if args.key?(:error)
  @start_time = args[:start_time] if args.key?(:start_time)
  @status = args[:status] if args.key?(:status)
end