Class: Nl::Linux::Devlink::AttributeSets::DlResource

Inherits:
AttributeSet
  • Object
show all
Defined in:
nl-linux/generated/nl/linux/devlink.rb

Defined Under Namespace

Classes: Attribute, ResourceId, ResourceName, ResourceOcc, ResourceSize, ResourceSizeGran, ResourceSizeMax, ResourceSizeMin, ResourceSizeNew, ResourceSizeValid, ResourceUnit

Constant Summary

Constants inherited from AttributeSet

AttributeSet::SELECTOR_NAMES

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from AttributeSet

#<<, #[], build_attributes, decode, #encode, #initialize

Constructor Details

This class inherits a constructor from Nl::AttributeSet

Class Method Details

.by_name(name) ⇒ Attribute

Looks up Attribute class by name.

Parameters:

  • name (Symbol)

Returns:



3734
# File 'nl-linux/generated/nl/linux/devlink.rb', line 3734

def by_name(name); BY_NAME.fetch(name); end

.by_type(type) ⇒ Attribute

Looks up Attribute class by type value.

Parameters:

  • type (Integer)

Returns:



3740
# File 'nl-linux/generated/nl/linux/devlink.rb', line 3740

def by_type(type); BY_TYPE.fetch(type); end

Instance Method Details

#resource_id ⇒ Integer

Returns:

  • (Integer)

See Also:



3694
# File 'nl-linux/generated/nl/linux/devlink.rb', line 3694

def resource_id; self[:"resource_id"]&.value; end

#resource_name ⇒ String

Returns:

  • (String)

See Also:



3690
# File 'nl-linux/generated/nl/linux/devlink.rb', line 3690

def resource_name; self[:"resource_name"]&.value; end

#resource_occ ⇒ Integer

Returns:

  • (Integer)

See Also:



3727
# File 'nl-linux/generated/nl/linux/devlink.rb', line 3727

def resource_occ; self[:"resource_occ"]&.value; end

#resource_size ⇒ Integer

Returns:

  • (Integer)

See Also:



3698
# File 'nl-linux/generated/nl/linux/devlink.rb', line 3698

def resource_size; self[:"resource_size"]&.value; end

#resource_size_gran ⇒ Integer

Returns:

  • (Integer)

See Also:



3718
# File 'nl-linux/generated/nl/linux/devlink.rb', line 3718

def resource_size_gran; self[:"resource_size_gran"]&.value; end

#resource_size_max ⇒ Integer

Returns:

  • (Integer)

See Also:



3714
# File 'nl-linux/generated/nl/linux/devlink.rb', line 3714

def resource_size_max; self[:"resource_size_max"]&.value; end

#resource_size_min ⇒ Integer

Returns:

  • (Integer)

See Also:



3710
# File 'nl-linux/generated/nl/linux/devlink.rb', line 3710

def resource_size_min; self[:"resource_size_min"]&.value; end

#resource_size_new ⇒ Integer

Returns:

  • (Integer)

See Also:



3702
# File 'nl-linux/generated/nl/linux/devlink.rb', line 3702

def resource_size_new; self[:"resource_size_new"]&.value; end

#resource_size_valid ⇒ Integer

Returns:

  • (Integer)

See Also:



3706
# File 'nl-linux/generated/nl/linux/devlink.rb', line 3706

def resource_size_valid; self[:"resource_size_valid"]&.value; end

#resource_unit ⇒ Integer

Known enum values are defined in Enums::ResourceUnit.

Returns:

  • (Integer)

See Also:



3723
# File 'nl-linux/generated/nl/linux/devlink.rb', line 3723

def resource_unit; self[:"resource_unit"]&.value; end