Class: Google::Apis::SqladminV1::BackupRun

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BackupRun

Returns a new instance of BackupRun.



633
634
635
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 633

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

Instance Attribute Details

#backup_kindString

Specifies the kind of backup, PHYSICAL or DEFAULT_SNAPSHOT. Corresponds to the JSON property backupKind

Returns:

  • (String)


531
532
533
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 531

def backup_kind
  @backup_kind
end

#database_versionString

Output only. The instance database version at the time this backup was made. Corresponds to the JSON property databaseVersion

Returns:

  • (String)


536
537
538
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 536

def database_version
  @database_version
end

#descriptionString

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

Returns:

  • (String)


541
542
543
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 541

def description
  @description
end

#disk_encryption_configurationGoogle::Apis::SqladminV1::DiskEncryptionConfiguration

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



546
547
548
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 546

def disk_encryption_configuration
  @disk_encryption_configuration
end

#disk_encryption_statusGoogle::Apis::SqladminV1::DiskEncryptionStatus

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



551
552
553
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 551

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)


557
558
559
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 557

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)


563
564
565
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 563

def enqueued_time
  @enqueued_time
end

#errorGoogle::Apis::SqladminV1::OperationError

Database instance operation error. Corresponds to the JSON property error



568
569
570
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 568

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)


574
575
576
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 574

def id
  @id
end

#instanceString

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

Returns:

  • (String)


579
580
581
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 579

def instance
  @instance
end

#kindString

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

Returns:

  • (String)


584
585
586
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 584

def kind
  @kind
end

#locationString

Location of the backups. Corresponds to the JSON property location

Returns:

  • (String)


589
590
591
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 589

def location
  @location
end

#max_chargeable_bytesFixnum

Output only. The maximum chargeable bytes for the backup. Corresponds to the JSON property maxChargeableBytes

Returns:

  • (Fixnum)


594
595
596
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 594

def max_chargeable_bytes
  @max_chargeable_bytes
end

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

Returns:

  • (String)


599
600
601
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 599

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)


606
607
608
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 606

def start_time
  @start_time
end

#statusString

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

Returns:

  • (String)


611
612
613
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 611

def status
  @status
end

#time_zoneString

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

Returns:

  • (String)


617
618
619
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 617

def time_zone
  @time_zone
end

#typeString

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

Returns:

  • (String)


624
625
626
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 624

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)


631
632
633
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 631

def window_start_time
  @window_start_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 638

def update!(**args)
  @backup_kind = args[:backup_kind] if args.key?(:backup_kind)
  @database_version = args[:database_version] if args.key?(:database_version)
  @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)
  @max_chargeable_bytes = args[:max_chargeable_bytes] if args.key?(:max_chargeable_bytes)
  @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