The ironicclient.v1.resource_fields Module

class ironicclient.v1.resource_fields.Resource(field_ids, sort_excluded=None, override_labels=None)[source]

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 = {'vendor_interface': 'Vendor Interface', 'id': 'ID', 'address': 'Address', 'local_link_connection': 'Local Link Connection', 'pxe_enabled': 'PXE boot enabled', 'mode': 'Mode', 'inspect_interface': 'Inspect Interface', 'node_uuid': 'Node UUID', 'last_error': 'Last Error', 'target_raid_config': 'Target RAID configuration', 'hosts': 'Active host(s)', 'target_provision_state': 'Target Provision State', 'http_methods': 'Supported HTTP methods', 'internal_info': 'Internal Info', 'provision_updated_at': 'Provision Updated At', 'driver_info': 'Driver Info', 'instance_uuid': 'Instance UUID', 'console_interface': 'Console Interface', 'properties': 'Properties', 'instance_info': 'Instance Info', 'reservation': 'Reservation', 'raid_interface': 'RAID Interface', 'updated_at': 'Updated At', 'description': 'Description', 'uuid': 'UUID', 'console_enabled': 'Console Enabled', 'driver': 'Driver', 'async': 'Async', 'standalone_ports_supported': 'Standalone Ports Supported', 'power_state': 'Power State', 'extra': 'Extra', 'provision_state': 'Provisioning State', 'driver_internal_info': 'Driver Internal Info', 'inspection_started_at': 'Inspection Started At', 'management_interface': 'Management Interface', 'resource_class': 'Resource Class', 'power_interface': 'Power Interface', 'deploy_interface': 'Deploy Interface', 'clean_step': 'Clean Step', 'target_power_state': 'Target Power State', 'inspection_finished_at': 'Inspection Finished At', 'maintenance': 'Maintenance', 'chassis_uuid': 'Chassis UUID', 'boot_interface': 'Boot Interface', 'name': 'Name', 'created_at': 'Created At', 'maintenance_reason': 'Maintenance Reason', 'portgroup_uuid': 'Portgroup UUID', 'attach': 'Response is attachment', 'network_interface': 'Network Interface', 'raid_config': 'Current RAID configuration'}
fields
labels
sort_fields
sort_labels