Class: Google::Apis::BaremetalsolutionV2::Vrf

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 network VRF.

Instance Attribute Summary collapse

Instance Method Summary collapse

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_numberString

The autonomous system number of the VRF. Corresponds to the JSON property autonomousSystemNumber

Returns:

  • (String)


389
390
391
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 389

def autonomous_system_number
  @autonomous_system_number
end

#juniper_aliasString

The Juniper alias of the VRF. Corresponds to the JSON property juniperAlias

Returns:

  • (String)


394
395
396
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 394

def juniper_alias
  @juniper_alias
end

#nameString

The name of the VRF. Corresponds to the JSON property name

Returns:

  • (String)


399
400
401
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 399

def name
  @name
end

#route_targetFixnum

The route target of the VRF. Corresponds to the JSON property routeTarget

Returns:

  • (Fixnum)


404
405
406
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 404

def route_target
  @route_target
end

#stateString

The possible state of VRF. Corresponds to the JSON property state

Returns:

  • (String)


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