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,335 @@
|
|
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
|
+
|
11
|
+
|
12
|
+
module ApplicationState
|
13
|
+
CREATED = 0
|
14
|
+
VALIDATED = 1
|
15
|
+
SCHEDULED = 2
|
16
|
+
LAUNCHED = 3
|
17
|
+
EXECUTING = 4
|
18
|
+
CANCELING = 5
|
19
|
+
CANCELED = 6
|
20
|
+
COMPLETED = 7
|
21
|
+
FAILED = 8
|
22
|
+
VALUE_MAP = {0 => "CREATED", 1 => "VALIDATED", 2 => "SCHEDULED", 3 => "LAUNCHED", 4 => "EXECUTING", 5 => "CANCELING", 6 => "CANCELED", 7 => "COMPLETED", 8 => "FAILED"}
|
23
|
+
VALID_VALUES = Set.new([CREATED, VALIDATED, SCHEDULED, LAUNCHED, EXECUTING, CANCELING, CANCELED, COMPLETED, FAILED]).freeze
|
24
|
+
end
|
25
|
+
|
26
|
+
module ComponentType
|
27
|
+
APPLICATION = 0
|
28
|
+
HANDLER = 1
|
29
|
+
VALUE_MAP = {0 => "APPLICATION", 1 => "HANDLER"}
|
30
|
+
VALID_VALUES = Set.new([APPLICATION, HANDLER]).freeze
|
31
|
+
end
|
32
|
+
|
33
|
+
module HandlerType
|
34
|
+
FLOW_STARTER = 0
|
35
|
+
FLOW_TERMINATOR = 1
|
36
|
+
VALUE_MAP = {0 => "FLOW_STARTER", 1 => "FLOW_TERMINATOR"}
|
37
|
+
VALID_VALUES = Set.new([FLOW_STARTER, FLOW_TERMINATOR]).freeze
|
38
|
+
end
|
39
|
+
|
40
|
+
module HandlerState
|
41
|
+
CREATED = 0
|
42
|
+
VALIDATED = 1
|
43
|
+
SCHEDULED = 2
|
44
|
+
LAUNCHED = 3
|
45
|
+
EXECUTING = 4
|
46
|
+
CANCELING = 5
|
47
|
+
CANCELED = 6
|
48
|
+
COMPLETED = 7
|
49
|
+
FAILED = 8
|
50
|
+
VALUE_MAP = {0 => "CREATED", 1 => "VALIDATED", 2 => "SCHEDULED", 3 => "LAUNCHED", 4 => "EXECUTING", 5 => "CANCELING", 6 => "CANCELED", 7 => "COMPLETED", 8 => "FAILED"}
|
51
|
+
VALID_VALUES = Set.new([CREATED, VALIDATED, SCHEDULED, LAUNCHED, EXECUTING, CANCELING, CANCELED, COMPLETED, FAILED]).freeze
|
52
|
+
end
|
53
|
+
|
54
|
+
module WorkflowState
|
55
|
+
CREATED = 0
|
56
|
+
VALIDATED = 1
|
57
|
+
SCHEDULED = 2
|
58
|
+
LAUNCHED = 3
|
59
|
+
EXECUTING = 4
|
60
|
+
PAUSING = 5
|
61
|
+
PAUSED = 6
|
62
|
+
RESTARTING = 7
|
63
|
+
CANCELING = 8
|
64
|
+
CANCELED = 9
|
65
|
+
COMPLETED = 10
|
66
|
+
FAILED = 11
|
67
|
+
VALUE_MAP = {0 => "CREATED", 1 => "VALIDATED", 2 => "SCHEDULED", 3 => "LAUNCHED", 4 => "EXECUTING", 5 => "PAUSING", 6 => "PAUSED", 7 => "RESTARTING", 8 => "CANCELING", 9 => "CANCELED", 10 => "COMPLETED", 11 => "FAILED"}
|
68
|
+
VALID_VALUES = Set.new([CREATED, VALIDATED, SCHEDULED, LAUNCHED, EXECUTING, PAUSING, PAUSED, RESTARTING, CANCELING, CANCELED, COMPLETED, FAILED]).freeze
|
69
|
+
end
|
70
|
+
|
71
|
+
class ApplicationStatus
|
72
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
73
|
+
ID = 1
|
74
|
+
STATE = 2
|
75
|
+
DESCRIPTION = 3
|
76
|
+
UPDATEDAT = 4
|
77
|
+
|
78
|
+
FIELDS = {
|
79
|
+
ID => {:type => ::Thrift::Types::STRING, :name => 'id', :optional => true},
|
80
|
+
STATE => {:type => ::Thrift::Types::I32, :name => 'state', :enum_class => ::ApplicationState},
|
81
|
+
DESCRIPTION => {:type => ::Thrift::Types::STRING, :name => 'description', :optional => true},
|
82
|
+
UPDATEDAT => {:type => ::Thrift::Types::I64, :name => 'updatedAt', :optional => true}
|
83
|
+
}
|
84
|
+
|
85
|
+
def struct_fields; FIELDS; end
|
86
|
+
|
87
|
+
def validate
|
88
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field state is unset!') unless @state
|
89
|
+
unless @state.nil? || ::ApplicationState::VALID_VALUES.include?(@state)
|
90
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field state!')
|
91
|
+
end
|
92
|
+
end
|
93
|
+
|
94
|
+
::Thrift::Struct.generate_accessors self
|
95
|
+
end
|
96
|
+
|
97
|
+
class WorkflowApplication
|
98
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
99
|
+
ID = 1
|
100
|
+
PROCESSID = 2
|
101
|
+
APPLICATIONINTERFACEID = 3
|
102
|
+
COMPUTERESOURCEID = 4
|
103
|
+
QUEUENAME = 5
|
104
|
+
NODECOUNT = 6
|
105
|
+
CORECOUNT = 7
|
106
|
+
WALLTIMELIMIT = 8
|
107
|
+
PHYSICALMEMORY = 9
|
108
|
+
STATUSES = 10
|
109
|
+
ERRORS = 11
|
110
|
+
CREATEDAT = 12
|
111
|
+
UPDATEDAT = 13
|
112
|
+
|
113
|
+
FIELDS = {
|
114
|
+
ID => {:type => ::Thrift::Types::STRING, :name => 'id'},
|
115
|
+
PROCESSID => {:type => ::Thrift::Types::STRING, :name => 'processId', :optional => true},
|
116
|
+
APPLICATIONINTERFACEID => {:type => ::Thrift::Types::STRING, :name => 'applicationInterfaceId', :optional => true},
|
117
|
+
COMPUTERESOURCEID => {:type => ::Thrift::Types::STRING, :name => 'computeResourceId', :optional => true},
|
118
|
+
QUEUENAME => {:type => ::Thrift::Types::STRING, :name => 'queueName', :optional => true},
|
119
|
+
NODECOUNT => {:type => ::Thrift::Types::I32, :name => 'nodeCount', :optional => true},
|
120
|
+
CORECOUNT => {:type => ::Thrift::Types::I32, :name => 'coreCount', :optional => true},
|
121
|
+
WALLTIMELIMIT => {:type => ::Thrift::Types::I32, :name => 'wallTimeLimit', :optional => true},
|
122
|
+
PHYSICALMEMORY => {:type => ::Thrift::Types::I32, :name => 'physicalMemory', :optional => true},
|
123
|
+
STATUSES => {:type => ::Thrift::Types::LIST, :name => 'statuses', :element => {:type => ::Thrift::Types::STRUCT, :class => ::ApplicationStatus}, :optional => true},
|
124
|
+
ERRORS => {:type => ::Thrift::Types::LIST, :name => 'errors', :element => {:type => ::Thrift::Types::STRUCT, :class => ::ErrorModel}, :optional => true},
|
125
|
+
CREATEDAT => {:type => ::Thrift::Types::I64, :name => 'createdAt', :optional => true},
|
126
|
+
UPDATEDAT => {:type => ::Thrift::Types::I64, :name => 'updatedAt', :optional => true}
|
127
|
+
}
|
128
|
+
|
129
|
+
def struct_fields; FIELDS; end
|
130
|
+
|
131
|
+
def validate
|
132
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field id is unset!') unless @id
|
133
|
+
end
|
134
|
+
|
135
|
+
::Thrift::Struct.generate_accessors self
|
136
|
+
end
|
137
|
+
|
138
|
+
class DataBlock
|
139
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
140
|
+
ID = 1
|
141
|
+
VALUE = 2
|
142
|
+
TYPE = 3
|
143
|
+
CREATEDAT = 4
|
144
|
+
UPDATEDAT = 5
|
145
|
+
|
146
|
+
FIELDS = {
|
147
|
+
ID => {:type => ::Thrift::Types::STRING, :name => 'id'},
|
148
|
+
VALUE => {:type => ::Thrift::Types::STRING, :name => 'value', :optional => true},
|
149
|
+
TYPE => {:type => ::Thrift::Types::I32, :name => 'type', :optional => true, :enum_class => ::DataType},
|
150
|
+
CREATEDAT => {:type => ::Thrift::Types::I64, :name => 'createdAt', :optional => true},
|
151
|
+
UPDATEDAT => {:type => ::Thrift::Types::I64, :name => 'updatedAt', :optional => true}
|
152
|
+
}
|
153
|
+
|
154
|
+
def struct_fields; FIELDS; end
|
155
|
+
|
156
|
+
def validate
|
157
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field id is unset!') unless @id
|
158
|
+
unless @type.nil? || ::DataType::VALID_VALUES.include?(@type)
|
159
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field type!')
|
160
|
+
end
|
161
|
+
end
|
162
|
+
|
163
|
+
::Thrift::Struct.generate_accessors self
|
164
|
+
end
|
165
|
+
|
166
|
+
class WorkflowConnection
|
167
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
168
|
+
ID = 1
|
169
|
+
DATABLOCK = 2
|
170
|
+
FROMTYPE = 3
|
171
|
+
FROMID = 4
|
172
|
+
FROMOUTPUTNAME = 5
|
173
|
+
TOTYPE = 6
|
174
|
+
TOID = 7
|
175
|
+
TOINPUTNAME = 8
|
176
|
+
CREATEDAT = 9
|
177
|
+
UPDATEDAT = 10
|
178
|
+
|
179
|
+
FIELDS = {
|
180
|
+
ID => {:type => ::Thrift::Types::STRING, :name => 'id', :default => %q"DO_NOT_SET_AT_CLIENTS"},
|
181
|
+
DATABLOCK => {:type => ::Thrift::Types::STRUCT, :name => 'dataBlock', :class => ::DataBlock, :optional => true},
|
182
|
+
FROMTYPE => {:type => ::Thrift::Types::I32, :name => 'fromType', :enum_class => ::ComponentType},
|
183
|
+
FROMID => {:type => ::Thrift::Types::STRING, :name => 'fromId'},
|
184
|
+
FROMOUTPUTNAME => {:type => ::Thrift::Types::STRING, :name => 'fromOutputName'},
|
185
|
+
TOTYPE => {:type => ::Thrift::Types::I32, :name => 'toType', :enum_class => ::ComponentType},
|
186
|
+
TOID => {:type => ::Thrift::Types::STRING, :name => 'toId'},
|
187
|
+
TOINPUTNAME => {:type => ::Thrift::Types::STRING, :name => 'toInputName'},
|
188
|
+
CREATEDAT => {:type => ::Thrift::Types::I64, :name => 'createdAt', :optional => true},
|
189
|
+
UPDATEDAT => {:type => ::Thrift::Types::I64, :name => 'updatedAt', :optional => true}
|
190
|
+
}
|
191
|
+
|
192
|
+
def struct_fields; FIELDS; end
|
193
|
+
|
194
|
+
def validate
|
195
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field id is unset!') unless @id
|
196
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field fromType is unset!') unless @fromType
|
197
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field fromId is unset!') unless @fromId
|
198
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field fromOutputName is unset!') unless @fromOutputName
|
199
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field toType is unset!') unless @toType
|
200
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field toId is unset!') unless @toId
|
201
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field toInputName is unset!') unless @toInputName
|
202
|
+
unless @fromType.nil? || ::ComponentType::VALID_VALUES.include?(@fromType)
|
203
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field fromType!')
|
204
|
+
end
|
205
|
+
unless @toType.nil? || ::ComponentType::VALID_VALUES.include?(@toType)
|
206
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field toType!')
|
207
|
+
end
|
208
|
+
end
|
209
|
+
|
210
|
+
::Thrift::Struct.generate_accessors self
|
211
|
+
end
|
212
|
+
|
213
|
+
class HandlerStatus
|
214
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
215
|
+
ID = 1
|
216
|
+
STATE = 2
|
217
|
+
DESCRIPTION = 3
|
218
|
+
UPDATEDAT = 4
|
219
|
+
|
220
|
+
FIELDS = {
|
221
|
+
ID => {:type => ::Thrift::Types::STRING, :name => 'id', :optional => true},
|
222
|
+
STATE => {:type => ::Thrift::Types::I32, :name => 'state', :enum_class => ::HandlerState},
|
223
|
+
DESCRIPTION => {:type => ::Thrift::Types::STRING, :name => 'description', :optional => true},
|
224
|
+
UPDATEDAT => {:type => ::Thrift::Types::I64, :name => 'updatedAt', :optional => true}
|
225
|
+
}
|
226
|
+
|
227
|
+
def struct_fields; FIELDS; end
|
228
|
+
|
229
|
+
def validate
|
230
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field state is unset!') unless @state
|
231
|
+
unless @state.nil? || ::HandlerState::VALID_VALUES.include?(@state)
|
232
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field state!')
|
233
|
+
end
|
234
|
+
end
|
235
|
+
|
236
|
+
::Thrift::Struct.generate_accessors self
|
237
|
+
end
|
238
|
+
|
239
|
+
class WorkflowHandler
|
240
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
241
|
+
ID = 1
|
242
|
+
TYPE = 2
|
243
|
+
INPUTS = 3
|
244
|
+
OUTPUTS = 4
|
245
|
+
STATUSES = 5
|
246
|
+
ERRORS = 6
|
247
|
+
CREATEDAT = 7
|
248
|
+
UPDATEDAT = 8
|
249
|
+
|
250
|
+
FIELDS = {
|
251
|
+
ID => {:type => ::Thrift::Types::STRING, :name => 'id'},
|
252
|
+
TYPE => {:type => ::Thrift::Types::I32, :name => 'type', :enum_class => ::HandlerType},
|
253
|
+
INPUTS => {:type => ::Thrift::Types::LIST, :name => 'inputs', :element => {:type => ::Thrift::Types::STRUCT, :class => ::InputDataObjectType}, :optional => true},
|
254
|
+
OUTPUTS => {:type => ::Thrift::Types::LIST, :name => 'outputs', :element => {:type => ::Thrift::Types::STRUCT, :class => ::OutputDataObjectType}, :optional => true},
|
255
|
+
STATUSES => {:type => ::Thrift::Types::LIST, :name => 'statuses', :element => {:type => ::Thrift::Types::STRUCT, :class => ::HandlerStatus}, :optional => true},
|
256
|
+
ERRORS => {:type => ::Thrift::Types::LIST, :name => 'errors', :element => {:type => ::Thrift::Types::STRUCT, :class => ::ErrorModel}, :optional => true},
|
257
|
+
CREATEDAT => {:type => ::Thrift::Types::I64, :name => 'createdAt', :optional => true},
|
258
|
+
UPDATEDAT => {:type => ::Thrift::Types::I64, :name => 'updatedAt', :optional => true}
|
259
|
+
}
|
260
|
+
|
261
|
+
def struct_fields; FIELDS; end
|
262
|
+
|
263
|
+
def validate
|
264
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field id is unset!') unless @id
|
265
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field type is unset!') unless @type
|
266
|
+
unless @type.nil? || ::HandlerType::VALID_VALUES.include?(@type)
|
267
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field type!')
|
268
|
+
end
|
269
|
+
end
|
270
|
+
|
271
|
+
::Thrift::Struct.generate_accessors self
|
272
|
+
end
|
273
|
+
|
274
|
+
class WorkflowStatus
|
275
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
276
|
+
ID = 1
|
277
|
+
STATE = 2
|
278
|
+
DESCRIPTION = 3
|
279
|
+
UPDATEDAT = 4
|
280
|
+
|
281
|
+
FIELDS = {
|
282
|
+
ID => {:type => ::Thrift::Types::STRING, :name => 'id', :optional => true},
|
283
|
+
STATE => {:type => ::Thrift::Types::I32, :name => 'state', :enum_class => ::WorkflowState},
|
284
|
+
DESCRIPTION => {:type => ::Thrift::Types::STRING, :name => 'description', :optional => true},
|
285
|
+
UPDATEDAT => {:type => ::Thrift::Types::I64, :name => 'updatedAt', :optional => true}
|
286
|
+
}
|
287
|
+
|
288
|
+
def struct_fields; FIELDS; end
|
289
|
+
|
290
|
+
def validate
|
291
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field state is unset!') unless @state
|
292
|
+
unless @state.nil? || ::WorkflowState::VALID_VALUES.include?(@state)
|
293
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field state!')
|
294
|
+
end
|
295
|
+
end
|
296
|
+
|
297
|
+
::Thrift::Struct.generate_accessors self
|
298
|
+
end
|
299
|
+
|
300
|
+
class AiravataWorkflow
|
301
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
302
|
+
ID = 1
|
303
|
+
EXPERIMENTID = 2
|
304
|
+
DESCRIPTION = 3
|
305
|
+
APPLICATIONS = 4
|
306
|
+
HANDLERS = 5
|
307
|
+
CONNECTIONS = 6
|
308
|
+
STATUSES = 7
|
309
|
+
ERRORS = 8
|
310
|
+
CREATEDAT = 9
|
311
|
+
UPDATEDAT = 10
|
312
|
+
|
313
|
+
FIELDS = {
|
314
|
+
ID => {:type => ::Thrift::Types::STRING, :name => 'id', :default => %q"DO_NOT_SET_AT_CLIENTS"},
|
315
|
+
EXPERIMENTID => {:type => ::Thrift::Types::STRING, :name => 'experimentId'},
|
316
|
+
DESCRIPTION => {:type => ::Thrift::Types::STRING, :name => 'description', :optional => true},
|
317
|
+
APPLICATIONS => {:type => ::Thrift::Types::LIST, :name => 'applications', :element => {:type => ::Thrift::Types::STRUCT, :class => ::WorkflowApplication}, :optional => true},
|
318
|
+
HANDLERS => {:type => ::Thrift::Types::LIST, :name => 'handlers', :element => {:type => ::Thrift::Types::STRUCT, :class => ::WorkflowHandler}, :optional => true},
|
319
|
+
CONNECTIONS => {:type => ::Thrift::Types::LIST, :name => 'connections', :element => {:type => ::Thrift::Types::STRUCT, :class => ::WorkflowConnection}, :optional => true},
|
320
|
+
STATUSES => {:type => ::Thrift::Types::LIST, :name => 'statuses', :element => {:type => ::Thrift::Types::STRUCT, :class => ::WorkflowStatus}, :optional => true},
|
321
|
+
ERRORS => {:type => ::Thrift::Types::LIST, :name => 'errors', :element => {:type => ::Thrift::Types::STRUCT, :class => ::ErrorModel}, :optional => true},
|
322
|
+
CREATEDAT => {:type => ::Thrift::Types::I64, :name => 'createdAt', :optional => true},
|
323
|
+
UPDATEDAT => {:type => ::Thrift::Types::I64, :name => 'updatedAt', :optional => true}
|
324
|
+
}
|
325
|
+
|
326
|
+
def struct_fields; FIELDS; end
|
327
|
+
|
328
|
+
def validate
|
329
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field id is unset!') unless @id
|
330
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field experimentId is unset!') unless @experimentId
|
331
|
+
end
|
332
|
+
|
333
|
+
::Thrift::Struct.generate_accessors self
|
334
|
+
end
|
335
|
+
|
@@ -0,0 +1,186 @@
|
|
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 'parallelism_model_types'
|
10
|
+
|
11
|
+
|
12
|
+
# Key Value pairs to be used to set environments
|
13
|
+
#
|
14
|
+
# name:
|
15
|
+
# Name of the environment variable such as PATH, LD_LIBRARY_PATH, NETCDF_HOME.
|
16
|
+
#
|
17
|
+
# value:
|
18
|
+
# Value of the environment variable to set
|
19
|
+
#
|
20
|
+
# envPathOrder:
|
21
|
+
# The order of the setting of the env variables when there are multiple env variables
|
22
|
+
class SetEnvPaths
|
23
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
24
|
+
NAME = 1
|
25
|
+
VALUE = 2
|
26
|
+
ENVPATHORDER = 3
|
27
|
+
|
28
|
+
FIELDS = {
|
29
|
+
NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
|
30
|
+
VALUE => {:type => ::Thrift::Types::STRING, :name => 'value'},
|
31
|
+
ENVPATHORDER => {:type => ::Thrift::Types::I32, :name => 'envPathOrder', :optional => true}
|
32
|
+
}
|
33
|
+
|
34
|
+
def struct_fields; FIELDS; end
|
35
|
+
|
36
|
+
def validate
|
37
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field name is unset!') unless @name
|
38
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field value is unset!') unless @value
|
39
|
+
end
|
40
|
+
|
41
|
+
::Thrift::Struct.generate_accessors self
|
42
|
+
end
|
43
|
+
|
44
|
+
# Job commands to be used in Pre Job, Post Job and Module Load Commands
|
45
|
+
#
|
46
|
+
# command:
|
47
|
+
# The actual command in string format
|
48
|
+
#
|
49
|
+
# commandOrder:
|
50
|
+
# Order of the command in the multiple command situation
|
51
|
+
class CommandObject
|
52
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
53
|
+
COMMAND = 1
|
54
|
+
COMMANDORDER = 2
|
55
|
+
|
56
|
+
FIELDS = {
|
57
|
+
COMMAND => {:type => ::Thrift::Types::STRING, :name => 'command'},
|
58
|
+
COMMANDORDER => {:type => ::Thrift::Types::I32, :name => 'commandOrder', :optional => true}
|
59
|
+
}
|
60
|
+
|
61
|
+
def struct_fields; FIELDS; end
|
62
|
+
|
63
|
+
def validate
|
64
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field command is unset!') unless @command
|
65
|
+
end
|
66
|
+
|
67
|
+
::Thrift::Struct.generate_accessors self
|
68
|
+
end
|
69
|
+
|
70
|
+
# Application Module Information. A module has to be registered before registering a deployment.
|
71
|
+
#
|
72
|
+
# appModuleId: Airavata Internal Unique Job ID. This is set by the registry.
|
73
|
+
#
|
74
|
+
# appModuleName:
|
75
|
+
# Name of the application module.
|
76
|
+
#
|
77
|
+
# appModuleVersion:
|
78
|
+
# Version of the application.
|
79
|
+
#
|
80
|
+
# appModuleDescription:
|
81
|
+
# Descriprion of the Module
|
82
|
+
#
|
83
|
+
class ApplicationModule
|
84
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
85
|
+
APPMODULEID = 1
|
86
|
+
APPMODULENAME = 2
|
87
|
+
APPMODULEVERSION = 3
|
88
|
+
APPMODULEDESCRIPTION = 4
|
89
|
+
|
90
|
+
FIELDS = {
|
91
|
+
APPMODULEID => {:type => ::Thrift::Types::STRING, :name => 'appModuleId', :default => %q"DO_NOT_SET_AT_CLIENTS"},
|
92
|
+
APPMODULENAME => {:type => ::Thrift::Types::STRING, :name => 'appModuleName'},
|
93
|
+
APPMODULEVERSION => {:type => ::Thrift::Types::STRING, :name => 'appModuleVersion', :optional => true},
|
94
|
+
APPMODULEDESCRIPTION => {:type => ::Thrift::Types::STRING, :name => 'appModuleDescription', :optional => true}
|
95
|
+
}
|
96
|
+
|
97
|
+
def struct_fields; FIELDS; end
|
98
|
+
|
99
|
+
def validate
|
100
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field appModuleId is unset!') unless @appModuleId
|
101
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field appModuleName is unset!') unless @appModuleName
|
102
|
+
end
|
103
|
+
|
104
|
+
::Thrift::Struct.generate_accessors self
|
105
|
+
end
|
106
|
+
|
107
|
+
# Application Deployment Description
|
108
|
+
#
|
109
|
+
# appDeploymentId: Airavata Internal Unique Job ID. This is set by the registry.
|
110
|
+
#
|
111
|
+
# appModuleName:
|
112
|
+
# Application Module Name. This has to be precise describing the binary.
|
113
|
+
#
|
114
|
+
# computeHostId:
|
115
|
+
# This ID maps application deployment to a particular resource previously described within Airavata.
|
116
|
+
# Example: Stampede is first registered and refered when registering WRF.
|
117
|
+
#
|
118
|
+
# moduleLoadCmd:
|
119
|
+
# Command string to load modules. This will be placed in the job submisison
|
120
|
+
# Ex: module load amber
|
121
|
+
#
|
122
|
+
# libPrependPaths:
|
123
|
+
# prepend to a path variable the value
|
124
|
+
#
|
125
|
+
# libAppendPaths:
|
126
|
+
# append to a path variable the value
|
127
|
+
#
|
128
|
+
# setEnvironment:
|
129
|
+
# assigns to the environment variable "NAME" the value
|
130
|
+
#
|
131
|
+
class ApplicationDeploymentDescription
|
132
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
133
|
+
APPDEPLOYMENTID = 1
|
134
|
+
APPMODULEID = 2
|
135
|
+
COMPUTEHOSTID = 3
|
136
|
+
EXECUTABLEPATH = 4
|
137
|
+
PARALLELISM = 5
|
138
|
+
APPDEPLOYMENTDESCRIPTION = 6
|
139
|
+
MODULELOADCMDS = 7
|
140
|
+
LIBPREPENDPATHS = 8
|
141
|
+
LIBAPPENDPATHS = 9
|
142
|
+
SETENVIRONMENT = 10
|
143
|
+
PREJOBCOMMANDS = 11
|
144
|
+
POSTJOBCOMMANDS = 12
|
145
|
+
DEFAULTQUEUENAME = 13
|
146
|
+
DEFAULTNODECOUNT = 14
|
147
|
+
DEFAULTCPUCOUNT = 15
|
148
|
+
DEFAULTWALLTIME = 16
|
149
|
+
EDITABLEBYUSER = 17
|
150
|
+
|
151
|
+
FIELDS = {
|
152
|
+
APPDEPLOYMENTID => {:type => ::Thrift::Types::STRING, :name => 'appDeploymentId', :default => %q"DO_NOT_SET_AT_CLIENTS"},
|
153
|
+
APPMODULEID => {:type => ::Thrift::Types::STRING, :name => 'appModuleId'},
|
154
|
+
COMPUTEHOSTID => {:type => ::Thrift::Types::STRING, :name => 'computeHostId'},
|
155
|
+
EXECUTABLEPATH => {:type => ::Thrift::Types::STRING, :name => 'executablePath'},
|
156
|
+
PARALLELISM => {:type => ::Thrift::Types::I32, :name => 'parallelism', :default => 0, :enum_class => ::ApplicationParallelismType},
|
157
|
+
APPDEPLOYMENTDESCRIPTION => {:type => ::Thrift::Types::STRING, :name => 'appDeploymentDescription', :optional => true},
|
158
|
+
MODULELOADCMDS => {:type => ::Thrift::Types::LIST, :name => 'moduleLoadCmds', :element => {:type => ::Thrift::Types::STRUCT, :class => ::CommandObject}, :optional => true},
|
159
|
+
LIBPREPENDPATHS => {:type => ::Thrift::Types::LIST, :name => 'libPrependPaths', :element => {:type => ::Thrift::Types::STRUCT, :class => ::SetEnvPaths}, :optional => true},
|
160
|
+
LIBAPPENDPATHS => {:type => ::Thrift::Types::LIST, :name => 'libAppendPaths', :element => {:type => ::Thrift::Types::STRUCT, :class => ::SetEnvPaths}, :optional => true},
|
161
|
+
SETENVIRONMENT => {:type => ::Thrift::Types::LIST, :name => 'setEnvironment', :element => {:type => ::Thrift::Types::STRUCT, :class => ::SetEnvPaths}, :optional => true},
|
162
|
+
PREJOBCOMMANDS => {:type => ::Thrift::Types::LIST, :name => 'preJobCommands', :element => {:type => ::Thrift::Types::STRUCT, :class => ::CommandObject}, :optional => true},
|
163
|
+
POSTJOBCOMMANDS => {:type => ::Thrift::Types::LIST, :name => 'postJobCommands', :element => {:type => ::Thrift::Types::STRUCT, :class => ::CommandObject}, :optional => true},
|
164
|
+
DEFAULTQUEUENAME => {:type => ::Thrift::Types::STRING, :name => 'defaultQueueName', :optional => true},
|
165
|
+
DEFAULTNODECOUNT => {:type => ::Thrift::Types::I32, :name => 'defaultNodeCount', :optional => true},
|
166
|
+
DEFAULTCPUCOUNT => {:type => ::Thrift::Types::I32, :name => 'defaultCPUCount', :optional => true},
|
167
|
+
DEFAULTWALLTIME => {:type => ::Thrift::Types::I32, :name => 'defaultWalltime', :optional => true},
|
168
|
+
EDITABLEBYUSER => {:type => ::Thrift::Types::BOOL, :name => 'editableByUser', :optional => true}
|
169
|
+
}
|
170
|
+
|
171
|
+
def struct_fields; FIELDS; end
|
172
|
+
|
173
|
+
def validate
|
174
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field appDeploymentId is unset!') unless @appDeploymentId
|
175
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field appModuleId is unset!') unless @appModuleId
|
176
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field computeHostId is unset!') unless @computeHostId
|
177
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field executablePath is unset!') unless @executablePath
|
178
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field parallelism is unset!') unless @parallelism
|
179
|
+
unless @parallelism.nil? || ::ApplicationParallelismType::VALID_VALUES.include?(@parallelism)
|
180
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field parallelism!')
|
181
|
+
end
|
182
|
+
end
|
183
|
+
|
184
|
+
::Thrift::Struct.generate_accessors self
|
185
|
+
end
|
186
|
+
|