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,424 @@
|
|
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 WorkflowTaskInstancesApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# @param workflow_task_instance [WorkflowTaskInstance]
|
23
|
+
# @param [Hash] opts the optional parameters
|
24
|
+
# @return [WorkflowTaskInstance]
|
25
|
+
def workflow_task_instances_create(workflow_task_instance, opts = {})
|
26
|
+
data, _status_code, _headers = workflow_task_instances_create_with_http_info(workflow_task_instance, opts)
|
27
|
+
data
|
28
|
+
end
|
29
|
+
|
30
|
+
# @param workflow_task_instance [WorkflowTaskInstance]
|
31
|
+
# @param [Hash] opts the optional parameters
|
32
|
+
# @return [Array<(WorkflowTaskInstance, Integer, Hash)>] WorkflowTaskInstance data, response status code and response headers
|
33
|
+
def workflow_task_instances_create_with_http_info(workflow_task_instance, opts = {})
|
34
|
+
if @api_client.config.debugging
|
35
|
+
@api_client.config.logger.debug 'Calling API: WorkflowTaskInstancesApi.workflow_task_instances_create ...'
|
36
|
+
end
|
37
|
+
# verify the required parameter 'workflow_task_instance' is set
|
38
|
+
if @api_client.config.client_side_validation && workflow_task_instance.nil?
|
39
|
+
fail ArgumentError, "Missing the required parameter 'workflow_task_instance' when calling WorkflowTaskInstancesApi.workflow_task_instances_create"
|
40
|
+
end
|
41
|
+
# resource path
|
42
|
+
local_var_path = '/workflow_task_instances/'
|
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_task_instance)
|
62
|
+
|
63
|
+
# return_type
|
64
|
+
return_type = opts[:debug_return_type] || 'WorkflowTaskInstance'
|
65
|
+
|
66
|
+
# auth_names
|
67
|
+
auth_names = opts[:debug_auth_names] || ['tokenAuth']
|
68
|
+
|
69
|
+
new_options = opts.merge(
|
70
|
+
:operation => :"WorkflowTaskInstancesApi.workflow_task_instances_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: WorkflowTaskInstancesApi#workflow_task_instances_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_task_instances_destroy(uuid, opts = {})
|
90
|
+
workflow_task_instances_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_task_instances_destroy_with_http_info(uuid, opts = {})
|
98
|
+
if @api_client.config.debugging
|
99
|
+
@api_client.config.logger.debug 'Calling API: WorkflowTaskInstancesApi.workflow_task_instances_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 WorkflowTaskInstancesApi.workflow_task_instances_destroy"
|
104
|
+
end
|
105
|
+
# resource path
|
106
|
+
local_var_path = '/workflow_task_instances/{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 => :"WorkflowTaskInstancesApi.workflow_task_instances_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: WorkflowTaskInstancesApi#workflow_task_instances_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 [String] :description
|
145
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
146
|
+
# @option opts [String] :name
|
147
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
148
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
149
|
+
# @option opts [String] :search A search term.
|
150
|
+
# @option opts [String] :task__name
|
151
|
+
# @option opts [String] :task__uuid
|
152
|
+
# @option opts [Integer] :workflow__created_by_group__id
|
153
|
+
# @option opts [String] :workflow__run_environment__uuid
|
154
|
+
# @option opts [String] :workflow__uuid
|
155
|
+
# @return [PaginatedWorkflowTaskInstanceList]
|
156
|
+
def workflow_task_instances_list(opts = {})
|
157
|
+
data, _status_code, _headers = workflow_task_instances_list_with_http_info(opts)
|
158
|
+
data
|
159
|
+
end
|
160
|
+
|
161
|
+
# @param [Hash] opts the optional parameters
|
162
|
+
# @option opts [String] :description
|
163
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
164
|
+
# @option opts [String] :name
|
165
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
166
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
167
|
+
# @option opts [String] :search A search term.
|
168
|
+
# @option opts [String] :task__name
|
169
|
+
# @option opts [String] :task__uuid
|
170
|
+
# @option opts [Integer] :workflow__created_by_group__id
|
171
|
+
# @option opts [String] :workflow__run_environment__uuid
|
172
|
+
# @option opts [String] :workflow__uuid
|
173
|
+
# @return [Array<(PaginatedWorkflowTaskInstanceList, Integer, Hash)>] PaginatedWorkflowTaskInstanceList data, response status code and response headers
|
174
|
+
def workflow_task_instances_list_with_http_info(opts = {})
|
175
|
+
if @api_client.config.debugging
|
176
|
+
@api_client.config.logger.debug 'Calling API: WorkflowTaskInstancesApi.workflow_task_instances_list ...'
|
177
|
+
end
|
178
|
+
# resource path
|
179
|
+
local_var_path = '/workflow_task_instances/'
|
180
|
+
|
181
|
+
# query parameters
|
182
|
+
query_params = opts[:query_params] || {}
|
183
|
+
query_params[:'description'] = opts[:'description'] if !opts[:'description'].nil?
|
184
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
185
|
+
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
186
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
187
|
+
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
188
|
+
query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
|
189
|
+
query_params[:'task__name'] = opts[:'task__name'] if !opts[:'task__name'].nil?
|
190
|
+
query_params[:'task__uuid'] = opts[:'task__uuid'] if !opts[:'task__uuid'].nil?
|
191
|
+
query_params[:'workflow__created_by_group__id'] = opts[:'workflow__created_by_group__id'] if !opts[:'workflow__created_by_group__id'].nil?
|
192
|
+
query_params[:'workflow__run_environment__uuid'] = opts[:'workflow__run_environment__uuid'] if !opts[:'workflow__run_environment__uuid'].nil?
|
193
|
+
query_params[:'workflow__uuid'] = opts[:'workflow__uuid'] if !opts[:'workflow__uuid'].nil?
|
194
|
+
|
195
|
+
# header parameters
|
196
|
+
header_params = opts[:header_params] || {}
|
197
|
+
# HTTP header 'Accept' (if needed)
|
198
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
199
|
+
|
200
|
+
# form parameters
|
201
|
+
form_params = opts[:form_params] || {}
|
202
|
+
|
203
|
+
# http body (model)
|
204
|
+
post_body = opts[:debug_body]
|
205
|
+
|
206
|
+
# return_type
|
207
|
+
return_type = opts[:debug_return_type] || 'PaginatedWorkflowTaskInstanceList'
|
208
|
+
|
209
|
+
# auth_names
|
210
|
+
auth_names = opts[:debug_auth_names] || ['tokenAuth']
|
211
|
+
|
212
|
+
new_options = opts.merge(
|
213
|
+
:operation => :"WorkflowTaskInstancesApi.workflow_task_instances_list",
|
214
|
+
:header_params => header_params,
|
215
|
+
:query_params => query_params,
|
216
|
+
:form_params => form_params,
|
217
|
+
:body => post_body,
|
218
|
+
:auth_names => auth_names,
|
219
|
+
:return_type => return_type
|
220
|
+
)
|
221
|
+
|
222
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
223
|
+
if @api_client.config.debugging
|
224
|
+
@api_client.config.logger.debug "API called: WorkflowTaskInstancesApi#workflow_task_instances_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
225
|
+
end
|
226
|
+
return data, status_code, headers
|
227
|
+
end
|
228
|
+
|
229
|
+
# @param uuid [String]
|
230
|
+
# @param [Hash] opts the optional parameters
|
231
|
+
# @option opts [PatchedWorkflowTaskInstance] :patched_workflow_task_instance
|
232
|
+
# @return [WorkflowTaskInstance]
|
233
|
+
def workflow_task_instances_partial_update(uuid, opts = {})
|
234
|
+
data, _status_code, _headers = workflow_task_instances_partial_update_with_http_info(uuid, opts)
|
235
|
+
data
|
236
|
+
end
|
237
|
+
|
238
|
+
# @param uuid [String]
|
239
|
+
# @param [Hash] opts the optional parameters
|
240
|
+
# @option opts [PatchedWorkflowTaskInstance] :patched_workflow_task_instance
|
241
|
+
# @return [Array<(WorkflowTaskInstance, Integer, Hash)>] WorkflowTaskInstance data, response status code and response headers
|
242
|
+
def workflow_task_instances_partial_update_with_http_info(uuid, opts = {})
|
243
|
+
if @api_client.config.debugging
|
244
|
+
@api_client.config.logger.debug 'Calling API: WorkflowTaskInstancesApi.workflow_task_instances_partial_update ...'
|
245
|
+
end
|
246
|
+
# verify the required parameter 'uuid' is set
|
247
|
+
if @api_client.config.client_side_validation && uuid.nil?
|
248
|
+
fail ArgumentError, "Missing the required parameter 'uuid' when calling WorkflowTaskInstancesApi.workflow_task_instances_partial_update"
|
249
|
+
end
|
250
|
+
# resource path
|
251
|
+
local_var_path = '/workflow_task_instances/{uuid}/'.sub('{' + 'uuid' + '}', CGI.escape(uuid.to_s))
|
252
|
+
|
253
|
+
# query parameters
|
254
|
+
query_params = opts[:query_params] || {}
|
255
|
+
|
256
|
+
# header parameters
|
257
|
+
header_params = opts[:header_params] || {}
|
258
|
+
# HTTP header 'Accept' (if needed)
|
259
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
260
|
+
# HTTP header 'Content-Type'
|
261
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
262
|
+
if !content_type.nil?
|
263
|
+
header_params['Content-Type'] = content_type
|
264
|
+
end
|
265
|
+
|
266
|
+
# form parameters
|
267
|
+
form_params = opts[:form_params] || {}
|
268
|
+
|
269
|
+
# http body (model)
|
270
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'patched_workflow_task_instance'])
|
271
|
+
|
272
|
+
# return_type
|
273
|
+
return_type = opts[:debug_return_type] || 'WorkflowTaskInstance'
|
274
|
+
|
275
|
+
# auth_names
|
276
|
+
auth_names = opts[:debug_auth_names] || ['tokenAuth']
|
277
|
+
|
278
|
+
new_options = opts.merge(
|
279
|
+
:operation => :"WorkflowTaskInstancesApi.workflow_task_instances_partial_update",
|
280
|
+
:header_params => header_params,
|
281
|
+
:query_params => query_params,
|
282
|
+
:form_params => form_params,
|
283
|
+
:body => post_body,
|
284
|
+
:auth_names => auth_names,
|
285
|
+
:return_type => return_type
|
286
|
+
)
|
287
|
+
|
288
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
289
|
+
if @api_client.config.debugging
|
290
|
+
@api_client.config.logger.debug "API called: WorkflowTaskInstancesApi#workflow_task_instances_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
291
|
+
end
|
292
|
+
return data, status_code, headers
|
293
|
+
end
|
294
|
+
|
295
|
+
# @param uuid [String]
|
296
|
+
# @param [Hash] opts the optional parameters
|
297
|
+
# @return [WorkflowTaskInstance]
|
298
|
+
def workflow_task_instances_retrieve(uuid, opts = {})
|
299
|
+
data, _status_code, _headers = workflow_task_instances_retrieve_with_http_info(uuid, opts)
|
300
|
+
data
|
301
|
+
end
|
302
|
+
|
303
|
+
# @param uuid [String]
|
304
|
+
# @param [Hash] opts the optional parameters
|
305
|
+
# @return [Array<(WorkflowTaskInstance, Integer, Hash)>] WorkflowTaskInstance data, response status code and response headers
|
306
|
+
def workflow_task_instances_retrieve_with_http_info(uuid, opts = {})
|
307
|
+
if @api_client.config.debugging
|
308
|
+
@api_client.config.logger.debug 'Calling API: WorkflowTaskInstancesApi.workflow_task_instances_retrieve ...'
|
309
|
+
end
|
310
|
+
# verify the required parameter 'uuid' is set
|
311
|
+
if @api_client.config.client_side_validation && uuid.nil?
|
312
|
+
fail ArgumentError, "Missing the required parameter 'uuid' when calling WorkflowTaskInstancesApi.workflow_task_instances_retrieve"
|
313
|
+
end
|
314
|
+
# resource path
|
315
|
+
local_var_path = '/workflow_task_instances/{uuid}/'.sub('{' + 'uuid' + '}', CGI.escape(uuid.to_s))
|
316
|
+
|
317
|
+
# query parameters
|
318
|
+
query_params = opts[:query_params] || {}
|
319
|
+
|
320
|
+
# header parameters
|
321
|
+
header_params = opts[:header_params] || {}
|
322
|
+
# HTTP header 'Accept' (if needed)
|
323
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
324
|
+
|
325
|
+
# form parameters
|
326
|
+
form_params = opts[:form_params] || {}
|
327
|
+
|
328
|
+
# http body (model)
|
329
|
+
post_body = opts[:debug_body]
|
330
|
+
|
331
|
+
# return_type
|
332
|
+
return_type = opts[:debug_return_type] || 'WorkflowTaskInstance'
|
333
|
+
|
334
|
+
# auth_names
|
335
|
+
auth_names = opts[:debug_auth_names] || ['tokenAuth']
|
336
|
+
|
337
|
+
new_options = opts.merge(
|
338
|
+
:operation => :"WorkflowTaskInstancesApi.workflow_task_instances_retrieve",
|
339
|
+
:header_params => header_params,
|
340
|
+
:query_params => query_params,
|
341
|
+
:form_params => form_params,
|
342
|
+
:body => post_body,
|
343
|
+
:auth_names => auth_names,
|
344
|
+
:return_type => return_type
|
345
|
+
)
|
346
|
+
|
347
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
348
|
+
if @api_client.config.debugging
|
349
|
+
@api_client.config.logger.debug "API called: WorkflowTaskInstancesApi#workflow_task_instances_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
350
|
+
end
|
351
|
+
return data, status_code, headers
|
352
|
+
end
|
353
|
+
|
354
|
+
# @param uuid [String]
|
355
|
+
# @param workflow_task_instance [WorkflowTaskInstance]
|
356
|
+
# @param [Hash] opts the optional parameters
|
357
|
+
# @return [WorkflowTaskInstance]
|
358
|
+
def workflow_task_instances_update(uuid, workflow_task_instance, opts = {})
|
359
|
+
data, _status_code, _headers = workflow_task_instances_update_with_http_info(uuid, workflow_task_instance, opts)
|
360
|
+
data
|
361
|
+
end
|
362
|
+
|
363
|
+
# @param uuid [String]
|
364
|
+
# @param workflow_task_instance [WorkflowTaskInstance]
|
365
|
+
# @param [Hash] opts the optional parameters
|
366
|
+
# @return [Array<(WorkflowTaskInstance, Integer, Hash)>] WorkflowTaskInstance data, response status code and response headers
|
367
|
+
def workflow_task_instances_update_with_http_info(uuid, workflow_task_instance, opts = {})
|
368
|
+
if @api_client.config.debugging
|
369
|
+
@api_client.config.logger.debug 'Calling API: WorkflowTaskInstancesApi.workflow_task_instances_update ...'
|
370
|
+
end
|
371
|
+
# verify the required parameter 'uuid' is set
|
372
|
+
if @api_client.config.client_side_validation && uuid.nil?
|
373
|
+
fail ArgumentError, "Missing the required parameter 'uuid' when calling WorkflowTaskInstancesApi.workflow_task_instances_update"
|
374
|
+
end
|
375
|
+
# verify the required parameter 'workflow_task_instance' is set
|
376
|
+
if @api_client.config.client_side_validation && workflow_task_instance.nil?
|
377
|
+
fail ArgumentError, "Missing the required parameter 'workflow_task_instance' when calling WorkflowTaskInstancesApi.workflow_task_instances_update"
|
378
|
+
end
|
379
|
+
# resource path
|
380
|
+
local_var_path = '/workflow_task_instances/{uuid}/'.sub('{' + 'uuid' + '}', CGI.escape(uuid.to_s))
|
381
|
+
|
382
|
+
# query parameters
|
383
|
+
query_params = opts[:query_params] || {}
|
384
|
+
|
385
|
+
# header parameters
|
386
|
+
header_params = opts[:header_params] || {}
|
387
|
+
# HTTP header 'Accept' (if needed)
|
388
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
389
|
+
# HTTP header 'Content-Type'
|
390
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
391
|
+
if !content_type.nil?
|
392
|
+
header_params['Content-Type'] = content_type
|
393
|
+
end
|
394
|
+
|
395
|
+
# form parameters
|
396
|
+
form_params = opts[:form_params] || {}
|
397
|
+
|
398
|
+
# http body (model)
|
399
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(workflow_task_instance)
|
400
|
+
|
401
|
+
# return_type
|
402
|
+
return_type = opts[:debug_return_type] || 'WorkflowTaskInstance'
|
403
|
+
|
404
|
+
# auth_names
|
405
|
+
auth_names = opts[:debug_auth_names] || ['tokenAuth']
|
406
|
+
|
407
|
+
new_options = opts.merge(
|
408
|
+
:operation => :"WorkflowTaskInstancesApi.workflow_task_instances_update",
|
409
|
+
:header_params => header_params,
|
410
|
+
:query_params => query_params,
|
411
|
+
:form_params => form_params,
|
412
|
+
:body => post_body,
|
413
|
+
:auth_names => auth_names,
|
414
|
+
:return_type => return_type
|
415
|
+
)
|
416
|
+
|
417
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
418
|
+
if @api_client.config.debugging
|
419
|
+
@api_client.config.logger.debug "API called: WorkflowTaskInstancesApi#workflow_task_instances_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
420
|
+
end
|
421
|
+
return data, status_code, headers
|
422
|
+
end
|
423
|
+
end
|
424
|
+
end
|