UNPKG

@codingame/kubevirt-api

Version:

kubevirt OpenAPI automation for TypeScript

54 lines 2.08 kB
/* 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 { V1alpha1SelectorsFromJSON, V1alpha1SelectorsToJSON } from './'; export function V1alpha1MigrationPolicySpecFromJSON(json) { return V1alpha1MigrationPolicySpecFromJSONTyped(json, false); } export function V1alpha1MigrationPolicySpecFromJSONTyped(json, _ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { allowAutoConverge: !exists(json, 'allowAutoConverge') ? undefined : json['allowAutoConverge'], allowPostCopy: !exists(json, 'allowPostCopy') ? undefined : json['allowPostCopy'], allowWorkloadDisruption: !exists(json, 'allowWorkloadDisruption') ? undefined : json['allowWorkloadDisruption'], bandwidthPerMigration: !exists(json, 'bandwidthPerMigration') ? undefined : json['bandwidthPerMigration'], completionTimeoutPerGiB: !exists(json, 'completionTimeoutPerGiB') ? undefined : json['completionTimeoutPerGiB'], selectors: V1alpha1SelectorsFromJSON(json['selectors']), }; } export function V1alpha1MigrationPolicySpecToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { allowAutoConverge: value.allowAutoConverge, allowPostCopy: value.allowPostCopy, allowWorkloadDisruption: value.allowWorkloadDisruption, bandwidthPerMigration: value.bandwidthPerMigration, completionTimeoutPerGiB: value.completionTimeoutPerGiB, selectors: V1alpha1SelectorsToJSON(value.selectors), }; } //# sourceMappingURL=V1alpha1MigrationPolicySpec.js.map