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,479 @@
|
|
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 RunEnvironmentsApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# @param uuid [String]
|
23
|
+
# @param run_environment [RunEnvironment]
|
24
|
+
# @param [Hash] opts the optional parameters
|
25
|
+
# @return [RunEnvironment]
|
26
|
+
def run_environments_clone_create(uuid, run_environment, opts = {})
|
27
|
+
data, _status_code, _headers = run_environments_clone_create_with_http_info(uuid, run_environment, opts)
|
28
|
+
data
|
29
|
+
end
|
30
|
+
|
31
|
+
# @param uuid [String]
|
32
|
+
# @param run_environment [RunEnvironment]
|
33
|
+
# @param [Hash] opts the optional parameters
|
34
|
+
# @return [Array<(RunEnvironment, Integer, Hash)>] RunEnvironment data, response status code and response headers
|
35
|
+
def run_environments_clone_create_with_http_info(uuid, run_environment, opts = {})
|
36
|
+
if @api_client.config.debugging
|
37
|
+
@api_client.config.logger.debug 'Calling API: RunEnvironmentsApi.run_environments_clone_create ...'
|
38
|
+
end
|
39
|
+
# verify the required parameter 'uuid' is set
|
40
|
+
if @api_client.config.client_side_validation && uuid.nil?
|
41
|
+
fail ArgumentError, "Missing the required parameter 'uuid' when calling RunEnvironmentsApi.run_environments_clone_create"
|
42
|
+
end
|
43
|
+
# verify the required parameter 'run_environment' is set
|
44
|
+
if @api_client.config.client_side_validation && run_environment.nil?
|
45
|
+
fail ArgumentError, "Missing the required parameter 'run_environment' when calling RunEnvironmentsApi.run_environments_clone_create"
|
46
|
+
end
|
47
|
+
# resource path
|
48
|
+
local_var_path = '/run_environments/{uuid}/clone/'.sub('{' + 'uuid' + '}', CGI.escape(uuid.to_s))
|
49
|
+
|
50
|
+
# query parameters
|
51
|
+
query_params = opts[:query_params] || {}
|
52
|
+
|
53
|
+
# header parameters
|
54
|
+
header_params = opts[:header_params] || {}
|
55
|
+
# HTTP header 'Accept' (if needed)
|
56
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
57
|
+
# HTTP header 'Content-Type'
|
58
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
59
|
+
if !content_type.nil?
|
60
|
+
header_params['Content-Type'] = content_type
|
61
|
+
end
|
62
|
+
|
63
|
+
# form parameters
|
64
|
+
form_params = opts[:form_params] || {}
|
65
|
+
|
66
|
+
# http body (model)
|
67
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(run_environment)
|
68
|
+
|
69
|
+
# return_type
|
70
|
+
return_type = opts[:debug_return_type] || 'RunEnvironment'
|
71
|
+
|
72
|
+
# auth_names
|
73
|
+
auth_names = opts[:debug_auth_names] || ['tokenAuth']
|
74
|
+
|
75
|
+
new_options = opts.merge(
|
76
|
+
:operation => :"RunEnvironmentsApi.run_environments_clone_create",
|
77
|
+
:header_params => header_params,
|
78
|
+
:query_params => query_params,
|
79
|
+
:form_params => form_params,
|
80
|
+
:body => post_body,
|
81
|
+
:auth_names => auth_names,
|
82
|
+
:return_type => return_type
|
83
|
+
)
|
84
|
+
|
85
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
86
|
+
if @api_client.config.debugging
|
87
|
+
@api_client.config.logger.debug "API called: RunEnvironmentsApi#run_environments_clone_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
88
|
+
end
|
89
|
+
return data, status_code, headers
|
90
|
+
end
|
91
|
+
|
92
|
+
# @param run_environment [RunEnvironment]
|
93
|
+
# @param [Hash] opts the optional parameters
|
94
|
+
# @return [RunEnvironment]
|
95
|
+
def run_environments_create(run_environment, opts = {})
|
96
|
+
data, _status_code, _headers = run_environments_create_with_http_info(run_environment, opts)
|
97
|
+
data
|
98
|
+
end
|
99
|
+
|
100
|
+
# @param run_environment [RunEnvironment]
|
101
|
+
# @param [Hash] opts the optional parameters
|
102
|
+
# @return [Array<(RunEnvironment, Integer, Hash)>] RunEnvironment data, response status code and response headers
|
103
|
+
def run_environments_create_with_http_info(run_environment, opts = {})
|
104
|
+
if @api_client.config.debugging
|
105
|
+
@api_client.config.logger.debug 'Calling API: RunEnvironmentsApi.run_environments_create ...'
|
106
|
+
end
|
107
|
+
# verify the required parameter 'run_environment' is set
|
108
|
+
if @api_client.config.client_side_validation && run_environment.nil?
|
109
|
+
fail ArgumentError, "Missing the required parameter 'run_environment' when calling RunEnvironmentsApi.run_environments_create"
|
110
|
+
end
|
111
|
+
# resource path
|
112
|
+
local_var_path = '/run_environments/'
|
113
|
+
|
114
|
+
# query parameters
|
115
|
+
query_params = opts[:query_params] || {}
|
116
|
+
|
117
|
+
# header parameters
|
118
|
+
header_params = opts[:header_params] || {}
|
119
|
+
# HTTP header 'Accept' (if needed)
|
120
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
121
|
+
# HTTP header 'Content-Type'
|
122
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
123
|
+
if !content_type.nil?
|
124
|
+
header_params['Content-Type'] = content_type
|
125
|
+
end
|
126
|
+
|
127
|
+
# form parameters
|
128
|
+
form_params = opts[:form_params] || {}
|
129
|
+
|
130
|
+
# http body (model)
|
131
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(run_environment)
|
132
|
+
|
133
|
+
# return_type
|
134
|
+
return_type = opts[:debug_return_type] || 'RunEnvironment'
|
135
|
+
|
136
|
+
# auth_names
|
137
|
+
auth_names = opts[:debug_auth_names] || ['tokenAuth']
|
138
|
+
|
139
|
+
new_options = opts.merge(
|
140
|
+
:operation => :"RunEnvironmentsApi.run_environments_create",
|
141
|
+
:header_params => header_params,
|
142
|
+
:query_params => query_params,
|
143
|
+
:form_params => form_params,
|
144
|
+
:body => post_body,
|
145
|
+
:auth_names => auth_names,
|
146
|
+
:return_type => return_type
|
147
|
+
)
|
148
|
+
|
149
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
150
|
+
if @api_client.config.debugging
|
151
|
+
@api_client.config.logger.debug "API called: RunEnvironmentsApi#run_environments_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
152
|
+
end
|
153
|
+
return data, status_code, headers
|
154
|
+
end
|
155
|
+
|
156
|
+
# @param uuid [String]
|
157
|
+
# @param [Hash] opts the optional parameters
|
158
|
+
# @return [nil]
|
159
|
+
def run_environments_destroy(uuid, opts = {})
|
160
|
+
run_environments_destroy_with_http_info(uuid, opts)
|
161
|
+
nil
|
162
|
+
end
|
163
|
+
|
164
|
+
# @param uuid [String]
|
165
|
+
# @param [Hash] opts the optional parameters
|
166
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
167
|
+
def run_environments_destroy_with_http_info(uuid, opts = {})
|
168
|
+
if @api_client.config.debugging
|
169
|
+
@api_client.config.logger.debug 'Calling API: RunEnvironmentsApi.run_environments_destroy ...'
|
170
|
+
end
|
171
|
+
# verify the required parameter 'uuid' is set
|
172
|
+
if @api_client.config.client_side_validation && uuid.nil?
|
173
|
+
fail ArgumentError, "Missing the required parameter 'uuid' when calling RunEnvironmentsApi.run_environments_destroy"
|
174
|
+
end
|
175
|
+
# resource path
|
176
|
+
local_var_path = '/run_environments/{uuid}/'.sub('{' + 'uuid' + '}', CGI.escape(uuid.to_s))
|
177
|
+
|
178
|
+
# query parameters
|
179
|
+
query_params = opts[:query_params] || {}
|
180
|
+
|
181
|
+
# header parameters
|
182
|
+
header_params = opts[:header_params] || {}
|
183
|
+
|
184
|
+
# form parameters
|
185
|
+
form_params = opts[:form_params] || {}
|
186
|
+
|
187
|
+
# http body (model)
|
188
|
+
post_body = opts[:debug_body]
|
189
|
+
|
190
|
+
# return_type
|
191
|
+
return_type = opts[:debug_return_type]
|
192
|
+
|
193
|
+
# auth_names
|
194
|
+
auth_names = opts[:debug_auth_names] || ['tokenAuth']
|
195
|
+
|
196
|
+
new_options = opts.merge(
|
197
|
+
:operation => :"RunEnvironmentsApi.run_environments_destroy",
|
198
|
+
:header_params => header_params,
|
199
|
+
:query_params => query_params,
|
200
|
+
:form_params => form_params,
|
201
|
+
:body => post_body,
|
202
|
+
:auth_names => auth_names,
|
203
|
+
:return_type => return_type
|
204
|
+
)
|
205
|
+
|
206
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
207
|
+
if @api_client.config.debugging
|
208
|
+
@api_client.config.logger.debug "API called: RunEnvironmentsApi#run_environments_destroy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
209
|
+
end
|
210
|
+
return data, status_code, headers
|
211
|
+
end
|
212
|
+
|
213
|
+
# @param [Hash] opts the optional parameters
|
214
|
+
# @option opts [Integer] :created_by_group__id
|
215
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
216
|
+
# @option opts [String] :name
|
217
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
218
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
219
|
+
# @option opts [String] :search A search term.
|
220
|
+
# @return [PaginatedRunEnvironmentList]
|
221
|
+
def run_environments_list(opts = {})
|
222
|
+
data, _status_code, _headers = run_environments_list_with_http_info(opts)
|
223
|
+
data
|
224
|
+
end
|
225
|
+
|
226
|
+
# @param [Hash] opts the optional parameters
|
227
|
+
# @option opts [Integer] :created_by_group__id
|
228
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
229
|
+
# @option opts [String] :name
|
230
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
231
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
232
|
+
# @option opts [String] :search A search term.
|
233
|
+
# @return [Array<(PaginatedRunEnvironmentList, Integer, Hash)>] PaginatedRunEnvironmentList data, response status code and response headers
|
234
|
+
def run_environments_list_with_http_info(opts = {})
|
235
|
+
if @api_client.config.debugging
|
236
|
+
@api_client.config.logger.debug 'Calling API: RunEnvironmentsApi.run_environments_list ...'
|
237
|
+
end
|
238
|
+
# resource path
|
239
|
+
local_var_path = '/run_environments/'
|
240
|
+
|
241
|
+
# query parameters
|
242
|
+
query_params = opts[:query_params] || {}
|
243
|
+
query_params[:'created_by_group__id'] = opts[:'created_by_group__id'] if !opts[:'created_by_group__id'].nil?
|
244
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
245
|
+
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
246
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
247
|
+
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
248
|
+
query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
|
249
|
+
|
250
|
+
# header parameters
|
251
|
+
header_params = opts[:header_params] || {}
|
252
|
+
# HTTP header 'Accept' (if needed)
|
253
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
254
|
+
|
255
|
+
# form parameters
|
256
|
+
form_params = opts[:form_params] || {}
|
257
|
+
|
258
|
+
# http body (model)
|
259
|
+
post_body = opts[:debug_body]
|
260
|
+
|
261
|
+
# return_type
|
262
|
+
return_type = opts[:debug_return_type] || 'PaginatedRunEnvironmentList'
|
263
|
+
|
264
|
+
# auth_names
|
265
|
+
auth_names = opts[:debug_auth_names] || ['tokenAuth']
|
266
|
+
|
267
|
+
new_options = opts.merge(
|
268
|
+
:operation => :"RunEnvironmentsApi.run_environments_list",
|
269
|
+
:header_params => header_params,
|
270
|
+
:query_params => query_params,
|
271
|
+
:form_params => form_params,
|
272
|
+
:body => post_body,
|
273
|
+
:auth_names => auth_names,
|
274
|
+
:return_type => return_type
|
275
|
+
)
|
276
|
+
|
277
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
278
|
+
if @api_client.config.debugging
|
279
|
+
@api_client.config.logger.debug "API called: RunEnvironmentsApi#run_environments_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
280
|
+
end
|
281
|
+
return data, status_code, headers
|
282
|
+
end
|
283
|
+
|
284
|
+
# @param uuid [String]
|
285
|
+
# @param [Hash] opts the optional parameters
|
286
|
+
# @option opts [PatchedRunEnvironment] :patched_run_environment
|
287
|
+
# @return [RunEnvironment]
|
288
|
+
def run_environments_partial_update(uuid, opts = {})
|
289
|
+
data, _status_code, _headers = run_environments_partial_update_with_http_info(uuid, opts)
|
290
|
+
data
|
291
|
+
end
|
292
|
+
|
293
|
+
# @param uuid [String]
|
294
|
+
# @param [Hash] opts the optional parameters
|
295
|
+
# @option opts [PatchedRunEnvironment] :patched_run_environment
|
296
|
+
# @return [Array<(RunEnvironment, Integer, Hash)>] RunEnvironment data, response status code and response headers
|
297
|
+
def run_environments_partial_update_with_http_info(uuid, opts = {})
|
298
|
+
if @api_client.config.debugging
|
299
|
+
@api_client.config.logger.debug 'Calling API: RunEnvironmentsApi.run_environments_partial_update ...'
|
300
|
+
end
|
301
|
+
# verify the required parameter 'uuid' is set
|
302
|
+
if @api_client.config.client_side_validation && uuid.nil?
|
303
|
+
fail ArgumentError, "Missing the required parameter 'uuid' when calling RunEnvironmentsApi.run_environments_partial_update"
|
304
|
+
end
|
305
|
+
# resource path
|
306
|
+
local_var_path = '/run_environments/{uuid}/'.sub('{' + 'uuid' + '}', CGI.escape(uuid.to_s))
|
307
|
+
|
308
|
+
# query parameters
|
309
|
+
query_params = opts[:query_params] || {}
|
310
|
+
|
311
|
+
# header parameters
|
312
|
+
header_params = opts[:header_params] || {}
|
313
|
+
# HTTP header 'Accept' (if needed)
|
314
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
315
|
+
# HTTP header 'Content-Type'
|
316
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
317
|
+
if !content_type.nil?
|
318
|
+
header_params['Content-Type'] = content_type
|
319
|
+
end
|
320
|
+
|
321
|
+
# form parameters
|
322
|
+
form_params = opts[:form_params] || {}
|
323
|
+
|
324
|
+
# http body (model)
|
325
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'patched_run_environment'])
|
326
|
+
|
327
|
+
# return_type
|
328
|
+
return_type = opts[:debug_return_type] || 'RunEnvironment'
|
329
|
+
|
330
|
+
# auth_names
|
331
|
+
auth_names = opts[:debug_auth_names] || ['tokenAuth']
|
332
|
+
|
333
|
+
new_options = opts.merge(
|
334
|
+
:operation => :"RunEnvironmentsApi.run_environments_partial_update",
|
335
|
+
:header_params => header_params,
|
336
|
+
:query_params => query_params,
|
337
|
+
:form_params => form_params,
|
338
|
+
:body => post_body,
|
339
|
+
:auth_names => auth_names,
|
340
|
+
:return_type => return_type
|
341
|
+
)
|
342
|
+
|
343
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
344
|
+
if @api_client.config.debugging
|
345
|
+
@api_client.config.logger.debug "API called: RunEnvironmentsApi#run_environments_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
346
|
+
end
|
347
|
+
return data, status_code, headers
|
348
|
+
end
|
349
|
+
|
350
|
+
# @param uuid [String]
|
351
|
+
# @param [Hash] opts the optional parameters
|
352
|
+
# @return [RunEnvironment]
|
353
|
+
def run_environments_retrieve(uuid, opts = {})
|
354
|
+
data, _status_code, _headers = run_environments_retrieve_with_http_info(uuid, opts)
|
355
|
+
data
|
356
|
+
end
|
357
|
+
|
358
|
+
# @param uuid [String]
|
359
|
+
# @param [Hash] opts the optional parameters
|
360
|
+
# @return [Array<(RunEnvironment, Integer, Hash)>] RunEnvironment data, response status code and response headers
|
361
|
+
def run_environments_retrieve_with_http_info(uuid, opts = {})
|
362
|
+
if @api_client.config.debugging
|
363
|
+
@api_client.config.logger.debug 'Calling API: RunEnvironmentsApi.run_environments_retrieve ...'
|
364
|
+
end
|
365
|
+
# verify the required parameter 'uuid' is set
|
366
|
+
if @api_client.config.client_side_validation && uuid.nil?
|
367
|
+
fail ArgumentError, "Missing the required parameter 'uuid' when calling RunEnvironmentsApi.run_environments_retrieve"
|
368
|
+
end
|
369
|
+
# resource path
|
370
|
+
local_var_path = '/run_environments/{uuid}/'.sub('{' + 'uuid' + '}', CGI.escape(uuid.to_s))
|
371
|
+
|
372
|
+
# query parameters
|
373
|
+
query_params = opts[:query_params] || {}
|
374
|
+
|
375
|
+
# header parameters
|
376
|
+
header_params = opts[:header_params] || {}
|
377
|
+
# HTTP header 'Accept' (if needed)
|
378
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
379
|
+
|
380
|
+
# form parameters
|
381
|
+
form_params = opts[:form_params] || {}
|
382
|
+
|
383
|
+
# http body (model)
|
384
|
+
post_body = opts[:debug_body]
|
385
|
+
|
386
|
+
# return_type
|
387
|
+
return_type = opts[:debug_return_type] || 'RunEnvironment'
|
388
|
+
|
389
|
+
# auth_names
|
390
|
+
auth_names = opts[:debug_auth_names] || ['tokenAuth']
|
391
|
+
|
392
|
+
new_options = opts.merge(
|
393
|
+
:operation => :"RunEnvironmentsApi.run_environments_retrieve",
|
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(:GET, local_var_path, new_options)
|
403
|
+
if @api_client.config.debugging
|
404
|
+
@api_client.config.logger.debug "API called: RunEnvironmentsApi#run_environments_retrieve\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 run_environment [RunEnvironment]
|
411
|
+
# @param [Hash] opts the optional parameters
|
412
|
+
# @return [RunEnvironment]
|
413
|
+
def run_environments_update(uuid, run_environment, opts = {})
|
414
|
+
data, _status_code, _headers = run_environments_update_with_http_info(uuid, run_environment, opts)
|
415
|
+
data
|
416
|
+
end
|
417
|
+
|
418
|
+
# @param uuid [String]
|
419
|
+
# @param run_environment [RunEnvironment]
|
420
|
+
# @param [Hash] opts the optional parameters
|
421
|
+
# @return [Array<(RunEnvironment, Integer, Hash)>] RunEnvironment data, response status code and response headers
|
422
|
+
def run_environments_update_with_http_info(uuid, run_environment, opts = {})
|
423
|
+
if @api_client.config.debugging
|
424
|
+
@api_client.config.logger.debug 'Calling API: RunEnvironmentsApi.run_environments_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 RunEnvironmentsApi.run_environments_update"
|
429
|
+
end
|
430
|
+
# verify the required parameter 'run_environment' is set
|
431
|
+
if @api_client.config.client_side_validation && run_environment.nil?
|
432
|
+
fail ArgumentError, "Missing the required parameter 'run_environment' when calling RunEnvironmentsApi.run_environments_update"
|
433
|
+
end
|
434
|
+
# resource path
|
435
|
+
local_var_path = '/run_environments/{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(run_environment)
|
455
|
+
|
456
|
+
# return_type
|
457
|
+
return_type = opts[:debug_return_type] || 'RunEnvironment'
|
458
|
+
|
459
|
+
# auth_names
|
460
|
+
auth_names = opts[:debug_auth_names] || ['tokenAuth']
|
461
|
+
|
462
|
+
new_options = opts.merge(
|
463
|
+
:operation => :"RunEnvironmentsApi.run_environments_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: RunEnvironmentsApi#run_environments_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
475
|
+
end
|
476
|
+
return data, status_code, headers
|
477
|
+
end
|
478
|
+
end
|
479
|
+
end
|