pulpcore_client 3.0.0rc2 → 3.0.0rc3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +43 -37
- data/docs/ArtifactsApi.md +20 -20
- data/docs/ContentAppStatus.md +19 -0
- data/docs/DatabaseConnection.md +17 -0
- data/docs/OrphansApi.md +5 -5
- data/docs/ProgressReport.md +1 -3
- data/docs/RedisConnection.md +17 -0
- data/docs/RepositoriesApi.md +30 -278
- data/docs/RepositoriesVersionsApi.md +256 -0
- data/docs/RepositoryVersionCreate.md +2 -2
- data/docs/Status.md +27 -0
- data/docs/StatusApi.md +8 -7
- data/docs/TaskCancel.md +17 -0
- data/docs/TasksApi.md +71 -71
- data/docs/Upload.md +6 -8
- data/docs/UploadCommit.md +17 -0
- data/docs/UploadsApi.md +66 -106
- data/docs/Version.md +19 -0
- data/docs/WorkersApi.md +10 -10
- data/lib/pulpcore_client/api/artifacts_api.rb +47 -23
- data/lib/pulpcore_client/api/orphans_api.rb +6 -6
- data/lib/pulpcore_client/api/repositories_api.rb +38 -338
- data/lib/pulpcore_client/api/repositories_versions_api.rb +322 -0
- data/lib/pulpcore_client/api/status_api.rb +12 -10
- data/lib/pulpcore_client/api/tasks_api.rb +88 -88
- data/lib/pulpcore_client/api/uploads_api.rb +105 -154
- data/lib/pulpcore_client/api/workers_api.rb +12 -12
- data/lib/pulpcore_client/api_client.rb +1 -1
- data/lib/pulpcore_client/api_error.rb +1 -1
- data/lib/pulpcore_client/configuration.rb +1 -1
- data/lib/pulpcore_client/models/artifact.rb +91 -1
- data/lib/pulpcore_client/models/async_operation_response.rb +1 -1
- data/lib/pulpcore_client/models/content_app_status.rb +223 -0
- data/lib/pulpcore_client/models/database_connection.rb +203 -0
- data/lib/pulpcore_client/models/inline_response200.rb +1 -1
- data/lib/pulpcore_client/models/inline_response2001.rb +1 -1
- data/lib/pulpcore_client/models/inline_response2002.rb +1 -1
- data/lib/pulpcore_client/models/inline_response2003.rb +1 -1
- data/lib/pulpcore_client/models/inline_response2004.rb +1 -1
- data/lib/pulpcore_client/models/inline_response2005.rb +1 -1
- data/lib/pulpcore_client/models/progress_report.rb +20 -15
- data/lib/pulpcore_client/models/redis_connection.rb +203 -0
- data/lib/pulpcore_client/models/repository.rb +16 -1
- data/lib/pulpcore_client/models/repository_version.rb +1 -1
- data/lib/pulpcore_client/models/repository_version_create.rb +3 -13
- data/lib/pulpcore_client/models/status.rb +283 -0
- data/lib/pulpcore_client/models/task.rb +1 -1
- data/lib/pulpcore_client/models/task_cancel.rb +221 -0
- data/lib/pulpcore_client/models/upload.rb +26 -52
- data/lib/pulpcore_client/models/upload_commit.rb +221 -0
- data/lib/pulpcore_client/models/version.rb +256 -0
- data/lib/pulpcore_client/models/worker.rb +2 -1
- data/lib/pulpcore_client/version.rb +2 -2
- data/lib/pulpcore_client.rb +9 -1
- data/pulpcore_client.gemspec +1 -1
- data/spec/api/artifacts_api_spec.rb +9 -9
- data/spec/api/orphans_api_spec.rb +3 -3
- data/spec/api/repositories_api_spec.rb +13 -76
- data/spec/api/repositories_versions_api_spec.rb +98 -0
- data/spec/api/status_api_spec.rb +4 -4
- data/spec/api/tasks_api_spec.rb +20 -20
- data/spec/api/uploads_api_spec.rb +32 -37
- data/spec/api/workers_api_spec.rb +5 -5
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/artifact_spec.rb +1 -1
- data/spec/models/async_operation_response_spec.rb +1 -1
- data/spec/models/content_app_status_spec.rb +47 -0
- data/spec/models/database_connection_spec.rb +41 -0
- data/spec/models/inline_response2001_spec.rb +1 -1
- data/spec/models/inline_response2002_spec.rb +1 -1
- data/spec/models/inline_response2003_spec.rb +1 -1
- data/spec/models/inline_response2004_spec.rb +1 -1
- data/spec/models/inline_response2005_spec.rb +1 -1
- data/spec/models/inline_response200_spec.rb +1 -1
- data/spec/models/progress_report_spec.rb +1 -7
- data/spec/models/redis_connection_spec.rb +41 -0
- data/spec/models/repository_spec.rb +1 -1
- data/spec/models/repository_version_create_spec.rb +1 -1
- data/spec/models/repository_version_spec.rb +1 -1
- data/spec/models/status_spec.rb +71 -0
- data/spec/models/task_cancel_spec.rb +41 -0
- data/spec/models/task_spec.rb +1 -1
- data/spec/models/upload_commit_spec.rb +41 -0
- data/spec/models/upload_spec.rb +4 -10
- data/spec/models/version_spec.rb +47 -0
- data/spec/models/worker_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +34 -2
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.0.
|
9
|
+
OpenAPI Generator version: 4.0.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -23,8 +23,8 @@ module PulpcoreClient
|
|
23
23
|
# @param data [Repository]
|
24
24
|
# @param [Hash] opts the optional parameters
|
25
25
|
# @return [Repository]
|
26
|
-
def
|
27
|
-
data, _status_code, _headers =
|
26
|
+
def create(data, opts = {})
|
27
|
+
data, _status_code, _headers = create_with_http_info(data, opts)
|
28
28
|
data
|
29
29
|
end
|
30
30
|
|
@@ -32,13 +32,13 @@ module PulpcoreClient
|
|
32
32
|
# @param data [Repository]
|
33
33
|
# @param [Hash] opts the optional parameters
|
34
34
|
# @return [Array<(Repository, Integer, Hash)>] Repository data, response status code and response headers
|
35
|
-
def
|
35
|
+
def create_with_http_info(data, opts = {})
|
36
36
|
if @api_client.config.debugging
|
37
|
-
@api_client.config.logger.debug 'Calling API: RepositoriesApi.
|
37
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesApi.create ...'
|
38
38
|
end
|
39
39
|
# verify the required parameter 'data' is set
|
40
40
|
if @api_client.config.client_side_validation && data.nil?
|
41
|
-
fail ArgumentError, "Missing the required parameter 'data' when calling RepositoriesApi.
|
41
|
+
fail ArgumentError, "Missing the required parameter 'data' when calling RepositoriesApi.create"
|
42
42
|
end
|
43
43
|
# resource path
|
44
44
|
local_var_path = '/pulp/api/v3/repositories/'
|
@@ -76,7 +76,7 @@ module PulpcoreClient
|
|
76
76
|
|
77
77
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
78
78
|
if @api_client.config.debugging
|
79
|
-
@api_client.config.logger.debug "API called: RepositoriesApi#
|
79
|
+
@api_client.config.logger.debug "API called: RepositoriesApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
80
80
|
end
|
81
81
|
return data, status_code, headers
|
82
82
|
end
|
@@ -86,8 +86,8 @@ module PulpcoreClient
|
|
86
86
|
# @param repository_href [String] URI of Repository. e.g.: /pulp/api/v3/repositories/1/
|
87
87
|
# @param [Hash] opts the optional parameters
|
88
88
|
# @return [AsyncOperationResponse]
|
89
|
-
def
|
90
|
-
data, _status_code, _headers =
|
89
|
+
def delete(repository_href, opts = {})
|
90
|
+
data, _status_code, _headers = delete_with_http_info(repository_href, opts)
|
91
91
|
data
|
92
92
|
end
|
93
93
|
|
@@ -96,13 +96,13 @@ module PulpcoreClient
|
|
96
96
|
# @param repository_href [String] URI of Repository. e.g.: /pulp/api/v3/repositories/1/
|
97
97
|
# @param [Hash] opts the optional parameters
|
98
98
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
99
|
-
def
|
99
|
+
def delete_with_http_info(repository_href, opts = {})
|
100
100
|
if @api_client.config.debugging
|
101
|
-
@api_client.config.logger.debug 'Calling API: RepositoriesApi.
|
101
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesApi.delete ...'
|
102
102
|
end
|
103
103
|
# verify the required parameter 'repository_href' is set
|
104
104
|
if @api_client.config.client_side_validation && repository_href.nil?
|
105
|
-
fail ArgumentError, "Missing the required parameter 'repository_href' when calling RepositoriesApi.
|
105
|
+
fail ArgumentError, "Missing the required parameter 'repository_href' when calling RepositoriesApi.delete"
|
106
106
|
end
|
107
107
|
# resource path
|
108
108
|
local_var_path = '{repository_href}'.sub('{' + 'repository_href' + '}', repository_href.to_s)
|
@@ -138,7 +138,7 @@ module PulpcoreClient
|
|
138
138
|
|
139
139
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
140
140
|
if @api_client.config.debugging
|
141
|
-
@api_client.config.logger.debug "API called: RepositoriesApi#
|
141
|
+
@api_client.config.logger.debug "API called: RepositoriesApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
142
142
|
end
|
143
143
|
return data, status_code, headers
|
144
144
|
end
|
@@ -150,8 +150,8 @@ module PulpcoreClient
|
|
150
150
|
# @option opts [Integer] :page A page number within the paginated result set.
|
151
151
|
# @option opts [Integer] :page_size Number of results to return per page.
|
152
152
|
# @return [InlineResponse2001]
|
153
|
-
def
|
154
|
-
data, _status_code, _headers =
|
153
|
+
def list(opts = {})
|
154
|
+
data, _status_code, _headers = list_with_http_info(opts)
|
155
155
|
data
|
156
156
|
end
|
157
157
|
|
@@ -162,9 +162,9 @@ module PulpcoreClient
|
|
162
162
|
# @option opts [Integer] :page A page number within the paginated result set.
|
163
163
|
# @option opts [Integer] :page_size Number of results to return per page.
|
164
164
|
# @return [Array<(InlineResponse2001, Integer, Hash)>] InlineResponse2001 data, response status code and response headers
|
165
|
-
def
|
165
|
+
def list_with_http_info(opts = {})
|
166
166
|
if @api_client.config.debugging
|
167
|
-
@api_client.config.logger.debug 'Calling API: RepositoriesApi.
|
167
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesApi.list ...'
|
168
168
|
end
|
169
169
|
# resource path
|
170
170
|
local_var_path = '/pulp/api/v3/repositories/'
|
@@ -204,7 +204,7 @@ module PulpcoreClient
|
|
204
204
|
|
205
205
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
206
206
|
if @api_client.config.debugging
|
207
|
-
@api_client.config.logger.debug "API called: RepositoriesApi#
|
207
|
+
@api_client.config.logger.debug "API called: RepositoriesApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
208
208
|
end
|
209
209
|
return data, status_code, headers
|
210
210
|
end
|
@@ -214,8 +214,8 @@ module PulpcoreClient
|
|
214
214
|
# @param data [Repository]
|
215
215
|
# @param [Hash] opts the optional parameters
|
216
216
|
# @return [Repository]
|
217
|
-
def
|
218
|
-
data, _status_code, _headers =
|
217
|
+
def partial_update(repository_href, data, opts = {})
|
218
|
+
data, _status_code, _headers = partial_update_with_http_info(repository_href, data, opts)
|
219
219
|
data
|
220
220
|
end
|
221
221
|
|
@@ -224,17 +224,17 @@ module PulpcoreClient
|
|
224
224
|
# @param data [Repository]
|
225
225
|
# @param [Hash] opts the optional parameters
|
226
226
|
# @return [Array<(Repository, Integer, Hash)>] Repository data, response status code and response headers
|
227
|
-
def
|
227
|
+
def partial_update_with_http_info(repository_href, data, opts = {})
|
228
228
|
if @api_client.config.debugging
|
229
|
-
@api_client.config.logger.debug 'Calling API: RepositoriesApi.
|
229
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesApi.partial_update ...'
|
230
230
|
end
|
231
231
|
# verify the required parameter 'repository_href' is set
|
232
232
|
if @api_client.config.client_side_validation && repository_href.nil?
|
233
|
-
fail ArgumentError, "Missing the required parameter 'repository_href' when calling RepositoriesApi.
|
233
|
+
fail ArgumentError, "Missing the required parameter 'repository_href' when calling RepositoriesApi.partial_update"
|
234
234
|
end
|
235
235
|
# verify the required parameter 'data' is set
|
236
236
|
if @api_client.config.client_side_validation && data.nil?
|
237
|
-
fail ArgumentError, "Missing the required parameter 'data' when calling RepositoriesApi.
|
237
|
+
fail ArgumentError, "Missing the required parameter 'data' when calling RepositoriesApi.partial_update"
|
238
238
|
end
|
239
239
|
# resource path
|
240
240
|
local_var_path = '{repository_href}'.sub('{' + 'repository_href' + '}', repository_href.to_s)
|
@@ -272,7 +272,7 @@ module PulpcoreClient
|
|
272
272
|
|
273
273
|
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
274
274
|
if @api_client.config.debugging
|
275
|
-
@api_client.config.logger.debug "API called: RepositoriesApi#
|
275
|
+
@api_client.config.logger.debug "API called: RepositoriesApi#partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
276
276
|
end
|
277
277
|
return data, status_code, headers
|
278
278
|
end
|
@@ -281,8 +281,8 @@ module PulpcoreClient
|
|
281
281
|
# @param repository_href [String] URI of Repository. e.g.: /pulp/api/v3/repositories/1/
|
282
282
|
# @param [Hash] opts the optional parameters
|
283
283
|
# @return [Repository]
|
284
|
-
def
|
285
|
-
data, _status_code, _headers =
|
284
|
+
def read(repository_href, opts = {})
|
285
|
+
data, _status_code, _headers = read_with_http_info(repository_href, opts)
|
286
286
|
data
|
287
287
|
end
|
288
288
|
|
@@ -290,13 +290,13 @@ module PulpcoreClient
|
|
290
290
|
# @param repository_href [String] URI of Repository. e.g.: /pulp/api/v3/repositories/1/
|
291
291
|
# @param [Hash] opts the optional parameters
|
292
292
|
# @return [Array<(Repository, Integer, Hash)>] Repository data, response status code and response headers
|
293
|
-
def
|
293
|
+
def read_with_http_info(repository_href, opts = {})
|
294
294
|
if @api_client.config.debugging
|
295
|
-
@api_client.config.logger.debug 'Calling API: RepositoriesApi.
|
295
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesApi.read ...'
|
296
296
|
end
|
297
297
|
# verify the required parameter 'repository_href' is set
|
298
298
|
if @api_client.config.client_side_validation && repository_href.nil?
|
299
|
-
fail ArgumentError, "Missing the required parameter 'repository_href' when calling RepositoriesApi.
|
299
|
+
fail ArgumentError, "Missing the required parameter 'repository_href' when calling RepositoriesApi.read"
|
300
300
|
end
|
301
301
|
# resource path
|
302
302
|
local_var_path = '{repository_href}'.sub('{' + 'repository_href' + '}', repository_href.to_s)
|
@@ -332,7 +332,7 @@ module PulpcoreClient
|
|
332
332
|
|
333
333
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
334
334
|
if @api_client.config.debugging
|
335
|
-
@api_client.config.logger.debug "API called: RepositoriesApi#
|
335
|
+
@api_client.config.logger.debug "API called: RepositoriesApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
336
336
|
end
|
337
337
|
return data, status_code, headers
|
338
338
|
end
|
@@ -343,8 +343,8 @@ module PulpcoreClient
|
|
343
343
|
# @param data [Repository]
|
344
344
|
# @param [Hash] opts the optional parameters
|
345
345
|
# @return [AsyncOperationResponse]
|
346
|
-
def
|
347
|
-
data, _status_code, _headers =
|
346
|
+
def update(repository_href, data, opts = {})
|
347
|
+
data, _status_code, _headers = update_with_http_info(repository_href, data, opts)
|
348
348
|
data
|
349
349
|
end
|
350
350
|
|
@@ -354,17 +354,17 @@ module PulpcoreClient
|
|
354
354
|
# @param data [Repository]
|
355
355
|
# @param [Hash] opts the optional parameters
|
356
356
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
357
|
-
def
|
357
|
+
def update_with_http_info(repository_href, data, opts = {})
|
358
358
|
if @api_client.config.debugging
|
359
|
-
@api_client.config.logger.debug 'Calling API: RepositoriesApi.
|
359
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesApi.update ...'
|
360
360
|
end
|
361
361
|
# verify the required parameter 'repository_href' is set
|
362
362
|
if @api_client.config.client_side_validation && repository_href.nil?
|
363
|
-
fail ArgumentError, "Missing the required parameter 'repository_href' when calling RepositoriesApi.
|
363
|
+
fail ArgumentError, "Missing the required parameter 'repository_href' when calling RepositoriesApi.update"
|
364
364
|
end
|
365
365
|
# verify the required parameter 'data' is set
|
366
366
|
if @api_client.config.client_side_validation && data.nil?
|
367
|
-
fail ArgumentError, "Missing the required parameter 'data' when calling RepositoriesApi.
|
367
|
+
fail ArgumentError, "Missing the required parameter 'data' when calling RepositoriesApi.update"
|
368
368
|
end
|
369
369
|
# resource path
|
370
370
|
local_var_path = '{repository_href}'.sub('{' + 'repository_href' + '}', repository_href.to_s)
|
@@ -402,307 +402,7 @@ module PulpcoreClient
|
|
402
402
|
|
403
403
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
404
404
|
if @api_client.config.debugging
|
405
|
-
@api_client.config.logger.debug "API called: RepositoriesApi#
|
406
|
-
end
|
407
|
-
return data, status_code, headers
|
408
|
-
end
|
409
|
-
|
410
|
-
# Create a repository version
|
411
|
-
# Trigger an asynchronous task to create a new repository version.
|
412
|
-
# @param repository_href [String] URI of Repository. e.g.: /pulp/api/v3/repositories/1/
|
413
|
-
# @param data [RepositoryVersionCreate]
|
414
|
-
# @param [Hash] opts the optional parameters
|
415
|
-
# @return [AsyncOperationResponse]
|
416
|
-
def repositories_versions_create(repository_href, data, opts = {})
|
417
|
-
data, _status_code, _headers = repositories_versions_create_with_http_info(repository_href, data, opts)
|
418
|
-
data
|
419
|
-
end
|
420
|
-
|
421
|
-
# Create a repository version
|
422
|
-
# Trigger an asynchronous task to create a new repository version.
|
423
|
-
# @param repository_href [String] URI of Repository. e.g.: /pulp/api/v3/repositories/1/
|
424
|
-
# @param data [RepositoryVersionCreate]
|
425
|
-
# @param [Hash] opts the optional parameters
|
426
|
-
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
427
|
-
def repositories_versions_create_with_http_info(repository_href, data, opts = {})
|
428
|
-
if @api_client.config.debugging
|
429
|
-
@api_client.config.logger.debug 'Calling API: RepositoriesApi.repositories_versions_create ...'
|
430
|
-
end
|
431
|
-
# verify the required parameter 'repository_href' is set
|
432
|
-
if @api_client.config.client_side_validation && repository_href.nil?
|
433
|
-
fail ArgumentError, "Missing the required parameter 'repository_href' when calling RepositoriesApi.repositories_versions_create"
|
434
|
-
end
|
435
|
-
# verify the required parameter 'data' is set
|
436
|
-
if @api_client.config.client_side_validation && data.nil?
|
437
|
-
fail ArgumentError, "Missing the required parameter 'data' when calling RepositoriesApi.repositories_versions_create"
|
438
|
-
end
|
439
|
-
# resource path
|
440
|
-
local_var_path = '{repository_href}versions/'.sub('{' + 'repository_href' + '}', repository_href.to_s)
|
441
|
-
|
442
|
-
# query parameters
|
443
|
-
query_params = opts[:query_params] || {}
|
444
|
-
|
445
|
-
# header parameters
|
446
|
-
header_params = opts[:header_params] || {}
|
447
|
-
# HTTP header 'Accept' (if needed)
|
448
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
449
|
-
# HTTP header 'Content-Type'
|
450
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
451
|
-
|
452
|
-
# form parameters
|
453
|
-
form_params = opts[:form_params] || {}
|
454
|
-
|
455
|
-
# http body (model)
|
456
|
-
post_body = opts[:body] || @api_client.object_to_http_body(data)
|
457
|
-
|
458
|
-
# return_type
|
459
|
-
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
460
|
-
|
461
|
-
# auth_names
|
462
|
-
auth_names = opts[:auth_names] || ['Basic']
|
463
|
-
|
464
|
-
new_options = opts.merge(
|
465
|
-
:header_params => header_params,
|
466
|
-
:query_params => query_params,
|
467
|
-
:form_params => form_params,
|
468
|
-
:body => post_body,
|
469
|
-
:auth_names => auth_names,
|
470
|
-
:return_type => return_type
|
471
|
-
)
|
472
|
-
|
473
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
474
|
-
if @api_client.config.debugging
|
475
|
-
@api_client.config.logger.debug "API called: RepositoriesApi#repositories_versions_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
476
|
-
end
|
477
|
-
return data, status_code, headers
|
478
|
-
end
|
479
|
-
|
480
|
-
# Delete a repository version
|
481
|
-
# Trigger an asynchronous task to delete a repositroy version.
|
482
|
-
# @param repository_version_href [String] URI of Repository Version. e.g.: /pulp/api/v3/repositories/1/versions/1/
|
483
|
-
# @param [Hash] opts the optional parameters
|
484
|
-
# @return [AsyncOperationResponse]
|
485
|
-
def repositories_versions_delete(repository_version_href, opts = {})
|
486
|
-
data, _status_code, _headers = repositories_versions_delete_with_http_info(repository_version_href, opts)
|
487
|
-
data
|
488
|
-
end
|
489
|
-
|
490
|
-
# Delete a repository version
|
491
|
-
# Trigger an asynchronous task to delete a repositroy version.
|
492
|
-
# @param repository_version_href [String] URI of Repository Version. e.g.: /pulp/api/v3/repositories/1/versions/1/
|
493
|
-
# @param [Hash] opts the optional parameters
|
494
|
-
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
495
|
-
def repositories_versions_delete_with_http_info(repository_version_href, opts = {})
|
496
|
-
if @api_client.config.debugging
|
497
|
-
@api_client.config.logger.debug 'Calling API: RepositoriesApi.repositories_versions_delete ...'
|
498
|
-
end
|
499
|
-
# verify the required parameter 'repository_version_href' is set
|
500
|
-
if @api_client.config.client_side_validation && repository_version_href.nil?
|
501
|
-
fail ArgumentError, "Missing the required parameter 'repository_version_href' when calling RepositoriesApi.repositories_versions_delete"
|
502
|
-
end
|
503
|
-
# resource path
|
504
|
-
local_var_path = '{repository_version_href}'.sub('{' + 'repository_version_href' + '}', repository_version_href.to_s)
|
505
|
-
|
506
|
-
# query parameters
|
507
|
-
query_params = opts[:query_params] || {}
|
508
|
-
|
509
|
-
# header parameters
|
510
|
-
header_params = opts[:header_params] || {}
|
511
|
-
# HTTP header 'Accept' (if needed)
|
512
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
513
|
-
|
514
|
-
# form parameters
|
515
|
-
form_params = opts[:form_params] || {}
|
516
|
-
|
517
|
-
# http body (model)
|
518
|
-
post_body = opts[:body]
|
519
|
-
|
520
|
-
# return_type
|
521
|
-
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
522
|
-
|
523
|
-
# auth_names
|
524
|
-
auth_names = opts[:auth_names] || ['Basic']
|
525
|
-
|
526
|
-
new_options = opts.merge(
|
527
|
-
:header_params => header_params,
|
528
|
-
:query_params => query_params,
|
529
|
-
:form_params => form_params,
|
530
|
-
:body => post_body,
|
531
|
-
:auth_names => auth_names,
|
532
|
-
:return_type => return_type
|
533
|
-
)
|
534
|
-
|
535
|
-
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
536
|
-
if @api_client.config.debugging
|
537
|
-
@api_client.config.logger.debug "API called: RepositoriesApi#repositories_versions_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
538
|
-
end
|
539
|
-
return data, status_code, headers
|
540
|
-
end
|
541
|
-
|
542
|
-
# List repository versions
|
543
|
-
# @param repository_href [String] URI of Repository. e.g.: /pulp/api/v3/repositories/1/
|
544
|
-
# @param [Hash] opts the optional parameters
|
545
|
-
# @option opts [String] :ordering Which field to use when ordering the results.
|
546
|
-
# @option opts [Float] :number
|
547
|
-
# @option opts [Float] :number__lt Filter results where number is less than value
|
548
|
-
# @option opts [Float] :number__lte Filter results where number is less than or equal to value
|
549
|
-
# @option opts [Float] :number__gt Filter results where number is greater than value
|
550
|
-
# @option opts [Float] :number__gte Filter results where number is greater than or equal to value
|
551
|
-
# @option opts [Float] :number__range Filter results where number is between two comma separated values
|
552
|
-
# @option opts [String] :_created__lt Filter results where _created is less than value
|
553
|
-
# @option opts [String] :_created__lte Filter results where _created is less than or equal to value
|
554
|
-
# @option opts [String] :_created__gt Filter results where _created is greater than value
|
555
|
-
# @option opts [String] :_created__gte Filter results where _created is greater than or equal to value
|
556
|
-
# @option opts [String] :_created__range Filter results where _created is between two comma separated values
|
557
|
-
# @option opts [String] :content Content Unit referenced by HREF
|
558
|
-
# @option opts [String] :_created ISO 8601 formatted dates are supported
|
559
|
-
# @option opts [Integer] :page A page number within the paginated result set.
|
560
|
-
# @option opts [Integer] :page_size Number of results to return per page.
|
561
|
-
# @return [InlineResponse2002]
|
562
|
-
def repositories_versions_list(repository_href, opts = {})
|
563
|
-
data, _status_code, _headers = repositories_versions_list_with_http_info(repository_href, opts)
|
564
|
-
data
|
565
|
-
end
|
566
|
-
|
567
|
-
# List repository versions
|
568
|
-
# @param repository_href [String] URI of Repository. e.g.: /pulp/api/v3/repositories/1/
|
569
|
-
# @param [Hash] opts the optional parameters
|
570
|
-
# @option opts [String] :ordering Which field to use when ordering the results.
|
571
|
-
# @option opts [Float] :number
|
572
|
-
# @option opts [Float] :number__lt Filter results where number is less than value
|
573
|
-
# @option opts [Float] :number__lte Filter results where number is less than or equal to value
|
574
|
-
# @option opts [Float] :number__gt Filter results where number is greater than value
|
575
|
-
# @option opts [Float] :number__gte Filter results where number is greater than or equal to value
|
576
|
-
# @option opts [Float] :number__range Filter results where number is between two comma separated values
|
577
|
-
# @option opts [String] :_created__lt Filter results where _created is less than value
|
578
|
-
# @option opts [String] :_created__lte Filter results where _created is less than or equal to value
|
579
|
-
# @option opts [String] :_created__gt Filter results where _created is greater than value
|
580
|
-
# @option opts [String] :_created__gte Filter results where _created is greater than or equal to value
|
581
|
-
# @option opts [String] :_created__range Filter results where _created is between two comma separated values
|
582
|
-
# @option opts [String] :content Content Unit referenced by HREF
|
583
|
-
# @option opts [String] :_created ISO 8601 formatted dates are supported
|
584
|
-
# @option opts [Integer] :page A page number within the paginated result set.
|
585
|
-
# @option opts [Integer] :page_size Number of results to return per page.
|
586
|
-
# @return [Array<(InlineResponse2002, Integer, Hash)>] InlineResponse2002 data, response status code and response headers
|
587
|
-
def repositories_versions_list_with_http_info(repository_href, opts = {})
|
588
|
-
if @api_client.config.debugging
|
589
|
-
@api_client.config.logger.debug 'Calling API: RepositoriesApi.repositories_versions_list ...'
|
590
|
-
end
|
591
|
-
# verify the required parameter 'repository_href' is set
|
592
|
-
if @api_client.config.client_side_validation && repository_href.nil?
|
593
|
-
fail ArgumentError, "Missing the required parameter 'repository_href' when calling RepositoriesApi.repositories_versions_list"
|
594
|
-
end
|
595
|
-
# resource path
|
596
|
-
local_var_path = '{repository_href}versions/'.sub('{' + 'repository_href' + '}', repository_href.to_s)
|
597
|
-
|
598
|
-
# query parameters
|
599
|
-
query_params = opts[:query_params] || {}
|
600
|
-
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
601
|
-
query_params[:'number'] = opts[:'number'] if !opts[:'number'].nil?
|
602
|
-
query_params[:'number__lt'] = opts[:'number__lt'] if !opts[:'number__lt'].nil?
|
603
|
-
query_params[:'number__lte'] = opts[:'number__lte'] if !opts[:'number__lte'].nil?
|
604
|
-
query_params[:'number__gt'] = opts[:'number__gt'] if !opts[:'number__gt'].nil?
|
605
|
-
query_params[:'number__gte'] = opts[:'number__gte'] if !opts[:'number__gte'].nil?
|
606
|
-
query_params[:'number__range'] = opts[:'number__range'] if !opts[:'number__range'].nil?
|
607
|
-
query_params[:'_created__lt'] = opts[:'_created__lt'] if !opts[:'_created__lt'].nil?
|
608
|
-
query_params[:'_created__lte'] = opts[:'_created__lte'] if !opts[:'_created__lte'].nil?
|
609
|
-
query_params[:'_created__gt'] = opts[:'_created__gt'] if !opts[:'_created__gt'].nil?
|
610
|
-
query_params[:'_created__gte'] = opts[:'_created__gte'] if !opts[:'_created__gte'].nil?
|
611
|
-
query_params[:'_created__range'] = opts[:'_created__range'] if !opts[:'_created__range'].nil?
|
612
|
-
query_params[:'content'] = opts[:'content'] if !opts[:'content'].nil?
|
613
|
-
query_params[:'_created'] = opts[:'_created'] if !opts[:'_created'].nil?
|
614
|
-
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
615
|
-
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
616
|
-
|
617
|
-
# header parameters
|
618
|
-
header_params = opts[:header_params] || {}
|
619
|
-
# HTTP header 'Accept' (if needed)
|
620
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
621
|
-
|
622
|
-
# form parameters
|
623
|
-
form_params = opts[:form_params] || {}
|
624
|
-
|
625
|
-
# http body (model)
|
626
|
-
post_body = opts[:body]
|
627
|
-
|
628
|
-
# return_type
|
629
|
-
return_type = opts[:return_type] || 'InlineResponse2002'
|
630
|
-
|
631
|
-
# auth_names
|
632
|
-
auth_names = opts[:auth_names] || ['Basic']
|
633
|
-
|
634
|
-
new_options = opts.merge(
|
635
|
-
:header_params => header_params,
|
636
|
-
:query_params => query_params,
|
637
|
-
:form_params => form_params,
|
638
|
-
:body => post_body,
|
639
|
-
:auth_names => auth_names,
|
640
|
-
:return_type => return_type
|
641
|
-
)
|
642
|
-
|
643
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
644
|
-
if @api_client.config.debugging
|
645
|
-
@api_client.config.logger.debug "API called: RepositoriesApi#repositories_versions_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
646
|
-
end
|
647
|
-
return data, status_code, headers
|
648
|
-
end
|
649
|
-
|
650
|
-
# Inspect a repository version
|
651
|
-
# @param repository_version_href [String] URI of Repository Version. e.g.: /pulp/api/v3/repositories/1/versions/1/
|
652
|
-
# @param [Hash] opts the optional parameters
|
653
|
-
# @return [RepositoryVersion]
|
654
|
-
def repositories_versions_read(repository_version_href, opts = {})
|
655
|
-
data, _status_code, _headers = repositories_versions_read_with_http_info(repository_version_href, opts)
|
656
|
-
data
|
657
|
-
end
|
658
|
-
|
659
|
-
# Inspect a repository version
|
660
|
-
# @param repository_version_href [String] URI of Repository Version. e.g.: /pulp/api/v3/repositories/1/versions/1/
|
661
|
-
# @param [Hash] opts the optional parameters
|
662
|
-
# @return [Array<(RepositoryVersion, Integer, Hash)>] RepositoryVersion data, response status code and response headers
|
663
|
-
def repositories_versions_read_with_http_info(repository_version_href, opts = {})
|
664
|
-
if @api_client.config.debugging
|
665
|
-
@api_client.config.logger.debug 'Calling API: RepositoriesApi.repositories_versions_read ...'
|
666
|
-
end
|
667
|
-
# verify the required parameter 'repository_version_href' is set
|
668
|
-
if @api_client.config.client_side_validation && repository_version_href.nil?
|
669
|
-
fail ArgumentError, "Missing the required parameter 'repository_version_href' when calling RepositoriesApi.repositories_versions_read"
|
670
|
-
end
|
671
|
-
# resource path
|
672
|
-
local_var_path = '{repository_version_href}'.sub('{' + 'repository_version_href' + '}', repository_version_href.to_s)
|
673
|
-
|
674
|
-
# query parameters
|
675
|
-
query_params = opts[:query_params] || {}
|
676
|
-
|
677
|
-
# header parameters
|
678
|
-
header_params = opts[:header_params] || {}
|
679
|
-
# HTTP header 'Accept' (if needed)
|
680
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
681
|
-
|
682
|
-
# form parameters
|
683
|
-
form_params = opts[:form_params] || {}
|
684
|
-
|
685
|
-
# http body (model)
|
686
|
-
post_body = opts[:body]
|
687
|
-
|
688
|
-
# return_type
|
689
|
-
return_type = opts[:return_type] || 'RepositoryVersion'
|
690
|
-
|
691
|
-
# auth_names
|
692
|
-
auth_names = opts[:auth_names] || ['Basic']
|
693
|
-
|
694
|
-
new_options = opts.merge(
|
695
|
-
:header_params => header_params,
|
696
|
-
:query_params => query_params,
|
697
|
-
:form_params => form_params,
|
698
|
-
:body => post_body,
|
699
|
-
:auth_names => auth_names,
|
700
|
-
:return_type => return_type
|
701
|
-
)
|
702
|
-
|
703
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
704
|
-
if @api_client.config.debugging
|
705
|
-
@api_client.config.logger.debug "API called: RepositoriesApi#repositories_versions_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
405
|
+
@api_client.config.logger.debug "API called: RepositoriesApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
706
406
|
end
|
707
407
|
return data, status_code, headers
|
708
408
|
end
|