/* 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 { IoK8sApiResourceV1alpha3DeviceClassSpec, IoK8sApiResourceV1alpha3DeviceClassSpecFromJSON, IoK8sApiResourceV1alpha3DeviceClassSpecToJSON, IoK8sApimachineryPkgApisMetaV1ObjectMeta, IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON, IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON, } from './'; /** * DeviceClass is a vendor- or admin-provided resource that contains device configuration and selectors. It can be referenced in the device requests of a claim to apply these presets. Cluster scoped. * * This is an alpha type and requires enabling the DynamicResourceAllocation feature gate. * @export * @interface IoK8sApiResourceV1alpha3DeviceClass */ export interface IoK8sApiResourceV1alpha3DeviceClass { /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @type {string} * @memberof IoK8sApiResourceV1alpha3DeviceClass */ apiVersion?: string; /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @type {string} * @memberof IoK8sApiResourceV1alpha3DeviceClass */ kind?: string; /** * * @type {IoK8sApimachineryPkgApisMetaV1ObjectMeta} * @memberof IoK8sApiResourceV1alpha3DeviceClass */ metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; /** * * @type {IoK8sApiResourceV1alpha3DeviceClassSpec} * @memberof IoK8sApiResourceV1alpha3DeviceClass */ spec: IoK8sApiResourceV1alpha3DeviceClassSpec; } export function IoK8sApiResourceV1alpha3DeviceClassFromJSON( json: any, ): IoK8sApiResourceV1alpha3DeviceClass { return IoK8sApiResourceV1alpha3DeviceClassFromJSONTyped(json, false); } export function IoK8sApiResourceV1alpha3DeviceClassFromJSONTyped( json: any, _ignoreDiscriminator: boolean, ): IoK8sApiResourceV1alpha3DeviceClass { if (json === undefined || json === null) { return json; } return { apiVersion: !exists(json, 'apiVersion') ? undefined : json['apiVersion'], kind: !exists(json, 'kind') ? undefined : json['kind'], metadata: !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), spec: IoK8sApiResourceV1alpha3DeviceClassSpecFromJSON(json['spec']), }; } export function IoK8sApiResourceV1alpha3DeviceClassToJSON( value?: IoK8sApiResourceV1alpha3DeviceClass | null, ): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { apiVersion: value.apiVersion, kind: value.kind, metadata: IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), spec: IoK8sApiResourceV1alpha3DeviceClassSpecToJSON(value.spec), }; }