pulpcore_client 3.0.0rc2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/Gemfile.lock +79 -0
- data/README.md +151 -0
- data/Rakefile +10 -0
- data/docs/Artifact.md +37 -0
- data/docs/ArtifactsApi.md +253 -0
- data/docs/AsyncOperationResponse.md +17 -0
- data/docs/InlineResponse200.md +23 -0
- data/docs/InlineResponse2001.md +23 -0
- data/docs/InlineResponse2002.md +23 -0
- data/docs/InlineResponse2003.md +23 -0
- data/docs/InlineResponse2004.md +23 -0
- data/docs/InlineResponse2005.md +23 -0
- data/docs/OrphansApi.md +58 -0
- data/docs/ProgressReport.md +27 -0
- data/docs/RepositoriesApi.md +584 -0
- data/docs/Repository.md +27 -0
- data/docs/RepositoryVersion.md +25 -0
- data/docs/RepositoryVersionCreate.md +21 -0
- data/docs/StatusApi.md +57 -0
- data/docs/Task.md +41 -0
- data/docs/TasksApi.md +263 -0
- data/docs/Upload.md +25 -0
- data/docs/UploadsApi.md +395 -0
- data/docs/Worker.md +27 -0
- data/docs/WorkersApi.md +136 -0
- data/git_push.sh +55 -0
- data/lib/pulpcore_client/api/artifacts_api.rb +306 -0
- data/lib/pulpcore_client/api/orphans_api.rb +78 -0
- data/lib/pulpcore_client/api/repositories_api.rb +710 -0
- data/lib/pulpcore_client/api/status_api.rb +76 -0
- data/lib/pulpcore_client/api/tasks_api.rb +330 -0
- data/lib/pulpcore_client/api/uploads_api.rb +493 -0
- data/lib/pulpcore_client/api/workers_api.rb +172 -0
- data/lib/pulpcore_client/api_client.rb +387 -0
- data/lib/pulpcore_client/api_error.rb +57 -0
- data/lib/pulpcore_client/configuration.rb +251 -0
- data/lib/pulpcore_client/models/artifact.rb +296 -0
- data/lib/pulpcore_client/models/async_operation_response.rb +202 -0
- data/lib/pulpcore_client/models/inline_response200.rb +235 -0
- data/lib/pulpcore_client/models/inline_response2001.rb +235 -0
- data/lib/pulpcore_client/models/inline_response2002.rb +235 -0
- data/lib/pulpcore_client/models/inline_response2003.rb +235 -0
- data/lib/pulpcore_client/models/inline_response2004.rb +235 -0
- data/lib/pulpcore_client/models/inline_response2005.rb +235 -0
- data/lib/pulpcore_client/models/progress_report.rb +277 -0
- data/lib/pulpcore_client/models/repository.rb +268 -0
- data/lib/pulpcore_client/models/repository_version.rb +235 -0
- data/lib/pulpcore_client/models/repository_version_create.rb +231 -0
- data/lib/pulpcore_client/models/task.rb +360 -0
- data/lib/pulpcore_client/models/upload.rb +257 -0
- data/lib/pulpcore_client/models/worker.rb +261 -0
- data/lib/pulpcore_client/version.rb +15 -0
- data/lib/pulpcore_client.rb +61 -0
- data/pulpcore_client.gemspec +45 -0
- data/spec/api/artifacts_api_spec.rb +96 -0
- data/spec/api/orphans_api_spec.rb +46 -0
- data/spec/api/repositories_api_spec.rb +171 -0
- data/spec/api/status_api_spec.rb +46 -0
- data/spec/api/tasks_api_spec.rb +102 -0
- data/spec/api/uploads_api_spec.rb +123 -0
- data/spec/api/workers_api_spec.rb +68 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/artifact_spec.rb +101 -0
- data/spec/models/async_operation_response_spec.rb +41 -0
- data/spec/models/inline_response2001_spec.rb +59 -0
- data/spec/models/inline_response2002_spec.rb +59 -0
- data/spec/models/inline_response2003_spec.rb +59 -0
- data/spec/models/inline_response2004_spec.rb +59 -0
- data/spec/models/inline_response2005_spec.rb +59 -0
- data/spec/models/inline_response200_spec.rb +59 -0
- data/spec/models/progress_report_spec.rb +71 -0
- data/spec/models/repository_spec.rb +71 -0
- data/spec/models/repository_version_create_spec.rb +53 -0
- data/spec/models/repository_version_spec.rb +65 -0
- data/spec/models/task_spec.rb +113 -0
- data/spec/models/upload_spec.rb +65 -0
- data/spec/models/worker_spec.rb +71 -0
- data/spec/spec_helper.rb +111 -0
- metadata +329 -0
@@ -0,0 +1,306 @@
|
|
1
|
+
=begin
|
2
|
+
#Pulp 3 API
|
3
|
+
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.0.1-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'uri'
|
14
|
+
|
15
|
+
module PulpcoreClient
|
16
|
+
class ArtifactsApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Create an artifact
|
23
|
+
# @param [Hash] opts the optional parameters
|
24
|
+
# @option opts [File] :file The stored file.
|
25
|
+
# @option opts [Integer] :size The size of the file in bytes.
|
26
|
+
# @option opts [String] :md5 The MD5 checksum of the file if available.
|
27
|
+
# @option opts [String] :sha1 The SHA-1 checksum of the file if available.
|
28
|
+
# @option opts [String] :sha224 The SHA-224 checksum of the file if available.
|
29
|
+
# @option opts [String] :sha256 The SHA-256 checksum of the file if available.
|
30
|
+
# @option opts [String] :sha384 The SHA-384 checksum of the file if available.
|
31
|
+
# @option opts [String] :sha512 The SHA-512 checksum of the file if available.
|
32
|
+
# @option opts [String] :upload An href for an Upload.
|
33
|
+
# @return [Artifact]
|
34
|
+
def artifacts_create(opts = {})
|
35
|
+
data, _status_code, _headers = artifacts_create_with_http_info(opts)
|
36
|
+
data
|
37
|
+
end
|
38
|
+
|
39
|
+
# Create an artifact
|
40
|
+
# @param [Hash] opts the optional parameters
|
41
|
+
# @option opts [File] :file The stored file.
|
42
|
+
# @option opts [Integer] :size The size of the file in bytes.
|
43
|
+
# @option opts [String] :md5 The MD5 checksum of the file if available.
|
44
|
+
# @option opts [String] :sha1 The SHA-1 checksum of the file if available.
|
45
|
+
# @option opts [String] :sha224 The SHA-224 checksum of the file if available.
|
46
|
+
# @option opts [String] :sha256 The SHA-256 checksum of the file if available.
|
47
|
+
# @option opts [String] :sha384 The SHA-384 checksum of the file if available.
|
48
|
+
# @option opts [String] :sha512 The SHA-512 checksum of the file if available.
|
49
|
+
# @option opts [String] :upload An href for an Upload.
|
50
|
+
# @return [Array<(Artifact, Integer, Hash)>] Artifact data, response status code and response headers
|
51
|
+
def artifacts_create_with_http_info(opts = {})
|
52
|
+
if @api_client.config.debugging
|
53
|
+
@api_client.config.logger.debug 'Calling API: ArtifactsApi.artifacts_create ...'
|
54
|
+
end
|
55
|
+
# resource path
|
56
|
+
local_var_path = '/pulp/api/v3/artifacts/'
|
57
|
+
|
58
|
+
# query parameters
|
59
|
+
query_params = opts[:query_params] || {}
|
60
|
+
|
61
|
+
# header parameters
|
62
|
+
header_params = opts[:header_params] || {}
|
63
|
+
# HTTP header 'Accept' (if needed)
|
64
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
65
|
+
# HTTP header 'Content-Type'
|
66
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data', 'application/x-www-form-urlencoded'])
|
67
|
+
|
68
|
+
# form parameters
|
69
|
+
form_params = opts[:form_params] || {}
|
70
|
+
form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
|
71
|
+
form_params['size'] = opts[:'size'] if !opts[:'size'].nil?
|
72
|
+
form_params['md5'] = opts[:'md5'] if !opts[:'md5'].nil?
|
73
|
+
form_params['sha1'] = opts[:'sha1'] if !opts[:'sha1'].nil?
|
74
|
+
form_params['sha224'] = opts[:'sha224'] if !opts[:'sha224'].nil?
|
75
|
+
form_params['sha256'] = opts[:'sha256'] if !opts[:'sha256'].nil?
|
76
|
+
form_params['sha384'] = opts[:'sha384'] if !opts[:'sha384'].nil?
|
77
|
+
form_params['sha512'] = opts[:'sha512'] if !opts[:'sha512'].nil?
|
78
|
+
form_params['upload'] = opts[:'upload'] if !opts[:'upload'].nil?
|
79
|
+
|
80
|
+
# http body (model)
|
81
|
+
post_body = opts[:body]
|
82
|
+
|
83
|
+
# return_type
|
84
|
+
return_type = opts[:return_type] || 'Artifact'
|
85
|
+
|
86
|
+
# auth_names
|
87
|
+
auth_names = opts[:auth_names] || ['Basic']
|
88
|
+
|
89
|
+
new_options = opts.merge(
|
90
|
+
:header_params => header_params,
|
91
|
+
:query_params => query_params,
|
92
|
+
:form_params => form_params,
|
93
|
+
:body => post_body,
|
94
|
+
:auth_names => auth_names,
|
95
|
+
:return_type => return_type
|
96
|
+
)
|
97
|
+
|
98
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
99
|
+
if @api_client.config.debugging
|
100
|
+
@api_client.config.logger.debug "API called: ArtifactsApi#artifacts_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
101
|
+
end
|
102
|
+
return data, status_code, headers
|
103
|
+
end
|
104
|
+
|
105
|
+
# Delete an artifact
|
106
|
+
# Remove Artifact only if it is not associated with any Content.
|
107
|
+
# @param artifact_href [String] URI of Artifact. e.g.: /pulp/api/v3/artifacts/1/
|
108
|
+
# @param [Hash] opts the optional parameters
|
109
|
+
# @return [nil]
|
110
|
+
def artifacts_delete(artifact_href, opts = {})
|
111
|
+
artifacts_delete_with_http_info(artifact_href, opts)
|
112
|
+
nil
|
113
|
+
end
|
114
|
+
|
115
|
+
# Delete an artifact
|
116
|
+
# Remove Artifact only if it is not associated with any Content.
|
117
|
+
# @param artifact_href [String] URI of Artifact. e.g.: /pulp/api/v3/artifacts/1/
|
118
|
+
# @param [Hash] opts the optional parameters
|
119
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
120
|
+
def artifacts_delete_with_http_info(artifact_href, opts = {})
|
121
|
+
if @api_client.config.debugging
|
122
|
+
@api_client.config.logger.debug 'Calling API: ArtifactsApi.artifacts_delete ...'
|
123
|
+
end
|
124
|
+
# verify the required parameter 'artifact_href' is set
|
125
|
+
if @api_client.config.client_side_validation && artifact_href.nil?
|
126
|
+
fail ArgumentError, "Missing the required parameter 'artifact_href' when calling ArtifactsApi.artifacts_delete"
|
127
|
+
end
|
128
|
+
# resource path
|
129
|
+
local_var_path = '{artifact_href}'.sub('{' + 'artifact_href' + '}', artifact_href.to_s)
|
130
|
+
|
131
|
+
# query parameters
|
132
|
+
query_params = opts[:query_params] || {}
|
133
|
+
|
134
|
+
# header parameters
|
135
|
+
header_params = opts[:header_params] || {}
|
136
|
+
|
137
|
+
# form parameters
|
138
|
+
form_params = opts[:form_params] || {}
|
139
|
+
|
140
|
+
# http body (model)
|
141
|
+
post_body = opts[:body]
|
142
|
+
|
143
|
+
# return_type
|
144
|
+
return_type = opts[:return_type]
|
145
|
+
|
146
|
+
# auth_names
|
147
|
+
auth_names = opts[:auth_names] || ['Basic']
|
148
|
+
|
149
|
+
new_options = opts.merge(
|
150
|
+
:header_params => header_params,
|
151
|
+
:query_params => query_params,
|
152
|
+
:form_params => form_params,
|
153
|
+
:body => post_body,
|
154
|
+
:auth_names => auth_names,
|
155
|
+
:return_type => return_type
|
156
|
+
)
|
157
|
+
|
158
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
159
|
+
if @api_client.config.debugging
|
160
|
+
@api_client.config.logger.debug "API called: ArtifactsApi#artifacts_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
161
|
+
end
|
162
|
+
return data, status_code, headers
|
163
|
+
end
|
164
|
+
|
165
|
+
# List artifacts
|
166
|
+
# @param [Hash] opts the optional parameters
|
167
|
+
# @option opts [String] :repository_version Repository Version referenced by HREF
|
168
|
+
# @option opts [String] :md5 Filter results where md5 matches value
|
169
|
+
# @option opts [String] :sha1 Filter results where sha1 matches value
|
170
|
+
# @option opts [String] :sha224 Filter results where sha224 matches value
|
171
|
+
# @option opts [String] :sha256 Filter results where sha256 matches value
|
172
|
+
# @option opts [String] :sha384 Filter results where sha384 matches value
|
173
|
+
# @option opts [String] :sha512 Filter results where sha512 matches value
|
174
|
+
# @option opts [Integer] :page A page number within the paginated result set.
|
175
|
+
# @option opts [Integer] :page_size Number of results to return per page.
|
176
|
+
# @return [InlineResponse200]
|
177
|
+
def artifacts_list(opts = {})
|
178
|
+
data, _status_code, _headers = artifacts_list_with_http_info(opts)
|
179
|
+
data
|
180
|
+
end
|
181
|
+
|
182
|
+
# List artifacts
|
183
|
+
# @param [Hash] opts the optional parameters
|
184
|
+
# @option opts [String] :repository_version Repository Version referenced by HREF
|
185
|
+
# @option opts [String] :md5 Filter results where md5 matches value
|
186
|
+
# @option opts [String] :sha1 Filter results where sha1 matches value
|
187
|
+
# @option opts [String] :sha224 Filter results where sha224 matches value
|
188
|
+
# @option opts [String] :sha256 Filter results where sha256 matches value
|
189
|
+
# @option opts [String] :sha384 Filter results where sha384 matches value
|
190
|
+
# @option opts [String] :sha512 Filter results where sha512 matches value
|
191
|
+
# @option opts [Integer] :page A page number within the paginated result set.
|
192
|
+
# @option opts [Integer] :page_size Number of results to return per page.
|
193
|
+
# @return [Array<(InlineResponse200, Integer, Hash)>] InlineResponse200 data, response status code and response headers
|
194
|
+
def artifacts_list_with_http_info(opts = {})
|
195
|
+
if @api_client.config.debugging
|
196
|
+
@api_client.config.logger.debug 'Calling API: ArtifactsApi.artifacts_list ...'
|
197
|
+
end
|
198
|
+
# resource path
|
199
|
+
local_var_path = '/pulp/api/v3/artifacts/'
|
200
|
+
|
201
|
+
# query parameters
|
202
|
+
query_params = opts[:query_params] || {}
|
203
|
+
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
204
|
+
query_params[:'md5'] = opts[:'md5'] if !opts[:'md5'].nil?
|
205
|
+
query_params[:'sha1'] = opts[:'sha1'] if !opts[:'sha1'].nil?
|
206
|
+
query_params[:'sha224'] = opts[:'sha224'] if !opts[:'sha224'].nil?
|
207
|
+
query_params[:'sha256'] = opts[:'sha256'] if !opts[:'sha256'].nil?
|
208
|
+
query_params[:'sha384'] = opts[:'sha384'] if !opts[:'sha384'].nil?
|
209
|
+
query_params[:'sha512'] = opts[:'sha512'] if !opts[:'sha512'].nil?
|
210
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
211
|
+
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
212
|
+
|
213
|
+
# header parameters
|
214
|
+
header_params = opts[:header_params] || {}
|
215
|
+
# HTTP header 'Accept' (if needed)
|
216
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
217
|
+
|
218
|
+
# form parameters
|
219
|
+
form_params = opts[:form_params] || {}
|
220
|
+
|
221
|
+
# http body (model)
|
222
|
+
post_body = opts[:body]
|
223
|
+
|
224
|
+
# return_type
|
225
|
+
return_type = opts[:return_type] || 'InlineResponse200'
|
226
|
+
|
227
|
+
# auth_names
|
228
|
+
auth_names = opts[:auth_names] || ['Basic']
|
229
|
+
|
230
|
+
new_options = opts.merge(
|
231
|
+
:header_params => header_params,
|
232
|
+
:query_params => query_params,
|
233
|
+
:form_params => form_params,
|
234
|
+
:body => post_body,
|
235
|
+
:auth_names => auth_names,
|
236
|
+
:return_type => return_type
|
237
|
+
)
|
238
|
+
|
239
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
240
|
+
if @api_client.config.debugging
|
241
|
+
@api_client.config.logger.debug "API called: ArtifactsApi#artifacts_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
242
|
+
end
|
243
|
+
return data, status_code, headers
|
244
|
+
end
|
245
|
+
|
246
|
+
# Inspect an artifact
|
247
|
+
# @param artifact_href [String] URI of Artifact. e.g.: /pulp/api/v3/artifacts/1/
|
248
|
+
# @param [Hash] opts the optional parameters
|
249
|
+
# @return [Artifact]
|
250
|
+
def artifacts_read(artifact_href, opts = {})
|
251
|
+
data, _status_code, _headers = artifacts_read_with_http_info(artifact_href, opts)
|
252
|
+
data
|
253
|
+
end
|
254
|
+
|
255
|
+
# Inspect an artifact
|
256
|
+
# @param artifact_href [String] URI of Artifact. e.g.: /pulp/api/v3/artifacts/1/
|
257
|
+
# @param [Hash] opts the optional parameters
|
258
|
+
# @return [Array<(Artifact, Integer, Hash)>] Artifact data, response status code and response headers
|
259
|
+
def artifacts_read_with_http_info(artifact_href, opts = {})
|
260
|
+
if @api_client.config.debugging
|
261
|
+
@api_client.config.logger.debug 'Calling API: ArtifactsApi.artifacts_read ...'
|
262
|
+
end
|
263
|
+
# verify the required parameter 'artifact_href' is set
|
264
|
+
if @api_client.config.client_side_validation && artifact_href.nil?
|
265
|
+
fail ArgumentError, "Missing the required parameter 'artifact_href' when calling ArtifactsApi.artifacts_read"
|
266
|
+
end
|
267
|
+
# resource path
|
268
|
+
local_var_path = '{artifact_href}'.sub('{' + 'artifact_href' + '}', artifact_href.to_s)
|
269
|
+
|
270
|
+
# query parameters
|
271
|
+
query_params = opts[:query_params] || {}
|
272
|
+
|
273
|
+
# header parameters
|
274
|
+
header_params = opts[:header_params] || {}
|
275
|
+
# HTTP header 'Accept' (if needed)
|
276
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
277
|
+
|
278
|
+
# form parameters
|
279
|
+
form_params = opts[:form_params] || {}
|
280
|
+
|
281
|
+
# http body (model)
|
282
|
+
post_body = opts[:body]
|
283
|
+
|
284
|
+
# return_type
|
285
|
+
return_type = opts[:return_type] || 'Artifact'
|
286
|
+
|
287
|
+
# auth_names
|
288
|
+
auth_names = opts[:auth_names] || ['Basic']
|
289
|
+
|
290
|
+
new_options = opts.merge(
|
291
|
+
:header_params => header_params,
|
292
|
+
:query_params => query_params,
|
293
|
+
:form_params => form_params,
|
294
|
+
:body => post_body,
|
295
|
+
:auth_names => auth_names,
|
296
|
+
:return_type => return_type
|
297
|
+
)
|
298
|
+
|
299
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
300
|
+
if @api_client.config.debugging
|
301
|
+
@api_client.config.logger.debug "API called: ArtifactsApi#artifacts_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
302
|
+
end
|
303
|
+
return data, status_code, headers
|
304
|
+
end
|
305
|
+
end
|
306
|
+
end
|
@@ -0,0 +1,78 @@
|
|
1
|
+
=begin
|
2
|
+
#Pulp 3 API
|
3
|
+
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.0.1-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'uri'
|
14
|
+
|
15
|
+
module PulpcoreClient
|
16
|
+
class OrphansApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Delete orphans
|
23
|
+
# Trigger an asynchronous task that deletes allorphaned content and artifacts.
|
24
|
+
# @param [Hash] opts the optional parameters
|
25
|
+
# @return [AsyncOperationResponse]
|
26
|
+
def orphans_delete(opts = {})
|
27
|
+
data, _status_code, _headers = orphans_delete_with_http_info(opts)
|
28
|
+
data
|
29
|
+
end
|
30
|
+
|
31
|
+
# Delete orphans
|
32
|
+
# Trigger an asynchronous task that deletes allorphaned content and artifacts.
|
33
|
+
# @param [Hash] opts the optional parameters
|
34
|
+
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
35
|
+
def orphans_delete_with_http_info(opts = {})
|
36
|
+
if @api_client.config.debugging
|
37
|
+
@api_client.config.logger.debug 'Calling API: OrphansApi.orphans_delete ...'
|
38
|
+
end
|
39
|
+
# resource path
|
40
|
+
local_var_path = '/pulp/api/v3/orphans/'
|
41
|
+
|
42
|
+
# query parameters
|
43
|
+
query_params = opts[:query_params] || {}
|
44
|
+
|
45
|
+
# header parameters
|
46
|
+
header_params = opts[:header_params] || {}
|
47
|
+
# HTTP header 'Accept' (if needed)
|
48
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
49
|
+
|
50
|
+
# form parameters
|
51
|
+
form_params = opts[:form_params] || {}
|
52
|
+
|
53
|
+
# http body (model)
|
54
|
+
post_body = opts[:body]
|
55
|
+
|
56
|
+
# return_type
|
57
|
+
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
58
|
+
|
59
|
+
# auth_names
|
60
|
+
auth_names = opts[:auth_names] || ['Basic']
|
61
|
+
|
62
|
+
new_options = opts.merge(
|
63
|
+
:header_params => header_params,
|
64
|
+
:query_params => query_params,
|
65
|
+
:form_params => form_params,
|
66
|
+
:body => post_body,
|
67
|
+
:auth_names => auth_names,
|
68
|
+
:return_type => return_type
|
69
|
+
)
|
70
|
+
|
71
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
72
|
+
if @api_client.config.debugging
|
73
|
+
@api_client.config.logger.debug "API called: OrphansApi#orphans_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
74
|
+
end
|
75
|
+
return data, status_code, headers
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|