@codingame/kubevirt-api
Version:
kubevirt OpenAPI automation for TypeScript
48 lines • 1.75 kB
JavaScript
/* tslint:disable */
/* eslint-disable */
/**
* KubeVirt API
* This is KubeVirt API an add-on for Kubernetes.
*
* 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 { V1ArchSpecificConfigurationFromJSON, V1ArchSpecificConfigurationToJSON, } from './';
export function V1ArchConfigurationFromJSON(json) {
return V1ArchConfigurationFromJSONTyped(json, false);
}
export function V1ArchConfigurationFromJSONTyped(json, _ignoreDiscriminator) {
if (json === undefined || json === null) {
return json;
}
return {
amd64: !exists(json, 'amd64') ? undefined : V1ArchSpecificConfigurationFromJSON(json['amd64']),
arm64: !exists(json, 'arm64') ? undefined : V1ArchSpecificConfigurationFromJSON(json['arm64']),
defaultArchitecture: !exists(json, 'defaultArchitecture')
? undefined
: json['defaultArchitecture'],
ppc64le: !exists(json, 'ppc64le')
? undefined
: V1ArchSpecificConfigurationFromJSON(json['ppc64le']),
};
}
export function V1ArchConfigurationToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
amd64: V1ArchSpecificConfigurationToJSON(value.amd64),
arm64: V1ArchSpecificConfigurationToJSON(value.arm64),
defaultArchitecture: value.defaultArchitecture,
ppc64le: V1ArchSpecificConfigurationToJSON(value.ppc64le),
};
}
//# sourceMappingURL=V1ArchConfiguration.js.map