Kinetica C# API  Version 7.1.10.0
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Pages
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 
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 
260  public struct Options
261  {
262 
265  public const string COLUMNS = "columns";
266 
270  public const string FILTER_EXPRESSION = "filter_expression";
271 
287  public const string WITH_GRANT_OPTION = "with_grant_option";
288  public const string TRUE = "true";
289  public const string FALSE = "false";
290  } // end struct Options
291 
292 
296  public string principal { get; set; } = "";
297 
301  public string _object { get; set; }
302 
367  public string object_type { get; set; }
368 
424  public string permission { get; set; }
425 
462  public IDictionary<string, string> options { get; set; } = new Dictionary<string, string>();
463 
464 
468 
635  string _object,
636  string object_type,
637  string permission,
638  IDictionary<string, string> options = null)
639  {
640  this.principal = principal ?? "";
641  this._object = _object ?? "";
642  this.object_type = object_type ?? "";
643  this.permission = permission ?? "";
644  this.options = options ?? new Dictionary<string, string>();
645  } // end constructor
646 
647  } // end class GrantPermissionRequest
648 
649 
650 
655  {
656 
659  public string principal { get; set; }
660 
663  public string _object { get; set; }
664 
667  public string object_type { get; set; }
668 
671  public string permission { get; set; }
672 
674  public IDictionary<string, string> info { get; set; } = new Dictionary<string, string>();
675 
676  } // end class GrantPermissionResponse
677 
678 
679 
680 
681 } // end namespace kinetica
string permission
Permission being granted.
string _object
Name of object permission is being granted to.
const string CONNECT
Connect access on the given data source or data sink.
The type of object being granted to Supported values: CONTEXT: Context CREDENTIAL: Credential DATAS...
const string ADMIN
Full read/write and administrative access on the object.
const string UPDATE
Update access to the table.
string object_type
The type of object being granted to Supported values: CONTEXT: Context CREDENTIAL: Credential DATAS...
A set of results returned by Kinetica.grantPermission(string,string,string,string,IDictionary{string, string}).
GrantPermissionRequest(string principal, string _object, string object_type, string permission, IDictionary< string, string > options=null)
Constructs a GrantPermissionRequest object with the specified parameters.
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 DELETE
Delete rows from tables.
IDictionary< string, string > info
Additional information.
IDictionary< string, string > options
Optional parameters.
A set of parameters for Kinetica.grantPermission(string,string,string,string,IDictionary{string, string}).
const string EXECUTE
Ability to Execute the Procedure object.
const string READ
Ability to read, list and use the object.
const string FILTER_EXPRESSION
Optional filter expression to apply to this grant.
const string WITH_GRANT_OPTION
Allow the recipient to grant the same permission (or subset) to others Supported values: TRUE FALSE ...
const string INSERT
Insert access to tables.
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 SYSTEM
System-level access
KineticaData - class to help with Avro Encoding for Kinetica
Definition: KineticaData.cs:14
GrantPermissionRequest()
Constructs a GrantPermissionRequest object with default parameters.
const string DIRECTORY
KIFS File Directory