/**
 * CODE GENERATED BY 'typgen' BINARY.
 *
 * DO NOT EDIT.
 */ import { KubernetesObject } from 'kpt-functions' ; import * as apiCoreV1 from './io.k8s.api.core.v1' ; import * as apisMetaV1 from './io.k8s.apimachinery.pkg.apis.meta.v1' ; export class CronJob implements KubernetesObject { public apiVersion : string ; public kind : string ; public metadata : apisMetaV1 . ObjectMeta ; public spec ? : CronJobSpec ; public status ? : CronJobStatus ; constructor ( desc ) { this . apiVersion = CronJob . apiVersion ; this . kind = CronJob . kind ; this . metadata = desc . metadata ; this . spec = desc . spec ; this . status = desc . status ; } } export function isCronJob ( o ) { return o && o . apiVersion === CronJob . apiVersion && o . kind === CronJob . kind ; } export namespace CronJob { export const apiVersion = "batch/v1" ; export const group = "batch" ; export const version = "v1" ; export const kind = "CronJob" ; export function named ( name ) { return new CronJob ( { metadata : { name } } ) ; } export interface Interface { metadata : apisMetaV1 . ObjectMeta ; spec ? : CronJobSpec ; status ? : CronJobStatus ; } } export class CronJobList { public apiVersion : string ; public items : CronJob [ ] ; public kind : string ; public metadata ? : apisMetaV1 . ListMeta ; constructor ( desc ) { this . apiVersion = CronJobList . apiVersion ; this . items = desc . items . map ( ( i ) => new CronJob ( i ) ) ; this . kind = CronJobList . kind ; this . metadata = desc . metadata ; } } export function isCronJobList ( o ) { return o && o . apiVersion === CronJobList . apiVersion && o . kind === CronJobList . kind ; } export namespace CronJobList { export const apiVersion = "batch/v1" ; export const group = "batch" ; export const version = "v1" ; export const kind = "CronJobList" ; export interface Interface { items : CronJob [ ] ; metadata ? : apisMetaV1 . ListMeta ; } } export class CronJobSpec { public concurrencyPolicy ? : string ; public failedJobsHistoryLimit ? : number ; public jobTemplate : JobTemplateSpec ; public schedule : string ; public startingDeadlineSeconds ? : number ; public successfulJobsHistoryLimit ? : number ; public suspend ? : boolean ; constructor ( desc ) { this . concurrencyPolicy = desc . concurrencyPolicy ; this . failedJobsHistoryLimit = desc . failedJobsHistoryLimit ; this . jobTemplate = desc . jobTemplate ; this . schedule = desc . schedule ; this . startingDeadlineSeconds = desc . startingDeadlineSeconds ; this . successfulJobsHistoryLimit = desc . successfulJobsHistoryLimit ; this . suspend = desc . suspend ; } } export class CronJobStatus { public active ? : apiCoreV1 . ObjectReference [ ] ; public lastScheduleTime ? : apisMetaV1 . Time ; public lastSuccessfulTime ? : apisMetaV1 . Time ; } export class Job implements KubernetesObject { public apiVersion : string ; public kind : string ; public metadata : apisMetaV1 . ObjectMeta ; public spec ? : JobSpec ; public status ? : JobStatus ; constructor ( desc ) { this . apiVersion = Job . apiVersion ; this . kind = Job . kind ; this . metadata = desc . metadata ; this . spec = desc . spec ; this . status = desc . status ; } } export function isJob ( o ) { return o && o . apiVersion === Job . apiVersion && o . kind === Job . kind ; } export namespace Job { export const apiVersion = "batch/v1" ; export const group = "batch" ; export const version = "v1" ; export const kind = "Job" ; export function named ( name ) { return new Job ( { metadata : { name } } ) ; } export interface Interface { metadata : apisMetaV1 . ObjectMeta ; spec ? : JobSpec ; status ? : JobStatus ; } } export class JobCondition { public lastProbeTime ? : apisMetaV1 . Time ; public lastTransitionTime ? : apisMetaV1 . Time ; public message ? : string ; public reason ? : string ; public status : string ; public type : string ; constructor ( desc ) { this . lastProbeTime = desc . lastProbeTime ; this . lastTransitionTime = desc . lastTransitionTime ; this . message = desc . message ; this . reason = desc . reason ; this . status = desc . status ; this . type = desc . type ; } } export class JobList { public apiVersion : string ; public items : Job [ ] ; public kind : string ; public metadata ? : apisMetaV1 . ListMeta ; constructor ( desc ) { this . apiVersion = JobList . apiVersion ; this . items = desc . items . map ( ( i ) => new Job ( i ) ) ; this . kind = JobList . kind ; this . metadata = desc . metadata ; } } export function isJobList ( o ) { return o && o . apiVersion === JobList . apiVersion && o . kind === JobList . kind ; } export namespace JobList { export const apiVersion = "batch/v1" ; export const group = "batch" ; export const version = "v1" ; export const kind = "JobList" ; export interface Interface { items : Job [ ] ; metadata ? : apisMetaV1 . ListMeta ; } } export class JobSpec { public activeDeadlineSeconds ? : number ; public backoffLimit ? : number ; public completionMode ? : string ; public completions ? : number ; public manualSelector ? : boolean ; public parallelism ? : number ; public selector ? : apisMetaV1 . LabelSelector ; public suspend ? : boolean ; public template : apiCoreV1 . PodTemplateSpec ; public ttlSecondsAfterFinished ? : number ; constructor ( desc ) { this . activeDeadlineSeconds = desc . activeDeadlineSeconds ; this . backoffLimit = desc . backoffLimit ; this . completionMode = desc . completionMode ; this . completions = desc . completions ; this . manualSelector = desc . manualSelector ; this . parallelism = desc . parallelism ; this . selector = desc . selector ; this . suspend = desc . suspend ; this . template = desc . template ; this . ttlSecondsAfterFinished = desc . ttlSecondsAfterFinished ; } } export class JobStatus { public active ? : number ; public completedIndexes ? : string ; public completionTime ? : apisMetaV1 . Time ; public conditions ? : JobCondition [ ] ; public failed ? : number ; public startTime ? : apisMetaV1 . Time ; public succeeded ? : number ; } export class JobTemplateSpec { public metadata ? : apisMetaV1 . ObjectMeta ; public spec ? : JobSpec ; }