2017-10-19 19:53:02 +00:00
|
|
|
// <auto-generated>
|
|
|
|
|
// Code generated by Microsoft (R) AutoRest Code Generator.
|
|
|
|
|
// Changes may cause incorrect behavior and will be lost if the code is
|
|
|
|
|
// regenerated.
|
|
|
|
|
// </auto-generated>
|
|
|
|
|
|
|
|
|
|
namespace k8s.Models
|
|
|
|
|
{
|
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Represents an empty directory for a pod. Empty directory volumes
|
|
|
|
|
/// support ownership management and SELinux relabeling.
|
|
|
|
|
/// </summary>
|
2017-11-24 12:10:51 +08:00
|
|
|
public partial class V1EmptyDirVolumeSource
|
2017-10-19 19:53:02 +00:00
|
|
|
{
|
|
|
|
|
/// <summary>
|
2017-11-24 12:10:51 +08:00
|
|
|
/// Initializes a new instance of the V1EmptyDirVolumeSource class.
|
2017-10-19 19:53:02 +00:00
|
|
|
/// </summary>
|
2017-11-24 12:10:51 +08:00
|
|
|
public V1EmptyDirVolumeSource()
|
2017-10-19 19:53:02 +00:00
|
|
|
{
|
|
|
|
|
CustomInit();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2017-11-24 12:10:51 +08:00
|
|
|
/// Initializes a new instance of the V1EmptyDirVolumeSource class.
|
2017-10-19 19:53:02 +00:00
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="medium">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</param>
|
|
|
|
|
/// <param name="sizeLimit">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</param>
|
2017-11-24 12:10:51 +08:00
|
|
|
public V1EmptyDirVolumeSource(string medium = default(string), ResourceQuantity sizeLimit = default(ResourceQuantity))
|
2017-10-19 19:53:02 +00:00
|
|
|
{
|
|
|
|
|
Medium = medium;
|
|
|
|
|
SizeLimit = sizeLimit;
|
|
|
|
|
CustomInit();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// An initialization method that performs custom operations like setting defaults
|
|
|
|
|
/// </summary>
|
|
|
|
|
partial void CustomInit();
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 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
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "medium")]
|
|
|
|
|
public string Medium { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 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
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "sizeLimit")]
|
2017-11-24 12:10:51 +08:00
|
|
|
public ResourceQuantity SizeLimit { get; set; }
|
2017-10-19 19:53:02 +00:00
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|