UNPKG

@codingame/kubevirt-api

Version:

kubevirt OpenAPI automation for TypeScript

39 lines 1.35 kB
/* 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 IoK8sApiAppsV1RollingUpdateStatefulSetStrategyFromJSON(json) { return IoK8sApiAppsV1RollingUpdateStatefulSetStrategyFromJSONTyped(json, false); } export function IoK8sApiAppsV1RollingUpdateStatefulSetStrategyFromJSONTyped(json, _ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { maxUnavailable: !exists(json, 'maxUnavailable') ? undefined : json['maxUnavailable'], partition: !exists(json, 'partition') ? undefined : json['partition'], }; } export function IoK8sApiAppsV1RollingUpdateStatefulSetStrategyToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { maxUnavailable: value.maxUnavailable, partition: value.partition, }; } //# sourceMappingURL=IoK8sApiAppsV1RollingUpdateStatefulSetStrategy.js.map