Struct google_sqladmin1_beta4::ImportContext[][src]

pub struct ImportContext {
    pub kind: Option<String>,
    pub import_user: Option<String>,
    pub database: Option<String>,
    pub file_type: Option<String>,
    pub csv_import_options: Option<ImportContextCsvImportOptions>,
    pub uri: Option<String>,
}

Database instance import context.

This type is not used in any activity, and only used as part of another schema.

Fields

This is always sql#importContext.

The PostgreSQL user for this import operation. Defaults to cloudsqlsuperuser. PostgreSQL instances only.

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.

The file type for the specified uri. SQL: The file contains SQL statements. CSV: The file contains CSV data. Importing CSV data using the Cloud SQL Admin API is not supported for PostgreSQL instances.

Options for importing data as CSV. Importing CSV data using the Cloud SQL Admin API is not supported for PostgreSQL instances.

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.

Trait Implementations

impl Default for ImportContext
[src]

Returns the "default value" for a type. Read more

impl Clone for ImportContext
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for ImportContext
[src]

Formats the value using the given formatter. Read more

impl Part for ImportContext
[src]

Auto Trait Implementations