# Cloud Database Migration Service V1 API - Class Google::Cloud::CloudDMS::V1::MySqlConnectionProfile (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::MySqlConnectionProfile.

Specifies connection parameters required specifically for MySQL databases.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #cloud_sql_id

    def cloud_sql_id() -> ::String

**Returns**

- (::String) --- If the source is a Cloud SQL database, use this field to provide the Cloud SQL instance ID of the source.

### #cloud_sql_id=

    def cloud_sql_id=(value) -> ::String

**Parameter**

- **value** (::String) --- If the source is a Cloud SQL database, use this field to provide the Cloud SQL instance ID of the source.
**Returns**

- (::String) --- If the source is a Cloud SQL database, use this field to provide the Cloud SQL instance ID of the source.

### #host

    def host() -> ::String

**Returns**

- (::String) --- Required. The IP or hostname of the source MySQL database.

### #host=

    def host=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The IP or hostname of the source MySQL database.
**Returns**

- (::String) --- Required. The IP or hostname of the source MySQL database.

### #password

    def password() -> ::String

**Returns**

- (::String) --- Required. Input only. The password for the user that Database Migration Service will be using to connect to the database. This field is not returned on request, and the value is encrypted when stored in Database Migration Service.

### #password=

    def password=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. Input only. The password for the user that Database Migration Service will be using to connect to the database. This field is not returned on request, and the value is encrypted when stored in Database Migration Service.
**Returns**

- (::String) --- Required. Input only. The password for the user that Database Migration Service will be using to connect to the database. This field is not returned on request, and the value is encrypted when stored in Database Migration Service.

### #password_set

    def password_set() -> ::Boolean

**Returns**

- (::Boolean) --- Output only. Indicates If this connection profile password is stored.

### #port

    def port() -> ::Integer

**Returns**

- (::Integer) --- Required. The network port of the source MySQL database.

### #port=

    def port=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- Required. The network port of the source MySQL database.
**Returns**

- (::Integer) --- Required. The network port of the source MySQL database.

### #ssl

    def ssl() -> ::Google::Cloud::CloudDMS::V1::SslConfig

**Returns**

- ([::Google::Cloud::CloudDMS::V1::SslConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_dms-v1/latest/Google-Cloud-CloudDMS-V1-SslConfig)) --- SSL configuration for the destination to connect to the source database.

### #ssl=

    def ssl=(value) -> ::Google::Cloud::CloudDMS::V1::SslConfig

**Parameter**

- **value** ([::Google::Cloud::CloudDMS::V1::SslConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_dms-v1/latest/Google-Cloud-CloudDMS-V1-SslConfig)) --- SSL configuration for the destination to connect to the source database.
**Returns**

- ([::Google::Cloud::CloudDMS::V1::SslConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_dms-v1/latest/Google-Cloud-CloudDMS-V1-SslConfig)) --- SSL configuration for the destination to connect to the source database.

### #username

    def username() -> ::String

**Returns**

- (::String) --- Required. The username that Database Migration Service will use to connect to the database. The value is encrypted when stored in Database Migration Service.

### #username=

    def username=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The username that Database Migration Service will use to connect to the database. The value is encrypted when stored in Database Migration Service.
**Returns**

- (::String) --- Required. The username that Database Migration Service will use to connect to the database. The value is encrypted when stored in Database Migration Service.