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,482 @@
|
|
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 EmailNotificationProfilesApi
|
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 email_notification_profile [EmailNotificationProfile]
|
24
|
+
# @param [Hash] opts the optional parameters
|
25
|
+
# @return [EmailNotificationProfile]
|
26
|
+
def email_notification_profiles_clone_create(uuid, email_notification_profile, opts = {})
|
27
|
+
data, _status_code, _headers = email_notification_profiles_clone_create_with_http_info(uuid, email_notification_profile, opts)
|
28
|
+
data
|
29
|
+
end
|
30
|
+
|
31
|
+
# @param uuid [String]
|
32
|
+
# @param email_notification_profile [EmailNotificationProfile]
|
33
|
+
# @param [Hash] opts the optional parameters
|
34
|
+
# @return [Array<(EmailNotificationProfile, Integer, Hash)>] EmailNotificationProfile data, response status code and response headers
|
35
|
+
def email_notification_profiles_clone_create_with_http_info(uuid, email_notification_profile, opts = {})
|
36
|
+
if @api_client.config.debugging
|
37
|
+
@api_client.config.logger.debug 'Calling API: EmailNotificationProfilesApi.email_notification_profiles_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 EmailNotificationProfilesApi.email_notification_profiles_clone_create"
|
42
|
+
end
|
43
|
+
# verify the required parameter 'email_notification_profile' is set
|
44
|
+
if @api_client.config.client_side_validation && email_notification_profile.nil?
|
45
|
+
fail ArgumentError, "Missing the required parameter 'email_notification_profile' when calling EmailNotificationProfilesApi.email_notification_profiles_clone_create"
|
46
|
+
end
|
47
|
+
# resource path
|
48
|
+
local_var_path = '/email_notification_profiles/{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(email_notification_profile)
|
68
|
+
|
69
|
+
# return_type
|
70
|
+
return_type = opts[:debug_return_type] || 'EmailNotificationProfile'
|
71
|
+
|
72
|
+
# auth_names
|
73
|
+
auth_names = opts[:debug_auth_names] || ['tokenAuth']
|
74
|
+
|
75
|
+
new_options = opts.merge(
|
76
|
+
:operation => :"EmailNotificationProfilesApi.email_notification_profiles_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: EmailNotificationProfilesApi#email_notification_profiles_clone_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
88
|
+
end
|
89
|
+
return data, status_code, headers
|
90
|
+
end
|
91
|
+
|
92
|
+
# @param email_notification_profile [EmailNotificationProfile]
|
93
|
+
# @param [Hash] opts the optional parameters
|
94
|
+
# @return [EmailNotificationProfile]
|
95
|
+
def email_notification_profiles_create(email_notification_profile, opts = {})
|
96
|
+
data, _status_code, _headers = email_notification_profiles_create_with_http_info(email_notification_profile, opts)
|
97
|
+
data
|
98
|
+
end
|
99
|
+
|
100
|
+
# @param email_notification_profile [EmailNotificationProfile]
|
101
|
+
# @param [Hash] opts the optional parameters
|
102
|
+
# @return [Array<(EmailNotificationProfile, Integer, Hash)>] EmailNotificationProfile data, response status code and response headers
|
103
|
+
def email_notification_profiles_create_with_http_info(email_notification_profile, opts = {})
|
104
|
+
if @api_client.config.debugging
|
105
|
+
@api_client.config.logger.debug 'Calling API: EmailNotificationProfilesApi.email_notification_profiles_create ...'
|
106
|
+
end
|
107
|
+
# verify the required parameter 'email_notification_profile' is set
|
108
|
+
if @api_client.config.client_side_validation && email_notification_profile.nil?
|
109
|
+
fail ArgumentError, "Missing the required parameter 'email_notification_profile' when calling EmailNotificationProfilesApi.email_notification_profiles_create"
|
110
|
+
end
|
111
|
+
# resource path
|
112
|
+
local_var_path = '/email_notification_profiles/'
|
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(email_notification_profile)
|
132
|
+
|
133
|
+
# return_type
|
134
|
+
return_type = opts[:debug_return_type] || 'EmailNotificationProfile'
|
135
|
+
|
136
|
+
# auth_names
|
137
|
+
auth_names = opts[:debug_auth_names] || ['tokenAuth']
|
138
|
+
|
139
|
+
new_options = opts.merge(
|
140
|
+
:operation => :"EmailNotificationProfilesApi.email_notification_profiles_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: EmailNotificationProfilesApi#email_notification_profiles_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 email_notification_profiles_destroy(uuid, opts = {})
|
160
|
+
email_notification_profiles_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 email_notification_profiles_destroy_with_http_info(uuid, opts = {})
|
168
|
+
if @api_client.config.debugging
|
169
|
+
@api_client.config.logger.debug 'Calling API: EmailNotificationProfilesApi.email_notification_profiles_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 EmailNotificationProfilesApi.email_notification_profiles_destroy"
|
174
|
+
end
|
175
|
+
# resource path
|
176
|
+
local_var_path = '/email_notification_profiles/{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 => :"EmailNotificationProfilesApi.email_notification_profiles_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: EmailNotificationProfilesApi#email_notification_profiles_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] :run_environment__uuid
|
220
|
+
# @option opts [String] :search A search term.
|
221
|
+
# @return [PaginatedEmailNotificationProfileList]
|
222
|
+
def email_notification_profiles_list(opts = {})
|
223
|
+
data, _status_code, _headers = email_notification_profiles_list_with_http_info(opts)
|
224
|
+
data
|
225
|
+
end
|
226
|
+
|
227
|
+
# @param [Hash] opts the optional parameters
|
228
|
+
# @option opts [Integer] :created_by_group__id
|
229
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
230
|
+
# @option opts [String] :name
|
231
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
232
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
233
|
+
# @option opts [String] :run_environment__uuid
|
234
|
+
# @option opts [String] :search A search term.
|
235
|
+
# @return [Array<(PaginatedEmailNotificationProfileList, Integer, Hash)>] PaginatedEmailNotificationProfileList data, response status code and response headers
|
236
|
+
def email_notification_profiles_list_with_http_info(opts = {})
|
237
|
+
if @api_client.config.debugging
|
238
|
+
@api_client.config.logger.debug 'Calling API: EmailNotificationProfilesApi.email_notification_profiles_list ...'
|
239
|
+
end
|
240
|
+
# resource path
|
241
|
+
local_var_path = '/email_notification_profiles/'
|
242
|
+
|
243
|
+
# query parameters
|
244
|
+
query_params = opts[:query_params] || {}
|
245
|
+
query_params[:'created_by_group__id'] = opts[:'created_by_group__id'] if !opts[:'created_by_group__id'].nil?
|
246
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
247
|
+
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
248
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
249
|
+
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
250
|
+
query_params[:'run_environment__uuid'] = opts[:'run_environment__uuid'] if !opts[:'run_environment__uuid'].nil?
|
251
|
+
query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
|
252
|
+
|
253
|
+
# header parameters
|
254
|
+
header_params = opts[:header_params] || {}
|
255
|
+
# HTTP header 'Accept' (if needed)
|
256
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
257
|
+
|
258
|
+
# form parameters
|
259
|
+
form_params = opts[:form_params] || {}
|
260
|
+
|
261
|
+
# http body (model)
|
262
|
+
post_body = opts[:debug_body]
|
263
|
+
|
264
|
+
# return_type
|
265
|
+
return_type = opts[:debug_return_type] || 'PaginatedEmailNotificationProfileList'
|
266
|
+
|
267
|
+
# auth_names
|
268
|
+
auth_names = opts[:debug_auth_names] || ['tokenAuth']
|
269
|
+
|
270
|
+
new_options = opts.merge(
|
271
|
+
:operation => :"EmailNotificationProfilesApi.email_notification_profiles_list",
|
272
|
+
:header_params => header_params,
|
273
|
+
:query_params => query_params,
|
274
|
+
:form_params => form_params,
|
275
|
+
:body => post_body,
|
276
|
+
:auth_names => auth_names,
|
277
|
+
:return_type => return_type
|
278
|
+
)
|
279
|
+
|
280
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
281
|
+
if @api_client.config.debugging
|
282
|
+
@api_client.config.logger.debug "API called: EmailNotificationProfilesApi#email_notification_profiles_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
283
|
+
end
|
284
|
+
return data, status_code, headers
|
285
|
+
end
|
286
|
+
|
287
|
+
# @param uuid [String]
|
288
|
+
# @param [Hash] opts the optional parameters
|
289
|
+
# @option opts [PatchedEmailNotificationProfile] :patched_email_notification_profile
|
290
|
+
# @return [EmailNotificationProfile]
|
291
|
+
def email_notification_profiles_partial_update(uuid, opts = {})
|
292
|
+
data, _status_code, _headers = email_notification_profiles_partial_update_with_http_info(uuid, opts)
|
293
|
+
data
|
294
|
+
end
|
295
|
+
|
296
|
+
# @param uuid [String]
|
297
|
+
# @param [Hash] opts the optional parameters
|
298
|
+
# @option opts [PatchedEmailNotificationProfile] :patched_email_notification_profile
|
299
|
+
# @return [Array<(EmailNotificationProfile, Integer, Hash)>] EmailNotificationProfile data, response status code and response headers
|
300
|
+
def email_notification_profiles_partial_update_with_http_info(uuid, opts = {})
|
301
|
+
if @api_client.config.debugging
|
302
|
+
@api_client.config.logger.debug 'Calling API: EmailNotificationProfilesApi.email_notification_profiles_partial_update ...'
|
303
|
+
end
|
304
|
+
# verify the required parameter 'uuid' is set
|
305
|
+
if @api_client.config.client_side_validation && uuid.nil?
|
306
|
+
fail ArgumentError, "Missing the required parameter 'uuid' when calling EmailNotificationProfilesApi.email_notification_profiles_partial_update"
|
307
|
+
end
|
308
|
+
# resource path
|
309
|
+
local_var_path = '/email_notification_profiles/{uuid}/'.sub('{' + 'uuid' + '}', CGI.escape(uuid.to_s))
|
310
|
+
|
311
|
+
# query parameters
|
312
|
+
query_params = opts[:query_params] || {}
|
313
|
+
|
314
|
+
# header parameters
|
315
|
+
header_params = opts[:header_params] || {}
|
316
|
+
# HTTP header 'Accept' (if needed)
|
317
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
318
|
+
# HTTP header 'Content-Type'
|
319
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
320
|
+
if !content_type.nil?
|
321
|
+
header_params['Content-Type'] = content_type
|
322
|
+
end
|
323
|
+
|
324
|
+
# form parameters
|
325
|
+
form_params = opts[:form_params] || {}
|
326
|
+
|
327
|
+
# http body (model)
|
328
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'patched_email_notification_profile'])
|
329
|
+
|
330
|
+
# return_type
|
331
|
+
return_type = opts[:debug_return_type] || 'EmailNotificationProfile'
|
332
|
+
|
333
|
+
# auth_names
|
334
|
+
auth_names = opts[:debug_auth_names] || ['tokenAuth']
|
335
|
+
|
336
|
+
new_options = opts.merge(
|
337
|
+
:operation => :"EmailNotificationProfilesApi.email_notification_profiles_partial_update",
|
338
|
+
:header_params => header_params,
|
339
|
+
:query_params => query_params,
|
340
|
+
:form_params => form_params,
|
341
|
+
:body => post_body,
|
342
|
+
:auth_names => auth_names,
|
343
|
+
:return_type => return_type
|
344
|
+
)
|
345
|
+
|
346
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
347
|
+
if @api_client.config.debugging
|
348
|
+
@api_client.config.logger.debug "API called: EmailNotificationProfilesApi#email_notification_profiles_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
349
|
+
end
|
350
|
+
return data, status_code, headers
|
351
|
+
end
|
352
|
+
|
353
|
+
# @param uuid [String]
|
354
|
+
# @param [Hash] opts the optional parameters
|
355
|
+
# @return [EmailNotificationProfile]
|
356
|
+
def email_notification_profiles_retrieve(uuid, opts = {})
|
357
|
+
data, _status_code, _headers = email_notification_profiles_retrieve_with_http_info(uuid, opts)
|
358
|
+
data
|
359
|
+
end
|
360
|
+
|
361
|
+
# @param uuid [String]
|
362
|
+
# @param [Hash] opts the optional parameters
|
363
|
+
# @return [Array<(EmailNotificationProfile, Integer, Hash)>] EmailNotificationProfile data, response status code and response headers
|
364
|
+
def email_notification_profiles_retrieve_with_http_info(uuid, opts = {})
|
365
|
+
if @api_client.config.debugging
|
366
|
+
@api_client.config.logger.debug 'Calling API: EmailNotificationProfilesApi.email_notification_profiles_retrieve ...'
|
367
|
+
end
|
368
|
+
# verify the required parameter 'uuid' is set
|
369
|
+
if @api_client.config.client_side_validation && uuid.nil?
|
370
|
+
fail ArgumentError, "Missing the required parameter 'uuid' when calling EmailNotificationProfilesApi.email_notification_profiles_retrieve"
|
371
|
+
end
|
372
|
+
# resource path
|
373
|
+
local_var_path = '/email_notification_profiles/{uuid}/'.sub('{' + 'uuid' + '}', CGI.escape(uuid.to_s))
|
374
|
+
|
375
|
+
# query parameters
|
376
|
+
query_params = opts[:query_params] || {}
|
377
|
+
|
378
|
+
# header parameters
|
379
|
+
header_params = opts[:header_params] || {}
|
380
|
+
# HTTP header 'Accept' (if needed)
|
381
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
382
|
+
|
383
|
+
# form parameters
|
384
|
+
form_params = opts[:form_params] || {}
|
385
|
+
|
386
|
+
# http body (model)
|
387
|
+
post_body = opts[:debug_body]
|
388
|
+
|
389
|
+
# return_type
|
390
|
+
return_type = opts[:debug_return_type] || 'EmailNotificationProfile'
|
391
|
+
|
392
|
+
# auth_names
|
393
|
+
auth_names = opts[:debug_auth_names] || ['tokenAuth']
|
394
|
+
|
395
|
+
new_options = opts.merge(
|
396
|
+
:operation => :"EmailNotificationProfilesApi.email_notification_profiles_retrieve",
|
397
|
+
:header_params => header_params,
|
398
|
+
:query_params => query_params,
|
399
|
+
:form_params => form_params,
|
400
|
+
:body => post_body,
|
401
|
+
:auth_names => auth_names,
|
402
|
+
:return_type => return_type
|
403
|
+
)
|
404
|
+
|
405
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
406
|
+
if @api_client.config.debugging
|
407
|
+
@api_client.config.logger.debug "API called: EmailNotificationProfilesApi#email_notification_profiles_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
408
|
+
end
|
409
|
+
return data, status_code, headers
|
410
|
+
end
|
411
|
+
|
412
|
+
# @param uuid [String]
|
413
|
+
# @param email_notification_profile [EmailNotificationProfile]
|
414
|
+
# @param [Hash] opts the optional parameters
|
415
|
+
# @return [EmailNotificationProfile]
|
416
|
+
def email_notification_profiles_update(uuid, email_notification_profile, opts = {})
|
417
|
+
data, _status_code, _headers = email_notification_profiles_update_with_http_info(uuid, email_notification_profile, opts)
|
418
|
+
data
|
419
|
+
end
|
420
|
+
|
421
|
+
# @param uuid [String]
|
422
|
+
# @param email_notification_profile [EmailNotificationProfile]
|
423
|
+
# @param [Hash] opts the optional parameters
|
424
|
+
# @return [Array<(EmailNotificationProfile, Integer, Hash)>] EmailNotificationProfile data, response status code and response headers
|
425
|
+
def email_notification_profiles_update_with_http_info(uuid, email_notification_profile, opts = {})
|
426
|
+
if @api_client.config.debugging
|
427
|
+
@api_client.config.logger.debug 'Calling API: EmailNotificationProfilesApi.email_notification_profiles_update ...'
|
428
|
+
end
|
429
|
+
# verify the required parameter 'uuid' is set
|
430
|
+
if @api_client.config.client_side_validation && uuid.nil?
|
431
|
+
fail ArgumentError, "Missing the required parameter 'uuid' when calling EmailNotificationProfilesApi.email_notification_profiles_update"
|
432
|
+
end
|
433
|
+
# verify the required parameter 'email_notification_profile' is set
|
434
|
+
if @api_client.config.client_side_validation && email_notification_profile.nil?
|
435
|
+
fail ArgumentError, "Missing the required parameter 'email_notification_profile' when calling EmailNotificationProfilesApi.email_notification_profiles_update"
|
436
|
+
end
|
437
|
+
# resource path
|
438
|
+
local_var_path = '/email_notification_profiles/{uuid}/'.sub('{' + 'uuid' + '}', CGI.escape(uuid.to_s))
|
439
|
+
|
440
|
+
# query parameters
|
441
|
+
query_params = opts[:query_params] || {}
|
442
|
+
|
443
|
+
# header parameters
|
444
|
+
header_params = opts[:header_params] || {}
|
445
|
+
# HTTP header 'Accept' (if needed)
|
446
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
447
|
+
# HTTP header 'Content-Type'
|
448
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
449
|
+
if !content_type.nil?
|
450
|
+
header_params['Content-Type'] = content_type
|
451
|
+
end
|
452
|
+
|
453
|
+
# form parameters
|
454
|
+
form_params = opts[:form_params] || {}
|
455
|
+
|
456
|
+
# http body (model)
|
457
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(email_notification_profile)
|
458
|
+
|
459
|
+
# return_type
|
460
|
+
return_type = opts[:debug_return_type] || 'EmailNotificationProfile'
|
461
|
+
|
462
|
+
# auth_names
|
463
|
+
auth_names = opts[:debug_auth_names] || ['tokenAuth']
|
464
|
+
|
465
|
+
new_options = opts.merge(
|
466
|
+
:operation => :"EmailNotificationProfilesApi.email_notification_profiles_update",
|
467
|
+
:header_params => header_params,
|
468
|
+
:query_params => query_params,
|
469
|
+
:form_params => form_params,
|
470
|
+
:body => post_body,
|
471
|
+
:auth_names => auth_names,
|
472
|
+
:return_type => return_type
|
473
|
+
)
|
474
|
+
|
475
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
476
|
+
if @api_client.config.debugging
|
477
|
+
@api_client.config.logger.debug "API called: EmailNotificationProfilesApi#email_notification_profiles_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
478
|
+
end
|
479
|
+
return data, status_code, headers
|
480
|
+
end
|
481
|
+
end
|
482
|
+
end
|