class Google::Apis::SqladminV1beta4::BackupRun

A database instance backup run resource.

Attributes

end_time[RW]

The time the backup operation completed in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z. Corresponds to the JSON property `endTime` @return [DateTime]

enqueued_time[RW]

The time the run was enqueued in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z. Corresponds to the JSON property `enqueuedTime` @return [DateTime]

error[RW]

Database instance operation error. Corresponds to the JSON property `error` @return [Google::Apis::SqladminV1beta4::OperationError]

id[RW]

A unique identifier for this backup run. Note that this is unique only within the scope of a particular Cloud SQL instance. Corresponds to the JSON property `id` @return [String]

instance[RW]

Name of the database instance. Corresponds to the JSON property `instance` @return [String]

kind[RW]

This is always sql#backupRun. Corresponds to the JSON property `kind` @return [String]

start_time[RW]

The time the backup operation actually started in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z. Corresponds to the JSON property `startTime` @return [DateTime]

status[RW]

The status of this run. Corresponds to the JSON property `status` @return [String]

window_start_time[RW]

The start time of the backup window during which this the backup was attempted in RFC 3339 format, for example 2012-11-15T16:19:00.094Z. Corresponds to the JSON property `windowStartTime` @return [DateTime]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/sqladmin_v1beta4/classes.rb, line 163
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/sqladmin_v1beta4/classes.rb, line 168
def update!(**args)
  @end_time = args[:end_time] if args.key?(:end_time)
  @enqueued_time = args[:enqueued_time] if args.key?(:enqueued_time)
  @error = args[:error] if args.key?(:error)
  @id = args[:id] if args.key?(:id)
  @instance = args[:instance] if args.key?(:instance)
  @kind = args[:kind] if args.key?(:kind)
  @self_link = args[:self_link] if args.key?(:self_link)
  @start_time = args[:start_time] if args.key?(:start_time)
  @status = args[:status] if args.key?(:status)
  @window_start_time = args[:window_start_time] if args.key?(:window_start_time)
end