Class: Google::Apis::SqladminV1beta4::BackupContext

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/sqladmin_v1beta4/classes.rb,
generated/google/apis/sqladmin_v1beta4/representations.rb,
generated/google/apis/sqladmin_v1beta4/representations.rb

Overview

Backup context.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BackupContext

Returns a new instance of BackupContext.



177
178
179
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 177

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

Instance Attribute Details

#backup_idFixnum

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

Returns:

  • (Fixnum)


170
171
172
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 170

def backup_id
  @backup_id
end

#kindString

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

Returns:

  • (String)


175
176
177
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 175

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



182
183
184
185
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 182

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