Kinetica   C#   API  Version 7.2.3.0
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 {
17  {
21  public struct Options
22  {
37  public const string NO_ERROR_IF_NOT_EXISTS = "no_error_if_not_exists";
38 
39  public const string TRUE = "true";
40  public const string FALSE = "false";
41 
56  public const string ONLY_DIRECT = "only_direct";
57  } // end struct Options
58 
63  public string principal { get; set; } = "";
64 
66  public string role { get; set; }
67 
114  public IDictionary<string, string> options { get; set; } = new Dictionary<string, string>();
115 
118  public HasRoleRequest() { }
119 
174  public HasRoleRequest( string principal,
175  string role,
176  IDictionary<string, string> options = null)
177  {
178  this.principal = principal ?? "";
179  this.role = role ?? "";
180  this.options = options ?? new Dictionary<string, string>();
181  } // end constructor
182  } // end class HasRoleRequest
183 
188  {
194  public struct HasRole
195  {
197  public const string TRUE = "true";
198 
200  public const string FALSE = "false";
201  } // end struct HasRole
202 
206  public struct Info
207  {
221  public const string DIRECT = "direct";
222 
223  public const string TRUE = "true";
224  public const string FALSE = "false";
225  } // end struct Info
226 
229  public string principal { get; set; }
230 
233  public string role { get; set; }
234 
250  public bool has_role { get; set; }
251 
272  public IDictionary<string, string> info { get; set; } = new Dictionary<string, string>();
273  } // end class HasRoleResponse
274 } // end namespace kinetica
const string ONLY_DIRECT
If FALSE will search recursively if the principal is a member of role.
Definition: HasRole.cs:56
const string TRUE
User has membership in the role
Definition: HasRole.cs:197
bool has_role
Indicates whether the specified user has membership in the specified target role.
Definition: HasRole.cs:250
A set of string constants for the parameter has_role.
Definition: HasRole.cs:194
string role
role for which membership is being checked
Definition: HasRole.cs:233
IDictionary< string, string > info
Additional information.
Definition: HasRole.cs:272
A set of string constants for the parameter info.
Definition: HasRole.cs:206
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:37
HasRoleRequest()
Constructs a HasRoleRequest object with default parameters.
Definition: HasRole.cs:118
IDictionary< string, string > options
Optional parameters.
Definition: HasRole.cs:114
const string FALSE
User does not have membership in the role
Definition: HasRole.cs:200
A set of parameters for Kinetica.hasRole.
Definition: HasRole.cs:16
string role
Name of role to check for membership.
Definition: HasRole.cs:66
A set of string constants for the parameter options.
Definition: HasRole.cs:21
string principal
Value of principal
Definition: HasRole.cs:229
string principal
Name of the user for which role membersih is being checked.
Definition: HasRole.cs:63
HasRoleRequest(string principal, string role, IDictionary< string, string > options=null)
Constructs a HasRoleRequest object with the specified parameters.
Definition: HasRole.cs:174
A set of results returned by Kinetica.hasRole.
Definition: HasRole.cs:187
KineticaData - class to help with Avro Encoding for Kinetica
Definition: KineticaData.cs:14
const string DIRECT
TRUE when principal is directly a member of the role.
Definition: HasRole.cs:221