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.
Files changed (82) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +15 -0
  3. data/.rspec +3 -0
  4. data/.travis.yml +6 -0
  5. data/CODE_OF_CONDUCT.md +74 -0
  6. data/Gemfile +11 -0
  7. data/README.md +61 -0
  8. data/Rakefile +6 -0
  9. data/airavata.gemspec +26 -0
  10. data/bin/console +14 -0
  11. data/bin/setup +8 -0
  12. data/lib/account_provisioning_model_constants.rb +9 -0
  13. data/lib/account_provisioning_model_types.rb +69 -0
  14. data/lib/airavata.rb +15774 -0
  15. data/lib/airavata_api_constants.rb +11 -0
  16. data/lib/airavata_api_types.rb +34 -0
  17. data/lib/airavata_commons_constants.rb +11 -0
  18. data/lib/airavata_commons_types.rb +79 -0
  19. data/lib/airavata_data_models_constants.rb +9 -0
  20. data/lib/airavata_data_models_types.rb +28 -0
  21. data/lib/airavata_errors_constants.rb +9 -0
  22. data/lib/airavata_errors_types.rb +317 -0
  23. data/lib/airavata_workflow_model_constants.rb +9 -0
  24. data/lib/airavata_workflow_model_types.rb +335 -0
  25. data/lib/application_deployment_model_constants.rb +9 -0
  26. data/lib/application_deployment_model_types.rb +186 -0
  27. data/lib/application_interface_model_constants.rb +9 -0
  28. data/lib/application_interface_model_types.rb +54 -0
  29. data/lib/application_io_models_constants.rb +9 -0
  30. data/lib/application_io_models_types.rb +160 -0
  31. data/lib/base_a_p_i.rb +77 -0
  32. data/lib/base_api_constants.rb +9 -0
  33. data/lib/base_api_types.rb +8 -0
  34. data/lib/compute_resource_model_constants.rb +9 -0
  35. data/lib/compute_resource_model_types.rb +470 -0
  36. data/lib/credential_store_data_models_constants.rb +11 -0
  37. data/lib/credential_store_data_models_types.rb +172 -0
  38. data/lib/data_movement_models_constants.rb +9 -0
  39. data/lib/data_movement_models_types.rb +199 -0
  40. data/lib/db_event_model_constants.rb +9 -0
  41. data/lib/db_event_model_types.rb +155 -0
  42. data/lib/experiment_model_constants.rb +9 -0
  43. data/lib/experiment_model_types.rb +246 -0
  44. data/lib/gateway_groups_model_constants.rb +9 -0
  45. data/lib/gateway_groups_model_types.rb +34 -0
  46. data/lib/gateway_resource_profile_model_constants.rb +9 -0
  47. data/lib/gateway_resource_profile_model_types.rb +165 -0
  48. data/lib/group_manager_model_constants.rb +9 -0
  49. data/lib/group_manager_model_types.rb +58 -0
  50. data/lib/group_resource_profile_model_constants.rb +9 -0
  51. data/lib/group_resource_profile_model_types.rb +230 -0
  52. data/lib/job_model_constants.rb +9 -0
  53. data/lib/job_model_types.rb +52 -0
  54. data/lib/messaging_events_constants.rb +9 -0
  55. data/lib/messaging_events_types.rb +399 -0
  56. data/lib/parallelism_model_constants.rb +9 -0
  57. data/lib/parallelism_model_types.rb +19 -0
  58. data/lib/parser_model_constants.rb +9 -0
  59. data/lib/parser_model_types.rb +229 -0
  60. data/lib/process_model_constants.rb +9 -0
  61. data/lib/process_model_types.rb +113 -0
  62. data/lib/replica_catalog_models_constants.rb +9 -0
  63. data/lib/replica_catalog_models_types.rb +116 -0
  64. data/lib/scheduling_model_constants.rb +9 -0
  65. data/lib/scheduling_model_types.rb +49 -0
  66. data/lib/security_model_constants.rb +9 -0
  67. data/lib/security_model_types.rb +27 -0
  68. data/lib/status_models_constants.rb +9 -0
  69. data/lib/status_models_types.rb +212 -0
  70. data/lib/storage_resource_model_constants.rb +9 -0
  71. data/lib/storage_resource_model_types.rb +56 -0
  72. data/lib/task_model_constants.rb +9 -0
  73. data/lib/task_model_types.rb +197 -0
  74. data/lib/tenant_profile_model_constants.rb +9 -0
  75. data/lib/tenant_profile_model_types.rb +108 -0
  76. data/lib/user_profile_model_constants.rb +11 -0
  77. data/lib/user_profile_model_types.rb +300 -0
  78. data/lib/user_resource_profile_model_constants.rb +9 -0
  79. data/lib/user_resource_profile_model_types.rb +150 -0
  80. data/lib/workspace_model_constants.rb +9 -0
  81. data/lib/workspace_model_types.rb +230 -0
  82. metadata +128 -0
