eilam_test 10 → 11.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -0
- data/docs/CeleryConfig.md +20 -0
- data/docs/CeleryConfigApi.md +140 -0
- data/docs/Event.md +4 -0
- data/docs/EventApi.md +16 -16
- data/docs/EventResponse.md +36 -0
- data/docs/Job.md +2 -0
- data/docs/JobApi.md +136 -0
- data/docs/JobCreate.md +2 -2
- data/docs/RefreshSystem.md +18 -0
- data/docs/RefreshSystemApi.md +75 -0
- data/docs/StorageSystemCreate.md +2 -0
- data/lib/eilam_test/api/celery_config_api.rb +136 -0
- data/lib/eilam_test/api/event_api.rb +12 -12
- data/lib/eilam_test/api/job_api.rb +118 -0
- data/lib/eilam_test/api/refresh_system_api.rb +83 -0
- data/lib/eilam_test/models/celery_config.rb +230 -0
- data/lib/eilam_test/models/event.rb +22 -2
- data/lib/eilam_test/models/event_response.rb +310 -0
- data/lib/eilam_test/models/job.rb +11 -1
- data/lib/eilam_test/models/job_create.rb +8 -8
- data/lib/eilam_test/models/refresh_system.rb +220 -0
- data/lib/eilam_test/models/storage_system_create.rb +13 -1
- data/lib/eilam_test/version.rb +2 -2
- data/lib/eilam_test.rb +5 -0
- data/spec/api/celery_config_api_spec.rb +54 -0
- data/spec/api/event_api_spec.rb +4 -4
- data/spec/api/job_api_spec.rb +20 -0
- data/spec/api/refresh_system_api_spec.rb +45 -0
- data/spec/models/celery_config_spec.rb +40 -0
- data/spec/models/event_response_spec.rb +88 -0
- data/spec/models/event_spec.rb +12 -0
- data/spec/models/job_create_spec.rb +1 -1
- data/spec/models/job_spec.rb +6 -0
- data/spec/models/refresh_system_spec.rb +34 -0
- data/spec/models/storage_system_create_spec.rb +6 -0
- metadata +94 -74
@@ -0,0 +1,75 @@
|
|
1
|
+
# EilamTest::RefreshSystemApi
|
2
|
+
|
3
|
+
All URIs are relative to *http://localhost:9000/site-manager/api/v1/engine*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**refresh_system_post**](RefreshSystemApi.md#refresh_system_post) | **POST** /refresh-system | |
|
8
|
+
|
9
|
+
|
10
|
+
## refresh_system_post
|
11
|
+
|
12
|
+
> <RefreshSystem> refresh_system_post(refresh_system)
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
### Examples
|
17
|
+
|
18
|
+
```ruby
|
19
|
+
require 'time'
|
20
|
+
require 'eilam_test'
|
21
|
+
# setup authorization
|
22
|
+
EilamTest.configure do |config|
|
23
|
+
# Configure Bearer authorization: bearerAuth
|
24
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
25
|
+
end
|
26
|
+
|
27
|
+
api_instance = EilamTest::RefreshSystemApi.new
|
28
|
+
refresh_system = EilamTest::RefreshSystem.new # RefreshSystem |
|
29
|
+
|
30
|
+
begin
|
31
|
+
|
32
|
+
result = api_instance.refresh_system_post(refresh_system)
|
33
|
+
p result
|
34
|
+
rescue EilamTest::ApiError => e
|
35
|
+
puts "Error when calling RefreshSystemApi->refresh_system_post: #{e}"
|
36
|
+
end
|
37
|
+
```
|
38
|
+
|
39
|
+
#### Using the refresh_system_post_with_http_info variant
|
40
|
+
|
41
|
+
This returns an Array which contains the response data, status code and headers.
|
42
|
+
|
43
|
+
> <Array(<RefreshSystem>, Integer, Hash)> refresh_system_post_with_http_info(refresh_system)
|
44
|
+
|
45
|
+
```ruby
|
46
|
+
begin
|
47
|
+
|
48
|
+
data, status_code, headers = api_instance.refresh_system_post_with_http_info(refresh_system)
|
49
|
+
p status_code # => 2xx
|
50
|
+
p headers # => { ... }
|
51
|
+
p data # => <RefreshSystem>
|
52
|
+
rescue EilamTest::ApiError => e
|
53
|
+
puts "Error when calling RefreshSystemApi->refresh_system_post_with_http_info: #{e}"
|
54
|
+
end
|
55
|
+
```
|
56
|
+
|
57
|
+
### Parameters
|
58
|
+
|
59
|
+
| Name | Type | Description | Notes |
|
60
|
+
| ---- | ---- | ----------- | ----- |
|
61
|
+
| **refresh_system** | [**RefreshSystem**](RefreshSystem.md) | | |
|
62
|
+
|
63
|
+
### Return type
|
64
|
+
|
65
|
+
[**RefreshSystem**](RefreshSystem.md)
|
66
|
+
|
67
|
+
### Authorization
|
68
|
+
|
69
|
+
[bearerAuth](../README.md#bearerAuth)
|
70
|
+
|
71
|
+
### HTTP request headers
|
72
|
+
|
73
|
+
- **Content-Type**: application/json
|
74
|
+
- **Accept**: */*
|
75
|
+
|
data/docs/StorageSystemCreate.md
CHANGED
@@ -9,6 +9,7 @@
|
|
9
9
|
| **chap_name** | **String** | chap_name | [optional] |
|
10
10
|
| **chap_secret** | **String** | chap_secret | [optional] |
|
11
11
|
| **component_state** | **String** | component_state | [optional] |
|
12
|
+
| **initial_refresh** | **Boolean** | initial_refresh | [optional][default to true] |
|
12
13
|
| **iqn** | **String** | | [optional] |
|
13
14
|
| **management_ip** | **String** | management_ip | [optional] |
|
14
15
|
| **name** | **String** | name | [optional] |
|
@@ -34,6 +35,7 @@ instance = EilamTest::StorageSystemCreate.new(
|
|
34
35
|
chap_name: null,
|
35
36
|
chap_secret: null,
|
36
37
|
component_state: null,
|
38
|
+
initial_refresh: null,
|
37
39
|
iqn: null,
|
38
40
|
management_ip: null,
|
39
41
|
name: null,
|
@@ -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 EilamTest
|
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
|
@@ -20,14 +20,14 @@ module EilamTest
|
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
22
|
# @param [Hash] opts the optional parameters
|
23
|
-
# @return [Array<
|
23
|
+
# @return [Array<EventResponse>]
|
24
24
|
def events_get(opts = {})
|
25
25
|
data, _status_code, _headers = events_get_with_http_info(opts)
|
26
26
|
data
|
27
27
|
end
|
28
28
|
|
29
29
|
# @param [Hash] opts the optional parameters
|
30
|
-
# @return [Array<(Array<
|
30
|
+
# @return [Array<(Array<EventResponse>, Integer, Hash)>] Array<EventResponse> data, response status code and response headers
|
31
31
|
def events_get_with_http_info(opts = {})
|
32
32
|
if @api_client.config.debugging
|
33
33
|
@api_client.config.logger.debug 'Calling API: EventApi.events_get ...'
|
@@ -50,7 +50,7 @@ module EilamTest
|
|
50
50
|
post_body = opts[:debug_body]
|
51
51
|
|
52
52
|
# return_type
|
53
|
-
return_type = opts[:debug_return_type] || 'Array<
|
53
|
+
return_type = opts[:debug_return_type] || 'Array<EventResponse>'
|
54
54
|
|
55
55
|
# auth_names
|
56
56
|
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
@@ -74,7 +74,7 @@ module EilamTest
|
|
74
74
|
|
75
75
|
# @param pk [Integer]
|
76
76
|
# @param [Hash] opts the optional parameters
|
77
|
-
# @return [Array<
|
77
|
+
# @return [Array<EventResponse>]
|
78
78
|
def events_pk_delete(pk, opts = {})
|
79
79
|
data, _status_code, _headers = events_pk_delete_with_http_info(pk, opts)
|
80
80
|
data
|
@@ -82,7 +82,7 @@ module EilamTest
|
|
82
82
|
|
83
83
|
# @param pk [Integer]
|
84
84
|
# @param [Hash] opts the optional parameters
|
85
|
-
# @return [Array<(Array<
|
85
|
+
# @return [Array<(Array<EventResponse>, Integer, Hash)>] Array<EventResponse> data, response status code and response headers
|
86
86
|
def events_pk_delete_with_http_info(pk, opts = {})
|
87
87
|
if @api_client.config.debugging
|
88
88
|
@api_client.config.logger.debug 'Calling API: EventApi.events_pk_delete ...'
|
@@ -109,7 +109,7 @@ module EilamTest
|
|
109
109
|
post_body = opts[:debug_body]
|
110
110
|
|
111
111
|
# return_type
|
112
|
-
return_type = opts[:debug_return_type] || 'Array<
|
112
|
+
return_type = opts[:debug_return_type] || 'Array<EventResponse>'
|
113
113
|
|
114
114
|
# auth_names
|
115
115
|
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
@@ -133,7 +133,7 @@ module EilamTest
|
|
133
133
|
|
134
134
|
# @param pk [Integer]
|
135
135
|
# @param [Hash] opts the optional parameters
|
136
|
-
# @return [Array<
|
136
|
+
# @return [Array<EventResponse>]
|
137
137
|
def events_pk_get(pk, opts = {})
|
138
138
|
data, _status_code, _headers = events_pk_get_with_http_info(pk, opts)
|
139
139
|
data
|
@@ -141,7 +141,7 @@ module EilamTest
|
|
141
141
|
|
142
142
|
# @param pk [Integer]
|
143
143
|
# @param [Hash] opts the optional parameters
|
144
|
-
# @return [Array<(Array<
|
144
|
+
# @return [Array<(Array<EventResponse>, Integer, Hash)>] Array<EventResponse> data, response status code and response headers
|
145
145
|
def events_pk_get_with_http_info(pk, opts = {})
|
146
146
|
if @api_client.config.debugging
|
147
147
|
@api_client.config.logger.debug 'Calling API: EventApi.events_pk_get ...'
|
@@ -168,7 +168,7 @@ module EilamTest
|
|
168
168
|
post_body = opts[:debug_body]
|
169
169
|
|
170
170
|
# return_type
|
171
|
-
return_type = opts[:debug_return_type] || 'Array<
|
171
|
+
return_type = opts[:debug_return_type] || 'Array<EventResponse>'
|
172
172
|
|
173
173
|
# auth_names
|
174
174
|
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
@@ -192,7 +192,7 @@ module EilamTest
|
|
192
192
|
|
193
193
|
# @param event [Event]
|
194
194
|
# @param [Hash] opts the optional parameters
|
195
|
-
# @return [
|
195
|
+
# @return [EventResponse]
|
196
196
|
def events_post(event, opts = {})
|
197
197
|
data, _status_code, _headers = events_post_with_http_info(event, opts)
|
198
198
|
data
|
@@ -200,7 +200,7 @@ module EilamTest
|
|
200
200
|
|
201
201
|
# @param event [Event]
|
202
202
|
# @param [Hash] opts the optional parameters
|
203
|
-
# @return [Array<(
|
203
|
+
# @return [Array<(EventResponse, Integer, Hash)>] EventResponse data, response status code and response headers
|
204
204
|
def events_post_with_http_info(event, opts = {})
|
205
205
|
if @api_client.config.debugging
|
206
206
|
@api_client.config.logger.debug 'Calling API: EventApi.events_post ...'
|
@@ -229,7 +229,7 @@ module EilamTest
|
|
229
229
|
post_body = opts[:debug_body] || @api_client.object_to_http_body(event)
|
230
230
|
|
231
231
|
# return_type
|
232
|
-
return_type = opts[:debug_return_type] || '
|
232
|
+
return_type = opts[:debug_return_type] || 'EventResponse'
|
233
233
|
|
234
234
|
# auth_names
|
235
235
|
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
@@ -72,6 +72,124 @@ module EilamTest
|
|
72
72
|
return data, status_code, headers
|
73
73
|
end
|
74
74
|
|
75
|
+
# @param pk [Integer]
|
76
|
+
# @param [Hash] opts the optional parameters
|
77
|
+
# @return [Array<Job>]
|
78
|
+
def jobs_pk_delete(pk, opts = {})
|
79
|
+
data, _status_code, _headers = jobs_pk_delete_with_http_info(pk, opts)
|
80
|
+
data
|
81
|
+
end
|
82
|
+
|
83
|
+
# @param pk [Integer]
|
84
|
+
# @param [Hash] opts the optional parameters
|
85
|
+
# @return [Array<(Array<Job>, Integer, Hash)>] Array<Job> data, response status code and response headers
|
86
|
+
def jobs_pk_delete_with_http_info(pk, opts = {})
|
87
|
+
if @api_client.config.debugging
|
88
|
+
@api_client.config.logger.debug 'Calling API: JobApi.jobs_pk_delete ...'
|
89
|
+
end
|
90
|
+
# verify the required parameter 'pk' is set
|
91
|
+
if @api_client.config.client_side_validation && pk.nil?
|
92
|
+
fail ArgumentError, "Missing the required parameter 'pk' when calling JobApi.jobs_pk_delete"
|
93
|
+
end
|
94
|
+
# resource path
|
95
|
+
local_var_path = '/jobs/{pk}'.sub('{' + 'pk' + '}', CGI.escape(pk.to_s))
|
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
|
+
|
105
|
+
# form parameters
|
106
|
+
form_params = opts[:form_params] || {}
|
107
|
+
|
108
|
+
# http body (model)
|
109
|
+
post_body = opts[:debug_body]
|
110
|
+
|
111
|
+
# return_type
|
112
|
+
return_type = opts[:debug_return_type] || 'Array<Job>'
|
113
|
+
|
114
|
+
# auth_names
|
115
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
116
|
+
|
117
|
+
new_options = opts.merge(
|
118
|
+
:operation => :"JobApi.jobs_pk_delete",
|
119
|
+
:header_params => header_params,
|
120
|
+
:query_params => query_params,
|
121
|
+
:form_params => form_params,
|
122
|
+
:body => post_body,
|
123
|
+
:auth_names => auth_names,
|
124
|
+
:return_type => return_type
|
125
|
+
)
|
126
|
+
|
127
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
128
|
+
if @api_client.config.debugging
|
129
|
+
@api_client.config.logger.debug "API called: JobApi#jobs_pk_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
130
|
+
end
|
131
|
+
return data, status_code, headers
|
132
|
+
end
|
133
|
+
|
134
|
+
# @param pk [Integer]
|
135
|
+
# @param [Hash] opts the optional parameters
|
136
|
+
# @return [Array<Job>]
|
137
|
+
def jobs_pk_get(pk, opts = {})
|
138
|
+
data, _status_code, _headers = jobs_pk_get_with_http_info(pk, opts)
|
139
|
+
data
|
140
|
+
end
|
141
|
+
|
142
|
+
# @param pk [Integer]
|
143
|
+
# @param [Hash] opts the optional parameters
|
144
|
+
# @return [Array<(Array<Job>, Integer, Hash)>] Array<Job> data, response status code and response headers
|
145
|
+
def jobs_pk_get_with_http_info(pk, opts = {})
|
146
|
+
if @api_client.config.debugging
|
147
|
+
@api_client.config.logger.debug 'Calling API: JobApi.jobs_pk_get ...'
|
148
|
+
end
|
149
|
+
# verify the required parameter 'pk' is set
|
150
|
+
if @api_client.config.client_side_validation && pk.nil?
|
151
|
+
fail ArgumentError, "Missing the required parameter 'pk' when calling JobApi.jobs_pk_get"
|
152
|
+
end
|
153
|
+
# resource path
|
154
|
+
local_var_path = '/jobs/{pk}'.sub('{' + 'pk' + '}', CGI.escape(pk.to_s))
|
155
|
+
|
156
|
+
# query parameters
|
157
|
+
query_params = opts[:query_params] || {}
|
158
|
+
|
159
|
+
# header parameters
|
160
|
+
header_params = opts[:header_params] || {}
|
161
|
+
# HTTP header 'Accept' (if needed)
|
162
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
163
|
+
|
164
|
+
# form parameters
|
165
|
+
form_params = opts[:form_params] || {}
|
166
|
+
|
167
|
+
# http body (model)
|
168
|
+
post_body = opts[:debug_body]
|
169
|
+
|
170
|
+
# return_type
|
171
|
+
return_type = opts[:debug_return_type] || 'Array<Job>'
|
172
|
+
|
173
|
+
# auth_names
|
174
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
175
|
+
|
176
|
+
new_options = opts.merge(
|
177
|
+
:operation => :"JobApi.jobs_pk_get",
|
178
|
+
:header_params => header_params,
|
179
|
+
:query_params => query_params,
|
180
|
+
:form_params => form_params,
|
181
|
+
:body => post_body,
|
182
|
+
:auth_names => auth_names,
|
183
|
+
:return_type => return_type
|
184
|
+
)
|
185
|
+
|
186
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
187
|
+
if @api_client.config.debugging
|
188
|
+
@api_client.config.logger.debug "API called: JobApi#jobs_pk_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
189
|
+
end
|
190
|
+
return data, status_code, headers
|
191
|
+
end
|
192
|
+
|
75
193
|
# @param job_create [JobCreate]
|
76
194
|
# @param [Hash] opts the optional parameters
|
77
195
|
# @return [Job]
|
@@ -0,0 +1,83 @@
|
|
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 EilamTest
|
16
|
+
class RefreshSystemApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# @param refresh_system [RefreshSystem]
|
23
|
+
# @param [Hash] opts the optional parameters
|
24
|
+
# @return [RefreshSystem]
|
25
|
+
def refresh_system_post(refresh_system, opts = {})
|
26
|
+
data, _status_code, _headers = refresh_system_post_with_http_info(refresh_system, opts)
|
27
|
+
data
|
28
|
+
end
|
29
|
+
|
30
|
+
# @param refresh_system [RefreshSystem]
|
31
|
+
# @param [Hash] opts the optional parameters
|
32
|
+
# @return [Array<(RefreshSystem, Integer, Hash)>] RefreshSystem data, response status code and response headers
|
33
|
+
def refresh_system_post_with_http_info(refresh_system, opts = {})
|
34
|
+
if @api_client.config.debugging
|
35
|
+
@api_client.config.logger.debug 'Calling API: RefreshSystemApi.refresh_system_post ...'
|
36
|
+
end
|
37
|
+
# verify the required parameter 'refresh_system' is set
|
38
|
+
if @api_client.config.client_side_validation && refresh_system.nil?
|
39
|
+
fail ArgumentError, "Missing the required parameter 'refresh_system' when calling RefreshSystemApi.refresh_system_post"
|
40
|
+
end
|
41
|
+
# resource path
|
42
|
+
local_var_path = '/refresh-system'
|
43
|
+
|
44
|
+
# query parameters
|
45
|
+
query_params = opts[:query_params] || {}
|
46
|
+
|
47
|
+
# header parameters
|
48
|
+
header_params = opts[:header_params] || {}
|
49
|
+
# HTTP header 'Accept' (if needed)
|
50
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
51
|
+
# HTTP header 'Content-Type'
|
52
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
53
|
+
|
54
|
+
# form parameters
|
55
|
+
form_params = opts[:form_params] || {}
|
56
|
+
|
57
|
+
# http body (model)
|
58
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(refresh_system)
|
59
|
+
|
60
|
+
# return_type
|
61
|
+
return_type = opts[:debug_return_type] || 'RefreshSystem'
|
62
|
+
|
63
|
+
# auth_names
|
64
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
65
|
+
|
66
|
+
new_options = opts.merge(
|
67
|
+
:operation => :"RefreshSystemApi.refresh_system_post",
|
68
|
+
:header_params => header_params,
|
69
|
+
:query_params => query_params,
|
70
|
+
:form_params => form_params,
|
71
|
+
:body => post_body,
|
72
|
+
:auth_names => auth_names,
|
73
|
+
:return_type => return_type
|
74
|
+
)
|
75
|
+
|
76
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
77
|
+
if @api_client.config.debugging
|
78
|
+
@api_client.config.logger.debug "API called: RefreshSystemApi#refresh_system_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
79
|
+
end
|
80
|
+
return data, status_code, headers
|
81
|
+
end
|
82
|
+
end
|
83
|
+
end
|