Coverage for virtualization/graphql/schema.py: 100%

19 statements  

« prev     ^ index     » next       coverage.py v7.15.2, created at 2026-10-10 18:35 +0000

1import strawberry 

2import strawberry_django 

3 

4from .types import * 

5 

6 

7@strawberry.type(name='Query') 

8class VirtualizationQuery: 

9 cluster: ClusterType = strawberry_django.field() 

10 cluster_list: list[ClusterType] = strawberry_django.field() 

11 

12 cluster_group: ClusterGroupType = strawberry_django.field() 

13 cluster_group_list: list[ClusterGroupType] = strawberry_django.field() 

14 

15 cluster_type: ClusterTypeType = strawberry_django.field() 

16 cluster_type_list: list[ClusterTypeType] = strawberry_django.field() 

17 

18 virtual_machine_type: VirtualMachineTypeType = strawberry_django.field() 

19 virtual_machine_type_list: list[VirtualMachineTypeType] = strawberry_django.field() 

20 

21 virtual_machine: VirtualMachineType = strawberry_django.field() 

22 virtual_machine_list: list[VirtualMachineType] = strawberry_django.field() 

23 

24 vm_interface: VMInterfaceType = strawberry_django.field() 

25 vm_interface_list: list[VMInterfaceType] = strawberry_django.field() 

26 

27 virtual_disk: VirtualDiskType = strawberry_django.field() 

28 virtual_disk_list: list[VirtualDiskType] = strawberry_django.field()