|
1 | 1 | """Diode plugin helpers."""
|
2 | 2 |
|
3 | 3 | # Generated code. DO NOT EDIT.
|
4 |
| -# Timestamp: 2025-07-23 01:46:44Z |
| 4 | +# Timestamp: 2025-10-02 12:39:10Z |
5 | 5 |
|
6 | 6 | from dataclasses import dataclass
|
7 | 7 | import datetime
|
@@ -333,6 +333,7 @@ class RefInfo:
|
333 | 333 | },
|
334 | 334 | 'dcim.platform': {
|
335 | 335 | 'manufacturer': RefInfo(object_type='dcim.manufacturer', field_name='manufacturer'),
|
| 336 | + 'parent': RefInfo(object_type='dcim.platform', field_name='parent'), |
336 | 337 | 'tags': RefInfo(object_type='extras.tag', field_name='tags', is_many=True),
|
337 | 338 | },
|
338 | 339 | 'dcim.powerfeed': {
|
@@ -1143,13 +1144,13 @@ def get_json_ref_info(object_type: str|Type[models.Model], json_field_name: str)
|
1143 | 1144 | 'dcim.modulebay': frozenset(['custom_fields', 'description', 'device', 'installed_module', 'label', 'module', 'name', 'position', 'tags']),
|
1144 | 1145 | 'dcim.moduletype': frozenset(['airflow', 'attributes', 'comments', 'custom_fields', 'description', 'manufacturer', 'model', 'part_number', 'profile', 'tags', 'weight', 'weight_unit']),
|
1145 | 1146 | 'dcim.moduletypeprofile': frozenset(['comments', 'custom_fields', 'description', 'name', 'schema', 'tags']),
|
1146 |
| - 'dcim.platform': frozenset(['custom_fields', 'description', 'manufacturer', 'name', 'slug', 'tags']), |
| 1147 | + 'dcim.platform': frozenset(['comments', 'custom_fields', 'description', 'manufacturer', 'name', 'parent', 'slug', 'tags']), |
1147 | 1148 | 'dcim.powerfeed': frozenset(['amperage', 'comments', 'custom_fields', 'description', 'mark_connected', 'max_utilization', 'name', 'phase', 'power_panel', 'rack', 'status', 'supply', 'tags', 'tenant', 'type', 'voltage']),
|
1148 | 1149 | 'dcim.poweroutlet': frozenset(['color', 'custom_fields', 'description', 'device', 'feed_leg', 'label', 'mark_connected', 'module', 'name', 'power_port', 'status', 'tags', 'type']),
|
1149 | 1150 | 'dcim.powerpanel': frozenset(['comments', 'custom_fields', 'description', 'location', 'name', 'site', 'tags']),
|
1150 | 1151 | 'dcim.powerport': frozenset(['allocated_draw', 'custom_fields', 'description', 'device', 'label', 'mark_connected', 'maximum_draw', 'module', 'name', 'tags', 'type']),
|
1151 | 1152 | 'dcim.rack': frozenset(['airflow', 'asset_tag', 'comments', 'custom_fields', 'desc_units', 'description', 'facility_id', 'form_factor', 'location', 'max_weight', 'mounting_depth', 'name', 'outer_depth', 'outer_height', 'outer_unit', 'outer_width', 'rack_type', 'role', 'serial', 'site', 'starting_unit', 'status', 'tags', 'tenant', 'u_height', 'weight', 'weight_unit', 'width']),
|
1152 |
| - 'dcim.rackreservation': frozenset(['comments', 'custom_fields', 'description', 'rack', 'tags', 'tenant', 'units']), |
| 1153 | + 'dcim.rackreservation': frozenset(['comments', 'custom_fields', 'description', 'rack', 'status', 'tags', 'tenant', 'units']), |
1153 | 1154 | 'dcim.rackrole': frozenset(['color', 'custom_fields', 'description', 'name', 'slug', 'tags']),
|
1154 | 1155 | 'dcim.racktype': frozenset(['comments', 'custom_fields', 'desc_units', 'description', 'form_factor', 'manufacturer', 'max_weight', 'model', 'mounting_depth', 'outer_depth', 'outer_height', 'outer_unit', 'outer_width', 'slug', 'starting_unit', 'tags', 'u_height', 'weight', 'weight_unit', 'width']),
|
1155 | 1156 | 'dcim.rearport': frozenset(['color', 'custom_fields', 'description', 'device', 'label', 'mark_connected', 'module', 'name', 'positions', 'tags', 'type']),
|
@@ -1387,8 +1388,8 @@ def wrapper(value):
|
1387 | 1388 | 'object_types': for_all(None, True, False),
|
1388 | 1389 | 'related_object_filter': parse_json,
|
1389 | 1390 | 'search_weight': int_from_int64string,
|
1390 |
| - 'validation_maximum': int_from_int64string, |
1391 |
| - 'validation_minimum': int_from_int64string, |
| 1391 | + 'validation_maximum': transform_float_to_decimal, |
| 1392 | + 'validation_minimum': transform_float_to_decimal, |
1392 | 1393 | 'weight': int_from_int64string,
|
1393 | 1394 | },
|
1394 | 1395 | 'extras.customfieldchoiceset': {
|
|
0 commit comments