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.



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

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

Instance Attribute Details

#backup_idFixnum

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

Returns:

  • (Fixnum)


447
448
449
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 447

def backup_id
  @backup_id
end

#kindString

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

Returns:

  • (String)


452
453
454
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 452

def kind
  @kind
end

#nameString

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

Returns:

  • (String)


457
458
459
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 457

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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