//
// 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 an empty directory for a pod. Empty directory volumes
/// support ownership management and SELinux relabeling.
///
public partial class V1EmptyDirVolumeSource
{
///
/// Initializes a new instance of the V1EmptyDirVolumeSource class.
///
public V1EmptyDirVolumeSource()
{
CustomInit();
}
///
/// Initializes a new instance of the V1EmptyDirVolumeSource class.
///
/// What type of storage medium should back this
/// directory. The default is "" which means to use the node's default
/// medium. Must be an empty string (default) or Memory. More info:
/// https://kubernetes.io/docs/concepts/storage/volumes#emptydir
/// Total amount of local storage required for
/// this EmptyDir volume. The size limit is also applicable for memory
/// medium. The maximum usage on memory medium EmptyDir would be the
/// minimum value between the SizeLimit specified here and the sum of
/// memory limits of all containers in a pod. The default is nil which
/// means that the limit is undefined. More info:
/// http://kubernetes.io/docs/user-guide/volumes#emptydir
public V1EmptyDirVolumeSource(string medium = default(string), ResourceQuantity sizeLimit = default(ResourceQuantity))
{
Medium = medium;
SizeLimit = sizeLimit;
CustomInit();
}
///
/// An initialization method that performs custom operations like setting defaults
///
partial void CustomInit();
///
/// Gets or sets what type of storage medium should back this
/// directory. The default is "" which means to use the node's default
/// medium. Must be an empty string (default) or Memory. More info:
/// https://kubernetes.io/docs/concepts/storage/volumes#emptydir
///
[JsonProperty(PropertyName = "medium")]
public string Medium { get; set; }
///
/// Gets or sets total amount of local storage required for this
/// EmptyDir volume. The size limit is also applicable for memory
/// medium. The maximum usage on memory medium EmptyDir would be the
/// minimum value between the SizeLimit specified here and the sum of
/// memory limits of all containers in a pod. The default is nil which
/// means that the limit is undefined. More info:
/// http://kubernetes.io/docs/user-guide/volumes#emptydir
///
[JsonProperty(PropertyName = "sizeLimit")]
public ResourceQuantity SizeLimit { get; set; }
}
}