57 lines
2.0 KiB
C#
57 lines
2.0 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 Newtonsoft.Json;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
|
|
/// <summary>
|
|
/// AggregationRule describes how to locate ClusterRoles to aggregate into
|
|
/// the ClusterRole
|
|
/// </summary>
|
|
public partial class V1AggregationRule
|
|
{
|
|
/// <summary>
|
|
/// Initializes a new instance of the V1AggregationRule class.
|
|
/// </summary>
|
|
public V1AggregationRule()
|
|
{
|
|
CustomInit();
|
|
}
|
|
|
|
/// <summary>
|
|
/// Initializes a new instance of the V1AggregationRule class.
|
|
/// </summary>
|
|
/// <param name="clusterRoleSelectors">ClusterRoleSelectors holds a
|
|
/// list of selectors which will be used to find ClusterRoles and
|
|
/// create the rules. If any of the selectors match, then the
|
|
/// ClusterRole's permissions will be added</param>
|
|
public V1AggregationRule(IList<V1LabelSelector> clusterRoleSelectors = default(IList<V1LabelSelector>))
|
|
{
|
|
ClusterRoleSelectors = clusterRoleSelectors;
|
|
CustomInit();
|
|
}
|
|
|
|
/// <summary>
|
|
/// An initialization method that performs custom operations like setting defaults
|
|
/// </summary>
|
|
partial void CustomInit();
|
|
|
|
/// <summary>
|
|
/// Gets or sets clusterRoleSelectors holds a list of selectors which
|
|
/// will be used to find ClusterRoles and create the rules. If any of
|
|
/// the selectors match, then the ClusterRole's permissions will be
|
|
/// added
|
|
/// </summary>
|
|
[JsonProperty(PropertyName = "clusterRoleSelectors")]
|
|
public IList<V1LabelSelector> ClusterRoleSelectors { get; set; }
|
|
|
|
}
|
|
}
|