autosde_openapi_client 1.0.0
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 +7 -0
- data/Gemfile +9 -0
- data/README.md +207 -0
- data/Rakefile +10 -0
- data/autosde_openapi_client.gemspec +39 -0
- data/docs/AbstractCapability.md +19 -0
- data/docs/AbstractCapabilityApi.md +204 -0
- data/docs/Account.md +21 -0
- data/docs/AccountApi.md +256 -0
- data/docs/AccountPostRequest.md +19 -0
- data/docs/AccountPostResponse.md +23 -0
- data/docs/Address.md +31 -0
- data/docs/AddressApi.md +204 -0
- data/docs/AddressCreate.md +31 -0
- data/docs/AuthResponse.md +17 -0
- data/docs/Authentication.md +19 -0
- data/docs/AuthenticationApi.md +53 -0
- data/docs/AutoSDEProject.md +55 -0
- data/docs/AutoSDEProjectApi.md +204 -0
- data/docs/AutoSDERole.md +19 -0
- data/docs/AutoSDERoleApi.md +204 -0
- data/docs/CapabilityTranslation.md +35 -0
- data/docs/CapabilityTranslationApi.md +204 -0
- data/docs/CapabilityTranslationCreate.md +31 -0
- data/docs/Host.md +29 -0
- data/docs/HostApi.md +204 -0
- data/docs/HostCreate.md +39 -0
- data/docs/HostVolumeConnection.md +23 -0
- data/docs/HostVolumeConnectionApi.md +204 -0
- data/docs/HostVolumeConnectionCreate.md +21 -0
- data/docs/NativeCapability.md +23 -0
- data/docs/NativeCapabilityApi.md +204 -0
- data/docs/Profile.md +25 -0
- data/docs/ProfileApi.md +204 -0
- data/docs/ProvisioningStrategy.md +19 -0
- data/docs/ProvisioningStrategyApi.md +204 -0
- data/docs/Service.md +35 -0
- data/docs/ServiceAbstractCapabilityValue.md +21 -0
- data/docs/ServiceApi.md +256 -0
- data/docs/ServiceCreate.md +33 -0
- data/docs/ServiceResourceAttachment.md +23 -0
- data/docs/ServiceResourceAttachmentApi.md +204 -0
- data/docs/StorageResource.md +33 -0
- data/docs/StorageResourceApi.md +256 -0
- data/docs/StorageResourceCreate.md +31 -0
- data/docs/StorageResourceResponse.md +33 -0
- data/docs/StorageSystem.md +29 -0
- data/docs/StorageSystemApi.md +204 -0
- data/docs/StorageSystemCreate.md +49 -0
- data/docs/SystemType.md +25 -0
- data/docs/SystemTypeApi.md +204 -0
- data/docs/SystemTypeCreate.md +27 -0
- data/docs/Volume.md +31 -0
- data/docs/VolumeApi.md +256 -0
- data/docs/VolumeCreate.md +27 -0
- data/docs/VolumeResponse.md +31 -0
- data/docs/VolumeSafeDelete.md +21 -0
- data/docs/VolumeSafeDeleteApi.md +204 -0
- data/docs/VolumeSafeDeleteCreate.md +17 -0
- data/docs/VolumeUpdate.md +17 -0
- data/git_push.sh +58 -0
- data/lib/autosde_openapi_client.rb +94 -0
- data/lib/autosde_openapi_client/api/abstract_capability_api.rb +250 -0
- data/lib/autosde_openapi_client/api/account_api.rb +316 -0
- data/lib/autosde_openapi_client/api/address_api.rb +250 -0
- data/lib/autosde_openapi_client/api/authentication_api.rb +82 -0
- data/lib/autosde_openapi_client/api/auto_sde_project_api.rb +250 -0
- data/lib/autosde_openapi_client/api/auto_sde_role_api.rb +250 -0
- data/lib/autosde_openapi_client/api/capability_translation_api.rb +250 -0
- data/lib/autosde_openapi_client/api/host_api.rb +250 -0
- data/lib/autosde_openapi_client/api/host_volume_connection_api.rb +250 -0
- data/lib/autosde_openapi_client/api/native_capability_api.rb +250 -0
- data/lib/autosde_openapi_client/api/profile_api.rb +250 -0
- data/lib/autosde_openapi_client/api/provisioning_strategy_api.rb +250 -0
- data/lib/autosde_openapi_client/api/service_api.rb +316 -0
- data/lib/autosde_openapi_client/api/service_resource_attachment_api.rb +250 -0
- data/lib/autosde_openapi_client/api/storage_resource_api.rb +316 -0
- data/lib/autosde_openapi_client/api/storage_system_api.rb +250 -0
- data/lib/autosde_openapi_client/api/system_type_api.rb +250 -0
- data/lib/autosde_openapi_client/api/volume_api.rb +316 -0
- data/lib/autosde_openapi_client/api/volume_safe_delete_api.rb +250 -0
- data/lib/autosde_openapi_client/api_client.rb +388 -0
- data/lib/autosde_openapi_client/api_error.rb +57 -0
- data/lib/autosde_openapi_client/configuration.rb +266 -0
- data/lib/autosde_openapi_client/models/abstract_capability.rb +218 -0
- data/lib/autosde_openapi_client/models/account.rb +228 -0
- data/lib/autosde_openapi_client/models/account_post_request.rb +218 -0
- data/lib/autosde_openapi_client/models/account_post_response.rb +238 -0
- data/lib/autosde_openapi_client/models/address.rb +328 -0
- data/lib/autosde_openapi_client/models/address_create.rb +330 -0
- data/lib/autosde_openapi_client/models/auth_response.rb +208 -0
- data/lib/autosde_openapi_client/models/authentication.rb +218 -0
- data/lib/autosde_openapi_client/models/auto_sde_project.rb +398 -0
- data/lib/autosde_openapi_client/models/auto_sde_role.rb +218 -0
- data/lib/autosde_openapi_client/models/capability_translation.rb +328 -0
- data/lib/autosde_openapi_client/models/capability_translation_create.rb +310 -0
- data/lib/autosde_openapi_client/models/host.rb +321 -0
- data/lib/autosde_openapi_client/models/host_create.rb +382 -0
- data/lib/autosde_openapi_client/models/host_volume_connection.rb +275 -0
- data/lib/autosde_openapi_client/models/host_volume_connection_create.rb +265 -0
- data/lib/autosde_openapi_client/models/native_capability.rb +239 -0
- data/lib/autosde_openapi_client/models/profile.rb +283 -0
- data/lib/autosde_openapi_client/models/provisioning_strategy.rb +257 -0
- data/lib/autosde_openapi_client/models/service.rb +339 -0
- data/lib/autosde_openapi_client/models/service_abstract_capability_value.rb +227 -0
- data/lib/autosde_openapi_client/models/service_create.rb +327 -0
- data/lib/autosde_openapi_client/models/service_resource_attachment.rb +238 -0
- data/lib/autosde_openapi_client/models/storage_resource.rb +342 -0
- data/lib/autosde_openapi_client/models/storage_resource_create.rb +333 -0
- data/lib/autosde_openapi_client/models/storage_resource_response.rb +343 -0
- data/lib/autosde_openapi_client/models/storage_system.rb +333 -0
- data/lib/autosde_openapi_client/models/storage_system_create.rb +448 -0
- data/lib/autosde_openapi_client/models/system_type.rb +321 -0
- data/lib/autosde_openapi_client/models/system_type_create.rb +333 -0
- data/lib/autosde_openapi_client/models/volume.rb +316 -0
- data/lib/autosde_openapi_client/models/volume_create.rb +299 -0
- data/lib/autosde_openapi_client/models/volume_response.rb +318 -0
- data/lib/autosde_openapi_client/models/volume_safe_delete.rb +227 -0
- data/lib/autosde_openapi_client/models/volume_safe_delete_create.rb +207 -0
- data/lib/autosde_openapi_client/models/volume_update.rb +208 -0
- data/lib/autosde_openapi_client/version.rb +15 -0
- data/site_manager_oas.json +3992 -0
- data/spec/api/abstract_capability_api_spec.rb +74 -0
- data/spec/api/account_api_spec.rb +85 -0
- data/spec/api/address_api_spec.rb +74 -0
- data/spec/api/authentication_api_spec.rb +45 -0
- data/spec/api/auto_sde_project_api_spec.rb +74 -0
- data/spec/api/auto_sde_role_api_spec.rb +74 -0
- data/spec/api/capability_translation_api_spec.rb +74 -0
- data/spec/api/host_api_spec.rb +74 -0
- data/spec/api/host_volume_connection_api_spec.rb +74 -0
- data/spec/api/native_capability_api_spec.rb +74 -0
- data/spec/api/profile_api_spec.rb +74 -0
- data/spec/api/provisioning_strategy_api_spec.rb +74 -0
- data/spec/api/service_api_spec.rb +85 -0
- data/spec/api/service_resource_attachment_api_spec.rb +74 -0
- data/spec/api/storage_resource_api_spec.rb +85 -0
- data/spec/api/storage_system_api_spec.rb +74 -0
- data/spec/api/system_type_api_spec.rb +74 -0
- data/spec/api/volume_api_spec.rb +85 -0
- data/spec/api/volume_safe_delete_api_spec.rb +74 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/abstract_capability_spec.rb +47 -0
- data/spec/models/account_post_request_spec.rb +47 -0
- data/spec/models/account_post_response_spec.rb +59 -0
- data/spec/models/account_spec.rb +53 -0
- data/spec/models/address_create_spec.rb +91 -0
- data/spec/models/address_spec.rb +91 -0
- data/spec/models/auth_response_spec.rb +41 -0
- data/spec/models/authentication_spec.rb +47 -0
- data/spec/models/auto_sde_project_spec.rb +155 -0
- data/spec/models/auto_sde_role_spec.rb +47 -0
- data/spec/models/capability_translation_create_spec.rb +83 -0
- data/spec/models/capability_translation_spec.rb +95 -0
- data/spec/models/host_create_spec.rb +119 -0
- data/spec/models/host_spec.rb +85 -0
- data/spec/models/host_volume_connection_create_spec.rb +57 -0
- data/spec/models/host_volume_connection_spec.rb +63 -0
- data/spec/models/native_capability_spec.rb +59 -0
- data/spec/models/profile_spec.rb +69 -0
- data/spec/models/provisioning_strategy_spec.rb +51 -0
- data/spec/models/service_abstract_capability_value_spec.rb +53 -0
- data/spec/models/service_create_spec.rb +93 -0
- data/spec/models/service_resource_attachment_spec.rb +59 -0
- data/spec/models/service_spec.rb +99 -0
- data/spec/models/storage_resource_create_spec.rb +91 -0
- data/spec/models/storage_resource_response_spec.rb +97 -0
- data/spec/models/storage_resource_spec.rb +97 -0
- data/spec/models/storage_system_create_spec.rb +149 -0
- data/spec/models/storage_system_spec.rb +85 -0
- data/spec/models/system_type_create_spec.rb +79 -0
- data/spec/models/system_type_spec.rb +73 -0
- data/spec/models/volume_create_spec.rb +75 -0
- data/spec/models/volume_response_spec.rb +87 -0
- data/spec/models/volume_safe_delete_create_spec.rb +41 -0
- data/spec/models/volume_safe_delete_spec.rb +53 -0
- data/spec/models/volume_spec.rb +87 -0
- data/spec/models/volume_update_spec.rb +41 -0
- data/spec/spec_helper.rb +111 -0
- metadata +340 -0
|
@@ -0,0 +1,250 @@
|
|
|
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: 4.3.1
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'cgi'
|
|
14
|
+
|
|
15
|
+
module OpenapiClient
|
|
16
|
+
class ProvisioningStrategyApi
|
|
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<ProvisioningStrategy>]
|
|
24
|
+
def provisioning_strategy_get(opts = {})
|
|
25
|
+
data, _status_code, _headers = provisioning_strategy_get_with_http_info(opts)
|
|
26
|
+
data
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
# @param [Hash] opts the optional parameters
|
|
30
|
+
# @return [Array<(Array<ProvisioningStrategy>, Integer, Hash)>] Array<ProvisioningStrategy> data, response status code and response headers
|
|
31
|
+
def provisioning_strategy_get_with_http_info(opts = {})
|
|
32
|
+
if @api_client.config.debugging
|
|
33
|
+
@api_client.config.logger.debug 'Calling API: ProvisioningStrategyApi.provisioning_strategy_get ...'
|
|
34
|
+
end
|
|
35
|
+
# resource path
|
|
36
|
+
local_var_path = '/provisioning-strategy/'
|
|
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[:body]
|
|
51
|
+
|
|
52
|
+
# return_type
|
|
53
|
+
return_type = opts[:return_type] || 'Array<ProvisioningStrategy>'
|
|
54
|
+
|
|
55
|
+
# auth_names
|
|
56
|
+
auth_names = opts[:auth_names] || ['bearerAuth']
|
|
57
|
+
|
|
58
|
+
new_options = opts.merge(
|
|
59
|
+
:header_params => header_params,
|
|
60
|
+
:query_params => query_params,
|
|
61
|
+
:form_params => form_params,
|
|
62
|
+
:body => post_body,
|
|
63
|
+
:auth_names => auth_names,
|
|
64
|
+
:return_type => return_type
|
|
65
|
+
)
|
|
66
|
+
|
|
67
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
68
|
+
if @api_client.config.debugging
|
|
69
|
+
@api_client.config.logger.debug "API called: ProvisioningStrategyApi#provisioning_strategy_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
70
|
+
end
|
|
71
|
+
return data, status_code, headers
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
# @param pk [Integer]
|
|
75
|
+
# @param [Hash] opts the optional parameters
|
|
76
|
+
# @return [Array<ProvisioningStrategy>]
|
|
77
|
+
def provisioning_strategy_pk_delete(pk, opts = {})
|
|
78
|
+
data, _status_code, _headers = provisioning_strategy_pk_delete_with_http_info(pk, opts)
|
|
79
|
+
data
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
# @param pk [Integer]
|
|
83
|
+
# @param [Hash] opts the optional parameters
|
|
84
|
+
# @return [Array<(Array<ProvisioningStrategy>, Integer, Hash)>] Array<ProvisioningStrategy> data, response status code and response headers
|
|
85
|
+
def provisioning_strategy_pk_delete_with_http_info(pk, opts = {})
|
|
86
|
+
if @api_client.config.debugging
|
|
87
|
+
@api_client.config.logger.debug 'Calling API: ProvisioningStrategyApi.provisioning_strategy_pk_delete ...'
|
|
88
|
+
end
|
|
89
|
+
# verify the required parameter 'pk' is set
|
|
90
|
+
if @api_client.config.client_side_validation && pk.nil?
|
|
91
|
+
fail ArgumentError, "Missing the required parameter 'pk' when calling ProvisioningStrategyApi.provisioning_strategy_pk_delete"
|
|
92
|
+
end
|
|
93
|
+
# resource path
|
|
94
|
+
local_var_path = '/provisioning-strategy/{pk}'.sub('{' + 'pk' + '}', CGI.escape(pk.to_s))
|
|
95
|
+
|
|
96
|
+
# query parameters
|
|
97
|
+
query_params = opts[:query_params] || {}
|
|
98
|
+
|
|
99
|
+
# header parameters
|
|
100
|
+
header_params = opts[:header_params] || {}
|
|
101
|
+
# HTTP header 'Accept' (if needed)
|
|
102
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
103
|
+
|
|
104
|
+
# form parameters
|
|
105
|
+
form_params = opts[:form_params] || {}
|
|
106
|
+
|
|
107
|
+
# http body (model)
|
|
108
|
+
post_body = opts[:body]
|
|
109
|
+
|
|
110
|
+
# return_type
|
|
111
|
+
return_type = opts[:return_type] || 'Array<ProvisioningStrategy>'
|
|
112
|
+
|
|
113
|
+
# auth_names
|
|
114
|
+
auth_names = opts[:auth_names] || ['bearerAuth']
|
|
115
|
+
|
|
116
|
+
new_options = opts.merge(
|
|
117
|
+
:header_params => header_params,
|
|
118
|
+
:query_params => query_params,
|
|
119
|
+
:form_params => form_params,
|
|
120
|
+
:body => post_body,
|
|
121
|
+
:auth_names => auth_names,
|
|
122
|
+
:return_type => return_type
|
|
123
|
+
)
|
|
124
|
+
|
|
125
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
126
|
+
if @api_client.config.debugging
|
|
127
|
+
@api_client.config.logger.debug "API called: ProvisioningStrategyApi#provisioning_strategy_pk_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
128
|
+
end
|
|
129
|
+
return data, status_code, headers
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
# @param pk [Integer]
|
|
133
|
+
# @param [Hash] opts the optional parameters
|
|
134
|
+
# @return [Array<ProvisioningStrategy>]
|
|
135
|
+
def provisioning_strategy_pk_get(pk, opts = {})
|
|
136
|
+
data, _status_code, _headers = provisioning_strategy_pk_get_with_http_info(pk, opts)
|
|
137
|
+
data
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
# @param pk [Integer]
|
|
141
|
+
# @param [Hash] opts the optional parameters
|
|
142
|
+
# @return [Array<(Array<ProvisioningStrategy>, Integer, Hash)>] Array<ProvisioningStrategy> data, response status code and response headers
|
|
143
|
+
def provisioning_strategy_pk_get_with_http_info(pk, opts = {})
|
|
144
|
+
if @api_client.config.debugging
|
|
145
|
+
@api_client.config.logger.debug 'Calling API: ProvisioningStrategyApi.provisioning_strategy_pk_get ...'
|
|
146
|
+
end
|
|
147
|
+
# verify the required parameter 'pk' is set
|
|
148
|
+
if @api_client.config.client_side_validation && pk.nil?
|
|
149
|
+
fail ArgumentError, "Missing the required parameter 'pk' when calling ProvisioningStrategyApi.provisioning_strategy_pk_get"
|
|
150
|
+
end
|
|
151
|
+
# resource path
|
|
152
|
+
local_var_path = '/provisioning-strategy/{pk}'.sub('{' + 'pk' + '}', CGI.escape(pk.to_s))
|
|
153
|
+
|
|
154
|
+
# query parameters
|
|
155
|
+
query_params = opts[:query_params] || {}
|
|
156
|
+
|
|
157
|
+
# header parameters
|
|
158
|
+
header_params = opts[:header_params] || {}
|
|
159
|
+
# HTTP header 'Accept' (if needed)
|
|
160
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
161
|
+
|
|
162
|
+
# form parameters
|
|
163
|
+
form_params = opts[:form_params] || {}
|
|
164
|
+
|
|
165
|
+
# http body (model)
|
|
166
|
+
post_body = opts[:body]
|
|
167
|
+
|
|
168
|
+
# return_type
|
|
169
|
+
return_type = opts[:return_type] || 'Array<ProvisioningStrategy>'
|
|
170
|
+
|
|
171
|
+
# auth_names
|
|
172
|
+
auth_names = opts[:auth_names] || ['bearerAuth']
|
|
173
|
+
|
|
174
|
+
new_options = opts.merge(
|
|
175
|
+
:header_params => header_params,
|
|
176
|
+
:query_params => query_params,
|
|
177
|
+
:form_params => form_params,
|
|
178
|
+
:body => post_body,
|
|
179
|
+
:auth_names => auth_names,
|
|
180
|
+
:return_type => return_type
|
|
181
|
+
)
|
|
182
|
+
|
|
183
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
184
|
+
if @api_client.config.debugging
|
|
185
|
+
@api_client.config.logger.debug "API called: ProvisioningStrategyApi#provisioning_strategy_pk_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
186
|
+
end
|
|
187
|
+
return data, status_code, headers
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
# @param provisioning_strategy [ProvisioningStrategy]
|
|
191
|
+
# @param [Hash] opts the optional parameters
|
|
192
|
+
# @return [Array<ProvisioningStrategy>]
|
|
193
|
+
def provisioning_strategy_post(provisioning_strategy, opts = {})
|
|
194
|
+
data, _status_code, _headers = provisioning_strategy_post_with_http_info(provisioning_strategy, opts)
|
|
195
|
+
data
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
# @param provisioning_strategy [ProvisioningStrategy]
|
|
199
|
+
# @param [Hash] opts the optional parameters
|
|
200
|
+
# @return [Array<(Array<ProvisioningStrategy>, Integer, Hash)>] Array<ProvisioningStrategy> data, response status code and response headers
|
|
201
|
+
def provisioning_strategy_post_with_http_info(provisioning_strategy, opts = {})
|
|
202
|
+
if @api_client.config.debugging
|
|
203
|
+
@api_client.config.logger.debug 'Calling API: ProvisioningStrategyApi.provisioning_strategy_post ...'
|
|
204
|
+
end
|
|
205
|
+
# verify the required parameter 'provisioning_strategy' is set
|
|
206
|
+
if @api_client.config.client_side_validation && provisioning_strategy.nil?
|
|
207
|
+
fail ArgumentError, "Missing the required parameter 'provisioning_strategy' when calling ProvisioningStrategyApi.provisioning_strategy_post"
|
|
208
|
+
end
|
|
209
|
+
# resource path
|
|
210
|
+
local_var_path = '/provisioning-strategy/'
|
|
211
|
+
|
|
212
|
+
# query parameters
|
|
213
|
+
query_params = opts[:query_params] || {}
|
|
214
|
+
|
|
215
|
+
# header parameters
|
|
216
|
+
header_params = opts[:header_params] || {}
|
|
217
|
+
# HTTP header 'Accept' (if needed)
|
|
218
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
219
|
+
# HTTP header 'Content-Type'
|
|
220
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
221
|
+
|
|
222
|
+
# form parameters
|
|
223
|
+
form_params = opts[:form_params] || {}
|
|
224
|
+
|
|
225
|
+
# http body (model)
|
|
226
|
+
post_body = opts[:body] || @api_client.object_to_http_body(provisioning_strategy)
|
|
227
|
+
|
|
228
|
+
# return_type
|
|
229
|
+
return_type = opts[:return_type] || 'Array<ProvisioningStrategy>'
|
|
230
|
+
|
|
231
|
+
# auth_names
|
|
232
|
+
auth_names = opts[:auth_names] || ['bearerAuth']
|
|
233
|
+
|
|
234
|
+
new_options = opts.merge(
|
|
235
|
+
:header_params => header_params,
|
|
236
|
+
:query_params => query_params,
|
|
237
|
+
:form_params => form_params,
|
|
238
|
+
:body => post_body,
|
|
239
|
+
:auth_names => auth_names,
|
|
240
|
+
:return_type => return_type
|
|
241
|
+
)
|
|
242
|
+
|
|
243
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
244
|
+
if @api_client.config.debugging
|
|
245
|
+
@api_client.config.logger.debug "API called: ProvisioningStrategyApi#provisioning_strategy_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
246
|
+
end
|
|
247
|
+
return data, status_code, headers
|
|
248
|
+
end
|
|
249
|
+
end
|
|
250
|
+
end
|
|
@@ -0,0 +1,316 @@
|
|
|
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: 4.3.1
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'cgi'
|
|
14
|
+
|
|
15
|
+
module OpenapiClient
|
|
16
|
+
class ServiceApi
|
|
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<Service>]
|
|
24
|
+
def services_get(opts = {})
|
|
25
|
+
data, _status_code, _headers = services_get_with_http_info(opts)
|
|
26
|
+
data
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
# @param [Hash] opts the optional parameters
|
|
30
|
+
# @return [Array<(Array<Service>, Integer, Hash)>] Array<Service> data, response status code and response headers
|
|
31
|
+
def services_get_with_http_info(opts = {})
|
|
32
|
+
if @api_client.config.debugging
|
|
33
|
+
@api_client.config.logger.debug 'Calling API: ServiceApi.services_get ...'
|
|
34
|
+
end
|
|
35
|
+
# resource path
|
|
36
|
+
local_var_path = '/services/'
|
|
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[:body]
|
|
51
|
+
|
|
52
|
+
# return_type
|
|
53
|
+
return_type = opts[:return_type] || 'Array<Service>'
|
|
54
|
+
|
|
55
|
+
# auth_names
|
|
56
|
+
auth_names = opts[:auth_names] || ['bearerAuth']
|
|
57
|
+
|
|
58
|
+
new_options = opts.merge(
|
|
59
|
+
:header_params => header_params,
|
|
60
|
+
:query_params => query_params,
|
|
61
|
+
:form_params => form_params,
|
|
62
|
+
:body => post_body,
|
|
63
|
+
:auth_names => auth_names,
|
|
64
|
+
:return_type => return_type
|
|
65
|
+
)
|
|
66
|
+
|
|
67
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
68
|
+
if @api_client.config.debugging
|
|
69
|
+
@api_client.config.logger.debug "API called: ServiceApi#services_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
70
|
+
end
|
|
71
|
+
return data, status_code, headers
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
# @param pk [Integer]
|
|
75
|
+
# @param [Hash] opts the optional parameters
|
|
76
|
+
# @return [Array<Service>]
|
|
77
|
+
def services_pk_delete(pk, opts = {})
|
|
78
|
+
data, _status_code, _headers = services_pk_delete_with_http_info(pk, opts)
|
|
79
|
+
data
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
# @param pk [Integer]
|
|
83
|
+
# @param [Hash] opts the optional parameters
|
|
84
|
+
# @return [Array<(Array<Service>, Integer, Hash)>] Array<Service> data, response status code and response headers
|
|
85
|
+
def services_pk_delete_with_http_info(pk, opts = {})
|
|
86
|
+
if @api_client.config.debugging
|
|
87
|
+
@api_client.config.logger.debug 'Calling API: ServiceApi.services_pk_delete ...'
|
|
88
|
+
end
|
|
89
|
+
# verify the required parameter 'pk' is set
|
|
90
|
+
if @api_client.config.client_side_validation && pk.nil?
|
|
91
|
+
fail ArgumentError, "Missing the required parameter 'pk' when calling ServiceApi.services_pk_delete"
|
|
92
|
+
end
|
|
93
|
+
# resource path
|
|
94
|
+
local_var_path = '/services/{pk}'.sub('{' + 'pk' + '}', CGI.escape(pk.to_s))
|
|
95
|
+
|
|
96
|
+
# query parameters
|
|
97
|
+
query_params = opts[:query_params] || {}
|
|
98
|
+
|
|
99
|
+
# header parameters
|
|
100
|
+
header_params = opts[:header_params] || {}
|
|
101
|
+
# HTTP header 'Accept' (if needed)
|
|
102
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
103
|
+
|
|
104
|
+
# form parameters
|
|
105
|
+
form_params = opts[:form_params] || {}
|
|
106
|
+
|
|
107
|
+
# http body (model)
|
|
108
|
+
post_body = opts[:body]
|
|
109
|
+
|
|
110
|
+
# return_type
|
|
111
|
+
return_type = opts[:return_type] || 'Array<Service>'
|
|
112
|
+
|
|
113
|
+
# auth_names
|
|
114
|
+
auth_names = opts[:auth_names] || ['bearerAuth']
|
|
115
|
+
|
|
116
|
+
new_options = opts.merge(
|
|
117
|
+
:header_params => header_params,
|
|
118
|
+
:query_params => query_params,
|
|
119
|
+
:form_params => form_params,
|
|
120
|
+
:body => post_body,
|
|
121
|
+
:auth_names => auth_names,
|
|
122
|
+
:return_type => return_type
|
|
123
|
+
)
|
|
124
|
+
|
|
125
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
126
|
+
if @api_client.config.debugging
|
|
127
|
+
@api_client.config.logger.debug "API called: ServiceApi#services_pk_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
128
|
+
end
|
|
129
|
+
return data, status_code, headers
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
# @param pk [Integer]
|
|
133
|
+
# @param [Hash] opts the optional parameters
|
|
134
|
+
# @return [Array<Service>]
|
|
135
|
+
def services_pk_get(pk, opts = {})
|
|
136
|
+
data, _status_code, _headers = services_pk_get_with_http_info(pk, opts)
|
|
137
|
+
data
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
# @param pk [Integer]
|
|
141
|
+
# @param [Hash] opts the optional parameters
|
|
142
|
+
# @return [Array<(Array<Service>, Integer, Hash)>] Array<Service> data, response status code and response headers
|
|
143
|
+
def services_pk_get_with_http_info(pk, opts = {})
|
|
144
|
+
if @api_client.config.debugging
|
|
145
|
+
@api_client.config.logger.debug 'Calling API: ServiceApi.services_pk_get ...'
|
|
146
|
+
end
|
|
147
|
+
# verify the required parameter 'pk' is set
|
|
148
|
+
if @api_client.config.client_side_validation && pk.nil?
|
|
149
|
+
fail ArgumentError, "Missing the required parameter 'pk' when calling ServiceApi.services_pk_get"
|
|
150
|
+
end
|
|
151
|
+
# resource path
|
|
152
|
+
local_var_path = '/services/{pk}'.sub('{' + 'pk' + '}', CGI.escape(pk.to_s))
|
|
153
|
+
|
|
154
|
+
# query parameters
|
|
155
|
+
query_params = opts[:query_params] || {}
|
|
156
|
+
|
|
157
|
+
# header parameters
|
|
158
|
+
header_params = opts[:header_params] || {}
|
|
159
|
+
# HTTP header 'Accept' (if needed)
|
|
160
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
161
|
+
|
|
162
|
+
# form parameters
|
|
163
|
+
form_params = opts[:form_params] || {}
|
|
164
|
+
|
|
165
|
+
# http body (model)
|
|
166
|
+
post_body = opts[:body]
|
|
167
|
+
|
|
168
|
+
# return_type
|
|
169
|
+
return_type = opts[:return_type] || 'Array<Service>'
|
|
170
|
+
|
|
171
|
+
# auth_names
|
|
172
|
+
auth_names = opts[:auth_names] || ['bearerAuth']
|
|
173
|
+
|
|
174
|
+
new_options = opts.merge(
|
|
175
|
+
:header_params => header_params,
|
|
176
|
+
:query_params => query_params,
|
|
177
|
+
:form_params => form_params,
|
|
178
|
+
:body => post_body,
|
|
179
|
+
:auth_names => auth_names,
|
|
180
|
+
:return_type => return_type
|
|
181
|
+
)
|
|
182
|
+
|
|
183
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
184
|
+
if @api_client.config.debugging
|
|
185
|
+
@api_client.config.logger.debug "API called: ServiceApi#services_pk_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
186
|
+
end
|
|
187
|
+
return data, status_code, headers
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
# @param pk [Integer]
|
|
191
|
+
# @param service [Service]
|
|
192
|
+
# @param [Hash] opts the optional parameters
|
|
193
|
+
# @return [Array<Service>]
|
|
194
|
+
def services_pk_put(pk, service, opts = {})
|
|
195
|
+
data, _status_code, _headers = services_pk_put_with_http_info(pk, service, opts)
|
|
196
|
+
data
|
|
197
|
+
end
|
|
198
|
+
|
|
199
|
+
# @param pk [Integer]
|
|
200
|
+
# @param service [Service]
|
|
201
|
+
# @param [Hash] opts the optional parameters
|
|
202
|
+
# @return [Array<(Array<Service>, Integer, Hash)>] Array<Service> data, response status code and response headers
|
|
203
|
+
def services_pk_put_with_http_info(pk, service, opts = {})
|
|
204
|
+
if @api_client.config.debugging
|
|
205
|
+
@api_client.config.logger.debug 'Calling API: ServiceApi.services_pk_put ...'
|
|
206
|
+
end
|
|
207
|
+
# verify the required parameter 'pk' is set
|
|
208
|
+
if @api_client.config.client_side_validation && pk.nil?
|
|
209
|
+
fail ArgumentError, "Missing the required parameter 'pk' when calling ServiceApi.services_pk_put"
|
|
210
|
+
end
|
|
211
|
+
# verify the required parameter 'service' is set
|
|
212
|
+
if @api_client.config.client_side_validation && service.nil?
|
|
213
|
+
fail ArgumentError, "Missing the required parameter 'service' when calling ServiceApi.services_pk_put"
|
|
214
|
+
end
|
|
215
|
+
# resource path
|
|
216
|
+
local_var_path = '/services/{pk}'.sub('{' + 'pk' + '}', CGI.escape(pk.to_s))
|
|
217
|
+
|
|
218
|
+
# query parameters
|
|
219
|
+
query_params = opts[:query_params] || {}
|
|
220
|
+
|
|
221
|
+
# header parameters
|
|
222
|
+
header_params = opts[:header_params] || {}
|
|
223
|
+
# HTTP header 'Accept' (if needed)
|
|
224
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
225
|
+
# HTTP header 'Content-Type'
|
|
226
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
227
|
+
|
|
228
|
+
# form parameters
|
|
229
|
+
form_params = opts[:form_params] || {}
|
|
230
|
+
|
|
231
|
+
# http body (model)
|
|
232
|
+
post_body = opts[:body] || @api_client.object_to_http_body(service)
|
|
233
|
+
|
|
234
|
+
# return_type
|
|
235
|
+
return_type = opts[:return_type] || 'Array<Service>'
|
|
236
|
+
|
|
237
|
+
# auth_names
|
|
238
|
+
auth_names = opts[:auth_names] || ['bearerAuth']
|
|
239
|
+
|
|
240
|
+
new_options = opts.merge(
|
|
241
|
+
:header_params => header_params,
|
|
242
|
+
:query_params => query_params,
|
|
243
|
+
:form_params => form_params,
|
|
244
|
+
:body => post_body,
|
|
245
|
+
:auth_names => auth_names,
|
|
246
|
+
:return_type => return_type
|
|
247
|
+
)
|
|
248
|
+
|
|
249
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
250
|
+
if @api_client.config.debugging
|
|
251
|
+
@api_client.config.logger.debug "API called: ServiceApi#services_pk_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
252
|
+
end
|
|
253
|
+
return data, status_code, headers
|
|
254
|
+
end
|
|
255
|
+
|
|
256
|
+
# @param service_create [ServiceCreate]
|
|
257
|
+
# @param [Hash] opts the optional parameters
|
|
258
|
+
# @return [Array<Service>]
|
|
259
|
+
def services_post(service_create, opts = {})
|
|
260
|
+
data, _status_code, _headers = services_post_with_http_info(service_create, opts)
|
|
261
|
+
data
|
|
262
|
+
end
|
|
263
|
+
|
|
264
|
+
# @param service_create [ServiceCreate]
|
|
265
|
+
# @param [Hash] opts the optional parameters
|
|
266
|
+
# @return [Array<(Array<Service>, Integer, Hash)>] Array<Service> data, response status code and response headers
|
|
267
|
+
def services_post_with_http_info(service_create, opts = {})
|
|
268
|
+
if @api_client.config.debugging
|
|
269
|
+
@api_client.config.logger.debug 'Calling API: ServiceApi.services_post ...'
|
|
270
|
+
end
|
|
271
|
+
# verify the required parameter 'service_create' is set
|
|
272
|
+
if @api_client.config.client_side_validation && service_create.nil?
|
|
273
|
+
fail ArgumentError, "Missing the required parameter 'service_create' when calling ServiceApi.services_post"
|
|
274
|
+
end
|
|
275
|
+
# resource path
|
|
276
|
+
local_var_path = '/services/'
|
|
277
|
+
|
|
278
|
+
# query parameters
|
|
279
|
+
query_params = opts[:query_params] || {}
|
|
280
|
+
|
|
281
|
+
# header parameters
|
|
282
|
+
header_params = opts[:header_params] || {}
|
|
283
|
+
# HTTP header 'Accept' (if needed)
|
|
284
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
285
|
+
# HTTP header 'Content-Type'
|
|
286
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
287
|
+
|
|
288
|
+
# form parameters
|
|
289
|
+
form_params = opts[:form_params] || {}
|
|
290
|
+
|
|
291
|
+
# http body (model)
|
|
292
|
+
post_body = opts[:body] || @api_client.object_to_http_body(service_create)
|
|
293
|
+
|
|
294
|
+
# return_type
|
|
295
|
+
return_type = opts[:return_type] || 'Array<Service>'
|
|
296
|
+
|
|
297
|
+
# auth_names
|
|
298
|
+
auth_names = opts[:auth_names] || ['bearerAuth']
|
|
299
|
+
|
|
300
|
+
new_options = opts.merge(
|
|
301
|
+
:header_params => header_params,
|
|
302
|
+
:query_params => query_params,
|
|
303
|
+
:form_params => form_params,
|
|
304
|
+
:body => post_body,
|
|
305
|
+
:auth_names => auth_names,
|
|
306
|
+
:return_type => return_type
|
|
307
|
+
)
|
|
308
|
+
|
|
309
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
310
|
+
if @api_client.config.debugging
|
|
311
|
+
@api_client.config.logger.debug "API called: ServiceApi#services_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
312
|
+
end
|
|
313
|
+
return data, status_code, headers
|
|
314
|
+
end
|
|
315
|
+
end
|
|
316
|
+
end
|