Kinetica C# API  Version 7.1.10.0
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Pages
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 
10 
11 namespace kinetica
12 {
13 
21  {
22 
89  public struct ObjectType
90  {
91 
93  public const string CONTEXT = "context";
94 
96  public const string CREDENTIAL = "credential";
97 
99  public const string DATASINK = "datasink";
100 
102  public const string DATASOURCE = "datasource";
103 
105  public const string DIRECTORY = "directory";
106 
108  public const string GRAPH = "graph";
109 
111  public const string PROC = "proc";
112 
114  public const string SCHEMA = "schema";
115 
117  public const string SQL_PROC = "sql_proc";
118 
120  public const string SYSTEM = "system";
121 
123  public const string TABLE = "table";
124 
126  public const string TABLE_MONITOR = "table_monitor";
127  } // end struct ObjectType
128 
129 
187  public struct Permission
188  {
189 
192  public const string ADMIN = "admin";
193 
196  public const string CONNECT = "connect";
197 
199  public const string DELETE = "delete";
200 
202  public const string EXECUTE = "execute";
203 
205  public const string INSERT = "insert";
206 
208  public const string READ = "read";
209 
211  public const string UPDATE = "update";
212 
215  public const string USER_ADMIN = "user_admin";
216 
218  public const string WRITE = "write";
219  } // end struct Permission
220 
221 
249  public struct Options
250  {
251 
269  public const string NO_ERROR_IF_NOT_EXISTS = "no_error_if_not_exists";
270  public const string TRUE = "true";
271  public const string FALSE = "false";
272  } // end struct Options
273 
274 
278  public string principal { get; set; } = "";
279 
283  public string _object { get; set; }
284 
349  public string object_type { get; set; }
350 
406  public string permission { get; set; }
407 
433  public IDictionary<string, string> options { get; set; } = new Dictionary<string, string>();
434 
435 
438  public HasPermissionRequest() { }
439 
595  string _object,
596  string object_type,
597  string permission,
598  IDictionary<string, string> options = null)
599  {
600  this.principal = principal ?? "";
601  this._object = _object ?? "";
602  this.object_type = object_type ?? "";
603  this.permission = permission ?? "";
604  this.options = options ?? new Dictionary<string, string>();
605  } // end constructor
606 
607  } // end class HasPermissionRequest
608 
609 
610 
615  {
616 
636  public struct HasPermission
637  {
638 
640  public const string TRUE = "true";
641 
643  public const string FALSE = "false";
644  } // end struct HasPermission
645 
646 
649  public string principal { get; set; }
650 
653  public string _object { get; set; }
654 
657  public string object_type { get; set; }
658 
661  public string permission { get; set; }
662 
680  public bool has_permission { get; set; }
681 
683  public IDictionary<string, string> filters { get; set; } = new Dictionary<string, string>();
684 
686  public IDictionary<string, string> info { get; set; } = new Dictionary<string, string>();
687 
688  } // end class HasPermissionResponse
689 
690 
691 
692 
693 } // end namespace kinetica
IDictionary< string, string > info
Additional information.
A set of results returned by Kinetica.hasPermission(string,string,string,string,IDictionary{string, string}).
const string EXECUTE
Ability to Execute the Procedure object.
const string TABLE
Database Table
A set of parameters for Kinetica.hasPermission(string,string,string,string,IDictionary{string, string}).
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.
const string ADMIN
Full read/write and administrative access on the object.
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.
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 Supported values: CONTEXT: Context CREDENTIAL: Credential DATASINK...
const string SQL_PROC
SQL Procedure
const string READ
Ability to read, list and use the object.
The type of object being checked Supported values: CONTEXT: Context CREDENTIAL: Credential DATASINK...
Indicates whether the specified user has the specified permission on the specified target...
const string USER_ADMIN
Access to administer users and roles that do not have system_admin permission.
string _object
Fully-qualified value of
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