Ryan Merolle 108fbb6751
NetBox 3.5 Support (#148)
* NetBox 3.5 updates
2023-06-23 14:41:42 -04:00

23 lines
597 B
Python

from graphene import ObjectType
from netbox.graphql.fields import ObjectField, ObjectListField
from .types import *
class Query(ObjectType):
"""
Defines the queries available to this plugin via the graphql api.
"""
access_list = ObjectField(AccessListType)
access_list_list = ObjectListField(AccessListType)
acl_extended_rule = ObjectField(ACLExtendedRuleType)
acl_extended_rule_list = ObjectListField(ACLExtendedRuleType)
acl_standard_rule = ObjectField(ACLStandardRuleType)
acl_standard_rule_list = ObjectListField(ACLStandardRuleType)
schema = Query