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.



1857
1858
1859
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1857

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

Instance Attribute Details

#nameString

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

Returns:

  • (String)


1840
1841
1842
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1840

def name
  @name
end

#qos_policyGoogle::Apis::BaremetalsolutionV2::QosPolicy

QOS policy parameters. Corresponds to the JSON property qosPolicy



1845
1846
1847
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1845

def qos_policy
  @qos_policy
end

#stateString

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

Returns:

  • (String)


1850
1851
1852
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1850

def state
  @state
end

#vlan_attachmentsArray<Google::Apis::BaremetalsolutionV2::VlanAttachment>

The list of VLAN attachments for the VRF. Corresponds to the JSON property vlanAttachments



1855
1856
1857
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1855

def vlan_attachments
  @vlan_attachments
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1862
1863
1864
1865
1866
1867
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1862

def update!(**args)
  @name = args[:name] if args.key?(:name)
  @qos_policy = args[:qos_policy] if args.key?(:qos_policy)
  @state = args[:state] if args.key?(:state)
  @vlan_attachments = args[:vlan_attachments] if args.key?(:vlan_attachments)
end