autosde_openapi_client 1.1.22 → 1.1.25
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 +4 -0
- data/docs/Event.md +4 -0
- data/docs/Job.md +2 -0
- data/docs/JobApi.md +136 -0
- data/docs/JobCreate.md +2 -2
- data/docs/RefreshSystem.md +18 -0
- data/docs/RefreshSystemApi.md +75 -0
- data/lib/autosde_openapi_client/api/job_api.rb +118 -0
- data/lib/autosde_openapi_client/api/refresh_system_api.rb +83 -0
- data/lib/autosde_openapi_client/models/event.rb +21 -1
- data/lib/autosde_openapi_client/models/job.rb +11 -1
- data/lib/autosde_openapi_client/models/job_create.rb +8 -8
- data/lib/autosde_openapi_client/models/refresh_system.rb +220 -0
- data/lib/autosde_openapi_client/version.rb +2 -2
- data/lib/autosde_openapi_client.rb +2 -0
- data/spec/api/job_api_spec.rb +20 -0
- data/spec/api/refresh_system_api_spec.rb +45 -0
- data/spec/models/event_spec.rb +12 -0
- data/spec/models/job_create_spec.rb +1 -1
- data/spec/models/job_spec.rb +6 -0
- data/spec/models/refresh_system_spec.rb +34 -0
- metadata +10 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f1852d61cb4fb204a6fb3eb6db41959a4fdc8d92414c3cdd7d451ab71fa396aa
|
|
4
|
+
data.tar.gz: 14d992fb9ee05ad2f15cb00dfc503630ae18c58eaad428c78db970b145d4b8eb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8d58ec1630dbcfe734f37f8bca9806e8bfea4ff7e5da45155ff1373caabea136aa74ca390e757d89b097edf210bf9590919945096ebe8699e7f898a89cca4257
|
|
7
|
+
data.tar.gz: 50301e9aa23729b036d8641da34d3c95b7488a76b2e0f5e86cbf77c3dfe95981499b628cc5b9aec4b47fba038490e4a7d7270b987e82413c18ba327118c36c5c
|
data/README.md
CHANGED
|
@@ -130,6 +130,8 @@ Class | Method | HTTP request | Description
|
|
|
130
130
|
*AutosdeOpenapiClient::HostVolumeConnectionApi* | [**host_volume_connection_pk_get**](docs/HostVolumeConnectionApi.md#host_volume_connection_pk_get) | **GET** /host-volume-connection/{pk} |
|
|
131
131
|
*AutosdeOpenapiClient::HostVolumeConnectionApi* | [**host_volume_connection_post**](docs/HostVolumeConnectionApi.md#host_volume_connection_post) | **POST** /host-volume-connection |
|
|
132
132
|
*AutosdeOpenapiClient::JobApi* | [**jobs_get**](docs/JobApi.md#jobs_get) | **GET** /jobs |
|
|
133
|
+
*AutosdeOpenapiClient::JobApi* | [**jobs_pk_delete**](docs/JobApi.md#jobs_pk_delete) | **DELETE** /jobs/{pk} |
|
|
134
|
+
*AutosdeOpenapiClient::JobApi* | [**jobs_pk_get**](docs/JobApi.md#jobs_pk_get) | **GET** /jobs/{pk} |
|
|
133
135
|
*AutosdeOpenapiClient::JobApi* | [**jobs_post**](docs/JobApi.md#jobs_post) | **POST** /jobs |
|
|
134
136
|
*AutosdeOpenapiClient::NativeCapabilityApi* | [**native_capabilities_get**](docs/NativeCapabilityApi.md#native_capabilities_get) | **GET** /native-capabilities |
|
|
135
137
|
*AutosdeOpenapiClient::NativeCapabilityApi* | [**native_capabilities_pk_delete**](docs/NativeCapabilityApi.md#native_capabilities_pk_delete) | **DELETE** /native-capabilities/{pk} |
|
|
@@ -143,6 +145,7 @@ Class | Method | HTTP request | Description
|
|
|
143
145
|
*AutosdeOpenapiClient::ProvisioningStrategyApi* | [**provisioning_strategy_pk_delete**](docs/ProvisioningStrategyApi.md#provisioning_strategy_pk_delete) | **DELETE** /provisioning-strategy/{pk} |
|
|
144
146
|
*AutosdeOpenapiClient::ProvisioningStrategyApi* | [**provisioning_strategy_pk_get**](docs/ProvisioningStrategyApi.md#provisioning_strategy_pk_get) | **GET** /provisioning-strategy/{pk} |
|
|
145
147
|
*AutosdeOpenapiClient::ProvisioningStrategyApi* | [**provisioning_strategy_post**](docs/ProvisioningStrategyApi.md#provisioning_strategy_post) | **POST** /provisioning-strategy |
|
|
148
|
+
*AutosdeOpenapiClient::RefreshSystemApi* | [**refresh_system_post**](docs/RefreshSystemApi.md#refresh_system_post) | **POST** /refresh-system |
|
|
146
149
|
*AutosdeOpenapiClient::ServiceApi* | [**services_get**](docs/ServiceApi.md#services_get) | **GET** /services |
|
|
147
150
|
*AutosdeOpenapiClient::ServiceApi* | [**services_pk_delete**](docs/ServiceApi.md#services_pk_delete) | **DELETE** /services/{pk} |
|
|
148
151
|
*AutosdeOpenapiClient::ServiceApi* | [**services_pk_get**](docs/ServiceApi.md#services_pk_get) | **GET** /services/{pk} |
|
|
@@ -228,6 +231,7 @@ Class | Method | HTTP request | Description
|
|
|
228
231
|
- [AutosdeOpenapiClient::NativeCapability](docs/NativeCapability.md)
|
|
229
232
|
- [AutosdeOpenapiClient::Profile](docs/Profile.md)
|
|
230
233
|
- [AutosdeOpenapiClient::ProvisioningStrategy](docs/ProvisioningStrategy.md)
|
|
234
|
+
- [AutosdeOpenapiClient::RefreshSystem](docs/RefreshSystem.md)
|
|
231
235
|
- [AutosdeOpenapiClient::Service](docs/Service.md)
|
|
232
236
|
- [AutosdeOpenapiClient::ServiceAbstractCapabilityValue](docs/ServiceAbstractCapabilityValue.md)
|
|
233
237
|
- [AutosdeOpenapiClient::ServiceCreate](docs/ServiceCreate.md)
|
data/docs/Event.md
CHANGED
|
@@ -4,12 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **created_at** | **Time** | created_at | [optional] |
|
|
7
8
|
| **description** | **String** | description | [optional] |
|
|
8
9
|
| **error_code** | **String** | error_code | [optional] |
|
|
9
10
|
| **event_id** | **Integer** | event_id | [optional] |
|
|
10
11
|
| **event_type** | **String** | event_type | [optional] |
|
|
11
12
|
| **fixed** | **String** | fixed | [optional] |
|
|
12
13
|
| **last_timestamp** | **Time** | last_timestamp | [optional] |
|
|
14
|
+
| **refresh_interval** | **Integer** | refresh_interval | [optional] |
|
|
13
15
|
| **storage_system** | [**StorageSystem**](StorageSystem.md) | | [optional] |
|
|
14
16
|
| **uuid** | **String** | uuid | [optional] |
|
|
15
17
|
|
|
@@ -19,12 +21,14 @@
|
|
|
19
21
|
require 'autosde_openapi_client'
|
|
20
22
|
|
|
21
23
|
instance = AutosdeOpenapiClient::Event.new(
|
|
24
|
+
created_at: null,
|
|
22
25
|
description: null,
|
|
23
26
|
error_code: null,
|
|
24
27
|
event_id: null,
|
|
25
28
|
event_type: null,
|
|
26
29
|
fixed: null,
|
|
27
30
|
last_timestamp: null,
|
|
31
|
+
refresh_interval: null,
|
|
28
32
|
storage_system: null,
|
|
29
33
|
uuid: null
|
|
30
34
|
)
|
data/docs/Job.md
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
7
|
| **date_finished** | **Time** | date_finished | [optional] |
|
|
8
8
|
| **date_started** | **Time** | date_started | [optional] |
|
|
9
|
+
| **extra** | **String** | extra | [optional] |
|
|
9
10
|
| **status** | **String** | status | [optional] |
|
|
10
11
|
| **task_args** | **String** | task_args | [optional] |
|
|
11
12
|
| **task_id** | **String** | task_id | [optional] |
|
|
@@ -20,6 +21,7 @@ require 'autosde_openapi_client'
|
|
|
20
21
|
instance = AutosdeOpenapiClient::Job.new(
|
|
21
22
|
date_finished: null,
|
|
22
23
|
date_started: null,
|
|
24
|
+
extra: null,
|
|
23
25
|
status: null,
|
|
24
26
|
task_args: null,
|
|
25
27
|
task_id: null,
|
data/docs/JobApi.md
CHANGED
|
@@ -5,6 +5,8 @@ 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} | |
|
|
8
10
|
| [**jobs_post**](JobApi.md#jobs_post) | **POST** /jobs | |
|
|
9
11
|
|
|
10
12
|
|
|
@@ -72,6 +74,140 @@ This endpoint does not need any parameter.
|
|
|
72
74
|
- **Accept**: */*
|
|
73
75
|
|
|
74
76
|
|
|
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
|
+
|
|
75
211
|
## jobs_post
|
|
76
212
|
|
|
77
213
|
> <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_kwargs** | **String** | task_kwargs | [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_kwargs: null,
|
|
17
17
|
task_name: null
|
|
18
18
|
)
|
|
19
19
|
```
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# AutosdeOpenapiClient::RefreshSystem
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **uuid** | **String** | uuid | [optional] |
|
|
8
|
+
|
|
9
|
+
## Example
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
require 'autosde_openapi_client'
|
|
13
|
+
|
|
14
|
+
instance = AutosdeOpenapiClient::RefreshSystem.new(
|
|
15
|
+
uuid: null
|
|
16
|
+
)
|
|
17
|
+
```
|
|
18
|
+
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
# AutosdeOpenapiClient::RefreshSystemApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost:9000/site-manager/api/v1/engine*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**refresh_system_post**](RefreshSystemApi.md#refresh_system_post) | **POST** /refresh-system | |
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
## refresh_system_post
|
|
11
|
+
|
|
12
|
+
> <RefreshSystem> refresh_system_post(storage_system_create)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Examples
|
|
17
|
+
|
|
18
|
+
```ruby
|
|
19
|
+
require 'time'
|
|
20
|
+
require 'autosde_openapi_client'
|
|
21
|
+
# setup authorization
|
|
22
|
+
AutosdeOpenapiClient.configure do |config|
|
|
23
|
+
# Configure Bearer authorization: bearerAuth
|
|
24
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
api_instance = AutosdeOpenapiClient::RefreshSystemApi.new
|
|
28
|
+
storage_system_create = AutosdeOpenapiClient::StorageSystemCreate.new # StorageSystemCreate |
|
|
29
|
+
|
|
30
|
+
begin
|
|
31
|
+
|
|
32
|
+
result = api_instance.refresh_system_post(storage_system_create)
|
|
33
|
+
p result
|
|
34
|
+
rescue AutosdeOpenapiClient::ApiError => e
|
|
35
|
+
puts "Error when calling RefreshSystemApi->refresh_system_post: #{e}"
|
|
36
|
+
end
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
#### Using the refresh_system_post_with_http_info variant
|
|
40
|
+
|
|
41
|
+
This returns an Array which contains the response data, status code and headers.
|
|
42
|
+
|
|
43
|
+
> <Array(<RefreshSystem>, Integer, Hash)> refresh_system_post_with_http_info(storage_system_create)
|
|
44
|
+
|
|
45
|
+
```ruby
|
|
46
|
+
begin
|
|
47
|
+
|
|
48
|
+
data, status_code, headers = api_instance.refresh_system_post_with_http_info(storage_system_create)
|
|
49
|
+
p status_code # => 2xx
|
|
50
|
+
p headers # => { ... }
|
|
51
|
+
p data # => <RefreshSystem>
|
|
52
|
+
rescue AutosdeOpenapiClient::ApiError => e
|
|
53
|
+
puts "Error when calling RefreshSystemApi->refresh_system_post_with_http_info: #{e}"
|
|
54
|
+
end
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
### Parameters
|
|
58
|
+
|
|
59
|
+
| Name | Type | Description | Notes |
|
|
60
|
+
| ---- | ---- | ----------- | ----- |
|
|
61
|
+
| **storage_system_create** | [**StorageSystemCreate**](StorageSystemCreate.md) | | |
|
|
62
|
+
|
|
63
|
+
### Return type
|
|
64
|
+
|
|
65
|
+
[**RefreshSystem**](RefreshSystem.md)
|
|
66
|
+
|
|
67
|
+
### Authorization
|
|
68
|
+
|
|
69
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
70
|
+
|
|
71
|
+
### HTTP request headers
|
|
72
|
+
|
|
73
|
+
- **Content-Type**: application/json
|
|
74
|
+
- **Accept**: */*
|
|
75
|
+
|
|
@@ -72,6 +72,124 @@ 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
|
+
|
|
75
193
|
# @param job_create [JobCreate]
|
|
76
194
|
# @param [Hash] opts the optional parameters
|
|
77
195
|
# @return [Job]
|
|
@@ -0,0 +1,83 @@
|
|
|
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 RefreshSystemApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# @param storage_system_create [StorageSystemCreate]
|
|
23
|
+
# @param [Hash] opts the optional parameters
|
|
24
|
+
# @return [RefreshSystem]
|
|
25
|
+
def refresh_system_post(storage_system_create, opts = {})
|
|
26
|
+
data, _status_code, _headers = refresh_system_post_with_http_info(storage_system_create, opts)
|
|
27
|
+
data
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# @param storage_system_create [StorageSystemCreate]
|
|
31
|
+
# @param [Hash] opts the optional parameters
|
|
32
|
+
# @return [Array<(RefreshSystem, Integer, Hash)>] RefreshSystem data, response status code and response headers
|
|
33
|
+
def refresh_system_post_with_http_info(storage_system_create, opts = {})
|
|
34
|
+
if @api_client.config.debugging
|
|
35
|
+
@api_client.config.logger.debug 'Calling API: RefreshSystemApi.refresh_system_post ...'
|
|
36
|
+
end
|
|
37
|
+
# verify the required parameter 'storage_system_create' is set
|
|
38
|
+
if @api_client.config.client_side_validation && storage_system_create.nil?
|
|
39
|
+
fail ArgumentError, "Missing the required parameter 'storage_system_create' when calling RefreshSystemApi.refresh_system_post"
|
|
40
|
+
end
|
|
41
|
+
# resource path
|
|
42
|
+
local_var_path = '/refresh-system'
|
|
43
|
+
|
|
44
|
+
# query parameters
|
|
45
|
+
query_params = opts[:query_params] || {}
|
|
46
|
+
|
|
47
|
+
# header parameters
|
|
48
|
+
header_params = opts[:header_params] || {}
|
|
49
|
+
# HTTP header 'Accept' (if needed)
|
|
50
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
51
|
+
# HTTP header 'Content-Type'
|
|
52
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
53
|
+
|
|
54
|
+
# form parameters
|
|
55
|
+
form_params = opts[:form_params] || {}
|
|
56
|
+
|
|
57
|
+
# http body (model)
|
|
58
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(storage_system_create)
|
|
59
|
+
|
|
60
|
+
# return_type
|
|
61
|
+
return_type = opts[:debug_return_type] || 'RefreshSystem'
|
|
62
|
+
|
|
63
|
+
# auth_names
|
|
64
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
65
|
+
|
|
66
|
+
new_options = opts.merge(
|
|
67
|
+
:operation => :"RefreshSystemApi.refresh_system_post",
|
|
68
|
+
:header_params => header_params,
|
|
69
|
+
:query_params => query_params,
|
|
70
|
+
:form_params => form_params,
|
|
71
|
+
:body => post_body,
|
|
72
|
+
:auth_names => auth_names,
|
|
73
|
+
:return_type => return_type
|
|
74
|
+
)
|
|
75
|
+
|
|
76
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
77
|
+
if @api_client.config.debugging
|
|
78
|
+
@api_client.config.logger.debug "API called: RefreshSystemApi#refresh_system_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
79
|
+
end
|
|
80
|
+
return data, status_code, headers
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
end
|
|
@@ -16,6 +16,9 @@ require 'time'
|
|
|
16
16
|
module AutosdeOpenapiClient
|
|
17
17
|
# Event object represents storage system alerts and messages.
|
|
18
18
|
class Event
|
|
19
|
+
# created_at
|
|
20
|
+
attr_accessor :created_at
|
|
21
|
+
|
|
19
22
|
# description
|
|
20
23
|
attr_accessor :description
|
|
21
24
|
|
|
@@ -34,6 +37,9 @@ module AutosdeOpenapiClient
|
|
|
34
37
|
# last_timestamp
|
|
35
38
|
attr_accessor :last_timestamp
|
|
36
39
|
|
|
40
|
+
# refresh_interval
|
|
41
|
+
attr_accessor :refresh_interval
|
|
42
|
+
|
|
37
43
|
attr_accessor :storage_system
|
|
38
44
|
|
|
39
45
|
# uuid
|
|
@@ -42,12 +48,14 @@ module AutosdeOpenapiClient
|
|
|
42
48
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
43
49
|
def self.attribute_map
|
|
44
50
|
{
|
|
51
|
+
:'created_at' => :'created_at',
|
|
45
52
|
:'description' => :'description',
|
|
46
53
|
:'error_code' => :'error_code',
|
|
47
54
|
:'event_id' => :'event_id',
|
|
48
55
|
:'event_type' => :'event_type',
|
|
49
56
|
:'fixed' => :'fixed',
|
|
50
57
|
:'last_timestamp' => :'last_timestamp',
|
|
58
|
+
:'refresh_interval' => :'refresh_interval',
|
|
51
59
|
:'storage_system' => :'storage_system',
|
|
52
60
|
:'uuid' => :'uuid'
|
|
53
61
|
}
|
|
@@ -61,12 +69,14 @@ module AutosdeOpenapiClient
|
|
|
61
69
|
# Attribute type mapping.
|
|
62
70
|
def self.openapi_types
|
|
63
71
|
{
|
|
72
|
+
:'created_at' => :'Time',
|
|
64
73
|
:'description' => :'String',
|
|
65
74
|
:'error_code' => :'String',
|
|
66
75
|
:'event_id' => :'Integer',
|
|
67
76
|
:'event_type' => :'String',
|
|
68
77
|
:'fixed' => :'String',
|
|
69
78
|
:'last_timestamp' => :'Time',
|
|
79
|
+
:'refresh_interval' => :'Integer',
|
|
70
80
|
:'storage_system' => :'StorageSystem',
|
|
71
81
|
:'uuid' => :'String'
|
|
72
82
|
}
|
|
@@ -93,6 +103,10 @@ module AutosdeOpenapiClient
|
|
|
93
103
|
h[k.to_sym] = v
|
|
94
104
|
}
|
|
95
105
|
|
|
106
|
+
if attributes.key?(:'created_at')
|
|
107
|
+
self.created_at = attributes[:'created_at']
|
|
108
|
+
end
|
|
109
|
+
|
|
96
110
|
if attributes.key?(:'description')
|
|
97
111
|
self.description = attributes[:'description']
|
|
98
112
|
end
|
|
@@ -117,6 +131,10 @@ module AutosdeOpenapiClient
|
|
|
117
131
|
self.last_timestamp = attributes[:'last_timestamp']
|
|
118
132
|
end
|
|
119
133
|
|
|
134
|
+
if attributes.key?(:'refresh_interval')
|
|
135
|
+
self.refresh_interval = attributes[:'refresh_interval']
|
|
136
|
+
end
|
|
137
|
+
|
|
120
138
|
if attributes.key?(:'storage_system')
|
|
121
139
|
self.storage_system = attributes[:'storage_system']
|
|
122
140
|
end
|
|
@@ -144,12 +162,14 @@ module AutosdeOpenapiClient
|
|
|
144
162
|
def ==(o)
|
|
145
163
|
return true if self.equal?(o)
|
|
146
164
|
self.class == o.class &&
|
|
165
|
+
created_at == o.created_at &&
|
|
147
166
|
description == o.description &&
|
|
148
167
|
error_code == o.error_code &&
|
|
149
168
|
event_id == o.event_id &&
|
|
150
169
|
event_type == o.event_type &&
|
|
151
170
|
fixed == o.fixed &&
|
|
152
171
|
last_timestamp == o.last_timestamp &&
|
|
172
|
+
refresh_interval == o.refresh_interval &&
|
|
153
173
|
storage_system == o.storage_system &&
|
|
154
174
|
uuid == o.uuid
|
|
155
175
|
end
|
|
@@ -163,7 +183,7 @@ module AutosdeOpenapiClient
|
|
|
163
183
|
# Calculates hash code according to all attributes.
|
|
164
184
|
# @return [Integer] Hash code
|
|
165
185
|
def hash
|
|
166
|
-
[description, error_code, event_id, event_type, fixed, last_timestamp, storage_system, uuid].hash
|
|
186
|
+
[created_at, description, error_code, event_id, event_type, fixed, last_timestamp, refresh_interval, storage_system, uuid].hash
|
|
167
187
|
end
|
|
168
188
|
|
|
169
189
|
# Builds the object from hash
|
|
@@ -22,6 +22,9 @@ module AutosdeOpenapiClient
|
|
|
22
22
|
# date_started
|
|
23
23
|
attr_accessor :date_started
|
|
24
24
|
|
|
25
|
+
# extra
|
|
26
|
+
attr_accessor :extra
|
|
27
|
+
|
|
25
28
|
# status
|
|
26
29
|
attr_accessor :status
|
|
27
30
|
|
|
@@ -42,6 +45,7 @@ module AutosdeOpenapiClient
|
|
|
42
45
|
{
|
|
43
46
|
:'date_finished' => :'date_finished',
|
|
44
47
|
:'date_started' => :'date_started',
|
|
48
|
+
:'extra' => :'extra',
|
|
45
49
|
:'status' => :'status',
|
|
46
50
|
:'task_args' => :'task_args',
|
|
47
51
|
:'task_id' => :'task_id',
|
|
@@ -60,6 +64,7 @@ module AutosdeOpenapiClient
|
|
|
60
64
|
{
|
|
61
65
|
:'date_finished' => :'Time',
|
|
62
66
|
:'date_started' => :'Time',
|
|
67
|
+
:'extra' => :'String',
|
|
63
68
|
:'status' => :'String',
|
|
64
69
|
:'task_args' => :'String',
|
|
65
70
|
:'task_id' => :'String',
|
|
@@ -97,6 +102,10 @@ module AutosdeOpenapiClient
|
|
|
97
102
|
self.date_started = attributes[:'date_started']
|
|
98
103
|
end
|
|
99
104
|
|
|
105
|
+
if attributes.key?(:'extra')
|
|
106
|
+
self.extra = attributes[:'extra']
|
|
107
|
+
end
|
|
108
|
+
|
|
100
109
|
if attributes.key?(:'status')
|
|
101
110
|
self.status = attributes[:'status']
|
|
102
111
|
end
|
|
@@ -138,6 +147,7 @@ module AutosdeOpenapiClient
|
|
|
138
147
|
self.class == o.class &&
|
|
139
148
|
date_finished == o.date_finished &&
|
|
140
149
|
date_started == o.date_started &&
|
|
150
|
+
extra == o.extra &&
|
|
141
151
|
status == o.status &&
|
|
142
152
|
task_args == o.task_args &&
|
|
143
153
|
task_id == o.task_id &&
|
|
@@ -154,7 +164,7 @@ module AutosdeOpenapiClient
|
|
|
154
164
|
# Calculates hash code according to all attributes.
|
|
155
165
|
# @return [Integer] Hash code
|
|
156
166
|
def hash
|
|
157
|
-
[date_finished, date_started, status, task_args, task_id, task_kwargs, task_name].hash
|
|
167
|
+
[date_finished, date_started, extra, status, task_args, task_id, task_kwargs, task_name].hash
|
|
158
168
|
end
|
|
159
169
|
|
|
160
170
|
# Builds the object from hash
|
|
@@ -16,8 +16,8 @@ require 'time'
|
|
|
16
16
|
module AutosdeOpenapiClient
|
|
17
17
|
# JobCreate
|
|
18
18
|
class JobCreate
|
|
19
|
-
#
|
|
20
|
-
attr_accessor :
|
|
19
|
+
# task_kwargs
|
|
20
|
+
attr_accessor :task_kwargs
|
|
21
21
|
|
|
22
22
|
# task_name
|
|
23
23
|
attr_accessor :task_name
|
|
@@ -25,7 +25,7 @@ module AutosdeOpenapiClient
|
|
|
25
25
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
26
26
|
def self.attribute_map
|
|
27
27
|
{
|
|
28
|
-
:'
|
|
28
|
+
:'task_kwargs' => :'task_kwargs',
|
|
29
29
|
:'task_name' => :'task_name'
|
|
30
30
|
}
|
|
31
31
|
end
|
|
@@ -38,7 +38,7 @@ module AutosdeOpenapiClient
|
|
|
38
38
|
# Attribute type mapping.
|
|
39
39
|
def self.openapi_types
|
|
40
40
|
{
|
|
41
|
-
:'
|
|
41
|
+
:'task_kwargs' => :'String',
|
|
42
42
|
:'task_name' => :'String'
|
|
43
43
|
}
|
|
44
44
|
end
|
|
@@ -64,8 +64,8 @@ module AutosdeOpenapiClient
|
|
|
64
64
|
h[k.to_sym] = v
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
if attributes.key?(:'
|
|
68
|
-
self.
|
|
67
|
+
if attributes.key?(:'task_kwargs')
|
|
68
|
+
self.task_kwargs = attributes[:'task_kwargs']
|
|
69
69
|
end
|
|
70
70
|
|
|
71
71
|
if attributes.key?(:'task_name')
|
|
@@ -91,7 +91,7 @@ module AutosdeOpenapiClient
|
|
|
91
91
|
def ==(o)
|
|
92
92
|
return true if self.equal?(o)
|
|
93
93
|
self.class == o.class &&
|
|
94
|
-
|
|
94
|
+
task_kwargs == o.task_kwargs &&
|
|
95
95
|
task_name == o.task_name
|
|
96
96
|
end
|
|
97
97
|
|
|
@@ -104,7 +104,7 @@ module AutosdeOpenapiClient
|
|
|
104
104
|
# Calculates hash code according to all attributes.
|
|
105
105
|
# @return [Integer] Hash code
|
|
106
106
|
def hash
|
|
107
|
-
[
|
|
107
|
+
[task_kwargs, task_name].hash
|
|
108
108
|
end
|
|
109
109
|
|
|
110
110
|
# Builds the object from hash
|
|
@@ -0,0 +1,220 @@
|
|
|
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
|
+
# RefreshSystem object represents refreshing of the storage system.
|
|
18
|
+
class RefreshSystem
|
|
19
|
+
# uuid
|
|
20
|
+
attr_accessor :uuid
|
|
21
|
+
|
|
22
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
23
|
+
def self.attribute_map
|
|
24
|
+
{
|
|
25
|
+
:'uuid' => :'uuid'
|
|
26
|
+
}
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
# Returns all the JSON keys this model knows about
|
|
30
|
+
def self.acceptable_attributes
|
|
31
|
+
attribute_map.values
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# Attribute type mapping.
|
|
35
|
+
def self.openapi_types
|
|
36
|
+
{
|
|
37
|
+
:'uuid' => :'String'
|
|
38
|
+
}
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
# List of attributes with nullable: true
|
|
42
|
+
def self.openapi_nullable
|
|
43
|
+
Set.new([
|
|
44
|
+
])
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
# Initializes the object
|
|
48
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
49
|
+
def initialize(attributes = {})
|
|
50
|
+
if (!attributes.is_a?(Hash))
|
|
51
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `AutosdeOpenapiClient::RefreshSystem` initialize method"
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
55
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
56
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
57
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `AutosdeOpenapiClient::RefreshSystem`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
58
|
+
end
|
|
59
|
+
h[k.to_sym] = v
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
if attributes.key?(:'uuid')
|
|
63
|
+
self.uuid = attributes[:'uuid']
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
68
|
+
# @return Array for valid properties with the reasons
|
|
69
|
+
def list_invalid_properties
|
|
70
|
+
invalid_properties = Array.new
|
|
71
|
+
invalid_properties
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
# Check to see if the all the properties in the model are valid
|
|
75
|
+
# @return true if the model is valid
|
|
76
|
+
def valid?
|
|
77
|
+
true
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
# Checks equality by comparing each attribute.
|
|
81
|
+
# @param [Object] Object to be compared
|
|
82
|
+
def ==(o)
|
|
83
|
+
return true if self.equal?(o)
|
|
84
|
+
self.class == o.class &&
|
|
85
|
+
uuid == o.uuid
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# @see the `==` method
|
|
89
|
+
# @param [Object] Object to be compared
|
|
90
|
+
def eql?(o)
|
|
91
|
+
self == o
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
# Calculates hash code according to all attributes.
|
|
95
|
+
# @return [Integer] Hash code
|
|
96
|
+
def hash
|
|
97
|
+
[uuid].hash
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
# Builds the object from hash
|
|
101
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
102
|
+
# @return [Object] Returns the model itself
|
|
103
|
+
def self.build_from_hash(attributes)
|
|
104
|
+
new.build_from_hash(attributes)
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
# Builds the object from hash
|
|
108
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
109
|
+
# @return [Object] Returns the model itself
|
|
110
|
+
def build_from_hash(attributes)
|
|
111
|
+
return nil unless attributes.is_a?(Hash)
|
|
112
|
+
self.class.openapi_types.each_pair do |key, type|
|
|
113
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
|
114
|
+
self.send("#{key}=", nil)
|
|
115
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
116
|
+
# check to ensure the input is an array given that the attribute
|
|
117
|
+
# is documented as an array but the input is not
|
|
118
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
119
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
120
|
+
end
|
|
121
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
122
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
123
|
+
end
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
self
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
# Deserializes the data based on type
|
|
130
|
+
# @param string type Data type
|
|
131
|
+
# @param string value Value to be deserialized
|
|
132
|
+
# @return [Object] Deserialized data
|
|
133
|
+
def _deserialize(type, value)
|
|
134
|
+
case type.to_sym
|
|
135
|
+
when :Time
|
|
136
|
+
Time.parse(value)
|
|
137
|
+
when :Date
|
|
138
|
+
Date.parse(value)
|
|
139
|
+
when :String
|
|
140
|
+
value.to_s
|
|
141
|
+
when :Integer
|
|
142
|
+
value.to_i
|
|
143
|
+
when :Float
|
|
144
|
+
value.to_f
|
|
145
|
+
when :Boolean
|
|
146
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
147
|
+
true
|
|
148
|
+
else
|
|
149
|
+
false
|
|
150
|
+
end
|
|
151
|
+
when :Object
|
|
152
|
+
# generic object (usually a Hash), return directly
|
|
153
|
+
value
|
|
154
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
155
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
156
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
157
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
158
|
+
k_type = Regexp.last_match[:k_type]
|
|
159
|
+
v_type = Regexp.last_match[:v_type]
|
|
160
|
+
{}.tap do |hash|
|
|
161
|
+
value.each do |k, v|
|
|
162
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
163
|
+
end
|
|
164
|
+
end
|
|
165
|
+
else # model
|
|
166
|
+
# models (e.g. Pet) or oneOf
|
|
167
|
+
klass = AutosdeOpenapiClient.const_get(type)
|
|
168
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
169
|
+
end
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
# Returns the string representation of the object
|
|
173
|
+
# @return [String] String presentation of the object
|
|
174
|
+
def to_s
|
|
175
|
+
to_hash.to_s
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
179
|
+
# @return [Hash] Returns the object in the form of hash
|
|
180
|
+
def to_body
|
|
181
|
+
to_hash
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
# Returns the object in the form of hash
|
|
185
|
+
# @return [Hash] Returns the object in the form of hash
|
|
186
|
+
def to_hash
|
|
187
|
+
hash = {}
|
|
188
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
189
|
+
value = self.send(attr)
|
|
190
|
+
if value.nil?
|
|
191
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
192
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
193
|
+
end
|
|
194
|
+
|
|
195
|
+
hash[param] = _to_hash(value)
|
|
196
|
+
end
|
|
197
|
+
hash
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
# Outputs non-array value in the form of hash
|
|
201
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
202
|
+
# @param [Object] value Any valid value
|
|
203
|
+
# @return [Hash] Returns the value in the form of hash
|
|
204
|
+
def _to_hash(value)
|
|
205
|
+
if value.is_a?(Array)
|
|
206
|
+
value.compact.map { |v| _to_hash(v) }
|
|
207
|
+
elsif value.is_a?(Hash)
|
|
208
|
+
{}.tap do |hash|
|
|
209
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
210
|
+
end
|
|
211
|
+
elsif value.respond_to? :to_hash
|
|
212
|
+
value.to_hash
|
|
213
|
+
else
|
|
214
|
+
value
|
|
215
|
+
end
|
|
216
|
+
end
|
|
217
|
+
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
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.25
|
|
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.25'
|
|
15
15
|
end
|
|
@@ -46,6 +46,7 @@ require 'autosde_openapi_client/models/job_create'
|
|
|
46
46
|
require 'autosde_openapi_client/models/native_capability'
|
|
47
47
|
require 'autosde_openapi_client/models/profile'
|
|
48
48
|
require 'autosde_openapi_client/models/provisioning_strategy'
|
|
49
|
+
require 'autosde_openapi_client/models/refresh_system'
|
|
49
50
|
require 'autosde_openapi_client/models/service'
|
|
50
51
|
require 'autosde_openapi_client/models/service_abstract_capability_value'
|
|
51
52
|
require 'autosde_openapi_client/models/service_create'
|
|
@@ -97,6 +98,7 @@ require 'autosde_openapi_client/api/job_api'
|
|
|
97
98
|
require 'autosde_openapi_client/api/native_capability_api'
|
|
98
99
|
require 'autosde_openapi_client/api/profile_api'
|
|
99
100
|
require 'autosde_openapi_client/api/provisioning_strategy_api'
|
|
101
|
+
require 'autosde_openapi_client/api/refresh_system_api'
|
|
100
102
|
require 'autosde_openapi_client/api/service_api'
|
|
101
103
|
require 'autosde_openapi_client/api/service_resource_attachment_api'
|
|
102
104
|
require 'autosde_openapi_client/api/snapshot_api'
|
data/spec/api/job_api_spec.rb
CHANGED
|
@@ -41,6 +41,26 @@ describe 'JobApi' do
|
|
|
41
41
|
end
|
|
42
42
|
end
|
|
43
43
|
|
|
44
|
+
# unit tests for jobs_pk_delete
|
|
45
|
+
# @param pk
|
|
46
|
+
# @param [Hash] opts the optional parameters
|
|
47
|
+
# @return [Array<Job>]
|
|
48
|
+
describe 'jobs_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 jobs_pk_get
|
|
55
|
+
# @param pk
|
|
56
|
+
# @param [Hash] opts the optional parameters
|
|
57
|
+
# @return [Array<Job>]
|
|
58
|
+
describe 'jobs_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
|
+
|
|
44
64
|
# unit tests for jobs_post
|
|
45
65
|
# @param job_create
|
|
46
66
|
# @param [Hash] opts the optional parameters
|
|
@@ -0,0 +1,45 @@
|
|
|
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::RefreshSystemApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'RefreshSystemApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = AutosdeOpenapiClient::RefreshSystemApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of RefreshSystemApi' do
|
|
30
|
+
it 'should create an instance of RefreshSystemApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(AutosdeOpenapiClient::RefreshSystemApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for refresh_system_post
|
|
36
|
+
# @param storage_system_create
|
|
37
|
+
# @param [Hash] opts the optional parameters
|
|
38
|
+
# @return [RefreshSystem]
|
|
39
|
+
describe 'refresh_system_post test' do
|
|
40
|
+
it 'should work' do
|
|
41
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
end
|
data/spec/models/event_spec.rb
CHANGED
|
@@ -25,6 +25,12 @@ describe AutosdeOpenapiClient::Event do
|
|
|
25
25
|
expect(instance).to be_instance_of(AutosdeOpenapiClient::Event)
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
|
+
describe 'test attribute "created_at"' 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
|
+
|
|
28
34
|
describe 'test attribute "description"' do
|
|
29
35
|
it 'should work' do
|
|
30
36
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -61,6 +67,12 @@ describe AutosdeOpenapiClient::Event do
|
|
|
61
67
|
end
|
|
62
68
|
end
|
|
63
69
|
|
|
70
|
+
describe 'test attribute "refresh_interval"' 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
|
+
|
|
64
76
|
describe 'test attribute "storage_system"' do
|
|
65
77
|
it 'should work' do
|
|
66
78
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -25,7 +25,7 @@ describe AutosdeOpenapiClient::JobCreate do
|
|
|
25
25
|
expect(instance).to be_instance_of(AutosdeOpenapiClient::JobCreate)
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
|
-
describe 'test attribute "
|
|
28
|
+
describe 'test attribute "task_kwargs"' do
|
|
29
29
|
it 'should work' do
|
|
30
30
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
31
31
|
end
|
data/spec/models/job_spec.rb
CHANGED
|
@@ -37,6 +37,12 @@ describe AutosdeOpenapiClient::Job do
|
|
|
37
37
|
end
|
|
38
38
|
end
|
|
39
39
|
|
|
40
|
+
describe 'test attribute "extra"' 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
|
+
|
|
40
46
|
describe 'test attribute "status"' do
|
|
41
47
|
it 'should work' do
|
|
42
48
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -0,0 +1,34 @@
|
|
|
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::RefreshSystem
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe AutosdeOpenapiClient::RefreshSystem do
|
|
21
|
+
let(:instance) { AutosdeOpenapiClient::RefreshSystem.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of RefreshSystem' do
|
|
24
|
+
it 'should create an instance of RefreshSystem' do
|
|
25
|
+
expect(instance).to be_instance_of(AutosdeOpenapiClient::RefreshSystem)
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
describe 'test attribute "uuid"' do
|
|
29
|
+
it 'should work' do
|
|
30
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
end
|
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.25
|
|
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-07-
|
|
11
|
+
date: 2022-07-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: typhoeus
|
|
@@ -108,6 +108,8 @@ files:
|
|
|
108
108
|
- docs/ProfileApi.md
|
|
109
109
|
- docs/ProvisioningStrategy.md
|
|
110
110
|
- docs/ProvisioningStrategyApi.md
|
|
111
|
+
- docs/RefreshSystem.md
|
|
112
|
+
- docs/RefreshSystemApi.md
|
|
111
113
|
- docs/Service.md
|
|
112
114
|
- docs/ServiceAbstractCapabilityValue.md
|
|
113
115
|
- docs/ServiceApi.md
|
|
@@ -172,6 +174,7 @@ files:
|
|
|
172
174
|
- lib/autosde_openapi_client/api/native_capability_api.rb
|
|
173
175
|
- lib/autosde_openapi_client/api/profile_api.rb
|
|
174
176
|
- lib/autosde_openapi_client/api/provisioning_strategy_api.rb
|
|
177
|
+
- lib/autosde_openapi_client/api/refresh_system_api.rb
|
|
175
178
|
- lib/autosde_openapi_client/api/service_api.rb
|
|
176
179
|
- lib/autosde_openapi_client/api/service_resource_attachment_api.rb
|
|
177
180
|
- lib/autosde_openapi_client/api/snapshot_api.rb
|
|
@@ -217,6 +220,7 @@ files:
|
|
|
217
220
|
- lib/autosde_openapi_client/models/native_capability.rb
|
|
218
221
|
- lib/autosde_openapi_client/models/profile.rb
|
|
219
222
|
- lib/autosde_openapi_client/models/provisioning_strategy.rb
|
|
223
|
+
- lib/autosde_openapi_client/models/refresh_system.rb
|
|
220
224
|
- lib/autosde_openapi_client/models/service.rb
|
|
221
225
|
- lib/autosde_openapi_client/models/service_abstract_capability_value.rb
|
|
222
226
|
- lib/autosde_openapi_client/models/service_create.rb
|
|
@@ -267,6 +271,7 @@ files:
|
|
|
267
271
|
- spec/api/native_capability_api_spec.rb
|
|
268
272
|
- spec/api/profile_api_spec.rb
|
|
269
273
|
- spec/api/provisioning_strategy_api_spec.rb
|
|
274
|
+
- spec/api/refresh_system_api_spec.rb
|
|
270
275
|
- spec/api/service_api_spec.rb
|
|
271
276
|
- spec/api/service_resource_attachment_api_spec.rb
|
|
272
277
|
- spec/api/snapshot_api_spec.rb
|
|
@@ -311,6 +316,7 @@ files:
|
|
|
311
316
|
- spec/models/native_capability_spec.rb
|
|
312
317
|
- spec/models/profile_spec.rb
|
|
313
318
|
- spec/models/provisioning_strategy_spec.rb
|
|
319
|
+
- spec/models/refresh_system_spec.rb
|
|
314
320
|
- spec/models/service_abstract_capability_value_spec.rb
|
|
315
321
|
- spec/models/service_create_spec.rb
|
|
316
322
|
- spec/models/service_resource_attachment_spec.rb
|
|
@@ -378,6 +384,7 @@ test_files:
|
|
|
378
384
|
- spec/api/profile_api_spec.rb
|
|
379
385
|
- spec/api/volume_safe_delete_api_spec.rb
|
|
380
386
|
- spec/api/volume_api_spec.rb
|
|
387
|
+
- spec/api/refresh_system_api_spec.rb
|
|
381
388
|
- spec/api/address_api_spec.rb
|
|
382
389
|
- spec/api/host_cluster_volume_mapping_api_spec.rb
|
|
383
390
|
- spec/api/service_resource_attachment_api_spec.rb
|
|
@@ -411,6 +418,7 @@ test_files:
|
|
|
411
418
|
- spec/models/provisioning_strategy_spec.rb
|
|
412
419
|
- spec/models/event_spec.rb
|
|
413
420
|
- spec/models/host_cluster_membership_spec.rb
|
|
421
|
+
- spec/models/refresh_system_spec.rb
|
|
414
422
|
- spec/models/validate_system_spec.rb
|
|
415
423
|
- spec/models/capability_translation_spec.rb
|
|
416
424
|
- spec/models/storage_host_volume_mapping_spec.rb
|