Kinetica   C#   API  Version 7.2.3.0
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 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  {
110  public const string COLUMNS = "columns";
111 
116  public const string FILTER_EXPRESSION = "filter_expression";
117 
131  public const string WITH_GRANT_OPTION = "with_grant_option";
132 
133  public const string TRUE = "true";
134  public const string FALSE = "false";
135  } // end struct Options
136 
141  public string principal { get; set; } = "";
142 
146  public string _object { get; set; }
147 
206  public string object_type { get; set; }
207 
265  public string permission { get; set; }
266 
302  public IDictionary<string, string> options { get; set; } = new Dictionary<string, string>();
303 
307 
468  string _object,
469  string object_type,
470  string permission,
471  IDictionary<string, string> options = null)
472  {
473  this.principal = principal ?? "";
474  this._object = _object ?? "";
475  this.object_type = object_type ?? "";
476  this.permission = permission ?? "";
477  this.options = options ?? new Dictionary<string, string>();
478  } // end constructor
479  } // end class GrantPermissionRequest
480 
485  {
488  public string principal { get; set; }
489 
492  public string _object { get; set; }
493 
497  public string object_type { get; set; }
498 
502  public string permission { get; set; }
503 
505  public IDictionary<string, string> info { get; set; } = new Dictionary<string, string>();
506  } // end class GrantPermissionResponse
507 } // 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.
A set of string constants for the parameter object_type.
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.
string _object
Value of _object.
A set of results returned by Kinetica.grantPermission.
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 CREATE
Ability to create new objects of this type.
string principal
Name of the user or role for which the permission is being granted.
string object_type
Value of object_type.
const string COLUMNS
Apply table security to these columns, comma-separated.
const string DELETE
Delete rows from tables.
IDictionary< string, string > info
Additional information.
string permission
Value of permission.
IDictionary< string, string > options
Optional parameters.
A set of string constants for the parameter permission.
A set of parameters for Kinetica.grantPermission.
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.
const string INSERT
Insert access to tables.
string principal
Value of principal.
A set of string constants for the parameter options.
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
const string SEND_ALERT
Ability to send system alerts.