UNPKG

kubernetes-models

Version:
43 lines (42 loc) 2.14 kB
import { IIoK8sApimachineryPkgApisMetaV1ObjectMeta } from "@kubernetes-models/apimachinery/apis/meta/v1/ObjectMeta"; import { IIoK8sApiStorageV1VolumeAttachmentSpec } from "./VolumeAttachmentSpec"; import { IIoK8sApiStorageV1VolumeAttachmentStatus } from "./VolumeAttachmentStatus"; import { ModelData, TypeMeta, Model } from "@kubernetes-models/base"; /** * VolumeAttachment captures the intent to attach or detach the specified volume to/from the specified node. * * VolumeAttachment objects are non-namespaced. */ export interface IVolumeAttachment extends TypeMeta { "apiVersion": "storage.k8s.io/v1"; "kind": "VolumeAttachment"; /** * Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */ "metadata"?: IIoK8sApimachineryPkgApisMetaV1ObjectMeta; /** * Specification of the desired attach/detach volume behavior. Populated by the Kubernetes system. */ "spec": IIoK8sApiStorageV1VolumeAttachmentSpec; /** * Status of the VolumeAttachment request. Populated by the entity completing the attach or detach operation, i.e. the external-attacher. */ "status"?: IIoK8sApiStorageV1VolumeAttachmentStatus; } /** * VolumeAttachment captures the intent to attach or detach the specified volume to/from the specified node. * * VolumeAttachment objects are non-namespaced. */ export declare class VolumeAttachment extends Model<IVolumeAttachment> implements IVolumeAttachment { "apiVersion": IVolumeAttachment["apiVersion"]; "kind": IVolumeAttachment["kind"]; "metadata"?: IIoK8sApimachineryPkgApisMetaV1ObjectMeta; "spec": IIoK8sApiStorageV1VolumeAttachmentSpec; "status"?: IIoK8sApiStorageV1VolumeAttachmentStatus; static apiVersion: IVolumeAttachment["apiVersion"]; static kind: IVolumeAttachment["kind"]; static is: import("@kubernetes-models/base").TypeMetaGuard<IVolumeAttachment>; constructor(data?: ModelData<IVolumeAttachment>); } export { IVolumeAttachment as IIoK8sApiStorageV1VolumeAttachment, VolumeAttachment as IoK8sApiStorageV1VolumeAttachment };