eilam_test 1.1.12 → 1.1.13
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 +4 -4
- data/README.md +15 -0
- data/docs/Event.md +32 -0
- data/docs/EventApi.md +276 -0
- data/docs/SystemType.md +1 -1
- data/docs/SystemTypeCreate.md +1 -1
- 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/docs/ValidateSystem.md +26 -0
- data/docs/ValidateSystemApi.md +75 -0
- data/lib/eilam_test/api/event_api.rb +254 -0
- data/lib/eilam_test/api/user_api.rb +321 -0
- data/lib/eilam_test/api/validate_system_api.rb +83 -0
- data/lib/eilam_test/models/event.rb +289 -0
- 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/models/user.rb +395 -0
- data/lib/eilam_test/models/user_create.rb +395 -0
- data/lib/eilam_test/models/user_update.rb +280 -0
- data/lib/eilam_test/models/validate_system.rb +260 -0
- data/lib/eilam_test/version.rb +2 -2
- data/lib/eilam_test.rb +8 -0
- data/spec/api/event_api_spec.rb +74 -0
- data/spec/api/user_api_spec.rb +85 -0
- data/spec/api/validate_system_api_spec.rb +45 -0
- data/spec/models/event_spec.rb +76 -0
- data/spec/models/system_type_create_spec.rb +1 -1
- data/spec/models/system_type_spec.rb +1 -1
- 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
- data/spec/models/validate_system_spec.rb +58 -0
- metadata +98 -66
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: af670247d021e318dedb5510026e2bec6fb14b78bdb32119f1cf7c79d6224f63
|
4
|
+
data.tar.gz: 4126b1589a16f778ff245ea4b4d53cc869647b9c9f082c3ec71a29a01cb93c7e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e6cddcf3022bcaceef4236dd3e6e91b14336467b475e521fb6494f479d03d5fb88b91b97ae243f35bf4cc4bd62ab333f19219d03ddbf11287805e3006f4e942e
|
7
|
+
data.tar.gz: f43f4f63f1f4d92bd13e1c0f25920624564308326d8946ea5eeab1b3ec4a9cb9e56b21375ea5135fa760fa8ad651ea2310117fad9152c58da5283cca69e7aa12
|
data/README.md
CHANGED
@@ -105,6 +105,10 @@ Class | Method | HTTP request | Description
|
|
105
105
|
*EilamTest::CapabilityTranslationApi* | [**capability_translations_pk_delete**](docs/CapabilityTranslationApi.md#capability_translations_pk_delete) | **DELETE** /capability-translations/{pk} |
|
106
106
|
*EilamTest::CapabilityTranslationApi* | [**capability_translations_pk_get**](docs/CapabilityTranslationApi.md#capability_translations_pk_get) | **GET** /capability-translations/{pk} |
|
107
107
|
*EilamTest::CapabilityTranslationApi* | [**capability_translations_post**](docs/CapabilityTranslationApi.md#capability_translations_post) | **POST** /capability-translations |
|
108
|
+
*EilamTest::EventApi* | [**events_get**](docs/EventApi.md#events_get) | **GET** /events |
|
109
|
+
*EilamTest::EventApi* | [**events_pk_delete**](docs/EventApi.md#events_pk_delete) | **DELETE** /events/{pk} |
|
110
|
+
*EilamTest::EventApi* | [**events_pk_get**](docs/EventApi.md#events_pk_get) | **GET** /events/{pk} |
|
111
|
+
*EilamTest::EventApi* | [**events_post**](docs/EventApi.md#events_post) | **POST** /events |
|
108
112
|
*EilamTest::HostApi* | [**hosts_get**](docs/HostApi.md#hosts_get) | **GET** /hosts |
|
109
113
|
*EilamTest::HostApi* | [**hosts_pk_delete**](docs/HostApi.md#hosts_pk_delete) | **DELETE** /hosts/{pk} |
|
110
114
|
*EilamTest::HostApi* | [**hosts_pk_get**](docs/HostApi.md#hosts_pk_get) | **GET** /hosts/{pk} |
|
@@ -176,6 +180,12 @@ Class | Method | HTTP request | Description
|
|
176
180
|
*EilamTest::SystemTypeApi* | [**system_types_pk_delete**](docs/SystemTypeApi.md#system_types_pk_delete) | **DELETE** /system-types/{pk} |
|
177
181
|
*EilamTest::SystemTypeApi* | [**system_types_pk_get**](docs/SystemTypeApi.md#system_types_pk_get) | **GET** /system-types/{pk} |
|
178
182
|
*EilamTest::SystemTypeApi* | [**system_types_post**](docs/SystemTypeApi.md#system_types_post) | **POST** /system-types |
|
183
|
+
*EilamTest::UserApi* | [**autosde_users_get**](docs/UserApi.md#autosde_users_get) | **GET** /autosde-users |
|
184
|
+
*EilamTest::UserApi* | [**autosde_users_pk_delete**](docs/UserApi.md#autosde_users_pk_delete) | **DELETE** /autosde-users/{pk} |
|
185
|
+
*EilamTest::UserApi* | [**autosde_users_pk_get**](docs/UserApi.md#autosde_users_pk_get) | **GET** /autosde-users/{pk} |
|
186
|
+
*EilamTest::UserApi* | [**autosde_users_pk_put**](docs/UserApi.md#autosde_users_pk_put) | **PUT** /autosde-users/{pk} |
|
187
|
+
*EilamTest::UserApi* | [**autosde_users_post**](docs/UserApi.md#autosde_users_post) | **POST** /autosde-users |
|
188
|
+
*EilamTest::ValidateSystemApi* | [**validate_system_post**](docs/ValidateSystemApi.md#validate_system_post) | **POST** /validate-system |
|
179
189
|
*EilamTest::VolumeApi* | [**volumes_get**](docs/VolumeApi.md#volumes_get) | **GET** /volumes |
|
180
190
|
*EilamTest::VolumeApi* | [**volumes_pk_delete**](docs/VolumeApi.md#volumes_pk_delete) | **DELETE** /volumes/{pk} |
|
181
191
|
*EilamTest::VolumeApi* | [**volumes_pk_get**](docs/VolumeApi.md#volumes_pk_get) | **GET** /volumes/{pk} |
|
@@ -201,6 +211,7 @@ Class | Method | HTTP request | Description
|
|
201
211
|
- [EilamTest::AutoSDERole](docs/AutoSDERole.md)
|
202
212
|
- [EilamTest::CapabilityTranslation](docs/CapabilityTranslation.md)
|
203
213
|
- [EilamTest::CapabilityTranslationCreate](docs/CapabilityTranslationCreate.md)
|
214
|
+
- [EilamTest::Event](docs/Event.md)
|
204
215
|
- [EilamTest::Host](docs/Host.md)
|
205
216
|
- [EilamTest::HostCluster](docs/HostCluster.md)
|
206
217
|
- [EilamTest::HostClusterCreate](docs/HostClusterCreate.md)
|
@@ -239,6 +250,10 @@ Class | Method | HTTP request | Description
|
|
239
250
|
- [EilamTest::StorageSystemUpdate](docs/StorageSystemUpdate.md)
|
240
251
|
- [EilamTest::SystemType](docs/SystemType.md)
|
241
252
|
- [EilamTest::SystemTypeCreate](docs/SystemTypeCreate.md)
|
253
|
+
- [EilamTest::User](docs/User.md)
|
254
|
+
- [EilamTest::UserCreate](docs/UserCreate.md)
|
255
|
+
- [EilamTest::UserUpdate](docs/UserUpdate.md)
|
256
|
+
- [EilamTest::ValidateSystem](docs/ValidateSystem.md)
|
242
257
|
- [EilamTest::Volume](docs/Volume.md)
|
243
258
|
- [EilamTest::VolumeCreate](docs/VolumeCreate.md)
|
244
259
|
- [EilamTest::VolumeResponse](docs/VolumeResponse.md)
|
data/docs/Event.md
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
# EilamTest::Event
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **description** | **String** | description | [optional] |
|
8
|
+
| **error_code** | **String** | error_code | [optional] |
|
9
|
+
| **event_id** | **Integer** | event_id | [optional] |
|
10
|
+
| **event_type** | **String** | event_type | [optional] |
|
11
|
+
| **fixed** | **String** | fixed | [optional] |
|
12
|
+
| **last_timestamp** | **Time** | last_timestamp | [optional] |
|
13
|
+
| **storage_system** | [**StorageSystem**](StorageSystem.md) | | [optional] |
|
14
|
+
| **uuid** | **String** | uuid | [optional] |
|
15
|
+
|
16
|
+
## Example
|
17
|
+
|
18
|
+
```ruby
|
19
|
+
require 'eilam_test'
|
20
|
+
|
21
|
+
instance = EilamTest::Event.new(
|
22
|
+
description: null,
|
23
|
+
error_code: null,
|
24
|
+
event_id: null,
|
25
|
+
event_type: null,
|
26
|
+
fixed: null,
|
27
|
+
last_timestamp: null,
|
28
|
+
storage_system: null,
|
29
|
+
uuid: null
|
30
|
+
)
|
31
|
+
```
|
32
|
+
|
data/docs/EventApi.md
ADDED
@@ -0,0 +1,276 @@
|
|
1
|
+
# EilamTest::EventApi
|
2
|
+
|
3
|
+
All URIs are relative to *http://localhost:9000/site-manager/api/v1/engine*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**events_get**](EventApi.md#events_get) | **GET** /events | |
|
8
|
+
| [**events_pk_delete**](EventApi.md#events_pk_delete) | **DELETE** /events/{pk} | |
|
9
|
+
| [**events_pk_get**](EventApi.md#events_pk_get) | **GET** /events/{pk} | |
|
10
|
+
| [**events_post**](EventApi.md#events_post) | **POST** /events | |
|
11
|
+
|
12
|
+
|
13
|
+
## events_get
|
14
|
+
|
15
|
+
> <Array<Event>> events_get
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
### Examples
|
20
|
+
|
21
|
+
```ruby
|
22
|
+
require 'time'
|
23
|
+
require 'eilam_test'
|
24
|
+
# setup authorization
|
25
|
+
EilamTest.configure do |config|
|
26
|
+
# Configure Bearer authorization: bearerAuth
|
27
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
28
|
+
end
|
29
|
+
|
30
|
+
api_instance = EilamTest::EventApi.new
|
31
|
+
|
32
|
+
begin
|
33
|
+
|
34
|
+
result = api_instance.events_get
|
35
|
+
p result
|
36
|
+
rescue EilamTest::ApiError => e
|
37
|
+
puts "Error when calling EventApi->events_get: #{e}"
|
38
|
+
end
|
39
|
+
```
|
40
|
+
|
41
|
+
#### Using the events_get_with_http_info variant
|
42
|
+
|
43
|
+
This returns an Array which contains the response data, status code and headers.
|
44
|
+
|
45
|
+
> <Array(<Array<Event>>, Integer, Hash)> events_get_with_http_info
|
46
|
+
|
47
|
+
```ruby
|
48
|
+
begin
|
49
|
+
|
50
|
+
data, status_code, headers = api_instance.events_get_with_http_info
|
51
|
+
p status_code # => 2xx
|
52
|
+
p headers # => { ... }
|
53
|
+
p data # => <Array<Event>>
|
54
|
+
rescue EilamTest::ApiError => e
|
55
|
+
puts "Error when calling EventApi->events_get_with_http_info: #{e}"
|
56
|
+
end
|
57
|
+
```
|
58
|
+
|
59
|
+
### Parameters
|
60
|
+
|
61
|
+
This endpoint does not need any parameter.
|
62
|
+
|
63
|
+
### Return type
|
64
|
+
|
65
|
+
[**Array<Event>**](Event.md)
|
66
|
+
|
67
|
+
### Authorization
|
68
|
+
|
69
|
+
[bearerAuth](../README.md#bearerAuth)
|
70
|
+
|
71
|
+
### HTTP request headers
|
72
|
+
|
73
|
+
- **Content-Type**: Not defined
|
74
|
+
- **Accept**: */*
|
75
|
+
|
76
|
+
|
77
|
+
## events_pk_delete
|
78
|
+
|
79
|
+
> <Array<Event>> events_pk_delete(pk)
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
### Examples
|
84
|
+
|
85
|
+
```ruby
|
86
|
+
require 'time'
|
87
|
+
require 'eilam_test'
|
88
|
+
# setup authorization
|
89
|
+
EilamTest.configure do |config|
|
90
|
+
# Configure Bearer authorization: bearerAuth
|
91
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
92
|
+
end
|
93
|
+
|
94
|
+
api_instance = EilamTest::EventApi.new
|
95
|
+
pk = 56 # Integer |
|
96
|
+
|
97
|
+
begin
|
98
|
+
|
99
|
+
result = api_instance.events_pk_delete(pk)
|
100
|
+
p result
|
101
|
+
rescue EilamTest::ApiError => e
|
102
|
+
puts "Error when calling EventApi->events_pk_delete: #{e}"
|
103
|
+
end
|
104
|
+
```
|
105
|
+
|
106
|
+
#### Using the events_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<Event>>, Integer, Hash)> events_pk_delete_with_http_info(pk)
|
111
|
+
|
112
|
+
```ruby
|
113
|
+
begin
|
114
|
+
|
115
|
+
data, status_code, headers = api_instance.events_pk_delete_with_http_info(pk)
|
116
|
+
p status_code # => 2xx
|
117
|
+
p headers # => { ... }
|
118
|
+
p data # => <Array<Event>>
|
119
|
+
rescue EilamTest::ApiError => e
|
120
|
+
puts "Error when calling EventApi->events_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<Event>**](Event.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
|
+
## events_pk_get
|
145
|
+
|
146
|
+
> <Array<Event>> events_pk_get(pk)
|
147
|
+
|
148
|
+
|
149
|
+
|
150
|
+
### Examples
|
151
|
+
|
152
|
+
```ruby
|
153
|
+
require 'time'
|
154
|
+
require 'eilam_test'
|
155
|
+
# setup authorization
|
156
|
+
EilamTest.configure do |config|
|
157
|
+
# Configure Bearer authorization: bearerAuth
|
158
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
159
|
+
end
|
160
|
+
|
161
|
+
api_instance = EilamTest::EventApi.new
|
162
|
+
pk = 56 # Integer |
|
163
|
+
|
164
|
+
begin
|
165
|
+
|
166
|
+
result = api_instance.events_pk_get(pk)
|
167
|
+
p result
|
168
|
+
rescue EilamTest::ApiError => e
|
169
|
+
puts "Error when calling EventApi->events_pk_get: #{e}"
|
170
|
+
end
|
171
|
+
```
|
172
|
+
|
173
|
+
#### Using the events_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<Event>>, Integer, Hash)> events_pk_get_with_http_info(pk)
|
178
|
+
|
179
|
+
```ruby
|
180
|
+
begin
|
181
|
+
|
182
|
+
data, status_code, headers = api_instance.events_pk_get_with_http_info(pk)
|
183
|
+
p status_code # => 2xx
|
184
|
+
p headers # => { ... }
|
185
|
+
p data # => <Array<Event>>
|
186
|
+
rescue EilamTest::ApiError => e
|
187
|
+
puts "Error when calling EventApi->events_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<Event>**](Event.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
|
+
|
211
|
+
## events_post
|
212
|
+
|
213
|
+
> <Event> events_post(event)
|
214
|
+
|
215
|
+
|
216
|
+
|
217
|
+
### Examples
|
218
|
+
|
219
|
+
```ruby
|
220
|
+
require 'time'
|
221
|
+
require 'eilam_test'
|
222
|
+
# setup authorization
|
223
|
+
EilamTest.configure do |config|
|
224
|
+
# Configure Bearer authorization: bearerAuth
|
225
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
226
|
+
end
|
227
|
+
|
228
|
+
api_instance = EilamTest::EventApi.new
|
229
|
+
event = EilamTest::Event.new # Event |
|
230
|
+
|
231
|
+
begin
|
232
|
+
|
233
|
+
result = api_instance.events_post(event)
|
234
|
+
p result
|
235
|
+
rescue EilamTest::ApiError => e
|
236
|
+
puts "Error when calling EventApi->events_post: #{e}"
|
237
|
+
end
|
238
|
+
```
|
239
|
+
|
240
|
+
#### Using the events_post_with_http_info variant
|
241
|
+
|
242
|
+
This returns an Array which contains the response data, status code and headers.
|
243
|
+
|
244
|
+
> <Array(<Event>, Integer, Hash)> events_post_with_http_info(event)
|
245
|
+
|
246
|
+
```ruby
|
247
|
+
begin
|
248
|
+
|
249
|
+
data, status_code, headers = api_instance.events_post_with_http_info(event)
|
250
|
+
p status_code # => 2xx
|
251
|
+
p headers # => { ... }
|
252
|
+
p data # => <Event>
|
253
|
+
rescue EilamTest::ApiError => e
|
254
|
+
puts "Error when calling EventApi->events_post_with_http_info: #{e}"
|
255
|
+
end
|
256
|
+
```
|
257
|
+
|
258
|
+
### Parameters
|
259
|
+
|
260
|
+
| Name | Type | Description | Notes |
|
261
|
+
| ---- | ---- | ----------- | ----- |
|
262
|
+
| **event** | [**Event**](Event.md) | | |
|
263
|
+
|
264
|
+
### Return type
|
265
|
+
|
266
|
+
[**Event**](Event.md)
|
267
|
+
|
268
|
+
### Authorization
|
269
|
+
|
270
|
+
[bearerAuth](../README.md#bearerAuth)
|
271
|
+
|
272
|
+
### HTTP request headers
|
273
|
+
|
274
|
+
- **Content-Type**: application/json
|
275
|
+
- **Accept**: */*
|
276
|
+
|
data/docs/SystemType.md
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **component_state** | **String** | component_state | [optional] |
|
8
|
-
| **name** | **String** | name | [optional][default to '
|
8
|
+
| **name** | **String** | name | [optional][default to 'IBM_FlashSystems'] |
|
9
9
|
| **short_version** | **String** | short_version | [optional] |
|
10
10
|
| **uuid** | **String** | uuid | [optional] |
|
11
11
|
| **version** | **String** | SystemType version | [optional] |
|
data/docs/SystemTypeCreate.md
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **component_state** | **String** | component_state | [optional] |
|
8
|
-
| **name** | **String** | name | [optional][default to '
|
8
|
+
| **name** | **String** | name | [optional][default to 'IBM_FlashSystems'] |
|
9
9
|
| **short_version** | **String** | short_version | [optional] |
|
10
10
|
| **super_type** | **String** | super_type | [optional][default to 'null'] |
|
11
11
|
| **uuid** | **String** | uuid | [optional] |
|
data/docs/User.md
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
# EilamTest::User
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **date_joined** | **Time** | date_joined | [optional] |
|
8
|
+
| **email** | **String** | email | [optional] |
|
9
|
+
| **first_name** | **String** | first_name | [optional] |
|
10
|
+
| **is_active** | **Boolean** | is_active | [optional] |
|
11
|
+
| **is_staff** | **Boolean** | is_staff | [optional] |
|
12
|
+
| **is_superuser** | **Boolean** | is_superuser | [optional] |
|
13
|
+
| **last_login** | **Time** | last_login | [optional] |
|
14
|
+
| **last_name** | **String** | last_name | [optional] |
|
15
|
+
| **password** | **String** | password | [optional] |
|
16
|
+
| **username** | **String** | username | [optional] |
|
17
|
+
| **uuid** | **String** | uuid | [optional] |
|
18
|
+
|
19
|
+
## Example
|
20
|
+
|
21
|
+
```ruby
|
22
|
+
require 'eilam_test'
|
23
|
+
|
24
|
+
instance = EilamTest::User.new(
|
25
|
+
date_joined: null,
|
26
|
+
email: null,
|
27
|
+
first_name: null,
|
28
|
+
is_active: null,
|
29
|
+
is_staff: null,
|
30
|
+
is_superuser: null,
|
31
|
+
last_login: null,
|
32
|
+
last_name: null,
|
33
|
+
password: null,
|
34
|
+
username: null,
|
35
|
+
uuid: null
|
36
|
+
)
|
37
|
+
```
|
38
|
+
|