# Cloud Database Migration Service V1 API - Class Google::Cloud::CloudDMS::V1::AlloyDbSettings (v1.8.0)

1.8.0 (latest) 1.7.0 1.6.0 1.5.1 1.4.0 1.3.1 1.2.2 1.1.0 1.0.1 0.8.0 0.7.2 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.5 Reference documentation and code samples for the Cloud Database Migration Service V1 API class Google::Cloud::CloudDMS::V1::AlloyDbSettings.

Settings for creating an AlloyDB cluster.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #encryption_config

    def encryption_config() -> ::Google::Cloud::CloudDMS::V1::AlloyDbSettings::EncryptionConfig

**Returns**

- ([::Google::Cloud::CloudDMS::V1::AlloyDbSettings::EncryptionConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_dms-v1/latest/Google-Cloud-CloudDMS-V1-AlloyDbSettings-EncryptionConfig)) --- Optional. The encryption config can be specified to encrypt the data disks and other persistent data resources of a cluster with a customer-managed encryption key (CMEK). When this field is not specified, the cluster will then use default encryption scheme to protect the user data.

### #encryption_config=

    def encryption_config=(value) -> ::Google::Cloud::CloudDMS::V1::AlloyDbSettings::EncryptionConfig

**Parameter**

- **value** ([::Google::Cloud::CloudDMS::V1::AlloyDbSettings::EncryptionConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_dms-v1/latest/Google-Cloud-CloudDMS-V1-AlloyDbSettings-EncryptionConfig)) --- Optional. The encryption config can be specified to encrypt the data disks and other persistent data resources of a cluster with a customer-managed encryption key (CMEK). When this field is not specified, the cluster will then use default encryption scheme to protect the user data.
**Returns**

- ([::Google::Cloud::CloudDMS::V1::AlloyDbSettings::EncryptionConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_dms-v1/latest/Google-Cloud-CloudDMS-V1-AlloyDbSettings-EncryptionConfig)) --- Optional. The encryption config can be specified to encrypt the data disks and other persistent data resources of a cluster with a customer-managed encryption key (CMEK). When this field is not specified, the cluster will then use default encryption scheme to protect the user data.

### #initial_user

    def initial_user() -> ::Google::Cloud::CloudDMS::V1::AlloyDbSettings::UserPassword

**Returns**

- ([::Google::Cloud::CloudDMS::V1::AlloyDbSettings::UserPassword](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_dms-v1/latest/Google-Cloud-CloudDMS-V1-AlloyDbSettings-UserPassword)) --- Required. Input only. Initial user to setup during cluster creation. Required.

### #initial_user=

    def initial_user=(value) -> ::Google::Cloud::CloudDMS::V1::AlloyDbSettings::UserPassword

**Parameter**

- **value** ([::Google::Cloud::CloudDMS::V1::AlloyDbSettings::UserPassword](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_dms-v1/latest/Google-Cloud-CloudDMS-V1-AlloyDbSettings-UserPassword)) --- Required. Input only. Initial user to setup during cluster creation. Required.
**Returns**

- ([::Google::Cloud::CloudDMS::V1::AlloyDbSettings::UserPassword](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_dms-v1/latest/Google-Cloud-CloudDMS-V1-AlloyDbSettings-UserPassword)) --- Required. Input only. Initial user to setup during cluster creation. Required.

### #labels

    def labels() -> ::Google::Protobuf::Map{::String => ::String}

**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Labels for the AlloyDB cluster created by DMS. An object containing a list of 'key', 'value' pairs.

### #labels=

    def labels=(value) -> ::Google::Protobuf::Map{::String => ::String}

**Parameter**

- **value** (::Google::Protobuf::Map{::String =\> ::String}) --- Labels for the AlloyDB cluster created by DMS. An object containing a list of 'key', 'value' pairs.
**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Labels for the AlloyDB cluster created by DMS. An object containing a list of 'key', 'value' pairs.

### #primary_instance_settings

    def primary_instance_settings() -> ::Google::Cloud::CloudDMS::V1::AlloyDbSettings::PrimaryInstanceSettings

**Returns**

- ([::Google::Cloud::CloudDMS::V1::AlloyDbSettings::PrimaryInstanceSettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_dms-v1/latest/Google-Cloud-CloudDMS-V1-AlloyDbSettings-PrimaryInstanceSettings))

### #primary_instance_settings=

    def primary_instance_settings=(value) -> ::Google::Cloud::CloudDMS::V1::AlloyDbSettings::PrimaryInstanceSettings

**Parameter**

- **value** ([::Google::Cloud::CloudDMS::V1::AlloyDbSettings::PrimaryInstanceSettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_dms-v1/latest/Google-Cloud-CloudDMS-V1-AlloyDbSettings-PrimaryInstanceSettings))
**Returns**

- ([::Google::Cloud::CloudDMS::V1::AlloyDbSettings::PrimaryInstanceSettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_dms-v1/latest/Google-Cloud-CloudDMS-V1-AlloyDbSettings-PrimaryInstanceSettings))

### #vpc_network

    def vpc_network() -> ::String

**Returns**

- (::String) --- Required. The resource link for the VPC network in which cluster resources are created and from which they are accessible via Private IP. The network must belong to the same project as the cluster. It is specified in the form: "projects/{project_number}/global/networks/{network_id}". This is required to create a cluster.

### #vpc_network=

    def vpc_network=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The resource link for the VPC network in which cluster resources are created and from which they are accessible via Private IP. The network must belong to the same project as the cluster. It is specified in the form: "projects/{project_number}/global/networks/{network_id}". This is required to create a cluster.
**Returns**

- (::String) --- Required. The resource link for the VPC network in which cluster resources are created and from which they are accessible via Private IP. The network must belong to the same project as the cluster. It is specified in the form: "projects/{project_number}/global/networks/{network_id}". This is required to create a cluster.