@codingame/kubevirt-api
Version:
kubevirt OpenAPI automation for TypeScript
46 lines • 1.95 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 { IoK8sApiFlowcontrolV1ExemptPriorityLevelConfigurationFromJSON, IoK8sApiFlowcontrolV1ExemptPriorityLevelConfigurationToJSON, IoK8sApiFlowcontrolV1LimitedPriorityLevelConfigurationFromJSON, IoK8sApiFlowcontrolV1LimitedPriorityLevelConfigurationToJSON, } from './';
export function IoK8sApiFlowcontrolV1PriorityLevelConfigurationSpecFromJSON(json) {
return IoK8sApiFlowcontrolV1PriorityLevelConfigurationSpecFromJSONTyped(json, false);
}
export function IoK8sApiFlowcontrolV1PriorityLevelConfigurationSpecFromJSONTyped(json, _ignoreDiscriminator) {
if (json === undefined || json === null) {
return json;
}
return {
exempt: !exists(json, 'exempt')
? undefined
: IoK8sApiFlowcontrolV1ExemptPriorityLevelConfigurationFromJSON(json['exempt']),
limited: !exists(json, 'limited')
? undefined
: IoK8sApiFlowcontrolV1LimitedPriorityLevelConfigurationFromJSON(json['limited']),
type: json['type'],
};
}
export function IoK8sApiFlowcontrolV1PriorityLevelConfigurationSpecToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
exempt: IoK8sApiFlowcontrolV1ExemptPriorityLevelConfigurationToJSON(value.exempt),
limited: IoK8sApiFlowcontrolV1LimitedPriorityLevelConfigurationToJSON(value.limited),
type: value.type,
};
}
//# sourceMappingURL=IoK8sApiFlowcontrolV1PriorityLevelConfigurationSpec.js.map