eilam_test 1.1.10 → 1.1.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +0 -15
- data/docs/SystemType.md +1 -1
- data/docs/SystemTypeCreate.md +1 -1
- data/lib/eilam_test/models/system_type.rb +3 -3
- data/lib/eilam_test/models/system_type_create.rb +3 -3
- data/lib/eilam_test/version.rb +2 -2
- data/lib/eilam_test.rb +0 -8
- data/spec/models/system_type_create_spec.rb +1 -1
- data/spec/models/system_type_spec.rb +1 -1
- metadata +62 -94
- data/docs/Event.md +0 -32
- data/docs/EventApi.md +0 -276
- data/docs/User.md +0 -38
- data/docs/UserApi.md +0 -346
- data/docs/UserCreate.md +0 -38
- data/docs/UserUpdate.md +0 -30
- data/docs/ValidateSystem.md +0 -26
- data/docs/ValidateSystemApi.md +0 -75
- data/lib/eilam_test/api/event_api.rb +0 -254
- data/lib/eilam_test/api/user_api.rb +0 -321
- data/lib/eilam_test/api/validate_system_api.rb +0 -83
- data/lib/eilam_test/models/event.rb +0 -289
- data/lib/eilam_test/models/user.rb +0 -395
- data/lib/eilam_test/models/user_create.rb +0 -395
- data/lib/eilam_test/models/user_update.rb +0 -280
- data/lib/eilam_test/models/validate_system.rb +0 -260
- data/spec/api/event_api_spec.rb +0 -74
- data/spec/api/user_api_spec.rb +0 -85
- data/spec/api/validate_system_api_spec.rb +0 -45
- data/spec/models/event_spec.rb +0 -76
- data/spec/models/user_create_spec.rb +0 -94
- data/spec/models/user_spec.rb +0 -94
- data/spec/models/user_update_spec.rb +0 -70
- data/spec/models/validate_system_spec.rb +0 -58
data/docs/ValidateSystem.md
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
# EilamTest::ValidateSystem
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
| Name | Type | Description | Notes |
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **management_ip** | **String** | management_ip | [optional] |
|
8
|
-
| **name** | **String** | name | [optional] |
|
9
|
-
| **password** | **String** | password | [optional] |
|
10
|
-
| **system_type** | **String** | system_type | [optional] |
|
11
|
-
| **user** | **String** | user | [optional] |
|
12
|
-
|
13
|
-
## Example
|
14
|
-
|
15
|
-
```ruby
|
16
|
-
require 'eilam_test'
|
17
|
-
|
18
|
-
instance = EilamTest::ValidateSystem.new(
|
19
|
-
management_ip: null,
|
20
|
-
name: null,
|
21
|
-
password: null,
|
22
|
-
system_type: null,
|
23
|
-
user: null
|
24
|
-
)
|
25
|
-
```
|
26
|
-
|
data/docs/ValidateSystemApi.md
DELETED
@@ -1,75 +0,0 @@
|
|
1
|
-
# EilamTest::ValidateSystemApi
|
2
|
-
|
3
|
-
All URIs are relative to *http://localhost:9000/site-manager/api/v1/engine*
|
4
|
-
|
5
|
-
| Method | HTTP request | Description |
|
6
|
-
| ------ | ------------ | ----------- |
|
7
|
-
| [**validate_system_post**](ValidateSystemApi.md#validate_system_post) | **POST** /validate-system | |
|
8
|
-
|
9
|
-
|
10
|
-
## validate_system_post
|
11
|
-
|
12
|
-
> <ValidateSystem> validate_system_post(storage_system_create)
|
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::ValidateSystemApi.new
|
28
|
-
storage_system_create = EilamTest::StorageSystemCreate.new # StorageSystemCreate |
|
29
|
-
|
30
|
-
begin
|
31
|
-
|
32
|
-
result = api_instance.validate_system_post(storage_system_create)
|
33
|
-
p result
|
34
|
-
rescue EilamTest::ApiError => e
|
35
|
-
puts "Error when calling ValidateSystemApi->validate_system_post: #{e}"
|
36
|
-
end
|
37
|
-
```
|
38
|
-
|
39
|
-
#### Using the validate_system_post_with_http_info variant
|
40
|
-
|
41
|
-
This returns an Array which contains the response data, status code and headers.
|
42
|
-
|
43
|
-
> <Array(<ValidateSystem>, Integer, Hash)> validate_system_post_with_http_info(storage_system_create)
|
44
|
-
|
45
|
-
```ruby
|
46
|
-
begin
|
47
|
-
|
48
|
-
data, status_code, headers = api_instance.validate_system_post_with_http_info(storage_system_create)
|
49
|
-
p status_code # => 2xx
|
50
|
-
p headers # => { ... }
|
51
|
-
p data # => <ValidateSystem>
|
52
|
-
rescue EilamTest::ApiError => e
|
53
|
-
puts "Error when calling ValidateSystemApi->validate_system_post_with_http_info: #{e}"
|
54
|
-
end
|
55
|
-
```
|
56
|
-
|
57
|
-
### Parameters
|
58
|
-
|
59
|
-
| Name | Type | Description | Notes |
|
60
|
-
| ---- | ---- | ----------- | ----- |
|
61
|
-
| **storage_system_create** | [**StorageSystemCreate**](StorageSystemCreate.md) | | |
|
62
|
-
|
63
|
-
### Return type
|
64
|
-
|
65
|
-
[**ValidateSystem**](ValidateSystem.md)
|
66
|
-
|
67
|
-
### Authorization
|
68
|
-
|
69
|
-
[bearerAuth](../README.md#bearerAuth)
|
70
|
-
|
71
|
-
### HTTP request headers
|
72
|
-
|
73
|
-
- **Content-Type**: application/json
|
74
|
-
- **Accept**: */*
|
75
|
-
|
@@ -1,254 +0,0 @@
|
|
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 EventApi
|
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<Event>]
|
24
|
-
def events_get(opts = {})
|
25
|
-
data, _status_code, _headers = events_get_with_http_info(opts)
|
26
|
-
data
|
27
|
-
end
|
28
|
-
|
29
|
-
# @param [Hash] opts the optional parameters
|
30
|
-
# @return [Array<(Array<Event>, Integer, Hash)>] Array<Event> data, response status code and response headers
|
31
|
-
def events_get_with_http_info(opts = {})
|
32
|
-
if @api_client.config.debugging
|
33
|
-
@api_client.config.logger.debug 'Calling API: EventApi.events_get ...'
|
34
|
-
end
|
35
|
-
# resource path
|
36
|
-
local_var_path = '/events'
|
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<Event>'
|
54
|
-
|
55
|
-
# auth_names
|
56
|
-
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
57
|
-
|
58
|
-
new_options = opts.merge(
|
59
|
-
:operation => :"EventApi.events_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: EventApi#events_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
71
|
-
end
|
72
|
-
return data, status_code, headers
|
73
|
-
end
|
74
|
-
|
75
|
-
# @param pk [Integer]
|
76
|
-
# @param [Hash] opts the optional parameters
|
77
|
-
# @return [Array<Event>]
|
78
|
-
def events_pk_delete(pk, opts = {})
|
79
|
-
data, _status_code, _headers = events_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<Event>, Integer, Hash)>] Array<Event> data, response status code and response headers
|
86
|
-
def events_pk_delete_with_http_info(pk, opts = {})
|
87
|
-
if @api_client.config.debugging
|
88
|
-
@api_client.config.logger.debug 'Calling API: EventApi.events_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 EventApi.events_pk_delete"
|
93
|
-
end
|
94
|
-
# resource path
|
95
|
-
local_var_path = '/events/{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<Event>'
|
113
|
-
|
114
|
-
# auth_names
|
115
|
-
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
116
|
-
|
117
|
-
new_options = opts.merge(
|
118
|
-
:operation => :"EventApi.events_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: EventApi#events_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<Event>]
|
137
|
-
def events_pk_get(pk, opts = {})
|
138
|
-
data, _status_code, _headers = events_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<Event>, Integer, Hash)>] Array<Event> data, response status code and response headers
|
145
|
-
def events_pk_get_with_http_info(pk, opts = {})
|
146
|
-
if @api_client.config.debugging
|
147
|
-
@api_client.config.logger.debug 'Calling API: EventApi.events_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 EventApi.events_pk_get"
|
152
|
-
end
|
153
|
-
# resource path
|
154
|
-
local_var_path = '/events/{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<Event>'
|
172
|
-
|
173
|
-
# auth_names
|
174
|
-
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
175
|
-
|
176
|
-
new_options = opts.merge(
|
177
|
-
:operation => :"EventApi.events_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: EventApi#events_pk_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
189
|
-
end
|
190
|
-
return data, status_code, headers
|
191
|
-
end
|
192
|
-
|
193
|
-
# @param event [Event]
|
194
|
-
# @param [Hash] opts the optional parameters
|
195
|
-
# @return [Event]
|
196
|
-
def events_post(event, opts = {})
|
197
|
-
data, _status_code, _headers = events_post_with_http_info(event, opts)
|
198
|
-
data
|
199
|
-
end
|
200
|
-
|
201
|
-
# @param event [Event]
|
202
|
-
# @param [Hash] opts the optional parameters
|
203
|
-
# @return [Array<(Event, Integer, Hash)>] Event data, response status code and response headers
|
204
|
-
def events_post_with_http_info(event, opts = {})
|
205
|
-
if @api_client.config.debugging
|
206
|
-
@api_client.config.logger.debug 'Calling API: EventApi.events_post ...'
|
207
|
-
end
|
208
|
-
# verify the required parameter 'event' is set
|
209
|
-
if @api_client.config.client_side_validation && event.nil?
|
210
|
-
fail ArgumentError, "Missing the required parameter 'event' when calling EventApi.events_post"
|
211
|
-
end
|
212
|
-
# resource path
|
213
|
-
local_var_path = '/events'
|
214
|
-
|
215
|
-
# query parameters
|
216
|
-
query_params = opts[:query_params] || {}
|
217
|
-
|
218
|
-
# header parameters
|
219
|
-
header_params = opts[:header_params] || {}
|
220
|
-
# HTTP header 'Accept' (if needed)
|
221
|
-
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
222
|
-
# HTTP header 'Content-Type'
|
223
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
224
|
-
|
225
|
-
# form parameters
|
226
|
-
form_params = opts[:form_params] || {}
|
227
|
-
|
228
|
-
# http body (model)
|
229
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(event)
|
230
|
-
|
231
|
-
# return_type
|
232
|
-
return_type = opts[:debug_return_type] || 'Event'
|
233
|
-
|
234
|
-
# auth_names
|
235
|
-
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
236
|
-
|
237
|
-
new_options = opts.merge(
|
238
|
-
:operation => :"EventApi.events_post",
|
239
|
-
:header_params => header_params,
|
240
|
-
:query_params => query_params,
|
241
|
-
:form_params => form_params,
|
242
|
-
:body => post_body,
|
243
|
-
:auth_names => auth_names,
|
244
|
-
:return_type => return_type
|
245
|
-
)
|
246
|
-
|
247
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
248
|
-
if @api_client.config.debugging
|
249
|
-
@api_client.config.logger.debug "API called: EventApi#events_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
250
|
-
end
|
251
|
-
return data, status_code, headers
|
252
|
-
end
|
253
|
-
end
|
254
|
-
end
|
@@ -1,321 +0,0 @@
|
|
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 UserApi
|
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<UserCreate>]
|
24
|
-
def autosde_users_get(opts = {})
|
25
|
-
data, _status_code, _headers = autosde_users_get_with_http_info(opts)
|
26
|
-
data
|
27
|
-
end
|
28
|
-
|
29
|
-
# @param [Hash] opts the optional parameters
|
30
|
-
# @return [Array<(Array<UserCreate>, Integer, Hash)>] Array<UserCreate> data, response status code and response headers
|
31
|
-
def autosde_users_get_with_http_info(opts = {})
|
32
|
-
if @api_client.config.debugging
|
33
|
-
@api_client.config.logger.debug 'Calling API: UserApi.autosde_users_get ...'
|
34
|
-
end
|
35
|
-
# resource path
|
36
|
-
local_var_path = '/autosde-users'
|
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<UserCreate>'
|
54
|
-
|
55
|
-
# auth_names
|
56
|
-
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
57
|
-
|
58
|
-
new_options = opts.merge(
|
59
|
-
:operation => :"UserApi.autosde_users_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: UserApi#autosde_users_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
71
|
-
end
|
72
|
-
return data, status_code, headers
|
73
|
-
end
|
74
|
-
|
75
|
-
# @param pk [Integer]
|
76
|
-
# @param [Hash] opts the optional parameters
|
77
|
-
# @return [Array<User>]
|
78
|
-
def autosde_users_pk_delete(pk, opts = {})
|
79
|
-
data, _status_code, _headers = autosde_users_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<User>, Integer, Hash)>] Array<User> data, response status code and response headers
|
86
|
-
def autosde_users_pk_delete_with_http_info(pk, opts = {})
|
87
|
-
if @api_client.config.debugging
|
88
|
-
@api_client.config.logger.debug 'Calling API: UserApi.autosde_users_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 UserApi.autosde_users_pk_delete"
|
93
|
-
end
|
94
|
-
# resource path
|
95
|
-
local_var_path = '/autosde-users/{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<User>'
|
113
|
-
|
114
|
-
# auth_names
|
115
|
-
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
116
|
-
|
117
|
-
new_options = opts.merge(
|
118
|
-
:operation => :"UserApi.autosde_users_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: UserApi#autosde_users_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<UserCreate>]
|
137
|
-
def autosde_users_pk_get(pk, opts = {})
|
138
|
-
data, _status_code, _headers = autosde_users_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<UserCreate>, Integer, Hash)>] Array<UserCreate> data, response status code and response headers
|
145
|
-
def autosde_users_pk_get_with_http_info(pk, opts = {})
|
146
|
-
if @api_client.config.debugging
|
147
|
-
@api_client.config.logger.debug 'Calling API: UserApi.autosde_users_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 UserApi.autosde_users_pk_get"
|
152
|
-
end
|
153
|
-
# resource path
|
154
|
-
local_var_path = '/autosde-users/{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<UserCreate>'
|
172
|
-
|
173
|
-
# auth_names
|
174
|
-
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
175
|
-
|
176
|
-
new_options = opts.merge(
|
177
|
-
:operation => :"UserApi.autosde_users_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: UserApi#autosde_users_pk_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
189
|
-
end
|
190
|
-
return data, status_code, headers
|
191
|
-
end
|
192
|
-
|
193
|
-
# @param pk [Integer]
|
194
|
-
# @param user_update [UserUpdate]
|
195
|
-
# @param [Hash] opts the optional parameters
|
196
|
-
# @return [UserCreate]
|
197
|
-
def autosde_users_pk_put(pk, user_update, opts = {})
|
198
|
-
data, _status_code, _headers = autosde_users_pk_put_with_http_info(pk, user_update, opts)
|
199
|
-
data
|
200
|
-
end
|
201
|
-
|
202
|
-
# @param pk [Integer]
|
203
|
-
# @param user_update [UserUpdate]
|
204
|
-
# @param [Hash] opts the optional parameters
|
205
|
-
# @return [Array<(UserCreate, Integer, Hash)>] UserCreate data, response status code and response headers
|
206
|
-
def autosde_users_pk_put_with_http_info(pk, user_update, opts = {})
|
207
|
-
if @api_client.config.debugging
|
208
|
-
@api_client.config.logger.debug 'Calling API: UserApi.autosde_users_pk_put ...'
|
209
|
-
end
|
210
|
-
# verify the required parameter 'pk' is set
|
211
|
-
if @api_client.config.client_side_validation && pk.nil?
|
212
|
-
fail ArgumentError, "Missing the required parameter 'pk' when calling UserApi.autosde_users_pk_put"
|
213
|
-
end
|
214
|
-
# verify the required parameter 'user_update' is set
|
215
|
-
if @api_client.config.client_side_validation && user_update.nil?
|
216
|
-
fail ArgumentError, "Missing the required parameter 'user_update' when calling UserApi.autosde_users_pk_put"
|
217
|
-
end
|
218
|
-
# resource path
|
219
|
-
local_var_path = '/autosde-users/{pk}'.sub('{' + 'pk' + '}', CGI.escape(pk.to_s))
|
220
|
-
|
221
|
-
# query parameters
|
222
|
-
query_params = opts[:query_params] || {}
|
223
|
-
|
224
|
-
# header parameters
|
225
|
-
header_params = opts[:header_params] || {}
|
226
|
-
# HTTP header 'Accept' (if needed)
|
227
|
-
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
228
|
-
# HTTP header 'Content-Type'
|
229
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
230
|
-
|
231
|
-
# form parameters
|
232
|
-
form_params = opts[:form_params] || {}
|
233
|
-
|
234
|
-
# http body (model)
|
235
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(user_update)
|
236
|
-
|
237
|
-
# return_type
|
238
|
-
return_type = opts[:debug_return_type] || 'UserCreate'
|
239
|
-
|
240
|
-
# auth_names
|
241
|
-
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
242
|
-
|
243
|
-
new_options = opts.merge(
|
244
|
-
:operation => :"UserApi.autosde_users_pk_put",
|
245
|
-
:header_params => header_params,
|
246
|
-
:query_params => query_params,
|
247
|
-
:form_params => form_params,
|
248
|
-
:body => post_body,
|
249
|
-
:auth_names => auth_names,
|
250
|
-
:return_type => return_type
|
251
|
-
)
|
252
|
-
|
253
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
254
|
-
if @api_client.config.debugging
|
255
|
-
@api_client.config.logger.debug "API called: UserApi#autosde_users_pk_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
256
|
-
end
|
257
|
-
return data, status_code, headers
|
258
|
-
end
|
259
|
-
|
260
|
-
# @param user_create [UserCreate]
|
261
|
-
# @param [Hash] opts the optional parameters
|
262
|
-
# @return [UserCreate]
|
263
|
-
def autosde_users_post(user_create, opts = {})
|
264
|
-
data, _status_code, _headers = autosde_users_post_with_http_info(user_create, opts)
|
265
|
-
data
|
266
|
-
end
|
267
|
-
|
268
|
-
# @param user_create [UserCreate]
|
269
|
-
# @param [Hash] opts the optional parameters
|
270
|
-
# @return [Array<(UserCreate, Integer, Hash)>] UserCreate data, response status code and response headers
|
271
|
-
def autosde_users_post_with_http_info(user_create, opts = {})
|
272
|
-
if @api_client.config.debugging
|
273
|
-
@api_client.config.logger.debug 'Calling API: UserApi.autosde_users_post ...'
|
274
|
-
end
|
275
|
-
# verify the required parameter 'user_create' is set
|
276
|
-
if @api_client.config.client_side_validation && user_create.nil?
|
277
|
-
fail ArgumentError, "Missing the required parameter 'user_create' when calling UserApi.autosde_users_post"
|
278
|
-
end
|
279
|
-
# resource path
|
280
|
-
local_var_path = '/autosde-users'
|
281
|
-
|
282
|
-
# query parameters
|
283
|
-
query_params = opts[:query_params] || {}
|
284
|
-
|
285
|
-
# header parameters
|
286
|
-
header_params = opts[:header_params] || {}
|
287
|
-
# HTTP header 'Accept' (if needed)
|
288
|
-
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
289
|
-
# HTTP header 'Content-Type'
|
290
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
291
|
-
|
292
|
-
# form parameters
|
293
|
-
form_params = opts[:form_params] || {}
|
294
|
-
|
295
|
-
# http body (model)
|
296
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(user_create)
|
297
|
-
|
298
|
-
# return_type
|
299
|
-
return_type = opts[:debug_return_type] || 'UserCreate'
|
300
|
-
|
301
|
-
# auth_names
|
302
|
-
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
303
|
-
|
304
|
-
new_options = opts.merge(
|
305
|
-
:operation => :"UserApi.autosde_users_post",
|
306
|
-
:header_params => header_params,
|
307
|
-
:query_params => query_params,
|
308
|
-
:form_params => form_params,
|
309
|
-
:body => post_body,
|
310
|
-
:auth_names => auth_names,
|
311
|
-
:return_type => return_type
|
312
|
-
)
|
313
|
-
|
314
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
315
|
-
if @api_client.config.debugging
|
316
|
-
@api_client.config.logger.debug "API called: UserApi#autosde_users_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
317
|
-
end
|
318
|
-
return data, status_code, headers
|
319
|
-
end
|
320
|
-
end
|
321
|
-
end
|