autosde_openapi_client 1.1.14 → 1.1.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -0
- data/docs/Event.md +32 -0
- data/docs/EventApi.md +276 -0
- data/lib/autosde_openapi_client/api/event_api.rb +254 -0
- data/lib/autosde_openapi_client/models/event.rb +289 -0
- data/lib/autosde_openapi_client/version.rb +2 -2
- data/lib/autosde_openapi_client.rb +2 -0
- data/spec/api/event_api_spec.rb +74 -0
- data/spec/models/event_spec.rb +76 -0
- metadata +79 -71
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb93275d78c5c99e32d37ffe62ccd07c2b3234fbcfb996512d71b9e55a6a91c5
|
4
|
+
data.tar.gz: 0e7fa939184a24a3b6a119a6e9e90b4b0d0e9315b430882ee99f86294a9ac5dc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 142c7f10456d631caeac781ca378334cafa5b0ef8d1397d9acc37bd219b2e247b746238079e80d05c3cf4a559661f2e533d8d542424f95d7df0f101c5bbf36a1
|
7
|
+
data.tar.gz: 7aea7df25a1be99910ec9f02781985453cd03bbd9a2df4da0ee61a901bc27d59eb8cc5fbee704d8a6c042f84ded755be669df84f64f43d9bc642c27071786d0b
|
data/README.md
CHANGED
@@ -105,6 +105,10 @@ Class | Method | HTTP request | Description
|
|
105
105
|
*AutosdeOpenapiClient::CapabilityTranslationApi* | [**capability_translations_pk_delete**](docs/CapabilityTranslationApi.md#capability_translations_pk_delete) | **DELETE** /capability-translations/{pk} |
|
106
106
|
*AutosdeOpenapiClient::CapabilityTranslationApi* | [**capability_translations_pk_get**](docs/CapabilityTranslationApi.md#capability_translations_pk_get) | **GET** /capability-translations/{pk} |
|
107
107
|
*AutosdeOpenapiClient::CapabilityTranslationApi* | [**capability_translations_post**](docs/CapabilityTranslationApi.md#capability_translations_post) | **POST** /capability-translations |
|
108
|
+
*AutosdeOpenapiClient::EventApi* | [**events_get**](docs/EventApi.md#events_get) | **GET** /events |
|
109
|
+
*AutosdeOpenapiClient::EventApi* | [**events_pk_delete**](docs/EventApi.md#events_pk_delete) | **DELETE** /events/{pk} |
|
110
|
+
*AutosdeOpenapiClient::EventApi* | [**events_pk_get**](docs/EventApi.md#events_pk_get) | **GET** /events/{pk} |
|
111
|
+
*AutosdeOpenapiClient::EventApi* | [**events_post**](docs/EventApi.md#events_post) | **POST** /events |
|
108
112
|
*AutosdeOpenapiClient::HostApi* | [**hosts_get**](docs/HostApi.md#hosts_get) | **GET** /hosts |
|
109
113
|
*AutosdeOpenapiClient::HostApi* | [**hosts_pk_delete**](docs/HostApi.md#hosts_pk_delete) | **DELETE** /hosts/{pk} |
|
110
114
|
*AutosdeOpenapiClient::HostApi* | [**hosts_pk_get**](docs/HostApi.md#hosts_pk_get) | **GET** /hosts/{pk} |
|
@@ -207,6 +211,7 @@ Class | Method | HTTP request | Description
|
|
207
211
|
- [AutosdeOpenapiClient::AutoSDERole](docs/AutoSDERole.md)
|
208
212
|
- [AutosdeOpenapiClient::CapabilityTranslation](docs/CapabilityTranslation.md)
|
209
213
|
- [AutosdeOpenapiClient::CapabilityTranslationCreate](docs/CapabilityTranslationCreate.md)
|
214
|
+
- [AutosdeOpenapiClient::Event](docs/Event.md)
|
210
215
|
- [AutosdeOpenapiClient::Host](docs/Host.md)
|
211
216
|
- [AutosdeOpenapiClient::HostCluster](docs/HostCluster.md)
|
212
217
|
- [AutosdeOpenapiClient::HostClusterCreate](docs/HostClusterCreate.md)
|
data/docs/Event.md
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
# AutosdeOpenapiClient::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 'autosde_openapi_client'
|
20
|
+
|
21
|
+
instance = AutosdeOpenapiClient::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
|
+
# AutosdeOpenapiClient::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 'autosde_openapi_client'
|
24
|
+
# setup authorization
|
25
|
+
AutosdeOpenapiClient.configure do |config|
|
26
|
+
# Configure Bearer authorization: bearerAuth
|
27
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
28
|
+
end
|
29
|
+
|
30
|
+
api_instance = AutosdeOpenapiClient::EventApi.new
|
31
|
+
|
32
|
+
begin
|
33
|
+
|
34
|
+
result = api_instance.events_get
|
35
|
+
p result
|
36
|
+
rescue AutosdeOpenapiClient::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 AutosdeOpenapiClient::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 'autosde_openapi_client'
|
88
|
+
# setup authorization
|
89
|
+
AutosdeOpenapiClient.configure do |config|
|
90
|
+
# Configure Bearer authorization: bearerAuth
|
91
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
92
|
+
end
|
93
|
+
|
94
|
+
api_instance = AutosdeOpenapiClient::EventApi.new
|
95
|
+
pk = 56 # Integer |
|
96
|
+
|
97
|
+
begin
|
98
|
+
|
99
|
+
result = api_instance.events_pk_delete(pk)
|
100
|
+
p result
|
101
|
+
rescue AutosdeOpenapiClient::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 AutosdeOpenapiClient::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 'autosde_openapi_client'
|
155
|
+
# setup authorization
|
156
|
+
AutosdeOpenapiClient.configure do |config|
|
157
|
+
# Configure Bearer authorization: bearerAuth
|
158
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
159
|
+
end
|
160
|
+
|
161
|
+
api_instance = AutosdeOpenapiClient::EventApi.new
|
162
|
+
pk = 56 # Integer |
|
163
|
+
|
164
|
+
begin
|
165
|
+
|
166
|
+
result = api_instance.events_pk_get(pk)
|
167
|
+
p result
|
168
|
+
rescue AutosdeOpenapiClient::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 AutosdeOpenapiClient::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 'autosde_openapi_client'
|
222
|
+
# setup authorization
|
223
|
+
AutosdeOpenapiClient.configure do |config|
|
224
|
+
# Configure Bearer authorization: bearerAuth
|
225
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
226
|
+
end
|
227
|
+
|
228
|
+
api_instance = AutosdeOpenapiClient::EventApi.new
|
229
|
+
event = AutosdeOpenapiClient::Event.new # Event |
|
230
|
+
|
231
|
+
begin
|
232
|
+
|
233
|
+
result = api_instance.events_post(event)
|
234
|
+
p result
|
235
|
+
rescue AutosdeOpenapiClient::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 AutosdeOpenapiClient::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
|
+
|
@@ -0,0 +1,254 @@
|
|
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 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
|
@@ -0,0 +1,289 @@
|
|
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 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module AutosdeOpenapiClient
|
17
|
+
# Event object represents storage system alerts and messages.
|
18
|
+
class Event
|
19
|
+
# description
|
20
|
+
attr_accessor :description
|
21
|
+
|
22
|
+
# error_code
|
23
|
+
attr_accessor :error_code
|
24
|
+
|
25
|
+
# event_id
|
26
|
+
attr_accessor :event_id
|
27
|
+
|
28
|
+
# event_type
|
29
|
+
attr_accessor :event_type
|
30
|
+
|
31
|
+
# fixed
|
32
|
+
attr_accessor :fixed
|
33
|
+
|
34
|
+
# last_timestamp
|
35
|
+
attr_accessor :last_timestamp
|
36
|
+
|
37
|
+
attr_accessor :storage_system
|
38
|
+
|
39
|
+
# uuid
|
40
|
+
attr_accessor :uuid
|
41
|
+
|
42
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
43
|
+
def self.attribute_map
|
44
|
+
{
|
45
|
+
:'description' => :'description',
|
46
|
+
:'error_code' => :'error_code',
|
47
|
+
:'event_id' => :'event_id',
|
48
|
+
:'event_type' => :'event_type',
|
49
|
+
:'fixed' => :'fixed',
|
50
|
+
:'last_timestamp' => :'last_timestamp',
|
51
|
+
:'storage_system' => :'storage_system',
|
52
|
+
:'uuid' => :'uuid'
|
53
|
+
}
|
54
|
+
end
|
55
|
+
|
56
|
+
# Returns all the JSON keys this model knows about
|
57
|
+
def self.acceptable_attributes
|
58
|
+
attribute_map.values
|
59
|
+
end
|
60
|
+
|
61
|
+
# Attribute type mapping.
|
62
|
+
def self.openapi_types
|
63
|
+
{
|
64
|
+
:'description' => :'String',
|
65
|
+
:'error_code' => :'String',
|
66
|
+
:'event_id' => :'Integer',
|
67
|
+
:'event_type' => :'String',
|
68
|
+
:'fixed' => :'String',
|
69
|
+
:'last_timestamp' => :'Time',
|
70
|
+
:'storage_system' => :'StorageSystem',
|
71
|
+
:'uuid' => :'String'
|
72
|
+
}
|
73
|
+
end
|
74
|
+
|
75
|
+
# List of attributes with nullable: true
|
76
|
+
def self.openapi_nullable
|
77
|
+
Set.new([
|
78
|
+
])
|
79
|
+
end
|
80
|
+
|
81
|
+
# Initializes the object
|
82
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
83
|
+
def initialize(attributes = {})
|
84
|
+
if (!attributes.is_a?(Hash))
|
85
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `AutosdeOpenapiClient::Event` initialize method"
|
86
|
+
end
|
87
|
+
|
88
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
89
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
90
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
91
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `AutosdeOpenapiClient::Event`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
92
|
+
end
|
93
|
+
h[k.to_sym] = v
|
94
|
+
}
|
95
|
+
|
96
|
+
if attributes.key?(:'description')
|
97
|
+
self.description = attributes[:'description']
|
98
|
+
end
|
99
|
+
|
100
|
+
if attributes.key?(:'error_code')
|
101
|
+
self.error_code = attributes[:'error_code']
|
102
|
+
end
|
103
|
+
|
104
|
+
if attributes.key?(:'event_id')
|
105
|
+
self.event_id = attributes[:'event_id']
|
106
|
+
end
|
107
|
+
|
108
|
+
if attributes.key?(:'event_type')
|
109
|
+
self.event_type = attributes[:'event_type']
|
110
|
+
end
|
111
|
+
|
112
|
+
if attributes.key?(:'fixed')
|
113
|
+
self.fixed = attributes[:'fixed']
|
114
|
+
end
|
115
|
+
|
116
|
+
if attributes.key?(:'last_timestamp')
|
117
|
+
self.last_timestamp = attributes[:'last_timestamp']
|
118
|
+
end
|
119
|
+
|
120
|
+
if attributes.key?(:'storage_system')
|
121
|
+
self.storage_system = attributes[:'storage_system']
|
122
|
+
end
|
123
|
+
|
124
|
+
if attributes.key?(:'uuid')
|
125
|
+
self.uuid = attributes[:'uuid']
|
126
|
+
end
|
127
|
+
end
|
128
|
+
|
129
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
130
|
+
# @return Array for valid properties with the reasons
|
131
|
+
def list_invalid_properties
|
132
|
+
invalid_properties = Array.new
|
133
|
+
invalid_properties
|
134
|
+
end
|
135
|
+
|
136
|
+
# Check to see if the all the properties in the model are valid
|
137
|
+
# @return true if the model is valid
|
138
|
+
def valid?
|
139
|
+
true
|
140
|
+
end
|
141
|
+
|
142
|
+
# Checks equality by comparing each attribute.
|
143
|
+
# @param [Object] Object to be compared
|
144
|
+
def ==(o)
|
145
|
+
return true if self.equal?(o)
|
146
|
+
self.class == o.class &&
|
147
|
+
description == o.description &&
|
148
|
+
error_code == o.error_code &&
|
149
|
+
event_id == o.event_id &&
|
150
|
+
event_type == o.event_type &&
|
151
|
+
fixed == o.fixed &&
|
152
|
+
last_timestamp == o.last_timestamp &&
|
153
|
+
storage_system == o.storage_system &&
|
154
|
+
uuid == o.uuid
|
155
|
+
end
|
156
|
+
|
157
|
+
# @see the `==` method
|
158
|
+
# @param [Object] Object to be compared
|
159
|
+
def eql?(o)
|
160
|
+
self == o
|
161
|
+
end
|
162
|
+
|
163
|
+
# Calculates hash code according to all attributes.
|
164
|
+
# @return [Integer] Hash code
|
165
|
+
def hash
|
166
|
+
[description, error_code, event_id, event_type, fixed, last_timestamp, storage_system, uuid].hash
|
167
|
+
end
|
168
|
+
|
169
|
+
# Builds the object from hash
|
170
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
171
|
+
# @return [Object] Returns the model itself
|
172
|
+
def self.build_from_hash(attributes)
|
173
|
+
new.build_from_hash(attributes)
|
174
|
+
end
|
175
|
+
|
176
|
+
# Builds the object from hash
|
177
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
178
|
+
# @return [Object] Returns the model itself
|
179
|
+
def build_from_hash(attributes)
|
180
|
+
return nil unless attributes.is_a?(Hash)
|
181
|
+
self.class.openapi_types.each_pair do |key, type|
|
182
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
183
|
+
self.send("#{key}=", nil)
|
184
|
+
elsif type =~ /\AArray<(.*)>/i
|
185
|
+
# check to ensure the input is an array given that the attribute
|
186
|
+
# is documented as an array but the input is not
|
187
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
188
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
189
|
+
end
|
190
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
191
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
192
|
+
end
|
193
|
+
end
|
194
|
+
|
195
|
+
self
|
196
|
+
end
|
197
|
+
|
198
|
+
# Deserializes the data based on type
|
199
|
+
# @param string type Data type
|
200
|
+
# @param string value Value to be deserialized
|
201
|
+
# @return [Object] Deserialized data
|
202
|
+
def _deserialize(type, value)
|
203
|
+
case type.to_sym
|
204
|
+
when :Time
|
205
|
+
Time.parse(value)
|
206
|
+
when :Date
|
207
|
+
Date.parse(value)
|
208
|
+
when :String
|
209
|
+
value.to_s
|
210
|
+
when :Integer
|
211
|
+
value.to_i
|
212
|
+
when :Float
|
213
|
+
value.to_f
|
214
|
+
when :Boolean
|
215
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
216
|
+
true
|
217
|
+
else
|
218
|
+
false
|
219
|
+
end
|
220
|
+
when :Object
|
221
|
+
# generic object (usually a Hash), return directly
|
222
|
+
value
|
223
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
224
|
+
inner_type = Regexp.last_match[:inner_type]
|
225
|
+
value.map { |v| _deserialize(inner_type, v) }
|
226
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
227
|
+
k_type = Regexp.last_match[:k_type]
|
228
|
+
v_type = Regexp.last_match[:v_type]
|
229
|
+
{}.tap do |hash|
|
230
|
+
value.each do |k, v|
|
231
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
232
|
+
end
|
233
|
+
end
|
234
|
+
else # model
|
235
|
+
# models (e.g. Pet) or oneOf
|
236
|
+
klass = AutosdeOpenapiClient.const_get(type)
|
237
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
238
|
+
end
|
239
|
+
end
|
240
|
+
|
241
|
+
# Returns the string representation of the object
|
242
|
+
# @return [String] String presentation of the object
|
243
|
+
def to_s
|
244
|
+
to_hash.to_s
|
245
|
+
end
|
246
|
+
|
247
|
+
# to_body is an alias to to_hash (backward compatibility)
|
248
|
+
# @return [Hash] Returns the object in the form of hash
|
249
|
+
def to_body
|
250
|
+
to_hash
|
251
|
+
end
|
252
|
+
|
253
|
+
# Returns the object in the form of hash
|
254
|
+
# @return [Hash] Returns the object in the form of hash
|
255
|
+
def to_hash
|
256
|
+
hash = {}
|
257
|
+
self.class.attribute_map.each_pair do |attr, param|
|
258
|
+
value = self.send(attr)
|
259
|
+
if value.nil?
|
260
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
261
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
262
|
+
end
|
263
|
+
|
264
|
+
hash[param] = _to_hash(value)
|
265
|
+
end
|
266
|
+
hash
|
267
|
+
end
|
268
|
+
|
269
|
+
# Outputs non-array value in the form of hash
|
270
|
+
# For object, use to_hash. Otherwise, just return the value
|
271
|
+
# @param [Object] value Any valid value
|
272
|
+
# @return [Hash] Returns the value in the form of hash
|
273
|
+
def _to_hash(value)
|
274
|
+
if value.is_a?(Array)
|
275
|
+
value.compact.map { |v| _to_hash(v) }
|
276
|
+
elsif value.is_a?(Hash)
|
277
|
+
{}.tap do |hash|
|
278
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
279
|
+
end
|
280
|
+
elsif value.respond_to? :to_hash
|
281
|
+
value.to_hash
|
282
|
+
else
|
283
|
+
value
|
284
|
+
end
|
285
|
+
end
|
286
|
+
|
287
|
+
end
|
288
|
+
|
289
|
+
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Site Manager API
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 1.1.
|
6
|
+
The version of the OpenAPI document: 1.1.17
|
7
7
|
Contact: autosde@il.ibm.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.0.0
|
@@ -11,5 +11,5 @@ OpenAPI Generator version: 5.0.0
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
module AutosdeOpenapiClient
|
14
|
-
VERSION = '1.1.
|
14
|
+
VERSION = '1.1.17'
|
15
15
|
end
|
@@ -29,6 +29,7 @@ require 'autosde_openapi_client/models/auto_sde_project'
|
|
29
29
|
require 'autosde_openapi_client/models/auto_sde_role'
|
30
30
|
require 'autosde_openapi_client/models/capability_translation'
|
31
31
|
require 'autosde_openapi_client/models/capability_translation_create'
|
32
|
+
require 'autosde_openapi_client/models/event'
|
32
33
|
require 'autosde_openapi_client/models/host'
|
33
34
|
require 'autosde_openapi_client/models/host_cluster'
|
34
35
|
require 'autosde_openapi_client/models/host_cluster_create'
|
@@ -86,6 +87,7 @@ require 'autosde_openapi_client/api/authentication_api'
|
|
86
87
|
require 'autosde_openapi_client/api/auto_sde_project_api'
|
87
88
|
require 'autosde_openapi_client/api/auto_sde_role_api'
|
88
89
|
require 'autosde_openapi_client/api/capability_translation_api'
|
90
|
+
require 'autosde_openapi_client/api/event_api'
|
89
91
|
require 'autosde_openapi_client/api/host_api'
|
90
92
|
require 'autosde_openapi_client/api/host_cluster_api'
|
91
93
|
require 'autosde_openapi_client/api/host_cluster_membership_api'
|
@@ -0,0 +1,74 @@
|
|
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::EventApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'EventApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = AutosdeOpenapiClient::EventApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of EventApi' do
|
30
|
+
it 'should create an instance of EventApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(AutosdeOpenapiClient::EventApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for events_get
|
36
|
+
# @param [Hash] opts the optional parameters
|
37
|
+
# @return [Array<Event>]
|
38
|
+
describe 'events_get test' do
|
39
|
+
it 'should work' do
|
40
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
# unit tests for events_pk_delete
|
45
|
+
# @param pk
|
46
|
+
# @param [Hash] opts the optional parameters
|
47
|
+
# @return [Array<Event>]
|
48
|
+
describe 'events_pk_delete test' do
|
49
|
+
it 'should work' do
|
50
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
# unit tests for events_pk_get
|
55
|
+
# @param pk
|
56
|
+
# @param [Hash] opts the optional parameters
|
57
|
+
# @return [Array<Event>]
|
58
|
+
describe 'events_pk_get test' 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
|
+
# unit tests for events_post
|
65
|
+
# @param event
|
66
|
+
# @param [Hash] opts the optional parameters
|
67
|
+
# @return [Event]
|
68
|
+
describe 'events_post test' do
|
69
|
+
it 'should work' do
|
70
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
74
|
+
end
|
@@ -0,0 +1,76 @@
|
|
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::Event
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe AutosdeOpenapiClient::Event do
|
21
|
+
let(:instance) { AutosdeOpenapiClient::Event.new }
|
22
|
+
|
23
|
+
describe 'test an instance of Event' do
|
24
|
+
it 'should create an instance of Event' do
|
25
|
+
expect(instance).to be_instance_of(AutosdeOpenapiClient::Event)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "description"' 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 "error_code"' 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 "event_id"' 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 "event_type"' 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 "fixed"' 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 "last_timestamp"' 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 "storage_system"' 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 "uuid"' 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
|
+
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.17
|
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-06-
|
11
|
+
date: 2022-06-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -81,6 +81,8 @@ files:
|
|
81
81
|
- docs/CapabilityTranslation.md
|
82
82
|
- docs/CapabilityTranslationApi.md
|
83
83
|
- docs/CapabilityTranslationCreate.md
|
84
|
+
- docs/Event.md
|
85
|
+
- docs/EventApi.md
|
84
86
|
- docs/Host.md
|
85
87
|
- docs/HostApi.md
|
86
88
|
- docs/HostCluster.md
|
@@ -160,6 +162,7 @@ files:
|
|
160
162
|
- lib/autosde_openapi_client/api/auto_sde_project_api.rb
|
161
163
|
- lib/autosde_openapi_client/api/auto_sde_role_api.rb
|
162
164
|
- lib/autosde_openapi_client/api/capability_translation_api.rb
|
165
|
+
- lib/autosde_openapi_client/api/event_api.rb
|
163
166
|
- lib/autosde_openapi_client/api/host_api.rb
|
164
167
|
- lib/autosde_openapi_client/api/host_cluster_api.rb
|
165
168
|
- lib/autosde_openapi_client/api/host_cluster_membership_api.rb
|
@@ -197,6 +200,7 @@ files:
|
|
197
200
|
- lib/autosde_openapi_client/models/auto_sde_role.rb
|
198
201
|
- lib/autosde_openapi_client/models/capability_translation.rb
|
199
202
|
- lib/autosde_openapi_client/models/capability_translation_create.rb
|
203
|
+
- lib/autosde_openapi_client/models/event.rb
|
200
204
|
- lib/autosde_openapi_client/models/host.rb
|
201
205
|
- lib/autosde_openapi_client/models/host_cluster.rb
|
202
206
|
- lib/autosde_openapi_client/models/host_cluster_create.rb
|
@@ -253,6 +257,7 @@ files:
|
|
253
257
|
- spec/api/auto_sde_project_api_spec.rb
|
254
258
|
- spec/api/auto_sde_role_api_spec.rb
|
255
259
|
- spec/api/capability_translation_api_spec.rb
|
260
|
+
- spec/api/event_api_spec.rb
|
256
261
|
- spec/api/host_api_spec.rb
|
257
262
|
- spec/api/host_cluster_api_spec.rb
|
258
263
|
- spec/api/host_cluster_membership_api_spec.rb
|
@@ -289,6 +294,7 @@ files:
|
|
289
294
|
- spec/models/auto_sde_role_spec.rb
|
290
295
|
- spec/models/capability_translation_create_spec.rb
|
291
296
|
- spec/models/capability_translation_spec.rb
|
297
|
+
- spec/models/event_spec.rb
|
292
298
|
- spec/models/host_cluster_create_spec.rb
|
293
299
|
- spec/models/host_cluster_membership_spec.rb
|
294
300
|
- spec/models/host_cluster_response_spec.rb
|
@@ -362,95 +368,97 @@ signing_key:
|
|
362
368
|
specification_version: 4
|
363
369
|
summary: Site Manager API Ruby Gem
|
364
370
|
test_files:
|
365
|
-
- spec/api/
|
366
|
-
- spec/api/service_api_spec.rb
|
367
|
-
- spec/api/volume_api_spec.rb
|
371
|
+
- spec/api/storage_system_api_spec.rb
|
368
372
|
- spec/api/capability_translation_api_spec.rb
|
373
|
+
- spec/api/authentication_api_spec.rb
|
374
|
+
- spec/api/abstract_capability_api_spec.rb
|
375
|
+
- spec/api/host_cluster_api_spec.rb
|
376
|
+
- spec/api/validate_system_api_spec.rb
|
377
|
+
- spec/api/volume_api_spec.rb
|
378
|
+
- spec/api/user_api_spec.rb
|
369
379
|
- spec/api/profile_api_spec.rb
|
370
|
-
- spec/api/
|
380
|
+
- spec/api/provisioning_strategy_api_spec.rb
|
371
381
|
- spec/api/address_api_spec.rb
|
372
|
-
- spec/api/auto_sde_project_api_spec.rb
|
373
|
-
- spec/api/storage_host_volume_mapping_api_spec.rb
|
374
|
-
- spec/api/validate_system_api_spec.rb
|
375
|
-
- spec/api/host_api_spec.rb
|
376
|
-
- spec/api/native_capability_api_spec.rb
|
377
382
|
- spec/api/host_volume_connection_api_spec.rb
|
378
|
-
- spec/api/storage_host_api_spec.rb
|
379
|
-
- spec/api/provisioning_strategy_api_spec.rb
|
380
|
-
- spec/api/abstract_capability_api_spec.rb
|
381
|
-
- spec/api/host_cluster_volume_mapping_api_spec.rb
|
382
|
-
- spec/api/storage_resource_api_spec.rb
|
383
|
-
- spec/api/service_resource_attachment_api_spec.rb
|
384
|
-
- spec/api/user_api_spec.rb
|
385
|
-
- spec/api/snapshot_api_spec.rb
|
386
|
-
- spec/api/authentication_api_spec.rb
|
387
|
-
- spec/api/account_api_spec.rb
|
388
|
-
- spec/api/job_api_spec.rb
|
389
|
-
- spec/api/volume_safe_delete_api_spec.rb
|
390
383
|
- spec/api/system_type_api_spec.rb
|
391
384
|
- spec/api/auto_sde_role_api_spec.rb
|
392
|
-
- spec/api/
|
385
|
+
- spec/api/native_capability_api_spec.rb
|
386
|
+
- spec/api/storage_resource_api_spec.rb
|
387
|
+
- spec/api/host_api_spec.rb
|
388
|
+
- spec/api/service_api_spec.rb
|
393
389
|
- spec/api/host_cluster_membership_api_spec.rb
|
390
|
+
- spec/api/volume_safe_delete_api_spec.rb
|
391
|
+
- spec/api/job_api_spec.rb
|
392
|
+
- spec/api/storage_host_volume_mapping_api_spec.rb
|
393
|
+
- spec/api/storage_host_api_spec.rb
|
394
|
+
- spec/api/snapshot_api_spec.rb
|
395
|
+
- spec/api/account_api_spec.rb
|
396
|
+
- spec/api/event_api_spec.rb
|
397
|
+
- spec/api/service_resource_attachment_api_spec.rb
|
398
|
+
- spec/api/host_cluster_volume_mapping_api_spec.rb
|
399
|
+
- spec/api/auto_sde_project_api_spec.rb
|
400
|
+
- spec/api/storage_host_wwpn_candidates_api_spec.rb
|
394
401
|
- spec/api_client_spec.rb
|
395
402
|
- spec/configuration_spec.rb
|
403
|
+
- spec/models/service_abstract_capability_value_spec.rb
|
404
|
+
- spec/models/host_cluster_response_spec.rb
|
405
|
+
- spec/models/system_type_spec.rb
|
406
|
+
- spec/models/volume_create_spec.rb
|
407
|
+
- spec/models/provisioning_strategy_spec.rb
|
408
|
+
- spec/models/storage_host_volume_mapping_spec.rb
|
409
|
+
- spec/models/host_create_spec.rb
|
410
|
+
- spec/models/volume_safe_delete_create_spec.rb
|
411
|
+
- spec/models/auth_response_spec.rb
|
396
412
|
- spec/models/storage_system_spec.rb
|
397
|
-
- spec/models/
|
413
|
+
- spec/models/volume_update_spec.rb
|
414
|
+
- spec/models/storage_system_update_spec.rb
|
415
|
+
- spec/models/user_spec.rb
|
416
|
+
- spec/models/storage_host_spec.rb
|
417
|
+
- spec/models/job_spec.rb
|
418
|
+
- spec/models/event_spec.rb
|
419
|
+
- spec/models/host_cluster_membership_spec.rb
|
420
|
+
- spec/models/volume_spec.rb
|
421
|
+
- spec/models/volume_response_spec.rb
|
398
422
|
- spec/models/storage_host_update_spec.rb
|
399
|
-
- spec/models/address_spec.rb
|
400
|
-
- spec/models/host_volume_connection_create_spec.rb
|
401
|
-
- spec/models/service_create_spec.rb
|
402
|
-
- spec/models/service_spec.rb
|
403
423
|
- spec/models/capability_translation_create_spec.rb
|
404
|
-
- spec/models/
|
405
|
-
- spec/models/
|
406
|
-
- spec/models/volume_create_spec.rb
|
407
|
-
- spec/models/authentication_spec.rb
|
408
|
-
- spec/models/storage_host_spec.rb
|
409
|
-
- spec/models/user_spec.rb
|
410
|
-
- spec/models/volume_update_spec.rb
|
411
|
-
- spec/models/host_create_spec.rb
|
424
|
+
- spec/models/native_capability_spec.rb
|
425
|
+
- spec/models/address_spec.rb
|
412
426
|
- spec/models/storage_resource_create_spec.rb
|
413
|
-
- spec/models/host_cluster_response_spec.rb
|
414
|
-
- spec/models/storage_system_create_spec.rb
|
415
|
-
- spec/models/user_create_spec.rb
|
416
|
-
- spec/models/service_abstract_capability_value_spec.rb
|
417
|
-
- spec/models/profile_spec.rb
|
418
|
-
- spec/models/system_type_spec.rb
|
419
|
-
- spec/models/storage_host_volume_mapping_create_spec.rb
|
420
|
-
- spec/models/host_cluster_create_spec.rb
|
421
|
-
- spec/models/snapshot_spec.rb
|
422
427
|
- spec/models/host_cluster_spec.rb
|
423
|
-
- spec/models/job_spec.rb
|
424
|
-
- spec/models/host_cluster_volume_mapping_response_spec.rb
|
425
|
-
- spec/models/volume_response_spec.rb
|
426
|
-
- spec/models/account_post_response_spec.rb
|
427
|
-
- spec/models/host_cluster_membership_spec.rb
|
428
|
-
- spec/models/storage_host_volume_mapping_response_spec.rb
|
429
|
-
- spec/models/capability_translation_spec.rb
|
430
428
|
- spec/models/snapshot_create_spec.rb
|
431
|
-
- spec/models/
|
432
|
-
- spec/models/
|
429
|
+
- spec/models/service_spec.rb
|
430
|
+
- spec/models/capability_translation_spec.rb
|
433
431
|
- spec/models/job_create_spec.rb
|
434
|
-
- spec/models/
|
435
|
-
- spec/models/
|
432
|
+
- spec/models/host_cluster_create_spec.rb
|
433
|
+
- spec/models/profile_spec.rb
|
434
|
+
- spec/models/auto_sde_project_spec.rb
|
436
435
|
- spec/models/storage_resource_spec.rb
|
437
|
-
- spec/models/
|
438
|
-
- spec/models/storage_resource_response_spec.rb
|
436
|
+
- spec/models/authentication_spec.rb
|
439
437
|
- spec/models/host_volume_connection_spec.rb
|
440
|
-
- spec/models/
|
441
|
-
- spec/models/
|
442
|
-
- spec/models/
|
438
|
+
- spec/models/validate_system_spec.rb
|
439
|
+
- spec/models/system_type_create_spec.rb
|
440
|
+
- spec/models/address_create_spec.rb
|
443
441
|
- spec/models/storage_host_response_spec.rb
|
444
|
-
- spec/models/
|
442
|
+
- spec/models/service_create_spec.rb
|
443
|
+
- spec/models/storage_host_volume_mapping_response_spec.rb
|
444
|
+
- spec/models/auto_sde_role_spec.rb
|
445
|
+
- spec/models/host_cluster_volume_mapping_create_spec.rb
|
446
|
+
- spec/models/account_spec.rb
|
445
447
|
- spec/models/service_resource_attachment_spec.rb
|
446
|
-
- spec/models/
|
447
|
-
- spec/models/
|
448
|
+
- spec/models/snapshot_spec.rb
|
449
|
+
- spec/models/host_cluster_volume_mapping_spec.rb
|
450
|
+
- spec/models/user_create_spec.rb
|
451
|
+
- spec/models/host_cluster_volume_mapping_response_spec.rb
|
452
|
+
- spec/models/volume_safe_delete_spec.rb
|
453
|
+
- spec/models/storage_host_volume_mapping_create_spec.rb
|
454
|
+
- spec/models/account_post_response_spec.rb
|
455
|
+
- spec/models/host_volume_connection_create_spec.rb
|
448
456
|
- spec/models/account_post_request_spec.rb
|
449
|
-
- spec/models/
|
450
|
-
- spec/models/
|
457
|
+
- spec/models/storage_host_wwpn_candidates_spec.rb
|
458
|
+
- spec/models/abstract_capability_spec.rb
|
459
|
+
- spec/models/storage_system_create_spec.rb
|
451
460
|
- spec/models/storage_host_create_spec.rb
|
452
|
-
- spec/models/
|
453
|
-
- spec/models/
|
454
|
-
- spec/models/
|
455
|
-
- spec/models/account_spec.rb
|
461
|
+
- spec/models/host_spec.rb
|
462
|
+
- spec/models/storage_resource_response_spec.rb
|
463
|
+
- spec/models/user_update_spec.rb
|
456
464
|
- spec/spec_helper.rb
|