mirror of
https://github.com/lucaspalomodevelop/netbox-acls.git
synced 2026-03-12 23:27:23 +00:00
23 lines
597 B
Python
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
|