|
|
@@ -1,4 +1,4 @@
|
|
|
-from typing import TYPE_CHECKING, Annotated, List, Union
|
|
|
+from typing import TYPE_CHECKING, Annotated
|
|
|
|
|
|
import strawberry
|
|
|
import strawberry_django
|
|
|
@@ -106,10 +106,7 @@ class ModularComponentType(ComponentType):
|
|
|
|
|
|
|
|
|
@strawberry.type
|
|
|
-class ComponentTemplateType(
|
|
|
- ChangelogMixin,
|
|
|
- BaseObjectType
|
|
|
-):
|
|
|
+class ComponentTemplateType(ChangelogMixin, BaseObjectType):
|
|
|
"""
|
|
|
Base type for device/VM components
|
|
|
"""
|
|
|
@@ -136,18 +133,19 @@ class ModularComponentTemplateType(ComponentTemplateType):
|
|
|
pagination=True
|
|
|
)
|
|
|
class CableTerminationType(NetBoxObjectType):
|
|
|
- cable: Annotated["CableType", strawberry.lazy('dcim.graphql.types')] | None
|
|
|
- termination: Annotated[Union[
|
|
|
- Annotated["CircuitTerminationType", strawberry.lazy('circuits.graphql.types')],
|
|
|
- Annotated["ConsolePortType", strawberry.lazy('dcim.graphql.types')],
|
|
|
- Annotated["ConsoleServerPortType", strawberry.lazy('dcim.graphql.types')],
|
|
|
- Annotated["FrontPortType", strawberry.lazy('dcim.graphql.types')],
|
|
|
- Annotated["InterfaceType", strawberry.lazy('dcim.graphql.types')],
|
|
|
- Annotated["PowerFeedType", strawberry.lazy('dcim.graphql.types')],
|
|
|
- Annotated["PowerOutletType", strawberry.lazy('dcim.graphql.types')],
|
|
|
- Annotated["PowerPortType", strawberry.lazy('dcim.graphql.types')],
|
|
|
- Annotated["RearPortType", strawberry.lazy('dcim.graphql.types')],
|
|
|
- ], strawberry.union("CableTerminationTerminationType")] | None
|
|
|
+ cable: Annotated['CableType', strawberry.lazy('dcim.graphql.types')] | None
|
|
|
+ termination: Annotated[
|
|
|
+ Annotated['CircuitTerminationType', strawberry.lazy('circuits.graphql.types')]
|
|
|
+ | Annotated['ConsolePortType', strawberry.lazy('dcim.graphql.types')]
|
|
|
+ | Annotated['ConsoleServerPortType', strawberry.lazy('dcim.graphql.types')]
|
|
|
+ | Annotated['FrontPortType', strawberry.lazy('dcim.graphql.types')]
|
|
|
+ | Annotated['InterfaceType', strawberry.lazy('dcim.graphql.types')]
|
|
|
+ | Annotated['PowerFeedType', strawberry.lazy('dcim.graphql.types')]
|
|
|
+ | Annotated['PowerOutletType', strawberry.lazy('dcim.graphql.types')]
|
|
|
+ | Annotated['PowerPortType', strawberry.lazy('dcim.graphql.types')]
|
|
|
+ | Annotated['RearPortType', strawberry.lazy('dcim.graphql.types')],
|
|
|
+ strawberry.union('CableTerminationTerminationType'),
|
|
|
+ ] | None
|
|
|
|
|
|
|
|
|
@strawberry_django.type(
|
|
|
@@ -158,33 +156,35 @@ class CableTerminationType(NetBoxObjectType):
|
|
|
)
|
|
|
class CableType(PrimaryObjectType):
|
|
|
color: str
|
|
|
- tenant: Annotated["TenantType", strawberry.lazy('tenancy.graphql.types')] | None
|
|
|
-
|
|
|
- terminations: List[CableTerminationType]
|
|
|
-
|
|
|
- a_terminations: List[Annotated[Union[
|
|
|
- Annotated["CircuitTerminationType", strawberry.lazy('circuits.graphql.types')],
|
|
|
- Annotated["ConsolePortType", strawberry.lazy('dcim.graphql.types')],
|
|
|
- Annotated["ConsoleServerPortType", strawberry.lazy('dcim.graphql.types')],
|
|
|
- Annotated["FrontPortType", strawberry.lazy('dcim.graphql.types')],
|
|
|
- Annotated["InterfaceType", strawberry.lazy('dcim.graphql.types')],
|
|
|
- Annotated["PowerFeedType", strawberry.lazy('dcim.graphql.types')],
|
|
|
- Annotated["PowerOutletType", strawberry.lazy('dcim.graphql.types')],
|
|
|
- Annotated["PowerPortType", strawberry.lazy('dcim.graphql.types')],
|
|
|
- Annotated["RearPortType", strawberry.lazy('dcim.graphql.types')],
|
|
|
- ], strawberry.union("CableTerminationTerminationType")]]
|
|
|
-
|
|
|
- b_terminations: List[Annotated[Union[
|
|
|
- Annotated["CircuitTerminationType", strawberry.lazy('circuits.graphql.types')],
|
|
|
- Annotated["ConsolePortType", strawberry.lazy('dcim.graphql.types')],
|
|
|
- Annotated["ConsoleServerPortType", strawberry.lazy('dcim.graphql.types')],
|
|
|
- Annotated["FrontPortType", strawberry.lazy('dcim.graphql.types')],
|
|
|
- Annotated["InterfaceType", strawberry.lazy('dcim.graphql.types')],
|
|
|
- Annotated["PowerFeedType", strawberry.lazy('dcim.graphql.types')],
|
|
|
- Annotated["PowerOutletType", strawberry.lazy('dcim.graphql.types')],
|
|
|
- Annotated["PowerPortType", strawberry.lazy('dcim.graphql.types')],
|
|
|
- Annotated["RearPortType", strawberry.lazy('dcim.graphql.types')],
|
|
|
- ], strawberry.union("CableTerminationTerminationType")]]
|
|
|
+ tenant: Annotated['TenantType', strawberry.lazy('tenancy.graphql.types')] | None
|
|
|
+
|
|
|
+ terminations: list[CableTerminationType]
|
|
|
+
|
|
|
+ a_terminations: list[Annotated[
|
|
|
+ Annotated['CircuitTerminationType', strawberry.lazy('circuits.graphql.types')]
|
|
|
+ | Annotated['ConsolePortType', strawberry.lazy('dcim.graphql.types')]
|
|
|
+ | Annotated['ConsoleServerPortType', strawberry.lazy('dcim.graphql.types')]
|
|
|
+ | Annotated['FrontPortType', strawberry.lazy('dcim.graphql.types')]
|
|
|
+ | Annotated['InterfaceType', strawberry.lazy('dcim.graphql.types')]
|
|
|
+ | Annotated['PowerFeedType', strawberry.lazy('dcim.graphql.types')]
|
|
|
+ | Annotated['PowerOutletType', strawberry.lazy('dcim.graphql.types')]
|
|
|
+ | Annotated['PowerPortType', strawberry.lazy('dcim.graphql.types')]
|
|
|
+ | Annotated['RearPortType', strawberry.lazy('dcim.graphql.types')],
|
|
|
+ strawberry.union('CableTerminationTerminationType'),
|
|
|
+ ]]
|
|
|
+
|
|
|
+ b_terminations: list[Annotated[
|
|
|
+ Annotated['CircuitTerminationType', strawberry.lazy('circuits.graphql.types')]
|
|
|
+ | Annotated['ConsolePortType', strawberry.lazy('dcim.graphql.types')]
|
|
|
+ | Annotated['ConsoleServerPortType', strawberry.lazy('dcim.graphql.types')]
|
|
|
+ | Annotated['FrontPortType', strawberry.lazy('dcim.graphql.types')]
|
|
|
+ | Annotated['InterfaceType', strawberry.lazy('dcim.graphql.types')]
|
|
|
+ | Annotated['PowerFeedType', strawberry.lazy('dcim.graphql.types')]
|
|
|
+ | Annotated['PowerOutletType', strawberry.lazy('dcim.graphql.types')]
|
|
|
+ | Annotated['PowerPortType', strawberry.lazy('dcim.graphql.types')]
|
|
|
+ | Annotated['RearPortType', strawberry.lazy('dcim.graphql.types')],
|
|
|
+ strawberry.union('CableTerminationTerminationType'),
|
|
|
+ ]]
|
|
|
|
|
|
|
|
|
@strawberry_django.type(
|
|
|
@@ -258,21 +258,21 @@ class DeviceType(ConfigContextMixin, ImageAttachmentsMixin, ContactsMixin, Prima
|
|
|
cluster: Annotated["ClusterType", strawberry.lazy('virtualization.graphql.types')] | None
|
|
|
virtual_chassis: Annotated["VirtualChassisType", strawberry.lazy('dcim.graphql.types')] | None
|
|
|
|
|
|
- virtual_machines: List[Annotated["VirtualMachineType", strawberry.lazy('virtualization.graphql.types')]]
|
|
|
- modules: List[Annotated["ModuleType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
- interfaces: List[Annotated["InterfaceType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
- rearports: List[Annotated["RearPortType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
- consoleports: List[Annotated["ConsolePortType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
- powerports: List[Annotated["PowerPortType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
- cabletermination_set: List[Annotated["CableTerminationType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
- consoleserverports: List[Annotated["ConsoleServerPortType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
- poweroutlets: List[Annotated["PowerOutletType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
- frontports: List[Annotated["FrontPortType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
- devicebays: List[Annotated["DeviceBayType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
- modulebays: List[Annotated["ModuleBayType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
- services: List[Annotated["ServiceType", strawberry.lazy('ipam.graphql.types')]]
|
|
|
- inventoryitems: List[Annotated["InventoryItemType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
- vdcs: List[Annotated["VirtualDeviceContextType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
+ virtual_machines: list[Annotated["VirtualMachineType", strawberry.lazy('virtualization.graphql.types')]]
|
|
|
+ modules: list[Annotated["ModuleType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
+ interfaces: list[Annotated["InterfaceType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
+ rearports: list[Annotated["RearPortType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
+ consoleports: list[Annotated["ConsolePortType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
+ powerports: list[Annotated["PowerPortType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
+ cabletermination_set: list[Annotated["CableTerminationType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
+ consoleserverports: list[Annotated["ConsoleServerPortType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
+ poweroutlets: list[Annotated["PowerOutletType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
+ frontports: list[Annotated["FrontPortType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
+ devicebays: list[Annotated["DeviceBayType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
+ modulebays: list[Annotated["ModuleBayType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
+ services: list[Annotated["ServiceType", strawberry.lazy('ipam.graphql.types')]]
|
|
|
+ inventoryitems: list[Annotated["InventoryItemType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
+ vdcs: list[Annotated["VirtualDeviceContextType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
|
|
|
@strawberry_django.field
|
|
|
def vc_master_for(self) -> Annotated["VirtualChassisType", strawberry.lazy('dcim.graphql.types')] | None:
|
|
|
@@ -310,24 +310,25 @@ class DeviceBayTemplateType(ComponentTemplateType):
|
|
|
pagination=True
|
|
|
)
|
|
|
class InventoryItemTemplateType(ComponentTemplateType):
|
|
|
- role: Annotated["InventoryItemRoleType", strawberry.lazy('dcim.graphql.types')] | None
|
|
|
- manufacturer: Annotated["ManufacturerType", strawberry.lazy('dcim.graphql.types')]
|
|
|
+ role: Annotated['InventoryItemRoleType', strawberry.lazy('dcim.graphql.types')] | None
|
|
|
+ manufacturer: Annotated['ManufacturerType', strawberry.lazy('dcim.graphql.types')]
|
|
|
|
|
|
@strawberry_django.field
|
|
|
- def parent(self) -> Annotated["InventoryItemTemplateType", strawberry.lazy('dcim.graphql.types')] | None:
|
|
|
+ def parent(self) -> Annotated['InventoryItemTemplateType', strawberry.lazy('dcim.graphql.types')] | None:
|
|
|
return self.parent
|
|
|
|
|
|
- child_items: List[Annotated["InventoryItemTemplateType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
+ child_items: list[Annotated['InventoryItemTemplateType', strawberry.lazy('dcim.graphql.types')]]
|
|
|
|
|
|
- component: Annotated[Union[
|
|
|
- Annotated["ConsolePortType", strawberry.lazy('dcim.graphql.types')],
|
|
|
- Annotated["ConsoleServerPortType", strawberry.lazy('dcim.graphql.types')],
|
|
|
- Annotated["FrontPortType", strawberry.lazy('dcim.graphql.types')],
|
|
|
- Annotated["InterfaceType", strawberry.lazy('dcim.graphql.types')],
|
|
|
- Annotated["PowerOutletType", strawberry.lazy('dcim.graphql.types')],
|
|
|
- Annotated["PowerPortType", strawberry.lazy('dcim.graphql.types')],
|
|
|
- Annotated["RearPortType", strawberry.lazy('dcim.graphql.types')],
|
|
|
- ], strawberry.union("InventoryItemTemplateComponentType")] | None
|
|
|
+ component: Annotated[
|
|
|
+ Annotated['ConsolePortType', strawberry.lazy('dcim.graphql.types')]
|
|
|
+ | Annotated['ConsoleServerPortType', strawberry.lazy('dcim.graphql.types')]
|
|
|
+ | Annotated['FrontPortType', strawberry.lazy('dcim.graphql.types')]
|
|
|
+ | Annotated['InterfaceType', strawberry.lazy('dcim.graphql.types')]
|
|
|
+ | Annotated['PowerOutletType', strawberry.lazy('dcim.graphql.types')]
|
|
|
+ | Annotated['PowerPortType', strawberry.lazy('dcim.graphql.types')]
|
|
|
+ | Annotated['RearPortType', strawberry.lazy('dcim.graphql.types')],
|
|
|
+ strawberry.union('InventoryItemTemplateComponentType'),
|
|
|
+ ] | None
|
|
|
|
|
|
|
|
|
@strawberry_django.type(
|
|
|
@@ -338,12 +339,12 @@ class InventoryItemTemplateType(ComponentTemplateType):
|
|
|
)
|
|
|
class DeviceRoleType(NestedGroupObjectType):
|
|
|
parent: Annotated['DeviceRoleType', strawberry.lazy('dcim.graphql.types')] | None
|
|
|
- children: List[Annotated['DeviceRoleType', strawberry.lazy('dcim.graphql.types')]]
|
|
|
+ children: list[Annotated['DeviceRoleType', strawberry.lazy('dcim.graphql.types')]]
|
|
|
color: str
|
|
|
config_template: Annotated["ConfigTemplateType", strawberry.lazy('extras.graphql.types')] | None
|
|
|
|
|
|
- virtual_machines: List[Annotated["VirtualMachineType", strawberry.lazy('virtualization.graphql.types')]]
|
|
|
- devices: List[Annotated["DeviceType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
+ virtual_machines: list[Annotated["VirtualMachineType", strawberry.lazy('virtualization.graphql.types')]]
|
|
|
+ devices: list[Annotated["DeviceType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
|
|
|
|
|
|
@strawberry_django.type(
|
|
|
@@ -369,17 +370,17 @@ class DeviceTypeType(PrimaryObjectType):
|
|
|
manufacturer: Annotated["ManufacturerType", strawberry.lazy('dcim.graphql.types')]
|
|
|
default_platform: Annotated["PlatformType", strawberry.lazy('dcim.graphql.types')] | None
|
|
|
|
|
|
- frontporttemplates: List[Annotated["FrontPortTemplateType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
- modulebaytemplates: List[Annotated["ModuleBayTemplateType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
- instances: List[Annotated["DeviceType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
- poweroutlettemplates: List[Annotated["PowerOutletTemplateType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
- powerporttemplates: List[Annotated["PowerPortTemplateType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
- inventoryitemtemplates: List[Annotated["InventoryItemTemplateType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
- rearporttemplates: List[Annotated["RearPortTemplateType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
- consoleserverporttemplates: List[Annotated["ConsoleServerPortTemplateType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
- interfacetemplates: List[Annotated["InterfaceTemplateType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
- devicebaytemplates: List[Annotated["DeviceBayTemplateType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
- consoleporttemplates: List[Annotated["ConsolePortTemplateType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
+ frontporttemplates: list[Annotated["FrontPortTemplateType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
+ modulebaytemplates: list[Annotated["ModuleBayTemplateType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
+ instances: list[Annotated["DeviceType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
+ poweroutlettemplates: list[Annotated["PowerOutletTemplateType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
+ powerporttemplates: list[Annotated["PowerPortTemplateType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
+ inventoryitemtemplates: list[Annotated["InventoryItemTemplateType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
+ rearporttemplates: list[Annotated["RearPortTemplateType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
+ consoleserverporttemplates: list[Annotated["ConsoleServerPortTemplateType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
+ interfacetemplates: list[Annotated["InterfaceTemplateType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
+ devicebaytemplates: list[Annotated["DeviceBayTemplateType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
+ consoleporttemplates: list[Annotated["ConsolePortTemplateType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
|
|
|
|
|
|
@strawberry_django.type(
|
|
|
@@ -391,7 +392,7 @@ class DeviceTypeType(PrimaryObjectType):
|
|
|
class FrontPortType(ModularComponentType, CabledObjectMixin):
|
|
|
color: str
|
|
|
|
|
|
- mappings: List[Annotated["PortMappingType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
+ mappings: list[Annotated["PortMappingType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
|
|
|
|
|
|
@strawberry_django.type(
|
|
|
@@ -403,7 +404,7 @@ class FrontPortType(ModularComponentType, CabledObjectMixin):
|
|
|
class FrontPortTemplateType(ModularComponentTemplateType):
|
|
|
color: str
|
|
|
|
|
|
- mappings: List[Annotated["PortMappingTemplateType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
+ mappings: list[Annotated["PortMappingTemplateType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
|
|
|
|
|
|
@strawberry_django.type(
|
|
|
@@ -416,10 +417,11 @@ class MACAddressType(PrimaryObjectType):
|
|
|
mac_address: str
|
|
|
|
|
|
@strawberry_django.field
|
|
|
- def assigned_object(self) -> Annotated[Union[
|
|
|
- Annotated["InterfaceType", strawberry.lazy('dcim.graphql.types')],
|
|
|
- Annotated["VMInterfaceType", strawberry.lazy('virtualization.graphql.types')],
|
|
|
- ], strawberry.union("MACAddressAssignmentType")] | None:
|
|
|
+ def assigned_object(self) -> Annotated[
|
|
|
+ Annotated['InterfaceType', strawberry.lazy('dcim.graphql.types')]
|
|
|
+ | Annotated['VMInterfaceType', strawberry.lazy('virtualization.graphql.types')],
|
|
|
+ strawberry.union('MACAddressAssignmentType'),
|
|
|
+ ] | None:
|
|
|
return self.assigned_object
|
|
|
|
|
|
|
|
|
@@ -443,13 +445,13 @@ class InterfaceType(IPAddressesMixin, ModularComponentType, CabledObjectMixin, P
|
|
|
vlan_translation_policy: Annotated["VLANTranslationPolicyType", strawberry.lazy('ipam.graphql.types')] | None
|
|
|
l2vpn_termination: Annotated["L2VPNTerminationType", strawberry.lazy('vpn.graphql.types')] | None
|
|
|
|
|
|
- vdcs: List[Annotated["VirtualDeviceContextType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
- tagged_vlans: List[Annotated["VLANType", strawberry.lazy('ipam.graphql.types')]]
|
|
|
- bridge_interfaces: List[Annotated["InterfaceType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
- wireless_lans: List[Annotated["WirelessLANType", strawberry.lazy('wireless.graphql.types')]]
|
|
|
- member_interfaces: List[Annotated["InterfaceType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
- child_interfaces: List[Annotated["InterfaceType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
- mac_addresses: List[Annotated["MACAddressType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
+ vdcs: list[Annotated["VirtualDeviceContextType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
+ tagged_vlans: list[Annotated["VLANType", strawberry.lazy('ipam.graphql.types')]]
|
|
|
+ bridge_interfaces: list[Annotated["InterfaceType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
+ wireless_lans: list[Annotated["WirelessLANType", strawberry.lazy('wireless.graphql.types')]]
|
|
|
+ member_interfaces: list[Annotated["InterfaceType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
+ child_interfaces: list[Annotated["InterfaceType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
+ mac_addresses: list[Annotated["MACAddressType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
|
|
|
|
|
|
@strawberry_django.type(
|
|
|
@@ -462,7 +464,7 @@ class InterfaceTemplateType(ModularComponentTemplateType):
|
|
|
_name: str
|
|
|
bridge: Annotated["InterfaceTemplateType", strawberry.lazy('dcim.graphql.types')] | None
|
|
|
|
|
|
- bridge_interfaces: List[Annotated["InterfaceTemplateType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
+ bridge_interfaces: list[Annotated["InterfaceTemplateType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
|
|
|
|
|
|
@strawberry_django.type(
|
|
|
@@ -472,24 +474,25 @@ class InterfaceTemplateType(ModularComponentTemplateType):
|
|
|
pagination=True
|
|
|
)
|
|
|
class InventoryItemType(ComponentType):
|
|
|
- role: Annotated["InventoryItemRoleType", strawberry.lazy('dcim.graphql.types')] | None
|
|
|
- manufacturer: Annotated["ManufacturerType", strawberry.lazy('dcim.graphql.types')] | None
|
|
|
+ role: Annotated['InventoryItemRoleType', strawberry.lazy('dcim.graphql.types')] | None
|
|
|
+ manufacturer: Annotated['ManufacturerType', strawberry.lazy('dcim.graphql.types')] | None
|
|
|
|
|
|
- child_items: List[Annotated["InventoryItemType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
+ child_items: list[Annotated['InventoryItemType', strawberry.lazy('dcim.graphql.types')]]
|
|
|
|
|
|
@strawberry_django.field
|
|
|
- def parent(self) -> Annotated["InventoryItemType", strawberry.lazy('dcim.graphql.types')] | None:
|
|
|
+ def parent(self) -> Annotated['InventoryItemType', strawberry.lazy('dcim.graphql.types')] | None:
|
|
|
return self.parent
|
|
|
|
|
|
- component: Annotated[Union[
|
|
|
- Annotated["ConsolePortType", strawberry.lazy('dcim.graphql.types')],
|
|
|
- Annotated["ConsoleServerPortType", strawberry.lazy('dcim.graphql.types')],
|
|
|
- Annotated["FrontPortType", strawberry.lazy('dcim.graphql.types')],
|
|
|
- Annotated["InterfaceType", strawberry.lazy('dcim.graphql.types')],
|
|
|
- Annotated["PowerOutletType", strawberry.lazy('dcim.graphql.types')],
|
|
|
- Annotated["PowerPortType", strawberry.lazy('dcim.graphql.types')],
|
|
|
- Annotated["RearPortType", strawberry.lazy('dcim.graphql.types')],
|
|
|
- ], strawberry.union("InventoryItemComponentType")] | None
|
|
|
+ component: Annotated[
|
|
|
+ Annotated['ConsolePortType', strawberry.lazy('dcim.graphql.types')]
|
|
|
+ | Annotated['ConsoleServerPortType', strawberry.lazy('dcim.graphql.types')]
|
|
|
+ | Annotated['FrontPortType', strawberry.lazy('dcim.graphql.types')]
|
|
|
+ | Annotated['InterfaceType', strawberry.lazy('dcim.graphql.types')]
|
|
|
+ | Annotated['PowerOutletType', strawberry.lazy('dcim.graphql.types')]
|
|
|
+ | Annotated['PowerPortType', strawberry.lazy('dcim.graphql.types')]
|
|
|
+ | Annotated['RearPortType', strawberry.lazy('dcim.graphql.types')],
|
|
|
+ strawberry.union('InventoryItemComponentType'),
|
|
|
+ ] | None
|
|
|
|
|
|
|
|
|
@strawberry_django.type(
|
|
|
@@ -501,8 +504,8 @@ class InventoryItemType(ComponentType):
|
|
|
class InventoryItemRoleType(OrganizationalObjectType):
|
|
|
color: str
|
|
|
|
|
|
- inventory_items: List[Annotated["InventoryItemType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
- inventory_item_templates: List[Annotated["InventoryItemTemplateType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
+ inventory_items: list[Annotated["InventoryItemType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
+ inventory_item_templates: list[Annotated["InventoryItemTemplateType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
|
|
|
|
|
|
@strawberry_django.type(
|
|
|
@@ -517,18 +520,18 @@ class LocationType(VLANGroupsMixin, ImageAttachmentsMixin, ContactsMixin, Nested
|
|
|
tenant: Annotated["TenantType", strawberry.lazy('tenancy.graphql.types')] | None
|
|
|
parent: Annotated["LocationType", strawberry.lazy('dcim.graphql.types')] | None
|
|
|
|
|
|
- powerpanel_set: List[Annotated["PowerPanelType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
- cabletermination_set: List[Annotated["CableTerminationType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
- racks: List[Annotated["RackType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
- devices: List[Annotated["DeviceType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
- children: List[Annotated["LocationType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
+ powerpanel_set: list[Annotated["PowerPanelType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
+ cabletermination_set: list[Annotated["CableTerminationType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
+ racks: list[Annotated["RackType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
+ devices: list[Annotated["DeviceType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
+ children: list[Annotated["LocationType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
|
|
|
@strawberry_django.field
|
|
|
- def clusters(self) -> List[Annotated["ClusterType", strawberry.lazy('virtualization.graphql.types')]]:
|
|
|
+ def clusters(self) -> list[Annotated["ClusterType", strawberry.lazy('virtualization.graphql.types')]]:
|
|
|
return self.cluster_set.all()
|
|
|
|
|
|
@strawberry_django.field
|
|
|
- def circuit_terminations(self) -> List[
|
|
|
+ def circuit_terminations(self) -> list[
|
|
|
Annotated["CircuitTerminationType", strawberry.lazy('circuits.graphql.types')]
|
|
|
]:
|
|
|
return self.circuit_terminations.all()
|
|
|
@@ -542,11 +545,11 @@ class LocationType(VLANGroupsMixin, ImageAttachmentsMixin, ContactsMixin, Nested
|
|
|
)
|
|
|
class ManufacturerType(OrganizationalObjectType, ContactsMixin):
|
|
|
|
|
|
- platforms: List[Annotated["PlatformType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
- device_types: List[Annotated["DeviceTypeType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
- inventory_item_templates: List[Annotated["InventoryItemTemplateType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
- inventory_items: List[Annotated["InventoryItemType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
- module_types: List[Annotated["ModuleTypeType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
+ platforms: list[Annotated["PlatformType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
+ device_types: list[Annotated["DeviceTypeType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
+ inventory_item_templates: list[Annotated["InventoryItemTemplateType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
+ inventory_items: list[Annotated["InventoryItemType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
+ module_types: list[Annotated["ModuleTypeType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
|
|
|
|
|
|
@strawberry_django.type(
|
|
|
@@ -560,13 +563,13 @@ class ModuleType(PrimaryObjectType):
|
|
|
module_bay: Annotated["ModuleBayType", strawberry.lazy('dcim.graphql.types')]
|
|
|
module_type: Annotated["ModuleTypeType", strawberry.lazy('dcim.graphql.types')]
|
|
|
|
|
|
- interfaces: List[Annotated["InterfaceType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
- powerports: List[Annotated["PowerPortType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
- consoleserverports: List[Annotated["ConsoleServerPortType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
- consoleports: List[Annotated["ConsolePortType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
- poweroutlets: List[Annotated["PowerOutletType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
- rearports: List[Annotated["RearPortType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
- frontports: List[Annotated["FrontPortType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
+ interfaces: list[Annotated["InterfaceType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
+ powerports: list[Annotated["PowerPortType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
+ consoleserverports: list[Annotated["ConsoleServerPortType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
+ consoleports: list[Annotated["ConsolePortType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
+ poweroutlets: list[Annotated["PowerOutletType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
+ rearports: list[Annotated["RearPortType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
+ frontports: list[Annotated["FrontPortType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
|
|
|
|
|
|
@strawberry_django.type(
|
|
|
@@ -579,7 +582,7 @@ class ModuleType(PrimaryObjectType):
|
|
|
class ModuleBayType(ModularComponentType):
|
|
|
|
|
|
installed_module: Annotated["ModuleType", strawberry.lazy('dcim.graphql.types')] | None
|
|
|
- children: List[Annotated["ModuleBayType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
+ children: list[Annotated["ModuleBayType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
|
|
|
@strawberry_django.field
|
|
|
def parent(self) -> Annotated["ModuleBayType", strawberry.lazy('dcim.graphql.types')] | None:
|
|
|
@@ -603,7 +606,7 @@ class ModuleBayTemplateType(ModularComponentTemplateType):
|
|
|
pagination=True
|
|
|
)
|
|
|
class ModuleTypeProfileType(PrimaryObjectType):
|
|
|
- module_types: List[Annotated["ModuleType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
+ module_types: list[Annotated["ModuleType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
|
|
|
|
|
|
@strawberry_django.type(
|
|
|
@@ -617,14 +620,14 @@ class ModuleTypeType(PrimaryObjectType):
|
|
|
profile: Annotated["ModuleTypeProfileType", strawberry.lazy('dcim.graphql.types')] | None
|
|
|
manufacturer: Annotated["ManufacturerType", strawberry.lazy('dcim.graphql.types')]
|
|
|
|
|
|
- frontporttemplates: List[Annotated["FrontPortTemplateType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
- consoleserverporttemplates: List[Annotated["ConsoleServerPortTemplateType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
- interfacetemplates: List[Annotated["InterfaceTemplateType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
- powerporttemplates: List[Annotated["PowerPortTemplateType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
- poweroutlettemplates: List[Annotated["PowerOutletTemplateType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
- rearporttemplates: List[Annotated["RearPortTemplateType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
- instances: List[Annotated["ModuleType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
- consoleporttemplates: List[Annotated["ConsolePortTemplateType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
+ frontporttemplates: list[Annotated["FrontPortTemplateType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
+ consoleserverporttemplates: list[Annotated["ConsoleServerPortTemplateType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
+ interfacetemplates: list[Annotated["InterfaceTemplateType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
+ powerporttemplates: list[Annotated["PowerPortTemplateType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
+ poweroutlettemplates: list[Annotated["PowerOutletTemplateType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
+ rearporttemplates: list[Annotated["RearPortTemplateType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
+ instances: list[Annotated["ModuleType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
+ consoleporttemplates: list[Annotated["ConsolePortTemplateType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
|
|
|
|
|
|
@strawberry_django.type(
|
|
|
@@ -635,12 +638,12 @@ class ModuleTypeType(PrimaryObjectType):
|
|
|
)
|
|
|
class PlatformType(NestedGroupObjectType):
|
|
|
parent: Annotated['PlatformType', strawberry.lazy('dcim.graphql.types')] | None
|
|
|
- children: List[Annotated['PlatformType', strawberry.lazy('dcim.graphql.types')]]
|
|
|
+ children: list[Annotated['PlatformType', strawberry.lazy('dcim.graphql.types')]]
|
|
|
manufacturer: Annotated["ManufacturerType", strawberry.lazy('dcim.graphql.types')] | None
|
|
|
config_template: Annotated["ConfigTemplateType", strawberry.lazy('extras.graphql.types')] | None
|
|
|
|
|
|
- virtual_machines: List[Annotated["VirtualMachineType", strawberry.lazy('virtualization.graphql.types')]]
|
|
|
- devices: List[Annotated["DeviceType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
+ virtual_machines: list[Annotated["VirtualMachineType", strawberry.lazy('virtualization.graphql.types')]]
|
|
|
+ devices: list[Annotated["DeviceType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
|
|
|
|
|
|
@strawberry_django.type(
|
|
|
@@ -709,7 +712,7 @@ class PowerPanelType(ContactsMixin, PrimaryObjectType):
|
|
|
site: Annotated["SiteType", strawberry.lazy('dcim.graphql.types')]
|
|
|
location: Annotated["LocationType", strawberry.lazy('dcim.graphql.types')] | None
|
|
|
|
|
|
- powerfeeds: List[Annotated["PowerFeedType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
+ powerfeeds: list[Annotated["PowerFeedType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
|
|
|
|
|
|
@strawberry_django.type(
|
|
|
@@ -720,7 +723,7 @@ class PowerPanelType(ContactsMixin, PrimaryObjectType):
|
|
|
)
|
|
|
class PowerPortType(ModularComponentType, CabledObjectMixin, PathEndpointMixin):
|
|
|
|
|
|
- poweroutlets: List[Annotated["PowerOutletType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
+ poweroutlets: list[Annotated["PowerOutletType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
|
|
|
|
|
|
@strawberry_django.type(
|
|
|
@@ -730,7 +733,7 @@ class PowerPortType(ModularComponentType, CabledObjectMixin, PathEndpointMixin):
|
|
|
pagination=True
|
|
|
)
|
|
|
class PowerPortTemplateType(ModularComponentTemplateType):
|
|
|
- poweroutlet_templates: List[Annotated["PowerOutletTemplateType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
+ poweroutlet_templates: list[Annotated["PowerOutletTemplateType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
|
|
|
|
|
|
@strawberry_django.type(
|
|
|
@@ -757,10 +760,10 @@ class RackType(VLANGroupsMixin, ImageAttachmentsMixin, ContactsMixin, PrimaryObj
|
|
|
role: Annotated["RackRoleType", strawberry.lazy('dcim.graphql.types')] | None
|
|
|
|
|
|
rack_type: Annotated["RackTypeType", strawberry.lazy('dcim.graphql.types')] | None
|
|
|
- reservations: List[Annotated["RackReservationType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
- devices: List[Annotated["DeviceType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
- powerfeeds: List[Annotated["PowerFeedType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
- cabletermination_set: List[Annotated["CableTerminationType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
+ reservations: list[Annotated["RackReservationType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
+ devices: list[Annotated["DeviceType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
+ powerfeeds: list[Annotated["PowerFeedType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
+ cabletermination_set: list[Annotated["CableTerminationType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
|
|
|
|
|
|
@strawberry_django.type(
|
|
|
@@ -770,7 +773,7 @@ class RackType(VLANGroupsMixin, ImageAttachmentsMixin, ContactsMixin, PrimaryObj
|
|
|
pagination=True
|
|
|
)
|
|
|
class RackReservationType(PrimaryObjectType):
|
|
|
- units: List[int]
|
|
|
+ units: list[int]
|
|
|
rack: Annotated["RackType", strawberry.lazy('dcim.graphql.types')]
|
|
|
tenant: Annotated["TenantType", strawberry.lazy('tenancy.graphql.types')] | None
|
|
|
user: Annotated["UserType", strawberry.lazy('users.graphql.types')]
|
|
|
@@ -785,7 +788,7 @@ class RackReservationType(PrimaryObjectType):
|
|
|
class RackRoleType(OrganizationalObjectType):
|
|
|
color: str
|
|
|
|
|
|
- racks: List[Annotated["RackType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
+ racks: list[Annotated["RackType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
|
|
|
|
|
|
@strawberry_django.type(
|
|
|
@@ -797,7 +800,7 @@ class RackRoleType(OrganizationalObjectType):
|
|
|
class RearPortType(ModularComponentType, CabledObjectMixin):
|
|
|
color: str
|
|
|
|
|
|
- mappings: List[Annotated["PortMappingType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
+ mappings: list[Annotated["PortMappingType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
|
|
|
|
|
|
@strawberry_django.type(
|
|
|
@@ -809,7 +812,7 @@ class RearPortType(ModularComponentType, CabledObjectMixin):
|
|
|
class RearPortTemplateType(ModularComponentTemplateType):
|
|
|
color: str
|
|
|
|
|
|
- mappings: List[Annotated["PortMappingTemplateType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
+ mappings: list[Annotated["PortMappingTemplateType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
|
|
|
|
|
|
@strawberry_django.type(
|
|
|
@@ -820,19 +823,19 @@ class RearPortTemplateType(ModularComponentTemplateType):
|
|
|
)
|
|
|
class RegionType(VLANGroupsMixin, ContactsMixin, NestedGroupObjectType):
|
|
|
|
|
|
- sites: List[Annotated["SiteType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
- children: List[Annotated["RegionType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
+ sites: list[Annotated["SiteType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
+ children: list[Annotated["RegionType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
|
|
|
@strawberry_django.field
|
|
|
def parent(self) -> Annotated["RegionType", strawberry.lazy('dcim.graphql.types')] | None:
|
|
|
return self.parent
|
|
|
|
|
|
@strawberry_django.field
|
|
|
- def clusters(self) -> List[Annotated["ClusterType", strawberry.lazy('virtualization.graphql.types')]]:
|
|
|
+ def clusters(self) -> list[Annotated["ClusterType", strawberry.lazy('virtualization.graphql.types')]]:
|
|
|
return self.cluster_set.all()
|
|
|
|
|
|
@strawberry_django.field
|
|
|
- def circuit_terminations(self) -> List[
|
|
|
+ def circuit_terminations(self) -> list[
|
|
|
Annotated["CircuitTerminationType", strawberry.lazy('circuits.graphql.types')]
|
|
|
]:
|
|
|
return self.circuit_terminations.all()
|
|
|
@@ -850,24 +853,24 @@ class SiteType(VLANGroupsMixin, ImageAttachmentsMixin, ContactsMixin, PrimaryObj
|
|
|
group: Annotated["SiteGroupType", strawberry.lazy('dcim.graphql.types')] | None
|
|
|
tenant: Annotated["TenantType", strawberry.lazy('tenancy.graphql.types')] | None
|
|
|
|
|
|
- prefixes: List[Annotated["PrefixType", strawberry.lazy('ipam.graphql.types')]]
|
|
|
- virtual_machines: List[Annotated["VirtualMachineType", strawberry.lazy('virtualization.graphql.types')]]
|
|
|
- racks: List[Annotated["RackType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
- cabletermination_set: List[Annotated["CableTerminationType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
- powerpanel_set: List[Annotated["PowerPanelType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
- devices: List[Annotated["DeviceType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
- locations: List[Annotated["LocationType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
- asns: List[Annotated["ASNType", strawberry.lazy('ipam.graphql.types')]]
|
|
|
- circuit_terminations: List[Annotated["CircuitTerminationType", strawberry.lazy('circuits.graphql.types')]]
|
|
|
- clusters: List[Annotated["ClusterType", strawberry.lazy('virtualization.graphql.types')]]
|
|
|
- vlans: List[Annotated["VLANType", strawberry.lazy('ipam.graphql.types')]]
|
|
|
+ prefixes: list[Annotated["PrefixType", strawberry.lazy('ipam.graphql.types')]]
|
|
|
+ virtual_machines: list[Annotated["VirtualMachineType", strawberry.lazy('virtualization.graphql.types')]]
|
|
|
+ racks: list[Annotated["RackType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
+ cabletermination_set: list[Annotated["CableTerminationType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
+ powerpanel_set: list[Annotated["PowerPanelType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
+ devices: list[Annotated["DeviceType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
+ locations: list[Annotated["LocationType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
+ asns: list[Annotated["ASNType", strawberry.lazy('ipam.graphql.types')]]
|
|
|
+ circuit_terminations: list[Annotated["CircuitTerminationType", strawberry.lazy('circuits.graphql.types')]]
|
|
|
+ clusters: list[Annotated["ClusterType", strawberry.lazy('virtualization.graphql.types')]]
|
|
|
+ vlans: list[Annotated["VLANType", strawberry.lazy('ipam.graphql.types')]]
|
|
|
|
|
|
@strawberry_django.field
|
|
|
- def clusters(self) -> List[Annotated["ClusterType", strawberry.lazy('virtualization.graphql.types')]]:
|
|
|
+ def clusters(self) -> list[Annotated["ClusterType", strawberry.lazy('virtualization.graphql.types')]]:
|
|
|
return self.cluster_set.all()
|
|
|
|
|
|
@strawberry_django.field
|
|
|
- def circuit_terminations(self) -> List[
|
|
|
+ def circuit_terminations(self) -> list[
|
|
|
Annotated["CircuitTerminationType", strawberry.lazy('circuits.graphql.types')]
|
|
|
]:
|
|
|
return self.circuit_terminations.all()
|
|
|
@@ -881,19 +884,19 @@ class SiteType(VLANGroupsMixin, ImageAttachmentsMixin, ContactsMixin, PrimaryObj
|
|
|
)
|
|
|
class SiteGroupType(VLANGroupsMixin, ContactsMixin, NestedGroupObjectType):
|
|
|
|
|
|
- sites: List[Annotated["SiteType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
- children: List[Annotated["SiteGroupType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
+ sites: list[Annotated["SiteType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
+ children: list[Annotated["SiteGroupType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
|
|
|
@strawberry_django.field
|
|
|
def parent(self) -> Annotated["SiteGroupType", strawberry.lazy('dcim.graphql.types')] | None:
|
|
|
return self.parent
|
|
|
|
|
|
@strawberry_django.field
|
|
|
- def clusters(self) -> List[Annotated["ClusterType", strawberry.lazy('virtualization.graphql.types')]]:
|
|
|
+ def clusters(self) -> list[Annotated["ClusterType", strawberry.lazy('virtualization.graphql.types')]]:
|
|
|
return self.cluster_set.all()
|
|
|
|
|
|
@strawberry_django.field
|
|
|
- def circuit_terminations(self) -> List[
|
|
|
+ def circuit_terminations(self) -> list[
|
|
|
Annotated["CircuitTerminationType", strawberry.lazy('circuits.graphql.types')]
|
|
|
]:
|
|
|
return self.circuit_terminations.all()
|
|
|
@@ -909,7 +912,7 @@ class VirtualChassisType(PrimaryObjectType):
|
|
|
member_count: BigInt
|
|
|
master: Annotated["DeviceType", strawberry.lazy('dcim.graphql.types')] | None
|
|
|
|
|
|
- members: List[Annotated["DeviceType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
+ members: list[Annotated["DeviceType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
|
|
|
|
|
|
@strawberry_django.type(
|
|
|
@@ -924,4 +927,4 @@ class VirtualDeviceContextType(PrimaryObjectType):
|
|
|
primary_ip6: Annotated["IPAddressType", strawberry.lazy('ipam.graphql.types')] | None
|
|
|
tenant: Annotated["TenantType", strawberry.lazy('tenancy.graphql.types')] | None
|
|
|
|
|
|
- interfaces: List[Annotated["InterfaceType", strawberry.lazy('dcim.graphql.types')]]
|
|
|
+ interfaces: list[Annotated["InterfaceType", strawberry.lazy('dcim.graphql.types')]]
|