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.
Files changed (85) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +27 -14
  3. data/cloudreactor_api_client.md +11 -14
  4. data/lib/cloudreactor_api_client/api/alert_methods_api.rb +5 -5
  5. data/lib/cloudreactor_api_client/api/email_notification_profiles_api.rb +5 -5
  6. data/lib/cloudreactor_api_client/api/pagerduty_profiles_api.rb +5 -5
  7. data/lib/cloudreactor_api_client/api/run_environments_api.rb +5 -5
  8. data/lib/cloudreactor_api_client/api/task_executions_api.rb +4 -4
  9. data/lib/cloudreactor_api_client/api/tasks_api.rb +4 -4
  10. data/lib/cloudreactor_api_client/api/workflow_executions_api.rb +6 -6
  11. data/lib/cloudreactor_api_client/api/workflow_task_instances_api.rb +4 -4
  12. data/lib/cloudreactor_api_client/api/workflow_transitions_api.rb +4 -4
  13. data/lib/cloudreactor_api_client/api/workflows_api.rb +5 -5
  14. data/lib/cloudreactor_api_client/api_client.rb +1 -1
  15. data/lib/cloudreactor_api_client/api_error.rb +1 -1
  16. data/lib/cloudreactor_api_client/configuration.rb +3 -3
  17. data/lib/cloudreactor_api_client/models/alert_method.rb +1 -36
  18. data/lib/cloudreactor_api_client/models/aws_ecs_execution_method.rb +1 -26
  19. data/lib/cloudreactor_api_client/models/aws_ecs_execution_method_capability.rb +1 -41
  20. data/lib/cloudreactor_api_client/models/aws_ecs_launch_type.rb +1 -1
  21. data/lib/cloudreactor_api_client/models/aws_ecs_run_environment_execution_method_capability.rb +1 -36
  22. data/lib/cloudreactor_api_client/models/aws_ecs_service_load_balancer_details.rb +1 -1
  23. data/lib/cloudreactor_api_client/models/aws_ecs_service_options.rb +1 -6
  24. data/lib/cloudreactor_api_client/models/current_service_info.rb +2 -11
  25. data/lib/cloudreactor_api_client/models/email_notification_profile.rb +1 -31
  26. data/lib/cloudreactor_api_client/models/execution_method_capability.rb +1 -1
  27. data/lib/cloudreactor_api_client/models/failure_behavior_enum.rb +1 -1
  28. data/lib/cloudreactor_api_client/models/group.rb +1 -11
  29. data/lib/cloudreactor_api_client/models/link.rb +1 -6
  30. data/lib/cloudreactor_api_client/models/name_and_uuid.rb +1 -1
  31. data/lib/cloudreactor_api_client/models/notification_severity.rb +1 -1
  32. data/lib/cloudreactor_api_client/models/pager_duty_profile.rb +1 -31
  33. data/lib/cloudreactor_api_client/models/paginated_alert_method_list.rb +1 -1
  34. data/lib/cloudreactor_api_client/models/paginated_email_notification_profile_list.rb +1 -1
  35. data/lib/cloudreactor_api_client/models/paginated_pager_duty_profile_list.rb +1 -1
  36. data/lib/cloudreactor_api_client/models/paginated_run_environment_list.rb +1 -1
  37. data/lib/cloudreactor_api_client/models/paginated_task_execution_list.rb +1 -1
  38. data/lib/cloudreactor_api_client/models/paginated_task_list.rb +1 -1
  39. data/lib/cloudreactor_api_client/models/paginated_workflow_execution_summary_list.rb +1 -1
  40. data/lib/cloudreactor_api_client/models/paginated_workflow_summary_list.rb +1 -1
  41. data/lib/cloudreactor_api_client/models/paginated_workflow_task_instance_list.rb +1 -1
  42. data/lib/cloudreactor_api_client/models/paginated_workflow_transition_list.rb +1 -1
  43. data/lib/cloudreactor_api_client/models/patched_alert_method.rb +1 -1
  44. data/lib/cloudreactor_api_client/models/patched_email_notification_profile.rb +1 -1
  45. data/lib/cloudreactor_api_client/models/patched_pager_duty_profile.rb +1 -1
  46. data/lib/cloudreactor_api_client/models/patched_run_environment.rb +1 -1
  47. data/lib/cloudreactor_api_client/models/patched_task.rb +1 -1
  48. data/lib/cloudreactor_api_client/models/patched_task_execution.rb +4 -1
  49. data/lib/cloudreactor_api_client/models/patched_workflow.rb +2 -1
  50. data/lib/cloudreactor_api_client/models/patched_workflow_execution.rb +7 -52
  51. data/lib/cloudreactor_api_client/models/patched_workflow_task_instance.rb +1 -1
  52. data/lib/cloudreactor_api_client/models/patched_workflow_transition.rb +1 -1
  53. data/lib/cloudreactor_api_client/models/propagate_tags_enum.rb +1 -1
  54. data/lib/cloudreactor_api_client/models/rule_type_enum.rb +1 -1
  55. data/lib/cloudreactor_api_client/models/run_environment.rb +1 -36
  56. data/lib/cloudreactor_api_client/models/start_transition_condition_enum.rb +1 -1
  57. data/lib/cloudreactor_api_client/models/stop_reason_enum.rb +1 -1
  58. data/lib/cloudreactor_api_client/models/task.rb +1 -36
  59. data/lib/cloudreactor_api_client/models/task_execution.rb +4 -46
  60. data/lib/cloudreactor_api_client/models/task_execution_status.rb +1 -1
  61. data/lib/cloudreactor_api_client/models/threshold_property_enum.rb +1 -1
  62. data/lib/cloudreactor_api_client/models/timeout_behavior_enum.rb +1 -1
  63. data/lib/cloudreactor_api_client/models/unknown_execution_method_capability.rb +1 -11
  64. data/lib/cloudreactor_api_client/models/workflow.rb +2 -41
  65. data/lib/cloudreactor_api_client/models/workflow_execution.rb +7 -112
  66. data/lib/cloudreactor_api_client/models/workflow_execution_run_reason.rb +38 -0
  67. data/lib/cloudreactor_api_client/models/workflow_execution_status.rb +1 -1
  68. data/lib/cloudreactor_api_client/models/workflow_execution_stop_reason.rb +37 -0
  69. data/lib/cloudreactor_api_client/models/workflow_execution_summary.rb +4 -83
  70. data/lib/cloudreactor_api_client/models/workflow_summary.rb +2 -31
  71. data/lib/cloudreactor_api_client/models/workflow_task_instance.rb +1 -21
  72. data/lib/cloudreactor_api_client/models/workflow_task_instance_execution.rb +1 -16
  73. data/lib/cloudreactor_api_client/models/workflow_task_instance_execution_base.rb +1 -16
  74. data/lib/cloudreactor_api_client/models/workflow_transition.rb +1 -21
  75. data/lib/cloudreactor_api_client/models/workflow_transition_evaluation.rb +1 -16
  76. data/lib/cloudreactor_api_client/version.rb +2 -2
  77. data/lib/cloudreactor_api_client.rb +3 -16
  78. data/lib/cloudreactor_wrapper_io/status_updater.rb +41 -0
  79. data/spec/api_client_spec.rb +1 -1
  80. data/spec/configuration_spec.rb +1 -1
  81. data/spec/integration/task_execution_integration_spec.rb +2 -2
  82. data/spec/models/workflow_execution_run_reason_spec.rb +28 -0
  83. data/spec/models/workflow_execution_stop_reason_spec.rb +28 -0
  84. data/spec/spec_helper.rb +1 -1
  85. metadata +10 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0ef8445949bc5ca841e1baae1d75299662cfda98545902419a032e42d1e210a1
