UNPKG

kubernetes-models

Version:
28 lines (27 loc) 1.54 kB
import { IIoK8sApiResourceV1DeviceAllocationConfiguration } from "./DeviceAllocationConfiguration.js"; import { IIoK8sApiResourceV1DeviceRequestAllocationResult } from "./DeviceRequestAllocationResult.js"; import { ModelData, Model } from "@kubernetes-models/base"; /** * DeviceAllocationResult is the result of allocating devices. */ export interface IDeviceAllocationResult { /** * This field is a combination of all the claim and class configuration parameters. Drivers can distinguish between those based on a flag. * * This includes configuration parameters for drivers which have no allocated devices in the result because it is up to the drivers which configuration parameters they support. They can silently ignore unknown configuration parameters. */ "config"?: Array<IIoK8sApiResourceV1DeviceAllocationConfiguration>; /** * Results lists all allocated devices. */ "results"?: Array<IIoK8sApiResourceV1DeviceRequestAllocationResult>; } /** * DeviceAllocationResult is the result of allocating devices. */ export declare class DeviceAllocationResult extends Model<IDeviceAllocationResult> implements IDeviceAllocationResult { "config"?: Array<IIoK8sApiResourceV1DeviceAllocationConfiguration>; "results"?: Array<IIoK8sApiResourceV1DeviceRequestAllocationResult>; constructor(data?: ModelData<IDeviceAllocationResult>); } export type { IDeviceAllocationResult as IIoK8sApiResourceV1DeviceAllocationResult, DeviceAllocationResult as IoK8sApiResourceV1DeviceAllocationResult };