Class: Google::Apis::SqladminV1beta3::ExportContext
- Inherits:
-
Object
- Object
- Google::Apis::SqladminV1beta3::ExportContext
- 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 export context.
Instance Attribute Summary collapse
-
#database ⇒ Array<String>
Databases (for example, guestbook) from which the export is made.
-
#kind ⇒ String
This is always sql#exportContext.
-
#table ⇒ Array<String>
Tables to export, or that were exported, from the specified database.
-
#uri ⇒ String
The path to the file in Google Cloud Storage where the export will be stored, or where it was already stored.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ExportContext
constructor
A new instance of ExportContext.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ExportContext
Returns a new instance of ExportContext
453 454 455 |
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 453 def initialize(**args) update!(**args) end |
Instance Attribute Details
#database ⇒ Array<String>
Databases (for example, guestbook) from which the export is made. If
unspecified, all databases are exported.
Corresponds to the JSON property database
432 433 434 |
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 432 def database @database end |
#kind ⇒ String
This is always sql#exportContext.
Corresponds to the JSON property kind
437 438 439 |
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 437 def kind @kind end |
#table ⇒ Array<String>
Tables to export, or that were exported, from the specified database. If you
specify tables, specify one and only one database.
Corresponds to the JSON property table
443 444 445 |
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 443 def table @table end |
#uri ⇒ String
The path to the file in Google Cloud Storage where the export will be stored,
or where it was already stored. The URI is in the form gs://bucketName/
fileName. If the file already exists, the operation fails. If the filename
ends with .gz, the contents are compressed.
Corresponds to the JSON property uri
451 452 453 |
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 451 def uri @uri end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
458 459 460 461 462 463 |
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 458 def update!(**args) @database = args[:database] if args.key?(:database) @kind = args[:kind] if args.key?(:kind) @table = args[:table] if args.key?(:table) @uri = args[:uri] if args.key?(:uri) end |