Class: Google::Apis::BaremetalsolutionV2::VlanAttachment
- Inherits:
-
Object
- Object
- Google::Apis::BaremetalsolutionV2::VlanAttachment
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/baremetalsolution_v2/classes.rb,
lib/google/apis/baremetalsolution_v2/representations.rb,
lib/google/apis/baremetalsolution_v2/representations.rb
Overview
VLAN attachment details.
Instance Attribute Summary collapse
-
#id ⇒ String
Immutable.
-
#pairing_key ⇒ String
Input only.
-
#peer_ip ⇒ String
The peer IP of the attachment.
-
#peer_vlan_id ⇒ Fixnum
The peer vlan ID of the attachment.
-
#qos_policy ⇒ Google::Apis::BaremetalsolutionV2::QosPolicy
QOS policy parameters.
-
#router_ip ⇒ String
The router IP of the attachment.
Instance Method Summary collapse
-
#initialize(**args) ⇒ VlanAttachment
constructor
A new instance of VlanAttachment.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ VlanAttachment
Returns a new instance of VlanAttachment.
2144 2145 2146 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 2144 def initialize(**args) update!(**args) end |
Instance Attribute Details
#id ⇒ String
Immutable. The identifier of the attachment within vrf.
Corresponds to the JSON property id
2117 2118 2119 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 2117 def id @id end |
#pairing_key ⇒ String
Input only. Pairing key.
Corresponds to the JSON property pairingKey
2122 2123 2124 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 2122 def pairing_key @pairing_key end |
#peer_ip ⇒ String
The peer IP of the attachment.
Corresponds to the JSON property peerIp
2127 2128 2129 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 2127 def peer_ip @peer_ip end |
#peer_vlan_id ⇒ Fixnum
The peer vlan ID of the attachment.
Corresponds to the JSON property peerVlanId
2132 2133 2134 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 2132 def peer_vlan_id @peer_vlan_id end |
#qos_policy ⇒ Google::Apis::BaremetalsolutionV2::QosPolicy
QOS policy parameters.
Corresponds to the JSON property qosPolicy
2137 2138 2139 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 2137 def qos_policy @qos_policy end |
#router_ip ⇒ String
The router IP of the attachment.
Corresponds to the JSON property routerIp
2142 2143 2144 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 2142 def router_ip @router_ip end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2149 2150 2151 2152 2153 2154 2155 2156 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 2149 def update!(**args) @id = args[:id] if args.key?(:id) @pairing_key = args[:pairing_key] if args.key?(:pairing_key) @peer_ip = args[:peer_ip] if args.key?(:peer_ip) @peer_vlan_id = args[:peer_vlan_id] if args.key?(:peer_vlan_id) @qos_policy = args[:qos_policy] if args.key?(:qos_policy) @router_ip = args[:router_ip] if args.key?(:router_ip) end |