UNPKG

kubernetes-models

Version:
22 lines (21 loc) 855 B
import { createTypeMetaGuard, Model, setSchema } from "@kubernetes-models/base"; import { addSchema } from "../../_schemas/IoK8sApiStorageV1VolumeAttachment.mjs"; /** * VolumeAttachment captures the intent to attach or detach the specified volume to/from the specified node. * * VolumeAttachment objects are non-namespaced. */ export class VolumeAttachment extends Model { constructor(data) { super({ apiVersion: VolumeAttachment.apiVersion, kind: VolumeAttachment.kind, ...data }); } } VolumeAttachment.apiVersion = "storage.k8s.io/v1"; VolumeAttachment.kind = "VolumeAttachment"; VolumeAttachment.is = createTypeMetaGuard(VolumeAttachment); setSchema(VolumeAttachment, "io.k8s.api.storage.v1.VolumeAttachment", addSchema); export { VolumeAttachment as IoK8sApiStorageV1VolumeAttachment };