@codingame/kubevirt-api
Version:
kubevirt OpenAPI automation for TypeScript
47 lines • 1.78 kB
JavaScript
/* tslint:disable */
/* eslint-disable */
/**
* Kubernetes
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: unversioned
*
*
* 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 IoK8sApiCoordinationV1beta1LeaseCandidateSpecFromJSON(json) {
return IoK8sApiCoordinationV1beta1LeaseCandidateSpecFromJSONTyped(json, false);
}
export function IoK8sApiCoordinationV1beta1LeaseCandidateSpecFromJSONTyped(json, _ignoreDiscriminator) {
if (json === undefined || json === null) {
return json;
}
return {
binaryVersion: json['binaryVersion'],
emulationVersion: !exists(json, 'emulationVersion') ? undefined : json['emulationVersion'],
leaseName: json['leaseName'],
pingTime: !exists(json, 'pingTime') ? undefined : json['pingTime'],
renewTime: !exists(json, 'renewTime') ? undefined : json['renewTime'],
strategy: json['strategy'],
};
}
export function IoK8sApiCoordinationV1beta1LeaseCandidateSpecToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
binaryVersion: value.binaryVersion,
emulationVersion: value.emulationVersion,
leaseName: value.leaseName,
pingTime: value.pingTime === undefined ? undefined : value.pingTime,
renewTime: value.renewTime === undefined ? undefined : value.renewTime,
strategy: value.strategy,
};
}
//# sourceMappingURL=IoK8sApiCoordinationV1beta1LeaseCandidateSpec.js.map