Kinetica   C#   API  Version 7.2.3.1
HasRole.cs
Go to the documentation of this file.
1 /*
2  * This file was autogenerated by the Kinetica schema processor.
3  *
4  * DO NOT EDIT DIRECTLY.
5  */
6 
7 using System.Collections.Generic;
8 
9 namespace kinetica;
10 
16 {
20  public struct Options
21  {
36  public const string NO_ERROR_IF_NOT_EXISTS = "no_error_if_not_exists";
37 
38  public const string TRUE = "true";
39  public const string FALSE = "false";
40 
55  public const string ONLY_DIRECT = "only_direct";
56  } // end struct Options
57 
62  public string principal { get; set; } = "";
63 
65  public string role { get; set; }
66 
112  public IDictionary<string, string> options { get; set; } = new Dictionary<string, string>();
113 
116  public HasRoleRequest() { }
117 
170  public HasRoleRequest( string principal,
171  string role,
172  IDictionary<string, string> options = null)
173  {
174  this.principal = principal ?? "";
175  this.role = role ?? "";
176  this.options = options ?? new Dictionary<string, string>();
177  } // end constructor
178 } // end class HasRoleRequest
179 
183 {
189  public struct HasRole
190  {
192  public const string TRUE = "true";
193 
195  public const string FALSE = "false";
196  } // end struct HasRole
197 
201  public struct Info
202  {
216  public const string DIRECT = "direct";
217 
218  public const string TRUE = "true";
219  public const string FALSE = "false";
220  } // end struct Info
221 
224  public string principal { get; set; }
225 
228  public string role { get; set; }
229 
244  public bool has_role { get; set; }
245 
266  public IDictionary<string, string> info { get; set; } = new Dictionary<string, string>();
267 } // end class HasRoleResponse
const string TRUE
User has membership in the role.
Definition: HasRole.cs:192
const string TRUE
Definition: HasRole.cs:218
HasRoleRequest()
Constructs a HasRoleRequest object with default parameters.
Definition: HasRole.cs:116
KineticaData - class to help with Avro Encoding for Kinetica
Definition: KineticaData.cs:14
string principal
Value of principal.
Definition: HasRole.cs:224
A set of parameters for Kinetica.hasRole.
Definition: HasRole.cs:15
const string NO_ERROR_IF_NOT_EXISTS
If FALSE will return an error if the provided role does not exist or is blank.
Definition: HasRole.cs:36
IDictionary< string, string > info
Additional information.
Definition: HasRole.cs:266
string role
Name of role to check for membership.
Definition: HasRole.cs:65
string principal
Name of the user for which role membership is being checked.
Definition: HasRole.cs:62
A set of results returned by Kinetica.hasRole.
Definition: HasRole.cs:182
const string DIRECT
TRUE when principal is directly a member of the role.
Definition: HasRole.cs:216
const string FALSE
User does not have membership in the role.
Definition: HasRole.cs:195
IDictionary< string, string > options
Optional parameters.
Definition: HasRole.cs:112
A set of string constants for the parameter options.
Definition: HasRole.cs:20
HasRoleRequest(string principal, string role, IDictionary< string, string > options=null)
Constructs a HasRoleRequest object with the specified parameters.
Definition: HasRole.cs:170
const string FALSE
Definition: HasRole.cs:39
const string TRUE
Definition: HasRole.cs:38
A set of string constants for the parameter info.
Definition: HasRole.cs:201
bool has_role
Indicates whether the specified user has membership in the specified target role.
Definition: HasRole.cs:244
string role
role for which membership is being checked.
Definition: HasRole.cs:228
const string ONLY_DIRECT
If FALSE will search recursively if the principal is a member of role.
Definition: HasRole.cs:55
const string FALSE
Definition: HasRole.cs:219
A set of string constants for the parameter has_role.
Definition: HasRole.cs:189