Class: Google::Apis::SqladminV1beta3::ImportContext

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 import 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) ⇒ ImportContext

Returns a new instance of ImportContext



572
573
574
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 572

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#databaseString

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

Returns:

  • (String)


558
559
560
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 558

def database
  @database
end

#kindString

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

Returns:

  • (String)


563
564
565
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 563

def kind
  @kind
end

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

Returns:

  • (Array<String>)


570
571
572
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 570

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



577
578
579
580
581
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 577

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