/// <summary> /// Initializes a new instance of the V1PersistentVolume class. /// </summary> /// <param name="apiVersion">APIVersion defines the versioned schema of /// this representation of an object. Servers should convert recognized /// schemas to the latest internal value, and may reject unrecognized /// values. More info: /// https://git.k8s.io/community/contributors/devel/api-conventions.md#resources</param> /// <param name="kind">Kind is a string value representing the REST /// resource this object represents. Servers may infer this from the /// endpoint the client submits requests to. Cannot be updated. In /// CamelCase. More info: /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds</param> /// <param name="metadata">Standard object's metadata. More info: /// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata</param> /// <param name="spec">Spec defines a specification of a persistent /// volume owned by the cluster. Provisioned by an administrator. More /// info: /// https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes</param> /// <param name="status">Status represents the current /// information/status for the persistent volume. Populated by the /// system. Read-only. More info: /// https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes</param> public V1PersistentVolume(string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), V1PersistentVolumeSpec spec = default(V1PersistentVolumeSpec), V1PersistentVolumeStatus status = default(V1PersistentVolumeStatus)) { ApiVersion = apiVersion; Kind = kind; Metadata = metadata; Spec = spec; Status = status; CustomInit(); }
/// <summary> /// Initializes a new instance of the V1VolumeAttachmentSource class. /// </summary> /// <param name="inlineVolumeSpec">inlineVolumeSpec contains all the /// information necessary to attach a persistent volume defined by a /// pod's inline VolumeSource. This field is populated only for the /// CSIMigration feature. It contains translated fields from a pod's /// inline VolumeSource to a PersistentVolumeSpec. This field is /// alpha-level and is only honored by servers that enabled the /// CSIMigration feature.</param> /// <param name="persistentVolumeName">Name of the persistent volume to /// attach.</param> public V1VolumeAttachmentSource(V1PersistentVolumeSpec inlineVolumeSpec = default(V1PersistentVolumeSpec), string persistentVolumeName = default(string)) { InlineVolumeSpec = inlineVolumeSpec; PersistentVolumeName = persistentVolumeName; CustomInit(); }