//
// 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.Collections;
using System.Collections.Generic;
using System.Linq;
///
/// DownwardAPIVolumeSource represents a volume containing downward API
/// info. Downward API volumes support ownership management and SELinux
/// relabeling.
///
public partial class V1DownwardAPIVolumeSource
{
///
/// Initializes a new instance of the V1DownwardAPIVolumeSource class.
///
public V1DownwardAPIVolumeSource()
{
CustomInit();
}
///
/// Initializes a new instance of the V1DownwardAPIVolumeSource class.
///
/// Optional: mode bits to use on created
/// files by default. Must be a value between 0 and 0777. Defaults to
/// 0644. Directories within the path are not affected by this setting.
/// This might be in conflict with other options that affect the file
/// mode, like fsGroup, and the result can be other mode bits
/// set.
/// Items is a list of downward API volume
/// file
public V1DownwardAPIVolumeSource(int? defaultMode = default(int?), IList items = default(IList))
{
DefaultMode = defaultMode;
Items = items;
CustomInit();
}
///
/// An initialization method that performs custom operations like setting defaults
///
partial void CustomInit();
///
/// Gets or sets optional: mode bits to use on created files by
/// default. Must be a value between 0 and 0777. Defaults to 0644.
/// Directories within the path are not affected by this setting. This
/// might be in conflict with other options that affect the file mode,
/// like fsGroup, and the result can be other mode bits set.
///
[JsonProperty(PropertyName = "defaultMode")]
public int? DefaultMode { get; set; }
///
/// Gets or sets items is a list of downward API volume file
///
[JsonProperty(PropertyName = "items")]
public IList Items { get; set; }
}
}