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 CSIDriver implements KubernetesObject { public apiVersion : string ; public kind : string ; public metadata : apisMetaV1 . ObjectMeta ; public spec : CSIDriverSpec ; constructor ( desc ) { this . apiVersion = CSIDriver . apiVersion ; this . kind = CSIDriver . kind ; this . metadata = desc . metadata ; this . spec = desc . spec ; } } export function isCSIDriver ( o ) { return o && o . apiVersion === CSIDriver . apiVersion && o . kind === CSIDriver . kind ; } export namespace CSIDriver { export const apiVersion = "storage.k8s.io/v1beta1" ; export const group = "storage.k8s.io" ; export const version = "v1beta1" ; export const kind = "CSIDriver" ; export interface Interface { metadata : apisMetaV1 . ObjectMeta ; spec : CSIDriverSpec ; } } export class CSIDriverList { public apiVersion : string ; public items : CSIDriver [ ] ; public kind : string ; public metadata ? : apisMetaV1 . ListMeta ; constructor ( desc ) { this . apiVersion = CSIDriverList . apiVersion ; this . items = desc . items . map ( ( i ) => new CSIDriver ( i ) ) ; this . kind = CSIDriverList . kind ; this . metadata = desc . metadata ; } } export function isCSIDriverList ( o ) { return o && o . apiVersion === CSIDriverList . apiVersion && o . kind === CSIDriverList . kind ; } export namespace CSIDriverList { export const apiVersion = "storage.k8s.io/v1beta1" ; export const group = "storage.k8s.io" ; export const version = "v1beta1" ; export const kind = "CSIDriverList" ; export interface Interface { items : CSIDriver [ ] ; metadata ? : apisMetaV1 . ListMeta ; } } export class CSIDriverSpec { public attachRequired ? : boolean ; public podInfoOnMount ? : boolean ; } export class CSINode implements KubernetesObject { public apiVersion : string ; public kind : string ; public metadata : apisMetaV1 . ObjectMeta ; public spec : CSINodeSpec ; constructor ( desc ) { this . apiVersion = CSINode . apiVersion ; this . kind = CSINode . kind ; this . metadata = desc . metadata ; this . spec = desc . spec ; } } export function isCSINode ( o ) { return o && o . apiVersion === CSINode . apiVersion && o . kind === CSINode . kind ; } export namespace CSINode { export const apiVersion = "storage.k8s.io/v1beta1" ; export const group = "storage.k8s.io" ; export const version = "v1beta1" ; export const kind = "CSINode" ; export interface Interface { metadata : apisMetaV1 . ObjectMeta ; spec : CSINodeSpec ; } } export class CSINodeDriver { public name : string ; public nodeID : string ; public topologyKeys ? : string [ ] ; constructor ( desc ) { this . name = desc . name ; this . nodeID = desc . nodeID ; this . topologyKeys = desc . topologyKeys ; } } export class CSINodeList { public apiVersion : string ; public items : CSINode [ ] ; public kind : string ; public metadata ? : apisMetaV1 . ListMeta ; constructor ( desc ) { this . apiVersion = CSINodeList . apiVersion ; this . items = desc . items . map ( ( i ) => new CSINode ( i ) ) ; this . kind = CSINodeList . kind ; this . metadata = desc . metadata ; } } export function isCSINodeList ( o ) { return o && o . apiVersion === CSINodeList . apiVersion && o . kind === CSINodeList . kind ; } export namespace CSINodeList { export const apiVersion = "storage.k8s.io/v1beta1" ; export const group = "storage.k8s.io" ; export const version = "v1beta1" ; export const kind = "CSINodeList" ; export interface Interface { items : CSINode [ ] ; metadata ? : apisMetaV1 . ListMeta ; } } export class CSINodeSpec { public drivers : CSINodeDriver [ ] ; constructor ( desc ) { this . drivers = desc . drivers ; } } export class StorageClass implements KubernetesObject { public allowVolumeExpansion ? : boolean ; public allowedTopologies ? : apiCoreV1 . TopologySelectorTerm [ ] ; public apiVersion : string ; public kind : string ; public metadata : apisMetaV1 . ObjectMeta ; public mountOptions ? : string [ ] ; public parameters ? : { [ key ] : string ; } ; public provisioner : string ; public reclaimPolicy ? : string ; public volumeBindingMode ? : string ; constructor ( desc ) { this . allowVolumeExpansion = desc . allowVolumeExpansion ; this . allowedTopologies = desc . allowedTopologies ; this . apiVersion = StorageClass . apiVersion ; this . kind = StorageClass . kind ; this . metadata = desc . metadata ; this . mountOptions = desc . mountOptions ; this . parameters = desc . parameters ; this . provisioner = desc . provisioner ; this . reclaimPolicy = desc . reclaimPolicy ; this . volumeBindingMode = desc . volumeBindingMode ; } } export function isStorageClass ( o ) { return o && o . apiVersion === StorageClass . apiVersion && o . kind === StorageClass . kind ; } export namespace StorageClass { export const apiVersion = "storage.k8s.io/v1beta1" ; export const group = "storage.k8s.io" ; export const version = "v1beta1" ; export const kind = "StorageClass" ; export interface Interface { allowVolumeExpansion ? : boolean ; allowedTopologies ? : apiCoreV1 . TopologySelectorTerm [ ] ; metadata : apisMetaV1 . ObjectMeta ; mountOptions ? : string [ ] ; parameters ? : { [ key ] : string ; } ; provisioner : string ; reclaimPolicy ? : string ; volumeBindingMode ? : string ; } } export class StorageClassList { public apiVersion : string ; public items : StorageClass [ ] ; public kind : string ; public metadata ? : apisMetaV1 . ListMeta ; constructor ( desc ) { this . apiVersion = StorageClassList . apiVersion ; this . items = desc . items . map ( ( i ) => new StorageClass ( i ) ) ; this . kind = StorageClassList . kind ; this . metadata = desc . metadata ; } } export function isStorageClassList ( o ) { return o && o . apiVersion === StorageClassList . apiVersion && o . kind === StorageClassList . kind ; } export namespace StorageClassList { export const apiVersion = "storage.k8s.io/v1beta1" ; export const group = "storage.k8s.io" ; export const version = "v1beta1" ; export const kind = "StorageClassList" ; export interface Interface { items : StorageClass [ ] ; 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/v1beta1" ; export const group = "storage.k8s.io" ; export const version = "v1beta1" ; 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/v1beta1" ; export const group = "storage.k8s.io" ; export const version = "v1beta1" ; export const kind = "VolumeAttachmentList" ; export interface Interface { items : VolumeAttachment [ ] ; metadata ? : apisMetaV1 . ListMeta ; } } export class VolumeAttachmentSource { 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 ; }