diff options
author | Julia Kreger <juliaashleykreger@gmail.com> | 2021-11-30 15:10:43 -0800 |
---|---|---|
committer | Julia Kreger <juliaashleykreger@gmail.com> | 2021-12-01 07:24:27 -0800 |
commit | 2e0cef2cb0b1297788dc187fc61816408060c616 (patch) | |
tree | 6ca5ad2d59dbcc1aefd4ff179d88efbfb9d21a80 /ironicclient/v1/resource_fields.py | |
parent | 4ce3c4ebf2601beacc31b1e35c804fcab912bbf9 (diff) | |
download | python-ironicclient-2e0cef2cb0b1297788dc187fc61816408060c616.tar.gz |
Add node history support
Adds support for rest API version 1.78, which
covers the node history feature.
Story: 2002980
Task: 43319
Change-Id: I6edbc38353a4b2f7b0a758108bc91cc9fb72a29d
Diffstat (limited to 'ironicclient/v1/resource_fields.py')
-rw-r--r-- | ironicclient/v1/resource_fields.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/ironicclient/v1/resource_fields.py b/ironicclient/v1/resource_fields.py index 76cfaca..1c9aebe 100644 --- a/ironicclient/v1/resource_fields.py +++ b/ironicclient/v1/resource_fields.py @@ -79,6 +79,8 @@ class Resource(object): 'enabled_storage_interfaces': 'Enabled Storage Interfaces', 'enabled_vendor_interfaces': 'Enabled Vendor Interfaces', 'extra': 'Extra', + 'event': 'Description of the event', + 'event_type': 'Event Origin Type', 'hostname': 'Hostname', 'hosts': 'Active host(s)', 'http_methods': 'Supported HTTP methods', @@ -140,8 +142,10 @@ class Resource(object): 'raid_interface': 'RAID Interface', 'rescue_interface': 'Rescue Interface', 'storage_interface': 'Storage Interface', + 'severity': 'Severity', 'unique': 'Unique', 'upper_bound': 'Upper Bound', + 'user': 'User', 'vendor_interface': 'Vendor Interface', 'standalone_ports_supported': 'Standalone Ports Supported', 'physical_network': 'Physical Network', @@ -570,3 +574,21 @@ DEPLOY_TEMPLATE_RESOURCE = Resource( 'name', ], ) + + +NODE_HISTORY_RESOURCE = Resource( + ['uuid', + 'created_at', + 'severity', + 'event'] +) + +NODE_HISTORY_DETAILED_RESOURCE = Resource( + ['uuid', + 'created_at', + 'severity', + 'event_type', + 'event', + 'conductor', + 'user'] +) |