/* 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 { V1beta1PlatformOptions, V1beta1PlatformOptionsFromJSON, V1beta1PlatformOptionsToJSON, } from './'; /** * DataVolumeSourceRegistry provides the parameters to create a Data Volume from an registry source * @export * @interface V1beta1DataVolumeSourceRegistry */ export interface V1beta1DataVolumeSourceRegistry { /** * CertConfigMap provides a reference to the Registry certs * @type {string} * @memberof V1beta1DataVolumeSourceRegistry */ certConfigMap?: string; /** * ImageStream is the name of image stream for import * @type {string} * @memberof V1beta1DataVolumeSourceRegistry */ imageStream?: string; /** * * @type {V1beta1PlatformOptions} * @memberof V1beta1DataVolumeSourceRegistry */ platform?: V1beta1PlatformOptions; /** * PullMethod can be either "pod" (default import), or "node" (node docker cache based import) * @type {string} * @memberof V1beta1DataVolumeSourceRegistry */ pullMethod?: string; /** * SecretRef provides the secret reference needed to access the Registry source * @type {string} * @memberof V1beta1DataVolumeSourceRegistry */ secretRef?: string; /** * URL is the url of the registry source (starting with the scheme: docker, oci-archive) * @type {string} * @memberof V1beta1DataVolumeSourceRegistry */ url?: string; } export function V1beta1DataVolumeSourceRegistryFromJSON( json: any, ): V1beta1DataVolumeSourceRegistry { return V1beta1DataVolumeSourceRegistryFromJSONTyped(json, false); } export function V1beta1DataVolumeSourceRegistryFromJSONTyped( json: any, _ignoreDiscriminator: boolean, ): V1beta1DataVolumeSourceRegistry { if (json === undefined || json === null) { return json; } return { certConfigMap: !exists(json, 'certConfigMap') ? undefined : json['certConfigMap'], imageStream: !exists(json, 'imageStream') ? undefined : json['imageStream'], platform: !exists(json, 'platform') ? undefined : V1beta1PlatformOptionsFromJSON(json['platform']), pullMethod: !exists(json, 'pullMethod') ? undefined : json['pullMethod'], secretRef: !exists(json, 'secretRef') ? undefined : json['secretRef'], url: !exists(json, 'url') ? undefined : json['url'], }; } export function V1beta1DataVolumeSourceRegistryToJSON( value?: V1beta1DataVolumeSourceRegistry | null, ): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { certConfigMap: value.certConfigMap, imageStream: value.imageStream, platform: V1beta1PlatformOptionsToJSON(value.platform), pullMethod: value.pullMethod, secretRef: value.secretRef, url: value.url, }; }