//
// 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 Newtonsoft.Json;
using System.Linq;
///
/// Represents a StorageOS persistent volume resource.
///
public partial class V1StorageOSPersistentVolumeSource
{
///
/// Initializes a new instance of the V1StorageOSPersistentVolumeSource
/// class.
///
public V1StorageOSPersistentVolumeSource()
{
CustomInit();
}
///
/// Initializes a new instance of the V1StorageOSPersistentVolumeSource
/// class.
///
/// Filesystem type to mount. Must be a filesystem
/// type supported by the host operating system. Ex. "ext4", "xfs",
/// "ntfs". Implicitly inferred to be "ext4" if unspecified.
/// Defaults to false (read/write).
/// ReadOnly here will force the ReadOnly setting in
/// VolumeMounts.
/// SecretRef specifies the secret to use for
/// obtaining the StorageOS API credentials. If not specified, default
/// values will be attempted.
/// VolumeName is the human-readable name of
/// the StorageOS volume. Volume names are only unique within a
/// namespace.
/// VolumeNamespace specifies the scope
/// of the volume within StorageOS. If no namespace is specified then
/// the Pod's namespace will be used. This allows the Kubernetes name
/// scoping to be mirrored within StorageOS for tighter integration.
/// Set VolumeName to any name to override the default behaviour. Set
/// to "default" if you are not using namespaces within StorageOS.
/// Namespaces that do not pre-exist within StorageOS will be
/// created.
public V1StorageOSPersistentVolumeSource(string fsType = default(string), bool? readOnlyProperty = default(bool?), V1ObjectReference secretRef = default(V1ObjectReference), string volumeName = default(string), string volumeNamespace = default(string))
{
FsType = fsType;
ReadOnlyProperty = readOnlyProperty;
SecretRef = secretRef;
VolumeName = volumeName;
VolumeNamespace = volumeNamespace;
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. Ex. "ext4", "xfs", "ntfs".
/// Implicitly inferred to be "ext4" if unspecified.
///
[JsonProperty(PropertyName = "fsType")]
public string FsType { get; set; }
///
/// Gets or sets defaults to false (read/write). ReadOnly here will
/// force the ReadOnly setting in VolumeMounts.
///
[JsonProperty(PropertyName = "readOnly")]
public bool? ReadOnlyProperty { get; set; }
///
/// Gets or sets secretRef specifies the secret to use for obtaining
/// the StorageOS API credentials. If not specified, default values
/// will be attempted.
///
[JsonProperty(PropertyName = "secretRef")]
public V1ObjectReference SecretRef { get; set; }
///
/// Gets or sets volumeName is the human-readable name of the StorageOS
/// volume. Volume names are only unique within a namespace.
///
[JsonProperty(PropertyName = "volumeName")]
public string VolumeName { get; set; }
///
/// Gets or sets volumeNamespace specifies the scope of the volume
/// within StorageOS. If no namespace is specified then the Pod's
/// namespace will be used. This allows the Kubernetes name scoping to
/// be mirrored within StorageOS for tighter integration. Set
/// VolumeName to any name to override the default behaviour. Set to
/// "default" if you are not using namespaces within StorageOS.
/// Namespaces that do not pre-exist within StorageOS will be created.
///
[JsonProperty(PropertyName = "volumeNamespace")]
public string VolumeNamespace { get; set; }
}
}