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.



202
203
204
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 202

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

Instance Attribute Details

#backup_idFixnum

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

Returns:

  • (Fixnum)


195
196
197
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 195

def backup_id
  @backup_id
end

#kindString

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

Returns:

  • (String)


200
201
202
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 200

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



207
208
209
210
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 207

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