@@ -0,0 +1,9 @@
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 'group_manager_model_types'
9
+
@@ -0,0 +1,58 @@
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
+
10
+
11
+ module ResourceType
12
+ PROJECT = 0
13
+ EXPERIMENT = 1
14
+ DATA = 2
15
+ APPLICATION_DEPLOYMENT = 3
16
+ GROUP_RESOURCE_PROFILE = 4
17
+ CREDENTIAL_TOKEN = 5
18
+ OTHER = 6
19
+ VALUE_MAP = {0 => "PROJECT", 1 => "EXPERIMENT", 2 => "DATA", 3 => "APPLICATION_DEPLOYMENT", 4 => "GROUP_RESOURCE_PROFILE", 5 => "CREDENTIAL_TOKEN", 6 => "OTHER"}
20
+ VALID_VALUES = Set.new([PROJECT, EXPERIMENT, DATA, APPLICATION_DEPLOYMENT, GROUP_RESOURCE_PROFILE, CREDENTIAL_TOKEN, OTHER]).freeze
21
+ end
22
+
23
+ module ResourcePermissionType
24
+ WRITE = 0
25
+ READ = 1
26
+ OWNER = 2
27
+ MANAGE_SHARING = 3
28
+ VALUE_MAP = {0 => "WRITE", 1 => "READ", 2 => "OWNER", 3 => "MANAGE_SHARING"}
29
+ VALID_VALUES = Set.new([WRITE, READ, OWNER, MANAGE_SHARING]).freeze
30
+ end
31
+
32
+ class GroupModel
33
+ include ::Thrift::Struct, ::Thrift::Struct_Union
34
+ ID = 1
35
+ NAME = 2
36
+ OWNERID = 3
37
+ DESCRIPTION = 4
38
+ MEMBERS = 5
39
+ ADMINS = 6
40
+
41
+ FIELDS = {
42
+ ID => {:type => ::Thrift::Types::STRING, :name => 'id', :optional => true},
43
+ NAME => {:type => ::Thrift::Types::STRING, :name => 'name', :optional => true},
44
+ OWNERID => {:type => ::Thrift::Types::STRING, :name => 'ownerId', :optional => true},
45
+ DESCRIPTION => {:type => ::Thrift::Types::STRING, :name => 'description', :optional => true},
46
+ MEMBERS => {:type => ::Thrift::Types::LIST, :name => 'members', :element => {:type => ::Thrift::Types::STRING}, :optional => true},
47
+ # Note: each admin must also be a member of the group.
48
+ ADMINS => {:type => ::Thrift::Types::LIST, :name => 'admins', :element => {:type => ::Thrift::Types::STRING}, :optional => true}
49
+ }
50
+
51
+ def struct_fields; FIELDS; end
52
+
53
+ def validate
54
+ end
55
+
56
+ ::Thrift::Struct.generate_accessors self
57
+ end
58
+
@@ -0,0 +1,9 @@
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 'group_resource_profile_model_types'
9
+
@@ -0,0 +1,230 @@
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 'compute_resource_model_types'
10
+ require 'data_movement_models_types'
11
+
12
+
13
+ class GroupAccountSSHProvisionerConfig
14
+ include ::Thrift::Struct, ::Thrift::Struct_Union
15
+ RESOURCEID = 1
16
+ GROUPRESOURCEPROFILEID = 2
17
+ CONFIGNAME = 3
18
+ CONFIGVALUE = 4
19
+
20
+ FIELDS = {
21
+ RESOURCEID => {:type => ::Thrift::Types::STRING, :name => 'resourceId'},
22
+ GROUPRESOURCEPROFILEID => {:type => ::Thrift::Types::STRING, :name => 'groupResourceProfileId', :default => %q"DO_NOT_SET_AT_CLIENTS"},
23
+ CONFIGNAME => {:type => ::Thrift::Types::STRING, :name => 'configName'},
24
+ CONFIGVALUE => {:type => ::Thrift::Types::STRING, :name => 'configValue', :optional => true}
25
+ }
26
+
27
+ def struct_fields; FIELDS; end
28
+
29
+ def validate
30
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field resourceId is unset!') unless @resourceId
31
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field groupResourceProfileId is unset!') unless @groupResourceProfileId
32
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field configName is unset!') unless @configName
33
+ end
34
+
35
+ ::Thrift::Struct.generate_accessors self
36
+ end
37
+
38
+ class ComputeResourceReservation
39
+ include ::Thrift::Struct, ::Thrift::Struct_Union
40
+ RESERVATIONID = 1
41
+ RESERVATIONNAME = 2
42
+ QUEUENAMES = 3
43
+ STARTTIME = 4
44
+ ENDTIME = 5
45
+
46
+ FIELDS = {
47
+ RESERVATIONID => {:type => ::Thrift::Types::STRING, :name => 'reservationId', :default => %q"DO_NOT_SET_AT_CLIENTS"},
48
+ RESERVATIONNAME => {:type => ::Thrift::Types::STRING, :name => 'reservationName'},
49
+ QUEUENAMES => {:type => ::Thrift::Types::LIST, :name => 'queueNames', :element => {:type => ::Thrift::Types::STRING}},
50
+ STARTTIME => {:type => ::Thrift::Types::I64, :name => 'startTime'},
51
+ ENDTIME => {:type => ::Thrift::Types::I64, :name => 'endTime'}
52
+ }
53
+
54
+ def struct_fields; FIELDS; end
55
+
56
+ def validate
57
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field reservationId is unset!') unless @reservationId
58
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field reservationName is unset!') unless @reservationName
59
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field queueNames is unset!') unless @queueNames
60
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field startTime is unset!') unless @startTime
61
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field endTime is unset!') unless @endTime
62
+ end
63
+
64
+ ::Thrift::Struct.generate_accessors self
65
+ end
66
+
67
+ class GroupComputeResourcePreference
68
+ include ::Thrift::Struct, ::Thrift::Struct_Union
69
+ COMPUTERESOURCEID = 1
70
+ GROUPRESOURCEPROFILEID = 2
71
+ OVERRIDEBYAIRAVATA = 3
72
+ LOGINUSERNAME = 4
73
+ PREFERREDJOBSUBMISSIONPROTOCOL = 5
74
+ PREFERREDDATAMOVEMENTPROTOCOL = 6
75
+ PREFERREDBATCHQUEUE = 7
76
+ SCRATCHLOCATION = 8
77
+ ALLOCATIONPROJECTNUMBER = 9
78
+ RESOURCESPECIFICCREDENTIALSTORETOKEN = 10
79
+ USAGEREPORTINGGATEWAYID = 11
80
+ QUALITYOFSERVICE = 12
81
+ SSHACCOUNTPROVISIONER = 16
82
+ GROUPSSHACCOUNTPROVISIONERCONFIGS = 17
83
+ SSHACCOUNTPROVISIONERADDITIONALINFO = 18
84
+ RESERVATIONS = 19
85
+
86
+ FIELDS = {
87
+ COMPUTERESOURCEID => {:type => ::Thrift::Types::STRING, :name => 'computeResourceId'},
88
+ GROUPRESOURCEPROFILEID => {:type => ::Thrift::Types::STRING, :name => 'groupResourceProfileId', :default => %q"DO_NOT_SET_AT_CLIENTS"},
89
+ OVERRIDEBYAIRAVATA => {:type => ::Thrift::Types::BOOL, :name => 'overridebyAiravata', :default => true},
90
+ LOGINUSERNAME => {:type => ::Thrift::Types::STRING, :name => 'loginUserName', :optional => true},
91
+ PREFERREDJOBSUBMISSIONPROTOCOL => {:type => ::Thrift::Types::I32, :name => 'preferredJobSubmissionProtocol', :optional => true, :enum_class => ::JobSubmissionProtocol},
92
+ PREFERREDDATAMOVEMENTPROTOCOL => {:type => ::Thrift::Types::I32, :name => 'preferredDataMovementProtocol', :optional => true, :enum_class => ::DataMovementProtocol},
93
+ PREFERREDBATCHQUEUE => {:type => ::Thrift::Types::STRING, :name => 'preferredBatchQueue', :optional => true},
94
+ SCRATCHLOCATION => {:type => ::Thrift::Types::STRING, :name => 'scratchLocation', :optional => true},
95
+ ALLOCATIONPROJECTNUMBER => {:type => ::Thrift::Types::STRING, :name => 'allocationProjectNumber', :optional => true},
96
+ RESOURCESPECIFICCREDENTIALSTORETOKEN => {:type => ::Thrift::Types::STRING, :name => 'resourceSpecificCredentialStoreToken', :optional => true},
97
+ USAGEREPORTINGGATEWAYID => {:type => ::Thrift::Types::STRING, :name => 'usageReportingGatewayId', :optional => true},
98
+ QUALITYOFSERVICE => {:type => ::Thrift::Types::STRING, :name => 'qualityOfService', :optional => true},
99
+ SSHACCOUNTPROVISIONER => {:type => ::Thrift::Types::STRING, :name => 'sshAccountProvisioner', :optional => true},
100
+ GROUPSSHACCOUNTPROVISIONERCONFIGS => {:type => ::Thrift::Types::LIST, :name => 'groupSSHAccountProvisionerConfigs', :element => {:type => ::Thrift::Types::STRUCT, :class => ::GroupAccountSSHProvisionerConfig}, :optional => true},
101
+ SSHACCOUNTPROVISIONERADDITIONALINFO => {:type => ::Thrift::Types::STRING, :name => 'sshAccountProvisionerAdditionalInfo', :optional => true},
102
+ RESERVATIONS => {:type => ::Thrift::Types::LIST, :name => 'reservations', :element => {:type => ::Thrift::Types::STRUCT, :class => ::ComputeResourceReservation}, :optional => true}
103
+ }
104
+
105
+ def struct_fields; FIELDS; end
106
+
107
+ def validate
108
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field computeResourceId is unset!') unless @computeResourceId
109
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field groupResourceProfileId is unset!') unless @groupResourceProfileId
110
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field overridebyAiravata is unset!') if @overridebyAiravata.nil?
111
+ unless @preferredJobSubmissionProtocol.nil? || ::JobSubmissionProtocol::VALID_VALUES.include?(@preferredJobSubmissionProtocol)
112
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field preferredJobSubmissionProtocol!')
113
+ end
114
+ unless @preferredDataMovementProtocol.nil? || ::DataMovementProtocol::VALID_VALUES.include?(@preferredDataMovementProtocol)
115
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field preferredDataMovementProtocol!')
116
+ end
117
+ end
118
+
119
+ ::Thrift::Struct.generate_accessors self
120
+ end
121
+
122
+ class ComputeResourcePolicy
123
+ include ::Thrift::Struct, ::Thrift::Struct_Union
124
+ RESOURCEPOLICYID = 1
125
+ COMPUTERESOURCEID = 2
126
+ GROUPRESOURCEPROFILEID = 3
127
+ ALLOWEDBATCHQUEUES = 4
128
+
129
+ FIELDS = {
130
+ RESOURCEPOLICYID => {:type => ::Thrift::Types::STRING, :name => 'resourcePolicyId', :default => %q"DO_NOT_SET_AT_CLIENTS"},
131
+ COMPUTERESOURCEID => {:type => ::Thrift::Types::STRING, :name => 'computeResourceId'},
132
+ GROUPRESOURCEPROFILEID => {:type => ::Thrift::Types::STRING, :name => 'groupResourceProfileId', :default => %q"DO_NOT_SET_AT_CLIENTS"},
133
+ ALLOWEDBATCHQUEUES => {:type => ::Thrift::Types::LIST, :name => 'allowedBatchQueues', :element => {:type => ::Thrift::Types::STRING}, :optional => true}
134
+ }
135
+
136
+ def struct_fields; FIELDS; end
137
+
138
+ def validate
139
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field resourcePolicyId is unset!') unless @resourcePolicyId
140
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field computeResourceId is unset!') unless @computeResourceId
141
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field groupResourceProfileId is unset!') unless @groupResourceProfileId
142
+ end
143
+
144
+ ::Thrift::Struct.generate_accessors self
145
+ end
146
+
147
+ class BatchQueueResourcePolicy
148
+ include ::Thrift::Struct, ::Thrift::Struct_Union
149
+ RESOURCEPOLICYID = 1
150
+ COMPUTERESOURCEID = 2
151
+ GROUPRESOURCEPROFILEID = 3
152
+ QUEUENAME = 4
153
+ MAXALLOWEDNODES = 5
154
+ MAXALLOWEDCORES = 6
155
+ MAXALLOWEDWALLTIME = 7
156
+
157
+ FIELDS = {
158
+ RESOURCEPOLICYID => {:type => ::Thrift::Types::STRING, :name => 'resourcePolicyId', :default => %q"DO_NOT_SET_AT_CLIENTS"},
159
+ COMPUTERESOURCEID => {:type => ::Thrift::Types::STRING, :name => 'computeResourceId'},
160
+ GROUPRESOURCEPROFILEID => {:type => ::Thrift::Types::STRING, :name => 'groupResourceProfileId', :default => %q"DO_NOT_SET_AT_CLIENTS"},
161
+ QUEUENAME => {:type => ::Thrift::Types::STRING, :name => 'queuename', :optional => true},
162
+ MAXALLOWEDNODES => {:type => ::Thrift::Types::I32, :name => 'maxAllowedNodes', :optional => true},
163
+ MAXALLOWEDCORES => {:type => ::Thrift::Types::I32, :name => 'maxAllowedCores', :optional => true},
164
+ MAXALLOWEDWALLTIME => {:type => ::Thrift::Types::I32, :name => 'maxAllowedWalltime', :optional => true}
165
+ }
166
+
167
+ def struct_fields; FIELDS; end
168
+
169
+ def validate
170
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field resourcePolicyId is unset!') unless @resourcePolicyId
171
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field computeResourceId is unset!') unless @computeResourceId
172
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field groupResourceProfileId is unset!') unless @groupResourceProfileId
173
+ end
174
+
175
+ ::Thrift::Struct.generate_accessors self
176
+ end
177
+
178
+ # Group Resource Profile
179
+ #
180
+ # gatewayID:
181
+ # Unique identifier for the gateway assigned by Airavata. Corelate this to Airavata Admin API Gateway Registration.
182
+ #
183
+ # groupResourceProfileId:
184
+ #
185
+ # computeResourcePreferences:
186
+ # List of resource preferences for each of the registered compute resources.
187
+ #
188
+ # computeResourcePolicies:
189
+ # List of enforced policies for each of the registered compute resources.
190
+ #
191
+ # batchQueueResourcePolicies:
192
+ # List of enforced policies on registered batch queues
193
+ #
194
+ # defaultCredentialStoreToken:
195
+ # The default credential store token to use for compute resources that don't specify a resource specific credential store token.
196
+ #
197
+ class GroupResourceProfile
198
+ include ::Thrift::Struct, ::Thrift::Struct_Union
199
+ GATEWAYID = 1
200
+ GROUPRESOURCEPROFILEID = 2
201
+ GROUPRESOURCEPROFILENAME = 3
202
+ COMPUTEPREFERENCES = 4
203
+ COMPUTERESOURCEPOLICIES = 5
204
+ BATCHQUEUERESOURCEPOLICIES = 6
205
+ CREATIONTIME = 7
206
+ UPDATEDTIME = 8
207
+ DEFAULTCREDENTIALSTORETOKEN = 9
208
+
209
+ FIELDS = {
210
+ GATEWAYID => {:type => ::Thrift::Types::STRING, :name => 'gatewayId'},
211
+ GROUPRESOURCEPROFILEID => {:type => ::Thrift::Types::STRING, :name => 'groupResourceProfileId', :default => %q"DO_NOT_SET_AT_CLIENTS"},
212
+ GROUPRESOURCEPROFILENAME => {:type => ::Thrift::Types::STRING, :name => 'groupResourceProfileName', :optional => true},
213
+ COMPUTEPREFERENCES => {:type => ::Thrift::Types::LIST, :name => 'computePreferences', :element => {:type => ::Thrift::Types::STRUCT, :class => ::GroupComputeResourcePreference}, :optional => true},
214
+ COMPUTERESOURCEPOLICIES => {:type => ::Thrift::Types::LIST, :name => 'computeResourcePolicies', :element => {:type => ::Thrift::Types::STRUCT, :class => ::ComputeResourcePolicy}, :optional => true},
215
+ BATCHQUEUERESOURCEPOLICIES => {:type => ::Thrift::Types::LIST, :name => 'batchQueueResourcePolicies', :element => {:type => ::Thrift::Types::STRUCT, :class => ::BatchQueueResourcePolicy}, :optional => true},
216
+ CREATIONTIME => {:type => ::Thrift::Types::I64, :name => 'creationTime', :optional => true},
217
+ UPDATEDTIME => {:type => ::Thrift::Types::I64, :name => 'updatedTime', :optional => true},
218
+ DEFAULTCREDENTIALSTORETOKEN => {:type => ::Thrift::Types::STRING, :name => 'defaultCredentialStoreToken', :optional => true}
219
+ }
220
+
221
+ def struct_fields; FIELDS; end
222
+
223
+ def validate
224
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field gatewayId is unset!') unless @gatewayId
225
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field groupResourceProfileId is unset!') unless @groupResourceProfileId
226
+ end
227
+
228
+ ::Thrift::Struct.generate_accessors self
229
+ end
230
+
@@ -0,0 +1,9 @@
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 'job_model_types'
9
+
@@ -0,0 +1,52 @@
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 'status_models_types'
9
+
10
+
11
+ class JobModel
12
+ include ::Thrift::Struct, ::Thrift::Struct_Union
13
+ JOBID = 1
14
+ TASKID = 2
15
+ PROCESSID = 3
16
+ JOBDESCRIPTION = 4
17
+ CREATIONTIME = 5
18
+ JOBSTATUSES = 6
19
+ COMPUTERESOURCECONSUMED = 7
20
+ JOBNAME = 8
21
+ WORKINGDIR = 9
22
+ STDOUT = 10
23
+ STDERR = 11
24
+ EXITCODE = 12
25
+
26
+ FIELDS = {
27
+ JOBID => {:type => ::Thrift::Types::STRING, :name => 'jobId'},
28
+ TASKID => {:type => ::Thrift::Types::STRING, :name => 'taskId'},
29
+ PROCESSID => {:type => ::Thrift::Types::STRING, :name => 'processId'},
30
+ JOBDESCRIPTION => {:type => ::Thrift::Types::STRING, :name => 'jobDescription'},
31
+ CREATIONTIME => {:type => ::Thrift::Types::I64, :name => 'creationTime', :optional => true},
32
+ JOBSTATUSES => {:type => ::Thrift::Types::LIST, :name => 'jobStatuses', :element => {:type => ::Thrift::Types::STRUCT, :class => ::JobStatus}, :optional => true},
33
+ COMPUTERESOURCECONSUMED => {:type => ::Thrift::Types::STRING, :name => 'computeResourceConsumed', :optional => true},
34
+ JOBNAME => {:type => ::Thrift::Types::STRING, :name => 'jobName', :optional => true},
35
+ WORKINGDIR => {:type => ::Thrift::Types::STRING, :name => 'workingDir', :optional => true},
36
+ STDOUT => {:type => ::Thrift::Types::STRING, :name => 'stdOut', :optional => true},
37
+ STDERR => {:type => ::Thrift::Types::STRING, :name => 'stdErr', :optional => true},
38
+ EXITCODE => {:type => ::Thrift::Types::I32, :name => 'exitCode', :optional => true}
39
+ }
40
+
41
+ def struct_fields; FIELDS; end
42
+
43
+ def validate
44
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field jobId is unset!') unless @jobId
45
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field taskId is unset!') unless @taskId
46
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field processId is unset!') unless @processId
47
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field jobDescription is unset!') unless @jobDescription
48
+ end
49
+
50
+ ::Thrift::Struct.generate_accessors self
51
+ end
52
+
@@ -0,0 +1,9 @@
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 'messaging_events_types'
9
+
@@ -0,0 +1,399 @@
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 'status_models_types'
9
+ require 'application_io_models_types'
10
+ require 'airavata_commons_types'
11
+
12
+
13
+ module MessageLevel
14
+ INFO = 0
15
+ DEBUG = 1
16
+ ERROR = 2
17
+ ACK = 3
18
+ VALUE_MAP = {0 => "INFO", 1 => "DEBUG", 2 => "ERROR", 3 => "ACK"}
19
+ VALID_VALUES = Set.new([INFO, DEBUG, ERROR, ACK]).freeze
20
+ end
21
+
22
+ module MessageType
23
+ EXPERIMENT = 0
24
+ EXPERIMENT_CANCEL = 1
25
+ TASK = 2
26
+ PROCESS = 3
27
+ JOB = 4
28
+ LAUNCHPROCESS = 5
29
+ TERMINATEPROCESS = 6
30
+ PROCESSOUTPUT = 7
31
+ DB_EVENT = 8
32
+ VALUE_MAP = {0 => "EXPERIMENT", 1 => "EXPERIMENT_CANCEL", 2 => "TASK", 3 => "PROCESS", 4 => "JOB", 5 => "LAUNCHPROCESS", 6 => "TERMINATEPROCESS", 7 => "PROCESSOUTPUT", 8 => "DB_EVENT"}
33
+ VALID_VALUES = Set.new([EXPERIMENT, EXPERIMENT_CANCEL, TASK, PROCESS, JOB, LAUNCHPROCESS, TERMINATEPROCESS, PROCESSOUTPUT, DB_EVENT]).freeze
34
+ end
35
+
36
+ class ExperimentStatusChangeEvent
37
+ include ::Thrift::Struct, ::Thrift::Struct_Union
38
+ STATE = 1
39
+ EXPERIMENTID = 2
40
+ GATEWAYID = 3
41
+
42
+ FIELDS = {
43
+ STATE => {:type => ::Thrift::Types::I32, :name => 'state', :enum_class => ::ExperimentState},
44
+ EXPERIMENTID => {:type => ::Thrift::Types::STRING, :name => 'experimentId'},
45
+ GATEWAYID => {:type => ::Thrift::Types::STRING, :name => 'gatewayId'}
46
+ }
47
+
48
+ def struct_fields; FIELDS; end
49
+
50
+ def validate
51
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field state is unset!') unless @state
52
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field experimentId is unset!') unless @experimentId
53
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field gatewayId is unset!') unless @gatewayId
54
+ unless @state.nil? || ::ExperimentState::VALID_VALUES.include?(@state)
55
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field state!')
56
+ end
57
+ end
58
+
59
+ ::Thrift::Struct.generate_accessors self
60
+ end
61
+
62
+ class ProcessIdentifier
63
+ include ::Thrift::Struct, ::Thrift::Struct_Union
64
+ PROCESSID = 1
65
+ EXPERIMENTID = 2
66
+ GATEWAYID = 3
67
+
68
+ FIELDS = {
69
+ PROCESSID => {:type => ::Thrift::Types::STRING, :name => 'processId'},
70
+ EXPERIMENTID => {:type => ::Thrift::Types::STRING, :name => 'experimentId'},
71
+ GATEWAYID => {:type => ::Thrift::Types::STRING, :name => 'gatewayId'}
72
+ }
73
+
74
+ def struct_fields; FIELDS; end
75
+
76
+ def validate
77
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field processId is unset!') unless @processId
78
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field experimentId is unset!') unless @experimentId
79
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field gatewayId is unset!') unless @gatewayId
80
+ end
81
+
82
+ ::Thrift::Struct.generate_accessors self
83
+ end
84
+
85
+ class TaskIdentifier
86
+ include ::Thrift::Struct, ::Thrift::Struct_Union
87
+ TASKID = 1
88
+ PROCESSID = 2
89
+ EXPERIMENTID = 3
90
+ GATEWAYID = 4
91
+
92
+ FIELDS = {
93
+ TASKID => {:type => ::Thrift::Types::STRING, :name => 'taskId'},
94
+ PROCESSID => {:type => ::Thrift::Types::STRING, :name => 'processId'},
95
+ EXPERIMENTID => {:type => ::Thrift::Types::STRING, :name => 'experimentId'},
96
+ GATEWAYID => {:type => ::Thrift::Types::STRING, :name => 'gatewayId'}
97
+ }
98
+
99
+ def struct_fields; FIELDS; end
100
+
101
+ def validate
102
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field taskId is unset!') unless @taskId
103
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field processId is unset!') unless @processId
104
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field experimentId is unset!') unless @experimentId
105
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field gatewayId is unset!') unless @gatewayId
106
+ end
107
+
108
+ ::Thrift::Struct.generate_accessors self
109
+ end
110
+
111
+ class TaskStatusChangeEvent
112
+ include ::Thrift::Struct, ::Thrift::Struct_Union
113
+ STATE = 1
114
+ TASKIDENTITY = 2
115
+
116
+ FIELDS = {
117
+ STATE => {:type => ::Thrift::Types::I32, :name => 'state', :enum_class => ::TaskState},
118
+ TASKIDENTITY => {:type => ::Thrift::Types::STRUCT, :name => 'taskIdentity', :class => ::TaskIdentifier}
119
+ }
120
+
121
+ def struct_fields; FIELDS; end
122
+
123
+ def validate
124
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field state is unset!') unless @state
125
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field taskIdentity is unset!') unless @taskIdentity
126
+ unless @state.nil? || ::TaskState::VALID_VALUES.include?(@state)
127
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field state!')
128
+ end
129
+ end
130
+
131
+ ::Thrift::Struct.generate_accessors self
132
+ end
133
+
134
+ class TaskStatusChangeRequestEvent
135
+ include ::Thrift::Struct, ::Thrift::Struct_Union
136
+ STATE = 1
137
+ TASKIDENTITY = 2
138
+
139
+ FIELDS = {
140
+ STATE => {:type => ::Thrift::Types::I32, :name => 'state', :enum_class => ::TaskState},
141
+ TASKIDENTITY => {:type => ::Thrift::Types::STRUCT, :name => 'taskIdentity', :class => ::TaskIdentifier}
142
+ }
143
+
144
+ def struct_fields; FIELDS; end
145
+
146
+ def validate
147
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field state is unset!') unless @state
148
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field taskIdentity is unset!') unless @taskIdentity
149
+ unless @state.nil? || ::TaskState::VALID_VALUES.include?(@state)
150
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field state!')
151
+ end
152
+ end
153
+
154
+ ::Thrift::Struct.generate_accessors self
155
+ end
156
+
157
+ class ProcessStatusChangeEvent
158
+ include ::Thrift::Struct, ::Thrift::Struct_Union
159
+ STATE = 1
160
+ PROCESSIDENTITY = 2
161
+
162
+ FIELDS = {
163
+ STATE => {:type => ::Thrift::Types::I32, :name => 'state', :enum_class => ::ProcessState},
164
+ PROCESSIDENTITY => {:type => ::Thrift::Types::STRUCT, :name => 'processIdentity', :class => ::ProcessIdentifier}
165
+ }
166
+
167
+ def struct_fields; FIELDS; end
168
+
169
+ def validate
170
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field state is unset!') unless @state
171
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field processIdentity is unset!') unless @processIdentity
172
+ unless @state.nil? || ::ProcessState::VALID_VALUES.include?(@state)
173
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field state!')
174
+ end
175
+ end
176
+
177
+ ::Thrift::Struct.generate_accessors self
178
+ end
179
+
180
+ class ProcessStatusChangeRequestEvent
181
+ include ::Thrift::Struct, ::Thrift::Struct_Union
182
+ STATE = 1
183
+ PROCESSIDENTITY = 2
184
+
185
+ FIELDS = {
186
+ STATE => {:type => ::Thrift::Types::I32, :name => 'state', :enum_class => ::ProcessState},
187
+ PROCESSIDENTITY => {:type => ::Thrift::Types::STRUCT, :name => 'processIdentity', :class => ::ProcessIdentifier}
188
+ }
189
+
190
+ def struct_fields; FIELDS; end
191
+
192
+ def validate
193
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field state is unset!') unless @state
194
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field processIdentity is unset!') unless @processIdentity
195
+ unless @state.nil? || ::ProcessState::VALID_VALUES.include?(@state)
196
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field state!')
197
+ end
198
+ end
199
+
200
+ ::Thrift::Struct.generate_accessors self
201
+ end
202
+
203
+ class TaskOutputChangeEvent
204
+ include ::Thrift::Struct, ::Thrift::Struct_Union
205
+ OUTPUT = 1
206
+ TASKIDENTITY = 2
207
+
208
+ FIELDS = {
209
+ OUTPUT => {:type => ::Thrift::Types::LIST, :name => 'output', :element => {:type => ::Thrift::Types::STRUCT, :class => ::OutputDataObjectType}},
210
+ TASKIDENTITY => {:type => ::Thrift::Types::STRUCT, :name => 'taskIdentity', :class => ::TaskIdentifier}
211
+ }
212
+
213
+ def struct_fields; FIELDS; end
214
+
215
+ def validate
216
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field output is unset!') unless @output
217
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field taskIdentity is unset!') unless @taskIdentity
218
+ end
219
+
220
+ ::Thrift::Struct.generate_accessors self
221
+ end
222
+
223
+ class JobIdentifier
224
+ include ::Thrift::Struct, ::Thrift::Struct_Union
225
+ JOBID = 1
226
+ TASKID = 2
227
+ PROCESSID = 3
228
+ EXPERIMENTID = 4
229
+ GATEWAYID = 5
230
+
231
+ FIELDS = {
232
+ JOBID => {:type => ::Thrift::Types::STRING, :name => 'jobId'},
233
+ TASKID => {:type => ::Thrift::Types::STRING, :name => 'taskId'},
234
+ PROCESSID => {:type => ::Thrift::Types::STRING, :name => 'processId'},
235
+ EXPERIMENTID => {:type => ::Thrift::Types::STRING, :name => 'experimentId'},
236
+ GATEWAYID => {:type => ::Thrift::Types::STRING, :name => 'gatewayId'}
237
+ }
238
+
239
+ def struct_fields; FIELDS; end
240
+
241
+ def validate
242
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field jobId is unset!') unless @jobId
243
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field taskId is unset!') unless @taskId
244
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field processId is unset!') unless @processId
245
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field experimentId is unset!') unless @experimentId
246
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field gatewayId is unset!') unless @gatewayId
247
+ end
248
+
249
+ ::Thrift::Struct.generate_accessors self
250
+ end
251
+
252
+ class ExperimentSubmitEvent
253
+ include ::Thrift::Struct, ::Thrift::Struct_Union
254
+ EXPERIMENTID = 1
255
+ GATEWAYID = 2
256
+
257
+ FIELDS = {
258
+ EXPERIMENTID => {:type => ::Thrift::Types::STRING, :name => 'experimentId'},
259
+ GATEWAYID => {:type => ::Thrift::Types::STRING, :name => 'gatewayId'}
260
+ }
261
+
262
+ def struct_fields; FIELDS; end
263
+
264
+ def validate
265
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field experimentId is unset!') unless @experimentId
266
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field gatewayId is unset!') unless @gatewayId
267
+ end
268
+
269
+ ::Thrift::Struct.generate_accessors self
270
+ end
271
+
272
+ class ProcessSubmitEvent
273
+ include ::Thrift::Struct, ::Thrift::Struct_Union
274
+ PROCESSID = 1
275
+ GATEWAYID = 2
276
+ EXPERIMENTID = 3
277
+ TOKENID = 4
278
+
279
+ FIELDS = {
280
+ PROCESSID => {:type => ::Thrift::Types::STRING, :name => 'processId'},
281
+ GATEWAYID => {:type => ::Thrift::Types::STRING, :name => 'gatewayId'},
282
+ EXPERIMENTID => {:type => ::Thrift::Types::STRING, :name => 'experimentId'},
283
+ TOKENID => {:type => ::Thrift::Types::STRING, :name => 'tokenId'}
284
+ }
285
+
286
+ def struct_fields; FIELDS; end
287
+
288
+ def validate
289
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field processId is unset!') unless @processId
290
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field gatewayId is unset!') unless @gatewayId
291
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field experimentId is unset!') unless @experimentId
292
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field tokenId is unset!') unless @tokenId
293
+ end
294
+
295
+ ::Thrift::Struct.generate_accessors self
296
+ end
297
+
298
+ class ProcessTerminateEvent
299
+ include ::Thrift::Struct, ::Thrift::Struct_Union
300
+ PROCESSID = 1
301
+ GATEWAYID = 2
302
+ TOKENID = 3
303
+
304
+ FIELDS = {
305
+ PROCESSID => {:type => ::Thrift::Types::STRING, :name => 'processId'},
306
+ GATEWAYID => {:type => ::Thrift::Types::STRING, :name => 'gatewayId'},
307
+ TOKENID => {:type => ::Thrift::Types::STRING, :name => 'tokenId'}
308
+ }
309
+
310
+ def struct_fields; FIELDS; end
311
+
312
+ def validate
313
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field processId is unset!') unless @processId
314
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field gatewayId is unset!') unless @gatewayId
315
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field tokenId is unset!') unless @tokenId
316
+ end
317
+
318
+ ::Thrift::Struct.generate_accessors self
319
+ end
320
+
321
+ class JobStatusChangeEvent
322
+ include ::Thrift::Struct, ::Thrift::Struct_Union
323
+ STATE = 1
324
+ JOBIDENTITY = 2
325
+
326
+ FIELDS = {
327
+ STATE => {:type => ::Thrift::Types::I32, :name => 'state', :enum_class => ::JobState},
328
+ JOBIDENTITY => {:type => ::Thrift::Types::STRUCT, :name => 'jobIdentity', :class => ::JobIdentifier}
329
+ }
330
+
331
+ def struct_fields; FIELDS; end
332
+
333
+ def validate
334
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field state is unset!') unless @state
335
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field jobIdentity is unset!') unless @jobIdentity
336
+ unless @state.nil? || ::JobState::VALID_VALUES.include?(@state)
337
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field state!')
338
+ end
339
+ end
340
+
341
+ ::Thrift::Struct.generate_accessors self
342
+ end
343
+
344
+ class JobStatusChangeRequestEvent
345
+ include ::Thrift::Struct, ::Thrift::Struct_Union
346
+ STATE = 1
347
+ JOBIDENTITY = 2
348
+
349
+ FIELDS = {
350
+ STATE => {:type => ::Thrift::Types::I32, :name => 'state', :enum_class => ::JobState},
351
+ JOBIDENTITY => {:type => ::Thrift::Types::STRUCT, :name => 'jobIdentity', :class => ::JobIdentifier}
352
+ }
353
+
354
+ def struct_fields; FIELDS; end
355
+
356
+ def validate
357
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field state is unset!') unless @state
358
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field jobIdentity is unset!') unless @jobIdentity
359
+ unless @state.nil? || ::JobState::VALID_VALUES.include?(@state)
360
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field state!')
361
+ end
362
+ end
363
+
364
+ ::Thrift::Struct.generate_accessors self
365
+ end
366
+
367
+ class Message
368
+ include ::Thrift::Struct, ::Thrift::Struct_Union
369
+ EVENT = 1
370
+ MESSAGEID = 2
371
+ MESSAGETYPE = 3
372
+ UPDATEDTIME = 4
373
+ MESSAGELEVEL = 5
374
+
375
+ FIELDS = {
376
+ EVENT => {:type => ::Thrift::Types::STRING, :name => 'event', :binary => true},
377
+ MESSAGEID => {:type => ::Thrift::Types::STRING, :name => 'messageId', :default => %q"DO_NOT_SET_AT_CLIENTS"},
378
+ MESSAGETYPE => {:type => ::Thrift::Types::I32, :name => 'messageType', :enum_class => ::MessageType},
379
+ UPDATEDTIME => {:type => ::Thrift::Types::I64, :name => 'updatedTime', :optional => true},
380
+ MESSAGELEVEL => {:type => ::Thrift::Types::I32, :name => 'messageLevel', :optional => true, :enum_class => ::MessageLevel}
381
+ }
382
+
383
+ def struct_fields; FIELDS; end
384
+
385
+ def validate
386
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field event is unset!') unless @event
387
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field messageId is unset!') unless @messageId
388
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field messageType is unset!') unless @messageType
389
+ unless @messageType.nil? || ::MessageType::VALID_VALUES.include?(@messageType)
390
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field messageType!')
391
+ end
392
+ unless @messageLevel.nil? || ::MessageLevel::VALID_VALUES.include?(@messageLevel)
393
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field messageLevel!')
394
+ end
395
+ end
396
+
397
+ ::Thrift::Struct.generate_accessors self
398
+ end
399
+