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