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.
- checksums.yaml +4 -4
- data/README.md +456 -0
- data/cadence.gemspec +9 -2
- data/lib/cadence-ruby.rb +1 -0
- data/lib/cadence.rb +176 -0
- data/lib/cadence/activity.rb +33 -0
- data/lib/cadence/activity/async_token.rb +34 -0
- data/lib/cadence/activity/context.rb +64 -0
- data/lib/cadence/activity/poller.rb +89 -0
- data/lib/cadence/activity/task_processor.rb +73 -0
- data/lib/cadence/activity/workflow_convenience_methods.rb +41 -0
- data/lib/cadence/client.rb +21 -0
- data/lib/cadence/client/errors.rb +8 -0
- data/lib/cadence/client/thrift_client.rb +380 -0
- data/lib/cadence/concerns/executable.rb +33 -0
- data/lib/cadence/concerns/typed.rb +40 -0
- data/lib/cadence/configuration.rb +36 -0
- data/lib/cadence/errors.rb +21 -0
- data/lib/cadence/executable_lookup.rb +25 -0
- data/lib/cadence/execution_options.rb +32 -0
- data/lib/cadence/json.rb +18 -0
- data/lib/cadence/metadata.rb +73 -0
- data/lib/cadence/metadata/activity.rb +28 -0
- data/lib/cadence/metadata/base.rb +17 -0
- data/lib/cadence/metadata/decision.rb +25 -0
- data/lib/cadence/metadata/workflow.rb +23 -0
- data/lib/cadence/metrics.rb +37 -0
- data/lib/cadence/metrics_adapters/log.rb +33 -0
- data/lib/cadence/metrics_adapters/null.rb +9 -0
- data/lib/cadence/middleware/chain.rb +30 -0
- data/lib/cadence/middleware/entry.rb +9 -0
- data/lib/cadence/retry_policy.rb +27 -0
- data/lib/cadence/saga/concern.rb +37 -0
- data/lib/cadence/saga/result.rb +22 -0
- data/lib/cadence/saga/saga.rb +24 -0
- data/lib/cadence/testing.rb +50 -0
- data/lib/cadence/testing/cadence_override.rb +112 -0
- data/lib/cadence/testing/future_registry.rb +27 -0
- data/lib/cadence/testing/local_activity_context.rb +17 -0
- data/lib/cadence/testing/local_workflow_context.rb +207 -0
- data/lib/cadence/testing/workflow_execution.rb +44 -0
- data/lib/cadence/testing/workflow_override.rb +36 -0
- data/lib/cadence/thread_local_context.rb +14 -0
- data/lib/cadence/thread_pool.rb +68 -0
- data/lib/cadence/types.rb +7 -0
- data/lib/cadence/utils.rb +17 -0
- data/lib/cadence/uuid.rb +19 -0
- data/lib/cadence/version.rb +1 -1
- data/lib/cadence/worker.rb +91 -0
- data/lib/cadence/workflow.rb +42 -0
- data/lib/cadence/workflow/context.rb +266 -0
- data/lib/cadence/workflow/convenience_methods.rb +34 -0
- data/lib/cadence/workflow/decision.rb +39 -0
- data/lib/cadence/workflow/decision_state_machine.rb +48 -0
- data/lib/cadence/workflow/decision_task_processor.rb +105 -0
- data/lib/cadence/workflow/dispatcher.rb +31 -0
- data/lib/cadence/workflow/execution_info.rb +45 -0
- data/lib/cadence/workflow/executor.rb +45 -0
- data/lib/cadence/workflow/future.rb +75 -0
- data/lib/cadence/workflow/history.rb +76 -0
- data/lib/cadence/workflow/history/event.rb +71 -0
- data/lib/cadence/workflow/history/event_target.rb +79 -0
- data/lib/cadence/workflow/history/window.rb +40 -0
- data/lib/cadence/workflow/poller.rb +74 -0
- data/lib/cadence/workflow/replay_aware_logger.rb +36 -0
- data/lib/cadence/workflow/serializer.rb +31 -0
- data/lib/cadence/workflow/serializer/base.rb +22 -0
- data/lib/cadence/workflow/serializer/cancel_timer.rb +19 -0
- data/lib/cadence/workflow/serializer/complete_workflow.rb +20 -0
- data/lib/cadence/workflow/serializer/fail_workflow.rb +21 -0
- data/lib/cadence/workflow/serializer/record_marker.rb +21 -0
- data/lib/cadence/workflow/serializer/request_activity_cancellation.rb +19 -0
- data/lib/cadence/workflow/serializer/schedule_activity.rb +54 -0
- data/lib/cadence/workflow/serializer/start_child_workflow.rb +52 -0
- data/lib/cadence/workflow/serializer/start_timer.rb +20 -0
- data/lib/cadence/workflow/state_manager.rb +324 -0
- data/lib/gen/thrift/cadence_constants.rb +11 -0
- data/lib/gen/thrift/cadence_types.rb +11 -0
- data/lib/gen/thrift/shared_constants.rb +11 -0
- data/lib/gen/thrift/shared_types.rb +4600 -0
- data/lib/gen/thrift/workflow_service.rb +3142 -0
- data/rbi/cadence-ruby.rbi +39 -0
- metadata +152 -5
@@ -0,0 +1,4600 @@
|
|
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
|
+
|
9
|
+
module CadenceThrift
|
10
|
+
module WorkflowIdReusePolicy
|
11
|
+
AllowDuplicateFailedOnly = 0
|
12
|
+
AllowDuplicate = 1
|
13
|
+
RejectDuplicate = 2
|
14
|
+
VALUE_MAP = {0 => "AllowDuplicateFailedOnly", 1 => "AllowDuplicate", 2 => "RejectDuplicate"}
|
15
|
+
VALID_VALUES = Set.new([AllowDuplicateFailedOnly, AllowDuplicate, RejectDuplicate]).freeze
|
16
|
+
end
|
17
|
+
|
18
|
+
module DomainStatus
|
19
|
+
REGISTERED = 0
|
20
|
+
DEPRECATED = 1
|
21
|
+
DELETED = 2
|
22
|
+
VALUE_MAP = {0 => "REGISTERED", 1 => "DEPRECATED", 2 => "DELETED"}
|
23
|
+
VALID_VALUES = Set.new([REGISTERED, DEPRECATED, DELETED]).freeze
|
24
|
+
end
|
25
|
+
|
26
|
+
module TimeoutType
|
27
|
+
START_TO_CLOSE = 0
|
28
|
+
SCHEDULE_TO_START = 1
|
29
|
+
SCHEDULE_TO_CLOSE = 2
|
30
|
+
HEARTBEAT = 3
|
31
|
+
VALUE_MAP = {0 => "START_TO_CLOSE", 1 => "SCHEDULE_TO_START", 2 => "SCHEDULE_TO_CLOSE", 3 => "HEARTBEAT"}
|
32
|
+
VALID_VALUES = Set.new([START_TO_CLOSE, SCHEDULE_TO_START, SCHEDULE_TO_CLOSE, HEARTBEAT]).freeze
|
33
|
+
end
|
34
|
+
|
35
|
+
module ParentClosePolicy
|
36
|
+
ABANDON = 0
|
37
|
+
REQUEST_CANCEL = 1
|
38
|
+
TERMINATE = 2
|
39
|
+
VALUE_MAP = {0 => "ABANDON", 1 => "REQUEST_CANCEL", 2 => "TERMINATE"}
|
40
|
+
VALID_VALUES = Set.new([ABANDON, REQUEST_CANCEL, TERMINATE]).freeze
|
41
|
+
end
|
42
|
+
|
43
|
+
module DecisionType
|
44
|
+
ScheduleActivityTask = 0
|
45
|
+
RequestCancelActivityTask = 1
|
46
|
+
StartTimer = 2
|
47
|
+
CompleteWorkflowExecution = 3
|
48
|
+
FailWorkflowExecution = 4
|
49
|
+
CancelTimer = 5
|
50
|
+
CancelWorkflowExecution = 6
|
51
|
+
RequestCancelExternalWorkflowExecution = 7
|
52
|
+
RecordMarker = 8
|
53
|
+
ContinueAsNewWorkflowExecution = 9
|
54
|
+
StartChildWorkflowExecution = 10
|
55
|
+
SignalExternalWorkflowExecution = 11
|
56
|
+
UpsertWorkflowSearchAttributes = 12
|
57
|
+
VALUE_MAP = {0 => "ScheduleActivityTask", 1 => "RequestCancelActivityTask", 2 => "StartTimer", 3 => "CompleteWorkflowExecution", 4 => "FailWorkflowExecution", 5 => "CancelTimer", 6 => "CancelWorkflowExecution", 7 => "RequestCancelExternalWorkflowExecution", 8 => "RecordMarker", 9 => "ContinueAsNewWorkflowExecution", 10 => "StartChildWorkflowExecution", 11 => "SignalExternalWorkflowExecution", 12 => "UpsertWorkflowSearchAttributes"}
|
58
|
+
VALID_VALUES = Set.new([ScheduleActivityTask, RequestCancelActivityTask, StartTimer, CompleteWorkflowExecution, FailWorkflowExecution, CancelTimer, CancelWorkflowExecution, RequestCancelExternalWorkflowExecution, RecordMarker, ContinueAsNewWorkflowExecution, StartChildWorkflowExecution, SignalExternalWorkflowExecution, UpsertWorkflowSearchAttributes]).freeze
|
59
|
+
end
|
60
|
+
|
61
|
+
module EventType
|
62
|
+
WorkflowExecutionStarted = 0
|
63
|
+
WorkflowExecutionCompleted = 1
|
64
|
+
WorkflowExecutionFailed = 2
|
65
|
+
WorkflowExecutionTimedOut = 3
|
66
|
+
DecisionTaskScheduled = 4
|
67
|
+
DecisionTaskStarted = 5
|
68
|
+
DecisionTaskCompleted = 6
|
69
|
+
DecisionTaskTimedOut = 7
|
70
|
+
DecisionTaskFailed = 8
|
71
|
+
ActivityTaskScheduled = 9
|
72
|
+
ActivityTaskStarted = 10
|
73
|
+
ActivityTaskCompleted = 11
|
74
|
+
ActivityTaskFailed = 12
|
75
|
+
ActivityTaskTimedOut = 13
|
76
|
+
ActivityTaskCancelRequested = 14
|
77
|
+
RequestCancelActivityTaskFailed = 15
|
78
|
+
ActivityTaskCanceled = 16
|
79
|
+
TimerStarted = 17
|
80
|
+
TimerFired = 18
|
81
|
+
CancelTimerFailed = 19
|
82
|
+
TimerCanceled = 20
|
83
|
+
WorkflowExecutionCancelRequested = 21
|
84
|
+
WorkflowExecutionCanceled = 22
|
85
|
+
RequestCancelExternalWorkflowExecutionInitiated = 23
|
86
|
+
RequestCancelExternalWorkflowExecutionFailed = 24
|
87
|
+
ExternalWorkflowExecutionCancelRequested = 25
|
88
|
+
MarkerRecorded = 26
|
89
|
+
WorkflowExecutionSignaled = 27
|
90
|
+
WorkflowExecutionTerminated = 28
|
91
|
+
WorkflowExecutionContinuedAsNew = 29
|
92
|
+
StartChildWorkflowExecutionInitiated = 30
|
93
|
+
StartChildWorkflowExecutionFailed = 31
|
94
|
+
ChildWorkflowExecutionStarted = 32
|
95
|
+
ChildWorkflowExecutionCompleted = 33
|
96
|
+
ChildWorkflowExecutionFailed = 34
|
97
|
+
ChildWorkflowExecutionCanceled = 35
|
98
|
+
ChildWorkflowExecutionTimedOut = 36
|
99
|
+
ChildWorkflowExecutionTerminated = 37
|
100
|
+
SignalExternalWorkflowExecutionInitiated = 38
|
101
|
+
SignalExternalWorkflowExecutionFailed = 39
|
102
|
+
ExternalWorkflowExecutionSignaled = 40
|
103
|
+
UpsertWorkflowSearchAttributes = 41
|
104
|
+
VALUE_MAP = {0 => "WorkflowExecutionStarted", 1 => "WorkflowExecutionCompleted", 2 => "WorkflowExecutionFailed", 3 => "WorkflowExecutionTimedOut", 4 => "DecisionTaskScheduled", 5 => "DecisionTaskStarted", 6 => "DecisionTaskCompleted", 7 => "DecisionTaskTimedOut", 8 => "DecisionTaskFailed", 9 => "ActivityTaskScheduled", 10 => "ActivityTaskStarted", 11 => "ActivityTaskCompleted", 12 => "ActivityTaskFailed", 13 => "ActivityTaskTimedOut", 14 => "ActivityTaskCancelRequested", 15 => "RequestCancelActivityTaskFailed", 16 => "ActivityTaskCanceled", 17 => "TimerStarted", 18 => "TimerFired", 19 => "CancelTimerFailed", 20 => "TimerCanceled", 21 => "WorkflowExecutionCancelRequested", 22 => "WorkflowExecutionCanceled", 23 => "RequestCancelExternalWorkflowExecutionInitiated", 24 => "RequestCancelExternalWorkflowExecutionFailed", 25 => "ExternalWorkflowExecutionCancelRequested", 26 => "MarkerRecorded", 27 => "WorkflowExecutionSignaled", 28 => "WorkflowExecutionTerminated", 29 => "WorkflowExecutionContinuedAsNew", 30 => "StartChildWorkflowExecutionInitiated", 31 => "StartChildWorkflowExecutionFailed", 32 => "ChildWorkflowExecutionStarted", 33 => "ChildWorkflowExecutionCompleted", 34 => "ChildWorkflowExecutionFailed", 35 => "ChildWorkflowExecutionCanceled", 36 => "ChildWorkflowExecutionTimedOut", 37 => "ChildWorkflowExecutionTerminated", 38 => "SignalExternalWorkflowExecutionInitiated", 39 => "SignalExternalWorkflowExecutionFailed", 40 => "ExternalWorkflowExecutionSignaled", 41 => "UpsertWorkflowSearchAttributes"}
|
105
|
+
VALID_VALUES = Set.new([WorkflowExecutionStarted, WorkflowExecutionCompleted, WorkflowExecutionFailed, WorkflowExecutionTimedOut, DecisionTaskScheduled, DecisionTaskStarted, DecisionTaskCompleted, DecisionTaskTimedOut, DecisionTaskFailed, ActivityTaskScheduled, ActivityTaskStarted, ActivityTaskCompleted, ActivityTaskFailed, ActivityTaskTimedOut, ActivityTaskCancelRequested, RequestCancelActivityTaskFailed, ActivityTaskCanceled, TimerStarted, TimerFired, CancelTimerFailed, TimerCanceled, WorkflowExecutionCancelRequested, WorkflowExecutionCanceled, RequestCancelExternalWorkflowExecutionInitiated, RequestCancelExternalWorkflowExecutionFailed, ExternalWorkflowExecutionCancelRequested, MarkerRecorded, WorkflowExecutionSignaled, WorkflowExecutionTerminated, WorkflowExecutionContinuedAsNew, StartChildWorkflowExecutionInitiated, StartChildWorkflowExecutionFailed, ChildWorkflowExecutionStarted, ChildWorkflowExecutionCompleted, ChildWorkflowExecutionFailed, ChildWorkflowExecutionCanceled, ChildWorkflowExecutionTimedOut, ChildWorkflowExecutionTerminated, SignalExternalWorkflowExecutionInitiated, SignalExternalWorkflowExecutionFailed, ExternalWorkflowExecutionSignaled, UpsertWorkflowSearchAttributes]).freeze
|
106
|
+
end
|
107
|
+
|
108
|
+
module DecisionTaskFailedCause
|
109
|
+
UNHANDLED_DECISION = 0
|
110
|
+
BAD_SCHEDULE_ACTIVITY_ATTRIBUTES = 1
|
111
|
+
BAD_REQUEST_CANCEL_ACTIVITY_ATTRIBUTES = 2
|
112
|
+
BAD_START_TIMER_ATTRIBUTES = 3
|
113
|
+
BAD_CANCEL_TIMER_ATTRIBUTES = 4
|
114
|
+
BAD_RECORD_MARKER_ATTRIBUTES = 5
|
115
|
+
BAD_COMPLETE_WORKFLOW_EXECUTION_ATTRIBUTES = 6
|
116
|
+
BAD_FAIL_WORKFLOW_EXECUTION_ATTRIBUTES = 7
|
117
|
+
BAD_CANCEL_WORKFLOW_EXECUTION_ATTRIBUTES = 8
|
118
|
+
BAD_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_ATTRIBUTES = 9
|
119
|
+
BAD_CONTINUE_AS_NEW_ATTRIBUTES = 10
|
120
|
+
START_TIMER_DUPLICATE_ID = 11
|
121
|
+
RESET_STICKY_TASKLIST = 12
|
122
|
+
WORKFLOW_WORKER_UNHANDLED_FAILURE = 13
|
123
|
+
BAD_SIGNAL_WORKFLOW_EXECUTION_ATTRIBUTES = 14
|
124
|
+
BAD_START_CHILD_EXECUTION_ATTRIBUTES = 15
|
125
|
+
FORCE_CLOSE_DECISION = 16
|
126
|
+
FAILOVER_CLOSE_DECISION = 17
|
127
|
+
BAD_SIGNAL_INPUT_SIZE = 18
|
128
|
+
RESET_WORKFLOW = 19
|
129
|
+
BAD_BINARY = 20
|
130
|
+
SCHEDULE_ACTIVITY_DUPLICATE_ID = 21
|
131
|
+
BAD_SEARCH_ATTRIBUTES = 22
|
132
|
+
VALUE_MAP = {0 => "UNHANDLED_DECISION", 1 => "BAD_SCHEDULE_ACTIVITY_ATTRIBUTES", 2 => "BAD_REQUEST_CANCEL_ACTIVITY_ATTRIBUTES", 3 => "BAD_START_TIMER_ATTRIBUTES", 4 => "BAD_CANCEL_TIMER_ATTRIBUTES", 5 => "BAD_RECORD_MARKER_ATTRIBUTES", 6 => "BAD_COMPLETE_WORKFLOW_EXECUTION_ATTRIBUTES", 7 => "BAD_FAIL_WORKFLOW_EXECUTION_ATTRIBUTES", 8 => "BAD_CANCEL_WORKFLOW_EXECUTION_ATTRIBUTES", 9 => "BAD_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_ATTRIBUTES", 10 => "BAD_CONTINUE_AS_NEW_ATTRIBUTES", 11 => "START_TIMER_DUPLICATE_ID", 12 => "RESET_STICKY_TASKLIST", 13 => "WORKFLOW_WORKER_UNHANDLED_FAILURE", 14 => "BAD_SIGNAL_WORKFLOW_EXECUTION_ATTRIBUTES", 15 => "BAD_START_CHILD_EXECUTION_ATTRIBUTES", 16 => "FORCE_CLOSE_DECISION", 17 => "FAILOVER_CLOSE_DECISION", 18 => "BAD_SIGNAL_INPUT_SIZE", 19 => "RESET_WORKFLOW", 20 => "BAD_BINARY", 21 => "SCHEDULE_ACTIVITY_DUPLICATE_ID", 22 => "BAD_SEARCH_ATTRIBUTES"}
|
133
|
+
VALID_VALUES = Set.new([UNHANDLED_DECISION, BAD_SCHEDULE_ACTIVITY_ATTRIBUTES, BAD_REQUEST_CANCEL_ACTIVITY_ATTRIBUTES, BAD_START_TIMER_ATTRIBUTES, BAD_CANCEL_TIMER_ATTRIBUTES, BAD_RECORD_MARKER_ATTRIBUTES, BAD_COMPLETE_WORKFLOW_EXECUTION_ATTRIBUTES, BAD_FAIL_WORKFLOW_EXECUTION_ATTRIBUTES, BAD_CANCEL_WORKFLOW_EXECUTION_ATTRIBUTES, BAD_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_ATTRIBUTES, BAD_CONTINUE_AS_NEW_ATTRIBUTES, START_TIMER_DUPLICATE_ID, RESET_STICKY_TASKLIST, WORKFLOW_WORKER_UNHANDLED_FAILURE, BAD_SIGNAL_WORKFLOW_EXECUTION_ATTRIBUTES, BAD_START_CHILD_EXECUTION_ATTRIBUTES, FORCE_CLOSE_DECISION, FAILOVER_CLOSE_DECISION, BAD_SIGNAL_INPUT_SIZE, RESET_WORKFLOW, BAD_BINARY, SCHEDULE_ACTIVITY_DUPLICATE_ID, BAD_SEARCH_ATTRIBUTES]).freeze
|
134
|
+
end
|
135
|
+
|
136
|
+
module CancelExternalWorkflowExecutionFailedCause
|
137
|
+
UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION = 0
|
138
|
+
VALUE_MAP = {0 => "UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION"}
|
139
|
+
VALID_VALUES = Set.new([UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION]).freeze
|
140
|
+
end
|
141
|
+
|
142
|
+
module SignalExternalWorkflowExecutionFailedCause
|
143
|
+
UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION = 0
|
144
|
+
VALUE_MAP = {0 => "UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION"}
|
145
|
+
VALID_VALUES = Set.new([UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION]).freeze
|
146
|
+
end
|
147
|
+
|
148
|
+
module ChildWorkflowExecutionFailedCause
|
149
|
+
WORKFLOW_ALREADY_RUNNING = 0
|
150
|
+
VALUE_MAP = {0 => "WORKFLOW_ALREADY_RUNNING"}
|
151
|
+
VALID_VALUES = Set.new([WORKFLOW_ALREADY_RUNNING]).freeze
|
152
|
+
end
|
153
|
+
|
154
|
+
module WorkflowExecutionCloseStatus
|
155
|
+
COMPLETED = 0
|
156
|
+
FAILED = 1
|
157
|
+
CANCELED = 2
|
158
|
+
TERMINATED = 3
|
159
|
+
CONTINUED_AS_NEW = 4
|
160
|
+
TIMED_OUT = 5
|
161
|
+
VALUE_MAP = {0 => "COMPLETED", 1 => "FAILED", 2 => "CANCELED", 3 => "TERMINATED", 4 => "CONTINUED_AS_NEW", 5 => "TIMED_OUT"}
|
162
|
+
VALID_VALUES = Set.new([COMPLETED, FAILED, CANCELED, TERMINATED, CONTINUED_AS_NEW, TIMED_OUT]).freeze
|
163
|
+
end
|
164
|
+
|
165
|
+
module QueryTaskCompletedType
|
166
|
+
COMPLETED = 0
|
167
|
+
FAILED = 1
|
168
|
+
VALUE_MAP = {0 => "COMPLETED", 1 => "FAILED"}
|
169
|
+
VALID_VALUES = Set.new([COMPLETED, FAILED]).freeze
|
170
|
+
end
|
171
|
+
|
172
|
+
module QueryResultType
|
173
|
+
ANSWERED = 0
|
174
|
+
FAILED = 1
|
175
|
+
VALUE_MAP = {0 => "ANSWERED", 1 => "FAILED"}
|
176
|
+
VALID_VALUES = Set.new([ANSWERED, FAILED]).freeze
|
177
|
+
end
|
178
|
+
|
179
|
+
module PendingActivityState
|
180
|
+
SCHEDULED = 0
|
181
|
+
STARTED = 1
|
182
|
+
CANCEL_REQUESTED = 2
|
183
|
+
VALUE_MAP = {0 => "SCHEDULED", 1 => "STARTED", 2 => "CANCEL_REQUESTED"}
|
184
|
+
VALID_VALUES = Set.new([SCHEDULED, STARTED, CANCEL_REQUESTED]).freeze
|
185
|
+
end
|
186
|
+
|
187
|
+
module HistoryEventFilterType
|
188
|
+
ALL_EVENT = 0
|
189
|
+
CLOSE_EVENT = 1
|
190
|
+
VALUE_MAP = {0 => "ALL_EVENT", 1 => "CLOSE_EVENT"}
|
191
|
+
VALID_VALUES = Set.new([ALL_EVENT, CLOSE_EVENT]).freeze
|
192
|
+
end
|
193
|
+
|
194
|
+
module TaskListKind
|
195
|
+
NORMAL = 0
|
196
|
+
STICKY = 1
|
197
|
+
VALUE_MAP = {0 => "NORMAL", 1 => "STICKY"}
|
198
|
+
VALID_VALUES = Set.new([NORMAL, STICKY]).freeze
|
199
|
+
end
|
200
|
+
|
201
|
+
module ArchivalStatus
|
202
|
+
DISABLED = 0
|
203
|
+
ENABLED = 1
|
204
|
+
VALUE_MAP = {0 => "DISABLED", 1 => "ENABLED"}
|
205
|
+
VALID_VALUES = Set.new([DISABLED, ENABLED]).freeze
|
206
|
+
end
|
207
|
+
|
208
|
+
module IndexedValueType
|
209
|
+
STRING = 0
|
210
|
+
KEYWORD = 1
|
211
|
+
INT = 2
|
212
|
+
DOUBLE = 3
|
213
|
+
BOOL = 4
|
214
|
+
DATETIME = 5
|
215
|
+
VALUE_MAP = {0 => "STRING", 1 => "KEYWORD", 2 => "INT", 3 => "DOUBLE", 4 => "BOOL", 5 => "DATETIME"}
|
216
|
+
VALID_VALUES = Set.new([STRING, KEYWORD, INT, DOUBLE, BOOL, DATETIME]).freeze
|
217
|
+
end
|
218
|
+
|
219
|
+
module EncodingType
|
220
|
+
ThriftRW = 0
|
221
|
+
VALUE_MAP = {0 => "ThriftRW"}
|
222
|
+
VALID_VALUES = Set.new([ThriftRW]).freeze
|
223
|
+
end
|
224
|
+
|
225
|
+
module QueryRejectCondition
|
226
|
+
NOT_OPEN = 0
|
227
|
+
NOT_COMPLETED_CLEANLY = 1
|
228
|
+
VALUE_MAP = {0 => "NOT_OPEN", 1 => "NOT_COMPLETED_CLEANLY"}
|
229
|
+
VALID_VALUES = Set.new([NOT_OPEN, NOT_COMPLETED_CLEANLY]).freeze
|
230
|
+
end
|
231
|
+
|
232
|
+
module ContinueAsNewInitiator
|
233
|
+
Decider = 0
|
234
|
+
RetryPolicy = 1
|
235
|
+
CronSchedule = 2
|
236
|
+
VALUE_MAP = {0 => "Decider", 1 => "RetryPolicy", 2 => "CronSchedule"}
|
237
|
+
VALID_VALUES = Set.new([Decider, RetryPolicy, CronSchedule]).freeze
|
238
|
+
end
|
239
|
+
|
240
|
+
module TaskListType
|
241
|
+
Decision = 0
|
242
|
+
Activity = 1
|
243
|
+
VALUE_MAP = {0 => "Decision", 1 => "Activity"}
|
244
|
+
VALID_VALUES = Set.new([Decision, Activity]).freeze
|
245
|
+
end
|
246
|
+
|
247
|
+
class BadRequestError < ::Thrift::Exception; end
|
248
|
+
|
249
|
+
class InternalServiceError < ::Thrift::Exception; end
|
250
|
+
|
251
|
+
class DomainAlreadyExistsError < ::Thrift::Exception; end
|
252
|
+
|
253
|
+
class WorkflowExecutionAlreadyStartedError < ::Thrift::Exception; end
|
254
|
+
|
255
|
+
class EntityNotExistsError < ::Thrift::Exception; end
|
256
|
+
|
257
|
+
class ServiceBusyError < ::Thrift::Exception; end
|
258
|
+
|
259
|
+
class CancellationAlreadyRequestedError < ::Thrift::Exception; end
|
260
|
+
|
261
|
+
class QueryFailedError < ::Thrift::Exception; end
|
262
|
+
|
263
|
+
class DomainNotActiveError < ::Thrift::Exception; end
|
264
|
+
|
265
|
+
class LimitExceededError < ::Thrift::Exception; end
|
266
|
+
|
267
|
+
class AccessDeniedError < ::Thrift::Exception; end
|
268
|
+
|
269
|
+
class RetryTaskError < ::Thrift::Exception; end
|
270
|
+
|
271
|
+
class ClientVersionNotSupportedError < ::Thrift::Exception; end
|
272
|
+
|
273
|
+
class Header; end
|
274
|
+
|
275
|
+
class WorkflowType; end
|
276
|
+
|
277
|
+
class ActivityType; end
|
278
|
+
|
279
|
+
class TaskList; end
|
280
|
+
|
281
|
+
class DataBlob; end
|
282
|
+
|
283
|
+
class ReplicationInfo; end
|
284
|
+
|
285
|
+
class TaskListMetadata; end
|
286
|
+
|
287
|
+
class WorkflowExecution; end
|
288
|
+
|
289
|
+
class Memo; end
|
290
|
+
|
291
|
+
class SearchAttributes; end
|
292
|
+
|
293
|
+
class WorkflowExecutionInfo; end
|
294
|
+
|
295
|
+
class WorkflowExecutionConfiguration; end
|
296
|
+
|
297
|
+
class TransientDecisionInfo; end
|
298
|
+
|
299
|
+
class ScheduleActivityTaskDecisionAttributes; end
|
300
|
+
|
301
|
+
class RequestCancelActivityTaskDecisionAttributes; end
|
302
|
+
|
303
|
+
class StartTimerDecisionAttributes; end
|
304
|
+
|
305
|
+
class CompleteWorkflowExecutionDecisionAttributes; end
|
306
|
+
|
307
|
+
class FailWorkflowExecutionDecisionAttributes; end
|
308
|
+
|
309
|
+
class CancelTimerDecisionAttributes; end
|
310
|
+
|
311
|
+
class CancelWorkflowExecutionDecisionAttributes; end
|
312
|
+
|
313
|
+
class RequestCancelExternalWorkflowExecutionDecisionAttributes; end
|
314
|
+
|
315
|
+
class SignalExternalWorkflowExecutionDecisionAttributes; end
|
316
|
+
|
317
|
+
class UpsertWorkflowSearchAttributesDecisionAttributes; end
|
318
|
+
|
319
|
+
class RecordMarkerDecisionAttributes; end
|
320
|
+
|
321
|
+
class ContinueAsNewWorkflowExecutionDecisionAttributes; end
|
322
|
+
|
323
|
+
class StartChildWorkflowExecutionDecisionAttributes; end
|
324
|
+
|
325
|
+
class Decision; end
|
326
|
+
|
327
|
+
class WorkflowExecutionStartedEventAttributes; end
|
328
|
+
|
329
|
+
class ResetPoints; end
|
330
|
+
|
331
|
+
class ResetPointInfo; end
|
332
|
+
|
333
|
+
class WorkflowExecutionCompletedEventAttributes; end
|
334
|
+
|
335
|
+
class WorkflowExecutionFailedEventAttributes; end
|
336
|
+
|
337
|
+
class WorkflowExecutionTimedOutEventAttributes; end
|
338
|
+
|
339
|
+
class WorkflowExecutionContinuedAsNewEventAttributes; end
|
340
|
+
|
341
|
+
class DecisionTaskScheduledEventAttributes; end
|
342
|
+
|
343
|
+
class DecisionTaskStartedEventAttributes; end
|
344
|
+
|
345
|
+
class DecisionTaskCompletedEventAttributes; end
|
346
|
+
|
347
|
+
class DecisionTaskTimedOutEventAttributes; end
|
348
|
+
|
349
|
+
class DecisionTaskFailedEventAttributes; end
|
350
|
+
|
351
|
+
class ActivityTaskScheduledEventAttributes; end
|
352
|
+
|
353
|
+
class ActivityTaskStartedEventAttributes; end
|
354
|
+
|
355
|
+
class ActivityTaskCompletedEventAttributes; end
|
356
|
+
|
357
|
+
class ActivityTaskFailedEventAttributes; end
|
358
|
+
|
359
|
+
class ActivityTaskTimedOutEventAttributes; end
|
360
|
+
|
361
|
+
class ActivityTaskCancelRequestedEventAttributes; end
|
362
|
+
|
363
|
+
class RequestCancelActivityTaskFailedEventAttributes; end
|
364
|
+
|
365
|
+
class ActivityTaskCanceledEventAttributes; end
|
366
|
+
|
367
|
+
class TimerStartedEventAttributes; end
|
368
|
+
|
369
|
+
class TimerFiredEventAttributes; end
|
370
|
+
|
371
|
+
class TimerCanceledEventAttributes; end
|
372
|
+
|
373
|
+
class CancelTimerFailedEventAttributes; end
|
374
|
+
|
375
|
+
class WorkflowExecutionCancelRequestedEventAttributes; end
|
376
|
+
|
377
|
+
class WorkflowExecutionCanceledEventAttributes; end
|
378
|
+
|
379
|
+
class MarkerRecordedEventAttributes; end
|
380
|
+
|
381
|
+
class WorkflowExecutionSignaledEventAttributes; end
|
382
|
+
|
383
|
+
class WorkflowExecutionTerminatedEventAttributes; end
|
384
|
+
|
385
|
+
class RequestCancelExternalWorkflowExecutionInitiatedEventAttributes; end
|
386
|
+
|
387
|
+
class RequestCancelExternalWorkflowExecutionFailedEventAttributes; end
|
388
|
+
|
389
|
+
class ExternalWorkflowExecutionCancelRequestedEventAttributes; end
|
390
|
+
|
391
|
+
class SignalExternalWorkflowExecutionInitiatedEventAttributes; end
|
392
|
+
|
393
|
+
class SignalExternalWorkflowExecutionFailedEventAttributes; end
|
394
|
+
|
395
|
+
class ExternalWorkflowExecutionSignaledEventAttributes; end
|
396
|
+
|
397
|
+
class UpsertWorkflowSearchAttributesEventAttributes; end
|
398
|
+
|
399
|
+
class StartChildWorkflowExecutionInitiatedEventAttributes; end
|
400
|
+
|
401
|
+
class StartChildWorkflowExecutionFailedEventAttributes; end
|
402
|
+
|
403
|
+
class ChildWorkflowExecutionStartedEventAttributes; end
|
404
|
+
|
405
|
+
class ChildWorkflowExecutionCompletedEventAttributes; end
|
406
|
+
|
407
|
+
class ChildWorkflowExecutionFailedEventAttributes; end
|
408
|
+
|
409
|
+
class ChildWorkflowExecutionCanceledEventAttributes; end
|
410
|
+
|
411
|
+
class ChildWorkflowExecutionTimedOutEventAttributes; end
|
412
|
+
|
413
|
+
class ChildWorkflowExecutionTerminatedEventAttributes; end
|
414
|
+
|
415
|
+
class HistoryEvent; end
|
416
|
+
|
417
|
+
class History; end
|
418
|
+
|
419
|
+
class WorkflowExecutionFilter; end
|
420
|
+
|
421
|
+
class WorkflowTypeFilter; end
|
422
|
+
|
423
|
+
class StartTimeFilter; end
|
424
|
+
|
425
|
+
class DomainInfo; end
|
426
|
+
|
427
|
+
class DomainConfiguration; end
|
428
|
+
|
429
|
+
class BadBinaries; end
|
430
|
+
|
431
|
+
class BadBinaryInfo; end
|
432
|
+
|
433
|
+
class UpdateDomainInfo; end
|
434
|
+
|
435
|
+
class ClusterReplicationConfiguration; end
|
436
|
+
|
437
|
+
class DomainReplicationConfiguration; end
|
438
|
+
|
439
|
+
class RegisterDomainRequest; end
|
440
|
+
|
441
|
+
class ListDomainsRequest; end
|
442
|
+
|
443
|
+
class ListDomainsResponse; end
|
444
|
+
|
445
|
+
class DescribeDomainRequest; end
|
446
|
+
|
447
|
+
class DescribeDomainResponse; end
|
448
|
+
|
449
|
+
class UpdateDomainRequest; end
|
450
|
+
|
451
|
+
class UpdateDomainResponse; end
|
452
|
+
|
453
|
+
class DeprecateDomainRequest; end
|
454
|
+
|
455
|
+
class StartWorkflowExecutionRequest; end
|
456
|
+
|
457
|
+
class StartWorkflowExecutionResponse; end
|
458
|
+
|
459
|
+
class PollForDecisionTaskRequest; end
|
460
|
+
|
461
|
+
class PollForDecisionTaskResponse; end
|
462
|
+
|
463
|
+
class StickyExecutionAttributes; end
|
464
|
+
|
465
|
+
class RespondDecisionTaskCompletedRequest; end
|
466
|
+
|
467
|
+
class RespondDecisionTaskCompletedResponse; end
|
468
|
+
|
469
|
+
class RespondDecisionTaskFailedRequest; end
|
470
|
+
|
471
|
+
class PollForActivityTaskRequest; end
|
472
|
+
|
473
|
+
class PollForActivityTaskResponse; end
|
474
|
+
|
475
|
+
class RecordActivityTaskHeartbeatRequest; end
|
476
|
+
|
477
|
+
class RecordActivityTaskHeartbeatByIDRequest; end
|
478
|
+
|
479
|
+
class RecordActivityTaskHeartbeatResponse; end
|
480
|
+
|
481
|
+
class RespondActivityTaskCompletedRequest; end
|
482
|
+
|
483
|
+
class RespondActivityTaskFailedRequest; end
|
484
|
+
|
485
|
+
class RespondActivityTaskCanceledRequest; end
|
486
|
+
|
487
|
+
class RespondActivityTaskCompletedByIDRequest; end
|
488
|
+
|
489
|
+
class RespondActivityTaskFailedByIDRequest; end
|
490
|
+
|
491
|
+
class RespondActivityTaskCanceledByIDRequest; end
|
492
|
+
|
493
|
+
class RequestCancelWorkflowExecutionRequest; end
|
494
|
+
|
495
|
+
class GetWorkflowExecutionHistoryRequest; end
|
496
|
+
|
497
|
+
class GetWorkflowExecutionHistoryResponse; end
|
498
|
+
|
499
|
+
class SignalWorkflowExecutionRequest; end
|
500
|
+
|
501
|
+
class SignalWithStartWorkflowExecutionRequest; end
|
502
|
+
|
503
|
+
class TerminateWorkflowExecutionRequest; end
|
504
|
+
|
505
|
+
class ResetWorkflowExecutionRequest; end
|
506
|
+
|
507
|
+
class ResetWorkflowExecutionResponse; end
|
508
|
+
|
509
|
+
class ListOpenWorkflowExecutionsRequest; end
|
510
|
+
|
511
|
+
class ListOpenWorkflowExecutionsResponse; end
|
512
|
+
|
513
|
+
class ListClosedWorkflowExecutionsRequest; end
|
514
|
+
|
515
|
+
class ListClosedWorkflowExecutionsResponse; end
|
516
|
+
|
517
|
+
class ListWorkflowExecutionsRequest; end
|
518
|
+
|
519
|
+
class ListWorkflowExecutionsResponse; end
|
520
|
+
|
521
|
+
class ListArchivedWorkflowExecutionsRequest; end
|
522
|
+
|
523
|
+
class ListArchivedWorkflowExecutionsResponse; end
|
524
|
+
|
525
|
+
class CountWorkflowExecutionsRequest; end
|
526
|
+
|
527
|
+
class CountWorkflowExecutionsResponse; end
|
528
|
+
|
529
|
+
class GetSearchAttributesResponse; end
|
530
|
+
|
531
|
+
class QueryWorkflowRequest; end
|
532
|
+
|
533
|
+
class QueryRejected; end
|
534
|
+
|
535
|
+
class QueryWorkflowResponse; end
|
536
|
+
|
537
|
+
class WorkflowQuery; end
|
538
|
+
|
539
|
+
class ResetStickyTaskListRequest; end
|
540
|
+
|
541
|
+
class ResetStickyTaskListResponse; end
|
542
|
+
|
543
|
+
class RespondQueryTaskCompletedRequest; end
|
544
|
+
|
545
|
+
class WorkflowQueryResult; end
|
546
|
+
|
547
|
+
class DescribeWorkflowExecutionRequest; end
|
548
|
+
|
549
|
+
class PendingActivityInfo; end
|
550
|
+
|
551
|
+
class PendingChildExecutionInfo; end
|
552
|
+
|
553
|
+
class DescribeWorkflowExecutionResponse; end
|
554
|
+
|
555
|
+
class DescribeTaskListRequest; end
|
556
|
+
|
557
|
+
class DescribeTaskListResponse; end
|
558
|
+
|
559
|
+
class TaskListStatus; end
|
560
|
+
|
561
|
+
class TaskIDBlock; end
|
562
|
+
|
563
|
+
class DescribeHistoryHostRequest; end
|
564
|
+
|
565
|
+
class RemoveTaskRequest; end
|
566
|
+
|
567
|
+
class CloseShardRequest; end
|
568
|
+
|
569
|
+
class DescribeHistoryHostResponse; end
|
570
|
+
|
571
|
+
class DomainCacheInfo; end
|
572
|
+
|
573
|
+
class PollerInfo; end
|
574
|
+
|
575
|
+
class RetryPolicy; end
|
576
|
+
|
577
|
+
class HistoryBranchRange; end
|
578
|
+
|
579
|
+
class HistoryBranch; end
|
580
|
+
|
581
|
+
class BadRequestError < ::Thrift::Exception
|
582
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
583
|
+
def initialize(message=nil)
|
584
|
+
super()
|
585
|
+
self.message = message
|
586
|
+
end
|
587
|
+
|
588
|
+
MESSAGE = 1
|
589
|
+
|
590
|
+
FIELDS = {
|
591
|
+
MESSAGE => {:type => ::Thrift::Types::STRING, :name => 'message'}
|
592
|
+
}
|
593
|
+
|
594
|
+
def struct_fields; FIELDS; end
|
595
|
+
|
596
|
+
def validate
|
597
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field message is unset!') unless @message
|
598
|
+
end
|
599
|
+
|
600
|
+
::Thrift::Struct.generate_accessors self
|
601
|
+
end
|
602
|
+
|
603
|
+
class InternalServiceError < ::Thrift::Exception
|
604
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
605
|
+
def initialize(message=nil)
|
606
|
+
super()
|
607
|
+
self.message = message
|
608
|
+
end
|
609
|
+
|
610
|
+
MESSAGE = 1
|
611
|
+
|
612
|
+
FIELDS = {
|
613
|
+
MESSAGE => {:type => ::Thrift::Types::STRING, :name => 'message'}
|
614
|
+
}
|
615
|
+
|
616
|
+
def struct_fields; FIELDS; end
|
617
|
+
|
618
|
+
def validate
|
619
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field message is unset!') unless @message
|
620
|
+
end
|
621
|
+
|
622
|
+
::Thrift::Struct.generate_accessors self
|
623
|
+
end
|
624
|
+
|
625
|
+
class DomainAlreadyExistsError < ::Thrift::Exception
|
626
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
627
|
+
def initialize(message=nil)
|
628
|
+
super()
|
629
|
+
self.message = message
|
630
|
+
end
|
631
|
+
|
632
|
+
MESSAGE = 1
|
633
|
+
|
634
|
+
FIELDS = {
|
635
|
+
MESSAGE => {:type => ::Thrift::Types::STRING, :name => 'message'}
|
636
|
+
}
|
637
|
+
|
638
|
+
def struct_fields; FIELDS; end
|
639
|
+
|
640
|
+
def validate
|
641
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field message is unset!') unless @message
|
642
|
+
end
|
643
|
+
|
644
|
+
::Thrift::Struct.generate_accessors self
|
645
|
+
end
|
646
|
+
|
647
|
+
class WorkflowExecutionAlreadyStartedError < ::Thrift::Exception
|
648
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
649
|
+
MESSAGE = 10
|
650
|
+
STARTREQUESTID = 20
|
651
|
+
RUNID = 30
|
652
|
+
|
653
|
+
FIELDS = {
|
654
|
+
MESSAGE => {:type => ::Thrift::Types::STRING, :name => 'message', :optional => true},
|
655
|
+
STARTREQUESTID => {:type => ::Thrift::Types::STRING, :name => 'startRequestId', :optional => true},
|
656
|
+
RUNID => {:type => ::Thrift::Types::STRING, :name => 'runId', :optional => true}
|
657
|
+
}
|
658
|
+
|
659
|
+
def struct_fields; FIELDS; end
|
660
|
+
|
661
|
+
def validate
|
662
|
+
end
|
663
|
+
|
664
|
+
::Thrift::Struct.generate_accessors self
|
665
|
+
end
|
666
|
+
|
667
|
+
class EntityNotExistsError < ::Thrift::Exception
|
668
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
669
|
+
def initialize(message=nil)
|
670
|
+
super()
|
671
|
+
self.message = message
|
672
|
+
end
|
673
|
+
|
674
|
+
MESSAGE = 1
|
675
|
+
|
676
|
+
FIELDS = {
|
677
|
+
MESSAGE => {:type => ::Thrift::Types::STRING, :name => 'message'}
|
678
|
+
}
|
679
|
+
|
680
|
+
def struct_fields; FIELDS; end
|
681
|
+
|
682
|
+
def validate
|
683
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field message is unset!') unless @message
|
684
|
+
end
|
685
|
+
|
686
|
+
::Thrift::Struct.generate_accessors self
|
687
|
+
end
|
688
|
+
|
689
|
+
class ServiceBusyError < ::Thrift::Exception
|
690
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
691
|
+
def initialize(message=nil)
|
692
|
+
super()
|
693
|
+
self.message = message
|
694
|
+
end
|
695
|
+
|
696
|
+
MESSAGE = 1
|
697
|
+
|
698
|
+
FIELDS = {
|
699
|
+
MESSAGE => {:type => ::Thrift::Types::STRING, :name => 'message'}
|
700
|
+
}
|
701
|
+
|
702
|
+
def struct_fields; FIELDS; end
|
703
|
+
|
704
|
+
def validate
|
705
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field message is unset!') unless @message
|
706
|
+
end
|
707
|
+
|
708
|
+
::Thrift::Struct.generate_accessors self
|
709
|
+
end
|
710
|
+
|
711
|
+
class CancellationAlreadyRequestedError < ::Thrift::Exception
|
712
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
713
|
+
def initialize(message=nil)
|
714
|
+
super()
|
715
|
+
self.message = message
|
716
|
+
end
|
717
|
+
|
718
|
+
MESSAGE = 1
|
719
|
+
|
720
|
+
FIELDS = {
|
721
|
+
MESSAGE => {:type => ::Thrift::Types::STRING, :name => 'message'}
|
722
|
+
}
|
723
|
+
|
724
|
+
def struct_fields; FIELDS; end
|
725
|
+
|
726
|
+
def validate
|
727
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field message is unset!') unless @message
|
728
|
+
end
|
729
|
+
|
730
|
+
::Thrift::Struct.generate_accessors self
|
731
|
+
end
|
732
|
+
|
733
|
+
class QueryFailedError < ::Thrift::Exception
|
734
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
735
|
+
def initialize(message=nil)
|
736
|
+
super()
|
737
|
+
self.message = message
|
738
|
+
end
|
739
|
+
|
740
|
+
MESSAGE = 1
|
741
|
+
|
742
|
+
FIELDS = {
|
743
|
+
MESSAGE => {:type => ::Thrift::Types::STRING, :name => 'message'}
|
744
|
+
}
|
745
|
+
|
746
|
+
def struct_fields; FIELDS; end
|
747
|
+
|
748
|
+
def validate
|
749
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field message is unset!') unless @message
|
750
|
+
end
|
751
|
+
|
752
|
+
::Thrift::Struct.generate_accessors self
|
753
|
+
end
|
754
|
+
|
755
|
+
class DomainNotActiveError < ::Thrift::Exception
|
756
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
757
|
+
MESSAGE = 1
|
758
|
+
DOMAINNAME = 2
|
759
|
+
CURRENTCLUSTER = 3
|
760
|
+
ACTIVECLUSTER = 4
|
761
|
+
|
762
|
+
FIELDS = {
|
763
|
+
MESSAGE => {:type => ::Thrift::Types::STRING, :name => 'message'},
|
764
|
+
DOMAINNAME => {:type => ::Thrift::Types::STRING, :name => 'domainName'},
|
765
|
+
CURRENTCLUSTER => {:type => ::Thrift::Types::STRING, :name => 'currentCluster'},
|
766
|
+
ACTIVECLUSTER => {:type => ::Thrift::Types::STRING, :name => 'activeCluster'}
|
767
|
+
}
|
768
|
+
|
769
|
+
def struct_fields; FIELDS; end
|
770
|
+
|
771
|
+
def validate
|
772
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field message is unset!') unless @message
|
773
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field domainName is unset!') unless @domainName
|
774
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field currentCluster is unset!') unless @currentCluster
|
775
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field activeCluster is unset!') unless @activeCluster
|
776
|
+
end
|
777
|
+
|
778
|
+
::Thrift::Struct.generate_accessors self
|
779
|
+
end
|
780
|
+
|
781
|
+
class LimitExceededError < ::Thrift::Exception
|
782
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
783
|
+
def initialize(message=nil)
|
784
|
+
super()
|
785
|
+
self.message = message
|
786
|
+
end
|
787
|
+
|
788
|
+
MESSAGE = 1
|
789
|
+
|
790
|
+
FIELDS = {
|
791
|
+
MESSAGE => {:type => ::Thrift::Types::STRING, :name => 'message'}
|
792
|
+
}
|
793
|
+
|
794
|
+
def struct_fields; FIELDS; end
|
795
|
+
|
796
|
+
def validate
|
797
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field message is unset!') unless @message
|
798
|
+
end
|
799
|
+
|
800
|
+
::Thrift::Struct.generate_accessors self
|
801
|
+
end
|
802
|
+
|
803
|
+
class AccessDeniedError < ::Thrift::Exception
|
804
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
805
|
+
def initialize(message=nil)
|
806
|
+
super()
|
807
|
+
self.message = message
|
808
|
+
end
|
809
|
+
|
810
|
+
MESSAGE = 1
|
811
|
+
|
812
|
+
FIELDS = {
|
813
|
+
MESSAGE => {:type => ::Thrift::Types::STRING, :name => 'message'}
|
814
|
+
}
|
815
|
+
|
816
|
+
def struct_fields; FIELDS; end
|
817
|
+
|
818
|
+
def validate
|
819
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field message is unset!') unless @message
|
820
|
+
end
|
821
|
+
|
822
|
+
::Thrift::Struct.generate_accessors self
|
823
|
+
end
|
824
|
+
|
825
|
+
class RetryTaskError < ::Thrift::Exception
|
826
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
827
|
+
MESSAGE = 1
|
828
|
+
DOMAINID = 2
|
829
|
+
WORKFLOWID = 3
|
830
|
+
RUNID = 4
|
831
|
+
NEXTEVENTID = 5
|
832
|
+
|
833
|
+
FIELDS = {
|
834
|
+
MESSAGE => {:type => ::Thrift::Types::STRING, :name => 'message'},
|
835
|
+
DOMAINID => {:type => ::Thrift::Types::STRING, :name => 'domainId', :optional => true},
|
836
|
+
WORKFLOWID => {:type => ::Thrift::Types::STRING, :name => 'workflowId', :optional => true},
|
837
|
+
RUNID => {:type => ::Thrift::Types::STRING, :name => 'runId', :optional => true},
|
838
|
+
NEXTEVENTID => {:type => ::Thrift::Types::I64, :name => 'nextEventId', :optional => true}
|
839
|
+
}
|
840
|
+
|
841
|
+
def struct_fields; FIELDS; end
|
842
|
+
|
843
|
+
def validate
|
844
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field message is unset!') unless @message
|
845
|
+
end
|
846
|
+
|
847
|
+
::Thrift::Struct.generate_accessors self
|
848
|
+
end
|
849
|
+
|
850
|
+
class ClientVersionNotSupportedError < ::Thrift::Exception
|
851
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
852
|
+
FEATUREVERSION = 1
|
853
|
+
CLIENTIMPL = 2
|
854
|
+
SUPPORTEDVERSIONS = 3
|
855
|
+
|
856
|
+
FIELDS = {
|
857
|
+
FEATUREVERSION => {:type => ::Thrift::Types::STRING, :name => 'featureVersion'},
|
858
|
+
CLIENTIMPL => {:type => ::Thrift::Types::STRING, :name => 'clientImpl'},
|
859
|
+
SUPPORTEDVERSIONS => {:type => ::Thrift::Types::STRING, :name => 'supportedVersions'}
|
860
|
+
}
|
861
|
+
|
862
|
+
def struct_fields; FIELDS; end
|
863
|
+
|
864
|
+
def validate
|
865
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field featureVersion is unset!') unless @featureVersion
|
866
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field clientImpl is unset!') unless @clientImpl
|
867
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field supportedVersions is unset!') unless @supportedVersions
|
868
|
+
end
|
869
|
+
|
870
|
+
::Thrift::Struct.generate_accessors self
|
871
|
+
end
|
872
|
+
|
873
|
+
class Header
|
874
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
875
|
+
FIELDS = 10
|
876
|
+
|
877
|
+
FIELDS = {
|
878
|
+
FIELDS => {:type => ::Thrift::Types::MAP, :name => 'fields', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING, :binary => true}, :optional => true}
|
879
|
+
}
|
880
|
+
|
881
|
+
def struct_fields; FIELDS; end
|
882
|
+
|
883
|
+
def validate
|
884
|
+
end
|
885
|
+
|
886
|
+
::Thrift::Struct.generate_accessors self
|
887
|
+
end
|
888
|
+
|
889
|
+
class WorkflowType
|
890
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
891
|
+
NAME = 10
|
892
|
+
|
893
|
+
FIELDS = {
|
894
|
+
NAME => {:type => ::Thrift::Types::STRING, :name => 'name', :optional => true}
|
895
|
+
}
|
896
|
+
|
897
|
+
def struct_fields; FIELDS; end
|
898
|
+
|
899
|
+
def validate
|
900
|
+
end
|
901
|
+
|
902
|
+
::Thrift::Struct.generate_accessors self
|
903
|
+
end
|
904
|
+
|
905
|
+
class ActivityType
|
906
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
907
|
+
NAME = 10
|
908
|
+
|
909
|
+
FIELDS = {
|
910
|
+
NAME => {:type => ::Thrift::Types::STRING, :name => 'name', :optional => true}
|
911
|
+
}
|
912
|
+
|
913
|
+
def struct_fields; FIELDS; end
|
914
|
+
|
915
|
+
def validate
|
916
|
+
end
|
917
|
+
|
918
|
+
::Thrift::Struct.generate_accessors self
|
919
|
+
end
|
920
|
+
|
921
|
+
class TaskList
|
922
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
923
|
+
NAME = 10
|
924
|
+
KIND = 20
|
925
|
+
|
926
|
+
FIELDS = {
|
927
|
+
NAME => {:type => ::Thrift::Types::STRING, :name => 'name', :optional => true},
|
928
|
+
KIND => {:type => ::Thrift::Types::I32, :name => 'kind', :optional => true, :enum_class => ::CadenceThrift::TaskListKind}
|
929
|
+
}
|
930
|
+
|
931
|
+
def struct_fields; FIELDS; end
|
932
|
+
|
933
|
+
def validate
|
934
|
+
unless @kind.nil? || ::CadenceThrift::TaskListKind::VALID_VALUES.include?(@kind)
|
935
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field kind!')
|
936
|
+
end
|
937
|
+
end
|
938
|
+
|
939
|
+
::Thrift::Struct.generate_accessors self
|
940
|
+
end
|
941
|
+
|
942
|
+
class DataBlob
|
943
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
944
|
+
ENCODINGTYPE = 10
|
945
|
+
DATA = 20
|
946
|
+
|
947
|
+
FIELDS = {
|
948
|
+
ENCODINGTYPE => {:type => ::Thrift::Types::I32, :name => 'EncodingType', :optional => true, :enum_class => ::CadenceThrift::EncodingType},
|
949
|
+
DATA => {:type => ::Thrift::Types::STRING, :name => 'Data', :binary => true, :optional => true}
|
950
|
+
}
|
951
|
+
|
952
|
+
def struct_fields; FIELDS; end
|
953
|
+
|
954
|
+
def validate
|
955
|
+
unless @EncodingType.nil? || ::CadenceThrift::EncodingType::VALID_VALUES.include?(@EncodingType)
|
956
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field EncodingType!')
|
957
|
+
end
|
958
|
+
end
|
959
|
+
|
960
|
+
::Thrift::Struct.generate_accessors self
|
961
|
+
end
|
962
|
+
|
963
|
+
class ReplicationInfo
|
964
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
965
|
+
VERSION = 10
|
966
|
+
LASTEVENTID = 20
|
967
|
+
|
968
|
+
FIELDS = {
|
969
|
+
VERSION => {:type => ::Thrift::Types::I64, :name => 'version', :optional => true},
|
970
|
+
LASTEVENTID => {:type => ::Thrift::Types::I64, :name => 'lastEventId', :optional => true}
|
971
|
+
}
|
972
|
+
|
973
|
+
def struct_fields; FIELDS; end
|
974
|
+
|
975
|
+
def validate
|
976
|
+
end
|
977
|
+
|
978
|
+
::Thrift::Struct.generate_accessors self
|
979
|
+
end
|
980
|
+
|
981
|
+
class TaskListMetadata
|
982
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
983
|
+
MAXTASKSPERSECOND = 10
|
984
|
+
|
985
|
+
FIELDS = {
|
986
|
+
MAXTASKSPERSECOND => {:type => ::Thrift::Types::DOUBLE, :name => 'maxTasksPerSecond', :optional => true}
|
987
|
+
}
|
988
|
+
|
989
|
+
def struct_fields; FIELDS; end
|
990
|
+
|
991
|
+
def validate
|
992
|
+
end
|
993
|
+
|
994
|
+
::Thrift::Struct.generate_accessors self
|
995
|
+
end
|
996
|
+
|
997
|
+
class WorkflowExecution
|
998
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
999
|
+
WORKFLOWID = 10
|
1000
|
+
RUNID = 20
|
1001
|
+
|
1002
|
+
FIELDS = {
|
1003
|
+
WORKFLOWID => {:type => ::Thrift::Types::STRING, :name => 'workflowId', :optional => true},
|
1004
|
+
RUNID => {:type => ::Thrift::Types::STRING, :name => 'runId', :optional => true}
|
1005
|
+
}
|
1006
|
+
|
1007
|
+
def struct_fields; FIELDS; end
|
1008
|
+
|
1009
|
+
def validate
|
1010
|
+
end
|
1011
|
+
|
1012
|
+
::Thrift::Struct.generate_accessors self
|
1013
|
+
end
|
1014
|
+
|
1015
|
+
class Memo
|
1016
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1017
|
+
FIELDS = 10
|
1018
|
+
|
1019
|
+
FIELDS = {
|
1020
|
+
FIELDS => {:type => ::Thrift::Types::MAP, :name => 'fields', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING, :binary => true}, :optional => true}
|
1021
|
+
}
|
1022
|
+
|
1023
|
+
def struct_fields; FIELDS; end
|
1024
|
+
|
1025
|
+
def validate
|
1026
|
+
end
|
1027
|
+
|
1028
|
+
::Thrift::Struct.generate_accessors self
|
1029
|
+
end
|
1030
|
+
|
1031
|
+
class SearchAttributes
|
1032
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1033
|
+
INDEXEDFIELDS = 10
|
1034
|
+
|
1035
|
+
FIELDS = {
|
1036
|
+
INDEXEDFIELDS => {:type => ::Thrift::Types::MAP, :name => 'indexedFields', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING, :binary => true}, :optional => true}
|
1037
|
+
}
|
1038
|
+
|
1039
|
+
def struct_fields; FIELDS; end
|
1040
|
+
|
1041
|
+
def validate
|
1042
|
+
end
|
1043
|
+
|
1044
|
+
::Thrift::Struct.generate_accessors self
|
1045
|
+
end
|
1046
|
+
|
1047
|
+
class WorkflowExecutionInfo
|
1048
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1049
|
+
EXECUTION = 10
|
1050
|
+
TYPE = 20
|
1051
|
+
STARTTIME = 30
|
1052
|
+
CLOSETIME = 40
|
1053
|
+
CLOSESTATUS = 50
|
1054
|
+
HISTORYLENGTH = 60
|
1055
|
+
PARENTDOMAINID = 70
|
1056
|
+
PARENTEXECUTION = 80
|
1057
|
+
EXECUTIONTIME = 90
|
1058
|
+
MEMO = 100
|
1059
|
+
SEARCHATTRIBUTES = 101
|
1060
|
+
AUTORESETPOINTS = 110
|
1061
|
+
|
1062
|
+
FIELDS = {
|
1063
|
+
EXECUTION => {:type => ::Thrift::Types::STRUCT, :name => 'execution', :class => ::CadenceThrift::WorkflowExecution, :optional => true},
|
1064
|
+
TYPE => {:type => ::Thrift::Types::STRUCT, :name => 'type', :class => ::CadenceThrift::WorkflowType, :optional => true},
|
1065
|
+
STARTTIME => {:type => ::Thrift::Types::I64, :name => 'startTime', :optional => true},
|
1066
|
+
CLOSETIME => {:type => ::Thrift::Types::I64, :name => 'closeTime', :optional => true},
|
1067
|
+
CLOSESTATUS => {:type => ::Thrift::Types::I32, :name => 'closeStatus', :optional => true, :enum_class => ::CadenceThrift::WorkflowExecutionCloseStatus},
|
1068
|
+
HISTORYLENGTH => {:type => ::Thrift::Types::I64, :name => 'historyLength', :optional => true},
|
1069
|
+
PARENTDOMAINID => {:type => ::Thrift::Types::STRING, :name => 'parentDomainId', :optional => true},
|
1070
|
+
PARENTEXECUTION => {:type => ::Thrift::Types::STRUCT, :name => 'parentExecution', :class => ::CadenceThrift::WorkflowExecution, :optional => true},
|
1071
|
+
EXECUTIONTIME => {:type => ::Thrift::Types::I64, :name => 'executionTime', :optional => true},
|
1072
|
+
MEMO => {:type => ::Thrift::Types::STRUCT, :name => 'memo', :class => ::CadenceThrift::Memo, :optional => true},
|
1073
|
+
SEARCHATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'searchAttributes', :class => ::CadenceThrift::SearchAttributes, :optional => true},
|
1074
|
+
AUTORESETPOINTS => {:type => ::Thrift::Types::STRUCT, :name => 'autoResetPoints', :class => ::CadenceThrift::ResetPoints, :optional => true}
|
1075
|
+
}
|
1076
|
+
|
1077
|
+
def struct_fields; FIELDS; end
|
1078
|
+
|
1079
|
+
def validate
|
1080
|
+
unless @closeStatus.nil? || ::CadenceThrift::WorkflowExecutionCloseStatus::VALID_VALUES.include?(@closeStatus)
|
1081
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field closeStatus!')
|
1082
|
+
end
|
1083
|
+
end
|
1084
|
+
|
1085
|
+
::Thrift::Struct.generate_accessors self
|
1086
|
+
end
|
1087
|
+
|
1088
|
+
class WorkflowExecutionConfiguration
|
1089
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1090
|
+
TASKLIST = 10
|
1091
|
+
EXECUTIONSTARTTOCLOSETIMEOUTSECONDS = 20
|
1092
|
+
TASKSTARTTOCLOSETIMEOUTSECONDS = 30
|
1093
|
+
|
1094
|
+
FIELDS = {
|
1095
|
+
TASKLIST => {:type => ::Thrift::Types::STRUCT, :name => 'taskList', :class => ::CadenceThrift::TaskList, :optional => true},
|
1096
|
+
EXECUTIONSTARTTOCLOSETIMEOUTSECONDS => {:type => ::Thrift::Types::I32, :name => 'executionStartToCloseTimeoutSeconds', :optional => true},
|
1097
|
+
TASKSTARTTOCLOSETIMEOUTSECONDS => {:type => ::Thrift::Types::I32, :name => 'taskStartToCloseTimeoutSeconds', :optional => true}
|
1098
|
+
}
|
1099
|
+
|
1100
|
+
def struct_fields; FIELDS; end
|
1101
|
+
|
1102
|
+
def validate
|
1103
|
+
end
|
1104
|
+
|
1105
|
+
::Thrift::Struct.generate_accessors self
|
1106
|
+
end
|
1107
|
+
|
1108
|
+
class TransientDecisionInfo
|
1109
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1110
|
+
SCHEDULEDEVENT = 10
|
1111
|
+
STARTEDEVENT = 20
|
1112
|
+
|
1113
|
+
FIELDS = {
|
1114
|
+
SCHEDULEDEVENT => {:type => ::Thrift::Types::STRUCT, :name => 'scheduledEvent', :class => ::CadenceThrift::HistoryEvent, :optional => true},
|
1115
|
+
STARTEDEVENT => {:type => ::Thrift::Types::STRUCT, :name => 'startedEvent', :class => ::CadenceThrift::HistoryEvent, :optional => true}
|
1116
|
+
}
|
1117
|
+
|
1118
|
+
def struct_fields; FIELDS; end
|
1119
|
+
|
1120
|
+
def validate
|
1121
|
+
end
|
1122
|
+
|
1123
|
+
::Thrift::Struct.generate_accessors self
|
1124
|
+
end
|
1125
|
+
|
1126
|
+
class ScheduleActivityTaskDecisionAttributes
|
1127
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1128
|
+
ACTIVITYID = 10
|
1129
|
+
ACTIVITYTYPE = 20
|
1130
|
+
DOMAIN = 25
|
1131
|
+
TASKLIST = 30
|
1132
|
+
INPUT = 40
|
1133
|
+
SCHEDULETOCLOSETIMEOUTSECONDS = 45
|
1134
|
+
SCHEDULETOSTARTTIMEOUTSECONDS = 50
|
1135
|
+
STARTTOCLOSETIMEOUTSECONDS = 55
|
1136
|
+
HEARTBEATTIMEOUTSECONDS = 60
|
1137
|
+
RETRYPOLICY = 70
|
1138
|
+
HEADER = 80
|
1139
|
+
|
1140
|
+
FIELDS = {
|
1141
|
+
ACTIVITYID => {:type => ::Thrift::Types::STRING, :name => 'activityId', :optional => true},
|
1142
|
+
ACTIVITYTYPE => {:type => ::Thrift::Types::STRUCT, :name => 'activityType', :class => ::CadenceThrift::ActivityType, :optional => true},
|
1143
|
+
DOMAIN => {:type => ::Thrift::Types::STRING, :name => 'domain', :optional => true},
|
1144
|
+
TASKLIST => {:type => ::Thrift::Types::STRUCT, :name => 'taskList', :class => ::CadenceThrift::TaskList, :optional => true},
|
1145
|
+
INPUT => {:type => ::Thrift::Types::STRING, :name => 'input', :binary => true, :optional => true},
|
1146
|
+
SCHEDULETOCLOSETIMEOUTSECONDS => {:type => ::Thrift::Types::I32, :name => 'scheduleToCloseTimeoutSeconds', :optional => true},
|
1147
|
+
SCHEDULETOSTARTTIMEOUTSECONDS => {:type => ::Thrift::Types::I32, :name => 'scheduleToStartTimeoutSeconds', :optional => true},
|
1148
|
+
STARTTOCLOSETIMEOUTSECONDS => {:type => ::Thrift::Types::I32, :name => 'startToCloseTimeoutSeconds', :optional => true},
|
1149
|
+
HEARTBEATTIMEOUTSECONDS => {:type => ::Thrift::Types::I32, :name => 'heartbeatTimeoutSeconds', :optional => true},
|
1150
|
+
RETRYPOLICY => {:type => ::Thrift::Types::STRUCT, :name => 'retryPolicy', :class => ::CadenceThrift::RetryPolicy, :optional => true},
|
1151
|
+
HEADER => {:type => ::Thrift::Types::STRUCT, :name => 'header', :class => ::CadenceThrift::Header, :optional => true}
|
1152
|
+
}
|
1153
|
+
|
1154
|
+
def struct_fields; FIELDS; end
|
1155
|
+
|
1156
|
+
def validate
|
1157
|
+
end
|
1158
|
+
|
1159
|
+
::Thrift::Struct.generate_accessors self
|
1160
|
+
end
|
1161
|
+
|
1162
|
+
class RequestCancelActivityTaskDecisionAttributes
|
1163
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1164
|
+
ACTIVITYID = 10
|
1165
|
+
|
1166
|
+
FIELDS = {
|
1167
|
+
ACTIVITYID => {:type => ::Thrift::Types::STRING, :name => 'activityId', :optional => true}
|
1168
|
+
}
|
1169
|
+
|
1170
|
+
def struct_fields; FIELDS; end
|
1171
|
+
|
1172
|
+
def validate
|
1173
|
+
end
|
1174
|
+
|
1175
|
+
::Thrift::Struct.generate_accessors self
|
1176
|
+
end
|
1177
|
+
|
1178
|
+
class StartTimerDecisionAttributes
|
1179
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1180
|
+
TIMERID = 10
|
1181
|
+
STARTTOFIRETIMEOUTSECONDS = 20
|
1182
|
+
|
1183
|
+
FIELDS = {
|
1184
|
+
TIMERID => {:type => ::Thrift::Types::STRING, :name => 'timerId', :optional => true},
|
1185
|
+
STARTTOFIRETIMEOUTSECONDS => {:type => ::Thrift::Types::I64, :name => 'startToFireTimeoutSeconds', :optional => true}
|
1186
|
+
}
|
1187
|
+
|
1188
|
+
def struct_fields; FIELDS; end
|
1189
|
+
|
1190
|
+
def validate
|
1191
|
+
end
|
1192
|
+
|
1193
|
+
::Thrift::Struct.generate_accessors self
|
1194
|
+
end
|
1195
|
+
|
1196
|
+
class CompleteWorkflowExecutionDecisionAttributes
|
1197
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1198
|
+
RESULT = 10
|
1199
|
+
|
1200
|
+
FIELDS = {
|
1201
|
+
RESULT => {:type => ::Thrift::Types::STRING, :name => 'result', :binary => true, :optional => true}
|
1202
|
+
}
|
1203
|
+
|
1204
|
+
def struct_fields; FIELDS; end
|
1205
|
+
|
1206
|
+
def validate
|
1207
|
+
end
|
1208
|
+
|
1209
|
+
::Thrift::Struct.generate_accessors self
|
1210
|
+
end
|
1211
|
+
|
1212
|
+
class FailWorkflowExecutionDecisionAttributes
|
1213
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1214
|
+
REASON = 10
|
1215
|
+
DETAILS = 20
|
1216
|
+
|
1217
|
+
FIELDS = {
|
1218
|
+
REASON => {:type => ::Thrift::Types::STRING, :name => 'reason', :optional => true},
|
1219
|
+
DETAILS => {:type => ::Thrift::Types::STRING, :name => 'details', :binary => true, :optional => true}
|
1220
|
+
}
|
1221
|
+
|
1222
|
+
def struct_fields; FIELDS; end
|
1223
|
+
|
1224
|
+
def validate
|
1225
|
+
end
|
1226
|
+
|
1227
|
+
::Thrift::Struct.generate_accessors self
|
1228
|
+
end
|
1229
|
+
|
1230
|
+
class CancelTimerDecisionAttributes
|
1231
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1232
|
+
TIMERID = 10
|
1233
|
+
|
1234
|
+
FIELDS = {
|
1235
|
+
TIMERID => {:type => ::Thrift::Types::STRING, :name => 'timerId', :optional => true}
|
1236
|
+
}
|
1237
|
+
|
1238
|
+
def struct_fields; FIELDS; end
|
1239
|
+
|
1240
|
+
def validate
|
1241
|
+
end
|
1242
|
+
|
1243
|
+
::Thrift::Struct.generate_accessors self
|
1244
|
+
end
|
1245
|
+
|
1246
|
+
class CancelWorkflowExecutionDecisionAttributes
|
1247
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1248
|
+
DETAILS = 10
|
1249
|
+
|
1250
|
+
FIELDS = {
|
1251
|
+
DETAILS => {:type => ::Thrift::Types::STRING, :name => 'details', :binary => true, :optional => true}
|
1252
|
+
}
|
1253
|
+
|
1254
|
+
def struct_fields; FIELDS; end
|
1255
|
+
|
1256
|
+
def validate
|
1257
|
+
end
|
1258
|
+
|
1259
|
+
::Thrift::Struct.generate_accessors self
|
1260
|
+
end
|
1261
|
+
|
1262
|
+
class RequestCancelExternalWorkflowExecutionDecisionAttributes
|
1263
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1264
|
+
DOMAIN = 10
|
1265
|
+
WORKFLOWID = 20
|
1266
|
+
RUNID = 30
|
1267
|
+
CONTROL = 40
|
1268
|
+
CHILDWORKFLOWONLY = 50
|
1269
|
+
|
1270
|
+
FIELDS = {
|
1271
|
+
DOMAIN => {:type => ::Thrift::Types::STRING, :name => 'domain', :optional => true},
|
1272
|
+
WORKFLOWID => {:type => ::Thrift::Types::STRING, :name => 'workflowId', :optional => true},
|
1273
|
+
RUNID => {:type => ::Thrift::Types::STRING, :name => 'runId', :optional => true},
|
1274
|
+
CONTROL => {:type => ::Thrift::Types::STRING, :name => 'control', :binary => true, :optional => true},
|
1275
|
+
CHILDWORKFLOWONLY => {:type => ::Thrift::Types::BOOL, :name => 'childWorkflowOnly', :optional => true}
|
1276
|
+
}
|
1277
|
+
|
1278
|
+
def struct_fields; FIELDS; end
|
1279
|
+
|
1280
|
+
def validate
|
1281
|
+
end
|
1282
|
+
|
1283
|
+
::Thrift::Struct.generate_accessors self
|
1284
|
+
end
|
1285
|
+
|
1286
|
+
class SignalExternalWorkflowExecutionDecisionAttributes
|
1287
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1288
|
+
DOMAIN = 10
|
1289
|
+
EXECUTION = 20
|
1290
|
+
SIGNALNAME = 30
|
1291
|
+
INPUT = 40
|
1292
|
+
CONTROL = 50
|
1293
|
+
CHILDWORKFLOWONLY = 60
|
1294
|
+
|
1295
|
+
FIELDS = {
|
1296
|
+
DOMAIN => {:type => ::Thrift::Types::STRING, :name => 'domain', :optional => true},
|
1297
|
+
EXECUTION => {:type => ::Thrift::Types::STRUCT, :name => 'execution', :class => ::CadenceThrift::WorkflowExecution, :optional => true},
|
1298
|
+
SIGNALNAME => {:type => ::Thrift::Types::STRING, :name => 'signalName', :optional => true},
|
1299
|
+
INPUT => {:type => ::Thrift::Types::STRING, :name => 'input', :binary => true, :optional => true},
|
1300
|
+
CONTROL => {:type => ::Thrift::Types::STRING, :name => 'control', :binary => true, :optional => true},
|
1301
|
+
CHILDWORKFLOWONLY => {:type => ::Thrift::Types::BOOL, :name => 'childWorkflowOnly', :optional => true}
|
1302
|
+
}
|
1303
|
+
|
1304
|
+
def struct_fields; FIELDS; end
|
1305
|
+
|
1306
|
+
def validate
|
1307
|
+
end
|
1308
|
+
|
1309
|
+
::Thrift::Struct.generate_accessors self
|
1310
|
+
end
|
1311
|
+
|
1312
|
+
class UpsertWorkflowSearchAttributesDecisionAttributes
|
1313
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1314
|
+
SEARCHATTRIBUTES = 10
|
1315
|
+
|
1316
|
+
FIELDS = {
|
1317
|
+
SEARCHATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'searchAttributes', :class => ::CadenceThrift::SearchAttributes, :optional => true}
|
1318
|
+
}
|
1319
|
+
|
1320
|
+
def struct_fields; FIELDS; end
|
1321
|
+
|
1322
|
+
def validate
|
1323
|
+
end
|
1324
|
+
|
1325
|
+
::Thrift::Struct.generate_accessors self
|
1326
|
+
end
|
1327
|
+
|
1328
|
+
class RecordMarkerDecisionAttributes
|
1329
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1330
|
+
MARKERNAME = 10
|
1331
|
+
DETAILS = 20
|
1332
|
+
HEADER = 30
|
1333
|
+
|
1334
|
+
FIELDS = {
|
1335
|
+
MARKERNAME => {:type => ::Thrift::Types::STRING, :name => 'markerName', :optional => true},
|
1336
|
+
DETAILS => {:type => ::Thrift::Types::STRING, :name => 'details', :binary => true, :optional => true},
|
1337
|
+
HEADER => {:type => ::Thrift::Types::STRUCT, :name => 'header', :class => ::CadenceThrift::Header, :optional => true}
|
1338
|
+
}
|
1339
|
+
|
1340
|
+
def struct_fields; FIELDS; end
|
1341
|
+
|
1342
|
+
def validate
|
1343
|
+
end
|
1344
|
+
|
1345
|
+
::Thrift::Struct.generate_accessors self
|
1346
|
+
end
|
1347
|
+
|
1348
|
+
class ContinueAsNewWorkflowExecutionDecisionAttributes
|
1349
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1350
|
+
WORKFLOWTYPE = 10
|
1351
|
+
TASKLIST = 20
|
1352
|
+
INPUT = 30
|
1353
|
+
EXECUTIONSTARTTOCLOSETIMEOUTSECONDS = 40
|
1354
|
+
TASKSTARTTOCLOSETIMEOUTSECONDS = 50
|
1355
|
+
BACKOFFSTARTINTERVALINSECONDS = 60
|
1356
|
+
RETRYPOLICY = 70
|
1357
|
+
INITIATOR = 80
|
1358
|
+
FAILUREREASON = 90
|
1359
|
+
FAILUREDETAILS = 100
|
1360
|
+
LASTCOMPLETIONRESULT = 110
|
1361
|
+
CRONSCHEDULE = 120
|
1362
|
+
HEADER = 130
|
1363
|
+
MEMO = 140
|
1364
|
+
SEARCHATTRIBUTES = 150
|
1365
|
+
|
1366
|
+
FIELDS = {
|
1367
|
+
WORKFLOWTYPE => {:type => ::Thrift::Types::STRUCT, :name => 'workflowType', :class => ::CadenceThrift::WorkflowType, :optional => true},
|
1368
|
+
TASKLIST => {:type => ::Thrift::Types::STRUCT, :name => 'taskList', :class => ::CadenceThrift::TaskList, :optional => true},
|
1369
|
+
INPUT => {:type => ::Thrift::Types::STRING, :name => 'input', :binary => true, :optional => true},
|
1370
|
+
EXECUTIONSTARTTOCLOSETIMEOUTSECONDS => {:type => ::Thrift::Types::I32, :name => 'executionStartToCloseTimeoutSeconds', :optional => true},
|
1371
|
+
TASKSTARTTOCLOSETIMEOUTSECONDS => {:type => ::Thrift::Types::I32, :name => 'taskStartToCloseTimeoutSeconds', :optional => true},
|
1372
|
+
BACKOFFSTARTINTERVALINSECONDS => {:type => ::Thrift::Types::I32, :name => 'backoffStartIntervalInSeconds', :optional => true},
|
1373
|
+
RETRYPOLICY => {:type => ::Thrift::Types::STRUCT, :name => 'retryPolicy', :class => ::CadenceThrift::RetryPolicy, :optional => true},
|
1374
|
+
INITIATOR => {:type => ::Thrift::Types::I32, :name => 'initiator', :optional => true, :enum_class => ::CadenceThrift::ContinueAsNewInitiator},
|
1375
|
+
FAILUREREASON => {:type => ::Thrift::Types::STRING, :name => 'failureReason', :optional => true},
|
1376
|
+
FAILUREDETAILS => {:type => ::Thrift::Types::STRING, :name => 'failureDetails', :binary => true, :optional => true},
|
1377
|
+
LASTCOMPLETIONRESULT => {:type => ::Thrift::Types::STRING, :name => 'lastCompletionResult', :binary => true, :optional => true},
|
1378
|
+
CRONSCHEDULE => {:type => ::Thrift::Types::STRING, :name => 'cronSchedule', :optional => true},
|
1379
|
+
HEADER => {:type => ::Thrift::Types::STRUCT, :name => 'header', :class => ::CadenceThrift::Header, :optional => true},
|
1380
|
+
MEMO => {:type => ::Thrift::Types::STRUCT, :name => 'memo', :class => ::CadenceThrift::Memo, :optional => true},
|
1381
|
+
SEARCHATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'searchAttributes', :class => ::CadenceThrift::SearchAttributes, :optional => true}
|
1382
|
+
}
|
1383
|
+
|
1384
|
+
def struct_fields; FIELDS; end
|
1385
|
+
|
1386
|
+
def validate
|
1387
|
+
end
|
1388
|
+
|
1389
|
+
::Thrift::Struct.generate_accessors self
|
1390
|
+
end
|
1391
|
+
|
1392
|
+
class StartChildWorkflowExecutionDecisionAttributes
|
1393
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1394
|
+
DOMAIN = 10
|
1395
|
+
WORKFLOWID = 20
|
1396
|
+
WORKFLOWTYPE = 30
|
1397
|
+
TASKLIST = 40
|
1398
|
+
INPUT = 50
|
1399
|
+
EXECUTIONSTARTTOCLOSETIMEOUTSECONDS = 60
|
1400
|
+
TASKSTARTTOCLOSETIMEOUTSECONDS = 70
|
1401
|
+
PARENTCLOSEPOLICY = 81
|
1402
|
+
CONTROL = 90
|
1403
|
+
WORKFLOWIDREUSEPOLICY = 100
|
1404
|
+
RETRYPOLICY = 110
|
1405
|
+
CRONSCHEDULE = 120
|
1406
|
+
HEADER = 130
|
1407
|
+
MEMO = 140
|
1408
|
+
SEARCHATTRIBUTES = 150
|
1409
|
+
|
1410
|
+
FIELDS = {
|
1411
|
+
DOMAIN => {:type => ::Thrift::Types::STRING, :name => 'domain', :optional => true},
|
1412
|
+
WORKFLOWID => {:type => ::Thrift::Types::STRING, :name => 'workflowId', :optional => true},
|
1413
|
+
WORKFLOWTYPE => {:type => ::Thrift::Types::STRUCT, :name => 'workflowType', :class => ::CadenceThrift::WorkflowType, :optional => true},
|
1414
|
+
TASKLIST => {:type => ::Thrift::Types::STRUCT, :name => 'taskList', :class => ::CadenceThrift::TaskList, :optional => true},
|
1415
|
+
INPUT => {:type => ::Thrift::Types::STRING, :name => 'input', :binary => true, :optional => true},
|
1416
|
+
EXECUTIONSTARTTOCLOSETIMEOUTSECONDS => {:type => ::Thrift::Types::I32, :name => 'executionStartToCloseTimeoutSeconds', :optional => true},
|
1417
|
+
TASKSTARTTOCLOSETIMEOUTSECONDS => {:type => ::Thrift::Types::I32, :name => 'taskStartToCloseTimeoutSeconds', :optional => true},
|
1418
|
+
PARENTCLOSEPOLICY => {:type => ::Thrift::Types::I32, :name => 'parentClosePolicy', :optional => true, :enum_class => ::CadenceThrift::ParentClosePolicy},
|
1419
|
+
CONTROL => {:type => ::Thrift::Types::STRING, :name => 'control', :binary => true, :optional => true},
|
1420
|
+
WORKFLOWIDREUSEPOLICY => {:type => ::Thrift::Types::I32, :name => 'workflowIdReusePolicy', :optional => true, :enum_class => ::CadenceThrift::WorkflowIdReusePolicy},
|
1421
|
+
RETRYPOLICY => {:type => ::Thrift::Types::STRUCT, :name => 'retryPolicy', :class => ::CadenceThrift::RetryPolicy, :optional => true},
|
1422
|
+
CRONSCHEDULE => {:type => ::Thrift::Types::STRING, :name => 'cronSchedule', :optional => true},
|
1423
|
+
HEADER => {:type => ::Thrift::Types::STRUCT, :name => 'header', :class => ::CadenceThrift::Header, :optional => true},
|
1424
|
+
MEMO => {:type => ::Thrift::Types::STRUCT, :name => 'memo', :class => ::CadenceThrift::Memo, :optional => true},
|
1425
|
+
SEARCHATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'searchAttributes', :class => ::CadenceThrift::SearchAttributes, :optional => true}
|
1426
|
+
}
|
1427
|
+
|
1428
|
+
def struct_fields; FIELDS; end
|
1429
|
+
|
1430
|
+
def validate
|
1431
|
+
unless @parentClosePolicy.nil? || ::CadenceThrift::ParentClosePolicy::VALID_VALUES.include?(@parentClosePolicy)
|
1432
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field parentClosePolicy!')
|
1433
|
+
end
|
1434
|
+
unless @workflowIdReusePolicy.nil? || ::CadenceThrift::WorkflowIdReusePolicy::VALID_VALUES.include?(@workflowIdReusePolicy)
|
1435
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field workflowIdReusePolicy!')
|
1436
|
+
end
|
1437
|
+
end
|
1438
|
+
|
1439
|
+
::Thrift::Struct.generate_accessors self
|
1440
|
+
end
|
1441
|
+
|
1442
|
+
class Decision
|
1443
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1444
|
+
DECISIONTYPE = 10
|
1445
|
+
SCHEDULEACTIVITYTASKDECISIONATTRIBUTES = 20
|
1446
|
+
STARTTIMERDECISIONATTRIBUTES = 25
|
1447
|
+
COMPLETEWORKFLOWEXECUTIONDECISIONATTRIBUTES = 30
|
1448
|
+
FAILWORKFLOWEXECUTIONDECISIONATTRIBUTES = 35
|
1449
|
+
REQUESTCANCELACTIVITYTASKDECISIONATTRIBUTES = 40
|
1450
|
+
CANCELTIMERDECISIONATTRIBUTES = 50
|
1451
|
+
CANCELWORKFLOWEXECUTIONDECISIONATTRIBUTES = 60
|
1452
|
+
REQUESTCANCELEXTERNALWORKFLOWEXECUTIONDECISIONATTRIBUTES = 70
|
1453
|
+
RECORDMARKERDECISIONATTRIBUTES = 80
|
1454
|
+
CONTINUEASNEWWORKFLOWEXECUTIONDECISIONATTRIBUTES = 90
|
1455
|
+
STARTCHILDWORKFLOWEXECUTIONDECISIONATTRIBUTES = 100
|
1456
|
+
SIGNALEXTERNALWORKFLOWEXECUTIONDECISIONATTRIBUTES = 110
|
1457
|
+
UPSERTWORKFLOWSEARCHATTRIBUTESDECISIONATTRIBUTES = 120
|
1458
|
+
|
1459
|
+
FIELDS = {
|
1460
|
+
DECISIONTYPE => {:type => ::Thrift::Types::I32, :name => 'decisionType', :optional => true, :enum_class => ::CadenceThrift::DecisionType},
|
1461
|
+
SCHEDULEACTIVITYTASKDECISIONATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'scheduleActivityTaskDecisionAttributes', :class => ::CadenceThrift::ScheduleActivityTaskDecisionAttributes, :optional => true},
|
1462
|
+
STARTTIMERDECISIONATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'startTimerDecisionAttributes', :class => ::CadenceThrift::StartTimerDecisionAttributes, :optional => true},
|
1463
|
+
COMPLETEWORKFLOWEXECUTIONDECISIONATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'completeWorkflowExecutionDecisionAttributes', :class => ::CadenceThrift::CompleteWorkflowExecutionDecisionAttributes, :optional => true},
|
1464
|
+
FAILWORKFLOWEXECUTIONDECISIONATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'failWorkflowExecutionDecisionAttributes', :class => ::CadenceThrift::FailWorkflowExecutionDecisionAttributes, :optional => true},
|
1465
|
+
REQUESTCANCELACTIVITYTASKDECISIONATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'requestCancelActivityTaskDecisionAttributes', :class => ::CadenceThrift::RequestCancelActivityTaskDecisionAttributes, :optional => true},
|
1466
|
+
CANCELTIMERDECISIONATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'cancelTimerDecisionAttributes', :class => ::CadenceThrift::CancelTimerDecisionAttributes, :optional => true},
|
1467
|
+
CANCELWORKFLOWEXECUTIONDECISIONATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'cancelWorkflowExecutionDecisionAttributes', :class => ::CadenceThrift::CancelWorkflowExecutionDecisionAttributes, :optional => true},
|
1468
|
+
REQUESTCANCELEXTERNALWORKFLOWEXECUTIONDECISIONATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'requestCancelExternalWorkflowExecutionDecisionAttributes', :class => ::CadenceThrift::RequestCancelExternalWorkflowExecutionDecisionAttributes, :optional => true},
|
1469
|
+
RECORDMARKERDECISIONATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'recordMarkerDecisionAttributes', :class => ::CadenceThrift::RecordMarkerDecisionAttributes, :optional => true},
|
1470
|
+
CONTINUEASNEWWORKFLOWEXECUTIONDECISIONATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'continueAsNewWorkflowExecutionDecisionAttributes', :class => ::CadenceThrift::ContinueAsNewWorkflowExecutionDecisionAttributes, :optional => true},
|
1471
|
+
STARTCHILDWORKFLOWEXECUTIONDECISIONATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'startChildWorkflowExecutionDecisionAttributes', :class => ::CadenceThrift::StartChildWorkflowExecutionDecisionAttributes, :optional => true},
|
1472
|
+
SIGNALEXTERNALWORKFLOWEXECUTIONDECISIONATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'signalExternalWorkflowExecutionDecisionAttributes', :class => ::CadenceThrift::SignalExternalWorkflowExecutionDecisionAttributes, :optional => true},
|
1473
|
+
UPSERTWORKFLOWSEARCHATTRIBUTESDECISIONATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'upsertWorkflowSearchAttributesDecisionAttributes', :class => ::CadenceThrift::UpsertWorkflowSearchAttributesDecisionAttributes, :optional => true}
|
1474
|
+
}
|
1475
|
+
|
1476
|
+
def struct_fields; FIELDS; end
|
1477
|
+
|
1478
|
+
def validate
|
1479
|
+
unless @decisionType.nil? || ::CadenceThrift::DecisionType::VALID_VALUES.include?(@decisionType)
|
1480
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field decisionType!')
|
1481
|
+
end
|
1482
|
+
end
|
1483
|
+
|
1484
|
+
::Thrift::Struct.generate_accessors self
|
1485
|
+
end
|
1486
|
+
|
1487
|
+
class WorkflowExecutionStartedEventAttributes
|
1488
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1489
|
+
WORKFLOWTYPE = 10
|
1490
|
+
PARENTWORKFLOWDOMAIN = 12
|
1491
|
+
PARENTWORKFLOWEXECUTION = 14
|
1492
|
+
PARENTINITIATEDEVENTID = 16
|
1493
|
+
TASKLIST = 20
|
1494
|
+
INPUT = 30
|
1495
|
+
EXECUTIONSTARTTOCLOSETIMEOUTSECONDS = 40
|
1496
|
+
TASKSTARTTOCLOSETIMEOUTSECONDS = 50
|
1497
|
+
CONTINUEDEXECUTIONRUNID = 54
|
1498
|
+
INITIATOR = 55
|
1499
|
+
CONTINUEDFAILUREREASON = 56
|
1500
|
+
CONTINUEDFAILUREDETAILS = 57
|
1501
|
+
LASTCOMPLETIONRESULT = 58
|
1502
|
+
ORIGINALEXECUTIONRUNID = 59
|
1503
|
+
IDENTITY = 60
|
1504
|
+
FIRSTEXECUTIONRUNID = 61
|
1505
|
+
RETRYPOLICY = 70
|
1506
|
+
ATTEMPT = 80
|
1507
|
+
EXPIRATIONTIMESTAMP = 90
|
1508
|
+
CRONSCHEDULE = 100
|
1509
|
+
FIRSTDECISIONTASKBACKOFFSECONDS = 110
|
1510
|
+
MEMO = 120
|
1511
|
+
SEARCHATTRIBUTES = 121
|
1512
|
+
PREVAUTORESETPOINTS = 130
|
1513
|
+
HEADER = 140
|
1514
|
+
|
1515
|
+
FIELDS = {
|
1516
|
+
WORKFLOWTYPE => {:type => ::Thrift::Types::STRUCT, :name => 'workflowType', :class => ::CadenceThrift::WorkflowType, :optional => true},
|
1517
|
+
PARENTWORKFLOWDOMAIN => {:type => ::Thrift::Types::STRING, :name => 'parentWorkflowDomain', :optional => true},
|
1518
|
+
PARENTWORKFLOWEXECUTION => {:type => ::Thrift::Types::STRUCT, :name => 'parentWorkflowExecution', :class => ::CadenceThrift::WorkflowExecution, :optional => true},
|
1519
|
+
PARENTINITIATEDEVENTID => {:type => ::Thrift::Types::I64, :name => 'parentInitiatedEventId', :optional => true},
|
1520
|
+
TASKLIST => {:type => ::Thrift::Types::STRUCT, :name => 'taskList', :class => ::CadenceThrift::TaskList, :optional => true},
|
1521
|
+
INPUT => {:type => ::Thrift::Types::STRING, :name => 'input', :binary => true, :optional => true},
|
1522
|
+
EXECUTIONSTARTTOCLOSETIMEOUTSECONDS => {:type => ::Thrift::Types::I32, :name => 'executionStartToCloseTimeoutSeconds', :optional => true},
|
1523
|
+
TASKSTARTTOCLOSETIMEOUTSECONDS => {:type => ::Thrift::Types::I32, :name => 'taskStartToCloseTimeoutSeconds', :optional => true},
|
1524
|
+
CONTINUEDEXECUTIONRUNID => {:type => ::Thrift::Types::STRING, :name => 'continuedExecutionRunId', :optional => true},
|
1525
|
+
INITIATOR => {:type => ::Thrift::Types::I32, :name => 'initiator', :optional => true, :enum_class => ::CadenceThrift::ContinueAsNewInitiator},
|
1526
|
+
CONTINUEDFAILUREREASON => {:type => ::Thrift::Types::STRING, :name => 'continuedFailureReason', :optional => true},
|
1527
|
+
CONTINUEDFAILUREDETAILS => {:type => ::Thrift::Types::STRING, :name => 'continuedFailureDetails', :binary => true, :optional => true},
|
1528
|
+
LASTCOMPLETIONRESULT => {:type => ::Thrift::Types::STRING, :name => 'lastCompletionResult', :binary => true, :optional => true},
|
1529
|
+
ORIGINALEXECUTIONRUNID => {:type => ::Thrift::Types::STRING, :name => 'originalExecutionRunId', :optional => true},
|
1530
|
+
IDENTITY => {:type => ::Thrift::Types::STRING, :name => 'identity', :optional => true},
|
1531
|
+
FIRSTEXECUTIONRUNID => {:type => ::Thrift::Types::STRING, :name => 'firstExecutionRunId', :optional => true},
|
1532
|
+
RETRYPOLICY => {:type => ::Thrift::Types::STRUCT, :name => 'retryPolicy', :class => ::CadenceThrift::RetryPolicy, :optional => true},
|
1533
|
+
ATTEMPT => {:type => ::Thrift::Types::I32, :name => 'attempt', :optional => true},
|
1534
|
+
EXPIRATIONTIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'expirationTimestamp', :optional => true},
|
1535
|
+
CRONSCHEDULE => {:type => ::Thrift::Types::STRING, :name => 'cronSchedule', :optional => true},
|
1536
|
+
FIRSTDECISIONTASKBACKOFFSECONDS => {:type => ::Thrift::Types::I32, :name => 'firstDecisionTaskBackoffSeconds', :optional => true},
|
1537
|
+
MEMO => {:type => ::Thrift::Types::STRUCT, :name => 'memo', :class => ::CadenceThrift::Memo, :optional => true},
|
1538
|
+
SEARCHATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'searchAttributes', :class => ::CadenceThrift::SearchAttributes, :optional => true},
|
1539
|
+
PREVAUTORESETPOINTS => {:type => ::Thrift::Types::STRUCT, :name => 'prevAutoResetPoints', :class => ::CadenceThrift::ResetPoints, :optional => true},
|
1540
|
+
HEADER => {:type => ::Thrift::Types::STRUCT, :name => 'header', :class => ::CadenceThrift::Header, :optional => true}
|
1541
|
+
}
|
1542
|
+
|
1543
|
+
def struct_fields; FIELDS; end
|
1544
|
+
|
1545
|
+
def validate
|
1546
|
+
end
|
1547
|
+
|
1548
|
+
::Thrift::Struct.generate_accessors self
|
1549
|
+
end
|
1550
|
+
|
1551
|
+
class ResetPoints
|
1552
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1553
|
+
POINTS = 10
|
1554
|
+
|
1555
|
+
FIELDS = {
|
1556
|
+
POINTS => {:type => ::Thrift::Types::LIST, :name => 'points', :element => {:type => ::Thrift::Types::STRUCT, :class => ::CadenceThrift::ResetPointInfo}, :optional => true}
|
1557
|
+
}
|
1558
|
+
|
1559
|
+
def struct_fields; FIELDS; end
|
1560
|
+
|
1561
|
+
def validate
|
1562
|
+
end
|
1563
|
+
|
1564
|
+
::Thrift::Struct.generate_accessors self
|
1565
|
+
end
|
1566
|
+
|
1567
|
+
class ResetPointInfo
|
1568
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1569
|
+
BINARYCHECKSUM = 10
|
1570
|
+
RUNID = 20
|
1571
|
+
FIRSTDECISIONCOMPLETEDID = 30
|
1572
|
+
CREATEDTIMENANO = 40
|
1573
|
+
EXPIRINGTIMENANO = 50
|
1574
|
+
RESETTABLE = 60
|
1575
|
+
|
1576
|
+
FIELDS = {
|
1577
|
+
BINARYCHECKSUM => {:type => ::Thrift::Types::STRING, :name => 'binaryChecksum', :optional => true},
|
1578
|
+
RUNID => {:type => ::Thrift::Types::STRING, :name => 'runId', :optional => true},
|
1579
|
+
FIRSTDECISIONCOMPLETEDID => {:type => ::Thrift::Types::I64, :name => 'firstDecisionCompletedId', :optional => true},
|
1580
|
+
CREATEDTIMENANO => {:type => ::Thrift::Types::I64, :name => 'createdTimeNano', :optional => true},
|
1581
|
+
EXPIRINGTIMENANO => {:type => ::Thrift::Types::I64, :name => 'expiringTimeNano', :optional => true},
|
1582
|
+
RESETTABLE => {:type => ::Thrift::Types::BOOL, :name => 'resettable', :optional => true}
|
1583
|
+
}
|
1584
|
+
|
1585
|
+
def struct_fields; FIELDS; end
|
1586
|
+
|
1587
|
+
def validate
|
1588
|
+
end
|
1589
|
+
|
1590
|
+
::Thrift::Struct.generate_accessors self
|
1591
|
+
end
|
1592
|
+
|
1593
|
+
class WorkflowExecutionCompletedEventAttributes
|
1594
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1595
|
+
RESULT = 10
|
1596
|
+
DECISIONTASKCOMPLETEDEVENTID = 20
|
1597
|
+
|
1598
|
+
FIELDS = {
|
1599
|
+
RESULT => {:type => ::Thrift::Types::STRING, :name => 'result', :binary => true, :optional => true},
|
1600
|
+
DECISIONTASKCOMPLETEDEVENTID => {:type => ::Thrift::Types::I64, :name => 'decisionTaskCompletedEventId', :optional => true}
|
1601
|
+
}
|
1602
|
+
|
1603
|
+
def struct_fields; FIELDS; end
|
1604
|
+
|
1605
|
+
def validate
|
1606
|
+
end
|
1607
|
+
|
1608
|
+
::Thrift::Struct.generate_accessors self
|
1609
|
+
end
|
1610
|
+
|
1611
|
+
class WorkflowExecutionFailedEventAttributes
|
1612
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1613
|
+
REASON = 10
|
1614
|
+
DETAILS = 20
|
1615
|
+
DECISIONTASKCOMPLETEDEVENTID = 30
|
1616
|
+
|
1617
|
+
FIELDS = {
|
1618
|
+
REASON => {:type => ::Thrift::Types::STRING, :name => 'reason', :optional => true},
|
1619
|
+
DETAILS => {:type => ::Thrift::Types::STRING, :name => 'details', :binary => true, :optional => true},
|
1620
|
+
DECISIONTASKCOMPLETEDEVENTID => {:type => ::Thrift::Types::I64, :name => 'decisionTaskCompletedEventId', :optional => true}
|
1621
|
+
}
|
1622
|
+
|
1623
|
+
def struct_fields; FIELDS; end
|
1624
|
+
|
1625
|
+
def validate
|
1626
|
+
end
|
1627
|
+
|
1628
|
+
::Thrift::Struct.generate_accessors self
|
1629
|
+
end
|
1630
|
+
|
1631
|
+
class WorkflowExecutionTimedOutEventAttributes
|
1632
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1633
|
+
TIMEOUTTYPE = 10
|
1634
|
+
|
1635
|
+
FIELDS = {
|
1636
|
+
TIMEOUTTYPE => {:type => ::Thrift::Types::I32, :name => 'timeoutType', :optional => true, :enum_class => ::CadenceThrift::TimeoutType}
|
1637
|
+
}
|
1638
|
+
|
1639
|
+
def struct_fields; FIELDS; end
|
1640
|
+
|
1641
|
+
def validate
|
1642
|
+
unless @timeoutType.nil? || ::CadenceThrift::TimeoutType::VALID_VALUES.include?(@timeoutType)
|
1643
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field timeoutType!')
|
1644
|
+
end
|
1645
|
+
end
|
1646
|
+
|
1647
|
+
::Thrift::Struct.generate_accessors self
|
1648
|
+
end
|
1649
|
+
|
1650
|
+
class WorkflowExecutionContinuedAsNewEventAttributes
|
1651
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1652
|
+
NEWEXECUTIONRUNID = 10
|
1653
|
+
WORKFLOWTYPE = 20
|
1654
|
+
TASKLIST = 30
|
1655
|
+
INPUT = 40
|
1656
|
+
EXECUTIONSTARTTOCLOSETIMEOUTSECONDS = 50
|
1657
|
+
TASKSTARTTOCLOSETIMEOUTSECONDS = 60
|
1658
|
+
DECISIONTASKCOMPLETEDEVENTID = 70
|
1659
|
+
BACKOFFSTARTINTERVALINSECONDS = 80
|
1660
|
+
INITIATOR = 90
|
1661
|
+
FAILUREREASON = 100
|
1662
|
+
FAILUREDETAILS = 110
|
1663
|
+
LASTCOMPLETIONRESULT = 120
|
1664
|
+
HEADER = 130
|
1665
|
+
MEMO = 140
|
1666
|
+
SEARCHATTRIBUTES = 150
|
1667
|
+
|
1668
|
+
FIELDS = {
|
1669
|
+
NEWEXECUTIONRUNID => {:type => ::Thrift::Types::STRING, :name => 'newExecutionRunId', :optional => true},
|
1670
|
+
WORKFLOWTYPE => {:type => ::Thrift::Types::STRUCT, :name => 'workflowType', :class => ::CadenceThrift::WorkflowType, :optional => true},
|
1671
|
+
TASKLIST => {:type => ::Thrift::Types::STRUCT, :name => 'taskList', :class => ::CadenceThrift::TaskList, :optional => true},
|
1672
|
+
INPUT => {:type => ::Thrift::Types::STRING, :name => 'input', :binary => true, :optional => true},
|
1673
|
+
EXECUTIONSTARTTOCLOSETIMEOUTSECONDS => {:type => ::Thrift::Types::I32, :name => 'executionStartToCloseTimeoutSeconds', :optional => true},
|
1674
|
+
TASKSTARTTOCLOSETIMEOUTSECONDS => {:type => ::Thrift::Types::I32, :name => 'taskStartToCloseTimeoutSeconds', :optional => true},
|
1675
|
+
DECISIONTASKCOMPLETEDEVENTID => {:type => ::Thrift::Types::I64, :name => 'decisionTaskCompletedEventId', :optional => true},
|
1676
|
+
BACKOFFSTARTINTERVALINSECONDS => {:type => ::Thrift::Types::I32, :name => 'backoffStartIntervalInSeconds', :optional => true},
|
1677
|
+
INITIATOR => {:type => ::Thrift::Types::I32, :name => 'initiator', :optional => true, :enum_class => ::CadenceThrift::ContinueAsNewInitiator},
|
1678
|
+
FAILUREREASON => {:type => ::Thrift::Types::STRING, :name => 'failureReason', :optional => true},
|
1679
|
+
FAILUREDETAILS => {:type => ::Thrift::Types::STRING, :name => 'failureDetails', :binary => true, :optional => true},
|
1680
|
+
LASTCOMPLETIONRESULT => {:type => ::Thrift::Types::STRING, :name => 'lastCompletionResult', :binary => true, :optional => true},
|
1681
|
+
HEADER => {:type => ::Thrift::Types::STRUCT, :name => 'header', :class => ::CadenceThrift::Header, :optional => true},
|
1682
|
+
MEMO => {:type => ::Thrift::Types::STRUCT, :name => 'memo', :class => ::CadenceThrift::Memo, :optional => true},
|
1683
|
+
SEARCHATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'searchAttributes', :class => ::CadenceThrift::SearchAttributes, :optional => true}
|
1684
|
+
}
|
1685
|
+
|
1686
|
+
def struct_fields; FIELDS; end
|
1687
|
+
|
1688
|
+
def validate
|
1689
|
+
unless @initiator.nil? || ::CadenceThrift::ContinueAsNewInitiator::VALID_VALUES.include?(@initiator)
|
1690
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field initiator!')
|
1691
|
+
end
|
1692
|
+
end
|
1693
|
+
|
1694
|
+
::Thrift::Struct.generate_accessors self
|
1695
|
+
end
|
1696
|
+
|
1697
|
+
class DecisionTaskScheduledEventAttributes
|
1698
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1699
|
+
TASKLIST = 10
|
1700
|
+
STARTTOCLOSETIMEOUTSECONDS = 20
|
1701
|
+
ATTEMPT = 30
|
1702
|
+
|
1703
|
+
FIELDS = {
|
1704
|
+
TASKLIST => {:type => ::Thrift::Types::STRUCT, :name => 'taskList', :class => ::CadenceThrift::TaskList, :optional => true},
|
1705
|
+
STARTTOCLOSETIMEOUTSECONDS => {:type => ::Thrift::Types::I32, :name => 'startToCloseTimeoutSeconds', :optional => true},
|
1706
|
+
ATTEMPT => {:type => ::Thrift::Types::I64, :name => 'attempt', :optional => true}
|
1707
|
+
}
|
1708
|
+
|
1709
|
+
def struct_fields; FIELDS; end
|
1710
|
+
|
1711
|
+
def validate
|
1712
|
+
end
|
1713
|
+
|
1714
|
+
::Thrift::Struct.generate_accessors self
|
1715
|
+
end
|
1716
|
+
|
1717
|
+
class DecisionTaskStartedEventAttributes
|
1718
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1719
|
+
SCHEDULEDEVENTID = 10
|
1720
|
+
IDENTITY = 20
|
1721
|
+
REQUESTID = 30
|
1722
|
+
|
1723
|
+
FIELDS = {
|
1724
|
+
SCHEDULEDEVENTID => {:type => ::Thrift::Types::I64, :name => 'scheduledEventId', :optional => true},
|
1725
|
+
IDENTITY => {:type => ::Thrift::Types::STRING, :name => 'identity', :optional => true},
|
1726
|
+
REQUESTID => {:type => ::Thrift::Types::STRING, :name => 'requestId', :optional => true}
|
1727
|
+
}
|
1728
|
+
|
1729
|
+
def struct_fields; FIELDS; end
|
1730
|
+
|
1731
|
+
def validate
|
1732
|
+
end
|
1733
|
+
|
1734
|
+
::Thrift::Struct.generate_accessors self
|
1735
|
+
end
|
1736
|
+
|
1737
|
+
class DecisionTaskCompletedEventAttributes
|
1738
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1739
|
+
EXECUTIONCONTEXT = 10
|
1740
|
+
SCHEDULEDEVENTID = 20
|
1741
|
+
STARTEDEVENTID = 30
|
1742
|
+
IDENTITY = 40
|
1743
|
+
BINARYCHECKSUM = 50
|
1744
|
+
|
1745
|
+
FIELDS = {
|
1746
|
+
EXECUTIONCONTEXT => {:type => ::Thrift::Types::STRING, :name => 'executionContext', :binary => true, :optional => true},
|
1747
|
+
SCHEDULEDEVENTID => {:type => ::Thrift::Types::I64, :name => 'scheduledEventId', :optional => true},
|
1748
|
+
STARTEDEVENTID => {:type => ::Thrift::Types::I64, :name => 'startedEventId', :optional => true},
|
1749
|
+
IDENTITY => {:type => ::Thrift::Types::STRING, :name => 'identity', :optional => true},
|
1750
|
+
BINARYCHECKSUM => {:type => ::Thrift::Types::STRING, :name => 'binaryChecksum', :optional => true}
|
1751
|
+
}
|
1752
|
+
|
1753
|
+
def struct_fields; FIELDS; end
|
1754
|
+
|
1755
|
+
def validate
|
1756
|
+
end
|
1757
|
+
|
1758
|
+
::Thrift::Struct.generate_accessors self
|
1759
|
+
end
|
1760
|
+
|
1761
|
+
class DecisionTaskTimedOutEventAttributes
|
1762
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1763
|
+
SCHEDULEDEVENTID = 10
|
1764
|
+
STARTEDEVENTID = 20
|
1765
|
+
TIMEOUTTYPE = 30
|
1766
|
+
|
1767
|
+
FIELDS = {
|
1768
|
+
SCHEDULEDEVENTID => {:type => ::Thrift::Types::I64, :name => 'scheduledEventId', :optional => true},
|
1769
|
+
STARTEDEVENTID => {:type => ::Thrift::Types::I64, :name => 'startedEventId', :optional => true},
|
1770
|
+
TIMEOUTTYPE => {:type => ::Thrift::Types::I32, :name => 'timeoutType', :optional => true, :enum_class => ::CadenceThrift::TimeoutType}
|
1771
|
+
}
|
1772
|
+
|
1773
|
+
def struct_fields; FIELDS; end
|
1774
|
+
|
1775
|
+
def validate
|
1776
|
+
unless @timeoutType.nil? || ::CadenceThrift::TimeoutType::VALID_VALUES.include?(@timeoutType)
|
1777
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field timeoutType!')
|
1778
|
+
end
|
1779
|
+
end
|
1780
|
+
|
1781
|
+
::Thrift::Struct.generate_accessors self
|
1782
|
+
end
|
1783
|
+
|
1784
|
+
class DecisionTaskFailedEventAttributes
|
1785
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1786
|
+
SCHEDULEDEVENTID = 10
|
1787
|
+
STARTEDEVENTID = 20
|
1788
|
+
CAUSE = 30
|
1789
|
+
DETAILS = 35
|
1790
|
+
IDENTITY = 40
|
1791
|
+
REASON = 50
|
1792
|
+
BASERUNID = 60
|
1793
|
+
NEWRUNID = 70
|
1794
|
+
FORKEVENTVERSION = 80
|
1795
|
+
|
1796
|
+
FIELDS = {
|
1797
|
+
SCHEDULEDEVENTID => {:type => ::Thrift::Types::I64, :name => 'scheduledEventId', :optional => true},
|
1798
|
+
STARTEDEVENTID => {:type => ::Thrift::Types::I64, :name => 'startedEventId', :optional => true},
|
1799
|
+
CAUSE => {:type => ::Thrift::Types::I32, :name => 'cause', :optional => true, :enum_class => ::CadenceThrift::DecisionTaskFailedCause},
|
1800
|
+
DETAILS => {:type => ::Thrift::Types::STRING, :name => 'details', :binary => true, :optional => true},
|
1801
|
+
IDENTITY => {:type => ::Thrift::Types::STRING, :name => 'identity', :optional => true},
|
1802
|
+
REASON => {:type => ::Thrift::Types::STRING, :name => 'reason', :optional => true},
|
1803
|
+
BASERUNID => {:type => ::Thrift::Types::STRING, :name => 'baseRunId', :optional => true},
|
1804
|
+
NEWRUNID => {:type => ::Thrift::Types::STRING, :name => 'newRunId', :optional => true},
|
1805
|
+
FORKEVENTVERSION => {:type => ::Thrift::Types::I64, :name => 'forkEventVersion', :optional => true}
|
1806
|
+
}
|
1807
|
+
|
1808
|
+
def struct_fields; FIELDS; end
|
1809
|
+
|
1810
|
+
def validate
|
1811
|
+
unless @cause.nil? || ::CadenceThrift::DecisionTaskFailedCause::VALID_VALUES.include?(@cause)
|
1812
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field cause!')
|
1813
|
+
end
|
1814
|
+
end
|
1815
|
+
|
1816
|
+
::Thrift::Struct.generate_accessors self
|
1817
|
+
end
|
1818
|
+
|
1819
|
+
class ActivityTaskScheduledEventAttributes
|
1820
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1821
|
+
ACTIVITYID = 10
|
1822
|
+
ACTIVITYTYPE = 20
|
1823
|
+
DOMAIN = 25
|
1824
|
+
TASKLIST = 30
|
1825
|
+
INPUT = 40
|
1826
|
+
SCHEDULETOCLOSETIMEOUTSECONDS = 45
|
1827
|
+
SCHEDULETOSTARTTIMEOUTSECONDS = 50
|
1828
|
+
STARTTOCLOSETIMEOUTSECONDS = 55
|
1829
|
+
HEARTBEATTIMEOUTSECONDS = 60
|
1830
|
+
DECISIONTASKCOMPLETEDEVENTID = 90
|
1831
|
+
RETRYPOLICY = 110
|
1832
|
+
HEADER = 120
|
1833
|
+
|
1834
|
+
FIELDS = {
|
1835
|
+
ACTIVITYID => {:type => ::Thrift::Types::STRING, :name => 'activityId', :optional => true},
|
1836
|
+
ACTIVITYTYPE => {:type => ::Thrift::Types::STRUCT, :name => 'activityType', :class => ::CadenceThrift::ActivityType, :optional => true},
|
1837
|
+
DOMAIN => {:type => ::Thrift::Types::STRING, :name => 'domain', :optional => true},
|
1838
|
+
TASKLIST => {:type => ::Thrift::Types::STRUCT, :name => 'taskList', :class => ::CadenceThrift::TaskList, :optional => true},
|
1839
|
+
INPUT => {:type => ::Thrift::Types::STRING, :name => 'input', :binary => true, :optional => true},
|
1840
|
+
SCHEDULETOCLOSETIMEOUTSECONDS => {:type => ::Thrift::Types::I32, :name => 'scheduleToCloseTimeoutSeconds', :optional => true},
|
1841
|
+
SCHEDULETOSTARTTIMEOUTSECONDS => {:type => ::Thrift::Types::I32, :name => 'scheduleToStartTimeoutSeconds', :optional => true},
|
1842
|
+
STARTTOCLOSETIMEOUTSECONDS => {:type => ::Thrift::Types::I32, :name => 'startToCloseTimeoutSeconds', :optional => true},
|
1843
|
+
HEARTBEATTIMEOUTSECONDS => {:type => ::Thrift::Types::I32, :name => 'heartbeatTimeoutSeconds', :optional => true},
|
1844
|
+
DECISIONTASKCOMPLETEDEVENTID => {:type => ::Thrift::Types::I64, :name => 'decisionTaskCompletedEventId', :optional => true},
|
1845
|
+
RETRYPOLICY => {:type => ::Thrift::Types::STRUCT, :name => 'retryPolicy', :class => ::CadenceThrift::RetryPolicy, :optional => true},
|
1846
|
+
HEADER => {:type => ::Thrift::Types::STRUCT, :name => 'header', :class => ::CadenceThrift::Header, :optional => true}
|
1847
|
+
}
|
1848
|
+
|
1849
|
+
def struct_fields; FIELDS; end
|
1850
|
+
|
1851
|
+
def validate
|
1852
|
+
end
|
1853
|
+
|
1854
|
+
::Thrift::Struct.generate_accessors self
|
1855
|
+
end
|
1856
|
+
|
1857
|
+
class ActivityTaskStartedEventAttributes
|
1858
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1859
|
+
SCHEDULEDEVENTID = 10
|
1860
|
+
IDENTITY = 20
|
1861
|
+
REQUESTID = 30
|
1862
|
+
ATTEMPT = 40
|
1863
|
+
|
1864
|
+
FIELDS = {
|
1865
|
+
SCHEDULEDEVENTID => {:type => ::Thrift::Types::I64, :name => 'scheduledEventId', :optional => true},
|
1866
|
+
IDENTITY => {:type => ::Thrift::Types::STRING, :name => 'identity', :optional => true},
|
1867
|
+
REQUESTID => {:type => ::Thrift::Types::STRING, :name => 'requestId', :optional => true},
|
1868
|
+
ATTEMPT => {:type => ::Thrift::Types::I32, :name => 'attempt', :optional => true}
|
1869
|
+
}
|
1870
|
+
|
1871
|
+
def struct_fields; FIELDS; end
|
1872
|
+
|
1873
|
+
def validate
|
1874
|
+
end
|
1875
|
+
|
1876
|
+
::Thrift::Struct.generate_accessors self
|
1877
|
+
end
|
1878
|
+
|
1879
|
+
class ActivityTaskCompletedEventAttributes
|
1880
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1881
|
+
RESULT = 10
|
1882
|
+
SCHEDULEDEVENTID = 20
|
1883
|
+
STARTEDEVENTID = 30
|
1884
|
+
IDENTITY = 40
|
1885
|
+
|
1886
|
+
FIELDS = {
|
1887
|
+
RESULT => {:type => ::Thrift::Types::STRING, :name => 'result', :binary => true, :optional => true},
|
1888
|
+
SCHEDULEDEVENTID => {:type => ::Thrift::Types::I64, :name => 'scheduledEventId', :optional => true},
|
1889
|
+
STARTEDEVENTID => {:type => ::Thrift::Types::I64, :name => 'startedEventId', :optional => true},
|
1890
|
+
IDENTITY => {:type => ::Thrift::Types::STRING, :name => 'identity', :optional => true}
|
1891
|
+
}
|
1892
|
+
|
1893
|
+
def struct_fields; FIELDS; end
|
1894
|
+
|
1895
|
+
def validate
|
1896
|
+
end
|
1897
|
+
|
1898
|
+
::Thrift::Struct.generate_accessors self
|
1899
|
+
end
|
1900
|
+
|
1901
|
+
class ActivityTaskFailedEventAttributes
|
1902
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1903
|
+
REASON = 10
|
1904
|
+
DETAILS = 20
|
1905
|
+
SCHEDULEDEVENTID = 30
|
1906
|
+
STARTEDEVENTID = 40
|
1907
|
+
IDENTITY = 50
|
1908
|
+
|
1909
|
+
FIELDS = {
|
1910
|
+
REASON => {:type => ::Thrift::Types::STRING, :name => 'reason', :optional => true},
|
1911
|
+
DETAILS => {:type => ::Thrift::Types::STRING, :name => 'details', :binary => true, :optional => true},
|
1912
|
+
SCHEDULEDEVENTID => {:type => ::Thrift::Types::I64, :name => 'scheduledEventId', :optional => true},
|
1913
|
+
STARTEDEVENTID => {:type => ::Thrift::Types::I64, :name => 'startedEventId', :optional => true},
|
1914
|
+
IDENTITY => {:type => ::Thrift::Types::STRING, :name => 'identity', :optional => true}
|
1915
|
+
}
|
1916
|
+
|
1917
|
+
def struct_fields; FIELDS; end
|
1918
|
+
|
1919
|
+
def validate
|
1920
|
+
end
|
1921
|
+
|
1922
|
+
::Thrift::Struct.generate_accessors self
|
1923
|
+
end
|
1924
|
+
|
1925
|
+
class ActivityTaskTimedOutEventAttributes
|
1926
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1927
|
+
DETAILS = 5
|
1928
|
+
SCHEDULEDEVENTID = 10
|
1929
|
+
STARTEDEVENTID = 20
|
1930
|
+
TIMEOUTTYPE = 30
|
1931
|
+
|
1932
|
+
FIELDS = {
|
1933
|
+
DETAILS => {:type => ::Thrift::Types::STRING, :name => 'details', :binary => true, :optional => true},
|
1934
|
+
SCHEDULEDEVENTID => {:type => ::Thrift::Types::I64, :name => 'scheduledEventId', :optional => true},
|
1935
|
+
STARTEDEVENTID => {:type => ::Thrift::Types::I64, :name => 'startedEventId', :optional => true},
|
1936
|
+
TIMEOUTTYPE => {:type => ::Thrift::Types::I32, :name => 'timeoutType', :optional => true, :enum_class => ::CadenceThrift::TimeoutType}
|
1937
|
+
}
|
1938
|
+
|
1939
|
+
def struct_fields; FIELDS; end
|
1940
|
+
|
1941
|
+
def validate
|
1942
|
+
unless @timeoutType.nil? || ::CadenceThrift::TimeoutType::VALID_VALUES.include?(@timeoutType)
|
1943
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field timeoutType!')
|
1944
|
+
end
|
1945
|
+
end
|
1946
|
+
|
1947
|
+
::Thrift::Struct.generate_accessors self
|
1948
|
+
end
|
1949
|
+
|
1950
|
+
class ActivityTaskCancelRequestedEventAttributes
|
1951
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1952
|
+
ACTIVITYID = 10
|
1953
|
+
DECISIONTASKCOMPLETEDEVENTID = 20
|
1954
|
+
|
1955
|
+
FIELDS = {
|
1956
|
+
ACTIVITYID => {:type => ::Thrift::Types::STRING, :name => 'activityId', :optional => true},
|
1957
|
+
DECISIONTASKCOMPLETEDEVENTID => {:type => ::Thrift::Types::I64, :name => 'decisionTaskCompletedEventId', :optional => true}
|
1958
|
+
}
|
1959
|
+
|
1960
|
+
def struct_fields; FIELDS; end
|
1961
|
+
|
1962
|
+
def validate
|
1963
|
+
end
|
1964
|
+
|
1965
|
+
::Thrift::Struct.generate_accessors self
|
1966
|
+
end
|
1967
|
+
|
1968
|
+
class RequestCancelActivityTaskFailedEventAttributes
|
1969
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1970
|
+
ACTIVITYID = 10
|
1971
|
+
CAUSE = 20
|
1972
|
+
DECISIONTASKCOMPLETEDEVENTID = 30
|
1973
|
+
|
1974
|
+
FIELDS = {
|
1975
|
+
ACTIVITYID => {:type => ::Thrift::Types::STRING, :name => 'activityId', :optional => true},
|
1976
|
+
CAUSE => {:type => ::Thrift::Types::STRING, :name => 'cause', :optional => true},
|
1977
|
+
DECISIONTASKCOMPLETEDEVENTID => {:type => ::Thrift::Types::I64, :name => 'decisionTaskCompletedEventId', :optional => true}
|
1978
|
+
}
|
1979
|
+
|
1980
|
+
def struct_fields; FIELDS; end
|
1981
|
+
|
1982
|
+
def validate
|
1983
|
+
end
|
1984
|
+
|
1985
|
+
::Thrift::Struct.generate_accessors self
|
1986
|
+
end
|
1987
|
+
|
1988
|
+
class ActivityTaskCanceledEventAttributes
|
1989
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1990
|
+
DETAILS = 10
|
1991
|
+
LATESTCANCELREQUESTEDEVENTID = 20
|
1992
|
+
SCHEDULEDEVENTID = 30
|
1993
|
+
STARTEDEVENTID = 40
|
1994
|
+
IDENTITY = 50
|
1995
|
+
|
1996
|
+
FIELDS = {
|
1997
|
+
DETAILS => {:type => ::Thrift::Types::STRING, :name => 'details', :binary => true, :optional => true},
|
1998
|
+
LATESTCANCELREQUESTEDEVENTID => {:type => ::Thrift::Types::I64, :name => 'latestCancelRequestedEventId', :optional => true},
|
1999
|
+
SCHEDULEDEVENTID => {:type => ::Thrift::Types::I64, :name => 'scheduledEventId', :optional => true},
|
2000
|
+
STARTEDEVENTID => {:type => ::Thrift::Types::I64, :name => 'startedEventId', :optional => true},
|
2001
|
+
IDENTITY => {:type => ::Thrift::Types::STRING, :name => 'identity', :optional => true}
|
2002
|
+
}
|
2003
|
+
|
2004
|
+
def struct_fields; FIELDS; end
|
2005
|
+
|
2006
|
+
def validate
|
2007
|
+
end
|
2008
|
+
|
2009
|
+
::Thrift::Struct.generate_accessors self
|
2010
|
+
end
|
2011
|
+
|
2012
|
+
class TimerStartedEventAttributes
|
2013
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2014
|
+
TIMERID = 10
|
2015
|
+
STARTTOFIRETIMEOUTSECONDS = 20
|
2016
|
+
DECISIONTASKCOMPLETEDEVENTID = 30
|
2017
|
+
|
2018
|
+
FIELDS = {
|
2019
|
+
TIMERID => {:type => ::Thrift::Types::STRING, :name => 'timerId', :optional => true},
|
2020
|
+
STARTTOFIRETIMEOUTSECONDS => {:type => ::Thrift::Types::I64, :name => 'startToFireTimeoutSeconds', :optional => true},
|
2021
|
+
DECISIONTASKCOMPLETEDEVENTID => {:type => ::Thrift::Types::I64, :name => 'decisionTaskCompletedEventId', :optional => true}
|
2022
|
+
}
|
2023
|
+
|
2024
|
+
def struct_fields; FIELDS; end
|
2025
|
+
|
2026
|
+
def validate
|
2027
|
+
end
|
2028
|
+
|
2029
|
+
::Thrift::Struct.generate_accessors self
|
2030
|
+
end
|
2031
|
+
|
2032
|
+
class TimerFiredEventAttributes
|
2033
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2034
|
+
TIMERID = 10
|
2035
|
+
STARTEDEVENTID = 20
|
2036
|
+
|
2037
|
+
FIELDS = {
|
2038
|
+
TIMERID => {:type => ::Thrift::Types::STRING, :name => 'timerId', :optional => true},
|
2039
|
+
STARTEDEVENTID => {:type => ::Thrift::Types::I64, :name => 'startedEventId', :optional => true}
|
2040
|
+
}
|
2041
|
+
|
2042
|
+
def struct_fields; FIELDS; end
|
2043
|
+
|
2044
|
+
def validate
|
2045
|
+
end
|
2046
|
+
|
2047
|
+
::Thrift::Struct.generate_accessors self
|
2048
|
+
end
|
2049
|
+
|
2050
|
+
class TimerCanceledEventAttributes
|
2051
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2052
|
+
TIMERID = 10
|
2053
|
+
STARTEDEVENTID = 20
|
2054
|
+
DECISIONTASKCOMPLETEDEVENTID = 30
|
2055
|
+
IDENTITY = 40
|
2056
|
+
|
2057
|
+
FIELDS = {
|
2058
|
+
TIMERID => {:type => ::Thrift::Types::STRING, :name => 'timerId', :optional => true},
|
2059
|
+
STARTEDEVENTID => {:type => ::Thrift::Types::I64, :name => 'startedEventId', :optional => true},
|
2060
|
+
DECISIONTASKCOMPLETEDEVENTID => {:type => ::Thrift::Types::I64, :name => 'decisionTaskCompletedEventId', :optional => true},
|
2061
|
+
IDENTITY => {:type => ::Thrift::Types::STRING, :name => 'identity', :optional => true}
|
2062
|
+
}
|
2063
|
+
|
2064
|
+
def struct_fields; FIELDS; end
|
2065
|
+
|
2066
|
+
def validate
|
2067
|
+
end
|
2068
|
+
|
2069
|
+
::Thrift::Struct.generate_accessors self
|
2070
|
+
end
|
2071
|
+
|
2072
|
+
class CancelTimerFailedEventAttributes
|
2073
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2074
|
+
TIMERID = 10
|
2075
|
+
CAUSE = 20
|
2076
|
+
DECISIONTASKCOMPLETEDEVENTID = 30
|
2077
|
+
IDENTITY = 40
|
2078
|
+
|
2079
|
+
FIELDS = {
|
2080
|
+
TIMERID => {:type => ::Thrift::Types::STRING, :name => 'timerId', :optional => true},
|
2081
|
+
CAUSE => {:type => ::Thrift::Types::STRING, :name => 'cause', :optional => true},
|
2082
|
+
DECISIONTASKCOMPLETEDEVENTID => {:type => ::Thrift::Types::I64, :name => 'decisionTaskCompletedEventId', :optional => true},
|
2083
|
+
IDENTITY => {:type => ::Thrift::Types::STRING, :name => 'identity', :optional => true}
|
2084
|
+
}
|
2085
|
+
|
2086
|
+
def struct_fields; FIELDS; end
|
2087
|
+
|
2088
|
+
def validate
|
2089
|
+
end
|
2090
|
+
|
2091
|
+
::Thrift::Struct.generate_accessors self
|
2092
|
+
end
|
2093
|
+
|
2094
|
+
class WorkflowExecutionCancelRequestedEventAttributes
|
2095
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2096
|
+
CAUSE = 10
|
2097
|
+
EXTERNALINITIATEDEVENTID = 20
|
2098
|
+
EXTERNALWORKFLOWEXECUTION = 30
|
2099
|
+
IDENTITY = 40
|
2100
|
+
|
2101
|
+
FIELDS = {
|
2102
|
+
CAUSE => {:type => ::Thrift::Types::STRING, :name => 'cause', :optional => true},
|
2103
|
+
EXTERNALINITIATEDEVENTID => {:type => ::Thrift::Types::I64, :name => 'externalInitiatedEventId', :optional => true},
|
2104
|
+
EXTERNALWORKFLOWEXECUTION => {:type => ::Thrift::Types::STRUCT, :name => 'externalWorkflowExecution', :class => ::CadenceThrift::WorkflowExecution, :optional => true},
|
2105
|
+
IDENTITY => {:type => ::Thrift::Types::STRING, :name => 'identity', :optional => true}
|
2106
|
+
}
|
2107
|
+
|
2108
|
+
def struct_fields; FIELDS; end
|
2109
|
+
|
2110
|
+
def validate
|
2111
|
+
end
|
2112
|
+
|
2113
|
+
::Thrift::Struct.generate_accessors self
|
2114
|
+
end
|
2115
|
+
|
2116
|
+
class WorkflowExecutionCanceledEventAttributes
|
2117
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2118
|
+
DECISIONTASKCOMPLETEDEVENTID = 10
|
2119
|
+
DETAILS = 20
|
2120
|
+
|
2121
|
+
FIELDS = {
|
2122
|
+
DECISIONTASKCOMPLETEDEVENTID => {:type => ::Thrift::Types::I64, :name => 'decisionTaskCompletedEventId', :optional => true},
|
2123
|
+
DETAILS => {:type => ::Thrift::Types::STRING, :name => 'details', :binary => true, :optional => true}
|
2124
|
+
}
|
2125
|
+
|
2126
|
+
def struct_fields; FIELDS; end
|
2127
|
+
|
2128
|
+
def validate
|
2129
|
+
end
|
2130
|
+
|
2131
|
+
::Thrift::Struct.generate_accessors self
|
2132
|
+
end
|
2133
|
+
|
2134
|
+
class MarkerRecordedEventAttributes
|
2135
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2136
|
+
MARKERNAME = 10
|
2137
|
+
DETAILS = 20
|
2138
|
+
DECISIONTASKCOMPLETEDEVENTID = 30
|
2139
|
+
HEADER = 40
|
2140
|
+
|
2141
|
+
FIELDS = {
|
2142
|
+
MARKERNAME => {:type => ::Thrift::Types::STRING, :name => 'markerName', :optional => true},
|
2143
|
+
DETAILS => {:type => ::Thrift::Types::STRING, :name => 'details', :binary => true, :optional => true},
|
2144
|
+
DECISIONTASKCOMPLETEDEVENTID => {:type => ::Thrift::Types::I64, :name => 'decisionTaskCompletedEventId', :optional => true},
|
2145
|
+
HEADER => {:type => ::Thrift::Types::STRUCT, :name => 'header', :class => ::CadenceThrift::Header, :optional => true}
|
2146
|
+
}
|
2147
|
+
|
2148
|
+
def struct_fields; FIELDS; end
|
2149
|
+
|
2150
|
+
def validate
|
2151
|
+
end
|
2152
|
+
|
2153
|
+
::Thrift::Struct.generate_accessors self
|
2154
|
+
end
|
2155
|
+
|
2156
|
+
class WorkflowExecutionSignaledEventAttributes
|
2157
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2158
|
+
SIGNALNAME = 10
|
2159
|
+
INPUT = 20
|
2160
|
+
IDENTITY = 30
|
2161
|
+
|
2162
|
+
FIELDS = {
|
2163
|
+
SIGNALNAME => {:type => ::Thrift::Types::STRING, :name => 'signalName', :optional => true},
|
2164
|
+
INPUT => {:type => ::Thrift::Types::STRING, :name => 'input', :binary => true, :optional => true},
|
2165
|
+
IDENTITY => {:type => ::Thrift::Types::STRING, :name => 'identity', :optional => true}
|
2166
|
+
}
|
2167
|
+
|
2168
|
+
def struct_fields; FIELDS; end
|
2169
|
+
|
2170
|
+
def validate
|
2171
|
+
end
|
2172
|
+
|
2173
|
+
::Thrift::Struct.generate_accessors self
|
2174
|
+
end
|
2175
|
+
|
2176
|
+
class WorkflowExecutionTerminatedEventAttributes
|
2177
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2178
|
+
REASON = 10
|
2179
|
+
DETAILS = 20
|
2180
|
+
IDENTITY = 30
|
2181
|
+
|
2182
|
+
FIELDS = {
|
2183
|
+
REASON => {:type => ::Thrift::Types::STRING, :name => 'reason', :optional => true},
|
2184
|
+
DETAILS => {:type => ::Thrift::Types::STRING, :name => 'details', :binary => true, :optional => true},
|
2185
|
+
IDENTITY => {:type => ::Thrift::Types::STRING, :name => 'identity', :optional => true}
|
2186
|
+
}
|
2187
|
+
|
2188
|
+
def struct_fields; FIELDS; end
|
2189
|
+
|
2190
|
+
def validate
|
2191
|
+
end
|
2192
|
+
|
2193
|
+
::Thrift::Struct.generate_accessors self
|
2194
|
+
end
|
2195
|
+
|
2196
|
+
class RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
|
2197
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2198
|
+
DECISIONTASKCOMPLETEDEVENTID = 10
|
2199
|
+
DOMAIN = 20
|
2200
|
+
WORKFLOWEXECUTION = 30
|
2201
|
+
CONTROL = 40
|
2202
|
+
CHILDWORKFLOWONLY = 50
|
2203
|
+
|
2204
|
+
FIELDS = {
|
2205
|
+
DECISIONTASKCOMPLETEDEVENTID => {:type => ::Thrift::Types::I64, :name => 'decisionTaskCompletedEventId', :optional => true},
|
2206
|
+
DOMAIN => {:type => ::Thrift::Types::STRING, :name => 'domain', :optional => true},
|
2207
|
+
WORKFLOWEXECUTION => {:type => ::Thrift::Types::STRUCT, :name => 'workflowExecution', :class => ::CadenceThrift::WorkflowExecution, :optional => true},
|
2208
|
+
CONTROL => {:type => ::Thrift::Types::STRING, :name => 'control', :binary => true, :optional => true},
|
2209
|
+
CHILDWORKFLOWONLY => {:type => ::Thrift::Types::BOOL, :name => 'childWorkflowOnly', :optional => true}
|
2210
|
+
}
|
2211
|
+
|
2212
|
+
def struct_fields; FIELDS; end
|
2213
|
+
|
2214
|
+
def validate
|
2215
|
+
end
|
2216
|
+
|
2217
|
+
::Thrift::Struct.generate_accessors self
|
2218
|
+
end
|
2219
|
+
|
2220
|
+
class RequestCancelExternalWorkflowExecutionFailedEventAttributes
|
2221
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2222
|
+
CAUSE = 10
|
2223
|
+
DECISIONTASKCOMPLETEDEVENTID = 20
|
2224
|
+
DOMAIN = 30
|
2225
|
+
WORKFLOWEXECUTION = 40
|
2226
|
+
INITIATEDEVENTID = 50
|
2227
|
+
CONTROL = 60
|
2228
|
+
|
2229
|
+
FIELDS = {
|
2230
|
+
CAUSE => {:type => ::Thrift::Types::I32, :name => 'cause', :optional => true, :enum_class => ::CadenceThrift::CancelExternalWorkflowExecutionFailedCause},
|
2231
|
+
DECISIONTASKCOMPLETEDEVENTID => {:type => ::Thrift::Types::I64, :name => 'decisionTaskCompletedEventId', :optional => true},
|
2232
|
+
DOMAIN => {:type => ::Thrift::Types::STRING, :name => 'domain', :optional => true},
|
2233
|
+
WORKFLOWEXECUTION => {:type => ::Thrift::Types::STRUCT, :name => 'workflowExecution', :class => ::CadenceThrift::WorkflowExecution, :optional => true},
|
2234
|
+
INITIATEDEVENTID => {:type => ::Thrift::Types::I64, :name => 'initiatedEventId', :optional => true},
|
2235
|
+
CONTROL => {:type => ::Thrift::Types::STRING, :name => 'control', :binary => true, :optional => true}
|
2236
|
+
}
|
2237
|
+
|
2238
|
+
def struct_fields; FIELDS; end
|
2239
|
+
|
2240
|
+
def validate
|
2241
|
+
unless @cause.nil? || ::CadenceThrift::CancelExternalWorkflowExecutionFailedCause::VALID_VALUES.include?(@cause)
|
2242
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field cause!')
|
2243
|
+
end
|
2244
|
+
end
|
2245
|
+
|
2246
|
+
::Thrift::Struct.generate_accessors self
|
2247
|
+
end
|
2248
|
+
|
2249
|
+
class ExternalWorkflowExecutionCancelRequestedEventAttributes
|
2250
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2251
|
+
INITIATEDEVENTID = 10
|
2252
|
+
DOMAIN = 20
|
2253
|
+
WORKFLOWEXECUTION = 30
|
2254
|
+
|
2255
|
+
FIELDS = {
|
2256
|
+
INITIATEDEVENTID => {:type => ::Thrift::Types::I64, :name => 'initiatedEventId', :optional => true},
|
2257
|
+
DOMAIN => {:type => ::Thrift::Types::STRING, :name => 'domain', :optional => true},
|
2258
|
+
WORKFLOWEXECUTION => {:type => ::Thrift::Types::STRUCT, :name => 'workflowExecution', :class => ::CadenceThrift::WorkflowExecution, :optional => true}
|
2259
|
+
}
|
2260
|
+
|
2261
|
+
def struct_fields; FIELDS; end
|
2262
|
+
|
2263
|
+
def validate
|
2264
|
+
end
|
2265
|
+
|
2266
|
+
::Thrift::Struct.generate_accessors self
|
2267
|
+
end
|
2268
|
+
|
2269
|
+
class SignalExternalWorkflowExecutionInitiatedEventAttributes
|
2270
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2271
|
+
DECISIONTASKCOMPLETEDEVENTID = 10
|
2272
|
+
DOMAIN = 20
|
2273
|
+
WORKFLOWEXECUTION = 30
|
2274
|
+
SIGNALNAME = 40
|
2275
|
+
INPUT = 50
|
2276
|
+
CONTROL = 60
|
2277
|
+
CHILDWORKFLOWONLY = 70
|
2278
|
+
|
2279
|
+
FIELDS = {
|
2280
|
+
DECISIONTASKCOMPLETEDEVENTID => {:type => ::Thrift::Types::I64, :name => 'decisionTaskCompletedEventId', :optional => true},
|
2281
|
+
DOMAIN => {:type => ::Thrift::Types::STRING, :name => 'domain', :optional => true},
|
2282
|
+
WORKFLOWEXECUTION => {:type => ::Thrift::Types::STRUCT, :name => 'workflowExecution', :class => ::CadenceThrift::WorkflowExecution, :optional => true},
|
2283
|
+
SIGNALNAME => {:type => ::Thrift::Types::STRING, :name => 'signalName', :optional => true},
|
2284
|
+
INPUT => {:type => ::Thrift::Types::STRING, :name => 'input', :binary => true, :optional => true},
|
2285
|
+
CONTROL => {:type => ::Thrift::Types::STRING, :name => 'control', :binary => true, :optional => true},
|
2286
|
+
CHILDWORKFLOWONLY => {:type => ::Thrift::Types::BOOL, :name => 'childWorkflowOnly', :optional => true}
|
2287
|
+
}
|
2288
|
+
|
2289
|
+
def struct_fields; FIELDS; end
|
2290
|
+
|
2291
|
+
def validate
|
2292
|
+
end
|
2293
|
+
|
2294
|
+
::Thrift::Struct.generate_accessors self
|
2295
|
+
end
|
2296
|
+
|
2297
|
+
class SignalExternalWorkflowExecutionFailedEventAttributes
|
2298
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2299
|
+
CAUSE = 10
|
2300
|
+
DECISIONTASKCOMPLETEDEVENTID = 20
|
2301
|
+
DOMAIN = 30
|
2302
|
+
WORKFLOWEXECUTION = 40
|
2303
|
+
INITIATEDEVENTID = 50
|
2304
|
+
CONTROL = 60
|
2305
|
+
|
2306
|
+
FIELDS = {
|
2307
|
+
CAUSE => {:type => ::Thrift::Types::I32, :name => 'cause', :optional => true, :enum_class => ::CadenceThrift::SignalExternalWorkflowExecutionFailedCause},
|
2308
|
+
DECISIONTASKCOMPLETEDEVENTID => {:type => ::Thrift::Types::I64, :name => 'decisionTaskCompletedEventId', :optional => true},
|
2309
|
+
DOMAIN => {:type => ::Thrift::Types::STRING, :name => 'domain', :optional => true},
|
2310
|
+
WORKFLOWEXECUTION => {:type => ::Thrift::Types::STRUCT, :name => 'workflowExecution', :class => ::CadenceThrift::WorkflowExecution, :optional => true},
|
2311
|
+
INITIATEDEVENTID => {:type => ::Thrift::Types::I64, :name => 'initiatedEventId', :optional => true},
|
2312
|
+
CONTROL => {:type => ::Thrift::Types::STRING, :name => 'control', :binary => true, :optional => true}
|
2313
|
+
}
|
2314
|
+
|
2315
|
+
def struct_fields; FIELDS; end
|
2316
|
+
|
2317
|
+
def validate
|
2318
|
+
unless @cause.nil? || ::CadenceThrift::SignalExternalWorkflowExecutionFailedCause::VALID_VALUES.include?(@cause)
|
2319
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field cause!')
|
2320
|
+
end
|
2321
|
+
end
|
2322
|
+
|
2323
|
+
::Thrift::Struct.generate_accessors self
|
2324
|
+
end
|
2325
|
+
|
2326
|
+
class ExternalWorkflowExecutionSignaledEventAttributes
|
2327
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2328
|
+
INITIATEDEVENTID = 10
|
2329
|
+
DOMAIN = 20
|
2330
|
+
WORKFLOWEXECUTION = 30
|
2331
|
+
CONTROL = 40
|
2332
|
+
|
2333
|
+
FIELDS = {
|
2334
|
+
INITIATEDEVENTID => {:type => ::Thrift::Types::I64, :name => 'initiatedEventId', :optional => true},
|
2335
|
+
DOMAIN => {:type => ::Thrift::Types::STRING, :name => 'domain', :optional => true},
|
2336
|
+
WORKFLOWEXECUTION => {:type => ::Thrift::Types::STRUCT, :name => 'workflowExecution', :class => ::CadenceThrift::WorkflowExecution, :optional => true},
|
2337
|
+
CONTROL => {:type => ::Thrift::Types::STRING, :name => 'control', :binary => true, :optional => true}
|
2338
|
+
}
|
2339
|
+
|
2340
|
+
def struct_fields; FIELDS; end
|
2341
|
+
|
2342
|
+
def validate
|
2343
|
+
end
|
2344
|
+
|
2345
|
+
::Thrift::Struct.generate_accessors self
|
2346
|
+
end
|
2347
|
+
|
2348
|
+
class UpsertWorkflowSearchAttributesEventAttributes
|
2349
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2350
|
+
DECISIONTASKCOMPLETEDEVENTID = 10
|
2351
|
+
SEARCHATTRIBUTES = 20
|
2352
|
+
|
2353
|
+
FIELDS = {
|
2354
|
+
DECISIONTASKCOMPLETEDEVENTID => {:type => ::Thrift::Types::I64, :name => 'decisionTaskCompletedEventId', :optional => true},
|
2355
|
+
SEARCHATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'searchAttributes', :class => ::CadenceThrift::SearchAttributes, :optional => true}
|
2356
|
+
}
|
2357
|
+
|
2358
|
+
def struct_fields; FIELDS; end
|
2359
|
+
|
2360
|
+
def validate
|
2361
|
+
end
|
2362
|
+
|
2363
|
+
::Thrift::Struct.generate_accessors self
|
2364
|
+
end
|
2365
|
+
|
2366
|
+
class StartChildWorkflowExecutionInitiatedEventAttributes
|
2367
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2368
|
+
DOMAIN = 10
|
2369
|
+
WORKFLOWID = 20
|
2370
|
+
WORKFLOWTYPE = 30
|
2371
|
+
TASKLIST = 40
|
2372
|
+
INPUT = 50
|
2373
|
+
EXECUTIONSTARTTOCLOSETIMEOUTSECONDS = 60
|
2374
|
+
TASKSTARTTOCLOSETIMEOUTSECONDS = 70
|
2375
|
+
PARENTCLOSEPOLICY = 81
|
2376
|
+
CONTROL = 90
|
2377
|
+
DECISIONTASKCOMPLETEDEVENTID = 100
|
2378
|
+
WORKFLOWIDREUSEPOLICY = 110
|
2379
|
+
RETRYPOLICY = 120
|
2380
|
+
CRONSCHEDULE = 130
|
2381
|
+
HEADER = 140
|
2382
|
+
MEMO = 150
|
2383
|
+
SEARCHATTRIBUTES = 160
|
2384
|
+
|
2385
|
+
FIELDS = {
|
2386
|
+
DOMAIN => {:type => ::Thrift::Types::STRING, :name => 'domain', :optional => true},
|
2387
|
+
WORKFLOWID => {:type => ::Thrift::Types::STRING, :name => 'workflowId', :optional => true},
|
2388
|
+
WORKFLOWTYPE => {:type => ::Thrift::Types::STRUCT, :name => 'workflowType', :class => ::CadenceThrift::WorkflowType, :optional => true},
|
2389
|
+
TASKLIST => {:type => ::Thrift::Types::STRUCT, :name => 'taskList', :class => ::CadenceThrift::TaskList, :optional => true},
|
2390
|
+
INPUT => {:type => ::Thrift::Types::STRING, :name => 'input', :binary => true, :optional => true},
|
2391
|
+
EXECUTIONSTARTTOCLOSETIMEOUTSECONDS => {:type => ::Thrift::Types::I32, :name => 'executionStartToCloseTimeoutSeconds', :optional => true},
|
2392
|
+
TASKSTARTTOCLOSETIMEOUTSECONDS => {:type => ::Thrift::Types::I32, :name => 'taskStartToCloseTimeoutSeconds', :optional => true},
|
2393
|
+
PARENTCLOSEPOLICY => {:type => ::Thrift::Types::I32, :name => 'parentClosePolicy', :optional => true, :enum_class => ::CadenceThrift::ParentClosePolicy},
|
2394
|
+
CONTROL => {:type => ::Thrift::Types::STRING, :name => 'control', :binary => true, :optional => true},
|
2395
|
+
DECISIONTASKCOMPLETEDEVENTID => {:type => ::Thrift::Types::I64, :name => 'decisionTaskCompletedEventId', :optional => true},
|
2396
|
+
WORKFLOWIDREUSEPOLICY => {:type => ::Thrift::Types::I32, :name => 'workflowIdReusePolicy', :optional => true, :enum_class => ::CadenceThrift::WorkflowIdReusePolicy},
|
2397
|
+
RETRYPOLICY => {:type => ::Thrift::Types::STRUCT, :name => 'retryPolicy', :class => ::CadenceThrift::RetryPolicy, :optional => true},
|
2398
|
+
CRONSCHEDULE => {:type => ::Thrift::Types::STRING, :name => 'cronSchedule', :optional => true},
|
2399
|
+
HEADER => {:type => ::Thrift::Types::STRUCT, :name => 'header', :class => ::CadenceThrift::Header, :optional => true},
|
2400
|
+
MEMO => {:type => ::Thrift::Types::STRUCT, :name => 'memo', :class => ::CadenceThrift::Memo, :optional => true},
|
2401
|
+
SEARCHATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'searchAttributes', :class => ::CadenceThrift::SearchAttributes, :optional => true}
|
2402
|
+
}
|
2403
|
+
|
2404
|
+
def struct_fields; FIELDS; end
|
2405
|
+
|
2406
|
+
def validate
|
2407
|
+
unless @parentClosePolicy.nil? || ::CadenceThrift::ParentClosePolicy::VALID_VALUES.include?(@parentClosePolicy)
|
2408
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field parentClosePolicy!')
|
2409
|
+
end
|
2410
|
+
unless @workflowIdReusePolicy.nil? || ::CadenceThrift::WorkflowIdReusePolicy::VALID_VALUES.include?(@workflowIdReusePolicy)
|
2411
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field workflowIdReusePolicy!')
|
2412
|
+
end
|
2413
|
+
end
|
2414
|
+
|
2415
|
+
::Thrift::Struct.generate_accessors self
|
2416
|
+
end
|
2417
|
+
|
2418
|
+
class StartChildWorkflowExecutionFailedEventAttributes
|
2419
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2420
|
+
DOMAIN = 10
|
2421
|
+
WORKFLOWID = 20
|
2422
|
+
WORKFLOWTYPE = 30
|
2423
|
+
CAUSE = 40
|
2424
|
+
CONTROL = 50
|
2425
|
+
INITIATEDEVENTID = 60
|
2426
|
+
DECISIONTASKCOMPLETEDEVENTID = 70
|
2427
|
+
|
2428
|
+
FIELDS = {
|
2429
|
+
DOMAIN => {:type => ::Thrift::Types::STRING, :name => 'domain', :optional => true},
|
2430
|
+
WORKFLOWID => {:type => ::Thrift::Types::STRING, :name => 'workflowId', :optional => true},
|
2431
|
+
WORKFLOWTYPE => {:type => ::Thrift::Types::STRUCT, :name => 'workflowType', :class => ::CadenceThrift::WorkflowType, :optional => true},
|
2432
|
+
CAUSE => {:type => ::Thrift::Types::I32, :name => 'cause', :optional => true, :enum_class => ::CadenceThrift::ChildWorkflowExecutionFailedCause},
|
2433
|
+
CONTROL => {:type => ::Thrift::Types::STRING, :name => 'control', :binary => true, :optional => true},
|
2434
|
+
INITIATEDEVENTID => {:type => ::Thrift::Types::I64, :name => 'initiatedEventId', :optional => true},
|
2435
|
+
DECISIONTASKCOMPLETEDEVENTID => {:type => ::Thrift::Types::I64, :name => 'decisionTaskCompletedEventId', :optional => true}
|
2436
|
+
}
|
2437
|
+
|
2438
|
+
def struct_fields; FIELDS; end
|
2439
|
+
|
2440
|
+
def validate
|
2441
|
+
unless @cause.nil? || ::CadenceThrift::ChildWorkflowExecutionFailedCause::VALID_VALUES.include?(@cause)
|
2442
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field cause!')
|
2443
|
+
end
|
2444
|
+
end
|
2445
|
+
|
2446
|
+
::Thrift::Struct.generate_accessors self
|
2447
|
+
end
|
2448
|
+
|
2449
|
+
class ChildWorkflowExecutionStartedEventAttributes
|
2450
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2451
|
+
DOMAIN = 10
|
2452
|
+
INITIATEDEVENTID = 20
|
2453
|
+
WORKFLOWEXECUTION = 30
|
2454
|
+
WORKFLOWTYPE = 40
|
2455
|
+
HEADER = 50
|
2456
|
+
|
2457
|
+
FIELDS = {
|
2458
|
+
DOMAIN => {:type => ::Thrift::Types::STRING, :name => 'domain', :optional => true},
|
2459
|
+
INITIATEDEVENTID => {:type => ::Thrift::Types::I64, :name => 'initiatedEventId', :optional => true},
|
2460
|
+
WORKFLOWEXECUTION => {:type => ::Thrift::Types::STRUCT, :name => 'workflowExecution', :class => ::CadenceThrift::WorkflowExecution, :optional => true},
|
2461
|
+
WORKFLOWTYPE => {:type => ::Thrift::Types::STRUCT, :name => 'workflowType', :class => ::CadenceThrift::WorkflowType, :optional => true},
|
2462
|
+
HEADER => {:type => ::Thrift::Types::STRUCT, :name => 'header', :class => ::CadenceThrift::Header, :optional => true}
|
2463
|
+
}
|
2464
|
+
|
2465
|
+
def struct_fields; FIELDS; end
|
2466
|
+
|
2467
|
+
def validate
|
2468
|
+
end
|
2469
|
+
|
2470
|
+
::Thrift::Struct.generate_accessors self
|
2471
|
+
end
|
2472
|
+
|
2473
|
+
class ChildWorkflowExecutionCompletedEventAttributes
|
2474
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2475
|
+
RESULT = 10
|
2476
|
+
DOMAIN = 20
|
2477
|
+
WORKFLOWEXECUTION = 30
|
2478
|
+
WORKFLOWTYPE = 40
|
2479
|
+
INITIATEDEVENTID = 50
|
2480
|
+
STARTEDEVENTID = 60
|
2481
|
+
|
2482
|
+
FIELDS = {
|
2483
|
+
RESULT => {:type => ::Thrift::Types::STRING, :name => 'result', :binary => true, :optional => true},
|
2484
|
+
DOMAIN => {:type => ::Thrift::Types::STRING, :name => 'domain', :optional => true},
|
2485
|
+
WORKFLOWEXECUTION => {:type => ::Thrift::Types::STRUCT, :name => 'workflowExecution', :class => ::CadenceThrift::WorkflowExecution, :optional => true},
|
2486
|
+
WORKFLOWTYPE => {:type => ::Thrift::Types::STRUCT, :name => 'workflowType', :class => ::CadenceThrift::WorkflowType, :optional => true},
|
2487
|
+
INITIATEDEVENTID => {:type => ::Thrift::Types::I64, :name => 'initiatedEventId', :optional => true},
|
2488
|
+
STARTEDEVENTID => {:type => ::Thrift::Types::I64, :name => 'startedEventId', :optional => true}
|
2489
|
+
}
|
2490
|
+
|
2491
|
+
def struct_fields; FIELDS; end
|
2492
|
+
|
2493
|
+
def validate
|
2494
|
+
end
|
2495
|
+
|
2496
|
+
::Thrift::Struct.generate_accessors self
|
2497
|
+
end
|
2498
|
+
|
2499
|
+
class ChildWorkflowExecutionFailedEventAttributes
|
2500
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2501
|
+
REASON = 10
|
2502
|
+
DETAILS = 20
|
2503
|
+
DOMAIN = 30
|
2504
|
+
WORKFLOWEXECUTION = 40
|
2505
|
+
WORKFLOWTYPE = 50
|
2506
|
+
INITIATEDEVENTID = 60
|
2507
|
+
STARTEDEVENTID = 70
|
2508
|
+
|
2509
|
+
FIELDS = {
|
2510
|
+
REASON => {:type => ::Thrift::Types::STRING, :name => 'reason', :optional => true},
|
2511
|
+
DETAILS => {:type => ::Thrift::Types::STRING, :name => 'details', :binary => true, :optional => true},
|
2512
|
+
DOMAIN => {:type => ::Thrift::Types::STRING, :name => 'domain', :optional => true},
|
2513
|
+
WORKFLOWEXECUTION => {:type => ::Thrift::Types::STRUCT, :name => 'workflowExecution', :class => ::CadenceThrift::WorkflowExecution, :optional => true},
|
2514
|
+
WORKFLOWTYPE => {:type => ::Thrift::Types::STRUCT, :name => 'workflowType', :class => ::CadenceThrift::WorkflowType, :optional => true},
|
2515
|
+
INITIATEDEVENTID => {:type => ::Thrift::Types::I64, :name => 'initiatedEventId', :optional => true},
|
2516
|
+
STARTEDEVENTID => {:type => ::Thrift::Types::I64, :name => 'startedEventId', :optional => true}
|
2517
|
+
}
|
2518
|
+
|
2519
|
+
def struct_fields; FIELDS; end
|
2520
|
+
|
2521
|
+
def validate
|
2522
|
+
end
|
2523
|
+
|
2524
|
+
::Thrift::Struct.generate_accessors self
|
2525
|
+
end
|
2526
|
+
|
2527
|
+
class ChildWorkflowExecutionCanceledEventAttributes
|
2528
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2529
|
+
DETAILS = 10
|
2530
|
+
DOMAIN = 20
|
2531
|
+
WORKFLOWEXECUTION = 30
|
2532
|
+
WORKFLOWTYPE = 40
|
2533
|
+
INITIATEDEVENTID = 50
|
2534
|
+
STARTEDEVENTID = 60
|
2535
|
+
|
2536
|
+
FIELDS = {
|
2537
|
+
DETAILS => {:type => ::Thrift::Types::STRING, :name => 'details', :binary => true, :optional => true},
|
2538
|
+
DOMAIN => {:type => ::Thrift::Types::STRING, :name => 'domain', :optional => true},
|
2539
|
+
WORKFLOWEXECUTION => {:type => ::Thrift::Types::STRUCT, :name => 'workflowExecution', :class => ::CadenceThrift::WorkflowExecution, :optional => true},
|
2540
|
+
WORKFLOWTYPE => {:type => ::Thrift::Types::STRUCT, :name => 'workflowType', :class => ::CadenceThrift::WorkflowType, :optional => true},
|
2541
|
+
INITIATEDEVENTID => {:type => ::Thrift::Types::I64, :name => 'initiatedEventId', :optional => true},
|
2542
|
+
STARTEDEVENTID => {:type => ::Thrift::Types::I64, :name => 'startedEventId', :optional => true}
|
2543
|
+
}
|
2544
|
+
|
2545
|
+
def struct_fields; FIELDS; end
|
2546
|
+
|
2547
|
+
def validate
|
2548
|
+
end
|
2549
|
+
|
2550
|
+
::Thrift::Struct.generate_accessors self
|
2551
|
+
end
|
2552
|
+
|
2553
|
+
class ChildWorkflowExecutionTimedOutEventAttributes
|
2554
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2555
|
+
TIMEOUTTYPE = 10
|
2556
|
+
DOMAIN = 20
|
2557
|
+
WORKFLOWEXECUTION = 30
|
2558
|
+
WORKFLOWTYPE = 40
|
2559
|
+
INITIATEDEVENTID = 50
|
2560
|
+
STARTEDEVENTID = 60
|
2561
|
+
|
2562
|
+
FIELDS = {
|
2563
|
+
TIMEOUTTYPE => {:type => ::Thrift::Types::I32, :name => 'timeoutType', :optional => true, :enum_class => ::CadenceThrift::TimeoutType},
|
2564
|
+
DOMAIN => {:type => ::Thrift::Types::STRING, :name => 'domain', :optional => true},
|
2565
|
+
WORKFLOWEXECUTION => {:type => ::Thrift::Types::STRUCT, :name => 'workflowExecution', :class => ::CadenceThrift::WorkflowExecution, :optional => true},
|
2566
|
+
WORKFLOWTYPE => {:type => ::Thrift::Types::STRUCT, :name => 'workflowType', :class => ::CadenceThrift::WorkflowType, :optional => true},
|
2567
|
+
INITIATEDEVENTID => {:type => ::Thrift::Types::I64, :name => 'initiatedEventId', :optional => true},
|
2568
|
+
STARTEDEVENTID => {:type => ::Thrift::Types::I64, :name => 'startedEventId', :optional => true}
|
2569
|
+
}
|
2570
|
+
|
2571
|
+
def struct_fields; FIELDS; end
|
2572
|
+
|
2573
|
+
def validate
|
2574
|
+
unless @timeoutType.nil? || ::CadenceThrift::TimeoutType::VALID_VALUES.include?(@timeoutType)
|
2575
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field timeoutType!')
|
2576
|
+
end
|
2577
|
+
end
|
2578
|
+
|
2579
|
+
::Thrift::Struct.generate_accessors self
|
2580
|
+
end
|
2581
|
+
|
2582
|
+
class ChildWorkflowExecutionTerminatedEventAttributes
|
2583
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2584
|
+
DOMAIN = 10
|
2585
|
+
WORKFLOWEXECUTION = 20
|
2586
|
+
WORKFLOWTYPE = 30
|
2587
|
+
INITIATEDEVENTID = 40
|
2588
|
+
STARTEDEVENTID = 50
|
2589
|
+
|
2590
|
+
FIELDS = {
|
2591
|
+
DOMAIN => {:type => ::Thrift::Types::STRING, :name => 'domain', :optional => true},
|
2592
|
+
WORKFLOWEXECUTION => {:type => ::Thrift::Types::STRUCT, :name => 'workflowExecution', :class => ::CadenceThrift::WorkflowExecution, :optional => true},
|
2593
|
+
WORKFLOWTYPE => {:type => ::Thrift::Types::STRUCT, :name => 'workflowType', :class => ::CadenceThrift::WorkflowType, :optional => true},
|
2594
|
+
INITIATEDEVENTID => {:type => ::Thrift::Types::I64, :name => 'initiatedEventId', :optional => true},
|
2595
|
+
STARTEDEVENTID => {:type => ::Thrift::Types::I64, :name => 'startedEventId', :optional => true}
|
2596
|
+
}
|
2597
|
+
|
2598
|
+
def struct_fields; FIELDS; end
|
2599
|
+
|
2600
|
+
def validate
|
2601
|
+
end
|
2602
|
+
|
2603
|
+
::Thrift::Struct.generate_accessors self
|
2604
|
+
end
|
2605
|
+
|
2606
|
+
class HistoryEvent
|
2607
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2608
|
+
EVENTID = 10
|
2609
|
+
TIMESTAMP = 20
|
2610
|
+
EVENTTYPE = 30
|
2611
|
+
VERSION = 35
|
2612
|
+
TASKID = 36
|
2613
|
+
WORKFLOWEXECUTIONSTARTEDEVENTATTRIBUTES = 40
|
2614
|
+
WORKFLOWEXECUTIONCOMPLETEDEVENTATTRIBUTES = 50
|
2615
|
+
WORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES = 60
|
2616
|
+
WORKFLOWEXECUTIONTIMEDOUTEVENTATTRIBUTES = 70
|
2617
|
+
DECISIONTASKSCHEDULEDEVENTATTRIBUTES = 80
|
2618
|
+
DECISIONTASKSTARTEDEVENTATTRIBUTES = 90
|
2619
|
+
DECISIONTASKCOMPLETEDEVENTATTRIBUTES = 100
|
2620
|
+
DECISIONTASKTIMEDOUTEVENTATTRIBUTES = 110
|
2621
|
+
DECISIONTASKFAILEDEVENTATTRIBUTES = 120
|
2622
|
+
ACTIVITYTASKSCHEDULEDEVENTATTRIBUTES = 130
|
2623
|
+
ACTIVITYTASKSTARTEDEVENTATTRIBUTES = 140
|
2624
|
+
ACTIVITYTASKCOMPLETEDEVENTATTRIBUTES = 150
|
2625
|
+
ACTIVITYTASKFAILEDEVENTATTRIBUTES = 160
|
2626
|
+
ACTIVITYTASKTIMEDOUTEVENTATTRIBUTES = 170
|
2627
|
+
TIMERSTARTEDEVENTATTRIBUTES = 180
|
2628
|
+
TIMERFIREDEVENTATTRIBUTES = 190
|
2629
|
+
ACTIVITYTASKCANCELREQUESTEDEVENTATTRIBUTES = 200
|
2630
|
+
REQUESTCANCELACTIVITYTASKFAILEDEVENTATTRIBUTES = 210
|
2631
|
+
ACTIVITYTASKCANCELEDEVENTATTRIBUTES = 220
|
2632
|
+
TIMERCANCELEDEVENTATTRIBUTES = 230
|
2633
|
+
CANCELTIMERFAILEDEVENTATTRIBUTES = 240
|
2634
|
+
MARKERRECORDEDEVENTATTRIBUTES = 250
|
2635
|
+
WORKFLOWEXECUTIONSIGNALEDEVENTATTRIBUTES = 260
|
2636
|
+
WORKFLOWEXECUTIONTERMINATEDEVENTATTRIBUTES = 270
|
2637
|
+
WORKFLOWEXECUTIONCANCELREQUESTEDEVENTATTRIBUTES = 280
|
2638
|
+
WORKFLOWEXECUTIONCANCELEDEVENTATTRIBUTES = 290
|
2639
|
+
REQUESTCANCELEXTERNALWORKFLOWEXECUTIONINITIATEDEVENTATTRIBUTES = 300
|
2640
|
+
REQUESTCANCELEXTERNALWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES = 310
|
2641
|
+
EXTERNALWORKFLOWEXECUTIONCANCELREQUESTEDEVENTATTRIBUTES = 320
|
2642
|
+
WORKFLOWEXECUTIONCONTINUEDASNEWEVENTATTRIBUTES = 330
|
2643
|
+
STARTCHILDWORKFLOWEXECUTIONINITIATEDEVENTATTRIBUTES = 340
|
2644
|
+
STARTCHILDWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES = 350
|
2645
|
+
CHILDWORKFLOWEXECUTIONSTARTEDEVENTATTRIBUTES = 360
|
2646
|
+
CHILDWORKFLOWEXECUTIONCOMPLETEDEVENTATTRIBUTES = 370
|
2647
|
+
CHILDWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES = 380
|
2648
|
+
CHILDWORKFLOWEXECUTIONCANCELEDEVENTATTRIBUTES = 390
|
2649
|
+
CHILDWORKFLOWEXECUTIONTIMEDOUTEVENTATTRIBUTES = 400
|
2650
|
+
CHILDWORKFLOWEXECUTIONTERMINATEDEVENTATTRIBUTES = 410
|
2651
|
+
SIGNALEXTERNALWORKFLOWEXECUTIONINITIATEDEVENTATTRIBUTES = 420
|
2652
|
+
SIGNALEXTERNALWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES = 430
|
2653
|
+
EXTERNALWORKFLOWEXECUTIONSIGNALEDEVENTATTRIBUTES = 440
|
2654
|
+
UPSERTWORKFLOWSEARCHATTRIBUTESEVENTATTRIBUTES = 450
|
2655
|
+
|
2656
|
+
FIELDS = {
|
2657
|
+
EVENTID => {:type => ::Thrift::Types::I64, :name => 'eventId', :optional => true},
|
2658
|
+
TIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'timestamp', :optional => true},
|
2659
|
+
EVENTTYPE => {:type => ::Thrift::Types::I32, :name => 'eventType', :optional => true, :enum_class => ::CadenceThrift::EventType},
|
2660
|
+
VERSION => {:type => ::Thrift::Types::I64, :name => 'version', :optional => true},
|
2661
|
+
TASKID => {:type => ::Thrift::Types::I64, :name => 'taskId', :optional => true},
|
2662
|
+
WORKFLOWEXECUTIONSTARTEDEVENTATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'workflowExecutionStartedEventAttributes', :class => ::CadenceThrift::WorkflowExecutionStartedEventAttributes, :optional => true},
|
2663
|
+
WORKFLOWEXECUTIONCOMPLETEDEVENTATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'workflowExecutionCompletedEventAttributes', :class => ::CadenceThrift::WorkflowExecutionCompletedEventAttributes, :optional => true},
|
2664
|
+
WORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'workflowExecutionFailedEventAttributes', :class => ::CadenceThrift::WorkflowExecutionFailedEventAttributes, :optional => true},
|
2665
|
+
WORKFLOWEXECUTIONTIMEDOUTEVENTATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'workflowExecutionTimedOutEventAttributes', :class => ::CadenceThrift::WorkflowExecutionTimedOutEventAttributes, :optional => true},
|
2666
|
+
DECISIONTASKSCHEDULEDEVENTATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'decisionTaskScheduledEventAttributes', :class => ::CadenceThrift::DecisionTaskScheduledEventAttributes, :optional => true},
|
2667
|
+
DECISIONTASKSTARTEDEVENTATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'decisionTaskStartedEventAttributes', :class => ::CadenceThrift::DecisionTaskStartedEventAttributes, :optional => true},
|
2668
|
+
DECISIONTASKCOMPLETEDEVENTATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'decisionTaskCompletedEventAttributes', :class => ::CadenceThrift::DecisionTaskCompletedEventAttributes, :optional => true},
|
2669
|
+
DECISIONTASKTIMEDOUTEVENTATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'decisionTaskTimedOutEventAttributes', :class => ::CadenceThrift::DecisionTaskTimedOutEventAttributes, :optional => true},
|
2670
|
+
DECISIONTASKFAILEDEVENTATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'decisionTaskFailedEventAttributes', :class => ::CadenceThrift::DecisionTaskFailedEventAttributes, :optional => true},
|
2671
|
+
ACTIVITYTASKSCHEDULEDEVENTATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'activityTaskScheduledEventAttributes', :class => ::CadenceThrift::ActivityTaskScheduledEventAttributes, :optional => true},
|
2672
|
+
ACTIVITYTASKSTARTEDEVENTATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'activityTaskStartedEventAttributes', :class => ::CadenceThrift::ActivityTaskStartedEventAttributes, :optional => true},
|
2673
|
+
ACTIVITYTASKCOMPLETEDEVENTATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'activityTaskCompletedEventAttributes', :class => ::CadenceThrift::ActivityTaskCompletedEventAttributes, :optional => true},
|
2674
|
+
ACTIVITYTASKFAILEDEVENTATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'activityTaskFailedEventAttributes', :class => ::CadenceThrift::ActivityTaskFailedEventAttributes, :optional => true},
|
2675
|
+
ACTIVITYTASKTIMEDOUTEVENTATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'activityTaskTimedOutEventAttributes', :class => ::CadenceThrift::ActivityTaskTimedOutEventAttributes, :optional => true},
|
2676
|
+
TIMERSTARTEDEVENTATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'timerStartedEventAttributes', :class => ::CadenceThrift::TimerStartedEventAttributes, :optional => true},
|
2677
|
+
TIMERFIREDEVENTATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'timerFiredEventAttributes', :class => ::CadenceThrift::TimerFiredEventAttributes, :optional => true},
|
2678
|
+
ACTIVITYTASKCANCELREQUESTEDEVENTATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'activityTaskCancelRequestedEventAttributes', :class => ::CadenceThrift::ActivityTaskCancelRequestedEventAttributes, :optional => true},
|
2679
|
+
REQUESTCANCELACTIVITYTASKFAILEDEVENTATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'requestCancelActivityTaskFailedEventAttributes', :class => ::CadenceThrift::RequestCancelActivityTaskFailedEventAttributes, :optional => true},
|
2680
|
+
ACTIVITYTASKCANCELEDEVENTATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'activityTaskCanceledEventAttributes', :class => ::CadenceThrift::ActivityTaskCanceledEventAttributes, :optional => true},
|
2681
|
+
TIMERCANCELEDEVENTATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'timerCanceledEventAttributes', :class => ::CadenceThrift::TimerCanceledEventAttributes, :optional => true},
|
2682
|
+
CANCELTIMERFAILEDEVENTATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'cancelTimerFailedEventAttributes', :class => ::CadenceThrift::CancelTimerFailedEventAttributes, :optional => true},
|
2683
|
+
MARKERRECORDEDEVENTATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'markerRecordedEventAttributes', :class => ::CadenceThrift::MarkerRecordedEventAttributes, :optional => true},
|
2684
|
+
WORKFLOWEXECUTIONSIGNALEDEVENTATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'workflowExecutionSignaledEventAttributes', :class => ::CadenceThrift::WorkflowExecutionSignaledEventAttributes, :optional => true},
|
2685
|
+
WORKFLOWEXECUTIONTERMINATEDEVENTATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'workflowExecutionTerminatedEventAttributes', :class => ::CadenceThrift::WorkflowExecutionTerminatedEventAttributes, :optional => true},
|
2686
|
+
WORKFLOWEXECUTIONCANCELREQUESTEDEVENTATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'workflowExecutionCancelRequestedEventAttributes', :class => ::CadenceThrift::WorkflowExecutionCancelRequestedEventAttributes, :optional => true},
|
2687
|
+
WORKFLOWEXECUTIONCANCELEDEVENTATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'workflowExecutionCanceledEventAttributes', :class => ::CadenceThrift::WorkflowExecutionCanceledEventAttributes, :optional => true},
|
2688
|
+
REQUESTCANCELEXTERNALWORKFLOWEXECUTIONINITIATEDEVENTATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'requestCancelExternalWorkflowExecutionInitiatedEventAttributes', :class => ::CadenceThrift::RequestCancelExternalWorkflowExecutionInitiatedEventAttributes, :optional => true},
|
2689
|
+
REQUESTCANCELEXTERNALWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'requestCancelExternalWorkflowExecutionFailedEventAttributes', :class => ::CadenceThrift::RequestCancelExternalWorkflowExecutionFailedEventAttributes, :optional => true},
|
2690
|
+
EXTERNALWORKFLOWEXECUTIONCANCELREQUESTEDEVENTATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'externalWorkflowExecutionCancelRequestedEventAttributes', :class => ::CadenceThrift::ExternalWorkflowExecutionCancelRequestedEventAttributes, :optional => true},
|
2691
|
+
WORKFLOWEXECUTIONCONTINUEDASNEWEVENTATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'workflowExecutionContinuedAsNewEventAttributes', :class => ::CadenceThrift::WorkflowExecutionContinuedAsNewEventAttributes, :optional => true},
|
2692
|
+
STARTCHILDWORKFLOWEXECUTIONINITIATEDEVENTATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'startChildWorkflowExecutionInitiatedEventAttributes', :class => ::CadenceThrift::StartChildWorkflowExecutionInitiatedEventAttributes, :optional => true},
|
2693
|
+
STARTCHILDWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'startChildWorkflowExecutionFailedEventAttributes', :class => ::CadenceThrift::StartChildWorkflowExecutionFailedEventAttributes, :optional => true},
|
2694
|
+
CHILDWORKFLOWEXECUTIONSTARTEDEVENTATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'childWorkflowExecutionStartedEventAttributes', :class => ::CadenceThrift::ChildWorkflowExecutionStartedEventAttributes, :optional => true},
|
2695
|
+
CHILDWORKFLOWEXECUTIONCOMPLETEDEVENTATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'childWorkflowExecutionCompletedEventAttributes', :class => ::CadenceThrift::ChildWorkflowExecutionCompletedEventAttributes, :optional => true},
|
2696
|
+
CHILDWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'childWorkflowExecutionFailedEventAttributes', :class => ::CadenceThrift::ChildWorkflowExecutionFailedEventAttributes, :optional => true},
|
2697
|
+
CHILDWORKFLOWEXECUTIONCANCELEDEVENTATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'childWorkflowExecutionCanceledEventAttributes', :class => ::CadenceThrift::ChildWorkflowExecutionCanceledEventAttributes, :optional => true},
|
2698
|
+
CHILDWORKFLOWEXECUTIONTIMEDOUTEVENTATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'childWorkflowExecutionTimedOutEventAttributes', :class => ::CadenceThrift::ChildWorkflowExecutionTimedOutEventAttributes, :optional => true},
|
2699
|
+
CHILDWORKFLOWEXECUTIONTERMINATEDEVENTATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'childWorkflowExecutionTerminatedEventAttributes', :class => ::CadenceThrift::ChildWorkflowExecutionTerminatedEventAttributes, :optional => true},
|
2700
|
+
SIGNALEXTERNALWORKFLOWEXECUTIONINITIATEDEVENTATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'signalExternalWorkflowExecutionInitiatedEventAttributes', :class => ::CadenceThrift::SignalExternalWorkflowExecutionInitiatedEventAttributes, :optional => true},
|
2701
|
+
SIGNALEXTERNALWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'signalExternalWorkflowExecutionFailedEventAttributes', :class => ::CadenceThrift::SignalExternalWorkflowExecutionFailedEventAttributes, :optional => true},
|
2702
|
+
EXTERNALWORKFLOWEXECUTIONSIGNALEDEVENTATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'externalWorkflowExecutionSignaledEventAttributes', :class => ::CadenceThrift::ExternalWorkflowExecutionSignaledEventAttributes, :optional => true},
|
2703
|
+
UPSERTWORKFLOWSEARCHATTRIBUTESEVENTATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'upsertWorkflowSearchAttributesEventAttributes', :class => ::CadenceThrift::UpsertWorkflowSearchAttributesEventAttributes, :optional => true}
|
2704
|
+
}
|
2705
|
+
|
2706
|
+
def struct_fields; FIELDS; end
|
2707
|
+
|
2708
|
+
def validate
|
2709
|
+
unless @eventType.nil? || ::CadenceThrift::EventType::VALID_VALUES.include?(@eventType)
|
2710
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field eventType!')
|
2711
|
+
end
|
2712
|
+
end
|
2713
|
+
|
2714
|
+
::Thrift::Struct.generate_accessors self
|
2715
|
+
end
|
2716
|
+
|
2717
|
+
class History
|
2718
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2719
|
+
EVENTS = 10
|
2720
|
+
|
2721
|
+
FIELDS = {
|
2722
|
+
EVENTS => {:type => ::Thrift::Types::LIST, :name => 'events', :element => {:type => ::Thrift::Types::STRUCT, :class => ::CadenceThrift::HistoryEvent}, :optional => true}
|
2723
|
+
}
|
2724
|
+
|
2725
|
+
def struct_fields; FIELDS; end
|
2726
|
+
|
2727
|
+
def validate
|
2728
|
+
end
|
2729
|
+
|
2730
|
+
::Thrift::Struct.generate_accessors self
|
2731
|
+
end
|
2732
|
+
|
2733
|
+
class WorkflowExecutionFilter
|
2734
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2735
|
+
WORKFLOWID = 10
|
2736
|
+
RUNID = 20
|
2737
|
+
|
2738
|
+
FIELDS = {
|
2739
|
+
WORKFLOWID => {:type => ::Thrift::Types::STRING, :name => 'workflowId', :optional => true},
|
2740
|
+
RUNID => {:type => ::Thrift::Types::STRING, :name => 'runId', :optional => true}
|
2741
|
+
}
|
2742
|
+
|
2743
|
+
def struct_fields; FIELDS; end
|
2744
|
+
|
2745
|
+
def validate
|
2746
|
+
end
|
2747
|
+
|
2748
|
+
::Thrift::Struct.generate_accessors self
|
2749
|
+
end
|
2750
|
+
|
2751
|
+
class WorkflowTypeFilter
|
2752
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2753
|
+
NAME = 10
|
2754
|
+
|
2755
|
+
FIELDS = {
|
2756
|
+
NAME => {:type => ::Thrift::Types::STRING, :name => 'name', :optional => true}
|
2757
|
+
}
|
2758
|
+
|
2759
|
+
def struct_fields; FIELDS; end
|
2760
|
+
|
2761
|
+
def validate
|
2762
|
+
end
|
2763
|
+
|
2764
|
+
::Thrift::Struct.generate_accessors self
|
2765
|
+
end
|
2766
|
+
|
2767
|
+
class StartTimeFilter
|
2768
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2769
|
+
EARLIESTTIME = 10
|
2770
|
+
LATESTTIME = 20
|
2771
|
+
|
2772
|
+
FIELDS = {
|
2773
|
+
EARLIESTTIME => {:type => ::Thrift::Types::I64, :name => 'earliestTime', :optional => true},
|
2774
|
+
LATESTTIME => {:type => ::Thrift::Types::I64, :name => 'latestTime', :optional => true}
|
2775
|
+
}
|
2776
|
+
|
2777
|
+
def struct_fields; FIELDS; end
|
2778
|
+
|
2779
|
+
def validate
|
2780
|
+
end
|
2781
|
+
|
2782
|
+
::Thrift::Struct.generate_accessors self
|
2783
|
+
end
|
2784
|
+
|
2785
|
+
class DomainInfo
|
2786
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2787
|
+
NAME = 10
|
2788
|
+
STATUS = 20
|
2789
|
+
DESCRIPTION = 30
|
2790
|
+
OWNEREMAIL = 40
|
2791
|
+
DATA = 50
|
2792
|
+
UUID = 60
|
2793
|
+
|
2794
|
+
FIELDS = {
|
2795
|
+
NAME => {:type => ::Thrift::Types::STRING, :name => 'name', :optional => true},
|
2796
|
+
STATUS => {:type => ::Thrift::Types::I32, :name => 'status', :optional => true, :enum_class => ::CadenceThrift::DomainStatus},
|
2797
|
+
DESCRIPTION => {:type => ::Thrift::Types::STRING, :name => 'description', :optional => true},
|
2798
|
+
OWNEREMAIL => {:type => ::Thrift::Types::STRING, :name => 'ownerEmail', :optional => true},
|
2799
|
+
DATA => {:type => ::Thrift::Types::MAP, :name => 'data', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}, :optional => true},
|
2800
|
+
UUID => {:type => ::Thrift::Types::STRING, :name => 'uuid', :optional => true}
|
2801
|
+
}
|
2802
|
+
|
2803
|
+
def struct_fields; FIELDS; end
|
2804
|
+
|
2805
|
+
def validate
|
2806
|
+
unless @status.nil? || ::CadenceThrift::DomainStatus::VALID_VALUES.include?(@status)
|
2807
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field status!')
|
2808
|
+
end
|
2809
|
+
end
|
2810
|
+
|
2811
|
+
::Thrift::Struct.generate_accessors self
|
2812
|
+
end
|
2813
|
+
|
2814
|
+
class DomainConfiguration
|
2815
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2816
|
+
WORKFLOWEXECUTIONRETENTIONPERIODINDAYS = 10
|
2817
|
+
EMITMETRIC = 20
|
2818
|
+
BADBINARIES = 70
|
2819
|
+
HISTORYARCHIVALSTATUS = 80
|
2820
|
+
HISTORYARCHIVALURI = 90
|
2821
|
+
VISIBILITYARCHIVALSTATUS = 100
|
2822
|
+
VISIBILITYARCHIVALURI = 110
|
2823
|
+
|
2824
|
+
FIELDS = {
|
2825
|
+
WORKFLOWEXECUTIONRETENTIONPERIODINDAYS => {:type => ::Thrift::Types::I32, :name => 'workflowExecutionRetentionPeriodInDays', :optional => true},
|
2826
|
+
EMITMETRIC => {:type => ::Thrift::Types::BOOL, :name => 'emitMetric', :optional => true},
|
2827
|
+
BADBINARIES => {:type => ::Thrift::Types::STRUCT, :name => 'badBinaries', :class => ::CadenceThrift::BadBinaries, :optional => true},
|
2828
|
+
HISTORYARCHIVALSTATUS => {:type => ::Thrift::Types::I32, :name => 'historyArchivalStatus', :optional => true, :enum_class => ::CadenceThrift::ArchivalStatus},
|
2829
|
+
HISTORYARCHIVALURI => {:type => ::Thrift::Types::STRING, :name => 'historyArchivalURI', :optional => true},
|
2830
|
+
VISIBILITYARCHIVALSTATUS => {:type => ::Thrift::Types::I32, :name => 'visibilityArchivalStatus', :optional => true, :enum_class => ::CadenceThrift::ArchivalStatus},
|
2831
|
+
VISIBILITYARCHIVALURI => {:type => ::Thrift::Types::STRING, :name => 'visibilityArchivalURI', :optional => true}
|
2832
|
+
}
|
2833
|
+
|
2834
|
+
def struct_fields; FIELDS; end
|
2835
|
+
|
2836
|
+
def validate
|
2837
|
+
unless @historyArchivalStatus.nil? || ::CadenceThrift::ArchivalStatus::VALID_VALUES.include?(@historyArchivalStatus)
|
2838
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field historyArchivalStatus!')
|
2839
|
+
end
|
2840
|
+
unless @visibilityArchivalStatus.nil? || ::CadenceThrift::ArchivalStatus::VALID_VALUES.include?(@visibilityArchivalStatus)
|
2841
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field visibilityArchivalStatus!')
|
2842
|
+
end
|
2843
|
+
end
|
2844
|
+
|
2845
|
+
::Thrift::Struct.generate_accessors self
|
2846
|
+
end
|
2847
|
+
|
2848
|
+
class BadBinaries
|
2849
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2850
|
+
BINARIES = 10
|
2851
|
+
|
2852
|
+
FIELDS = {
|
2853
|
+
BINARIES => {:type => ::Thrift::Types::MAP, :name => 'binaries', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRUCT, :class => ::CadenceThrift::BadBinaryInfo}, :optional => true}
|
2854
|
+
}
|
2855
|
+
|
2856
|
+
def struct_fields; FIELDS; end
|
2857
|
+
|
2858
|
+
def validate
|
2859
|
+
end
|
2860
|
+
|
2861
|
+
::Thrift::Struct.generate_accessors self
|
2862
|
+
end
|
2863
|
+
|
2864
|
+
class BadBinaryInfo
|
2865
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2866
|
+
REASON = 10
|
2867
|
+
OPERATOR = 20
|
2868
|
+
CREATEDTIMENANO = 30
|
2869
|
+
|
2870
|
+
FIELDS = {
|
2871
|
+
REASON => {:type => ::Thrift::Types::STRING, :name => 'reason', :optional => true},
|
2872
|
+
OPERATOR => {:type => ::Thrift::Types::STRING, :name => 'operator', :optional => true},
|
2873
|
+
CREATEDTIMENANO => {:type => ::Thrift::Types::I64, :name => 'createdTimeNano', :optional => true}
|
2874
|
+
}
|
2875
|
+
|
2876
|
+
def struct_fields; FIELDS; end
|
2877
|
+
|
2878
|
+
def validate
|
2879
|
+
end
|
2880
|
+
|
2881
|
+
::Thrift::Struct.generate_accessors self
|
2882
|
+
end
|
2883
|
+
|
2884
|
+
class UpdateDomainInfo
|
2885
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2886
|
+
DESCRIPTION = 10
|
2887
|
+
OWNEREMAIL = 20
|
2888
|
+
DATA = 30
|
2889
|
+
|
2890
|
+
FIELDS = {
|
2891
|
+
DESCRIPTION => {:type => ::Thrift::Types::STRING, :name => 'description', :optional => true},
|
2892
|
+
OWNEREMAIL => {:type => ::Thrift::Types::STRING, :name => 'ownerEmail', :optional => true},
|
2893
|
+
DATA => {:type => ::Thrift::Types::MAP, :name => 'data', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}, :optional => true}
|
2894
|
+
}
|
2895
|
+
|
2896
|
+
def struct_fields; FIELDS; end
|
2897
|
+
|
2898
|
+
def validate
|
2899
|
+
end
|
2900
|
+
|
2901
|
+
::Thrift::Struct.generate_accessors self
|
2902
|
+
end
|
2903
|
+
|
2904
|
+
class ClusterReplicationConfiguration
|
2905
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2906
|
+
CLUSTERNAME = 10
|
2907
|
+
|
2908
|
+
FIELDS = {
|
2909
|
+
CLUSTERNAME => {:type => ::Thrift::Types::STRING, :name => 'clusterName', :optional => true}
|
2910
|
+
}
|
2911
|
+
|
2912
|
+
def struct_fields; FIELDS; end
|
2913
|
+
|
2914
|
+
def validate
|
2915
|
+
end
|
2916
|
+
|
2917
|
+
::Thrift::Struct.generate_accessors self
|
2918
|
+
end
|
2919
|
+
|
2920
|
+
class DomainReplicationConfiguration
|
2921
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2922
|
+
ACTIVECLUSTERNAME = 10
|
2923
|
+
CLUSTERS = 20
|
2924
|
+
|
2925
|
+
FIELDS = {
|
2926
|
+
ACTIVECLUSTERNAME => {:type => ::Thrift::Types::STRING, :name => 'activeClusterName', :optional => true},
|
2927
|
+
CLUSTERS => {:type => ::Thrift::Types::LIST, :name => 'clusters', :element => {:type => ::Thrift::Types::STRUCT, :class => ::CadenceThrift::ClusterReplicationConfiguration}, :optional => true}
|
2928
|
+
}
|
2929
|
+
|
2930
|
+
def struct_fields; FIELDS; end
|
2931
|
+
|
2932
|
+
def validate
|
2933
|
+
end
|
2934
|
+
|
2935
|
+
::Thrift::Struct.generate_accessors self
|
2936
|
+
end
|
2937
|
+
|
2938
|
+
class RegisterDomainRequest
|
2939
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2940
|
+
NAME = 10
|
2941
|
+
DESCRIPTION = 20
|
2942
|
+
OWNEREMAIL = 30
|
2943
|
+
WORKFLOWEXECUTIONRETENTIONPERIODINDAYS = 40
|
2944
|
+
EMITMETRIC = 50
|
2945
|
+
CLUSTERS = 60
|
2946
|
+
ACTIVECLUSTERNAME = 70
|
2947
|
+
DATA = 80
|
2948
|
+
SECURITYTOKEN = 90
|
2949
|
+
ISGLOBALDOMAIN = 120
|
2950
|
+
HISTORYARCHIVALSTATUS = 130
|
2951
|
+
HISTORYARCHIVALURI = 140
|
2952
|
+
VISIBILITYARCHIVALSTATUS = 150
|
2953
|
+
VISIBILITYARCHIVALURI = 160
|
2954
|
+
|
2955
|
+
FIELDS = {
|
2956
|
+
NAME => {:type => ::Thrift::Types::STRING, :name => 'name', :optional => true},
|
2957
|
+
DESCRIPTION => {:type => ::Thrift::Types::STRING, :name => 'description', :optional => true},
|
2958
|
+
OWNEREMAIL => {:type => ::Thrift::Types::STRING, :name => 'ownerEmail', :optional => true},
|
2959
|
+
WORKFLOWEXECUTIONRETENTIONPERIODINDAYS => {:type => ::Thrift::Types::I32, :name => 'workflowExecutionRetentionPeriodInDays', :optional => true},
|
2960
|
+
EMITMETRIC => {:type => ::Thrift::Types::BOOL, :name => 'emitMetric', :optional => true},
|
2961
|
+
CLUSTERS => {:type => ::Thrift::Types::LIST, :name => 'clusters', :element => {:type => ::Thrift::Types::STRUCT, :class => ::CadenceThrift::ClusterReplicationConfiguration}, :optional => true},
|
2962
|
+
ACTIVECLUSTERNAME => {:type => ::Thrift::Types::STRING, :name => 'activeClusterName', :optional => true},
|
2963
|
+
DATA => {:type => ::Thrift::Types::MAP, :name => 'data', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}, :optional => true},
|
2964
|
+
SECURITYTOKEN => {:type => ::Thrift::Types::STRING, :name => 'securityToken', :optional => true},
|
2965
|
+
ISGLOBALDOMAIN => {:type => ::Thrift::Types::BOOL, :name => 'isGlobalDomain', :optional => true},
|
2966
|
+
HISTORYARCHIVALSTATUS => {:type => ::Thrift::Types::I32, :name => 'historyArchivalStatus', :optional => true, :enum_class => ::CadenceThrift::ArchivalStatus},
|
2967
|
+
HISTORYARCHIVALURI => {:type => ::Thrift::Types::STRING, :name => 'historyArchivalURI', :optional => true},
|
2968
|
+
VISIBILITYARCHIVALSTATUS => {:type => ::Thrift::Types::I32, :name => 'visibilityArchivalStatus', :optional => true, :enum_class => ::CadenceThrift::ArchivalStatus},
|
2969
|
+
VISIBILITYARCHIVALURI => {:type => ::Thrift::Types::STRING, :name => 'visibilityArchivalURI', :optional => true}
|
2970
|
+
}
|
2971
|
+
|
2972
|
+
def struct_fields; FIELDS; end
|
2973
|
+
|
2974
|
+
def validate
|
2975
|
+
unless @historyArchivalStatus.nil? || ::CadenceThrift::ArchivalStatus::VALID_VALUES.include?(@historyArchivalStatus)
|
2976
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field historyArchivalStatus!')
|
2977
|
+
end
|
2978
|
+
unless @visibilityArchivalStatus.nil? || ::CadenceThrift::ArchivalStatus::VALID_VALUES.include?(@visibilityArchivalStatus)
|
2979
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field visibilityArchivalStatus!')
|
2980
|
+
end
|
2981
|
+
end
|
2982
|
+
|
2983
|
+
::Thrift::Struct.generate_accessors self
|
2984
|
+
end
|
2985
|
+
|
2986
|
+
class ListDomainsRequest
|
2987
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2988
|
+
PAGESIZE = 10
|
2989
|
+
NEXTPAGETOKEN = 20
|
2990
|
+
|
2991
|
+
FIELDS = {
|
2992
|
+
PAGESIZE => {:type => ::Thrift::Types::I32, :name => 'pageSize', :optional => true},
|
2993
|
+
NEXTPAGETOKEN => {:type => ::Thrift::Types::STRING, :name => 'nextPageToken', :binary => true, :optional => true}
|
2994
|
+
}
|
2995
|
+
|
2996
|
+
def struct_fields; FIELDS; end
|
2997
|
+
|
2998
|
+
def validate
|
2999
|
+
end
|
3000
|
+
|
3001
|
+
::Thrift::Struct.generate_accessors self
|
3002
|
+
end
|
3003
|
+
|
3004
|
+
class ListDomainsResponse
|
3005
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3006
|
+
DOMAINS = 10
|
3007
|
+
NEXTPAGETOKEN = 20
|
3008
|
+
|
3009
|
+
FIELDS = {
|
3010
|
+
DOMAINS => {:type => ::Thrift::Types::LIST, :name => 'domains', :element => {:type => ::Thrift::Types::STRUCT, :class => ::CadenceThrift::DescribeDomainResponse}, :optional => true},
|
3011
|
+
NEXTPAGETOKEN => {:type => ::Thrift::Types::STRING, :name => 'nextPageToken', :binary => true, :optional => true}
|
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 DescribeDomainRequest
|
3023
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3024
|
+
NAME = 10
|
3025
|
+
UUID = 20
|
3026
|
+
|
3027
|
+
FIELDS = {
|
3028
|
+
NAME => {:type => ::Thrift::Types::STRING, :name => 'name', :optional => true},
|
3029
|
+
UUID => {:type => ::Thrift::Types::STRING, :name => 'uuid', :optional => true}
|
3030
|
+
}
|
3031
|
+
|
3032
|
+
def struct_fields; FIELDS; end
|
3033
|
+
|
3034
|
+
def validate
|
3035
|
+
end
|
3036
|
+
|
3037
|
+
::Thrift::Struct.generate_accessors self
|
3038
|
+
end
|
3039
|
+
|
3040
|
+
class DescribeDomainResponse
|
3041
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3042
|
+
DOMAININFO = 10
|
3043
|
+
CONFIGURATION = 20
|
3044
|
+
REPLICATIONCONFIGURATION = 30
|
3045
|
+
FAILOVERVERSION = 40
|
3046
|
+
ISGLOBALDOMAIN = 50
|
3047
|
+
|
3048
|
+
FIELDS = {
|
3049
|
+
DOMAININFO => {:type => ::Thrift::Types::STRUCT, :name => 'domainInfo', :class => ::CadenceThrift::DomainInfo, :optional => true},
|
3050
|
+
CONFIGURATION => {:type => ::Thrift::Types::STRUCT, :name => 'configuration', :class => ::CadenceThrift::DomainConfiguration, :optional => true},
|
3051
|
+
REPLICATIONCONFIGURATION => {:type => ::Thrift::Types::STRUCT, :name => 'replicationConfiguration', :class => ::CadenceThrift::DomainReplicationConfiguration, :optional => true},
|
3052
|
+
FAILOVERVERSION => {:type => ::Thrift::Types::I64, :name => 'failoverVersion', :optional => true},
|
3053
|
+
ISGLOBALDOMAIN => {:type => ::Thrift::Types::BOOL, :name => 'isGlobalDomain', :optional => true}
|
3054
|
+
}
|
3055
|
+
|
3056
|
+
def struct_fields; FIELDS; end
|
3057
|
+
|
3058
|
+
def validate
|
3059
|
+
end
|
3060
|
+
|
3061
|
+
::Thrift::Struct.generate_accessors self
|
3062
|
+
end
|
3063
|
+
|
3064
|
+
class UpdateDomainRequest
|
3065
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3066
|
+
NAME = 10
|
3067
|
+
UPDATEDINFO = 20
|
3068
|
+
CONFIGURATION = 30
|
3069
|
+
REPLICATIONCONFIGURATION = 40
|
3070
|
+
SECURITYTOKEN = 50
|
3071
|
+
DELETEBADBINARY = 60
|
3072
|
+
|
3073
|
+
FIELDS = {
|
3074
|
+
NAME => {:type => ::Thrift::Types::STRING, :name => 'name', :optional => true},
|
3075
|
+
UPDATEDINFO => {:type => ::Thrift::Types::STRUCT, :name => 'updatedInfo', :class => ::CadenceThrift::UpdateDomainInfo, :optional => true},
|
3076
|
+
CONFIGURATION => {:type => ::Thrift::Types::STRUCT, :name => 'configuration', :class => ::CadenceThrift::DomainConfiguration, :optional => true},
|
3077
|
+
REPLICATIONCONFIGURATION => {:type => ::Thrift::Types::STRUCT, :name => 'replicationConfiguration', :class => ::CadenceThrift::DomainReplicationConfiguration, :optional => true},
|
3078
|
+
SECURITYTOKEN => {:type => ::Thrift::Types::STRING, :name => 'securityToken', :optional => true},
|
3079
|
+
DELETEBADBINARY => {:type => ::Thrift::Types::STRING, :name => 'deleteBadBinary', :optional => true}
|
3080
|
+
}
|
3081
|
+
|
3082
|
+
def struct_fields; FIELDS; end
|
3083
|
+
|
3084
|
+
def validate
|
3085
|
+
end
|
3086
|
+
|
3087
|
+
::Thrift::Struct.generate_accessors self
|
3088
|
+
end
|
3089
|
+
|
3090
|
+
class UpdateDomainResponse
|
3091
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3092
|
+
DOMAININFO = 10
|
3093
|
+
CONFIGURATION = 20
|
3094
|
+
REPLICATIONCONFIGURATION = 30
|
3095
|
+
FAILOVERVERSION = 40
|
3096
|
+
ISGLOBALDOMAIN = 50
|
3097
|
+
|
3098
|
+
FIELDS = {
|
3099
|
+
DOMAININFO => {:type => ::Thrift::Types::STRUCT, :name => 'domainInfo', :class => ::CadenceThrift::DomainInfo, :optional => true},
|
3100
|
+
CONFIGURATION => {:type => ::Thrift::Types::STRUCT, :name => 'configuration', :class => ::CadenceThrift::DomainConfiguration, :optional => true},
|
3101
|
+
REPLICATIONCONFIGURATION => {:type => ::Thrift::Types::STRUCT, :name => 'replicationConfiguration', :class => ::CadenceThrift::DomainReplicationConfiguration, :optional => true},
|
3102
|
+
FAILOVERVERSION => {:type => ::Thrift::Types::I64, :name => 'failoverVersion', :optional => true},
|
3103
|
+
ISGLOBALDOMAIN => {:type => ::Thrift::Types::BOOL, :name => 'isGlobalDomain', :optional => true}
|
3104
|
+
}
|
3105
|
+
|
3106
|
+
def struct_fields; FIELDS; end
|
3107
|
+
|
3108
|
+
def validate
|
3109
|
+
end
|
3110
|
+
|
3111
|
+
::Thrift::Struct.generate_accessors self
|
3112
|
+
end
|
3113
|
+
|
3114
|
+
class DeprecateDomainRequest
|
3115
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3116
|
+
NAME = 10
|
3117
|
+
SECURITYTOKEN = 20
|
3118
|
+
|
3119
|
+
FIELDS = {
|
3120
|
+
NAME => {:type => ::Thrift::Types::STRING, :name => 'name', :optional => true},
|
3121
|
+
SECURITYTOKEN => {:type => ::Thrift::Types::STRING, :name => 'securityToken', :optional => true}
|
3122
|
+
}
|
3123
|
+
|
3124
|
+
def struct_fields; FIELDS; end
|
3125
|
+
|
3126
|
+
def validate
|
3127
|
+
end
|
3128
|
+
|
3129
|
+
::Thrift::Struct.generate_accessors self
|
3130
|
+
end
|
3131
|
+
|
3132
|
+
class StartWorkflowExecutionRequest
|
3133
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3134
|
+
DOMAIN = 10
|
3135
|
+
WORKFLOWID = 20
|
3136
|
+
WORKFLOWTYPE = 30
|
3137
|
+
TASKLIST = 40
|
3138
|
+
INPUT = 50
|
3139
|
+
EXECUTIONSTARTTOCLOSETIMEOUTSECONDS = 60
|
3140
|
+
TASKSTARTTOCLOSETIMEOUTSECONDS = 70
|
3141
|
+
IDENTITY = 80
|
3142
|
+
REQUESTID = 90
|
3143
|
+
WORKFLOWIDREUSEPOLICY = 100
|
3144
|
+
RETRYPOLICY = 120
|
3145
|
+
CRONSCHEDULE = 130
|
3146
|
+
MEMO = 140
|
3147
|
+
SEARCHATTRIBUTES = 141
|
3148
|
+
HEADER = 150
|
3149
|
+
|
3150
|
+
FIELDS = {
|
3151
|
+
DOMAIN => {:type => ::Thrift::Types::STRING, :name => 'domain', :optional => true},
|
3152
|
+
WORKFLOWID => {:type => ::Thrift::Types::STRING, :name => 'workflowId', :optional => true},
|
3153
|
+
WORKFLOWTYPE => {:type => ::Thrift::Types::STRUCT, :name => 'workflowType', :class => ::CadenceThrift::WorkflowType, :optional => true},
|
3154
|
+
TASKLIST => {:type => ::Thrift::Types::STRUCT, :name => 'taskList', :class => ::CadenceThrift::TaskList, :optional => true},
|
3155
|
+
INPUT => {:type => ::Thrift::Types::STRING, :name => 'input', :binary => true, :optional => true},
|
3156
|
+
EXECUTIONSTARTTOCLOSETIMEOUTSECONDS => {:type => ::Thrift::Types::I32, :name => 'executionStartToCloseTimeoutSeconds', :optional => true},
|
3157
|
+
TASKSTARTTOCLOSETIMEOUTSECONDS => {:type => ::Thrift::Types::I32, :name => 'taskStartToCloseTimeoutSeconds', :optional => true},
|
3158
|
+
IDENTITY => {:type => ::Thrift::Types::STRING, :name => 'identity', :optional => true},
|
3159
|
+
REQUESTID => {:type => ::Thrift::Types::STRING, :name => 'requestId', :optional => true},
|
3160
|
+
WORKFLOWIDREUSEPOLICY => {:type => ::Thrift::Types::I32, :name => 'workflowIdReusePolicy', :optional => true, :enum_class => ::CadenceThrift::WorkflowIdReusePolicy},
|
3161
|
+
RETRYPOLICY => {:type => ::Thrift::Types::STRUCT, :name => 'retryPolicy', :class => ::CadenceThrift::RetryPolicy, :optional => true},
|
3162
|
+
CRONSCHEDULE => {:type => ::Thrift::Types::STRING, :name => 'cronSchedule', :optional => true},
|
3163
|
+
MEMO => {:type => ::Thrift::Types::STRUCT, :name => 'memo', :class => ::CadenceThrift::Memo, :optional => true},
|
3164
|
+
SEARCHATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'searchAttributes', :class => ::CadenceThrift::SearchAttributes, :optional => true},
|
3165
|
+
HEADER => {:type => ::Thrift::Types::STRUCT, :name => 'header', :class => ::CadenceThrift::Header, :optional => true}
|
3166
|
+
}
|
3167
|
+
|
3168
|
+
def struct_fields; FIELDS; end
|
3169
|
+
|
3170
|
+
def validate
|
3171
|
+
unless @workflowIdReusePolicy.nil? || ::CadenceThrift::WorkflowIdReusePolicy::VALID_VALUES.include?(@workflowIdReusePolicy)
|
3172
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field workflowIdReusePolicy!')
|
3173
|
+
end
|
3174
|
+
end
|
3175
|
+
|
3176
|
+
::Thrift::Struct.generate_accessors self
|
3177
|
+
end
|
3178
|
+
|
3179
|
+
class StartWorkflowExecutionResponse
|
3180
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3181
|
+
RUNID = 10
|
3182
|
+
|
3183
|
+
FIELDS = {
|
3184
|
+
RUNID => {:type => ::Thrift::Types::STRING, :name => 'runId', :optional => true}
|
3185
|
+
}
|
3186
|
+
|
3187
|
+
def struct_fields; FIELDS; end
|
3188
|
+
|
3189
|
+
def validate
|
3190
|
+
end
|
3191
|
+
|
3192
|
+
::Thrift::Struct.generate_accessors self
|
3193
|
+
end
|
3194
|
+
|
3195
|
+
class PollForDecisionTaskRequest
|
3196
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3197
|
+
DOMAIN = 10
|
3198
|
+
TASKLIST = 20
|
3199
|
+
IDENTITY = 30
|
3200
|
+
BINARYCHECKSUM = 40
|
3201
|
+
|
3202
|
+
FIELDS = {
|
3203
|
+
DOMAIN => {:type => ::Thrift::Types::STRING, :name => 'domain', :optional => true},
|
3204
|
+
TASKLIST => {:type => ::Thrift::Types::STRUCT, :name => 'taskList', :class => ::CadenceThrift::TaskList, :optional => true},
|
3205
|
+
IDENTITY => {:type => ::Thrift::Types::STRING, :name => 'identity', :optional => true},
|
3206
|
+
BINARYCHECKSUM => {:type => ::Thrift::Types::STRING, :name => 'binaryChecksum', :optional => true}
|
3207
|
+
}
|
3208
|
+
|
3209
|
+
def struct_fields; FIELDS; end
|
3210
|
+
|
3211
|
+
def validate
|
3212
|
+
end
|
3213
|
+
|
3214
|
+
::Thrift::Struct.generate_accessors self
|
3215
|
+
end
|
3216
|
+
|
3217
|
+
class PollForDecisionTaskResponse
|
3218
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3219
|
+
TASKTOKEN = 10
|
3220
|
+
WORKFLOWEXECUTION = 20
|
3221
|
+
WORKFLOWTYPE = 30
|
3222
|
+
PREVIOUSSTARTEDEVENTID = 40
|
3223
|
+
STARTEDEVENTID = 50
|
3224
|
+
ATTEMPT = 51
|
3225
|
+
BACKLOGCOUNTHINT = 54
|
3226
|
+
HISTORY = 60
|
3227
|
+
NEXTPAGETOKEN = 70
|
3228
|
+
QUERY = 80
|
3229
|
+
WORKFLOWEXECUTIONTASKLIST = 90
|
3230
|
+
SCHEDULEDTIMESTAMP = 100
|
3231
|
+
STARTEDTIMESTAMP = 110
|
3232
|
+
QUERIES = 120
|
3233
|
+
|
3234
|
+
FIELDS = {
|
3235
|
+
TASKTOKEN => {:type => ::Thrift::Types::STRING, :name => 'taskToken', :binary => true, :optional => true},
|
3236
|
+
WORKFLOWEXECUTION => {:type => ::Thrift::Types::STRUCT, :name => 'workflowExecution', :class => ::CadenceThrift::WorkflowExecution, :optional => true},
|
3237
|
+
WORKFLOWTYPE => {:type => ::Thrift::Types::STRUCT, :name => 'workflowType', :class => ::CadenceThrift::WorkflowType, :optional => true},
|
3238
|
+
PREVIOUSSTARTEDEVENTID => {:type => ::Thrift::Types::I64, :name => 'previousStartedEventId', :optional => true},
|
3239
|
+
STARTEDEVENTID => {:type => ::Thrift::Types::I64, :name => 'startedEventId', :optional => true},
|
3240
|
+
ATTEMPT => {:type => ::Thrift::Types::I64, :name => 'attempt', :optional => true},
|
3241
|
+
BACKLOGCOUNTHINT => {:type => ::Thrift::Types::I64, :name => 'backlogCountHint', :optional => true},
|
3242
|
+
HISTORY => {:type => ::Thrift::Types::STRUCT, :name => 'history', :class => ::CadenceThrift::History, :optional => true},
|
3243
|
+
NEXTPAGETOKEN => {:type => ::Thrift::Types::STRING, :name => 'nextPageToken', :binary => true, :optional => true},
|
3244
|
+
QUERY => {:type => ::Thrift::Types::STRUCT, :name => 'query', :class => ::CadenceThrift::WorkflowQuery, :optional => true},
|
3245
|
+
WORKFLOWEXECUTIONTASKLIST => {:type => ::Thrift::Types::STRUCT, :name => 'WorkflowExecutionTaskList', :class => ::CadenceThrift::TaskList, :optional => true},
|
3246
|
+
SCHEDULEDTIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'scheduledTimestamp', :optional => true},
|
3247
|
+
STARTEDTIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'startedTimestamp', :optional => true},
|
3248
|
+
QUERIES => {:type => ::Thrift::Types::LIST, :name => 'queries', :element => {:type => ::Thrift::Types::STRUCT, :class => ::CadenceThrift::WorkflowQuery}, :optional => true}
|
3249
|
+
}
|
3250
|
+
|
3251
|
+
def struct_fields; FIELDS; end
|
3252
|
+
|
3253
|
+
def validate
|
3254
|
+
end
|
3255
|
+
|
3256
|
+
::Thrift::Struct.generate_accessors self
|
3257
|
+
end
|
3258
|
+
|
3259
|
+
class StickyExecutionAttributes
|
3260
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3261
|
+
WORKERTASKLIST = 10
|
3262
|
+
SCHEDULETOSTARTTIMEOUTSECONDS = 20
|
3263
|
+
|
3264
|
+
FIELDS = {
|
3265
|
+
WORKERTASKLIST => {:type => ::Thrift::Types::STRUCT, :name => 'workerTaskList', :class => ::CadenceThrift::TaskList, :optional => true},
|
3266
|
+
SCHEDULETOSTARTTIMEOUTSECONDS => {:type => ::Thrift::Types::I32, :name => 'scheduleToStartTimeoutSeconds', :optional => true}
|
3267
|
+
}
|
3268
|
+
|
3269
|
+
def struct_fields; FIELDS; end
|
3270
|
+
|
3271
|
+
def validate
|
3272
|
+
end
|
3273
|
+
|
3274
|
+
::Thrift::Struct.generate_accessors self
|
3275
|
+
end
|
3276
|
+
|
3277
|
+
class RespondDecisionTaskCompletedRequest
|
3278
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3279
|
+
TASKTOKEN = 10
|
3280
|
+
DECISIONS = 20
|
3281
|
+
EXECUTIONCONTEXT = 30
|
3282
|
+
IDENTITY = 40
|
3283
|
+
STICKYATTRIBUTES = 50
|
3284
|
+
RETURNNEWDECISIONTASK = 60
|
3285
|
+
FORCECREATENEWDECISIONTASK = 70
|
3286
|
+
BINARYCHECKSUM = 80
|
3287
|
+
QUERYRESULTS = 90
|
3288
|
+
|
3289
|
+
FIELDS = {
|
3290
|
+
TASKTOKEN => {:type => ::Thrift::Types::STRING, :name => 'taskToken', :binary => true, :optional => true},
|
3291
|
+
DECISIONS => {:type => ::Thrift::Types::LIST, :name => 'decisions', :element => {:type => ::Thrift::Types::STRUCT, :class => ::CadenceThrift::Decision}, :optional => true},
|
3292
|
+
EXECUTIONCONTEXT => {:type => ::Thrift::Types::STRING, :name => 'executionContext', :binary => true, :optional => true},
|
3293
|
+
IDENTITY => {:type => ::Thrift::Types::STRING, :name => 'identity', :optional => true},
|
3294
|
+
STICKYATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'stickyAttributes', :class => ::CadenceThrift::StickyExecutionAttributes, :optional => true},
|
3295
|
+
RETURNNEWDECISIONTASK => {:type => ::Thrift::Types::BOOL, :name => 'returnNewDecisionTask', :optional => true},
|
3296
|
+
FORCECREATENEWDECISIONTASK => {:type => ::Thrift::Types::BOOL, :name => 'forceCreateNewDecisionTask', :optional => true},
|
3297
|
+
BINARYCHECKSUM => {:type => ::Thrift::Types::STRING, :name => 'binaryChecksum', :optional => true},
|
3298
|
+
QUERYRESULTS => {:type => ::Thrift::Types::LIST, :name => 'queryResults', :element => {:type => ::Thrift::Types::STRUCT, :class => ::CadenceThrift::WorkflowQueryResult}, :optional => true}
|
3299
|
+
}
|
3300
|
+
|
3301
|
+
def struct_fields; FIELDS; end
|
3302
|
+
|
3303
|
+
def validate
|
3304
|
+
end
|
3305
|
+
|
3306
|
+
::Thrift::Struct.generate_accessors self
|
3307
|
+
end
|
3308
|
+
|
3309
|
+
class RespondDecisionTaskCompletedResponse
|
3310
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3311
|
+
DECISIONTASK = 10
|
3312
|
+
|
3313
|
+
FIELDS = {
|
3314
|
+
DECISIONTASK => {:type => ::Thrift::Types::STRUCT, :name => 'decisionTask', :class => ::CadenceThrift::PollForDecisionTaskResponse, :optional => true}
|
3315
|
+
}
|
3316
|
+
|
3317
|
+
def struct_fields; FIELDS; end
|
3318
|
+
|
3319
|
+
def validate
|
3320
|
+
end
|
3321
|
+
|
3322
|
+
::Thrift::Struct.generate_accessors self
|
3323
|
+
end
|
3324
|
+
|
3325
|
+
class RespondDecisionTaskFailedRequest
|
3326
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3327
|
+
TASKTOKEN = 10
|
3328
|
+
CAUSE = 20
|
3329
|
+
DETAILS = 30
|
3330
|
+
IDENTITY = 40
|
3331
|
+
|
3332
|
+
FIELDS = {
|
3333
|
+
TASKTOKEN => {:type => ::Thrift::Types::STRING, :name => 'taskToken', :binary => true, :optional => true},
|
3334
|
+
CAUSE => {:type => ::Thrift::Types::I32, :name => 'cause', :optional => true, :enum_class => ::CadenceThrift::DecisionTaskFailedCause},
|
3335
|
+
DETAILS => {:type => ::Thrift::Types::STRING, :name => 'details', :binary => true, :optional => true},
|
3336
|
+
IDENTITY => {:type => ::Thrift::Types::STRING, :name => 'identity', :optional => true}
|
3337
|
+
}
|
3338
|
+
|
3339
|
+
def struct_fields; FIELDS; end
|
3340
|
+
|
3341
|
+
def validate
|
3342
|
+
unless @cause.nil? || ::CadenceThrift::DecisionTaskFailedCause::VALID_VALUES.include?(@cause)
|
3343
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field cause!')
|
3344
|
+
end
|
3345
|
+
end
|
3346
|
+
|
3347
|
+
::Thrift::Struct.generate_accessors self
|
3348
|
+
end
|
3349
|
+
|
3350
|
+
class PollForActivityTaskRequest
|
3351
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3352
|
+
DOMAIN = 10
|
3353
|
+
TASKLIST = 20
|
3354
|
+
IDENTITY = 30
|
3355
|
+
TASKLISTMETADATA = 40
|
3356
|
+
|
3357
|
+
FIELDS = {
|
3358
|
+
DOMAIN => {:type => ::Thrift::Types::STRING, :name => 'domain', :optional => true},
|
3359
|
+
TASKLIST => {:type => ::Thrift::Types::STRUCT, :name => 'taskList', :class => ::CadenceThrift::TaskList, :optional => true},
|
3360
|
+
IDENTITY => {:type => ::Thrift::Types::STRING, :name => 'identity', :optional => true},
|
3361
|
+
TASKLISTMETADATA => {:type => ::Thrift::Types::STRUCT, :name => 'taskListMetadata', :class => ::CadenceThrift::TaskListMetadata, :optional => true}
|
3362
|
+
}
|
3363
|
+
|
3364
|
+
def struct_fields; FIELDS; end
|
3365
|
+
|
3366
|
+
def validate
|
3367
|
+
end
|
3368
|
+
|
3369
|
+
::Thrift::Struct.generate_accessors self
|
3370
|
+
end
|
3371
|
+
|
3372
|
+
class PollForActivityTaskResponse
|
3373
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3374
|
+
TASKTOKEN = 10
|
3375
|
+
WORKFLOWEXECUTION = 20
|
3376
|
+
ACTIVITYID = 30
|
3377
|
+
ACTIVITYTYPE = 40
|
3378
|
+
INPUT = 50
|
3379
|
+
SCHEDULEDTIMESTAMP = 70
|
3380
|
+
SCHEDULETOCLOSETIMEOUTSECONDS = 80
|
3381
|
+
STARTEDTIMESTAMP = 90
|
3382
|
+
STARTTOCLOSETIMEOUTSECONDS = 100
|
3383
|
+
HEARTBEATTIMEOUTSECONDS = 110
|
3384
|
+
ATTEMPT = 120
|
3385
|
+
SCHEDULEDTIMESTAMPOFTHISATTEMPT = 130
|
3386
|
+
HEARTBEATDETAILS = 140
|
3387
|
+
WORKFLOWTYPE = 150
|
3388
|
+
WORKFLOWDOMAIN = 160
|
3389
|
+
HEADER = 170
|
3390
|
+
|
3391
|
+
FIELDS = {
|
3392
|
+
TASKTOKEN => {:type => ::Thrift::Types::STRING, :name => 'taskToken', :binary => true, :optional => true},
|
3393
|
+
WORKFLOWEXECUTION => {:type => ::Thrift::Types::STRUCT, :name => 'workflowExecution', :class => ::CadenceThrift::WorkflowExecution, :optional => true},
|
3394
|
+
ACTIVITYID => {:type => ::Thrift::Types::STRING, :name => 'activityId', :optional => true},
|
3395
|
+
ACTIVITYTYPE => {:type => ::Thrift::Types::STRUCT, :name => 'activityType', :class => ::CadenceThrift::ActivityType, :optional => true},
|
3396
|
+
INPUT => {:type => ::Thrift::Types::STRING, :name => 'input', :binary => true, :optional => true},
|
3397
|
+
SCHEDULEDTIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'scheduledTimestamp', :optional => true},
|
3398
|
+
SCHEDULETOCLOSETIMEOUTSECONDS => {:type => ::Thrift::Types::I32, :name => 'scheduleToCloseTimeoutSeconds', :optional => true},
|
3399
|
+
STARTEDTIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'startedTimestamp', :optional => true},
|
3400
|
+
STARTTOCLOSETIMEOUTSECONDS => {:type => ::Thrift::Types::I32, :name => 'startToCloseTimeoutSeconds', :optional => true},
|
3401
|
+
HEARTBEATTIMEOUTSECONDS => {:type => ::Thrift::Types::I32, :name => 'heartbeatTimeoutSeconds', :optional => true},
|
3402
|
+
ATTEMPT => {:type => ::Thrift::Types::I32, :name => 'attempt', :optional => true},
|
3403
|
+
SCHEDULEDTIMESTAMPOFTHISATTEMPT => {:type => ::Thrift::Types::I64, :name => 'scheduledTimestampOfThisAttempt', :optional => true},
|
3404
|
+
HEARTBEATDETAILS => {:type => ::Thrift::Types::STRING, :name => 'heartbeatDetails', :binary => true, :optional => true},
|
3405
|
+
WORKFLOWTYPE => {:type => ::Thrift::Types::STRUCT, :name => 'workflowType', :class => ::CadenceThrift::WorkflowType, :optional => true},
|
3406
|
+
WORKFLOWDOMAIN => {:type => ::Thrift::Types::STRING, :name => 'workflowDomain', :optional => true},
|
3407
|
+
HEADER => {:type => ::Thrift::Types::STRUCT, :name => 'header', :class => ::CadenceThrift::Header, :optional => true}
|
3408
|
+
}
|
3409
|
+
|
3410
|
+
def struct_fields; FIELDS; end
|
3411
|
+
|
3412
|
+
def validate
|
3413
|
+
end
|
3414
|
+
|
3415
|
+
::Thrift::Struct.generate_accessors self
|
3416
|
+
end
|
3417
|
+
|
3418
|
+
class RecordActivityTaskHeartbeatRequest
|
3419
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3420
|
+
TASKTOKEN = 10
|
3421
|
+
DETAILS = 20
|
3422
|
+
IDENTITY = 30
|
3423
|
+
|
3424
|
+
FIELDS = {
|
3425
|
+
TASKTOKEN => {:type => ::Thrift::Types::STRING, :name => 'taskToken', :binary => true, :optional => true},
|
3426
|
+
DETAILS => {:type => ::Thrift::Types::STRING, :name => 'details', :binary => true, :optional => true},
|
3427
|
+
IDENTITY => {:type => ::Thrift::Types::STRING, :name => 'identity', :optional => true}
|
3428
|
+
}
|
3429
|
+
|
3430
|
+
def struct_fields; FIELDS; end
|
3431
|
+
|
3432
|
+
def validate
|
3433
|
+
end
|
3434
|
+
|
3435
|
+
::Thrift::Struct.generate_accessors self
|
3436
|
+
end
|
3437
|
+
|
3438
|
+
class RecordActivityTaskHeartbeatByIDRequest
|
3439
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3440
|
+
DOMAIN = 10
|
3441
|
+
WORKFLOWID = 20
|
3442
|
+
RUNID = 30
|
3443
|
+
ACTIVITYID = 40
|
3444
|
+
DETAILS = 50
|
3445
|
+
IDENTITY = 60
|
3446
|
+
|
3447
|
+
FIELDS = {
|
3448
|
+
DOMAIN => {:type => ::Thrift::Types::STRING, :name => 'domain', :optional => true},
|
3449
|
+
WORKFLOWID => {:type => ::Thrift::Types::STRING, :name => 'workflowID', :optional => true},
|
3450
|
+
RUNID => {:type => ::Thrift::Types::STRING, :name => 'runID', :optional => true},
|
3451
|
+
ACTIVITYID => {:type => ::Thrift::Types::STRING, :name => 'activityID', :optional => true},
|
3452
|
+
DETAILS => {:type => ::Thrift::Types::STRING, :name => 'details', :binary => true, :optional => true},
|
3453
|
+
IDENTITY => {:type => ::Thrift::Types::STRING, :name => 'identity', :optional => true}
|
3454
|
+
}
|
3455
|
+
|
3456
|
+
def struct_fields; FIELDS; end
|
3457
|
+
|
3458
|
+
def validate
|
3459
|
+
end
|
3460
|
+
|
3461
|
+
::Thrift::Struct.generate_accessors self
|
3462
|
+
end
|
3463
|
+
|
3464
|
+
class RecordActivityTaskHeartbeatResponse
|
3465
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3466
|
+
CANCELREQUESTED = 10
|
3467
|
+
|
3468
|
+
FIELDS = {
|
3469
|
+
CANCELREQUESTED => {:type => ::Thrift::Types::BOOL, :name => 'cancelRequested', :optional => true}
|
3470
|
+
}
|
3471
|
+
|
3472
|
+
def struct_fields; FIELDS; end
|
3473
|
+
|
3474
|
+
def validate
|
3475
|
+
end
|
3476
|
+
|
3477
|
+
::Thrift::Struct.generate_accessors self
|
3478
|
+
end
|
3479
|
+
|
3480
|
+
class RespondActivityTaskCompletedRequest
|
3481
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3482
|
+
TASKTOKEN = 10
|
3483
|
+
RESULT = 20
|
3484
|
+
IDENTITY = 30
|
3485
|
+
|
3486
|
+
FIELDS = {
|
3487
|
+
TASKTOKEN => {:type => ::Thrift::Types::STRING, :name => 'taskToken', :binary => true, :optional => true},
|
3488
|
+
RESULT => {:type => ::Thrift::Types::STRING, :name => 'result', :binary => true, :optional => true},
|
3489
|
+
IDENTITY => {:type => ::Thrift::Types::STRING, :name => 'identity', :optional => true}
|
3490
|
+
}
|
3491
|
+
|
3492
|
+
def struct_fields; FIELDS; end
|
3493
|
+
|
3494
|
+
def validate
|
3495
|
+
end
|
3496
|
+
|
3497
|
+
::Thrift::Struct.generate_accessors self
|
3498
|
+
end
|
3499
|
+
|
3500
|
+
class RespondActivityTaskFailedRequest
|
3501
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3502
|
+
TASKTOKEN = 10
|
3503
|
+
REASON = 20
|
3504
|
+
DETAILS = 30
|
3505
|
+
IDENTITY = 40
|
3506
|
+
|
3507
|
+
FIELDS = {
|
3508
|
+
TASKTOKEN => {:type => ::Thrift::Types::STRING, :name => 'taskToken', :binary => true, :optional => true},
|
3509
|
+
REASON => {:type => ::Thrift::Types::STRING, :name => 'reason', :optional => true},
|
3510
|
+
DETAILS => {:type => ::Thrift::Types::STRING, :name => 'details', :binary => true, :optional => true},
|
3511
|
+
IDENTITY => {:type => ::Thrift::Types::STRING, :name => 'identity', :optional => true}
|
3512
|
+
}
|
3513
|
+
|
3514
|
+
def struct_fields; FIELDS; end
|
3515
|
+
|
3516
|
+
def validate
|
3517
|
+
end
|
3518
|
+
|
3519
|
+
::Thrift::Struct.generate_accessors self
|
3520
|
+
end
|
3521
|
+
|
3522
|
+
class RespondActivityTaskCanceledRequest
|
3523
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3524
|
+
TASKTOKEN = 10
|
3525
|
+
DETAILS = 20
|
3526
|
+
IDENTITY = 30
|
3527
|
+
|
3528
|
+
FIELDS = {
|
3529
|
+
TASKTOKEN => {:type => ::Thrift::Types::STRING, :name => 'taskToken', :binary => true, :optional => true},
|
3530
|
+
DETAILS => {:type => ::Thrift::Types::STRING, :name => 'details', :binary => true, :optional => true},
|
3531
|
+
IDENTITY => {:type => ::Thrift::Types::STRING, :name => 'identity', :optional => true}
|
3532
|
+
}
|
3533
|
+
|
3534
|
+
def struct_fields; FIELDS; end
|
3535
|
+
|
3536
|
+
def validate
|
3537
|
+
end
|
3538
|
+
|
3539
|
+
::Thrift::Struct.generate_accessors self
|
3540
|
+
end
|
3541
|
+
|
3542
|
+
class RespondActivityTaskCompletedByIDRequest
|
3543
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3544
|
+
DOMAIN = 10
|
3545
|
+
WORKFLOWID = 20
|
3546
|
+
RUNID = 30
|
3547
|
+
ACTIVITYID = 40
|
3548
|
+
RESULT = 50
|
3549
|
+
IDENTITY = 60
|
3550
|
+
|
3551
|
+
FIELDS = {
|
3552
|
+
DOMAIN => {:type => ::Thrift::Types::STRING, :name => 'domain', :optional => true},
|
3553
|
+
WORKFLOWID => {:type => ::Thrift::Types::STRING, :name => 'workflowID', :optional => true},
|
3554
|
+
RUNID => {:type => ::Thrift::Types::STRING, :name => 'runID', :optional => true},
|
3555
|
+
ACTIVITYID => {:type => ::Thrift::Types::STRING, :name => 'activityID', :optional => true},
|
3556
|
+
RESULT => {:type => ::Thrift::Types::STRING, :name => 'result', :binary => true, :optional => true},
|
3557
|
+
IDENTITY => {:type => ::Thrift::Types::STRING, :name => 'identity', :optional => true}
|
3558
|
+
}
|
3559
|
+
|
3560
|
+
def struct_fields; FIELDS; end
|
3561
|
+
|
3562
|
+
def validate
|
3563
|
+
end
|
3564
|
+
|
3565
|
+
::Thrift::Struct.generate_accessors self
|
3566
|
+
end
|
3567
|
+
|
3568
|
+
class RespondActivityTaskFailedByIDRequest
|
3569
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3570
|
+
DOMAIN = 10
|
3571
|
+
WORKFLOWID = 20
|
3572
|
+
RUNID = 30
|
3573
|
+
ACTIVITYID = 40
|
3574
|
+
REASON = 50
|
3575
|
+
DETAILS = 60
|
3576
|
+
IDENTITY = 70
|
3577
|
+
|
3578
|
+
FIELDS = {
|
3579
|
+
DOMAIN => {:type => ::Thrift::Types::STRING, :name => 'domain', :optional => true},
|
3580
|
+
WORKFLOWID => {:type => ::Thrift::Types::STRING, :name => 'workflowID', :optional => true},
|
3581
|
+
RUNID => {:type => ::Thrift::Types::STRING, :name => 'runID', :optional => true},
|
3582
|
+
ACTIVITYID => {:type => ::Thrift::Types::STRING, :name => 'activityID', :optional => true},
|
3583
|
+
REASON => {:type => ::Thrift::Types::STRING, :name => 'reason', :optional => true},
|
3584
|
+
DETAILS => {:type => ::Thrift::Types::STRING, :name => 'details', :binary => true, :optional => true},
|
3585
|
+
IDENTITY => {:type => ::Thrift::Types::STRING, :name => 'identity', :optional => true}
|
3586
|
+
}
|
3587
|
+
|
3588
|
+
def struct_fields; FIELDS; end
|
3589
|
+
|
3590
|
+
def validate
|
3591
|
+
end
|
3592
|
+
|
3593
|
+
::Thrift::Struct.generate_accessors self
|
3594
|
+
end
|
3595
|
+
|
3596
|
+
class RespondActivityTaskCanceledByIDRequest
|
3597
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3598
|
+
DOMAIN = 10
|
3599
|
+
WORKFLOWID = 20
|
3600
|
+
RUNID = 30
|
3601
|
+
ACTIVITYID = 40
|
3602
|
+
DETAILS = 50
|
3603
|
+
IDENTITY = 60
|
3604
|
+
|
3605
|
+
FIELDS = {
|
3606
|
+
DOMAIN => {:type => ::Thrift::Types::STRING, :name => 'domain', :optional => true},
|
3607
|
+
WORKFLOWID => {:type => ::Thrift::Types::STRING, :name => 'workflowID', :optional => true},
|
3608
|
+
RUNID => {:type => ::Thrift::Types::STRING, :name => 'runID', :optional => true},
|
3609
|
+
ACTIVITYID => {:type => ::Thrift::Types::STRING, :name => 'activityID', :optional => true},
|
3610
|
+
DETAILS => {:type => ::Thrift::Types::STRING, :name => 'details', :binary => true, :optional => true},
|
3611
|
+
IDENTITY => {:type => ::Thrift::Types::STRING, :name => 'identity', :optional => true}
|
3612
|
+
}
|
3613
|
+
|
3614
|
+
def struct_fields; FIELDS; end
|
3615
|
+
|
3616
|
+
def validate
|
3617
|
+
end
|
3618
|
+
|
3619
|
+
::Thrift::Struct.generate_accessors self
|
3620
|
+
end
|
3621
|
+
|
3622
|
+
class RequestCancelWorkflowExecutionRequest
|
3623
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3624
|
+
DOMAIN = 10
|
3625
|
+
WORKFLOWEXECUTION = 20
|
3626
|
+
IDENTITY = 30
|
3627
|
+
REQUESTID = 40
|
3628
|
+
|
3629
|
+
FIELDS = {
|
3630
|
+
DOMAIN => {:type => ::Thrift::Types::STRING, :name => 'domain', :optional => true},
|
3631
|
+
WORKFLOWEXECUTION => {:type => ::Thrift::Types::STRUCT, :name => 'workflowExecution', :class => ::CadenceThrift::WorkflowExecution, :optional => true},
|
3632
|
+
IDENTITY => {:type => ::Thrift::Types::STRING, :name => 'identity', :optional => true},
|
3633
|
+
REQUESTID => {:type => ::Thrift::Types::STRING, :name => 'requestId', :optional => true}
|
3634
|
+
}
|
3635
|
+
|
3636
|
+
def struct_fields; FIELDS; end
|
3637
|
+
|
3638
|
+
def validate
|
3639
|
+
end
|
3640
|
+
|
3641
|
+
::Thrift::Struct.generate_accessors self
|
3642
|
+
end
|
3643
|
+
|
3644
|
+
class GetWorkflowExecutionHistoryRequest
|
3645
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3646
|
+
DOMAIN = 10
|
3647
|
+
EXECUTION = 20
|
3648
|
+
MAXIMUMPAGESIZE = 30
|
3649
|
+
NEXTPAGETOKEN = 40
|
3650
|
+
WAITFORNEWEVENT = 50
|
3651
|
+
HISTORYEVENTFILTERTYPE = 60
|
3652
|
+
|
3653
|
+
FIELDS = {
|
3654
|
+
DOMAIN => {:type => ::Thrift::Types::STRING, :name => 'domain', :optional => true},
|
3655
|
+
EXECUTION => {:type => ::Thrift::Types::STRUCT, :name => 'execution', :class => ::CadenceThrift::WorkflowExecution, :optional => true},
|
3656
|
+
MAXIMUMPAGESIZE => {:type => ::Thrift::Types::I32, :name => 'maximumPageSize', :optional => true},
|
3657
|
+
NEXTPAGETOKEN => {:type => ::Thrift::Types::STRING, :name => 'nextPageToken', :binary => true, :optional => true},
|
3658
|
+
WAITFORNEWEVENT => {:type => ::Thrift::Types::BOOL, :name => 'waitForNewEvent', :optional => true},
|
3659
|
+
HISTORYEVENTFILTERTYPE => {:type => ::Thrift::Types::I32, :name => 'HistoryEventFilterType', :optional => true, :enum_class => ::CadenceThrift::HistoryEventFilterType}
|
3660
|
+
}
|
3661
|
+
|
3662
|
+
def struct_fields; FIELDS; end
|
3663
|
+
|
3664
|
+
def validate
|
3665
|
+
unless @HistoryEventFilterType.nil? || ::CadenceThrift::HistoryEventFilterType::VALID_VALUES.include?(@HistoryEventFilterType)
|
3666
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field HistoryEventFilterType!')
|
3667
|
+
end
|
3668
|
+
end
|
3669
|
+
|
3670
|
+
::Thrift::Struct.generate_accessors self
|
3671
|
+
end
|
3672
|
+
|
3673
|
+
class GetWorkflowExecutionHistoryResponse
|
3674
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3675
|
+
HISTORY = 10
|
3676
|
+
NEXTPAGETOKEN = 20
|
3677
|
+
ARCHIVED = 30
|
3678
|
+
|
3679
|
+
FIELDS = {
|
3680
|
+
HISTORY => {:type => ::Thrift::Types::STRUCT, :name => 'history', :class => ::CadenceThrift::History, :optional => true},
|
3681
|
+
NEXTPAGETOKEN => {:type => ::Thrift::Types::STRING, :name => 'nextPageToken', :binary => true, :optional => true},
|
3682
|
+
ARCHIVED => {:type => ::Thrift::Types::BOOL, :name => 'archived', :optional => true}
|
3683
|
+
}
|
3684
|
+
|
3685
|
+
def struct_fields; FIELDS; end
|
3686
|
+
|
3687
|
+
def validate
|
3688
|
+
end
|
3689
|
+
|
3690
|
+
::Thrift::Struct.generate_accessors self
|
3691
|
+
end
|
3692
|
+
|
3693
|
+
class SignalWorkflowExecutionRequest
|
3694
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3695
|
+
DOMAIN = 10
|
3696
|
+
WORKFLOWEXECUTION = 20
|
3697
|
+
SIGNALNAME = 30
|
3698
|
+
INPUT = 40
|
3699
|
+
IDENTITY = 50
|
3700
|
+
REQUESTID = 60
|
3701
|
+
CONTROL = 70
|
3702
|
+
|
3703
|
+
FIELDS = {
|
3704
|
+
DOMAIN => {:type => ::Thrift::Types::STRING, :name => 'domain', :optional => true},
|
3705
|
+
WORKFLOWEXECUTION => {:type => ::Thrift::Types::STRUCT, :name => 'workflowExecution', :class => ::CadenceThrift::WorkflowExecution, :optional => true},
|
3706
|
+
SIGNALNAME => {:type => ::Thrift::Types::STRING, :name => 'signalName', :optional => true},
|
3707
|
+
INPUT => {:type => ::Thrift::Types::STRING, :name => 'input', :binary => true, :optional => true},
|
3708
|
+
IDENTITY => {:type => ::Thrift::Types::STRING, :name => 'identity', :optional => true},
|
3709
|
+
REQUESTID => {:type => ::Thrift::Types::STRING, :name => 'requestId', :optional => true},
|
3710
|
+
CONTROL => {:type => ::Thrift::Types::STRING, :name => 'control', :binary => true, :optional => true}
|
3711
|
+
}
|
3712
|
+
|
3713
|
+
def struct_fields; FIELDS; end
|
3714
|
+
|
3715
|
+
def validate
|
3716
|
+
end
|
3717
|
+
|
3718
|
+
::Thrift::Struct.generate_accessors self
|
3719
|
+
end
|
3720
|
+
|
3721
|
+
class SignalWithStartWorkflowExecutionRequest
|
3722
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3723
|
+
DOMAIN = 10
|
3724
|
+
WORKFLOWID = 20
|
3725
|
+
WORKFLOWTYPE = 30
|
3726
|
+
TASKLIST = 40
|
3727
|
+
INPUT = 50
|
3728
|
+
EXECUTIONSTARTTOCLOSETIMEOUTSECONDS = 60
|
3729
|
+
TASKSTARTTOCLOSETIMEOUTSECONDS = 70
|
3730
|
+
IDENTITY = 80
|
3731
|
+
REQUESTID = 90
|
3732
|
+
WORKFLOWIDREUSEPOLICY = 100
|
3733
|
+
SIGNALNAME = 110
|
3734
|
+
SIGNALINPUT = 120
|
3735
|
+
CONTROL = 130
|
3736
|
+
RETRYPOLICY = 140
|
3737
|
+
CRONSCHEDULE = 150
|
3738
|
+
MEMO = 160
|
3739
|
+
SEARCHATTRIBUTES = 161
|
3740
|
+
HEADER = 170
|
3741
|
+
|
3742
|
+
FIELDS = {
|
3743
|
+
DOMAIN => {:type => ::Thrift::Types::STRING, :name => 'domain', :optional => true},
|
3744
|
+
WORKFLOWID => {:type => ::Thrift::Types::STRING, :name => 'workflowId', :optional => true},
|
3745
|
+
WORKFLOWTYPE => {:type => ::Thrift::Types::STRUCT, :name => 'workflowType', :class => ::CadenceThrift::WorkflowType, :optional => true},
|
3746
|
+
TASKLIST => {:type => ::Thrift::Types::STRUCT, :name => 'taskList', :class => ::CadenceThrift::TaskList, :optional => true},
|
3747
|
+
INPUT => {:type => ::Thrift::Types::STRING, :name => 'input', :binary => true, :optional => true},
|
3748
|
+
EXECUTIONSTARTTOCLOSETIMEOUTSECONDS => {:type => ::Thrift::Types::I32, :name => 'executionStartToCloseTimeoutSeconds', :optional => true},
|
3749
|
+
TASKSTARTTOCLOSETIMEOUTSECONDS => {:type => ::Thrift::Types::I32, :name => 'taskStartToCloseTimeoutSeconds', :optional => true},
|
3750
|
+
IDENTITY => {:type => ::Thrift::Types::STRING, :name => 'identity', :optional => true},
|
3751
|
+
REQUESTID => {:type => ::Thrift::Types::STRING, :name => 'requestId', :optional => true},
|
3752
|
+
WORKFLOWIDREUSEPOLICY => {:type => ::Thrift::Types::I32, :name => 'workflowIdReusePolicy', :optional => true, :enum_class => ::CadenceThrift::WorkflowIdReusePolicy},
|
3753
|
+
SIGNALNAME => {:type => ::Thrift::Types::STRING, :name => 'signalName', :optional => true},
|
3754
|
+
SIGNALINPUT => {:type => ::Thrift::Types::STRING, :name => 'signalInput', :binary => true, :optional => true},
|
3755
|
+
CONTROL => {:type => ::Thrift::Types::STRING, :name => 'control', :binary => true, :optional => true},
|
3756
|
+
RETRYPOLICY => {:type => ::Thrift::Types::STRUCT, :name => 'retryPolicy', :class => ::CadenceThrift::RetryPolicy, :optional => true},
|
3757
|
+
CRONSCHEDULE => {:type => ::Thrift::Types::STRING, :name => 'cronSchedule', :optional => true},
|
3758
|
+
MEMO => {:type => ::Thrift::Types::STRUCT, :name => 'memo', :class => ::CadenceThrift::Memo, :optional => true},
|
3759
|
+
SEARCHATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'searchAttributes', :class => ::CadenceThrift::SearchAttributes, :optional => true},
|
3760
|
+
HEADER => {:type => ::Thrift::Types::STRUCT, :name => 'header', :class => ::CadenceThrift::Header, :optional => true}
|
3761
|
+
}
|
3762
|
+
|
3763
|
+
def struct_fields; FIELDS; end
|
3764
|
+
|
3765
|
+
def validate
|
3766
|
+
unless @workflowIdReusePolicy.nil? || ::CadenceThrift::WorkflowIdReusePolicy::VALID_VALUES.include?(@workflowIdReusePolicy)
|
3767
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field workflowIdReusePolicy!')
|
3768
|
+
end
|
3769
|
+
end
|
3770
|
+
|
3771
|
+
::Thrift::Struct.generate_accessors self
|
3772
|
+
end
|
3773
|
+
|
3774
|
+
class TerminateWorkflowExecutionRequest
|
3775
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3776
|
+
DOMAIN = 10
|
3777
|
+
WORKFLOWEXECUTION = 20
|
3778
|
+
REASON = 30
|
3779
|
+
DETAILS = 40
|
3780
|
+
IDENTITY = 50
|
3781
|
+
|
3782
|
+
FIELDS = {
|
3783
|
+
DOMAIN => {:type => ::Thrift::Types::STRING, :name => 'domain', :optional => true},
|
3784
|
+
WORKFLOWEXECUTION => {:type => ::Thrift::Types::STRUCT, :name => 'workflowExecution', :class => ::CadenceThrift::WorkflowExecution, :optional => true},
|
3785
|
+
REASON => {:type => ::Thrift::Types::STRING, :name => 'reason', :optional => true},
|
3786
|
+
DETAILS => {:type => ::Thrift::Types::STRING, :name => 'details', :binary => true, :optional => true},
|
3787
|
+
IDENTITY => {:type => ::Thrift::Types::STRING, :name => 'identity', :optional => true}
|
3788
|
+
}
|
3789
|
+
|
3790
|
+
def struct_fields; FIELDS; end
|
3791
|
+
|
3792
|
+
def validate
|
3793
|
+
end
|
3794
|
+
|
3795
|
+
::Thrift::Struct.generate_accessors self
|
3796
|
+
end
|
3797
|
+
|
3798
|
+
class ResetWorkflowExecutionRequest
|
3799
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3800
|
+
DOMAIN = 10
|
3801
|
+
WORKFLOWEXECUTION = 20
|
3802
|
+
REASON = 30
|
3803
|
+
DECISIONFINISHEVENTID = 40
|
3804
|
+
REQUESTID = 50
|
3805
|
+
|
3806
|
+
FIELDS = {
|
3807
|
+
DOMAIN => {:type => ::Thrift::Types::STRING, :name => 'domain', :optional => true},
|
3808
|
+
WORKFLOWEXECUTION => {:type => ::Thrift::Types::STRUCT, :name => 'workflowExecution', :class => ::CadenceThrift::WorkflowExecution, :optional => true},
|
3809
|
+
REASON => {:type => ::Thrift::Types::STRING, :name => 'reason', :optional => true},
|
3810
|
+
DECISIONFINISHEVENTID => {:type => ::Thrift::Types::I64, :name => 'decisionFinishEventId', :optional => true},
|
3811
|
+
REQUESTID => {:type => ::Thrift::Types::STRING, :name => 'requestId', :optional => true}
|
3812
|
+
}
|
3813
|
+
|
3814
|
+
def struct_fields; FIELDS; end
|
3815
|
+
|
3816
|
+
def validate
|
3817
|
+
end
|
3818
|
+
|
3819
|
+
::Thrift::Struct.generate_accessors self
|
3820
|
+
end
|
3821
|
+
|
3822
|
+
class ResetWorkflowExecutionResponse
|
3823
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3824
|
+
RUNID = 10
|
3825
|
+
|
3826
|
+
FIELDS = {
|
3827
|
+
RUNID => {:type => ::Thrift::Types::STRING, :name => 'runId', :optional => true}
|
3828
|
+
}
|
3829
|
+
|
3830
|
+
def struct_fields; FIELDS; end
|
3831
|
+
|
3832
|
+
def validate
|
3833
|
+
end
|
3834
|
+
|
3835
|
+
::Thrift::Struct.generate_accessors self
|
3836
|
+
end
|
3837
|
+
|
3838
|
+
class ListOpenWorkflowExecutionsRequest
|
3839
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3840
|
+
DOMAIN = 10
|
3841
|
+
MAXIMUMPAGESIZE = 20
|
3842
|
+
NEXTPAGETOKEN = 30
|
3843
|
+
STARTTIMEFILTER = 40
|
3844
|
+
EXECUTIONFILTER = 50
|
3845
|
+
TYPEFILTER = 60
|
3846
|
+
|
3847
|
+
FIELDS = {
|
3848
|
+
DOMAIN => {:type => ::Thrift::Types::STRING, :name => 'domain', :optional => true},
|
3849
|
+
MAXIMUMPAGESIZE => {:type => ::Thrift::Types::I32, :name => 'maximumPageSize', :optional => true},
|
3850
|
+
NEXTPAGETOKEN => {:type => ::Thrift::Types::STRING, :name => 'nextPageToken', :binary => true, :optional => true},
|
3851
|
+
STARTTIMEFILTER => {:type => ::Thrift::Types::STRUCT, :name => 'StartTimeFilter', :class => ::CadenceThrift::StartTimeFilter, :optional => true},
|
3852
|
+
EXECUTIONFILTER => {:type => ::Thrift::Types::STRUCT, :name => 'executionFilter', :class => ::CadenceThrift::WorkflowExecutionFilter, :optional => true},
|
3853
|
+
TYPEFILTER => {:type => ::Thrift::Types::STRUCT, :name => 'typeFilter', :class => ::CadenceThrift::WorkflowTypeFilter, :optional => true}
|
3854
|
+
}
|
3855
|
+
|
3856
|
+
def struct_fields; FIELDS; end
|
3857
|
+
|
3858
|
+
def validate
|
3859
|
+
end
|
3860
|
+
|
3861
|
+
::Thrift::Struct.generate_accessors self
|
3862
|
+
end
|
3863
|
+
|
3864
|
+
class ListOpenWorkflowExecutionsResponse
|
3865
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3866
|
+
EXECUTIONS = 10
|
3867
|
+
NEXTPAGETOKEN = 20
|
3868
|
+
|
3869
|
+
FIELDS = {
|
3870
|
+
EXECUTIONS => {:type => ::Thrift::Types::LIST, :name => 'executions', :element => {:type => ::Thrift::Types::STRUCT, :class => ::CadenceThrift::WorkflowExecutionInfo}, :optional => true},
|
3871
|
+
NEXTPAGETOKEN => {:type => ::Thrift::Types::STRING, :name => 'nextPageToken', :binary => true, :optional => true}
|
3872
|
+
}
|
3873
|
+
|
3874
|
+
def struct_fields; FIELDS; end
|
3875
|
+
|
3876
|
+
def validate
|
3877
|
+
end
|
3878
|
+
|
3879
|
+
::Thrift::Struct.generate_accessors self
|
3880
|
+
end
|
3881
|
+
|
3882
|
+
class ListClosedWorkflowExecutionsRequest
|
3883
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3884
|
+
DOMAIN = 10
|
3885
|
+
MAXIMUMPAGESIZE = 20
|
3886
|
+
NEXTPAGETOKEN = 30
|
3887
|
+
STARTTIMEFILTER = 40
|
3888
|
+
EXECUTIONFILTER = 50
|
3889
|
+
TYPEFILTER = 60
|
3890
|
+
STATUSFILTER = 70
|
3891
|
+
|
3892
|
+
FIELDS = {
|
3893
|
+
DOMAIN => {:type => ::Thrift::Types::STRING, :name => 'domain', :optional => true},
|
3894
|
+
MAXIMUMPAGESIZE => {:type => ::Thrift::Types::I32, :name => 'maximumPageSize', :optional => true},
|
3895
|
+
NEXTPAGETOKEN => {:type => ::Thrift::Types::STRING, :name => 'nextPageToken', :binary => true, :optional => true},
|
3896
|
+
STARTTIMEFILTER => {:type => ::Thrift::Types::STRUCT, :name => 'StartTimeFilter', :class => ::CadenceThrift::StartTimeFilter, :optional => true},
|
3897
|
+
EXECUTIONFILTER => {:type => ::Thrift::Types::STRUCT, :name => 'executionFilter', :class => ::CadenceThrift::WorkflowExecutionFilter, :optional => true},
|
3898
|
+
TYPEFILTER => {:type => ::Thrift::Types::STRUCT, :name => 'typeFilter', :class => ::CadenceThrift::WorkflowTypeFilter, :optional => true},
|
3899
|
+
STATUSFILTER => {:type => ::Thrift::Types::I32, :name => 'statusFilter', :optional => true, :enum_class => ::CadenceThrift::WorkflowExecutionCloseStatus}
|
3900
|
+
}
|
3901
|
+
|
3902
|
+
def struct_fields; FIELDS; end
|
3903
|
+
|
3904
|
+
def validate
|
3905
|
+
unless @statusFilter.nil? || ::CadenceThrift::WorkflowExecutionCloseStatus::VALID_VALUES.include?(@statusFilter)
|
3906
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field statusFilter!')
|
3907
|
+
end
|
3908
|
+
end
|
3909
|
+
|
3910
|
+
::Thrift::Struct.generate_accessors self
|
3911
|
+
end
|
3912
|
+
|
3913
|
+
class ListClosedWorkflowExecutionsResponse
|
3914
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3915
|
+
EXECUTIONS = 10
|
3916
|
+
NEXTPAGETOKEN = 20
|
3917
|
+
|
3918
|
+
FIELDS = {
|
3919
|
+
EXECUTIONS => {:type => ::Thrift::Types::LIST, :name => 'executions', :element => {:type => ::Thrift::Types::STRUCT, :class => ::CadenceThrift::WorkflowExecutionInfo}, :optional => true},
|
3920
|
+
NEXTPAGETOKEN => {:type => ::Thrift::Types::STRING, :name => 'nextPageToken', :binary => true, :optional => true}
|
3921
|
+
}
|
3922
|
+
|
3923
|
+
def struct_fields; FIELDS; end
|
3924
|
+
|
3925
|
+
def validate
|
3926
|
+
end
|
3927
|
+
|
3928
|
+
::Thrift::Struct.generate_accessors self
|
3929
|
+
end
|
3930
|
+
|
3931
|
+
class ListWorkflowExecutionsRequest
|
3932
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3933
|
+
DOMAIN = 10
|
3934
|
+
PAGESIZE = 20
|
3935
|
+
NEXTPAGETOKEN = 30
|
3936
|
+
QUERY = 40
|
3937
|
+
|
3938
|
+
FIELDS = {
|
3939
|
+
DOMAIN => {:type => ::Thrift::Types::STRING, :name => 'domain', :optional => true},
|
3940
|
+
PAGESIZE => {:type => ::Thrift::Types::I32, :name => 'pageSize', :optional => true},
|
3941
|
+
NEXTPAGETOKEN => {:type => ::Thrift::Types::STRING, :name => 'nextPageToken', :binary => true, :optional => true},
|
3942
|
+
QUERY => {:type => ::Thrift::Types::STRING, :name => 'query', :optional => true}
|
3943
|
+
}
|
3944
|
+
|
3945
|
+
def struct_fields; FIELDS; end
|
3946
|
+
|
3947
|
+
def validate
|
3948
|
+
end
|
3949
|
+
|
3950
|
+
::Thrift::Struct.generate_accessors self
|
3951
|
+
end
|
3952
|
+
|
3953
|
+
class ListWorkflowExecutionsResponse
|
3954
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3955
|
+
EXECUTIONS = 10
|
3956
|
+
NEXTPAGETOKEN = 20
|
3957
|
+
|
3958
|
+
FIELDS = {
|
3959
|
+
EXECUTIONS => {:type => ::Thrift::Types::LIST, :name => 'executions', :element => {:type => ::Thrift::Types::STRUCT, :class => ::CadenceThrift::WorkflowExecutionInfo}, :optional => true},
|
3960
|
+
NEXTPAGETOKEN => {:type => ::Thrift::Types::STRING, :name => 'nextPageToken', :binary => true, :optional => true}
|
3961
|
+
}
|
3962
|
+
|
3963
|
+
def struct_fields; FIELDS; end
|
3964
|
+
|
3965
|
+
def validate
|
3966
|
+
end
|
3967
|
+
|
3968
|
+
::Thrift::Struct.generate_accessors self
|
3969
|
+
end
|
3970
|
+
|
3971
|
+
class ListArchivedWorkflowExecutionsRequest
|
3972
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3973
|
+
DOMAIN = 10
|
3974
|
+
PAGESIZE = 20
|
3975
|
+
NEXTPAGETOKEN = 30
|
3976
|
+
QUERY = 40
|
3977
|
+
|
3978
|
+
FIELDS = {
|
3979
|
+
DOMAIN => {:type => ::Thrift::Types::STRING, :name => 'domain', :optional => true},
|
3980
|
+
PAGESIZE => {:type => ::Thrift::Types::I32, :name => 'pageSize', :optional => true},
|
3981
|
+
NEXTPAGETOKEN => {:type => ::Thrift::Types::STRING, :name => 'nextPageToken', :binary => true, :optional => true},
|
3982
|
+
QUERY => {:type => ::Thrift::Types::STRING, :name => 'query', :optional => true}
|
3983
|
+
}
|
3984
|
+
|
3985
|
+
def struct_fields; FIELDS; end
|
3986
|
+
|
3987
|
+
def validate
|
3988
|
+
end
|
3989
|
+
|
3990
|
+
::Thrift::Struct.generate_accessors self
|
3991
|
+
end
|
3992
|
+
|
3993
|
+
class ListArchivedWorkflowExecutionsResponse
|
3994
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3995
|
+
EXECUTIONS = 10
|
3996
|
+
NEXTPAGETOKEN = 20
|
3997
|
+
|
3998
|
+
FIELDS = {
|
3999
|
+
EXECUTIONS => {:type => ::Thrift::Types::LIST, :name => 'executions', :element => {:type => ::Thrift::Types::STRUCT, :class => ::CadenceThrift::WorkflowExecutionInfo}, :optional => true},
|
4000
|
+
NEXTPAGETOKEN => {:type => ::Thrift::Types::STRING, :name => 'nextPageToken', :binary => true, :optional => true}
|
4001
|
+
}
|
4002
|
+
|
4003
|
+
def struct_fields; FIELDS; end
|
4004
|
+
|
4005
|
+
def validate
|
4006
|
+
end
|
4007
|
+
|
4008
|
+
::Thrift::Struct.generate_accessors self
|
4009
|
+
end
|
4010
|
+
|
4011
|
+
class CountWorkflowExecutionsRequest
|
4012
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
4013
|
+
DOMAIN = 10
|
4014
|
+
QUERY = 20
|
4015
|
+
|
4016
|
+
FIELDS = {
|
4017
|
+
DOMAIN => {:type => ::Thrift::Types::STRING, :name => 'domain', :optional => true},
|
4018
|
+
QUERY => {:type => ::Thrift::Types::STRING, :name => 'query', :optional => true}
|
4019
|
+
}
|
4020
|
+
|
4021
|
+
def struct_fields; FIELDS; end
|
4022
|
+
|
4023
|
+
def validate
|
4024
|
+
end
|
4025
|
+
|
4026
|
+
::Thrift::Struct.generate_accessors self
|
4027
|
+
end
|
4028
|
+
|
4029
|
+
class CountWorkflowExecutionsResponse
|
4030
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
4031
|
+
COUNT = 10
|
4032
|
+
|
4033
|
+
FIELDS = {
|
4034
|
+
COUNT => {:type => ::Thrift::Types::I64, :name => 'count', :optional => true}
|
4035
|
+
}
|
4036
|
+
|
4037
|
+
def struct_fields; FIELDS; end
|
4038
|
+
|
4039
|
+
def validate
|
4040
|
+
end
|
4041
|
+
|
4042
|
+
::Thrift::Struct.generate_accessors self
|
4043
|
+
end
|
4044
|
+
|
4045
|
+
class GetSearchAttributesResponse
|
4046
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
4047
|
+
KEYS = 10
|
4048
|
+
|
4049
|
+
FIELDS = {
|
4050
|
+
KEYS => {:type => ::Thrift::Types::MAP, :name => 'keys', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::I32, :enum_class => ::CadenceThrift::IndexedValueType}, :optional => true}
|
4051
|
+
}
|
4052
|
+
|
4053
|
+
def struct_fields; FIELDS; end
|
4054
|
+
|
4055
|
+
def validate
|
4056
|
+
end
|
4057
|
+
|
4058
|
+
::Thrift::Struct.generate_accessors self
|
4059
|
+
end
|
4060
|
+
|
4061
|
+
class QueryWorkflowRequest
|
4062
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
4063
|
+
DOMAIN = 10
|
4064
|
+
EXECUTION = 20
|
4065
|
+
QUERY = 30
|
4066
|
+
QUERYREJECTCONDITION = 40
|
4067
|
+
|
4068
|
+
FIELDS = {
|
4069
|
+
DOMAIN => {:type => ::Thrift::Types::STRING, :name => 'domain', :optional => true},
|
4070
|
+
EXECUTION => {:type => ::Thrift::Types::STRUCT, :name => 'execution', :class => ::CadenceThrift::WorkflowExecution, :optional => true},
|
4071
|
+
QUERY => {:type => ::Thrift::Types::STRUCT, :name => 'query', :class => ::CadenceThrift::WorkflowQuery, :optional => true},
|
4072
|
+
QUERYREJECTCONDITION => {:type => ::Thrift::Types::I32, :name => 'queryRejectCondition', :optional => true, :enum_class => ::CadenceThrift::QueryRejectCondition}
|
4073
|
+
}
|
4074
|
+
|
4075
|
+
def struct_fields; FIELDS; end
|
4076
|
+
|
4077
|
+
def validate
|
4078
|
+
unless @queryRejectCondition.nil? || ::CadenceThrift::QueryRejectCondition::VALID_VALUES.include?(@queryRejectCondition)
|
4079
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field queryRejectCondition!')
|
4080
|
+
end
|
4081
|
+
end
|
4082
|
+
|
4083
|
+
::Thrift::Struct.generate_accessors self
|
4084
|
+
end
|
4085
|
+
|
4086
|
+
class QueryRejected
|
4087
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
4088
|
+
CLOSESTATUS = 10
|
4089
|
+
|
4090
|
+
FIELDS = {
|
4091
|
+
CLOSESTATUS => {:type => ::Thrift::Types::I32, :name => 'closeStatus', :optional => true, :enum_class => ::CadenceThrift::WorkflowExecutionCloseStatus}
|
4092
|
+
}
|
4093
|
+
|
4094
|
+
def struct_fields; FIELDS; end
|
4095
|
+
|
4096
|
+
def validate
|
4097
|
+
unless @closeStatus.nil? || ::CadenceThrift::WorkflowExecutionCloseStatus::VALID_VALUES.include?(@closeStatus)
|
4098
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field closeStatus!')
|
4099
|
+
end
|
4100
|
+
end
|
4101
|
+
|
4102
|
+
::Thrift::Struct.generate_accessors self
|
4103
|
+
end
|
4104
|
+
|
4105
|
+
class QueryWorkflowResponse
|
4106
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
4107
|
+
QUERYRESULT = 10
|
4108
|
+
QUERYREJECTED = 20
|
4109
|
+
|
4110
|
+
FIELDS = {
|
4111
|
+
QUERYRESULT => {:type => ::Thrift::Types::STRING, :name => 'queryResult', :binary => true, :optional => true},
|
4112
|
+
QUERYREJECTED => {:type => ::Thrift::Types::STRUCT, :name => 'queryRejected', :class => ::CadenceThrift::QueryRejected, :optional => true}
|
4113
|
+
}
|
4114
|
+
|
4115
|
+
def struct_fields; FIELDS; end
|
4116
|
+
|
4117
|
+
def validate
|
4118
|
+
end
|
4119
|
+
|
4120
|
+
::Thrift::Struct.generate_accessors self
|
4121
|
+
end
|
4122
|
+
|
4123
|
+
class WorkflowQuery
|
4124
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
4125
|
+
QUERYTYPE = 10
|
4126
|
+
QUERYARGS = 20
|
4127
|
+
|
4128
|
+
FIELDS = {
|
4129
|
+
QUERYTYPE => {:type => ::Thrift::Types::STRING, :name => 'queryType', :optional => true},
|
4130
|
+
QUERYARGS => {:type => ::Thrift::Types::STRING, :name => 'queryArgs', :binary => true, :optional => true}
|
4131
|
+
}
|
4132
|
+
|
4133
|
+
def struct_fields; FIELDS; end
|
4134
|
+
|
4135
|
+
def validate
|
4136
|
+
end
|
4137
|
+
|
4138
|
+
::Thrift::Struct.generate_accessors self
|
4139
|
+
end
|
4140
|
+
|
4141
|
+
class ResetStickyTaskListRequest
|
4142
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
4143
|
+
DOMAIN = 10
|
4144
|
+
EXECUTION = 20
|
4145
|
+
|
4146
|
+
FIELDS = {
|
4147
|
+
DOMAIN => {:type => ::Thrift::Types::STRING, :name => 'domain', :optional => true},
|
4148
|
+
EXECUTION => {:type => ::Thrift::Types::STRUCT, :name => 'execution', :class => ::CadenceThrift::WorkflowExecution, :optional => true}
|
4149
|
+
}
|
4150
|
+
|
4151
|
+
def struct_fields; FIELDS; end
|
4152
|
+
|
4153
|
+
def validate
|
4154
|
+
end
|
4155
|
+
|
4156
|
+
::Thrift::Struct.generate_accessors self
|
4157
|
+
end
|
4158
|
+
|
4159
|
+
class ResetStickyTaskListResponse
|
4160
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
4161
|
+
|
4162
|
+
FIELDS = {
|
4163
|
+
|
4164
|
+
}
|
4165
|
+
|
4166
|
+
def struct_fields; FIELDS; end
|
4167
|
+
|
4168
|
+
def validate
|
4169
|
+
end
|
4170
|
+
|
4171
|
+
::Thrift::Struct.generate_accessors self
|
4172
|
+
end
|
4173
|
+
|
4174
|
+
class RespondQueryTaskCompletedRequest
|
4175
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
4176
|
+
TASKTOKEN = 10
|
4177
|
+
COMPLETEDTYPE = 20
|
4178
|
+
QUERYRESULT = 30
|
4179
|
+
ERRORMESSAGE = 40
|
4180
|
+
|
4181
|
+
FIELDS = {
|
4182
|
+
TASKTOKEN => {:type => ::Thrift::Types::STRING, :name => 'taskToken', :binary => true, :optional => true},
|
4183
|
+
COMPLETEDTYPE => {:type => ::Thrift::Types::I32, :name => 'completedType', :optional => true, :enum_class => ::CadenceThrift::QueryTaskCompletedType},
|
4184
|
+
QUERYRESULT => {:type => ::Thrift::Types::STRING, :name => 'queryResult', :binary => true, :optional => true},
|
4185
|
+
ERRORMESSAGE => {:type => ::Thrift::Types::STRING, :name => 'errorMessage', :optional => true}
|
4186
|
+
}
|
4187
|
+
|
4188
|
+
def struct_fields; FIELDS; end
|
4189
|
+
|
4190
|
+
def validate
|
4191
|
+
unless @completedType.nil? || ::CadenceThrift::QueryTaskCompletedType::VALID_VALUES.include?(@completedType)
|
4192
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field completedType!')
|
4193
|
+
end
|
4194
|
+
end
|
4195
|
+
|
4196
|
+
::Thrift::Struct.generate_accessors self
|
4197
|
+
end
|
4198
|
+
|
4199
|
+
class WorkflowQueryResult
|
4200
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
4201
|
+
RESULTTYPE = 10
|
4202
|
+
ANSWER = 20
|
4203
|
+
ERRORREASON = 30
|
4204
|
+
ERRORDETAILS = 40
|
4205
|
+
|
4206
|
+
FIELDS = {
|
4207
|
+
RESULTTYPE => {:type => ::Thrift::Types::I32, :name => 'resultType', :optional => true, :enum_class => ::CadenceThrift::QueryResultType},
|
4208
|
+
ANSWER => {:type => ::Thrift::Types::STRING, :name => 'answer', :binary => true, :optional => true},
|
4209
|
+
ERRORREASON => {:type => ::Thrift::Types::STRING, :name => 'errorReason', :optional => true},
|
4210
|
+
ERRORDETAILS => {:type => ::Thrift::Types::STRING, :name => 'errorDetails', :binary => true, :optional => true}
|
4211
|
+
}
|
4212
|
+
|
4213
|
+
def struct_fields; FIELDS; end
|
4214
|
+
|
4215
|
+
def validate
|
4216
|
+
unless @resultType.nil? || ::CadenceThrift::QueryResultType::VALID_VALUES.include?(@resultType)
|
4217
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field resultType!')
|
4218
|
+
end
|
4219
|
+
end
|
4220
|
+
|
4221
|
+
::Thrift::Struct.generate_accessors self
|
4222
|
+
end
|
4223
|
+
|
4224
|
+
class DescribeWorkflowExecutionRequest
|
4225
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
4226
|
+
DOMAIN = 10
|
4227
|
+
EXECUTION = 20
|
4228
|
+
|
4229
|
+
FIELDS = {
|
4230
|
+
DOMAIN => {:type => ::Thrift::Types::STRING, :name => 'domain', :optional => true},
|
4231
|
+
EXECUTION => {:type => ::Thrift::Types::STRUCT, :name => 'execution', :class => ::CadenceThrift::WorkflowExecution, :optional => true}
|
4232
|
+
}
|
4233
|
+
|
4234
|
+
def struct_fields; FIELDS; end
|
4235
|
+
|
4236
|
+
def validate
|
4237
|
+
end
|
4238
|
+
|
4239
|
+
::Thrift::Struct.generate_accessors self
|
4240
|
+
end
|
4241
|
+
|
4242
|
+
class PendingActivityInfo
|
4243
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
4244
|
+
ACTIVITYID = 10
|
4245
|
+
ACTIVITYTYPE = 20
|
4246
|
+
STATE = 30
|
4247
|
+
HEARTBEATDETAILS = 40
|
4248
|
+
LASTHEARTBEATTIMESTAMP = 50
|
4249
|
+
LASTSTARTEDTIMESTAMP = 60
|
4250
|
+
ATTEMPT = 70
|
4251
|
+
MAXIMUMATTEMPTS = 80
|
4252
|
+
SCHEDULEDTIMESTAMP = 90
|
4253
|
+
EXPIRATIONTIMESTAMP = 100
|
4254
|
+
LASTFAILUREREASON = 110
|
4255
|
+
LASTWORKERIDENTITY = 120
|
4256
|
+
LASTFAILUREDETAILS = 130
|
4257
|
+
|
4258
|
+
FIELDS = {
|
4259
|
+
ACTIVITYID => {:type => ::Thrift::Types::STRING, :name => 'activityID', :optional => true},
|
4260
|
+
ACTIVITYTYPE => {:type => ::Thrift::Types::STRUCT, :name => 'activityType', :class => ::CadenceThrift::ActivityType, :optional => true},
|
4261
|
+
STATE => {:type => ::Thrift::Types::I32, :name => 'state', :optional => true, :enum_class => ::CadenceThrift::PendingActivityState},
|
4262
|
+
HEARTBEATDETAILS => {:type => ::Thrift::Types::STRING, :name => 'heartbeatDetails', :binary => true, :optional => true},
|
4263
|
+
LASTHEARTBEATTIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'lastHeartbeatTimestamp', :optional => true},
|
4264
|
+
LASTSTARTEDTIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'lastStartedTimestamp', :optional => true},
|
4265
|
+
ATTEMPT => {:type => ::Thrift::Types::I32, :name => 'attempt', :optional => true},
|
4266
|
+
MAXIMUMATTEMPTS => {:type => ::Thrift::Types::I32, :name => 'maximumAttempts', :optional => true},
|
4267
|
+
SCHEDULEDTIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'scheduledTimestamp', :optional => true},
|
4268
|
+
EXPIRATIONTIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'expirationTimestamp', :optional => true},
|
4269
|
+
LASTFAILUREREASON => {:type => ::Thrift::Types::STRING, :name => 'lastFailureReason', :optional => true},
|
4270
|
+
LASTWORKERIDENTITY => {:type => ::Thrift::Types::STRING, :name => 'lastWorkerIdentity', :optional => true},
|
4271
|
+
LASTFAILUREDETAILS => {:type => ::Thrift::Types::STRING, :name => 'lastFailureDetails', :binary => true, :optional => true}
|
4272
|
+
}
|
4273
|
+
|
4274
|
+
def struct_fields; FIELDS; end
|
4275
|
+
|
4276
|
+
def validate
|
4277
|
+
unless @state.nil? || ::CadenceThrift::PendingActivityState::VALID_VALUES.include?(@state)
|
4278
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field state!')
|
4279
|
+
end
|
4280
|
+
end
|
4281
|
+
|
4282
|
+
::Thrift::Struct.generate_accessors self
|
4283
|
+
end
|
4284
|
+
|
4285
|
+
class PendingChildExecutionInfo
|
4286
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
4287
|
+
WORKFLOWID = 10
|
4288
|
+
RUNID = 20
|
4289
|
+
WORKFLOWTYPNAME = 30
|
4290
|
+
INITIATEDID = 40
|
4291
|
+
PARENTCLOSEPOLICY = 50
|
4292
|
+
|
4293
|
+
FIELDS = {
|
4294
|
+
WORKFLOWID => {:type => ::Thrift::Types::STRING, :name => 'workflowID', :optional => true},
|
4295
|
+
RUNID => {:type => ::Thrift::Types::STRING, :name => 'runID', :optional => true},
|
4296
|
+
WORKFLOWTYPNAME => {:type => ::Thrift::Types::STRING, :name => 'workflowTypName', :optional => true},
|
4297
|
+
INITIATEDID => {:type => ::Thrift::Types::I64, :name => 'initiatedID', :optional => true},
|
4298
|
+
PARENTCLOSEPOLICY => {:type => ::Thrift::Types::I32, :name => 'parentClosePolicy', :optional => true, :enum_class => ::CadenceThrift::ParentClosePolicy}
|
4299
|
+
}
|
4300
|
+
|
4301
|
+
def struct_fields; FIELDS; end
|
4302
|
+
|
4303
|
+
def validate
|
4304
|
+
unless @parentClosePolicy.nil? || ::CadenceThrift::ParentClosePolicy::VALID_VALUES.include?(@parentClosePolicy)
|
4305
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field parentClosePolicy!')
|
4306
|
+
end
|
4307
|
+
end
|
4308
|
+
|
4309
|
+
::Thrift::Struct.generate_accessors self
|
4310
|
+
end
|
4311
|
+
|
4312
|
+
class DescribeWorkflowExecutionResponse
|
4313
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
4314
|
+
EXECUTIONCONFIGURATION = 10
|
4315
|
+
WORKFLOWEXECUTIONINFO = 20
|
4316
|
+
PENDINGACTIVITIES = 30
|
4317
|
+
PENDINGCHILDREN = 40
|
4318
|
+
|
4319
|
+
FIELDS = {
|
4320
|
+
EXECUTIONCONFIGURATION => {:type => ::Thrift::Types::STRUCT, :name => 'executionConfiguration', :class => ::CadenceThrift::WorkflowExecutionConfiguration, :optional => true},
|
4321
|
+
WORKFLOWEXECUTIONINFO => {:type => ::Thrift::Types::STRUCT, :name => 'workflowExecutionInfo', :class => ::CadenceThrift::WorkflowExecutionInfo, :optional => true},
|
4322
|
+
PENDINGACTIVITIES => {:type => ::Thrift::Types::LIST, :name => 'pendingActivities', :element => {:type => ::Thrift::Types::STRUCT, :class => ::CadenceThrift::PendingActivityInfo}, :optional => true},
|
4323
|
+
PENDINGCHILDREN => {:type => ::Thrift::Types::LIST, :name => 'pendingChildren', :element => {:type => ::Thrift::Types::STRUCT, :class => ::CadenceThrift::PendingChildExecutionInfo}, :optional => true}
|
4324
|
+
}
|
4325
|
+
|
4326
|
+
def struct_fields; FIELDS; end
|
4327
|
+
|
4328
|
+
def validate
|
4329
|
+
end
|
4330
|
+
|
4331
|
+
::Thrift::Struct.generate_accessors self
|
4332
|
+
end
|
4333
|
+
|
4334
|
+
class DescribeTaskListRequest
|
4335
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
4336
|
+
DOMAIN = 10
|
4337
|
+
TASKLIST = 20
|
4338
|
+
TASKLISTTYPE = 30
|
4339
|
+
INCLUDETASKLISTSTATUS = 40
|
4340
|
+
|
4341
|
+
FIELDS = {
|
4342
|
+
DOMAIN => {:type => ::Thrift::Types::STRING, :name => 'domain', :optional => true},
|
4343
|
+
TASKLIST => {:type => ::Thrift::Types::STRUCT, :name => 'taskList', :class => ::CadenceThrift::TaskList, :optional => true},
|
4344
|
+
TASKLISTTYPE => {:type => ::Thrift::Types::I32, :name => 'taskListType', :optional => true, :enum_class => ::CadenceThrift::TaskListType},
|
4345
|
+
INCLUDETASKLISTSTATUS => {:type => ::Thrift::Types::BOOL, :name => 'includeTaskListStatus', :optional => true}
|
4346
|
+
}
|
4347
|
+
|
4348
|
+
def struct_fields; FIELDS; end
|
4349
|
+
|
4350
|
+
def validate
|
4351
|
+
end
|
4352
|
+
|
4353
|
+
::Thrift::Struct.generate_accessors self
|
4354
|
+
end
|
4355
|
+
|
4356
|
+
class DescribeTaskListResponse
|
4357
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
4358
|
+
POLLERS = 10
|
4359
|
+
TASKLISTSTATUS = 20
|
4360
|
+
|
4361
|
+
FIELDS = {
|
4362
|
+
POLLERS => {:type => ::Thrift::Types::LIST, :name => 'pollers', :element => {:type => ::Thrift::Types::STRUCT, :class => ::CadenceThrift::PollerInfo}, :optional => true},
|
4363
|
+
TASKLISTSTATUS => {:type => ::Thrift::Types::STRUCT, :name => 'taskListStatus', :class => ::CadenceThrift::TaskListStatus, :optional => true}
|
4364
|
+
}
|
4365
|
+
|
4366
|
+
def struct_fields; FIELDS; end
|
4367
|
+
|
4368
|
+
def validate
|
4369
|
+
end
|
4370
|
+
|
4371
|
+
::Thrift::Struct.generate_accessors self
|
4372
|
+
end
|
4373
|
+
|
4374
|
+
class TaskListStatus
|
4375
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
4376
|
+
BACKLOGCOUNTHINT = 10
|
4377
|
+
READLEVEL = 20
|
4378
|
+
ACKLEVEL = 30
|
4379
|
+
RATEPERSECOND = 35
|
4380
|
+
TASKIDBLOCK = 40
|
4381
|
+
|
4382
|
+
FIELDS = {
|
4383
|
+
BACKLOGCOUNTHINT => {:type => ::Thrift::Types::I64, :name => 'backlogCountHint', :optional => true},
|
4384
|
+
READLEVEL => {:type => ::Thrift::Types::I64, :name => 'readLevel', :optional => true},
|
4385
|
+
ACKLEVEL => {:type => ::Thrift::Types::I64, :name => 'ackLevel', :optional => true},
|
4386
|
+
RATEPERSECOND => {:type => ::Thrift::Types::DOUBLE, :name => 'ratePerSecond', :optional => true},
|
4387
|
+
TASKIDBLOCK => {:type => ::Thrift::Types::STRUCT, :name => 'taskIDBlock', :class => ::CadenceThrift::TaskIDBlock, :optional => true}
|
4388
|
+
}
|
4389
|
+
|
4390
|
+
def struct_fields; FIELDS; end
|
4391
|
+
|
4392
|
+
def validate
|
4393
|
+
end
|
4394
|
+
|
4395
|
+
::Thrift::Struct.generate_accessors self
|
4396
|
+
end
|
4397
|
+
|
4398
|
+
class TaskIDBlock
|
4399
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
4400
|
+
STARTID = 10
|
4401
|
+
ENDID = 20
|
4402
|
+
|
4403
|
+
FIELDS = {
|
4404
|
+
STARTID => {:type => ::Thrift::Types::I64, :name => 'startID', :optional => true},
|
4405
|
+
ENDID => {:type => ::Thrift::Types::I64, :name => 'endID', :optional => true}
|
4406
|
+
}
|
4407
|
+
|
4408
|
+
def struct_fields; FIELDS; end
|
4409
|
+
|
4410
|
+
def validate
|
4411
|
+
end
|
4412
|
+
|
4413
|
+
::Thrift::Struct.generate_accessors self
|
4414
|
+
end
|
4415
|
+
|
4416
|
+
class DescribeHistoryHostRequest
|
4417
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
4418
|
+
HOSTADDRESS = 10
|
4419
|
+
SHARDIDFORHOST = 20
|
4420
|
+
EXECUTIONFORHOST = 30
|
4421
|
+
|
4422
|
+
FIELDS = {
|
4423
|
+
HOSTADDRESS => {:type => ::Thrift::Types::STRING, :name => 'hostAddress', :optional => true},
|
4424
|
+
SHARDIDFORHOST => {:type => ::Thrift::Types::I32, :name => 'shardIdForHost', :optional => true},
|
4425
|
+
EXECUTIONFORHOST => {:type => ::Thrift::Types::STRUCT, :name => 'executionForHost', :class => ::CadenceThrift::WorkflowExecution, :optional => true}
|
4426
|
+
}
|
4427
|
+
|
4428
|
+
def struct_fields; FIELDS; end
|
4429
|
+
|
4430
|
+
def validate
|
4431
|
+
end
|
4432
|
+
|
4433
|
+
::Thrift::Struct.generate_accessors self
|
4434
|
+
end
|
4435
|
+
|
4436
|
+
class RemoveTaskRequest
|
4437
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
4438
|
+
SHARDID = 10
|
4439
|
+
TYPE = 20
|
4440
|
+
TASKID = 30
|
4441
|
+
|
4442
|
+
FIELDS = {
|
4443
|
+
SHARDID => {:type => ::Thrift::Types::I32, :name => 'shardID', :optional => true},
|
4444
|
+
TYPE => {:type => ::Thrift::Types::I32, :name => 'type', :optional => true},
|
4445
|
+
TASKID => {:type => ::Thrift::Types::I64, :name => 'taskID', :optional => true}
|
4446
|
+
}
|
4447
|
+
|
4448
|
+
def struct_fields; FIELDS; end
|
4449
|
+
|
4450
|
+
def validate
|
4451
|
+
end
|
4452
|
+
|
4453
|
+
::Thrift::Struct.generate_accessors self
|
4454
|
+
end
|
4455
|
+
|
4456
|
+
class CloseShardRequest
|
4457
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
4458
|
+
SHARDID = 10
|
4459
|
+
|
4460
|
+
FIELDS = {
|
4461
|
+
SHARDID => {:type => ::Thrift::Types::I32, :name => 'shardID', :optional => true}
|
4462
|
+
}
|
4463
|
+
|
4464
|
+
def struct_fields; FIELDS; end
|
4465
|
+
|
4466
|
+
def validate
|
4467
|
+
end
|
4468
|
+
|
4469
|
+
::Thrift::Struct.generate_accessors self
|
4470
|
+
end
|
4471
|
+
|
4472
|
+
class DescribeHistoryHostResponse
|
4473
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
4474
|
+
NUMBEROFSHARDS = 10
|
4475
|
+
SHARDIDS = 20
|
4476
|
+
DOMAINCACHE = 30
|
4477
|
+
SHARDCONTROLLERSTATUS = 40
|
4478
|
+
ADDRESS = 50
|
4479
|
+
|
4480
|
+
FIELDS = {
|
4481
|
+
NUMBEROFSHARDS => {:type => ::Thrift::Types::I32, :name => 'numberOfShards', :optional => true},
|
4482
|
+
SHARDIDS => {:type => ::Thrift::Types::LIST, :name => 'shardIDs', :element => {:type => ::Thrift::Types::I32}, :optional => true},
|
4483
|
+
DOMAINCACHE => {:type => ::Thrift::Types::STRUCT, :name => 'domainCache', :class => ::CadenceThrift::DomainCacheInfo, :optional => true},
|
4484
|
+
SHARDCONTROLLERSTATUS => {:type => ::Thrift::Types::STRING, :name => 'shardControllerStatus', :optional => true},
|
4485
|
+
ADDRESS => {:type => ::Thrift::Types::STRING, :name => 'address', :optional => true}
|
4486
|
+
}
|
4487
|
+
|
4488
|
+
def struct_fields; FIELDS; end
|
4489
|
+
|
4490
|
+
def validate
|
4491
|
+
end
|
4492
|
+
|
4493
|
+
::Thrift::Struct.generate_accessors self
|
4494
|
+
end
|
4495
|
+
|
4496
|
+
class DomainCacheInfo
|
4497
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
4498
|
+
NUMOFITEMSINCACHEBYID = 10
|
4499
|
+
NUMOFITEMSINCACHEBYNAME = 20
|
4500
|
+
|
4501
|
+
FIELDS = {
|
4502
|
+
NUMOFITEMSINCACHEBYID => {:type => ::Thrift::Types::I64, :name => 'numOfItemsInCacheByID', :optional => true},
|
4503
|
+
NUMOFITEMSINCACHEBYNAME => {:type => ::Thrift::Types::I64, :name => 'numOfItemsInCacheByName', :optional => true}
|
4504
|
+
}
|
4505
|
+
|
4506
|
+
def struct_fields; FIELDS; end
|
4507
|
+
|
4508
|
+
def validate
|
4509
|
+
end
|
4510
|
+
|
4511
|
+
::Thrift::Struct.generate_accessors self
|
4512
|
+
end
|
4513
|
+
|
4514
|
+
class PollerInfo
|
4515
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
4516
|
+
LASTACCESSTIME = 10
|
4517
|
+
IDENTITY = 20
|
4518
|
+
RATEPERSECOND = 30
|
4519
|
+
|
4520
|
+
FIELDS = {
|
4521
|
+
LASTACCESSTIME => {:type => ::Thrift::Types::I64, :name => 'lastAccessTime', :optional => true},
|
4522
|
+
IDENTITY => {:type => ::Thrift::Types::STRING, :name => 'identity', :optional => true},
|
4523
|
+
RATEPERSECOND => {:type => ::Thrift::Types::DOUBLE, :name => 'ratePerSecond', :optional => true}
|
4524
|
+
}
|
4525
|
+
|
4526
|
+
def struct_fields; FIELDS; end
|
4527
|
+
|
4528
|
+
def validate
|
4529
|
+
end
|
4530
|
+
|
4531
|
+
::Thrift::Struct.generate_accessors self
|
4532
|
+
end
|
4533
|
+
|
4534
|
+
class RetryPolicy
|
4535
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
4536
|
+
INITIALINTERVALINSECONDS = 10
|
4537
|
+
BACKOFFCOEFFICIENT = 20
|
4538
|
+
MAXIMUMINTERVALINSECONDS = 30
|
4539
|
+
MAXIMUMATTEMPTS = 40
|
4540
|
+
NONRETRIABLEERRORREASONS = 50
|
4541
|
+
EXPIRATIONINTERVALINSECONDS = 60
|
4542
|
+
|
4543
|
+
FIELDS = {
|
4544
|
+
INITIALINTERVALINSECONDS => {:type => ::Thrift::Types::I32, :name => 'initialIntervalInSeconds', :optional => true},
|
4545
|
+
BACKOFFCOEFFICIENT => {:type => ::Thrift::Types::DOUBLE, :name => 'backoffCoefficient', :optional => true},
|
4546
|
+
MAXIMUMINTERVALINSECONDS => {:type => ::Thrift::Types::I32, :name => 'maximumIntervalInSeconds', :optional => true},
|
4547
|
+
MAXIMUMATTEMPTS => {:type => ::Thrift::Types::I32, :name => 'maximumAttempts', :optional => true},
|
4548
|
+
NONRETRIABLEERRORREASONS => {:type => ::Thrift::Types::LIST, :name => 'nonRetriableErrorReasons', :element => {:type => ::Thrift::Types::STRING}, :optional => true},
|
4549
|
+
EXPIRATIONINTERVALINSECONDS => {:type => ::Thrift::Types::I32, :name => 'expirationIntervalInSeconds', :optional => true}
|
4550
|
+
}
|
4551
|
+
|
4552
|
+
def struct_fields; FIELDS; end
|
4553
|
+
|
4554
|
+
def validate
|
4555
|
+
end
|
4556
|
+
|
4557
|
+
::Thrift::Struct.generate_accessors self
|
4558
|
+
end
|
4559
|
+
|
4560
|
+
class HistoryBranchRange
|
4561
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
4562
|
+
BRANCHID = 10
|
4563
|
+
BEGINNODEID = 20
|
4564
|
+
ENDNODEID = 30
|
4565
|
+
|
4566
|
+
FIELDS = {
|
4567
|
+
BRANCHID => {:type => ::Thrift::Types::STRING, :name => 'branchID', :optional => true},
|
4568
|
+
BEGINNODEID => {:type => ::Thrift::Types::I64, :name => 'beginNodeID', :optional => true},
|
4569
|
+
ENDNODEID => {:type => ::Thrift::Types::I64, :name => 'endNodeID', :optional => true}
|
4570
|
+
}
|
4571
|
+
|
4572
|
+
def struct_fields; FIELDS; end
|
4573
|
+
|
4574
|
+
def validate
|
4575
|
+
end
|
4576
|
+
|
4577
|
+
::Thrift::Struct.generate_accessors self
|
4578
|
+
end
|
4579
|
+
|
4580
|
+
class HistoryBranch
|
4581
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
4582
|
+
TREEID = 10
|
4583
|
+
BRANCHID = 20
|
4584
|
+
ANCESTORS = 30
|
4585
|
+
|
4586
|
+
FIELDS = {
|
4587
|
+
TREEID => {:type => ::Thrift::Types::STRING, :name => 'treeID', :optional => true},
|
4588
|
+
BRANCHID => {:type => ::Thrift::Types::STRING, :name => 'branchID', :optional => true},
|
4589
|
+
ANCESTORS => {:type => ::Thrift::Types::LIST, :name => 'ancestors', :element => {:type => ::Thrift::Types::STRUCT, :class => ::CadenceThrift::HistoryBranchRange}, :optional => true}
|
4590
|
+
}
|
4591
|
+
|
4592
|
+
def struct_fields; FIELDS; end
|
4593
|
+
|
4594
|
+
def validate
|
4595
|
+
end
|
4596
|
+
|
4597
|
+
::Thrift::Struct.generate_accessors self
|
4598
|
+
end
|
4599
|
+
|
4600
|
+
end
|