|
@@ -77,6 +77,12 @@ class RackBaseSerializer(PrimaryModelSerializer):
|
|
|
required=False,
|
|
required=False,
|
|
|
allow_null=True
|
|
allow_null=True
|
|
|
)
|
|
)
|
|
|
|
|
+ cooling_capability = ChoiceField(
|
|
|
|
|
+ choices=RackCoolingCapabilityChoices,
|
|
|
|
|
+ allow_blank=True,
|
|
|
|
|
+ required=False,
|
|
|
|
|
+ allow_null=True
|
|
|
|
|
+ )
|
|
|
|
|
|
|
|
|
|
|
|
|
class RackTypeSerializer(RackBaseSerializer):
|
|
class RackTypeSerializer(RackBaseSerializer):
|
|
@@ -88,8 +94,9 @@ class RackTypeSerializer(RackBaseSerializer):
|
|
|
fields = [
|
|
fields = [
|
|
|
'id', 'url', 'display_url', 'display', 'manufacturer', 'model', 'slug', 'description', 'form_factor',
|
|
'id', 'url', 'display_url', 'display', 'manufacturer', 'model', 'slug', 'description', 'form_factor',
|
|
|
'width', 'u_height', 'starting_unit', 'desc_units', 'outer_width', 'outer_height', 'outer_depth',
|
|
'width', 'u_height', 'starting_unit', 'desc_units', 'outer_width', 'outer_height', 'outer_depth',
|
|
|
- 'outer_unit', 'weight', 'max_weight', 'weight_unit', 'mounting_depth', 'description', 'owner', 'comments',
|
|
|
|
|
- 'tags', 'custom_fields', 'created', 'last_updated', 'rack_count',
|
|
|
|
|
|
|
+ 'outer_unit', 'weight', 'max_weight', 'weight_unit', 'mounting_depth', 'cooling_capability',
|
|
|
|
|
+ 'cooling_capacity', 'description', 'owner', 'comments', 'tags', 'custom_fields', 'created', 'last_updated',
|
|
|
|
|
+ 'rack_count',
|
|
|
]
|
|
]
|
|
|
brief_fields = ('id', 'url', 'display', 'manufacturer', 'model', 'slug', 'description', 'rack_count')
|
|
brief_fields = ('id', 'url', 'display', 'manufacturer', 'model', 'slug', 'description', 'rack_count')
|
|
|
|
|
|
|
@@ -152,8 +159,9 @@ class RackSerializer(RackBaseSerializer):
|
|
|
'id', 'url', 'display_url', 'display', 'name', 'facility_id', 'site', 'location', 'group', 'tenant',
|
|
'id', 'url', 'display_url', 'display', 'name', 'facility_id', 'site', 'location', 'group', 'tenant',
|
|
|
'status', 'role', 'serial', 'asset_tag', 'rack_type', 'form_factor', 'width', 'u_height', 'starting_unit',
|
|
'status', 'role', 'serial', 'asset_tag', 'rack_type', 'form_factor', 'width', 'u_height', 'starting_unit',
|
|
|
'weight', 'max_weight', 'weight_unit', 'desc_units', 'outer_width', 'outer_height', 'outer_depth',
|
|
'weight', 'max_weight', 'weight_unit', 'desc_units', 'outer_width', 'outer_height', 'outer_depth',
|
|
|
- 'outer_unit', 'mounting_depth', 'airflow', 'description', 'owner', 'comments', 'tags', 'custom_fields',
|
|
|
|
|
- 'created', 'last_updated', 'device_count', 'powerfeed_count',
|
|
|
|
|
|
|
+ 'outer_unit', 'mounting_depth', 'airflow', 'cooling_capability', 'has_rdhx', 'cooling_capacity',
|
|
|
|
|
+ 'description', 'owner', 'comments', 'tags', 'custom_fields', 'created', 'last_updated', 'device_count',
|
|
|
|
|
+ 'powerfeed_count',
|
|
|
]
|
|
]
|
|
|
brief_fields = ('id', 'url', 'display', 'name', 'description', 'device_count')
|
|
brief_fields = ('id', 'url', 'display', 'name', 'description', 'device_count')
|
|
|
|
|
|