Bases: object
Resource class
This class is used to manage the various fields that a resource (e.g.
Chassis, Node, Port) contains. An individual field consists of a
‘field_id’ (key) and a ‘label’ (value). The caller only provides the
‘field_ids’ when instantiating the object.
Ordering of the ‘field_ids’ will be preserved as specified by the caller.
It also provides the ability to exclude some of these fields when they are
being used for sorting.
-
FIELDS = {'pxe_enabled': 'PXE boot enabled', 'inspection_finished_at': 'Inspection Finished At', 'driver_info': 'Driver Info', 'network_interface': 'Network Interface', 'name': 'Name', 'target_power_state': 'Target Power State', 'maintenance': 'Maintenance', 'internal_info': 'Internal Info', 'raid_config': 'Current RAID configuration', 'http_methods': 'Supported HTTP methods', 'driver_internal_info': 'Driver Internal Info', 'clean_step': 'Clean Step', 'driver': 'Driver', 'target_raid_config': 'Target RAID configuration', 'chassis_uuid': 'Chassis UUID', 'address': 'Address', 'maintenance_reason': 'Maintenance Reason', 'instance_info': 'Instance Info', 'provision_state': 'Provisioning State', 'target_provision_state': 'Target Provision State', 'attach': 'Response is attachment', 'inspection_started_at': 'Inspection Started At', 'uuid': 'UUID', 'resource_class': 'Resource Class', 'last_error': 'Last Error', 'node_uuid': 'Node UUID', 'updated_at': 'Updated At', 'power_state': 'Power State', 'provision_updated_at': 'Provision Updated At', 'console_enabled': 'Console Enabled', 'instance_uuid': 'Instance UUID', 'created_at': 'Created At', 'extra': 'Extra', 'local_link_connection': 'Local Link Connection', 'description': 'Description', 'reservation': 'Reservation', 'properties': 'Properties', 'async': 'Async'}
-
fields[source]
-
labels[source]
-
sort_fields[source]
-
sort_labels[source]