@codingame/kubevirt-api
Version:
kubevirt OpenAPI automation for TypeScript
42 lines • 1.55 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';
import { IoK8sApiAppsV1RollingUpdateStatefulSetStrategyFromJSON, IoK8sApiAppsV1RollingUpdateStatefulSetStrategyToJSON, } from './';
export function IoK8sApiAppsV1StatefulSetUpdateStrategyFromJSON(json) {
return IoK8sApiAppsV1StatefulSetUpdateStrategyFromJSONTyped(json, false);
}
export function IoK8sApiAppsV1StatefulSetUpdateStrategyFromJSONTyped(json, _ignoreDiscriminator) {
if (json === undefined || json === null) {
return json;
}
return {
rollingUpdate: !exists(json, 'rollingUpdate')
? undefined
: IoK8sApiAppsV1RollingUpdateStatefulSetStrategyFromJSON(json['rollingUpdate']),
type: !exists(json, 'type') ? undefined : json['type'],
};
}
export function IoK8sApiAppsV1StatefulSetUpdateStrategyToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
rollingUpdate: IoK8sApiAppsV1RollingUpdateStatefulSetStrategyToJSON(value.rollingUpdate),
type: value.type,
};
}
//# sourceMappingURL=IoK8sApiAppsV1StatefulSetUpdateStrategy.js.map