syntax = "proto3";

package v1;

option go_package = "kubevirt.io/kubevirt/pkg/monitoring/metrics/virt-handler/gpuinfo/podresources";

service PodResourcesLister {
    rpc List(ListPodResourcesRequest) returns (ListPodResourcesResponse) {}
}

message ListPodResourcesRequest {}

message ListPodResourcesResponse {
    repeated PodResources pod_resources = 1;
}

message PodResources {
    string name = 1;
    string namespace = 2;
    repeated ContainerResources containers = 3;
}

message ContainerResources {
    string name = 1;
    repeated ContainerDevices devices = 2;
}

message ContainerDevices {
    string resource_name = 1;
    repeated string device_ids = 2;
}
