autosde_openapi_client 1.0.47 → 1.0.51
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 +12 -0
- data/docs/HostCluster.md +3 -1
- data/docs/HostClusterCreate.md +3 -1
- 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_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 +13 -4
- data/lib/autosde_openapi_client/models/host_cluster_create.rb +13 -4
- 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/storage_system.rb +0 -15
- data/lib/autosde_openapi_client/models/storage_system_create.rb +0 -15
- 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 +6 -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 +6 -0
- data/spec/models/host_cluster_membership_spec.rb +56 -0
- data/spec/models/host_cluster_spec.rb +6 -0
- data/spec/models/host_cluster_volume_mapping_create_spec.rb +56 -0
- data/spec/models/host_cluster_volume_mapping_response_spec.rb +62 -0
- data/spec/models/host_cluster_volume_mapping_spec.rb +62 -0
- data/spec/models/volume_create_spec.rb +6 -0
- metadata +26 -2
@@ -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 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,254 @@
|
|
1
|
+
=begin
|
2
|
+
#Site Manager API
|
3
|
+
|
4
|
+
#Site Manager API
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
Contact: autosde@il.ibm.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.0.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'cgi'
|
14
|
+
|
15
|
+
module AutosdeOpenapiClient
|
16
|
+
class HostClusterVolumeMappingApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# @param [Hash] opts the optional parameters
|
23
|
+
# @return [Array<HostClusterVolumeMappingResponse>]
|
24
|
+
def host_clusters_mapping_get(opts = {})
|
25
|
+
data, _status_code, _headers = host_clusters_mapping_get_with_http_info(opts)
|
26
|
+
data
|
27
|
+
end
|
28
|
+
|
29
|
+
# @param [Hash] opts the optional parameters
|
30
|
+
# @return [Array<(Array<HostClusterVolumeMappingResponse>, Integer, Hash)>] Array<HostClusterVolumeMappingResponse> data, response status code and response headers
|
31
|
+
def host_clusters_mapping_get_with_http_info(opts = {})
|
32
|
+
if @api_client.config.debugging
|
33
|
+
@api_client.config.logger.debug 'Calling API: HostClusterVolumeMappingApi.host_clusters_mapping_get ...'
|
34
|
+
end
|
35
|
+
# resource path
|
36
|
+
local_var_path = '/host-clusters-mapping'
|
37
|
+
|
38
|
+
# query parameters
|
39
|
+
query_params = opts[:query_params] || {}
|
40
|
+
|
41
|
+
# header parameters
|
42
|
+
header_params = opts[:header_params] || {}
|
43
|
+
# HTTP header 'Accept' (if needed)
|
44
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
45
|
+
|
46
|
+
# form parameters
|
47
|
+
form_params = opts[:form_params] || {}
|
48
|
+
|
49
|
+
# http body (model)
|
50
|
+
post_body = opts[:debug_body]
|
51
|
+
|
52
|
+
# return_type
|
53
|
+
return_type = opts[:debug_return_type] || 'Array<HostClusterVolumeMappingResponse>'
|
54
|
+
|
55
|
+
# auth_names
|
56
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
57
|
+
|
58
|
+
new_options = opts.merge(
|
59
|
+
:operation => :"HostClusterVolumeMappingApi.host_clusters_mapping_get",
|
60
|
+
:header_params => header_params,
|
61
|
+
:query_params => query_params,
|
62
|
+
:form_params => form_params,
|
63
|
+
:body => post_body,
|
64
|
+
:auth_names => auth_names,
|
65
|
+
:return_type => return_type
|
66
|
+
)
|
67
|
+
|
68
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
69
|
+
if @api_client.config.debugging
|
70
|
+
@api_client.config.logger.debug "API called: HostClusterVolumeMappingApi#host_clusters_mapping_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
71
|
+
end
|
72
|
+
return data, status_code, headers
|
73
|
+
end
|
74
|
+
|
75
|
+
# @param pk [Integer]
|
76
|
+
# @param [Hash] opts the optional parameters
|
77
|
+
# @return [Array<HostClusterVolumeMappingResponse>]
|
78
|
+
def host_clusters_mapping_pk_delete(pk, opts = {})
|
79
|
+
data, _status_code, _headers = host_clusters_mapping_pk_delete_with_http_info(pk, opts)
|
80
|
+
data
|
81
|
+
end
|
82
|
+
|
83
|
+
# @param pk [Integer]
|
84
|
+
# @param [Hash] opts the optional parameters
|
85
|
+
# @return [Array<(Array<HostClusterVolumeMappingResponse>, Integer, Hash)>] Array<HostClusterVolumeMappingResponse> data, response status code and response headers
|
86
|
+
def host_clusters_mapping_pk_delete_with_http_info(pk, opts = {})
|
87
|
+
if @api_client.config.debugging
|
88
|
+
@api_client.config.logger.debug 'Calling API: HostClusterVolumeMappingApi.host_clusters_mapping_pk_delete ...'
|
89
|
+
end
|
90
|
+
# verify the required parameter 'pk' is set
|
91
|
+
if @api_client.config.client_side_validation && pk.nil?
|
92
|
+
fail ArgumentError, "Missing the required parameter 'pk' when calling HostClusterVolumeMappingApi.host_clusters_mapping_pk_delete"
|
93
|
+
end
|
94
|
+
# resource path
|
95
|
+
local_var_path = '/host-clusters-mapping/{pk}'.sub('{' + 'pk' + '}', CGI.escape(pk.to_s))
|
96
|
+
|
97
|
+
# query parameters
|
98
|
+
query_params = opts[:query_params] || {}
|
99
|
+
|
100
|
+
# header parameters
|
101
|
+
header_params = opts[:header_params] || {}
|
102
|
+
# HTTP header 'Accept' (if needed)
|
103
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
104
|
+
|
105
|
+
# form parameters
|
106
|
+
form_params = opts[:form_params] || {}
|
107
|
+
|
108
|
+
# http body (model)
|
109
|
+
post_body = opts[:debug_body]
|
110
|
+
|
111
|
+
# return_type
|
112
|
+
return_type = opts[:debug_return_type] || 'Array<HostClusterVolumeMappingResponse>'
|
113
|
+
|
114
|
+
# auth_names
|
115
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
116
|
+
|
117
|
+
new_options = opts.merge(
|
118
|
+
:operation => :"HostClusterVolumeMappingApi.host_clusters_mapping_pk_delete",
|
119
|
+
:header_params => header_params,
|
120
|
+
:query_params => query_params,
|
121
|
+
:form_params => form_params,
|
122
|
+
:body => post_body,
|
123
|
+
:auth_names => auth_names,
|
124
|
+
:return_type => return_type
|
125
|
+
)
|
126
|
+
|
127
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
128
|
+
if @api_client.config.debugging
|
129
|
+
@api_client.config.logger.debug "API called: HostClusterVolumeMappingApi#host_clusters_mapping_pk_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
130
|
+
end
|
131
|
+
return data, status_code, headers
|
132
|
+
end
|
133
|
+
|
134
|
+
# @param pk [Integer]
|
135
|
+
# @param [Hash] opts the optional parameters
|
136
|
+
# @return [Array<HostClusterVolumeMappingResponse>]
|
137
|
+
def host_clusters_mapping_pk_get(pk, opts = {})
|
138
|
+
data, _status_code, _headers = host_clusters_mapping_pk_get_with_http_info(pk, opts)
|
139
|
+
data
|
140
|
+
end
|
141
|
+
|
142
|
+
# @param pk [Integer]
|
143
|
+
# @param [Hash] opts the optional parameters
|
144
|
+
# @return [Array<(Array<HostClusterVolumeMappingResponse>, Integer, Hash)>] Array<HostClusterVolumeMappingResponse> data, response status code and response headers
|
145
|
+
def host_clusters_mapping_pk_get_with_http_info(pk, opts = {})
|
146
|
+
if @api_client.config.debugging
|
147
|
+
@api_client.config.logger.debug 'Calling API: HostClusterVolumeMappingApi.host_clusters_mapping_pk_get ...'
|
148
|
+
end
|
149
|
+
# verify the required parameter 'pk' is set
|
150
|
+
if @api_client.config.client_side_validation && pk.nil?
|
151
|
+
fail ArgumentError, "Missing the required parameter 'pk' when calling HostClusterVolumeMappingApi.host_clusters_mapping_pk_get"
|
152
|
+
end
|
153
|
+
# resource path
|
154
|
+
local_var_path = '/host-clusters-mapping/{pk}'.sub('{' + 'pk' + '}', CGI.escape(pk.to_s))
|
155
|
+
|
156
|
+
# query parameters
|
157
|
+
query_params = opts[:query_params] || {}
|
158
|
+
|
159
|
+
# header parameters
|
160
|
+
header_params = opts[:header_params] || {}
|
161
|
+
# HTTP header 'Accept' (if needed)
|
162
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
163
|
+
|
164
|
+
# form parameters
|
165
|
+
form_params = opts[:form_params] || {}
|
166
|
+
|
167
|
+
# http body (model)
|
168
|
+
post_body = opts[:debug_body]
|
169
|
+
|
170
|
+
# return_type
|
171
|
+
return_type = opts[:debug_return_type] || 'Array<HostClusterVolumeMappingResponse>'
|
172
|
+
|
173
|
+
# auth_names
|
174
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
175
|
+
|
176
|
+
new_options = opts.merge(
|
177
|
+
:operation => :"HostClusterVolumeMappingApi.host_clusters_mapping_pk_get",
|
178
|
+
:header_params => header_params,
|
179
|
+
:query_params => query_params,
|
180
|
+
:form_params => form_params,
|
181
|
+
:body => post_body,
|
182
|
+
:auth_names => auth_names,
|
183
|
+
:return_type => return_type
|
184
|
+
)
|
185
|
+
|
186
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
187
|
+
if @api_client.config.debugging
|
188
|
+
@api_client.config.logger.debug "API called: HostClusterVolumeMappingApi#host_clusters_mapping_pk_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
189
|
+
end
|
190
|
+
return data, status_code, headers
|
191
|
+
end
|
192
|
+
|
193
|
+
# @param host_cluster_volume_mapping_create [HostClusterVolumeMappingCreate]
|
194
|
+
# @param [Hash] opts the optional parameters
|
195
|
+
# @return [HostClusterVolumeMapping]
|
196
|
+
def host_clusters_mapping_post(host_cluster_volume_mapping_create, opts = {})
|
197
|
+
data, _status_code, _headers = host_clusters_mapping_post_with_http_info(host_cluster_volume_mapping_create, opts)
|
198
|
+
data
|
199
|
+
end
|
200
|
+
|
201
|
+
# @param host_cluster_volume_mapping_create [HostClusterVolumeMappingCreate]
|
202
|
+
# @param [Hash] opts the optional parameters
|
203
|
+
# @return [Array<(HostClusterVolumeMapping, Integer, Hash)>] HostClusterVolumeMapping data, response status code and response headers
|
204
|
+
def host_clusters_mapping_post_with_http_info(host_cluster_volume_mapping_create, opts = {})
|
205
|
+
if @api_client.config.debugging
|
206
|
+
@api_client.config.logger.debug 'Calling API: HostClusterVolumeMappingApi.host_clusters_mapping_post ...'
|
207
|
+
end
|
208
|
+
# verify the required parameter 'host_cluster_volume_mapping_create' is set
|
209
|
+
if @api_client.config.client_side_validation && host_cluster_volume_mapping_create.nil?
|
210
|
+
fail ArgumentError, "Missing the required parameter 'host_cluster_volume_mapping_create' when calling HostClusterVolumeMappingApi.host_clusters_mapping_post"
|
211
|
+
end
|
212
|
+
# resource path
|
213
|
+
local_var_path = '/host-clusters-mapping'
|
214
|
+
|
215
|
+
# query parameters
|
216
|
+
query_params = opts[:query_params] || {}
|
217
|
+
|
218
|
+
# header parameters
|
219
|
+
header_params = opts[:header_params] || {}
|
220
|
+
# HTTP header 'Accept' (if needed)
|
221
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
222
|
+
# HTTP header 'Content-Type'
|
223
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
224
|
+
|
225
|
+
# form parameters
|
226
|
+
form_params = opts[:form_params] || {}
|
227
|
+
|
228
|
+
# http body (model)
|
229
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(host_cluster_volume_mapping_create)
|
230
|
+
|
231
|
+
# return_type
|
232
|
+
return_type = opts[:debug_return_type] || 'HostClusterVolumeMapping'
|
233
|
+
|
234
|
+
# auth_names
|
235
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
236
|
+
|
237
|
+
new_options = opts.merge(
|
238
|
+
:operation => :"HostClusterVolumeMappingApi.host_clusters_mapping_post",
|
239
|
+
:header_params => header_params,
|
240
|
+
:query_params => query_params,
|
241
|
+
:form_params => form_params,
|
242
|
+
:body => post_body,
|
243
|
+
:auth_names => auth_names,
|
244
|
+
:return_type => return_type
|
245
|
+
)
|
246
|
+
|
247
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
248
|
+
if @api_client.config.debugging
|
249
|
+
@api_client.config.logger.debug "API called: HostClusterVolumeMappingApi#host_clusters_mapping_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
250
|
+
end
|
251
|
+
return data, status_code, headers
|
252
|
+
end
|
253
|
+
end
|
254
|
+
end
|
@@ -39,6 +39,8 @@ module AutosdeOpenapiClient
|
|
39
39
|
# uuid
|
40
40
|
attr_accessor :uuid
|
41
41
|
|
42
|
+
attr_accessor :volumes
|
43
|
+
|
42
44
|
class EnumAttributeValidator
|
43
45
|
attr_reader :datatype
|
44
46
|
attr_reader :allowable_values
|
@@ -71,7 +73,8 @@ module AutosdeOpenapiClient
|
|
71
73
|
:'protocol' => :'protocol',
|
72
74
|
:'status' => :'status',
|
73
75
|
:'storage_system' => :'storage_system',
|
74
|
-
:'uuid' => :'uuid'
|
76
|
+
:'uuid' => :'uuid',
|
77
|
+
:'volumes' => :'volumes'
|
75
78
|
}
|
76
79
|
end
|
77
80
|
|
@@ -90,7 +93,8 @@ module AutosdeOpenapiClient
|
|
90
93
|
:'protocol' => :'String',
|
91
94
|
:'status' => :'String',
|
92
95
|
:'storage_system' => :'StorageSystem',
|
93
|
-
:'uuid' => :'String'
|
96
|
+
:'uuid' => :'String',
|
97
|
+
:'volumes' => :'Volume'
|
94
98
|
}
|
95
99
|
end
|
96
100
|
|
@@ -146,6 +150,10 @@ module AutosdeOpenapiClient
|
|
146
150
|
if attributes.key?(:'uuid')
|
147
151
|
self.uuid = attributes[:'uuid']
|
148
152
|
end
|
153
|
+
|
154
|
+
if attributes.key?(:'volumes')
|
155
|
+
self.volumes = attributes[:'volumes']
|
156
|
+
end
|
149
157
|
end
|
150
158
|
|
151
159
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -250,7 +258,8 @@ module AutosdeOpenapiClient
|
|
250
258
|
protocol == o.protocol &&
|
251
259
|
status == o.status &&
|
252
260
|
storage_system == o.storage_system &&
|
253
|
-
uuid == o.uuid
|
261
|
+
uuid == o.uuid &&
|
262
|
+
volumes == o.volumes
|
254
263
|
end
|
255
264
|
|
256
265
|
# @see the `==` method
|
@@ -262,7 +271,7 @@ module AutosdeOpenapiClient
|
|
262
271
|
# Calculates hash code according to all attributes.
|
263
272
|
# @return [Integer] Hash code
|
264
273
|
def hash
|
265
|
-
[component_state, name, owner_id, owner_name, protocol, status, storage_system, uuid].hash
|
274
|
+
[component_state, name, owner_id, owner_name, protocol, status, storage_system, uuid, volumes].hash
|
266
275
|
end
|
267
276
|
|
268
277
|
# Builds the object from hash
|
@@ -33,6 +33,8 @@ module AutosdeOpenapiClient
|
|
33
33
|
|
34
34
|
attr_accessor :storage_system
|
35
35
|
|
36
|
+
attr_accessor :volumes
|
37
|
+
|
36
38
|
# Attribute mapping from ruby-style variable name to JSON key.
|
37
39
|
def self.attribute_map
|
38
40
|
{
|
@@ -41,7 +43,8 @@ module AutosdeOpenapiClient
|
|
41
43
|
:'owner_name' => :'owner_name',
|
42
44
|
:'protocol' => :'protocol',
|
43
45
|
:'status' => :'status',
|
44
|
-
:'storage_system' => :'storage_system'
|
46
|
+
:'storage_system' => :'storage_system',
|
47
|
+
:'volumes' => :'volumes'
|
45
48
|
}
|
46
49
|
end
|
47
50
|
|
@@ -58,7 +61,8 @@ module AutosdeOpenapiClient
|
|
58
61
|
:'owner_name' => :'String',
|
59
62
|
:'protocol' => :'String',
|
60
63
|
:'status' => :'String',
|
61
|
-
:'storage_system' => :'StorageSystem'
|
64
|
+
:'storage_system' => :'StorageSystem',
|
65
|
+
:'volumes' => :'Volume'
|
62
66
|
}
|
63
67
|
end
|
64
68
|
|
@@ -106,6 +110,10 @@ module AutosdeOpenapiClient
|
|
106
110
|
if attributes.key?(:'storage_system')
|
107
111
|
self.storage_system = attributes[:'storage_system']
|
108
112
|
end
|
113
|
+
|
114
|
+
if attributes.key?(:'volumes')
|
115
|
+
self.volumes = attributes[:'volumes']
|
116
|
+
end
|
109
117
|
end
|
110
118
|
|
111
119
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -191,7 +199,8 @@ module AutosdeOpenapiClient
|
|
191
199
|
owner_name == o.owner_name &&
|
192
200
|
protocol == o.protocol &&
|
193
201
|
status == o.status &&
|
194
|
-
storage_system == o.storage_system
|
202
|
+
storage_system == o.storage_system &&
|
203
|
+
volumes == o.volumes
|
195
204
|
end
|
196
205
|
|
197
206
|
# @see the `==` method
|
@@ -203,7 +212,7 @@ module AutosdeOpenapiClient
|
|
203
212
|
# Calculates hash code according to all attributes.
|
204
213
|
# @return [Integer] Hash code
|
205
214
|
def hash
|
206
|
-
[name, owner_id, owner_name, protocol, status, storage_system].hash
|
215
|
+
[name, owner_id, owner_name, protocol, status, storage_system, volumes].hash
|
207
216
|
end
|
208
217
|
|
209
218
|
# Builds the object from hash
|