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 {
16  public class HasPermissionRequest : KineticaData
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 SEND_ALERT = "send_alert";
90 
92  public const string UPDATE = "update";
93 
96  public const string USER_ADMIN = "user_admin";
97 
99  public const string WRITE = "write";
100  } // end struct Permission
101 
105  public struct Options
106  {
121  public const string NO_ERROR_IF_NOT_EXISTS = "no_error_if_not_exists";
122 
123  public const string TRUE = "true";
124  public const string FALSE = "false";
125  } // end struct Options
126 
131  public string principal { get; set; } = "";
132 
137  public string _object { get; set; }
138 
197  public string object_type { get; set; }
198 
256  public string permission { get; set; }
257 
285  public IDictionary<string, string> options { get; set; } = new Dictionary<string, string>();
286 
289  public HasPermissionRequest() { }
290 
443  string _object,
444  string object_type,
445  string permission,
446  IDictionary<string, string> options = null)
447  {
448  this.principal = principal ?? "";
449  this._object = _object ?? "";
450  this.object_type = object_type ?? "";
451  this.permission = permission ?? "";
452  this.options = options ?? new Dictionary<string, string>();
453  } // end constructor
454  } // end class HasPermissionRequest
455 
459  public class HasPermissionResponse : KineticaData
460  {
465  public struct HasPermission
466  {
468  public const string TRUE = "true";
469 
471  public const string FALSE = "false";
472  } // end struct HasPermission
473 
476  public string principal { get; set; }
477 
480  public string _object { get; set; }
481 
484  public string object_type { get; set; }
485 
488  public string permission { get; set; }
489 
505  public bool has_permission { get; set; }
506 
508  public IDictionary<string, string> filters { get; set; } = new Dictionary<string, string>();
509 
511  public IDictionary<string, string> info { get; set; } = new Dictionary<string, string>();
512  } // end class HasPermissionResponse
513 } // end namespace kinetica
string object_type
The type of object being checked.
const string EXECUTE
Ability to Execute the Procedure object.
const string SYSTEM
System-level access
string principal
Name of the user for which the permission is being checked.
const string GRAPH
A Graph object
const string ADMIN
Full read/write and administrative access on the object.
bool has_permission
Indicates whether the specified user has the specified permission on the specified target.
const string TABLE_MONITOR
Table monitor
string principal
Value of principal
IDictionary< string, string > filters
Map of column/filters that have been granted.
string permission
Permission to check for.
const string NO_ERROR_IF_NOT_EXISTS
If FALSE will return an error if the provided _object does not exist or is blank.
IDictionary< string, string > options
Optional parameters.
const string WRITE
Access to write, change and delete objects.
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 DELETE
Delete rows from tables.
const string CREATE
Ability to create new objects of this type.
string _object
Name of object to check for the requested permission.
const string READ
Ability to read, list and use the object.
IDictionary< string, string > info
Additional information.
const string UPDATE
Update access to the table.
string _object
Fully-qualified value of _object
const string TABLE
Database Table
const string INSERT
Insert access to tables.
const string CONNECT
Connect access on the given data source or data sink.
const string FALSE
User does not have the queried permission
const string TRUE
User has the effective queried permission
string object_type
Value of object_type
const string USER_ADMIN
Access to administer users and roles that do not have system_admin permission.
const string SEND_ALERT
Ability to send system alerts.
const string SQL_PROC
SQL Procedure
string permission
Value of permission
HasPermissionRequest()
Constructs a HasPermissionRequest object with default parameters.
const string DIRECTORY
KiFS File Directory