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