/**
 * 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' ; import * as pkgUtilIntstr from './io.k8s.apimachinery.pkg.util.intstr' ; export class HTTPIngressPath { public backend : IngressBackend ; public path ? : string ; public pathType ? : string ; constructor ( desc ) { this . backend = desc . backend ; this . path = desc . path ; this . pathType = desc . pathType ; } } export class HTTPIngressRuleValue { public paths : HTTPIngressPath [ ] ; constructor ( desc ) { this . paths = desc . paths ; } } export class Ingress implements KubernetesObject { public apiVersion : string ; public kind : string ; public metadata : apisMetaV1 . ObjectMeta ; public spec ? : IngressSpec ; public status ? : IngressStatus ; constructor ( desc ) { this . apiVersion = Ingress . apiVersion ; this . kind = Ingress . kind ; this . metadata = desc . metadata ; this . spec = desc . spec ; this . status = desc . status ; } } export function isIngress ( o ) { return o && o . apiVersion === Ingress . apiVersion && o . kind === Ingress . kind ; } export namespace Ingress { export const apiVersion = "networking.k8s.io/v1beta1" ; export const group = "networking.k8s.io" ; export const version = "v1beta1" ; export const kind = "Ingress" ; export function named ( name ) { return new Ingress ( { metadata : { name } } ) ; } export interface Interface { metadata : apisMetaV1 . ObjectMeta ; spec ? : IngressSpec ; status ? : IngressStatus ; } } export class IngressBackend { public resource ? : apiCoreV1 . TypedLocalObjectReference ; public serviceName ? : string ; public servicePort ? : pkgUtilIntstr . IntOrString ; } export class IngressClass implements KubernetesObject { public apiVersion : string ; public kind : string ; public metadata : apisMetaV1 . ObjectMeta ; public spec ? : IngressClassSpec ; constructor ( desc ) { this . apiVersion = IngressClass . apiVersion ; this . kind = IngressClass . kind ; this . metadata = desc . metadata ; this . spec = desc . spec ; } } export function isIngressClass ( o ) { return o && o . apiVersion === IngressClass . apiVersion && o . kind === IngressClass . kind ; } export namespace IngressClass { export const apiVersion = "networking.k8s.io/v1beta1" ; export const group = "networking.k8s.io" ; export const version = "v1beta1" ; export const kind = "IngressClass" ; export function named ( name ) { return new IngressClass ( { metadata : { name } } ) ; } export interface Interface { metadata : apisMetaV1 . ObjectMeta ; spec ? : IngressClassSpec ; } } export class IngressClassList { public apiVersion : string ; public items : IngressClass [ ] ; public kind : string ; public metadata ? : apisMetaV1 . ListMeta ; constructor ( desc ) { this . apiVersion = IngressClassList . apiVersion ; this . items = desc . items . map ( ( i ) => new IngressClass ( i ) ) ; this . kind = IngressClassList . kind ; this . metadata = desc . metadata ; } } export function isIngressClassList ( o ) { return o && o . apiVersion === IngressClassList . apiVersion && o . kind === IngressClassList . kind ; } export namespace IngressClassList { export const apiVersion = "networking.k8s.io/v1beta1" ; export const group = "networking.k8s.io" ; export const version = "v1beta1" ; export const kind = "IngressClassList" ; export interface Interface { items : IngressClass [ ] ; metadata ? : apisMetaV1 . ListMeta ; } } export class IngressClassParametersReference { public apiGroup ? : string ; public kind : string ; public name : string ; public namespace ? : string ; public scope ? : string ; constructor ( desc ) { this . apiGroup = desc . apiGroup ; this . kind = desc . kind ; this . name = desc . name ; this . namespace = desc . namespace ; this . scope = desc . scope ; } } export class IngressClassSpec { public controller ? : string ; public parameters ? : IngressClassParametersReference ; } export class IngressList { public apiVersion : string ; public items : Ingress [ ] ; public kind : string ; public metadata ? : apisMetaV1 . ListMeta ; constructor ( desc ) { this . apiVersion = IngressList . apiVersion ; this . items = desc . items . map ( ( i ) => new Ingress ( i ) ) ; this . kind = IngressList . kind ; this . metadata = desc . metadata ; } } export function isIngressList ( o ) { return o && o . apiVersion === IngressList . apiVersion && o . kind === IngressList . kind ; } export namespace IngressList { export const apiVersion = "networking.k8s.io/v1beta1" ; export const group = "networking.k8s.io" ; export const version = "v1beta1" ; export const kind = "IngressList" ; export interface Interface { items : Ingress [ ] ; metadata ? : apisMetaV1 . ListMeta ; } } export class IngressRule { public host ? : string ; public http ? : HTTPIngressRuleValue ; } export class IngressSpec { public backend ? : IngressBackend ; public ingressClassName ? : string ; public rules ? : IngressRule [ ] ; public tls ? : IngressTLS [ ] ; } export class IngressStatus { public loadBalancer ? : apiCoreV1 . LoadBalancerStatus ; } export class IngressTLS { public hosts ? : string [ ] ; public secretName ? : string ; }