2021-06-25 15:31:43 -04:00
|
|
|
import graphene
|
|
|
|
|
|
|
|
from netbox.graphql.fields import ObjectField, ObjectListField
|
|
|
|
from .types import *
|
|
|
|
|
|
|
|
|
|
|
|
class VirtualizationQuery(graphene.ObjectType):
|
|
|
|
cluster = ObjectField(ClusterType)
|
2021-06-30 09:57:33 -04:00
|
|
|
cluster_list = ObjectListField(ClusterType)
|
2021-06-25 15:31:43 -04:00
|
|
|
|
|
|
|
cluster_group = ObjectField(ClusterGroupType)
|
2021-06-30 09:57:33 -04:00
|
|
|
cluster_group_list = ObjectListField(ClusterGroupType)
|
2021-06-25 15:31:43 -04:00
|
|
|
|
|
|
|
cluster_type = ObjectField(ClusterTypeType)
|
2021-06-30 09:57:33 -04:00
|
|
|
cluster_type_list = ObjectListField(ClusterTypeType)
|
2021-06-25 15:31:43 -04:00
|
|
|
|
|
|
|
virtual_machine = ObjectField(VirtualMachineType)
|
2021-06-30 09:57:33 -04:00
|
|
|
virtual_machine_list = ObjectListField(VirtualMachineType)
|
2021-06-25 15:31:43 -04:00
|
|
|
|
|
|
|
vm_interface = ObjectField(VMInterfaceType)
|
2021-06-30 09:57:33 -04:00
|
|
|
vm_interface_list = ObjectListField(VMInterfaceType)
|