Kinetica   C#   API  Version 7.2.3.0
HasPermission.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 ObjectType
22  {
24  public const string CONTEXT = "context";
25 
27  public const string CREDENTIAL = "credential";
28 
30  public const string DATASINK = "datasink";
31 
33  public const string DATASOURCE = "datasource";
34 
36  public const string DIRECTORY = "directory";
37 
39  public const string GRAPH = "graph";
40 
42  public const string PROC = "proc";
43 
45  public const string SCHEMA = "schema";
46 
48  public const string SQL_PROC = "sql_proc";
49 
51  public const string SYSTEM = "system";
52 
54  public const string TABLE = "table";
55 
57  public const string TABLE_MONITOR = "table_monitor";
58  } // end struct ObjectType
59 
63  public struct Permission
64  {
67  public const string ADMIN = "admin";
68 
71  public const string CONNECT = "connect";
72 
74  public const string CREATE = "create";
75 
77  public const string DELETE = "delete";
78 
80  public const string EXECUTE = "execute";
81 
83  public const string INSERT = "insert";
84 
86  public const string READ = "read";
87 
89  public const string UPDATE = "update";
90 
93  public const string USER_ADMIN = "user_admin";
94 
96  public const string WRITE = "write";
97  } // end struct Permission
98 
102  public struct Options
103  {
118  public const string NO_ERROR_IF_NOT_EXISTS = "no_error_if_not_exists";
119 
120  public const string TRUE = "true";
121  public const string FALSE = "false";
122  } // end struct Options
123 
128  public string principal { get; set; } = "";
129 
134  public string _object { get; set; }
135 
194  public string object_type { get; set; }
195 
248  public string permission { get; set; }
249 
277  public IDictionary<string, string> options { get; set; } = new Dictionary<string, string>();
278 
281  public HasPermissionRequest() { }
282 
430  string _object,
431  string object_type,
432  string permission,
433  IDictionary<string, string> options = null)
434  {
435  this.principal = principal ?? "";
436  this._object = _object ?? "";
437  this.object_type = object_type ?? "";
438  this.permission = permission ?? "";
439  this.options = options ?? new Dictionary<string, string>();
440  } // end constructor
441  } // end class HasPermissionRequest
442 
447  {
452  public struct HasPermission
453  {
455  public const string TRUE = "true";
456 
458  public const string FALSE = "false";
459  } // end struct HasPermission
460 
463  public string principal { get; set; }
464 
467  public string _object { get; set; }
468 
471  public string object_type { get; set; }
472 
475  public string permission { get; set; }
476 
492  public bool has_permission { get; set; }
493 
495  public IDictionary<string, string> filters { get; set; } = new Dictionary<string, string>();
496 
498  public IDictionary<string, string> info { get; set; } = new Dictionary<string, string>();
499  } // end class HasPermissionResponse
500 } // end namespace kinetica
IDictionary< string, string > info
Additional information.
A set of results returned by Kinetica.hasPermission.
const string EXECUTE
Ability to Execute the Procedure object.
const string TABLE
Database Table
A set of parameters for Kinetica.hasPermission.
string _object
Name of object to check for the requested permission.
const string FALSE
User does not have the queried permission
const string NO_ERROR_IF_NOT_EXISTS
If FALSE will return an error if the provided _object does not exist or is blank.
const string INSERT
Insert access to tables.
string object_type
Value of object_type
const string ADMIN
Full read/write and administrative access on the object.
A set of string constants for the parameter permission.
A set of string constants for the parameter options.
string permission
Permission to check for.
const string TRUE
User has the effective queried permission
IDictionary< string, string > filters
Map of column/filters that have been granted.
const string WRITE
Access to write, change and delete objects.
IDictionary< string, string > options
Optional parameters.
string principal
Name of the user for which the permission is being checked.
const string UPDATE
Update access to the table.
const string TABLE_MONITOR
Table monitor
const string CONNECT
Connect access on the given data source or data sink.
string permission
Value of permission
bool has_permission
Indicates whether the specified user has the specified permission on the specified target.
HasPermissionRequest(string principal, string _object, string object_type, string permission, IDictionary< string, string > options=null)
Constructs a HasPermissionRequest object with the specified parameters.
const string SYSTEM
System-level access
const string DELETE
Delete rows from tables.
string object_type
The type of object being checked.
const string SQL_PROC
SQL Procedure
const string READ
Ability to read, list and use the object.
A set of string constants for the parameter object_type.
A set of string constants for the parameter has_permission.
const string CREATE
Ability to create new objects of this type.
const string USER_ADMIN
Access to administer users and roles that do not have system_admin permission.
string _object
Fully-qualified value of _object
string principal
Value of principal
const string GRAPH
A Graph object
KineticaData - class to help with Avro Encoding for Kinetica
Definition: KineticaData.cs:14
HasPermissionRequest()
Constructs a HasPermissionRequest object with default parameters.
const string DIRECTORY
KiFS File Directory