Class: Google::Apis::SqladminV1::BackupContext

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

Backup context.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BackupContext

Returns a new instance of BackupContext.



461
462
463
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 461

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

Instance Attribute Details

#backup_idFixnum

The identifier of the backup. Corresponds to the JSON property backupId

Returns:

  • (Fixnum)


449
450
451
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 449

def backup_id
  @backup_id
end

#kindString

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

Returns:

  • (String)


454
455
456
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 454

def kind
  @kind
end

#nameString

The name of the backup. Format: projects/project/backups/backup Corresponds to the JSON property name

Returns:

  • (String)


459
460
461
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 459

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



466
467
468
469
470
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 466

def update!(**args)
  @backup_id = args[:backup_id] if args.key?(:backup_id)
  @kind = args[:kind] if args.key?(:kind)
  @name = args[:name] if args.key?(:name)
end