/**
 * CODE GENERATED BY 'typgen' BINARY.
 *
 * DO NOT EDIT.
 */ import { KubernetesObject } from 'kpt-functions' ; import * as apisMetaV1 from './io.k8s.apimachinery.pkg.apis.meta.v1' ; export class CertificateSigningRequest implements KubernetesObject { public apiVersion : string ; public kind : string ; public metadata : apisMetaV1 . ObjectMeta ; public spec : CertificateSigningRequestSpec ; public status ? : CertificateSigningRequestStatus ; constructor ( desc ) { this . apiVersion = CertificateSigningRequest . apiVersion ; this . kind = CertificateSigningRequest . kind ; this . metadata = desc . metadata ; this . spec = desc . spec ; this . status = desc . status ; } } export function isCertificateSigningRequest ( o ) { return o && o . apiVersion === CertificateSigningRequest . apiVersion && o . kind === CertificateSigningRequest . kind ; } export namespace CertificateSigningRequest { export const apiVersion = "certificates.k8s.io/v1" ; export const group = "certificates.k8s.io" ; export const version = "v1" ; export const kind = "CertificateSigningRequest" ; export interface Interface { metadata : apisMetaV1 . ObjectMeta ; spec : CertificateSigningRequestSpec ; status ? : CertificateSigningRequestStatus ; } } export class CertificateSigningRequestCondition { public lastTransitionTime ? : apisMetaV1 . Time ; public lastUpdateTime ? : apisMetaV1 . Time ; public message ? : string ; public reason ? : string ; public status : string ; public type : string ; constructor ( desc ) { this . lastTransitionTime = desc . lastTransitionTime ; this . lastUpdateTime = desc . lastUpdateTime ; this . message = desc . message ; this . reason = desc . reason ; this . status = desc . status ; this . type = desc . type ; } } export class CertificateSigningRequestList { public apiVersion : string ; public items : CertificateSigningRequest [ ] ; public kind : string ; public metadata ? : apisMetaV1 . ListMeta ; constructor ( desc ) { this . apiVersion = CertificateSigningRequestList . apiVersion ; this . items = desc . items . map ( ( i ) => new CertificateSigningRequest ( i ) ) ; this . kind = CertificateSigningRequestList . kind ; this . metadata = desc . metadata ; } } export function isCertificateSigningRequestList ( o ) { return o && o . apiVersion === CertificateSigningRequestList . apiVersion && o . kind === CertificateSigningRequestList . kind ; } export namespace CertificateSigningRequestList { export const apiVersion = "certificates.k8s.io/v1" ; export const group = "certificates.k8s.io" ; export const version = "v1" ; export const kind = "CertificateSigningRequestList" ; export interface Interface { items : CertificateSigningRequest [ ] ; metadata ? : apisMetaV1 . ListMeta ; } } export class CertificateSigningRequestSpec { public extra ? : { [ key ] : string [ ] ; } ; public groups ? : string [ ] ; public request : string ; public signerName : string ; public uid ? : string ; public usages ? : string [ ] ; public username ? : string ; constructor ( desc ) { this . extra = desc . extra ; this . groups = desc . groups ; this . request = desc . request ; this . signerName = desc . signerName ; this . uid = desc . uid ; this . usages = desc . usages ; this . username = desc . username ; } } export class CertificateSigningRequestStatus { public certificate ? : string ; public conditions ? : CertificateSigningRequestCondition [ ] ; }