# Network Connectivity V1 API - Class Google::Cloud::NetworkConnectivity::V1::Destination (v1.14.0)

1.14.0 (latest) 1.13.0 1.12.0 1.11.0 1.10.1 1.9.0 1.8.0 1.7.0 1.6.0 1.5.1 1.4.0 1.3.0 1.2.0 1.1.0 1.0.1 0.10.0 0.9.2 0.8.0 0.7.0 0.6.1 0.5.0 0.4.1 0.3.0 0.2.0 0.1.4 Reference documentation and code samples for the Network Connectivity V1 API class Google::Cloud::NetworkConnectivity::V1::Destination.

The `Destination` resource. It specifies the IP prefix and the associated
autonomous system numbers (ASN) that you want to include in a
`MulticloudDataTransferConfig` resource.

## 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-network_connectivity-v1/latest/Google-Protobuf-Timestamp)) --- Output only. Time when the `Destination` resource was created.

### #description

    def description() -> ::String

**Returns**

- (::String) --- Optional. A description of this resource.

### #description=

    def description=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. A description of this resource.
**Returns**

- (::String) --- Optional. A description of this resource.

### #endpoints

    def endpoints() -> ::Array<::Google::Cloud::NetworkConnectivity::V1::Destination::DestinationEndpoint>

**Returns**

- (::Array\<[::Google::Cloud::NetworkConnectivity::V1::Destination::DestinationEndpoint](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_connectivity-v1/latest/Google-Cloud-NetworkConnectivity-V1-Destination-DestinationEndpoint)\>) --- Required. Unordered list. The list of `DestinationEndpoint` resources configured for the IP prefix.

### #endpoints=

    def endpoints=(value) -> ::Array<::Google::Cloud::NetworkConnectivity::V1::Destination::DestinationEndpoint>

**Parameter**

- **value** (::Array\<[::Google::Cloud::NetworkConnectivity::V1::Destination::DestinationEndpoint](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_connectivity-v1/latest/Google-Cloud-NetworkConnectivity-V1-Destination-DestinationEndpoint)\>) --- Required. Unordered list. The list of `DestinationEndpoint` resources configured for the IP prefix.
**Returns**

- (::Array\<[::Google::Cloud::NetworkConnectivity::V1::Destination::DestinationEndpoint](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_connectivity-v1/latest/Google-Cloud-NetworkConnectivity-V1-Destination-DestinationEndpoint)\>) --- Required. Unordered list. The list of `DestinationEndpoint` resources configured for the IP prefix.

### #etag

    def etag() -> ::String

**Returns**

- (::String) --- The etag is computed by the server, and might be sent with update and delete requests so that the client has an up-to-date value before proceeding.

### #etag=

    def etag=(value) -> ::String

**Parameter**

- **value** (::String) --- The etag is computed by the server, and might be sent with update and delete requests so that the client has an up-to-date value before proceeding.
**Returns**

- (::String) --- The etag is computed by the server, and might be sent with update and delete requests so that the client has an up-to-date value before proceeding.

### #ip_prefix

    def ip_prefix() -> ::String

**Returns**

- (::String) --- Required. Immutable. The IP prefix that represents your workload on another CSP.

### #ip_prefix=

    def ip_prefix=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. Immutable. The IP prefix that represents your workload on another CSP.
**Returns**

- (::String) --- Required. Immutable. The IP prefix that represents your workload on another CSP.

### #labels

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

**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Optional. User-defined labels.

### #labels=

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

**Parameter**

- **value** (::Google::Protobuf::Map{::String =\> ::String}) --- Optional. User-defined labels.
**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Optional. User-defined labels.

### #name

    def name() -> ::String

**Returns**

- (::String) --- Identifier. The name of the `Destination` resource. Format: `projects/{project}/locations/{location}/multicloudDataTransferConfigs/{multicloud_data_transfer_config}/destinations/{destination}`.

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- Identifier. The name of the `Destination` resource. Format: `projects/{project}/locations/{location}/multicloudDataTransferConfigs/{multicloud_data_transfer_config}/destinations/{destination}`.
**Returns**

- (::String) --- Identifier. The name of the `Destination` resource. Format: `projects/{project}/locations/{location}/multicloudDataTransferConfigs/{multicloud_data_transfer_config}/destinations/{destination}`.

### #state_timeline

    def state_timeline() -> ::Google::Cloud::NetworkConnectivity::V1::StateTimeline

**Returns**

- ([::Google::Cloud::NetworkConnectivity::V1::StateTimeline](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_connectivity-v1/latest/Google-Cloud-NetworkConnectivity-V1-StateTimeline)) --- Output only. The timeline of the expected `Destination` states or the current rest state. If a state change is expected, the value is `ADDING`, `DELETING` or `SUSPENDING`, depending on the action specified.


  Example:
  "state_timeline": {
  "states": \[
  {
  // The time when the `Destination` resource will be activated.
  "effectiveTime": "2024-12-01T08:00:00Z",
  "state": "ADDING"
  },
  {
  // The time when the `Destination` resource will be suspended.
  "effectiveTime": "2024-12-01T20:00:00Z",
  "state": "SUSPENDING"
  }
  \]
  }

### #uid

    def uid() -> ::String

**Returns**

- (::String) --- Output only. The Google-generated unique ID for the `Destination` resource. This value is unique across all `Destination` resources. If a resource is deleted and another with the same name is created, the new resource is assigned a different and unique ID.

### #update_time

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

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_connectivity-v1/latest/Google-Protobuf-Timestamp)) --- Output only. Time when the `Destination` resource was updated.