# AlloyDB V1 API - Class Google::Cloud::AlloyDB::V1::ImportClusterRequest (v1.9.0)

1.9.0 (latest) 1.7.0 1.6.2 1.5.0 1.4.0 1.3.1 1.2.0 1.1.0 1.0.1 0.12.0 0.11.0 0.10.0 0.9.2 0.8.2 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the AlloyDB V1 API class Google::Cloud::AlloyDB::V1::ImportClusterRequest.

Import cluster request.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #csv_import_options

    def csv_import_options() -> ::Google::Cloud::AlloyDB::V1::ImportClusterRequest::CsvImportOptions

**Returns**

- ([::Google::Cloud::AlloyDB::V1::ImportClusterRequest::CsvImportOptions](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-alloy_db-v1/latest/Google-Cloud-AlloyDB-V1-ImportClusterRequest-CsvImportOptions)) --- Options for importing data in CSV format.


  Note: The following fields are mutually exclusive: `csv_import_options`, `sql_import_options`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #csv_import_options=

    def csv_import_options=(value) -> ::Google::Cloud::AlloyDB::V1::ImportClusterRequest::CsvImportOptions

**Parameter**

- **value** ([::Google::Cloud::AlloyDB::V1::ImportClusterRequest::CsvImportOptions](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-alloy_db-v1/latest/Google-Cloud-AlloyDB-V1-ImportClusterRequest-CsvImportOptions)) --- Options for importing data in CSV format.


  Note: The following fields are mutually exclusive: `csv_import_options`, `sql_import_options`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::AlloyDB::V1::ImportClusterRequest::CsvImportOptions](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-alloy_db-v1/latest/Google-Cloud-AlloyDB-V1-ImportClusterRequest-CsvImportOptions)) --- Options for importing data in CSV format.


  Note: The following fields are mutually exclusive: `csv_import_options`, `sql_import_options`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #database

    def database() -> ::String

**Returns**

- (::String) --- Optional. Name of the database to which the import will be done. For import from SQL file, this is required only if the file does not specify a database. Note - Value provided should be the same as expected from `SELECT
  current_database();` and NOT as a resource reference.

### #database=

    def database=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. Name of the database to which the import will be done. For import from SQL file, this is required only if the file does not specify a database. Note - Value provided should be the same as expected from `SELECT
  current_database();` and NOT as a resource reference.
**Returns**

- (::String) --- Optional. Name of the database to which the import will be done. For import from SQL file, this is required only if the file does not specify a database. Note - Value provided should be the same as expected from `SELECT
  current_database();` and NOT as a resource reference.

### #gcs_uri

    def gcs_uri() -> ::String

**Returns**

- (::String) --- Required. The path to the file in Google Cloud Storage where the source file for import will be stored. The URI is in the form `gs://bucketName/fileName`.

### #gcs_uri=

    def gcs_uri=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The path to the file in Google Cloud Storage where the source file for import will be stored. The URI is in the form `gs://bucketName/fileName`.
**Returns**

- (::String) --- Required. The path to the file in Google Cloud Storage where the source file for import will be stored. The URI is in the form `gs://bucketName/fileName`.

### #name

    def name() -> ::String

**Returns**

- (::String) --- Required. The resource name of the cluster.

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The resource name of the cluster.
**Returns**

- (::String) --- Required. The resource name of the cluster.

### #sql_import_options

    def sql_import_options() -> ::Google::Cloud::AlloyDB::V1::ImportClusterRequest::SqlImportOptions

**Returns**

- ([::Google::Cloud::AlloyDB::V1::ImportClusterRequest::SqlImportOptions](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-alloy_db-v1/latest/Google-Cloud-AlloyDB-V1-ImportClusterRequest-SqlImportOptions)) --- Options for importing data in SQL format.


  Note: The following fields are mutually exclusive: `sql_import_options`, `csv_import_options`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #sql_import_options=

    def sql_import_options=(value) -> ::Google::Cloud::AlloyDB::V1::ImportClusterRequest::SqlImportOptions

**Parameter**

- **value** ([::Google::Cloud::AlloyDB::V1::ImportClusterRequest::SqlImportOptions](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-alloy_db-v1/latest/Google-Cloud-AlloyDB-V1-ImportClusterRequest-SqlImportOptions)) --- Options for importing data in SQL format.


  Note: The following fields are mutually exclusive: `sql_import_options`, `csv_import_options`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::AlloyDB::V1::ImportClusterRequest::SqlImportOptions](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-alloy_db-v1/latest/Google-Cloud-AlloyDB-V1-ImportClusterRequest-SqlImportOptions)) --- Options for importing data in SQL format.


  Note: The following fields are mutually exclusive: `sql_import_options`, `csv_import_options`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #user

    def user() -> ::String

**Returns**

- (::String) --- Optional. Database user to be used for importing the data. Note - Value provided should be the same as expected from `SELECT current_user;` and NOT as a resource reference.

### #user=

    def user=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. Database user to be used for importing the data. Note - Value provided should be the same as expected from `SELECT current_user;` and NOT as a resource reference.
**Returns**

- (::String) --- Optional. Database user to be used for importing the data. Note - Value provided should be the same as expected from `SELECT current_user;` and NOT as a resource reference.