1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

9856 update types

This commit is contained in:
Arthur
2024-02-26 11:04:29 -08:00
parent 82c08d9820
commit 0387cb0a48
6 changed files with 84 additions and 75 deletions

View File

@@ -28,7 +28,10 @@ __all__ = (
filters=TunnelGroupFilter
)
class TunnelGroupType(OrganizationalObjectType):
pass
@strawberry_django.field
def tunnels(self) -> List[Annotated["TunnelType", strawberry.lazy('vpn.graphql.types')]]:
return self.tunnels.all()
@strawberry_django.type(
@@ -46,7 +49,10 @@ class TunnelTerminationType(CustomFieldsMixin, TagsMixin, ObjectType):
filters=TunnelFilter
)
class TunnelType(NetBoxObjectType):
pass
@strawberry_django.field
def terminations(self) -> List[Annotated["TunnelTerminationType", strawberry.lazy('vpn.graphql.types')]]:
return self.terminations.all()
@strawberry_django.type(