cadence-ruby 0.0.0 → 0.1.0

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 (83) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +456 -0
  3. data/cadence.gemspec +9 -2
  4. data/lib/cadence-ruby.rb +1 -0
  5. data/lib/cadence.rb +176 -0
  6. data/lib/cadence/activity.rb +33 -0
  7. data/lib/cadence/activity/async_token.rb +34 -0
  8. data/lib/cadence/activity/context.rb +64 -0
  9. data/lib/cadence/activity/poller.rb +89 -0
  10. data/lib/cadence/activity/task_processor.rb +73 -0
  11. data/lib/cadence/activity/workflow_convenience_methods.rb +41 -0
  12. data/lib/cadence/client.rb +21 -0
  13. data/lib/cadence/client/errors.rb +8 -0
  14. data/lib/cadence/client/thrift_client.rb +380 -0
  15. data/lib/cadence/concerns/executable.rb +33 -0
  16. data/lib/cadence/concerns/typed.rb +40 -0
  17. data/lib/cadence/configuration.rb +36 -0
  18. data/lib/cadence/errors.rb +21 -0
  19. data/lib/cadence/executable_lookup.rb +25 -0
  20. data/lib/cadence/execution_options.rb +32 -0
  21. data/lib/cadence/json.rb +18 -0
  22. data/lib/cadence/metadata.rb +73 -0
  23. data/lib/cadence/metadata/activity.rb +28 -0
  24. data/lib/cadence/metadata/base.rb +17 -0
  25. data/lib/cadence/metadata/decision.rb +25 -0
  26. data/lib/cadence/metadata/workflow.rb +23 -0
  27. data/lib/cadence/metrics.rb +37 -0
  28. data/lib/cadence/metrics_adapters/log.rb +33 -0
  29. data/lib/cadence/metrics_adapters/null.rb +9 -0
  30. data/lib/cadence/middleware/chain.rb +30 -0
  31. data/lib/cadence/middleware/entry.rb +9 -0
  32. data/lib/cadence/retry_policy.rb +27 -0
  33. data/lib/cadence/saga/concern.rb +37 -0
  34. data/lib/cadence/saga/result.rb +22 -0
  35. data/lib/cadence/saga/saga.rb +24 -0
  36. data/lib/cadence/testing.rb +50 -0
  37. data/lib/cadence/testing/cadence_override.rb +112 -0
  38. data/lib/cadence/testing/future_registry.rb +27 -0
  39. data/lib/cadence/testing/local_activity_context.rb +17 -0
  40. data/lib/cadence/testing/local_workflow_context.rb +207 -0
  41. data/lib/cadence/testing/workflow_execution.rb +44 -0
  42. data/lib/cadence/testing/workflow_override.rb +36 -0
  43. data/lib/cadence/thread_local_context.rb +14 -0
  44. data/lib/cadence/thread_pool.rb +68 -0
  45. data/lib/cadence/types.rb +7 -0
  46. data/lib/cadence/utils.rb +17 -0
  47. data/lib/cadence/uuid.rb +19 -0
  48. data/lib/cadence/version.rb +1 -1
  49. data/lib/cadence/worker.rb +91 -0
  50. data/lib/cadence/workflow.rb +42 -0
  51. data/lib/cadence/workflow/context.rb +266 -0
  52. data/lib/cadence/workflow/convenience_methods.rb +34 -0
  53. data/lib/cadence/workflow/decision.rb +39 -0
  54. data/lib/cadence/workflow/decision_state_machine.rb +48 -0
  55. data/lib/cadence/workflow/decision_task_processor.rb +105 -0
  56. data/lib/cadence/workflow/dispatcher.rb +31 -0
  57. data/lib/cadence/workflow/execution_info.rb +45 -0
  58. data/lib/cadence/workflow/executor.rb +45 -0
  59. data/lib/cadence/workflow/future.rb +75 -0
  60. data/lib/cadence/workflow/history.rb +76 -0
  61. data/lib/cadence/workflow/history/event.rb +71 -0
  62. data/lib/cadence/workflow/history/event_target.rb +79 -0
  63. data/lib/cadence/workflow/history/window.rb +40 -0
  64. data/lib/cadence/workflow/poller.rb +74 -0
  65. data/lib/cadence/workflow/replay_aware_logger.rb +36 -0
  66. data/lib/cadence/workflow/serializer.rb +31 -0
  67. data/lib/cadence/workflow/serializer/base.rb +22 -0
  68. data/lib/cadence/workflow/serializer/cancel_timer.rb +19 -0
  69. data/lib/cadence/workflow/serializer/complete_workflow.rb +20 -0
  70. data/lib/cadence/workflow/serializer/fail_workflow.rb +21 -0
  71. data/lib/cadence/workflow/serializer/record_marker.rb +21 -0
  72. data/lib/cadence/workflow/serializer/request_activity_cancellation.rb +19 -0
  73. data/lib/cadence/workflow/serializer/schedule_activity.rb +54 -0
  74. data/lib/cadence/workflow/serializer/start_child_workflow.rb +52 -0
  75. data/lib/cadence/workflow/serializer/start_timer.rb +20 -0
  76. data/lib/cadence/workflow/state_manager.rb +324 -0
  77. data/lib/gen/thrift/cadence_constants.rb +11 -0
  78. data/lib/gen/thrift/cadence_types.rb +11 -0
  79. data/lib/gen/thrift/shared_constants.rb +11 -0
  80. data/lib/gen/thrift/shared_types.rb +4600 -0
  81. data/lib/gen/thrift/workflow_service.rb +3142 -0
  82. data/rbi/cadence-ruby.rbi +39 -0
  83. metadata +152 -5
