Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the V1SubjectAccessReviewSpec class.
 /// </summary>
 /// <param name="extra">Extra corresponds to the user.Info.GetExtra()
 /// method from the authenticator.  Since that is input to the
 /// authorizer it needs a reflection here.</param>
 /// <param name="groups">Groups is the groups you're testing
 /// for.</param>
 /// <param name="nonResourceAttributes">NonResourceAttributes describes
 /// information for a non-resource access request</param>
 /// <param name="resourceAttributes">ResourceAuthorizationAttributes
 /// describes information for a resource access request</param>
 /// <param name="uid">UID information about the requesting
 /// user.</param>
 /// <param name="user">User is the user you're testing for. If you
 /// specify "User" but not "Groups", then is it interpreted as "What if
 /// User were not a member of any groups</param>
 public V1SubjectAccessReviewSpec(IDictionary <string, IList <string> > extra = default(IDictionary <string, IList <string> >), IList <string> groups = default(IList <string>), V1NonResourceAttributes nonResourceAttributes = default(V1NonResourceAttributes), V1ResourceAttributes resourceAttributes = default(V1ResourceAttributes), string uid = default(string), string user = default(string))
 {
     Extra  = extra;
     Groups = groups;
     NonResourceAttributes = nonResourceAttributes;
     ResourceAttributes    = resourceAttributes;
     Uid  = uid;
     User = user;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the V1SelfSubjectAccessReviewSpec
 /// class.
 /// </summary>
 /// <param name="nonResourceAttributes">NonResourceAttributes describes
 /// information for a non-resource access request</param>
 /// <param name="resourceAttributes">ResourceAuthorizationAttributes
 /// describes information for a resource access request</param>
 public V1SelfSubjectAccessReviewSpec(V1NonResourceAttributes nonResourceAttributes = default(V1NonResourceAttributes), V1ResourceAttributes resourceAttributes = default(V1ResourceAttributes))
 {
     NonResourceAttributes = nonResourceAttributes;
     ResourceAttributes    = resourceAttributes;
     CustomInit();
 }