Class ExportContext
Database instance export context.
Implements
Inherited Members
Namespace: Google.Apis.SQLAdmin.v1.Data
Assembly: Google.Apis.SQLAdmin.v1.dll
Syntax
public class ExportContext : IDirectResponseSchema
Properties
BakExportOptions
Options for exporting BAK files (SQL Server-only)
Declaration
[JsonProperty("bakExportOptions")]
public virtual ExportContext.BakExportOptionsData BakExportOptions { get; set; }
Property Value
Type | Description |
---|---|
ExportContext.BakExportOptionsData |
CsvExportOptions
Options for exporting data as CSV. MySQL
and PostgreSQL
instances only.
Declaration
[JsonProperty("csvExportOptions")]
public virtual ExportContext.CsvExportOptionsData CsvExportOptions { get; set; }
Property Value
Type | Description |
---|---|
ExportContext.CsvExportOptionsData |
Databases
Databases to be exported. MySQL instances:
If fileType
is SQL
and no database is specified, all
databases are exported, except for the mysql
system database. If fileType
is CSV
, you can specify one
database, either by using this property or by using the csvExportOptions.selectQuery
property, which takes
precedence over this property. PostgreSQL instances:
You must specify one database to be exported. If
fileType
is CSV
, this database must match the one specified in the csvExportOptions.selectQuery
property. SQL Server instances:
You must specify one database to be exported, and the fileType
must be
BAK
.
Declaration
[JsonProperty("databases")]
public virtual IList<string> Databases { get; set; }
Property Value
Type | Description |
---|---|
IList<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.
Declaration
[JsonProperty("fileType")]
public virtual string FileType { get; set; }
Property Value
Type | Description |
---|---|
string |
Kind
This is always sql#exportContext
.
Declaration
[JsonProperty("kind")]
public virtual string Kind { get; set; }
Property Value
Type | Description |
---|---|
string |
Offload
Option for export offload.
Declaration
[JsonProperty("offload")]
public virtual bool? Offload { get; set; }
Property Value
Type | Description |
---|---|
bool? |
SqlExportOptions
Options for exporting data as SQL statements.
Declaration
[JsonProperty("sqlExportOptions")]
public virtual ExportContext.SqlExportOptionsData SqlExportOptions { get; set; }
Property Value
Type | Description |
---|---|
ExportContext.SqlExportOptionsData |
Uri
The path to the file in Google Cloud Storage where the export will be stored. The URI is in the form
gs://bucketName/fileName
. If the file already exists, the request succeeds, but the operation fails. If
fileType
is SQL
and the filename ends with .gz, the contents are compressed.
Declaration
[JsonProperty("uri")]
public virtual string Uri { get; set; }
Property Value
Type | Description |
---|---|
string |