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



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

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>)


415
416
417
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 415

def database
  @database
end

#kindString

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

Returns:

  • (String)


420
421
422
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 420

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>)


426
427
428
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 426

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)


434
435
436
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 434

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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