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.



2161
2162
2163
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 2161

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

Instance Attribute Details

#idString

Immutable. The identifier of the attachment within vrf. Corresponds to the JSON property id

Returns:

  • (String)


2134
2135
2136
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 2134

def id
  @id
end

#pairing_keyString

Input only. Pairing key. Corresponds to the JSON property pairingKey

Returns:

  • (String)


2139
2140
2141
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 2139

def pairing_key
  @pairing_key
end

#peer_ipString

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

Returns:

  • (String)


2144
2145
2146
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 2144

def peer_ip
  @peer_ip
end

#peer_vlan_idFixnum

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

Returns:

  • (Fixnum)


2149
2150
2151
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 2149

def peer_vlan_id
  @peer_vlan_id
end

#qos_policyGoogle::Apis::BaremetalsolutionV2::QosPolicy

QOS policy parameters. Corresponds to the JSON property qosPolicy



2154
2155
2156
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 2154

def qos_policy
  @qos_policy
end

#router_ipString

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

Returns:

  • (String)


2159
2160
2161
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 2159

def router_ip
  @router_ip
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2166
2167
2168
2169
2170
2171
2172
2173
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 2166

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