7 using System.Collections.Generic;
16 public class HasRoleRequest : KineticaData
39 public const string TRUE =
"true";
40 public const string FALSE =
"false";
63 public string principal {
get;
set; } =
"";
66 public string role {
get;
set; }
114 public IDictionary<string, string>
options {
get;
set; } =
new Dictionary<string, string>();
176 IDictionary<string, string>
options =
null)
179 this.role =
role ??
"";
187 public class HasRoleResponse : KineticaData
194 public struct HasRole
197 public const string TRUE =
"true";
200 public const string FALSE =
"false";
221 public const string DIRECT =
"direct";
223 public const string TRUE =
"true";
224 public const string FALSE =
"false";
233 public string role {
get;
set; }
272 public IDictionary<string, string>
info {
get;
set; } =
new Dictionary<string, string>();
const string TRUE
User has membership in the role
string principal
Value of principal
IDictionary< string, string > options
Optional parameters.
bool has_role
Indicates whether the specified user has membership in the specified target role.
const string ONLY_DIRECT
If FALSE will search recursively if the principal is a member of role.
string principal
Name of the user for which role membership is being checked.
HasRoleRequest()
Constructs a HasRoleRequest object with default parameters.
const string FALSE
User does not have membership in the role
string role
Name of role to check for membership.
const string DIRECT
TRUE when principal is directly a member of the role.
IDictionary< string, string > info
Additional information.
HasRoleRequest(string principal, string role, IDictionary< string, string > options=null)
Constructs a HasRoleRequest object with the specified parameters.
const string NO_ERROR_IF_NOT_EXISTS
If FALSE will return an error if the provided role does not exist or is blank.
string role
role for which membership is being checked