autosde_openapi_client 1.1.26 → 1.1.29

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9e443ae5897a2f748e43b2cc64c3a6edd3926d6c3c69bcb6171dfbc7b6e1ada5
4
- data.tar.gz: 74dd7fe5014e0f1d6ad531fa66888546a5349f70c8c4f63509b65136c49c0616
3
+ metadata.gz: fd0a4c46b29eca03130733ad77baefbdfb1e11768eb289ecd2f1b92adbba225c
4
+ data.tar.gz: 7c7cb67d6af702dac3647a88a17b09b7b4ce63e3fab3bb7073e019319ab58a26
5
5
  SHA512:
6
- metadata.gz: d1c3a2f4c666abac42ff8da0c3d340e611cf2bbc04f343377d62fa485ce98d50ce87e2472115a07cc56066ae4eb43817286cdaf9285e860edeb3550e322a3e35
7
- data.tar.gz: 9b6a4b2953ff4f884e55b2e285d0ba788d9fb2e80fc7eda3fd41164000c44cb668b865bb0fb4dd28c189a2d7347d44c803c46766841dd5052a9aa8a7dc5f8831
6
+ metadata.gz: 50e77fc938cb7f149d2d621e0a609abdee04a13587193e60c97e1d587a1a0e7569269053cc1e5f8cf8b8abbd6dee8f2c210649ab26a9725b55f54d9d6d497b3b
7
+ data.tar.gz: 1f9f36c5c5932e16b4211e995bf4ca68723ee871cf8e14ace6c8f548fd97ca703f93603947e8f2b70c70c72f56536b6ecee063ba7cbd0ae38826a415e1d03c03
data/README.md CHANGED
@@ -105,6 +105,8 @@ Class | Method | HTTP request | Description
105
105
  *AutosdeOpenapiClient::CapabilityTranslationApi* | [**capability_translations_pk_delete**](docs/CapabilityTranslationApi.md#capability_translations_pk_delete) | **DELETE** /capability-translations/{pk} |
106
106
  *AutosdeOpenapiClient::CapabilityTranslationApi* | [**capability_translations_pk_get**](docs/CapabilityTranslationApi.md#capability_translations_pk_get) | **GET** /capability-translations/{pk} |
107
107
  *AutosdeOpenapiClient::CapabilityTranslationApi* | [**capability_translations_post**](docs/CapabilityTranslationApi.md#capability_translations_post) | **POST** /capability-translations |
108
+ *AutosdeOpenapiClient::CeleryConfigApi* | [**celery_config_get**](docs/CeleryConfigApi.md#celery_config_get) | **GET** /celery-config |
109
+ *AutosdeOpenapiClient::CeleryConfigApi* | [**celery_config_post**](docs/CeleryConfigApi.md#celery_config_post) | **POST** /celery-config |
108
110
  *AutosdeOpenapiClient::EventApi* | [**events_get**](docs/EventApi.md#events_get) | **GET** /events |
109
111
  *AutosdeOpenapiClient::EventApi* | [**events_pk_delete**](docs/EventApi.md#events_pk_delete) | **DELETE** /events/{pk} |
110
112
  *AutosdeOpenapiClient::EventApi* | [**events_pk_get**](docs/EventApi.md#events_pk_get) | **GET** /events/{pk} |
@@ -130,6 +132,8 @@ Class | Method | HTTP request | Description
130
132
  *AutosdeOpenapiClient::HostVolumeConnectionApi* | [**host_volume_connection_pk_get**](docs/HostVolumeConnectionApi.md#host_volume_connection_pk_get) | **GET** /host-volume-connection/{pk} |
131
133
  *AutosdeOpenapiClient::HostVolumeConnectionApi* | [**host_volume_connection_post**](docs/HostVolumeConnectionApi.md#host_volume_connection_post) | **POST** /host-volume-connection |
132
134
  *AutosdeOpenapiClient::JobApi* | [**jobs_get**](docs/JobApi.md#jobs_get) | **GET** /jobs |
135
+ *AutosdeOpenapiClient::JobApi* | [**jobs_pk_delete**](docs/JobApi.md#jobs_pk_delete) | **DELETE** /jobs/{pk} |
136
+ *AutosdeOpenapiClient::JobApi* | [**jobs_pk_get**](docs/JobApi.md#jobs_pk_get) | **GET** /jobs/{pk} |
133
137
  *AutosdeOpenapiClient::JobApi* | [**jobs_post**](docs/JobApi.md#jobs_post) | **POST** /jobs |
134
138
  *AutosdeOpenapiClient::NativeCapabilityApi* | [**native_capabilities_get**](docs/NativeCapabilityApi.md#native_capabilities_get) | **GET** /native-capabilities |
135
139
  *AutosdeOpenapiClient::NativeCapabilityApi* | [**native_capabilities_pk_delete**](docs/NativeCapabilityApi.md#native_capabilities_pk_delete) | **DELETE** /native-capabilities/{pk} |
@@ -212,7 +216,9 @@ Class | Method | HTTP request | Description
212
216
  - [AutosdeOpenapiClient::AutoSDERole](docs/AutoSDERole.md)
213
217
  - [AutosdeOpenapiClient::CapabilityTranslation](docs/CapabilityTranslation.md)
214
218
  - [AutosdeOpenapiClient::CapabilityTranslationCreate](docs/CapabilityTranslationCreate.md)
219
+ - [AutosdeOpenapiClient::CeleryConfig](docs/CeleryConfig.md)
215
220
  - [AutosdeOpenapiClient::Event](docs/Event.md)
221
+ - [AutosdeOpenapiClient::EventResponse](docs/EventResponse.md)
216
222
  - [AutosdeOpenapiClient::Host](docs/Host.md)
217
223
  - [AutosdeOpenapiClient::HostCluster](docs/HostCluster.md)
218
224
  - [AutosdeOpenapiClient::HostClusterCreate](docs/HostClusterCreate.md)
@@ -0,0 +1,20 @@
1
+ # AutosdeOpenapiClient::CeleryConfig
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **celery_beat_enabled** | **Boolean** | celery_beat_enabled | [optional] |
8
+ | **interval_sec** | **Integer** | interval_sec | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'autosde_openapi_client'
14
+
15
+ instance = AutosdeOpenapiClient::CeleryConfig.new(
16
+ celery_beat_enabled: null,
17
+ interval_sec: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,140 @@
1
+ # AutosdeOpenapiClient::CeleryConfigApi
2
+
3
+ All URIs are relative to *http://localhost:9000/site-manager/api/v1/engine*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**celery_config_get**](CeleryConfigApi.md#celery_config_get) | **GET** /celery-config | |
8
+ | [**celery_config_post**](CeleryConfigApi.md#celery_config_post) | **POST** /celery-config | |
9
+
10
+
11
+ ## celery_config_get
12
+
13
+ > <Array<CeleryConfig>> celery_config_get
14
+
15
+
16
+
17
+ ### Examples
18
+
19
+ ```ruby
20
+ require 'time'
21
+ require 'autosde_openapi_client'
22
+ # setup authorization
23
+ AutosdeOpenapiClient.configure do |config|
24
+ # Configure Bearer authorization: bearerAuth
25
+ config.access_token = 'YOUR_BEARER_TOKEN'
26
+ end
27
+
28
+ api_instance = AutosdeOpenapiClient::CeleryConfigApi.new
29
+
30
+ begin
31
+
32
+ result = api_instance.celery_config_get
33
+ p result
34
+ rescue AutosdeOpenapiClient::ApiError => e
35
+ puts "Error when calling CeleryConfigApi->celery_config_get: #{e}"
36
+ end
37
+ ```
38
+
39
+ #### Using the celery_config_get_with_http_info variant
40
+
41
+ This returns an Array which contains the response data, status code and headers.
42
+
43
+ > <Array(<Array<CeleryConfig>>, Integer, Hash)> celery_config_get_with_http_info
44
+
45
+ ```ruby
46
+ begin
47
+
48
+ data, status_code, headers = api_instance.celery_config_get_with_http_info
49
+ p status_code # => 2xx
50
+ p headers # => { ... }
51
+ p data # => <Array<CeleryConfig>>
52
+ rescue AutosdeOpenapiClient::ApiError => e
53
+ puts "Error when calling CeleryConfigApi->celery_config_get_with_http_info: #{e}"
54
+ end
55
+ ```
56
+
57
+ ### Parameters
58
+
59
+ This endpoint does not need any parameter.
60
+
61
+ ### Return type
62
+
63
+ [**Array&lt;CeleryConfig&gt;**](CeleryConfig.md)
64
+
65
+ ### Authorization
66
+
67
+ [bearerAuth](../README.md#bearerAuth)
68
+
69
+ ### HTTP request headers
70
+
71
+ - **Content-Type**: Not defined
72
+ - **Accept**: */*
73
+
74
+
75
+ ## celery_config_post
76
+
77
+ > <CeleryConfig> celery_config_post(celery_config)
78
+
79
+
80
+
81
+ ### Examples
82
+
83
+ ```ruby
84
+ require 'time'
85
+ require 'autosde_openapi_client'
86
+ # setup authorization
87
+ AutosdeOpenapiClient.configure do |config|
88
+ # Configure Bearer authorization: bearerAuth
89
+ config.access_token = 'YOUR_BEARER_TOKEN'
90
+ end
91
+
92
+ api_instance = AutosdeOpenapiClient::CeleryConfigApi.new
93
+ celery_config = AutosdeOpenapiClient::CeleryConfig.new # CeleryConfig |
94
+
95
+ begin
96
+
97
+ result = api_instance.celery_config_post(celery_config)
98
+ p result
99
+ rescue AutosdeOpenapiClient::ApiError => e
100
+ puts "Error when calling CeleryConfigApi->celery_config_post: #{e}"
101
+ end
102
+ ```
103
+
104
+ #### Using the celery_config_post_with_http_info variant
105
+
106
+ This returns an Array which contains the response data, status code and headers.
107
+
108
+ > <Array(<CeleryConfig>, Integer, Hash)> celery_config_post_with_http_info(celery_config)
109
+
110
+ ```ruby
111
+ begin
112
+
113
+ data, status_code, headers = api_instance.celery_config_post_with_http_info(celery_config)
114
+ p status_code # => 2xx
115
+ p headers # => { ... }
116
+ p data # => <CeleryConfig>
117
+ rescue AutosdeOpenapiClient::ApiError => e
118
+ puts "Error when calling CeleryConfigApi->celery_config_post_with_http_info: #{e}"
119
+ end
120
+ ```
121
+
122
+ ### Parameters
123
+
124
+ | Name | Type | Description | Notes |
125
+ | ---- | ---- | ----------- | ----- |
126
+ | **celery_config** | [**CeleryConfig**](CeleryConfig.md) | | |
127
+
128
+ ### Return type
129
+
130
+ [**CeleryConfig**](CeleryConfig.md)
131
+
132
+ ### Authorization
133
+
134
+ [bearerAuth](../README.md#bearerAuth)
135
+
136
+ ### HTTP request headers
137
+
138
+ - **Content-Type**: application/json
139
+ - **Accept**: */*
140
+
data/docs/EventApi.md CHANGED
@@ -210,7 +210,7 @@ end
210
210
 
211
211
  ## events_post
212
212
 
213
- > <Event> events_post(event)
213
+ > <Event> events_post(storage_resource_response)
214
214
 
215
215
 
216
216
 
@@ -226,11 +226,11 @@ AutosdeOpenapiClient.configure do |config|
226
226
  end
227
227
 
228
228
  api_instance = AutosdeOpenapiClient::EventApi.new
229
- event = AutosdeOpenapiClient::Event.new # Event |
229
+ storage_resource_response = AutosdeOpenapiClient::StorageResourceResponse.new # StorageResourceResponse |
230
230
 
231
231
  begin
232
232
 
233
- result = api_instance.events_post(event)
233
+ result = api_instance.events_post(storage_resource_response)
234
234
  p result
235
235
  rescue AutosdeOpenapiClient::ApiError => e
236
236
  puts "Error when calling EventApi->events_post: #{e}"
@@ -241,12 +241,12 @@ end
241
241
 
242
242
  This returns an Array which contains the response data, status code and headers.
243
243
 
244
- > <Array(<Event>, Integer, Hash)> events_post_with_http_info(event)
244
+ > <Array(<Event>, Integer, Hash)> events_post_with_http_info(storage_resource_response)
245
245
 
246
246
  ```ruby
247
247
  begin
248
248
 
249
- data, status_code, headers = api_instance.events_post_with_http_info(event)
249
+ data, status_code, headers = api_instance.events_post_with_http_info(storage_resource_response)
250
250
  p status_code # => 2xx
251
251
  p headers # => { ... }
252
252
  p data # => <Event>
@@ -259,7 +259,7 @@ end
259
259
 
260
260
  | Name | Type | Description | Notes |
261
261
  | ---- | ---- | ----------- | ----- |
262
- | **event** | [**Event**](Event.md) | | |
262
+ | **storage_resource_response** | [**StorageResourceResponse**](StorageResourceResponse.md) | | |
263
263
 
264
264
  ### Return type
265
265
 
@@ -0,0 +1,36 @@
1
+ # AutosdeOpenapiClient::EventResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **created_at** | **Time** | created_at | [optional] |
8
+ | **description** | **String** | description | [optional] |
9
+ | **error_code** | **String** | error_code | [optional] |
10
+ | **event_id** | **Integer** | event_id | [optional] |
11
+ | **event_type** | **String** | event_type | [optional] |
12
+ | **fixed** | **String** | fixed | [optional] |
13
+ | **last_timestamp** | **Time** | last_timestamp | [optional] |
14
+ | **refresh_interval** | **Integer** | refresh_interval | [optional] |
15
+ | **storage_system** | **String** | !!uuid of storage_system | [optional] |
16
+ | **uuid** | **String** | uuid | [optional] |
17
+
18
+ ## Example
19
+
20
+ ```ruby
21
+ require 'autosde_openapi_client'
22
+
23
+ instance = AutosdeOpenapiClient::EventResponse.new(
24
+ created_at: null,
25
+ description: null,
26
+ error_code: null,
27
+ event_id: null,
28
+ event_type: null,
29
+ fixed: null,
30
+ last_timestamp: null,
31
+ refresh_interval: null,
32
+ storage_system: null,
33
+ uuid: null
34
+ )
35
+ ```
36
+
data/docs/Job.md CHANGED
@@ -6,6 +6,7 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **date_finished** | **Time** | date_finished | [optional] |
8
8
  | **date_started** | **Time** | date_started | [optional] |
9
+ | **extra** | **String** | extra | [optional] |
9
10
  | **status** | **String** | status | [optional] |
10
11
  | **task_args** | **String** | task_args | [optional] |
11
12
  | **task_id** | **String** | task_id | [optional] |
@@ -20,6 +21,7 @@ require 'autosde_openapi_client'
20
21
  instance = AutosdeOpenapiClient::Job.new(
21
22
  date_finished: null,
22
23
  date_started: null,
24
+ extra: null,
23
25
  status: null,
24
26
  task_args: null,
25
27
  task_id: null,
data/docs/JobApi.md CHANGED
@@ -5,6 +5,8 @@ All URIs are relative to *http://localhost:9000/site-manager/api/v1/engine*
5
5
  | Method | HTTP request | Description |
6
6
  | ------ | ------------ | ----------- |
7
7
  | [**jobs_get**](JobApi.md#jobs_get) | **GET** /jobs | |
8
+ | [**jobs_pk_delete**](JobApi.md#jobs_pk_delete) | **DELETE** /jobs/{pk} | |
9
+ | [**jobs_pk_get**](JobApi.md#jobs_pk_get) | **GET** /jobs/{pk} | |
8
10
  | [**jobs_post**](JobApi.md#jobs_post) | **POST** /jobs | |
9
11
 
10
12
 
@@ -72,6 +74,140 @@ This endpoint does not need any parameter.
72
74
  - **Accept**: */*
73
75
 
74
76
 
77
+ ## jobs_pk_delete
78
+
79
+ > <Array<Job>> jobs_pk_delete(pk)
80
+
81
+
82
+
83
+ ### Examples
84
+
85
+ ```ruby
86
+ require 'time'
87
+ require 'autosde_openapi_client'
88
+ # setup authorization
89
+ AutosdeOpenapiClient.configure do |config|
90
+ # Configure Bearer authorization: bearerAuth
91
+ config.access_token = 'YOUR_BEARER_TOKEN'
92
+ end
93
+
94
+ api_instance = AutosdeOpenapiClient::JobApi.new
95
+ pk = 56 # Integer |
96
+
97
+ begin
98
+
99
+ result = api_instance.jobs_pk_delete(pk)
100
+ p result
101
+ rescue AutosdeOpenapiClient::ApiError => e
102
+ puts "Error when calling JobApi->jobs_pk_delete: #{e}"
103
+ end
104
+ ```
105
+
106
+ #### Using the jobs_pk_delete_with_http_info variant
107
+
108
+ This returns an Array which contains the response data, status code and headers.
109
+
110
+ > <Array(<Array<Job>>, Integer, Hash)> jobs_pk_delete_with_http_info(pk)
111
+
112
+ ```ruby
113
+ begin
114
+
115
+ data, status_code, headers = api_instance.jobs_pk_delete_with_http_info(pk)
116
+ p status_code # => 2xx
117
+ p headers # => { ... }
118
+ p data # => <Array<Job>>
119
+ rescue AutosdeOpenapiClient::ApiError => e
120
+ puts "Error when calling JobApi->jobs_pk_delete_with_http_info: #{e}"
121
+ end
122
+ ```
123
+
124
+ ### Parameters
125
+
126
+ | Name | Type | Description | Notes |
127
+ | ---- | ---- | ----------- | ----- |
128
+ | **pk** | **Integer** | | |
129
+
130
+ ### Return type
131
+
132
+ [**Array&lt;Job&gt;**](Job.md)
133
+
134
+ ### Authorization
135
+
136
+ [bearerAuth](../README.md#bearerAuth)
137
+
138
+ ### HTTP request headers
139
+
140
+ - **Content-Type**: Not defined
141
+ - **Accept**: */*
142
+
143
+
144
+ ## jobs_pk_get
145
+
146
+ > <Array<Job>> jobs_pk_get(pk)
147
+
148
+
149
+
150
+ ### Examples
151
+
152
+ ```ruby
153
+ require 'time'
154
+ require 'autosde_openapi_client'
155
+ # setup authorization
156
+ AutosdeOpenapiClient.configure do |config|
157
+ # Configure Bearer authorization: bearerAuth
158
+ config.access_token = 'YOUR_BEARER_TOKEN'
159
+ end
160
+
161
+ api_instance = AutosdeOpenapiClient::JobApi.new
162
+ pk = 56 # Integer |
163
+
164
+ begin
165
+
166
+ result = api_instance.jobs_pk_get(pk)
167
+ p result
168
+ rescue AutosdeOpenapiClient::ApiError => e
169
+ puts "Error when calling JobApi->jobs_pk_get: #{e}"
170
+ end
171
+ ```
172
+
173
+ #### Using the jobs_pk_get_with_http_info variant
174
+
175
+ This returns an Array which contains the response data, status code and headers.
176
+
177
+ > <Array(<Array<Job>>, Integer, Hash)> jobs_pk_get_with_http_info(pk)
178
+
179
+ ```ruby
180
+ begin
181
+
182
+ data, status_code, headers = api_instance.jobs_pk_get_with_http_info(pk)
183
+ p status_code # => 2xx
184
+ p headers # => { ... }
185
+ p data # => <Array<Job>>
186
+ rescue AutosdeOpenapiClient::ApiError => e
187
+ puts "Error when calling JobApi->jobs_pk_get_with_http_info: #{e}"
188
+ end
189
+ ```
190
+
191
+ ### Parameters
192
+
193
+ | Name | Type | Description | Notes |
194
+ | ---- | ---- | ----------- | ----- |
195
+ | **pk** | **Integer** | | |
196
+
197
+ ### Return type
198
+
199
+ [**Array&lt;Job&gt;**](Job.md)
200
+
201
+ ### Authorization
202
+
203
+ [bearerAuth](../README.md#bearerAuth)
204
+
205
+ ### HTTP request headers
206
+
207
+ - **Content-Type**: Not defined
208
+ - **Accept**: */*
209
+
210
+
75
211
  ## jobs_post
76
212
 
77
213
  > <Job> jobs_post(job_create)
data/docs/JobCreate.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **task_args** | **String** | task_args | [optional] |
7
+ | **task_kwargs** | **String** | task_kwargs | [optional] |
8
8
  | **task_name** | **String** | task_name | [optional] |
9
9
 
10
10
  ## Example
@@ -13,7 +13,7 @@
13
13
  require 'autosde_openapi_client'
14
14
 
15
15
  instance = AutosdeOpenapiClient::JobCreate.new(
16
- task_args: null,
16
+ task_kwargs: null,
17
17
  task_name: null
18
18
  )
19
19
  ```
@@ -9,7 +9,7 @@ All URIs are relative to *http://localhost:9000/site-manager/api/v1/engine*
9
9
 
10
10
  ## refresh_system_post
11
11
 
12
- > <RefreshSystem> refresh_system_post(storage_system_create)
12
+ > <RefreshSystem> refresh_system_post(refresh_system)
13
13
 
14
14
 
15
15
 
@@ -25,11 +25,11 @@ AutosdeOpenapiClient.configure do |config|
25
25
  end
26
26
 
27
27
  api_instance = AutosdeOpenapiClient::RefreshSystemApi.new
28
- storage_system_create = AutosdeOpenapiClient::StorageSystemCreate.new # StorageSystemCreate |
28
+ refresh_system = AutosdeOpenapiClient::RefreshSystem.new # RefreshSystem |
29
29
 
30
30
  begin
31
31
 
32
- result = api_instance.refresh_system_post(storage_system_create)
32
+ result = api_instance.refresh_system_post(refresh_system)
33
33
  p result
34
34
  rescue AutosdeOpenapiClient::ApiError => e
35
35
  puts "Error when calling RefreshSystemApi->refresh_system_post: #{e}"
@@ -40,12 +40,12 @@ end
40
40
 
41
41
  This returns an Array which contains the response data, status code and headers.
42
42
 
43
- > <Array(<RefreshSystem>, Integer, Hash)> refresh_system_post_with_http_info(storage_system_create)
43
+ > <Array(<RefreshSystem>, Integer, Hash)> refresh_system_post_with_http_info(refresh_system)
44
44
 
45
45
  ```ruby
46
46
  begin
47
47
 
48
- data, status_code, headers = api_instance.refresh_system_post_with_http_info(storage_system_create)
48
+ data, status_code, headers = api_instance.refresh_system_post_with_http_info(refresh_system)
49
49
  p status_code # => 2xx
50
50
  p headers # => { ... }
51
51
  p data # => <RefreshSystem>
@@ -58,7 +58,7 @@ end
58
58
 
59
59
  | Name | Type | Description | Notes |
60
60
  | ---- | ---- | ----------- | ----- |
61
- | **storage_system_create** | [**StorageSystemCreate**](StorageSystemCreate.md) | | |
61
+ | **refresh_system** | [**RefreshSystem**](RefreshSystem.md) | | |
62
62
 
63
63
  ### Return type
64
64
 
@@ -0,0 +1,136 @@
1
+ =begin
2
+ #Site Manager API
3
+
4
+ #Site Manager API
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ Contact: autosde@il.ibm.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.0.0
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module AutosdeOpenapiClient
16
+ class CeleryConfigApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # @param [Hash] opts the optional parameters
23
+ # @return [Array<CeleryConfig>]
24
+ def celery_config_get(opts = {})
25
+ data, _status_code, _headers = celery_config_get_with_http_info(opts)
26
+ data
27
+ end
28
+
29
+ # @param [Hash] opts the optional parameters
30
+ # @return [Array<(Array<CeleryConfig>, Integer, Hash)>] Array<CeleryConfig> data, response status code and response headers
31
+ def celery_config_get_with_http_info(opts = {})
32
+ if @api_client.config.debugging
33
+ @api_client.config.logger.debug 'Calling API: CeleryConfigApi.celery_config_get ...'
34
+ end
35
+ # resource path
36
+ local_var_path = '/celery-config'
37
+
38
+ # query parameters
39
+ query_params = opts[:query_params] || {}
40
+
41
+ # header parameters
42
+ header_params = opts[:header_params] || {}
43
+ # HTTP header 'Accept' (if needed)
44
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
45
+
46
+ # form parameters
47
+ form_params = opts[:form_params] || {}
48
+
49
+ # http body (model)
50
+ post_body = opts[:debug_body]
51
+
52
+ # return_type
53
+ return_type = opts[:debug_return_type] || 'Array<CeleryConfig>'
54
+
55
+ # auth_names
56
+ auth_names = opts[:debug_auth_names] || ['bearerAuth']
57
+
58
+ new_options = opts.merge(
59
+ :operation => :"CeleryConfigApi.celery_config_get",
60
+ :header_params => header_params,
61
+ :query_params => query_params,
62
+ :form_params => form_params,
63
+ :body => post_body,
64
+ :auth_names => auth_names,
65
+ :return_type => return_type
66
+ )
67
+
68
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
69
+ if @api_client.config.debugging
70
+ @api_client.config.logger.debug "API called: CeleryConfigApi#celery_config_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
71
+ end
72
+ return data, status_code, headers
73
+ end
74
+
75
+ # @param celery_config [CeleryConfig]
76
+ # @param [Hash] opts the optional parameters
77
+ # @return [CeleryConfig]
78
+ def celery_config_post(celery_config, opts = {})
79
+ data, _status_code, _headers = celery_config_post_with_http_info(celery_config, opts)
80
+ data
81
+ end
82
+
83
+ # @param celery_config [CeleryConfig]
84
+ # @param [Hash] opts the optional parameters
85
+ # @return [Array<(CeleryConfig, Integer, Hash)>] CeleryConfig data, response status code and response headers
86
+ def celery_config_post_with_http_info(celery_config, opts = {})
87
+ if @api_client.config.debugging
88
+ @api_client.config.logger.debug 'Calling API: CeleryConfigApi.celery_config_post ...'
89
+ end
90
+ # verify the required parameter 'celery_config' is set
91
+ if @api_client.config.client_side_validation && celery_config.nil?
92
+ fail ArgumentError, "Missing the required parameter 'celery_config' when calling CeleryConfigApi.celery_config_post"
93
+ end
94
+ # resource path
95
+ local_var_path = '/celery-config'
96
+
97
+ # query parameters
98
+ query_params = opts[:query_params] || {}
99
+
100
+ # header parameters
101
+ header_params = opts[:header_params] || {}
102
+ # HTTP header 'Accept' (if needed)
103
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
104
+ # HTTP header 'Content-Type'
105
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
106
+
107
+ # form parameters
108
+ form_params = opts[:form_params] || {}
109
+
110
+ # http body (model)
111
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(celery_config)
112
+
113
+ # return_type
114
+ return_type = opts[:debug_return_type] || 'CeleryConfig'
115
+
116
+ # auth_names
117
+ auth_names = opts[:debug_auth_names] || ['bearerAuth']
118
+
119
+ new_options = opts.merge(
120
+ :operation => :"CeleryConfigApi.celery_config_post",
121
+ :header_params => header_params,
122
+ :query_params => query_params,
123
+ :form_params => form_params,
124
+ :body => post_body,
125
+ :auth_names => auth_names,
126
+ :return_type => return_type
127
+ )
128
+
129
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
130
+ if @api_client.config.debugging
131
+ @api_client.config.logger.debug "API called: CeleryConfigApi#celery_config_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
132
+ end
133
+ return data, status_code, headers
134
+ end
135
+ end
136
+ end