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
- (::Google::Cloud::Sql::V1::ImportContext::SqlBakImportOptions) — Import parameters specific to SQL Server .BAK files
#bak_import_options=
def bak_import_options=(value) -> ::Google::Cloud::Sql::V1::ImportContext::SqlBakImportOptions
Parameter
- value (::Google::Cloud::Sql::V1::ImportContext::SqlBakImportOptions) — Import parameters specific to SQL Server .BAK files
Returns
- (::Google::Cloud::Sql::V1::ImportContext::SqlBakImportOptions) — Import parameters specific to SQL Server .BAK files
#csv_import_options
def csv_import_options() -> ::Google::Cloud::Sql::V1::ImportContext::SqlCsvImportOptions
Returns
- (::Google::Cloud::Sql::V1::ImportContext::SqlCsvImportOptions) — Options for importing data as CSV.
#csv_import_options=
def csv_import_options=(value) -> ::Google::Cloud::Sql::V1::ImportContext::SqlCsvImportOptions
Parameter
- value (::Google::Cloud::Sql::V1::ImportContext::SqlCsvImportOptions) — Options for importing data as CSV.
Returns
- (::Google::Cloud::Sql::V1::ImportContext::SqlCsvImportOptions) — Options for importing data as CSV.
#database
def database() -> ::String
Returns
-
(::String) — The target database for the import. If
fileTypeisSQL, 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. IffileTypeisCSV, one database must be specified.
#database=
def database=(value) -> ::String
Parameter
-
value (::String) — The target database for the import. If
fileTypeisSQL, 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. IffileTypeisCSV, one database must be specified.
Returns
-
(::String) — The target database for the import. If
fileTypeisSQL, 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. IffileTypeisCSV, one database must be specified.
#file_type
def file_type() -> ::Google::Cloud::Sql::V1::SqlFileType
Returns
-
(::Google::Cloud::Sql::V1::SqlFileType) — The file type for the specified uri.`SQL
: The file contains SQL statements. \CSV`: The file contains CSV data.
#file_type=
def file_type=(value) -> ::Google::Cloud::Sql::V1::SqlFileType
Parameter
-
value (::Google::Cloud::Sql::V1::SqlFileType) — The file type for the specified uri.`SQL
: The file contains SQL statements. \CSV`: The file contains CSV data.
Returns
-
(::Google::Cloud::Sql::V1::SqlFileType) — The file type for the specified uri.`SQL
: The file contains SQL statements. \CSV`: The file contains CSV data.
#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
- (::Google::Cloud::Sql::V1::ImportContext::SqlImportOptions) — Optional. Options for importing data from SQL statements.
#sql_import_options=
def sql_import_options=(value) -> ::Google::Cloud::Sql::V1::ImportContext::SqlImportOptions
Parameter
- value (::Google::Cloud::Sql::V1::ImportContext::SqlImportOptions) — Optional. Options for importing data from SQL statements.
Returns
- (::Google::Cloud::Sql::V1::ImportContext::SqlImportOptions) — Optional. Options for importing data from SQL statements.
#tde_import_options
def tde_import_options() -> ::Google::Cloud::Sql::V1::ImportContext::SqlTdeImportOptions
Returns
- (::Google::Cloud::Sql::V1::ImportContext::SqlTdeImportOptions) — Optional. Import parameters specific to SQL Server TDE certificates
#tde_import_options=
def tde_import_options=(value) -> ::Google::Cloud::Sql::V1::ImportContext::SqlTdeImportOptions
Parameter
- value (::Google::Cloud::Sql::V1::ImportContext::SqlTdeImportOptions) — Optional. Import parameters specific to SQL Server TDE certificates
Returns
- (::Google::Cloud::Sql::V1::ImportContext::SqlTdeImportOptions) — Optional. Import parameters specific to SQL Server TDE certificates
#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 whenfileTypeisSQL. 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 whenfileTypeisSQL. 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 whenfileTypeisSQL. The instance must have write permissions to the bucket and read access to the file.