Kinetica   C#   API  Version 7.2.3.0
GrantPermissionDatasource.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  public class GrantPermissionDatasourceRequest : KineticaData
18  {
23  public struct Permission
24  {
26  public const string ADMIN = "admin";
27 
29  public const string CONNECT = "connect";
30  } // end struct Permission
31 
35  public string name { get; set; }
36 
51  public string permission { get; set; }
52 
57  public string datasource_name { get; set; }
58 
62  public IDictionary<string, string> options { get; set; } = new Dictionary<string, string>();
63 
67 
93  string permission,
94  string datasource_name,
95  IDictionary<string, string> options = null)
96  {
97  this.name = name ?? "";
98  this.permission = permission ?? "";
99  this.datasource_name = datasource_name ?? "";
100  this.options = options ?? new Dictionary<string, string>();
101  } // end constructor
102  } // end class GrantPermissionDatasourceRequest
103 
107  public class GrantPermissionDatasourceResponse : KineticaData
108  {
111  public string name { get; set; }
112 
116  public string permission { get; set; }
117 
121  public string datasource_name { get; set; }
122 
124  public IDictionary<string, string> info { get; set; } = new Dictionary<string, string>();
125  } // end class GrantPermissionDatasourceResponse
126 } // end namespace kinetica
GrantPermissionDatasourceRequest(string name, string permission, string datasource_name, IDictionary< string, string > options=null)
Constructs a GrantPermissionDatasourceRequest object with the specified parameters.
string name
Name of the user or role to which the permission will be granted.
const string CONNECT
Connect access on the given data source
string datasource_name
Name of the data source on which the permission will be granted.
GrantPermissionDatasourceRequest()
Constructs a GrantPermissionDatasourceRequest object with default parameters.
const string ADMIN
Admin access on the given data source
string permission
Permission to grant to the user or role.
IDictionary< string, string > options
Optional parameters.
IDictionary< string, string > info
Additional information.