airavata 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- 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,34 @@
|
|
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_errors_types'
|
9
|
+
require 'security_model_types'
|
10
|
+
require 'airavata_data_models_types'
|
11
|
+
require 'credential_store_data_models_types'
|
12
|
+
require 'status_models_types'
|
13
|
+
require 'job_model_types'
|
14
|
+
require 'experiment_model_types'
|
15
|
+
require 'workspace_model_types'
|
16
|
+
require 'scheduling_model_types'
|
17
|
+
require 'application_io_models_types'
|
18
|
+
require 'application_deployment_model_types'
|
19
|
+
require 'application_interface_model_types'
|
20
|
+
require 'parser_model_types'
|
21
|
+
require 'account_provisioning_model_types'
|
22
|
+
require 'compute_resource_model_types'
|
23
|
+
require 'storage_resource_model_types'
|
24
|
+
require 'gateway_resource_profile_model_types'
|
25
|
+
require 'group_resource_profile_model_types'
|
26
|
+
require 'user_resource_profile_model_types'
|
27
|
+
require 'data_movement_models_types'
|
28
|
+
require 'gateway_groups_model_types'
|
29
|
+
require 'replica_catalog_models_types'
|
30
|
+
require 'group_manager_model_types'
|
31
|
+
require 'user_profile_model_types'
|
32
|
+
require 'base_api_types'
|
33
|
+
|
34
|
+
|
@@ -0,0 +1,79 @@
|
|
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
|
+
class ErrorModel
|
10
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
11
|
+
ERRORID = 1
|
12
|
+
CREATIONTIME = 2
|
13
|
+
ACTUALERRORMESSAGE = 3
|
14
|
+
USERFRIENDLYMESSAGE = 4
|
15
|
+
TRANSIENTORPERSISTENT = 5
|
16
|
+
ROOTCAUSEERRORIDLIST = 6
|
17
|
+
|
18
|
+
FIELDS = {
|
19
|
+
ERRORID => {:type => ::Thrift::Types::STRING, :name => 'errorId', :default => %q"DO_NOT_SET_AT_CLIENTS"},
|
20
|
+
CREATIONTIME => {:type => ::Thrift::Types::I64, :name => 'creationTime', :optional => true},
|
21
|
+
ACTUALERRORMESSAGE => {:type => ::Thrift::Types::STRING, :name => 'actualErrorMessage', :optional => true},
|
22
|
+
USERFRIENDLYMESSAGE => {:type => ::Thrift::Types::STRING, :name => 'userFriendlyMessage', :optional => true},
|
23
|
+
TRANSIENTORPERSISTENT => {:type => ::Thrift::Types::BOOL, :name => 'transientOrPersistent', :default => false, :optional => true},
|
24
|
+
ROOTCAUSEERRORIDLIST => {:type => ::Thrift::Types::LIST, :name => 'rootCauseErrorIdList', :element => {:type => ::Thrift::Types::STRING}, :optional => true}
|
25
|
+
}
|
26
|
+
|
27
|
+
def struct_fields; FIELDS; end
|
28
|
+
|
29
|
+
def validate
|
30
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field errorId is unset!') unless @errorId
|
31
|
+
end
|
32
|
+
|
33
|
+
::Thrift::Struct.generate_accessors self
|
34
|
+
end
|
35
|
+
|
36
|
+
# This data structure can be used to store the validation results
|
37
|
+
# captured during validation step and during the launchExperiment
|
38
|
+
# operation it can be easilly checked to see the errors occured
|
39
|
+
# during the experiment launch operation
|
40
|
+
#
|
41
|
+
class ValidatorResult
|
42
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
43
|
+
RESULT = 1
|
44
|
+
ERRORDETAILS = 2
|
45
|
+
|
46
|
+
FIELDS = {
|
47
|
+
RESULT => {:type => ::Thrift::Types::BOOL, :name => 'result'},
|
48
|
+
ERRORDETAILS => {:type => ::Thrift::Types::STRING, :name => 'errorDetails', :optional => true}
|
49
|
+
}
|
50
|
+
|
51
|
+
def struct_fields; FIELDS; end
|
52
|
+
|
53
|
+
def validate
|
54
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field result is unset!') if @result.nil?
|
55
|
+
end
|
56
|
+
|
57
|
+
::Thrift::Struct.generate_accessors self
|
58
|
+
end
|
59
|
+
|
60
|
+
class ValidationResults
|
61
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
62
|
+
VALIDATIONSTATE = 1
|
63
|
+
VALIDATIONRESULTLIST = 2
|
64
|
+
|
65
|
+
FIELDS = {
|
66
|
+
VALIDATIONSTATE => {:type => ::Thrift::Types::BOOL, :name => 'validationState'},
|
67
|
+
VALIDATIONRESULTLIST => {:type => ::Thrift::Types::LIST, :name => 'validationResultList', :element => {:type => ::Thrift::Types::STRUCT, :class => ::ValidatorResult}}
|
68
|
+
}
|
69
|
+
|
70
|
+
def struct_fields; FIELDS; end
|
71
|
+
|
72
|
+
def validate
|
73
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field validationState is unset!') if @validationState.nil?
|
74
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field validationResultList is unset!') unless @validationResultList
|
75
|
+
end
|
76
|
+
|
77
|
+
::Thrift::Struct.generate_accessors self
|
78
|
+
end
|
79
|
+
|
@@ -0,0 +1,28 @@
|
|
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 'workspace_model_types'
|
10
|
+
require 'airavata_errors_types'
|
11
|
+
require 'messaging_events_types'
|
12
|
+
require 'security_model_types'
|
13
|
+
require 'db_event_model_types'
|
14
|
+
require 'experiment_model_types'
|
15
|
+
require 'job_model_types'
|
16
|
+
require 'task_model_types'
|
17
|
+
require 'process_model_types'
|
18
|
+
require 'scheduling_model_types'
|
19
|
+
require 'status_models_types'
|
20
|
+
require 'data_movement_models_types'
|
21
|
+
require 'replica_catalog_models_types'
|
22
|
+
require 'user_profile_model_types'
|
23
|
+
require 'group_manager_model_types'
|
24
|
+
require 'tenant_profile_model_types'
|
25
|
+
require 'credential_store_data_models_types'
|
26
|
+
require 'gateway_groups_model_types'
|
27
|
+
|
28
|
+
|
@@ -0,0 +1,317 @@
|
|
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 'experiment_model_types'
|
9
|
+
|
10
|
+
|
11
|
+
module AiravataErrorType
|
12
|
+
UNKNOWN = 0
|
13
|
+
PERMISSION_DENIED = 1
|
14
|
+
INTERNAL_ERROR = 2
|
15
|
+
AUTHENTICATION_FAILURE = 3
|
16
|
+
INVALID_AUTHORIZATION = 4
|
17
|
+
AUTHORIZATION_EXPIRED = 5
|
18
|
+
UNKNOWN_GATEWAY_ID = 6
|
19
|
+
UNSUPPORTED_OPERATION = 7
|
20
|
+
VALUE_MAP = {0 => "UNKNOWN", 1 => "PERMISSION_DENIED", 2 => "INTERNAL_ERROR", 3 => "AUTHENTICATION_FAILURE", 4 => "INVALID_AUTHORIZATION", 5 => "AUTHORIZATION_EXPIRED", 6 => "UNKNOWN_GATEWAY_ID", 7 => "UNSUPPORTED_OPERATION"}
|
21
|
+
VALID_VALUES = Set.new([UNKNOWN, PERMISSION_DENIED, INTERNAL_ERROR, AUTHENTICATION_FAILURE, INVALID_AUTHORIZATION, AUTHORIZATION_EXPIRED, UNKNOWN_GATEWAY_ID, UNSUPPORTED_OPERATION]).freeze
|
22
|
+
end
|
23
|
+
|
24
|
+
# This exception is thrown when a client asks to perform an operation on an experiment that does not exist.
|
25
|
+
#
|
26
|
+
# identifier: A description of the experiment that was not found on the server.
|
27
|
+
#
|
28
|
+
# key: The value passed from the client in the identifier, which was not found.
|
29
|
+
class ExperimentNotFoundException < ::Thrift::Exception
|
30
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
31
|
+
def initialize(message=nil)
|
32
|
+
super()
|
33
|
+
self.message = message
|
34
|
+
end
|
35
|
+
|
36
|
+
MESSAGE = 1
|
37
|
+
|
38
|
+
FIELDS = {
|
39
|
+
MESSAGE => {:type => ::Thrift::Types::STRING, :name => 'message'}
|
40
|
+
}
|
41
|
+
|
42
|
+
def struct_fields; FIELDS; end
|
43
|
+
|
44
|
+
def validate
|
45
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field message is unset!') unless @message
|
46
|
+
end
|
47
|
+
|
48
|
+
::Thrift::Struct.generate_accessors self
|
49
|
+
end
|
50
|
+
|
51
|
+
# 1: optional string identifier,
|
52
|
+
# 2: optional string key
|
53
|
+
#
|
54
|
+
class ProjectNotFoundException < ::Thrift::Exception
|
55
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
56
|
+
def initialize(message=nil)
|
57
|
+
super()
|
58
|
+
self.message = message
|
59
|
+
end
|
60
|
+
|
61
|
+
MESSAGE = 1
|
62
|
+
|
63
|
+
FIELDS = {
|
64
|
+
MESSAGE => {:type => ::Thrift::Types::STRING, :name => 'message'}
|
65
|
+
}
|
66
|
+
|
67
|
+
def struct_fields; FIELDS; end
|
68
|
+
|
69
|
+
def validate
|
70
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field message is unset!') unless @message
|
71
|
+
end
|
72
|
+
|
73
|
+
::Thrift::Struct.generate_accessors self
|
74
|
+
end
|
75
|
+
|
76
|
+
# This exception is thrown for invalid requests that occur from any reasons like required input parameters are missing,
|
77
|
+
# or a parameter is malformed.
|
78
|
+
#
|
79
|
+
# message: contains the associated error message.
|
80
|
+
class InvalidRequestException < ::Thrift::Exception
|
81
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
82
|
+
def initialize(message=nil)
|
83
|
+
super()
|
84
|
+
self.message = message
|
85
|
+
end
|
86
|
+
|
87
|
+
MESSAGE = 1
|
88
|
+
|
89
|
+
FIELDS = {
|
90
|
+
MESSAGE => {:type => ::Thrift::Types::STRING, :name => 'message'}
|
91
|
+
}
|
92
|
+
|
93
|
+
def struct_fields; FIELDS; end
|
94
|
+
|
95
|
+
def validate
|
96
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field message is unset!') unless @message
|
97
|
+
end
|
98
|
+
|
99
|
+
::Thrift::Struct.generate_accessors self
|
100
|
+
end
|
101
|
+
|
102
|
+
# This exception is thrown when RPC timeout gets exceeded.
|
103
|
+
class TimedOutException < ::Thrift::Exception
|
104
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
105
|
+
|
106
|
+
FIELDS = {
|
107
|
+
|
108
|
+
}
|
109
|
+
|
110
|
+
def struct_fields; FIELDS; end
|
111
|
+
|
112
|
+
def validate
|
113
|
+
end
|
114
|
+
|
115
|
+
::Thrift::Struct.generate_accessors self
|
116
|
+
end
|
117
|
+
|
118
|
+
# This exception is thrown for invalid sshKeyAuthentication requests.
|
119
|
+
#
|
120
|
+
# message: contains the cause of the authorization failure.
|
121
|
+
class AuthenticationException < ::Thrift::Exception
|
122
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
123
|
+
def initialize(message=nil)
|
124
|
+
super()
|
125
|
+
self.message = message
|
126
|
+
end
|
127
|
+
|
128
|
+
MESSAGE = 1
|
129
|
+
|
130
|
+
FIELDS = {
|
131
|
+
MESSAGE => {:type => ::Thrift::Types::STRING, :name => 'message'}
|
132
|
+
}
|
133
|
+
|
134
|
+
def struct_fields; FIELDS; end
|
135
|
+
|
136
|
+
def validate
|
137
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field message is unset!') unless @message
|
138
|
+
end
|
139
|
+
|
140
|
+
::Thrift::Struct.generate_accessors self
|
141
|
+
end
|
142
|
+
|
143
|
+
# This exception is thrown for invalid authorization requests such user does not have acces to an aplication or resource.
|
144
|
+
#
|
145
|
+
# message: contains the authorization failure message
|
146
|
+
class AuthorizationException < ::Thrift::Exception
|
147
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
148
|
+
def initialize(message=nil)
|
149
|
+
super()
|
150
|
+
self.message = message
|
151
|
+
end
|
152
|
+
|
153
|
+
MESSAGE = 1
|
154
|
+
|
155
|
+
FIELDS = {
|
156
|
+
MESSAGE => {:type => ::Thrift::Types::STRING, :name => 'message'}
|
157
|
+
}
|
158
|
+
|
159
|
+
def struct_fields; FIELDS; end
|
160
|
+
|
161
|
+
def validate
|
162
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field message is unset!') unless @message
|
163
|
+
end
|
164
|
+
|
165
|
+
::Thrift::Struct.generate_accessors self
|
166
|
+
end
|
167
|
+
|
168
|
+
# This exception is thrown when you try to save a duplicate entity that already exists
|
169
|
+
# in the database.
|
170
|
+
#
|
171
|
+
# message: contains the associated error message
|
172
|
+
#
|
173
|
+
class DuplicateEntryException < ::Thrift::Exception
|
174
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
175
|
+
def initialize(message=nil)
|
176
|
+
super()
|
177
|
+
self.message = message
|
178
|
+
end
|
179
|
+
|
180
|
+
MESSAGE = 1
|
181
|
+
|
182
|
+
FIELDS = {
|
183
|
+
MESSAGE => {:type => ::Thrift::Types::STRING, :name => 'message'}
|
184
|
+
}
|
185
|
+
|
186
|
+
def struct_fields; FIELDS; end
|
187
|
+
|
188
|
+
def validate
|
189
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field message is unset!') unless @message
|
190
|
+
end
|
191
|
+
|
192
|
+
::Thrift::Struct.generate_accessors self
|
193
|
+
end
|
194
|
+
|
195
|
+
# This exception is thrown by Airavata Services when a call fails as a result of
|
196
|
+
# a problem that a client may be able to resolve. For example, if the user
|
197
|
+
# attempts to execute an application on a resource gateway does not have access to.
|
198
|
+
#
|
199
|
+
# This exception would not be used for internal system errors that do not
|
200
|
+
# reflect user actions, but rather reflect a problem within the service that
|
201
|
+
# the client cannot resolve.
|
202
|
+
#
|
203
|
+
# airavataErrorType: The message type indicating the error that occurred.
|
204
|
+
# must be one of the values of AiravataErrorType.
|
205
|
+
#
|
206
|
+
# parameter: If the error applied to a particular input parameter, this will
|
207
|
+
# indicate which parameter.
|
208
|
+
class AiravataClientException < ::Thrift::Exception
|
209
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
210
|
+
AIRAVATAERRORTYPE = 1
|
211
|
+
PARAMETER = 2
|
212
|
+
|
213
|
+
FIELDS = {
|
214
|
+
AIRAVATAERRORTYPE => {:type => ::Thrift::Types::I32, :name => 'airavataErrorType', :enum_class => ::AiravataErrorType},
|
215
|
+
PARAMETER => {:type => ::Thrift::Types::STRING, :name => 'parameter', :optional => true}
|
216
|
+
}
|
217
|
+
|
218
|
+
def struct_fields; FIELDS; end
|
219
|
+
|
220
|
+
def validate
|
221
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field airavataErrorType is unset!') unless @airavataErrorType
|
222
|
+
unless @airavataErrorType.nil? || ::AiravataErrorType::VALID_VALUES.include?(@airavataErrorType)
|
223
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field airavataErrorType!')
|
224
|
+
end
|
225
|
+
end
|
226
|
+
|
227
|
+
::Thrift::Struct.generate_accessors self
|
228
|
+
end
|
229
|
+
|
230
|
+
class ValidatorResult
|
231
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
232
|
+
RESULT = 1
|
233
|
+
ERRORDETAILS = 2
|
234
|
+
|
235
|
+
FIELDS = {
|
236
|
+
RESULT => {:type => ::Thrift::Types::BOOL, :name => 'result'},
|
237
|
+
ERRORDETAILS => {:type => ::Thrift::Types::STRING, :name => 'errorDetails', :optional => true}
|
238
|
+
}
|
239
|
+
|
240
|
+
def struct_fields; FIELDS; end
|
241
|
+
|
242
|
+
def validate
|
243
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field result is unset!') if @result.nil?
|
244
|
+
end
|
245
|
+
|
246
|
+
::Thrift::Struct.generate_accessors self
|
247
|
+
end
|
248
|
+
|
249
|
+
class ValidationResults
|
250
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
251
|
+
VALIDATIONSTATE = 1
|
252
|
+
VALIDATIONRESULTLIST = 2
|
253
|
+
|
254
|
+
FIELDS = {
|
255
|
+
VALIDATIONSTATE => {:type => ::Thrift::Types::BOOL, :name => 'validationState'},
|
256
|
+
VALIDATIONRESULTLIST => {:type => ::Thrift::Types::LIST, :name => 'validationResultList', :element => {:type => ::Thrift::Types::STRUCT, :class => ::ValidatorResult}}
|
257
|
+
}
|
258
|
+
|
259
|
+
def struct_fields; FIELDS; end
|
260
|
+
|
261
|
+
def validate
|
262
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field validationState is unset!') if @validationState.nil?
|
263
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field validationResultList is unset!') unless @validationResultList
|
264
|
+
end
|
265
|
+
|
266
|
+
::Thrift::Struct.generate_accessors self
|
267
|
+
end
|
268
|
+
|
269
|
+
class LaunchValidationException < ::Thrift::Exception
|
270
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
271
|
+
VALIDATIONRESULT = 1
|
272
|
+
ERRORMESSAGE = 2
|
273
|
+
|
274
|
+
FIELDS = {
|
275
|
+
VALIDATIONRESULT => {:type => ::Thrift::Types::STRUCT, :name => 'validationResult', :class => ::ValidationResults},
|
276
|
+
ERRORMESSAGE => {:type => ::Thrift::Types::STRING, :name => 'errorMessage', :optional => true}
|
277
|
+
}
|
278
|
+
|
279
|
+
def struct_fields; FIELDS; end
|
280
|
+
|
281
|
+
def validate
|
282
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field validationResult is unset!') unless @validationResult
|
283
|
+
end
|
284
|
+
|
285
|
+
::Thrift::Struct.generate_accessors self
|
286
|
+
end
|
287
|
+
|
288
|
+
# This exception is thrown by Airavata Services when a call fails as a result of
|
289
|
+
# a problem in the service that could not be changed through client's action.
|
290
|
+
#
|
291
|
+
# airavataErrorType: The message type indicating the error that occurred.
|
292
|
+
# must be one of the values of AiravataErrorType.
|
293
|
+
#
|
294
|
+
# message: This may contain additional information about the error
|
295
|
+
#
|
296
|
+
class AiravataSystemException < ::Thrift::Exception
|
297
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
298
|
+
AIRAVATAERRORTYPE = 1
|
299
|
+
MESSAGE = 2
|
300
|
+
|
301
|
+
FIELDS = {
|
302
|
+
AIRAVATAERRORTYPE => {:type => ::Thrift::Types::I32, :name => 'airavataErrorType', :enum_class => ::AiravataErrorType},
|
303
|
+
MESSAGE => {:type => ::Thrift::Types::STRING, :name => 'message', :optional => true}
|
304
|
+
}
|
305
|
+
|
306
|
+
def struct_fields; FIELDS; end
|
307
|
+
|
308
|
+
def validate
|
309
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field airavataErrorType is unset!') unless @airavataErrorType
|
310
|
+
unless @airavataErrorType.nil? || ::AiravataErrorType::VALID_VALUES.include?(@airavataErrorType)
|
311
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field airavataErrorType!')
|
312
|
+
end
|
313
|
+
end
|
314
|
+
|
315
|
+
::Thrift::Struct.generate_accessors self
|
316
|
+
end
|
317
|
+
|