autosde_openapi_client 1.0.44 → 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.
Files changed (63) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +58 -46
  3. data/docs/AbstractCapabilityApi.md +4 -4
  4. data/docs/AccountApi.md +2 -2
  5. data/docs/AddressApi.md +2 -2
  6. data/docs/AutoSDEProjectApi.md +4 -4
  7. data/docs/AutoSDERoleApi.md +4 -4
  8. data/docs/CapabilityTranslationApi.md +2 -2
  9. data/docs/HostApi.md +2 -2
  10. data/docs/HostCluster.md +32 -0
  11. data/docs/HostClusterApi.md +276 -0
  12. data/docs/HostClusterCreate.md +28 -0
  13. data/docs/HostClusterMembership.md +24 -0
  14. data/docs/HostClusterMembershipApi.md +276 -0
  15. data/docs/HostVolumeConnectionApi.md +2 -2
  16. data/docs/NativeCapabilityApi.md +2 -2
  17. data/docs/ProfileApi.md +4 -4
  18. data/docs/ProvisioningStrategyApi.md +2 -2
  19. data/docs/ServiceApi.md +2 -2
  20. data/docs/ServiceResourceAttachmentApi.md +2 -2
  21. data/docs/SnapshotApi.md +2 -2
  22. data/docs/StorageResourceApi.md +2 -2
  23. data/docs/StorageSystemApi.md +8 -8
  24. data/docs/StorageSystemUpdate.md +24 -0
  25. data/docs/SystemTypeApi.md +2 -2
  26. data/docs/VolumeApi.md +2 -2
  27. data/docs/VolumeSafeDeleteApi.md +2 -2
  28. data/lib/autosde_openapi_client/api/abstract_capability_api.rb +4 -4
  29. data/lib/autosde_openapi_client/api/account_api.rb +2 -2
  30. data/lib/autosde_openapi_client/api/address_api.rb +2 -2
  31. data/lib/autosde_openapi_client/api/auto_sde_project_api.rb +4 -4
  32. data/lib/autosde_openapi_client/api/auto_sde_role_api.rb +4 -4
  33. data/lib/autosde_openapi_client/api/capability_translation_api.rb +2 -2
  34. data/lib/autosde_openapi_client/api/host_api.rb +2 -2
  35. data/lib/autosde_openapi_client/api/host_cluster_api.rb +254 -0
  36. data/lib/autosde_openapi_client/api/host_cluster_membership_api.rb +254 -0
  37. data/lib/autosde_openapi_client/api/host_volume_connection_api.rb +2 -2
  38. data/lib/autosde_openapi_client/api/native_capability_api.rb +2 -2
  39. data/lib/autosde_openapi_client/api/profile_api.rb +4 -4
  40. data/lib/autosde_openapi_client/api/provisioning_strategy_api.rb +2 -2
  41. data/lib/autosde_openapi_client/api/service_api.rb +2 -2
  42. data/lib/autosde_openapi_client/api/service_resource_attachment_api.rb +2 -2
  43. data/lib/autosde_openapi_client/api/snapshot_api.rb +2 -2
  44. data/lib/autosde_openapi_client/api/storage_resource_api.rb +2 -2
  45. data/lib/autosde_openapi_client/api/storage_system_api.rb +11 -11
  46. data/lib/autosde_openapi_client/api/system_type_api.rb +2 -2
  47. data/lib/autosde_openapi_client/api/volume_api.rb +2 -2
  48. data/lib/autosde_openapi_client/api/volume_safe_delete_api.rb +2 -2
  49. data/lib/autosde_openapi_client/models/abstract_capability.rb +1 -1
  50. data/lib/autosde_openapi_client/models/host_cluster.rb +388 -0
  51. data/lib/autosde_openapi_client/models/host_cluster_create.rb +329 -0
  52. data/lib/autosde_openapi_client/models/host_cluster_membership.rb +287 -0
  53. data/lib/autosde_openapi_client/models/storage_system_update.rb +265 -0
  54. data/lib/autosde_openapi_client/version.rb +2 -2
  55. data/lib/autosde_openapi_client.rb +6 -0
  56. data/spec/api/host_cluster_api_spec.rb +74 -0
  57. data/spec/api/host_cluster_membership_api_spec.rb +74 -0
  58. data/spec/api/storage_system_api_spec.rb +1 -1
  59. data/spec/models/host_cluster_create_spec.rb +64 -0
  60. data/spec/models/host_cluster_membership_spec.rb +56 -0
  61. data/spec/models/host_cluster_spec.rb +80 -0
  62. data/spec/models/storage_system_update_spec.rb +52 -0
  63. metadata +81 -57
