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



555
556
557
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 555

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)


541
542
543
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 541

def database
  @database
end

#kindString

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

Returns:

  • (String)


546
547
548
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 546

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


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