/* 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 { IoK8sApiResourceV1alpha3BasicDevice, IoK8sApiResourceV1alpha3BasicDeviceFromJSON, IoK8sApiResourceV1alpha3BasicDeviceToJSON, } from './'; /** * Device represents one individual hardware instance that can be selected based on its attributes. Besides the name, exactly one field must be set. * @export * @interface IoK8sApiResourceV1alpha3Device */ export interface IoK8sApiResourceV1alpha3Device { /** * * @type {IoK8sApiResourceV1alpha3BasicDevice} * @memberof IoK8sApiResourceV1alpha3Device */ basic?: IoK8sApiResourceV1alpha3BasicDevice; /** * Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label. * @type {string} * @memberof IoK8sApiResourceV1alpha3Device */ name: string; } export function IoK8sApiResourceV1alpha3DeviceFromJSON(json: any): IoK8sApiResourceV1alpha3Device { return IoK8sApiResourceV1alpha3DeviceFromJSONTyped(json, false); } export function IoK8sApiResourceV1alpha3DeviceFromJSONTyped( json: any, _ignoreDiscriminator: boolean, ): IoK8sApiResourceV1alpha3Device { if (json === undefined || json === null) { return json; } return { basic: !exists(json, 'basic') ? undefined : IoK8sApiResourceV1alpha3BasicDeviceFromJSON(json['basic']), name: json['name'], }; } export function IoK8sApiResourceV1alpha3DeviceToJSON( value?: IoK8sApiResourceV1alpha3Device | null, ): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { basic: IoK8sApiResourceV1alpha3BasicDeviceToJSON(value.basic), name: value.name, }; }