@codingame/kubevirt-api
Version:
kubevirt OpenAPI automation for TypeScript
75 lines • 3.33 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';
export function V1MigrationConfigurationFromJSON(json) {
return V1MigrationConfigurationFromJSONTyped(json, false);
}
export function V1MigrationConfigurationFromJSONTyped(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'],
disableTLS: !exists(json, 'disableTLS') ? undefined : json['disableTLS'],
matchSELinuxLevelOnMigration: !exists(json, 'matchSELinuxLevelOnMigration')
? undefined
: json['matchSELinuxLevelOnMigration'],
network: !exists(json, 'network') ? undefined : json['network'],
nodeDrainTaintKey: !exists(json, 'nodeDrainTaintKey') ? undefined : json['nodeDrainTaintKey'],
parallelMigrationsPerCluster: !exists(json, 'parallelMigrationsPerCluster')
? undefined
: json['parallelMigrationsPerCluster'],
parallelOutboundMigrationsPerNode: !exists(json, 'parallelOutboundMigrationsPerNode')
? undefined
: json['parallelOutboundMigrationsPerNode'],
progressTimeout: !exists(json, 'progressTimeout') ? undefined : json['progressTimeout'],
unsafeMigrationOverride: !exists(json, 'unsafeMigrationOverride')
? undefined
: json['unsafeMigrationOverride'],
};
}
export function V1MigrationConfigurationToJSON(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,
disableTLS: value.disableTLS,
matchSELinuxLevelOnMigration: value.matchSELinuxLevelOnMigration,
network: value.network,
nodeDrainTaintKey: value.nodeDrainTaintKey,
parallelMigrationsPerCluster: value.parallelMigrationsPerCluster,
parallelOutboundMigrationsPerNode: value.parallelOutboundMigrationsPerNode,
progressTimeout: value.progressTimeout,
unsafeMigrationOverride: value.unsafeMigrationOverride,
};
}
//# sourceMappingURL=V1MigrationConfiguration.js.map