/* tslint:disable */ /* eslint-disable */ /** * KubeVirt Containerized Data Importer API * Containerized Data Importer for KubeVirt. * * The version of the OpenAPI document: 1.0.0 * Contact: kubevirt-dev@googlegroups.com * * 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 { V1APIResource, V1APIResourceFromJSON, V1APIResourceToJSON } from './'; /** * APIResourceList is a list of APIResource, it is used to expose the name of the resources supported in a specific group and version, and if the resource is namespaced. * @export * @interface V1APIResourceList */ export interface V1APIResourceList { /** * 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 V1APIResourceList */ apiVersion?: string; /** * groupVersion is the group and version this APIResourceList is for. * @type {string} * @memberof V1APIResourceList */ groupVersion: 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 V1APIResourceList */ kind?: string; /** * resources contains the name of the resources and if they are namespaced. * @type {Array} * @memberof V1APIResourceList */ resources: Array; } export function V1APIResourceListFromJSON(json: any): V1APIResourceList { return V1APIResourceListFromJSONTyped(json, false); } export function V1APIResourceListFromJSONTyped( json: any, _ignoreDiscriminator: boolean, ): V1APIResourceList { if (json === undefined || json === null) { return json; } return { apiVersion: !exists(json, 'apiVersion') ? undefined : json['apiVersion'], groupVersion: json['groupVersion'], kind: !exists(json, 'kind') ? undefined : json['kind'], resources: (json['resources'] as Array).map(V1APIResourceFromJSON), }; } export function V1APIResourceListToJSON(value?: V1APIResourceList | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { apiVersion: value.apiVersion, groupVersion: value.groupVersion, kind: value.kind, resources: (value.resources as Array).map(V1APIResourceToJSON), }; }