# Google Cloud Compute V1 API - Class Google::Cloud::Compute::V1::InterconnectAttachmentL2ForwardingApplianceMapping (v3.7.0)

3.7.0 (latest) 3.6.0 3.5.0 3.4.0 3.3.0 3.2.0 3.1.0 3.0.0 2.22.0 2.21.1 2.20.0 2.19.1 2.18.0 2.17.0 2.16.0 2.15.0 2.14.0 2.13.0 2.12.0 2.11.0 2.10.0 2.9.0 2.8.0 2.7.2 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.10.0 1.9.0 1.8.0 1.7.1 1.6.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0 0.5.0 Reference documentation and code samples for the Google Cloud Compute V1 API class Google::Cloud::Compute::V1::InterconnectAttachmentL2ForwardingApplianceMapping.

Two-level VLAN-to-Appliance mapping rule.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #appliance_ip_address

    def appliance_ip_address() -> ::String

**Returns**

- (::String) --- Optional. A single IPv4 or IPv6 address used as the destination IP address for ingress packets that match on a VLAN tag, but do not match a more specific inner VLAN tag.

  Unset field (null-value) indicates both VLAN tags are required to be
  mapped. Otherwise, defaultApplianceIpAddress is used.

### #appliance_ip_address=

    def appliance_ip_address=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. A single IPv4 or IPv6 address used as the destination IP address for ingress packets that match on a VLAN tag, but do not match a more specific inner VLAN tag.


  Unset field (null-value) indicates both VLAN tags are required to be
  mapped. Otherwise, defaultApplianceIpAddress is used.
**Returns**

- (::String) --- Optional. A single IPv4 or IPv6 address used as the destination IP address for ingress packets that match on a VLAN tag, but do not match a more specific inner VLAN tag.

  Unset field (null-value) indicates both VLAN tags are required to be
  mapped. Otherwise, defaultApplianceIpAddress is used.

### #inner_vlan_to_appliance_mappings

    def inner_vlan_to_appliance_mappings() -> ::Array<::Google::Cloud::Compute::V1::InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping>

**Returns**

- (::Array\<[::Google::Cloud::Compute::V1::InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-compute-v1/latest/Google-Cloud-Compute-V1-InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping)\>) --- Optional. Used to match against the inner VLAN when the packet contains two VLAN tags.


  A list of mapping rules from inner VLAN tags to IP addresses. If the
  inner VLAN is not explicitly mapped to an IP address range, the
  applianceIpAddress is used.

### #inner_vlan_to_appliance_mappings=

    def inner_vlan_to_appliance_mappings=(value) -> ::Array<::Google::Cloud::Compute::V1::InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping>

**Parameter**

- **value** (::Array\<[::Google::Cloud::Compute::V1::InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-compute-v1/latest/Google-Cloud-Compute-V1-InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping)\>) --- Optional. Used to match against the inner VLAN when the packet contains two VLAN tags.


  A list of mapping rules from inner VLAN tags to IP addresses. If the
  inner VLAN is not explicitly mapped to an IP address range, the
  applianceIpAddress is used.
**Returns**

- (::Array\<[::Google::Cloud::Compute::V1::InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-compute-v1/latest/Google-Cloud-Compute-V1-InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping)\>) --- Optional. Used to match against the inner VLAN when the packet contains two VLAN tags.


  A list of mapping rules from inner VLAN tags to IP addresses. If the
  inner VLAN is not explicitly mapped to an IP address range, the
  applianceIpAddress is used.

### #name

    def name() -> ::String

**Returns**

- (::String) --- Optional. The name of this appliance mapping rule.

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. The name of this appliance mapping rule.
**Returns**

- (::String) --- Optional. The name of this appliance mapping rule.