Class: Google::Apis::SqladminV1beta3::BackupRun

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

Overview

A database instance backup run resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ BackupRun

Returns a new instance of BackupRun



135
136
137
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 135

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

Instance Attribute Details

#backup_configurationString

Backup Configuration identifier. Corresponds to the JSON property backupConfiguration

Returns:

  • (String)


89
90
91
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 89

def backup_configuration
  @backup_configuration
end

#due_timeDateTime

The due time of this run in UTC timezone in RFC 3339 format, for example 2012- 11-15T16:19:00.094Z. Corresponds to the JSON property dueTime

Returns:

  • (DateTime)


95
96
97
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 95

def due_time
  @due_time
end

#end_timeDateTime

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

Returns:

  • (DateTime)


101
102
103
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 101

def end_time
  @end_time
end

#enqueued_timeDateTime

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

Returns:

  • (DateTime)


107
108
109
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 107

def enqueued_time
  @enqueued_time
end

#errorGoogle::Apis::SqladminV1beta3::OperationError

Database instance operation error. Corresponds to the JSON property error



112
113
114
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 112

def error
  @error
end

#instanceString

Name of the database instance. Corresponds to the JSON property instance

Returns:

  • (String)


117
118
119
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 117

def instance
  @instance
end

#kindString

This is always sql#backupRun. Corresponds to the JSON property kind

Returns:

  • (String)


122
123
124
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 122

def kind
  @kind
end

#start_timeDateTime

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

Returns:

  • (DateTime)


128
129
130
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 128

def start_time
  @start_time
end

#statusString

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

Returns:

  • (String)


133
134
135
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 133

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



140
141
142
143
144
145
146
147
148
149
150
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 140

def update!(**args)
  @backup_configuration = args[:backup_configuration] if args.key?(:backup_configuration)
  @due_time = args[:due_time] if args.key?(:due_time)
  @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)
  @instance = args[:instance] if args.key?(:instance)
  @kind = args[:kind] if args.key?(:kind)
  @start_time = args[:start_time] if args.key?(:start_time)
  @status = args[:status] if args.key?(:status)
end