Kinetica C# API  Version 7.1.10.0
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Pages
ReserveResource.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 {
19  public class ReserveResourceRequest : KineticaData
20  {
21 
52  public struct Action
53  {
54  public const string GET_SIZE = "get_size";
55  public const string NOTIFY_UNTIERED = "notify_untiered";
56  public const string TIER = "tier";
57  public const string EVICT = "evict";
58  public const string DELETE = "delete";
59  public const string CHANGE_OWNER = "change_owner";
60  } // end struct Action
61 
62 
69  public struct Options
70  {
71  } // end struct Options
72 
73  public string component { get; set; }
74  public string name { get; set; }
75 
104  public string action { get; set; }
105  public long bytes_requested { get; set; } = 0;
106  public long owner_id { get; set; } = 0;
107 
112  public IDictionary<string, string> options { get; set; } = new Dictionary<string, string>();
113 
114 
117  public ReserveResourceRequest() { }
118 
159  public ReserveResourceRequest( string component,
160  string name,
161  string action,
162  long? bytes_requested = null,
163  long? owner_id = null,
164  IDictionary<string, string> options = null)
165  {
166  this.component = component ?? "";
167  this.name = name ?? "";
168  this.action = action ?? "";
169  this.bytes_requested = bytes_requested ?? 0;
170  this.owner_id = owner_id ?? 0;
171  this.options = options ?? new Dictionary<string, string>();
172  } // end constructor
173 
174  } // end class ReserveResourceRequest
176 
177 
178 
183  public class ReserveResourceResponse : KineticaData
184  {
185  public string component { get; set; }
186  public string name { get; set; }
187  public long reservation { get; set; }
188  public IDictionary<string, string> info { get; set; } = new Dictionary<string, string>();
189 
190  } // end class ReserveResourceResponse
192 
193 
194 
195 
196 
197 } // end namespace kinetica