Cloud SQL Admin V1 API - Class Google::Cloud::Sql::V1::ImportContext (v0.1.0)

Reference documentation and code samples for the Cloud SQL Admin V1 API class Google::Cloud::Sql::V1::ImportContext.

Database instance import context.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#bak_import_options

def bak_import_options() -> ::Google::Cloud::Sql::V1::ImportContext::SqlBakImportOptions
Returns

#bak_import_options=

def bak_import_options=(value) -> ::Google::Cloud::Sql::V1::ImportContext::SqlBakImportOptions
Parameter
Returns

#csv_import_options

def csv_import_options() -> ::Google::Cloud::Sql::V1::ImportContext::SqlCsvImportOptions
Returns

#csv_import_options=

def csv_import_options=(value) -> ::Google::Cloud::Sql::V1::ImportContext::SqlCsvImportOptions
Parameter
Returns

#database

def database() -> ::String
Returns
  • (::String) — The target database for the import. If fileType is SQL, this field is required only if the import file does not specify a database, and is overridden by any database specification in the import file. For entire instance parallel import operations, the database is overridden by the database name stored in subdirectory name. If fileType is CSV, one database must be specified.

#database=

def database=(value) -> ::String
Parameter
  • value (::String) — The target database for the import. If fileType is SQL, this field is required only if the import file does not specify a database, and is overridden by any database specification in the import file. For entire instance parallel import operations, the database is overridden by the database name stored in subdirectory name. If fileType is CSV, one database must be specified.
Returns
  • (::String) — The target database for the import. If fileType is SQL, this field is required only if the import file does not specify a database, and is overridden by any database specification in the import file. For entire instance parallel import operations, the database is overridden by the database name stored in subdirectory name. If fileType is CSV, one database must be specified.

#file_type

def file_type() -> ::Google::Cloud::Sql::V1::SqlFileType
Returns

#file_type=

def file_type=(value) -> ::Google::Cloud::Sql::V1::SqlFileType
Parameter
Returns

#import_user

def import_user() -> ::String
Returns
  • (::String) — The PostgreSQL user for this import operation. PostgreSQL instances only.

#import_user=

def import_user=(value) -> ::String
Parameter
  • value (::String) — The PostgreSQL user for this import operation. PostgreSQL instances only.
Returns
  • (::String) — The PostgreSQL user for this import operation. PostgreSQL instances only.

#kind

def kind() -> ::String
Returns
  • (::String) — This is always sql#importContext.

#kind=

def kind=(value) -> ::String
Parameter
  • value (::String) — This is always sql#importContext.
Returns
  • (::String) — This is always sql#importContext.

#sql_import_options

def sql_import_options() -> ::Google::Cloud::Sql::V1::ImportContext::SqlImportOptions
Returns

#sql_import_options=

def sql_import_options=(value) -> ::Google::Cloud::Sql::V1::ImportContext::SqlImportOptions
Parameter
Returns

#tde_import_options

def tde_import_options() -> ::Google::Cloud::Sql::V1::ImportContext::SqlTdeImportOptions
Returns

#tde_import_options=

def tde_import_options=(value) -> ::Google::Cloud::Sql::V1::ImportContext::SqlTdeImportOptions
Parameter
Returns

#uri

def uri() -> ::String
Returns
  • (::String) — Path to the import file in Cloud Storage, in the form gs://bucketName/fileName. Compressed gzip files (.gz) are supported when fileType is SQL. The instance must have write permissions to the bucket and read access to the file.

#uri=

def uri=(value) -> ::String
Parameter
  • value (::String) — Path to the import file in Cloud Storage, in the form gs://bucketName/fileName. Compressed gzip files (.gz) are supported when fileType is SQL. The instance must have write permissions to the bucket and read access to the file.
Returns
  • (::String) — Path to the import file in Cloud Storage, in the form gs://bucketName/fileName. Compressed gzip files (.gz) are supported when fileType is SQL. The instance must have write permissions to the bucket and read access to the file.