4
- data.tar.gz: 1208fc0a593930b7cd66355eccbb37e973ff2404e7b2c0c10a0d922d4e1086f7
3
+ metadata.gz: c158d2fc59dd210f3cf92d7a55f74718f94bb6bbeb0f10b8b15390ad816412cb
4
+ data.tar.gz: a39c5dcdfa6b8ed3a9d25b9b9936d58beec25d6cdd2ec54946f91009b49609d6
5
5
  SHA512:
6
- metadata.gz: 2cba9ec1a71cc8b1a1155bd77fb43f3b12978b2fab7a7deadfea69812b32ba0842dd7677a3a6bde684c0438a06014793ae647bc2c610817bc6bd72415134cf14
7
- data.tar.gz: f04cae0ac5da73d3132d3e0b93938e58d762b585fae3ef8386e51d60b4c74142e58b2f18284c02c8d6b79a48aa261d8ecfa28f405e18367100f011ee0a47ae28
6
+ metadata.gz: 9919bb4c890af84fae5c4082dcb2c928d5184614893d7e83e5483e4b72793f540c5b67b1ac54fc620965b309a4b6dccedc37f90c865b2fc130e5334a9b556996
7
+ data.tar.gz: 7cc23289a026ad7744cee105bdc52fd7f74325fe7be82c1e35dcf20735496deda16020737b0c5facb1ca6a0f7a2343de68d883b3314a8d2fc6463f8b2fce8906
data/README.md CHANGED
@@ -1,19 +1,28 @@
1
- # cloudreactor-ruby-client-wrapperio
1
+ # CloudReactor Ruby API client and Wrapper I/O
2
2
 
