// Code generated by Microsoft (R) AutoRest Code Generator 1.1.0.0
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
namespace k8s.Models
{
using Newtonsoft.Json;
using System.Linq;
///
/// EnvFromSource represents the source of a set of ConfigMaps
///
public partial class V1EnvFromSource
{
///
/// Initializes a new instance of the V1EnvFromSource class.
///
public V1EnvFromSource()
{
CustomInit();
}
///
/// Initializes a new instance of the V1EnvFromSource class.
///
/// The ConfigMap to select from
/// An optional identifer to prepend to each key
/// in the ConfigMap. Must be a C_IDENTIFIER.
/// The Secret to select from
public V1EnvFromSource(V1ConfigMapEnvSource configMapRef = default(V1ConfigMapEnvSource), string prefix = default(string), V1SecretEnvSource secretRef = default(V1SecretEnvSource))
{
ConfigMapRef = configMapRef;
Prefix = prefix;
SecretRef = secretRef;
CustomInit();
}
///
/// An initialization method that performs custom operations like setting defaults
///
partial void CustomInit();
///
/// Gets or sets the ConfigMap to select from
///
[JsonProperty(PropertyName = "configMapRef")]
public V1ConfigMapEnvSource ConfigMapRef { get; set; }
///
/// Gets or sets an optional identifer to prepend to each key in the
/// ConfigMap. Must be a C_IDENTIFIER.
///
[JsonProperty(PropertyName = "prefix")]
public string Prefix { get; set; }
///
/// Gets or sets the Secret to select from
///
[JsonProperty(PropertyName = "secretRef")]
public V1SecretEnvSource SecretRef { get; set; }
}
}