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:
@@ -1,3 +1,5 @@
|
||||
from typing import Annotated, List
|
||||
|
||||
import strawberry
|
||||
import strawberry_django
|
||||
|
||||
@@ -62,7 +64,14 @@ class IKEProposalType(OrganizationalObjectType):
|
||||
filters=IKEPolicyFilter
|
||||
)
|
||||
class IKEPolicyType(OrganizationalObjectType):
|
||||
pass
|
||||
|
||||
@strawberry_django.field
|
||||
def proposals(self) -> List[Annotated["IKEProposalType", strawberry.lazy('vpn.graphql.types')]]:
|
||||
return self.proposals.all()
|
||||
|
||||
@strawberry_django.field
|
||||
def ipsec_profiles(self) -> List[Annotated["IPSecProposalType", strawberry.lazy('vpn.graphql.types')]]:
|
||||
return self.ipsec_profiles.all()
|
||||
|
||||
|
||||
@strawberry_django.type(
|
||||
|
Reference in New Issue
Block a user