/**
 * CODE GENERATED BY 'typgen' BINARY.
 *
 * DO NOT EDIT.
 */ import { KubernetesObject } from 'kpt-functions' ; import * as apiCoreV1 from './io.k8s.api.core.v1' ; import * as pkgApiResource from './io.k8s.apimachinery.pkg.api.resource' ; import * as apisMetaV1 from './io.k8s.apimachinery.pkg.apis.meta.v1' ; export class CSIStorageCapacity implements KubernetesObject { public apiVersion : string ; public capacity ? : pkgApiResource . Quantity ; public kind : string ; public maximumVolumeSize ? : pkgApiResource . Quantity ; public metadata : apisMetaV1 . ObjectMeta ; public nodeTopology ? : apisMetaV1 . LabelSelector ; public storageClassName : string ; constructor ( desc ) { this . apiVersion = CSIStorageCapacity . apiVersion ; this . capacity = desc . capacity ; this . kind = CSIStorageCapacity . kind ; this . maximumVolumeSize = desc . maximumVolumeSize ; this . metadata = desc . metadata ; this . nodeTopology = desc . nodeTopology ; this . storageClassName = desc . storageClassName ; } } export function isCSIStorageCapacity ( o ) { return o && o . apiVersion === CSIStorageCapacity . apiVersion && o . kind === CSIStorageCapacity . kind ; } export namespace CSIStorageCapacity { export const apiVersion = "storage.k8s.io/v1alpha1" ; export const group = "storage.k8s.io" ; export const version = "v1alpha1" ; export const kind = "CSIStorageCapacity" ; export interface Interface { capacity ? : pkgApiResource . Quantity ; maximumVolumeSize ? : pkgApiResource . Quantity ; metadata : apisMetaV1 . ObjectMeta ; nodeTopology ? : apisMetaV1 . LabelSelector ; storageClassName : string ; } } export class CSIStorageCapacityList { public apiVersion : string ; public items : CSIStorageCapacity [ ] ; public kind : string ; public metadata ? : apisMetaV1 . ListMeta ; constructor ( desc ) { this . apiVersion = CSIStorageCapacityList . apiVersion ; this . items = desc . items . map ( ( i ) => new CSIStorageCapacity ( i ) ) ; this . kind = CSIStorageCapacityList . kind ; this . metadata = desc . metadata ; } } export function isCSIStorageCapacityList ( o ) { return o && o . apiVersion === CSIStorageCapacityList . apiVersion && o . kind === CSIStorageCapacityList . kind ; } export namespace CSIStorageCapacityList { export const apiVersion = "storage.k8s.io/v1alpha1" ; export const group = "storage.k8s.io" ; export const version = "v1alpha1" ; export const kind = "CSIStorageCapacityList" ; export interface Interface { items : CSIStorageCapacity [ ] ; metadata ? : apisMetaV1 . ListMeta ; } } export class VolumeAttachment implements KubernetesObject { public apiVersion : string ; public kind : string ; public metadata : apisMetaV1 . ObjectMeta ; public spec : VolumeAttachmentSpec ; public status ? : VolumeAttachmentStatus ; constructor ( desc ) { this . apiVersion = VolumeAttachment . apiVersion ; this . kind = VolumeAttachment . kind ; this . metadata = desc . metadata ; this . spec = desc . spec ; this . status = desc . status ; } } export function isVolumeAttachment ( o ) { return o && o . apiVersion === VolumeAttachment . apiVersion && o . kind === VolumeAttachment . kind ; } export namespace VolumeAttachment { export const apiVersion = "storage.k8s.io/v1alpha1" ; export const group = "storage.k8s.io" ; export const version = "v1alpha1" ; export const kind = "VolumeAttachment" ; export interface Interface { metadata : apisMetaV1 . ObjectMeta ; spec : VolumeAttachmentSpec ; status ? : VolumeAttachmentStatus ; } } export class VolumeAttachmentList { public apiVersion : string ; public items : VolumeAttachment [ ] ; public kind : string ; public metadata ? : apisMetaV1 . ListMeta ; constructor ( desc ) { this . apiVersion = VolumeAttachmentList . apiVersion ; this . items = desc . items . map ( ( i ) => new VolumeAttachment ( i ) ) ; this . kind = VolumeAttachmentList . kind ; this . metadata = desc . metadata ; } } export function isVolumeAttachmentList ( o ) { return o && o . apiVersion === VolumeAttachmentList . apiVersion && o . kind === VolumeAttachmentList . kind ; } export namespace VolumeAttachmentList { export const apiVersion = "storage.k8s.io/v1alpha1" ; export const group = "storage.k8s.io" ; export const version = "v1alpha1" ; export const kind = "VolumeAttachmentList" ; export interface Interface { items : VolumeAttachment [ ] ; metadata ? : apisMetaV1 . ListMeta ; } } export class VolumeAttachmentSource { public inlineVolumeSpec ? : apiCoreV1 . PersistentVolumeSpec ; public persistentVolumeName ? : string ; } export class VolumeAttachmentSpec { public attacher : string ; public nodeName : string ; public source : VolumeAttachmentSource ; constructor ( desc ) { this . attacher = desc . attacher ; this . nodeName = desc . nodeName ; this . source = desc . source ; } } export class VolumeAttachmentStatus { public attachError ? : VolumeError ; public attached : boolean ; public attachmentMetadata ? : { [ key ] : string ; } ; public detachError ? : VolumeError ; constructor ( desc ) { this . attachError = desc . attachError ; this . attached = desc . attached ; this . attachmentMetadata = desc . attachmentMetadata ; this . detachError = desc . detachError ; } } export class VolumeError { public message ? : string ; public time ? : apisMetaV1 . Time ; }