// // Code generated by Microsoft (R) AutoRest Code Generator. // 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.Collections; using System.Collections.Generic; using System.Linq; /// /// Represents a Ceph Filesystem mount that lasts the lifetime of a pod /// Cephfs volumes do not support ownership management or SELinux /// relabeling. /// public partial class V1CephFSVolumeSource { /// /// Initializes a new instance of the V1CephFSVolumeSource class. /// public V1CephFSVolumeSource() { CustomInit(); } /// /// Initializes a new instance of the V1CephFSVolumeSource class. /// /// Required: Monitors is a collection of Ceph /// monitors More info: /// https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it /// Optional: Used as the mounted root, rather than /// the full Ceph tree, default is / /// Optional: Defaults to false /// (read/write). ReadOnly here will force the ReadOnly setting in /// VolumeMounts. More info: /// https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it /// Optional: SecretFile is the path to key /// ring for User, default is /etc/ceph/user.secret More info: /// https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it /// Optional: SecretRef is reference to the /// authentication secret for User, default is empty. More info: /// https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it /// Optional: User is the rados user name, default /// is admin More info: /// https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it public V1CephFSVolumeSource(IList monitors, string path = default(string), bool? readOnlyProperty = default(bool?), string secretFile = default(string), V1LocalObjectReference secretRef = default(V1LocalObjectReference), string user = default(string)) { Monitors = monitors; Path = path; ReadOnlyProperty = readOnlyProperty; SecretFile = secretFile; SecretRef = secretRef; User = user; CustomInit(); } /// /// An initialization method that performs custom operations like setting defaults /// partial void CustomInit(); /// /// Gets or sets required: Monitors is a collection of Ceph monitors /// More info: /// https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it /// [JsonProperty(PropertyName = "monitors")] public IList Monitors { get; set; } /// /// Gets or sets optional: Used as the mounted root, rather than the /// full Ceph tree, default is / /// [JsonProperty(PropertyName = "path")] public string Path { get; set; } /// /// Gets or sets optional: Defaults to false (read/write). ReadOnly /// here will force the ReadOnly setting in VolumeMounts. More info: /// https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it /// [JsonProperty(PropertyName = "readOnly")] public bool? ReadOnlyProperty { get; set; } /// /// Gets or sets optional: SecretFile is the path to key ring for User, /// default is /etc/ceph/user.secret More info: /// https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it /// [JsonProperty(PropertyName = "secretFile")] public string SecretFile { get; set; } /// /// Gets or sets optional: SecretRef is reference to the authentication /// secret for User, default is empty. More info: /// https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it /// [JsonProperty(PropertyName = "secretRef")] public V1LocalObjectReference SecretRef { get; set; } /// /// Gets or sets optional: User is the rados user name, default is /// admin More info: /// https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it /// [JsonProperty(PropertyName = "user")] public string User { get; set; } /// /// Validate the object. /// /// /// Thrown if validation fails /// public virtual void Validate() { if (Monitors == null) { throw new ValidationException(ValidationRules.CannotBeNull, "Monitors"); } } } }