/**
 * 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 Endpoint { public addresses : string [ ] ; public conditions ? : EndpointConditions ; public deprecatedTopology ? : { [ key ] : string ; } ; public hints ? : EndpointHints ; public hostname ? : string ; public nodeName ? : string ; public targetRef ? : apiCoreV1 . ObjectReference ; public zone ? : string ; constructor ( desc ) { this . addresses = desc . addresses ; this . conditions = desc . conditions ; this . deprecatedTopology = desc . deprecatedTopology ; this . hints = desc . hints ; this . hostname = desc . hostname ; this . nodeName = desc . nodeName ; this . targetRef = desc . targetRef ; this . zone = desc . zone ; } } export class EndpointConditions { public ready ? : boolean ; public serving ? : boolean ; public terminating ? : boolean ; } export class EndpointHints { public forZones ? : ForZone [ ] ; } export class EndpointPort { public appProtocol ? : string ; public name ? : string ; public port ? : number ; public protocol ? : string ; } export class EndpointSlice implements KubernetesObject { public addressType : string ; public apiVersion : string ; public endpoints : Endpoint [ ] ; public kind : string ; public metadata : apisMetaV1 . ObjectMeta ; public ports ? : EndpointPort [ ] ; constructor ( desc ) { this . addressType = desc . addressType ; this . apiVersion = EndpointSlice . apiVersion ; this . endpoints = desc . endpoints ; this . kind = EndpointSlice . kind ; this . metadata = desc . metadata ; this . ports = desc . ports ; } } export function isEndpointSlice ( o ) { return o && o . apiVersion === EndpointSlice . apiVersion && o . kind === EndpointSlice . kind ; } export namespace EndpointSlice { export const apiVersion = "discovery.k8s.io/v1" ; export const group = "discovery.k8s.io" ; export const version = "v1" ; export const kind = "EndpointSlice" ; export interface Interface { addressType : string ; endpoints : Endpoint [ ] ; metadata : apisMetaV1 . ObjectMeta ; ports ? : EndpointPort [ ] ; } } export class EndpointSliceList { public apiVersion : string ; public items : EndpointSlice [ ] ; public kind : string ; public metadata ? : apisMetaV1 . ListMeta ; constructor ( desc ) { this . apiVersion = EndpointSliceList . apiVersion ; this . items = desc . items . map ( ( i ) => new EndpointSlice ( i ) ) ; this . kind = EndpointSliceList . kind ; this . metadata = desc . metadata ; } } export function isEndpointSliceList ( o ) { return o && o . apiVersion === EndpointSliceList . apiVersion && o . kind === EndpointSliceList . kind ; } export namespace EndpointSliceList { export const apiVersion = "discovery.k8s.io/v1" ; export const group = "discovery.k8s.io" ; export const version = "v1" ; export const kind = "EndpointSliceList" ; export interface Interface { items : EndpointSlice [ ] ; metadata ? : apisMetaV1 . ListMeta ; } } export class ForZone { public name : string ; constructor ( desc ) { this . name = desc . name ; } }