autosde_openapi_client 1.0.46 → 1.0.50
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 +18 -0
- data/docs/HostCluster.md +34 -0
- data/docs/HostClusterApi.md +276 -0
- data/docs/HostClusterCreate.md +30 -0
- data/docs/HostClusterMembership.md +24 -0
- data/docs/HostClusterMembershipApi.md +276 -0
- 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/docs/VolumeCreate.md +2 -0
- data/lib/autosde_openapi_client/api/host_cluster_api.rb +254 -0
- data/lib/autosde_openapi_client/api/host_cluster_membership_api.rb +254 -0
- data/lib/autosde_openapi_client/api/host_cluster_volume_mapping_api.rb +254 -0
- data/lib/autosde_openapi_client/models/host_cluster.rb +397 -0
- data/lib/autosde_openapi_client/models/host_cluster_create.rb +338 -0
- data/lib/autosde_openapi_client/models/host_cluster_membership.rb +287 -0
- 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/models/volume_create.rb +13 -1
- data/lib/autosde_openapi_client/version.rb +2 -2
- data/lib/autosde_openapi_client.rb +9 -0
- data/spec/api/host_cluster_api_spec.rb +74 -0
- data/spec/api/host_cluster_membership_api_spec.rb +74 -0
- data/spec/api/host_cluster_volume_mapping_api_spec.rb +74 -0
- data/spec/models/host_cluster_create_spec.rb +70 -0
- data/spec/models/host_cluster_membership_spec.rb +56 -0
- data/spec/models/host_cluster_spec.rb +86 -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
- data/spec/models/volume_create_spec.rb +6 -0
- metadata +91 -55
@@ -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
|
+
|
data/docs/VolumeCreate.md
CHANGED
@@ -6,6 +6,7 @@
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **compliant** | **Boolean** | compliant | [optional][default to false] |
|
8
8
|
| **component_state** | **String** | component_state | [optional] |
|
9
|
+
| **count** | **Integer** | count | [optional][default to 1] |
|
9
10
|
| **name** | **String** | name | [optional] |
|
10
11
|
| **service** | **String** | !!uuid of service | [optional] |
|
11
12
|
| **size** | **Integer** | size | [optional] |
|
@@ -21,6 +22,7 @@ require 'autosde_openapi_client'
|
|
21
22
|
instance = AutosdeOpenapiClient::VolumeCreate.new(
|
22
23
|
compliant: null,
|
23
24
|
component_state: null,
|
25
|
+
count: null,
|
24
26
|
name: null,
|
25
27
|
service: null,
|
26
28
|
size: null,
|
@@ -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 HostClusterApi
|
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<HostCluster>]
|
24
|
+
def host_clusters_get(opts = {})
|
25
|
+
data, _status_code, _headers = host_clusters_get_with_http_info(opts)
|
26
|
+
data
|
27
|
+
end
|
28
|
+
|
29
|
+
# @param [Hash] opts the optional parameters
|
30
|
+
# @return [Array<(Array<HostCluster>, Integer, Hash)>] Array<HostCluster> data, response status code and response headers
|
31
|
+
def host_clusters_get_with_http_info(opts = {})
|
32
|
+
if @api_client.config.debugging
|
33
|
+
@api_client.config.logger.debug 'Calling API: HostClusterApi.host_clusters_get ...'
|
34
|
+
end
|
35
|
+
# resource path
|
36
|
+
local_var_path = '/host-clusters'
|
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<HostCluster>'
|
54
|
+
|
55
|
+
# auth_names
|
56
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
57
|
+
|
58
|
+
new_options = opts.merge(
|
59
|
+
:operation => :"HostClusterApi.host_clusters_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: HostClusterApi#host_clusters_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<HostCluster>]
|
78
|
+
def host_clusters_pk_delete(pk, opts = {})
|
79
|
+
data, _status_code, _headers = host_clusters_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<HostCluster>, Integer, Hash)>] Array<HostCluster> data, response status code and response headers
|
86
|
+
def host_clusters_pk_delete_with_http_info(pk, opts = {})
|
87
|
+
if @api_client.config.debugging
|
88
|
+
@api_client.config.logger.debug 'Calling API: HostClusterApi.host_clusters_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 HostClusterApi.host_clusters_pk_delete"
|
93
|
+
end
|
94
|
+
# resource path
|
95
|
+
local_var_path = '/host-clusters/{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<HostCluster>'
|
113
|
+
|
114
|
+
# auth_names
|
115
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
116
|
+
|
117
|
+
new_options = opts.merge(
|
118
|
+
:operation => :"HostClusterApi.host_clusters_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: HostClusterApi#host_clusters_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<HostCluster>]
|
137
|
+
def host_clusters_pk_get(pk, opts = {})
|
138
|
+
data, _status_code, _headers = host_clusters_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<HostCluster>, Integer, Hash)>] Array<HostCluster> data, response status code and response headers
|
145
|
+
def host_clusters_pk_get_with_http_info(pk, opts = {})
|
146
|
+
if @api_client.config.debugging
|
147
|
+
@api_client.config.logger.debug 'Calling API: HostClusterApi.host_clusters_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 HostClusterApi.host_clusters_pk_get"
|
152
|
+
end
|
153
|
+
# resource path
|
154
|
+
local_var_path = '/host-clusters/{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<HostCluster>'
|
172
|
+
|
173
|
+
# auth_names
|
174
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
175
|
+
|
176
|
+
new_options = opts.merge(
|
177
|
+
:operation => :"HostClusterApi.host_clusters_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: HostClusterApi#host_clusters_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_create [HostClusterCreate]
|
194
|
+
# @param [Hash] opts the optional parameters
|
195
|
+
# @return [HostCluster]
|
196
|
+
def host_clusters_post(host_cluster_create, opts = {})
|
197
|
+
data, _status_code, _headers = host_clusters_post_with_http_info(host_cluster_create, opts)
|
198
|
+
data
|
199
|
+
end
|
200
|
+
|
201
|
+
# @param host_cluster_create [HostClusterCreate]
|
202
|
+
# @param [Hash] opts the optional parameters
|
203
|
+
# @return [Array<(HostCluster, Integer, Hash)>] HostCluster data, response status code and response headers
|
204
|
+
def host_clusters_post_with_http_info(host_cluster_create, opts = {})
|
205
|
+
if @api_client.config.debugging
|
206
|
+
@api_client.config.logger.debug 'Calling API: HostClusterApi.host_clusters_post ...'
|
207
|
+
end
|
208
|
+
# verify the required parameter 'host_cluster_create' is set
|
209
|
+
if @api_client.config.client_side_validation && host_cluster_create.nil?
|
210
|
+
fail ArgumentError, "Missing the required parameter 'host_cluster_create' when calling HostClusterApi.host_clusters_post"
|
211
|
+
end
|
212
|
+
# resource path
|
213
|
+
local_var_path = '/host-clusters'
|
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_create)
|
230
|
+
|
231
|
+
# return_type
|
232
|
+
return_type = opts[:debug_return_type] || 'HostCluster'
|
233
|
+
|
234
|
+
# auth_names
|
235
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
236
|
+
|
237
|
+
new_options = opts.merge(
|
238
|
+
:operation => :"HostClusterApi.host_clusters_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: HostClusterApi#host_clusters_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
250
|
+
end
|
251
|
+
return data, status_code, headers
|
252
|
+
end
|
253
|
+
end
|
254
|
+
end
|