Class: Google::Apis::BaremetalsolutionV1alpha1::VlanAttachment
- Inherits:
-
Object
- Object
- Google::Apis::BaremetalsolutionV1alpha1::VlanAttachment
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/baremetalsolution_v1alpha1/classes.rb,
lib/google/apis/baremetalsolution_v1alpha1/representations.rb,
lib/google/apis/baremetalsolution_v1alpha1/representations.rb
Overview
A GCP vlan attachment.
Instance Attribute Summary collapse
-
#id ⇒ String
Identifier of the VLAN attachment.
-
#pairing_key ⇒ String
Attachment pairing key.
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.
428 429 430 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 428 def initialize(**args) update!(**args) end |
Instance Attribute Details
#id ⇒ String
Identifier of the VLAN attachment.
Corresponds to the JSON property id
421 422 423 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 421 def id @id end |
#pairing_key ⇒ String
Attachment pairing key.
Corresponds to the JSON property pairingKey
426 427 428 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 426 def pairing_key @pairing_key end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
433 434 435 436 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 433 def update!(**args) @id = args[:id] if args.key?(:id) @pairing_key = args[:pairing_key] if args.key?(:pairing_key) end |