autosde_openapi_client 1.0.47 → 1.0.48
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 +5 -0
- data/docs/HostClusterMembership.md +24 -0
- data/docs/HostClusterMembershipApi.md +276 -0
- data/lib/autosde_openapi_client/api/host_cluster_membership_api.rb +254 -0
- data/lib/autosde_openapi_client/models/host_cluster_membership.rb +287 -0
- data/lib/autosde_openapi_client/version.rb +2 -2
- data/lib/autosde_openapi_client.rb +2 -0
- data/spec/api/host_cluster_membership_api_spec.rb +74 -0
- data/spec/models/host_cluster_membership_spec.rb +56 -0
- metadata +69 -61
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a398bcbfa0128364c00e390f9a3c62ddc611929d6867700324c3179579a01222
|
4
|
+
data.tar.gz: a72a8b94975f71e8253a0d81df9aa983584e402291e1b98b0aedb5f8de220885
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 18363370304549974b70eb993a46a045619c59eb5dfe91f4c002821c1aadce1f94bc212d74e384551f9e7eec5bc42bd52343b869d093b4e6cb62df224aacf75d
|
7
|
+
data.tar.gz: 6c392132a2089bf3e324e3bd807be9888950c8aa66712900ce3a26e9cc70273e87726b1338367688f8b96960899ecba6eaadc178b81b3e68e9fb3e7254200802
|
data/README.md
CHANGED
@@ -113,6 +113,10 @@ Class | Method | HTTP request | Description
|
|
113
113
|
*AutosdeOpenapiClient::HostClusterApi* | [**host_clusters_pk_delete**](docs/HostClusterApi.md#host_clusters_pk_delete) | **DELETE** /host-clusters/{pk} |
|
114
114
|
*AutosdeOpenapiClient::HostClusterApi* | [**host_clusters_pk_get**](docs/HostClusterApi.md#host_clusters_pk_get) | **GET** /host-clusters/{pk} |
|
115
115
|
*AutosdeOpenapiClient::HostClusterApi* | [**host_clusters_post**](docs/HostClusterApi.md#host_clusters_post) | **POST** /host-clusters |
|
116
|
+
*AutosdeOpenapiClient::HostClusterMembershipApi* | [**host_cluster_membership_get**](docs/HostClusterMembershipApi.md#host_cluster_membership_get) | **GET** /host-cluster-membership |
|
117
|
+
*AutosdeOpenapiClient::HostClusterMembershipApi* | [**host_cluster_membership_pk_delete**](docs/HostClusterMembershipApi.md#host_cluster_membership_pk_delete) | **DELETE** /host-cluster-membership/{pk} |
|
118
|
+
*AutosdeOpenapiClient::HostClusterMembershipApi* | [**host_cluster_membership_pk_get**](docs/HostClusterMembershipApi.md#host_cluster_membership_pk_get) | **GET** /host-cluster-membership/{pk} |
|
119
|
+
*AutosdeOpenapiClient::HostClusterMembershipApi* | [**host_cluster_membership_post**](docs/HostClusterMembershipApi.md#host_cluster_membership_post) | **POST** /host-cluster-membership |
|
116
120
|
*AutosdeOpenapiClient::HostVolumeConnectionApi* | [**host_volume_connection_get**](docs/HostVolumeConnectionApi.md#host_volume_connection_get) | **GET** /host-volume-connection |
|
117
121
|
*AutosdeOpenapiClient::HostVolumeConnectionApi* | [**host_volume_connection_pk_delete**](docs/HostVolumeConnectionApi.md#host_volume_connection_pk_delete) | **DELETE** /host-volume-connection/{pk} |
|
118
122
|
*AutosdeOpenapiClient::HostVolumeConnectionApi* | [**host_volume_connection_pk_get**](docs/HostVolumeConnectionApi.md#host_volume_connection_pk_get) | **GET** /host-volume-connection/{pk} |
|
@@ -196,6 +200,7 @@ Class | Method | HTTP request | Description
|
|
196
200
|
- [AutosdeOpenapiClient::Host](docs/Host.md)
|
197
201
|
- [AutosdeOpenapiClient::HostCluster](docs/HostCluster.md)
|
198
202
|
- [AutosdeOpenapiClient::HostClusterCreate](docs/HostClusterCreate.md)
|
203
|
+
- [AutosdeOpenapiClient::HostClusterMembership](docs/HostClusterMembership.md)
|
199
204
|
- [AutosdeOpenapiClient::HostCreate](docs/HostCreate.md)
|
200
205
|
- [AutosdeOpenapiClient::HostVolumeConnection](docs/HostVolumeConnection.md)
|
201
206
|
- [AutosdeOpenapiClient::HostVolumeConnectionCreate](docs/HostVolumeConnectionCreate.md)
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# AutosdeOpenapiClient::HostClusterMembership
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **cluster** | [**HostCluster**](HostCluster.md) | | [optional] |
|
8
|
+
| **component_state** | **String** | component_state | [optional] |
|
9
|
+
| **host** | [**StorageHost**](StorageHost.md) | | [optional] |
|
10
|
+
| **uuid** | **String** | uuid | [optional] |
|
11
|
+
|
12
|
+
## Example
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'autosde_openapi_client'
|
16
|
+
|
17
|
+
instance = AutosdeOpenapiClient::HostClusterMembership.new(
|
18
|
+
cluster: null,
|
19
|
+
component_state: null,
|
20
|
+
host: null,
|
21
|
+
uuid: null
|
22
|
+
)
|
23
|
+
```
|
24
|
+
|
@@ -0,0 +1,276 @@
|
|
1
|
+
# AutosdeOpenapiClient::HostClusterMembershipApi
|
2
|
+
|
3
|
+
All URIs are relative to *http://localhost:9000/site-manager/api/v1/engine*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**host_cluster_membership_get**](HostClusterMembershipApi.md#host_cluster_membership_get) | **GET** /host-cluster-membership | |
|
8
|
+
| [**host_cluster_membership_pk_delete**](HostClusterMembershipApi.md#host_cluster_membership_pk_delete) | **DELETE** /host-cluster-membership/{pk} | |
|
9
|
+
| [**host_cluster_membership_pk_get**](HostClusterMembershipApi.md#host_cluster_membership_pk_get) | **GET** /host-cluster-membership/{pk} | |
|
10
|
+
| [**host_cluster_membership_post**](HostClusterMembershipApi.md#host_cluster_membership_post) | **POST** /host-cluster-membership | |
|
11
|
+
|
12
|
+
|
13
|
+
## host_cluster_membership_get
|
14
|
+
|
15
|
+
> <Array<HostClusterMembership>> host_cluster_membership_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::HostClusterMembershipApi.new
|
31
|
+
|
32
|
+
begin
|
33
|
+
|
34
|
+
result = api_instance.host_cluster_membership_get
|
35
|
+
p result
|
36
|
+
rescue AutosdeOpenapiClient::ApiError => e
|
37
|
+
puts "Error when calling HostClusterMembershipApi->host_cluster_membership_get: #{e}"
|
38
|
+
end
|
39
|
+
```
|
40
|
+
|
41
|
+
#### Using the host_cluster_membership_get_with_http_info variant
|
42
|
+
|
43
|
+
This returns an Array which contains the response data, status code and headers.
|
44
|
+
|
45
|
+
> <Array(<Array<HostClusterMembership>>, Integer, Hash)> host_cluster_membership_get_with_http_info
|
46
|
+
|
47
|
+
```ruby
|
48
|
+
begin
|
49
|
+
|
50
|
+
data, status_code, headers = api_instance.host_cluster_membership_get_with_http_info
|
51
|
+
p status_code # => 2xx
|
52
|
+
p headers # => { ... }
|
53
|
+
p data # => <Array<HostClusterMembership>>
|
54
|
+
rescue AutosdeOpenapiClient::ApiError => e
|
55
|
+
puts "Error when calling HostClusterMembershipApi->host_cluster_membership_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<HostClusterMembership>**](HostClusterMembership.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_cluster_membership_pk_delete
|
78
|
+
|
79
|
+
> <Array<HostClusterMembership>> host_cluster_membership_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::HostClusterMembershipApi.new
|
95
|
+
pk = 56 # Integer |
|
96
|
+
|
97
|
+
begin
|
98
|
+
|
99
|
+
result = api_instance.host_cluster_membership_pk_delete(pk)
|
100
|
+
p result
|
101
|
+
rescue AutosdeOpenapiClient::ApiError => e
|
102
|
+
puts "Error when calling HostClusterMembershipApi->host_cluster_membership_pk_delete: #{e}"
|
103
|
+
end
|
104
|
+
```
|
105
|
+
|
106
|
+
#### Using the host_cluster_membership_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<HostClusterMembership>>, Integer, Hash)> host_cluster_membership_pk_delete_with_http_info(pk)
|
111
|
+
|
112
|
+
```ruby
|
113
|
+
begin
|
114
|
+
|
115
|
+
data, status_code, headers = api_instance.host_cluster_membership_pk_delete_with_http_info(pk)
|
116
|
+
p status_code # => 2xx
|
117
|
+
p headers # => { ... }
|
118
|
+
p data # => <Array<HostClusterMembership>>
|
119
|
+
rescue AutosdeOpenapiClient::ApiError => e
|
120
|
+
puts "Error when calling HostClusterMembershipApi->host_cluster_membership_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<HostClusterMembership>**](HostClusterMembership.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_cluster_membership_pk_get
|
145
|
+
|
146
|
+
> <Array<HostClusterMembership>> host_cluster_membership_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::HostClusterMembershipApi.new
|
162
|
+
pk = 56 # Integer |
|
163
|
+
|
164
|
+
begin
|
165
|
+
|
166
|
+
result = api_instance.host_cluster_membership_pk_get(pk)
|
167
|
+
p result
|
168
|
+
rescue AutosdeOpenapiClient::ApiError => e
|
169
|
+
puts "Error when calling HostClusterMembershipApi->host_cluster_membership_pk_get: #{e}"
|
170
|
+
end
|
171
|
+
```
|
172
|
+
|
173
|
+
#### Using the host_cluster_membership_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<HostClusterMembership>>, Integer, Hash)> host_cluster_membership_pk_get_with_http_info(pk)
|
178
|
+
|
179
|
+
```ruby
|
180
|
+
begin
|
181
|
+
|
182
|
+
data, status_code, headers = api_instance.host_cluster_membership_pk_get_with_http_info(pk)
|
183
|
+
p status_code # => 2xx
|
184
|
+
p headers # => { ... }
|
185
|
+
p data # => <Array<HostClusterMembership>>
|
186
|
+
rescue AutosdeOpenapiClient::ApiError => e
|
187
|
+
puts "Error when calling HostClusterMembershipApi->host_cluster_membership_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<HostClusterMembership>**](HostClusterMembership.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_cluster_membership_post
|
212
|
+
|
213
|
+
> <HostClusterMembership> host_cluster_membership_post(host_cluster_membership)
|
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::HostClusterMembershipApi.new
|
229
|
+
host_cluster_membership = AutosdeOpenapiClient::HostClusterMembership.new # HostClusterMembership |
|
230
|
+
|
231
|
+
begin
|
232
|
+
|
233
|
+
result = api_instance.host_cluster_membership_post(host_cluster_membership)
|
234
|
+
p result
|
235
|
+
rescue AutosdeOpenapiClient::ApiError => e
|
236
|
+
puts "Error when calling HostClusterMembershipApi->host_cluster_membership_post: #{e}"
|
237
|
+
end
|
238
|
+
```
|
239
|
+
|
240
|
+
#### Using the host_cluster_membership_post_with_http_info variant
|
241
|
+
|
242
|
+
This returns an Array which contains the response data, status code and headers.
|
243
|
+
|
244
|
+
> <Array(<HostClusterMembership>, Integer, Hash)> host_cluster_membership_post_with_http_info(host_cluster_membership)
|
245
|
+
|
246
|
+
```ruby
|
247
|
+
begin
|
248
|
+
|
249
|
+
data, status_code, headers = api_instance.host_cluster_membership_post_with_http_info(host_cluster_membership)
|
250
|
+
p status_code # => 2xx
|
251
|
+
p headers # => { ... }
|
252
|
+
p data # => <HostClusterMembership>
|
253
|
+
rescue AutosdeOpenapiClient::ApiError => e
|
254
|
+
puts "Error when calling HostClusterMembershipApi->host_cluster_membership_post_with_http_info: #{e}"
|
255
|
+
end
|
256
|
+
```
|
257
|
+
|
258
|
+
### Parameters
|
259
|
+
|
260
|
+
| Name | Type | Description | Notes |
|
261
|
+
| ---- | ---- | ----------- | ----- |
|
262
|
+
| **host_cluster_membership** | [**HostClusterMembership**](HostClusterMembership.md) | | |
|
263
|
+
|
264
|
+
### Return type
|
265
|
+
|
266
|
+
[**HostClusterMembership**](HostClusterMembership.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,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 HostClusterMembershipApi
|
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<HostClusterMembership>]
|
24
|
+
def host_cluster_membership_get(opts = {})
|
25
|
+
data, _status_code, _headers = host_cluster_membership_get_with_http_info(opts)
|
26
|
+
data
|
27
|
+
end
|
28
|
+
|
29
|
+
# @param [Hash] opts the optional parameters
|
30
|
+
# @return [Array<(Array<HostClusterMembership>, Integer, Hash)>] Array<HostClusterMembership> data, response status code and response headers
|
31
|
+
def host_cluster_membership_get_with_http_info(opts = {})
|
32
|
+
if @api_client.config.debugging
|
33
|
+
@api_client.config.logger.debug 'Calling API: HostClusterMembershipApi.host_cluster_membership_get ...'
|
34
|
+
end
|
35
|
+
# resource path
|
36
|
+
local_var_path = '/host-cluster-membership'
|
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<HostClusterMembership>'
|
54
|
+
|
55
|
+
# auth_names
|
56
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
57
|
+
|
58
|
+
new_options = opts.merge(
|
59
|
+
:operation => :"HostClusterMembershipApi.host_cluster_membership_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: HostClusterMembershipApi#host_cluster_membership_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<HostClusterMembership>]
|
78
|
+
def host_cluster_membership_pk_delete(pk, opts = {})
|
79
|
+
data, _status_code, _headers = host_cluster_membership_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<HostClusterMembership>, Integer, Hash)>] Array<HostClusterMembership> data, response status code and response headers
|
86
|
+
def host_cluster_membership_pk_delete_with_http_info(pk, opts = {})
|
87
|
+
if @api_client.config.debugging
|
88
|
+
@api_client.config.logger.debug 'Calling API: HostClusterMembershipApi.host_cluster_membership_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 HostClusterMembershipApi.host_cluster_membership_pk_delete"
|
93
|
+
end
|
94
|
+
# resource path
|
95
|
+
local_var_path = '/host-cluster-membership/{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<HostClusterMembership>'
|
113
|
+
|
114
|
+
# auth_names
|
115
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
116
|
+
|
117
|
+
new_options = opts.merge(
|
118
|
+
:operation => :"HostClusterMembershipApi.host_cluster_membership_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: HostClusterMembershipApi#host_cluster_membership_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<HostClusterMembership>]
|
137
|
+
def host_cluster_membership_pk_get(pk, opts = {})
|
138
|
+
data, _status_code, _headers = host_cluster_membership_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<HostClusterMembership>, Integer, Hash)>] Array<HostClusterMembership> data, response status code and response headers
|
145
|
+
def host_cluster_membership_pk_get_with_http_info(pk, opts = {})
|
146
|
+
if @api_client.config.debugging
|
147
|
+
@api_client.config.logger.debug 'Calling API: HostClusterMembershipApi.host_cluster_membership_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 HostClusterMembershipApi.host_cluster_membership_pk_get"
|
152
|
+
end
|
153
|
+
# resource path
|
154
|
+
local_var_path = '/host-cluster-membership/{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<HostClusterMembership>'
|
172
|
+
|
173
|
+
# auth_names
|
174
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
175
|
+
|
176
|
+
new_options = opts.merge(
|
177
|
+
:operation => :"HostClusterMembershipApi.host_cluster_membership_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: HostClusterMembershipApi#host_cluster_membership_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_membership [HostClusterMembership]
|
194
|
+
# @param [Hash] opts the optional parameters
|
195
|
+
# @return [HostClusterMembership]
|
196
|
+
def host_cluster_membership_post(host_cluster_membership, opts = {})
|
197
|
+
data, _status_code, _headers = host_cluster_membership_post_with_http_info(host_cluster_membership, opts)
|
198
|
+
data
|
199
|
+
end
|
200
|
+
|
201
|
+
# @param host_cluster_membership [HostClusterMembership]
|
202
|
+
# @param [Hash] opts the optional parameters
|
203
|
+
# @return [Array<(HostClusterMembership, Integer, Hash)>] HostClusterMembership data, response status code and response headers
|
204
|
+
def host_cluster_membership_post_with_http_info(host_cluster_membership, opts = {})
|
205
|
+
if @api_client.config.debugging
|
206
|
+
@api_client.config.logger.debug 'Calling API: HostClusterMembershipApi.host_cluster_membership_post ...'
|
207
|
+
end
|
208
|
+
# verify the required parameter 'host_cluster_membership' is set
|
209
|
+
if @api_client.config.client_side_validation && host_cluster_membership.nil?
|
210
|
+
fail ArgumentError, "Missing the required parameter 'host_cluster_membership' when calling HostClusterMembershipApi.host_cluster_membership_post"
|
211
|
+
end
|
212
|
+
# resource path
|
213
|
+
local_var_path = '/host-cluster-membership'
|
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_membership)
|
230
|
+
|
231
|
+
# return_type
|
232
|
+
return_type = opts[:debug_return_type] || 'HostClusterMembership'
|
233
|
+
|
234
|
+
# auth_names
|
235
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
236
|
+
|
237
|
+
new_options = opts.merge(
|
238
|
+
:operation => :"HostClusterMembershipApi.host_cluster_membership_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: HostClusterMembershipApi#host_cluster_membership_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
250
|
+
end
|
251
|
+
return data, status_code, headers
|
252
|
+
end
|
253
|
+
end
|
254
|
+
end
|
@@ -0,0 +1,287 @@
|
|
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
|
+
# hostClusterMembership
|
18
|
+
class HostClusterMembership
|
19
|
+
attr_accessor :cluster
|
20
|
+
|
21
|
+
# component_state
|
22
|
+
attr_accessor :component_state
|
23
|
+
|
24
|
+
attr_accessor :host
|
25
|
+
|
26
|
+
# uuid
|
27
|
+
attr_accessor :uuid
|
28
|
+
|
29
|
+
class EnumAttributeValidator
|
30
|
+
attr_reader :datatype
|
31
|
+
attr_reader :allowable_values
|
32
|
+
|
33
|
+
def initialize(datatype, allowable_values)
|
34
|
+
@allowable_values = allowable_values.map do |value|
|
35
|
+
case datatype.to_s
|
36
|
+
when /Integer/i
|
37
|
+
value.to_i
|
38
|
+
when /Float/i
|
39
|
+
value.to_f
|
40
|
+
else
|
41
|
+
value
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
def valid?(value)
|
47
|
+
!value || allowable_values.include?(value)
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
52
|
+
def self.attribute_map
|
53
|
+
{
|
54
|
+
:'cluster' => :'cluster',
|
55
|
+
:'component_state' => :'component_state',
|
56
|
+
:'host' => :'host',
|
57
|
+
:'uuid' => :'uuid'
|
58
|
+
}
|
59
|
+
end
|
60
|
+
|
61
|
+
# Returns all the JSON keys this model knows about
|
62
|
+
def self.acceptable_attributes
|
63
|
+
attribute_map.values
|
64
|
+
end
|
65
|
+
|
66
|
+
# Attribute type mapping.
|
67
|
+
def self.openapi_types
|
68
|
+
{
|
69
|
+
:'cluster' => :'HostCluster',
|
70
|
+
:'component_state' => :'String',
|
71
|
+
:'host' => :'StorageHost',
|
72
|
+
:'uuid' => :'String'
|
73
|
+
}
|
74
|
+
end
|
75
|
+
|
76
|
+
# List of attributes with nullable: true
|
77
|
+
def self.openapi_nullable
|
78
|
+
Set.new([
|
79
|
+
])
|
80
|
+
end
|
81
|
+
|
82
|
+
# Initializes the object
|
83
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
84
|
+
def initialize(attributes = {})
|
85
|
+
if (!attributes.is_a?(Hash))
|
86
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `AutosdeOpenapiClient::HostClusterMembership` initialize method"
|
87
|
+
end
|
88
|
+
|
89
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
90
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
91
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
92
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `AutosdeOpenapiClient::HostClusterMembership`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
93
|
+
end
|
94
|
+
h[k.to_sym] = v
|
95
|
+
}
|
96
|
+
|
97
|
+
if attributes.key?(:'cluster')
|
98
|
+
self.cluster = attributes[:'cluster']
|
99
|
+
end
|
100
|
+
|
101
|
+
if attributes.key?(:'component_state')
|
102
|
+
self.component_state = attributes[:'component_state']
|
103
|
+
end
|
104
|
+
|
105
|
+
if attributes.key?(:'host')
|
106
|
+
self.host = attributes[:'host']
|
107
|
+
end
|
108
|
+
|
109
|
+
if attributes.key?(:'uuid')
|
110
|
+
self.uuid = attributes[:'uuid']
|
111
|
+
end
|
112
|
+
end
|
113
|
+
|
114
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
115
|
+
# @return Array for valid properties with the reasons
|
116
|
+
def list_invalid_properties
|
117
|
+
invalid_properties = Array.new
|
118
|
+
if !@component_state.nil? && @component_state.to_s.length > 32
|
119
|
+
invalid_properties.push('invalid value for "component_state", the character length must be smaller than or equal to 32.')
|
120
|
+
end
|
121
|
+
|
122
|
+
invalid_properties
|
123
|
+
end
|
124
|
+
|
125
|
+
# Check to see if the all the properties in the model are valid
|
126
|
+
# @return true if the model is valid
|
127
|
+
def valid?
|
128
|
+
component_state_validator = EnumAttributeValidator.new('String', ["PENDING_CREATION", "CREATED", "DELETED", "PENDING_DELETION", "MODIFICATION", "PENDING_MODIFICATION"])
|
129
|
+
return false unless component_state_validator.valid?(@component_state)
|
130
|
+
return false if !@component_state.nil? && @component_state.to_s.length > 32
|
131
|
+
true
|
132
|
+
end
|
133
|
+
|
134
|
+
# Custom attribute writer method checking allowed values (enum).
|
135
|
+
# @param [Object] component_state Object to be assigned
|
136
|
+
def component_state=(component_state)
|
137
|
+
validator = EnumAttributeValidator.new('String', ["PENDING_CREATION", "CREATED", "DELETED", "PENDING_DELETION", "MODIFICATION", "PENDING_MODIFICATION"])
|
138
|
+
unless validator.valid?(component_state)
|
139
|
+
fail ArgumentError, "invalid value for \"component_state\", must be one of #{validator.allowable_values}."
|
140
|
+
end
|
141
|
+
@component_state = component_state
|
142
|
+
end
|
143
|
+
|
144
|
+
# Checks equality by comparing each attribute.
|
145
|
+
# @param [Object] Object to be compared
|
146
|
+
def ==(o)
|
147
|
+
return true if self.equal?(o)
|
148
|
+
self.class == o.class &&
|
149
|
+
cluster == o.cluster &&
|
150
|
+
component_state == o.component_state &&
|
151
|
+
host == o.host &&
|
152
|
+
uuid == o.uuid
|
153
|
+
end
|
154
|
+
|
155
|
+
# @see the `==` method
|
156
|
+
# @param [Object] Object to be compared
|
157
|
+
def eql?(o)
|
158
|
+
self == o
|
159
|
+
end
|
160
|
+
|
161
|
+
# Calculates hash code according to all attributes.
|
162
|
+
# @return [Integer] Hash code
|
163
|
+
def hash
|
164
|
+
[cluster, component_state, host, uuid].hash
|
165
|
+
end
|
166
|
+
|
167
|
+
# Builds the object from hash
|
168
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
169
|
+
# @return [Object] Returns the model itself
|
170
|
+
def self.build_from_hash(attributes)
|
171
|
+
new.build_from_hash(attributes)
|
172
|
+
end
|
173
|
+
|
174
|
+
# Builds the object from hash
|
175
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
176
|
+
# @return [Object] Returns the model itself
|
177
|
+
def build_from_hash(attributes)
|
178
|
+
return nil unless attributes.is_a?(Hash)
|
179
|
+
self.class.openapi_types.each_pair do |key, type|
|
180
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
181
|
+
self.send("#{key}=", nil)
|
182
|
+
elsif type =~ /\AArray<(.*)>/i
|
183
|
+
# check to ensure the input is an array given that the attribute
|
184
|
+
# is documented as an array but the input is not
|
185
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
186
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
187
|
+
end
|
188
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
189
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
190
|
+
end
|
191
|
+
end
|
192
|
+
|
193
|
+
self
|
194
|
+
end
|
195
|
+
|
196
|
+
# Deserializes the data based on type
|
197
|
+
# @param string type Data type
|
198
|
+
# @param string value Value to be deserialized
|
199
|
+
# @return [Object] Deserialized data
|
200
|
+
def _deserialize(type, value)
|
201
|
+
case type.to_sym
|
202
|
+
when :Time
|
203
|
+
Time.parse(value)
|
204
|
+
when :Date
|
205
|
+
Date.parse(value)
|
206
|
+
when :String
|
207
|
+
value.to_s
|
208
|
+
when :Integer
|
209
|
+
value.to_i
|
210
|
+
when :Float
|
211
|
+
value.to_f
|
212
|
+
when :Boolean
|
213
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
214
|
+
true
|
215
|
+
else
|
216
|
+
false
|
217
|
+
end
|
218
|
+
when :Object
|
219
|
+
# generic object (usually a Hash), return directly
|
220
|
+
value
|
221
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
222
|
+
inner_type = Regexp.last_match[:inner_type]
|
223
|
+
value.map { |v| _deserialize(inner_type, v) }
|
224
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
225
|
+
k_type = Regexp.last_match[:k_type]
|
226
|
+
v_type = Regexp.last_match[:v_type]
|
227
|
+
{}.tap do |hash|
|
228
|
+
value.each do |k, v|
|
229
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
230
|
+
end
|
231
|
+
end
|
232
|
+
else # model
|
233
|
+
# models (e.g. Pet) or oneOf
|
234
|
+
klass = AutosdeOpenapiClient.const_get(type)
|
235
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
236
|
+
end
|
237
|
+
end
|
238
|
+
|
239
|
+
# Returns the string representation of the object
|
240
|
+
# @return [String] String presentation of the object
|
241
|
+
def to_s
|
242
|
+
to_hash.to_s
|
243
|
+
end
|
244
|
+
|
245
|
+
# to_body is an alias to to_hash (backward compatibility)
|
246
|
+
# @return [Hash] Returns the object in the form of hash
|
247
|
+
def to_body
|
248
|
+
to_hash
|
249
|
+
end
|
250
|
+
|
251
|
+
# Returns the object in the form of hash
|
252
|
+
# @return [Hash] Returns the object in the form of hash
|
253
|
+
def to_hash
|
254
|
+
hash = {}
|
255
|
+
self.class.attribute_map.each_pair do |attr, param|
|
256
|
+
value = self.send(attr)
|
257
|
+
if value.nil?
|
258
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
259
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
260
|
+
end
|
261
|
+
|
262
|
+
hash[param] = _to_hash(value)
|
263
|
+
end
|
264
|
+
hash
|
265
|
+
end
|
266
|
+
|
267
|
+
# Outputs non-array value in the form of hash
|
268
|
+
# For object, use to_hash. Otherwise, just return the value
|
269
|
+
# @param [Object] value Any valid value
|
270
|
+
# @return [Hash] Returns the value in the form of hash
|
271
|
+
def _to_hash(value)
|
272
|
+
if value.is_a?(Array)
|
273
|
+
value.compact.map { |v| _to_hash(v) }
|
274
|
+
elsif value.is_a?(Hash)
|
275
|
+
{}.tap do |hash|
|
276
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
277
|
+
end
|
278
|
+
elsif value.respond_to? :to_hash
|
279
|
+
value.to_hash
|
280
|
+
else
|
281
|
+
value
|
282
|
+
end
|
283
|
+
end
|
284
|
+
|
285
|
+
end
|
286
|
+
|
287
|
+
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Site Manager API
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 1.0.
|
6
|
+
The version of the OpenAPI document: 1.0.48
|
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.0.
|
14
|
+
VERSION = '1.0.48'
|
15
15
|
end
|
@@ -32,6 +32,7 @@ require 'autosde_openapi_client/models/capability_translation_create'
|
|
32
32
|
require 'autosde_openapi_client/models/host'
|
33
33
|
require 'autosde_openapi_client/models/host_cluster'
|
34
34
|
require 'autosde_openapi_client/models/host_cluster_create'
|
35
|
+
require 'autosde_openapi_client/models/host_cluster_membership'
|
35
36
|
require 'autosde_openapi_client/models/host_create'
|
36
37
|
require 'autosde_openapi_client/models/host_volume_connection'
|
37
38
|
require 'autosde_openapi_client/models/host_volume_connection_create'
|
@@ -79,6 +80,7 @@ require 'autosde_openapi_client/api/auto_sde_role_api'
|
|
79
80
|
require 'autosde_openapi_client/api/capability_translation_api'
|
80
81
|
require 'autosde_openapi_client/api/host_api'
|
81
82
|
require 'autosde_openapi_client/api/host_cluster_api'
|
83
|
+
require 'autosde_openapi_client/api/host_cluster_membership_api'
|
82
84
|
require 'autosde_openapi_client/api/host_volume_connection_api'
|
83
85
|
require 'autosde_openapi_client/api/job_api'
|
84
86
|
require 'autosde_openapi_client/api/native_capability_api'
|
@@ -0,0 +1,74 @@
|
|
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::HostClusterMembershipApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'HostClusterMembershipApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = AutosdeOpenapiClient::HostClusterMembershipApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of HostClusterMembershipApi' do
|
30
|
+
it 'should create an instance of HostClusterMembershipApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(AutosdeOpenapiClient::HostClusterMembershipApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for host_cluster_membership_get
|
36
|
+
# @param [Hash] opts the optional parameters
|
37
|
+
# @return [Array<HostClusterMembership>]
|
38
|
+
describe 'host_cluster_membership_get test' do
|
39
|
+
it 'should work' do
|
40
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
# unit tests for host_cluster_membership_pk_delete
|
45
|
+
# @param pk
|
46
|
+
# @param [Hash] opts the optional parameters
|
47
|
+
# @return [Array<HostClusterMembership>]
|
48
|
+
describe 'host_cluster_membership_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 host_cluster_membership_pk_get
|
55
|
+
# @param pk
|
56
|
+
# @param [Hash] opts the optional parameters
|
57
|
+
# @return [Array<HostClusterMembership>]
|
58
|
+
describe 'host_cluster_membership_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
|
+
|
64
|
+
# unit tests for host_cluster_membership_post
|
65
|
+
# @param host_cluster_membership
|
66
|
+
# @param [Hash] opts the optional parameters
|
67
|
+
# @return [HostClusterMembership]
|
68
|
+
describe 'host_cluster_membership_post test' do
|
69
|
+
it 'should work' do
|
70
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
74
|
+
end
|
@@ -0,0 +1,56 @@
|
|
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::HostClusterMembership
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe AutosdeOpenapiClient::HostClusterMembership do
|
21
|
+
let(:instance) { AutosdeOpenapiClient::HostClusterMembership.new }
|
22
|
+
|
23
|
+
describe 'test an instance of HostClusterMembership' do
|
24
|
+
it 'should create an instance of HostClusterMembership' do
|
25
|
+
expect(instance).to be_instance_of(AutosdeOpenapiClient::HostClusterMembership)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "cluster"' 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
|
+
describe 'test attribute "component_state"' do
|
35
|
+
it 'should work' do
|
36
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
37
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["PENDING_CREATION", "CREATED", "DELETED", "PENDING_DELETION", "MODIFICATION", "PENDING_MODIFICATION"])
|
38
|
+
# validator.allowable_values.each do |value|
|
39
|
+
# expect { instance.component_state = value }.not_to raise_error
|
40
|
+
# end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
describe 'test attribute "host"' do
|
45
|
+
it 'should work' do
|
46
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
describe 'test attribute "uuid"' do
|
51
|
+
it 'should work' do
|
52
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
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.0.
|
4
|
+
version: 1.0.48
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenAPI-Generator
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-08-
|
11
|
+
date: 2021-08-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -85,6 +85,8 @@ files:
|
|
85
85
|
- docs/HostCluster.md
|
86
86
|
- docs/HostClusterApi.md
|
87
87
|
- docs/HostClusterCreate.md
|
88
|
+
- docs/HostClusterMembership.md
|
89
|
+
- docs/HostClusterMembershipApi.md
|
88
90
|
- docs/HostCreate.md
|
89
91
|
- docs/HostVolumeConnection.md
|
90
92
|
- docs/HostVolumeConnectionApi.md
|
@@ -148,6 +150,7 @@ files:
|
|
148
150
|
- lib/autosde_openapi_client/api/capability_translation_api.rb
|
149
151
|
- lib/autosde_openapi_client/api/host_api.rb
|
150
152
|
- lib/autosde_openapi_client/api/host_cluster_api.rb
|
153
|
+
- lib/autosde_openapi_client/api/host_cluster_membership_api.rb
|
151
154
|
- lib/autosde_openapi_client/api/host_volume_connection_api.rb
|
152
155
|
- lib/autosde_openapi_client/api/job_api.rb
|
153
156
|
- lib/autosde_openapi_client/api/native_capability_api.rb
|
@@ -182,6 +185,7 @@ files:
|
|
182
185
|
- lib/autosde_openapi_client/models/host.rb
|
183
186
|
- lib/autosde_openapi_client/models/host_cluster.rb
|
184
187
|
- lib/autosde_openapi_client/models/host_cluster_create.rb
|
188
|
+
- lib/autosde_openapi_client/models/host_cluster_membership.rb
|
185
189
|
- lib/autosde_openapi_client/models/host_create.rb
|
186
190
|
- lib/autosde_openapi_client/models/host_volume_connection.rb
|
187
191
|
- lib/autosde_openapi_client/models/host_volume_connection_create.rb
|
@@ -228,6 +232,7 @@ files:
|
|
228
232
|
- spec/api/capability_translation_api_spec.rb
|
229
233
|
- spec/api/host_api_spec.rb
|
230
234
|
- spec/api/host_cluster_api_spec.rb
|
235
|
+
- spec/api/host_cluster_membership_api_spec.rb
|
231
236
|
- spec/api/host_volume_connection_api_spec.rb
|
232
237
|
- spec/api/job_api_spec.rb
|
233
238
|
- spec/api/native_capability_api_spec.rb
|
@@ -259,6 +264,7 @@ files:
|
|
259
264
|
- spec/models/capability_translation_create_spec.rb
|
260
265
|
- spec/models/capability_translation_spec.rb
|
261
266
|
- spec/models/host_cluster_create_spec.rb
|
267
|
+
- spec/models/host_cluster_membership_spec.rb
|
262
268
|
- spec/models/host_cluster_spec.rb
|
263
269
|
- spec/models/host_create_spec.rb
|
264
270
|
- spec/models/host_spec.rb
|
@@ -322,82 +328,84 @@ signing_key:
|
|
322
328
|
specification_version: 4
|
323
329
|
summary: Site Manager API Ruby Gem
|
324
330
|
test_files:
|
325
|
-
- spec/api/
|
326
|
-
- spec/api/
|
331
|
+
- spec/api/snapshot_api_spec.rb
|
332
|
+
- spec/api/auto_sde_role_api_spec.rb
|
333
|
+
- spec/api/host_cluster_membership_api_spec.rb
|
334
|
+
- spec/api/service_api_spec.rb
|
335
|
+
- spec/api/volume_api_spec.rb
|
336
|
+
- spec/api/provisioning_strategy_api_spec.rb
|
337
|
+
- spec/api/system_type_api_spec.rb
|
327
338
|
- spec/api/native_capability_api_spec.rb
|
339
|
+
- spec/api/capability_translation_api_spec.rb
|
340
|
+
- spec/api/volume_safe_delete_api_spec.rb
|
341
|
+
- spec/api/storage_host_volume_mapping_api_spec.rb
|
342
|
+
- spec/api/profile_api_spec.rb
|
328
343
|
- spec/api/abstract_capability_api_spec.rb
|
329
|
-
- spec/api/
|
344
|
+
- spec/api/service_resource_attachment_api_spec.rb
|
345
|
+
- spec/api/job_api_spec.rb
|
330
346
|
- spec/api/host_cluster_api_spec.rb
|
331
|
-
- spec/api/
|
347
|
+
- spec/api/host_volume_connection_api_spec.rb
|
348
|
+
- spec/api/host_api_spec.rb
|
349
|
+
- spec/api/address_api_spec.rb
|
332
350
|
- spec/api/authentication_api_spec.rb
|
351
|
+
- spec/api/auto_sde_project_api_spec.rb
|
333
352
|
- spec/api/account_api_spec.rb
|
334
|
-
- spec/api/system_type_api_spec.rb
|
335
|
-
- spec/api/auto_sde_role_api_spec.rb
|
336
353
|
- spec/api/storage_system_api_spec.rb
|
337
|
-
- spec/api/
|
338
|
-
- spec/api/provisioning_strategy_api_spec.rb
|
339
|
-
- spec/api/service_api_spec.rb
|
340
|
-
- spec/api/job_api_spec.rb
|
341
|
-
- spec/api/storage_host_wwpn_candidates_api_spec.rb
|
342
|
-
- spec/api/host_api_spec.rb
|
343
|
-
- spec/api/capability_translation_api_spec.rb
|
354
|
+
- spec/api/storage_host_api_spec.rb
|
344
355
|
- spec/api/storage_resource_api_spec.rb
|
345
|
-
- spec/api/
|
346
|
-
- spec/api/host_volume_connection_api_spec.rb
|
347
|
-
- spec/api/profile_api_spec.rb
|
348
|
-
- spec/api/service_resource_attachment_api_spec.rb
|
349
|
-
- spec/api/volume_api_spec.rb
|
356
|
+
- spec/api/storage_host_wwpn_candidates_api_spec.rb
|
350
357
|
- spec/api_client_spec.rb
|
351
358
|
- spec/configuration_spec.rb
|
352
|
-
- spec/models/
|
353
|
-
- spec/models/host_cluster_spec.rb
|
354
|
-
- spec/models/host_volume_connection_create_spec.rb
|
355
|
-
- spec/models/address_spec.rb
|
356
|
-
- spec/models/host_create_spec.rb
|
357
|
-
- spec/models/address_create_spec.rb
|
358
|
-
- spec/models/storage_resource_response_spec.rb
|
359
|
-
- spec/models/snapshot_spec.rb
|
360
|
-
- spec/models/native_capability_spec.rb
|
361
|
-
- spec/models/authentication_spec.rb
|
362
|
-
- spec/models/system_type_create_spec.rb
|
363
|
-
- spec/models/storage_resource_spec.rb
|
364
|
-
- spec/models/storage_host_update_spec.rb
|
365
|
-
- spec/models/provisioning_strategy_spec.rb
|
366
|
-
- spec/models/account_post_request_spec.rb
|
367
|
-
- spec/models/volume_spec.rb
|
368
|
-
- spec/models/account_spec.rb
|
369
|
-
- spec/models/storage_host_volume_mapping_create_spec.rb
|
370
|
-
- spec/models/service_create_spec.rb
|
371
|
-
- spec/models/capability_translation_spec.rb
|
372
|
-
- spec/models/host_volume_connection_spec.rb
|
373
|
-
- spec/models/volume_safe_delete_spec.rb
|
374
|
-
- spec/models/storage_system_update_spec.rb
|
359
|
+
- spec/models/host_cluster_create_spec.rb
|
375
360
|
- spec/models/auth_response_spec.rb
|
376
|
-
- spec/models/system_type_spec.rb
|
377
361
|
- spec/models/storage_system_spec.rb
|
378
|
-
- spec/models/
|
379
|
-
- spec/models/
|
380
|
-
- spec/models/
|
381
|
-
- spec/models/host_cluster_create_spec.rb
|
382
|
-
- spec/models/service_abstract_capability_value_spec.rb
|
383
|
-
- spec/models/storage_resource_create_spec.rb
|
384
|
-
- spec/models/job_spec.rb
|
385
|
-
- spec/models/storage_host_spec.rb
|
362
|
+
- spec/models/capability_translation_create_spec.rb
|
363
|
+
- spec/models/service_resource_attachment_spec.rb
|
364
|
+
- spec/models/storage_host_wwpn_candidates_spec.rb
|
386
365
|
- spec/models/storage_host_create_spec.rb
|
387
|
-
- spec/models/host_spec.rb
|
388
366
|
- spec/models/abstract_capability_spec.rb
|
367
|
+
- spec/models/storage_host_update_spec.rb
|
368
|
+
- spec/models/storage_host_spec.rb
|
369
|
+
- spec/models/host_volume_connection_spec.rb
|
370
|
+
- spec/models/service_abstract_capability_value_spec.rb
|
371
|
+
- spec/models/job_spec.rb
|
372
|
+
- spec/models/profile_spec.rb
|
389
373
|
- spec/models/volume_safe_delete_create_spec.rb
|
390
|
-
- spec/models/
|
374
|
+
- spec/models/capability_translation_spec.rb
|
375
|
+
- spec/models/job_create_spec.rb
|
391
376
|
- spec/models/volume_response_spec.rb
|
392
|
-
- spec/models/
|
393
|
-
- spec/models/
|
377
|
+
- spec/models/storage_resource_create_spec.rb
|
378
|
+
- spec/models/volume_safe_delete_spec.rb
|
379
|
+
- spec/models/host_create_spec.rb
|
380
|
+
- spec/models/storage_resource_spec.rb
|
381
|
+
- spec/models/host_cluster_membership_spec.rb
|
382
|
+
- spec/models/address_spec.rb
|
383
|
+
- spec/models/storage_system_update_spec.rb
|
384
|
+
- spec/models/auto_sde_project_spec.rb
|
385
|
+
- spec/models/service_spec.rb
|
386
|
+
- spec/models/storage_host_response_spec.rb
|
387
|
+
- spec/models/authentication_spec.rb
|
388
|
+
- spec/models/account_post_request_spec.rb
|
389
|
+
- spec/models/volume_create_spec.rb
|
394
390
|
- spec/models/account_post_response_spec.rb
|
395
|
-
- spec/models/
|
391
|
+
- spec/models/storage_host_volume_mapping_response_spec.rb
|
392
|
+
- spec/models/storage_host_volume_mapping_create_spec.rb
|
393
|
+
- spec/models/storage_resource_response_spec.rb
|
394
|
+
- spec/models/provisioning_strategy_spec.rb
|
395
|
+
- spec/models/snapshot_spec.rb
|
396
396
|
- spec/models/auto_sde_role_spec.rb
|
397
|
-
- spec/models/
|
397
|
+
- spec/models/address_create_spec.rb
|
398
|
+
- spec/models/service_create_spec.rb
|
398
399
|
- spec/models/storage_host_volume_mapping_spec.rb
|
399
|
-
- spec/models/
|
400
|
-
- spec/models/
|
400
|
+
- spec/models/snapshot_create_spec.rb
|
401
|
+
- spec/models/host_volume_connection_create_spec.rb
|
401
402
|
- spec/models/storage_system_create_spec.rb
|
402
|
-
- spec/models/
|
403
|
+
- spec/models/system_type_create_spec.rb
|
404
|
+
- spec/models/host_cluster_spec.rb
|
405
|
+
- spec/models/native_capability_spec.rb
|
406
|
+
- spec/models/host_spec.rb
|
407
|
+
- spec/models/volume_spec.rb
|
408
|
+
- spec/models/account_spec.rb
|
409
|
+
- spec/models/volume_update_spec.rb
|
410
|
+
- spec/models/system_type_spec.rb
|
403
411
|
- spec/spec_helper.rb
|