@@ -4,11 +4,11 @@ All URIs are relative to *http://localhost:9000/site-manager/api/v1/engine*
4
4
 
5
5
  | Method | HTTP request | Description |
6
6
  | ------ | ------------ | ----------- |
7
- | [**storage_systems_get**](StorageSystemApi.md#storage_systems_get) | **GET** /storage-systems/ | |
7
+ | [**storage_systems_get**](StorageSystemApi.md#storage_systems_get) | **GET** /storage-systems | |
8
8
  | [**storage_systems_pk_delete**](StorageSystemApi.md#storage_systems_pk_delete) | **DELETE** /storage-systems/{pk} | |
9
9
  | [**storage_systems_pk_get**](StorageSystemApi.md#storage_systems_pk_get) | **GET** /storage-systems/{pk} | |
10
10
  | [**storage_systems_pk_put**](StorageSystemApi.md#storage_systems_pk_put) | **PUT** /storage-systems/{pk} | |
11
- | [**storage_systems_post**](StorageSystemApi.md#storage_systems_post) | **POST** /storage-systems/ | |
11
+ | [**storage_systems_post**](StorageSystemApi.md#storage_systems_post) | **POST** /storage-systems | |
12
12
 
13
13
 
14
14
  ## storage_systems_get
@@ -211,7 +211,7 @@ end
211
211
 
212
212
  ## storage_systems_pk_put
213
213
 
214
- > <StorageSystem> storage_systems_pk_put(pk, storage_system)
214
+ > <StorageSystem> storage_systems_pk_put(pk, storage_system_update)
215
215
 
216
216
 
217
217
 
@@ -228,11 +228,11 @@ end
228
228
 
229
229
  api_instance = AutosdeOpenapiClient::StorageSystemApi.new
230
230
  pk = 56 # Integer |
231
- storage_system = AutosdeOpenapiClient::StorageSystem.new # StorageSystem |
231
+ storage_system_update = AutosdeOpenapiClient::StorageSystemUpdate.new # StorageSystemUpdate |
232
232
 
233
233
  begin
234
234
 
235
- result = api_instance.storage_systems_pk_put(pk, storage_system)
235
+ result = api_instance.storage_systems_pk_put(pk, storage_system_update)
236
236
  p result
237
237
  rescue AutosdeOpenapiClient::ApiError => e
238
238
  puts "Error when calling StorageSystemApi->storage_systems_pk_put: #{e}"
@@ -243,12 +243,12 @@ end
243
243
 
244
244
  This returns an Array which contains the response data, status code and headers.
245
245
 
246
- > <Array(<StorageSystem>, Integer, Hash)> storage_systems_pk_put_with_http_info(pk, storage_system)
246
+ > <Array(<StorageSystem>, Integer, Hash)> storage_systems_pk_put_with_http_info(pk, storage_system_update)
247
247
 
248
248
  ```ruby
249
249
  begin
250
250
 
251
- data, status_code, headers = api_instance.storage_systems_pk_put_with_http_info(pk, storage_system)
251
+ data, status_code, headers = api_instance.storage_systems_pk_put_with_http_info(pk, storage_system_update)
252
252
  p status_code # => 2xx
253
253
  p headers # => { ... }
254
254
  p data # => <StorageSystem>
@@ -262,7 +262,7 @@ end
262
262
  | Name | Type | Description | Notes |
263
263
  | ---- | ---- | ----------- | ----- |
264
264
  | **pk** | **Integer** | | |
265
- | **storage_system** | [**StorageSystem**](StorageSystem.md) | | |
265
+ | **storage_system_update** | [**StorageSystemUpdate**](StorageSystemUpdate.md) | | |
266
266
 
267
267
  ### Return type
268
268
 
@@ -0,0 +1,24 @@
1
+ # AutosdeOpenapiClient::StorageSystemUpdate
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **management_ip** | **String** | management_ip | [optional] |
8
+ | **name** | **String** | name | [optional] |
9
+ | **password** | **String** | password | [optional] |
10
+ | **user** | **String** | user | [optional] |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'autosde_openapi_client'
16
+
17
+ instance = AutosdeOpenapiClient::StorageSystemUpdate.new(
18
+ management_ip: null,
19
+ name: null,
20
+ password: null,
21
+ user: null
22
+ )
23
+ ```
24
+
@@ -4,10 +4,10 @@ All URIs are relative to *http://localhost:9000/site-manager/api/v1/engine*
4
4
 
5
5
  | Method | HTTP request | Description |
6
6
  | ------ | ------------ | ----------- |
7
- | [**system_types_get**](SystemTypeApi.md#system_types_get) | **GET** /system-types/ | |
7
+ | [**system_types_get**](SystemTypeApi.md#system_types_get) | **GET** /system-types | |
8
8
  | [**system_types_pk_delete**](SystemTypeApi.md#system_types_pk_delete) | **DELETE** /system-types/{pk} | |
9
9
  | [**system_types_pk_get**](SystemTypeApi.md#system_types_pk_get) | **GET** /system-types/{pk} | |
10
- | [**system_types_post**](SystemTypeApi.md#system_types_post) | **POST** /system-types/ | |
10
+ | [**system_types_post**](SystemTypeApi.md#system_types_post) | **POST** /system-types | |
11
11
 
12
12
 
13
13
  ## system_types_get
data/docs/VolumeApi.md CHANGED
@@ -4,11 +4,11 @@ All URIs are relative to *http://localhost:9000/site-manager/api/v1/engine*
4
4
 
5
5
  | Method | HTTP request | Description |
6
6
  | ------ | ------------ | ----------- |
7
- | [**volumes_get**](VolumeApi.md#volumes_get) | **GET** /volumes/ | |
7
+ | [**volumes_get**](VolumeApi.md#volumes_get) | **GET** /volumes | |
8
8
  | [**volumes_pk_delete**](VolumeApi.md#volumes_pk_delete) | **DELETE** /volumes/{pk} | |
9
9
  | [**volumes_pk_get**](VolumeApi.md#volumes_pk_get) | **GET** /volumes/{pk} | |
10
10
  | [**volumes_pk_put**](VolumeApi.md#volumes_pk_put) | **PUT** /volumes/{pk} | |
11
- | [**volumes_post**](VolumeApi.md#volumes_post) | **POST** /volumes/ | |
11
+ | [**volumes_post**](VolumeApi.md#volumes_post) | **POST** /volumes | |
12
12
 
13
13
 
14
14
  ## volumes_get
@@ -4,10 +4,10 @@ All URIs are relative to *http://localhost:9000/site-manager/api/v1/engine*
4
4
 
5
5
  | Method | HTTP request | Description |
6
6
  | ------ | ------------ | ----------- |
7
- | [**safe_deletes_get**](VolumeSafeDeleteApi.md#safe_deletes_get) | **GET** /safe-deletes/ | |
7
+ | [**safe_deletes_get**](VolumeSafeDeleteApi.md#safe_deletes_get) | **GET** /safe-deletes | |
8
8
  | [**safe_deletes_pk_delete**](VolumeSafeDeleteApi.md#safe_deletes_pk_delete) | **DELETE** /safe-deletes/{pk} | |
9
9
  | [**safe_deletes_pk_get**](VolumeSafeDeleteApi.md#safe_deletes_pk_get) | **GET** /safe-deletes/{pk} | |
10
- | [**safe_deletes_post**](VolumeSafeDeleteApi.md#safe_deletes_post) | **POST** /safe-deletes/ | |
10
+ | [**safe_deletes_post**](VolumeSafeDeleteApi.md#safe_deletes_post) | **POST** /safe-deletes | |
11
11
 
12
12
 
13
13
  ## safe_deletes_get
@@ -33,7 +33,7 @@ module AutosdeOpenapiClient
33
33
  @api_client.config.logger.debug 'Calling API: AbstractCapabilityApi.abstract_capabilities_get ...'
34
34
  end
35
35
  # resource path
36
- local_var_path = '/abstract-capabilities/'
36
+ local_var_path = '/abstract-capabilities'
37
37
 
38
38
  # query parameters
39
39
  query_params = opts[:query_params] || {}
@@ -92,7 +92,7 @@ module AutosdeOpenapiClient
92
92
  fail ArgumentError, "Missing the required parameter 'pk' when calling AbstractCapabilityApi.abstract_capabilities_pk_delete"
93
93
  end
94
94
  # resource path
95
- local_var_path = '/abstract-capabilities/{pk}/'.sub('{' + 'pk' + '}', CGI.escape(pk.to_s))
95
+ local_var_path = '/abstract-capabilities/{pk}'.sub('{' + 'pk' + '}', CGI.escape(pk.to_s))
96
96
 
97
97
  # query parameters
98
98
  query_params = opts[:query_params] || {}
@@ -151,7 +151,7 @@ module AutosdeOpenapiClient
151
151
  fail ArgumentError, "Missing the required parameter 'pk' when calling AbstractCapabilityApi.abstract_capabilities_pk_get"
152
152
  end
153
153
  # resource path
154
- local_var_path = '/abstract-capabilities/{pk}/'.sub('{' + 'pk' + '}', CGI.escape(pk.to_s))
154
+ local_var_path = '/abstract-capabilities/{pk}'.sub('{' + 'pk' + '}', CGI.escape(pk.to_s))
155
155
 
156
156
  # query parameters
157
157
  query_params = opts[:query_params] || {}
@@ -210,7 +210,7 @@ module AutosdeOpenapiClient
210
210
  fail ArgumentError, "Missing the required parameter 'abstract_capability' when calling AbstractCapabilityApi.abstract_capabilities_post"
211
211
  end
212
212
  # resource path
213
- local_var_path = '/abstract-capabilities/'
213
+ local_var_path = '/abstract-capabilities'
214
214
 
215
215
  # query parameters
216
216
  query_params = opts[:query_params] || {}
@@ -33,7 +33,7 @@ module AutosdeOpenapiClient
33
33
  @api_client.config.logger.debug 'Calling API: AccountApi.accounts_get ...'
34
34
  end
35
35
  # resource path
36
- local_var_path = '/accounts/'
36
+ local_var_path = '/accounts'
37
37
 
38
38
  # query parameters
39
39
  query_params = opts[:query_params] || {}
@@ -277,7 +277,7 @@ module AutosdeOpenapiClient
277
277
  fail ArgumentError, "Missing the required parameter 'account_post_request' when calling AccountApi.accounts_post"
278
278
  end
279
279
  # resource path
280
- local_var_path = '/accounts/'
280
+ local_var_path = '/accounts'
281
281
 
282
282
  # query parameters
283
283
  query_params = opts[:query_params] || {}
@@ -33,7 +33,7 @@ module AutosdeOpenapiClient
33
33
  @api_client.config.logger.debug 'Calling API: AddressApi.addresses_get ...'
34
34
  end
35
35
  # resource path
36
- local_var_path = '/addresses/'
36
+ local_var_path = '/addresses'
37
37
 
38
38
  # query parameters
39
39
  query_params = opts[:query_params] || {}
@@ -210,7 +210,7 @@ module AutosdeOpenapiClient
210
210
  fail ArgumentError, "Missing the required parameter 'address_create' when calling AddressApi.addresses_post"
211
211
  end
212
212
  # resource path
213
- local_var_path = '/addresses/'
213
+ local_var_path = '/addresses'
214
214
 
215
215
  # query parameters
216
216
  query_params = opts[:query_params] || {}
@@ -33,7 +33,7 @@ module AutosdeOpenapiClient
33
33
  @api_client.config.logger.debug 'Calling API: AutoSDEProjectApi.autosde_projects_get ...'
34
34
  end
35
35
  # resource path
36
- local_var_path = '/autosde-projects/'
36
+ local_var_path = '/autosde-projects'
37
37
 
38
38
  # query parameters
39
39
  query_params = opts[:query_params] || {}
@@ -92,7 +92,7 @@ module AutosdeOpenapiClient
92
92
  fail ArgumentError, "Missing the required parameter 'pk' when calling AutoSDEProjectApi.autosde_projects_pk_delete"
93
93
  end
94
94
  # resource path
95
- local_var_path = '/autosde-projects/{pk}/'.sub('{' + 'pk' + '}', CGI.escape(pk.to_s))
95
+ local_var_path = '/autosde-projects/{pk}'.sub('{' + 'pk' + '}', CGI.escape(pk.to_s))
96
96
 
97
97
  # query parameters
98
98
  query_params = opts[:query_params] || {}
@@ -151,7 +151,7 @@ module AutosdeOpenapiClient
151
151
  fail ArgumentError, "Missing the required parameter 'pk' when calling AutoSDEProjectApi.autosde_projects_pk_get"
152
152
  end
153
153
  # resource path
154
- local_var_path = '/autosde-projects/{pk}/'.sub('{' + 'pk' + '}', CGI.escape(pk.to_s))
154
+ local_var_path = '/autosde-projects/{pk}'.sub('{' + 'pk' + '}', CGI.escape(pk.to_s))
155
155
 
156
156
  # query parameters
157
157
  query_params = opts[:query_params] || {}
@@ -210,7 +210,7 @@ module AutosdeOpenapiClient
210
210
  fail ArgumentError, "Missing the required parameter 'auto_sde_project' when calling AutoSDEProjectApi.autosde_projects_post"
211
211
  end
212
212
  # resource path
213
- local_var_path = '/autosde-projects/'
213
+ local_var_path = '/autosde-projects'
214
214
 
215
215
  # query parameters
216
216
  query_params = opts[:query_params] || {}
@@ -33,7 +33,7 @@ module AutosdeOpenapiClient
33
33
  @api_client.config.logger.debug 'Calling API: AutoSDERoleApi.autosde_roles_get ...'
34
34
  end
35
35
  # resource path
36
- local_var_path = '/autosde-roles/'
36
+ local_var_path = '/autosde-roles'
37
37
 
38
38
  # query parameters
39
39
  query_params = opts[:query_params] || {}
@@ -92,7 +92,7 @@ module AutosdeOpenapiClient
92
92
  fail ArgumentError, "Missing the required parameter 'pk' when calling AutoSDERoleApi.autosde_roles_pk_delete"
93
93
  end
94
94
  # resource path
95
- local_var_path = '/autosde-roles/{pk}/'.sub('{' + 'pk' + '}', CGI.escape(pk.to_s))
95
+ local_var_path = '/autosde-roles/{pk}'.sub('{' + 'pk' + '}', CGI.escape(pk.to_s))
96
96
 
97
97
  # query parameters
98
98
  query_params = opts[:query_params] || {}
@@ -151,7 +151,7 @@ module AutosdeOpenapiClient
151
151
  fail ArgumentError, "Missing the required parameter 'pk' when calling AutoSDERoleApi.autosde_roles_pk_get"
152
152
  end
153
153
  # resource path
154
- local_var_path = '/autosde-roles/{pk}/'.sub('{' + 'pk' + '}', CGI.escape(pk.to_s))
154
+ local_var_path = '/autosde-roles/{pk}'.sub('{' + 'pk' + '}', CGI.escape(pk.to_s))
155
155
 
156
156
  # query parameters
157
157
  query_params = opts[:query_params] || {}
@@ -210,7 +210,7 @@ module AutosdeOpenapiClient
210
210
  fail ArgumentError, "Missing the required parameter 'auto_sde_role' when calling AutoSDERoleApi.autosde_roles_post"
211
211
  end
212
212
  # resource path
213
- local_var_path = '/autosde-roles/'
213
+ local_var_path = '/autosde-roles'
214
214
 
215
215
  # query parameters
216
216
  query_params = opts[:query_params] || {}
@@ -33,7 +33,7 @@ module AutosdeOpenapiClient
33
33
  @api_client.config.logger.debug 'Calling API: CapabilityTranslationApi.capability_translations_get ...'
34
34
  end
35
35
  # resource path
36
- local_var_path = '/capability-translations/'
36
+ local_var_path = '/capability-translations'
37
37
 
38
38
  # query parameters
39
39
  query_params = opts[:query_params] || {}
@@ -210,7 +210,7 @@ module AutosdeOpenapiClient
210
210
  fail ArgumentError, "Missing the required parameter 'capability_translation_create' when calling CapabilityTranslationApi.capability_translations_post"
211
211
  end
212
212
  # resource path
213
- local_var_path = '/capability-translations/'
213
+ local_var_path = '/capability-translations'
214
214
 
215
215
  # query parameters
216
216
  query_params = opts[:query_params] || {}
@@ -33,7 +33,7 @@ module AutosdeOpenapiClient
33
33
  @api_client.config.logger.debug 'Calling API: HostApi.hosts_get ...'
34
34
  end
35
35
  # resource path
36
- local_var_path = '/hosts/'
36
+ local_var_path = '/hosts'
37
37
 
38
38
  # query parameters
39
39
  query_params = opts[:query_params] || {}
@@ -210,7 +210,7 @@ module AutosdeOpenapiClient
210
210
  fail ArgumentError, "Missing the required parameter 'host_create' when calling HostApi.hosts_post"
211
211
  end
212
212
  # resource path
213
- local_var_path = '/hosts/'
213
+ local_var_path = '/hosts'
214
214
 
215
215
  # query parameters
216
216
  query_params = opts[:query_params] || {}
@@ -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