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
-
#peer_ip ⇒ String
The peer IP of the attachment.
-
#peer_vlan_id ⇒ Fixnum
The peer vlan ID of the attachment.
-
#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.
1595 1596 1597 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1595 def initialize(**args) update!(**args) end |
Instance Attribute Details
#peer_ip ⇒ String
The peer IP of the attachment.
Corresponds to the JSON property peerIp
1583 1584 1585 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1583 def peer_ip @peer_ip end |
#peer_vlan_id ⇒ Fixnum
The peer vlan ID of the attachment.
Corresponds to the JSON property peerVlanId
1588 1589 1590 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1588 def peer_vlan_id @peer_vlan_id end |
#router_ip ⇒ String
The router IP of the attachment.
Corresponds to the JSON property routerIp
1593 1594 1595 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1593 def router_ip @router_ip end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1600 1601 1602 1603 1604 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1600 def update!(**args) @peer_ip = args[:peer_ip] if args.key?(:peer_ip) @peer_vlan_id = args[:peer_vlan_id] if args.key?(:peer_vlan_id) @router_ip = args[:router_ip] if args.key?(:router_ip) end |