# Distributed Cloud Edge Network V1 API - Class Google::Cloud::EdgeNetwork::V1::InterconnectAttachment (v2.6.0)

2.6.0 (latest) 2.5.0 2.4.0 2.3.1 2.2.0 2.1.0 2.0.2 1.2.0 1.1.0 1.0.3 0.5.0 0.4.1 0.3.1 0.2.1 0.1.0 Reference documentation and code samples for the Distributed Cloud Edge Network V1 API class Google::Cloud::EdgeNetwork::V1::InterconnectAttachment.

Message describing InterconnectAttachment object

## 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-edge_network-v1/latest/Google-Protobuf-Timestamp)) --- Output only. The time when the interconnect attachment was created.

### #description

    def description() -> ::String

**Returns**

- (::String) --- Optional. A free-text description of the resource. Max length 1024 characters.

### #description=

    def description=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. A free-text description of the resource. Max length 1024 characters.
**Returns**

- (::String) --- Optional. A free-text description of the resource. Max length 1024 characters.

### #interconnect

    def interconnect() -> ::String

**Returns**

- (::String) --- Required. The canonical name of underlying Interconnect object that this attachment's traffic will traverse through. The name is in the form of `projects/{project}/locations/{location}/zones/{zone}/interconnects/{interconnect}`.

### #interconnect=

    def interconnect=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The canonical name of underlying Interconnect object that this attachment's traffic will traverse through. The name is in the form of `projects/{project}/locations/{location}/zones/{zone}/interconnects/{interconnect}`.
**Returns**

- (::String) --- Required. The canonical name of underlying Interconnect object that this attachment's traffic will traverse through. The name is in the form of `projects/{project}/locations/{location}/zones/{zone}/interconnects/{interconnect}`.

### #labels

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

**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Labels associated with this resource.

### #labels=

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

**Parameter**

- **value** (::Google::Protobuf::Map{::String =\> ::String}) --- Labels associated with this resource.
**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Labels associated with this resource.

### #mtu

    def mtu() -> ::Integer

**Returns**

- (::Integer) --- IP (L3) MTU value of the virtual edge cloud. Valid values are: 1500 and 9000. Default to 1500 if not set.

### #mtu=

    def mtu=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- IP (L3) MTU value of the virtual edge cloud. Valid values are: 1500 and 9000. Default to 1500 if not set.
**Returns**

- (::Integer) --- IP (L3) MTU value of the virtual edge cloud. Valid values are: 1500 and 9000. Default to 1500 if not set.

### #name

    def name() -> ::String

**Returns**

- (::String) --- Required. The canonical resource name of the interconnect attachment.

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The canonical resource name of the interconnect attachment.
**Returns**

- (::String) --- Required. The canonical resource name of the interconnect attachment.

### #network

    def network() -> ::String

**Returns**

- (::String) --- Optional. The canonical Network name in the form of `projects/{project}/locations/{location}/zones/{zone}/networks/{network}`.

### #network=

    def network=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. The canonical Network name in the form of `projects/{project}/locations/{location}/zones/{zone}/networks/{network}`.
**Returns**

- (::String) --- Optional. The canonical Network name in the form of `projects/{project}/locations/{location}/zones/{zone}/networks/{network}`.

### #peering_type

    def peering_type() -> ::Google::Cloud::EdgeNetwork::V1::RemotePeeringNetworkType

**Returns**

- ([::Google::Cloud::EdgeNetwork::V1::RemotePeeringNetworkType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-edge_network-v1/latest/Google-Cloud-EdgeNetwork-V1-RemotePeeringNetworkType)) --- Optional. The remote peering network type of the underlying interconnect. It is required when peering separation is enabled.

### #peering_type=

    def peering_type=(value) -> ::Google::Cloud::EdgeNetwork::V1::RemotePeeringNetworkType

**Parameter**

- **value** ([::Google::Cloud::EdgeNetwork::V1::RemotePeeringNetworkType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-edge_network-v1/latest/Google-Cloud-EdgeNetwork-V1-RemotePeeringNetworkType)) --- Optional. The remote peering network type of the underlying interconnect. It is required when peering separation is enabled.
**Returns**

- ([::Google::Cloud::EdgeNetwork::V1::RemotePeeringNetworkType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-edge_network-v1/latest/Google-Cloud-EdgeNetwork-V1-RemotePeeringNetworkType)) --- Optional. The remote peering network type of the underlying interconnect. It is required when peering separation is enabled.

### #state

    def state() -> ::Google::Cloud::EdgeNetwork::V1::ResourceState

**Returns**

- ([::Google::Cloud::EdgeNetwork::V1::ResourceState](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-edge_network-v1/latest/Google-Cloud-EdgeNetwork-V1-ResourceState)) --- Output only. Current stage of the resource to the device by config push.

### #update_time

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

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-edge_network-v1/latest/Google-Protobuf-Timestamp)) --- Output only. The time when the interconnect attachment was last updated.

### #vlan_id

    def vlan_id() -> ::Integer

**Returns**

- (::Integer) --- Required. VLAN id provided by user. Must be site-wise unique.

### #vlan_id=

    def vlan_id=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- Required. VLAN id provided by user. Must be site-wise unique.
**Returns**

- (::Integer) --- Required. VLAN id provided by user. Must be site-wise unique.