HardwarePart#

class HardwarePart(model_name=None, part_capacity=None, unit=None, *args, **kwargs)#

Bases: object

Part details of a resource (CPU, memory and storage).

Parameters:
  • model_name (required) – (model_name) Part code of a part (CPU, RAM, HDD, and so on) in a model.

  • part_capacity (required) – (part_capacity) Capacity of the part in a model.

  • unit (required) – (unit)

property model_name#

Part code of a part (CPU, RAM, HDD, and so on) in a model.

Type:

str

property part_capacity#

Capacity of the part in a model.

Type:

float

to_dict()#

Returns the model properties as a dictionary

to_str()#

Returns the string representation of the model

property unit#
Type:

CapacityUnit