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

The PrivateConnection resource is used to establish private connectivity
with the customer's network.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #create_time

    def create_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_dms-v1/latest/Google-Protobuf-Timestamp)) --- Output only. The create time of the resource.

### #display_name

    def display_name() -> ::String

**Returns**

- (::String) --- The private connection display name.

### #display_name=

    def display_name=(value) -> ::String

**Parameter**

- **value** (::String) --- The private connection display name.
**Returns**

- (::String) --- The private connection display name.

### #error

    def error() -> ::Google::Rpc::Status

**Returns**

- ([::Google::Rpc::Status](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_dms-v1/latest/Google-Rpc-Status)) --- Output only. The error details in case of state FAILED.

### #labels

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

**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- The resource labels for private connections to use to annotate any related underlying resources such as Compute Engine VMs. An object containing a list of "key": "value" pairs.

  Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`.

### #labels=

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

**Parameter**

- **value** (::Google::Protobuf::Map{::String =\> ::String}) --- The resource labels for private connections to use to annotate any related underlying resources such as Compute Engine VMs. An object containing a list of "key": "value" pairs.


  Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`.
**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- The resource labels for private connections to use to annotate any related underlying resources such as Compute Engine VMs. An object containing a list of "key": "value" pairs.

  Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`.

### #name

    def name() -> ::String

**Returns**

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

### #name=

    def name=(value) -> ::String

**Parameter**

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

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

### #state

    def state() -> ::Google::Cloud::CloudDMS::V1::PrivateConnection::State

**Returns**

- ([::Google::Cloud::CloudDMS::V1::PrivateConnection::State](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_dms-v1/latest/Google-Cloud-CloudDMS-V1-PrivateConnection-State)) --- Output only. The state of the private connection.

### #update_time

    def update_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_dms-v1/latest/Google-Protobuf-Timestamp)) --- Output only. The last update time of the resource.

### #vpc_peering_config

    def vpc_peering_config() -> ::Google::Cloud::CloudDMS::V1::VpcPeeringConfig

**Returns**

- ([::Google::Cloud::CloudDMS::V1::VpcPeeringConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_dms-v1/latest/Google-Cloud-CloudDMS-V1-VpcPeeringConfig)) --- VPC peering configuration.

### #vpc_peering_config=

    def vpc_peering_config=(value) -> ::Google::Cloud::CloudDMS::V1::VpcPeeringConfig

**Parameter**

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

- ([::Google::Cloud::CloudDMS::V1::VpcPeeringConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_dms-v1/latest/Google-Cloud-CloudDMS-V1-VpcPeeringConfig)) --- VPC peering configuration.