Note: The following fields are mutually exclusive: csv_export_options, sql_export_options. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: csv_export_options, sql_export_options. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: csv_export_options, sql_export_options. If a field in that set is populated, all other fields in the set will automatically be cleared.
#database
defdatabase()->::String
Returns
(::String) — Required. Name of the database where the export command will be executed.
Note - Value provided should be the same as expected from
SELECT current_database(); and NOT as a resource reference.
#database=
defdatabase=(value)->::String
Parameter
value (::String) — Required. Name of the database where the export command will be executed.
Note - Value provided should be the same as expected from
SELECT current_database(); and NOT as a resource reference.
Returns
(::String) — Required. Name of the database where the export command will be executed.
Note - Value provided should be the same as expected from
SELECT current_database(); and NOT as a resource reference.
Note: The following fields are mutually exclusive: sql_export_options, csv_export_options. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: sql_export_options, csv_export_options. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: sql_export_options, csv_export_options. If a field in that set is populated, all other fields in the set will automatically be cleared.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# AlloyDB V1ALPHA API - Class Google::Cloud::AlloyDB::V1alpha::ExportClusterRequest (v0.14.1)\n\nVersion latestkeyboard_arrow_down\n\n- [0.14.1 (latest)](/ruby/docs/reference/google-cloud-alloy_db-v1alpha/latest/Google-Cloud-AlloyDB-V1alpha-ExportClusterRequest)\n- [0.14.0](/ruby/docs/reference/google-cloud-alloy_db-v1alpha/0.14.0/Google-Cloud-AlloyDB-V1alpha-ExportClusterRequest)\n- [0.13.0](/ruby/docs/reference/google-cloud-alloy_db-v1alpha/0.13.0/Google-Cloud-AlloyDB-V1alpha-ExportClusterRequest)\n- [0.12.0](/ruby/docs/reference/google-cloud-alloy_db-v1alpha/0.12.0/Google-Cloud-AlloyDB-V1alpha-ExportClusterRequest)\n- [0.11.1](/ruby/docs/reference/google-cloud-alloy_db-v1alpha/0.11.1/Google-Cloud-AlloyDB-V1alpha-ExportClusterRequest)\n- [0.10.0](/ruby/docs/reference/google-cloud-alloy_db-v1alpha/0.10.0/Google-Cloud-AlloyDB-V1alpha-ExportClusterRequest)\n- [0.9.0](/ruby/docs/reference/google-cloud-alloy_db-v1alpha/0.9.0/Google-Cloud-AlloyDB-V1alpha-ExportClusterRequest)\n- [0.8.0](/ruby/docs/reference/google-cloud-alloy_db-v1alpha/0.8.0/Google-Cloud-AlloyDB-V1alpha-ExportClusterRequest)\n- [0.7.2](/ruby/docs/reference/google-cloud-alloy_db-v1alpha/0.7.2/Google-Cloud-AlloyDB-V1alpha-ExportClusterRequest)\n- [0.6.0](/ruby/docs/reference/google-cloud-alloy_db-v1alpha/0.6.0/Google-Cloud-AlloyDB-V1alpha-ExportClusterRequest)\n- [0.5.2](/ruby/docs/reference/google-cloud-alloy_db-v1alpha/0.5.2/Google-Cloud-AlloyDB-V1alpha-ExportClusterRequest)\n- [0.4.0](/ruby/docs/reference/google-cloud-alloy_db-v1alpha/0.4.0/Google-Cloud-AlloyDB-V1alpha-ExportClusterRequest)\n- [0.3.0](/ruby/docs/reference/google-cloud-alloy_db-v1alpha/0.3.0/Google-Cloud-AlloyDB-V1alpha-ExportClusterRequest)\n- [0.2.0](/ruby/docs/reference/google-cloud-alloy_db-v1alpha/0.2.0/Google-Cloud-AlloyDB-V1alpha-ExportClusterRequest)\n- [0.1.0](/ruby/docs/reference/google-cloud-alloy_db-v1alpha/0.1.0/Google-Cloud-AlloyDB-V1alpha-ExportClusterRequest) \nReference documentation and code samples for the AlloyDB V1ALPHA API class Google::Cloud::AlloyDB::V1alpha::ExportClusterRequest.\n\nExport cluster request. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #csv_export_options\n\n def csv_export_options() -\u003e ::Google::Cloud::AlloyDB::V1alpha::ExportClusterRequest::CsvExportOptions\n\n**Returns**\n\n- ([::Google::Cloud::AlloyDB::V1alpha::ExportClusterRequest::CsvExportOptions](./Google-Cloud-AlloyDB-V1alpha-ExportClusterRequest-CsvExportOptions)) --- Options for exporting data in CSV format. Required field to be set for CSV file type.\n\n\n Note: The following fields are mutually exclusive: `csv_export_options`, `sql_export_options`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #csv_export_options=\n\n def csv_export_options=(value) -\u003e ::Google::Cloud::AlloyDB::V1alpha::ExportClusterRequest::CsvExportOptions\n\n**Parameter**\n\n- **value** ([::Google::Cloud::AlloyDB::V1alpha::ExportClusterRequest::CsvExportOptions](./Google-Cloud-AlloyDB-V1alpha-ExportClusterRequest-CsvExportOptions)) --- Options for exporting data in CSV format. Required field to be set for CSV file type.\n\n\nNote: The following fields are mutually exclusive: `csv_export_options`, `sql_export_options`. If a field in that set is populated, all other fields in the set will automatically be cleared. \n**Returns**\n\n- ([::Google::Cloud::AlloyDB::V1alpha::ExportClusterRequest::CsvExportOptions](./Google-Cloud-AlloyDB-V1alpha-ExportClusterRequest-CsvExportOptions)) --- Options for exporting data in CSV format. Required field to be set for CSV file type.\n\n\n Note: The following fields are mutually exclusive: `csv_export_options`, `sql_export_options`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #database\n\n def database() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Required. Name of the database where the export command will be executed. Note - Value provided should be the same as expected from `SELECT current_database();` and NOT as a resource reference.\n\n### #database=\n\n def database=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Required. Name of the database where the export command will be executed. Note - Value provided should be the same as expected from `SELECT current_database();` and NOT as a resource reference. \n**Returns**\n\n- (::String) --- Required. Name of the database where the export command will be executed. Note - Value provided should be the same as expected from `SELECT current_database();` and NOT as a resource reference.\n\n### #gcs_destination\n\n def gcs_destination() -\u003e ::Google::Cloud::AlloyDB::V1alpha::GcsDestination\n\n**Returns**\n\n- ([::Google::Cloud::AlloyDB::V1alpha::GcsDestination](./Google-Cloud-AlloyDB-V1alpha-GcsDestination)) --- Required. Option to export data to cloud storage.\n\n### #gcs_destination=\n\n def gcs_destination=(value) -\u003e ::Google::Cloud::AlloyDB::V1alpha::GcsDestination\n\n**Parameter**\n\n- **value** ([::Google::Cloud::AlloyDB::V1alpha::GcsDestination](./Google-Cloud-AlloyDB-V1alpha-GcsDestination)) --- Required. Option to export data to cloud storage. \n**Returns**\n\n- ([::Google::Cloud::AlloyDB::V1alpha::GcsDestination](./Google-Cloud-AlloyDB-V1alpha-GcsDestination)) --- Required. Option to export data to cloud storage.\n\n### #name\n\n def name() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Required. The resource name of the cluster.\n\n### #name=\n\n def name=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Required. The resource name of the cluster. \n**Returns**\n\n- (::String) --- Required. The resource name of the cluster.\n\n### #sql_export_options\n\n def sql_export_options() -\u003e ::Google::Cloud::AlloyDB::V1alpha::ExportClusterRequest::SqlExportOptions\n\n**Returns**\n\n- ([::Google::Cloud::AlloyDB::V1alpha::ExportClusterRequest::SqlExportOptions](./Google-Cloud-AlloyDB-V1alpha-ExportClusterRequest-SqlExportOptions)) --- Options for exporting data in SQL format. Required field to be set for SQL file type.\n\n\n Note: The following fields are mutually exclusive: `sql_export_options`, `csv_export_options`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #sql_export_options=\n\n def sql_export_options=(value) -\u003e ::Google::Cloud::AlloyDB::V1alpha::ExportClusterRequest::SqlExportOptions\n\n**Parameter**\n\n- **value** ([::Google::Cloud::AlloyDB::V1alpha::ExportClusterRequest::SqlExportOptions](./Google-Cloud-AlloyDB-V1alpha-ExportClusterRequest-SqlExportOptions)) --- Options for exporting data in SQL format. Required field to be set for SQL file type.\n\n\nNote: The following fields are mutually exclusive: `sql_export_options`, `csv_export_options`. If a field in that set is populated, all other fields in the set will automatically be cleared. \n**Returns**\n\n- ([::Google::Cloud::AlloyDB::V1alpha::ExportClusterRequest::SqlExportOptions](./Google-Cloud-AlloyDB-V1alpha-ExportClusterRequest-SqlExportOptions)) --- Options for exporting data in SQL format. Required field to be set for SQL file type.\n\n\n Note: The following fields are mutually exclusive: `sql_export_options`, `csv_export_options`. If a field in that set is populated, all other fields in the set will automatically be cleared."]]