/**
 * CODE GENERATED BY 'typgen' BINARY.
 *
 * DO NOT EDIT.
 */ import { KubernetesObject } from 'kpt-functions' ; import * as apisMetaV1 from './io.k8s.apimachinery.pkg.apis.meta.v1' ; import * as pkgUtilIntstr from './io.k8s.apimachinery.pkg.util.intstr' ; export class PodDisruptionBudget implements KubernetesObject { public apiVersion : string ; public kind : string ; public metadata : apisMetaV1 . ObjectMeta ; public spec ? : PodDisruptionBudgetSpec ; public status ? : PodDisruptionBudgetStatus ; constructor ( desc ) { this . apiVersion = PodDisruptionBudget . apiVersion ; this . kind = PodDisruptionBudget . kind ; this . metadata = desc . metadata ; this . spec = desc . spec ; this . status = desc . status ; } } export function isPodDisruptionBudget ( o ) { return o && o . apiVersion === PodDisruptionBudget . apiVersion && o . kind === PodDisruptionBudget . kind ; } export namespace PodDisruptionBudget { export const apiVersion = "policy/v1" ; export const group = "policy" ; export const version = "v1" ; export const kind = "PodDisruptionBudget" ; export function named ( name ) { return new PodDisruptionBudget ( { metadata : { name } } ) ; } export interface Interface { metadata : apisMetaV1 . ObjectMeta ; spec ? : PodDisruptionBudgetSpec ; status ? : PodDisruptionBudgetStatus ; } } export class PodDisruptionBudgetList { public apiVersion : string ; public items : PodDisruptionBudget [ ] ; public kind : string ; public metadata ? : apisMetaV1 . ListMeta ; constructor ( desc ) { this . apiVersion = PodDisruptionBudgetList . apiVersion ; this . items = desc . items . map ( ( i ) => new PodDisruptionBudget ( i ) ) ; this . kind = PodDisruptionBudgetList . kind ; this . metadata = desc . metadata ; } } export function isPodDisruptionBudgetList ( o ) { return o && o . apiVersion === PodDisruptionBudgetList . apiVersion && o . kind === PodDisruptionBudgetList . kind ; } export namespace PodDisruptionBudgetList { export const apiVersion = "policy/v1" ; export const group = "policy" ; export const version = "v1" ; export const kind = "PodDisruptionBudgetList" ; export interface Interface { items : PodDisruptionBudget [ ] ; metadata ? : apisMetaV1 . ListMeta ; } } export class PodDisruptionBudgetSpec { public maxUnavailable ? : pkgUtilIntstr . IntOrString ; public minAvailable ? : pkgUtilIntstr . IntOrString ; public selector ? : apisMetaV1 . LabelSelector ; } export class PodDisruptionBudgetStatus { public conditions ? : apisMetaV1 . Condition [ ] ; public currentHealthy : number ; public desiredHealthy : number ; public disruptedPods ? : { [ key ] : apisMetaV1 . Time ; } ; public disruptionsAllowed : number ; public expectedPods : number ; public observedGeneration ? : number ; constructor ( desc ) { this . conditions = desc . conditions ; this . currentHealthy = desc . currentHealthy ; this . desiredHealthy = desc . desiredHealthy ; this . disruptedPods = desc . disruptedPods ; this . disruptionsAllowed = desc . disruptionsAllowed ; this . expectedPods = desc . expectedPods ; this . observedGeneration = desc . observedGeneration ; } }