autosde_openapi_client 1.1.29 → 1.1.32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +0 -8
- data/docs/Event.md +0 -4
- data/docs/EventApi.md +6 -6
- data/docs/Job.md +0 -2
- data/docs/JobApi.md +0 -136
- data/docs/JobCreate.md +2 -2
- data/docs/StorageSystemCreate.md +0 -2
- data/lib/autosde_openapi_client/api/event_api.rb +9 -9
- data/lib/autosde_openapi_client/api/job_api.rb +0 -118
- data/lib/autosde_openapi_client/models/event.rb +2 -22
- data/lib/autosde_openapi_client/models/job.rb +1 -11
- data/lib/autosde_openapi_client/models/job_create.rb +8 -8
- data/lib/autosde_openapi_client/models/storage_system_create.rb +1 -13
- data/lib/autosde_openapi_client/version.rb +2 -2
- data/lib/autosde_openapi_client.rb +0 -5
- data/spec/api/event_api_spec.rb +1 -1
- data/spec/api/job_api_spec.rb +0 -20
- data/spec/models/event_spec.rb +0 -12
- data/spec/models/job_create_spec.rb +1 -1
- data/spec/models/job_spec.rb +0 -6
- data/spec/models/storage_system_create_spec.rb +0 -6
- metadata +2 -22
- data/docs/CeleryConfig.md +0 -20
- data/docs/CeleryConfigApi.md +0 -140
- data/docs/EventResponse.md +0 -36
- data/docs/RefreshSystem.md +0 -18
- data/docs/RefreshSystemApi.md +0 -75
- data/lib/autosde_openapi_client/api/celery_config_api.rb +0 -136
- data/lib/autosde_openapi_client/api/refresh_system_api.rb +0 -83
- data/lib/autosde_openapi_client/models/celery_config.rb +0 -230
- data/lib/autosde_openapi_client/models/event_response.rb +0 -310
- data/lib/autosde_openapi_client/models/refresh_system.rb +0 -220
- data/spec/api/celery_config_api_spec.rb +0 -54
- data/spec/api/refresh_system_api_spec.rb +0 -45
- data/spec/models/celery_config_spec.rb +0 -40
- data/spec/models/event_response_spec.rb +0 -88
- data/spec/models/refresh_system_spec.rb +0 -34
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 81ce654f1cb7e894a1af70f72b2c86dfd91e9846d67209760d0692eda31fa637
|
4
|
+
data.tar.gz: 962ec1b25f2670d2dff27045887da4784bbc9b726c50bb4279720a96b006e9ef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b09f51d0ebfcda30ac2fddc1ca5689b8c43b57192b5c701205f1e0f279cec7c1040ecfd2c8cfe80a5d3881a02983357d0a1e43fbf53a910af94c9158bf129039
|
7
|
+
data.tar.gz: 11f973063abc72946fd2dfd3fb2d2d6bdff911caca02f946e664264a34f48b6c0a38b582a7d2154af2b1d5a2a756150fab6a012dfe91d4fd8bc44684e0cb35c9
|
data/README.md
CHANGED
@@ -105,8 +105,6 @@ 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::CeleryConfigApi* | [**celery_config_get**](docs/CeleryConfigApi.md#celery_config_get) | **GET** /celery-config |
|
109
|
-
*AutosdeOpenapiClient::CeleryConfigApi* | [**celery_config_post**](docs/CeleryConfigApi.md#celery_config_post) | **POST** /celery-config |
|
110
108
|
*AutosdeOpenapiClient::EventApi* | [**events_get**](docs/EventApi.md#events_get) | **GET** /events |
|
111
109
|
*AutosdeOpenapiClient::EventApi* | [**events_pk_delete**](docs/EventApi.md#events_pk_delete) | **DELETE** /events/{pk} |
|
112
110
|
*AutosdeOpenapiClient::EventApi* | [**events_pk_get**](docs/EventApi.md#events_pk_get) | **GET** /events/{pk} |
|
@@ -132,8 +130,6 @@ Class | Method | HTTP request | Description
|
|
132
130
|
*AutosdeOpenapiClient::HostVolumeConnectionApi* | [**host_volume_connection_pk_get**](docs/HostVolumeConnectionApi.md#host_volume_connection_pk_get) | **GET** /host-volume-connection/{pk} |
|
133
131
|
*AutosdeOpenapiClient::HostVolumeConnectionApi* | [**host_volume_connection_post**](docs/HostVolumeConnectionApi.md#host_volume_connection_post) | **POST** /host-volume-connection |
|
134
132
|
*AutosdeOpenapiClient::JobApi* | [**jobs_get**](docs/JobApi.md#jobs_get) | **GET** /jobs |
|
135
|
-
*AutosdeOpenapiClient::JobApi* | [**jobs_pk_delete**](docs/JobApi.md#jobs_pk_delete) | **DELETE** /jobs/{pk} |
|
136
|
-
*AutosdeOpenapiClient::JobApi* | [**jobs_pk_get**](docs/JobApi.md#jobs_pk_get) | **GET** /jobs/{pk} |
|
137
133
|
*AutosdeOpenapiClient::JobApi* | [**jobs_post**](docs/JobApi.md#jobs_post) | **POST** /jobs |
|
138
134
|
*AutosdeOpenapiClient::NativeCapabilityApi* | [**native_capabilities_get**](docs/NativeCapabilityApi.md#native_capabilities_get) | **GET** /native-capabilities |
|
139
135
|
*AutosdeOpenapiClient::NativeCapabilityApi* | [**native_capabilities_pk_delete**](docs/NativeCapabilityApi.md#native_capabilities_pk_delete) | **DELETE** /native-capabilities/{pk} |
|
@@ -147,7 +143,6 @@ Class | Method | HTTP request | Description
|
|
147
143
|
*AutosdeOpenapiClient::ProvisioningStrategyApi* | [**provisioning_strategy_pk_delete**](docs/ProvisioningStrategyApi.md#provisioning_strategy_pk_delete) | **DELETE** /provisioning-strategy/{pk} |
|
148
144
|
*AutosdeOpenapiClient::ProvisioningStrategyApi* | [**provisioning_strategy_pk_get**](docs/ProvisioningStrategyApi.md#provisioning_strategy_pk_get) | **GET** /provisioning-strategy/{pk} |
|
149
145
|
*AutosdeOpenapiClient::ProvisioningStrategyApi* | [**provisioning_strategy_post**](docs/ProvisioningStrategyApi.md#provisioning_strategy_post) | **POST** /provisioning-strategy |
|
150
|
-
*AutosdeOpenapiClient::RefreshSystemApi* | [**refresh_system_post**](docs/RefreshSystemApi.md#refresh_system_post) | **POST** /refresh-system |
|
151
146
|
*AutosdeOpenapiClient::ServiceApi* | [**services_get**](docs/ServiceApi.md#services_get) | **GET** /services |
|
152
147
|
*AutosdeOpenapiClient::ServiceApi* | [**services_pk_delete**](docs/ServiceApi.md#services_pk_delete) | **DELETE** /services/{pk} |
|
153
148
|
*AutosdeOpenapiClient::ServiceApi* | [**services_pk_get**](docs/ServiceApi.md#services_pk_get) | **GET** /services/{pk} |
|
@@ -216,9 +211,7 @@ Class | Method | HTTP request | Description
|
|
216
211
|
- [AutosdeOpenapiClient::AutoSDERole](docs/AutoSDERole.md)
|
217
212
|
- [AutosdeOpenapiClient::CapabilityTranslation](docs/CapabilityTranslation.md)
|
218
213
|
- [AutosdeOpenapiClient::CapabilityTranslationCreate](docs/CapabilityTranslationCreate.md)
|
219
|
-
- [AutosdeOpenapiClient::CeleryConfig](docs/CeleryConfig.md)
|
220
214
|
- [AutosdeOpenapiClient::Event](docs/Event.md)
|
221
|
-
- [AutosdeOpenapiClient::EventResponse](docs/EventResponse.md)
|
222
215
|
- [AutosdeOpenapiClient::Host](docs/Host.md)
|
223
216
|
- [AutosdeOpenapiClient::HostCluster](docs/HostCluster.md)
|
224
217
|
- [AutosdeOpenapiClient::HostClusterCreate](docs/HostClusterCreate.md)
|
@@ -235,7 +228,6 @@ Class | Method | HTTP request | Description
|
|
235
228
|
- [AutosdeOpenapiClient::NativeCapability](docs/NativeCapability.md)
|
236
229
|
- [AutosdeOpenapiClient::Profile](docs/Profile.md)
|
237
230
|
- [AutosdeOpenapiClient::ProvisioningStrategy](docs/ProvisioningStrategy.md)
|
238
|
-
- [AutosdeOpenapiClient::RefreshSystem](docs/RefreshSystem.md)
|
239
231
|
- [AutosdeOpenapiClient::Service](docs/Service.md)
|
240
232
|
- [AutosdeOpenapiClient::ServiceAbstractCapabilityValue](docs/ServiceAbstractCapabilityValue.md)
|
241
233
|
- [AutosdeOpenapiClient::ServiceCreate](docs/ServiceCreate.md)
|
data/docs/Event.md
CHANGED
@@ -4,14 +4,12 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **created_at** | **Time** | created_at | [optional] |
|
8
7
|
| **description** | **String** | description | [optional] |
|
9
8
|
| **error_code** | **String** | error_code | [optional] |
|
10
9
|
| **event_id** | **Integer** | event_id | [optional] |
|
11
10
|
| **event_type** | **String** | event_type | [optional] |
|
12
11
|
| **fixed** | **String** | fixed | [optional] |
|
13
12
|
| **last_timestamp** | **Time** | last_timestamp | [optional] |
|
14
|
-
| **refresh_interval** | **Integer** | refresh_interval | [optional] |
|
15
13
|
| **storage_system** | [**StorageSystem**](StorageSystem.md) | | [optional] |
|
16
14
|
| **uuid** | **String** | uuid | [optional] |
|
17
15
|
|
@@ -21,14 +19,12 @@
|
|
21
19
|
require 'autosde_openapi_client'
|
22
20
|
|
23
21
|
instance = AutosdeOpenapiClient::Event.new(
|
24
|
-
created_at: null,
|
25
22
|
description: null,
|
26
23
|
error_code: null,
|
27
24
|
event_id: null,
|
28
25
|
event_type: null,
|
29
26
|
fixed: null,
|
30
27
|
last_timestamp: null,
|
31
|
-
refresh_interval: null,
|
32
28
|
storage_system: null,
|
33
29
|
uuid: null
|
34
30
|
)
|
data/docs/EventApi.md
CHANGED
@@ -210,7 +210,7 @@ end
|
|
210
210
|
|
211
211
|
## events_post
|
212
212
|
|
213
|
-
> <Event> events_post(
|
213
|
+
> <Event> events_post(event)
|
214
214
|
|
215
215
|
|
216
216
|
|
@@ -226,11 +226,11 @@ AutosdeOpenapiClient.configure do |config|
|
|
226
226
|
end
|
227
227
|
|
228
228
|
api_instance = AutosdeOpenapiClient::EventApi.new
|
229
|
-
|
229
|
+
event = AutosdeOpenapiClient::Event.new # Event |
|
230
230
|
|
231
231
|
begin
|
232
232
|
|
233
|
-
result = api_instance.events_post(
|
233
|
+
result = api_instance.events_post(event)
|
234
234
|
p result
|
235
235
|
rescue AutosdeOpenapiClient::ApiError => e
|
236
236
|
puts "Error when calling EventApi->events_post: #{e}"
|
@@ -241,12 +241,12 @@ end
|
|
241
241
|
|
242
242
|
This returns an Array which contains the response data, status code and headers.
|
243
243
|
|
244
|
-
> <Array(<Event>, Integer, Hash)> events_post_with_http_info(
|
244
|
+
> <Array(<Event>, Integer, Hash)> events_post_with_http_info(event)
|
245
245
|
|
246
246
|
```ruby
|
247
247
|
begin
|
248
248
|
|
249
|
-
data, status_code, headers = api_instance.events_post_with_http_info(
|
249
|
+
data, status_code, headers = api_instance.events_post_with_http_info(event)
|
250
250
|
p status_code # => 2xx
|
251
251
|
p headers # => { ... }
|
252
252
|
p data # => <Event>
|
@@ -259,7 +259,7 @@ end
|
|
259
259
|
|
260
260
|
| Name | Type | Description | Notes |
|
261
261
|
| ---- | ---- | ----------- | ----- |
|
262
|
-
| **
|
262
|
+
| **event** | [**Event**](Event.md) | | |
|
263
263
|
|
264
264
|
### Return type
|
265
265
|
|
data/docs/Job.md
CHANGED
@@ -6,7 +6,6 @@
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **date_finished** | **Time** | date_finished | [optional] |
|
8
8
|
| **date_started** | **Time** | date_started | [optional] |
|
9
|
-
| **extra** | **String** | extra | [optional] |
|
10
9
|
| **status** | **String** | status | [optional] |
|
11
10
|
| **task_args** | **String** | task_args | [optional] |
|
12
11
|
| **task_id** | **String** | task_id | [optional] |
|
@@ -21,7 +20,6 @@ require 'autosde_openapi_client'
|
|
21
20
|
instance = AutosdeOpenapiClient::Job.new(
|
22
21
|
date_finished: null,
|
23
22
|
date_started: null,
|
24
|
-
extra: null,
|
25
23
|
status: null,
|
26
24
|
task_args: null,
|
27
25
|
task_id: null,
|
data/docs/JobApi.md
CHANGED
@@ -5,8 +5,6 @@ All URIs are relative to *http://localhost:9000/site-manager/api/v1/engine*
|
|
5
5
|
| Method | HTTP request | Description |
|
6
6
|
| ------ | ------------ | ----------- |
|
7
7
|
| [**jobs_get**](JobApi.md#jobs_get) | **GET** /jobs | |
|
8
|
-
| [**jobs_pk_delete**](JobApi.md#jobs_pk_delete) | **DELETE** /jobs/{pk} | |
|
9
|
-
| [**jobs_pk_get**](JobApi.md#jobs_pk_get) | **GET** /jobs/{pk} | |
|
10
8
|
| [**jobs_post**](JobApi.md#jobs_post) | **POST** /jobs | |
|
11
9
|
|
12
10
|
|
@@ -74,140 +72,6 @@ This endpoint does not need any parameter.
|
|
74
72
|
- **Accept**: */*
|
75
73
|
|
76
74
|
|
77
|
-
## jobs_pk_delete
|
78
|
-
|
79
|
-
> <Array<Job>> jobs_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::JobApi.new
|
95
|
-
pk = 56 # Integer |
|
96
|
-
|
97
|
-
begin
|
98
|
-
|
99
|
-
result = api_instance.jobs_pk_delete(pk)
|
100
|
-
p result
|
101
|
-
rescue AutosdeOpenapiClient::ApiError => e
|
102
|
-
puts "Error when calling JobApi->jobs_pk_delete: #{e}"
|
103
|
-
end
|
104
|
-
```
|
105
|
-
|
106
|
-
#### Using the jobs_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<Job>>, Integer, Hash)> jobs_pk_delete_with_http_info(pk)
|
111
|
-
|
112
|
-
```ruby
|
113
|
-
begin
|
114
|
-
|
115
|
-
data, status_code, headers = api_instance.jobs_pk_delete_with_http_info(pk)
|
116
|
-
p status_code # => 2xx
|
117
|
-
p headers # => { ... }
|
118
|
-
p data # => <Array<Job>>
|
119
|
-
rescue AutosdeOpenapiClient::ApiError => e
|
120
|
-
puts "Error when calling JobApi->jobs_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<Job>**](Job.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
|
-
## jobs_pk_get
|
145
|
-
|
146
|
-
> <Array<Job>> jobs_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::JobApi.new
|
162
|
-
pk = 56 # Integer |
|
163
|
-
|
164
|
-
begin
|
165
|
-
|
166
|
-
result = api_instance.jobs_pk_get(pk)
|
167
|
-
p result
|
168
|
-
rescue AutosdeOpenapiClient::ApiError => e
|
169
|
-
puts "Error when calling JobApi->jobs_pk_get: #{e}"
|
170
|
-
end
|
171
|
-
```
|
172
|
-
|
173
|
-
#### Using the jobs_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<Job>>, Integer, Hash)> jobs_pk_get_with_http_info(pk)
|
178
|
-
|
179
|
-
```ruby
|
180
|
-
begin
|
181
|
-
|
182
|
-
data, status_code, headers = api_instance.jobs_pk_get_with_http_info(pk)
|
183
|
-
p status_code # => 2xx
|
184
|
-
p headers # => { ... }
|
185
|
-
p data # => <Array<Job>>
|
186
|
-
rescue AutosdeOpenapiClient::ApiError => e
|
187
|
-
puts "Error when calling JobApi->jobs_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<Job>**](Job.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
75
|
## jobs_post
|
212
76
|
|
213
77
|
> <Job> jobs_post(job_create)
|
data/docs/JobCreate.md
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **
|
7
|
+
| **task_args** | **String** | task_args | [optional] |
|
8
8
|
| **task_name** | **String** | task_name | [optional] |
|
9
9
|
|
10
10
|
## Example
|
@@ -13,7 +13,7 @@
|
|
13
13
|
require 'autosde_openapi_client'
|
14
14
|
|
15
15
|
instance = AutosdeOpenapiClient::JobCreate.new(
|
16
|
-
|
16
|
+
task_args: null,
|
17
17
|
task_name: null
|
18
18
|
)
|
19
19
|
```
|
data/docs/StorageSystemCreate.md
CHANGED
@@ -9,7 +9,6 @@
|
|
9
9
|
| **chap_name** | **String** | chap_name | [optional] |
|
10
10
|
| **chap_secret** | **String** | chap_secret | [optional] |
|
11
11
|
| **component_state** | **String** | component_state | [optional] |
|
12
|
-
| **initial_refresh** | **Boolean** | initial_refresh | [optional][default to true] |
|
13
12
|
| **iqn** | **String** | | [optional] |
|
14
13
|
| **management_ip** | **String** | management_ip | [optional] |
|
15
14
|
| **name** | **String** | name | [optional] |
|
@@ -35,7 +34,6 @@ instance = AutosdeOpenapiClient::StorageSystemCreate.new(
|
|
35
34
|
chap_name: null,
|
36
35
|
chap_secret: null,
|
37
36
|
component_state: null,
|
38
|
-
initial_refresh: null,
|
39
37
|
iqn: null,
|
40
38
|
management_ip: null,
|
41
39
|
name: null,
|
@@ -190,24 +190,24 @@ module AutosdeOpenapiClient
|
|
190
190
|
return data, status_code, headers
|
191
191
|
end
|
192
192
|
|
193
|
-
# @param
|
193
|
+
# @param event [Event]
|
194
194
|
# @param [Hash] opts the optional parameters
|
195
195
|
# @return [Event]
|
196
|
-
def events_post(
|
197
|
-
data, _status_code, _headers = events_post_with_http_info(
|
196
|
+
def events_post(event, opts = {})
|
197
|
+
data, _status_code, _headers = events_post_with_http_info(event, opts)
|
198
198
|
data
|
199
199
|
end
|
200
200
|
|
201
|
-
# @param
|
201
|
+
# @param event [Event]
|
202
202
|
# @param [Hash] opts the optional parameters
|
203
203
|
# @return [Array<(Event, Integer, Hash)>] Event data, response status code and response headers
|
204
|
-
def events_post_with_http_info(
|
204
|
+
def events_post_with_http_info(event, opts = {})
|
205
205
|
if @api_client.config.debugging
|
206
206
|
@api_client.config.logger.debug 'Calling API: EventApi.events_post ...'
|
207
207
|
end
|
208
|
-
# verify the required parameter '
|
209
|
-
if @api_client.config.client_side_validation &&
|
210
|
-
fail ArgumentError, "Missing the required parameter '
|
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
211
|
end
|
212
212
|
# resource path
|
213
213
|
local_var_path = '/events'
|
@@ -226,7 +226,7 @@ module AutosdeOpenapiClient
|
|
226
226
|
form_params = opts[:form_params] || {}
|
227
227
|
|
228
228
|
# http body (model)
|
229
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(
|
229
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(event)
|
230
230
|
|
231
231
|
# return_type
|
232
232
|
return_type = opts[:debug_return_type] || 'Event'
|
@@ -72,124 +72,6 @@ module AutosdeOpenapiClient
|
|
72
72
|
return data, status_code, headers
|
73
73
|
end
|
74
74
|
|
75
|
-
# @param pk [Integer]
|
76
|
-
# @param [Hash] opts the optional parameters
|
77
|
-
# @return [Array<Job>]
|
78
|
-
def jobs_pk_delete(pk, opts = {})
|
79
|
-
data, _status_code, _headers = jobs_pk_delete_with_http_info(pk, opts)
|
80
|
-
data
|
81
|
-
end
|
82
|
-
|
83
|
-
# @param pk [Integer]
|
84
|
-
# @param [Hash] opts the optional parameters
|
85
|
-
# @return [Array<(Array<Job>, Integer, Hash)>] Array<Job> data, response status code and response headers
|
86
|
-
def jobs_pk_delete_with_http_info(pk, opts = {})
|
87
|
-
if @api_client.config.debugging
|
88
|
-
@api_client.config.logger.debug 'Calling API: JobApi.jobs_pk_delete ...'
|
89
|
-
end
|
90
|
-
# verify the required parameter 'pk' is set
|
91
|
-
if @api_client.config.client_side_validation && pk.nil?
|
92
|
-
fail ArgumentError, "Missing the required parameter 'pk' when calling JobApi.jobs_pk_delete"
|
93
|
-
end
|
94
|
-
# resource path
|
95
|
-
local_var_path = '/jobs/{pk}'.sub('{' + 'pk' + '}', CGI.escape(pk.to_s))
|
96
|
-
|
97
|
-
# query parameters
|
98
|
-
query_params = opts[:query_params] || {}
|
99
|
-
|
100
|
-
# header parameters
|
101
|
-
header_params = opts[:header_params] || {}
|
102
|
-
# HTTP header 'Accept' (if needed)
|
103
|
-
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
104
|
-
|
105
|
-
# form parameters
|
106
|
-
form_params = opts[:form_params] || {}
|
107
|
-
|
108
|
-
# http body (model)
|
109
|
-
post_body = opts[:debug_body]
|
110
|
-
|
111
|
-
# return_type
|
112
|
-
return_type = opts[:debug_return_type] || 'Array<Job>'
|
113
|
-
|
114
|
-
# auth_names
|
115
|
-
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
116
|
-
|
117
|
-
new_options = opts.merge(
|
118
|
-
:operation => :"JobApi.jobs_pk_delete",
|
119
|
-
:header_params => header_params,
|
120
|
-
:query_params => query_params,
|
121
|
-
:form_params => form_params,
|
122
|
-
:body => post_body,
|
123
|
-
:auth_names => auth_names,
|
124
|
-
:return_type => return_type
|
125
|
-
)
|
126
|
-
|
127
|
-
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
128
|
-
if @api_client.config.debugging
|
129
|
-
@api_client.config.logger.debug "API called: JobApi#jobs_pk_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
130
|
-
end
|
131
|
-
return data, status_code, headers
|
132
|
-
end
|
133
|
-
|
134
|
-
# @param pk [Integer]
|
135
|
-
# @param [Hash] opts the optional parameters
|
136
|
-
# @return [Array<Job>]
|
137
|
-
def jobs_pk_get(pk, opts = {})
|
138
|
-
data, _status_code, _headers = jobs_pk_get_with_http_info(pk, opts)
|
139
|
-
data
|
140
|
-
end
|
141
|
-
|
142
|
-
# @param pk [Integer]
|
143
|
-
# @param [Hash] opts the optional parameters
|
144
|
-
# @return [Array<(Array<Job>, Integer, Hash)>] Array<Job> data, response status code and response headers
|
145
|
-
def jobs_pk_get_with_http_info(pk, opts = {})
|
146
|
-
if @api_client.config.debugging
|
147
|
-
@api_client.config.logger.debug 'Calling API: JobApi.jobs_pk_get ...'
|
148
|
-
end
|
149
|
-
# verify the required parameter 'pk' is set
|
150
|
-
if @api_client.config.client_side_validation && pk.nil?
|
151
|
-
fail ArgumentError, "Missing the required parameter 'pk' when calling JobApi.jobs_pk_get"
|
152
|
-
end
|
153
|
-
# resource path
|
154
|
-
local_var_path = '/jobs/{pk}'.sub('{' + 'pk' + '}', CGI.escape(pk.to_s))
|
155
|
-
|
156
|
-
# query parameters
|
157
|
-
query_params = opts[:query_params] || {}
|
158
|
-
|
159
|
-
# header parameters
|
160
|
-
header_params = opts[:header_params] || {}
|
161
|
-
# HTTP header 'Accept' (if needed)
|
162
|
-
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
163
|
-
|
164
|
-
# form parameters
|
165
|
-
form_params = opts[:form_params] || {}
|
166
|
-
|
167
|
-
# http body (model)
|
168
|
-
post_body = opts[:debug_body]
|
169
|
-
|
170
|
-
# return_type
|
171
|
-
return_type = opts[:debug_return_type] || 'Array<Job>'
|
172
|
-
|
173
|
-
# auth_names
|
174
|
-
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
175
|
-
|
176
|
-
new_options = opts.merge(
|
177
|
-
:operation => :"JobApi.jobs_pk_get",
|
178
|
-
:header_params => header_params,
|
179
|
-
:query_params => query_params,
|
180
|
-
:form_params => form_params,
|
181
|
-
:body => post_body,
|
182
|
-
:auth_names => auth_names,
|
183
|
-
:return_type => return_type
|
184
|
-
)
|
185
|
-
|
186
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
187
|
-
if @api_client.config.debugging
|
188
|
-
@api_client.config.logger.debug "API called: JobApi#jobs_pk_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
189
|
-
end
|
190
|
-
return data, status_code, headers
|
191
|
-
end
|
192
|
-
|
193
75
|
# @param job_create [JobCreate]
|
194
76
|
# @param [Hash] opts the optional parameters
|
195
77
|
# @return [Job]
|
@@ -14,11 +14,8 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module AutosdeOpenapiClient
|
17
|
-
# Event
|
17
|
+
# Event object represents storage system alerts and messages.
|
18
18
|
class Event
|
19
|
-
# created_at
|
20
|
-
attr_accessor :created_at
|
21
|
-
|
22
19
|
# description
|
23
20
|
attr_accessor :description
|
24
21
|
|
@@ -37,9 +34,6 @@ module AutosdeOpenapiClient
|
|
37
34
|
# last_timestamp
|
38
35
|
attr_accessor :last_timestamp
|
39
36
|
|
40
|
-
# refresh_interval
|
41
|
-
attr_accessor :refresh_interval
|
42
|
-
|
43
37
|
attr_accessor :storage_system
|
44
38
|
|
45
39
|
# uuid
|
@@ -48,14 +42,12 @@ module AutosdeOpenapiClient
|
|
48
42
|
# Attribute mapping from ruby-style variable name to JSON key.
|
49
43
|
def self.attribute_map
|
50
44
|
{
|
51
|
-
:'created_at' => :'created_at',
|
52
45
|
:'description' => :'description',
|
53
46
|
:'error_code' => :'error_code',
|
54
47
|
:'event_id' => :'event_id',
|
55
48
|
:'event_type' => :'event_type',
|
56
49
|
:'fixed' => :'fixed',
|
57
50
|
:'last_timestamp' => :'last_timestamp',
|
58
|
-
:'refresh_interval' => :'refresh_interval',
|
59
51
|
:'storage_system' => :'storage_system',
|
60
52
|
:'uuid' => :'uuid'
|
61
53
|
}
|
@@ -69,14 +61,12 @@ module AutosdeOpenapiClient
|
|
69
61
|
# Attribute type mapping.
|
70
62
|
def self.openapi_types
|
71
63
|
{
|
72
|
-
:'created_at' => :'Time',
|
73
64
|
:'description' => :'String',
|
74
65
|
:'error_code' => :'String',
|
75
66
|
:'event_id' => :'Integer',
|
76
67
|
:'event_type' => :'String',
|
77
68
|
:'fixed' => :'String',
|
78
69
|
:'last_timestamp' => :'Time',
|
79
|
-
:'refresh_interval' => :'Integer',
|
80
70
|
:'storage_system' => :'StorageSystem',
|
81
71
|
:'uuid' => :'String'
|
82
72
|
}
|
@@ -103,10 +93,6 @@ module AutosdeOpenapiClient
|
|
103
93
|
h[k.to_sym] = v
|
104
94
|
}
|
105
95
|
|
106
|
-
if attributes.key?(:'created_at')
|
107
|
-
self.created_at = attributes[:'created_at']
|
108
|
-
end
|
109
|
-
|
110
96
|
if attributes.key?(:'description')
|
111
97
|
self.description = attributes[:'description']
|
112
98
|
end
|
@@ -131,10 +117,6 @@ module AutosdeOpenapiClient
|
|
131
117
|
self.last_timestamp = attributes[:'last_timestamp']
|
132
118
|
end
|
133
119
|
|
134
|
-
if attributes.key?(:'refresh_interval')
|
135
|
-
self.refresh_interval = attributes[:'refresh_interval']
|
136
|
-
end
|
137
|
-
|
138
120
|
if attributes.key?(:'storage_system')
|
139
121
|
self.storage_system = attributes[:'storage_system']
|
140
122
|
end
|
@@ -162,14 +144,12 @@ module AutosdeOpenapiClient
|
|
162
144
|
def ==(o)
|
163
145
|
return true if self.equal?(o)
|
164
146
|
self.class == o.class &&
|
165
|
-
created_at == o.created_at &&
|
166
147
|
description == o.description &&
|
167
148
|
error_code == o.error_code &&
|
168
149
|
event_id == o.event_id &&
|
169
150
|
event_type == o.event_type &&
|
170
151
|
fixed == o.fixed &&
|
171
152
|
last_timestamp == o.last_timestamp &&
|
172
|
-
refresh_interval == o.refresh_interval &&
|
173
153
|
storage_system == o.storage_system &&
|
174
154
|
uuid == o.uuid
|
175
155
|
end
|
@@ -183,7 +163,7 @@ module AutosdeOpenapiClient
|
|
183
163
|
# Calculates hash code according to all attributes.
|
184
164
|
# @return [Integer] Hash code
|
185
165
|
def hash
|
186
|
-
[
|
166
|
+
[description, error_code, event_id, event_type, fixed, last_timestamp, storage_system, uuid].hash
|
187
167
|
end
|
188
168
|
|
189
169
|
# Builds the object from hash
|
@@ -22,9 +22,6 @@ module AutosdeOpenapiClient
|
|
22
22
|
# date_started
|
23
23
|
attr_accessor :date_started
|
24
24
|
|
25
|
-
# extra
|
26
|
-
attr_accessor :extra
|
27
|
-
|
28
25
|
# status
|
29
26
|
attr_accessor :status
|
30
27
|
|
@@ -45,7 +42,6 @@ module AutosdeOpenapiClient
|
|
45
42
|
{
|
46
43
|
:'date_finished' => :'date_finished',
|
47
44
|
:'date_started' => :'date_started',
|
48
|
-
:'extra' => :'extra',
|
49
45
|
:'status' => :'status',
|
50
46
|
:'task_args' => :'task_args',
|
51
47
|
:'task_id' => :'task_id',
|
@@ -64,7 +60,6 @@ module AutosdeOpenapiClient
|
|
64
60
|
{
|
65
61
|
:'date_finished' => :'Time',
|
66
62
|
:'date_started' => :'Time',
|
67
|
-
:'extra' => :'String',
|
68
63
|
:'status' => :'String',
|
69
64
|
:'task_args' => :'String',
|
70
65
|
:'task_id' => :'String',
|
@@ -102,10 +97,6 @@ module AutosdeOpenapiClient
|
|
102
97
|
self.date_started = attributes[:'date_started']
|
103
98
|
end
|
104
99
|
|
105
|
-
if attributes.key?(:'extra')
|
106
|
-
self.extra = attributes[:'extra']
|
107
|
-
end
|
108
|
-
|
109
100
|
if attributes.key?(:'status')
|
110
101
|
self.status = attributes[:'status']
|
111
102
|
end
|
@@ -147,7 +138,6 @@ module AutosdeOpenapiClient
|
|
147
138
|
self.class == o.class &&
|
148
139
|
date_finished == o.date_finished &&
|
149
140
|
date_started == o.date_started &&
|
150
|
-
extra == o.extra &&
|
151
141
|
status == o.status &&
|
152
142
|
task_args == o.task_args &&
|
153
143
|
task_id == o.task_id &&
|
@@ -164,7 +154,7 @@ module AutosdeOpenapiClient
|
|
164
154
|
# Calculates hash code according to all attributes.
|
165
155
|
# @return [Integer] Hash code
|
166
156
|
def hash
|
167
|
-
[date_finished, date_started,
|
157
|
+
[date_finished, date_started, status, task_args, task_id, task_kwargs, task_name].hash
|
168
158
|
end
|
169
159
|
|
170
160
|
# Builds the object from hash
|