#include <export_context.h>
Database instance export context.
◆ ExportContext() [1/2]
| google_sqladmin_api::ExportContext::ExportContext |
( |
const Json::Value & |
storage | ) |
|
|
explicit |
Standard constructor for an immutable data object instance.
- Parameters
-
| [in] | storage | The underlying data storage for this instance. |
◆ ExportContext() [2/2]
| google_sqladmin_api::ExportContext::ExportContext |
( |
Json::Value * |
storage | ) |
|
|
explicit |
Standard constructor for a mutable data object instance.
- Parameters
-
| [in] | storage | The underlying data storage for this instance. |
◆ ~ExportContext()
| google_sqladmin_api::ExportContext::~ExportContext |
( |
| ) |
|
|
virtual |
◆ clear_csv_export_options()
| void google_sqladmin_api::ExportContext::clear_csv_export_options |
( |
| ) |
|
|
inline |
Clears the 'csvExportOptions' attribute.
◆ clear_databases()
| void google_sqladmin_api::ExportContext::clear_databases |
( |
| ) |
|
|
inline |
Clears the 'databases' attribute.
◆ clear_file_type()
| void google_sqladmin_api::ExportContext::clear_file_type |
( |
| ) |
|
|
inline |
Clears the 'fileType' attribute.
◆ clear_kind()
| void google_sqladmin_api::ExportContext::clear_kind |
( |
| ) |
|
|
inline |
Clears the 'kind' attribute.
◆ clear_sql_export_options()
| void google_sqladmin_api::ExportContext::clear_sql_export_options |
( |
| ) |
|
|
inline |
Clears the 'sqlExportOptions' attribute.
◆ clear_uri()
| void google_sqladmin_api::ExportContext::clear_uri |
( |
| ) |
|
|
inline |
Clears the 'uri' attribute.
◆ get_csv_export_options()
Get a reference to the value of the 'csvExportOptions' attribute.
◆ get_databases()
| const client::JsonCppArray<string > google_sqladmin_api::ExportContext::get_databases |
( |
| ) |
const |
|
inline |
Get a reference to the value of the 'databases' attribute.
◆ get_file_type()
| const StringPiece google_sqladmin_api::ExportContext::get_file_type |
( |
| ) |
const |
|
inline |
Get the value of the 'fileType' attribute.
◆ get_kind()
| const StringPiece google_sqladmin_api::ExportContext::get_kind |
( |
| ) |
const |
|
inline |
Get the value of the 'kind' attribute.
◆ get_sql_export_options()
Get a reference to the value of the 'sqlExportOptions' attribute.
◆ get_uri()
| const StringPiece google_sqladmin_api::ExportContext::get_uri |
( |
| ) |
const |
|
inline |
Get the value of the 'uri' attribute.
◆ GetTypeName()
| const StringPiece google_sqladmin_api::ExportContext::GetTypeName |
( |
| ) |
const |
|
inline |
◆ has_csv_export_options()
| bool google_sqladmin_api::ExportContext::has_csv_export_options |
( |
| ) |
const |
|
inline |
Determine if the 'csvExportOptions' attribute was set.
- Returns
- true if the '
csvExportOptions' attribute was set.
◆ has_databases()
| bool google_sqladmin_api::ExportContext::has_databases |
( |
| ) |
const |
|
inline |
Determine if the 'databases' attribute was set.
- Returns
- true if the '
databases' attribute was set.
◆ has_file_type()
| bool google_sqladmin_api::ExportContext::has_file_type |
( |
| ) |
const |
|
inline |
Determine if the 'fileType' attribute was set.
- Returns
- true if the '
fileType' attribute was set.
◆ has_kind()
| bool google_sqladmin_api::ExportContext::has_kind |
( |
| ) |
const |
|
inline |
Determine if the 'kind' attribute was set.
- Returns
- true if the '
kind' attribute was set.
◆ has_sql_export_options()
| bool google_sqladmin_api::ExportContext::has_sql_export_options |
( |
| ) |
const |
|
inline |
Determine if the 'sqlExportOptions' attribute was set.
- Returns
- true if the '
sqlExportOptions' attribute was set.
◆ has_uri()
| bool google_sqladmin_api::ExportContext::has_uri |
( |
| ) |
const |
|
inline |
Determine if the 'uri' attribute was set.
- Returns
- true if the '
uri' attribute was set.
◆ mutable_csvExportOptions()
Gets a reference to a mutable value of the 'csvExportOptions' property.
Options for exporting data as CSV.
- Returns
- The result can be modified to change the attribute value.
◆ mutable_databases()
| client::JsonCppArray<string > google_sqladmin_api::ExportContext::mutable_databases |
( |
| ) |
|
|
inline |
Gets a reference to a mutable value of the 'databases' property.
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: Specify exactly one database to be exported. If fileType is CSV, this database must match the database used in the csvExportOptions.selectQuery property.
- Returns
- The result can be modified to change the attribute value.
◆ mutable_sqlExportOptions()
Gets a reference to a mutable value of the 'sqlExportOptions' property.
Options for exporting data as SQL statements.
- 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_file_type()
| void google_sqladmin_api::ExportContext::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_kind()
| void google_sqladmin_api::ExportContext::set_kind |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'kind' attribute.
This is always sql::exportContext.
- Parameters
-
◆ set_uri()
| void google_sqladmin_api::ExportContext::set_uri |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'uri' attribute.
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 requests succeeds, but the operation fails. If fileType is SQL and the filename ends with .gz, the contents are compressed.
- Parameters
-
The documentation for this class was generated from the following files: