autosde_openapi_client 1.0.48 → 1.0.49
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 +7 -0
- data/docs/HostCluster.md +3 -1
- data/docs/HostClusterCreate.md +3 -1
- data/docs/HostClusterVolumeMapping.md +26 -0
- data/docs/HostClusterVolumeMappingApi.md +276 -0
- data/docs/HostClusterVolumeMappingCreate.md +24 -0
- data/docs/HostClusterVolumeMappingResponse.md +26 -0
- data/lib/autosde_openapi_client/api/host_cluster_volume_mapping_api.rb +254 -0
- data/lib/autosde_openapi_client/models/host_cluster.rb +13 -4
- data/lib/autosde_openapi_client/models/host_cluster_create.rb +13 -4
- data/lib/autosde_openapi_client/models/host_cluster_volume_mapping.rb +299 -0
- data/lib/autosde_openapi_client/models/host_cluster_volume_mapping_create.rb +291 -0
- data/lib/autosde_openapi_client/models/host_cluster_volume_mapping_response.rb +301 -0
- data/lib/autosde_openapi_client/version.rb +2 -2
- data/lib/autosde_openapi_client.rb +4 -0
- data/spec/api/host_cluster_volume_mapping_api_spec.rb +74 -0
- data/spec/models/host_cluster_create_spec.rb +6 -0
- data/spec/models/host_cluster_spec.rb +6 -0
- data/spec/models/host_cluster_volume_mapping_create_spec.rb +56 -0
- data/spec/models/host_cluster_volume_mapping_response_spec.rb +62 -0
- data/spec/models/host_cluster_volume_mapping_spec.rb +62 -0
- metadata +76 -60
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a1c5213044fbd0322283bd46dfd2bce1edb8251883a019e6619eb80fd2bd0912
|
4
|
+
data.tar.gz: '0948801b26be6cd5ae31fc6c37a64c52f95b0fbe8916a2d914cbd77d7b4a601b'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a86f2e8ad20fd2b739a15623393e433d4b6f20115096bd6af05cddee737953060e19441f74814c295c40bbdefbb1eea6058df1717ad3aca1ae238befd1ac8294
|
7
|
+
data.tar.gz: 4b1ee8e053dff5c8c6c7cdea02e1b18aa691bf0c9b7ca79b4065b9015e162807944e92db3abf07fd30df813a39d34c2f68af589d94a58b3798fdb5ed341a353e
|
data/README.md
CHANGED
@@ -117,6 +117,10 @@ Class | Method | HTTP request | Description
|
|
117
117
|
*AutosdeOpenapiClient::HostClusterMembershipApi* | [**host_cluster_membership_pk_delete**](docs/HostClusterMembershipApi.md#host_cluster_membership_pk_delete) | **DELETE** /host-cluster-membership/{pk} |
|
118
118
|
*AutosdeOpenapiClient::HostClusterMembershipApi* | [**host_cluster_membership_pk_get**](docs/HostClusterMembershipApi.md#host_cluster_membership_pk_get) | **GET** /host-cluster-membership/{pk} |
|
119
119
|
*AutosdeOpenapiClient::HostClusterMembershipApi* | [**host_cluster_membership_post**](docs/HostClusterMembershipApi.md#host_cluster_membership_post) | **POST** /host-cluster-membership |
|
120
|
+
*AutosdeOpenapiClient::HostClusterVolumeMappingApi* | [**host_clusters_mapping_get**](docs/HostClusterVolumeMappingApi.md#host_clusters_mapping_get) | **GET** /host-clusters-mapping |
|
121
|
+
*AutosdeOpenapiClient::HostClusterVolumeMappingApi* | [**host_clusters_mapping_pk_delete**](docs/HostClusterVolumeMappingApi.md#host_clusters_mapping_pk_delete) | **DELETE** /host-clusters-mapping/{pk} |
|
122
|
+
*AutosdeOpenapiClient::HostClusterVolumeMappingApi* | [**host_clusters_mapping_pk_get**](docs/HostClusterVolumeMappingApi.md#host_clusters_mapping_pk_get) | **GET** /host-clusters-mapping/{pk} |
|
123
|
+
*AutosdeOpenapiClient::HostClusterVolumeMappingApi* | [**host_clusters_mapping_post**](docs/HostClusterVolumeMappingApi.md#host_clusters_mapping_post) | **POST** /host-clusters-mapping |
|
120
124
|
*AutosdeOpenapiClient::HostVolumeConnectionApi* | [**host_volume_connection_get**](docs/HostVolumeConnectionApi.md#host_volume_connection_get) | **GET** /host-volume-connection |
|
121
125
|
*AutosdeOpenapiClient::HostVolumeConnectionApi* | [**host_volume_connection_pk_delete**](docs/HostVolumeConnectionApi.md#host_volume_connection_pk_delete) | **DELETE** /host-volume-connection/{pk} |
|
122
126
|
*AutosdeOpenapiClient::HostVolumeConnectionApi* | [**host_volume_connection_pk_get**](docs/HostVolumeConnectionApi.md#host_volume_connection_pk_get) | **GET** /host-volume-connection/{pk} |
|
@@ -201,6 +205,9 @@ Class | Method | HTTP request | Description
|
|
201
205
|
- [AutosdeOpenapiClient::HostCluster](docs/HostCluster.md)
|
202
206
|
- [AutosdeOpenapiClient::HostClusterCreate](docs/HostClusterCreate.md)
|
203
207
|
- [AutosdeOpenapiClient::HostClusterMembership](docs/HostClusterMembership.md)
|
208
|
+
- [AutosdeOpenapiClient::HostClusterVolumeMapping](docs/HostClusterVolumeMapping.md)
|
209
|
+
- [AutosdeOpenapiClient::HostClusterVolumeMappingCreate](docs/HostClusterVolumeMappingCreate.md)
|
210
|
+
- [AutosdeOpenapiClient::HostClusterVolumeMappingResponse](docs/HostClusterVolumeMappingResponse.md)
|
204
211
|
- [AutosdeOpenapiClient::HostCreate](docs/HostCreate.md)
|
205
212
|
- [AutosdeOpenapiClient::HostVolumeConnection](docs/HostVolumeConnection.md)
|
206
213
|
- [AutosdeOpenapiClient::HostVolumeConnectionCreate](docs/HostVolumeConnectionCreate.md)
|
data/docs/HostCluster.md
CHANGED
@@ -12,6 +12,7 @@
|
|
12
12
|
| **status** | **String** | status | [optional] |
|
13
13
|
| **storage_system** | [**StorageSystem**](StorageSystem.md) | | [optional] |
|
14
14
|
| **uuid** | **String** | uuid | [optional] |
|
15
|
+
| **volumes** | [**Volume**](Volume.md) | | [optional] |
|
15
16
|
|
16
17
|
## Example
|
17
18
|
|
@@ -26,7 +27,8 @@ instance = AutosdeOpenapiClient::HostCluster.new(
|
|
26
27
|
protocol: null,
|
27
28
|
status: null,
|
28
29
|
storage_system: null,
|
29
|
-
uuid: null
|
30
|
+
uuid: null,
|
31
|
+
volumes: null
|
30
32
|
)
|
31
33
|
```
|
32
34
|
|
data/docs/HostClusterCreate.md
CHANGED
@@ -10,6 +10,7 @@
|
|
10
10
|
| **protocol** | **String** | protocol | [optional] |
|
11
11
|
| **status** | **String** | status | [optional] |
|
12
12
|
| **storage_system** | [**StorageSystem**](StorageSystem.md) | | [optional] |
|
13
|
+
| **volumes** | [**Volume**](Volume.md) | | [optional] |
|
13
14
|
|
14
15
|
## Example
|
15
16
|
|
@@ -22,7 +23,8 @@ instance = AutosdeOpenapiClient::HostClusterCreate.new(
|
|
22
23
|
owner_name: null,
|
23
24
|
protocol: null,
|
24
25
|
status: null,
|
25
|
-
storage_system: null
|
26
|
+
storage_system: null,
|
27
|
+
volumes: null
|
26
28
|
)
|
27
29
|
```
|
28
30
|
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# AutosdeOpenapiClient::HostClusterVolumeMapping
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **cluster** | [**HostCluster**](HostCluster.md) | | [optional] |
|
8
|
+
| **component_state** | **String** | component_state | [optional] |
|
9
|
+
| **lun** | **Integer** | lun | [optional][default to 0] |
|
10
|
+
| **uuid** | **String** | uuid | [optional] |
|
11
|
+
| **volume** | [**Volume**](Volume.md) | | [optional] |
|
12
|
+
|
13
|
+
## Example
|
14
|
+
|
15
|
+
```ruby
|
16
|
+
require 'autosde_openapi_client'
|
17
|
+
|
18
|
+
instance = AutosdeOpenapiClient::HostClusterVolumeMapping.new(
|
19
|
+
cluster: null,
|
20
|
+
component_state: null,
|
21
|
+
lun: null,
|
22
|
+
uuid: null,
|
23
|
+
volume: null
|
24
|
+
)
|
25
|
+
```
|
26
|
+
|
@@ -0,0 +1,276 @@
|
|
1
|
+
# AutosdeOpenapiClient::HostClusterVolumeMappingApi
|
2
|
+
|
3
|
+
All URIs are relative to *http://localhost:9000/site-manager/api/v1/engine*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**host_clusters_mapping_get**](HostClusterVolumeMappingApi.md#host_clusters_mapping_get) | **GET** /host-clusters-mapping | |
|
8
|
+
| [**host_clusters_mapping_pk_delete**](HostClusterVolumeMappingApi.md#host_clusters_mapping_pk_delete) | **DELETE** /host-clusters-mapping/{pk} | |
|
9
|
+
| [**host_clusters_mapping_pk_get**](HostClusterVolumeMappingApi.md#host_clusters_mapping_pk_get) | **GET** /host-clusters-mapping/{pk} | |
|
10
|
+
| [**host_clusters_mapping_post**](HostClusterVolumeMappingApi.md#host_clusters_mapping_post) | **POST** /host-clusters-mapping | |
|
11
|
+
|
12
|
+
|
13
|
+
## host_clusters_mapping_get
|
14
|
+
|
15
|
+
> <Array<HostClusterVolumeMappingResponse>> host_clusters_mapping_get
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
### Examples
|
20
|
+
|
21
|
+
```ruby
|
22
|
+
require 'time'
|
23
|
+
require 'autosde_openapi_client'
|
24
|
+
# setup authorization
|
25
|
+
AutosdeOpenapiClient.configure do |config|
|
26
|
+
# Configure Bearer authorization: bearerAuth
|
27
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
28
|
+
end
|
29
|
+
|
30
|
+
api_instance = AutosdeOpenapiClient::HostClusterVolumeMappingApi.new
|
31
|
+
|
32
|
+
begin
|
33
|
+
|
34
|
+
result = api_instance.host_clusters_mapping_get
|
35
|
+
p result
|
36
|
+
rescue AutosdeOpenapiClient::ApiError => e
|
37
|
+
puts "Error when calling HostClusterVolumeMappingApi->host_clusters_mapping_get: #{e}"
|
38
|
+
end
|
39
|
+
```
|
40
|
+
|
41
|
+
#### Using the host_clusters_mapping_get_with_http_info variant
|
42
|
+
|
43
|
+
This returns an Array which contains the response data, status code and headers.
|
44
|
+
|
45
|
+
> <Array(<Array<HostClusterVolumeMappingResponse>>, Integer, Hash)> host_clusters_mapping_get_with_http_info
|
46
|
+
|
47
|
+
```ruby
|
48
|
+
begin
|
49
|
+
|
50
|
+
data, status_code, headers = api_instance.host_clusters_mapping_get_with_http_info
|
51
|
+
p status_code # => 2xx
|
52
|
+
p headers # => { ... }
|
53
|
+
p data # => <Array<HostClusterVolumeMappingResponse>>
|
54
|
+
rescue AutosdeOpenapiClient::ApiError => e
|
55
|
+
puts "Error when calling HostClusterVolumeMappingApi->host_clusters_mapping_get_with_http_info: #{e}"
|
56
|
+
end
|
57
|
+
```
|
58
|
+
|
59
|
+
### Parameters
|
60
|
+
|
61
|
+
This endpoint does not need any parameter.
|
62
|
+
|
63
|
+
### Return type
|
64
|
+
|
65
|
+
[**Array<HostClusterVolumeMappingResponse>**](HostClusterVolumeMappingResponse.md)
|
66
|
+
|
67
|
+
### Authorization
|
68
|
+
|
69
|
+
[bearerAuth](../README.md#bearerAuth)
|
70
|
+
|
71
|
+
### HTTP request headers
|
72
|
+
|
73
|
+
- **Content-Type**: Not defined
|
74
|
+
- **Accept**: */*
|
75
|
+
|
76
|
+
|
77
|
+
## host_clusters_mapping_pk_delete
|
78
|
+
|
79
|
+
> <Array<HostClusterVolumeMappingResponse>> host_clusters_mapping_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::HostClusterVolumeMappingApi.new
|
95
|
+
pk = 56 # Integer |
|
96
|
+
|
97
|
+
begin
|
98
|
+
|
99
|
+
result = api_instance.host_clusters_mapping_pk_delete(pk)
|
100
|
+
p result
|
101
|
+
rescue AutosdeOpenapiClient::ApiError => e
|
102
|
+
puts "Error when calling HostClusterVolumeMappingApi->host_clusters_mapping_pk_delete: #{e}"
|
103
|
+
end
|
104
|
+
```
|
105
|
+
|
106
|
+
#### Using the host_clusters_mapping_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<HostClusterVolumeMappingResponse>>, Integer, Hash)> host_clusters_mapping_pk_delete_with_http_info(pk)
|
111
|
+
|
112
|
+
```ruby
|
113
|
+
begin
|
114
|
+
|
115
|
+
data, status_code, headers = api_instance.host_clusters_mapping_pk_delete_with_http_info(pk)
|
116
|
+
p status_code # => 2xx
|
117
|
+
p headers # => { ... }
|
118
|
+
p data # => <Array<HostClusterVolumeMappingResponse>>
|
119
|
+
rescue AutosdeOpenapiClient::ApiError => e
|
120
|
+
puts "Error when calling HostClusterVolumeMappingApi->host_clusters_mapping_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<HostClusterVolumeMappingResponse>**](HostClusterVolumeMappingResponse.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
|
+
## host_clusters_mapping_pk_get
|
145
|
+
|
146
|
+
> <Array<HostClusterVolumeMappingResponse>> host_clusters_mapping_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::HostClusterVolumeMappingApi.new
|
162
|
+
pk = 56 # Integer |
|
163
|
+
|
164
|
+
begin
|
165
|
+
|
166
|
+
result = api_instance.host_clusters_mapping_pk_get(pk)
|
167
|
+
p result
|
168
|
+
rescue AutosdeOpenapiClient::ApiError => e
|
169
|
+
puts "Error when calling HostClusterVolumeMappingApi->host_clusters_mapping_pk_get: #{e}"
|
170
|
+
end
|
171
|
+
```
|
172
|
+
|
173
|
+
#### Using the host_clusters_mapping_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<HostClusterVolumeMappingResponse>>, Integer, Hash)> host_clusters_mapping_pk_get_with_http_info(pk)
|
178
|
+
|
179
|
+
```ruby
|
180
|
+
begin
|
181
|
+
|
182
|
+
data, status_code, headers = api_instance.host_clusters_mapping_pk_get_with_http_info(pk)
|
183
|
+
p status_code # => 2xx
|
184
|
+
p headers # => { ... }
|
185
|
+
p data # => <Array<HostClusterVolumeMappingResponse>>
|
186
|
+
rescue AutosdeOpenapiClient::ApiError => e
|
187
|
+
puts "Error when calling HostClusterVolumeMappingApi->host_clusters_mapping_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<HostClusterVolumeMappingResponse>**](HostClusterVolumeMappingResponse.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
|
+
## host_clusters_mapping_post
|
212
|
+
|
213
|
+
> <HostClusterVolumeMapping> host_clusters_mapping_post(host_cluster_volume_mapping_create)
|
214
|
+
|
215
|
+
|
216
|
+
|
217
|
+
### Examples
|
218
|
+
|
219
|
+
```ruby
|
220
|
+
require 'time'
|
221
|
+
require 'autosde_openapi_client'
|
222
|
+
# setup authorization
|
223
|
+
AutosdeOpenapiClient.configure do |config|
|
224
|
+
# Configure Bearer authorization: bearerAuth
|
225
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
226
|
+
end
|
227
|
+
|
228
|
+
api_instance = AutosdeOpenapiClient::HostClusterVolumeMappingApi.new
|
229
|
+
host_cluster_volume_mapping_create = AutosdeOpenapiClient::HostClusterVolumeMappingCreate.new # HostClusterVolumeMappingCreate |
|
230
|
+
|
231
|
+
begin
|
232
|
+
|
233
|
+
result = api_instance.host_clusters_mapping_post(host_cluster_volume_mapping_create)
|
234
|
+
p result
|
235
|
+
rescue AutosdeOpenapiClient::ApiError => e
|
236
|
+
puts "Error when calling HostClusterVolumeMappingApi->host_clusters_mapping_post: #{e}"
|
237
|
+
end
|
238
|
+
```
|
239
|
+
|
240
|
+
#### Using the host_clusters_mapping_post_with_http_info variant
|
241
|
+
|
242
|
+
This returns an Array which contains the response data, status code and headers.
|
243
|
+
|
244
|
+
> <Array(<HostClusterVolumeMapping>, Integer, Hash)> host_clusters_mapping_post_with_http_info(host_cluster_volume_mapping_create)
|
245
|
+
|
246
|
+
```ruby
|
247
|
+
begin
|
248
|
+
|
249
|
+
data, status_code, headers = api_instance.host_clusters_mapping_post_with_http_info(host_cluster_volume_mapping_create)
|
250
|
+
p status_code # => 2xx
|
251
|
+
p headers # => { ... }
|
252
|
+
p data # => <HostClusterVolumeMapping>
|
253
|
+
rescue AutosdeOpenapiClient::ApiError => e
|
254
|
+
puts "Error when calling HostClusterVolumeMappingApi->host_clusters_mapping_post_with_http_info: #{e}"
|
255
|
+
end
|
256
|
+
```
|
257
|
+
|
258
|
+
### Parameters
|
259
|
+
|
260
|
+
| Name | Type | Description | Notes |
|
261
|
+
| ---- | ---- | ----------- | ----- |
|
262
|
+
| **host_cluster_volume_mapping_create** | [**HostClusterVolumeMappingCreate**](HostClusterVolumeMappingCreate.md) | | |
|
263
|
+
|
264
|
+
### Return type
|
265
|
+
|
266
|
+
[**HostClusterVolumeMapping**](HostClusterVolumeMapping.md)
|
267
|
+
|
268
|
+
### Authorization
|
269
|
+
|
270
|
+
[bearerAuth](../README.md#bearerAuth)
|
271
|
+
|
272
|
+
### HTTP request headers
|
273
|
+
|
274
|
+
- **Content-Type**: application/json
|
275
|
+
- **Accept**: */*
|
276
|
+
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# AutosdeOpenapiClient::HostClusterVolumeMappingCreate
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **cluster** | **String** | !!uuid of cluster | [optional] |
|
8
|
+
| **component_state** | **String** | component_state | [optional] |
|
9
|
+
| **lun** | **Integer** | lun | [optional][default to 0] |
|
10
|
+
| **volume** | **String** | !!uuid of volume | [optional] |
|
11
|
+
|
12
|
+
## Example
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'autosde_openapi_client'
|
16
|
+
|
17
|
+
instance = AutosdeOpenapiClient::HostClusterVolumeMappingCreate.new(
|
18
|
+
cluster: null,
|
19
|
+
component_state: null,
|
20
|
+
lun: null,
|
21
|
+
volume: null
|
22
|
+
)
|
23
|
+
```
|
24
|
+
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# AutosdeOpenapiClient::HostClusterVolumeMappingResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **cluster** | **String** | !!uuid of cluster | [optional] |
|
8
|
+
| **component_state** | **String** | component_state | [optional] |
|
9
|
+
| **lun** | **Integer** | lun | [optional][default to 0] |
|
10
|
+
| **uuid** | **String** | uuid | [optional] |
|
11
|
+
| **volume** | **String** | !!uuid of volume | [optional] |
|
12
|
+
|
13
|
+
## Example
|
14
|
+
|
15
|
+
```ruby
|
16
|
+
require 'autosde_openapi_client'
|
17
|
+
|
18
|
+
instance = AutosdeOpenapiClient::HostClusterVolumeMappingResponse.new(
|
19
|
+
cluster: null,
|
20
|
+
component_state: null,
|
21
|
+
lun: null,
|
22
|
+
uuid: null,
|
23
|
+
volume: null
|
24
|
+
)
|
25
|
+
```
|
26
|
+
|
@@ -0,0 +1,254 @@
|
|
1
|
+
=begin
|
2
|
+
#Site Manager API
|
3
|
+
|
4
|
+
#Site Manager API
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
Contact: autosde@il.ibm.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.0.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'cgi'
|
14
|
+
|
15
|
+
module AutosdeOpenapiClient
|
16
|
+
class HostClusterVolumeMappingApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# @param [Hash] opts the optional parameters
|
23
|
+
# @return [Array<HostClusterVolumeMappingResponse>]
|
24
|
+
def host_clusters_mapping_get(opts = {})
|
25
|
+
data, _status_code, _headers = host_clusters_mapping_get_with_http_info(opts)
|
26
|
+
data
|
27
|
+
end
|
28
|
+
|
29
|
+
# @param [Hash] opts the optional parameters
|
30
|
+
# @return [Array<(Array<HostClusterVolumeMappingResponse>, Integer, Hash)>] Array<HostClusterVolumeMappingResponse> data, response status code and response headers
|
31
|
+
def host_clusters_mapping_get_with_http_info(opts = {})
|
32
|
+
if @api_client.config.debugging
|
33
|
+
@api_client.config.logger.debug 'Calling API: HostClusterVolumeMappingApi.host_clusters_mapping_get ...'
|
34
|
+
end
|
35
|
+
# resource path
|
36
|
+
local_var_path = '/host-clusters-mapping'
|
37
|
+
|
38
|
+
# query parameters
|
39
|
+
query_params = opts[:query_params] || {}
|
40
|
+
|
41
|
+
# header parameters
|
42
|
+
header_params = opts[:header_params] || {}
|
43
|
+
# HTTP header 'Accept' (if needed)
|
44
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
45
|
+
|
46
|
+
# form parameters
|
47
|
+
form_params = opts[:form_params] || {}
|
48
|
+
|
49
|
+
# http body (model)
|
50
|
+
post_body = opts[:debug_body]
|
51
|
+
|
52
|
+
# return_type
|
53
|
+
return_type = opts[:debug_return_type] || 'Array<HostClusterVolumeMappingResponse>'
|
54
|
+
|
55
|
+
# auth_names
|
56
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
57
|
+
|
58
|
+
new_options = opts.merge(
|
59
|
+
:operation => :"HostClusterVolumeMappingApi.host_clusters_mapping_get",
|
60
|
+
:header_params => header_params,
|
61
|
+
:query_params => query_params,
|
62
|
+
:form_params => form_params,
|
63
|
+
:body => post_body,
|
64
|
+
:auth_names => auth_names,
|
65
|
+
:return_type => return_type
|
66
|
+
)
|
67
|
+
|
68
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
69
|
+
if @api_client.config.debugging
|
70
|
+
@api_client.config.logger.debug "API called: HostClusterVolumeMappingApi#host_clusters_mapping_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
71
|
+
end
|
72
|
+
return data, status_code, headers
|
73
|
+
end
|
74
|
+
|
75
|
+
# @param pk [Integer]
|
76
|
+
# @param [Hash] opts the optional parameters
|
77
|
+
# @return [Array<HostClusterVolumeMappingResponse>]
|
78
|
+
def host_clusters_mapping_pk_delete(pk, opts = {})
|
79
|
+
data, _status_code, _headers = host_clusters_mapping_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<HostClusterVolumeMappingResponse>, Integer, Hash)>] Array<HostClusterVolumeMappingResponse> data, response status code and response headers
|
86
|
+
def host_clusters_mapping_pk_delete_with_http_info(pk, opts = {})
|
87
|
+
if @api_client.config.debugging
|
88
|
+
@api_client.config.logger.debug 'Calling API: HostClusterVolumeMappingApi.host_clusters_mapping_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 HostClusterVolumeMappingApi.host_clusters_mapping_pk_delete"
|
93
|
+
end
|
94
|
+
# resource path
|
95
|
+
local_var_path = '/host-clusters-mapping/{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<HostClusterVolumeMappingResponse>'
|
113
|
+
|
114
|
+
# auth_names
|
115
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
116
|
+
|
117
|
+
new_options = opts.merge(
|
118
|
+
:operation => :"HostClusterVolumeMappingApi.host_clusters_mapping_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: HostClusterVolumeMappingApi#host_clusters_mapping_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<HostClusterVolumeMappingResponse>]
|
137
|
+
def host_clusters_mapping_pk_get(pk, opts = {})
|
138
|
+
data, _status_code, _headers = host_clusters_mapping_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<HostClusterVolumeMappingResponse>, Integer, Hash)>] Array<HostClusterVolumeMappingResponse> data, response status code and response headers
|
145
|
+
def host_clusters_mapping_pk_get_with_http_info(pk, opts = {})
|
146
|
+
if @api_client.config.debugging
|
147
|
+
@api_client.config.logger.debug 'Calling API: HostClusterVolumeMappingApi.host_clusters_mapping_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 HostClusterVolumeMappingApi.host_clusters_mapping_pk_get"
|
152
|
+
end
|
153
|
+
# resource path
|
154
|
+
local_var_path = '/host-clusters-mapping/{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<HostClusterVolumeMappingResponse>'
|
172
|
+
|
173
|
+
# auth_names
|
174
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
175
|
+
|
176
|
+
new_options = opts.merge(
|
177
|
+
:operation => :"HostClusterVolumeMappingApi.host_clusters_mapping_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: HostClusterVolumeMappingApi#host_clusters_mapping_pk_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
189
|
+
end
|
190
|
+
return data, status_code, headers
|
191
|
+
end
|
192
|
+
|
193
|
+
# @param host_cluster_volume_mapping_create [HostClusterVolumeMappingCreate]
|
194
|
+
# @param [Hash] opts the optional parameters
|
195
|
+
# @return [HostClusterVolumeMapping]
|
196
|
+
def host_clusters_mapping_post(host_cluster_volume_mapping_create, opts = {})
|
197
|
+
data, _status_code, _headers = host_clusters_mapping_post_with_http_info(host_cluster_volume_mapping_create, opts)
|
198
|
+
data
|
199
|
+
end
|
200
|
+
|
201
|
+
# @param host_cluster_volume_mapping_create [HostClusterVolumeMappingCreate]
|
202
|
+
# @param [Hash] opts the optional parameters
|
203
|
+
# @return [Array<(HostClusterVolumeMapping, Integer, Hash)>] HostClusterVolumeMapping data, response status code and response headers
|
204
|
+
def host_clusters_mapping_post_with_http_info(host_cluster_volume_mapping_create, opts = {})
|
205
|
+
if @api_client.config.debugging
|
206
|
+
@api_client.config.logger.debug 'Calling API: HostClusterVolumeMappingApi.host_clusters_mapping_post ...'
|
207
|
+
end
|
208
|
+
# verify the required parameter 'host_cluster_volume_mapping_create' is set
|
209
|
+
if @api_client.config.client_side_validation && host_cluster_volume_mapping_create.nil?
|
210
|
+
fail ArgumentError, "Missing the required parameter 'host_cluster_volume_mapping_create' when calling HostClusterVolumeMappingApi.host_clusters_mapping_post"
|
211
|
+
end
|
212
|
+
# resource path
|
213
|
+
local_var_path = '/host-clusters-mapping'
|
214
|
+
|
215
|
+
# query parameters
|
216
|
+
query_params = opts[:query_params] || {}
|
217
|
+
|
218
|
+
# header parameters
|
219
|
+
header_params = opts[:header_params] || {}
|
220
|
+
# HTTP header 'Accept' (if needed)
|
221
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
222
|
+
# HTTP header 'Content-Type'
|
223
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
224
|
+
|
225
|
+
# form parameters
|
226
|
+
form_params = opts[:form_params] || {}
|
227
|
+
|
228
|
+
# http body (model)
|
229
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(host_cluster_volume_mapping_create)
|
230
|
+
|
231
|
+
# return_type
|
232
|
+
return_type = opts[:debug_return_type] || 'HostClusterVolumeMapping'
|
233
|
+
|
234
|
+
# auth_names
|
235
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
236
|
+
|
237
|
+
new_options = opts.merge(
|
238
|
+
:operation => :"HostClusterVolumeMappingApi.host_clusters_mapping_post",
|
239
|
+
:header_params => header_params,
|
240
|
+
:query_params => query_params,
|
241
|
+
:form_params => form_params,
|
242
|
+
:body => post_body,
|
243
|
+
:auth_names => auth_names,
|
244
|
+
:return_type => return_type
|
245
|
+
)
|
246
|
+
|
247
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
248
|
+
if @api_client.config.debugging
|
249
|
+
@api_client.config.logger.debug "API called: HostClusterVolumeMappingApi#host_clusters_mapping_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
250
|
+
end
|
251
|
+
return data, status_code, headers
|
252
|
+
end
|
253
|
+
end
|
254
|
+
end
|