mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
40 lines
1.5 KiB
Python
40 lines
1.5 KiB
Python
from typing import List
|
|
import strawberry
|
|
import strawberry_django
|
|
|
|
from vpn import models
|
|
from .types import *
|
|
|
|
|
|
@strawberry.type
|
|
class VPNQuery:
|
|
ike_policy: IKEPolicyType = strawberry_django.field()
|
|
ike_policy_list: List[IKEPolicyType] = strawberry_django.field()
|
|
|
|
ike_proposal: IKEProposalType = strawberry_django.field()
|
|
ike_proposal_list: List[IKEProposalType] = strawberry_django.field()
|
|
|
|
ipsec_policy: IPSecPolicyType = strawberry_django.field()
|
|
ipsec_policy_list: List[IPSecPolicyType] = strawberry_django.field()
|
|
|
|
ipsec_profile: IPSecProfileType = strawberry_django.field()
|
|
ipsec_profile_list: List[IPSecProfileType] = strawberry_django.field()
|
|
|
|
ipsec_proposal: IPSecProposalType = strawberry_django.field()
|
|
ipsec_proposal_list: List[IPSecProposalType] = strawberry_django.field()
|
|
|
|
l2vpn: L2VPNType = strawberry_django.field()
|
|
l2vpn_list: List[L2VPNType] = strawberry_django.field()
|
|
|
|
l2vpn_termination: L2VPNTerminationType = strawberry_django.field()
|
|
l2vpn_termination_list: List[L2VPNTerminationType] = strawberry_django.field()
|
|
|
|
tunnel: TunnelType = strawberry_django.field()
|
|
tunnel_list: List[TunnelType] = strawberry_django.field()
|
|
|
|
tunnel_group: TunnelGroupType = strawberry_django.field()
|
|
tunnel_group_list: List[TunnelGroupType] = strawberry_django.field()
|
|
|
|
tunnel_termination: TunnelTerminationType = strawberry_django.field()
|
|
tunnel_termination_list: List[TunnelTerminationType] = strawberry_django.field()
|