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.



815
816
817
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 815

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)


793
794
795
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 793

def autonomous_system_number
  @autonomous_system_number
end

#juniper_aliasString

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

Returns:

  • (String)


798
799
800
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 798

def juniper_alias
  @juniper_alias
end

#nameString

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

Returns:

  • (String)


803
804
805
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 803

def name
  @name
end

#route_targetFixnum

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

Returns:

  • (Fixnum)


808
809
810
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 808

def route_target
  @route_target
end

#stateString

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

Returns:

  • (String)


813
814
815
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 813

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



820
821
822
823
824
825
826
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 820

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