-
Notifications
You must be signed in to change notification settings - Fork 0
/
Connector.cs
98 lines (78 loc) · 2.66 KB
/
Connector.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
using System;
using Newtonsoft.Json.Linq;
namespace COM.IBM.ML.ILOG
{
public enum Runtime
{
DO_12_9,
DO_12_10,
DO_20_1,
DO_22_1
};
public enum ModelType
{
CPLEX_12_9,
CPO_12_9,
OPL_12_9,
DOCPLEX_12_9,
CPLEX_12_10,
CPO_12_10,
OPL_12_10,
DOCPLEX_12_10,
CPLEX_20_1,
CPO_20_1,
OPL_20_1,
DOCPLEX_20_1,
CPLEX_22_1,
CPO_22_1,
OPL_22_1,
DOCPLEX_22_1
};
public enum TShirtSize
{
S,
M,
L,
XL
};
public interface Connector : TokenHandler
{
String GetOrMakeDeployment(String name, bool isCplex);
public String CreateNewModel(String modelName, Runtime runtime, ModelType type, String modelAssetFilePath);
public String DeployModel(String deployName, String model_id, TShirtSize size, int nodes);
public JObject CreateDataFromString(String id, String text);
public JObject CreateDataFromFile(String id, String fileName);
public Job CreateJob(String deployment_id,
JArray input_data,
JArray input_data_references,
JArray output_data,
JArray output_data_references);
public Job CreateAndRunJob(String deployment_id,
JArray input_data,
JArray input_data_references,
JArray output_data,
JArray output_data_references);
public JObject GetDeployments();
public JObject GetModels();
public JObject GetDeploymentJobs();
public String GetDeploymentIdByName(String deployment_name);
public void DeleteModel(String id);
public void DeleteDeployment(String id);
public void DeleteJob(String id);
public int DeleteModels();
public int DeleteDeployments();
public int DeleteJobs();
public void CleanSpace();
//public void InitToken();
public JObject GetInstances();
public JObject GetStorage();
public String GetCatalogId();
public JObject GetSoftwareSpecifications();
public String CreateDeploymentSpace(String name, String cos_crn, String compute_name);
public JObject GetDeploymentSpaces();
public String GetDeploymentSpaceIdByName(String spaceName);
public JObject GetAssetFiles(String space_id);
public JObject GetStorageBySpaceId(String space_id);
public String GetCatalogIdBySpaceId(String space_id);
}
}