autosde_openapi_client 1.1.9 → 1.1.10
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 -2
- data/docs/User.md +38 -0
- data/docs/UserApi.md +346 -0
- data/docs/UserCreate.md +38 -0
- data/docs/UserUpdate.md +30 -0
- data/lib/autosde_openapi_client/api/user_api.rb +321 -0
- data/lib/autosde_openapi_client/models/user.rb +395 -0
- data/lib/autosde_openapi_client/models/user_create.rb +395 -0
- data/lib/autosde_openapi_client/models/{user_change_password.rb → user_update.rb} +72 -12
- data/lib/autosde_openapi_client/version.rb +2 -2
- data/lib/autosde_openapi_client.rb +4 -2
- data/spec/api/user_api_spec.rb +85 -0
- data/spec/models/user_create_spec.rb +94 -0
- data/spec/models/user_spec.rb +94 -0
- data/spec/models/user_update_spec.rb +70 -0
- metadata +18 -10
- data/docs/UserChangePassword.md +0 -18
- data/docs/UserChangePasswordApi.md +0 -75
- data/lib/autosde_openapi_client/api/user_change_password_api.rb +0 -83
- data/spec/api/user_change_password_api_spec.rb +0 -45
- data/spec/models/user_change_password_spec.rb +0 -34
@@ -0,0 +1,94 @@
|
|
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 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for AutosdeOpenapiClient::UserCreate
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe AutosdeOpenapiClient::UserCreate do
|
21
|
+
let(:instance) { AutosdeOpenapiClient::UserCreate.new }
|
22
|
+
|
23
|
+
describe 'test an instance of UserCreate' do
|
24
|
+
it 'should create an instance of UserCreate' do
|
25
|
+
expect(instance).to be_instance_of(AutosdeOpenapiClient::UserCreate)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "date_joined"' do
|
29
|
+
it 'should work' do
|
30
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
describe 'test attribute "email"' do
|
35
|
+
it 'should work' do
|
36
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
describe 'test attribute "first_name"' do
|
41
|
+
it 'should work' do
|
42
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
describe 'test attribute "is_active"' do
|
47
|
+
it 'should work' do
|
48
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
describe 'test attribute "is_staff"' do
|
53
|
+
it 'should work' do
|
54
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
describe 'test attribute "is_superuser"' do
|
59
|
+
it 'should work' do
|
60
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
describe 'test attribute "last_login"' do
|
65
|
+
it 'should work' do
|
66
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
describe 'test attribute "last_name"' do
|
71
|
+
it 'should work' do
|
72
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
describe 'test attribute "password"' do
|
77
|
+
it 'should work' do
|
78
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
82
|
+
describe 'test attribute "username"' do
|
83
|
+
it 'should work' do
|
84
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
88
|
+
describe 'test attribute "uuid"' do
|
89
|
+
it 'should work' do
|
90
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
91
|
+
end
|
92
|
+
end
|
93
|
+
|
94
|
+
end
|
@@ -0,0 +1,94 @@
|
|
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 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for AutosdeOpenapiClient::User
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe AutosdeOpenapiClient::User do
|
21
|
+
let(:instance) { AutosdeOpenapiClient::User.new }
|
22
|
+
|
23
|
+
describe 'test an instance of User' do
|
24
|
+
it 'should create an instance of User' do
|
25
|
+
expect(instance).to be_instance_of(AutosdeOpenapiClient::User)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "date_joined"' do
|
29
|
+
it 'should work' do
|
30
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
describe 'test attribute "email"' do
|
35
|
+
it 'should work' do
|
36
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
describe 'test attribute "first_name"' do
|
41
|
+
it 'should work' do
|
42
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
describe 'test attribute "is_active"' do
|
47
|
+
it 'should work' do
|
48
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
describe 'test attribute "is_staff"' do
|
53
|
+
it 'should work' do
|
54
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
describe 'test attribute "is_superuser"' do
|
59
|
+
it 'should work' do
|
60
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
describe 'test attribute "last_login"' do
|
65
|
+
it 'should work' do
|
66
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
describe 'test attribute "last_name"' do
|
71
|
+
it 'should work' do
|
72
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
describe 'test attribute "password"' do
|
77
|
+
it 'should work' do
|
78
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
82
|
+
describe 'test attribute "username"' do
|
83
|
+
it 'should work' do
|
84
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
88
|
+
describe 'test attribute "uuid"' do
|
89
|
+
it 'should work' do
|
90
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
91
|
+
end
|
92
|
+
end
|
93
|
+
|
94
|
+
end
|
@@ -0,0 +1,70 @@
|
|
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 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for AutosdeOpenapiClient::UserUpdate
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe AutosdeOpenapiClient::UserUpdate do
|
21
|
+
let(:instance) { AutosdeOpenapiClient::UserUpdate.new }
|
22
|
+
|
23
|
+
describe 'test an instance of UserUpdate' do
|
24
|
+
it 'should create an instance of UserUpdate' do
|
25
|
+
expect(instance).to be_instance_of(AutosdeOpenapiClient::UserUpdate)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "email"' do
|
29
|
+
it 'should work' do
|
30
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
describe 'test attribute "first_name"' do
|
35
|
+
it 'should work' do
|
36
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
describe 'test attribute "is_active"' do
|
41
|
+
it 'should work' do
|
42
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
describe 'test attribute "is_staff"' do
|
47
|
+
it 'should work' do
|
48
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
describe 'test attribute "last_name"' do
|
53
|
+
it 'should work' do
|
54
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
describe 'test attribute "password"' do
|
59
|
+
it 'should work' do
|
60
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
describe 'test attribute "username"' do
|
65
|
+
it 'should work' do
|
66
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: autosde_openapi_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenAPI-Generator
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-02-
|
11
|
+
date: 2022-02-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -137,8 +137,10 @@ files:
|
|
137
137
|
- docs/SystemType.md
|
138
138
|
- docs/SystemTypeApi.md
|
139
139
|
- docs/SystemTypeCreate.md
|
140
|
-
- docs/
|
141
|
-
- docs/
|
140
|
+
- docs/User.md
|
141
|
+
- docs/UserApi.md
|
142
|
+
- docs/UserCreate.md
|
143
|
+
- docs/UserUpdate.md
|
142
144
|
- docs/Volume.md
|
143
145
|
- docs/VolumeApi.md
|
144
146
|
- docs/VolumeCreate.md
|
@@ -174,7 +176,7 @@ files:
|
|
174
176
|
- lib/autosde_openapi_client/api/storage_resource_api.rb
|
175
177
|
- lib/autosde_openapi_client/api/storage_system_api.rb
|
176
178
|
- lib/autosde_openapi_client/api/system_type_api.rb
|
177
|
-
- lib/autosde_openapi_client/api/
|
179
|
+
- lib/autosde_openapi_client/api/user_api.rb
|
178
180
|
- lib/autosde_openapi_client/api/volume_api.rb
|
179
181
|
- lib/autosde_openapi_client/api/volume_safe_delete_api.rb
|
180
182
|
- lib/autosde_openapi_client/api_client.rb
|
@@ -230,7 +232,9 @@ files:
|
|
230
232
|
- lib/autosde_openapi_client/models/storage_system_update.rb
|
231
233
|
- lib/autosde_openapi_client/models/system_type.rb
|
232
234
|
- lib/autosde_openapi_client/models/system_type_create.rb
|
233
|
-
- lib/autosde_openapi_client/models/
|
235
|
+
- lib/autosde_openapi_client/models/user.rb
|
236
|
+
- lib/autosde_openapi_client/models/user_create.rb
|
237
|
+
- lib/autosde_openapi_client/models/user_update.rb
|
234
238
|
- lib/autosde_openapi_client/models/volume.rb
|
235
239
|
- lib/autosde_openapi_client/models/volume_create.rb
|
236
240
|
- lib/autosde_openapi_client/models/volume_response.rb
|
@@ -263,7 +267,7 @@ files:
|
|
263
267
|
- spec/api/storage_resource_api_spec.rb
|
264
268
|
- spec/api/storage_system_api_spec.rb
|
265
269
|
- spec/api/system_type_api_spec.rb
|
266
|
-
- spec/api/
|
270
|
+
- spec/api/user_api_spec.rb
|
267
271
|
- spec/api/volume_api_spec.rb
|
268
272
|
- spec/api/volume_safe_delete_api_spec.rb
|
269
273
|
- spec/api_client_spec.rb
|
@@ -318,7 +322,9 @@ files:
|
|
318
322
|
- spec/models/storage_system_update_spec.rb
|
319
323
|
- spec/models/system_type_create_spec.rb
|
320
324
|
- spec/models/system_type_spec.rb
|
321
|
-
- spec/models/
|
325
|
+
- spec/models/user_create_spec.rb
|
326
|
+
- spec/models/user_spec.rb
|
327
|
+
- spec/models/user_update_spec.rb
|
322
328
|
- spec/models/volume_create_spec.rb
|
323
329
|
- spec/models/volume_response_spec.rb
|
324
330
|
- spec/models/volume_safe_delete_create_spec.rb
|
@@ -357,7 +363,6 @@ test_files:
|
|
357
363
|
- spec/api/address_api_spec.rb
|
358
364
|
- spec/api/host_volume_connection_api_spec.rb
|
359
365
|
- spec/api/capability_translation_api_spec.rb
|
360
|
-
- spec/api/user_change_password_api_spec.rb
|
361
366
|
- spec/api/profile_api_spec.rb
|
362
367
|
- spec/api/auto_sde_project_api_spec.rb
|
363
368
|
- spec/api/volume_safe_delete_api_spec.rb
|
@@ -367,6 +372,7 @@ test_files:
|
|
367
372
|
- spec/api/provisioning_strategy_api_spec.rb
|
368
373
|
- spec/api/storage_host_api_spec.rb
|
369
374
|
- spec/api/storage_system_api_spec.rb
|
375
|
+
- spec/api/user_api_spec.rb
|
370
376
|
- spec/api/system_type_api_spec.rb
|
371
377
|
- spec/api/service_resource_attachment_api_spec.rb
|
372
378
|
- spec/api/auto_sde_role_api_spec.rb
|
@@ -382,7 +388,6 @@ test_files:
|
|
382
388
|
- spec/configuration_spec.rb
|
383
389
|
- spec/models/service_spec.rb
|
384
390
|
- spec/models/host_cluster_spec.rb
|
385
|
-
- spec/models/user_change_password_spec.rb
|
386
391
|
- spec/models/host_volume_connection_create_spec.rb
|
387
392
|
- spec/models/profile_spec.rb
|
388
393
|
- spec/models/address_create_spec.rb
|
@@ -395,6 +400,7 @@ test_files:
|
|
395
400
|
- spec/models/system_type_create_spec.rb
|
396
401
|
- spec/models/storage_host_volume_mapping_create_spec.rb
|
397
402
|
- spec/models/capability_translation_create_spec.rb
|
403
|
+
- spec/models/user_update_spec.rb
|
398
404
|
- spec/models/storage_resource_spec.rb
|
399
405
|
- spec/models/native_capability_spec.rb
|
400
406
|
- spec/models/volume_response_spec.rb
|
@@ -422,10 +428,12 @@ test_files:
|
|
422
428
|
- spec/models/storage_resource_response_spec.rb
|
423
429
|
- spec/models/job_spec.rb
|
424
430
|
- spec/models/snapshot_spec.rb
|
431
|
+
- spec/models/user_create_spec.rb
|
425
432
|
- spec/models/storage_host_spec.rb
|
426
433
|
- spec/models/service_create_spec.rb
|
427
434
|
- spec/models/service_resource_attachment_spec.rb
|
428
435
|
- spec/models/authentication_spec.rb
|
436
|
+
- spec/models/user_spec.rb
|
429
437
|
- spec/models/storage_host_response_spec.rb
|
430
438
|
- spec/models/host_cluster_membership_spec.rb
|
431
439
|
- spec/models/service_abstract_capability_value_spec.rb
|
data/docs/UserChangePassword.md
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
# AutosdeOpenapiClient::UserChangePassword
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
| Name | Type | Description | Notes |
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **new_password** | **String** | new_password | [optional] |
|
8
|
-
|
9
|
-
## Example
|
10
|
-
|
11
|
-
```ruby
|
12
|
-
require 'autosde_openapi_client'
|
13
|
-
|
14
|
-
instance = AutosdeOpenapiClient::UserChangePassword.new(
|
15
|
-
new_password: null
|
16
|
-
)
|
17
|
-
```
|
18
|
-
|
@@ -1,75 +0,0 @@
|
|
1
|
-
# AutosdeOpenapiClient::UserChangePasswordApi
|
2
|
-
|
3
|
-
All URIs are relative to *http://localhost:9000/site-manager/api/v1/engine*
|
4
|
-
|
5
|
-
| Method | HTTP request | Description |
|
6
|
-
| ------ | ------------ | ----------- |
|
7
|
-
| [**change_user_password_post**](UserChangePasswordApi.md#change_user_password_post) | **POST** /change-user-password | |
|
8
|
-
|
9
|
-
|
10
|
-
## change_user_password_post
|
11
|
-
|
12
|
-
> <UserChangePassword> change_user_password_post(user_change_password)
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
### Examples
|
17
|
-
|
18
|
-
```ruby
|
19
|
-
require 'time'
|
20
|
-
require 'autosde_openapi_client'
|
21
|
-
# setup authorization
|
22
|
-
AutosdeOpenapiClient.configure do |config|
|
23
|
-
# Configure Bearer authorization: bearerAuth
|
24
|
-
config.access_token = 'YOUR_BEARER_TOKEN'
|
25
|
-
end
|
26
|
-
|
27
|
-
api_instance = AutosdeOpenapiClient::UserChangePasswordApi.new
|
28
|
-
user_change_password = AutosdeOpenapiClient::UserChangePassword.new # UserChangePassword |
|
29
|
-
|
30
|
-
begin
|
31
|
-
|
32
|
-
result = api_instance.change_user_password_post(user_change_password)
|
33
|
-
p result
|
34
|
-
rescue AutosdeOpenapiClient::ApiError => e
|
35
|
-
puts "Error when calling UserChangePasswordApi->change_user_password_post: #{e}"
|
36
|
-
end
|
37
|
-
```
|
38
|
-
|
39
|
-
#### Using the change_user_password_post_with_http_info variant
|
40
|
-
|
41
|
-
This returns an Array which contains the response data, status code and headers.
|
42
|
-
|
43
|
-
> <Array(<UserChangePassword>, Integer, Hash)> change_user_password_post_with_http_info(user_change_password)
|
44
|
-
|
45
|
-
```ruby
|
46
|
-
begin
|
47
|
-
|
48
|
-
data, status_code, headers = api_instance.change_user_password_post_with_http_info(user_change_password)
|
49
|
-
p status_code # => 2xx
|
50
|
-
p headers # => { ... }
|
51
|
-
p data # => <UserChangePassword>
|
52
|
-
rescue AutosdeOpenapiClient::ApiError => e
|
53
|
-
puts "Error when calling UserChangePasswordApi->change_user_password_post_with_http_info: #{e}"
|
54
|
-
end
|
55
|
-
```
|
56
|
-
|
57
|
-
### Parameters
|
58
|
-
|
59
|
-
| Name | Type | Description | Notes |
|
60
|
-
| ---- | ---- | ----------- | ----- |
|
61
|
-
| **user_change_password** | [**UserChangePassword**](UserChangePassword.md) | | |
|
62
|
-
|
63
|
-
### Return type
|
64
|
-
|
65
|
-
[**UserChangePassword**](UserChangePassword.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,83 +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 AutosdeOpenapiClient
|
16
|
-
class UserChangePasswordApi
|
17
|
-
attr_accessor :api_client
|
18
|
-
|
19
|
-
def initialize(api_client = ApiClient.default)
|
20
|
-
@api_client = api_client
|
21
|
-
end
|
22
|
-
# @param user_change_password [UserChangePassword]
|
23
|
-
# @param [Hash] opts the optional parameters
|
24
|
-
# @return [UserChangePassword]
|
25
|
-
def change_user_password_post(user_change_password, opts = {})
|
26
|
-
data, _status_code, _headers = change_user_password_post_with_http_info(user_change_password, opts)
|
27
|
-
data
|
28
|
-
end
|
29
|
-
|
30
|
-
# @param user_change_password [UserChangePassword]
|
31
|
-
# @param [Hash] opts the optional parameters
|
32
|
-
# @return [Array<(UserChangePassword, Integer, Hash)>] UserChangePassword data, response status code and response headers
|
33
|
-
def change_user_password_post_with_http_info(user_change_password, opts = {})
|
34
|
-
if @api_client.config.debugging
|
35
|
-
@api_client.config.logger.debug 'Calling API: UserChangePasswordApi.change_user_password_post ...'
|
36
|
-
end
|
37
|
-
# verify the required parameter 'user_change_password' is set
|
38
|
-
if @api_client.config.client_side_validation && user_change_password.nil?
|
39
|
-
fail ArgumentError, "Missing the required parameter 'user_change_password' when calling UserChangePasswordApi.change_user_password_post"
|
40
|
-
end
|
41
|
-
# resource path
|
42
|
-
local_var_path = '/change-user-password'
|
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(user_change_password)
|
59
|
-
|
60
|
-
# return_type
|
61
|
-
return_type = opts[:debug_return_type] || 'UserChangePassword'
|
62
|
-
|
63
|
-
# auth_names
|
64
|
-
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
65
|
-
|
66
|
-
new_options = opts.merge(
|
67
|
-
:operation => :"UserChangePasswordApi.change_user_password_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: UserChangePasswordApi#change_user_password_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
79
|
-
end
|
80
|
-
return data, status_code, headers
|
81
|
-
end
|
82
|
-
end
|
83
|
-
end
|
@@ -1,45 +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 'spec_helper'
|
14
|
-
require 'json'
|
15
|
-
|
16
|
-
# Unit tests for AutosdeOpenapiClient::UserChangePasswordApi
|
17
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
-
# Please update as you see appropriate
|
19
|
-
describe 'UserChangePasswordApi' do
|
20
|
-
before do
|
21
|
-
# run before each test
|
22
|
-
@api_instance = AutosdeOpenapiClient::UserChangePasswordApi.new
|
23
|
-
end
|
24
|
-
|
25
|
-
after do
|
26
|
-
# run after each test
|
27
|
-
end
|
28
|
-
|
29
|
-
describe 'test an instance of UserChangePasswordApi' do
|
30
|
-
it 'should create an instance of UserChangePasswordApi' do
|
31
|
-
expect(@api_instance).to be_instance_of(AutosdeOpenapiClient::UserChangePasswordApi)
|
32
|
-
end
|
33
|
-
end
|
34
|
-
|
35
|
-
# unit tests for change_user_password_post
|
36
|
-
# @param user_change_password
|
37
|
-
# @param [Hash] opts the optional parameters
|
38
|
-
# @return [UserChangePassword]
|
39
|
-
describe 'change_user_password_post test' do
|
40
|
-
it 'should work' do
|
41
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
42
|
-
end
|
43
|
-
end
|
44
|
-
|
45
|
-
end
|
@@ -1,34 +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 'spec_helper'
|
14
|
-
require 'json'
|
15
|
-
require 'date'
|
16
|
-
|
17
|
-
# Unit tests for AutosdeOpenapiClient::UserChangePassword
|
18
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
-
# Please update as you see appropriate
|
20
|
-
describe AutosdeOpenapiClient::UserChangePassword do
|
21
|
-
let(:instance) { AutosdeOpenapiClient::UserChangePassword.new }
|
22
|
-
|
23
|
-
describe 'test an instance of UserChangePassword' do
|
24
|
-
it 'should create an instance of UserChangePassword' do
|
25
|
-
expect(instance).to be_instance_of(AutosdeOpenapiClient::UserChangePassword)
|
26
|
-
end
|
27
|
-
end
|
28
|
-
describe 'test attribute "new_password"' do
|
29
|
-
it 'should work' do
|
30
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
31
|
-
end
|
32
|
-
end
|
33
|
-
|
34
|
-
end
|