示例#1
0
 /// <summary>
 /// Initializes a new instance of the
 /// Iok8sapiauthorizationv1SubjectAccessReviewSpec 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 Iok8sapiauthorizationv1SubjectAccessReviewSpec(IDictionary <string, IList <string> > extra = default(IDictionary <string, IList <string> >), IList <string> groups = default(IList <string>), Iok8sapiauthorizationv1NonResourceAttributes nonResourceAttributes = default(Iok8sapiauthorizationv1NonResourceAttributes), Iok8sapiauthorizationv1ResourceAttributes resourceAttributes = default(Iok8sapiauthorizationv1ResourceAttributes), string uid = default(string), string user = default(string))
 {
     Extra  = extra;
     Groups = groups;
     NonResourceAttributes = nonResourceAttributes;
     ResourceAttributes    = resourceAttributes;
     Uid  = uid;
     User = user;
     CustomInit();
 }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the
 /// Iok8sapiauthorizationv1SelfSubjectAccessReviewSpec 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 Iok8sapiauthorizationv1SelfSubjectAccessReviewSpec(Iok8sapiauthorizationv1NonResourceAttributes nonResourceAttributes = default(Iok8sapiauthorizationv1NonResourceAttributes), Iok8sapiauthorizationv1ResourceAttributes resourceAttributes = default(Iok8sapiauthorizationv1ResourceAttributes))
 {
     NonResourceAttributes = nonResourceAttributes;
     ResourceAttributes    = resourceAttributes;
     CustomInit();
 }