Reference documentation and code samples for the Google Cloud Sql Admin V1 Client class ImportContext.
Database instance import context.
Generated from protobuf message google.cloud.sql.v1.ImportContext
Namespace
Google \ Cloud \ Sql \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ uri
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.
↳ database
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.
↳ kind
string
This is always sql#importContext
.
↳ file_type
int
The file type for the specified uri.`SQL : The file contains SQL statements. \
CSV`: The file contains CSV data.
↳ csv_import_options
↳ import_user
string
The PostgreSQL user for this import operation. PostgreSQL instances only.
↳ bak_import_options
↳ sql_import_options
↳ tde_import_options
ImportContext\SqlTdeImportOptions
Optional. Import parameters specific to SQL Server TDE certificates
getUri
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.
string
setUri
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.
var
string
$this
getDatabase
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.
string
setDatabase
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.
var
string
$this
getKind
This is always sql#importContext
.
string
setKind
This is always sql#importContext
.
var
string
$this
getFileType
The file type for the specified uri.`SQL : The file
contains SQL statements. \
CSV`: The file contains CSV data.
setFileType
The file type for the specified uri.`SQL : The file
contains SQL statements. \
CSV`: The file contains CSV data.
$this
getCsvImportOptions
Options for importing data as CSV.
hasCsvImportOptions
clearCsvImportOptions
setCsvImportOptions
Options for importing data as CSV.
$this
getImportUser
The PostgreSQL user for this import operation. PostgreSQL instances only.
string
setImportUser
The PostgreSQL user for this import operation. PostgreSQL instances only.
var
string
$this
getBakImportOptions
Import parameters specific to SQL Server .BAK files
hasBakImportOptions
clearBakImportOptions
setBakImportOptions
Import parameters specific to SQL Server .BAK files
$this
getSqlImportOptions
Optional. Options for importing data from SQL statements.
hasSqlImportOptions
clearSqlImportOptions
setSqlImportOptions
Optional. Options for importing data from SQL statements.
$this
getTdeImportOptions
Optional. Import parameters specific to SQL Server TDE certificates
hasTdeImportOptions
clearTdeImportOptions
setTdeImportOptions
Optional. Import parameters specific to SQL Server TDE certificates
$this

