Class: Google::Apis::SqladminV1::BackupRun
- Inherits:
-
Object
- Object
- Google::Apis::SqladminV1::BackupRun
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/sqladmin_v1/classes.rb,
lib/google/apis/sqladmin_v1/representations.rb,
lib/google/apis/sqladmin_v1/representations.rb
Overview
A BackupRun resource.
Instance Attribute Summary collapse
-
#backup_kind ⇒ String
Specifies the kind of backup, PHYSICAL or DEFAULT_SNAPSHOT.
-
#description ⇒ String
The description of this run, only applicable to on-demand backups.
-
#disk_encryption_configuration ⇒ Google::Apis::SqladminV1::DiskEncryptionConfiguration
Disk encryption configuration for an instance.
-
#disk_encryption_status ⇒ Google::Apis::SqladminV1::DiskEncryptionStatus
Disk encryption status for an instance.
-
#end_time ⇒ String
The time the backup operation completed in UTC timezone in RFC 3339 format, for example
2012-11-15T16:19:00.094Z. -
#enqueued_time ⇒ String
The time the run was enqueued in UTC timezone in RFC 3339 format, for example
2012-11-15T16:19:00.094Z. -
#error ⇒ Google::Apis::SqladminV1::OperationError
Database instance operation error.
-
#id ⇒ Fixnum
The identifier for this backup run.
-
#instance ⇒ String
Name of the database instance.
-
#kind ⇒ String
This is always
sql#backupRun. -
#location ⇒ String
Location of the backups.
-
#self_link ⇒ String
The URI of this resource.
-
#start_time ⇒ String
The time the backup operation actually started in UTC timezone in RFC 3339 format, for example `2012-11-15T16:19:00.
-
#status ⇒ String
The status of this run.
-
#time_zone ⇒ String
Backup time zone to prevent restores to an instance with a different time zone.
-
#type ⇒ String
The type of this run; can be either "AUTOMATED" or "ON_DEMAND" or "FINAL".
-
#window_start_time ⇒ String
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.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BackupRun
constructor
A new instance of BackupRun.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BackupRun
Returns a new instance of BackupRun.
340 341 342 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 340 def initialize(**args) update!(**args) end |
Instance Attribute Details
#backup_kind ⇒ String
Specifies the kind of backup, PHYSICAL or DEFAULT_SNAPSHOT.
Corresponds to the JSON property backupKind
248 249 250 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 248 def backup_kind @backup_kind end |
#description ⇒ String
The description of this run, only applicable to on-demand backups.
Corresponds to the JSON property description
253 254 255 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 253 def description @description end |
#disk_encryption_configuration ⇒ Google::Apis::SqladminV1::DiskEncryptionConfiguration
Disk encryption configuration for an instance.
Corresponds to the JSON property diskEncryptionConfiguration
258 259 260 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 258 def disk_encryption_configuration @disk_encryption_configuration end |
#disk_encryption_status ⇒ Google::Apis::SqladminV1::DiskEncryptionStatus
Disk encryption status for an instance.
Corresponds to the JSON property diskEncryptionStatus
263 264 265 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 263 def disk_encryption_status @disk_encryption_status end |
#end_time ⇒ String
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
269 270 271 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 269 def end_time @end_time end |
#enqueued_time ⇒ String
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
275 276 277 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 275 def enqueued_time @enqueued_time end |
#error ⇒ Google::Apis::SqladminV1::OperationError
Database instance operation error.
Corresponds to the JSON property error
280 281 282 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 280 def error @error end |
#id ⇒ Fixnum
The identifier for this backup run. Unique only for a specific Cloud SQL
instance.
Corresponds to the JSON property id
286 287 288 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 286 def id @id end |
#instance ⇒ String
Name of the database instance.
Corresponds to the JSON property instance
291 292 293 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 291 def instance @instance end |
#kind ⇒ String
This is always sql#backupRun.
Corresponds to the JSON property kind
296 297 298 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 296 def kind @kind end |
#location ⇒ String
Location of the backups.
Corresponds to the JSON property location
301 302 303 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 301 def location @location end |
#self_link ⇒ String
The URI of this resource.
Corresponds to the JSON property selfLink
306 307 308 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 306 def self_link @self_link end |
#start_time ⇒ String
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
313 314 315 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 313 def start_time @start_time end |
#status ⇒ String
The status of this run.
Corresponds to the JSON property status
318 319 320 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 318 def status @status end |
#time_zone ⇒ String
Backup time zone to prevent restores to an instance with a different time zone.
Now relevant only for SQL Server.
Corresponds to the JSON property timeZone
324 325 326 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 324 def time_zone @time_zone end |
#type ⇒ String
The type of this run; can be either "AUTOMATED" or "ON_DEMAND" or "FINAL".
This field defaults to "ON_DEMAND" and is ignored, when specified for insert
requests.
Corresponds to the JSON property type
331 332 333 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 331 def type @type end |
#window_start_time ⇒ String
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
338 339 340 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 338 def window_start_time @window_start_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 345 def update!(**args) @backup_kind = args[:backup_kind] if args.key?(:backup_kind) @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) @time_zone = args[:time_zone] if args.key?(:time_zone) @type = args[:type] if args.key?(:type) @window_start_time = args[:window_start_time] if args.key?(:window_start_time) end |