UNPKG

@codingame/kubevirt-api

Version:

kubevirt OpenAPI automation for TypeScript

58 lines 2.33 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'; import { IoK8sApiBatchV1JobTemplateSpecFromJSON, IoK8sApiBatchV1JobTemplateSpecToJSON, } from './'; export function IoK8sApiBatchV1CronJobSpecFromJSON(json) { return IoK8sApiBatchV1CronJobSpecFromJSONTyped(json, false); } export function IoK8sApiBatchV1CronJobSpecFromJSONTyped(json, _ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { concurrencyPolicy: !exists(json, 'concurrencyPolicy') ? undefined : json['concurrencyPolicy'], failedJobsHistoryLimit: !exists(json, 'failedJobsHistoryLimit') ? undefined : json['failedJobsHistoryLimit'], jobTemplate: IoK8sApiBatchV1JobTemplateSpecFromJSON(json['jobTemplate']), schedule: json['schedule'], startingDeadlineSeconds: !exists(json, 'startingDeadlineSeconds') ? undefined : json['startingDeadlineSeconds'], successfulJobsHistoryLimit: !exists(json, 'successfulJobsHistoryLimit') ? undefined : json['successfulJobsHistoryLimit'], suspend: !exists(json, 'suspend') ? undefined : json['suspend'], timeZone: !exists(json, 'timeZone') ? undefined : json['timeZone'], }; } export function IoK8sApiBatchV1CronJobSpecToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { concurrencyPolicy: value.concurrencyPolicy, failedJobsHistoryLimit: value.failedJobsHistoryLimit, jobTemplate: IoK8sApiBatchV1JobTemplateSpecToJSON(value.jobTemplate), schedule: value.schedule, startingDeadlineSeconds: value.startingDeadlineSeconds, successfulJobsHistoryLimit: value.successfulJobsHistoryLimit, suspend: value.suspend, timeZone: value.timeZone, }; } //# sourceMappingURL=IoK8sApiBatchV1CronJobSpec.js.map