@codingame/kubevirt-api
Version:
kubevirt OpenAPI automation for TypeScript
43 lines • 1.43 kB
JavaScript
/* 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';
export function V1beta1ImportProxyFromJSON(json) {
return V1beta1ImportProxyFromJSONTyped(json, false);
}
export function V1beta1ImportProxyFromJSONTyped(json, _ignoreDiscriminator) {
if (json === undefined || json === null) {
return json;
}
return {
hTTPProxy: !exists(json, 'HTTPProxy') ? undefined : json['HTTPProxy'],
hTTPSProxy: !exists(json, 'HTTPSProxy') ? undefined : json['HTTPSProxy'],
noProxy: !exists(json, 'noProxy') ? undefined : json['noProxy'],
trustedCAProxy: !exists(json, 'trustedCAProxy') ? undefined : json['trustedCAProxy'],
};
}
export function V1beta1ImportProxyToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
HTTPProxy: value.hTTPProxy,
HTTPSProxy: value.hTTPSProxy,
noProxy: value.noProxy,
trustedCAProxy: value.trustedCAProxy,
};
}
//# sourceMappingURL=V1beta1ImportProxy.js.map