HardwareModel#

class HardwareModel(vendor=None, model=None, cpus=None, rams=None, hdds=None, ssds=None, nvmes=None, ext_id=None, links=None, tenant_id=None, *args, **kwargs)#

Bases: ExternalizableAbstractModel

Metadata about the model. For example, all the parts (CPU, memory and storage) available in the model and their capacity.

Parameters:
  • vendor – (vendor)

  • model – (model) Name of the model.

  • cpus – (cpus) CPU parts in a model.

  • rams – (rams) RAM parts in a model.

  • hdds – (hdds) HDD parts in a model.

  • ssds – (ssds) SSD parts in a model.

  • nvmes – (nvmes) NVMe part details in a model.

property cpus#

CPU parts in a model.

Type:

list[ HardwarePart ]

property hdds#

HDD parts in a model.

Type:

list[ HardwarePart ]

property model#

Name of the model.

Type:

str

property nvmes#

NVMe part details in a model.

Type:

list[ HardwarePart ]

property rams#

RAM parts in a model.

Type:

list[ HardwarePart ]

property ssds#

SSD parts in a model.

Type:

list[ HardwarePart ]

to_dict()#

Returns the model properties as a dictionary

to_str()#

Returns the string representation of the model

property vendor#
Type:

Vendor