Class: Google::Apis::SqladminV1::BackupContext
- Inherits:
-
Object
- Object
- Google::Apis::SqladminV1::BackupContext
- 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 more...
Overview
Backup context.
Instance Attribute Summary collapse
-
#backup_id ⇒ Fixnum
The identifier of the backup.
-
#kind ⇒ String
This is always
sql#backupContext
. -
#name ⇒ String
The name of the backup.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BackupContext
constructor
A new instance of BackupContext.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BackupContext
Returns a new instance of BackupContext.
285 286 287 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 285 def initialize(**args) update!(**args) end |
Instance Attribute Details
#backup_id ⇒ Fixnum
The identifier of the backup.
Corresponds to the JSON property backupId
273 274 275 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 273 def backup_id @backup_id end |
#kind ⇒ String
This is always sql#backupContext
.
Corresponds to the JSON property kind
278 279 280 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 278 def kind @kind end |
#name ⇒ String
The name of the backup. Format: projects/project
/backups/backup
Corresponds to the JSON property name
283 284 285 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 283 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
290 291 292 293 294 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 290 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 |