/* 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 { V1APIGroup, V1APIGroupFromJSON, V1APIGroupToJSON } from './'; /** * APIGroupList is a list of APIGroup, to allow clients to discover the API at /apis. * @export * @interface V1APIGroupList */ export interface V1APIGroupList { /** * 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 V1APIGroupList */ apiVersion?: string; /** * groups is a list of APIGroup. * @type {Array} * @memberof V1APIGroupList */ groups: Array; /** * 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 V1APIGroupList */ kind?: string; } export function V1APIGroupListFromJSON(json: any): V1APIGroupList { return V1APIGroupListFromJSONTyped(json, false); } export function V1APIGroupListFromJSONTyped( json: any, _ignoreDiscriminator: boolean, ): V1APIGroupList { if (json === undefined || json === null) { return json; } return { apiVersion: !exists(json, 'apiVersion') ? undefined : json['apiVersion'], groups: (json['groups'] as Array).map(V1APIGroupFromJSON), kind: !exists(json, 'kind') ? undefined : json['kind'], }; } export function V1APIGroupListToJSON(value?: V1APIGroupList | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { apiVersion: value.apiVersion, groups: (value.groups as Array).map(V1APIGroupToJSON), kind: value.kind, }; }