Class: Google::Apis::BaremetalsolutionV2::VlanAttachment

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ VlanAttachment

Returns a new instance of VlanAttachment.



1889
1890
1891
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1889

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#peer_ipString

The peer IP of the attachment. Corresponds to the JSON property peerIp

Returns:

  • (String)


1877
1878
1879
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1877

def peer_ip
  @peer_ip
end

#peer_vlan_idFixnum

The peer vlan ID of the attachment. Corresponds to the JSON property peerVlanId

Returns:

  • (Fixnum)


1882
1883
1884
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1882

def peer_vlan_id
  @peer_vlan_id
end

#router_ipString

The router IP of the attachment. Corresponds to the JSON property routerIp

Returns:

  • (String)


1887
1888
1889
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1887

def router_ip
  @router_ip
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1894
1895
1896
1897
1898
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1894

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