autosde_openapi_client 1.1.31 → 1.1.32
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 +0 -8
- data/docs/Event.md +0 -4
- data/docs/EventApi.md +16 -16
- 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 +12 -12
- 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 +4 -4
- 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 +73 -93
- 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
|
@@ -12,7 +12,7 @@ All URIs are relative to *http://localhost:9000/site-manager/api/v1/engine*
|
|
|
12
12
|
|
|
13
13
|
## events_get
|
|
14
14
|
|
|
15
|
-
> <Array<
|
|
15
|
+
> <Array<Event>> events_get
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
@@ -42,7 +42,7 @@ end
|
|
|
42
42
|
|
|
43
43
|
This returns an Array which contains the response data, status code and headers.
|
|
44
44
|
|
|
45
|
-
> <Array(<Array<
|
|
45
|
+
> <Array(<Array<Event>>, Integer, Hash)> events_get_with_http_info
|
|
46
46
|
|
|
47
47
|
```ruby
|
|
48
48
|
begin
|
|
@@ -50,7 +50,7 @@ begin
|
|
|
50
50
|
data, status_code, headers = api_instance.events_get_with_http_info
|
|
51
51
|
p status_code # => 2xx
|
|
52
52
|
p headers # => { ... }
|
|
53
|
-
p data # => <Array<
|
|
53
|
+
p data # => <Array<Event>>
|
|
54
54
|
rescue AutosdeOpenapiClient::ApiError => e
|
|
55
55
|
puts "Error when calling EventApi->events_get_with_http_info: #{e}"
|
|
56
56
|
end
|
|
@@ -62,7 +62,7 @@ This endpoint does not need any parameter.
|
|
|
62
62
|
|
|
63
63
|
### Return type
|
|
64
64
|
|
|
65
|
-
[**Array<
|
|
65
|
+
[**Array<Event>**](Event.md)
|
|
66
66
|
|
|
67
67
|
### Authorization
|
|
68
68
|
|
|
@@ -76,7 +76,7 @@ This endpoint does not need any parameter.
|
|
|
76
76
|
|
|
77
77
|
## events_pk_delete
|
|
78
78
|
|
|
79
|
-
> <Array<
|
|
79
|
+
> <Array<Event>> events_pk_delete(pk)
|
|
80
80
|
|
|
81
81
|
|
|
82
82
|
|
|
@@ -107,7 +107,7 @@ end
|
|
|
107
107
|
|
|
108
108
|
This returns an Array which contains the response data, status code and headers.
|
|
109
109
|
|
|
110
|
-
> <Array(<Array<
|
|
110
|
+
> <Array(<Array<Event>>, Integer, Hash)> events_pk_delete_with_http_info(pk)
|
|
111
111
|
|
|
112
112
|
```ruby
|
|
113
113
|
begin
|
|
@@ -115,7 +115,7 @@ begin
|
|
|
115
115
|
data, status_code, headers = api_instance.events_pk_delete_with_http_info(pk)
|
|
116
116
|
p status_code # => 2xx
|
|
117
117
|
p headers # => { ... }
|
|
118
|
-
p data # => <Array<
|
|
118
|
+
p data # => <Array<Event>>
|
|
119
119
|
rescue AutosdeOpenapiClient::ApiError => e
|
|
120
120
|
puts "Error when calling EventApi->events_pk_delete_with_http_info: #{e}"
|
|
121
121
|
end
|
|
@@ -129,7 +129,7 @@ end
|
|
|
129
129
|
|
|
130
130
|
### Return type
|
|
131
131
|
|
|
132
|
-
[**Array<
|
|
132
|
+
[**Array<Event>**](Event.md)
|
|
133
133
|
|
|
134
134
|
### Authorization
|
|
135
135
|
|
|
@@ -143,7 +143,7 @@ end
|
|
|
143
143
|
|
|
144
144
|
## events_pk_get
|
|
145
145
|
|
|
146
|
-
> <Array<
|
|
146
|
+
> <Array<Event>> events_pk_get(pk)
|
|
147
147
|
|
|
148
148
|
|
|
149
149
|
|
|
@@ -174,7 +174,7 @@ end
|
|
|
174
174
|
|
|
175
175
|
This returns an Array which contains the response data, status code and headers.
|
|
176
176
|
|
|
177
|
-
> <Array(<Array<
|
|
177
|
+
> <Array(<Array<Event>>, Integer, Hash)> events_pk_get_with_http_info(pk)
|
|
178
178
|
|
|
179
179
|
```ruby
|
|
180
180
|
begin
|
|
@@ -182,7 +182,7 @@ begin
|
|
|
182
182
|
data, status_code, headers = api_instance.events_pk_get_with_http_info(pk)
|
|
183
183
|
p status_code # => 2xx
|
|
184
184
|
p headers # => { ... }
|
|
185
|
-
p data # => <Array<
|
|
185
|
+
p data # => <Array<Event>>
|
|
186
186
|
rescue AutosdeOpenapiClient::ApiError => e
|
|
187
187
|
puts "Error when calling EventApi->events_pk_get_with_http_info: #{e}"
|
|
188
188
|
end
|
|
@@ -196,7 +196,7 @@ end
|
|
|
196
196
|
|
|
197
197
|
### Return type
|
|
198
198
|
|
|
199
|
-
[**Array<
|
|
199
|
+
[**Array<Event>**](Event.md)
|
|
200
200
|
|
|
201
201
|
### Authorization
|
|
202
202
|
|
|
@@ -210,7 +210,7 @@ end
|
|
|
210
210
|
|
|
211
211
|
## events_post
|
|
212
212
|
|
|
213
|
-
> <
|
|
213
|
+
> <Event> events_post(event)
|
|
214
214
|
|
|
215
215
|
|
|
216
216
|
|
|
@@ -241,7 +241,7 @@ end
|
|
|
241
241
|
|
|
242
242
|
This returns an Array which contains the response data, status code and headers.
|
|
243
243
|
|
|
244
|
-
> <Array(<
|
|
244
|
+
> <Array(<Event>, Integer, Hash)> events_post_with_http_info(event)
|
|
245
245
|
|
|
246
246
|
```ruby
|
|
247
247
|
begin
|
|
@@ -249,7 +249,7 @@ begin
|
|
|
249
249
|
data, status_code, headers = api_instance.events_post_with_http_info(event)
|
|
250
250
|
p status_code # => 2xx
|
|
251
251
|
p headers # => { ... }
|
|
252
|
-
p data # => <
|
|
252
|
+
p data # => <Event>
|
|
253
253
|
rescue AutosdeOpenapiClient::ApiError => e
|
|
254
254
|
puts "Error when calling EventApi->events_post_with_http_info: #{e}"
|
|
255
255
|
end
|
|
@@ -263,7 +263,7 @@ end
|
|
|
263
263
|
|
|
264
264
|
### Return type
|
|
265
265
|
|
|
266
|
-
[**
|
|
266
|
+
[**Event**](Event.md)
|
|
267
267
|
|
|
268
268
|
### Authorization
|
|
269
269
|
|
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,
|
|
@@ -20,14 +20,14 @@ module AutosdeOpenapiClient
|
|
|
20
20
|
@api_client = api_client
|
|
21
21
|
end
|
|
22
22
|
# @param [Hash] opts the optional parameters
|
|
23
|
-
# @return [Array<
|
|
23
|
+
# @return [Array<Event>]
|
|
24
24
|
def events_get(opts = {})
|
|
25
25
|
data, _status_code, _headers = events_get_with_http_info(opts)
|
|
26
26
|
data
|
|
27
27
|
end
|
|
28
28
|
|
|
29
29
|
# @param [Hash] opts the optional parameters
|
|
30
|
-
# @return [Array<(Array<
|
|
30
|
+
# @return [Array<(Array<Event>, Integer, Hash)>] Array<Event> data, response status code and response headers
|
|
31
31
|
def events_get_with_http_info(opts = {})
|
|
32
32
|
if @api_client.config.debugging
|
|
33
33
|
@api_client.config.logger.debug 'Calling API: EventApi.events_get ...'
|
|
@@ -50,7 +50,7 @@ module AutosdeOpenapiClient
|
|
|
50
50
|
post_body = opts[:debug_body]
|
|
51
51
|
|
|
52
52
|
# return_type
|
|
53
|
-
return_type = opts[:debug_return_type] || 'Array<
|
|
53
|
+
return_type = opts[:debug_return_type] || 'Array<Event>'
|
|
54
54
|
|
|
55
55
|
# auth_names
|
|
56
56
|
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
@@ -74,7 +74,7 @@ module AutosdeOpenapiClient
|
|
|
74
74
|
|
|
75
75
|
# @param pk [Integer]
|
|
76
76
|
# @param [Hash] opts the optional parameters
|
|
77
|
-
# @return [Array<
|
|
77
|
+
# @return [Array<Event>]
|
|
78
78
|
def events_pk_delete(pk, opts = {})
|
|
79
79
|
data, _status_code, _headers = events_pk_delete_with_http_info(pk, opts)
|
|
80
80
|
data
|
|
@@ -82,7 +82,7 @@ module AutosdeOpenapiClient
|
|
|
82
82
|
|
|
83
83
|
# @param pk [Integer]
|
|
84
84
|
# @param [Hash] opts the optional parameters
|
|
85
|
-
# @return [Array<(Array<
|
|
85
|
+
# @return [Array<(Array<Event>, Integer, Hash)>] Array<Event> data, response status code and response headers
|
|
86
86
|
def events_pk_delete_with_http_info(pk, opts = {})
|
|
87
87
|
if @api_client.config.debugging
|
|
88
88
|
@api_client.config.logger.debug 'Calling API: EventApi.events_pk_delete ...'
|
|
@@ -109,7 +109,7 @@ module AutosdeOpenapiClient
|
|
|
109
109
|
post_body = opts[:debug_body]
|
|
110
110
|
|
|
111
111
|
# return_type
|
|
112
|
-
return_type = opts[:debug_return_type] || 'Array<
|
|
112
|
+
return_type = opts[:debug_return_type] || 'Array<Event>'
|
|
113
113
|
|
|
114
114
|
# auth_names
|
|
115
115
|
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
@@ -133,7 +133,7 @@ module AutosdeOpenapiClient
|
|
|
133
133
|
|
|
134
134
|
# @param pk [Integer]
|
|
135
135
|
# @param [Hash] opts the optional parameters
|
|
136
|
-
# @return [Array<
|
|
136
|
+
# @return [Array<Event>]
|
|
137
137
|
def events_pk_get(pk, opts = {})
|
|
138
138
|
data, _status_code, _headers = events_pk_get_with_http_info(pk, opts)
|
|
139
139
|
data
|
|
@@ -141,7 +141,7 @@ module AutosdeOpenapiClient
|
|
|
141
141
|
|
|
142
142
|
# @param pk [Integer]
|
|
143
143
|
# @param [Hash] opts the optional parameters
|
|
144
|
-
# @return [Array<(Array<
|
|
144
|
+
# @return [Array<(Array<Event>, Integer, Hash)>] Array<Event> data, response status code and response headers
|
|
145
145
|
def events_pk_get_with_http_info(pk, opts = {})
|
|
146
146
|
if @api_client.config.debugging
|
|
147
147
|
@api_client.config.logger.debug 'Calling API: EventApi.events_pk_get ...'
|
|
@@ -168,7 +168,7 @@ module AutosdeOpenapiClient
|
|
|
168
168
|
post_body = opts[:debug_body]
|
|
169
169
|
|
|
170
170
|
# return_type
|
|
171
|
-
return_type = opts[:debug_return_type] || 'Array<
|
|
171
|
+
return_type = opts[:debug_return_type] || 'Array<Event>'
|
|
172
172
|
|
|
173
173
|
# auth_names
|
|
174
174
|
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
@@ -192,7 +192,7 @@ module AutosdeOpenapiClient
|
|
|
192
192
|
|
|
193
193
|
# @param event [Event]
|
|
194
194
|
# @param [Hash] opts the optional parameters
|
|
195
|
-
# @return [
|
|
195
|
+
# @return [Event]
|
|
196
196
|
def events_post(event, opts = {})
|
|
197
197
|
data, _status_code, _headers = events_post_with_http_info(event, opts)
|
|
198
198
|
data
|
|
@@ -200,7 +200,7 @@ module AutosdeOpenapiClient
|
|
|
200
200
|
|
|
201
201
|
# @param event [Event]
|
|
202
202
|
# @param [Hash] opts the optional parameters
|
|
203
|
-
# @return [Array<(
|
|
203
|
+
# @return [Array<(Event, Integer, Hash)>] Event data, response status code and response headers
|
|
204
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 ...'
|
|
@@ -229,7 +229,7 @@ module AutosdeOpenapiClient
|
|
|
229
229
|
post_body = opts[:debug_body] || @api_client.object_to_http_body(event)
|
|
230
230
|
|
|
231
231
|
# return_type
|
|
232
|
-
return_type = opts[:debug_return_type] || '
|
|
232
|
+
return_type = opts[:debug_return_type] || 'Event'
|
|
233
233
|
|
|
234
234
|
# auth_names
|
|
235
235
|
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
@@ -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]
|