airavata 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +15 -0
- data/.rspec +3 -0
- data/.travis.yml +6 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +11 -0
- data/README.md +61 -0
- data/Rakefile +6 -0
- data/airavata.gemspec +26 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/account_provisioning_model_constants.rb +9 -0
- data/lib/account_provisioning_model_types.rb +69 -0
- data/lib/airavata.rb +15774 -0
- data/lib/airavata_api_constants.rb +11 -0
- data/lib/airavata_api_types.rb +34 -0
- data/lib/airavata_commons_constants.rb +11 -0
- data/lib/airavata_commons_types.rb +79 -0
- data/lib/airavata_data_models_constants.rb +9 -0
- data/lib/airavata_data_models_types.rb +28 -0
- data/lib/airavata_errors_constants.rb +9 -0
- data/lib/airavata_errors_types.rb +317 -0
- data/lib/airavata_workflow_model_constants.rb +9 -0
- data/lib/airavata_workflow_model_types.rb +335 -0
- data/lib/application_deployment_model_constants.rb +9 -0
- data/lib/application_deployment_model_types.rb +186 -0
- data/lib/application_interface_model_constants.rb +9 -0
- data/lib/application_interface_model_types.rb +54 -0
- data/lib/application_io_models_constants.rb +9 -0
- data/lib/application_io_models_types.rb +160 -0
- data/lib/base_a_p_i.rb +77 -0
- data/lib/base_api_constants.rb +9 -0
- data/lib/base_api_types.rb +8 -0
- data/lib/compute_resource_model_constants.rb +9 -0
- data/lib/compute_resource_model_types.rb +470 -0
- data/lib/credential_store_data_models_constants.rb +11 -0
- data/lib/credential_store_data_models_types.rb +172 -0
- data/lib/data_movement_models_constants.rb +9 -0
- data/lib/data_movement_models_types.rb +199 -0
- data/lib/db_event_model_constants.rb +9 -0
- data/lib/db_event_model_types.rb +155 -0
- data/lib/experiment_model_constants.rb +9 -0
- data/lib/experiment_model_types.rb +246 -0
- data/lib/gateway_groups_model_constants.rb +9 -0
- data/lib/gateway_groups_model_types.rb +34 -0
- data/lib/gateway_resource_profile_model_constants.rb +9 -0
- data/lib/gateway_resource_profile_model_types.rb +165 -0
- data/lib/group_manager_model_constants.rb +9 -0
- data/lib/group_manager_model_types.rb +58 -0
- data/lib/group_resource_profile_model_constants.rb +9 -0
- data/lib/group_resource_profile_model_types.rb +230 -0
- data/lib/job_model_constants.rb +9 -0
- data/lib/job_model_types.rb +52 -0
- data/lib/messaging_events_constants.rb +9 -0
- data/lib/messaging_events_types.rb +399 -0
- data/lib/parallelism_model_constants.rb +9 -0
- data/lib/parallelism_model_types.rb +19 -0
- data/lib/parser_model_constants.rb +9 -0
- data/lib/parser_model_types.rb +229 -0
- data/lib/process_model_constants.rb +9 -0
- data/lib/process_model_types.rb +113 -0
- data/lib/replica_catalog_models_constants.rb +9 -0
- data/lib/replica_catalog_models_types.rb +116 -0
- data/lib/scheduling_model_constants.rb +9 -0
- data/lib/scheduling_model_types.rb +49 -0
- data/lib/security_model_constants.rb +9 -0
- data/lib/security_model_types.rb +27 -0
- data/lib/status_models_constants.rb +9 -0
- data/lib/status_models_types.rb +212 -0
- data/lib/storage_resource_model_constants.rb +9 -0
- data/lib/storage_resource_model_types.rb +56 -0
- data/lib/task_model_constants.rb +9 -0
- data/lib/task_model_types.rb +197 -0
- data/lib/tenant_profile_model_constants.rb +9 -0
- data/lib/tenant_profile_model_types.rb +108 -0
- data/lib/user_profile_model_constants.rb +11 -0
- data/lib/user_profile_model_types.rb +300 -0
- data/lib/user_resource_profile_model_constants.rb +9 -0
- data/lib/user_resource_profile_model_types.rb +150 -0
- data/lib/workspace_model_constants.rb +9 -0
- data/lib/workspace_model_types.rb +230 -0
- metadata +128 -0
@@ -0,0 +1,19 @@
|
|
1
|
+
#
|
2
|
+
# Autogenerated by Thrift Compiler (0.10.0)
|
3
|
+
#
|
4
|
+
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
5
|
+
#
|
6
|
+
|
7
|
+
require 'thrift'
|
8
|
+
|
9
|
+
module ApplicationParallelismType
|
10
|
+
SERIAL = 0
|
11
|
+
MPI = 1
|
12
|
+
OPENMP = 2
|
13
|
+
OPENMP_MPI = 3
|
14
|
+
CCM = 4
|
15
|
+
CRAY_MPI = 5
|
16
|
+
VALUE_MAP = {0 => "SERIAL", 1 => "MPI", 2 => "OPENMP", 3 => "OPENMP_MPI", 4 => "CCM", 5 => "CRAY_MPI"}
|
17
|
+
VALID_VALUES = Set.new([SERIAL, MPI, OPENMP, OPENMP_MPI, CCM, CRAY_MPI]).freeze
|
18
|
+
end
|
19
|
+
|
@@ -0,0 +1,229 @@
|
|
1
|
+
#
|
2
|
+
# Autogenerated by Thrift Compiler (0.10.0)
|
3
|
+
#
|
4
|
+
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
5
|
+
#
|
6
|
+
|
7
|
+
require 'thrift'
|
8
|
+
|
9
|
+
module IOType
|
10
|
+
FILE = 0
|
11
|
+
PROPERTY = 1
|
12
|
+
VALUE_MAP = {0 => "FILE", 1 => "PROPERTY"}
|
13
|
+
VALID_VALUES = Set.new([FILE, PROPERTY]).freeze
|
14
|
+
end
|
15
|
+
|
16
|
+
class ParserInput
|
17
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
18
|
+
ID = 1
|
19
|
+
NAME = 2
|
20
|
+
REQUIREDINPUT = 3
|
21
|
+
PARSERID = 4
|
22
|
+
TYPE = 5
|
23
|
+
|
24
|
+
FIELDS = {
|
25
|
+
ID => {:type => ::Thrift::Types::STRING, :name => 'id'},
|
26
|
+
NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
|
27
|
+
REQUIREDINPUT => {:type => ::Thrift::Types::BOOL, :name => 'requiredInput'},
|
28
|
+
PARSERID => {:type => ::Thrift::Types::STRING, :name => 'parserId'},
|
29
|
+
TYPE => {:type => ::Thrift::Types::I32, :name => 'type', :enum_class => ::IOType}
|
30
|
+
}
|
31
|
+
|
32
|
+
def struct_fields; FIELDS; end
|
33
|
+
|
34
|
+
def validate
|
35
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field id is unset!') unless @id
|
36
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field name is unset!') unless @name
|
37
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field requiredInput is unset!') if @requiredInput.nil?
|
38
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field parserId is unset!') unless @parserId
|
39
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field type is unset!') unless @type
|
40
|
+
unless @type.nil? || ::IOType::VALID_VALUES.include?(@type)
|
41
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field type!')
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
::Thrift::Struct.generate_accessors self
|
46
|
+
end
|
47
|
+
|
48
|
+
class ParserOutput
|
49
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
50
|
+
ID = 1
|
51
|
+
NAME = 2
|
52
|
+
REQUIREDOUTPUT = 3
|
53
|
+
PARSERID = 4
|
54
|
+
TYPE = 5
|
55
|
+
|
56
|
+
FIELDS = {
|
57
|
+
ID => {:type => ::Thrift::Types::STRING, :name => 'id'},
|
58
|
+
NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
|
59
|
+
REQUIREDOUTPUT => {:type => ::Thrift::Types::BOOL, :name => 'requiredOutput'},
|
60
|
+
PARSERID => {:type => ::Thrift::Types::STRING, :name => 'parserId'},
|
61
|
+
TYPE => {:type => ::Thrift::Types::I32, :name => 'type', :enum_class => ::IOType}
|
62
|
+
}
|
63
|
+
|
64
|
+
def struct_fields; FIELDS; end
|
65
|
+
|
66
|
+
def validate
|
67
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field id is unset!') unless @id
|
68
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field name is unset!') unless @name
|
69
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field requiredOutput is unset!') if @requiredOutput.nil?
|
70
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field parserId is unset!') unless @parserId
|
71
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field type is unset!') unless @type
|
72
|
+
unless @type.nil? || ::IOType::VALID_VALUES.include?(@type)
|
73
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field type!')
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
77
|
+
::Thrift::Struct.generate_accessors self
|
78
|
+
end
|
79
|
+
|
80
|
+
class Parser
|
81
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
82
|
+
ID = 1
|
83
|
+
IMAGENAME = 2
|
84
|
+
OUTPUTDIRPATH = 3
|
85
|
+
INPUTDIRPATH = 4
|
86
|
+
EXECUTIONCOMMAND = 5
|
87
|
+
INPUTFILES = 6
|
88
|
+
OUTPUTFILES = 7
|
89
|
+
GATEWAYID = 8
|
90
|
+
|
91
|
+
FIELDS = {
|
92
|
+
ID => {:type => ::Thrift::Types::STRING, :name => 'id'},
|
93
|
+
IMAGENAME => {:type => ::Thrift::Types::STRING, :name => 'imageName'},
|
94
|
+
OUTPUTDIRPATH => {:type => ::Thrift::Types::STRING, :name => 'outputDirPath'},
|
95
|
+
INPUTDIRPATH => {:type => ::Thrift::Types::STRING, :name => 'inputDirPath'},
|
96
|
+
EXECUTIONCOMMAND => {:type => ::Thrift::Types::STRING, :name => 'executionCommand'},
|
97
|
+
INPUTFILES => {:type => ::Thrift::Types::LIST, :name => 'inputFiles', :element => {:type => ::Thrift::Types::STRUCT, :class => ::ParserInput}},
|
98
|
+
OUTPUTFILES => {:type => ::Thrift::Types::LIST, :name => 'outputFiles', :element => {:type => ::Thrift::Types::STRUCT, :class => ::ParserOutput}},
|
99
|
+
GATEWAYID => {:type => ::Thrift::Types::STRING, :name => 'gatewayId'}
|
100
|
+
}
|
101
|
+
|
102
|
+
def struct_fields; FIELDS; end
|
103
|
+
|
104
|
+
def validate
|
105
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field id is unset!') unless @id
|
106
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field imageName is unset!') unless @imageName
|
107
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field outputDirPath is unset!') unless @outputDirPath
|
108
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field inputDirPath is unset!') unless @inputDirPath
|
109
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field executionCommand is unset!') unless @executionCommand
|
110
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field inputFiles is unset!') unless @inputFiles
|
111
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field outputFiles is unset!') unless @outputFiles
|
112
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field gatewayId is unset!') unless @gatewayId
|
113
|
+
end
|
114
|
+
|
115
|
+
::Thrift::Struct.generate_accessors self
|
116
|
+
end
|
117
|
+
|
118
|
+
class ParserConnectorInput
|
119
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
120
|
+
ID = 1
|
121
|
+
INPUTID = 2
|
122
|
+
PARENTOUTPUTID = 3
|
123
|
+
VALUE = 4
|
124
|
+
PARSERCONNECTORID = 5
|
125
|
+
|
126
|
+
FIELDS = {
|
127
|
+
ID => {:type => ::Thrift::Types::STRING, :name => 'id'},
|
128
|
+
INPUTID => {:type => ::Thrift::Types::STRING, :name => 'inputId'},
|
129
|
+
PARENTOUTPUTID => {:type => ::Thrift::Types::STRING, :name => 'parentOutputId'},
|
130
|
+
VALUE => {:type => ::Thrift::Types::STRING, :name => 'value'},
|
131
|
+
PARSERCONNECTORID => {:type => ::Thrift::Types::STRING, :name => 'parserConnectorId'}
|
132
|
+
}
|
133
|
+
|
134
|
+
def struct_fields; FIELDS; end
|
135
|
+
|
136
|
+
def validate
|
137
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field id is unset!') unless @id
|
138
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field inputId is unset!') unless @inputId
|
139
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field parserConnectorId is unset!') unless @parserConnectorId
|
140
|
+
end
|
141
|
+
|
142
|
+
::Thrift::Struct.generate_accessors self
|
143
|
+
end
|
144
|
+
|
145
|
+
class ParserConnector
|
146
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
147
|
+
ID = 1
|
148
|
+
PARENTPARSERID = 2
|
149
|
+
CHILDPARSERID = 3
|
150
|
+
CONNECTORINPUTS = 4
|
151
|
+
PARSINGTEMPLATEID = 5
|
152
|
+
|
153
|
+
FIELDS = {
|
154
|
+
ID => {:type => ::Thrift::Types::STRING, :name => 'id'},
|
155
|
+
PARENTPARSERID => {:type => ::Thrift::Types::STRING, :name => 'parentParserId'},
|
156
|
+
CHILDPARSERID => {:type => ::Thrift::Types::STRING, :name => 'childParserId'},
|
157
|
+
CONNECTORINPUTS => {:type => ::Thrift::Types::LIST, :name => 'connectorInputs', :element => {:type => ::Thrift::Types::STRUCT, :class => ::ParserConnectorInput}},
|
158
|
+
PARSINGTEMPLATEID => {:type => ::Thrift::Types::STRING, :name => 'parsingTemplateId'}
|
159
|
+
}
|
160
|
+
|
161
|
+
def struct_fields; FIELDS; end
|
162
|
+
|
163
|
+
def validate
|
164
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field id is unset!') unless @id
|
165
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field parentParserId is unset!') unless @parentParserId
|
166
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field childParserId is unset!') unless @childParserId
|
167
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field connectorInputs is unset!') unless @connectorInputs
|
168
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field parsingTemplateId is unset!') unless @parsingTemplateId
|
169
|
+
end
|
170
|
+
|
171
|
+
::Thrift::Struct.generate_accessors self
|
172
|
+
end
|
173
|
+
|
174
|
+
class ParsingTemplateInput
|
175
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
176
|
+
ID = 1
|
177
|
+
TARGETINPUTID = 2
|
178
|
+
APPLICATIONOUTPUTNAME = 3
|
179
|
+
VALUE = 4
|
180
|
+
PARSINGTEMPLATEID = 5
|
181
|
+
|
182
|
+
FIELDS = {
|
183
|
+
ID => {:type => ::Thrift::Types::STRING, :name => 'id'},
|
184
|
+
TARGETINPUTID => {:type => ::Thrift::Types::STRING, :name => 'targetInputId'},
|
185
|
+
APPLICATIONOUTPUTNAME => {:type => ::Thrift::Types::STRING, :name => 'applicationOutputName'},
|
186
|
+
VALUE => {:type => ::Thrift::Types::STRING, :name => 'value'},
|
187
|
+
PARSINGTEMPLATEID => {:type => ::Thrift::Types::STRING, :name => 'parsingTemplateId'}
|
188
|
+
}
|
189
|
+
|
190
|
+
def struct_fields; FIELDS; end
|
191
|
+
|
192
|
+
def validate
|
193
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field id is unset!') unless @id
|
194
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field targetInputId is unset!') unless @targetInputId
|
195
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field parsingTemplateId is unset!') unless @parsingTemplateId
|
196
|
+
end
|
197
|
+
|
198
|
+
::Thrift::Struct.generate_accessors self
|
199
|
+
end
|
200
|
+
|
201
|
+
class ParsingTemplate
|
202
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
203
|
+
ID = 1
|
204
|
+
APPLICATIONINTERFACE = 2
|
205
|
+
INITIALINPUTS = 3
|
206
|
+
PARSERCONNECTIONS = 4
|
207
|
+
GATEWAYID = 5
|
208
|
+
|
209
|
+
FIELDS = {
|
210
|
+
ID => {:type => ::Thrift::Types::STRING, :name => 'id'},
|
211
|
+
APPLICATIONINTERFACE => {:type => ::Thrift::Types::STRING, :name => 'applicationInterface'},
|
212
|
+
INITIALINPUTS => {:type => ::Thrift::Types::LIST, :name => 'initialInputs', :element => {:type => ::Thrift::Types::STRUCT, :class => ::ParsingTemplateInput}},
|
213
|
+
PARSERCONNECTIONS => {:type => ::Thrift::Types::LIST, :name => 'parserConnections', :element => {:type => ::Thrift::Types::STRUCT, :class => ::ParserConnector}},
|
214
|
+
GATEWAYID => {:type => ::Thrift::Types::STRING, :name => 'gatewayId'}
|
215
|
+
}
|
216
|
+
|
217
|
+
def struct_fields; FIELDS; end
|
218
|
+
|
219
|
+
def validate
|
220
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field id is unset!') unless @id
|
221
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field applicationInterface is unset!') unless @applicationInterface
|
222
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field initialInputs is unset!') unless @initialInputs
|
223
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field parserConnections is unset!') unless @parserConnections
|
224
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field gatewayId is unset!') unless @gatewayId
|
225
|
+
end
|
226
|
+
|
227
|
+
::Thrift::Struct.generate_accessors self
|
228
|
+
end
|
229
|
+
|
@@ -0,0 +1,113 @@
|
|
1
|
+
#
|
2
|
+
# Autogenerated by Thrift Compiler (0.10.0)
|
3
|
+
#
|
4
|
+
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
5
|
+
#
|
6
|
+
|
7
|
+
require 'thrift'
|
8
|
+
require 'airavata_commons_types'
|
9
|
+
require 'application_io_models_types'
|
10
|
+
require 'status_models_types'
|
11
|
+
require 'task_model_types'
|
12
|
+
require 'scheduling_model_types'
|
13
|
+
|
14
|
+
|
15
|
+
class ProcessWorkflow
|
16
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
17
|
+
PROCESSID = 1
|
18
|
+
WORKFLOWID = 2
|
19
|
+
CREATIONTIME = 3
|
20
|
+
TYPE = 4
|
21
|
+
|
22
|
+
FIELDS = {
|
23
|
+
PROCESSID => {:type => ::Thrift::Types::STRING, :name => 'processId'},
|
24
|
+
WORKFLOWID => {:type => ::Thrift::Types::STRING, :name => 'workflowId'},
|
25
|
+
CREATIONTIME => {:type => ::Thrift::Types::I64, :name => 'creationTime', :optional => true},
|
26
|
+
TYPE => {:type => ::Thrift::Types::STRING, :name => 'type', :optional => true}
|
27
|
+
}
|
28
|
+
|
29
|
+
def struct_fields; FIELDS; end
|
30
|
+
|
31
|
+
def validate
|
32
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field processId is unset!') unless @processId
|
33
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field workflowId is unset!') unless @workflowId
|
34
|
+
end
|
35
|
+
|
36
|
+
::Thrift::Struct.generate_accessors self
|
37
|
+
end
|
38
|
+
|
39
|
+
# ProcessModel: A structure holding the process details. The infromation is derived based on user provided
|
40
|
+
# configuration data or system inferred information from scheduling and QoS parameters.
|
41
|
+
#
|
42
|
+
# processDetail:
|
43
|
+
# A friendly description of the process, usally used to communicate information to users.
|
44
|
+
#
|
45
|
+
#
|
46
|
+
class ProcessModel
|
47
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
48
|
+
PROCESSID = 1
|
49
|
+
EXPERIMENTID = 2
|
50
|
+
CREATIONTIME = 3
|
51
|
+
LASTUPDATETIME = 4
|
52
|
+
PROCESSSTATUSES = 5
|
53
|
+
PROCESSDETAIL = 6
|
54
|
+
APPLICATIONINTERFACEID = 7
|
55
|
+
APPLICATIONDEPLOYMENTID = 8
|
56
|
+
COMPUTERESOURCEID = 9
|
57
|
+
PROCESSINPUTS = 10
|
58
|
+
PROCESSOUTPUTS = 11
|
59
|
+
PROCESSRESOURCESCHEDULE = 12
|
60
|
+
TASKS = 13
|
61
|
+
TASKDAG = 14
|
62
|
+
PROCESSERRORS = 15
|
63
|
+
GATEWAYEXECUTIONID = 16
|
64
|
+
ENABLEEMAILNOTIFICATION = 17
|
65
|
+
EMAILADDRESSES = 18
|
66
|
+
STORAGERESOURCEID = 19
|
67
|
+
USERDN = 20
|
68
|
+
GENERATECERT = 21
|
69
|
+
EXPERIMENTDATADIR = 22
|
70
|
+
USERNAME = 23
|
71
|
+
USEUSERCRPREF = 24
|
72
|
+
GROUPRESOURCEPROFILEID = 25
|
73
|
+
PROCESSWORKFLOWS = 26
|
74
|
+
|
75
|
+
FIELDS = {
|
76
|
+
PROCESSID => {:type => ::Thrift::Types::STRING, :name => 'processId', :default => %q"DO_NOT_SET_AT_CLIENTS"},
|
77
|
+
EXPERIMENTID => {:type => ::Thrift::Types::STRING, :name => 'experimentId'},
|
78
|
+
CREATIONTIME => {:type => ::Thrift::Types::I64, :name => 'creationTime', :optional => true},
|
79
|
+
LASTUPDATETIME => {:type => ::Thrift::Types::I64, :name => 'lastUpdateTime', :optional => true},
|
80
|
+
PROCESSSTATUSES => {:type => ::Thrift::Types::LIST, :name => 'processStatuses', :element => {:type => ::Thrift::Types::STRUCT, :class => ::ProcessStatus}, :optional => true},
|
81
|
+
PROCESSDETAIL => {:type => ::Thrift::Types::STRING, :name => 'processDetail', :optional => true},
|
82
|
+
APPLICATIONINTERFACEID => {:type => ::Thrift::Types::STRING, :name => 'applicationInterfaceId', :optional => true},
|
83
|
+
APPLICATIONDEPLOYMENTID => {:type => ::Thrift::Types::STRING, :name => 'applicationDeploymentId', :optional => true},
|
84
|
+
COMPUTERESOURCEID => {:type => ::Thrift::Types::STRING, :name => 'computeResourceId', :optional => true},
|
85
|
+
PROCESSINPUTS => {:type => ::Thrift::Types::LIST, :name => 'processInputs', :element => {:type => ::Thrift::Types::STRUCT, :class => ::InputDataObjectType}, :optional => true},
|
86
|
+
PROCESSOUTPUTS => {:type => ::Thrift::Types::LIST, :name => 'processOutputs', :element => {:type => ::Thrift::Types::STRUCT, :class => ::OutputDataObjectType}, :optional => true},
|
87
|
+
PROCESSRESOURCESCHEDULE => {:type => ::Thrift::Types::STRUCT, :name => 'processResourceSchedule', :class => ::ComputationalResourceSchedulingModel, :optional => true},
|
88
|
+
TASKS => {:type => ::Thrift::Types::LIST, :name => 'tasks', :element => {:type => ::Thrift::Types::STRUCT, :class => ::TaskModel}, :optional => true},
|
89
|
+
TASKDAG => {:type => ::Thrift::Types::STRING, :name => 'taskDag', :optional => true},
|
90
|
+
PROCESSERRORS => {:type => ::Thrift::Types::LIST, :name => 'processErrors', :element => {:type => ::Thrift::Types::STRUCT, :class => ::ErrorModel}, :optional => true},
|
91
|
+
GATEWAYEXECUTIONID => {:type => ::Thrift::Types::STRING, :name => 'gatewayExecutionId', :optional => true},
|
92
|
+
ENABLEEMAILNOTIFICATION => {:type => ::Thrift::Types::BOOL, :name => 'enableEmailNotification', :optional => true},
|
93
|
+
EMAILADDRESSES => {:type => ::Thrift::Types::LIST, :name => 'emailAddresses', :element => {:type => ::Thrift::Types::STRING}, :optional => true},
|
94
|
+
STORAGERESOURCEID => {:type => ::Thrift::Types::STRING, :name => 'storageResourceId', :optional => true},
|
95
|
+
USERDN => {:type => ::Thrift::Types::STRING, :name => 'userDn', :optional => true},
|
96
|
+
GENERATECERT => {:type => ::Thrift::Types::BOOL, :name => 'generateCert', :default => false, :optional => true},
|
97
|
+
EXPERIMENTDATADIR => {:type => ::Thrift::Types::STRING, :name => 'experimentDataDir', :optional => true},
|
98
|
+
USERNAME => {:type => ::Thrift::Types::STRING, :name => 'userName', :optional => true},
|
99
|
+
USEUSERCRPREF => {:type => ::Thrift::Types::BOOL, :name => 'useUserCRPref', :optional => true},
|
100
|
+
GROUPRESOURCEPROFILEID => {:type => ::Thrift::Types::STRING, :name => 'groupResourceProfileId', :optional => true},
|
101
|
+
PROCESSWORKFLOWS => {:type => ::Thrift::Types::LIST, :name => 'processWorkflows', :element => {:type => ::Thrift::Types::STRUCT, :class => ::ProcessWorkflow}, :optional => true}
|
102
|
+
}
|
103
|
+
|
104
|
+
def struct_fields; FIELDS; end
|
105
|
+
|
106
|
+
def validate
|
107
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field processId is unset!') unless @processId
|
108
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field experimentId is unset!') unless @experimentId
|
109
|
+
end
|
110
|
+
|
111
|
+
::Thrift::Struct.generate_accessors self
|
112
|
+
end
|
113
|
+
|
@@ -0,0 +1,116 @@
|
|
1
|
+
#
|
2
|
+
# Autogenerated by Thrift Compiler (0.10.0)
|
3
|
+
#
|
4
|
+
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
5
|
+
#
|
6
|
+
|
7
|
+
require 'thrift'
|
8
|
+
|
9
|
+
module ReplicaLocationCategory
|
10
|
+
GATEWAY_DATA_STORE = 0
|
11
|
+
COMPUTE_RESOURCE = 1
|
12
|
+
LONG_TERM_STORAGE_RESOURCE = 2
|
13
|
+
OTHER = 3
|
14
|
+
VALUE_MAP = {0 => "GATEWAY_DATA_STORE", 1 => "COMPUTE_RESOURCE", 2 => "LONG_TERM_STORAGE_RESOURCE", 3 => "OTHER"}
|
15
|
+
VALID_VALUES = Set.new([GATEWAY_DATA_STORE, COMPUTE_RESOURCE, LONG_TERM_STORAGE_RESOURCE, OTHER]).freeze
|
16
|
+
end
|
17
|
+
|
18
|
+
module ReplicaPersistentType
|
19
|
+
TRANSIENT = 0
|
20
|
+
PERSISTENT = 1
|
21
|
+
VALUE_MAP = {0 => "TRANSIENT", 1 => "PERSISTENT"}
|
22
|
+
VALID_VALUES = Set.new([TRANSIENT, PERSISTENT]).freeze
|
23
|
+
end
|
24
|
+
|
25
|
+
module DataProductType
|
26
|
+
FILE = 0
|
27
|
+
COLLECTION = 1
|
28
|
+
VALUE_MAP = {0 => "FILE", 1 => "COLLECTION"}
|
29
|
+
VALID_VALUES = Set.new([FILE, COLLECTION]).freeze
|
30
|
+
end
|
31
|
+
|
32
|
+
class DataReplicaLocationModel
|
33
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
34
|
+
REPLICAID = 1
|
35
|
+
PRODUCTURI = 2
|
36
|
+
REPLICANAME = 3
|
37
|
+
REPLICADESCRIPTION = 4
|
38
|
+
CREATIONTIME = 5
|
39
|
+
LASTMODIFIEDTIME = 6
|
40
|
+
VALIDUNTILTIME = 7
|
41
|
+
REPLICALOCATIONCATEGORY = 8
|
42
|
+
REPLICAPERSISTENTTYPE = 9
|
43
|
+
STORAGERESOURCEID = 10
|
44
|
+
FILEPATH = 11
|
45
|
+
REPLICAMETADATA = 12
|
46
|
+
|
47
|
+
FIELDS = {
|
48
|
+
REPLICAID => {:type => ::Thrift::Types::STRING, :name => 'replicaId', :optional => true},
|
49
|
+
PRODUCTURI => {:type => ::Thrift::Types::STRING, :name => 'productUri', :optional => true},
|
50
|
+
REPLICANAME => {:type => ::Thrift::Types::STRING, :name => 'replicaName', :optional => true},
|
51
|
+
REPLICADESCRIPTION => {:type => ::Thrift::Types::STRING, :name => 'replicaDescription', :optional => true},
|
52
|
+
CREATIONTIME => {:type => ::Thrift::Types::I64, :name => 'creationTime', :optional => true},
|
53
|
+
LASTMODIFIEDTIME => {:type => ::Thrift::Types::I64, :name => 'lastModifiedTime', :optional => true},
|
54
|
+
VALIDUNTILTIME => {:type => ::Thrift::Types::I64, :name => 'validUntilTime', :optional => true},
|
55
|
+
REPLICALOCATIONCATEGORY => {:type => ::Thrift::Types::I32, :name => 'replicaLocationCategory', :optional => true, :enum_class => ::ReplicaLocationCategory},
|
56
|
+
REPLICAPERSISTENTTYPE => {:type => ::Thrift::Types::I32, :name => 'replicaPersistentType', :optional => true, :enum_class => ::ReplicaPersistentType},
|
57
|
+
STORAGERESOURCEID => {:type => ::Thrift::Types::STRING, :name => 'storageResourceId', :optional => true},
|
58
|
+
FILEPATH => {:type => ::Thrift::Types::STRING, :name => 'filePath', :optional => true},
|
59
|
+
REPLICAMETADATA => {:type => ::Thrift::Types::MAP, :name => 'replicaMetadata', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}, :optional => true}
|
60
|
+
}
|
61
|
+
|
62
|
+
def struct_fields; FIELDS; end
|
63
|
+
|
64
|
+
def validate
|
65
|
+
unless @replicaLocationCategory.nil? || ::ReplicaLocationCategory::VALID_VALUES.include?(@replicaLocationCategory)
|
66
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field replicaLocationCategory!')
|
67
|
+
end
|
68
|
+
unless @replicaPersistentType.nil? || ::ReplicaPersistentType::VALID_VALUES.include?(@replicaPersistentType)
|
69
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field replicaPersistentType!')
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
73
|
+
::Thrift::Struct.generate_accessors self
|
74
|
+
end
|
75
|
+
|
76
|
+
class DataProductModel
|
77
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
78
|
+
PRODUCTURI = 1
|
79
|
+
GATEWAYID = 2
|
80
|
+
PARENTPRODUCTURI = 3
|
81
|
+
PRODUCTNAME = 4
|
82
|
+
PRODUCTDESCRIPTION = 5
|
83
|
+
OWNERNAME = 6
|
84
|
+
DATAPRODUCTTYPE = 7
|
85
|
+
PRODUCTSIZE = 8
|
86
|
+
CREATIONTIME = 9
|
87
|
+
LASTMODIFIEDTIME = 10
|
88
|
+
PRODUCTMETADATA = 11
|
89
|
+
REPLICALOCATIONS = 12
|
90
|
+
|
91
|
+
FIELDS = {
|
92
|
+
PRODUCTURI => {:type => ::Thrift::Types::STRING, :name => 'productUri', :optional => true},
|
93
|
+
GATEWAYID => {:type => ::Thrift::Types::STRING, :name => 'gatewayId', :optional => true},
|
94
|
+
PARENTPRODUCTURI => {:type => ::Thrift::Types::STRING, :name => 'parentProductUri', :optional => true},
|
95
|
+
PRODUCTNAME => {:type => ::Thrift::Types::STRING, :name => 'productName', :optional => true},
|
96
|
+
PRODUCTDESCRIPTION => {:type => ::Thrift::Types::STRING, :name => 'productDescription', :optional => true},
|
97
|
+
OWNERNAME => {:type => ::Thrift::Types::STRING, :name => 'ownerName', :optional => true},
|
98
|
+
DATAPRODUCTTYPE => {:type => ::Thrift::Types::I32, :name => 'dataProductType', :optional => true, :enum_class => ::DataProductType},
|
99
|
+
PRODUCTSIZE => {:type => ::Thrift::Types::I32, :name => 'productSize', :optional => true},
|
100
|
+
CREATIONTIME => {:type => ::Thrift::Types::I64, :name => 'creationTime', :optional => true},
|
101
|
+
LASTMODIFIEDTIME => {:type => ::Thrift::Types::I64, :name => 'lastModifiedTime', :optional => true},
|
102
|
+
PRODUCTMETADATA => {:type => ::Thrift::Types::MAP, :name => 'productMetadata', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}, :optional => true},
|
103
|
+
REPLICALOCATIONS => {:type => ::Thrift::Types::LIST, :name => 'replicaLocations', :element => {:type => ::Thrift::Types::STRUCT, :class => ::DataReplicaLocationModel}, :optional => true}
|
104
|
+
}
|
105
|
+
|
106
|
+
def struct_fields; FIELDS; end
|
107
|
+
|
108
|
+
def validate
|
109
|
+
unless @dataProductType.nil? || ::DataProductType::VALID_VALUES.include?(@dataProductType)
|
110
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field dataProductType!')
|
111
|
+
end
|
112
|
+
end
|
113
|
+
|
114
|
+
::Thrift::Struct.generate_accessors self
|
115
|
+
end
|
116
|
+
|