Class: Google::Apis::AlloydbV1::StorageDatabasecenterPartnerapiV1mainBackupRun

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/alloydb_v1/classes.rb,
lib/google/apis/alloydb_v1/representations.rb,
lib/google/apis/alloydb_v1/representations.rb

Overview

A backup run.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ StorageDatabasecenterPartnerapiV1mainBackupRun

Returns a new instance of StorageDatabasecenterPartnerapiV1mainBackupRun.



3646
3647
3648
# File 'lib/google/apis/alloydb_v1/classes.rb', line 3646

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)


3629
3630
3631
# File 'lib/google/apis/alloydb_v1/classes.rb', line 3629

def end_time
  @end_time
end

#errorGoogle::Apis::AlloydbV1::StorageDatabasecenterPartnerapiV1mainOperationError

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



3634
3635
3636
# File 'lib/google/apis/alloydb_v1/classes.rb', line 3634

def error
  @error
end

#start_timeString

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

Returns:

  • (String)


3639
3640
3641
# File 'lib/google/apis/alloydb_v1/classes.rb', line 3639

def start_time
  @start_time
end

#statusString

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

Returns:

  • (String)


3644
3645
3646
# File 'lib/google/apis/alloydb_v1/classes.rb', line 3644

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3651
3652
3653
3654
3655
3656
# File 'lib/google/apis/alloydb_v1/classes.rb', line 3651

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