autosde_openapi_client 3.0.1 → 3.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -0
- data/docs/HostClusterApi.md +70 -0
- data/docs/HostClusterUpdate.md +28 -0
- data/docs/ServiceApi.md +8 -8
- data/docs/ServiceUpdate.md +34 -0
- data/lib/autosde_openapi_client/api/host_cluster_api.rb +67 -0
- data/lib/autosde_openapi_client/api/service_api.rb +12 -12
- data/lib/autosde_openapi_client/models/host_cluster_update.rb +329 -0
- data/lib/autosde_openapi_client/models/service_update.rb +342 -0
- data/lib/autosde_openapi_client/version.rb +2 -2
- data/lib/autosde_openapi_client.rb +2 -0
- data/spec/api/host_cluster_api_spec.rb +11 -0
- data/spec/api/service_api_spec.rb +2 -2
- data/spec/models/host_cluster_update_spec.rb +64 -0
- data/spec/models/service_update_spec.rb +86 -0
- metadata +92 -84
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8d2987f7536f2d85bfccd3d0de8d07db8f9c7b1e55eff43d308dc089452af834
|
4
|
+
data.tar.gz: 1e3b02c71b658105a544fe31ab6df9f2034cd1c8c9fb07d84df86d198931625f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dcbbcc3b24374d6c7a901d1cd94b9bd35e5f3786cf1f9254f879d2c6fb1b7da049aaadd81448e2ec791e41074d71c67dae9b90391de2a1ec9b1a9153233b4886
|
7
|
+
data.tar.gz: 0c252f08e7f3401494e7d95ba7bcf799da531250a658703702faa7fa71db7471e8fc02a087d21edc9f92453d0c498b13cf2c0ece97d542ca463ac9d3840f071b
|
data/README.md
CHANGED
@@ -118,6 +118,7 @@ Class | Method | HTTP request | Description
|
|
118
118
|
*AutosdeOpenapiClient::HostClusterApi* | [**host_clusters_get**](docs/HostClusterApi.md#host_clusters_get) | **GET** /host-clusters |
|
119
119
|
*AutosdeOpenapiClient::HostClusterApi* | [**host_clusters_pk_delete**](docs/HostClusterApi.md#host_clusters_pk_delete) | **DELETE** /host-clusters/{pk} |
|
120
120
|
*AutosdeOpenapiClient::HostClusterApi* | [**host_clusters_pk_get**](docs/HostClusterApi.md#host_clusters_pk_get) | **GET** /host-clusters/{pk} |
|
121
|
+
*AutosdeOpenapiClient::HostClusterApi* | [**host_clusters_pk_put**](docs/HostClusterApi.md#host_clusters_pk_put) | **PUT** /host-clusters/{pk} |
|
121
122
|
*AutosdeOpenapiClient::HostClusterApi* | [**host_clusters_post**](docs/HostClusterApi.md#host_clusters_post) | **POST** /host-clusters |
|
122
123
|
*AutosdeOpenapiClient::HostClusterMembershipApi* | [**host_cluster_membership_get**](docs/HostClusterMembershipApi.md#host_cluster_membership_get) | **GET** /host-cluster-membership |
|
123
124
|
*AutosdeOpenapiClient::HostClusterMembershipApi* | [**host_cluster_membership_pk_delete**](docs/HostClusterMembershipApi.md#host_cluster_membership_pk_delete) | **DELETE** /host-cluster-membership/{pk} |
|
@@ -228,6 +229,7 @@ Class | Method | HTTP request | Description
|
|
228
229
|
- [AutosdeOpenapiClient::HostClusterCreate](docs/HostClusterCreate.md)
|
229
230
|
- [AutosdeOpenapiClient::HostClusterMembership](docs/HostClusterMembership.md)
|
230
231
|
- [AutosdeOpenapiClient::HostClusterResponse](docs/HostClusterResponse.md)
|
232
|
+
- [AutosdeOpenapiClient::HostClusterUpdate](docs/HostClusterUpdate.md)
|
231
233
|
- [AutosdeOpenapiClient::HostClusterVolumeMapping](docs/HostClusterVolumeMapping.md)
|
232
234
|
- [AutosdeOpenapiClient::HostClusterVolumeMappingCreate](docs/HostClusterVolumeMappingCreate.md)
|
233
235
|
- [AutosdeOpenapiClient::HostClusterVolumeMappingResponse](docs/HostClusterVolumeMappingResponse.md)
|
@@ -248,6 +250,7 @@ Class | Method | HTTP request | Description
|
|
248
250
|
- [AutosdeOpenapiClient::ServiceResourceAttachment](docs/ServiceResourceAttachment.md)
|
249
251
|
- [AutosdeOpenapiClient::ServiceResourceAttachmentResponse](docs/ServiceResourceAttachmentResponse.md)
|
250
252
|
- [AutosdeOpenapiClient::ServiceResponse](docs/ServiceResponse.md)
|
253
|
+
- [AutosdeOpenapiClient::ServiceUpdate](docs/ServiceUpdate.md)
|
251
254
|
- [AutosdeOpenapiClient::Snapshot](docs/Snapshot.md)
|
252
255
|
- [AutosdeOpenapiClient::SnapshotCreate](docs/SnapshotCreate.md)
|
253
256
|
- [AutosdeOpenapiClient::SnapshotResponse](docs/SnapshotResponse.md)
|
data/docs/HostClusterApi.md
CHANGED
@@ -7,6 +7,7 @@ All URIs are relative to *http://localhost:9000/site-manager/api/v1/engine*
|
|
7
7
|
| [**host_clusters_get**](HostClusterApi.md#host_clusters_get) | **GET** /host-clusters | |
|
8
8
|
| [**host_clusters_pk_delete**](HostClusterApi.md#host_clusters_pk_delete) | **DELETE** /host-clusters/{pk} | |
|
9
9
|
| [**host_clusters_pk_get**](HostClusterApi.md#host_clusters_pk_get) | **GET** /host-clusters/{pk} | |
|
10
|
+
| [**host_clusters_pk_put**](HostClusterApi.md#host_clusters_pk_put) | **PUT** /host-clusters/{pk} | |
|
10
11
|
| [**host_clusters_post**](HostClusterApi.md#host_clusters_post) | **POST** /host-clusters | |
|
11
12
|
|
12
13
|
|
@@ -208,6 +209,75 @@ end
|
|
208
209
|
- **Accept**: */*
|
209
210
|
|
210
211
|
|
212
|
+
## host_clusters_pk_put
|
213
|
+
|
214
|
+
> <AsyncResponse> host_clusters_pk_put(pk, host_cluster_update)
|
215
|
+
|
216
|
+
|
217
|
+
|
218
|
+
### Examples
|
219
|
+
|
220
|
+
```ruby
|
221
|
+
require 'time'
|
222
|
+
require 'autosde_openapi_client'
|
223
|
+
# setup authorization
|
224
|
+
AutosdeOpenapiClient.configure do |config|
|
225
|
+
# Configure Bearer authorization: bearerAuth
|
226
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
227
|
+
end
|
228
|
+
|
229
|
+
api_instance = AutosdeOpenapiClient::HostClusterApi.new
|
230
|
+
pk = 56 # Integer |
|
231
|
+
host_cluster_update = AutosdeOpenapiClient::HostClusterUpdate.new # HostClusterUpdate |
|
232
|
+
|
233
|
+
begin
|
234
|
+
|
235
|
+
result = api_instance.host_clusters_pk_put(pk, host_cluster_update)
|
236
|
+
p result
|
237
|
+
rescue AutosdeOpenapiClient::ApiError => e
|
238
|
+
puts "Error when calling HostClusterApi->host_clusters_pk_put: #{e}"
|
239
|
+
end
|
240
|
+
```
|
241
|
+
|
242
|
+
#### Using the host_clusters_pk_put_with_http_info variant
|
243
|
+
|
244
|
+
This returns an Array which contains the response data, status code and headers.
|
245
|
+
|
246
|
+
> <Array(<AsyncResponse>, Integer, Hash)> host_clusters_pk_put_with_http_info(pk, host_cluster_update)
|
247
|
+
|
248
|
+
```ruby
|
249
|
+
begin
|
250
|
+
|
251
|
+
data, status_code, headers = api_instance.host_clusters_pk_put_with_http_info(pk, host_cluster_update)
|
252
|
+
p status_code # => 2xx
|
253
|
+
p headers # => { ... }
|
254
|
+
p data # => <AsyncResponse>
|
255
|
+
rescue AutosdeOpenapiClient::ApiError => e
|
256
|
+
puts "Error when calling HostClusterApi->host_clusters_pk_put_with_http_info: #{e}"
|
257
|
+
end
|
258
|
+
```
|
259
|
+
|
260
|
+
### Parameters
|
261
|
+
|
262
|
+
| Name | Type | Description | Notes |
|
263
|
+
| ---- | ---- | ----------- | ----- |
|
264
|
+
| **pk** | **Integer** | | |
|
265
|
+
| **host_cluster_update** | [**HostClusterUpdate**](HostClusterUpdate.md) | | |
|
266
|
+
|
267
|
+
### Return type
|
268
|
+
|
269
|
+
[**AsyncResponse**](AsyncResponse.md)
|
270
|
+
|
271
|
+
### Authorization
|
272
|
+
|
273
|
+
[bearerAuth](../README.md#bearerAuth)
|
274
|
+
|
275
|
+
### HTTP request headers
|
276
|
+
|
277
|
+
- **Content-Type**: application/json
|
278
|
+
- **Accept**: */*
|
279
|
+
|
280
|
+
|
211
281
|
## host_clusters_post
|
212
282
|
|
213
283
|
> <AsyncResponse> host_clusters_post(host_cluster_create)
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# AutosdeOpenapiClient::HostClusterUpdate
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **name** | **String** | name | [optional] |
|
8
|
+
| **owner_id** | **String** | owner_id | [optional] |
|
9
|
+
| **owner_name** | **String** | owner_name | [optional] |
|
10
|
+
| **protocol** | **String** | protocol | [optional] |
|
11
|
+
| **status** | **String** | status | [optional] |
|
12
|
+
| **volumes** | [**Volume**](Volume.md) | | [optional] |
|
13
|
+
|
14
|
+
## Example
|
15
|
+
|
16
|
+
```ruby
|
17
|
+
require 'autosde_openapi_client'
|
18
|
+
|
19
|
+
instance = AutosdeOpenapiClient::HostClusterUpdate.new(
|
20
|
+
name: null,
|
21
|
+
owner_id: null,
|
22
|
+
owner_name: null,
|
23
|
+
protocol: null,
|
24
|
+
status: null,
|
25
|
+
volumes: null
|
26
|
+
)
|
27
|
+
```
|
28
|
+
|
data/docs/ServiceApi.md
CHANGED
@@ -211,7 +211,7 @@ end
|
|
211
211
|
|
212
212
|
## services_pk_put
|
213
213
|
|
214
|
-
> <
|
214
|
+
> <AsyncResponse> services_pk_put(pk, service_update)
|
215
215
|
|
216
216
|
|
217
217
|
|
@@ -228,11 +228,11 @@ end
|
|
228
228
|
|
229
229
|
api_instance = AutosdeOpenapiClient::ServiceApi.new
|
230
230
|
pk = 56 # Integer |
|
231
|
-
|
231
|
+
service_update = AutosdeOpenapiClient::ServiceUpdate.new # ServiceUpdate |
|
232
232
|
|
233
233
|
begin
|
234
234
|
|
235
|
-
result = api_instance.services_pk_put(pk,
|
235
|
+
result = api_instance.services_pk_put(pk, service_update)
|
236
236
|
p result
|
237
237
|
rescue AutosdeOpenapiClient::ApiError => e
|
238
238
|
puts "Error when calling ServiceApi->services_pk_put: #{e}"
|
@@ -243,15 +243,15 @@ end
|
|
243
243
|
|
244
244
|
This returns an Array which contains the response data, status code and headers.
|
245
245
|
|
246
|
-
> <Array(<
|
246
|
+
> <Array(<AsyncResponse>, Integer, Hash)> services_pk_put_with_http_info(pk, service_update)
|
247
247
|
|
248
248
|
```ruby
|
249
249
|
begin
|
250
250
|
|
251
|
-
data, status_code, headers = api_instance.services_pk_put_with_http_info(pk,
|
251
|
+
data, status_code, headers = api_instance.services_pk_put_with_http_info(pk, service_update)
|
252
252
|
p status_code # => 2xx
|
253
253
|
p headers # => { ... }
|
254
|
-
p data # => <
|
254
|
+
p data # => <AsyncResponse>
|
255
255
|
rescue AutosdeOpenapiClient::ApiError => e
|
256
256
|
puts "Error when calling ServiceApi->services_pk_put_with_http_info: #{e}"
|
257
257
|
end
|
@@ -262,11 +262,11 @@ end
|
|
262
262
|
| Name | Type | Description | Notes |
|
263
263
|
| ---- | ---- | ----------- | ----- |
|
264
264
|
| **pk** | **Integer** | | |
|
265
|
-
| **
|
265
|
+
| **service_update** | [**ServiceUpdate**](ServiceUpdate.md) | | |
|
266
266
|
|
267
267
|
### Return type
|
268
268
|
|
269
|
-
[**
|
269
|
+
[**AsyncResponse**](AsyncResponse.md)
|
270
270
|
|
271
271
|
### Authorization
|
272
272
|
|
@@ -0,0 +1,34 @@
|
|
1
|
+
# AutosdeOpenapiClient::ServiceUpdate
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **capability_value_list** | **Array<String>** | capability_value_list | [optional] |
|
8
|
+
| **component_state** | **String** | component_state | [optional] |
|
9
|
+
| **description** | **String** | description | [optional][default to ''] |
|
10
|
+
| **name** | **String** | name | [optional] |
|
11
|
+
| **profile** | [**Profile**](Profile.md) | | [optional] |
|
12
|
+
| **project** | [**AutoSDEProject**](AutoSDEProject.md) | | [optional] |
|
13
|
+
| **provisioning_strategy** | [**ProvisioningStrategy**](ProvisioningStrategy.md) | | [optional] |
|
14
|
+
| **uuid** | **String** | uuid | [optional] |
|
15
|
+
| **version** | **Integer** | The version of the service | [optional][default to 1] |
|
16
|
+
|
17
|
+
## Example
|
18
|
+
|
19
|
+
```ruby
|
20
|
+
require 'autosde_openapi_client'
|
21
|
+
|
22
|
+
instance = AutosdeOpenapiClient::ServiceUpdate.new(
|
23
|
+
capability_value_list: null,
|
24
|
+
component_state: null,
|
25
|
+
description: null,
|
26
|
+
name: null,
|
27
|
+
profile: null,
|
28
|
+
project: null,
|
29
|
+
provisioning_strategy: null,
|
30
|
+
uuid: null,
|
31
|
+
version: null
|
32
|
+
)
|
33
|
+
```
|
34
|
+
|
@@ -190,6 +190,73 @@ module AutosdeOpenapiClient
|
|
190
190
|
return data, status_code, headers
|
191
191
|
end
|
192
192
|
|
193
|
+
# @param pk [Integer]
|
194
|
+
# @param host_cluster_update [HostClusterUpdate]
|
195
|
+
# @param [Hash] opts the optional parameters
|
196
|
+
# @return [AsyncResponse]
|
197
|
+
def host_clusters_pk_put(pk, host_cluster_update, opts = {})
|
198
|
+
data, _status_code, _headers = host_clusters_pk_put_with_http_info(pk, host_cluster_update, opts)
|
199
|
+
data
|
200
|
+
end
|
201
|
+
|
202
|
+
# @param pk [Integer]
|
203
|
+
# @param host_cluster_update [HostClusterUpdate]
|
204
|
+
# @param [Hash] opts the optional parameters
|
205
|
+
# @return [Array<(AsyncResponse, Integer, Hash)>] AsyncResponse data, response status code and response headers
|
206
|
+
def host_clusters_pk_put_with_http_info(pk, host_cluster_update, opts = {})
|
207
|
+
if @api_client.config.debugging
|
208
|
+
@api_client.config.logger.debug 'Calling API: HostClusterApi.host_clusters_pk_put ...'
|
209
|
+
end
|
210
|
+
# verify the required parameter 'pk' is set
|
211
|
+
if @api_client.config.client_side_validation && pk.nil?
|
212
|
+
fail ArgumentError, "Missing the required parameter 'pk' when calling HostClusterApi.host_clusters_pk_put"
|
213
|
+
end
|
214
|
+
# verify the required parameter 'host_cluster_update' is set
|
215
|
+
if @api_client.config.client_side_validation && host_cluster_update.nil?
|
216
|
+
fail ArgumentError, "Missing the required parameter 'host_cluster_update' when calling HostClusterApi.host_clusters_pk_put"
|
217
|
+
end
|
218
|
+
# resource path
|
219
|
+
local_var_path = '/host-clusters/{pk}'.sub('{' + 'pk' + '}', CGI.escape(pk.to_s))
|
220
|
+
|
221
|
+
# query parameters
|
222
|
+
query_params = opts[:query_params] || {}
|
223
|
+
|
224
|
+
# header parameters
|
225
|
+
header_params = opts[:header_params] || {}
|
226
|
+
# HTTP header 'Accept' (if needed)
|
227
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
228
|
+
# HTTP header 'Content-Type'
|
229
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
230
|
+
|
231
|
+
# form parameters
|
232
|
+
form_params = opts[:form_params] || {}
|
233
|
+
|
234
|
+
# http body (model)
|
235
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(host_cluster_update)
|
236
|
+
|
237
|
+
# return_type
|
238
|
+
return_type = opts[:debug_return_type] || 'AsyncResponse'
|
239
|
+
|
240
|
+
# auth_names
|
241
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
242
|
+
|
243
|
+
new_options = opts.merge(
|
244
|
+
:operation => :"HostClusterApi.host_clusters_pk_put",
|
245
|
+
:header_params => header_params,
|
246
|
+
:query_params => query_params,
|
247
|
+
:form_params => form_params,
|
248
|
+
:body => post_body,
|
249
|
+
:auth_names => auth_names,
|
250
|
+
:return_type => return_type
|
251
|
+
)
|
252
|
+
|
253
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
254
|
+
if @api_client.config.debugging
|
255
|
+
@api_client.config.logger.debug "API called: HostClusterApi#host_clusters_pk_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
256
|
+
end
|
257
|
+
return data, status_code, headers
|
258
|
+
end
|
259
|
+
|
193
260
|
# @param host_cluster_create [HostClusterCreate]
|
194
261
|
# @param [Hash] opts the optional parameters
|
195
262
|
# @return [AsyncResponse]
|
@@ -191,19 +191,19 @@ module AutosdeOpenapiClient
|
|
191
191
|
end
|
192
192
|
|
193
193
|
# @param pk [Integer]
|
194
|
-
# @param
|
194
|
+
# @param service_update [ServiceUpdate]
|
195
195
|
# @param [Hash] opts the optional parameters
|
196
|
-
# @return [
|
197
|
-
def services_pk_put(pk,
|
198
|
-
data, _status_code, _headers = services_pk_put_with_http_info(pk,
|
196
|
+
# @return [AsyncResponse]
|
197
|
+
def services_pk_put(pk, service_update, opts = {})
|
198
|
+
data, _status_code, _headers = services_pk_put_with_http_info(pk, service_update, opts)
|
199
199
|
data
|
200
200
|
end
|
201
201
|
|
202
202
|
# @param pk [Integer]
|
203
|
-
# @param
|
203
|
+
# @param service_update [ServiceUpdate]
|
204
204
|
# @param [Hash] opts the optional parameters
|
205
|
-
# @return [Array<(
|
206
|
-
def services_pk_put_with_http_info(pk,
|
205
|
+
# @return [Array<(AsyncResponse, Integer, Hash)>] AsyncResponse data, response status code and response headers
|
206
|
+
def services_pk_put_with_http_info(pk, service_update, opts = {})
|
207
207
|
if @api_client.config.debugging
|
208
208
|
@api_client.config.logger.debug 'Calling API: ServiceApi.services_pk_put ...'
|
209
209
|
end
|
@@ -211,9 +211,9 @@ module AutosdeOpenapiClient
|
|
211
211
|
if @api_client.config.client_side_validation && pk.nil?
|
212
212
|
fail ArgumentError, "Missing the required parameter 'pk' when calling ServiceApi.services_pk_put"
|
213
213
|
end
|
214
|
-
# verify the required parameter '
|
215
|
-
if @api_client.config.client_side_validation &&
|
216
|
-
fail ArgumentError, "Missing the required parameter '
|
214
|
+
# verify the required parameter 'service_update' is set
|
215
|
+
if @api_client.config.client_side_validation && service_update.nil?
|
216
|
+
fail ArgumentError, "Missing the required parameter 'service_update' when calling ServiceApi.services_pk_put"
|
217
217
|
end
|
218
218
|
# resource path
|
219
219
|
local_var_path = '/services/{pk}'.sub('{' + 'pk' + '}', CGI.escape(pk.to_s))
|
@@ -232,10 +232,10 @@ module AutosdeOpenapiClient
|
|
232
232
|
form_params = opts[:form_params] || {}
|
233
233
|
|
234
234
|
# http body (model)
|
235
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(
|
235
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(service_update)
|
236
236
|
|
237
237
|
# return_type
|
238
|
-
return_type = opts[:debug_return_type] || '
|
238
|
+
return_type = opts[:debug_return_type] || 'AsyncResponse'
|
239
239
|
|
240
240
|
# auth_names
|
241
241
|
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|