autosde_openapi_client 1.0.46 → 1.0.47

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b4ca072eafd6460cc2f70e1f8c50e8c69fce59dc88acad8de099a3f0c1c43286
4
- data.tar.gz: 76ae9a929abf9d17d3686800843817e9c58550a81e265471f1ee07ce253858e6
3
+ metadata.gz: 2aabee272580cee1d8f1983265ba817fd564b2aa37dd5893a9dc5adeae1c79ed
4
+ data.tar.gz: f3bda2c5f92a3a8a3fd2399891ba4b5b3c252cf90697907106bb6aa588725c6f
5
5
  SHA512:
6
- metadata.gz: 2c7383807d44451ab8a2c0d120651351f01e6fda757f1452af299a6714af7fb582a647fafe5786b873ece6b8794e96586ca638920011db1d6d9e939f600746ad
7
- data.tar.gz: cc731bf9c9bd6e71fb1caac4f50f7af7fbf5832fa34ade6aa5d3d949560a079af4f4ac8c883d597567a676ba97d5486cdc87128e417e85409ee47a87a9e9c044
6
+ metadata.gz: 631c71d4df24d3c19fe0695c7c134b5aa396eeb75381d0143e01da871e00c71d582a06a3bcd68aea7a2717b1f6e8ab53a4f3faaf461192f334bb15e48230a0c3
7
+ data.tar.gz: a0bd107ddb03dc6242b776eef0cb1f68c8c0e848ed56fc3fc91b6a2347c907cdcd480e4ab5cffe589a1cb0a3126c6058d43fa075e5cccf6f65f35f924628cfc3
data/README.md CHANGED
@@ -109,6 +109,10 @@ Class | Method | HTTP request | Description
109
109
  *AutosdeOpenapiClient::HostApi* | [**hosts_pk_delete**](docs/HostApi.md#hosts_pk_delete) | **DELETE** /hosts/{pk} |
110
110
  *AutosdeOpenapiClient::HostApi* | [**hosts_pk_get**](docs/HostApi.md#hosts_pk_get) | **GET** /hosts/{pk} |
111
111
  *AutosdeOpenapiClient::HostApi* | [**hosts_post**](docs/HostApi.md#hosts_post) | **POST** /hosts |
112
+ *AutosdeOpenapiClient::HostClusterApi* | [**host_clusters_get**](docs/HostClusterApi.md#host_clusters_get) | **GET** /host-clusters |
113
+ *AutosdeOpenapiClient::HostClusterApi* | [**host_clusters_pk_delete**](docs/HostClusterApi.md#host_clusters_pk_delete) | **DELETE** /host-clusters/{pk} |
114
+ *AutosdeOpenapiClient::HostClusterApi* | [**host_clusters_pk_get**](docs/HostClusterApi.md#host_clusters_pk_get) | **GET** /host-clusters/{pk} |
115
+ *AutosdeOpenapiClient::HostClusterApi* | [**host_clusters_post**](docs/HostClusterApi.md#host_clusters_post) | **POST** /host-clusters |
112
116
  *AutosdeOpenapiClient::HostVolumeConnectionApi* | [**host_volume_connection_get**](docs/HostVolumeConnectionApi.md#host_volume_connection_get) | **GET** /host-volume-connection |
113
117
  *AutosdeOpenapiClient::HostVolumeConnectionApi* | [**host_volume_connection_pk_delete**](docs/HostVolumeConnectionApi.md#host_volume_connection_pk_delete) | **DELETE** /host-volume-connection/{pk} |
114
118
  *AutosdeOpenapiClient::HostVolumeConnectionApi* | [**host_volume_connection_pk_get**](docs/HostVolumeConnectionApi.md#host_volume_connection_pk_get) | **GET** /host-volume-connection/{pk} |
@@ -190,6 +194,8 @@ Class | Method | HTTP request | Description
190
194
  - [AutosdeOpenapiClient::CapabilityTranslation](docs/CapabilityTranslation.md)
191
195
  - [AutosdeOpenapiClient::CapabilityTranslationCreate](docs/CapabilityTranslationCreate.md)
192
196
  - [AutosdeOpenapiClient::Host](docs/Host.md)
197
+ - [AutosdeOpenapiClient::HostCluster](docs/HostCluster.md)
198
+ - [AutosdeOpenapiClient::HostClusterCreate](docs/HostClusterCreate.md)
193
199
  - [AutosdeOpenapiClient::HostCreate](docs/HostCreate.md)
194
200
  - [AutosdeOpenapiClient::HostVolumeConnection](docs/HostVolumeConnection.md)
195
201
  - [AutosdeOpenapiClient::HostVolumeConnectionCreate](docs/HostVolumeConnectionCreate.md)
@@ -0,0 +1,32 @@
1
+ # AutosdeOpenapiClient::HostCluster
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **component_state** | **String** | component_state | [optional] |
8
+ | **name** | **String** | name | [optional] |
9
+ | **owner_id** | **String** | owner_id | [optional] |
10
+ | **owner_name** | **String** | owner_name | [optional] |
11
+ | **protocol** | **String** | protocol | [optional] |
12
+ | **status** | **String** | status | [optional] |
13
+ | **storage_system** | [**StorageSystem**](StorageSystem.md) | | [optional] |
14
+ | **uuid** | **String** | uuid | [optional] |
15
+
16
+ ## Example
17
+
18
+ ```ruby
19
+ require 'autosde_openapi_client'
20
+
21
+ instance = AutosdeOpenapiClient::HostCluster.new(
22
+ component_state: null,
23
+ name: null,
24
+ owner_id: null,
25
+ owner_name: null,
26
+ protocol: null,
27
+ status: null,
28
+ storage_system: null,
29
+ uuid: null
30
+ )
31
+ ```
32
+
@@ -0,0 +1,276 @@
1
+ # AutosdeOpenapiClient::HostClusterApi
2
+
3
+ All URIs are relative to *http://localhost:9000/site-manager/api/v1/engine*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**host_clusters_get**](HostClusterApi.md#host_clusters_get) | **GET** /host-clusters | |
8
+ | [**host_clusters_pk_delete**](HostClusterApi.md#host_clusters_pk_delete) | **DELETE** /host-clusters/{pk} | |
9
+ | [**host_clusters_pk_get**](HostClusterApi.md#host_clusters_pk_get) | **GET** /host-clusters/{pk} | |
10
+ | [**host_clusters_post**](HostClusterApi.md#host_clusters_post) | **POST** /host-clusters | |
11
+
12
+
13
+ ## host_clusters_get
14
+
15
+ > <Array<HostCluster>> host_clusters_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::HostClusterApi.new
31
+
32
+ begin
33
+
34
+ result = api_instance.host_clusters_get
35
+ p result
36
+ rescue AutosdeOpenapiClient::ApiError => e
37
+ puts "Error when calling HostClusterApi->host_clusters_get: #{e}"
38
+ end
39
+ ```
40
+
41
+ #### Using the host_clusters_get_with_http_info variant
42
+
43
+ This returns an Array which contains the response data, status code and headers.
44
+
45
+ > <Array(<Array<HostCluster>>, Integer, Hash)> host_clusters_get_with_http_info
46
+
47
+ ```ruby
48
+ begin
49
+
50
+ data, status_code, headers = api_instance.host_clusters_get_with_http_info
51
+ p status_code # => 2xx
52
+ p headers # => { ... }
53
+ p data # => <Array<HostCluster>>
54
+ rescue AutosdeOpenapiClient::ApiError => e
55
+ puts "Error when calling HostClusterApi->host_clusters_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&lt;HostCluster&gt;**](HostCluster.md)
66
+
67
+ ### Authorization
68
+
69
+ [bearerAuth](../README.md#bearerAuth)
70
+
71
+ ### HTTP request headers
72
+
73
+ - **Content-Type**: Not defined
74
+ - **Accept**: */*
75
+
76
+
77
+ ## host_clusters_pk_delete
78
+
79
+ > <Array<HostCluster>> host_clusters_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::HostClusterApi.new
95
+ pk = 56 # Integer |
96
+
97
+ begin
98
+
99
+ result = api_instance.host_clusters_pk_delete(pk)
100
+ p result
101
+ rescue AutosdeOpenapiClient::ApiError => e
102
+ puts "Error when calling HostClusterApi->host_clusters_pk_delete: #{e}"
103
+ end
104
+ ```
105
+
106
+ #### Using the host_clusters_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<HostCluster>>, Integer, Hash)> host_clusters_pk_delete_with_http_info(pk)
111
+
112
+ ```ruby
113
+ begin
114
+
115
+ data, status_code, headers = api_instance.host_clusters_pk_delete_with_http_info(pk)
116
+ p status_code # => 2xx
117
+ p headers # => { ... }
118
+ p data # => <Array<HostCluster>>
119
+ rescue AutosdeOpenapiClient::ApiError => e
120
+ puts "Error when calling HostClusterApi->host_clusters_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&lt;HostCluster&gt;**](HostCluster.md)
133
+
134
+ ### Authorization
135
+
136
+ [bearerAuth](../README.md#bearerAuth)
137
+
138
+ ### HTTP request headers
139
+
140
+ - **Content-Type**: Not defined
141
+ - **Accept**: */*
142
+
143
+
144
+ ## host_clusters_pk_get
145
+
146
+ > <Array<HostCluster>> host_clusters_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::HostClusterApi.new
162
+ pk = 56 # Integer |
163
+
164
+ begin
165
+
166
+ result = api_instance.host_clusters_pk_get(pk)
167
+ p result
168
+ rescue AutosdeOpenapiClient::ApiError => e
169
+ puts "Error when calling HostClusterApi->host_clusters_pk_get: #{e}"
170
+ end
171
+ ```
172
+
173
+ #### Using the host_clusters_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<HostCluster>>, Integer, Hash)> host_clusters_pk_get_with_http_info(pk)
178
+
179
+ ```ruby
180
+ begin
181
+
182
+ data, status_code, headers = api_instance.host_clusters_pk_get_with_http_info(pk)
183
+ p status_code # => 2xx
184
+ p headers # => { ... }
185
+ p data # => <Array<HostCluster>>
186
+ rescue AutosdeOpenapiClient::ApiError => e
187
+ puts "Error when calling HostClusterApi->host_clusters_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&lt;HostCluster&gt;**](HostCluster.md)
200
+
201
+ ### Authorization
202
+
203
+ [bearerAuth](../README.md#bearerAuth)
204
+
205
+ ### HTTP request headers
206
+
207
+ - **Content-Type**: Not defined
208
+ - **Accept**: */*
209
+
210
+
211
+ ## host_clusters_post
212
+
213
+ > <HostCluster> host_clusters_post(host_cluster_create)
214
+
215
+
216
+
217
+ ### Examples
218
+
219
+ ```ruby
220
+ require 'time'
221
+ require 'autosde_openapi_client'
222
+ # setup authorization
223
+ AutosdeOpenapiClient.configure do |config|
224
+ # Configure Bearer authorization: bearerAuth
225
+ config.access_token = 'YOUR_BEARER_TOKEN'
226
+ end
227
+
228
+ api_instance = AutosdeOpenapiClient::HostClusterApi.new
229
+ host_cluster_create = AutosdeOpenapiClient::HostClusterCreate.new # HostClusterCreate |
230
+
231
+ begin
232
+
233
+ result = api_instance.host_clusters_post(host_cluster_create)
234
+ p result
235
+ rescue AutosdeOpenapiClient::ApiError => e
236
+ puts "Error when calling HostClusterApi->host_clusters_post: #{e}"
237
+ end
238
+ ```
239
+
240
+ #### Using the host_clusters_post_with_http_info variant
241
+
242
+ This returns an Array which contains the response data, status code and headers.
243
+
244
+ > <Array(<HostCluster>, Integer, Hash)> host_clusters_post_with_http_info(host_cluster_create)
245
+
246
+ ```ruby
247
+ begin
248
+
249
+ data, status_code, headers = api_instance.host_clusters_post_with_http_info(host_cluster_create)
250
+ p status_code # => 2xx
251
+ p headers # => { ... }
252
+ p data # => <HostCluster>
253
+ rescue AutosdeOpenapiClient::ApiError => e
254
+ puts "Error when calling HostClusterApi->host_clusters_post_with_http_info: #{e}"
255
+ end
256
+ ```
257
+
258
+ ### Parameters
259
+
260
+ | Name | Type | Description | Notes |
261
+ | ---- | ---- | ----------- | ----- |
262
+ | **host_cluster_create** | [**HostClusterCreate**](HostClusterCreate.md) | | |
263
+
264
+ ### Return type
265
+
266
+ [**HostCluster**](HostCluster.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,28 @@
1
+ # AutosdeOpenapiClient::HostClusterCreate
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
+ | **storage_system** | [**StorageSystem**](StorageSystem.md) | | [optional] |
13
+
14
+ ## Example
15
+
16
+ ```ruby
17
+ require 'autosde_openapi_client'
18
+
19
+ instance = AutosdeOpenapiClient::HostClusterCreate.new(
20
+ name: null,
21
+ owner_id: null,
22
+ owner_name: null,
23
+ protocol: null,
24
+ status: null,
25
+ storage_system: null
26
+ )
27
+ ```
28
+
@@ -30,6 +30,8 @@ require 'autosde_openapi_client/models/auto_sde_role'
30
30
  require 'autosde_openapi_client/models/capability_translation'
31
31
  require 'autosde_openapi_client/models/capability_translation_create'
32
32
  require 'autosde_openapi_client/models/host'
33
+ require 'autosde_openapi_client/models/host_cluster'
34
+ require 'autosde_openapi_client/models/host_cluster_create'
33
35
  require 'autosde_openapi_client/models/host_create'
34
36
  require 'autosde_openapi_client/models/host_volume_connection'
35
37
  require 'autosde_openapi_client/models/host_volume_connection_create'
@@ -76,6 +78,7 @@ require 'autosde_openapi_client/api/auto_sde_project_api'
76
78
  require 'autosde_openapi_client/api/auto_sde_role_api'
77
79
  require 'autosde_openapi_client/api/capability_translation_api'
78
80
  require 'autosde_openapi_client/api/host_api'
81
+ require 'autosde_openapi_client/api/host_cluster_api'
79
82
  require 'autosde_openapi_client/api/host_volume_connection_api'
80
83
  require 'autosde_openapi_client/api/job_api'
81
84
  require 'autosde_openapi_client/api/native_capability_api'
@@ -0,0 +1,254 @@
1
+ =begin
2
+ #Site Manager API
3
+
4
+ #Site Manager API
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ Contact: autosde@il.ibm.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.0.0
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module AutosdeOpenapiClient
16
+ class HostClusterApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # @param [Hash] opts the optional parameters
23
+ # @return [Array<HostCluster>]
24
+ def host_clusters_get(opts = {})
25
+ data, _status_code, _headers = host_clusters_get_with_http_info(opts)
26
+ data
27
+ end
28
+
29
+ # @param [Hash] opts the optional parameters
30
+ # @return [Array<(Array<HostCluster>, Integer, Hash)>] Array<HostCluster> data, response status code and response headers
31
+ def host_clusters_get_with_http_info(opts = {})
32
+ if @api_client.config.debugging
33
+ @api_client.config.logger.debug 'Calling API: HostClusterApi.host_clusters_get ...'
34
+ end
35
+ # resource path
36
+ local_var_path = '/host-clusters'
37
+
38
+ # query parameters
39
+ query_params = opts[:query_params] || {}
40
+
41
+ # header parameters
42
+ header_params = opts[:header_params] || {}
43
+ # HTTP header 'Accept' (if needed)
44
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
45
+
46
+ # form parameters
47
+ form_params = opts[:form_params] || {}
48
+
49
+ # http body (model)
50
+ post_body = opts[:debug_body]
51
+
52
+ # return_type
53
+ return_type = opts[:debug_return_type] || 'Array<HostCluster>'
54
+
55
+ # auth_names
56
+ auth_names = opts[:debug_auth_names] || ['bearerAuth']
57
+
58
+ new_options = opts.merge(
59
+ :operation => :"HostClusterApi.host_clusters_get",
60
+ :header_params => header_params,
61
+ :query_params => query_params,
62
+ :form_params => form_params,
63
+ :body => post_body,
64
+ :auth_names => auth_names,
65
+ :return_type => return_type
66
+ )
67
+
68
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
69
+ if @api_client.config.debugging
70
+ @api_client.config.logger.debug "API called: HostClusterApi#host_clusters_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
71
+ end
72
+ return data, status_code, headers
73
+ end
74
+
75
+ # @param pk [Integer]
76
+ # @param [Hash] opts the optional parameters
77
+ # @return [Array<HostCluster>]
78
+ def host_clusters_pk_delete(pk, opts = {})
79
+ data, _status_code, _headers = host_clusters_pk_delete_with_http_info(pk, opts)
80
+ data
81
+ end
82
+
83
+ # @param pk [Integer]
84
+ # @param [Hash] opts the optional parameters
85
+ # @return [Array<(Array<HostCluster>, Integer, Hash)>] Array<HostCluster> data, response status code and response headers
86
+ def host_clusters_pk_delete_with_http_info(pk, opts = {})
87
+ if @api_client.config.debugging
88
+ @api_client.config.logger.debug 'Calling API: HostClusterApi.host_clusters_pk_delete ...'
89
+ end
90
+ # verify the required parameter 'pk' is set
91
+ if @api_client.config.client_side_validation && pk.nil?
92
+ fail ArgumentError, "Missing the required parameter 'pk' when calling HostClusterApi.host_clusters_pk_delete"
93
+ end
94
+ # resource path
95
+ local_var_path = '/host-clusters/{pk}'.sub('{' + 'pk' + '}', CGI.escape(pk.to_s))
96
+
97
+ # query parameters
98
+ query_params = opts[:query_params] || {}
99
+
100
+ # header parameters
101
+ header_params = opts[:header_params] || {}
102
+ # HTTP header 'Accept' (if needed)
103
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
104
+
105
+ # form parameters
106
+ form_params = opts[:form_params] || {}
107
+
108
+ # http body (model)
109
+ post_body = opts[:debug_body]
110
+
111
+ # return_type
112
+ return_type = opts[:debug_return_type] || 'Array<HostCluster>'
113
+
114
+ # auth_names
115
+ auth_names = opts[:debug_auth_names] || ['bearerAuth']
116
+
117
+ new_options = opts.merge(
118
+ :operation => :"HostClusterApi.host_clusters_pk_delete",
119
+ :header_params => header_params,
120
+ :query_params => query_params,
121
+ :form_params => form_params,
122
+ :body => post_body,
123
+ :auth_names => auth_names,
124
+ :return_type => return_type
125
+ )
126
+
127
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
128
+ if @api_client.config.debugging
129
+ @api_client.config.logger.debug "API called: HostClusterApi#host_clusters_pk_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
130
+ end
131
+ return data, status_code, headers
132
+ end
133
+
134
+ # @param pk [Integer]
135
+ # @param [Hash] opts the optional parameters
136
+ # @return [Array<HostCluster>]
137
+ def host_clusters_pk_get(pk, opts = {})
138
+ data, _status_code, _headers = host_clusters_pk_get_with_http_info(pk, opts)
139
+ data
140
+ end
141
+
142
+ # @param pk [Integer]
143
+ # @param [Hash] opts the optional parameters
144
+ # @return [Array<(Array<HostCluster>, Integer, Hash)>] Array<HostCluster> data, response status code and response headers
145
+ def host_clusters_pk_get_with_http_info(pk, opts = {})
146
+ if @api_client.config.debugging
147
+ @api_client.config.logger.debug 'Calling API: HostClusterApi.host_clusters_pk_get ...'
148
+ end
149
+ # verify the required parameter 'pk' is set
150
+ if @api_client.config.client_side_validation && pk.nil?
151
+ fail ArgumentError, "Missing the required parameter 'pk' when calling HostClusterApi.host_clusters_pk_get"
152
+ end
153
+ # resource path
154
+ local_var_path = '/host-clusters/{pk}'.sub('{' + 'pk' + '}', CGI.escape(pk.to_s))
155
+
156
+ # query parameters
157
+ query_params = opts[:query_params] || {}
158
+
159
+ # header parameters
160
+ header_params = opts[:header_params] || {}
161
+ # HTTP header 'Accept' (if needed)
162
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
163
+
164
+ # form parameters
165
+ form_params = opts[:form_params] || {}
166
+
167
+ # http body (model)
168
+ post_body = opts[:debug_body]
169
+
170
+ # return_type
171
+ return_type = opts[:debug_return_type] || 'Array<HostCluster>'
172
+
173
+ # auth_names
174
+ auth_names = opts[:debug_auth_names] || ['bearerAuth']
175
+
176
+ new_options = opts.merge(
177
+ :operation => :"HostClusterApi.host_clusters_pk_get",
178
+ :header_params => header_params,
179
+ :query_params => query_params,
180
+ :form_params => form_params,
181
+ :body => post_body,
182
+ :auth_names => auth_names,
183
+ :return_type => return_type
184
+ )
185
+
186
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
187
+ if @api_client.config.debugging
188
+ @api_client.config.logger.debug "API called: HostClusterApi#host_clusters_pk_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
189
+ end
190
+ return data, status_code, headers
191
+ end
192
+
193
+ # @param host_cluster_create [HostClusterCreate]
194
+ # @param [Hash] opts the optional parameters
195
+ # @return [HostCluster]
196
+ def host_clusters_post(host_cluster_create, opts = {})
197
+ data, _status_code, _headers = host_clusters_post_with_http_info(host_cluster_create, opts)
198
+ data
199
+ end
200
+
201
+ # @param host_cluster_create [HostClusterCreate]
202
+ # @param [Hash] opts the optional parameters
203
+ # @return [Array<(HostCluster, Integer, Hash)>] HostCluster data, response status code and response headers
204
+ def host_clusters_post_with_http_info(host_cluster_create, opts = {})
205
+ if @api_client.config.debugging
206
+ @api_client.config.logger.debug 'Calling API: HostClusterApi.host_clusters_post ...'
207
+ end
208
+ # verify the required parameter 'host_cluster_create' is set
209
+ if @api_client.config.client_side_validation && host_cluster_create.nil?
210
+ fail ArgumentError, "Missing the required parameter 'host_cluster_create' when calling HostClusterApi.host_clusters_post"
211
+ end
212
+ # resource path
213
+ local_var_path = '/host-clusters'
214
+
215
+ # query parameters
216
+ query_params = opts[:query_params] || {}
217
+
218
+ # header parameters
219
+ header_params = opts[:header_params] || {}
220
+ # HTTP header 'Accept' (if needed)
221
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
222
+ # HTTP header 'Content-Type'
223
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
224
+
225
+ # form parameters
226
+ form_params = opts[:form_params] || {}
227
+
228
+ # http body (model)
229
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(host_cluster_create)
230
+
231
+ # return_type
232
+ return_type = opts[:debug_return_type] || 'HostCluster'
233
+
234
+ # auth_names
235
+ auth_names = opts[:debug_auth_names] || ['bearerAuth']
236
+
237
+ new_options = opts.merge(
238
+ :operation => :"HostClusterApi.host_clusters_post",
239
+ :header_params => header_params,
240
+ :query_params => query_params,
241
+ :form_params => form_params,
242
+ :body => post_body,
243
+ :auth_names => auth_names,
244
+ :return_type => return_type
245
+ )
246
+
247
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
248
+ if @api_client.config.debugging
249
+ @api_client.config.logger.debug "API called: HostClusterApi#host_clusters_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
250
+ end
251
+ return data, status_code, headers
252
+ end
253
+ end
254
+ end