2021-06-25 14:19:20 -04:00
|
|
|
import graphene
|
|
|
|
|
|
|
|
from netbox.graphql.fields import ObjectField, ObjectListField
|
|
|
|
from .types import *
|
|
|
|
|
|
|
|
|
|
|
|
class TenancyQuery(graphene.ObjectType):
|
|
|
|
tenant = ObjectField(TenantType)
|
2021-06-30 09:57:33 -04:00
|
|
|
tenant_list = ObjectListField(TenantType)
|
2021-06-25 14:19:20 -04:00
|
|
|
|
|
|
|
tenant_group = ObjectField(TenantGroupType)
|
2021-06-30 09:57:33 -04:00
|
|
|
tenant_group_list = ObjectListField(TenantGroupType)
|
2021-10-18 11:45:05 -04:00
|
|
|
|
|
|
|
contact = ObjectField(ContactType)
|
|
|
|
contact_list = ObjectListField(ContactType)
|
|
|
|
|
|
|
|
contact_role = ObjectField(ContactRoleType)
|
|
|
|
contact_role_list = ObjectListField(ContactRoleType)
|
|
|
|
|
|
|
|
contact_group = ObjectField(ContactGroupType)
|
|
|
|
contact_group_list = ObjectListField(ContactGroupType)
|
|
|
|
|
|
|
|
contact_assignment = ObjectField(ContactAssignmentType)
|
|
|
|
contact_assignment_list = ObjectListField(ContactAssignmentType)
|