Class: Google::Apis::ComputeAlpha::InterconnectAttachmentL2ForwardingApplianceMapping
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::InterconnectAttachmentL2ForwardingApplianceMapping
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/compute_alpha/classes.rb,
lib/google/apis/compute_alpha/representations.rb,
lib/google/apis/compute_alpha/representations.rb
Overview
Two-level VLAN-to-Appliance mapping rule.
Instance Attribute Summary collapse
-
#appliance_ip_address ⇒ String
Optional.
-
#inner_vlan_to_appliance_mappings ⇒ Array<Google::Apis::ComputeAlpha::InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping>
Optional.
-
#name ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ InterconnectAttachmentL2ForwardingApplianceMapping
constructor
A new instance of InterconnectAttachmentL2ForwardingApplianceMapping.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ InterconnectAttachmentL2ForwardingApplianceMapping
Returns a new instance of InterconnectAttachmentL2ForwardingApplianceMapping.
34625 34626 34627 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 34625 def initialize(**args) update!(**args) end |
Instance Attribute Details
#appliance_ip_address ⇒ 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.
Corresponds to the JSON property applianceIpAddress
34609 34610 34611 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 34609 def appliance_ip_address @appliance_ip_address end |
#inner_vlan_to_appliance_mappings ⇒ Array<Google::Apis::ComputeAlpha::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.
Corresponds to the JSON property innerVlanToApplianceMappings
34618 34619 34620 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 34618 def inner_vlan_to_appliance_mappings @inner_vlan_to_appliance_mappings end |
#name ⇒ String
Optional. The name of this appliance mapping rule.
Corresponds to the JSON property name
34623 34624 34625 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 34623 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
34630 34631 34632 34633 34634 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 34630 def update!(**args) @appliance_ip_address = args[:appliance_ip_address] if args.key?(:appliance_ip_address) @inner_vlan_to_appliance_mappings = args[:inner_vlan_to_appliance_mappings] if args.key?(:inner_vlan_to_appliance_mappings) @name = args[:name] if args.key?(:name) end |