// Code generated by Microsoft (R) AutoRest Code Generator 1.1.0.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace k8s.Models { using Microsoft.Rest; using Newtonsoft.Json; using System.Linq; /// /// Represents a cinder volume resource in Openstack. A Cinder volume must /// exist before mounting to a container. The volume must also be in the /// same region as the kubelet. Cinder volumes support ownership management /// and SELinux relabeling. /// public partial class V1CinderVolumeSource { /// /// Initializes a new instance of the V1CinderVolumeSource class. /// public V1CinderVolumeSource() { CustomInit(); } /// /// Initializes a new instance of the V1CinderVolumeSource class. /// /// volume id used to identify the volume in /// cinder More info: /// http://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md /// Filesystem type to mount. Must be a filesystem /// type supported by the host operating system. Examples: "ext4", /// "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. /// More info: /// http://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md /// Optional: Defaults to false /// (read/write). ReadOnly here will force the ReadOnly setting in /// VolumeMounts. More info: /// http://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md public V1CinderVolumeSource(string volumeID, string fsType = default(string), bool? readOnlyProperty = default(bool?)) { FsType = fsType; ReadOnlyProperty = readOnlyProperty; VolumeID = volumeID; CustomInit(); } /// /// An initialization method that performs custom operations like setting defaults /// partial void CustomInit(); /// /// Gets or sets filesystem type to mount. Must be a filesystem type /// supported by the host operating system. Examples: "ext4", "xfs", /// "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: /// http://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md /// [JsonProperty(PropertyName = "fsType")] public string FsType { get; set; } /// /// Gets or sets optional: Defaults to false (read/write). ReadOnly /// here will force the ReadOnly setting in VolumeMounts. More info: /// http://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md /// [JsonProperty(PropertyName = "readOnly")] public bool? ReadOnlyProperty { get; set; } /// /// Gets or sets volume id used to identify the volume in cinder More /// info: /// http://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md /// [JsonProperty(PropertyName = "volumeID")] public string VolumeID { get; set; } /// /// Validate the object. /// /// /// Thrown if validation fails /// public virtual void Validate() { if (VolumeID == null) { throw new ValidationException(ValidationRules.CannotBeNull, "VolumeID"); } } } }