// <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.Collections;
    using System.Collections.Generic;
    using System.Linq;

    /// <summary>
    /// SupplementalGroupsStrategyOptions defines the strategy type and options
    /// used to create the strategy.
    /// </summary>
    public partial class V1beta1SupplementalGroupsStrategyOptions
    {
        /// <summary>
        /// Initializes a new instance of the
        /// V1beta1SupplementalGroupsStrategyOptions class.
        /// </summary>
        public V1beta1SupplementalGroupsStrategyOptions()
        {
            CustomInit();
        }

        /// <summary>
        /// Initializes a new instance of the
        /// V1beta1SupplementalGroupsStrategyOptions class.
        /// </summary>
        /// <param name="ranges">ranges are the allowed ranges of supplemental
        /// groups.  If you would like to force a single supplemental group
        /// then supply a single range with the same start and end. Required
        /// for MustRunAs.</param>
        /// <param name="rule">rule is the strategy that will dictate what
        /// supplemental groups is used in the SecurityContext.</param>
        public V1beta1SupplementalGroupsStrategyOptions(IList<V1beta1IDRange> ranges = default(IList<V1beta1IDRange>), string rule = default(string))
        {
            Ranges = ranges;
            Rule = rule;
            CustomInit();
        }

        /// <summary>
        /// An initialization method that performs custom operations like setting defaults
        /// </summary>
        partial void CustomInit();

        /// <summary>
        /// Gets or sets ranges are the allowed ranges of supplemental groups.
        /// If you would like to force a single supplemental group then supply
        /// a single range with the same start and end. Required for MustRunAs.
        /// </summary>
        [JsonProperty(PropertyName = "ranges")]
        public IList<V1beta1IDRange> Ranges { get; set; }

        /// <summary>
        /// Gets or sets rule is the strategy that will dictate what
        /// supplemental groups is used in the SecurityContext.
        /// </summary>
        [JsonProperty(PropertyName = "rule")]
        public string Rule { get; set; }

    }
}
