Class ExportContext
Database instance export context.
Inheritance
Implements
Inherited Members
Namespace: Google.Apis.SQLAdmin.v1beta4.Data
Assembly: Google.Apis.SQLAdmin.v1beta4.dll
Syntax
public class ExportContext : IDirectResponseSchema
Properties
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 |
|---|---|
| System.Collections.Generic.IList<System.String> |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
| Type | Description |
|---|---|
| System.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 |
|---|---|
| System.String |
Kind
This is always sql#exportContext.
Declaration
[JsonProperty("kind")]
public virtual string Kind { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Offload
Option for export offload.
Declaration
[JsonProperty("offload")]
public virtual bool? Offload { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.Boolean> |
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 |
|---|---|
| System.String |