Kinetica   C#   API  Version 7.2.3.0
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 namespace kinetica
10 {
12  public class ReserveResourceRequest : KineticaData
13  {
14  public struct Action
15  {
16  public const string GET_SIZE = "get_size";
17  public const string NOTIFY_UNTIERED = "notify_untiered";
18  public const string TIER = "tier";
19  public const string EVICT = "evict";
20  public const string DELETE = "delete";
21  public const string CHANGE_OWNER = "change_owner";
22  } // end struct Action
23 
24  public string component { get; set; }
25  public string name { get; set; }
26  public string action { get; set; }
27  public long bytes_requested { get; set; } = 0;
28  public long owner_id { get; set; } = 0;
29  public IDictionary<string, string> options { get; set; } = new Dictionary<string, string>();
30 
31  public ReserveResourceRequest() { }
32 
33  public ReserveResourceRequest( string component,
34  string name,
35  string action,
36  long? bytes_requested = null,
37  long? owner_id = null,
38  IDictionary<string, string> options = null)
39  {
40  this.component = component ?? "";
41  this.name = name ?? "";
42  this.action = action ?? "";
43  this.bytes_requested = bytes_requested ?? 0;
44  this.owner_id = owner_id ?? 0;
45  this.options = options ?? new Dictionary<string, string>();
46  } // end constructor
47  } // end class ReserveResourceRequest
49 
51  public class ReserveResourceResponse : KineticaData
52  {
53  public string component { get; set; }
54  public string name { get; set; }
55  public long reservation { get; set; }
56  public IDictionary<string, string> info { get; set; } = new Dictionary<string, string>();
57  } // end class ReserveResourceResponse
59 } // end namespace kinetica