cloudreactor_api_client 0.1.1.pre → 0.3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +27 -14
- data/cloudreactor_api_client.md +11 -14
- data/lib/cloudreactor_api_client/api/alert_methods_api.rb +5 -5
- data/lib/cloudreactor_api_client/api/email_notification_profiles_api.rb +5 -5
- data/lib/cloudreactor_api_client/api/pagerduty_profiles_api.rb +5 -5
- data/lib/cloudreactor_api_client/api/run_environments_api.rb +5 -5
- data/lib/cloudreactor_api_client/api/task_executions_api.rb +4 -4
- data/lib/cloudreactor_api_client/api/tasks_api.rb +4 -4
- data/lib/cloudreactor_api_client/api/workflow_executions_api.rb +6 -6
- data/lib/cloudreactor_api_client/api/workflow_task_instances_api.rb +4 -4
- data/lib/cloudreactor_api_client/api/workflow_transitions_api.rb +4 -4
- data/lib/cloudreactor_api_client/api/workflows_api.rb +5 -5
- data/lib/cloudreactor_api_client/api_client.rb +1 -1
- data/lib/cloudreactor_api_client/api_error.rb +1 -1
- data/lib/cloudreactor_api_client/configuration.rb +3 -3
- data/lib/cloudreactor_api_client/models/alert_method.rb +1 -36
- data/lib/cloudreactor_api_client/models/aws_ecs_execution_method.rb +1 -26
- data/lib/cloudreactor_api_client/models/aws_ecs_execution_method_capability.rb +1 -41
- data/lib/cloudreactor_api_client/models/aws_ecs_launch_type.rb +1 -1
- data/lib/cloudreactor_api_client/models/aws_ecs_run_environment_execution_method_capability.rb +1 -36
- data/lib/cloudreactor_api_client/models/aws_ecs_service_load_balancer_details.rb +1 -1
- data/lib/cloudreactor_api_client/models/aws_ecs_service_options.rb +1 -6
- data/lib/cloudreactor_api_client/models/current_service_info.rb +2 -11
- data/lib/cloudreactor_api_client/models/email_notification_profile.rb +1 -31
- data/lib/cloudreactor_api_client/models/execution_method_capability.rb +1 -1
- data/lib/cloudreactor_api_client/models/failure_behavior_enum.rb +1 -1
- data/lib/cloudreactor_api_client/models/group.rb +1 -11
- data/lib/cloudreactor_api_client/models/link.rb +1 -6
- data/lib/cloudreactor_api_client/models/name_and_uuid.rb +1 -1
- data/lib/cloudreactor_api_client/models/notification_severity.rb +1 -1
- data/lib/cloudreactor_api_client/models/pager_duty_profile.rb +1 -31
- data/lib/cloudreactor_api_client/models/paginated_alert_method_list.rb +1 -1
- data/lib/cloudreactor_api_client/models/paginated_email_notification_profile_list.rb +1 -1
- data/lib/cloudreactor_api_client/models/paginated_pager_duty_profile_list.rb +1 -1
- data/lib/cloudreactor_api_client/models/paginated_run_environment_list.rb +1 -1
- data/lib/cloudreactor_api_client/models/paginated_task_execution_list.rb +1 -1
- data/lib/cloudreactor_api_client/models/paginated_task_list.rb +1 -1
- data/lib/cloudreactor_api_client/models/paginated_workflow_execution_summary_list.rb +1 -1
- data/lib/cloudreactor_api_client/models/paginated_workflow_summary_list.rb +1 -1
- data/lib/cloudreactor_api_client/models/paginated_workflow_task_instance_list.rb +1 -1
- data/lib/cloudreactor_api_client/models/paginated_workflow_transition_list.rb +1 -1
- data/lib/cloudreactor_api_client/models/patched_alert_method.rb +1 -1
- data/lib/cloudreactor_api_client/models/patched_email_notification_profile.rb +1 -1
- data/lib/cloudreactor_api_client/models/patched_pager_duty_profile.rb +1 -1
- data/lib/cloudreactor_api_client/models/patched_run_environment.rb +1 -1
- data/lib/cloudreactor_api_client/models/patched_task.rb +1 -1
- data/lib/cloudreactor_api_client/models/patched_task_execution.rb +4 -1
- data/lib/cloudreactor_api_client/models/patched_workflow.rb +2 -1
- data/lib/cloudreactor_api_client/models/patched_workflow_execution.rb +7 -52
- data/lib/cloudreactor_api_client/models/patched_workflow_task_instance.rb +1 -1
- data/lib/cloudreactor_api_client/models/patched_workflow_transition.rb +1 -1
- data/lib/cloudreactor_api_client/models/propagate_tags_enum.rb +1 -1
- data/lib/cloudreactor_api_client/models/rule_type_enum.rb +1 -1
- data/lib/cloudreactor_api_client/models/run_environment.rb +1 -36
- data/lib/cloudreactor_api_client/models/start_transition_condition_enum.rb +1 -1
- data/lib/cloudreactor_api_client/models/stop_reason_enum.rb +1 -1
- data/lib/cloudreactor_api_client/models/task.rb +1 -36
- data/lib/cloudreactor_api_client/models/task_execution.rb +4 -46
- data/lib/cloudreactor_api_client/models/task_execution_status.rb +1 -1
- data/lib/cloudreactor_api_client/models/threshold_property_enum.rb +1 -1
- data/lib/cloudreactor_api_client/models/timeout_behavior_enum.rb +1 -1
- data/lib/cloudreactor_api_client/models/unknown_execution_method_capability.rb +1 -11
- data/lib/cloudreactor_api_client/models/workflow.rb +2 -41
- data/lib/cloudreactor_api_client/models/workflow_execution.rb +7 -112
- data/lib/cloudreactor_api_client/models/workflow_execution_run_reason.rb +38 -0
- data/lib/cloudreactor_api_client/models/workflow_execution_status.rb +1 -1
- data/lib/cloudreactor_api_client/models/workflow_execution_stop_reason.rb +37 -0
- data/lib/cloudreactor_api_client/models/workflow_execution_summary.rb +4 -83
- data/lib/cloudreactor_api_client/models/workflow_summary.rb +2 -31
- data/lib/cloudreactor_api_client/models/workflow_task_instance.rb +1 -21
- data/lib/cloudreactor_api_client/models/workflow_task_instance_execution.rb +1 -16
- data/lib/cloudreactor_api_client/models/workflow_task_instance_execution_base.rb +1 -16
- data/lib/cloudreactor_api_client/models/workflow_transition.rb +1 -21
- data/lib/cloudreactor_api_client/models/workflow_transition_evaluation.rb +1 -16
- data/lib/cloudreactor_api_client/version.rb +2 -2
- data/lib/cloudreactor_api_client.rb +3 -16
- data/lib/cloudreactor_wrapper_io/status_updater.rb +41 -0
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/integration/task_execution_integration_spec.rb +2 -2
- data/spec/models/workflow_execution_run_reason_spec.rb +28 -0
- data/spec/models/workflow_execution_stop_reason_spec.rb +28 -0
- data/spec/spec_helper.rb +1 -1
- metadata +10 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c158d2fc59dd210f3cf92d7a55f74718f94bb6bbeb0f10b8b15390ad816412cb
|
4
|
+
data.tar.gz: a39c5dcdfa6b8ed3a9d25b9b9936d58beec25d6cdd2ec54946f91009b49609d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9919bb4c890af84fae5c4082dcb2c928d5184614893d7e83e5483e4b72793f540c5b67b1ac54fc620965b309a4b6dccedc37f90c865b2fc130e5334a9b556996
|
7
|
+
data.tar.gz: 7cc23289a026ad7744cee105bdc52fd7f74325fe7be82c1e35dcf20735496deda16020737b0c5facb1ca6a0f7a2343de68d883b3314a8d2fc6463f8b2fce8906
|
data/README.md
CHANGED
@@ -1,19 +1,28 @@
|
|
1
|
-
#
|
1
|
+
# CloudReactor Ruby API client and Wrapper I/O
|
2
2
|
|
3
|
+

