7 using System.Collections.Generic;
16 public class GrantPermissionRequest : KineticaData
21 public struct ObjectType
24 public const string CONTEXT =
"context";
30 public const string DATASINK =
"datasink";
36 public const string DIRECTORY =
"directory";
39 public const string GRAPH =
"graph";
42 public const string PROC =
"proc";
45 public const string SCHEMA =
"schema";
48 public const string SQL_PROC =
"sql_proc";
51 public const string SYSTEM =
"system";
54 public const string TABLE =
"table";
63 public struct Permission
67 public const string ADMIN =
"admin";
71 public const string CONNECT =
"connect";
74 public const string CREATE =
"create";
77 public const string DELETE =
"delete";
80 public const string EXECUTE =
"execute";
83 public const string INSERT =
"insert";
86 public const string READ =
"read";
92 public const string UPDATE =
"update";
99 public const string WRITE =
"write";
105 public struct Options
110 public const string COLUMNS =
"columns";
133 public const string TRUE =
"true";
134 public const string FALSE =
"false";
141 public string principal {
get;
set; } =
"";
146 public string _object {
get;
set; }
302 public IDictionary<string, string>
options {
get;
set; } =
new Dictionary<string, string>();
471 IDictionary<string, string>
options =
null)
484 public class GrantPermissionResponse : KineticaData
492 public string _object {
get;
set; }
505 public IDictionary<string, string>
info {
get;
set; } =
new Dictionary<string, string>();
const string SQL_PROC
SQL Procedure
const string WRITE
Access to write, change and delete objects.
const string DATASOURCE
Data Source
const string CREATE
Ability to create new objects of this type.
const string USER_ADMIN
Access to administer users and roles that do not have system_admin permission.
IDictionary< string, string > options
Optional parameters.
const string CONTEXT
Context
const string INSERT
Insert access to tables.
string _object
Name of object permission is being granted to.
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
const string CONNECT
Connect access on the given data source or data sink.
string object_type
Value of object_type.
string principal
Name of the user or role for which the permission is being granted.
const string SYSTEM
System-level access
const string TABLE_MONITOR
Table monitor
const string PROC
UDF Procedure
string object_type
The type of object being granted to.
const string UPDATE
Update access to the table.
const string COLUMNS
Apply table security to these columns, comma-separated.
const string SCHEMA
Schema
string _object
Value of _object.
const string DIRECTORY
KIFS File Directory
const string WITH_GRANT_OPTION
Allow the recipient to grant the same permission (or subset) to others.
const string SEND_ALERT
Ability to send system alerts.
const string DATASINK
Data Sink
const string TABLE
Database Table
const string FILTER_EXPRESSION
Optional filter expression to apply to this grant.
IDictionary< string, string > info
Additional information.
const string CREDENTIAL
Credential
const string ADMIN
Full read/write and administrative access on the object.
const string READ
Ability to read, list and use the object.
const string DELETE
Delete rows from tables.
string permission
Permission being granted.
GrantPermissionRequest()
Constructs a GrantPermissionRequest object with default parameters.
const string EXECUTE
Ability to Execute the Procedure object.
string principal
Value of principal.
string permission
Value of permission.