Kinetica   C#   API  Version 7.2.3.1
GrantPermission.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 CATALOG = "catalog";
25 
27  public const string CONTEXT = "context";
28 
30  public const string CREDENTIAL = "credential";
31 
33  public const string DATASINK = "datasink";
34 
36  public const string DATASOURCE = "datasource";
37 
39  public const string DIRECTORY = "directory";
40 
42  public const string GRAPH = "graph";
43 
45  public const string PROC = "proc";
46 
48  public const string SCHEMA = "schema";
49 
51  public const string SQL_PROC = "sql_proc";
52 
54  public const string SYSTEM = "system";
55 
57  public const string TABLE = "table";
58 
60  public const string TABLE_MONITOR = "table_monitor";
61  } // end struct ObjectType
62 
66  public struct Permission
67  {
70  public const string ADMIN = "admin";
71 
74  public const string CONNECT = "connect";
75 
77  public const string CREATE = "create";
78 
80  public const string DELETE = "delete";
81 
83  public const string EXECUTE = "execute";
84 
86  public const string INSERT = "insert";
87 
89  public const string MONITOR = "monitor";
90 
92  public const string READ = "read";
93 
95  public const string SEND_ALERT = "send_alert";
96 
98  public const string UPDATE = "update";
99 
102  public const string USER_ADMIN = "user_admin";
103 
105  public const string WRITE = "write";
106  } // end struct Permission
107 
111  public struct Options
112  {
116  public const string COLUMNS = "columns";
117 
121  public const string FILTER_EXPRESSION = "filter_expression";
122 
136  public const string WITH_GRANT_OPTION = "with_grant_option";
137 
138  public const string TRUE = "true";
139  public const string FALSE = "false";
140  } // end struct Options
141 
146  public string principal { get; set; } = "";
147 
151  public string _object { get; set; }
152 
212  public string object_type { get; set; }
213 
275  public string permission { get; set; }
276 
312  public IDictionary<string, string> options { get; set; } = new Dictionary<string, string>();
313 
317 
482  string _object,
483  string object_type,
484  string permission,
485  IDictionary<string, string> options = null)
486  {
487  this.principal = principal ?? "";
488  this._object = _object ?? "";
489  this.object_type = object_type ?? "";
490  this.permission = permission ?? "";
491  this.options = options ?? new Dictionary<string, string>();
492  } // end constructor
493 } // end class GrantPermissionRequest
494 
499 {
502  public string principal { get; set; }
503 
506  public string _object { get; set; }
507 
510  public string object_type { get; set; }
511 
514  public string permission { get; set; }
515 
517  public IDictionary<string, string> info { get; set; } = new Dictionary<string, string>();
518 } // end class GrantPermissionResponse
A set of string constants for the parameter object_type.
const string CREDENTIAL
Credential
const string TABLE
Database Table
string principal
Name of the user or role for which the permission is being granted.
const string COLUMNS
Apply table security to these columns, comma-separated.
const string CREATE
Ability to create new objects of this type.
A set of string constants for the parameter options.
KineticaData - class to help with Avro Encoding for Kinetica
Definition: KineticaData.cs:14
const string EXECUTE
Ability to Execute the Procedure object.
string permission
Permission being granted.
IDictionary< string, string > info
Additional information.
const string SEND_ALERT
Ability to send system alerts.
string principal
Value of principal.
GrantPermissionRequest(string principal, string _object, string object_type, string permission, IDictionary< string, string > options=null)
Constructs a GrantPermissionRequest object with the specified parameters.
const string GRAPH
A Graph object
A set of string constants for the parameter permission.
const string DIRECTORY
KIFS File Directory
IDictionary< string, string > options
Optional parameters.
const string INSERT
Insert access to tables.
const string SQL_PROC
SQL Procedure
const string MONITOR
Monitor logs and statistics.
GrantPermissionRequest()
Constructs a GrantPermissionRequest object with default parameters.
string object_type
Value of object_type.
const string WRITE
Access to write, change and delete objects.
const string USER_ADMIN
Access to administer users and roles that do not have system_admin permission.
const string TABLE_MONITOR
Table monitor
const string CONNECT
Connect access on the given data source or data sink.
string permission
Value of permission.
const string DATASOURCE
Data Source
string object_type
The type of object being granted to.
A set of results returned by Kinetica.grantPermission.
const string FILTER_EXPRESSION
Filter expression to apply to this grant.
string _object
Value of _object.
const string READ
Ability to read, list and use the object.
const string WITH_GRANT_OPTION
Allow the recipient to grant the same permission (or subset) to others.
const string SYSTEM
System-level access
const string UPDATE
Update access to the table.
string _object
Name of object permission is being granted to.
A set of parameters for Kinetica.grantPermission.
const string DELETE
Delete rows from tables.
const string DATASINK
Data Sink
const string PROC
UDF Procedure
const string ADMIN
Full read/write and administrative access on the object.