Class: Google::Apis::SqladminV1beta3::ImportContext
- Inherits:
-
Object
- Object
- Google::Apis::SqladminV1beta3::ImportContext
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/sqladmin_v1beta3/classes.rb,
generated/google/apis/sqladmin_v1beta3/representations.rb,
generated/google/apis/sqladmin_v1beta3/representations.rb
Overview
Database instance import context.
Instance Attribute Summary collapse
-
#database ⇒ String
The database (for example, guestbook) to which the import is made.
-
#kind ⇒ String
This is always sql#importContext.
-
#uri ⇒ Array<String>
A path to the MySQL dump file in Google Cloud Storage from which the import is made.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ImportContext
constructor
A new instance of ImportContext.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ImportContext
Returns a new instance of ImportContext
555 556 557 |
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 555 def initialize(**args) update!(**args) end |
Instance Attribute Details
#database ⇒ String
The database (for example, guestbook) to which the import is made. If not set,
it is assumed that the database is specified in the file to be imported.
Corresponds to the JSON property database
541 542 543 |
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 541 def database @database end |
#kind ⇒ String
This is always sql#importContext.
Corresponds to the JSON property kind
546 547 548 |
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 546 def kind @kind end |
#uri ⇒ Array<String>
A path to the MySQL dump file in Google Cloud Storage from which the import is
made. The URI is in the form gs://bucketName/fileName. Compressed gzip files (.
gz) are also supported.
Corresponds to the JSON property uri
553 554 555 |
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 553 def uri @uri end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
560 561 562 563 564 |
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 560 def update!(**args) @database = args[:database] if args.key?(:database) @kind = args[:kind] if args.key?(:kind) @uri = args[:uri] if args.key?(:uri) end |