Class ImportContext
Database instance import context.
Implements
Inherited Members
Namespace: Google.Apis.SQLAdmin.v1beta4.Data
Assembly: Google.Apis.SQLAdmin.v1beta4.dll
Syntax
public class ImportContext : IDirectResponseSchema
Properties
BakImportOptions
Import parameters specific to SQL Server .BAK files
Declaration
[JsonProperty("bakImportOptions")]
public virtual ImportContext.BakImportOptionsData BakImportOptions { get; set; }
Property Value
Type | Description |
---|---|
ImportContext.BakImportOptionsData |
CsvImportOptions
Options for importing data as CSV.
Declaration
[JsonProperty("csvImportOptions")]
public virtual ImportContext.CsvImportOptionsData CsvImportOptions { get; set; }
Property Value
Type | Description |
---|---|
ImportContext.CsvImportOptionsData |
Database
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. If
fileType
is CSV
, one database must be specified.
Declaration
[JsonProperty("database")]
public virtual string Database { get; set; }
Property Value
Type | Description |
---|---|
string |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
string |
FileType
The file type for the specified uri. * SQL
: The file contains SQL statements. * CSV
: The file contains
CSV data. * BAK
: The file contains backup data for a SQL Server instance.
Declaration
[JsonProperty("fileType")]
public virtual string FileType { get; set; }
Property Value
Type | Description |
---|---|
string |
ImportUser
The PostgreSQL user for this import operation. PostgreSQL instances only.
Declaration
[JsonProperty("importUser")]
public virtual string ImportUser { get; set; }
Property Value
Type | Description |
---|---|
string |
Kind
This is always sql#importContext
.
Declaration
[JsonProperty("kind")]
public virtual string Kind { get; set; }
Property Value
Type | Description |
---|---|
string |
SqlImportOptions
Optional. Options for importing data from SQL statements.
Declaration
[JsonProperty("sqlImportOptions")]
public virtual ImportContext.SqlImportOptionsData SqlImportOptions { get; set; }
Property Value
Type | Description |
---|---|
ImportContext.SqlImportOptionsData |
Uri
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.
Declaration
[JsonProperty("uri")]
public virtual string Uri { get; set; }
Property Value
Type | Description |
---|---|
string |