Class: Google::Apis::BaremetalsolutionV2::Vrf
- Inherits:
-
Object
- Object
- Google::Apis::BaremetalsolutionV2::Vrf
- 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 network VRF.
Instance Attribute Summary collapse
-
#autonomous_system_number ⇒ String
The autonomous system number of the VRF.
-
#juniper_alias ⇒ String
The Juniper alias of the VRF.
-
#name ⇒ String
The name of the VRF.
-
#route_target ⇒ Fixnum
The route target of the VRF.
-
#state ⇒ String
The possible state of VRF.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Vrf
constructor
A new instance of Vrf.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Vrf
Returns a new instance of Vrf.
411 412 413 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 411 def initialize(**args) update!(**args) end |
Instance Attribute Details
#autonomous_system_number ⇒ String
The autonomous system number of the VRF.
Corresponds to the JSON property autonomousSystemNumber
389 390 391 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 389 def autonomous_system_number @autonomous_system_number end |
#juniper_alias ⇒ String
The Juniper alias of the VRF.
Corresponds to the JSON property juniperAlias
394 395 396 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 394 def juniper_alias @juniper_alias end |
#name ⇒ String
The name of the VRF.
Corresponds to the JSON property name
399 400 401 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 399 def name @name end |
#route_target ⇒ Fixnum
The route target of the VRF.
Corresponds to the JSON property routeTarget
404 405 406 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 404 def route_target @route_target end |
#state ⇒ String
The possible state of VRF.
Corresponds to the JSON property state
409 410 411 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 409 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
416 417 418 419 420 421 422 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 416 def update!(**args) @autonomous_system_number = args[:autonomous_system_number] if args.key?(:autonomous_system_number) @juniper_alias = args[:juniper_alias] if args.key?(:juniper_alias) @name = args[:name] if args.key?(:name) @route_target = args[:route_target] if args.key?(:route_target) @state = args[:state] if args.key?(:state) end |