Kinetica C# API  Version 7.1.10.0
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Pages
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 
10 
11 namespace kinetica
12 {
13 
20  {
21 
71  public struct Options
72  {
73 
91  public const string NO_ERROR_IF_NOT_EXISTS = "no_error_if_not_exists";
92  public const string TRUE = "true";
93  public const string FALSE = "false";
94 
112  public const string ONLY_DIRECT = "only_direct";
113  } // end struct Options
114 
115 
119  public string principal { get; set; } = "";
120 
122  public string role { get; set; }
123 
171  public IDictionary<string, string> options { get; set; } = new Dictionary<string, string>();
172 
173 
176  public HasRoleRequest() { }
177 
233  public HasRoleRequest( string principal,
234  string role,
235  IDictionary<string, string> options = null)
236  {
237  this.principal = principal ?? "";
238  this.role = role ?? "";
239  this.options = options ?? new Dictionary<string, string>();
240  } // end constructor
241 
242  } // end class HasRoleRequest
243 
244 
245 
250  {
251 
270  public struct HasRole
271  {
272 
274  public const string TRUE = "true";
275 
277  public const string FALSE = "false";
278  } // end struct HasRole
279 
280 
306  public struct Info
307  {
308 
324  public const string DIRECT = "direct";
325  public const string TRUE = "true";
326  public const string FALSE = "false";
327  } // end struct Info
328 
329 
332  public string principal { get; set; }
333 
336  public string role { get; set; }
337 
354  public bool has_role { get; set; }
355 
379  public IDictionary<string, string> info { get; set; } = new Dictionary<string, string>();
380 
381  } // end class HasRoleResponse
382 
383 
384 
385 
386 } // end namespace kinetica
const string ONLY_DIRECT
If false will search recursively if the principal is a member of role.
Definition: HasRole.cs:112
const string TRUE
User has membership in the role
Definition: HasRole.cs:274
bool has_role
Indicates whether the specified user has membership in the specified target .
Definition: HasRole.cs:354
Indicates whether the specified user has membership in the specified target .
Definition: HasRole.cs:270
string role
for which membership is being checked
Definition: HasRole.cs:336
IDictionary< string, string > info
Additional information.
Definition: HasRole.cs:379
Additional information.
Definition: HasRole.cs:306
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:91
HasRoleRequest()
Constructs a HasRoleRequest object with default parameters.
Definition: HasRole.cs:176
IDictionary< string, string > options
Optional parameters.
Definition: HasRole.cs:171
const string FALSE
User does not have membership in the role
Definition: HasRole.cs:277
A set of parameters for Kinetica.hasRole(string,string,IDictionary{string, string}).
Definition: HasRole.cs:19
string role
Name of role to check for membership.
Definition: HasRole.cs:122
Optional parameters.
Definition: HasRole.cs:71
string principal
Value of
Definition: HasRole.cs:332
string principal
Name of the user for which role membersih is being checked.
Definition: HasRole.cs:119
HasRoleRequest(string principal, string role, IDictionary< string, string > options=null)
Constructs a HasRoleRequest object with the specified parameters.
Definition: HasRole.cs:233
A set of results returned by Kinetica.hasRole(string,string,IDictionary{string, string}).
Definition: HasRole.cs:249
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:324