Class: Google::Apis::SqladminV1beta3::ExportContext

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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

#databaseArray<String>

Databases (for example, guestbook) from which the export is made. If unspecified, all databases are exported. Corresponds to the JSON property database

Returns:

  • (Array<String>)


432
433
434
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 432

def database
  @database
end

#kindString

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

Returns:

  • (String)


437
438
439
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 437

def kind
  @kind
end

#tableArray<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

Returns:

  • (Array<String>)


443
444
445
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 443

def table
  @table
end

#uriString

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

Returns:

  • (String)


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