/* tslint:disable */ /* eslint-disable */ /** * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: unversioned * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { exists } from '../runtime'; import { IoK8sApiResourceV1alpha3OpaqueDeviceConfiguration, IoK8sApiResourceV1alpha3OpaqueDeviceConfigurationFromJSON, IoK8sApiResourceV1alpha3OpaqueDeviceConfigurationToJSON, } from './'; /** * DeviceAllocationConfiguration gets embedded in an AllocationResult. * @export * @interface IoK8sApiResourceV1alpha3DeviceAllocationConfiguration */ export interface IoK8sApiResourceV1alpha3DeviceAllocationConfiguration { /** * * @type {IoK8sApiResourceV1alpha3OpaqueDeviceConfiguration} * @memberof IoK8sApiResourceV1alpha3DeviceAllocationConfiguration */ opaque?: IoK8sApiResourceV1alpha3OpaqueDeviceConfiguration; /** * Requests lists the names of requests where the configuration applies. If empty, its applies to all requests. * * References to subrequests must include the name of the main request and may include the subrequest using the format
[/]. If just the main request is given, the configuration applies to all subrequests. * @type {Array} * @memberof IoK8sApiResourceV1alpha3DeviceAllocationConfiguration */ requests?: Array; /** * Source records whether the configuration comes from a class and thus is not something that a normal user would have been able to set or from a claim. * @type {string} * @memberof IoK8sApiResourceV1alpha3DeviceAllocationConfiguration */ source: string; } export function IoK8sApiResourceV1alpha3DeviceAllocationConfigurationFromJSON( json: any, ): IoK8sApiResourceV1alpha3DeviceAllocationConfiguration { return IoK8sApiResourceV1alpha3DeviceAllocationConfigurationFromJSONTyped(json, false); } export function IoK8sApiResourceV1alpha3DeviceAllocationConfigurationFromJSONTyped( json: any, _ignoreDiscriminator: boolean, ): IoK8sApiResourceV1alpha3DeviceAllocationConfiguration { if (json === undefined || json === null) { return json; } return { opaque: !exists(json, 'opaque') ? undefined : IoK8sApiResourceV1alpha3OpaqueDeviceConfigurationFromJSON(json['opaque']), requests: !exists(json, 'requests') ? undefined : json['requests'], source: json['source'], }; } export function IoK8sApiResourceV1alpha3DeviceAllocationConfigurationToJSON( value?: IoK8sApiResourceV1alpha3DeviceAllocationConfiguration | null, ): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { opaque: IoK8sApiResourceV1alpha3OpaqueDeviceConfigurationToJSON(value.opaque), requests: value.requests, source: value.source, }; }