cloudreactor_api_client 0.1.0.pre
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/README.md +92 -0
- data/cloudreactor_api_client.md +226 -0
- data/lib/cloudreactor_api_client/api/alert_methods_api.rb +482 -0
- data/lib/cloudreactor_api_client/api/email_notification_profiles_api.rb +482 -0
- data/lib/cloudreactor_api_client/api/pagerduty_profiles_api.rb +482 -0
- data/lib/cloudreactor_api_client/api/run_environments_api.rb +479 -0
- data/lib/cloudreactor_api_client/api/task_executions_api.rb +409 -0
- data/lib/cloudreactor_api_client/api/tasks_api.rb +412 -0
- data/lib/cloudreactor_api_client/api/workflow_executions_api.rb +549 -0
- data/lib/cloudreactor_api_client/api/workflow_task_instances_api.rb +424 -0
- data/lib/cloudreactor_api_client/api/workflow_transitions_api.rb +406 -0
- data/lib/cloudreactor_api_client/api/workflows_api.rb +482 -0
- data/lib/cloudreactor_api_client/api_client.rb +390 -0
- data/lib/cloudreactor_api_client/api_error.rb +57 -0
- data/lib/cloudreactor_api_client/configuration.rb +277 -0
- data/lib/cloudreactor_api_client/models/alert_method.rb +449 -0
- data/lib/cloudreactor_api_client/models/aws_ecs_execution_method.rb +517 -0
- data/lib/cloudreactor_api_client/models/aws_ecs_execution_method_capability.rb +565 -0
- data/lib/cloudreactor_api_client/models/aws_ecs_launch_type.rb +37 -0
- data/lib/cloudreactor_api_client/models/aws_ecs_run_environment_execution_method_capability.rb +476 -0
- data/lib/cloudreactor_api_client/models/aws_ecs_service_load_balancer_details.rb +307 -0
- data/lib/cloudreactor_api_client/models/aws_ecs_service_options.rb +308 -0
- data/lib/cloudreactor_api_client/models/current_service_info.rb +255 -0
- data/lib/cloudreactor_api_client/models/email_notification_profile.rb +454 -0
- data/lib/cloudreactor_api_client/models/execution_method_capability.rb +54 -0
- data/lib/cloudreactor_api_client/models/failure_behavior_enum.rb +38 -0
- data/lib/cloudreactor_api_client/models/group.rb +268 -0
- data/lib/cloudreactor_api_client/models/link.rb +301 -0
- data/lib/cloudreactor_api_client/models/name_and_uuid.rb +236 -0
- data/lib/cloudreactor_api_client/models/notification_severity.rb +39 -0
- data/lib/cloudreactor_api_client/models/pager_duty_profile.rb +484 -0
- data/lib/cloudreactor_api_client/models/paginated_alert_method_list.rb +247 -0
- data/lib/cloudreactor_api_client/models/paginated_email_notification_profile_list.rb +247 -0
- data/lib/cloudreactor_api_client/models/paginated_pager_duty_profile_list.rb +247 -0
- data/lib/cloudreactor_api_client/models/paginated_run_environment_list.rb +247 -0
- data/lib/cloudreactor_api_client/models/paginated_task_execution_list.rb +247 -0
- data/lib/cloudreactor_api_client/models/paginated_task_list.rb +247 -0
- data/lib/cloudreactor_api_client/models/paginated_workflow_execution_summary_list.rb +247 -0
- data/lib/cloudreactor_api_client/models/paginated_workflow_summary_list.rb +247 -0
- data/lib/cloudreactor_api_client/models/paginated_workflow_task_instance_list.rb +247 -0
- data/lib/cloudreactor_api_client/models/paginated_workflow_transition_list.rb +247 -0
- data/lib/cloudreactor_api_client/models/patched_alert_method.rb +405 -0
- data/lib/cloudreactor_api_client/models/patched_email_notification_profile.rb +415 -0
- data/lib/cloudreactor_api_client/models/patched_pager_duty_profile.rb +436 -0
- data/lib/cloudreactor_api_client/models/patched_run_environment.rb +511 -0
- data/lib/cloudreactor_api_client/models/patched_task.rb +897 -0
- data/lib/cloudreactor_api_client/models/patched_task_execution.rb +1904 -0
- data/lib/cloudreactor_api_client/models/patched_workflow.rb +507 -0
- data/lib/cloudreactor_api_client/models/patched_workflow_execution.rb +559 -0
- data/lib/cloudreactor_api_client/models/patched_workflow_task_instance.rb +676 -0
- data/lib/cloudreactor_api_client/models/patched_workflow_transition.rb +432 -0
- data/lib/cloudreactor_api_client/models/propagate_tags_enum.rb +37 -0
- data/lib/cloudreactor_api_client/models/rule_type_enum.rb +43 -0
- data/lib/cloudreactor_api_client/models/run_environment.rb +555 -0
- data/lib/cloudreactor_api_client/models/start_transition_condition_enum.rb +39 -0
- data/lib/cloudreactor_api_client/models/stop_reason_enum.rb +42 -0
- data/lib/cloudreactor_api_client/models/task.rb +941 -0
- data/lib/cloudreactor_api_client/models/task_execution.rb +1954 -0
- data/lib/cloudreactor_api_client/models/task_execution_status.rb +46 -0
- data/lib/cloudreactor_api_client/models/threshold_property_enum.rb +39 -0
- data/lib/cloudreactor_api_client/models/timeout_behavior_enum.rb +40 -0
- data/lib/cloudreactor_api_client/models/unknown_execution_method_capability.rb +238 -0
- data/lib/cloudreactor_api_client/models/workflow.rb +556 -0
- data/lib/cloudreactor_api_client/models/workflow_execution.rb +629 -0
- data/lib/cloudreactor_api_client/models/workflow_execution_status.rb +42 -0
- data/lib/cloudreactor_api_client/models/workflow_execution_summary.rb +523 -0
- data/lib/cloudreactor_api_client/models/workflow_summary.rb +513 -0
- data/lib/cloudreactor_api_client/models/workflow_task_instance.rb +715 -0
- data/lib/cloudreactor_api_client/models/workflow_task_instance_execution.rb +280 -0
- data/lib/cloudreactor_api_client/models/workflow_task_instance_execution_base.rb +270 -0
- data/lib/cloudreactor_api_client/models/workflow_transition.rb +467 -0
- data/lib/cloudreactor_api_client/models/workflow_transition_evaluation.rb +280 -0
- data/lib/cloudreactor_api_client/version.rb +15 -0
- data/lib/cloudreactor_api_client.rb +121 -0
- data/lib/cloudreactor_wrapper_io/status_updater.rb +124 -0
- data/lib/cloudreactor_wrapper_io.rb +13 -0
- data/spec/api/alert_methods_api_spec.rb +114 -0
- data/spec/api/email_notification_profiles_api_spec.rb +114 -0
- data/spec/api/pagerduty_profiles_api_spec.rb +114 -0
- data/spec/api/run_environments_api_spec.rb +113 -0
- data/spec/api/task_executions_api_spec.rb +102 -0
- data/spec/api/tasks_api_spec.rb +103 -0
- data/spec/api/workflow_executions_api_spec.rb +124 -0
- data/spec/api/workflow_task_instances_api_spec.rb +107 -0
- data/spec/api/workflow_transitions_api_spec.rb +101 -0
- data/spec/api/workflows_api_spec.rb +114 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/integration/task_execution_integration_spec.rb +51 -0
- data/spec/models/alert_method_spec.rb +136 -0
- data/spec/models/aws_ecs_execution_method_capability_spec.rb +166 -0
- data/spec/models/aws_ecs_execution_method_spec.rb +148 -0
- data/spec/models/aws_ecs_launch_type_spec.rb +28 -0
- data/spec/models/aws_ecs_run_environment_execution_method_capability_spec.rb +130 -0
- data/spec/models/aws_ecs_service_load_balancer_details_spec.rb +46 -0
- data/spec/models/aws_ecs_service_options_spec.rb +88 -0
- data/spec/models/current_service_info_spec.rb +52 -0
- data/spec/models/email_notification_profile_spec.rb +118 -0
- data/spec/models/execution_method_capability_spec.rb +43 -0
- data/spec/models/failure_behavior_enum_spec.rb +28 -0
- data/spec/models/group_spec.rb +46 -0
- data/spec/models/link_spec.rb +70 -0
- data/spec/models/name_and_uuid_spec.rb +46 -0
- data/spec/models/notification_severity_spec.rb +28 -0
- data/spec/models/pager_duty_profile_spec.rb +118 -0
- data/spec/models/paginated_alert_method_list_spec.rb +52 -0
- data/spec/models/paginated_email_notification_profile_list_spec.rb +52 -0
- data/spec/models/paginated_pager_duty_profile_list_spec.rb +52 -0
- data/spec/models/paginated_run_environment_list_spec.rb +52 -0
- data/spec/models/paginated_task_execution_list_spec.rb +52 -0
- data/spec/models/paginated_task_list_spec.rb +52 -0
- data/spec/models/paginated_workflow_execution_summary_list_spec.rb +52 -0
- data/spec/models/paginated_workflow_summary_list_spec.rb +52 -0
- data/spec/models/paginated_workflow_task_instance_list_spec.rb +52 -0
- data/spec/models/paginated_workflow_transition_list_spec.rb +52 -0
- data/spec/models/patched_alert_method_spec.rb +136 -0
- data/spec/models/patched_email_notification_profile_spec.rb +118 -0
- data/spec/models/patched_pager_duty_profile_spec.rb +118 -0
- data/spec/models/patched_run_environment_spec.rb +136 -0
- data/spec/models/patched_task_execution_spec.rb +466 -0
- data/spec/models/patched_task_spec.rb +244 -0
- data/spec/models/patched_workflow_execution_spec.rb +172 -0
- data/spec/models/patched_workflow_spec.rb +142 -0
- data/spec/models/patched_workflow_task_instance_spec.rb +196 -0
- data/spec/models/patched_workflow_transition_spec.rb +118 -0
- data/spec/models/propagate_tags_enum_spec.rb +28 -0
- data/spec/models/rule_type_enum_spec.rb +28 -0
- data/spec/models/run_environment_spec.rb +136 -0
- data/spec/models/start_transition_condition_enum_spec.rb +28 -0
- data/spec/models/stop_reason_enum_spec.rb +28 -0
- data/spec/models/task_execution_spec.rb +466 -0
- data/spec/models/task_execution_status_spec.rb +28 -0
- data/spec/models/task_spec.rb +244 -0
- data/spec/models/threshold_property_enum_spec.rb +28 -0
- data/spec/models/timeout_behavior_enum_spec.rb +28 -0
- data/spec/models/unknown_execution_method_capability_spec.rb +40 -0
- data/spec/models/workflow_execution_spec.rb +172 -0
- data/spec/models/workflow_execution_status_spec.rb +28 -0
- data/spec/models/workflow_execution_summary_spec.rb +130 -0
- data/spec/models/workflow_spec.rb +142 -0
- data/spec/models/workflow_summary_spec.rb +124 -0
- data/spec/models/workflow_task_instance_execution_base_spec.rb +58 -0
- data/spec/models/workflow_task_instance_execution_spec.rb +64 -0
- data/spec/models/workflow_task_instance_spec.rb +196 -0
- data/spec/models/workflow_transition_evaluation_spec.rb +64 -0
- data/spec/models/workflow_transition_spec.rb +118 -0
- data/spec/spec_helper.rb +111 -0
- data/spec/wrapper_io/status_updater_spec.rb +147 -0
- metadata +305 -0
@@ -0,0 +1,549 @@
|
|
1
|
+
=begin
|
2
|
+
#CloudReactor API
|
3
|
+
|
4
|
+
#CloudReactor API Documentation
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 0.2.0
|
7
|
+
Contact: jeff@cloudreactor.io
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.4.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'cgi'
|
14
|
+
|
15
|
+
module CloudReactorAPIClient
|
16
|
+
class WorkflowExecutionsApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# @param workflow_execution [WorkflowExecution]
|
23
|
+
# @param [Hash] opts the optional parameters
|
24
|
+
# @return [WorkflowExecution]
|
25
|
+
def workflow_executions_create(workflow_execution, opts = {})
|
26
|
+
data, _status_code, _headers = workflow_executions_create_with_http_info(workflow_execution, opts)
|
27
|
+
data
|
28
|
+
end
|
29
|
+
|
30
|
+
# @param workflow_execution [WorkflowExecution]
|
31
|
+
# @param [Hash] opts the optional parameters
|
32
|
+
# @return [Array<(WorkflowExecution, Integer, Hash)>] WorkflowExecution data, response status code and response headers
|
33
|
+
def workflow_executions_create_with_http_info(workflow_execution, opts = {})
|
34
|
+
if @api_client.config.debugging
|
35
|
+
@api_client.config.logger.debug 'Calling API: WorkflowExecutionsApi.workflow_executions_create ...'
|
36
|
+
end
|
37
|
+
# verify the required parameter 'workflow_execution' is set
|
38
|
+
if @api_client.config.client_side_validation && workflow_execution.nil?
|
39
|
+
fail ArgumentError, "Missing the required parameter 'workflow_execution' when calling WorkflowExecutionsApi.workflow_executions_create"
|
40
|
+
end
|
41
|
+
# resource path
|
42
|
+
local_var_path = '/workflow_executions/'
|
43
|
+
|
44
|
+
# query parameters
|
45
|
+
query_params = opts[:query_params] || {}
|
46
|
+
|
47
|
+
# header parameters
|
48
|
+
header_params = opts[:header_params] || {}
|
49
|
+
# HTTP header 'Accept' (if needed)
|
50
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
51
|
+
# HTTP header 'Content-Type'
|
52
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
53
|
+
if !content_type.nil?
|
54
|
+
header_params['Content-Type'] = content_type
|
55
|
+
end
|
56
|
+
|
57
|
+
# form parameters
|
58
|
+
form_params = opts[:form_params] || {}
|
59
|
+
|
60
|
+
# http body (model)
|
61
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(workflow_execution)
|
62
|
+
|
63
|
+
# return_type
|
64
|
+
return_type = opts[:debug_return_type] || 'WorkflowExecution'
|
65
|
+
|
66
|
+
# auth_names
|
67
|
+
auth_names = opts[:debug_auth_names] || ['tokenAuth']
|
68
|
+
|
69
|
+
new_options = opts.merge(
|
70
|
+
:operation => :"WorkflowExecutionsApi.workflow_executions_create",
|
71
|
+
:header_params => header_params,
|
72
|
+
:query_params => query_params,
|
73
|
+
:form_params => form_params,
|
74
|
+
:body => post_body,
|
75
|
+
:auth_names => auth_names,
|
76
|
+
:return_type => return_type
|
77
|
+
)
|
78
|
+
|
79
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
80
|
+
if @api_client.config.debugging
|
81
|
+
@api_client.config.logger.debug "API called: WorkflowExecutionsApi#workflow_executions_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
82
|
+
end
|
83
|
+
return data, status_code, headers
|
84
|
+
end
|
85
|
+
|
86
|
+
# @param uuid [String]
|
87
|
+
# @param [Hash] opts the optional parameters
|
88
|
+
# @return [nil]
|
89
|
+
def workflow_executions_destroy(uuid, opts = {})
|
90
|
+
workflow_executions_destroy_with_http_info(uuid, opts)
|
91
|
+
nil
|
92
|
+
end
|
93
|
+
|
94
|
+
# @param uuid [String]
|
95
|
+
# @param [Hash] opts the optional parameters
|
96
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
97
|
+
def workflow_executions_destroy_with_http_info(uuid, opts = {})
|
98
|
+
if @api_client.config.debugging
|
99
|
+
@api_client.config.logger.debug 'Calling API: WorkflowExecutionsApi.workflow_executions_destroy ...'
|
100
|
+
end
|
101
|
+
# verify the required parameter 'uuid' is set
|
102
|
+
if @api_client.config.client_side_validation && uuid.nil?
|
103
|
+
fail ArgumentError, "Missing the required parameter 'uuid' when calling WorkflowExecutionsApi.workflow_executions_destroy"
|
104
|
+
end
|
105
|
+
# resource path
|
106
|
+
local_var_path = '/workflow_executions/{uuid}/'.sub('{' + 'uuid' + '}', CGI.escape(uuid.to_s))
|
107
|
+
|
108
|
+
# query parameters
|
109
|
+
query_params = opts[:query_params] || {}
|
110
|
+
|
111
|
+
# header parameters
|
112
|
+
header_params = opts[:header_params] || {}
|
113
|
+
|
114
|
+
# form parameters
|
115
|
+
form_params = opts[:form_params] || {}
|
116
|
+
|
117
|
+
# http body (model)
|
118
|
+
post_body = opts[:debug_body]
|
119
|
+
|
120
|
+
# return_type
|
121
|
+
return_type = opts[:debug_return_type]
|
122
|
+
|
123
|
+
# auth_names
|
124
|
+
auth_names = opts[:debug_auth_names] || ['tokenAuth']
|
125
|
+
|
126
|
+
new_options = opts.merge(
|
127
|
+
:operation => :"WorkflowExecutionsApi.workflow_executions_destroy",
|
128
|
+
:header_params => header_params,
|
129
|
+
:query_params => query_params,
|
130
|
+
:form_params => form_params,
|
131
|
+
:body => post_body,
|
132
|
+
:auth_names => auth_names,
|
133
|
+
:return_type => return_type
|
134
|
+
)
|
135
|
+
|
136
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
137
|
+
if @api_client.config.debugging
|
138
|
+
@api_client.config.logger.debug "API called: WorkflowExecutionsApi#workflow_executions_destroy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
139
|
+
end
|
140
|
+
return data, status_code, headers
|
141
|
+
end
|
142
|
+
|
143
|
+
# @param [Hash] opts the optional parameters
|
144
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
145
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
146
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
147
|
+
# @option opts [String] :search A search term.
|
148
|
+
# @option opts [String] :workflow__created_by_group__id
|
149
|
+
# @option opts [String] :workflow__uuid
|
150
|
+
# @return [PaginatedWorkflowExecutionSummaryList]
|
151
|
+
def workflow_executions_list(opts = {})
|
152
|
+
data, _status_code, _headers = workflow_executions_list_with_http_info(opts)
|
153
|
+
data
|
154
|
+
end
|
155
|
+
|
156
|
+
# @param [Hash] opts the optional parameters
|
157
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
158
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
159
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
160
|
+
# @option opts [String] :search A search term.
|
161
|
+
# @option opts [String] :workflow__created_by_group__id
|
162
|
+
# @option opts [String] :workflow__uuid
|
163
|
+
# @return [Array<(PaginatedWorkflowExecutionSummaryList, Integer, Hash)>] PaginatedWorkflowExecutionSummaryList data, response status code and response headers
|
164
|
+
def workflow_executions_list_with_http_info(opts = {})
|
165
|
+
if @api_client.config.debugging
|
166
|
+
@api_client.config.logger.debug 'Calling API: WorkflowExecutionsApi.workflow_executions_list ...'
|
167
|
+
end
|
168
|
+
# resource path
|
169
|
+
local_var_path = '/workflow_executions/'
|
170
|
+
|
171
|
+
# query parameters
|
172
|
+
query_params = opts[:query_params] || {}
|
173
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
174
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
175
|
+
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
176
|
+
query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
|
177
|
+
query_params[:'workflow__created_by_group__id'] = opts[:'workflow__created_by_group__id'] if !opts[:'workflow__created_by_group__id'].nil?
|
178
|
+
query_params[:'workflow__uuid'] = opts[:'workflow__uuid'] if !opts[:'workflow__uuid'].nil?
|
179
|
+
|
180
|
+
# header parameters
|
181
|
+
header_params = opts[:header_params] || {}
|
182
|
+
# HTTP header 'Accept' (if needed)
|
183
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
184
|
+
|
185
|
+
# form parameters
|
186
|
+
form_params = opts[:form_params] || {}
|
187
|
+
|
188
|
+
# http body (model)
|
189
|
+
post_body = opts[:debug_body]
|
190
|
+
|
191
|
+
# return_type
|
192
|
+
return_type = opts[:debug_return_type] || 'PaginatedWorkflowExecutionSummaryList'
|
193
|
+
|
194
|
+
# auth_names
|
195
|
+
auth_names = opts[:debug_auth_names] || ['tokenAuth']
|
196
|
+
|
197
|
+
new_options = opts.merge(
|
198
|
+
:operation => :"WorkflowExecutionsApi.workflow_executions_list",
|
199
|
+
:header_params => header_params,
|
200
|
+
:query_params => query_params,
|
201
|
+
:form_params => form_params,
|
202
|
+
:body => post_body,
|
203
|
+
:auth_names => auth_names,
|
204
|
+
:return_type => return_type
|
205
|
+
)
|
206
|
+
|
207
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
208
|
+
if @api_client.config.debugging
|
209
|
+
@api_client.config.logger.debug "API called: WorkflowExecutionsApi#workflow_executions_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
210
|
+
end
|
211
|
+
return data, status_code, headers
|
212
|
+
end
|
213
|
+
|
214
|
+
# @param uuid [String]
|
215
|
+
# @param [Hash] opts the optional parameters
|
216
|
+
# @option opts [PatchedWorkflowExecution] :patched_workflow_execution
|
217
|
+
# @return [WorkflowExecution]
|
218
|
+
def workflow_executions_partial_update(uuid, opts = {})
|
219
|
+
data, _status_code, _headers = workflow_executions_partial_update_with_http_info(uuid, opts)
|
220
|
+
data
|
221
|
+
end
|
222
|
+
|
223
|
+
# @param uuid [String]
|
224
|
+
# @param [Hash] opts the optional parameters
|
225
|
+
# @option opts [PatchedWorkflowExecution] :patched_workflow_execution
|
226
|
+
# @return [Array<(WorkflowExecution, Integer, Hash)>] WorkflowExecution data, response status code and response headers
|
227
|
+
def workflow_executions_partial_update_with_http_info(uuid, opts = {})
|
228
|
+
if @api_client.config.debugging
|
229
|
+
@api_client.config.logger.debug 'Calling API: WorkflowExecutionsApi.workflow_executions_partial_update ...'
|
230
|
+
end
|
231
|
+
# verify the required parameter 'uuid' is set
|
232
|
+
if @api_client.config.client_side_validation && uuid.nil?
|
233
|
+
fail ArgumentError, "Missing the required parameter 'uuid' when calling WorkflowExecutionsApi.workflow_executions_partial_update"
|
234
|
+
end
|
235
|
+
# resource path
|
236
|
+
local_var_path = '/workflow_executions/{uuid}/'.sub('{' + 'uuid' + '}', CGI.escape(uuid.to_s))
|
237
|
+
|
238
|
+
# query parameters
|
239
|
+
query_params = opts[:query_params] || {}
|
240
|
+
|
241
|
+
# header parameters
|
242
|
+
header_params = opts[:header_params] || {}
|
243
|
+
# HTTP header 'Accept' (if needed)
|
244
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
245
|
+
# HTTP header 'Content-Type'
|
246
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
247
|
+
if !content_type.nil?
|
248
|
+
header_params['Content-Type'] = content_type
|
249
|
+
end
|
250
|
+
|
251
|
+
# form parameters
|
252
|
+
form_params = opts[:form_params] || {}
|
253
|
+
|
254
|
+
# http body (model)
|
255
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'patched_workflow_execution'])
|
256
|
+
|
257
|
+
# return_type
|
258
|
+
return_type = opts[:debug_return_type] || 'WorkflowExecution'
|
259
|
+
|
260
|
+
# auth_names
|
261
|
+
auth_names = opts[:debug_auth_names] || ['tokenAuth']
|
262
|
+
|
263
|
+
new_options = opts.merge(
|
264
|
+
:operation => :"WorkflowExecutionsApi.workflow_executions_partial_update",
|
265
|
+
:header_params => header_params,
|
266
|
+
:query_params => query_params,
|
267
|
+
:form_params => form_params,
|
268
|
+
:body => post_body,
|
269
|
+
:auth_names => auth_names,
|
270
|
+
:return_type => return_type
|
271
|
+
)
|
272
|
+
|
273
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
274
|
+
if @api_client.config.debugging
|
275
|
+
@api_client.config.logger.debug "API called: WorkflowExecutionsApi#workflow_executions_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
276
|
+
end
|
277
|
+
return data, status_code, headers
|
278
|
+
end
|
279
|
+
|
280
|
+
# @param uuid [String]
|
281
|
+
# @param [Hash] opts the optional parameters
|
282
|
+
# @return [WorkflowExecution]
|
283
|
+
def workflow_executions_retrieve(uuid, opts = {})
|
284
|
+
data, _status_code, _headers = workflow_executions_retrieve_with_http_info(uuid, opts)
|
285
|
+
data
|
286
|
+
end
|
287
|
+
|
288
|
+
# @param uuid [String]
|
289
|
+
# @param [Hash] opts the optional parameters
|
290
|
+
# @return [Array<(WorkflowExecution, Integer, Hash)>] WorkflowExecution data, response status code and response headers
|
291
|
+
def workflow_executions_retrieve_with_http_info(uuid, opts = {})
|
292
|
+
if @api_client.config.debugging
|
293
|
+
@api_client.config.logger.debug 'Calling API: WorkflowExecutionsApi.workflow_executions_retrieve ...'
|
294
|
+
end
|
295
|
+
# verify the required parameter 'uuid' is set
|
296
|
+
if @api_client.config.client_side_validation && uuid.nil?
|
297
|
+
fail ArgumentError, "Missing the required parameter 'uuid' when calling WorkflowExecutionsApi.workflow_executions_retrieve"
|
298
|
+
end
|
299
|
+
# resource path
|
300
|
+
local_var_path = '/workflow_executions/{uuid}/'.sub('{' + 'uuid' + '}', CGI.escape(uuid.to_s))
|
301
|
+
|
302
|
+
# query parameters
|
303
|
+
query_params = opts[:query_params] || {}
|
304
|
+
|
305
|
+
# header parameters
|
306
|
+
header_params = opts[:header_params] || {}
|
307
|
+
# HTTP header 'Accept' (if needed)
|
308
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
309
|
+
|
310
|
+
# form parameters
|
311
|
+
form_params = opts[:form_params] || {}
|
312
|
+
|
313
|
+
# http body (model)
|
314
|
+
post_body = opts[:debug_body]
|
315
|
+
|
316
|
+
# return_type
|
317
|
+
return_type = opts[:debug_return_type] || 'WorkflowExecution'
|
318
|
+
|
319
|
+
# auth_names
|
320
|
+
auth_names = opts[:debug_auth_names] || ['tokenAuth']
|
321
|
+
|
322
|
+
new_options = opts.merge(
|
323
|
+
:operation => :"WorkflowExecutionsApi.workflow_executions_retrieve",
|
324
|
+
:header_params => header_params,
|
325
|
+
:query_params => query_params,
|
326
|
+
:form_params => form_params,
|
327
|
+
:body => post_body,
|
328
|
+
:auth_names => auth_names,
|
329
|
+
:return_type => return_type
|
330
|
+
)
|
331
|
+
|
332
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
333
|
+
if @api_client.config.debugging
|
334
|
+
@api_client.config.logger.debug "API called: WorkflowExecutionsApi#workflow_executions_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
335
|
+
end
|
336
|
+
return data, status_code, headers
|
337
|
+
end
|
338
|
+
|
339
|
+
# @param uuid [String]
|
340
|
+
# @param workflow_execution [WorkflowExecution]
|
341
|
+
# @param [Hash] opts the optional parameters
|
342
|
+
# @return [WorkflowExecution]
|
343
|
+
def workflow_executions_retry_create(uuid, workflow_execution, opts = {})
|
344
|
+
data, _status_code, _headers = workflow_executions_retry_create_with_http_info(uuid, workflow_execution, opts)
|
345
|
+
data
|
346
|
+
end
|
347
|
+
|
348
|
+
# @param uuid [String]
|
349
|
+
# @param workflow_execution [WorkflowExecution]
|
350
|
+
# @param [Hash] opts the optional parameters
|
351
|
+
# @return [Array<(WorkflowExecution, Integer, Hash)>] WorkflowExecution data, response status code and response headers
|
352
|
+
def workflow_executions_retry_create_with_http_info(uuid, workflow_execution, opts = {})
|
353
|
+
if @api_client.config.debugging
|
354
|
+
@api_client.config.logger.debug 'Calling API: WorkflowExecutionsApi.workflow_executions_retry_create ...'
|
355
|
+
end
|
356
|
+
# verify the required parameter 'uuid' is set
|
357
|
+
if @api_client.config.client_side_validation && uuid.nil?
|
358
|
+
fail ArgumentError, "Missing the required parameter 'uuid' when calling WorkflowExecutionsApi.workflow_executions_retry_create"
|
359
|
+
end
|
360
|
+
# verify the required parameter 'workflow_execution' is set
|
361
|
+
if @api_client.config.client_side_validation && workflow_execution.nil?
|
362
|
+
fail ArgumentError, "Missing the required parameter 'workflow_execution' when calling WorkflowExecutionsApi.workflow_executions_retry_create"
|
363
|
+
end
|
364
|
+
# resource path
|
365
|
+
local_var_path = '/workflow_executions/{uuid}/retry/'.sub('{' + 'uuid' + '}', CGI.escape(uuid.to_s))
|
366
|
+
|
367
|
+
# query parameters
|
368
|
+
query_params = opts[:query_params] || {}
|
369
|
+
|
370
|
+
# header parameters
|
371
|
+
header_params = opts[:header_params] || {}
|
372
|
+
# HTTP header 'Accept' (if needed)
|
373
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
374
|
+
# HTTP header 'Content-Type'
|
375
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
376
|
+
if !content_type.nil?
|
377
|
+
header_params['Content-Type'] = content_type
|
378
|
+
end
|
379
|
+
|
380
|
+
# form parameters
|
381
|
+
form_params = opts[:form_params] || {}
|
382
|
+
|
383
|
+
# http body (model)
|
384
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(workflow_execution)
|
385
|
+
|
386
|
+
# return_type
|
387
|
+
return_type = opts[:debug_return_type] || 'WorkflowExecution'
|
388
|
+
|
389
|
+
# auth_names
|
390
|
+
auth_names = opts[:debug_auth_names] || ['tokenAuth']
|
391
|
+
|
392
|
+
new_options = opts.merge(
|
393
|
+
:operation => :"WorkflowExecutionsApi.workflow_executions_retry_create",
|
394
|
+
:header_params => header_params,
|
395
|
+
:query_params => query_params,
|
396
|
+
:form_params => form_params,
|
397
|
+
:body => post_body,
|
398
|
+
:auth_names => auth_names,
|
399
|
+
:return_type => return_type
|
400
|
+
)
|
401
|
+
|
402
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
403
|
+
if @api_client.config.debugging
|
404
|
+
@api_client.config.logger.debug "API called: WorkflowExecutionsApi#workflow_executions_retry_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
405
|
+
end
|
406
|
+
return data, status_code, headers
|
407
|
+
end
|
408
|
+
|
409
|
+
# @param uuid [String]
|
410
|
+
# @param workflow_execution [WorkflowExecution]
|
411
|
+
# @param [Hash] opts the optional parameters
|
412
|
+
# @return [WorkflowExecution]
|
413
|
+
def workflow_executions_update(uuid, workflow_execution, opts = {})
|
414
|
+
data, _status_code, _headers = workflow_executions_update_with_http_info(uuid, workflow_execution, opts)
|
415
|
+
data
|
416
|
+
end
|
417
|
+
|
418
|
+
# @param uuid [String]
|
419
|
+
# @param workflow_execution [WorkflowExecution]
|
420
|
+
# @param [Hash] opts the optional parameters
|
421
|
+
# @return [Array<(WorkflowExecution, Integer, Hash)>] WorkflowExecution data, response status code and response headers
|
422
|
+
def workflow_executions_update_with_http_info(uuid, workflow_execution, opts = {})
|
423
|
+
if @api_client.config.debugging
|
424
|
+
@api_client.config.logger.debug 'Calling API: WorkflowExecutionsApi.workflow_executions_update ...'
|
425
|
+
end
|
426
|
+
# verify the required parameter 'uuid' is set
|
427
|
+
if @api_client.config.client_side_validation && uuid.nil?
|
428
|
+
fail ArgumentError, "Missing the required parameter 'uuid' when calling WorkflowExecutionsApi.workflow_executions_update"
|
429
|
+
end
|
430
|
+
# verify the required parameter 'workflow_execution' is set
|
431
|
+
if @api_client.config.client_side_validation && workflow_execution.nil?
|
432
|
+
fail ArgumentError, "Missing the required parameter 'workflow_execution' when calling WorkflowExecutionsApi.workflow_executions_update"
|
433
|
+
end
|
434
|
+
# resource path
|
435
|
+
local_var_path = '/workflow_executions/{uuid}/'.sub('{' + 'uuid' + '}', CGI.escape(uuid.to_s))
|
436
|
+
|
437
|
+
# query parameters
|
438
|
+
query_params = opts[:query_params] || {}
|
439
|
+
|
440
|
+
# header parameters
|
441
|
+
header_params = opts[:header_params] || {}
|
442
|
+
# HTTP header 'Accept' (if needed)
|
443
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
444
|
+
# HTTP header 'Content-Type'
|
445
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
446
|
+
if !content_type.nil?
|
447
|
+
header_params['Content-Type'] = content_type
|
448
|
+
end
|
449
|
+
|
450
|
+
# form parameters
|
451
|
+
form_params = opts[:form_params] || {}
|
452
|
+
|
453
|
+
# http body (model)
|
454
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(workflow_execution)
|
455
|
+
|
456
|
+
# return_type
|
457
|
+
return_type = opts[:debug_return_type] || 'WorkflowExecution'
|
458
|
+
|
459
|
+
# auth_names
|
460
|
+
auth_names = opts[:debug_auth_names] || ['tokenAuth']
|
461
|
+
|
462
|
+
new_options = opts.merge(
|
463
|
+
:operation => :"WorkflowExecutionsApi.workflow_executions_update",
|
464
|
+
:header_params => header_params,
|
465
|
+
:query_params => query_params,
|
466
|
+
:form_params => form_params,
|
467
|
+
:body => post_body,
|
468
|
+
:auth_names => auth_names,
|
469
|
+
:return_type => return_type
|
470
|
+
)
|
471
|
+
|
472
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
473
|
+
if @api_client.config.debugging
|
474
|
+
@api_client.config.logger.debug "API called: WorkflowExecutionsApi#workflow_executions_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
475
|
+
end
|
476
|
+
return data, status_code, headers
|
477
|
+
end
|
478
|
+
|
479
|
+
# @param uuid [String]
|
480
|
+
# @param workflow_execution [WorkflowExecution]
|
481
|
+
# @param [Hash] opts the optional parameters
|
482
|
+
# @return [WorkflowExecution]
|
483
|
+
def workflow_executions_workflow_task_instance_executions_create(uuid, workflow_execution, opts = {})
|
484
|
+
data, _status_code, _headers = workflow_executions_workflow_task_instance_executions_create_with_http_info(uuid, workflow_execution, opts)
|
485
|
+
data
|
486
|
+
end
|
487
|
+
|
488
|
+
# @param uuid [String]
|
489
|
+
# @param workflow_execution [WorkflowExecution]
|
490
|
+
# @param [Hash] opts the optional parameters
|
491
|
+
# @return [Array<(WorkflowExecution, Integer, Hash)>] WorkflowExecution data, response status code and response headers
|
492
|
+
def workflow_executions_workflow_task_instance_executions_create_with_http_info(uuid, workflow_execution, opts = {})
|
493
|
+
if @api_client.config.debugging
|
494
|
+
@api_client.config.logger.debug 'Calling API: WorkflowExecutionsApi.workflow_executions_workflow_task_instance_executions_create ...'
|
495
|
+
end
|
496
|
+
# verify the required parameter 'uuid' is set
|
497
|
+
if @api_client.config.client_side_validation && uuid.nil?
|
498
|
+
fail ArgumentError, "Missing the required parameter 'uuid' when calling WorkflowExecutionsApi.workflow_executions_workflow_task_instance_executions_create"
|
499
|
+
end
|
500
|
+
# verify the required parameter 'workflow_execution' is set
|
501
|
+
if @api_client.config.client_side_validation && workflow_execution.nil?
|
502
|
+
fail ArgumentError, "Missing the required parameter 'workflow_execution' when calling WorkflowExecutionsApi.workflow_executions_workflow_task_instance_executions_create"
|
503
|
+
end
|
504
|
+
# resource path
|
505
|
+
local_var_path = '/workflow_executions/{uuid}/workflow_task_instance_executions/'.sub('{' + 'uuid' + '}', CGI.escape(uuid.to_s))
|
506
|
+
|
507
|
+
# query parameters
|
508
|
+
query_params = opts[:query_params] || {}
|
509
|
+
|
510
|
+
# header parameters
|
511
|
+
header_params = opts[:header_params] || {}
|
512
|
+
# HTTP header 'Accept' (if needed)
|
513
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
514
|
+
# HTTP header 'Content-Type'
|
515
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
516
|
+
if !content_type.nil?
|
517
|
+
header_params['Content-Type'] = content_type
|
518
|
+
end
|
519
|
+
|
520
|
+
# form parameters
|
521
|
+
form_params = opts[:form_params] || {}
|
522
|
+
|
523
|
+
# http body (model)
|
524
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(workflow_execution)
|
525
|
+
|
526
|
+
# return_type
|
527
|
+
return_type = opts[:debug_return_type] || 'WorkflowExecution'
|
528
|
+
|
529
|
+
# auth_names
|
530
|
+
auth_names = opts[:debug_auth_names] || ['tokenAuth']
|
531
|
+
|
532
|
+
new_options = opts.merge(
|
533
|
+
:operation => :"WorkflowExecutionsApi.workflow_executions_workflow_task_instance_executions_create",
|
534
|
+
:header_params => header_params,
|
535
|
+
:query_params => query_params,
|
536
|
+
:form_params => form_params,
|
537
|
+
:body => post_body,
|
538
|
+
:auth_names => auth_names,
|
539
|
+
:return_type => return_type
|
540
|
+
)
|
541
|
+
|
542
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
543
|
+
if @api_client.config.debugging
|
544
|
+
@api_client.config.logger.debug "API called: WorkflowExecutionsApi#workflow_executions_workflow_task_instance_executions_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
545
|
+
end
|
546
|
+
return data, status_code, headers
|
547
|
+
end
|
548
|
+
end
|
549
|
+
end
|