2024-02-07 16:07:15 -08:00
|
|
|
from typing import List
|
|
|
|
import strawberry
|
|
|
|
import strawberry_django
|
2021-06-25 15:31:43 -04:00
|
|
|
|
2023-03-23 05:42:18 -07:00
|
|
|
from virtualization import models
|
2024-02-07 16:07:15 -08:00
|
|
|
from .types import *
|
2021-06-25 15:31:43 -04:00
|
|
|
|
|
|
|
|
2024-02-07 16:07:15 -08:00
|
|
|
@strawberry.type
|
|
|
|
class VirtualizationQuery:
|
|
|
|
cluster: ClusterType = strawberry_django.field()
|
|
|
|
cluster_list: List[ClusterType] = strawberry_django.field()
|
2021-06-25 15:31:43 -04:00
|
|
|
|
2024-02-07 16:07:15 -08:00
|
|
|
cluster_group: ClusterGroupType = strawberry_django.field()
|
|
|
|
cluster_group_list: List[ClusterGroupType] = strawberry_django.field()
|
2023-03-23 05:42:18 -07:00
|
|
|
|
2024-02-07 16:07:15 -08:00
|
|
|
cluster_type: ClusterTypeType = strawberry_django.field()
|
|
|
|
cluster_type_list: List[ClusterTypeType] = strawberry_django.field()
|
2023-03-23 05:42:18 -07:00
|
|
|
|
2024-02-07 16:07:15 -08:00
|
|
|
virtual_machine: VirtualMachineType = strawberry_django.field()
|
|
|
|
virtual_machine_list: List[VirtualMachineType] = strawberry_django.field()
|
2023-11-17 12:02:56 -08:00
|
|
|
|
2024-02-07 16:07:15 -08:00
|
|
|
vm_interface: VMInterfaceType = strawberry_django.field()
|
|
|
|
vm_interface_list: List[VMInterfaceType] = strawberry_django.field()
|
2023-11-17 12:02:56 -08:00
|
|
|
|
2024-02-07 16:07:15 -08:00
|
|
|
virtual_disk: VirtualDiskType = strawberry_django.field()
|
|
|
|
virtual_disk_list: List[VirtualDiskType] = strawberry_django.field()
|