7 using System.Collections.Generic;
38 public const string TRUE =
"true";
39 public const string FALSE =
"false";
65 public string role {
get;
set; }
112 public IDictionary<string, string>
options {
get;
set; } =
new Dictionary<string, string>();
172 IDictionary<string, string>
options =
null)
175 this.role =
role ??
"";
192 public const string TRUE =
"true";
195 public const string FALSE =
"false";
218 public const string TRUE =
"true";
219 public const string FALSE =
"false";
228 public string role {
get;
set; }
266 public IDictionary<string, string>
info {
get;
set; } =
new Dictionary<string, string>();
const string TRUE
User has membership in the role.
HasRoleRequest()
Constructs a HasRoleRequest object with default parameters.
KineticaData - class to help with Avro Encoding for Kinetica
string principal
Value of principal.
A set of parameters for Kinetica.hasRole.
const string NO_ERROR_IF_NOT_EXISTS
If FALSE will return an error if the provided role does not exist or is blank.
IDictionary< string, string > info
Additional information.
string role
Name of role to check for membership.
string principal
Name of the user for which role membership is being checked.
A set of results returned by Kinetica.hasRole.
const string DIRECT
TRUE when principal is directly a member of the role.
const string FALSE
User does not have membership in the role.
IDictionary< string, string > options
Optional parameters.
A set of string constants for the parameter options.
HasRoleRequest(string principal, string role, IDictionary< string, string > options=null)
Constructs a HasRoleRequest object with the specified parameters.
A set of string constants for the parameter info.
bool has_role
Indicates whether the specified user has membership in the specified target role.
string role
role for which membership is being checked.
const string ONLY_DIRECT
If FALSE will search recursively if the principal is a member of role.
A set of string constants for the parameter has_role.