@@ -0,0 +1,3142 @@
1
+ #
2
+ # Autogenerated by Thrift Compiler (0.12.0)
3
+ #
4
+ # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
+ #
6
+
7
+ require 'thrift'
8
+ require_relative './cadence_types'
9
+
10
+ module CadenceThrift
11
+ module WorkflowService
12
+ class Client
13
+ include ::Thrift::Client
14
+
15
+ def RegisterDomain(registerRequest)
16
+ send_RegisterDomain(registerRequest)
17
+ recv_RegisterDomain()
18
+ end
19
+
20
+ def send_RegisterDomain(registerRequest)
21
+ send_message('RegisterDomain', RegisterDomain_args, :registerRequest => registerRequest)
22
+ end
23
+
24
+ def recv_RegisterDomain()
25
+ result = receive_message(RegisterDomain_result)
26
+ raise result.badRequestError unless result.badRequestError.nil?
27
+ raise result.internalServiceError unless result.internalServiceError.nil?
28
+ raise result.domainExistsError unless result.domainExistsError.nil?
29
+ raise result.serviceBusyError unless result.serviceBusyError.nil?
30
+ raise result.clientVersionNotSupportedError unless result.clientVersionNotSupportedError.nil?
31
+ return
32
+ end
33
+
34
+ def DescribeDomain(describeRequest)
35
+ send_DescribeDomain(describeRequest)
36
+ return recv_DescribeDomain()
37
+ end
38
+
39
+ def send_DescribeDomain(describeRequest)
40
+ send_message('DescribeDomain', DescribeDomain_args, :describeRequest => describeRequest)
41
+ end
42
+
43
+ def recv_DescribeDomain()
44
+ result = receive_message(DescribeDomain_result)
45
+ return result.success unless result.success.nil?
46
+ raise result.badRequestError unless result.badRequestError.nil?
47
+ raise result.internalServiceError unless result.internalServiceError.nil?
48
+ raise result.entityNotExistError unless result.entityNotExistError.nil?
49
+ raise result.serviceBusyError unless result.serviceBusyError.nil?
50
+ raise result.clientVersionNotSupportedError unless result.clientVersionNotSupportedError.nil?
51
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'DescribeDomain failed: unknown result')
52
+ end
53
+
54
+ def ListDomains(listRequest)
55
+ send_ListDomains(listRequest)
56
+ return recv_ListDomains()
57
+ end
58
+
59
+ def send_ListDomains(listRequest)
60
+ send_message('ListDomains', ListDomains_args, :listRequest => listRequest)
61
+ end
62
+
63
+ def recv_ListDomains()
64
+ result = receive_message(ListDomains_result)
65
+ return result.success unless result.success.nil?
66
+ raise result.badRequestError unless result.badRequestError.nil?
67
+ raise result.internalServiceError unless result.internalServiceError.nil?
68
+ raise result.entityNotExistError unless result.entityNotExistError.nil?
69
+ raise result.serviceBusyError unless result.serviceBusyError.nil?
70
+ raise result.clientVersionNotSupportedError unless result.clientVersionNotSupportedError.nil?
71
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'ListDomains failed: unknown result')
72
+ end
73
+
74
+ def UpdateDomain(updateRequest)
75
+ send_UpdateDomain(updateRequest)
76
+ return recv_UpdateDomain()
77
+ end
78
+
79
+ def send_UpdateDomain(updateRequest)
80
+ send_message('UpdateDomain', UpdateDomain_args, :updateRequest => updateRequest)
81
+ end
82
+
83
+ def recv_UpdateDomain()
84
+ result = receive_message(UpdateDomain_result)
85
+ return result.success unless result.success.nil?
86
+ raise result.badRequestError unless result.badRequestError.nil?
87
+ raise result.internalServiceError unless result.internalServiceError.nil?
88
+ raise result.entityNotExistError unless result.entityNotExistError.nil?
89
+ raise result.serviceBusyError unless result.serviceBusyError.nil?
90
+ raise result.domainNotActiveError unless result.domainNotActiveError.nil?
91
+ raise result.clientVersionNotSupportedError unless result.clientVersionNotSupportedError.nil?
92
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'UpdateDomain failed: unknown result')
93
+ end
94
+
95
+ def DeprecateDomain(deprecateRequest)
96
+ send_DeprecateDomain(deprecateRequest)
97
+ recv_DeprecateDomain()
98
+ end
99
+
100
+ def send_DeprecateDomain(deprecateRequest)
101
+ send_message('DeprecateDomain', DeprecateDomain_args, :deprecateRequest => deprecateRequest)
102
+ end
103
+
104
+ def recv_DeprecateDomain()
105
+ result = receive_message(DeprecateDomain_result)
106
+ raise result.badRequestError unless result.badRequestError.nil?
107
+ raise result.internalServiceError unless result.internalServiceError.nil?
108
+ raise result.entityNotExistError unless result.entityNotExistError.nil?
109
+ raise result.serviceBusyError unless result.serviceBusyError.nil?
110
+ raise result.domainNotActiveError unless result.domainNotActiveError.nil?
111
+ raise result.clientVersionNotSupportedError unless result.clientVersionNotSupportedError.nil?
112
+ return
113
+ end
114
+
115
+ def StartWorkflowExecution(startRequest)
116
+ send_StartWorkflowExecution(startRequest)
117
+ return recv_StartWorkflowExecution()
118
+ end
119
+
120
+ def send_StartWorkflowExecution(startRequest)
121
+ send_message('StartWorkflowExecution', StartWorkflowExecution_args, :startRequest => startRequest)
122
+ end
123
+
124
+ def recv_StartWorkflowExecution()
125
+ result = receive_message(StartWorkflowExecution_result)
126
+ return result.success unless result.success.nil?
127
+ raise result.badRequestError unless result.badRequestError.nil?
128
+ raise result.internalServiceError unless result.internalServiceError.nil?
129
+ raise result.sessionAlreadyExistError unless result.sessionAlreadyExistError.nil?
130
+ raise result.serviceBusyError unless result.serviceBusyError.nil?
131
+ raise result.domainNotActiveError unless result.domainNotActiveError.nil?
132
+ raise result.limitExceededError unless result.limitExceededError.nil?
133
+ raise result.entityNotExistError unless result.entityNotExistError.nil?
134
+ raise result.clientVersionNotSupportedError unless result.clientVersionNotSupportedError.nil?
135
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'StartWorkflowExecution failed: unknown result')
136
+ end
137
+
138
+ def GetWorkflowExecutionHistory(getRequest)
139
+ send_GetWorkflowExecutionHistory(getRequest)
140
+ return recv_GetWorkflowExecutionHistory()
141
+ end
142
+
143
+ def send_GetWorkflowExecutionHistory(getRequest)
144
+ send_message('GetWorkflowExecutionHistory', GetWorkflowExecutionHistory_args, :getRequest => getRequest)
145
+ end
146
+
147
+ def recv_GetWorkflowExecutionHistory()
148
+ result = receive_message(GetWorkflowExecutionHistory_result)
149
+ return result.success unless result.success.nil?
150
+ raise result.badRequestError unless result.badRequestError.nil?
151
+ raise result.internalServiceError unless result.internalServiceError.nil?
152
+ raise result.entityNotExistError unless result.entityNotExistError.nil?
153
+ raise result.serviceBusyError unless result.serviceBusyError.nil?
154
+ raise result.clientVersionNotSupportedError unless result.clientVersionNotSupportedError.nil?
155
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'GetWorkflowExecutionHistory failed: unknown result')
156
+ end
157
+
158
+ def PollForDecisionTask(pollRequest)
159
+ send_PollForDecisionTask(pollRequest)
160
+ return recv_PollForDecisionTask()
161
+ end
162
+
163
+ def send_PollForDecisionTask(pollRequest)
164
+ send_message('PollForDecisionTask', PollForDecisionTask_args, :pollRequest => pollRequest)
165
+ end
166
+
167
+ def recv_PollForDecisionTask()
168
+ result = receive_message(PollForDecisionTask_result)
169
+ return result.success unless result.success.nil?
170
+ raise result.badRequestError unless result.badRequestError.nil?
171
+ raise result.internalServiceError unless result.internalServiceError.nil?
172
+ raise result.serviceBusyError unless result.serviceBusyError.nil?
173
+ raise result.limitExceededError unless result.limitExceededError.nil?
174
+ raise result.entityNotExistError unless result.entityNotExistError.nil?
175
+ raise result.domainNotActiveError unless result.domainNotActiveError.nil?
176
+ raise result.clientVersionNotSupportedError unless result.clientVersionNotSupportedError.nil?
177
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'PollForDecisionTask failed: unknown result')
178
+ end
179
+
180
+ def RespondDecisionTaskCompleted(completeRequest)
181
+ send_RespondDecisionTaskCompleted(completeRequest)
182
+ return recv_RespondDecisionTaskCompleted()
183
+ end
184
+
185
+ def send_RespondDecisionTaskCompleted(completeRequest)
186
+ send_message('RespondDecisionTaskCompleted', RespondDecisionTaskCompleted_args, :completeRequest => completeRequest)
187
+ end
188
+
189
+ def recv_RespondDecisionTaskCompleted()
190
+ result = receive_message(RespondDecisionTaskCompleted_result)
191
+ return result.success unless result.success.nil?
192
+ raise result.badRequestError unless result.badRequestError.nil?
193
+ raise result.internalServiceError unless result.internalServiceError.nil?
194
+ raise result.entityNotExistError unless result.entityNotExistError.nil?
195
+ raise result.domainNotActiveError unless result.domainNotActiveError.nil?
196
+ raise result.limitExceededError unless result.limitExceededError.nil?
197
+ raise result.serviceBusyError unless result.serviceBusyError.nil?
198
+ raise result.clientVersionNotSupportedError unless result.clientVersionNotSupportedError.nil?
199
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'RespondDecisionTaskCompleted failed: unknown result')
200
+ end
201
+
202
+ def RespondDecisionTaskFailed(failedRequest)
203
+ send_RespondDecisionTaskFailed(failedRequest)
204
+ recv_RespondDecisionTaskFailed()
205
+ end
206
+
207
+ def send_RespondDecisionTaskFailed(failedRequest)
208
+ send_message('RespondDecisionTaskFailed', RespondDecisionTaskFailed_args, :failedRequest => failedRequest)
209
+ end
210
+
211
+ def recv_RespondDecisionTaskFailed()
212
+ result = receive_message(RespondDecisionTaskFailed_result)
213
+ raise result.badRequestError unless result.badRequestError.nil?
214
+ raise result.internalServiceError unless result.internalServiceError.nil?
215
+ raise result.entityNotExistError unless result.entityNotExistError.nil?
216
+ raise result.domainNotActiveError unless result.domainNotActiveError.nil?
217
+ raise result.limitExceededError unless result.limitExceededError.nil?
218
+ raise result.serviceBusyError unless result.serviceBusyError.nil?
219
+ raise result.clientVersionNotSupportedError unless result.clientVersionNotSupportedError.nil?
220
+ return
221
+ end
222
+
223
+ def PollForActivityTask(pollRequest)
224
+ send_PollForActivityTask(pollRequest)
225
+ return recv_PollForActivityTask()
226
+ end
227
+
228
+ def send_PollForActivityTask(pollRequest)
229
+ send_message('PollForActivityTask', PollForActivityTask_args, :pollRequest => pollRequest)
230
+ end
231
+
232
+ def recv_PollForActivityTask()
233
+ result = receive_message(PollForActivityTask_result)
234
+ return result.success unless result.success.nil?
235
+ raise result.badRequestError unless result.badRequestError.nil?
236
+ raise result.internalServiceError unless result.internalServiceError.nil?
237
+ raise result.serviceBusyError unless result.serviceBusyError.nil?
238
+ raise result.limitExceededError unless result.limitExceededError.nil?
239
+ raise result.entityNotExistError unless result.entityNotExistError.nil?
240
+ raise result.domainNotActiveError unless result.domainNotActiveError.nil?
241
+ raise result.clientVersionNotSupportedError unless result.clientVersionNotSupportedError.nil?
242
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'PollForActivityTask failed: unknown result')
243
+ end
244
+
245
+ def RecordActivityTaskHeartbeat(heartbeatRequest)
246
+ send_RecordActivityTaskHeartbeat(heartbeatRequest)
247
+ return recv_RecordActivityTaskHeartbeat()
248
+ end
249
+
250
+ def send_RecordActivityTaskHeartbeat(heartbeatRequest)
251
+ send_message('RecordActivityTaskHeartbeat', RecordActivityTaskHeartbeat_args, :heartbeatRequest => heartbeatRequest)
252
+ end
253
+
254
+ def recv_RecordActivityTaskHeartbeat()
255
+ result = receive_message(RecordActivityTaskHeartbeat_result)
256
+ return result.success unless result.success.nil?
257
+ raise result.badRequestError unless result.badRequestError.nil?
258
+ raise result.internalServiceError unless result.internalServiceError.nil?
259
+ raise result.entityNotExistError unless result.entityNotExistError.nil?
260
+ raise result.domainNotActiveError unless result.domainNotActiveError.nil?
261
+ raise result.limitExceededError unless result.limitExceededError.nil?
262
+ raise result.serviceBusyError unless result.serviceBusyError.nil?
263
+ raise result.clientVersionNotSupportedError unless result.clientVersionNotSupportedError.nil?
264
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'RecordActivityTaskHeartbeat failed: unknown result')
265
+ end
266
+
267
+ def RecordActivityTaskHeartbeatByID(heartbeatRequest)
268
+ send_RecordActivityTaskHeartbeatByID(heartbeatRequest)
269
+ return recv_RecordActivityTaskHeartbeatByID()
270
+ end
271
+
272
+ def send_RecordActivityTaskHeartbeatByID(heartbeatRequest)
273
+ send_message('RecordActivityTaskHeartbeatByID', RecordActivityTaskHeartbeatByID_args, :heartbeatRequest => heartbeatRequest)
274
+ end
275
+
276
+ def recv_RecordActivityTaskHeartbeatByID()
277
+ result = receive_message(RecordActivityTaskHeartbeatByID_result)
278
+ return result.success unless result.success.nil?
279
+ raise result.badRequestError unless result.badRequestError.nil?
280
+ raise result.internalServiceError unless result.internalServiceError.nil?
281
+ raise result.entityNotExistError unless result.entityNotExistError.nil?
282
+ raise result.domainNotActiveError unless result.domainNotActiveError.nil?
283
+ raise result.limitExceededError unless result.limitExceededError.nil?
284
+ raise result.serviceBusyError unless result.serviceBusyError.nil?
285
+ raise result.clientVersionNotSupportedError unless result.clientVersionNotSupportedError.nil?
286
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'RecordActivityTaskHeartbeatByID failed: unknown result')
287
+ end
288
+
289
+ def RespondActivityTaskCompleted(completeRequest)
290
+ send_RespondActivityTaskCompleted(completeRequest)
291
+ recv_RespondActivityTaskCompleted()
292
+ end
293
+
294
+ def send_RespondActivityTaskCompleted(completeRequest)
295
+ send_message('RespondActivityTaskCompleted', RespondActivityTaskCompleted_args, :completeRequest => completeRequest)
296
+ end
297
+
298
+ def recv_RespondActivityTaskCompleted()
299
+ result = receive_message(RespondActivityTaskCompleted_result)
300
+ raise result.badRequestError unless result.badRequestError.nil?
301
+ raise result.internalServiceError unless result.internalServiceError.nil?
302
+ raise result.entityNotExistError unless result.entityNotExistError.nil?
303
+ raise result.domainNotActiveError unless result.domainNotActiveError.nil?
304
+ raise result.limitExceededError unless result.limitExceededError.nil?
305
+ raise result.serviceBusyError unless result.serviceBusyError.nil?
306
+ raise result.clientVersionNotSupportedError unless result.clientVersionNotSupportedError.nil?
307
+ return
308
+ end
309
+
310
+ def RespondActivityTaskCompletedByID(completeRequest)
311
+ send_RespondActivityTaskCompletedByID(completeRequest)
312
+ recv_RespondActivityTaskCompletedByID()
313
+ end
314
+
315
+ def send_RespondActivityTaskCompletedByID(completeRequest)
316
+ send_message('RespondActivityTaskCompletedByID', RespondActivityTaskCompletedByID_args, :completeRequest => completeRequest)
317
+ end
318
+
319
+ def recv_RespondActivityTaskCompletedByID()
320
+ result = receive_message(RespondActivityTaskCompletedByID_result)
321
+ raise result.badRequestError unless result.badRequestError.nil?
322
+ raise result.internalServiceError unless result.internalServiceError.nil?
323
+ raise result.entityNotExistError unless result.entityNotExistError.nil?
324
+ raise result.domainNotActiveError unless result.domainNotActiveError.nil?
325
+ raise result.limitExceededError unless result.limitExceededError.nil?
326
+ raise result.serviceBusyError unless result.serviceBusyError.nil?
327
+ raise result.clientVersionNotSupportedError unless result.clientVersionNotSupportedError.nil?
328
+ return
329
+ end
330
+
331
+ def RespondActivityTaskFailed(failRequest)
332
+ send_RespondActivityTaskFailed(failRequest)
333
+ recv_RespondActivityTaskFailed()
334
+ end
335
+
336
+ def send_RespondActivityTaskFailed(failRequest)
337
+ send_message('RespondActivityTaskFailed', RespondActivityTaskFailed_args, :failRequest => failRequest)
338
+ end
339
+
340
+ def recv_RespondActivityTaskFailed()
341
+ result = receive_message(RespondActivityTaskFailed_result)
342
+ raise result.badRequestError unless result.badRequestError.nil?
343
+ raise result.internalServiceError unless result.internalServiceError.nil?
344
+ raise result.entityNotExistError unless result.entityNotExistError.nil?
345
+ raise result.domainNotActiveError unless result.domainNotActiveError.nil?
346
+ raise result.limitExceededError unless result.limitExceededError.nil?
347
+ raise result.serviceBusyError unless result.serviceBusyError.nil?
348
+ raise result.clientVersionNotSupportedError unless result.clientVersionNotSupportedError.nil?
349
+ return
350
+ end
351
+
352
+ def RespondActivityTaskFailedByID(failRequest)
353
+ send_RespondActivityTaskFailedByID(failRequest)
354
+ recv_RespondActivityTaskFailedByID()
355
+ end
356
+
357
+ def send_RespondActivityTaskFailedByID(failRequest)
358
+ send_message('RespondActivityTaskFailedByID', RespondActivityTaskFailedByID_args, :failRequest => failRequest)
359
+ end
360
+
361
+ def recv_RespondActivityTaskFailedByID()
362
+ result = receive_message(RespondActivityTaskFailedByID_result)
363
+ raise result.badRequestError unless result.badRequestError.nil?
364
+ raise result.internalServiceError unless result.internalServiceError.nil?
365
+ raise result.entityNotExistError unless result.entityNotExistError.nil?
366
+ raise result.domainNotActiveError unless result.domainNotActiveError.nil?
367
+ raise result.limitExceededError unless result.limitExceededError.nil?
368
+ raise result.serviceBusyError unless result.serviceBusyError.nil?
369
+ raise result.clientVersionNotSupportedError unless result.clientVersionNotSupportedError.nil?
370
+ return
371
+ end
372
+
373
+ def RespondActivityTaskCanceled(canceledRequest)
374
+ send_RespondActivityTaskCanceled(canceledRequest)
375
+ recv_RespondActivityTaskCanceled()
376
+ end
377
+
378
+ def send_RespondActivityTaskCanceled(canceledRequest)
379
+ send_message('RespondActivityTaskCanceled', RespondActivityTaskCanceled_args, :canceledRequest => canceledRequest)
380
+ end
381
+
382
+ def recv_RespondActivityTaskCanceled()
383
+ result = receive_message(RespondActivityTaskCanceled_result)
384
+ raise result.badRequestError unless result.badRequestError.nil?
385
+ raise result.internalServiceError unless result.internalServiceError.nil?
386
+ raise result.entityNotExistError unless result.entityNotExistError.nil?
387
+ raise result.domainNotActiveError unless result.domainNotActiveError.nil?
388
+ raise result.limitExceededError unless result.limitExceededError.nil?
389
+ raise result.serviceBusyError unless result.serviceBusyError.nil?
390
+ raise result.clientVersionNotSupportedError unless result.clientVersionNotSupportedError.nil?
391
+ return
392
+ end
393
+
394
+ def RespondActivityTaskCanceledByID(canceledRequest)
395
+ send_RespondActivityTaskCanceledByID(canceledRequest)
396
+ recv_RespondActivityTaskCanceledByID()
397
+ end
398
+
399
+ def send_RespondActivityTaskCanceledByID(canceledRequest)
400
+ send_message('RespondActivityTaskCanceledByID', RespondActivityTaskCanceledByID_args, :canceledRequest => canceledRequest)
401
+ end
402
+
403
+ def recv_RespondActivityTaskCanceledByID()
404
+ result = receive_message(RespondActivityTaskCanceledByID_result)
405
+ raise result.badRequestError unless result.badRequestError.nil?
406
+ raise result.internalServiceError unless result.internalServiceError.nil?
407
+ raise result.entityNotExistError unless result.entityNotExistError.nil?
408
+ raise result.domainNotActiveError unless result.domainNotActiveError.nil?
409
+ raise result.limitExceededError unless result.limitExceededError.nil?
410
+ raise result.serviceBusyError unless result.serviceBusyError.nil?
411
+ raise result.clientVersionNotSupportedError unless result.clientVersionNotSupportedError.nil?
412
+ return
413
+ end
414
+
415
+ def RequestCancelWorkflowExecution(cancelRequest)
416
+ send_RequestCancelWorkflowExecution(cancelRequest)
417
+ recv_RequestCancelWorkflowExecution()
418
+ end
419
+
420
+ def send_RequestCancelWorkflowExecution(cancelRequest)
421
+ send_message('RequestCancelWorkflowExecution', RequestCancelWorkflowExecution_args, :cancelRequest => cancelRequest)
422
+ end
423
+
424
+ def recv_RequestCancelWorkflowExecution()
425
+ result = receive_message(RequestCancelWorkflowExecution_result)
426
+ raise result.badRequestError unless result.badRequestError.nil?
427
+ raise result.internalServiceError unless result.internalServiceError.nil?
428
+ raise result.entityNotExistError unless result.entityNotExistError.nil?
429
+ raise result.cancellationAlreadyRequestedError unless result.cancellationAlreadyRequestedError.nil?
430
+ raise result.serviceBusyError unless result.serviceBusyError.nil?
431
+ raise result.domainNotActiveError unless result.domainNotActiveError.nil?
432
+ raise result.limitExceededError unless result.limitExceededError.nil?
433
+ raise result.clientVersionNotSupportedError unless result.clientVersionNotSupportedError.nil?
434
+ return
435
+ end
436
+
437
+ def SignalWorkflowExecution(signalRequest)
438
+ send_SignalWorkflowExecution(signalRequest)
439
+ recv_SignalWorkflowExecution()
440
+ end
441
+
442
+ def send_SignalWorkflowExecution(signalRequest)
443
+ send_message('SignalWorkflowExecution', SignalWorkflowExecution_args, :signalRequest => signalRequest)
444
+ end
445
+
446
+ def recv_SignalWorkflowExecution()
447
+ result = receive_message(SignalWorkflowExecution_result)
448
+ raise result.badRequestError unless result.badRequestError.nil?
449
+ raise result.internalServiceError unless result.internalServiceError.nil?
450
+ raise result.entityNotExistError unless result.entityNotExistError.nil?
451
+ raise result.serviceBusyError unless result.serviceBusyError.nil?
452
+ raise result.domainNotActiveError unless result.domainNotActiveError.nil?
453
+ raise result.limitExceededError unless result.limitExceededError.nil?
454
+ raise result.clientVersionNotSupportedError unless result.clientVersionNotSupportedError.nil?
455
+ return
456
+ end
457
+
458
+ def SignalWithStartWorkflowExecution(signalWithStartRequest)
459
+ send_SignalWithStartWorkflowExecution(signalWithStartRequest)
460
+ return recv_SignalWithStartWorkflowExecution()
461
+ end
462
+
463
+ def send_SignalWithStartWorkflowExecution(signalWithStartRequest)
464
+ send_message('SignalWithStartWorkflowExecution', SignalWithStartWorkflowExecution_args, :signalWithStartRequest => signalWithStartRequest)
465
+ end
466
+
467
+ def recv_SignalWithStartWorkflowExecution()
468
+ result = receive_message(SignalWithStartWorkflowExecution_result)
469
+ return result.success unless result.success.nil?
470
+ raise result.badRequestError unless result.badRequestError.nil?
471
+ raise result.internalServiceError unless result.internalServiceError.nil?
472
+ raise result.entityNotExistError unless result.entityNotExistError.nil?
473
+ raise result.serviceBusyError unless result.serviceBusyError.nil?
474
+ raise result.domainNotActiveError unless result.domainNotActiveError.nil?
475
+ raise result.limitExceededError unless result.limitExceededError.nil?
476
+ raise result.workflowAlreadyStartedError unless result.workflowAlreadyStartedError.nil?
477
+ raise result.clientVersionNotSupportedError unless result.clientVersionNotSupportedError.nil?
478
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'SignalWithStartWorkflowExecution failed: unknown result')
479
+ end
480
+
481
+ def ResetWorkflowExecution(resetRequest)
482
+ send_ResetWorkflowExecution(resetRequest)
483
+ return recv_ResetWorkflowExecution()
484
+ end
485
+
486
+ def send_ResetWorkflowExecution(resetRequest)
487
+ send_message('ResetWorkflowExecution', ResetWorkflowExecution_args, :resetRequest => resetRequest)
488
+ end
489
+
490
+ def recv_ResetWorkflowExecution()
491
+ result = receive_message(ResetWorkflowExecution_result)
492
+ return result.success unless result.success.nil?
493
+ raise result.badRequestError unless result.badRequestError.nil?
494
+ raise result.internalServiceError unless result.internalServiceError.nil?
495
+ raise result.entityNotExistError unless result.entityNotExistError.nil?
496
+ raise result.serviceBusyError unless result.serviceBusyError.nil?
497
+ raise result.domainNotActiveError unless result.domainNotActiveError.nil?
498
+ raise result.limitExceededError unless result.limitExceededError.nil?
499
+ raise result.clientVersionNotSupportedError unless result.clientVersionNotSupportedError.nil?
500
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'ResetWorkflowExecution failed: unknown result')
501
+ end
502
+
503
+ def TerminateWorkflowExecution(terminateRequest)
504
+ send_TerminateWorkflowExecution(terminateRequest)
505
+ recv_TerminateWorkflowExecution()
506
+ end
507
+
508
+ def send_TerminateWorkflowExecution(terminateRequest)
509
+ send_message('TerminateWorkflowExecution', TerminateWorkflowExecution_args, :terminateRequest => terminateRequest)
510
+ end
511
+
512
+ def recv_TerminateWorkflowExecution()
513
+ result = receive_message(TerminateWorkflowExecution_result)
514
+ raise result.badRequestError unless result.badRequestError.nil?
515
+ raise result.internalServiceError unless result.internalServiceError.nil?
516
+ raise result.entityNotExistError unless result.entityNotExistError.nil?
517
+ raise result.serviceBusyError unless result.serviceBusyError.nil?
518
+ raise result.domainNotActiveError unless result.domainNotActiveError.nil?
519
+ raise result.limitExceededError unless result.limitExceededError.nil?
520
+ raise result.clientVersionNotSupportedError unless result.clientVersionNotSupportedError.nil?
521
+ return
522
+ end
523
+
524
+ def ListOpenWorkflowExecutions(listRequest)
525
+ send_ListOpenWorkflowExecutions(listRequest)
526
+ return recv_ListOpenWorkflowExecutions()
527
+ end
528
+
529
+ def send_ListOpenWorkflowExecutions(listRequest)
530
+ send_message('ListOpenWorkflowExecutions', ListOpenWorkflowExecutions_args, :listRequest => listRequest)
531
+ end
532
+
533
+ def recv_ListOpenWorkflowExecutions()
534
+ result = receive_message(ListOpenWorkflowExecutions_result)
535
+ return result.success unless result.success.nil?
536
+ raise result.badRequestError unless result.badRequestError.nil?
537
+ raise result.internalServiceError unless result.internalServiceError.nil?
538
+ raise result.entityNotExistError unless result.entityNotExistError.nil?
539
+ raise result.serviceBusyError unless result.serviceBusyError.nil?
540
+ raise result.limitExceededError unless result.limitExceededError.nil?
541
+ raise result.clientVersionNotSupportedError unless result.clientVersionNotSupportedError.nil?
542
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'ListOpenWorkflowExecutions failed: unknown result')
543
+ end
544
+
545
+ def ListClosedWorkflowExecutions(listRequest)
546
+ send_ListClosedWorkflowExecutions(listRequest)
547
+ return recv_ListClosedWorkflowExecutions()
548
+ end
549
+
550
+ def send_ListClosedWorkflowExecutions(listRequest)
551
+ send_message('ListClosedWorkflowExecutions', ListClosedWorkflowExecutions_args, :listRequest => listRequest)
552
+ end
553
+
554
+ def recv_ListClosedWorkflowExecutions()
555
+ result = receive_message(ListClosedWorkflowExecutions_result)
556
+ return result.success unless result.success.nil?
557
+ raise result.badRequestError unless result.badRequestError.nil?
558
+ raise result.internalServiceError unless result.internalServiceError.nil?
559
+ raise result.entityNotExistError unless result.entityNotExistError.nil?
560
+ raise result.serviceBusyError unless result.serviceBusyError.nil?
561
+ raise result.clientVersionNotSupportedError unless result.clientVersionNotSupportedError.nil?
562
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'ListClosedWorkflowExecutions failed: unknown result')
563
+ end
564
+
565
+ def ListWorkflowExecutions(listRequest)
566
+ send_ListWorkflowExecutions(listRequest)
567
+ return recv_ListWorkflowExecutions()
568
+ end
569
+
570
+ def send_ListWorkflowExecutions(listRequest)
571
+ send_message('ListWorkflowExecutions', ListWorkflowExecutions_args, :listRequest => listRequest)
572
+ end
573
+
574
+ def recv_ListWorkflowExecutions()
575
+ result = receive_message(ListWorkflowExecutions_result)
576
+ return result.success unless result.success.nil?
577
+ raise result.badRequestError unless result.badRequestError.nil?
578
+ raise result.internalServiceError unless result.internalServiceError.nil?
579
+ raise result.entityNotExistError unless result.entityNotExistError.nil?
580
+ raise result.serviceBusyError unless result.serviceBusyError.nil?
581
+ raise result.clientVersionNotSupportedError unless result.clientVersionNotSupportedError.nil?
582
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'ListWorkflowExecutions failed: unknown result')
583
+ end
584
+
585
+ def ListArchivedWorkflowExecutions(listRequest)
586
+ send_ListArchivedWorkflowExecutions(listRequest)
587
+ return recv_ListArchivedWorkflowExecutions()
588
+ end
589
+
590
+ def send_ListArchivedWorkflowExecutions(listRequest)
591
+ send_message('ListArchivedWorkflowExecutions', ListArchivedWorkflowExecutions_args, :listRequest => listRequest)
592
+ end
593
+
594
+ def recv_ListArchivedWorkflowExecutions()
595
+ result = receive_message(ListArchivedWorkflowExecutions_result)
596
+ return result.success unless result.success.nil?
597
+ raise result.badRequestError unless result.badRequestError.nil?
598
+ raise result.internalServiceError unless result.internalServiceError.nil?
599
+ raise result.entityNotExistError unless result.entityNotExistError.nil?
600
+ raise result.serviceBusyError unless result.serviceBusyError.nil?
601
+ raise result.clientVersionNotSupportedError unless result.clientVersionNotSupportedError.nil?
602
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'ListArchivedWorkflowExecutions failed: unknown result')
603
+ end
604
+
605
+ def ScanWorkflowExecutions(listRequest)
606
+ send_ScanWorkflowExecutions(listRequest)
607
+ return recv_ScanWorkflowExecutions()
608
+ end
609
+
610
+ def send_ScanWorkflowExecutions(listRequest)
611
+ send_message('ScanWorkflowExecutions', ScanWorkflowExecutions_args, :listRequest => listRequest)
612
+ end
613
+
614
+ def recv_ScanWorkflowExecutions()
615
+ result = receive_message(ScanWorkflowExecutions_result)
616
+ return result.success unless result.success.nil?
617
+ raise result.badRequestError unless result.badRequestError.nil?
618
+ raise result.internalServiceError unless result.internalServiceError.nil?
619
+ raise result.entityNotExistError unless result.entityNotExistError.nil?
620
+ raise result.serviceBusyError unless result.serviceBusyError.nil?
621
+ raise result.clientVersionNotSupportedError unless result.clientVersionNotSupportedError.nil?
622
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'ScanWorkflowExecutions failed: unknown result')
623
+ end
624
+
625
+ def CountWorkflowExecutions(countRequest)
626
+ send_CountWorkflowExecutions(countRequest)
627
+ return recv_CountWorkflowExecutions()
628
+ end
629
+
630
+ def send_CountWorkflowExecutions(countRequest)
631
+ send_message('CountWorkflowExecutions', CountWorkflowExecutions_args, :countRequest => countRequest)
632
+ end
633
+
634
+ def recv_CountWorkflowExecutions()
635
+ result = receive_message(CountWorkflowExecutions_result)
636
+ return result.success unless result.success.nil?
637
+ raise result.badRequestError unless result.badRequestError.nil?
638
+ raise result.internalServiceError unless result.internalServiceError.nil?
639
+ raise result.entityNotExistError unless result.entityNotExistError.nil?
640
+ raise result.serviceBusyError unless result.serviceBusyError.nil?
641
+ raise result.clientVersionNotSupportedError unless result.clientVersionNotSupportedError.nil?
642
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'CountWorkflowExecutions failed: unknown result')
643
+ end
644
+
645
+ def GetSearchAttributes()
646
+ send_GetSearchAttributes()
647
+ return recv_GetSearchAttributes()
648
+ end
649
+
650
+ def send_GetSearchAttributes()
651
+ send_message('GetSearchAttributes', GetSearchAttributes_args)
652
+ end
653
+
654
+ def recv_GetSearchAttributes()
655
+ result = receive_message(GetSearchAttributes_result)
656
+ return result.success unless result.success.nil?
657
+ raise result.internalServiceError unless result.internalServiceError.nil?
658
+ raise result.serviceBusyError unless result.serviceBusyError.nil?
659
+ raise result.clientVersionNotSupportedError unless result.clientVersionNotSupportedError.nil?
660
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'GetSearchAttributes failed: unknown result')
661
+ end
662
+
663
+ def RespondQueryTaskCompleted(completeRequest)
664
+ send_RespondQueryTaskCompleted(completeRequest)
665
+ recv_RespondQueryTaskCompleted()
666
+ end
667
+
668
+ def send_RespondQueryTaskCompleted(completeRequest)
669
+ send_message('RespondQueryTaskCompleted', RespondQueryTaskCompleted_args, :completeRequest => completeRequest)
670
+ end
671
+
672
+ def recv_RespondQueryTaskCompleted()
673
+ result = receive_message(RespondQueryTaskCompleted_result)
674
+ raise result.badRequestError unless result.badRequestError.nil?
675
+ raise result.internalServiceError unless result.internalServiceError.nil?
676
+ raise result.entityNotExistError unless result.entityNotExistError.nil?
677
+ raise result.limitExceededError unless result.limitExceededError.nil?
678
+ raise result.serviceBusyError unless result.serviceBusyError.nil?
679
+ raise result.domainNotActiveError unless result.domainNotActiveError.nil?
680
+ raise result.clientVersionNotSupportedError unless result.clientVersionNotSupportedError.nil?
681
+ return
682
+ end
683
+
684
+ def ResetStickyTaskList(resetRequest)
685
+ send_ResetStickyTaskList(resetRequest)
686
+ return recv_ResetStickyTaskList()
687
+ end
688
+
689
+ def send_ResetStickyTaskList(resetRequest)
690
+ send_message('ResetStickyTaskList', ResetStickyTaskList_args, :resetRequest => resetRequest)
691
+ end
692
+
693
+ def recv_ResetStickyTaskList()
694
+ result = receive_message(ResetStickyTaskList_result)
695
+ return result.success unless result.success.nil?
696
+ raise result.badRequestError unless result.badRequestError.nil?
697
+ raise result.internalServiceError unless result.internalServiceError.nil?
698
+ raise result.entityNotExistError unless result.entityNotExistError.nil?
699
+ raise result.limitExceededError unless result.limitExceededError.nil?
700
+ raise result.serviceBusyError unless result.serviceBusyError.nil?
701
+ raise result.domainNotActiveError unless result.domainNotActiveError.nil?
702
+ raise result.clientVersionNotSupportedError unless result.clientVersionNotSupportedError.nil?
703
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'ResetStickyTaskList failed: unknown result')
704
+ end
705
+
706
+ def QueryWorkflow(queryRequest)
707
+ send_QueryWorkflow(queryRequest)
708
+ return recv_QueryWorkflow()
709
+ end
710
+
711
+ def send_QueryWorkflow(queryRequest)
712
+ send_message('QueryWorkflow', QueryWorkflow_args, :queryRequest => queryRequest)
713
+ end
714
+
715
+ def recv_QueryWorkflow()
716
+ result = receive_message(QueryWorkflow_result)
717
+ return result.success unless result.success.nil?
718
+ raise result.badRequestError unless result.badRequestError.nil?
719
+ raise result.internalServiceError unless result.internalServiceError.nil?
720
+ raise result.entityNotExistError unless result.entityNotExistError.nil?
721
+ raise result.queryFailedError unless result.queryFailedError.nil?
722
+ raise result.limitExceededError unless result.limitExceededError.nil?
723
+ raise result.serviceBusyError unless result.serviceBusyError.nil?
724
+ raise result.clientVersionNotSupportedError unless result.clientVersionNotSupportedError.nil?
725
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'QueryWorkflow failed: unknown result')
726
+ end
727
+
728
+ def DescribeWorkflowExecution(describeRequest)
729
+ send_DescribeWorkflowExecution(describeRequest)
730
+ return recv_DescribeWorkflowExecution()
731
+ end
732
+
733
+ def send_DescribeWorkflowExecution(describeRequest)
734
+ send_message('DescribeWorkflowExecution', DescribeWorkflowExecution_args, :describeRequest => describeRequest)
735
+ end
736
+
737
+ def recv_DescribeWorkflowExecution()
738
+ result = receive_message(DescribeWorkflowExecution_result)
739
+ return result.success unless result.success.nil?
740
+ raise result.badRequestError unless result.badRequestError.nil?
741
+ raise result.internalServiceError unless result.internalServiceError.nil?
742
+ raise result.entityNotExistError unless result.entityNotExistError.nil?
743
+ raise result.limitExceededError unless result.limitExceededError.nil?
744
+ raise result.serviceBusyError unless result.serviceBusyError.nil?
745
+ raise result.clientVersionNotSupportedError unless result.clientVersionNotSupportedError.nil?
746
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'DescribeWorkflowExecution failed: unknown result')
747
+ end
748
+
749
+ def DescribeTaskList(request)
750
+ send_DescribeTaskList(request)
751
+ return recv_DescribeTaskList()
752
+ end
753
+
754
+ def send_DescribeTaskList(request)
755
+ send_message('DescribeTaskList', DescribeTaskList_args, :request => request)
756
+ end
757
+
758
+ def recv_DescribeTaskList()
759
+ result = receive_message(DescribeTaskList_result)
760
+ return result.success unless result.success.nil?
761
+ raise result.badRequestError unless result.badRequestError.nil?
762
+ raise result.internalServiceError unless result.internalServiceError.nil?
763
+ raise result.entityNotExistError unless result.entityNotExistError.nil?
764
+ raise result.limitExceededError unless result.limitExceededError.nil?
765
+ raise result.serviceBusyError unless result.serviceBusyError.nil?
766
+ raise result.clientVersionNotSupportedError unless result.clientVersionNotSupportedError.nil?
767
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'DescribeTaskList failed: unknown result')
768
+ end
769
+
770
+ end
771
+
772
+ class Processor
773
+ include ::Thrift::Processor
774
+
775
+ def process_RegisterDomain(seqid, iprot, oprot)
776
+ args = read_args(iprot, RegisterDomain_args)
777
+ result = RegisterDomain_result.new()
778
+ begin
779
+ @handler.RegisterDomain(args.registerRequest)
780
+ rescue ::CadenceThrift::BadRequestError => badRequestError
781
+ result.badRequestError = badRequestError
782
+ rescue ::CadenceThrift::InternalServiceError => internalServiceError
783
+ result.internalServiceError = internalServiceError
784
+ rescue ::CadenceThrift::DomainAlreadyExistsError => domainExistsError
785
+ result.domainExistsError = domainExistsError
786
+ rescue ::CadenceThrift::ServiceBusyError => serviceBusyError
787
+ result.serviceBusyError = serviceBusyError
788
+ rescue ::CadenceThrift::ClientVersionNotSupportedError => clientVersionNotSupportedError
789
+ result.clientVersionNotSupportedError = clientVersionNotSupportedError
790
+ end
791
+ write_result(result, oprot, 'RegisterDomain', seqid)
792
+ end
793
+
794
+ def process_DescribeDomain(seqid, iprot, oprot)
795
+ args = read_args(iprot, DescribeDomain_args)
796
+ result = DescribeDomain_result.new()
797
+ begin
798
+ result.success = @handler.DescribeDomain(args.describeRequest)
799
+ rescue ::CadenceThrift::BadRequestError => badRequestError
800
+ result.badRequestError = badRequestError
801
+ rescue ::CadenceThrift::InternalServiceError => internalServiceError
802
+ result.internalServiceError = internalServiceError
803
+ rescue ::CadenceThrift::EntityNotExistsError => entityNotExistError
804
+ result.entityNotExistError = entityNotExistError
805
+ rescue ::CadenceThrift::ServiceBusyError => serviceBusyError
806
+ result.serviceBusyError = serviceBusyError
807
+ rescue ::CadenceThrift::ClientVersionNotSupportedError => clientVersionNotSupportedError
808
+ result.clientVersionNotSupportedError = clientVersionNotSupportedError
809
+ end
810
+ write_result(result, oprot, 'DescribeDomain', seqid)
811
+ end
812
+
813
+ def process_ListDomains(seqid, iprot, oprot)
814
+ args = read_args(iprot, ListDomains_args)
815
+ result = ListDomains_result.new()
816
+ begin
817
+ result.success = @handler.ListDomains(args.listRequest)
818
+ rescue ::CadenceThrift::BadRequestError => badRequestError
819
+ result.badRequestError = badRequestError
820
+ rescue ::CadenceThrift::InternalServiceError => internalServiceError
821
+ result.internalServiceError = internalServiceError
822
+ rescue ::CadenceThrift::EntityNotExistsError => entityNotExistError
823
+ result.entityNotExistError = entityNotExistError
824
+ rescue ::CadenceThrift::ServiceBusyError => serviceBusyError
825
+ result.serviceBusyError = serviceBusyError
826
+ rescue ::CadenceThrift::ClientVersionNotSupportedError => clientVersionNotSupportedError
827
+ result.clientVersionNotSupportedError = clientVersionNotSupportedError
828
+ end
829
+ write_result(result, oprot, 'ListDomains', seqid)
830
+ end
831
+
832
+ def process_UpdateDomain(seqid, iprot, oprot)
833
+ args = read_args(iprot, UpdateDomain_args)
834
+ result = UpdateDomain_result.new()
835
+ begin
836
+ result.success = @handler.UpdateDomain(args.updateRequest)
837
+ rescue ::CadenceThrift::BadRequestError => badRequestError
838
+ result.badRequestError = badRequestError
839
+ rescue ::CadenceThrift::InternalServiceError => internalServiceError
840
+ result.internalServiceError = internalServiceError
841
+ rescue ::CadenceThrift::EntityNotExistsError => entityNotExistError
842
+ result.entityNotExistError = entityNotExistError
843
+ rescue ::CadenceThrift::ServiceBusyError => serviceBusyError
844
+ result.serviceBusyError = serviceBusyError
845
+ rescue ::CadenceThrift::DomainNotActiveError => domainNotActiveError
846
+ result.domainNotActiveError = domainNotActiveError
847
+ rescue ::CadenceThrift::ClientVersionNotSupportedError => clientVersionNotSupportedError
848
+ result.clientVersionNotSupportedError = clientVersionNotSupportedError
849
+ end
850
+ write_result(result, oprot, 'UpdateDomain', seqid)
851
+ end
852
+
853
+ def process_DeprecateDomain(seqid, iprot, oprot)
854
+ args = read_args(iprot, DeprecateDomain_args)
855
+ result = DeprecateDomain_result.new()
856
+ begin
857
+ @handler.DeprecateDomain(args.deprecateRequest)
858
+ rescue ::CadenceThrift::BadRequestError => badRequestError
859
+ result.badRequestError = badRequestError
860
+ rescue ::CadenceThrift::InternalServiceError => internalServiceError
861
+ result.internalServiceError = internalServiceError
862
+ rescue ::CadenceThrift::EntityNotExistsError => entityNotExistError
863
+ result.entityNotExistError = entityNotExistError
864
+ rescue ::CadenceThrift::ServiceBusyError => serviceBusyError
865
+ result.serviceBusyError = serviceBusyError
866
+ rescue ::CadenceThrift::DomainNotActiveError => domainNotActiveError
867
+ result.domainNotActiveError = domainNotActiveError
868
+ rescue ::CadenceThrift::ClientVersionNotSupportedError => clientVersionNotSupportedError
869
+ result.clientVersionNotSupportedError = clientVersionNotSupportedError
870
+ end
871
+ write_result(result, oprot, 'DeprecateDomain', seqid)
872
+ end
873
+
874
+ def process_StartWorkflowExecution(seqid, iprot, oprot)
875
+ args = read_args(iprot, StartWorkflowExecution_args)
876
+ result = StartWorkflowExecution_result.new()
877
+ begin
878
+ result.success = @handler.StartWorkflowExecution(args.startRequest)
879
+ rescue ::CadenceThrift::BadRequestError => badRequestError
880
+ result.badRequestError = badRequestError
881
+ rescue ::CadenceThrift::InternalServiceError => internalServiceError
882
+ result.internalServiceError = internalServiceError
883
+ rescue ::CadenceThrift::WorkflowExecutionAlreadyStartedError => sessionAlreadyExistError
884
+ result.sessionAlreadyExistError = sessionAlreadyExistError
885
+ rescue ::CadenceThrift::ServiceBusyError => serviceBusyError
886
+ result.serviceBusyError = serviceBusyError
887
+ rescue ::CadenceThrift::DomainNotActiveError => domainNotActiveError
888
+ result.domainNotActiveError = domainNotActiveError
889
+ rescue ::CadenceThrift::LimitExceededError => limitExceededError
890
+ result.limitExceededError = limitExceededError
891
+ rescue ::CadenceThrift::EntityNotExistsError => entityNotExistError
892
+ result.entityNotExistError = entityNotExistError
893
+ rescue ::CadenceThrift::ClientVersionNotSupportedError => clientVersionNotSupportedError
894
+ result.clientVersionNotSupportedError = clientVersionNotSupportedError
895
+ end
896
+ write_result(result, oprot, 'StartWorkflowExecution', seqid)
897
+ end
898
+
899
+ def process_GetWorkflowExecutionHistory(seqid, iprot, oprot)
900
+ args = read_args(iprot, GetWorkflowExecutionHistory_args)
901
+ result = GetWorkflowExecutionHistory_result.new()
902
+ begin
903
+ result.success = @handler.GetWorkflowExecutionHistory(args.getRequest)
904
+ rescue ::CadenceThrift::BadRequestError => badRequestError
905
+ result.badRequestError = badRequestError
906
+ rescue ::CadenceThrift::InternalServiceError => internalServiceError
907
+ result.internalServiceError = internalServiceError
908
+ rescue ::CadenceThrift::EntityNotExistsError => entityNotExistError
909
+ result.entityNotExistError = entityNotExistError
910
+ rescue ::CadenceThrift::ServiceBusyError => serviceBusyError
911
+ result.serviceBusyError = serviceBusyError
912
+ rescue ::CadenceThrift::ClientVersionNotSupportedError => clientVersionNotSupportedError
913
+ result.clientVersionNotSupportedError = clientVersionNotSupportedError
914
+ end
915
+ write_result(result, oprot, 'GetWorkflowExecutionHistory', seqid)
916
+ end
917
+
918
+ def process_PollForDecisionTask(seqid, iprot, oprot)
919
+ args = read_args(iprot, PollForDecisionTask_args)
920
+ result = PollForDecisionTask_result.new()
921
+ begin
922
+ result.success = @handler.PollForDecisionTask(args.pollRequest)
923
+ rescue ::CadenceThrift::BadRequestError => badRequestError
924
+ result.badRequestError = badRequestError
925
+ rescue ::CadenceThrift::InternalServiceError => internalServiceError
926
+ result.internalServiceError = internalServiceError
927
+ rescue ::CadenceThrift::ServiceBusyError => serviceBusyError
928
+ result.serviceBusyError = serviceBusyError
929
+ rescue ::CadenceThrift::LimitExceededError => limitExceededError
930
+ result.limitExceededError = limitExceededError
931
+ rescue ::CadenceThrift::EntityNotExistsError => entityNotExistError
932
+ result.entityNotExistError = entityNotExistError
933
+ rescue ::CadenceThrift::DomainNotActiveError => domainNotActiveError
934
+ result.domainNotActiveError = domainNotActiveError
935
+ rescue ::CadenceThrift::ClientVersionNotSupportedError => clientVersionNotSupportedError
936
+ result.clientVersionNotSupportedError = clientVersionNotSupportedError
937
+ end
938
+ write_result(result, oprot, 'PollForDecisionTask', seqid)
939
+ end
940
+
941
+ def process_RespondDecisionTaskCompleted(seqid, iprot, oprot)
942
+ args = read_args(iprot, RespondDecisionTaskCompleted_args)
943
+ result = RespondDecisionTaskCompleted_result.new()
944
+ begin
945
+ result.success = @handler.RespondDecisionTaskCompleted(args.completeRequest)
946
+ rescue ::CadenceThrift::BadRequestError => badRequestError
947
+ result.badRequestError = badRequestError
948
+ rescue ::CadenceThrift::InternalServiceError => internalServiceError
949
+ result.internalServiceError = internalServiceError
950
+ rescue ::CadenceThrift::EntityNotExistsError => entityNotExistError
951
+ result.entityNotExistError = entityNotExistError
952
+ rescue ::CadenceThrift::DomainNotActiveError => domainNotActiveError
953
+ result.domainNotActiveError = domainNotActiveError
954
+ rescue ::CadenceThrift::LimitExceededError => limitExceededError
955
+ result.limitExceededError = limitExceededError
956
+ rescue ::CadenceThrift::ServiceBusyError => serviceBusyError
957
+ result.serviceBusyError = serviceBusyError
958
+ rescue ::CadenceThrift::ClientVersionNotSupportedError => clientVersionNotSupportedError
959
+ result.clientVersionNotSupportedError = clientVersionNotSupportedError
960
+ end
961
+ write_result(result, oprot, 'RespondDecisionTaskCompleted', seqid)
962
+ end
963
+
964
+ def process_RespondDecisionTaskFailed(seqid, iprot, oprot)
965
+ args = read_args(iprot, RespondDecisionTaskFailed_args)
966
+ result = RespondDecisionTaskFailed_result.new()
967
+ begin
968
+ @handler.RespondDecisionTaskFailed(args.failedRequest)
969
+ rescue ::CadenceThrift::BadRequestError => badRequestError
970
+ result.badRequestError = badRequestError
971
+ rescue ::CadenceThrift::InternalServiceError => internalServiceError
972
+ result.internalServiceError = internalServiceError
973
+ rescue ::CadenceThrift::EntityNotExistsError => entityNotExistError
974
+ result.entityNotExistError = entityNotExistError
975
+ rescue ::CadenceThrift::DomainNotActiveError => domainNotActiveError
976
+ result.domainNotActiveError = domainNotActiveError
977
+ rescue ::CadenceThrift::LimitExceededError => limitExceededError
978
+ result.limitExceededError = limitExceededError
979
+ rescue ::CadenceThrift::ServiceBusyError => serviceBusyError
980
+ result.serviceBusyError = serviceBusyError
981
+ rescue ::CadenceThrift::ClientVersionNotSupportedError => clientVersionNotSupportedError
982
+ result.clientVersionNotSupportedError = clientVersionNotSupportedError
983
+ end
984
+ write_result(result, oprot, 'RespondDecisionTaskFailed', seqid)
985
+ end
986
+
987
+ def process_PollForActivityTask(seqid, iprot, oprot)
988
+ args = read_args(iprot, PollForActivityTask_args)
989
+ result = PollForActivityTask_result.new()
990
+ begin
991
+ result.success = @handler.PollForActivityTask(args.pollRequest)
992
+ rescue ::CadenceThrift::BadRequestError => badRequestError
993
+ result.badRequestError = badRequestError
994
+ rescue ::CadenceThrift::InternalServiceError => internalServiceError
995
+ result.internalServiceError = internalServiceError
996
+ rescue ::CadenceThrift::ServiceBusyError => serviceBusyError
997
+ result.serviceBusyError = serviceBusyError
998
+ rescue ::CadenceThrift::LimitExceededError => limitExceededError
999
+ result.limitExceededError = limitExceededError
1000
+ rescue ::CadenceThrift::EntityNotExistsError => entityNotExistError
1001
+ result.entityNotExistError = entityNotExistError
1002
+ rescue ::CadenceThrift::DomainNotActiveError => domainNotActiveError
1003
+ result.domainNotActiveError = domainNotActiveError
1004
+ rescue ::CadenceThrift::ClientVersionNotSupportedError => clientVersionNotSupportedError
1005
+ result.clientVersionNotSupportedError = clientVersionNotSupportedError
1006
+ end
1007
+ write_result(result, oprot, 'PollForActivityTask', seqid)
1008
+ end
1009
+
1010
+ def process_RecordActivityTaskHeartbeat(seqid, iprot, oprot)
1011
+ args = read_args(iprot, RecordActivityTaskHeartbeat_args)
1012
+ result = RecordActivityTaskHeartbeat_result.new()
1013
+ begin
1014
+ result.success = @handler.RecordActivityTaskHeartbeat(args.heartbeatRequest)
1015
+ rescue ::CadenceThrift::BadRequestError => badRequestError
1016
+ result.badRequestError = badRequestError
1017
+ rescue ::CadenceThrift::InternalServiceError => internalServiceError
1018
+ result.internalServiceError = internalServiceError
1019
+ rescue ::CadenceThrift::EntityNotExistsError => entityNotExistError
1020
+ result.entityNotExistError = entityNotExistError
1021
+ rescue ::CadenceThrift::DomainNotActiveError => domainNotActiveError
1022
+ result.domainNotActiveError = domainNotActiveError
1023
+ rescue ::CadenceThrift::LimitExceededError => limitExceededError
1024
+ result.limitExceededError = limitExceededError
1025
+ rescue ::CadenceThrift::ServiceBusyError => serviceBusyError
1026
+ result.serviceBusyError = serviceBusyError
1027
+ rescue ::CadenceThrift::ClientVersionNotSupportedError => clientVersionNotSupportedError
1028
+ result.clientVersionNotSupportedError = clientVersionNotSupportedError
1029
+ end
1030
+ write_result(result, oprot, 'RecordActivityTaskHeartbeat', seqid)
1031
+ end
1032
+
1033
+ def process_RecordActivityTaskHeartbeatByID(seqid, iprot, oprot)
1034
+ args = read_args(iprot, RecordActivityTaskHeartbeatByID_args)
1035
+ result = RecordActivityTaskHeartbeatByID_result.new()
1036
+ begin
1037
+ result.success = @handler.RecordActivityTaskHeartbeatByID(args.heartbeatRequest)
1038
+ rescue ::CadenceThrift::BadRequestError => badRequestError
1039
+ result.badRequestError = badRequestError
1040
+ rescue ::CadenceThrift::InternalServiceError => internalServiceError
1041
+ result.internalServiceError = internalServiceError
1042
+ rescue ::CadenceThrift::EntityNotExistsError => entityNotExistError
1043
+ result.entityNotExistError = entityNotExistError
1044
+ rescue ::CadenceThrift::DomainNotActiveError => domainNotActiveError
1045
+ result.domainNotActiveError = domainNotActiveError
1046
+ rescue ::CadenceThrift::LimitExceededError => limitExceededError
1047
+ result.limitExceededError = limitExceededError
1048
+ rescue ::CadenceThrift::ServiceBusyError => serviceBusyError
1049
+ result.serviceBusyError = serviceBusyError
1050
+ rescue ::CadenceThrift::ClientVersionNotSupportedError => clientVersionNotSupportedError
1051
+ result.clientVersionNotSupportedError = clientVersionNotSupportedError
1052
+ end
1053
+ write_result(result, oprot, 'RecordActivityTaskHeartbeatByID', seqid)
1054
+ end
1055
+
1056
+ def process_RespondActivityTaskCompleted(seqid, iprot, oprot)
1057
+ args = read_args(iprot, RespondActivityTaskCompleted_args)
1058
+ result = RespondActivityTaskCompleted_result.new()
1059
+ begin
1060
+ @handler.RespondActivityTaskCompleted(args.completeRequest)
1061
+ rescue ::CadenceThrift::BadRequestError => badRequestError
1062
+ result.badRequestError = badRequestError
1063
+ rescue ::CadenceThrift::InternalServiceError => internalServiceError
1064
+ result.internalServiceError = internalServiceError
1065
+ rescue ::CadenceThrift::EntityNotExistsError => entityNotExistError
1066
+ result.entityNotExistError = entityNotExistError
1067
+ rescue ::CadenceThrift::DomainNotActiveError => domainNotActiveError
1068
+ result.domainNotActiveError = domainNotActiveError
1069
+ rescue ::CadenceThrift::LimitExceededError => limitExceededError
1070
+ result.limitExceededError = limitExceededError
1071
+ rescue ::CadenceThrift::ServiceBusyError => serviceBusyError
1072
+ result.serviceBusyError = serviceBusyError
1073
+ rescue ::CadenceThrift::ClientVersionNotSupportedError => clientVersionNotSupportedError
1074
+ result.clientVersionNotSupportedError = clientVersionNotSupportedError
1075
+ end
1076
+ write_result(result, oprot, 'RespondActivityTaskCompleted', seqid)
1077
+ end
1078
+
1079
+ def process_RespondActivityTaskCompletedByID(seqid, iprot, oprot)
1080
+ args = read_args(iprot, RespondActivityTaskCompletedByID_args)
1081
+ result = RespondActivityTaskCompletedByID_result.new()
1082
+ begin
1083
+ @handler.RespondActivityTaskCompletedByID(args.completeRequest)
1084
+ rescue ::CadenceThrift::BadRequestError => badRequestError
1085
+ result.badRequestError = badRequestError
1086
+ rescue ::CadenceThrift::InternalServiceError => internalServiceError
1087
+ result.internalServiceError = internalServiceError
1088
+ rescue ::CadenceThrift::EntityNotExistsError => entityNotExistError
1089
+ result.entityNotExistError = entityNotExistError
1090
+ rescue ::CadenceThrift::DomainNotActiveError => domainNotActiveError
1091
+ result.domainNotActiveError = domainNotActiveError
1092
+ rescue ::CadenceThrift::LimitExceededError => limitExceededError
1093
+ result.limitExceededError = limitExceededError
1094
+ rescue ::CadenceThrift::ServiceBusyError => serviceBusyError
1095
+ result.serviceBusyError = serviceBusyError
1096
+ rescue ::CadenceThrift::ClientVersionNotSupportedError => clientVersionNotSupportedError
1097
+ result.clientVersionNotSupportedError = clientVersionNotSupportedError
1098
+ end
1099
+ write_result(result, oprot, 'RespondActivityTaskCompletedByID', seqid)
1100
+ end
1101
+
1102
+ def process_RespondActivityTaskFailed(seqid, iprot, oprot)
1103
+ args = read_args(iprot, RespondActivityTaskFailed_args)
1104
+ result = RespondActivityTaskFailed_result.new()
1105
+ begin
1106
+ @handler.RespondActivityTaskFailed(args.failRequest)
1107
+ rescue ::CadenceThrift::BadRequestError => badRequestError
1108
+ result.badRequestError = badRequestError
1109
+ rescue ::CadenceThrift::InternalServiceError => internalServiceError
1110
+ result.internalServiceError = internalServiceError
1111
+ rescue ::CadenceThrift::EntityNotExistsError => entityNotExistError
1112
+ result.entityNotExistError = entityNotExistError
1113
+ rescue ::CadenceThrift::DomainNotActiveError => domainNotActiveError
1114
+ result.domainNotActiveError = domainNotActiveError
1115
+ rescue ::CadenceThrift::LimitExceededError => limitExceededError
1116
+ result.limitExceededError = limitExceededError
1117
+ rescue ::CadenceThrift::ServiceBusyError => serviceBusyError
1118
+ result.serviceBusyError = serviceBusyError
1119
+ rescue ::CadenceThrift::ClientVersionNotSupportedError => clientVersionNotSupportedError
1120
+ result.clientVersionNotSupportedError = clientVersionNotSupportedError
1121
+ end
1122
+ write_result(result, oprot, 'RespondActivityTaskFailed', seqid)
1123
+ end
1124
+
1125
+ def process_RespondActivityTaskFailedByID(seqid, iprot, oprot)
1126
+ args = read_args(iprot, RespondActivityTaskFailedByID_args)
1127
+ result = RespondActivityTaskFailedByID_result.new()
1128
+ begin
1129
+ @handler.RespondActivityTaskFailedByID(args.failRequest)
1130
+ rescue ::CadenceThrift::BadRequestError => badRequestError
1131
+ result.badRequestError = badRequestError
1132
+ rescue ::CadenceThrift::InternalServiceError => internalServiceError
1133
+ result.internalServiceError = internalServiceError
1134
+ rescue ::CadenceThrift::EntityNotExistsError => entityNotExistError
1135
+ result.entityNotExistError = entityNotExistError
1136
+ rescue ::CadenceThrift::DomainNotActiveError => domainNotActiveError
1137
+ result.domainNotActiveError = domainNotActiveError
1138
+ rescue ::CadenceThrift::LimitExceededError => limitExceededError
1139
+ result.limitExceededError = limitExceededError
1140
+ rescue ::CadenceThrift::ServiceBusyError => serviceBusyError
1141
+ result.serviceBusyError = serviceBusyError
1142
+ rescue ::CadenceThrift::ClientVersionNotSupportedError => clientVersionNotSupportedError
1143
+ result.clientVersionNotSupportedError = clientVersionNotSupportedError
1144
+ end
1145
+ write_result(result, oprot, 'RespondActivityTaskFailedByID', seqid)
1146
+ end
1147
+
1148
+ def process_RespondActivityTaskCanceled(seqid, iprot, oprot)
1149
+ args = read_args(iprot, RespondActivityTaskCanceled_args)
1150
+ result = RespondActivityTaskCanceled_result.new()
1151
+ begin
1152
+ @handler.RespondActivityTaskCanceled(args.canceledRequest)
1153
+ rescue ::CadenceThrift::BadRequestError => badRequestError
1154
+ result.badRequestError = badRequestError
1155
+ rescue ::CadenceThrift::InternalServiceError => internalServiceError
1156
+ result.internalServiceError = internalServiceError
1157
+ rescue ::CadenceThrift::EntityNotExistsError => entityNotExistError
1158
+ result.entityNotExistError = entityNotExistError
1159
+ rescue ::CadenceThrift::DomainNotActiveError => domainNotActiveError
1160
+ result.domainNotActiveError = domainNotActiveError
1161
+ rescue ::CadenceThrift::LimitExceededError => limitExceededError
1162
+ result.limitExceededError = limitExceededError
1163
+ rescue ::CadenceThrift::ServiceBusyError => serviceBusyError
1164
+ result.serviceBusyError = serviceBusyError
1165
+ rescue ::CadenceThrift::ClientVersionNotSupportedError => clientVersionNotSupportedError
1166
+ result.clientVersionNotSupportedError = clientVersionNotSupportedError
1167
+ end
1168
+ write_result(result, oprot, 'RespondActivityTaskCanceled', seqid)
1169
+ end
1170
+
1171
+ def process_RespondActivityTaskCanceledByID(seqid, iprot, oprot)
1172
+ args = read_args(iprot, RespondActivityTaskCanceledByID_args)
1173
+ result = RespondActivityTaskCanceledByID_result.new()
1174
+ begin
1175
+ @handler.RespondActivityTaskCanceledByID(args.canceledRequest)
1176
+ rescue ::CadenceThrift::BadRequestError => badRequestError
1177
+ result.badRequestError = badRequestError
1178
+ rescue ::CadenceThrift::InternalServiceError => internalServiceError
1179
+ result.internalServiceError = internalServiceError
1180
+ rescue ::CadenceThrift::EntityNotExistsError => entityNotExistError
1181
+ result.entityNotExistError = entityNotExistError
1182
+ rescue ::CadenceThrift::DomainNotActiveError => domainNotActiveError
1183
+ result.domainNotActiveError = domainNotActiveError
1184
+ rescue ::CadenceThrift::LimitExceededError => limitExceededError
1185
+ result.limitExceededError = limitExceededError
1186
+ rescue ::CadenceThrift::ServiceBusyError => serviceBusyError
1187
+ result.serviceBusyError = serviceBusyError
1188
+ rescue ::CadenceThrift::ClientVersionNotSupportedError => clientVersionNotSupportedError
1189
+ result.clientVersionNotSupportedError = clientVersionNotSupportedError
1190
+ end
1191
+ write_result(result, oprot, 'RespondActivityTaskCanceledByID', seqid)
1192
+ end
1193
+
1194
+ def process_RequestCancelWorkflowExecution(seqid, iprot, oprot)
1195
+ args = read_args(iprot, RequestCancelWorkflowExecution_args)
1196
+ result = RequestCancelWorkflowExecution_result.new()
1197
+ begin
1198
+ @handler.RequestCancelWorkflowExecution(args.cancelRequest)
1199
+ rescue ::CadenceThrift::BadRequestError => badRequestError
1200
+ result.badRequestError = badRequestError
1201
+ rescue ::CadenceThrift::InternalServiceError => internalServiceError
1202
+ result.internalServiceError = internalServiceError
1203
+ rescue ::CadenceThrift::EntityNotExistsError => entityNotExistError
1204
+ result.entityNotExistError = entityNotExistError
1205
+ rescue ::CadenceThrift::CancellationAlreadyRequestedError => cancellationAlreadyRequestedError
1206
+ result.cancellationAlreadyRequestedError = cancellationAlreadyRequestedError
1207
+ rescue ::CadenceThrift::ServiceBusyError => serviceBusyError
1208
+ result.serviceBusyError = serviceBusyError
1209
+ rescue ::CadenceThrift::DomainNotActiveError => domainNotActiveError
1210
+ result.domainNotActiveError = domainNotActiveError
1211
+ rescue ::CadenceThrift::LimitExceededError => limitExceededError
1212
+ result.limitExceededError = limitExceededError
1213
+ rescue ::CadenceThrift::ClientVersionNotSupportedError => clientVersionNotSupportedError
1214
+ result.clientVersionNotSupportedError = clientVersionNotSupportedError
1215
+ end
1216
+ write_result(result, oprot, 'RequestCancelWorkflowExecution', seqid)
1217
+ end
1218
+
1219
+ def process_SignalWorkflowExecution(seqid, iprot, oprot)
1220
+ args = read_args(iprot, SignalWorkflowExecution_args)
1221
+ result = SignalWorkflowExecution_result.new()
1222
+ begin
1223
+ @handler.SignalWorkflowExecution(args.signalRequest)
1224
+ rescue ::CadenceThrift::BadRequestError => badRequestError
1225
+ result.badRequestError = badRequestError
1226
+ rescue ::CadenceThrift::InternalServiceError => internalServiceError
1227
+ result.internalServiceError = internalServiceError
1228
+ rescue ::CadenceThrift::EntityNotExistsError => entityNotExistError
1229
+ result.entityNotExistError = entityNotExistError
1230
+ rescue ::CadenceThrift::ServiceBusyError => serviceBusyError
1231
+ result.serviceBusyError = serviceBusyError
1232
+ rescue ::CadenceThrift::DomainNotActiveError => domainNotActiveError
1233
+ result.domainNotActiveError = domainNotActiveError
1234
+ rescue ::CadenceThrift::LimitExceededError => limitExceededError
1235
+ result.limitExceededError = limitExceededError
1236
+ rescue ::CadenceThrift::ClientVersionNotSupportedError => clientVersionNotSupportedError
1237
+ result.clientVersionNotSupportedError = clientVersionNotSupportedError
1238
+ end
1239
+ write_result(result, oprot, 'SignalWorkflowExecution', seqid)
1240
+ end
1241
+
1242
+ def process_SignalWithStartWorkflowExecution(seqid, iprot, oprot)
1243
+ args = read_args(iprot, SignalWithStartWorkflowExecution_args)
1244
+ result = SignalWithStartWorkflowExecution_result.new()
1245
+ begin
1246
+ result.success = @handler.SignalWithStartWorkflowExecution(args.signalWithStartRequest)
1247
+ rescue ::CadenceThrift::BadRequestError => badRequestError
1248
+ result.badRequestError = badRequestError
1249
+ rescue ::CadenceThrift::InternalServiceError => internalServiceError
1250
+ result.internalServiceError = internalServiceError
1251
+ rescue ::CadenceThrift::EntityNotExistsError => entityNotExistError
1252
+ result.entityNotExistError = entityNotExistError
1253
+ rescue ::CadenceThrift::ServiceBusyError => serviceBusyError
1254
+ result.serviceBusyError = serviceBusyError
1255
+ rescue ::CadenceThrift::DomainNotActiveError => domainNotActiveError
1256
+ result.domainNotActiveError = domainNotActiveError
1257
+ rescue ::CadenceThrift::LimitExceededError => limitExceededError
1258
+ result.limitExceededError = limitExceededError
1259
+ rescue ::CadenceThrift::WorkflowExecutionAlreadyStartedError => workflowAlreadyStartedError
1260
+ result.workflowAlreadyStartedError = workflowAlreadyStartedError
1261
+ rescue ::CadenceThrift::ClientVersionNotSupportedError => clientVersionNotSupportedError
1262
+ result.clientVersionNotSupportedError = clientVersionNotSupportedError
1263
+ end
1264
+ write_result(result, oprot, 'SignalWithStartWorkflowExecution', seqid)
1265
+ end
1266
+
1267
+ def process_ResetWorkflowExecution(seqid, iprot, oprot)
1268
+ args = read_args(iprot, ResetWorkflowExecution_args)
1269
+ result = ResetWorkflowExecution_result.new()
1270
+ begin
1271
+ result.success = @handler.ResetWorkflowExecution(args.resetRequest)
1272
+ rescue ::CadenceThrift::BadRequestError => badRequestError
1273
+ result.badRequestError = badRequestError
1274
+ rescue ::CadenceThrift::InternalServiceError => internalServiceError
1275
+ result.internalServiceError = internalServiceError
1276
+ rescue ::CadenceThrift::EntityNotExistsError => entityNotExistError
1277
+ result.entityNotExistError = entityNotExistError
1278
+ rescue ::CadenceThrift::ServiceBusyError => serviceBusyError
1279
+ result.serviceBusyError = serviceBusyError
1280
+ rescue ::CadenceThrift::DomainNotActiveError => domainNotActiveError
1281
+ result.domainNotActiveError = domainNotActiveError
1282
+ rescue ::CadenceThrift::LimitExceededError => limitExceededError
1283
+ result.limitExceededError = limitExceededError
1284
+ rescue ::CadenceThrift::ClientVersionNotSupportedError => clientVersionNotSupportedError
1285
+ result.clientVersionNotSupportedError = clientVersionNotSupportedError
1286
+ end
1287
+ write_result(result, oprot, 'ResetWorkflowExecution', seqid)
1288
+ end
1289
+
1290
+ def process_TerminateWorkflowExecution(seqid, iprot, oprot)
1291
+ args = read_args(iprot, TerminateWorkflowExecution_args)
1292
+ result = TerminateWorkflowExecution_result.new()
1293
+ begin
1294
+ @handler.TerminateWorkflowExecution(args.terminateRequest)
1295
+ rescue ::CadenceThrift::BadRequestError => badRequestError
1296
+ result.badRequestError = badRequestError
1297
+ rescue ::CadenceThrift::InternalServiceError => internalServiceError
1298
+ result.internalServiceError = internalServiceError
1299
+ rescue ::CadenceThrift::EntityNotExistsError => entityNotExistError
1300
+ result.entityNotExistError = entityNotExistError
1301
+ rescue ::CadenceThrift::ServiceBusyError => serviceBusyError
1302
+ result.serviceBusyError = serviceBusyError
1303
+ rescue ::CadenceThrift::DomainNotActiveError => domainNotActiveError
1304
+ result.domainNotActiveError = domainNotActiveError
1305
+ rescue ::CadenceThrift::LimitExceededError => limitExceededError
1306
+ result.limitExceededError = limitExceededError
1307
+ rescue ::CadenceThrift::ClientVersionNotSupportedError => clientVersionNotSupportedError
1308
+ result.clientVersionNotSupportedError = clientVersionNotSupportedError
1309
+ end
1310
+ write_result(result, oprot, 'TerminateWorkflowExecution', seqid)
1311
+ end
1312
+
1313
+ def process_ListOpenWorkflowExecutions(seqid, iprot, oprot)
1314
+ args = read_args(iprot, ListOpenWorkflowExecutions_args)
1315
+ result = ListOpenWorkflowExecutions_result.new()
1316
+ begin
1317
+ result.success = @handler.ListOpenWorkflowExecutions(args.listRequest)
1318
+ rescue ::CadenceThrift::BadRequestError => badRequestError
1319
+ result.badRequestError = badRequestError
1320
+ rescue ::CadenceThrift::InternalServiceError => internalServiceError
1321
+ result.internalServiceError = internalServiceError
1322
+ rescue ::CadenceThrift::EntityNotExistsError => entityNotExistError
1323
+ result.entityNotExistError = entityNotExistError
1324
+ rescue ::CadenceThrift::ServiceBusyError => serviceBusyError
1325
+ result.serviceBusyError = serviceBusyError
1326
+ rescue ::CadenceThrift::LimitExceededError => limitExceededError
1327
+ result.limitExceededError = limitExceededError
1328
+ rescue ::CadenceThrift::ClientVersionNotSupportedError => clientVersionNotSupportedError
1329
+ result.clientVersionNotSupportedError = clientVersionNotSupportedError
1330
+ end
1331
+ write_result(result, oprot, 'ListOpenWorkflowExecutions', seqid)
1332
+ end
1333
+
1334
+ def process_ListClosedWorkflowExecutions(seqid, iprot, oprot)
1335
+ args = read_args(iprot, ListClosedWorkflowExecutions_args)
1336
+ result = ListClosedWorkflowExecutions_result.new()
1337
+ begin
1338
+ result.success = @handler.ListClosedWorkflowExecutions(args.listRequest)
1339
+ rescue ::CadenceThrift::BadRequestError => badRequestError
1340
+ result.badRequestError = badRequestError
1341
+ rescue ::CadenceThrift::InternalServiceError => internalServiceError
1342
+ result.internalServiceError = internalServiceError
1343
+ rescue ::CadenceThrift::EntityNotExistsError => entityNotExistError
1344
+ result.entityNotExistError = entityNotExistError
1345
+ rescue ::CadenceThrift::ServiceBusyError => serviceBusyError
1346
+ result.serviceBusyError = serviceBusyError
1347
+ rescue ::CadenceThrift::ClientVersionNotSupportedError => clientVersionNotSupportedError
1348
+ result.clientVersionNotSupportedError = clientVersionNotSupportedError
1349
+ end
1350
+ write_result(result, oprot, 'ListClosedWorkflowExecutions', seqid)
1351
+ end
1352
+
1353
+ def process_ListWorkflowExecutions(seqid, iprot, oprot)
1354
+ args = read_args(iprot, ListWorkflowExecutions_args)
1355
+ result = ListWorkflowExecutions_result.new()
1356
+ begin
1357
+ result.success = @handler.ListWorkflowExecutions(args.listRequest)
1358
+ rescue ::CadenceThrift::BadRequestError => badRequestError
1359
+ result.badRequestError = badRequestError
1360
+ rescue ::CadenceThrift::InternalServiceError => internalServiceError
1361
+ result.internalServiceError = internalServiceError
1362
+ rescue ::CadenceThrift::EntityNotExistsError => entityNotExistError
1363
+ result.entityNotExistError = entityNotExistError
1364
+ rescue ::CadenceThrift::ServiceBusyError => serviceBusyError
1365
+ result.serviceBusyError = serviceBusyError
1366
+ rescue ::CadenceThrift::ClientVersionNotSupportedError => clientVersionNotSupportedError
1367
+ result.clientVersionNotSupportedError = clientVersionNotSupportedError
1368
+ end
1369
+ write_result(result, oprot, 'ListWorkflowExecutions', seqid)
1370
+ end
1371
+
1372
+ def process_ListArchivedWorkflowExecutions(seqid, iprot, oprot)
1373
+ args = read_args(iprot, ListArchivedWorkflowExecutions_args)
1374
+ result = ListArchivedWorkflowExecutions_result.new()
1375
+ begin
1376
+ result.success = @handler.ListArchivedWorkflowExecutions(args.listRequest)
1377
+ rescue ::CadenceThrift::BadRequestError => badRequestError
1378
+ result.badRequestError = badRequestError
1379
+ rescue ::CadenceThrift::InternalServiceError => internalServiceError
1380
+ result.internalServiceError = internalServiceError
1381
+ rescue ::CadenceThrift::EntityNotExistsError => entityNotExistError
1382
+ result.entityNotExistError = entityNotExistError
1383
+ rescue ::CadenceThrift::ServiceBusyError => serviceBusyError
1384
+ result.serviceBusyError = serviceBusyError
1385
+ rescue ::CadenceThrift::ClientVersionNotSupportedError => clientVersionNotSupportedError
1386
+ result.clientVersionNotSupportedError = clientVersionNotSupportedError
1387
+ end
1388
+ write_result(result, oprot, 'ListArchivedWorkflowExecutions', seqid)
1389
+ end
1390
+
1391
+ def process_ScanWorkflowExecutions(seqid, iprot, oprot)
1392
+ args = read_args(iprot, ScanWorkflowExecutions_args)
1393
+ result = ScanWorkflowExecutions_result.new()
1394
+ begin
1395
+ result.success = @handler.ScanWorkflowExecutions(args.listRequest)
1396
+ rescue ::CadenceThrift::BadRequestError => badRequestError
1397
+ result.badRequestError = badRequestError
1398
+ rescue ::CadenceThrift::InternalServiceError => internalServiceError
1399
+ result.internalServiceError = internalServiceError
1400
+ rescue ::CadenceThrift::EntityNotExistsError => entityNotExistError
1401
+ result.entityNotExistError = entityNotExistError
1402
+ rescue ::CadenceThrift::ServiceBusyError => serviceBusyError
1403
+ result.serviceBusyError = serviceBusyError
1404
+ rescue ::CadenceThrift::ClientVersionNotSupportedError => clientVersionNotSupportedError
1405
+ result.clientVersionNotSupportedError = clientVersionNotSupportedError
1406
+ end
1407
+ write_result(result, oprot, 'ScanWorkflowExecutions', seqid)
1408
+ end
1409
+
1410
+ def process_CountWorkflowExecutions(seqid, iprot, oprot)
1411
+ args = read_args(iprot, CountWorkflowExecutions_args)
1412
+ result = CountWorkflowExecutions_result.new()
1413
+ begin
1414
+ result.success = @handler.CountWorkflowExecutions(args.countRequest)
1415
+ rescue ::CadenceThrift::BadRequestError => badRequestError
1416
+ result.badRequestError = badRequestError
1417
+ rescue ::CadenceThrift::InternalServiceError => internalServiceError
1418
+ result.internalServiceError = internalServiceError
1419
+ rescue ::CadenceThrift::EntityNotExistsError => entityNotExistError
1420
+ result.entityNotExistError = entityNotExistError
1421
+ rescue ::CadenceThrift::ServiceBusyError => serviceBusyError
1422
+ result.serviceBusyError = serviceBusyError
1423
+ rescue ::CadenceThrift::ClientVersionNotSupportedError => clientVersionNotSupportedError
1424
+ result.clientVersionNotSupportedError = clientVersionNotSupportedError
1425
+ end
1426
+ write_result(result, oprot, 'CountWorkflowExecutions', seqid)
1427
+ end
1428
+
1429
+ def process_GetSearchAttributes(seqid, iprot, oprot)
1430
+ args = read_args(iprot, GetSearchAttributes_args)
1431
+ result = GetSearchAttributes_result.new()
1432
+ begin
1433
+ result.success = @handler.GetSearchAttributes()
1434
+ rescue ::CadenceThrift::InternalServiceError => internalServiceError
1435
+ result.internalServiceError = internalServiceError
1436
+ rescue ::CadenceThrift::ServiceBusyError => serviceBusyError
1437
+ result.serviceBusyError = serviceBusyError
1438
+ rescue ::CadenceThrift::ClientVersionNotSupportedError => clientVersionNotSupportedError
1439
+ result.clientVersionNotSupportedError = clientVersionNotSupportedError
1440
+ end
1441
+ write_result(result, oprot, 'GetSearchAttributes', seqid)
1442
+ end
1443
+
1444
+ def process_RespondQueryTaskCompleted(seqid, iprot, oprot)
1445
+ args = read_args(iprot, RespondQueryTaskCompleted_args)
1446
+ result = RespondQueryTaskCompleted_result.new()
1447
+ begin
1448
+ @handler.RespondQueryTaskCompleted(args.completeRequest)
1449
+ rescue ::CadenceThrift::BadRequestError => badRequestError
1450
+ result.badRequestError = badRequestError
1451
+ rescue ::CadenceThrift::InternalServiceError => internalServiceError
1452
+ result.internalServiceError = internalServiceError
1453
+ rescue ::CadenceThrift::EntityNotExistsError => entityNotExistError
1454
+ result.entityNotExistError = entityNotExistError
1455
+ rescue ::CadenceThrift::LimitExceededError => limitExceededError
1456
+ result.limitExceededError = limitExceededError
1457
+ rescue ::CadenceThrift::ServiceBusyError => serviceBusyError
1458
+ result.serviceBusyError = serviceBusyError
1459
+ rescue ::CadenceThrift::DomainNotActiveError => domainNotActiveError
1460
+ result.domainNotActiveError = domainNotActiveError
1461
+ rescue ::CadenceThrift::ClientVersionNotSupportedError => clientVersionNotSupportedError
1462
+ result.clientVersionNotSupportedError = clientVersionNotSupportedError
1463
+ end
1464
+ write_result(result, oprot, 'RespondQueryTaskCompleted', seqid)
1465
+ end
1466
+
1467
+ def process_ResetStickyTaskList(seqid, iprot, oprot)
1468
+ args = read_args(iprot, ResetStickyTaskList_args)
1469
+ result = ResetStickyTaskList_result.new()
1470
+ begin
1471
+ result.success = @handler.ResetStickyTaskList(args.resetRequest)
1472
+ rescue ::CadenceThrift::BadRequestError => badRequestError
1473
+ result.badRequestError = badRequestError
1474
+ rescue ::CadenceThrift::InternalServiceError => internalServiceError
1475
+ result.internalServiceError = internalServiceError
1476
+ rescue ::CadenceThrift::EntityNotExistsError => entityNotExistError
1477
+ result.entityNotExistError = entityNotExistError
1478
+ rescue ::CadenceThrift::LimitExceededError => limitExceededError
1479
+ result.limitExceededError = limitExceededError
1480
+ rescue ::CadenceThrift::ServiceBusyError => serviceBusyError
1481
+ result.serviceBusyError = serviceBusyError
1482
+ rescue ::CadenceThrift::DomainNotActiveError => domainNotActiveError
1483
+ result.domainNotActiveError = domainNotActiveError
1484
+ rescue ::CadenceThrift::ClientVersionNotSupportedError => clientVersionNotSupportedError
1485
+ result.clientVersionNotSupportedError = clientVersionNotSupportedError
1486
+ end
1487
+ write_result(result, oprot, 'ResetStickyTaskList', seqid)
1488
+ end
1489
+
1490
+ def process_QueryWorkflow(seqid, iprot, oprot)
1491
+ args = read_args(iprot, QueryWorkflow_args)
1492
+ result = QueryWorkflow_result.new()
1493
+ begin
1494
+ result.success = @handler.QueryWorkflow(args.queryRequest)
1495
+ rescue ::CadenceThrift::BadRequestError => badRequestError
1496
+ result.badRequestError = badRequestError
1497
+ rescue ::CadenceThrift::InternalServiceError => internalServiceError
1498
+ result.internalServiceError = internalServiceError
1499
+ rescue ::CadenceThrift::EntityNotExistsError => entityNotExistError
1500
+ result.entityNotExistError = entityNotExistError
1501
+ rescue ::CadenceThrift::QueryFailedError => queryFailedError
1502
+ result.queryFailedError = queryFailedError
1503
+ rescue ::CadenceThrift::LimitExceededError => limitExceededError
1504
+ result.limitExceededError = limitExceededError
1505
+ rescue ::CadenceThrift::ServiceBusyError => serviceBusyError
1506
+ result.serviceBusyError = serviceBusyError
1507
+ rescue ::CadenceThrift::ClientVersionNotSupportedError => clientVersionNotSupportedError
1508
+ result.clientVersionNotSupportedError = clientVersionNotSupportedError
1509
+ end
1510
+ write_result(result, oprot, 'QueryWorkflow', seqid)
1511
+ end
1512
+
1513
+ def process_DescribeWorkflowExecution(seqid, iprot, oprot)
1514
+ args = read_args(iprot, DescribeWorkflowExecution_args)
1515
+ result = DescribeWorkflowExecution_result.new()
1516
+ begin
1517
+ result.success = @handler.DescribeWorkflowExecution(args.describeRequest)
1518
+ rescue ::CadenceThrift::BadRequestError => badRequestError
1519
+ result.badRequestError = badRequestError
1520
+ rescue ::CadenceThrift::InternalServiceError => internalServiceError
1521
+ result.internalServiceError = internalServiceError
1522
+ rescue ::CadenceThrift::EntityNotExistsError => entityNotExistError
1523
+ result.entityNotExistError = entityNotExistError
1524
+ rescue ::CadenceThrift::LimitExceededError => limitExceededError
1525
+ result.limitExceededError = limitExceededError
1526
+ rescue ::CadenceThrift::ServiceBusyError => serviceBusyError
1527
+ result.serviceBusyError = serviceBusyError
1528
+ rescue ::CadenceThrift::ClientVersionNotSupportedError => clientVersionNotSupportedError
1529
+ result.clientVersionNotSupportedError = clientVersionNotSupportedError
1530
+ end
1531
+ write_result(result, oprot, 'DescribeWorkflowExecution', seqid)
1532
+ end
1533
+
1534
+ def process_DescribeTaskList(seqid, iprot, oprot)
1535
+ args = read_args(iprot, DescribeTaskList_args)
1536
+ result = DescribeTaskList_result.new()
1537
+ begin
1538
+ result.success = @handler.DescribeTaskList(args.request)
1539
+ rescue ::CadenceThrift::BadRequestError => badRequestError
1540
+ result.badRequestError = badRequestError
1541
+ rescue ::CadenceThrift::InternalServiceError => internalServiceError
1542
+ result.internalServiceError = internalServiceError
1543
+ rescue ::CadenceThrift::EntityNotExistsError => entityNotExistError
1544
+ result.entityNotExistError = entityNotExistError
1545
+ rescue ::CadenceThrift::LimitExceededError => limitExceededError
1546
+ result.limitExceededError = limitExceededError
1547
+ rescue ::CadenceThrift::ServiceBusyError => serviceBusyError
1548
+ result.serviceBusyError = serviceBusyError
1549
+ rescue ::CadenceThrift::ClientVersionNotSupportedError => clientVersionNotSupportedError
1550
+ result.clientVersionNotSupportedError = clientVersionNotSupportedError
1551
+ end
1552
+ write_result(result, oprot, 'DescribeTaskList', seqid)
1553
+ end
1554
+
1555
+ end
1556
+
1557
+ # HELPER FUNCTIONS AND STRUCTURES
1558
+
1559
+ class RegisterDomain_args
1560
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1561
+ REGISTERREQUEST = 1
1562
+
1563
+ FIELDS = {
1564
+ REGISTERREQUEST => {:type => ::Thrift::Types::STRUCT, :name => 'registerRequest', :class => ::CadenceThrift::RegisterDomainRequest}
1565
+ }
1566
+
1567
+ def struct_fields; FIELDS; end
1568
+
1569
+ def validate
1570
+ end
1571
+
1572
+ ::Thrift::Struct.generate_accessors self
1573
+ end
1574
+
1575
+ class RegisterDomain_result
1576
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1577
+ BADREQUESTERROR = 1
1578
+ INTERNALSERVICEERROR = 2
1579
+ DOMAINEXISTSERROR = 3
1580
+ SERVICEBUSYERROR = 4
1581
+ CLIENTVERSIONNOTSUPPORTEDERROR = 5
1582
+
1583
+ FIELDS = {
1584
+ BADREQUESTERROR => {:type => ::Thrift::Types::STRUCT, :name => 'badRequestError', :class => ::CadenceThrift::BadRequestError},
1585
+ INTERNALSERVICEERROR => {:type => ::Thrift::Types::STRUCT, :name => 'internalServiceError', :class => ::CadenceThrift::InternalServiceError},
1586
+ DOMAINEXISTSERROR => {:type => ::Thrift::Types::STRUCT, :name => 'domainExistsError', :class => ::CadenceThrift::DomainAlreadyExistsError},
1587
+ SERVICEBUSYERROR => {:type => ::Thrift::Types::STRUCT, :name => 'serviceBusyError', :class => ::CadenceThrift::ServiceBusyError},
1588
+ CLIENTVERSIONNOTSUPPORTEDERROR => {:type => ::Thrift::Types::STRUCT, :name => 'clientVersionNotSupportedError', :class => ::CadenceThrift::ClientVersionNotSupportedError}
1589
+ }
1590
+
1591
+ def struct_fields; FIELDS; end
1592
+
1593
+ def validate
1594
+ end
1595
+
1596
+ ::Thrift::Struct.generate_accessors self
1597
+ end
1598
+
1599
+ class DescribeDomain_args
1600
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1601
+ DESCRIBEREQUEST = 1
1602
+
1603
+ FIELDS = {
1604
+ DESCRIBEREQUEST => {:type => ::Thrift::Types::STRUCT, :name => 'describeRequest', :class => ::CadenceThrift::DescribeDomainRequest}
1605
+ }
1606
+
1607
+ def struct_fields; FIELDS; end
1608
+
1609
+ def validate
1610
+ end
1611
+
1612
+ ::Thrift::Struct.generate_accessors self
1613
+ end
1614
+
1615
+ class DescribeDomain_result
1616
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1617
+ SUCCESS = 0
1618
+ BADREQUESTERROR = 1
1619
+ INTERNALSERVICEERROR = 2
1620
+ ENTITYNOTEXISTERROR = 3
1621
+ SERVICEBUSYERROR = 4
1622
+ CLIENTVERSIONNOTSUPPORTEDERROR = 5
1623
+
1624
+ FIELDS = {
1625
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::CadenceThrift::DescribeDomainResponse},
1626
+ BADREQUESTERROR => {:type => ::Thrift::Types::STRUCT, :name => 'badRequestError', :class => ::CadenceThrift::BadRequestError},
1627
+ INTERNALSERVICEERROR => {:type => ::Thrift::Types::STRUCT, :name => 'internalServiceError', :class => ::CadenceThrift::InternalServiceError},
1628
+ ENTITYNOTEXISTERROR => {:type => ::Thrift::Types::STRUCT, :name => 'entityNotExistError', :class => ::CadenceThrift::EntityNotExistsError},
1629
+ SERVICEBUSYERROR => {:type => ::Thrift::Types::STRUCT, :name => 'serviceBusyError', :class => ::CadenceThrift::ServiceBusyError},
1630
+ CLIENTVERSIONNOTSUPPORTEDERROR => {:type => ::Thrift::Types::STRUCT, :name => 'clientVersionNotSupportedError', :class => ::CadenceThrift::ClientVersionNotSupportedError}
1631
+ }
1632
+
1633
+ def struct_fields; FIELDS; end
1634
+
1635
+ def validate
1636
+ end
1637
+
1638
+ ::Thrift::Struct.generate_accessors self
1639
+ end
1640
+
1641
+ class ListDomains_args
1642
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1643
+ LISTREQUEST = 1
1644
+
1645
+ FIELDS = {
1646
+ LISTREQUEST => {:type => ::Thrift::Types::STRUCT, :name => 'listRequest', :class => ::CadenceThrift::ListDomainsRequest}
1647
+ }
1648
+
1649
+ def struct_fields; FIELDS; end
1650
+
1651
+ def validate
1652
+ end
1653
+
1654
+ ::Thrift::Struct.generate_accessors self
1655
+ end
1656
+
1657
+ class ListDomains_result
1658
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1659
+ SUCCESS = 0
1660
+ BADREQUESTERROR = 1
1661
+ INTERNALSERVICEERROR = 2
1662
+ ENTITYNOTEXISTERROR = 3
1663
+ SERVICEBUSYERROR = 4
1664
+ CLIENTVERSIONNOTSUPPORTEDERROR = 5
1665
+
1666
+ FIELDS = {
1667
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::CadenceThrift::ListDomainsResponse},
1668
+ BADREQUESTERROR => {:type => ::Thrift::Types::STRUCT, :name => 'badRequestError', :class => ::CadenceThrift::BadRequestError},
1669
+ INTERNALSERVICEERROR => {:type => ::Thrift::Types::STRUCT, :name => 'internalServiceError', :class => ::CadenceThrift::InternalServiceError},
1670
+ ENTITYNOTEXISTERROR => {:type => ::Thrift::Types::STRUCT, :name => 'entityNotExistError', :class => ::CadenceThrift::EntityNotExistsError},
1671
+ SERVICEBUSYERROR => {:type => ::Thrift::Types::STRUCT, :name => 'serviceBusyError', :class => ::CadenceThrift::ServiceBusyError},
1672
+ CLIENTVERSIONNOTSUPPORTEDERROR => {:type => ::Thrift::Types::STRUCT, :name => 'clientVersionNotSupportedError', :class => ::CadenceThrift::ClientVersionNotSupportedError}
1673
+ }
1674
+
1675
+ def struct_fields; FIELDS; end
1676
+
1677
+ def validate
1678
+ end
1679
+
1680
+ ::Thrift::Struct.generate_accessors self
1681
+ end
1682
+
1683
+ class UpdateDomain_args
1684
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1685
+ UPDATEREQUEST = 1
1686
+
1687
+ FIELDS = {
1688
+ UPDATEREQUEST => {:type => ::Thrift::Types::STRUCT, :name => 'updateRequest', :class => ::CadenceThrift::UpdateDomainRequest}
1689
+ }
1690
+
1691
+ def struct_fields; FIELDS; end
1692
+
1693
+ def validate
1694
+ end
1695
+
1696
+ ::Thrift::Struct.generate_accessors self
1697
+ end
1698
+
1699
+ class UpdateDomain_result
1700
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1701
+ SUCCESS = 0
1702
+ BADREQUESTERROR = 1
1703
+ INTERNALSERVICEERROR = 2
1704
+ ENTITYNOTEXISTERROR = 3
1705
+ SERVICEBUSYERROR = 4
1706
+ DOMAINNOTACTIVEERROR = 5
1707
+ CLIENTVERSIONNOTSUPPORTEDERROR = 6
1708
+
1709
+ FIELDS = {
1710
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::CadenceThrift::UpdateDomainResponse},
1711
+ BADREQUESTERROR => {:type => ::Thrift::Types::STRUCT, :name => 'badRequestError', :class => ::CadenceThrift::BadRequestError},
1712
+ INTERNALSERVICEERROR => {:type => ::Thrift::Types::STRUCT, :name => 'internalServiceError', :class => ::CadenceThrift::InternalServiceError},
1713
+ ENTITYNOTEXISTERROR => {:type => ::Thrift::Types::STRUCT, :name => 'entityNotExistError', :class => ::CadenceThrift::EntityNotExistsError},
1714
+ SERVICEBUSYERROR => {:type => ::Thrift::Types::STRUCT, :name => 'serviceBusyError', :class => ::CadenceThrift::ServiceBusyError},
1715
+ DOMAINNOTACTIVEERROR => {:type => ::Thrift::Types::STRUCT, :name => 'domainNotActiveError', :class => ::CadenceThrift::DomainNotActiveError},
1716
+ CLIENTVERSIONNOTSUPPORTEDERROR => {:type => ::Thrift::Types::STRUCT, :name => 'clientVersionNotSupportedError', :class => ::CadenceThrift::ClientVersionNotSupportedError}
1717
+ }
1718
+
1719
+ def struct_fields; FIELDS; end
1720
+
1721
+ def validate
1722
+ end
1723
+
1724
+ ::Thrift::Struct.generate_accessors self
1725
+ end
1726
+
1727
+ class DeprecateDomain_args
1728
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1729
+ DEPRECATEREQUEST = 1
1730
+
1731
+ FIELDS = {
1732
+ DEPRECATEREQUEST => {:type => ::Thrift::Types::STRUCT, :name => 'deprecateRequest', :class => ::CadenceThrift::DeprecateDomainRequest}
1733
+ }
1734
+
1735
+ def struct_fields; FIELDS; end
1736
+
1737
+ def validate
1738
+ end
1739
+
1740
+ ::Thrift::Struct.generate_accessors self
1741
+ end
1742
+
1743
+ class DeprecateDomain_result
1744
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1745
+ BADREQUESTERROR = 1
1746
+ INTERNALSERVICEERROR = 2
1747
+ ENTITYNOTEXISTERROR = 3
1748
+ SERVICEBUSYERROR = 4
1749
+ DOMAINNOTACTIVEERROR = 5
1750
+ CLIENTVERSIONNOTSUPPORTEDERROR = 6
1751
+
1752
+ FIELDS = {
1753
+ BADREQUESTERROR => {:type => ::Thrift::Types::STRUCT, :name => 'badRequestError', :class => ::CadenceThrift::BadRequestError},
1754
+ INTERNALSERVICEERROR => {:type => ::Thrift::Types::STRUCT, :name => 'internalServiceError', :class => ::CadenceThrift::InternalServiceError},
1755
+ ENTITYNOTEXISTERROR => {:type => ::Thrift::Types::STRUCT, :name => 'entityNotExistError', :class => ::CadenceThrift::EntityNotExistsError},
1756
+ SERVICEBUSYERROR => {:type => ::Thrift::Types::STRUCT, :name => 'serviceBusyError', :class => ::CadenceThrift::ServiceBusyError},
1757
+ DOMAINNOTACTIVEERROR => {:type => ::Thrift::Types::STRUCT, :name => 'domainNotActiveError', :class => ::CadenceThrift::DomainNotActiveError},
1758
+ CLIENTVERSIONNOTSUPPORTEDERROR => {:type => ::Thrift::Types::STRUCT, :name => 'clientVersionNotSupportedError', :class => ::CadenceThrift::ClientVersionNotSupportedError}
1759
+ }
1760
+
1761
+ def struct_fields; FIELDS; end
1762
+
1763
+ def validate
1764
+ end
1765
+
1766
+ ::Thrift::Struct.generate_accessors self
1767
+ end
1768
+
1769
+ class StartWorkflowExecution_args
1770
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1771
+ STARTREQUEST = 1
1772
+
1773
+ FIELDS = {
1774
+ STARTREQUEST => {:type => ::Thrift::Types::STRUCT, :name => 'startRequest', :class => ::CadenceThrift::StartWorkflowExecutionRequest}
1775
+ }
1776
+
1777
+ def struct_fields; FIELDS; end
1778
+
1779
+ def validate
1780
+ end
1781
+
1782
+ ::Thrift::Struct.generate_accessors self
1783
+ end
1784
+
1785
+ class StartWorkflowExecution_result
1786
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1787
+ SUCCESS = 0
1788
+ BADREQUESTERROR = 1
1789
+ INTERNALSERVICEERROR = 2
1790
+ SESSIONALREADYEXISTERROR = 3
1791
+ SERVICEBUSYERROR = 4
1792
+ DOMAINNOTACTIVEERROR = 5
1793
+ LIMITEXCEEDEDERROR = 6
1794
+ ENTITYNOTEXISTERROR = 7
1795
+ CLIENTVERSIONNOTSUPPORTEDERROR = 8
1796
+
1797
+ FIELDS = {
1798
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::CadenceThrift::StartWorkflowExecutionResponse},
1799
+ BADREQUESTERROR => {:type => ::Thrift::Types::STRUCT, :name => 'badRequestError', :class => ::CadenceThrift::BadRequestError},
1800
+ INTERNALSERVICEERROR => {:type => ::Thrift::Types::STRUCT, :name => 'internalServiceError', :class => ::CadenceThrift::InternalServiceError},
1801
+ SESSIONALREADYEXISTERROR => {:type => ::Thrift::Types::STRUCT, :name => 'sessionAlreadyExistError', :class => ::CadenceThrift::WorkflowExecutionAlreadyStartedError},
1802
+ SERVICEBUSYERROR => {:type => ::Thrift::Types::STRUCT, :name => 'serviceBusyError', :class => ::CadenceThrift::ServiceBusyError},
1803
+ DOMAINNOTACTIVEERROR => {:type => ::Thrift::Types::STRUCT, :name => 'domainNotActiveError', :class => ::CadenceThrift::DomainNotActiveError},
1804
+ LIMITEXCEEDEDERROR => {:type => ::Thrift::Types::STRUCT, :name => 'limitExceededError', :class => ::CadenceThrift::LimitExceededError},
1805
+ ENTITYNOTEXISTERROR => {:type => ::Thrift::Types::STRUCT, :name => 'entityNotExistError', :class => ::CadenceThrift::EntityNotExistsError},
1806
+ CLIENTVERSIONNOTSUPPORTEDERROR => {:type => ::Thrift::Types::STRUCT, :name => 'clientVersionNotSupportedError', :class => ::CadenceThrift::ClientVersionNotSupportedError}
1807
+ }
1808
+
1809
+ def struct_fields; FIELDS; end
1810
+
1811
+ def validate
1812
+ end
1813
+
1814
+ ::Thrift::Struct.generate_accessors self
1815
+ end
1816
+
1817
+ class GetWorkflowExecutionHistory_args
1818
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1819
+ GETREQUEST = 1
1820
+
1821
+ FIELDS = {
1822
+ GETREQUEST => {:type => ::Thrift::Types::STRUCT, :name => 'getRequest', :class => ::CadenceThrift::GetWorkflowExecutionHistoryRequest}
1823
+ }
1824
+
1825
+ def struct_fields; FIELDS; end
1826
+
1827
+ def validate
1828
+ end
1829
+
1830
+ ::Thrift::Struct.generate_accessors self
1831
+ end
1832
+
1833
+ class GetWorkflowExecutionHistory_result
1834
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1835
+ SUCCESS = 0
1836
+ BADREQUESTERROR = 1
1837
+ INTERNALSERVICEERROR = 2
1838
+ ENTITYNOTEXISTERROR = 3
1839
+ SERVICEBUSYERROR = 4
1840
+ CLIENTVERSIONNOTSUPPORTEDERROR = 5
1841
+
1842
+ FIELDS = {
1843
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::CadenceThrift::GetWorkflowExecutionHistoryResponse},
1844
+ BADREQUESTERROR => {:type => ::Thrift::Types::STRUCT, :name => 'badRequestError', :class => ::CadenceThrift::BadRequestError},
1845
+ INTERNALSERVICEERROR => {:type => ::Thrift::Types::STRUCT, :name => 'internalServiceError', :class => ::CadenceThrift::InternalServiceError},
1846
+ ENTITYNOTEXISTERROR => {:type => ::Thrift::Types::STRUCT, :name => 'entityNotExistError', :class => ::CadenceThrift::EntityNotExistsError},
1847
+ SERVICEBUSYERROR => {:type => ::Thrift::Types::STRUCT, :name => 'serviceBusyError', :class => ::CadenceThrift::ServiceBusyError},
1848
+ CLIENTVERSIONNOTSUPPORTEDERROR => {:type => ::Thrift::Types::STRUCT, :name => 'clientVersionNotSupportedError', :class => ::CadenceThrift::ClientVersionNotSupportedError}
1849
+ }
1850
+
1851
+ def struct_fields; FIELDS; end
1852
+
1853
+ def validate
1854
+ end
1855
+
1856
+ ::Thrift::Struct.generate_accessors self
1857
+ end
1858
+
1859
+ class PollForDecisionTask_args
1860
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1861
+ POLLREQUEST = 1
1862
+
1863
+ FIELDS = {
1864
+ POLLREQUEST => {:type => ::Thrift::Types::STRUCT, :name => 'pollRequest', :class => ::CadenceThrift::PollForDecisionTaskRequest}
1865
+ }
1866
+
1867
+ def struct_fields; FIELDS; end
1868
+
1869
+ def validate
1870
+ end
1871
+
1872
+ ::Thrift::Struct.generate_accessors self
1873
+ end
1874
+
1875
+ class PollForDecisionTask_result
1876
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1877
+ SUCCESS = 0
1878
+ BADREQUESTERROR = 1
1879
+ INTERNALSERVICEERROR = 2
1880
+ SERVICEBUSYERROR = 3
1881
+ LIMITEXCEEDEDERROR = 4
1882
+ ENTITYNOTEXISTERROR = 5
1883
+ DOMAINNOTACTIVEERROR = 6
1884
+ CLIENTVERSIONNOTSUPPORTEDERROR = 7
1885
+
1886
+ FIELDS = {
1887
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::CadenceThrift::PollForDecisionTaskResponse},
1888
+ BADREQUESTERROR => {:type => ::Thrift::Types::STRUCT, :name => 'badRequestError', :class => ::CadenceThrift::BadRequestError},
1889
+ INTERNALSERVICEERROR => {:type => ::Thrift::Types::STRUCT, :name => 'internalServiceError', :class => ::CadenceThrift::InternalServiceError},
1890
+ SERVICEBUSYERROR => {:type => ::Thrift::Types::STRUCT, :name => 'serviceBusyError', :class => ::CadenceThrift::ServiceBusyError},
1891
+ LIMITEXCEEDEDERROR => {:type => ::Thrift::Types::STRUCT, :name => 'limitExceededError', :class => ::CadenceThrift::LimitExceededError},
1892
+ ENTITYNOTEXISTERROR => {:type => ::Thrift::Types::STRUCT, :name => 'entityNotExistError', :class => ::CadenceThrift::EntityNotExistsError},
1893
+ DOMAINNOTACTIVEERROR => {:type => ::Thrift::Types::STRUCT, :name => 'domainNotActiveError', :class => ::CadenceThrift::DomainNotActiveError},
1894
+ CLIENTVERSIONNOTSUPPORTEDERROR => {:type => ::Thrift::Types::STRUCT, :name => 'clientVersionNotSupportedError', :class => ::CadenceThrift::ClientVersionNotSupportedError}
1895
+ }
1896
+
1897
+ def struct_fields; FIELDS; end
1898
+
1899
+ def validate
1900
+ end
1901
+
1902
+ ::Thrift::Struct.generate_accessors self
1903
+ end
1904
+
1905
+ class RespondDecisionTaskCompleted_args
1906
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1907
+ COMPLETEREQUEST = 1
1908
+
1909
+ FIELDS = {
1910
+ COMPLETEREQUEST => {:type => ::Thrift::Types::STRUCT, :name => 'completeRequest', :class => ::CadenceThrift::RespondDecisionTaskCompletedRequest}
1911
+ }
1912
+
1913
+ def struct_fields; FIELDS; end
1914
+
1915
+ def validate
1916
+ end
1917
+
1918
+ ::Thrift::Struct.generate_accessors self
1919
+ end
1920
+
1921
+ class RespondDecisionTaskCompleted_result
1922
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1923
+ SUCCESS = 0
1924
+ BADREQUESTERROR = 1
1925
+ INTERNALSERVICEERROR = 2
1926
+ ENTITYNOTEXISTERROR = 3
1927
+ DOMAINNOTACTIVEERROR = 4
1928
+ LIMITEXCEEDEDERROR = 5
1929
+ SERVICEBUSYERROR = 6
1930
+ CLIENTVERSIONNOTSUPPORTEDERROR = 7
1931
+
1932
+ FIELDS = {
1933
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::CadenceThrift::RespondDecisionTaskCompletedResponse},
1934
+ BADREQUESTERROR => {:type => ::Thrift::Types::STRUCT, :name => 'badRequestError', :class => ::CadenceThrift::BadRequestError},
1935
+ INTERNALSERVICEERROR => {:type => ::Thrift::Types::STRUCT, :name => 'internalServiceError', :class => ::CadenceThrift::InternalServiceError},
1936
+ ENTITYNOTEXISTERROR => {:type => ::Thrift::Types::STRUCT, :name => 'entityNotExistError', :class => ::CadenceThrift::EntityNotExistsError},
1937
+ DOMAINNOTACTIVEERROR => {:type => ::Thrift::Types::STRUCT, :name => 'domainNotActiveError', :class => ::CadenceThrift::DomainNotActiveError},
1938
+ LIMITEXCEEDEDERROR => {:type => ::Thrift::Types::STRUCT, :name => 'limitExceededError', :class => ::CadenceThrift::LimitExceededError},
1939
+ SERVICEBUSYERROR => {:type => ::Thrift::Types::STRUCT, :name => 'serviceBusyError', :class => ::CadenceThrift::ServiceBusyError},
1940
+ CLIENTVERSIONNOTSUPPORTEDERROR => {:type => ::Thrift::Types::STRUCT, :name => 'clientVersionNotSupportedError', :class => ::CadenceThrift::ClientVersionNotSupportedError}
1941
+ }
1942
+
1943
+ def struct_fields; FIELDS; end
1944
+
1945
+ def validate
1946
+ end
1947
+
1948
+ ::Thrift::Struct.generate_accessors self
1949
+ end
1950
+
1951
+ class RespondDecisionTaskFailed_args
1952
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1953
+ FAILEDREQUEST = 1
1954
+
1955
+ FIELDS = {
1956
+ FAILEDREQUEST => {:type => ::Thrift::Types::STRUCT, :name => 'failedRequest', :class => ::CadenceThrift::RespondDecisionTaskFailedRequest}
1957
+ }
1958
+
1959
+ def struct_fields; FIELDS; end
1960
+
1961
+ def validate
1962
+ end
1963
+
1964
+ ::Thrift::Struct.generate_accessors self
1965
+ end
1966
+
1967
+ class RespondDecisionTaskFailed_result
1968
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1969
+ BADREQUESTERROR = 1
1970
+ INTERNALSERVICEERROR = 2
1971
+ ENTITYNOTEXISTERROR = 3
1972
+ DOMAINNOTACTIVEERROR = 4
1973
+ LIMITEXCEEDEDERROR = 5
1974
+ SERVICEBUSYERROR = 6
1975
+ CLIENTVERSIONNOTSUPPORTEDERROR = 7
1976
+
1977
+ FIELDS = {
1978
+ BADREQUESTERROR => {:type => ::Thrift::Types::STRUCT, :name => 'badRequestError', :class => ::CadenceThrift::BadRequestError},
1979
+ INTERNALSERVICEERROR => {:type => ::Thrift::Types::STRUCT, :name => 'internalServiceError', :class => ::CadenceThrift::InternalServiceError},
1980
+ ENTITYNOTEXISTERROR => {:type => ::Thrift::Types::STRUCT, :name => 'entityNotExistError', :class => ::CadenceThrift::EntityNotExistsError},
1981
+ DOMAINNOTACTIVEERROR => {:type => ::Thrift::Types::STRUCT, :name => 'domainNotActiveError', :class => ::CadenceThrift::DomainNotActiveError},
1982
+ LIMITEXCEEDEDERROR => {:type => ::Thrift::Types::STRUCT, :name => 'limitExceededError', :class => ::CadenceThrift::LimitExceededError},
1983
+ SERVICEBUSYERROR => {:type => ::Thrift::Types::STRUCT, :name => 'serviceBusyError', :class => ::CadenceThrift::ServiceBusyError},
1984
+ CLIENTVERSIONNOTSUPPORTEDERROR => {:type => ::Thrift::Types::STRUCT, :name => 'clientVersionNotSupportedError', :class => ::CadenceThrift::ClientVersionNotSupportedError}
1985
+ }
1986
+
1987
+ def struct_fields; FIELDS; end
1988
+
1989
+ def validate
1990
+ end
1991
+
1992
+ ::Thrift::Struct.generate_accessors self
1993
+ end
1994
+
1995
+ class PollForActivityTask_args
1996
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1997
+ POLLREQUEST = 1
1998
+
1999
+ FIELDS = {
2000
+ POLLREQUEST => {:type => ::Thrift::Types::STRUCT, :name => 'pollRequest', :class => ::CadenceThrift::PollForActivityTaskRequest}
2001
+ }
2002
+
2003
+ def struct_fields; FIELDS; end
2004
+
2005
+ def validate
2006
+ end
2007
+
2008
+ ::Thrift::Struct.generate_accessors self
2009
+ end
2010
+
2011
+ class PollForActivityTask_result
2012
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2013
+ SUCCESS = 0
2014
+ BADREQUESTERROR = 1
2015
+ INTERNALSERVICEERROR = 2
2016
+ SERVICEBUSYERROR = 3
2017
+ LIMITEXCEEDEDERROR = 4
2018
+ ENTITYNOTEXISTERROR = 5
2019
+ DOMAINNOTACTIVEERROR = 6
2020
+ CLIENTVERSIONNOTSUPPORTEDERROR = 7
2021
+
2022
+ FIELDS = {
2023
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::CadenceThrift::PollForActivityTaskResponse},
2024
+ BADREQUESTERROR => {:type => ::Thrift::Types::STRUCT, :name => 'badRequestError', :class => ::CadenceThrift::BadRequestError},
2025
+ INTERNALSERVICEERROR => {:type => ::Thrift::Types::STRUCT, :name => 'internalServiceError', :class => ::CadenceThrift::InternalServiceError},
2026
+ SERVICEBUSYERROR => {:type => ::Thrift::Types::STRUCT, :name => 'serviceBusyError', :class => ::CadenceThrift::ServiceBusyError},
2027
+ LIMITEXCEEDEDERROR => {:type => ::Thrift::Types::STRUCT, :name => 'limitExceededError', :class => ::CadenceThrift::LimitExceededError},
2028
+ ENTITYNOTEXISTERROR => {:type => ::Thrift::Types::STRUCT, :name => 'entityNotExistError', :class => ::CadenceThrift::EntityNotExistsError},
2029
+ DOMAINNOTACTIVEERROR => {:type => ::Thrift::Types::STRUCT, :name => 'domainNotActiveError', :class => ::CadenceThrift::DomainNotActiveError},
2030
+ CLIENTVERSIONNOTSUPPORTEDERROR => {:type => ::Thrift::Types::STRUCT, :name => 'clientVersionNotSupportedError', :class => ::CadenceThrift::ClientVersionNotSupportedError}
2031
+ }
2032
+
2033
+ def struct_fields; FIELDS; end
2034
+
2035
+ def validate
2036
+ end
2037
+
2038
+ ::Thrift::Struct.generate_accessors self
2039
+ end
2040
+
2041
+ class RecordActivityTaskHeartbeat_args
2042
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2043
+ HEARTBEATREQUEST = 1
2044
+
2045
+ FIELDS = {
2046
+ HEARTBEATREQUEST => {:type => ::Thrift::Types::STRUCT, :name => 'heartbeatRequest', :class => ::CadenceThrift::RecordActivityTaskHeartbeatRequest}
2047
+ }
2048
+
2049
+ def struct_fields; FIELDS; end
2050
+
2051
+ def validate
2052
+ end
2053
+
2054
+ ::Thrift::Struct.generate_accessors self
2055
+ end
2056
+
2057
+ class RecordActivityTaskHeartbeat_result
2058
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2059
+ SUCCESS = 0
2060
+ BADREQUESTERROR = 1
2061
+ INTERNALSERVICEERROR = 2
2062
+ ENTITYNOTEXISTERROR = 3
2063
+ DOMAINNOTACTIVEERROR = 4
2064
+ LIMITEXCEEDEDERROR = 5
2065
+ SERVICEBUSYERROR = 6
2066
+ CLIENTVERSIONNOTSUPPORTEDERROR = 7
2067
+
2068
+ FIELDS = {
2069
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::CadenceThrift::RecordActivityTaskHeartbeatResponse},
2070
+ BADREQUESTERROR => {:type => ::Thrift::Types::STRUCT, :name => 'badRequestError', :class => ::CadenceThrift::BadRequestError},
2071
+ INTERNALSERVICEERROR => {:type => ::Thrift::Types::STRUCT, :name => 'internalServiceError', :class => ::CadenceThrift::InternalServiceError},
2072
+ ENTITYNOTEXISTERROR => {:type => ::Thrift::Types::STRUCT, :name => 'entityNotExistError', :class => ::CadenceThrift::EntityNotExistsError},
2073
+ DOMAINNOTACTIVEERROR => {:type => ::Thrift::Types::STRUCT, :name => 'domainNotActiveError', :class => ::CadenceThrift::DomainNotActiveError},
2074
+ LIMITEXCEEDEDERROR => {:type => ::Thrift::Types::STRUCT, :name => 'limitExceededError', :class => ::CadenceThrift::LimitExceededError},
2075
+ SERVICEBUSYERROR => {:type => ::Thrift::Types::STRUCT, :name => 'serviceBusyError', :class => ::CadenceThrift::ServiceBusyError},
2076
+ CLIENTVERSIONNOTSUPPORTEDERROR => {:type => ::Thrift::Types::STRUCT, :name => 'clientVersionNotSupportedError', :class => ::CadenceThrift::ClientVersionNotSupportedError}
2077
+ }
2078
+
2079
+ def struct_fields; FIELDS; end
2080
+
2081
+ def validate
2082
+ end
2083
+
2084
+ ::Thrift::Struct.generate_accessors self
2085
+ end
2086
+
2087
+ class RecordActivityTaskHeartbeatByID_args
2088
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2089
+ HEARTBEATREQUEST = 1
2090
+
2091
+ FIELDS = {
2092
+ HEARTBEATREQUEST => {:type => ::Thrift::Types::STRUCT, :name => 'heartbeatRequest', :class => ::CadenceThrift::RecordActivityTaskHeartbeatByIDRequest}
2093
+ }
2094
+
2095
+ def struct_fields; FIELDS; end
2096
+
2097
+ def validate
2098
+ end
2099
+
2100
+ ::Thrift::Struct.generate_accessors self
2101
+ end
2102
+
2103
+ class RecordActivityTaskHeartbeatByID_result
2104
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2105
+ SUCCESS = 0
2106
+ BADREQUESTERROR = 1
2107
+ INTERNALSERVICEERROR = 2
2108
+ ENTITYNOTEXISTERROR = 3
2109
+ DOMAINNOTACTIVEERROR = 4
2110
+ LIMITEXCEEDEDERROR = 5
2111
+ SERVICEBUSYERROR = 6
2112
+ CLIENTVERSIONNOTSUPPORTEDERROR = 7
2113
+
2114
+ FIELDS = {
2115
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::CadenceThrift::RecordActivityTaskHeartbeatResponse},
2116
+ BADREQUESTERROR => {:type => ::Thrift::Types::STRUCT, :name => 'badRequestError', :class => ::CadenceThrift::BadRequestError},
2117
+ INTERNALSERVICEERROR => {:type => ::Thrift::Types::STRUCT, :name => 'internalServiceError', :class => ::CadenceThrift::InternalServiceError},
2118
+ ENTITYNOTEXISTERROR => {:type => ::Thrift::Types::STRUCT, :name => 'entityNotExistError', :class => ::CadenceThrift::EntityNotExistsError},
2119
+ DOMAINNOTACTIVEERROR => {:type => ::Thrift::Types::STRUCT, :name => 'domainNotActiveError', :class => ::CadenceThrift::DomainNotActiveError},
2120
+ LIMITEXCEEDEDERROR => {:type => ::Thrift::Types::STRUCT, :name => 'limitExceededError', :class => ::CadenceThrift::LimitExceededError},
2121
+ SERVICEBUSYERROR => {:type => ::Thrift::Types::STRUCT, :name => 'serviceBusyError', :class => ::CadenceThrift::ServiceBusyError},
2122
+ CLIENTVERSIONNOTSUPPORTEDERROR => {:type => ::Thrift::Types::STRUCT, :name => 'clientVersionNotSupportedError', :class => ::CadenceThrift::ClientVersionNotSupportedError}
2123
+ }
2124
+
2125
+ def struct_fields; FIELDS; end
2126
+
2127
+ def validate
2128
+ end
2129
+
2130
+ ::Thrift::Struct.generate_accessors self
2131
+ end
2132
+
2133
+ class RespondActivityTaskCompleted_args
2134
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2135
+ COMPLETEREQUEST = 1
2136
+
2137
+ FIELDS = {
2138
+ COMPLETEREQUEST => {:type => ::Thrift::Types::STRUCT, :name => 'completeRequest', :class => ::CadenceThrift::RespondActivityTaskCompletedRequest}
2139
+ }
2140
+
2141
+ def struct_fields; FIELDS; end
2142
+
2143
+ def validate
2144
+ end
2145
+
2146
+ ::Thrift::Struct.generate_accessors self
2147
+ end
2148
+
2149
+ class RespondActivityTaskCompleted_result
2150
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2151
+ BADREQUESTERROR = 1
2152
+ INTERNALSERVICEERROR = 2
2153
+ ENTITYNOTEXISTERROR = 3
2154
+ DOMAINNOTACTIVEERROR = 4
2155
+ LIMITEXCEEDEDERROR = 5
2156
+ SERVICEBUSYERROR = 6
2157
+ CLIENTVERSIONNOTSUPPORTEDERROR = 7
2158
+
2159
+ FIELDS = {
2160
+ BADREQUESTERROR => {:type => ::Thrift::Types::STRUCT, :name => 'badRequestError', :class => ::CadenceThrift::BadRequestError},
2161
+ INTERNALSERVICEERROR => {:type => ::Thrift::Types::STRUCT, :name => 'internalServiceError', :class => ::CadenceThrift::InternalServiceError},
2162
+ ENTITYNOTEXISTERROR => {:type => ::Thrift::Types::STRUCT, :name => 'entityNotExistError', :class => ::CadenceThrift::EntityNotExistsError},
2163
+ DOMAINNOTACTIVEERROR => {:type => ::Thrift::Types::STRUCT, :name => 'domainNotActiveError', :class => ::CadenceThrift::DomainNotActiveError},
2164
+ LIMITEXCEEDEDERROR => {:type => ::Thrift::Types::STRUCT, :name => 'limitExceededError', :class => ::CadenceThrift::LimitExceededError},
2165
+ SERVICEBUSYERROR => {:type => ::Thrift::Types::STRUCT, :name => 'serviceBusyError', :class => ::CadenceThrift::ServiceBusyError},
2166
+ CLIENTVERSIONNOTSUPPORTEDERROR => {:type => ::Thrift::Types::STRUCT, :name => 'clientVersionNotSupportedError', :class => ::CadenceThrift::ClientVersionNotSupportedError}
2167
+ }
2168
+
2169
+ def struct_fields; FIELDS; end
2170
+
2171
+ def validate
2172
+ end
2173
+
2174
+ ::Thrift::Struct.generate_accessors self
2175
+ end
2176
+
2177
+ class RespondActivityTaskCompletedByID_args
2178
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2179
+ COMPLETEREQUEST = 1
2180
+
2181
+ FIELDS = {
2182
+ COMPLETEREQUEST => {:type => ::Thrift::Types::STRUCT, :name => 'completeRequest', :class => ::CadenceThrift::RespondActivityTaskCompletedByIDRequest}
2183
+ }
2184
+
2185
+ def struct_fields; FIELDS; end
2186
+
2187
+ def validate
2188
+ end
2189
+
2190
+ ::Thrift::Struct.generate_accessors self
2191
+ end
2192
+
2193
+ class RespondActivityTaskCompletedByID_result
2194
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2195
+ BADREQUESTERROR = 1
2196
+ INTERNALSERVICEERROR = 2
2197
+ ENTITYNOTEXISTERROR = 3
2198
+ DOMAINNOTACTIVEERROR = 4
2199
+ LIMITEXCEEDEDERROR = 5
2200
+ SERVICEBUSYERROR = 6
2201
+ CLIENTVERSIONNOTSUPPORTEDERROR = 7
2202
+
2203
+ FIELDS = {
2204
+ BADREQUESTERROR => {:type => ::Thrift::Types::STRUCT, :name => 'badRequestError', :class => ::CadenceThrift::BadRequestError},
2205
+ INTERNALSERVICEERROR => {:type => ::Thrift::Types::STRUCT, :name => 'internalServiceError', :class => ::CadenceThrift::InternalServiceError},
2206
+ ENTITYNOTEXISTERROR => {:type => ::Thrift::Types::STRUCT, :name => 'entityNotExistError', :class => ::CadenceThrift::EntityNotExistsError},
2207
+ DOMAINNOTACTIVEERROR => {:type => ::Thrift::Types::STRUCT, :name => 'domainNotActiveError', :class => ::CadenceThrift::DomainNotActiveError},
2208
+ LIMITEXCEEDEDERROR => {:type => ::Thrift::Types::STRUCT, :name => 'limitExceededError', :class => ::CadenceThrift::LimitExceededError},
2209
+ SERVICEBUSYERROR => {:type => ::Thrift::Types::STRUCT, :name => 'serviceBusyError', :class => ::CadenceThrift::ServiceBusyError},
2210
+ CLIENTVERSIONNOTSUPPORTEDERROR => {:type => ::Thrift::Types::STRUCT, :name => 'clientVersionNotSupportedError', :class => ::CadenceThrift::ClientVersionNotSupportedError}
2211
+ }
2212
+
2213
+ def struct_fields; FIELDS; end
2214
+
2215
+ def validate
2216
+ end
2217
+
2218
+ ::Thrift::Struct.generate_accessors self
2219
+ end
2220
+
2221
+ class RespondActivityTaskFailed_args
2222
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2223
+ FAILREQUEST = 1
2224
+
2225
+ FIELDS = {
2226
+ FAILREQUEST => {:type => ::Thrift::Types::STRUCT, :name => 'failRequest', :class => ::CadenceThrift::RespondActivityTaskFailedRequest}
2227
+ }
2228
+
2229
+ def struct_fields; FIELDS; end
2230
+
2231
+ def validate
2232
+ end
2233
+
2234
+ ::Thrift::Struct.generate_accessors self
2235
+ end
2236
+
2237
+ class RespondActivityTaskFailed_result
2238
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2239
+ BADREQUESTERROR = 1
2240
+ INTERNALSERVICEERROR = 2
2241
+ ENTITYNOTEXISTERROR = 3
2242
+ DOMAINNOTACTIVEERROR = 4
2243
+ LIMITEXCEEDEDERROR = 5
2244
+ SERVICEBUSYERROR = 6
2245
+ CLIENTVERSIONNOTSUPPORTEDERROR = 7
2246
+
2247
+ FIELDS = {
2248
+ BADREQUESTERROR => {:type => ::Thrift::Types::STRUCT, :name => 'badRequestError', :class => ::CadenceThrift::BadRequestError},
2249
+ INTERNALSERVICEERROR => {:type => ::Thrift::Types::STRUCT, :name => 'internalServiceError', :class => ::CadenceThrift::InternalServiceError},
2250
+ ENTITYNOTEXISTERROR => {:type => ::Thrift::Types::STRUCT, :name => 'entityNotExistError', :class => ::CadenceThrift::EntityNotExistsError},
2251
+ DOMAINNOTACTIVEERROR => {:type => ::Thrift::Types::STRUCT, :name => 'domainNotActiveError', :class => ::CadenceThrift::DomainNotActiveError},
2252
+ LIMITEXCEEDEDERROR => {:type => ::Thrift::Types::STRUCT, :name => 'limitExceededError', :class => ::CadenceThrift::LimitExceededError},
2253
+ SERVICEBUSYERROR => {:type => ::Thrift::Types::STRUCT, :name => 'serviceBusyError', :class => ::CadenceThrift::ServiceBusyError},
2254
+ CLIENTVERSIONNOTSUPPORTEDERROR => {:type => ::Thrift::Types::STRUCT, :name => 'clientVersionNotSupportedError', :class => ::CadenceThrift::ClientVersionNotSupportedError}
2255
+ }
2256
+
2257
+ def struct_fields; FIELDS; end
2258
+
2259
+ def validate
2260
+ end
2261
+
2262
+ ::Thrift::Struct.generate_accessors self
2263
+ end
2264
+
2265
+ class RespondActivityTaskFailedByID_args
2266
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2267
+ FAILREQUEST = 1
2268
+
2269
+ FIELDS = {
2270
+ FAILREQUEST => {:type => ::Thrift::Types::STRUCT, :name => 'failRequest', :class => ::CadenceThrift::RespondActivityTaskFailedByIDRequest}
2271
+ }
2272
+
2273
+ def struct_fields; FIELDS; end
2274
+
2275
+ def validate
2276
+ end
2277
+
2278
+ ::Thrift::Struct.generate_accessors self
2279
+ end
2280
+
2281
+ class RespondActivityTaskFailedByID_result
2282
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2283
+ BADREQUESTERROR = 1
2284
+ INTERNALSERVICEERROR = 2
2285
+ ENTITYNOTEXISTERROR = 3
2286
+ DOMAINNOTACTIVEERROR = 4
2287
+ LIMITEXCEEDEDERROR = 5
2288
+ SERVICEBUSYERROR = 6
2289
+ CLIENTVERSIONNOTSUPPORTEDERROR = 7
2290
+
2291
+ FIELDS = {
2292
+ BADREQUESTERROR => {:type => ::Thrift::Types::STRUCT, :name => 'badRequestError', :class => ::CadenceThrift::BadRequestError},
2293
+ INTERNALSERVICEERROR => {:type => ::Thrift::Types::STRUCT, :name => 'internalServiceError', :class => ::CadenceThrift::InternalServiceError},
2294
+ ENTITYNOTEXISTERROR => {:type => ::Thrift::Types::STRUCT, :name => 'entityNotExistError', :class => ::CadenceThrift::EntityNotExistsError},
2295
+ DOMAINNOTACTIVEERROR => {:type => ::Thrift::Types::STRUCT, :name => 'domainNotActiveError', :class => ::CadenceThrift::DomainNotActiveError},
2296
+ LIMITEXCEEDEDERROR => {:type => ::Thrift::Types::STRUCT, :name => 'limitExceededError', :class => ::CadenceThrift::LimitExceededError},
2297
+ SERVICEBUSYERROR => {:type => ::Thrift::Types::STRUCT, :name => 'serviceBusyError', :class => ::CadenceThrift::ServiceBusyError},
2298
+ CLIENTVERSIONNOTSUPPORTEDERROR => {:type => ::Thrift::Types::STRUCT, :name => 'clientVersionNotSupportedError', :class => ::CadenceThrift::ClientVersionNotSupportedError}
2299
+ }
2300
+
2301
+ def struct_fields; FIELDS; end
2302
+
2303
+ def validate
2304
+ end
2305
+
2306
+ ::Thrift::Struct.generate_accessors self
2307
+ end
2308
+
2309
+ class RespondActivityTaskCanceled_args
2310
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2311
+ CANCELEDREQUEST = 1
2312
+
2313
+ FIELDS = {
2314
+ CANCELEDREQUEST => {:type => ::Thrift::Types::STRUCT, :name => 'canceledRequest', :class => ::CadenceThrift::RespondActivityTaskCanceledRequest}
2315
+ }
2316
+
2317
+ def struct_fields; FIELDS; end
2318
+
2319
+ def validate
2320
+ end
2321
+
2322
+ ::Thrift::Struct.generate_accessors self
2323
+ end
2324
+
2325
+ class RespondActivityTaskCanceled_result
2326
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2327
+ BADREQUESTERROR = 1
2328
+ INTERNALSERVICEERROR = 2
2329
+ ENTITYNOTEXISTERROR = 3
2330
+ DOMAINNOTACTIVEERROR = 4
2331
+ LIMITEXCEEDEDERROR = 5
2332
+ SERVICEBUSYERROR = 6
2333
+ CLIENTVERSIONNOTSUPPORTEDERROR = 7
2334
+
2335
+ FIELDS = {
2336
+ BADREQUESTERROR => {:type => ::Thrift::Types::STRUCT, :name => 'badRequestError', :class => ::CadenceThrift::BadRequestError},
2337
+ INTERNALSERVICEERROR => {:type => ::Thrift::Types::STRUCT, :name => 'internalServiceError', :class => ::CadenceThrift::InternalServiceError},
2338
+ ENTITYNOTEXISTERROR => {:type => ::Thrift::Types::STRUCT, :name => 'entityNotExistError', :class => ::CadenceThrift::EntityNotExistsError},
2339
+ DOMAINNOTACTIVEERROR => {:type => ::Thrift::Types::STRUCT, :name => 'domainNotActiveError', :class => ::CadenceThrift::DomainNotActiveError},
2340
+ LIMITEXCEEDEDERROR => {:type => ::Thrift::Types::STRUCT, :name => 'limitExceededError', :class => ::CadenceThrift::LimitExceededError},
2341
+ SERVICEBUSYERROR => {:type => ::Thrift::Types::STRUCT, :name => 'serviceBusyError', :class => ::CadenceThrift::ServiceBusyError},
2342
+ CLIENTVERSIONNOTSUPPORTEDERROR => {:type => ::Thrift::Types::STRUCT, :name => 'clientVersionNotSupportedError', :class => ::CadenceThrift::ClientVersionNotSupportedError}
2343
+ }
2344
+
2345
+ def struct_fields; FIELDS; end
2346
+
2347
+ def validate
2348
+ end
2349
+
2350
+ ::Thrift::Struct.generate_accessors self
2351
+ end
2352
+
2353
+ class RespondActivityTaskCanceledByID_args
2354
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2355
+ CANCELEDREQUEST = 1
2356
+
2357
+ FIELDS = {
2358
+ CANCELEDREQUEST => {:type => ::Thrift::Types::STRUCT, :name => 'canceledRequest', :class => ::CadenceThrift::RespondActivityTaskCanceledByIDRequest}
2359
+ }
2360
+
2361
+ def struct_fields; FIELDS; end
2362
+
2363
+ def validate
2364
+ end
2365
+
2366
+ ::Thrift::Struct.generate_accessors self
2367
+ end
2368
+
2369
+ class RespondActivityTaskCanceledByID_result
2370
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2371
+ BADREQUESTERROR = 1
2372
+ INTERNALSERVICEERROR = 2
2373
+ ENTITYNOTEXISTERROR = 3
2374
+ DOMAINNOTACTIVEERROR = 4
2375
+ LIMITEXCEEDEDERROR = 5
2376
+ SERVICEBUSYERROR = 6
2377
+ CLIENTVERSIONNOTSUPPORTEDERROR = 7
2378
+
2379
+ FIELDS = {
2380
+ BADREQUESTERROR => {:type => ::Thrift::Types::STRUCT, :name => 'badRequestError', :class => ::CadenceThrift::BadRequestError},
2381
+ INTERNALSERVICEERROR => {:type => ::Thrift::Types::STRUCT, :name => 'internalServiceError', :class => ::CadenceThrift::InternalServiceError},
2382
+ ENTITYNOTEXISTERROR => {:type => ::Thrift::Types::STRUCT, :name => 'entityNotExistError', :class => ::CadenceThrift::EntityNotExistsError},
2383
+ DOMAINNOTACTIVEERROR => {:type => ::Thrift::Types::STRUCT, :name => 'domainNotActiveError', :class => ::CadenceThrift::DomainNotActiveError},
2384
+ LIMITEXCEEDEDERROR => {:type => ::Thrift::Types::STRUCT, :name => 'limitExceededError', :class => ::CadenceThrift::LimitExceededError},
2385
+ SERVICEBUSYERROR => {:type => ::Thrift::Types::STRUCT, :name => 'serviceBusyError', :class => ::CadenceThrift::ServiceBusyError},
2386
+ CLIENTVERSIONNOTSUPPORTEDERROR => {:type => ::Thrift::Types::STRUCT, :name => 'clientVersionNotSupportedError', :class => ::CadenceThrift::ClientVersionNotSupportedError}
2387
+ }
2388
+
2389
+ def struct_fields; FIELDS; end
2390
+
2391
+ def validate
2392
+ end
2393
+
2394
+ ::Thrift::Struct.generate_accessors self
2395
+ end
2396
+
2397
+ class RequestCancelWorkflowExecution_args
2398
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2399
+ CANCELREQUEST = 1
2400
+
2401
+ FIELDS = {
2402
+ CANCELREQUEST => {:type => ::Thrift::Types::STRUCT, :name => 'cancelRequest', :class => ::CadenceThrift::RequestCancelWorkflowExecutionRequest}
2403
+ }
2404
+
2405
+ def struct_fields; FIELDS; end
2406
+
2407
+ def validate
2408
+ end
2409
+
2410
+ ::Thrift::Struct.generate_accessors self
2411
+ end
2412
+
2413
+ class RequestCancelWorkflowExecution_result
2414
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2415
+ BADREQUESTERROR = 1
2416
+ INTERNALSERVICEERROR = 2
2417
+ ENTITYNOTEXISTERROR = 3
2418
+ CANCELLATIONALREADYREQUESTEDERROR = 4
2419
+ SERVICEBUSYERROR = 5
2420
+ DOMAINNOTACTIVEERROR = 6
2421
+ LIMITEXCEEDEDERROR = 7
2422
+ CLIENTVERSIONNOTSUPPORTEDERROR = 8
2423
+
2424
+ FIELDS = {
2425
+ BADREQUESTERROR => {:type => ::Thrift::Types::STRUCT, :name => 'badRequestError', :class => ::CadenceThrift::BadRequestError},
2426
+ INTERNALSERVICEERROR => {:type => ::Thrift::Types::STRUCT, :name => 'internalServiceError', :class => ::CadenceThrift::InternalServiceError},
2427
+ ENTITYNOTEXISTERROR => {:type => ::Thrift::Types::STRUCT, :name => 'entityNotExistError', :class => ::CadenceThrift::EntityNotExistsError},
2428
+ CANCELLATIONALREADYREQUESTEDERROR => {:type => ::Thrift::Types::STRUCT, :name => 'cancellationAlreadyRequestedError', :class => ::CadenceThrift::CancellationAlreadyRequestedError},
2429
+ SERVICEBUSYERROR => {:type => ::Thrift::Types::STRUCT, :name => 'serviceBusyError', :class => ::CadenceThrift::ServiceBusyError},
2430
+ DOMAINNOTACTIVEERROR => {:type => ::Thrift::Types::STRUCT, :name => 'domainNotActiveError', :class => ::CadenceThrift::DomainNotActiveError},
2431
+ LIMITEXCEEDEDERROR => {:type => ::Thrift::Types::STRUCT, :name => 'limitExceededError', :class => ::CadenceThrift::LimitExceededError},
2432
+ CLIENTVERSIONNOTSUPPORTEDERROR => {:type => ::Thrift::Types::STRUCT, :name => 'clientVersionNotSupportedError', :class => ::CadenceThrift::ClientVersionNotSupportedError}
2433
+ }
2434
+
2435
+ def struct_fields; FIELDS; end
2436
+
2437
+ def validate
2438
+ end
2439
+
2440
+ ::Thrift::Struct.generate_accessors self
2441
+ end
2442
+
2443
+ class SignalWorkflowExecution_args
2444
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2445
+ SIGNALREQUEST = 1
2446
+
2447
+ FIELDS = {
2448
+ SIGNALREQUEST => {:type => ::Thrift::Types::STRUCT, :name => 'signalRequest', :class => ::CadenceThrift::SignalWorkflowExecutionRequest}
2449
+ }
2450
+
2451
+ def struct_fields; FIELDS; end
2452
+
2453
+ def validate
2454
+ end
2455
+
2456
+ ::Thrift::Struct.generate_accessors self
2457
+ end
2458
+
2459
+ class SignalWorkflowExecution_result
2460
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2461
+ BADREQUESTERROR = 1
2462
+ INTERNALSERVICEERROR = 2
2463
+ ENTITYNOTEXISTERROR = 3
2464
+ SERVICEBUSYERROR = 4
2465
+ DOMAINNOTACTIVEERROR = 5
2466
+ LIMITEXCEEDEDERROR = 6
2467
+ CLIENTVERSIONNOTSUPPORTEDERROR = 7
2468
+
2469
+ FIELDS = {
2470
+ BADREQUESTERROR => {:type => ::Thrift::Types::STRUCT, :name => 'badRequestError', :class => ::CadenceThrift::BadRequestError},
2471
+ INTERNALSERVICEERROR => {:type => ::Thrift::Types::STRUCT, :name => 'internalServiceError', :class => ::CadenceThrift::InternalServiceError},
2472
+ ENTITYNOTEXISTERROR => {:type => ::Thrift::Types::STRUCT, :name => 'entityNotExistError', :class => ::CadenceThrift::EntityNotExistsError},
2473
+ SERVICEBUSYERROR => {:type => ::Thrift::Types::STRUCT, :name => 'serviceBusyError', :class => ::CadenceThrift::ServiceBusyError},
2474
+ DOMAINNOTACTIVEERROR => {:type => ::Thrift::Types::STRUCT, :name => 'domainNotActiveError', :class => ::CadenceThrift::DomainNotActiveError},
2475
+ LIMITEXCEEDEDERROR => {:type => ::Thrift::Types::STRUCT, :name => 'limitExceededError', :class => ::CadenceThrift::LimitExceededError},
2476
+ CLIENTVERSIONNOTSUPPORTEDERROR => {:type => ::Thrift::Types::STRUCT, :name => 'clientVersionNotSupportedError', :class => ::CadenceThrift::ClientVersionNotSupportedError}
2477
+ }
2478
+
2479
+ def struct_fields; FIELDS; end
2480
+
2481
+ def validate
2482
+ end
2483
+
2484
+ ::Thrift::Struct.generate_accessors self
2485
+ end
2486
+
2487
+ class SignalWithStartWorkflowExecution_args
2488
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2489
+ SIGNALWITHSTARTREQUEST = 1
2490
+
2491
+ FIELDS = {
2492
+ SIGNALWITHSTARTREQUEST => {:type => ::Thrift::Types::STRUCT, :name => 'signalWithStartRequest', :class => ::CadenceThrift::SignalWithStartWorkflowExecutionRequest}
2493
+ }
2494
+
2495
+ def struct_fields; FIELDS; end
2496
+
2497
+ def validate
2498
+ end
2499
+
2500
+ ::Thrift::Struct.generate_accessors self
2501
+ end
2502
+
2503
+ class SignalWithStartWorkflowExecution_result
2504
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2505
+ SUCCESS = 0
2506
+ BADREQUESTERROR = 1
2507
+ INTERNALSERVICEERROR = 2
2508
+ ENTITYNOTEXISTERROR = 3
2509
+ SERVICEBUSYERROR = 4
2510
+ DOMAINNOTACTIVEERROR = 5
2511
+ LIMITEXCEEDEDERROR = 6
2512
+ WORKFLOWALREADYSTARTEDERROR = 7
2513
+ CLIENTVERSIONNOTSUPPORTEDERROR = 8
2514
+
2515
+ FIELDS = {
2516
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::CadenceThrift::StartWorkflowExecutionResponse},
2517
+ BADREQUESTERROR => {:type => ::Thrift::Types::STRUCT, :name => 'badRequestError', :class => ::CadenceThrift::BadRequestError},
2518
+ INTERNALSERVICEERROR => {:type => ::Thrift::Types::STRUCT, :name => 'internalServiceError', :class => ::CadenceThrift::InternalServiceError},
2519
+ ENTITYNOTEXISTERROR => {:type => ::Thrift::Types::STRUCT, :name => 'entityNotExistError', :class => ::CadenceThrift::EntityNotExistsError},
2520
+ SERVICEBUSYERROR => {:type => ::Thrift::Types::STRUCT, :name => 'serviceBusyError', :class => ::CadenceThrift::ServiceBusyError},
2521
+ DOMAINNOTACTIVEERROR => {:type => ::Thrift::Types::STRUCT, :name => 'domainNotActiveError', :class => ::CadenceThrift::DomainNotActiveError},
2522
+ LIMITEXCEEDEDERROR => {:type => ::Thrift::Types::STRUCT, :name => 'limitExceededError', :class => ::CadenceThrift::LimitExceededError},
2523
+ WORKFLOWALREADYSTARTEDERROR => {:type => ::Thrift::Types::STRUCT, :name => 'workflowAlreadyStartedError', :class => ::CadenceThrift::WorkflowExecutionAlreadyStartedError},
2524
+ CLIENTVERSIONNOTSUPPORTEDERROR => {:type => ::Thrift::Types::STRUCT, :name => 'clientVersionNotSupportedError', :class => ::CadenceThrift::ClientVersionNotSupportedError}
2525
+ }
2526
+
2527
+ def struct_fields; FIELDS; end
2528
+
2529
+ def validate
2530
+ end
2531
+
2532
+ ::Thrift::Struct.generate_accessors self
2533
+ end
2534
+
2535
+ class ResetWorkflowExecution_args
2536
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2537
+ RESETREQUEST = 1
2538
+
2539
+ FIELDS = {
2540
+ RESETREQUEST => {:type => ::Thrift::Types::STRUCT, :name => 'resetRequest', :class => ::CadenceThrift::ResetWorkflowExecutionRequest}
2541
+ }
2542
+
2543
+ def struct_fields; FIELDS; end
2544
+
2545
+ def validate
2546
+ end
2547
+
2548
+ ::Thrift::Struct.generate_accessors self
2549
+ end
2550
+
2551
+ class ResetWorkflowExecution_result
2552
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2553
+ SUCCESS = 0
2554
+ BADREQUESTERROR = 1
2555
+ INTERNALSERVICEERROR = 2
2556
+ ENTITYNOTEXISTERROR = 3
2557
+ SERVICEBUSYERROR = 4
2558
+ DOMAINNOTACTIVEERROR = 5
2559
+ LIMITEXCEEDEDERROR = 6
2560
+ CLIENTVERSIONNOTSUPPORTEDERROR = 7
2561
+
2562
+ FIELDS = {
2563
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::CadenceThrift::ResetWorkflowExecutionResponse},
2564
+ BADREQUESTERROR => {:type => ::Thrift::Types::STRUCT, :name => 'badRequestError', :class => ::CadenceThrift::BadRequestError},
2565
+ INTERNALSERVICEERROR => {:type => ::Thrift::Types::STRUCT, :name => 'internalServiceError', :class => ::CadenceThrift::InternalServiceError},
2566
+ ENTITYNOTEXISTERROR => {:type => ::Thrift::Types::STRUCT, :name => 'entityNotExistError', :class => ::CadenceThrift::EntityNotExistsError},
2567
+ SERVICEBUSYERROR => {:type => ::Thrift::Types::STRUCT, :name => 'serviceBusyError', :class => ::CadenceThrift::ServiceBusyError},
2568
+ DOMAINNOTACTIVEERROR => {:type => ::Thrift::Types::STRUCT, :name => 'domainNotActiveError', :class => ::CadenceThrift::DomainNotActiveError},
2569
+ LIMITEXCEEDEDERROR => {:type => ::Thrift::Types::STRUCT, :name => 'limitExceededError', :class => ::CadenceThrift::LimitExceededError},
2570
+ CLIENTVERSIONNOTSUPPORTEDERROR => {:type => ::Thrift::Types::STRUCT, :name => 'clientVersionNotSupportedError', :class => ::CadenceThrift::ClientVersionNotSupportedError}
2571
+ }
2572
+
2573
+ def struct_fields; FIELDS; end
2574
+
2575
+ def validate
2576
+ end
2577
+
2578
+ ::Thrift::Struct.generate_accessors self
2579
+ end
2580
+
2581
+ class TerminateWorkflowExecution_args
2582
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2583
+ TERMINATEREQUEST = 1
2584
+
2585
+ FIELDS = {
2586
+ TERMINATEREQUEST => {:type => ::Thrift::Types::STRUCT, :name => 'terminateRequest', :class => ::CadenceThrift::TerminateWorkflowExecutionRequest}
2587
+ }
2588
+
2589
+ def struct_fields; FIELDS; end
2590
+
2591
+ def validate
2592
+ end
2593
+
2594
+ ::Thrift::Struct.generate_accessors self
2595
+ end
2596
+
2597
+ class TerminateWorkflowExecution_result
2598
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2599
+ BADREQUESTERROR = 1
2600
+ INTERNALSERVICEERROR = 2
2601
+ ENTITYNOTEXISTERROR = 3
2602
+ SERVICEBUSYERROR = 4
2603
+ DOMAINNOTACTIVEERROR = 5
2604
+ LIMITEXCEEDEDERROR = 6
2605
+ CLIENTVERSIONNOTSUPPORTEDERROR = 7
2606
+
2607
+ FIELDS = {
2608
+ BADREQUESTERROR => {:type => ::Thrift::Types::STRUCT, :name => 'badRequestError', :class => ::CadenceThrift::BadRequestError},
2609
+ INTERNALSERVICEERROR => {:type => ::Thrift::Types::STRUCT, :name => 'internalServiceError', :class => ::CadenceThrift::InternalServiceError},
2610
+ ENTITYNOTEXISTERROR => {:type => ::Thrift::Types::STRUCT, :name => 'entityNotExistError', :class => ::CadenceThrift::EntityNotExistsError},
2611
+ SERVICEBUSYERROR => {:type => ::Thrift::Types::STRUCT, :name => 'serviceBusyError', :class => ::CadenceThrift::ServiceBusyError},
2612
+ DOMAINNOTACTIVEERROR => {:type => ::Thrift::Types::STRUCT, :name => 'domainNotActiveError', :class => ::CadenceThrift::DomainNotActiveError},
2613
+ LIMITEXCEEDEDERROR => {:type => ::Thrift::Types::STRUCT, :name => 'limitExceededError', :class => ::CadenceThrift::LimitExceededError},
2614
+ CLIENTVERSIONNOTSUPPORTEDERROR => {:type => ::Thrift::Types::STRUCT, :name => 'clientVersionNotSupportedError', :class => ::CadenceThrift::ClientVersionNotSupportedError}
2615
+ }
2616
+
2617
+ def struct_fields; FIELDS; end
2618
+
2619
+ def validate
2620
+ end
2621
+
2622
+ ::Thrift::Struct.generate_accessors self
2623
+ end
2624
+
2625
+ class ListOpenWorkflowExecutions_args
2626
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2627
+ LISTREQUEST = 1
2628
+
2629
+ FIELDS = {
2630
+ LISTREQUEST => {:type => ::Thrift::Types::STRUCT, :name => 'listRequest', :class => ::CadenceThrift::ListOpenWorkflowExecutionsRequest}
2631
+ }
2632
+
2633
+ def struct_fields; FIELDS; end
2634
+
2635
+ def validate
2636
+ end
2637
+
2638
+ ::Thrift::Struct.generate_accessors self
2639
+ end
2640
+
2641
+ class ListOpenWorkflowExecutions_result
2642
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2643
+ SUCCESS = 0
2644
+ BADREQUESTERROR = 1
2645
+ INTERNALSERVICEERROR = 2
2646
+ ENTITYNOTEXISTERROR = 3
2647
+ SERVICEBUSYERROR = 4
2648
+ LIMITEXCEEDEDERROR = 5
2649
+ CLIENTVERSIONNOTSUPPORTEDERROR = 6
2650
+
2651
+ FIELDS = {
2652
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::CadenceThrift::ListOpenWorkflowExecutionsResponse},
2653
+ BADREQUESTERROR => {:type => ::Thrift::Types::STRUCT, :name => 'badRequestError', :class => ::CadenceThrift::BadRequestError},
2654
+ INTERNALSERVICEERROR => {:type => ::Thrift::Types::STRUCT, :name => 'internalServiceError', :class => ::CadenceThrift::InternalServiceError},
2655
+ ENTITYNOTEXISTERROR => {:type => ::Thrift::Types::STRUCT, :name => 'entityNotExistError', :class => ::CadenceThrift::EntityNotExistsError},
2656
+ SERVICEBUSYERROR => {:type => ::Thrift::Types::STRUCT, :name => 'serviceBusyError', :class => ::CadenceThrift::ServiceBusyError},
2657
+ LIMITEXCEEDEDERROR => {:type => ::Thrift::Types::STRUCT, :name => 'limitExceededError', :class => ::CadenceThrift::LimitExceededError},
2658
+ CLIENTVERSIONNOTSUPPORTEDERROR => {:type => ::Thrift::Types::STRUCT, :name => 'clientVersionNotSupportedError', :class => ::CadenceThrift::ClientVersionNotSupportedError}
2659
+ }
2660
+
2661
+ def struct_fields; FIELDS; end
2662
+
2663
+ def validate
2664
+ end
2665
+
2666
+ ::Thrift::Struct.generate_accessors self
2667
+ end
2668
+
2669
+ class ListClosedWorkflowExecutions_args
2670
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2671
+ LISTREQUEST = 1
2672
+
2673
+ FIELDS = {
2674
+ LISTREQUEST => {:type => ::Thrift::Types::STRUCT, :name => 'listRequest', :class => ::CadenceThrift::ListClosedWorkflowExecutionsRequest}
2675
+ }
2676
+
2677
+ def struct_fields; FIELDS; end
2678
+
2679
+ def validate
2680
+ end
2681
+
2682
+ ::Thrift::Struct.generate_accessors self
2683
+ end
2684
+
2685
+ class ListClosedWorkflowExecutions_result
2686
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2687
+ SUCCESS = 0
2688
+ BADREQUESTERROR = 1
2689
+ INTERNALSERVICEERROR = 2
2690
+ ENTITYNOTEXISTERROR = 3
2691
+ SERVICEBUSYERROR = 4
2692
+ CLIENTVERSIONNOTSUPPORTEDERROR = 5
2693
+
2694
+ FIELDS = {
2695
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::CadenceThrift::ListClosedWorkflowExecutionsResponse},
2696
+ BADREQUESTERROR => {:type => ::Thrift::Types::STRUCT, :name => 'badRequestError', :class => ::CadenceThrift::BadRequestError},
2697
+ INTERNALSERVICEERROR => {:type => ::Thrift::Types::STRUCT, :name => 'internalServiceError', :class => ::CadenceThrift::InternalServiceError},
2698
+ ENTITYNOTEXISTERROR => {:type => ::Thrift::Types::STRUCT, :name => 'entityNotExistError', :class => ::CadenceThrift::EntityNotExistsError},
2699
+ SERVICEBUSYERROR => {:type => ::Thrift::Types::STRUCT, :name => 'serviceBusyError', :class => ::CadenceThrift::ServiceBusyError},
2700
+ CLIENTVERSIONNOTSUPPORTEDERROR => {:type => ::Thrift::Types::STRUCT, :name => 'clientVersionNotSupportedError', :class => ::CadenceThrift::ClientVersionNotSupportedError}
2701
+ }
2702
+
2703
+ def struct_fields; FIELDS; end
2704
+
2705
+ def validate
2706
+ end
2707
+
2708
+ ::Thrift::Struct.generate_accessors self
2709
+ end
2710
+
2711
+ class ListWorkflowExecutions_args
2712
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2713
+ LISTREQUEST = 1
2714
+
2715
+ FIELDS = {
2716
+ LISTREQUEST => {:type => ::Thrift::Types::STRUCT, :name => 'listRequest', :class => ::CadenceThrift::ListWorkflowExecutionsRequest}
2717
+ }
2718
+
2719
+ def struct_fields; FIELDS; end
2720
+
2721
+ def validate
2722
+ end
2723
+
2724
+ ::Thrift::Struct.generate_accessors self
2725
+ end
2726
+
2727
+ class ListWorkflowExecutions_result
2728
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2729
+ SUCCESS = 0
2730
+ BADREQUESTERROR = 1
2731
+ INTERNALSERVICEERROR = 2
2732
+ ENTITYNOTEXISTERROR = 3
2733
+ SERVICEBUSYERROR = 4
2734
+ CLIENTVERSIONNOTSUPPORTEDERROR = 5
2735
+
2736
+ FIELDS = {
2737
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::CadenceThrift::ListWorkflowExecutionsResponse},
2738
+ BADREQUESTERROR => {:type => ::Thrift::Types::STRUCT, :name => 'badRequestError', :class => ::CadenceThrift::BadRequestError},
2739
+ INTERNALSERVICEERROR => {:type => ::Thrift::Types::STRUCT, :name => 'internalServiceError', :class => ::CadenceThrift::InternalServiceError},
2740
+ ENTITYNOTEXISTERROR => {:type => ::Thrift::Types::STRUCT, :name => 'entityNotExistError', :class => ::CadenceThrift::EntityNotExistsError},
2741
+ SERVICEBUSYERROR => {:type => ::Thrift::Types::STRUCT, :name => 'serviceBusyError', :class => ::CadenceThrift::ServiceBusyError},
2742
+ CLIENTVERSIONNOTSUPPORTEDERROR => {:type => ::Thrift::Types::STRUCT, :name => 'clientVersionNotSupportedError', :class => ::CadenceThrift::ClientVersionNotSupportedError}
2743
+ }
2744
+
2745
+ def struct_fields; FIELDS; end
2746
+
2747
+ def validate
2748
+ end
2749
+
2750
+ ::Thrift::Struct.generate_accessors self
2751
+ end
2752
+
2753
+ class ListArchivedWorkflowExecutions_args
2754
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2755
+ LISTREQUEST = 1
2756
+
2757
+ FIELDS = {
2758
+ LISTREQUEST => {:type => ::Thrift::Types::STRUCT, :name => 'listRequest', :class => ::CadenceThrift::ListArchivedWorkflowExecutionsRequest}
2759
+ }
2760
+
2761
+ def struct_fields; FIELDS; end
2762
+
2763
+ def validate
2764
+ end
2765
+
2766
+ ::Thrift::Struct.generate_accessors self
2767
+ end
2768
+
2769
+ class ListArchivedWorkflowExecutions_result
2770
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2771
+ SUCCESS = 0
2772
+ BADREQUESTERROR = 1
2773
+ INTERNALSERVICEERROR = 2
2774
+ ENTITYNOTEXISTERROR = 3
2775
+ SERVICEBUSYERROR = 4
2776
+ CLIENTVERSIONNOTSUPPORTEDERROR = 5
2777
+
2778
+ FIELDS = {
2779
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::CadenceThrift::ListArchivedWorkflowExecutionsResponse},
2780
+ BADREQUESTERROR => {:type => ::Thrift::Types::STRUCT, :name => 'badRequestError', :class => ::CadenceThrift::BadRequestError},
2781
+ INTERNALSERVICEERROR => {:type => ::Thrift::Types::STRUCT, :name => 'internalServiceError', :class => ::CadenceThrift::InternalServiceError},
2782
+ ENTITYNOTEXISTERROR => {:type => ::Thrift::Types::STRUCT, :name => 'entityNotExistError', :class => ::CadenceThrift::EntityNotExistsError},
2783
+ SERVICEBUSYERROR => {:type => ::Thrift::Types::STRUCT, :name => 'serviceBusyError', :class => ::CadenceThrift::ServiceBusyError},
2784
+ CLIENTVERSIONNOTSUPPORTEDERROR => {:type => ::Thrift::Types::STRUCT, :name => 'clientVersionNotSupportedError', :class => ::CadenceThrift::ClientVersionNotSupportedError}
2785
+ }
2786
+
2787
+ def struct_fields; FIELDS; end
2788
+
2789
+ def validate
2790
+ end
2791
+
2792
+ ::Thrift::Struct.generate_accessors self
2793
+ end
2794
+
2795
+ class ScanWorkflowExecutions_args
2796
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2797
+ LISTREQUEST = 1
2798
+
2799
+ FIELDS = {
2800
+ LISTREQUEST => {:type => ::Thrift::Types::STRUCT, :name => 'listRequest', :class => ::CadenceThrift::ListWorkflowExecutionsRequest}
2801
+ }
2802
+
2803
+ def struct_fields; FIELDS; end
2804
+
2805
+ def validate
2806
+ end
2807
+
2808
+ ::Thrift::Struct.generate_accessors self
2809
+ end
2810
+
2811
+ class ScanWorkflowExecutions_result
2812
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2813
+ SUCCESS = 0
2814
+ BADREQUESTERROR = 1
2815
+ INTERNALSERVICEERROR = 2
2816
+ ENTITYNOTEXISTERROR = 3
2817
+ SERVICEBUSYERROR = 4
2818
+ CLIENTVERSIONNOTSUPPORTEDERROR = 5
2819
+
2820
+ FIELDS = {
2821
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::CadenceThrift::ListWorkflowExecutionsResponse},
2822
+ BADREQUESTERROR => {:type => ::Thrift::Types::STRUCT, :name => 'badRequestError', :class => ::CadenceThrift::BadRequestError},
2823
+ INTERNALSERVICEERROR => {:type => ::Thrift::Types::STRUCT, :name => 'internalServiceError', :class => ::CadenceThrift::InternalServiceError},
2824
+ ENTITYNOTEXISTERROR => {:type => ::Thrift::Types::STRUCT, :name => 'entityNotExistError', :class => ::CadenceThrift::EntityNotExistsError},
2825
+ SERVICEBUSYERROR => {:type => ::Thrift::Types::STRUCT, :name => 'serviceBusyError', :class => ::CadenceThrift::ServiceBusyError},
2826
+ CLIENTVERSIONNOTSUPPORTEDERROR => {:type => ::Thrift::Types::STRUCT, :name => 'clientVersionNotSupportedError', :class => ::CadenceThrift::ClientVersionNotSupportedError}
2827
+ }
2828
+
2829
+ def struct_fields; FIELDS; end
2830
+
2831
+ def validate
2832
+ end
2833
+
2834
+ ::Thrift::Struct.generate_accessors self
2835
+ end
2836
+
2837
+ class CountWorkflowExecutions_args
2838
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2839
+ COUNTREQUEST = 1
2840
+
2841
+ FIELDS = {
2842
+ COUNTREQUEST => {:type => ::Thrift::Types::STRUCT, :name => 'countRequest', :class => ::CadenceThrift::CountWorkflowExecutionsRequest}
2843
+ }
2844
+
2845
+ def struct_fields; FIELDS; end
2846
+
2847
+ def validate
2848
+ end
2849
+
2850
+ ::Thrift::Struct.generate_accessors self
2851
+ end
2852
+
2853
+ class CountWorkflowExecutions_result
2854
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2855
+ SUCCESS = 0
2856
+ BADREQUESTERROR = 1
2857
+ INTERNALSERVICEERROR = 2
2858
+ ENTITYNOTEXISTERROR = 3
2859
+ SERVICEBUSYERROR = 4
2860
+ CLIENTVERSIONNOTSUPPORTEDERROR = 5
2861
+
2862
+ FIELDS = {
2863
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::CadenceThrift::CountWorkflowExecutionsResponse},
2864
+ BADREQUESTERROR => {:type => ::Thrift::Types::STRUCT, :name => 'badRequestError', :class => ::CadenceThrift::BadRequestError},
2865
+ INTERNALSERVICEERROR => {:type => ::Thrift::Types::STRUCT, :name => 'internalServiceError', :class => ::CadenceThrift::InternalServiceError},
2866
+ ENTITYNOTEXISTERROR => {:type => ::Thrift::Types::STRUCT, :name => 'entityNotExistError', :class => ::CadenceThrift::EntityNotExistsError},
2867
+ SERVICEBUSYERROR => {:type => ::Thrift::Types::STRUCT, :name => 'serviceBusyError', :class => ::CadenceThrift::ServiceBusyError},
2868
+ CLIENTVERSIONNOTSUPPORTEDERROR => {:type => ::Thrift::Types::STRUCT, :name => 'clientVersionNotSupportedError', :class => ::CadenceThrift::ClientVersionNotSupportedError}
2869
+ }
2870
+
2871
+ def struct_fields; FIELDS; end
2872
+
2873
+ def validate
2874
+ end
2875
+
2876
+ ::Thrift::Struct.generate_accessors self
2877
+ end
2878
+
2879
+ class GetSearchAttributes_args
2880
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2881
+
2882
+ FIELDS = {
2883
+
2884
+ }
2885
+
2886
+ def struct_fields; FIELDS; end
2887
+
2888
+ def validate
2889
+ end
2890
+
2891
+ ::Thrift::Struct.generate_accessors self
2892
+ end
2893
+
2894
+ class GetSearchAttributes_result
2895
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2896
+ SUCCESS = 0
2897
+ INTERNALSERVICEERROR = 1
2898
+ SERVICEBUSYERROR = 2
2899
+ CLIENTVERSIONNOTSUPPORTEDERROR = 3
2900
+
2901
+ FIELDS = {
2902
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::CadenceThrift::GetSearchAttributesResponse},
2903
+ INTERNALSERVICEERROR => {:type => ::Thrift::Types::STRUCT, :name => 'internalServiceError', :class => ::CadenceThrift::InternalServiceError},
2904
+ SERVICEBUSYERROR => {:type => ::Thrift::Types::STRUCT, :name => 'serviceBusyError', :class => ::CadenceThrift::ServiceBusyError},
2905
+ CLIENTVERSIONNOTSUPPORTEDERROR => {:type => ::Thrift::Types::STRUCT, :name => 'clientVersionNotSupportedError', :class => ::CadenceThrift::ClientVersionNotSupportedError}
2906
+ }
2907
+
2908
+ def struct_fields; FIELDS; end
2909
+
2910
+ def validate
2911
+ end
2912
+
2913
+ ::Thrift::Struct.generate_accessors self
2914
+ end
2915
+
2916
+ class RespondQueryTaskCompleted_args
2917
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2918
+ COMPLETEREQUEST = 1
2919
+
2920
+ FIELDS = {
2921
+ COMPLETEREQUEST => {:type => ::Thrift::Types::STRUCT, :name => 'completeRequest', :class => ::CadenceThrift::RespondQueryTaskCompletedRequest}
2922
+ }
2923
+
2924
+ def struct_fields; FIELDS; end
2925
+
2926
+ def validate
2927
+ end
2928
+
2929
+ ::Thrift::Struct.generate_accessors self
2930
+ end
2931
+
2932
+ class RespondQueryTaskCompleted_result
2933
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2934
+ BADREQUESTERROR = 1
2935
+ INTERNALSERVICEERROR = 2
2936
+ ENTITYNOTEXISTERROR = 3
2937
+ LIMITEXCEEDEDERROR = 4
2938
+ SERVICEBUSYERROR = 5
2939
+ DOMAINNOTACTIVEERROR = 6
2940
+ CLIENTVERSIONNOTSUPPORTEDERROR = 7
2941
+
2942
+ FIELDS = {
2943
+ BADREQUESTERROR => {:type => ::Thrift::Types::STRUCT, :name => 'badRequestError', :class => ::CadenceThrift::BadRequestError},
2944
+ INTERNALSERVICEERROR => {:type => ::Thrift::Types::STRUCT, :name => 'internalServiceError', :class => ::CadenceThrift::InternalServiceError},
2945
+ ENTITYNOTEXISTERROR => {:type => ::Thrift::Types::STRUCT, :name => 'entityNotExistError', :class => ::CadenceThrift::EntityNotExistsError},
2946
+ LIMITEXCEEDEDERROR => {:type => ::Thrift::Types::STRUCT, :name => 'limitExceededError', :class => ::CadenceThrift::LimitExceededError},
2947
+ SERVICEBUSYERROR => {:type => ::Thrift::Types::STRUCT, :name => 'serviceBusyError', :class => ::CadenceThrift::ServiceBusyError},
2948
+ DOMAINNOTACTIVEERROR => {:type => ::Thrift::Types::STRUCT, :name => 'domainNotActiveError', :class => ::CadenceThrift::DomainNotActiveError},
2949
+ CLIENTVERSIONNOTSUPPORTEDERROR => {:type => ::Thrift::Types::STRUCT, :name => 'clientVersionNotSupportedError', :class => ::CadenceThrift::ClientVersionNotSupportedError}
2950
+ }
2951
+
2952
+ def struct_fields; FIELDS; end
2953
+
2954
+ def validate
2955
+ end
2956
+
2957
+ ::Thrift::Struct.generate_accessors self
2958
+ end
2959
+
2960
+ class ResetStickyTaskList_args
2961
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2962
+ RESETREQUEST = 1
2963
+
2964
+ FIELDS = {
2965
+ RESETREQUEST => {:type => ::Thrift::Types::STRUCT, :name => 'resetRequest', :class => ::CadenceThrift::ResetStickyTaskListRequest}
2966
+ }
2967
+
2968
+ def struct_fields; FIELDS; end
2969
+
2970
+ def validate
2971
+ end
2972
+
2973
+ ::Thrift::Struct.generate_accessors self
2974
+ end
2975
+
2976
+ class ResetStickyTaskList_result
2977
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2978
+ SUCCESS = 0
2979
+ BADREQUESTERROR = 1
2980
+ INTERNALSERVICEERROR = 2
2981
+ ENTITYNOTEXISTERROR = 3
2982
+ LIMITEXCEEDEDERROR = 4
2983
+ SERVICEBUSYERROR = 5
2984
+ DOMAINNOTACTIVEERROR = 6
2985
+ CLIENTVERSIONNOTSUPPORTEDERROR = 7
2986
+
2987
+ FIELDS = {
2988
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::CadenceThrift::ResetStickyTaskListResponse},
2989
+ BADREQUESTERROR => {:type => ::Thrift::Types::STRUCT, :name => 'badRequestError', :class => ::CadenceThrift::BadRequestError},
2990
+ INTERNALSERVICEERROR => {:type => ::Thrift::Types::STRUCT, :name => 'internalServiceError', :class => ::CadenceThrift::InternalServiceError},
2991
+ ENTITYNOTEXISTERROR => {:type => ::Thrift::Types::STRUCT, :name => 'entityNotExistError', :class => ::CadenceThrift::EntityNotExistsError},
2992
+ LIMITEXCEEDEDERROR => {:type => ::Thrift::Types::STRUCT, :name => 'limitExceededError', :class => ::CadenceThrift::LimitExceededError},
2993
+ SERVICEBUSYERROR => {:type => ::Thrift::Types::STRUCT, :name => 'serviceBusyError', :class => ::CadenceThrift::ServiceBusyError},
2994
+ DOMAINNOTACTIVEERROR => {:type => ::Thrift::Types::STRUCT, :name => 'domainNotActiveError', :class => ::CadenceThrift::DomainNotActiveError},
2995
+ CLIENTVERSIONNOTSUPPORTEDERROR => {:type => ::Thrift::Types::STRUCT, :name => 'clientVersionNotSupportedError', :class => ::CadenceThrift::ClientVersionNotSupportedError}
2996
+ }
2997
+
2998
+ def struct_fields; FIELDS; end
2999
+
3000
+ def validate
3001
+ end
3002
+
3003
+ ::Thrift::Struct.generate_accessors self
3004
+ end
3005
+
3006
+ class QueryWorkflow_args
3007
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3008
+ QUERYREQUEST = 1
3009
+
3010
+ FIELDS = {
3011
+ QUERYREQUEST => {:type => ::Thrift::Types::STRUCT, :name => 'queryRequest', :class => ::CadenceThrift::QueryWorkflowRequest}
3012
+ }
3013
+
3014
+ def struct_fields; FIELDS; end
3015
+
3016
+ def validate
3017
+ end
3018
+
3019
+ ::Thrift::Struct.generate_accessors self
3020
+ end
3021
+
3022
+ class QueryWorkflow_result
3023
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3024
+ SUCCESS = 0
3025
+ BADREQUESTERROR = 1
3026
+ INTERNALSERVICEERROR = 2
3027
+ ENTITYNOTEXISTERROR = 3
3028
+ QUERYFAILEDERROR = 4
3029
+ LIMITEXCEEDEDERROR = 5
3030
+ SERVICEBUSYERROR = 6
3031
+ CLIENTVERSIONNOTSUPPORTEDERROR = 7
3032
+
3033
+ FIELDS = {
3034
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::CadenceThrift::QueryWorkflowResponse},
3035
+ BADREQUESTERROR => {:type => ::Thrift::Types::STRUCT, :name => 'badRequestError', :class => ::CadenceThrift::BadRequestError},
3036
+ INTERNALSERVICEERROR => {:type => ::Thrift::Types::STRUCT, :name => 'internalServiceError', :class => ::CadenceThrift::InternalServiceError},
3037
+ ENTITYNOTEXISTERROR => {:type => ::Thrift::Types::STRUCT, :name => 'entityNotExistError', :class => ::CadenceThrift::EntityNotExistsError},
3038
+ QUERYFAILEDERROR => {:type => ::Thrift::Types::STRUCT, :name => 'queryFailedError', :class => ::CadenceThrift::QueryFailedError},
3039
+ LIMITEXCEEDEDERROR => {:type => ::Thrift::Types::STRUCT, :name => 'limitExceededError', :class => ::CadenceThrift::LimitExceededError},
3040
+ SERVICEBUSYERROR => {:type => ::Thrift::Types::STRUCT, :name => 'serviceBusyError', :class => ::CadenceThrift::ServiceBusyError},
3041
+ CLIENTVERSIONNOTSUPPORTEDERROR => {:type => ::Thrift::Types::STRUCT, :name => 'clientVersionNotSupportedError', :class => ::CadenceThrift::ClientVersionNotSupportedError}
3042
+ }
3043
+
3044
+ def struct_fields; FIELDS; end
3045
+
3046
+ def validate
3047
+ end
3048
+
3049
+ ::Thrift::Struct.generate_accessors self
3050
+ end
3051
+
3052
+ class DescribeWorkflowExecution_args
3053
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3054
+ DESCRIBEREQUEST = 1
3055
+
3056
+ FIELDS = {
3057
+ DESCRIBEREQUEST => {:type => ::Thrift::Types::STRUCT, :name => 'describeRequest', :class => ::CadenceThrift::DescribeWorkflowExecutionRequest}
3058
+ }
3059
+
3060
+ def struct_fields; FIELDS; end
3061
+
3062
+ def validate
3063
+ end
3064
+
3065
+ ::Thrift::Struct.generate_accessors self
3066
+ end
3067
+
3068
+ class DescribeWorkflowExecution_result
3069
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3070
+ SUCCESS = 0
3071
+ BADREQUESTERROR = 1
3072
+ INTERNALSERVICEERROR = 2
3073
+ ENTITYNOTEXISTERROR = 3
3074
+ LIMITEXCEEDEDERROR = 4
3075
+ SERVICEBUSYERROR = 5
3076
+ CLIENTVERSIONNOTSUPPORTEDERROR = 6
3077
+
3078
+ FIELDS = {
3079
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::CadenceThrift::DescribeWorkflowExecutionResponse},
3080
+ BADREQUESTERROR => {:type => ::Thrift::Types::STRUCT, :name => 'badRequestError', :class => ::CadenceThrift::BadRequestError},
3081
+ INTERNALSERVICEERROR => {:type => ::Thrift::Types::STRUCT, :name => 'internalServiceError', :class => ::CadenceThrift::InternalServiceError},
3082
+ ENTITYNOTEXISTERROR => {:type => ::Thrift::Types::STRUCT, :name => 'entityNotExistError', :class => ::CadenceThrift::EntityNotExistsError},
3083
+ LIMITEXCEEDEDERROR => {:type => ::Thrift::Types::STRUCT, :name => 'limitExceededError', :class => ::CadenceThrift::LimitExceededError},
3084
+ SERVICEBUSYERROR => {:type => ::Thrift::Types::STRUCT, :name => 'serviceBusyError', :class => ::CadenceThrift::ServiceBusyError},
3085
+ CLIENTVERSIONNOTSUPPORTEDERROR => {:type => ::Thrift::Types::STRUCT, :name => 'clientVersionNotSupportedError', :class => ::CadenceThrift::ClientVersionNotSupportedError}
3086
+ }
3087
+
3088
+ def struct_fields; FIELDS; end
3089
+
3090
+ def validate
3091
+ end
3092
+
3093
+ ::Thrift::Struct.generate_accessors self
3094
+ end
3095
+
3096
+ class DescribeTaskList_args
3097
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3098
+ REQUEST = 1
3099
+
3100
+ FIELDS = {
3101
+ REQUEST => {:type => ::Thrift::Types::STRUCT, :name => 'request', :class => ::CadenceThrift::DescribeTaskListRequest}
3102
+ }
3103
+
3104
+ def struct_fields; FIELDS; end
3105
+
3106
+ def validate
3107
+ end
3108
+
3109
+ ::Thrift::Struct.generate_accessors self
3110
+ end
3111
+
3112
+ class DescribeTaskList_result
3113
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3114
+ SUCCESS = 0
3115
+ BADREQUESTERROR = 1
3116
+ INTERNALSERVICEERROR = 2
3117
+ ENTITYNOTEXISTERROR = 3
3118
+ LIMITEXCEEDEDERROR = 4
3119
+ SERVICEBUSYERROR = 5
3120
+ CLIENTVERSIONNOTSUPPORTEDERROR = 6
3121
+
3122
+ FIELDS = {
3123
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::CadenceThrift::DescribeTaskListResponse},
3124
+ BADREQUESTERROR => {:type => ::Thrift::Types::STRUCT, :name => 'badRequestError', :class => ::CadenceThrift::BadRequestError},
3125
+ INTERNALSERVICEERROR => {:type => ::Thrift::Types::STRUCT, :name => 'internalServiceError', :class => ::CadenceThrift::InternalServiceError},
3126
+ ENTITYNOTEXISTERROR => {:type => ::Thrift::Types::STRUCT, :name => 'entityNotExistError', :class => ::CadenceThrift::EntityNotExistsError},
3127
+ LIMITEXCEEDEDERROR => {:type => ::Thrift::Types::STRUCT, :name => 'limitExceededError', :class => ::CadenceThrift::LimitExceededError},
3128
+ SERVICEBUSYERROR => {:type => ::Thrift::Types::STRUCT, :name => 'serviceBusyError', :class => ::CadenceThrift::ServiceBusyError},
3129
+ CLIENTVERSIONNOTSUPPORTEDERROR => {:type => ::Thrift::Types::STRUCT, :name => 'clientVersionNotSupportedError', :class => ::CadenceThrift::ClientVersionNotSupportedError}
3130
+ }
3131
+
3132
+ def struct_fields; FIELDS; end
3133
+
3134
+ def validate
3135
+ end
3136
+
3137
+ ::Thrift::Struct.generate_accessors self
3138
+ end
3139
+
3140
+ end
3141
+
3142
+ end