3
+ ![Gem](https://img.shields.io/gem/v/cloudreactor_api_client)
3
4
  ![Ruby CI](https://github.com/CloudReactor/cloudreactor-ruby-client-wrapperio/workflows/Ruby%20CI/badge.svg?branch=master)
4
5
  ![GitHub](https://img.shields.io/github/license/CloudReactor/cloudreactor-ruby-client-wrapperio)
6
+ ![Snyk Vulnerabilities for GitHub Repo](https://img.shields.io/snyk/vulnerabilities/github/CloudReactor/cloudreactor-ruby-client-wrapperio)
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. Most notably you can start and stop
12
- Tasks and Workflows by creating Task Executions and Workflow Executions.
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
- which is the parent process.
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 notable Tasks and Workflows. The code and
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 TaskExecution linked to the Task, with 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.api_key['tokenAuth'] = 'YOUR API KEY'
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 the CloudReactor proc_wrapper,
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 proc_wrapper module which then passes them on to your process.
73
- status_updater = new CloudReactorWrapperIO::StatusUpdater()
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
@@ -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.2.0
10
- - Package version: 0.1.1.pre
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.1.1.pre.gem
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.1.1.pre.gem` to install the development dependencies)
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.1.1.pre'
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 API key authorization: tokenAuth
63
- config.api_key['tokenAuth'] = 'YOUR API KEY'
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({url: 'url_example', uuid: 'uuid_example', name: 'name_example', dashboard_url: 'dashboard_url_example', method_details: { key: 3.56}, created_by_user: 'created_by_user_example', created_by_group: CloudReactorAPIClient::Group.new({id: 37, name: 'name_example', url: 'url_example'}), created_at: Time.now, updated_at: Time.now}) # AlertMethod |
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.2.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', 'application/x-www-form-urlencoded', 'multipart/form-data'])
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', 'application/x-www-form-urlencoded', 'multipart/form-data'])
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', 'application/x-www-form-urlencoded', 'multipart/form-data'])
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', 'application/x-www-form-urlencoded', 'multipart/form-data'])
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.2.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', 'application/x-www-form-urlencoded', 'multipart/form-data'])
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', 'application/x-www-form-urlencoded', 'multipart/form-data'])
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', 'application/x-www-form-urlencoded', 'multipart/form-data'])
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', 'application/x-www-form-urlencoded', 'multipart/form-data'])
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.2.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', 'application/x-www-form-urlencoded', 'multipart/form-data'])
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', 'application/x-www-form-urlencoded', 'multipart/form-data'])
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', 'application/x-www-form-urlencoded', 'multipart/form-data'])
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', 'application/x-www-form-urlencoded', 'multipart/form-data'])
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.2.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', 'application/x-www-form-urlencoded', 'multipart/form-data'])
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', 'application/x-www-form-urlencoded', 'multipart/form-data'])
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', 'application/x-www-form-urlencoded', 'multipart/form-data'])
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', 'application/x-www-form-urlencoded', 'multipart/form-data'])
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.2.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', 'application/x-www-form-urlencoded', 'multipart/form-data'])
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', 'application/x-www-form-urlencoded', 'multipart/form-data'])
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', 'application/x-www-form-urlencoded', 'multipart/form-data'])
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.2.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', 'application/x-www-form-urlencoded', 'multipart/form-data'])
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', 'application/x-www-form-urlencoded', 'multipart/form-data'])
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', 'application/x-www-form-urlencoded', 'multipart/form-data'])
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.2.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', 'application/x-www-form-urlencoded', 'multipart/form-data'])
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', 'application/x-www-form-urlencoded', 'multipart/form-data'])
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', 'application/x-www-form-urlencoded', 'multipart/form-data'])
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', 'application/x-www-form-urlencoded', 'multipart/form-data'])
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', 'application/x-www-form-urlencoded', 'multipart/form-data'])
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.2.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', 'application/x-www-form-urlencoded', 'multipart/form-data'])
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', 'application/x-www-form-urlencoded', 'multipart/form-data'])
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', 'application/x-www-form-urlencoded', 'multipart/form-data'])
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.2.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', 'application/x-www-form-urlencoded', 'multipart/form-data'])
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', 'application/x-www-form-urlencoded', 'multipart/form-data'])
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', 'application/x-www-form-urlencoded', 'multipart/form-data'])
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.2.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', 'application/x-www-form-urlencoded', 'multipart/form-data'])
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', 'application/x-www-form-urlencoded', 'multipart/form-data'])
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', 'application/x-www-form-urlencoded', 'multipart/form-data'])
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', 'application/x-www-form-urlencoded', 'multipart/form-data'])
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.2.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
@@ -3,7 +3,7 @@
3
3
 
4
4
  #CloudReactor API Documentation
5
5
 
6
- The version of the OpenAPI document: 0.2.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
@@ -3,7 +3,7 @@
3
3
 
4
4
  #CloudReactor API Documentation
5
5
 
6
- The version of the OpenAPI document: 0.2.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: 'api_key',
220
+ type: 'bearer',
221
221
  in: 'header',
222
222
  key: 'Authorization',
223
- value: api_key_with_prefix('tokenAuth')
223
+ value: "Bearer #{access_token}"
224
224
  },
225
225
  }
226
226
  end