|
3
4
|

|
4
5
|

|
6
|
+

|
5
7
|
|
6
8
|
## Overview
|
7
9
|
|
8
10
|
This Ruby gem consists of 2 parts:
|
9
11
|
|
10
12
|
1) The CloudReactor API client allows ruby applications to programmatically
|
11
|
-
create, monitor, and manage Tasks and Workflows
|
12
|
-
|
13
|
+
create, monitor, and manage Tasks and Workflows in
|
14
|
+
[CloudReactor](https://cloudreactor.io/). Most
|
15
|
+
notably, you can start and stop Tasks and Workflows by creating Task
|
16
|
+
Executions and Workflow Executions.
|
13
17
|
|
14
18
|
2) The Wrapper I/O module allows ruby applications to communicate with the
|
15
|
-
[CloudReactor wrapper](https://github.com/CloudReactor/cloudreactor-procwrapper)
|
16
|
-
|
19
|
+
[CloudReactor process wrapper](https://github.com/CloudReactor/cloudreactor-procwrapper) which is the parent process.
|
20
|
+
|
21
|
+
To install this gem, include:
|
22
|
+
|
23
|
+
gem 'cloudreactor_api_client'
|
24
|
+
|
25
|
+
in your `Gemfile`.
|
17
26
|
|
18
27
|
See the [CloudReactor landing page](https://www.cloudreactor.io/) to see the
|
19
28
|
benefits of monitoring and managing your tasks with CloudReactor.
|
@@ -21,16 +30,16 @@ benefits of monitoring and managing your tasks with CloudReactor.
|
|
21
30
|
## API client
|
22
31
|
|
23
32
|
The API client allows your program to control various entities in CloudReactor,
|
24
|
-
most
|
33
|
+
most notably, Tasks and Workflows. The code and
|
25
34
|
[documentation](cloudreactor_api_client.md) are generated by
|
26
35
|
[OpenAPI generator](https://github.com/OpenAPITools/openapi-generator).
|
27
36
|
|
28
|
-
To start an existing Task, create a
|
37
|
+
To start an existing Task, create a TaskExecution linked to the Task, with a
|
29
38
|
status of `CloudReactorAPIClient::TaskExecutionStatus::MANUALLY_STARTED`:
|
30
39
|
|
31
40
|
```ruby
|
32
41
|
config = CloudReactorAPIClient::Configuration.new
|
33
|
-
config.
|
42
|
+
config.access_token = 'YOUR API KEY'
|
34
43
|
api_client = CloudReactorAPIClient::ApiClient.new(config)
|
35
44
|
|
36
45
|
task = CloudReactorAPIClient::NameAndUuid.new
|
@@ -44,7 +53,7 @@ te_api.task_executions_create(task_execution)
|
|
44
53
|
|
45
54
|
## Wrapper I/O
|
46
55
|
|
47
|
-
While running a ruby process that is wrapped by
|
56
|
+
While running a ruby process that is wrapped by a CloudReactor process wrapper,
|
48
57
|
you can use `CloudReactorWrapperIO::StatusUpdater` to
|
49
58
|
send updates about your process to the wrapper. The wrapper will send those
|
50
59
|
updates to the CloudReactor API server during its next heartbeat.
|
@@ -64,13 +73,16 @@ picked up correctly.
|
|
64
73
|
### Example usage
|
65
74
|
|
66
75
|
```ruby
|
76
|
+
# This is necessary even in Rails, due to the module name not matching the
|
77
|
+
# package name.
|
78
|
+
require 'cloudreactor_wrapper_io'
|
79
|
+
|
67
80
|
# Use the environment variables
|
68
|
-
# PROC_WRAPPER_ENABLE_STATUS_UPDATE_LISTENER
|
69
|
-
# PROC_WRAPPER_STATUS_UPDATE_SOCKET_PORT
|
70
|
-
# PROC_WRAPPER_STATUS_UPDATE_SOCKET_BIND_PORT
|
81
|
+
# PROC_WRAPPER_ENABLE_STATUS_UPDATE_LISTENER (set to TRUE or FALSE)
|
82
|
+
# PROC_WRAPPER_STATUS_UPDATE_SOCKET_PORT (set to an integer)
|
71
83
|
# to determine configuration. These environment variables are typically passed
|
72
|
-
# to the
|
73
|
-
status_updater =
|
84
|
+
# to the process wrapper which then passes them on to your process.
|
85
|
+
status_updater = CloudReactorWrapperIO::StatusUpdater.new()
|
74
86
|
|
75
87
|
begin
|
76
88
|
status_updater.send_update(
|
@@ -85,6 +97,7 @@ end
|
|
85
97
|
|
86
98
|
## More documentation
|
87
99
|
|
100
|
+
* [RubyDoc](https://www.rubydoc.info/gems/cloudreactor_api_client/)
|
88
101
|
* [CloudReactor API documentation](https://apidocs.cloudreactor.io/)
|
89
102
|
|
90
103
|
## License
|
data/cloudreactor_api_client.md
CHANGED
@@ -6,8 +6,8 @@ CloudReactor API Documentation
|
|
6
6
|
|
7
7
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
8
8
|
|
9
|
-
- API version: 0.
|
10
|
-
- Package version: 0.
|
9
|
+
- API version: 0.3.0
|
10
|
+
- Package version: 0.3.0.0
|
11
11
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
12
12
|
For more information, please visit [https://cloudreactor.io/](https://cloudreactor.io/)
|
13
13
|
|
@@ -24,16 +24,16 @@ gem build cloudreactor_api_client.gemspec
|
|
24
24
|
Then either install the gem locally:
|
25
25
|
|
26
26
|
```shell
|
27
|
-
gem install ./cloudreactor_api_client-0.
|
27
|
+
gem install ./cloudreactor_api_client-0.3.0.0.gem
|
28
28
|
```
|
29
29
|
|
30
|
-
(for development, run `gem install --dev ./cloudreactor_api_client-0.
|
30
|
+
(for development, run `gem install --dev ./cloudreactor_api_client-0.3.0.0.gem` to install the development dependencies)
|
31
31
|
|
32
32
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
33
33
|
|
34
34
|
Finally add this to the Gemfile:
|
35
35
|
|
36
|
-
gem 'cloudreactor_api_client', '~> 0.
|
36
|
+
gem 'cloudreactor_api_client', '~> 0.3.0.0'
|
37
37
|
|
38
38
|
### Install from Git
|
39
39
|
|
@@ -59,15 +59,13 @@ require 'cloudreactor_api_client'
|
|
59
59
|
|
60
60
|
# Setup authorization
|
61
61
|
CloudReactorAPIClient.configure do |config|
|
62
|
-
# Configure
|
63
|
-
config.
|
64
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
65
|
-
# config.api_key_prefix['tokenAuth'] = 'Bearer'
|
62
|
+
# Configure Bearer authorization: tokenAuth
|
63
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
66
64
|
end
|
67
65
|
|
68
66
|
api_instance = CloudReactorAPIClient::AlertMethodsApi.new
|
69
67
|
uuid = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
|
70
|
-
alert_method = CloudReactorAPIClient::AlertMethod.new({
|
68
|
+
alert_method = CloudReactorAPIClient::AlertMethod.new({name: 'name_example'}) # AlertMethod |
|
71
69
|
|
72
70
|
begin
|
73
71
|
result = api_instance.alert_methods_clone_create(uuid, alert_method)
|
@@ -204,7 +202,9 @@ Class | Method | HTTP request | Description
|
|
204
202
|
- [CloudReactorAPIClient::UnknownExecutionMethodCapability](docs/UnknownExecutionMethodCapability.md)
|
205
203
|
- [CloudReactorAPIClient::Workflow](docs/Workflow.md)
|
206
204
|
- [CloudReactorAPIClient::WorkflowExecution](docs/WorkflowExecution.md)
|
205
|
+
- [CloudReactorAPIClient::WorkflowExecutionRunReason](docs/WorkflowExecutionRunReason.md)
|
207
206
|
- [CloudReactorAPIClient::WorkflowExecutionStatus](docs/WorkflowExecutionStatus.md)
|
207
|
+
- [CloudReactorAPIClient::WorkflowExecutionStopReason](docs/WorkflowExecutionStopReason.md)
|
208
208
|
- [CloudReactorAPIClient::WorkflowExecutionSummary](docs/WorkflowExecutionSummary.md)
|
209
209
|
- [CloudReactorAPIClient::WorkflowSummary](docs/WorkflowSummary.md)
|
210
210
|
- [CloudReactorAPIClient::WorkflowTaskInstance](docs/WorkflowTaskInstance.md)
|
@@ -219,8 +219,5 @@ Class | Method | HTTP request | Description
|
|
219
219
|
|
220
220
|
### tokenAuth
|
221
221
|
|
222
|
-
|
223
|
-
- **Type**: API key
|
224
|
-
- **API key parameter name**: Authorization
|
225
|
-
- **Location**: HTTP header
|
222
|
+
- **Type**: Bearer authentication
|
226
223
|
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#CloudReactor API Documentation
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.
|
6
|
+
The version of the OpenAPI document: 0.3.0
|
7
7
|
Contact: jeff@cloudreactor.io
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.4.0
|
@@ -55,7 +55,7 @@ module CloudReactorAPIClient
|
|
55
55
|
# HTTP header 'Accept' (if needed)
|
56
56
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
57
57
|
# HTTP header 'Content-Type'
|
58
|
-
content_type = @api_client.select_header_content_type(['application/json'
|
58
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
59
59
|
if !content_type.nil?
|
60
60
|
header_params['Content-Type'] = content_type
|
61
61
|
end
|
@@ -119,7 +119,7 @@ module CloudReactorAPIClient
|
|
119
119
|
# HTTP header 'Accept' (if needed)
|
120
120
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
121
121
|
# HTTP header 'Content-Type'
|
122
|
-
content_type = @api_client.select_header_content_type(['application/json'
|
122
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
123
123
|
if !content_type.nil?
|
124
124
|
header_params['Content-Type'] = content_type
|
125
125
|
end
|
@@ -316,7 +316,7 @@ module CloudReactorAPIClient
|
|
316
316
|
# HTTP header 'Accept' (if needed)
|
317
317
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
318
318
|
# HTTP header 'Content-Type'
|
319
|
-
content_type = @api_client.select_header_content_type(['application/json'
|
319
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
320
320
|
if !content_type.nil?
|
321
321
|
header_params['Content-Type'] = content_type
|
322
322
|
end
|
@@ -445,7 +445,7 @@ module CloudReactorAPIClient
|
|
445
445
|
# HTTP header 'Accept' (if needed)
|
446
446
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
447
447
|
# HTTP header 'Content-Type'
|
448
|
-
content_type = @api_client.select_header_content_type(['application/json'
|
448
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
449
449
|
if !content_type.nil?
|
450
450
|
header_params['Content-Type'] = content_type
|
451
451
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#CloudReactor API Documentation
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.
|
6
|
+
The version of the OpenAPI document: 0.3.0
|
7
7
|
Contact: jeff@cloudreactor.io
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.4.0
|
@@ -55,7 +55,7 @@ module CloudReactorAPIClient
|
|
55
55
|
# HTTP header 'Accept' (if needed)
|
56
56
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
57
57
|
# HTTP header 'Content-Type'
|
58
|
-
content_type = @api_client.select_header_content_type(['application/json'
|
58
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
59
59
|
if !content_type.nil?
|
60
60
|
header_params['Content-Type'] = content_type
|
61
61
|
end
|
@@ -119,7 +119,7 @@ module CloudReactorAPIClient
|
|
119
119
|
# HTTP header 'Accept' (if needed)
|
120
120
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
121
121
|
# HTTP header 'Content-Type'
|
122
|
-
content_type = @api_client.select_header_content_type(['application/json'
|
122
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
123
123
|
if !content_type.nil?
|
124
124
|
header_params['Content-Type'] = content_type
|
125
125
|
end
|
@@ -316,7 +316,7 @@ module CloudReactorAPIClient
|
|
316
316
|
# HTTP header 'Accept' (if needed)
|
317
317
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
318
318
|
# HTTP header 'Content-Type'
|
319
|
-
content_type = @api_client.select_header_content_type(['application/json'
|
319
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
320
320
|
if !content_type.nil?
|
321
321
|
header_params['Content-Type'] = content_type
|
322
322
|
end
|
@@ -445,7 +445,7 @@ module CloudReactorAPIClient
|
|
445
445
|
# HTTP header 'Accept' (if needed)
|
446
446
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
447
447
|
# HTTP header 'Content-Type'
|
448
|
-
content_type = @api_client.select_header_content_type(['application/json'
|
448
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
449
449
|
if !content_type.nil?
|
450
450
|
header_params['Content-Type'] = content_type
|
451
451
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#CloudReactor API Documentation
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.
|
6
|
+
The version of the OpenAPI document: 0.3.0
|
7
7
|
Contact: jeff@cloudreactor.io
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.4.0
|
@@ -55,7 +55,7 @@ module CloudReactorAPIClient
|
|
55
55
|
# HTTP header 'Accept' (if needed)
|
56
56
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
57
57
|
# HTTP header 'Content-Type'
|
58
|
-
content_type = @api_client.select_header_content_type(['application/json'
|
58
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
59
59
|
if !content_type.nil?
|
60
60
|
header_params['Content-Type'] = content_type
|
61
61
|
end
|
@@ -119,7 +119,7 @@ module CloudReactorAPIClient
|
|
119
119
|
# HTTP header 'Accept' (if needed)
|
120
120
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
121
121
|
# HTTP header 'Content-Type'
|
122
|
-
content_type = @api_client.select_header_content_type(['application/json'
|
122
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
123
123
|
if !content_type.nil?
|
124
124
|
header_params['Content-Type'] = content_type
|
125
125
|
end
|
@@ -316,7 +316,7 @@ module CloudReactorAPIClient
|
|
316
316
|
# HTTP header 'Accept' (if needed)
|
317
317
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
318
318
|
# HTTP header 'Content-Type'
|
319
|
-
content_type = @api_client.select_header_content_type(['application/json'
|
319
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
320
320
|
if !content_type.nil?
|
321
321
|
header_params['Content-Type'] = content_type
|
322
322
|
end
|
@@ -445,7 +445,7 @@ module CloudReactorAPIClient
|
|
445
445
|
# HTTP header 'Accept' (if needed)
|
446
446
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
447
447
|
# HTTP header 'Content-Type'
|
448
|
-
content_type = @api_client.select_header_content_type(['application/json'
|
448
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
449
449
|
if !content_type.nil?
|
450
450
|
header_params['Content-Type'] = content_type
|
451
451
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#CloudReactor API Documentation
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.
|
6
|
+
The version of the OpenAPI document: 0.3.0
|
7
7
|
Contact: jeff@cloudreactor.io
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.4.0
|
@@ -55,7 +55,7 @@ module CloudReactorAPIClient
|
|
55
55
|
# HTTP header 'Accept' (if needed)
|
56
56
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
57
57
|
# HTTP header 'Content-Type'
|
58
|
-
content_type = @api_client.select_header_content_type(['application/json'
|
58
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
59
59
|
if !content_type.nil?
|
60
60
|
header_params['Content-Type'] = content_type
|
61
61
|
end
|
@@ -119,7 +119,7 @@ module CloudReactorAPIClient
|
|
119
119
|
# HTTP header 'Accept' (if needed)
|
120
120
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
121
121
|
# HTTP header 'Content-Type'
|
122
|
-
content_type = @api_client.select_header_content_type(['application/json'
|
122
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
123
123
|
if !content_type.nil?
|
124
124
|
header_params['Content-Type'] = content_type
|
125
125
|
end
|
@@ -313,7 +313,7 @@ module CloudReactorAPIClient
|
|
313
313
|
# HTTP header 'Accept' (if needed)
|
314
314
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
315
315
|
# HTTP header 'Content-Type'
|
316
|
-
content_type = @api_client.select_header_content_type(['application/json'
|
316
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
317
317
|
if !content_type.nil?
|
318
318
|
header_params['Content-Type'] = content_type
|
319
319
|
end
|
@@ -442,7 +442,7 @@ module CloudReactorAPIClient
|
|
442
442
|
# HTTP header 'Accept' (if needed)
|
443
443
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
444
444
|
# HTTP header 'Content-Type'
|
445
|
-
content_type = @api_client.select_header_content_type(['application/json'
|
445
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
446
446
|
if !content_type.nil?
|
447
447
|
header_params['Content-Type'] = content_type
|
448
448
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#CloudReactor API Documentation
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.
|
6
|
+
The version of the OpenAPI document: 0.3.0
|
7
7
|
Contact: jeff@cloudreactor.io
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.4.0
|
@@ -49,7 +49,7 @@ module CloudReactorAPIClient
|
|
49
49
|
# HTTP header 'Accept' (if needed)
|
50
50
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
51
51
|
# HTTP header 'Content-Type'
|
52
|
-
content_type = @api_client.select_header_content_type(['application/json'
|
52
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
53
53
|
if !content_type.nil?
|
54
54
|
header_params['Content-Type'] = content_type
|
55
55
|
end
|
@@ -243,7 +243,7 @@ module CloudReactorAPIClient
|
|
243
243
|
# HTTP header 'Accept' (if needed)
|
244
244
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
245
245
|
# HTTP header 'Content-Type'
|
246
|
-
content_type = @api_client.select_header_content_type(['application/json'
|
246
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
247
247
|
if !content_type.nil?
|
248
248
|
header_params['Content-Type'] = content_type
|
249
249
|
end
|
@@ -372,7 +372,7 @@ module CloudReactorAPIClient
|
|
372
372
|
# HTTP header 'Accept' (if needed)
|
373
373
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
374
374
|
# HTTP header 'Content-Type'
|
375
|
-
content_type = @api_client.select_header_content_type(['application/json'
|
375
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
376
376
|
if !content_type.nil?
|
377
377
|
header_params['Content-Type'] = content_type
|
378
378
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#CloudReactor API Documentation
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.
|
6
|
+
The version of the OpenAPI document: 0.3.0
|
7
7
|
Contact: jeff@cloudreactor.io
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.4.0
|
@@ -49,7 +49,7 @@ module CloudReactorAPIClient
|
|
49
49
|
# HTTP header 'Accept' (if needed)
|
50
50
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
51
51
|
# HTTP header 'Content-Type'
|
52
|
-
content_type = @api_client.select_header_content_type(['application/json'
|
52
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
53
53
|
if !content_type.nil?
|
54
54
|
header_params['Content-Type'] = content_type
|
55
55
|
end
|
@@ -246,7 +246,7 @@ module CloudReactorAPIClient
|
|
246
246
|
# HTTP header 'Accept' (if needed)
|
247
247
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
248
248
|
# HTTP header 'Content-Type'
|
249
|
-
content_type = @api_client.select_header_content_type(['application/json'
|
249
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
250
250
|
if !content_type.nil?
|
251
251
|
header_params['Content-Type'] = content_type
|
252
252
|
end
|
@@ -375,7 +375,7 @@ module CloudReactorAPIClient
|
|
375
375
|
# HTTP header 'Accept' (if needed)
|
376
376
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
377
377
|
# HTTP header 'Content-Type'
|
378
|
-
content_type = @api_client.select_header_content_type(['application/json'
|
378
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
379
379
|
if !content_type.nil?
|
380
380
|
header_params['Content-Type'] = content_type
|
381
381
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#CloudReactor API Documentation
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.
|
6
|
+
The version of the OpenAPI document: 0.3.0
|
7
7
|
Contact: jeff@cloudreactor.io
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.4.0
|
@@ -49,7 +49,7 @@ module CloudReactorAPIClient
|
|
49
49
|
# HTTP header 'Accept' (if needed)
|
50
50
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
51
51
|
# HTTP header 'Content-Type'
|
52
|
-
content_type = @api_client.select_header_content_type(['application/json'
|
52
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
53
53
|
if !content_type.nil?
|
54
54
|
header_params['Content-Type'] = content_type
|
55
55
|
end
|
@@ -243,7 +243,7 @@ module CloudReactorAPIClient
|
|
243
243
|
# HTTP header 'Accept' (if needed)
|
244
244
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
245
245
|
# HTTP header 'Content-Type'
|
246
|
-
content_type = @api_client.select_header_content_type(['application/json'
|
246
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
247
247
|
if !content_type.nil?
|
248
248
|
header_params['Content-Type'] = content_type
|
249
249
|
end
|
@@ -372,7 +372,7 @@ module CloudReactorAPIClient
|
|
372
372
|
# HTTP header 'Accept' (if needed)
|
373
373
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
374
374
|
# HTTP header 'Content-Type'
|
375
|
-
content_type = @api_client.select_header_content_type(['application/json'
|
375
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
376
376
|
if !content_type.nil?
|
377
377
|
header_params['Content-Type'] = content_type
|
378
378
|
end
|
@@ -442,7 +442,7 @@ module CloudReactorAPIClient
|
|
442
442
|
# HTTP header 'Accept' (if needed)
|
443
443
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
444
444
|
# HTTP header 'Content-Type'
|
445
|
-
content_type = @api_client.select_header_content_type(['application/json'
|
445
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
446
446
|
if !content_type.nil?
|
447
447
|
header_params['Content-Type'] = content_type
|
448
448
|
end
|
@@ -512,7 +512,7 @@ module CloudReactorAPIClient
|
|
512
512
|
# HTTP header 'Accept' (if needed)
|
513
513
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
514
514
|
# HTTP header 'Content-Type'
|
515
|
-
content_type = @api_client.select_header_content_type(['application/json'
|
515
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
516
516
|
if !content_type.nil?
|
517
517
|
header_params['Content-Type'] = content_type
|
518
518
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#CloudReactor API Documentation
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.
|
6
|
+
The version of the OpenAPI document: 0.3.0
|
7
7
|
Contact: jeff@cloudreactor.io
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.4.0
|
@@ -49,7 +49,7 @@ module CloudReactorAPIClient
|
|
49
49
|
# HTTP header 'Accept' (if needed)
|
50
50
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
51
51
|
# HTTP header 'Content-Type'
|
52
|
-
content_type = @api_client.select_header_content_type(['application/json'
|
52
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
53
53
|
if !content_type.nil?
|
54
54
|
header_params['Content-Type'] = content_type
|
55
55
|
end
|
@@ -258,7 +258,7 @@ module CloudReactorAPIClient
|
|
258
258
|
# HTTP header 'Accept' (if needed)
|
259
259
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
260
260
|
# HTTP header 'Content-Type'
|
261
|
-
content_type = @api_client.select_header_content_type(['application/json'
|
261
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
262
262
|
if !content_type.nil?
|
263
263
|
header_params['Content-Type'] = content_type
|
264
264
|
end
|
@@ -387,7 +387,7 @@ module CloudReactorAPIClient
|
|
387
387
|
# HTTP header 'Accept' (if needed)
|
388
388
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
389
389
|
# HTTP header 'Content-Type'
|
390
|
-
content_type = @api_client.select_header_content_type(['application/json'
|
390
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
391
391
|
if !content_type.nil?
|
392
392
|
header_params['Content-Type'] = content_type
|
393
393
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#CloudReactor API Documentation
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.
|
6
|
+
The version of the OpenAPI document: 0.3.0
|
7
7
|
Contact: jeff@cloudreactor.io
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.4.0
|
@@ -49,7 +49,7 @@ module CloudReactorAPIClient
|
|
49
49
|
# HTTP header 'Accept' (if needed)
|
50
50
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
51
51
|
# HTTP header 'Content-Type'
|
52
|
-
content_type = @api_client.select_header_content_type(['application/json'
|
52
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
53
53
|
if !content_type.nil?
|
54
54
|
header_params['Content-Type'] = content_type
|
55
55
|
end
|
@@ -240,7 +240,7 @@ module CloudReactorAPIClient
|
|
240
240
|
# HTTP header 'Accept' (if needed)
|
241
241
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
242
242
|
# HTTP header 'Content-Type'
|
243
|
-
content_type = @api_client.select_header_content_type(['application/json'
|
243
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
244
244
|
if !content_type.nil?
|
245
245
|
header_params['Content-Type'] = content_type
|
246
246
|
end
|
@@ -369,7 +369,7 @@ module CloudReactorAPIClient
|
|
369
369
|
# HTTP header 'Accept' (if needed)
|
370
370
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
371
371
|
# HTTP header 'Content-Type'
|
372
|
-
content_type = @api_client.select_header_content_type(['application/json'
|
372
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
373
373
|
if !content_type.nil?
|
374
374
|
header_params['Content-Type'] = content_type
|
375
375
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#CloudReactor API Documentation
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.
|
6
|
+
The version of the OpenAPI document: 0.3.0
|
7
7
|
Contact: jeff@cloudreactor.io
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.4.0
|
@@ -55,7 +55,7 @@ module CloudReactorAPIClient
|
|
55
55
|
# HTTP header 'Accept' (if needed)
|
56
56
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
57
57
|
# HTTP header 'Content-Type'
|
58
|
-
content_type = @api_client.select_header_content_type(['application/json'
|
58
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
59
59
|
if !content_type.nil?
|
60
60
|
header_params['Content-Type'] = content_type
|
61
61
|
end
|
@@ -119,7 +119,7 @@ module CloudReactorAPIClient
|
|
119
119
|
# HTTP header 'Accept' (if needed)
|
120
120
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
121
121
|
# HTTP header 'Content-Type'
|
122
|
-
content_type = @api_client.select_header_content_type(['application/json'
|
122
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
123
123
|
if !content_type.nil?
|
124
124
|
header_params['Content-Type'] = content_type
|
125
125
|
end
|
@@ -316,7 +316,7 @@ module CloudReactorAPIClient
|
|
316
316
|
# HTTP header 'Accept' (if needed)
|
317
317
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
318
318
|
# HTTP header 'Content-Type'
|
319
|
-
content_type = @api_client.select_header_content_type(['application/json'
|
319
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
320
320
|
if !content_type.nil?
|
321
321
|
header_params['Content-Type'] = content_type
|
322
322
|
end
|
@@ -445,7 +445,7 @@ module CloudReactorAPIClient
|
|
445
445
|
# HTTP header 'Accept' (if needed)
|
446
446
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
447
447
|
# HTTP header 'Content-Type'
|
448
|
-
content_type = @api_client.select_header_content_type(['application/json'
|
448
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
449
449
|
if !content_type.nil?
|
450
450
|
header_params['Content-Type'] = content_type
|
451
451
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#CloudReactor API Documentation
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.
|
6
|
+
The version of the OpenAPI document: 0.3.0
|
7
7
|
Contact: jeff@cloudreactor.io
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.4.0
|
@@ -217,10 +217,10 @@ module CloudReactorAPIClient
|
|
217
217
|
{
|
218
218
|
'tokenAuth' =>
|
219
219
|
{
|
220
|
-
type: '
|
220
|
+
type: 'bearer',
|
221
221
|
in: 'header',
|
222
222
|
key: 'Authorization',
|
223
|
-
value:
|
223
|
+
value: "Bearer #{access_token}"
|
224
224
|
},
|
225
225
|
}
|
226
226
|
end
|