The ironicclient.v1.resource_fields Module

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 = {'properties': 'Properties', 'power_interface': 'Power Interface', 'boot_interface': 'Boot Interface', 'attach': 'Response is attachment', 'enabled_inspect_interfaces': 'Enabled Inspect Interfaces', 'enabled_power_interfaces': 'Enabled Power Interfaces', 'default_network_interface': 'Default Network Interface', 'enabled_vendor_interfaces': 'Enabled Vendor Interfaces', 'default_management_interface': 'Default Management Interface', 'target_raid_config': 'Target RAID configuration', 'enabled_storage_interfaces': 'Enabled Storage Interfaces', 'default_vendor_interface': 'Default Vendor Interface', 'boot_index': 'Boot Index', 'maintenance': 'Maintenance', 'internal_info': 'Internal Info', 'driver_internal_info': 'Driver Internal Info', 'provision_updated_at': 'Provision Updated At', 'console_enabled': 'Console Enabled', 'name': 'Name', 'instance_uuid': 'Instance UUID', 'node_uuid': 'Node UUID', 'deploy_interface': 'Deploy Interface', 'description': 'Description', 'enabled_network_interfaces': 'Enabled Network Interfaces', 'raid_config': 'Current RAID configuration', 'async': 'Async', 'default_raid_interface': 'Default RAID Interface', 'provision_state': 'Provisioning State', 'default_inspect_interface': 'Default Inspect Interface', 'inspection_started_at': 'Inspection Started At', 'local_link_connection': 'Local Link Connection', 'type': 'Type', 'enabled_management_interfaces': 'Enabled Management Interfaces', 'clean_step': 'Clean Step', 'enabled_console_interfaces': 'Enabled Console Interfaces', 'driver': 'Driver', 'last_error': 'Last Error', 'chassis_uuid': 'Chassis UUID', 'resource_class': 'Resource Class', 'address': 'Address', 'vendor_interface': 'Vendor Interface', 'power_state': 'Power State', 'inspection_finished_at': 'Inspection Finished At', 'pxe_enabled': 'PXE boot enabled', 'inspect_interface': 'Inspect Interface', 'default_boot_interface': 'Default Boot Interface', 'target_power_state': 'Target Power State', 'default_storage_interface': 'Default Storage Interface', 'reservation': 'Reservation', 'console_interface': 'Console Interface', 'enabled_deploy_interfaces': 'Enabled Deploy Interfaces', 'maintenance_reason': 'Maintenance Reason', 'mode': 'Mode', 'hosts': 'Active host(s)', 'http_methods': 'Supported HTTP methods', 'standalone_ports_supported': 'Standalone Ports Supported', 'driver_info': 'Driver Info', 'portgroup_uuid': 'Portgroup UUID', 'updated_at': 'Updated At', 'created_at': 'Created At', 'storage_interface': 'Storage Interface', 'extra': 'Extra', 'connector_id': 'Connector ID', 'default_power_interface': 'Default Power Interface', 'network_interface': 'Network Interface', 'default_deploy_interface': 'Default Deploy Interface', 'physical_network': 'Physical Network', 'volume_type': 'Driver Volume Type', 'default_console_interface': 'Default Console Interface', 'target_provision_state': 'Target Provision State', 'enabled_raid_interfaces': 'Enabled RAID Interfaces', 'management_interface': 'Management Interface', 'instance_info': 'Instance Info', 'id': 'ID', 'uuid': 'UUID', 'raid_interface': 'RAID Interface', 'enabled_boot_interfaces': 'Enabled Boot Interfaces', 'volume_id': 'Volume ID'}
fields
labels
sort_fields
sort_labels
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.