Class: Google::Apis::SqlV1beta4::BackupRun

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

Overview

A BackupRun 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



231
232
233
# File 'generated/google/apis/sql_v1beta4/classes.rb', line 231

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

Instance Attribute Details

#descriptionString

The description of this run, only applicable to on-demand backups. Corresponds to the JSON property description

Returns:

  • (String)


150
151
152
# File 'generated/google/apis/sql_v1beta4/classes.rb', line 150

def description
  @description
end

#disk_encryption_configurationGoogle::Apis::SqlV1beta4::DiskEncryptionConfiguration

Disk encryption configuration for an instance. Corresponds to the JSON property diskEncryptionConfiguration



155
156
157
# File 'generated/google/apis/sql_v1beta4/classes.rb', line 155

def disk_encryption_configuration
  @disk_encryption_configuration
end

#disk_encryption_statusGoogle::Apis::SqlV1beta4::DiskEncryptionStatus

Disk encryption status for an instance. Corresponds to the JSON property diskEncryptionStatus



160
161
162
# File 'generated/google/apis/sql_v1beta4/classes.rb', line 160

def disk_encryption_status
  @disk_encryption_status
end

#end_timeString

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:

  • (String)


167
168
169
# File 'generated/google/apis/sql_v1beta4/classes.rb', line 167

def end_time
  @end_time
end

#enqueued_timeString

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:

  • (String)


174
175
176
# File 'generated/google/apis/sql_v1beta4/classes.rb', line 174

def enqueued_time
  @enqueued_time
end

#errorGoogle::Apis::SqlV1beta4::OperationError

Database instance operation error. Corresponds to the JSON property error



179
180
181
# File 'generated/google/apis/sql_v1beta4/classes.rb', line 179

def error
  @error
end

#idFixnum

The identifier for this backup run. Unique only for a specific Cloud SQL instance. Corresponds to the JSON property id

Returns:

  • (Fixnum)


185
186
187
# File 'generated/google/apis/sql_v1beta4/classes.rb', line 185

def id
  @id
end

#instanceString

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

Returns:

  • (String)


190
191
192
# File 'generated/google/apis/sql_v1beta4/classes.rb', line 190

def instance
  @instance
end

#kindString

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

Returns:

  • (String)


195
196
197
# File 'generated/google/apis/sql_v1beta4/classes.rb', line 195

def kind
  @kind
end

#locationString

Location of the backups. Corresponds to the JSON property location

Returns:

  • (String)


200
201
202
# File 'generated/google/apis/sql_v1beta4/classes.rb', line 200

def location
  @location
end

The URI of this resource. Corresponds to the JSON property selfLink

Returns:

  • (String)


205
206
207
# File 'generated/google/apis/sql_v1beta4/classes.rb', line 205

def self_link
  @self_link
end

#start_timeString

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:

  • (String)


212
213
214
# File 'generated/google/apis/sql_v1beta4/classes.rb', line 212

def start_time
  @start_time
end

#statusString

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

Returns:

  • (String)


217
218
219
# File 'generated/google/apis/sql_v1beta4/classes.rb', line 217

def status
  @status
end

#typeString

The type of this run; can be either "AUTOMATED" or "ON_DEMAND". Corresponds to the JSON property type

Returns:

  • (String)


222
223
224
# File 'generated/google/apis/sql_v1beta4/classes.rb', line 222

def type
  @type
end

#window_start_timeString

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

Returns:

  • (String)


229
230
231
# File 'generated/google/apis/sql_v1beta4/classes.rb', line 229

def window_start_time
  @window_start_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
# File 'generated/google/apis/sql_v1beta4/classes.rb', line 236

def update!(**args)
  @description = args[:description] if args.key?(:description)
  @disk_encryption_configuration = args[:disk_encryption_configuration] if args.key?(:disk_encryption_configuration)
  @disk_encryption_status = args[:disk_encryption_status] if args.key?(:disk_encryption_status)
  @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)
  @location = args[:location] if args.key?(:location)
  @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)
  @type = args[:type] if args.key?(:type)
  @window_start_time = args[:window_start_time] if args.key?(:window_start_time)
end