autosde_openapi_client 1.0.0 → 1.0.1
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 +32 -7
- data/docs/AbstractCapabilityApi.md +6 -6
- data/docs/AccountApi.md +9 -9
- data/docs/AddressApi.md +6 -6
- data/docs/AuthenticationApi.md +1 -1
- data/docs/AutoSDEProjectApi.md +6 -6
- data/docs/AutoSDERoleApi.md +6 -6
- data/docs/CapabilityTranslationApi.md +6 -6
- data/docs/HostApi.md +6 -6
- data/docs/HostVolumeConnectionApi.md +6 -6
- data/docs/Job.md +29 -0
- data/docs/JobApi.md +104 -0
- data/docs/JobCreate.md +19 -0
- data/docs/NativeCapabilityApi.md +6 -6
- data/docs/ProfileApi.md +6 -6
- data/docs/ProvisioningStrategyApi.md +6 -6
- data/docs/ServiceApi.md +9 -9
- data/docs/ServiceResourceAttachmentApi.md +6 -6
- data/docs/Snapshot.md +25 -0
- data/docs/SnapshotApi.md +204 -0
- data/docs/SnapshotCreate.md +23 -0
- data/docs/StorageHost.md +29 -0
- data/docs/StorageHostApi.md +256 -0
- data/docs/StorageHostCreate.md +37 -0
- data/docs/StorageHostResponse.md +31 -0
- data/docs/StorageHostUpdate.md +21 -0
- data/docs/StorageHostVolumeMapping.md +25 -0
- data/docs/StorageHostVolumeMappingApi.md +204 -0
- data/docs/StorageHostVolumeMappingCreate.md +23 -0
- data/docs/StorageResourceApi.md +9 -9
- data/docs/StorageSystemApi.md +6 -6
- data/docs/SystemTypeApi.md +6 -6
- data/docs/Volume.md +2 -0
- data/docs/VolumeApi.md +9 -9
- data/docs/VolumeCreate.md +2 -0
- data/docs/VolumeResponse.md +2 -0
- data/docs/VolumeSafeDeleteApi.md +6 -6
- data/docs/VolumeUpdate.md +3 -1
- data/lib/openapi_client.rb +108 -0
- data/lib/{autosde_openapi_client → openapi_client}/api/abstract_capability_api.rb +19 -15
- data/lib/{autosde_openapi_client → openapi_client}/api/account_api.rb +25 -20
- data/lib/{autosde_openapi_client → openapi_client}/api/address_api.rb +19 -15
- data/lib/{autosde_openapi_client → openapi_client}/api/authentication_api.rb +5 -4
- data/lib/{autosde_openapi_client → openapi_client}/api/auto_sde_project_api.rb +19 -15
- data/lib/{autosde_openapi_client → openapi_client}/api/auto_sde_role_api.rb +19 -15
- data/lib/{autosde_openapi_client → openapi_client}/api/capability_translation_api.rb +19 -15
- data/lib/{autosde_openapi_client → openapi_client}/api/host_api.rb +19 -15
- data/lib/{autosde_openapi_client → openapi_client}/api/host_volume_connection_api.rb +19 -15
- data/lib/openapi_client/api/job_api.rb +136 -0
- data/lib/{autosde_openapi_client → openapi_client}/api/native_capability_api.rb +19 -15
- data/lib/{autosde_openapi_client → openapi_client}/api/profile_api.rb +19 -15
- data/lib/{autosde_openapi_client → openapi_client}/api/provisioning_strategy_api.rb +19 -15
- data/lib/{autosde_openapi_client → openapi_client}/api/service_api.rb +25 -20
- data/lib/{autosde_openapi_client → openapi_client}/api/service_resource_attachment_api.rb +19 -15
- data/lib/openapi_client/api/snapshot_api.rb +254 -0
- data/lib/openapi_client/api/storage_host_api.rb +321 -0
- data/lib/openapi_client/api/storage_host_volume_mapping_api.rb +254 -0
- data/lib/{autosde_openapi_client → openapi_client}/api/storage_resource_api.rb +25 -20
- data/lib/{autosde_openapi_client → openapi_client}/api/storage_system_api.rb +19 -15
- data/lib/{autosde_openapi_client → openapi_client}/api/system_type_api.rb +19 -15
- data/lib/{autosde_openapi_client → openapi_client}/api/volume_api.rb +25 -20
- data/lib/{autosde_openapi_client → openapi_client}/api/volume_safe_delete_api.rb +19 -15
- data/lib/{autosde_openapi_client → openapi_client}/api_client.rb +46 -45
- data/lib/{autosde_openapi_client → openapi_client}/api_error.rb +1 -1
- data/lib/{autosde_openapi_client → openapi_client}/configuration.rb +34 -7
- data/lib/{autosde_openapi_client → openapi_client}/models/abstract_capability.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/account.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/account_post_request.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/account_post_response.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/address.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/address_create.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/auth_response.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/authentication.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/auto_sde_project.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/auto_sde_role.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/capability_translation.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/capability_translation_create.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/host.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/host_create.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/host_volume_connection.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/host_volume_connection_create.rb +9 -5
- data/lib/openapi_client/models/job.rb +272 -0
- data/lib/openapi_client/models/job_create.rb +222 -0
- data/lib/{autosde_openapi_client → openapi_client}/models/native_capability.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/profile.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/provisioning_strategy.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/service.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/service_abstract_capability_value.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/service_create.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/service_resource_attachment.rb +9 -5
- data/lib/openapi_client/models/snapshot.rb +290 -0
- data/lib/openapi_client/models/snapshot_create.rb +280 -0
- data/lib/openapi_client/models/storage_host.rb +309 -0
- data/lib/openapi_client/models/storage_host_create.rb +360 -0
- data/lib/openapi_client/models/storage_host_response.rb +325 -0
- data/lib/openapi_client/models/storage_host_update.rb +293 -0
- data/lib/openapi_client/models/storage_host_volume_mapping.rb +291 -0
- data/lib/openapi_client/models/storage_host_volume_mapping_create.rb +283 -0
- data/lib/{autosde_openapi_client → openapi_client}/models/storage_resource.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/storage_resource_create.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/storage_resource_response.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/storage_system.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/storage_system_create.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/system_type.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/system_type_create.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/volume.rb +20 -6
- data/lib/{autosde_openapi_client → openapi_client}/models/volume_create.rb +20 -6
- data/lib/{autosde_openapi_client → openapi_client}/models/volume_response.rb +20 -6
- data/lib/{autosde_openapi_client → openapi_client}/models/volume_safe_delete.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/volume_safe_delete_create.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/volume_update.rb +22 -6
- data/lib/{autosde_openapi_client → openapi_client}/version.rb +2 -2
- data/{autosde_openapi_client.gemspec → openapi_client.gemspec} +3 -4
- data/spec/api/abstract_capability_api_spec.rb +1 -1
- data/spec/api/account_api_spec.rb +1 -1
- data/spec/api/address_api_spec.rb +1 -1
- data/spec/api/authentication_api_spec.rb +1 -1
- data/spec/api/auto_sde_project_api_spec.rb +1 -1
- data/spec/api/auto_sde_role_api_spec.rb +1 -1
- data/spec/api/capability_translation_api_spec.rb +1 -1
- data/spec/api/host_api_spec.rb +1 -1
- data/spec/api/host_volume_connection_api_spec.rb +1 -1
- data/spec/api/job_api_spec.rb +54 -0
- data/spec/api/native_capability_api_spec.rb +1 -1
- data/spec/api/profile_api_spec.rb +1 -1
- data/spec/api/provisioning_strategy_api_spec.rb +1 -1
- data/spec/api/service_api_spec.rb +1 -1
- data/spec/api/service_resource_attachment_api_spec.rb +1 -1
- data/spec/api/snapshot_api_spec.rb +74 -0
- data/spec/api/storage_host_api_spec.rb +74 -0
- data/spec/api/storage_host_volume_mapping_api_spec.rb +74 -0
- data/spec/api/storage_resource_api_spec.rb +1 -1
- data/spec/api/storage_system_api_spec.rb +1 -1
- data/spec/api/system_type_api_spec.rb +1 -1
- data/spec/api/volume_api_spec.rb +1 -1
- data/spec/api/volume_safe_delete_api_spec.rb +1 -1
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/abstract_capability_spec.rb +1 -1
- data/spec/models/account_post_request_spec.rb +1 -1
- data/spec/models/account_post_response_spec.rb +1 -1
- data/spec/models/account_spec.rb +1 -1
- data/spec/models/address_create_spec.rb +1 -1
- data/spec/models/address_spec.rb +1 -1
- data/spec/models/auth_response_spec.rb +1 -1
- data/spec/models/authentication_spec.rb +1 -1
- data/spec/models/auto_sde_project_spec.rb +1 -1
- data/spec/models/auto_sde_role_spec.rb +1 -1
- data/spec/models/capability_translation_create_spec.rb +1 -1
- data/spec/models/capability_translation_spec.rb +1 -1
- data/spec/models/host_create_spec.rb +1 -1
- data/spec/models/host_spec.rb +1 -1
- data/spec/models/host_volume_connection_create_spec.rb +1 -1
- data/spec/models/host_volume_connection_spec.rb +1 -1
- data/spec/models/job_create_spec.rb +47 -0
- data/spec/models/job_spec.rb +77 -0
- data/spec/models/native_capability_spec.rb +1 -1
- data/spec/models/profile_spec.rb +1 -1
- data/spec/models/provisioning_strategy_spec.rb +1 -1
- data/spec/models/service_abstract_capability_value_spec.rb +1 -1
- data/spec/models/service_create_spec.rb +1 -1
- data/spec/models/service_resource_attachment_spec.rb +1 -1
- data/spec/models/service_spec.rb +1 -1
- data/spec/models/snapshot_create_spec.rb +63 -0
- data/spec/models/snapshot_spec.rb +69 -0
- data/spec/models/storage_host_create_spec.rb +109 -0
- data/spec/models/storage_host_response_spec.rb +87 -0
- data/spec/models/storage_host_spec.rb +81 -0
- data/spec/models/storage_host_update_spec.rb +61 -0
- data/spec/models/storage_host_volume_mapping_create_spec.rb +63 -0
- data/spec/models/storage_host_volume_mapping_spec.rb +69 -0
- data/spec/models/storage_resource_create_spec.rb +1 -1
- data/spec/models/storage_resource_response_spec.rb +1 -1
- data/spec/models/storage_resource_spec.rb +1 -1
- data/spec/models/storage_system_create_spec.rb +1 -1
- data/spec/models/storage_system_spec.rb +1 -1
- data/spec/models/system_type_create_spec.rb +1 -1
- data/spec/models/system_type_spec.rb +1 -1
- data/spec/models/volume_create_spec.rb +1 -1
- data/spec/models/volume_response_spec.rb +1 -1
- data/spec/models/volume_safe_delete_create_spec.rb +1 -1
- data/spec/models/volume_safe_delete_spec.rb +1 -1
- data/spec/models/volume_spec.rb +1 -1
- data/spec/models/volume_update_spec.rb +7 -1
- data/spec/spec_helper.rb +2 -2
- metadata +142 -106
- data/lib/autosde_openapi_client.rb +0 -94
- data/site_manager_oas.json +0 -3992
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
|
7
7
|
Contact: autosde@il.ibm.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version:
|
|
9
|
+
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -47,15 +47,16 @@ module OpenapiClient
|
|
|
47
47
|
form_params = opts[:form_params] || {}
|
|
48
48
|
|
|
49
49
|
# http body (model)
|
|
50
|
-
post_body = opts[:
|
|
50
|
+
post_body = opts[:debug_body]
|
|
51
51
|
|
|
52
52
|
# return_type
|
|
53
|
-
return_type = opts[:
|
|
53
|
+
return_type = opts[:debug_return_type] || 'Array<CapabilityTranslation>'
|
|
54
54
|
|
|
55
55
|
# auth_names
|
|
56
|
-
auth_names = opts[:
|
|
56
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
57
57
|
|
|
58
58
|
new_options = opts.merge(
|
|
59
|
+
:operation => :"CapabilityTranslationApi.capability_translations_get",
|
|
59
60
|
:header_params => header_params,
|
|
60
61
|
:query_params => query_params,
|
|
61
62
|
:form_params => form_params,
|
|
@@ -105,15 +106,16 @@ module OpenapiClient
|
|
|
105
106
|
form_params = opts[:form_params] || {}
|
|
106
107
|
|
|
107
108
|
# http body (model)
|
|
108
|
-
post_body = opts[:
|
|
109
|
+
post_body = opts[:debug_body]
|
|
109
110
|
|
|
110
111
|
# return_type
|
|
111
|
-
return_type = opts[:
|
|
112
|
+
return_type = opts[:debug_return_type] || 'Array<CapabilityTranslation>'
|
|
112
113
|
|
|
113
114
|
# auth_names
|
|
114
|
-
auth_names = opts[:
|
|
115
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
115
116
|
|
|
116
117
|
new_options = opts.merge(
|
|
118
|
+
:operation => :"CapabilityTranslationApi.capability_translations_pk_delete",
|
|
117
119
|
:header_params => header_params,
|
|
118
120
|
:query_params => query_params,
|
|
119
121
|
:form_params => form_params,
|
|
@@ -163,15 +165,16 @@ module OpenapiClient
|
|
|
163
165
|
form_params = opts[:form_params] || {}
|
|
164
166
|
|
|
165
167
|
# http body (model)
|
|
166
|
-
post_body = opts[:
|
|
168
|
+
post_body = opts[:debug_body]
|
|
167
169
|
|
|
168
170
|
# return_type
|
|
169
|
-
return_type = opts[:
|
|
171
|
+
return_type = opts[:debug_return_type] || 'Array<CapabilityTranslation>'
|
|
170
172
|
|
|
171
173
|
# auth_names
|
|
172
|
-
auth_names = opts[:
|
|
174
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
173
175
|
|
|
174
176
|
new_options = opts.merge(
|
|
177
|
+
:operation => :"CapabilityTranslationApi.capability_translations_pk_get",
|
|
175
178
|
:header_params => header_params,
|
|
176
179
|
:query_params => query_params,
|
|
177
180
|
:form_params => form_params,
|
|
@@ -189,7 +192,7 @@ module OpenapiClient
|
|
|
189
192
|
|
|
190
193
|
# @param capability_translation_create [CapabilityTranslationCreate]
|
|
191
194
|
# @param [Hash] opts the optional parameters
|
|
192
|
-
# @return [
|
|
195
|
+
# @return [CapabilityTranslation]
|
|
193
196
|
def capability_translations_post(capability_translation_create, opts = {})
|
|
194
197
|
data, _status_code, _headers = capability_translations_post_with_http_info(capability_translation_create, opts)
|
|
195
198
|
data
|
|
@@ -197,7 +200,7 @@ module OpenapiClient
|
|
|
197
200
|
|
|
198
201
|
# @param capability_translation_create [CapabilityTranslationCreate]
|
|
199
202
|
# @param [Hash] opts the optional parameters
|
|
200
|
-
# @return [Array<(
|
|
203
|
+
# @return [Array<(CapabilityTranslation, Integer, Hash)>] CapabilityTranslation data, response status code and response headers
|
|
201
204
|
def capability_translations_post_with_http_info(capability_translation_create, opts = {})
|
|
202
205
|
if @api_client.config.debugging
|
|
203
206
|
@api_client.config.logger.debug 'Calling API: CapabilityTranslationApi.capability_translations_post ...'
|
|
@@ -223,15 +226,16 @@ module OpenapiClient
|
|
|
223
226
|
form_params = opts[:form_params] || {}
|
|
224
227
|
|
|
225
228
|
# http body (model)
|
|
226
|
-
post_body = opts[:
|
|
229
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(capability_translation_create)
|
|
227
230
|
|
|
228
231
|
# return_type
|
|
229
|
-
return_type = opts[:
|
|
232
|
+
return_type = opts[:debug_return_type] || 'CapabilityTranslation'
|
|
230
233
|
|
|
231
234
|
# auth_names
|
|
232
|
-
auth_names = opts[:
|
|
235
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
233
236
|
|
|
234
237
|
new_options = opts.merge(
|
|
238
|
+
:operation => :"CapabilityTranslationApi.capability_translations_post",
|
|
235
239
|
:header_params => header_params,
|
|
236
240
|
:query_params => query_params,
|
|
237
241
|
:form_params => form_params,
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
|
7
7
|
Contact: autosde@il.ibm.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version:
|
|
9
|
+
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -47,15 +47,16 @@ module OpenapiClient
|
|
|
47
47
|
form_params = opts[:form_params] || {}
|
|
48
48
|
|
|
49
49
|
# http body (model)
|
|
50
|
-
post_body = opts[:
|
|
50
|
+
post_body = opts[:debug_body]
|
|
51
51
|
|
|
52
52
|
# return_type
|
|
53
|
-
return_type = opts[:
|
|
53
|
+
return_type = opts[:debug_return_type] || 'Array<Host>'
|
|
54
54
|
|
|
55
55
|
# auth_names
|
|
56
|
-
auth_names = opts[:
|
|
56
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
57
57
|
|
|
58
58
|
new_options = opts.merge(
|
|
59
|
+
:operation => :"HostApi.hosts_get",
|
|
59
60
|
:header_params => header_params,
|
|
60
61
|
:query_params => query_params,
|
|
61
62
|
:form_params => form_params,
|
|
@@ -105,15 +106,16 @@ module OpenapiClient
|
|
|
105
106
|
form_params = opts[:form_params] || {}
|
|
106
107
|
|
|
107
108
|
# http body (model)
|
|
108
|
-
post_body = opts[:
|
|
109
|
+
post_body = opts[:debug_body]
|
|
109
110
|
|
|
110
111
|
# return_type
|
|
111
|
-
return_type = opts[:
|
|
112
|
+
return_type = opts[:debug_return_type] || 'Array<Host>'
|
|
112
113
|
|
|
113
114
|
# auth_names
|
|
114
|
-
auth_names = opts[:
|
|
115
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
115
116
|
|
|
116
117
|
new_options = opts.merge(
|
|
118
|
+
:operation => :"HostApi.hosts_pk_delete",
|
|
117
119
|
:header_params => header_params,
|
|
118
120
|
:query_params => query_params,
|
|
119
121
|
:form_params => form_params,
|
|
@@ -163,15 +165,16 @@ module OpenapiClient
|
|
|
163
165
|
form_params = opts[:form_params] || {}
|
|
164
166
|
|
|
165
167
|
# http body (model)
|
|
166
|
-
post_body = opts[:
|
|
168
|
+
post_body = opts[:debug_body]
|
|
167
169
|
|
|
168
170
|
# return_type
|
|
169
|
-
return_type = opts[:
|
|
171
|
+
return_type = opts[:debug_return_type] || 'Array<Host>'
|
|
170
172
|
|
|
171
173
|
# auth_names
|
|
172
|
-
auth_names = opts[:
|
|
174
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
173
175
|
|
|
174
176
|
new_options = opts.merge(
|
|
177
|
+
:operation => :"HostApi.hosts_pk_get",
|
|
175
178
|
:header_params => header_params,
|
|
176
179
|
:query_params => query_params,
|
|
177
180
|
:form_params => form_params,
|
|
@@ -189,7 +192,7 @@ module OpenapiClient
|
|
|
189
192
|
|
|
190
193
|
# @param host_create [HostCreate]
|
|
191
194
|
# @param [Hash] opts the optional parameters
|
|
192
|
-
# @return [
|
|
195
|
+
# @return [Host]
|
|
193
196
|
def hosts_post(host_create, opts = {})
|
|
194
197
|
data, _status_code, _headers = hosts_post_with_http_info(host_create, opts)
|
|
195
198
|
data
|
|
@@ -197,7 +200,7 @@ module OpenapiClient
|
|
|
197
200
|
|
|
198
201
|
# @param host_create [HostCreate]
|
|
199
202
|
# @param [Hash] opts the optional parameters
|
|
200
|
-
# @return [Array<(
|
|
203
|
+
# @return [Array<(Host, Integer, Hash)>] Host data, response status code and response headers
|
|
201
204
|
def hosts_post_with_http_info(host_create, opts = {})
|
|
202
205
|
if @api_client.config.debugging
|
|
203
206
|
@api_client.config.logger.debug 'Calling API: HostApi.hosts_post ...'
|
|
@@ -223,15 +226,16 @@ module OpenapiClient
|
|
|
223
226
|
form_params = opts[:form_params] || {}
|
|
224
227
|
|
|
225
228
|
# http body (model)
|
|
226
|
-
post_body = opts[:
|
|
229
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(host_create)
|
|
227
230
|
|
|
228
231
|
# return_type
|
|
229
|
-
return_type = opts[:
|
|
232
|
+
return_type = opts[:debug_return_type] || 'Host'
|
|
230
233
|
|
|
231
234
|
# auth_names
|
|
232
|
-
auth_names = opts[:
|
|
235
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
233
236
|
|
|
234
237
|
new_options = opts.merge(
|
|
238
|
+
:operation => :"HostApi.hosts_post",
|
|
235
239
|
:header_params => header_params,
|
|
236
240
|
:query_params => query_params,
|
|
237
241
|
:form_params => form_params,
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
|
7
7
|
Contact: autosde@il.ibm.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version:
|
|
9
|
+
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -47,15 +47,16 @@ module OpenapiClient
|
|
|
47
47
|
form_params = opts[:form_params] || {}
|
|
48
48
|
|
|
49
49
|
# http body (model)
|
|
50
|
-
post_body = opts[:
|
|
50
|
+
post_body = opts[:debug_body]
|
|
51
51
|
|
|
52
52
|
# return_type
|
|
53
|
-
return_type = opts[:
|
|
53
|
+
return_type = opts[:debug_return_type] || 'Array<HostVolumeConnection>'
|
|
54
54
|
|
|
55
55
|
# auth_names
|
|
56
|
-
auth_names = opts[:
|
|
56
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
57
57
|
|
|
58
58
|
new_options = opts.merge(
|
|
59
|
+
:operation => :"HostVolumeConnectionApi.host_volume_connection_get",
|
|
59
60
|
:header_params => header_params,
|
|
60
61
|
:query_params => query_params,
|
|
61
62
|
:form_params => form_params,
|
|
@@ -105,15 +106,16 @@ module OpenapiClient
|
|
|
105
106
|
form_params = opts[:form_params] || {}
|
|
106
107
|
|
|
107
108
|
# http body (model)
|
|
108
|
-
post_body = opts[:
|
|
109
|
+
post_body = opts[:debug_body]
|
|
109
110
|
|
|
110
111
|
# return_type
|
|
111
|
-
return_type = opts[:
|
|
112
|
+
return_type = opts[:debug_return_type] || 'Array<HostVolumeConnection>'
|
|
112
113
|
|
|
113
114
|
# auth_names
|
|
114
|
-
auth_names = opts[:
|
|
115
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
115
116
|
|
|
116
117
|
new_options = opts.merge(
|
|
118
|
+
:operation => :"HostVolumeConnectionApi.host_volume_connection_pk_delete",
|
|
117
119
|
:header_params => header_params,
|
|
118
120
|
:query_params => query_params,
|
|
119
121
|
:form_params => form_params,
|
|
@@ -163,15 +165,16 @@ module OpenapiClient
|
|
|
163
165
|
form_params = opts[:form_params] || {}
|
|
164
166
|
|
|
165
167
|
# http body (model)
|
|
166
|
-
post_body = opts[:
|
|
168
|
+
post_body = opts[:debug_body]
|
|
167
169
|
|
|
168
170
|
# return_type
|
|
169
|
-
return_type = opts[:
|
|
171
|
+
return_type = opts[:debug_return_type] || 'Array<HostVolumeConnection>'
|
|
170
172
|
|
|
171
173
|
# auth_names
|
|
172
|
-
auth_names = opts[:
|
|
174
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
173
175
|
|
|
174
176
|
new_options = opts.merge(
|
|
177
|
+
:operation => :"HostVolumeConnectionApi.host_volume_connection_pk_get",
|
|
175
178
|
:header_params => header_params,
|
|
176
179
|
:query_params => query_params,
|
|
177
180
|
:form_params => form_params,
|
|
@@ -189,7 +192,7 @@ module OpenapiClient
|
|
|
189
192
|
|
|
190
193
|
# @param host_volume_connection_create [HostVolumeConnectionCreate]
|
|
191
194
|
# @param [Hash] opts the optional parameters
|
|
192
|
-
# @return [
|
|
195
|
+
# @return [HostVolumeConnection]
|
|
193
196
|
def host_volume_connection_post(host_volume_connection_create, opts = {})
|
|
194
197
|
data, _status_code, _headers = host_volume_connection_post_with_http_info(host_volume_connection_create, opts)
|
|
195
198
|
data
|
|
@@ -197,7 +200,7 @@ module OpenapiClient
|
|
|
197
200
|
|
|
198
201
|
# @param host_volume_connection_create [HostVolumeConnectionCreate]
|
|
199
202
|
# @param [Hash] opts the optional parameters
|
|
200
|
-
# @return [Array<(
|
|
203
|
+
# @return [Array<(HostVolumeConnection, Integer, Hash)>] HostVolumeConnection data, response status code and response headers
|
|
201
204
|
def host_volume_connection_post_with_http_info(host_volume_connection_create, opts = {})
|
|
202
205
|
if @api_client.config.debugging
|
|
203
206
|
@api_client.config.logger.debug 'Calling API: HostVolumeConnectionApi.host_volume_connection_post ...'
|
|
@@ -223,15 +226,16 @@ module OpenapiClient
|
|
|
223
226
|
form_params = opts[:form_params] || {}
|
|
224
227
|
|
|
225
228
|
# http body (model)
|
|
226
|
-
post_body = opts[:
|
|
229
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(host_volume_connection_create)
|
|
227
230
|
|
|
228
231
|
# return_type
|
|
229
|
-
return_type = opts[:
|
|
232
|
+
return_type = opts[:debug_return_type] || 'HostVolumeConnection'
|
|
230
233
|
|
|
231
234
|
# auth_names
|
|
232
|
-
auth_names = opts[:
|
|
235
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
233
236
|
|
|
234
237
|
new_options = opts.merge(
|
|
238
|
+
:operation => :"HostVolumeConnectionApi.host_volume_connection_post",
|
|
235
239
|
:header_params => header_params,
|
|
236
240
|
:query_params => query_params,
|
|
237
241
|
:form_params => form_params,
|
|
@@ -0,0 +1,136 @@
|
|
|
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-SNAPSHOT
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'cgi'
|
|
14
|
+
|
|
15
|
+
module OpenapiClient
|
|
16
|
+
class JobApi
|
|
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<Job>]
|
|
24
|
+
def jobs_get(opts = {})
|
|
25
|
+
data, _status_code, _headers = jobs_get_with_http_info(opts)
|
|
26
|
+
data
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
# @param [Hash] opts the optional parameters
|
|
30
|
+
# @return [Array<(Array<Job>, Integer, Hash)>] Array<Job> data, response status code and response headers
|
|
31
|
+
def jobs_get_with_http_info(opts = {})
|
|
32
|
+
if @api_client.config.debugging
|
|
33
|
+
@api_client.config.logger.debug 'Calling API: JobApi.jobs_get ...'
|
|
34
|
+
end
|
|
35
|
+
# resource path
|
|
36
|
+
local_var_path = '/jobs'
|
|
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<Job>'
|
|
54
|
+
|
|
55
|
+
# auth_names
|
|
56
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
57
|
+
|
|
58
|
+
new_options = opts.merge(
|
|
59
|
+
:operation => :"JobApi.jobs_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: JobApi#jobs_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
71
|
+
end
|
|
72
|
+
return data, status_code, headers
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
# @param job_create [JobCreate]
|
|
76
|
+
# @param [Hash] opts the optional parameters
|
|
77
|
+
# @return [Job]
|
|
78
|
+
def jobs_post(job_create, opts = {})
|
|
79
|
+
data, _status_code, _headers = jobs_post_with_http_info(job_create, opts)
|
|
80
|
+
data
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
# @param job_create [JobCreate]
|
|
84
|
+
# @param [Hash] opts the optional parameters
|
|
85
|
+
# @return [Array<(Job, Integer, Hash)>] Job data, response status code and response headers
|
|
86
|
+
def jobs_post_with_http_info(job_create, opts = {})
|
|
87
|
+
if @api_client.config.debugging
|
|
88
|
+
@api_client.config.logger.debug 'Calling API: JobApi.jobs_post ...'
|
|
89
|
+
end
|
|
90
|
+
# verify the required parameter 'job_create' is set
|
|
91
|
+
if @api_client.config.client_side_validation && job_create.nil?
|
|
92
|
+
fail ArgumentError, "Missing the required parameter 'job_create' when calling JobApi.jobs_post"
|
|
93
|
+
end
|
|
94
|
+
# resource path
|
|
95
|
+
local_var_path = '/jobs'
|
|
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
|
+
# HTTP header 'Content-Type'
|
|
105
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
106
|
+
|
|
107
|
+
# form parameters
|
|
108
|
+
form_params = opts[:form_params] || {}
|
|
109
|
+
|
|
110
|
+
# http body (model)
|
|
111
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(job_create)
|
|
112
|
+
|
|
113
|
+
# return_type
|
|
114
|
+
return_type = opts[:debug_return_type] || 'Job'
|
|
115
|
+
|
|
116
|
+
# auth_names
|
|
117
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
118
|
+
|
|
119
|
+
new_options = opts.merge(
|
|
120
|
+
:operation => :"JobApi.jobs_post",
|
|
121
|
+
:header_params => header_params,
|
|
122
|
+
:query_params => query_params,
|
|
123
|
+
:form_params => form_params,
|
|
124
|
+
:body => post_body,
|
|
125
|
+
:auth_names => auth_names,
|
|
126
|
+
:return_type => return_type
|
|
127
|
+
)
|
|
128
|
+
|
|
129
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
130
|
+
if @api_client.config.debugging
|
|
131
|
+
@api_client.config.logger.debug "API called: JobApi#jobs_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
132
|
+
end
|
|
133
|
+
return data, status_code, headers
|
|
134
|
+
end
|
|
135
|
+
end
|
|
136
|
+
end
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
|
7
7
|
Contact: autosde@il.ibm.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version:
|
|
9
|
+
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -47,15 +47,16 @@ module OpenapiClient
|
|
|
47
47
|
form_params = opts[:form_params] || {}
|
|
48
48
|
|
|
49
49
|
# http body (model)
|
|
50
|
-
post_body = opts[:
|
|
50
|
+
post_body = opts[:debug_body]
|
|
51
51
|
|
|
52
52
|
# return_type
|
|
53
|
-
return_type = opts[:
|
|
53
|
+
return_type = opts[:debug_return_type] || 'Array<NativeCapability>'
|
|
54
54
|
|
|
55
55
|
# auth_names
|
|
56
|
-
auth_names = opts[:
|
|
56
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
57
57
|
|
|
58
58
|
new_options = opts.merge(
|
|
59
|
+
:operation => :"NativeCapabilityApi.native_capabilities_get",
|
|
59
60
|
:header_params => header_params,
|
|
60
61
|
:query_params => query_params,
|
|
61
62
|
:form_params => form_params,
|
|
@@ -105,15 +106,16 @@ module OpenapiClient
|
|
|
105
106
|
form_params = opts[:form_params] || {}
|
|
106
107
|
|
|
107
108
|
# http body (model)
|
|
108
|
-
post_body = opts[:
|
|
109
|
+
post_body = opts[:debug_body]
|
|
109
110
|
|
|
110
111
|
# return_type
|
|
111
|
-
return_type = opts[:
|
|
112
|
+
return_type = opts[:debug_return_type] || 'Array<NativeCapability>'
|
|
112
113
|
|
|
113
114
|
# auth_names
|
|
114
|
-
auth_names = opts[:
|
|
115
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
115
116
|
|
|
116
117
|
new_options = opts.merge(
|
|
118
|
+
:operation => :"NativeCapabilityApi.native_capabilities_pk_delete",
|
|
117
119
|
:header_params => header_params,
|
|
118
120
|
:query_params => query_params,
|
|
119
121
|
:form_params => form_params,
|
|
@@ -163,15 +165,16 @@ module OpenapiClient
|
|
|
163
165
|
form_params = opts[:form_params] || {}
|
|
164
166
|
|
|
165
167
|
# http body (model)
|
|
166
|
-
post_body = opts[:
|
|
168
|
+
post_body = opts[:debug_body]
|
|
167
169
|
|
|
168
170
|
# return_type
|
|
169
|
-
return_type = opts[:
|
|
171
|
+
return_type = opts[:debug_return_type] || 'Array<NativeCapability>'
|
|
170
172
|
|
|
171
173
|
# auth_names
|
|
172
|
-
auth_names = opts[:
|
|
174
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
173
175
|
|
|
174
176
|
new_options = opts.merge(
|
|
177
|
+
:operation => :"NativeCapabilityApi.native_capabilities_pk_get",
|
|
175
178
|
:header_params => header_params,
|
|
176
179
|
:query_params => query_params,
|
|
177
180
|
:form_params => form_params,
|
|
@@ -189,7 +192,7 @@ module OpenapiClient
|
|
|
189
192
|
|
|
190
193
|
# @param native_capability [NativeCapability]
|
|
191
194
|
# @param [Hash] opts the optional parameters
|
|
192
|
-
# @return [
|
|
195
|
+
# @return [NativeCapability]
|
|
193
196
|
def native_capabilities_post(native_capability, opts = {})
|
|
194
197
|
data, _status_code, _headers = native_capabilities_post_with_http_info(native_capability, opts)
|
|
195
198
|
data
|
|
@@ -197,7 +200,7 @@ module OpenapiClient
|
|
|
197
200
|
|
|
198
201
|
# @param native_capability [NativeCapability]
|
|
199
202
|
# @param [Hash] opts the optional parameters
|
|
200
|
-
# @return [Array<(
|
|
203
|
+
# @return [Array<(NativeCapability, Integer, Hash)>] NativeCapability data, response status code and response headers
|
|
201
204
|
def native_capabilities_post_with_http_info(native_capability, opts = {})
|
|
202
205
|
if @api_client.config.debugging
|
|
203
206
|
@api_client.config.logger.debug 'Calling API: NativeCapabilityApi.native_capabilities_post ...'
|
|
@@ -223,15 +226,16 @@ module OpenapiClient
|
|
|
223
226
|
form_params = opts[:form_params] || {}
|
|
224
227
|
|
|
225
228
|
# http body (model)
|
|
226
|
-
post_body = opts[:
|
|
229
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(native_capability)
|
|
227
230
|
|
|
228
231
|
# return_type
|
|
229
|
-
return_type = opts[:
|
|
232
|
+
return_type = opts[:debug_return_type] || 'NativeCapability'
|
|
230
233
|
|
|
231
234
|
# auth_names
|
|
232
|
-
auth_names = opts[:
|
|
235
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
233
236
|
|
|
234
237
|
new_options = opts.merge(
|
|
238
|
+
:operation => :"NativeCapabilityApi.native_capabilities_post",
|
|
235
239
|
:header_params => header_params,
|
|
236
240
|
:query_params => query_params,
|
|
237
241
|
:form_params => form_params,
|