Class: Google::Apis::BaremetalsolutionV2::IntakeVlanAttachment

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

A GCP vlan attachment.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ IntakeVlanAttachment

Returns a new instance of IntakeVlanAttachment.



542
543
544
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 542

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

Instance Attribute Details

#idString

Identifier of the VLAN attachment. Corresponds to the JSON property id

Returns:

  • (String)


535
536
537
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 535

def id
  @id
end

#pairing_keyString

Attachment pairing key. Corresponds to the JSON property pairingKey

Returns:

  • (String)


540
541
542
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 540

def pairing_key
  @pairing_key
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



547
548
549
550
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 547

def update!(**args)
  @id = args[:id] if args.key?(:id)
  @pairing_key = args[:pairing_key] if args.key?(:pairing_key)
end