7 using System.Collections.Generic;
12 public class ReserveResourceRequest : KineticaData
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";
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>();
31 public ReserveResourceRequest() { }
33 public ReserveResourceRequest(
string component,
36 long? bytes_requested =
null,
37 long? owner_id =
null,
38 IDictionary<string, string> options =
null)
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>();
51 public class ReserveResourceResponse : KineticaData
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>();