#include <import_context.h>
Database instance import context.
◆ ImportContext() [1/2]
| google_sqladmin_api::ImportContext::ImportContext |
( |
const Json::Value & |
storage | ) |
|
|
explicit |
Standard constructor for an immutable data object instance.
- Parameters
-
| [in] | storage | The underlying data storage for this instance. |
◆ ImportContext() [2/2]
| google_sqladmin_api::ImportContext::ImportContext |
( |
Json::Value * |
storage | ) |
|
|
explicit |
Standard constructor for a mutable data object instance.
- Parameters
-
| [in] | storage | The underlying data storage for this instance. |
◆ ~ImportContext()
| google_sqladmin_api::ImportContext::~ImportContext |
( |
| ) |
|
|
virtual |
◆ clear_csv_import_options()
| void google_sqladmin_api::ImportContext::clear_csv_import_options |
( |
| ) |
|
|
inline |
Clears the 'csvImportOptions' attribute.
◆ clear_database()
| void google_sqladmin_api::ImportContext::clear_database |
( |
| ) |
|
|
inline |
Clears the 'database' attribute.
◆ clear_file_type()
| void google_sqladmin_api::ImportContext::clear_file_type |
( |
| ) |
|
|
inline |
Clears the 'fileType' attribute.
◆ clear_import_user()
| void google_sqladmin_api::ImportContext::clear_import_user |
( |
| ) |
|
|
inline |
Clears the 'importUser' attribute.
◆ clear_kind()
| void google_sqladmin_api::ImportContext::clear_kind |
( |
| ) |
|
|
inline |
Clears the 'kind' attribute.
◆ clear_uri()
| void google_sqladmin_api::ImportContext::clear_uri |
( |
| ) |
|
|
inline |
Clears the 'uri' attribute.
◆ get_csv_import_options()
Get a reference to the value of the 'csvImportOptions' attribute.
◆ get_database()
| const StringPiece google_sqladmin_api::ImportContext::get_database |
( |
| ) |
const |
|
inline |
Get the value of the 'database' attribute.
◆ get_file_type()
| const StringPiece google_sqladmin_api::ImportContext::get_file_type |
( |
| ) |
const |
|
inline |
Get the value of the 'fileType' attribute.
◆ get_import_user()
| const StringPiece google_sqladmin_api::ImportContext::get_import_user |
( |
| ) |
const |
|
inline |
Get the value of the 'importUser' attribute.
◆ get_kind()
| const StringPiece google_sqladmin_api::ImportContext::get_kind |
( |
| ) |
const |
|
inline |
Get the value of the 'kind' attribute.
◆ get_uri()
| const StringPiece google_sqladmin_api::ImportContext::get_uri |
( |
| ) |
const |
|
inline |
Get the value of the 'uri' attribute.
◆ GetTypeName()
| const StringPiece google_sqladmin_api::ImportContext::GetTypeName |
( |
| ) |
const |
|
inline |
◆ has_csv_import_options()
| bool google_sqladmin_api::ImportContext::has_csv_import_options |
( |
| ) |
const |
|
inline |
Determine if the 'csvImportOptions' attribute was set.
- Returns
- true if the '
csvImportOptions' attribute was set.
◆ has_database()
| bool google_sqladmin_api::ImportContext::has_database |
( |
| ) |
const |
|
inline |
Determine if the 'database' attribute was set.
- Returns
- true if the '
database' attribute was set.
◆ has_file_type()
| bool google_sqladmin_api::ImportContext::has_file_type |
( |
| ) |
const |
|
inline |
Determine if the 'fileType' attribute was set.
- Returns
- true if the '
fileType' attribute was set.
◆ has_import_user()
| bool google_sqladmin_api::ImportContext::has_import_user |
( |
| ) |
const |
|
inline |
Determine if the 'importUser' attribute was set.
- Returns
- true if the '
importUser' attribute was set.
◆ has_kind()
| bool google_sqladmin_api::ImportContext::has_kind |
( |
| ) |
const |
|
inline |
Determine if the 'kind' attribute was set.
- Returns
- true if the '
kind' attribute was set.
◆ has_uri()
| bool google_sqladmin_api::ImportContext::has_uri |
( |
| ) |
const |
|
inline |
Determine if the 'uri' attribute was set.
- Returns
- true if the '
uri' attribute was set.
◆ mutable_csvImportOptions()
Gets a reference to a mutable value of the 'csvImportOptions' property.
Options for importing data as CSV.
- Returns
- The result can be modified to change the attribute value.
◆ New()
Creates a new default instance.
- Returns
- Ownership is passed back to the caller.
◆ set_database()
| void google_sqladmin_api::ImportContext::set_database |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'database' attribute.
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.
- Parameters
-
◆ set_file_type()
| void google_sqladmin_api::ImportContext::set_file_type |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'fileType' attribute.
The file type for the specified uri.
- SQL
- The file contains SQL statements.
- CSV
- The file contains CSV data.
- Parameters
-
◆ set_import_user()
| void google_sqladmin_api::ImportContext::set_import_user |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'importUser' attribute.
The PostgreSQL user for this import operation. PostgreSQL instances only.
- Parameters
-
◆ set_kind()
| void google_sqladmin_api::ImportContext::set_kind |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'kind' attribute.
This is always sql::importContext.
- Parameters
-
◆ set_uri()
| void google_sqladmin_api::ImportContext::set_uri |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'uri' attribute.
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.
- Parameters
-
The documentation for this class was generated from the following files: