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

31 lines
974 B
Python
Raw Normal View History

2021-06-25 14:12:09 -04:00
import graphene
from netbox.graphql.fields import ObjectField, ObjectListField
from .types import *
class ExtrasQuery(graphene.ObjectType):
config_context = ObjectField(ConfigContextType)
config_context_list = ObjectListField(ConfigContextType)
2021-06-25 14:12:09 -04:00
custom_field = ObjectField(CustomFieldType)
custom_field_list = ObjectListField(CustomFieldType)
2021-06-25 14:12:09 -04:00
custom_link = ObjectField(CustomLinkType)
custom_link_list = ObjectListField(CustomLinkType)
2021-06-25 14:12:09 -04:00
export_template = ObjectField(ExportTemplateType)
export_template_list = ObjectListField(ExportTemplateType)
2021-06-25 14:12:09 -04:00
image_attachment = ObjectField(ImageAttachmentType)
image_attachment_list = ObjectListField(ImageAttachmentType)
2021-06-25 14:12:09 -04:00
journal_entry = ObjectField(JournalEntryType)
journal_entry_list = ObjectListField(JournalEntryType)
2021-06-25 14:12:09 -04:00
tag = ObjectField(TagType)
tag_list = ObjectListField(TagType)
2021-06-25 14:12:09 -04:00
webhook = ObjectField(WebhookType)
webhook_list = ObjectListField(WebhookType)