# Bare Metal Solution V2 API - Class Google::Cloud::BareMetalSolution::V2::VRF::VlanAttachment (v1.5.0)

1.5.0 (latest) 1.4.0 1.3.1 1.2.0 1.1.0 1.0.1 0.10.0 0.9.0 0.8.1 0.7.2 0.6.0 0.5.1 0.4.1 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Bare Metal Solution V2 API class Google::Cloud::BareMetalSolution::V2::VRF::VlanAttachment.

VLAN attachment details.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #id

    def id() -> ::String

**Returns**

- (::String) --- Immutable. The identifier of the attachment within vrf.

### #id=

    def id=(value) -> ::String

**Parameter**

- **value** (::String) --- Immutable. The identifier of the attachment within vrf.
**Returns**

- (::String) --- Immutable. The identifier of the attachment within vrf.

### #interconnect_attachment

    def interconnect_attachment() -> ::String

**Returns**

- (::String) --- Optional. The name of the vlan attachment within vrf. This is of the form projects/{project_number}/regions/{region}/interconnectAttachments/{interconnect_attachment}

### #interconnect_attachment=

    def interconnect_attachment=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. The name of the vlan attachment within vrf. This is of the form projects/{project_number}/regions/{region}/interconnectAttachments/{interconnect_attachment}
**Returns**

- (::String) --- Optional. The name of the vlan attachment within vrf. This is of the form projects/{project_number}/regions/{region}/interconnectAttachments/{interconnect_attachment}

### #pairing_key

    def pairing_key() -> ::String

**Returns**

- (::String) --- Input only. Pairing key.

### #pairing_key=

    def pairing_key=(value) -> ::String

**Parameter**

- **value** (::String) --- Input only. Pairing key.
**Returns**

- (::String) --- Input only. Pairing key.

### #peer_ip

    def peer_ip() -> ::String

**Returns**

- (::String) --- The peer IP of the attachment.

### #peer_ip=

    def peer_ip=(value) -> ::String

**Parameter**

- **value** (::String) --- The peer IP of the attachment.
**Returns**

- (::String) --- The peer IP of the attachment.

### #peer_vlan_id

    def peer_vlan_id() -> ::Integer

**Returns**

- (::Integer) --- The peer vlan ID of the attachment.

### #peer_vlan_id=

    def peer_vlan_id=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- The peer vlan ID of the attachment.
**Returns**

- (::Integer) --- The peer vlan ID of the attachment.

### #qos_policy

    def qos_policy() -> ::Google::Cloud::BareMetalSolution::V2::VRF::QosPolicy

**Returns**

- ([::Google::Cloud::BareMetalSolution::V2::VRF::QosPolicy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bare_metal_solution-v2/latest/Google-Cloud-BareMetalSolution-V2-VRF-QosPolicy)) --- The QOS policy applied to this VLAN attachment. This value should be preferred to using qos at vrf level.

### #qos_policy=

    def qos_policy=(value) -> ::Google::Cloud::BareMetalSolution::V2::VRF::QosPolicy

**Parameter**

- **value** ([::Google::Cloud::BareMetalSolution::V2::VRF::QosPolicy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bare_metal_solution-v2/latest/Google-Cloud-BareMetalSolution-V2-VRF-QosPolicy)) --- The QOS policy applied to this VLAN attachment. This value should be preferred to using qos at vrf level.
**Returns**

- ([::Google::Cloud::BareMetalSolution::V2::VRF::QosPolicy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bare_metal_solution-v2/latest/Google-Cloud-BareMetalSolution-V2-VRF-QosPolicy)) --- The QOS policy applied to this VLAN attachment. This value should be preferred to using qos at vrf level.

### #router_ip

    def router_ip() -> ::String

**Returns**

- (::String) --- The router IP of the attachment.

### #router_ip=

    def router_ip=(value) -> ::String

**Parameter**

- **value** (::String) --- The router IP of the attachment.
**Returns**

- (::String) --- The router IP of the attachment.