Files
csharp/src/KubernetesClient/generated/Models/Extensionsv1beta1SELinuxStrategyOptions.cs
Boshi Lian 49bb82b15d generate v1.11.0 (#182)
* generate v1.11 -rc3

* add generated watcher

* regenrate with 1.11.0
2018-07-02 07:22:11 -07:00

80 lines
2.8 KiB
C#

// <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 Microsoft.Rest;
using Newtonsoft.Json;
using System.Linq;
/// <summary>
/// SELinuxStrategyOptions defines the strategy type and any options used
/// to create the strategy. Deprecated: use SELinuxStrategyOptions from
/// policy API Group instead.
/// </summary>
public partial class Extensionsv1beta1SELinuxStrategyOptions
{
/// <summary>
/// Initializes a new instance of the
/// Extensionsv1beta1SELinuxStrategyOptions class.
/// </summary>
public Extensionsv1beta1SELinuxStrategyOptions()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the
/// Extensionsv1beta1SELinuxStrategyOptions class.
/// </summary>
/// <param name="rule">rule is the strategy that will dictate the
/// allowable labels that may be set.</param>
/// <param name="seLinuxOptions">seLinuxOptions required to run as;
/// required for MustRunAs More info:
/// https://kubernetes.io/docs/tasks/configure-pod-container/security-context/</param>
public Extensionsv1beta1SELinuxStrategyOptions(string rule, V1SELinuxOptions seLinuxOptions = default(V1SELinuxOptions))
{
Rule = rule;
SeLinuxOptions = seLinuxOptions;
CustomInit();
}
/// <summary>
/// An initialization method that performs custom operations like setting defaults
/// </summary>
partial void CustomInit();
/// <summary>
/// Gets or sets rule is the strategy that will dictate the allowable
/// labels that may be set.
/// </summary>
[JsonProperty(PropertyName = "rule")]
public string Rule { get; set; }
/// <summary>
/// Gets or sets seLinuxOptions required to run as; required for
/// MustRunAs More info:
/// https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
/// </summary>
[JsonProperty(PropertyName = "seLinuxOptions")]
public V1SELinuxOptions SeLinuxOptions { get; set; }
/// <summary>
/// Validate the object.
/// </summary>
/// <exception cref="ValidationException">
/// Thrown if validation fails
/// </exception>
public virtual void Validate()
{
if (Rule == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "Rule");
}
}
}
}