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.



2315
2316
2317
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 2315

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)


2281
2282
2283
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 2281

def id
  @id
end

#interconnect_attachmentString

Optional. The name of the vlan attachment within vrf. This is of the form projects/project_number/regions/region/interconnectAttachments/ interconnect_attachment Corresponds to the JSON property interconnectAttachment

Returns:

  • (String)


2288
2289
2290
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 2288

def interconnect_attachment
  @interconnect_attachment
end

#pairing_keyString

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

Returns:

  • (String)


2293
2294
2295
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 2293

def pairing_key
  @pairing_key
end

#peer_ipString

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

Returns:

  • (String)


2298
2299
2300
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 2298

def peer_ip
  @peer_ip
end

#peer_vlan_idFixnum

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

Returns:

  • (Fixnum)


2303
2304
2305
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 2303

def peer_vlan_id
  @peer_vlan_id
end

#qos_policyGoogle::Apis::BaremetalsolutionV2::QosPolicy

QOS policy parameters. Corresponds to the JSON property qosPolicy



2308
2309
2310
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 2308

def qos_policy
  @qos_policy
end

#router_ipString

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

Returns:

  • (String)


2313
2314
2315
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 2313

def router_ip
  @router_ip
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2320
2321
2322
2323
2324
2325
2326
2327
2328
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 2320

def update!(**args)
  @id = args[:id] if args.key?(:id)
  @interconnect_attachment = args[:interconnect_attachment] if args.key?(:interconnect_attachment)
  @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