7 using System.Collections.Generic;
19 public class ReserveResourceRequest : KineticaData
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";
73 public string component {
get; set; }
74 public string name {
get; set; }
104 public string action {
get; set; }
105 public long bytes_requested {
get; set; } = 0;
106 public long owner_id {
get; set; } = 0;
112 public IDictionary<string, string> options {
get; set; } =
new Dictionary<string, string>();
117 public ReserveResourceRequest() { }
159 public ReserveResourceRequest(
string component,
162 long? bytes_requested = null,
163 long? owner_id = null,
164 IDictionary<string, string> options = null)
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>();
183 public class ReserveResourceResponse : KineticaData
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>();