zest 0.0.2 → 0.0.3
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 +5 -5
- data/README.md +16 -23
- data/docs/Artifact.md +1 -0
- data/docs/Distribution.md +3 -2
- data/docs/FileContent.md +1 -0
- data/docs/FilePublisher.md +1 -1
- data/docs/InlineResponse2009.md +1 -1
- data/docs/Publication.md +1 -2
- data/docs/PulpApi.md +212 -75
- data/docs/RepositorySyncURL.md +1 -1
- data/docs/RepositoryVersion.md +1 -6
- data/docs/Task.md +0 -1
- data/docs/Upload.md +11 -0
- data/docs/Worker.md +1 -1
- data/lib/zest.rb +1 -2
- data/lib/zest/api/pulp_api.rb +269 -125
- data/lib/zest/configuration.rb +1 -1
- data/lib/zest/models/artifact.rb +13 -4
- data/lib/zest/models/distribution.rb +34 -24
- data/lib/zest/models/file_content.rb +35 -1
- data/lib/zest/models/file_publisher.rb +8 -8
- data/lib/zest/models/inline_response_200_9.rb +1 -1
- data/lib/zest/models/publication.rb +8 -23
- data/lib/zest/models/repository_sync_url.rb +1 -1
- data/lib/zest/models/repository_version.rb +5 -55
- data/lib/zest/models/task.rb +1 -11
- data/lib/zest/models/{inline_response_200_10.rb → upload.rb} +47 -34
- data/lib/zest/models/worker.rb +10 -10
- data/lib/zest/version.rb +1 -1
- data/spec/api/pulp_api_spec.rb +60 -33
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/artifact_spec.rb +6 -0
- data/spec/models/distribution_spec.rb +12 -6
- data/spec/models/file_content_spec.rb +6 -0
- data/spec/models/file_publisher_spec.rb +1 -1
- data/spec/models/publication_spec.rb +1 -7
- data/spec/models/repository_version_spec.rb +0 -30
- data/spec/models/task_spec.rb +0 -6
- data/spec/models/{user_spec.rb → upload_spec.rb} +9 -9
- data/spec/models/worker_spec.rb +2 -2
- data/zest.gemspec +1 -1
- metadata +62 -66
- data/docs/InlineResponse20010.md +0 -11
- data/docs/User.md +0 -11
- data/lib/zest/models/user.rb +0 -284
- data/spec/models/inline_response_200_10_spec.rb +0 -60
data/docs/RepositorySyncURL.md
CHANGED
@@ -4,6 +4,6 @@
|
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
6
|
**repository** | **String** | A URI of the repository to be synchronized. |
|
7
|
-
**mirror** | **BOOLEAN** | The synchronization mode, True for \"mirror\" and False for \"additive\" mode. | [optional] [default to
|
7
|
+
**mirror** | **BOOLEAN** | The synchronization mode, True for \"mirror\" and False for \"additive\" mode. | [optional] [default to false]
|
8
8
|
|
9
9
|
|
data/docs/RepositoryVersion.md
CHANGED
@@ -7,11 +7,6 @@ Name | Type | Description | Notes
|
|
7
7
|
**_created** | **DateTime** | Timestamp of creation. | [optional]
|
8
8
|
**number** | **Integer** | | [optional]
|
9
9
|
**base_version** | **String** | A repository version whose content was used as the initial set of content for this repository version | [optional]
|
10
|
-
**
|
11
|
-
**content_added_hrefs** | **String** | A mapping of the types of content added in this version, and the HREF to view them. | [optional]
|
12
|
-
**content_removed_hrefs** | **String** | A mapping of the types of content removed from this version, and the HREF to view them. | [optional]
|
13
|
-
**content_summary** | **String** | A list of counts of each type of content in this version. | [optional]
|
14
|
-
**content_added_summary** | **String** | A list of counts of each type of content added in this version. | [optional]
|
15
|
-
**content_removed_summary** | **String** | A list of counts of each type of content removed in this version. | [optional]
|
10
|
+
**content_summary** | **String** | Various count summaries of the content in the version and the HREF to view them. | [optional]
|
16
11
|
|
17
12
|
|
data/docs/Task.md
CHANGED
@@ -5,7 +5,6 @@ Name | Type | Description | Notes
|
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
6
|
**_href** | **String** | | [optional]
|
7
7
|
**_created** | **DateTime** | Timestamp of creation. | [optional]
|
8
|
-
**job_id** | **String** | ID of the job in rq. | [optional]
|
9
8
|
**state** | **String** | The current state of the task. The possible values include: 'waiting', 'skipped', 'running', 'completed', 'failed' and 'canceled'. | [optional]
|
10
9
|
**name** | **String** | The name of task. |
|
11
10
|
**started_at** | **DateTime** | Timestamp of the when this task started execution. | [optional]
|
data/docs/Upload.md
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
# Zest::Upload
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**_href** | **String** | | [optional]
|
7
|
+
**file** | **String** | | [optional]
|
8
|
+
**offset** | **Integer** | | [optional]
|
9
|
+
**expires_at** | **String** | | [optional]
|
10
|
+
|
11
|
+
|
data/docs/Worker.md
CHANGED
@@ -3,8 +3,8 @@
|
|
3
3
|
## Properties
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
|
-
**_href** | **String** | | [optional]
|
7
6
|
**_created** | **DateTime** | Timestamp of creation. | [optional]
|
7
|
+
**_href** | **String** | | [optional]
|
8
8
|
**name** | **String** | The name of the worker. | [optional]
|
9
9
|
**last_heartbeat** | **DateTime** | Timestamp of the last time the worker talked to the service. | [optional]
|
10
10
|
**online** | **BOOLEAN** | True if the worker is considered online, otherwise False | [optional]
|
data/lib/zest.rb
CHANGED
@@ -25,7 +25,6 @@ require 'zest/models/file_publisher'
|
|
25
25
|
require 'zest/models/file_remote'
|
26
26
|
require 'zest/models/inline_response_200'
|
27
27
|
require 'zest/models/inline_response_200_1'
|
28
|
-
require 'zest/models/inline_response_200_10'
|
29
28
|
require 'zest/models/inline_response_200_2'
|
30
29
|
require 'zest/models/inline_response_200_3'
|
31
30
|
require 'zest/models/inline_response_200_4'
|
@@ -42,7 +41,7 @@ require 'zest/models/repository_sync_url'
|
|
42
41
|
require 'zest/models/repository_version'
|
43
42
|
require 'zest/models/repository_version_create'
|
44
43
|
require 'zest/models/task'
|
45
|
-
require 'zest/models/
|
44
|
+
require 'zest/models/upload'
|
46
45
|
require 'zest/models/worker'
|
47
46
|
|
48
47
|
# APIs
|
data/lib/zest/api/pulp_api.rb
CHANGED
@@ -22,40 +22,26 @@ module Zest
|
|
22
22
|
|
23
23
|
#
|
24
24
|
#
|
25
|
-
# @param
|
26
|
-
# @param [Hash] opts the optional parameters
|
27
|
-
# @option opts [Integer] :size The size of the file in bytes.
|
28
|
-
# @option opts [String] :md5 The MD5 checksum of the file if available.
|
29
|
-
# @option opts [String] :sha1 The SHA-1 checksum of the file if available.
|
30
|
-
# @option opts [String] :sha224 The SHA-224 checksum of the file if available.
|
31
|
-
# @option opts [String] :sha256 The SHA-256 checksum of the file if available.
|
32
|
-
# @option opts [String] :sha384 The SHA-384 checksum of the file if available.
|
33
|
-
# @option opts [String] :sha512 The SHA-512 checksum of the file if available.
|
25
|
+
# @param data
|
26
|
+
# @param [Hash] opts the optional parameters
|
34
27
|
# @return [Artifact]
|
35
|
-
def artifacts_create(
|
36
|
-
data, _status_code, _headers = artifacts_create_with_http_info(
|
28
|
+
def artifacts_create(data, opts = {})
|
29
|
+
data, _status_code, _headers = artifacts_create_with_http_info(data, opts)
|
37
30
|
return data
|
38
31
|
end
|
39
32
|
|
40
33
|
#
|
41
34
|
#
|
42
|
-
# @param
|
35
|
+
# @param data
|
43
36
|
# @param [Hash] opts the optional parameters
|
44
|
-
# @option opts [Integer] :size The size of the file in bytes.
|
45
|
-
# @option opts [String] :md5 The MD5 checksum of the file if available.
|
46
|
-
# @option opts [String] :sha1 The SHA-1 checksum of the file if available.
|
47
|
-
# @option opts [String] :sha224 The SHA-224 checksum of the file if available.
|
48
|
-
# @option opts [String] :sha256 The SHA-256 checksum of the file if available.
|
49
|
-
# @option opts [String] :sha384 The SHA-384 checksum of the file if available.
|
50
|
-
# @option opts [String] :sha512 The SHA-512 checksum of the file if available.
|
51
37
|
# @return [Array<(Artifact, Fixnum, Hash)>] Artifact data, response status code and response headers
|
52
|
-
def artifacts_create_with_http_info(
|
38
|
+
def artifacts_create_with_http_info(data, opts = {})
|
53
39
|
if @api_client.config.debugging
|
54
40
|
@api_client.config.logger.debug "Calling API: PulpApi.artifacts_create ..."
|
55
41
|
end
|
56
|
-
# verify the required parameter '
|
57
|
-
if @api_client.config.client_side_validation &&
|
58
|
-
fail ArgumentError, "Missing the required parameter '
|
42
|
+
# verify the required parameter 'data' is set
|
43
|
+
if @api_client.config.client_side_validation && data.nil?
|
44
|
+
fail ArgumentError, "Missing the required parameter 'data' when calling PulpApi.artifacts_create"
|
59
45
|
end
|
60
46
|
# resource path
|
61
47
|
local_var_path = "/pulp/api/v3/artifacts/"
|
@@ -68,21 +54,13 @@ module Zest
|
|
68
54
|
# HTTP header 'Accept' (if needed)
|
69
55
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
70
56
|
# HTTP header 'Content-Type'
|
71
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['
|
57
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
72
58
|
|
73
59
|
# form parameters
|
74
60
|
form_params = {}
|
75
|
-
form_params["file"] = file
|
76
|
-
form_params["size"] = opts[:'size'] if !opts[:'size'].nil?
|
77
|
-
form_params["md5"] = opts[:'md5'] if !opts[:'md5'].nil?
|
78
|
-
form_params["sha1"] = opts[:'sha1'] if !opts[:'sha1'].nil?
|
79
|
-
form_params["sha224"] = opts[:'sha224'] if !opts[:'sha224'].nil?
|
80
|
-
form_params["sha256"] = opts[:'sha256'] if !opts[:'sha256'].nil?
|
81
|
-
form_params["sha384"] = opts[:'sha384'] if !opts[:'sha384'].nil?
|
82
|
-
form_params["sha512"] = opts[:'sha512'] if !opts[:'sha512'].nil?
|
83
61
|
|
84
62
|
# http body (model)
|
85
|
-
post_body =
|
63
|
+
post_body = @api_client.object_to_http_body(data)
|
86
64
|
auth_names = ['Basic']
|
87
65
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
88
66
|
:header_params => header_params,
|
@@ -131,7 +109,7 @@ module Zest
|
|
131
109
|
# HTTP header 'Accept' (if needed)
|
132
110
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
133
111
|
# HTTP header 'Content-Type'
|
134
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['
|
112
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
135
113
|
|
136
114
|
# form parameters
|
137
115
|
form_params = {}
|
@@ -203,7 +181,7 @@ module Zest
|
|
203
181
|
# HTTP header 'Accept' (if needed)
|
204
182
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
205
183
|
# HTTP header 'Content-Type'
|
206
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['
|
184
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
207
185
|
|
208
186
|
# form parameters
|
209
187
|
form_params = {}
|
@@ -258,7 +236,7 @@ module Zest
|
|
258
236
|
# HTTP header 'Accept' (if needed)
|
259
237
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
260
238
|
# HTTP header 'Content-Type'
|
261
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['
|
239
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
262
240
|
|
263
241
|
# form parameters
|
264
242
|
form_params = {}
|
@@ -460,7 +438,7 @@ module Zest
|
|
460
438
|
end
|
461
439
|
|
462
440
|
#
|
463
|
-
#
|
441
|
+
# Trigger an asynchronous create task
|
464
442
|
# @param data
|
465
443
|
# @param [Hash] opts the optional parameters
|
466
444
|
# @return [Distribution]
|
@@ -470,7 +448,7 @@ module Zest
|
|
470
448
|
end
|
471
449
|
|
472
450
|
#
|
473
|
-
#
|
451
|
+
# Trigger an asynchronous create task
|
474
452
|
# @param data
|
475
453
|
# @param [Hash] opts the optional parameters
|
476
454
|
# @return [Array<(Distribution, Fixnum, Hash)>] Distribution data, response status code and response headers
|
@@ -515,7 +493,7 @@ module Zest
|
|
515
493
|
end
|
516
494
|
|
517
495
|
#
|
518
|
-
#
|
496
|
+
# Provides read and list methods and also provides asynchronous CUD methods to dispatch tasks with reservation that lock all Distributions preventing race conditions during base_path checking.
|
519
497
|
# @param distribution_href URI of Distribution. e.g.: /pulp/api/v3/distributions/1/
|
520
498
|
# @param [Hash] opts the optional parameters
|
521
499
|
# @return [nil]
|
@@ -525,7 +503,7 @@ module Zest
|
|
525
503
|
end
|
526
504
|
|
527
505
|
#
|
528
|
-
#
|
506
|
+
# Provides read and list methods and also provides asynchronous CUD methods to dispatch tasks with reservation that lock all Distributions preventing race conditions during base_path checking.
|
529
507
|
# @param distribution_href URI of Distribution. e.g.: /pulp/api/v3/distributions/1/
|
530
508
|
# @param [Hash] opts the optional parameters
|
531
509
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
@@ -569,7 +547,7 @@ module Zest
|
|
569
547
|
end
|
570
548
|
|
571
549
|
#
|
572
|
-
#
|
550
|
+
# Provides read and list methods and also provides asynchronous CUD methods to dispatch tasks with reservation that lock all Distributions preventing race conditions during base_path checking.
|
573
551
|
# @param [Hash] opts the optional parameters
|
574
552
|
# @option opts [String] :name
|
575
553
|
# @option opts [String] :name__in Filter results where name is in a comma-separated list of values
|
@@ -586,7 +564,7 @@ module Zest
|
|
586
564
|
end
|
587
565
|
|
588
566
|
#
|
589
|
-
#
|
567
|
+
# Provides read and list methods and also provides asynchronous CUD methods to dispatch tasks with reservation that lock all Distributions preventing race conditions during base_path checking.
|
590
568
|
# @param [Hash] opts the optional parameters
|
591
569
|
# @option opts [String] :name
|
592
570
|
# @option opts [String] :name__in Filter results where name is in a comma-separated list of values
|
@@ -642,7 +620,7 @@ module Zest
|
|
642
620
|
end
|
643
621
|
|
644
622
|
#
|
645
|
-
#
|
623
|
+
# Trigger an asynchronous partial update task
|
646
624
|
# @param distribution_href URI of Distribution. e.g.: /pulp/api/v3/distributions/1/
|
647
625
|
# @param data
|
648
626
|
# @param [Hash] opts the optional parameters
|
@@ -653,7 +631,7 @@ module Zest
|
|
653
631
|
end
|
654
632
|
|
655
633
|
#
|
656
|
-
#
|
634
|
+
# Trigger an asynchronous partial update task
|
657
635
|
# @param distribution_href URI of Distribution. e.g.: /pulp/api/v3/distributions/1/
|
658
636
|
# @param data
|
659
637
|
# @param [Hash] opts the optional parameters
|
@@ -703,7 +681,7 @@ module Zest
|
|
703
681
|
end
|
704
682
|
|
705
683
|
#
|
706
|
-
#
|
684
|
+
# Provides read and list methods and also provides asynchronous CUD methods to dispatch tasks with reservation that lock all Distributions preventing race conditions during base_path checking.
|
707
685
|
# @param distribution_href URI of Distribution. e.g.: /pulp/api/v3/distributions/1/
|
708
686
|
# @param [Hash] opts the optional parameters
|
709
687
|
# @return [Distribution]
|
@@ -713,7 +691,7 @@ module Zest
|
|
713
691
|
end
|
714
692
|
|
715
693
|
#
|
716
|
-
#
|
694
|
+
# Provides read and list methods and also provides asynchronous CUD methods to dispatch tasks with reservation that lock all Distributions preventing race conditions during base_path checking.
|
717
695
|
# @param distribution_href URI of Distribution. e.g.: /pulp/api/v3/distributions/1/
|
718
696
|
# @param [Hash] opts the optional parameters
|
719
697
|
# @return [Array<(Distribution, Fixnum, Hash)>] Distribution data, response status code and response headers
|
@@ -758,7 +736,7 @@ module Zest
|
|
758
736
|
end
|
759
737
|
|
760
738
|
#
|
761
|
-
#
|
739
|
+
# Trigger an asynchronous update task
|
762
740
|
# @param distribution_href URI of Distribution. e.g.: /pulp/api/v3/distributions/1/
|
763
741
|
# @param data
|
764
742
|
# @param [Hash] opts the optional parameters
|
@@ -769,7 +747,7 @@ module Zest
|
|
769
747
|
end
|
770
748
|
|
771
749
|
#
|
772
|
-
#
|
750
|
+
# Trigger an asynchronous update task
|
773
751
|
# @param distribution_href URI of Distribution. e.g.: /pulp/api/v3/distributions/1/
|
774
752
|
# @param data
|
775
753
|
# @param [Hash] opts the optional parameters
|
@@ -2237,35 +2215,35 @@ module Zest
|
|
2237
2215
|
|
2238
2216
|
#
|
2239
2217
|
# Trigger an asynchronous task to create a new repository version.
|
2240
|
-
# @param
|
2218
|
+
# @param repository_href URI of Repository. e.g.: /pulp/api/v3/repositories/1/
|
2241
2219
|
# @param data
|
2242
2220
|
# @param [Hash] opts the optional parameters
|
2243
2221
|
# @return [AsyncOperationResponse]
|
2244
|
-
def repositories_versions_create(
|
2245
|
-
data, _status_code, _headers = repositories_versions_create_with_http_info(
|
2222
|
+
def repositories_versions_create(repository_href, data, opts = {})
|
2223
|
+
data, _status_code, _headers = repositories_versions_create_with_http_info(repository_href, data, opts)
|
2246
2224
|
return data
|
2247
2225
|
end
|
2248
2226
|
|
2249
2227
|
#
|
2250
2228
|
# Trigger an asynchronous task to create a new repository version.
|
2251
|
-
# @param
|
2229
|
+
# @param repository_href URI of Repository. e.g.: /pulp/api/v3/repositories/1/
|
2252
2230
|
# @param data
|
2253
2231
|
# @param [Hash] opts the optional parameters
|
2254
2232
|
# @return [Array<(AsyncOperationResponse, Fixnum, Hash)>] AsyncOperationResponse data, response status code and response headers
|
2255
|
-
def repositories_versions_create_with_http_info(
|
2233
|
+
def repositories_versions_create_with_http_info(repository_href, data, opts = {})
|
2256
2234
|
if @api_client.config.debugging
|
2257
2235
|
@api_client.config.logger.debug "Calling API: PulpApi.repositories_versions_create ..."
|
2258
2236
|
end
|
2259
|
-
# verify the required parameter '
|
2260
|
-
if @api_client.config.client_side_validation &&
|
2261
|
-
fail ArgumentError, "Missing the required parameter '
|
2237
|
+
# verify the required parameter 'repository_href' is set
|
2238
|
+
if @api_client.config.client_side_validation && repository_href.nil?
|
2239
|
+
fail ArgumentError, "Missing the required parameter 'repository_href' when calling PulpApi.repositories_versions_create"
|
2262
2240
|
end
|
2263
2241
|
# verify the required parameter 'data' is set
|
2264
2242
|
if @api_client.config.client_side_validation && data.nil?
|
2265
2243
|
fail ArgumentError, "Missing the required parameter 'data' when calling PulpApi.repositories_versions_create"
|
2266
2244
|
end
|
2267
2245
|
# resource path
|
2268
|
-
local_var_path = "
|
2246
|
+
local_var_path = "{repository_href}versions/".sub('{' + 'repository_href' + '}', repository_href.to_s)
|
2269
2247
|
|
2270
2248
|
# query parameters
|
2271
2249
|
query_params = {}
|
@@ -2353,7 +2331,7 @@ module Zest
|
|
2353
2331
|
|
2354
2332
|
#
|
2355
2333
|
#
|
2356
|
-
# @param
|
2334
|
+
# @param repository_href URI of Repository. e.g.: /pulp/api/v3/repositories/1/
|
2357
2335
|
# @param [Hash] opts the optional parameters
|
2358
2336
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
2359
2337
|
# @option opts [Float] :number
|
@@ -2372,14 +2350,14 @@ module Zest
|
|
2372
2350
|
# @option opts [Integer] :page A page number within the paginated result set.
|
2373
2351
|
# @option opts [Integer] :page_size Number of results to return per page.
|
2374
2352
|
# @return [InlineResponse2007]
|
2375
|
-
def repositories_versions_list(
|
2376
|
-
data, _status_code, _headers = repositories_versions_list_with_http_info(
|
2353
|
+
def repositories_versions_list(repository_href, opts = {})
|
2354
|
+
data, _status_code, _headers = repositories_versions_list_with_http_info(repository_href, opts)
|
2377
2355
|
return data
|
2378
2356
|
end
|
2379
2357
|
|
2380
2358
|
#
|
2381
2359
|
#
|
2382
|
-
# @param
|
2360
|
+
# @param repository_href URI of Repository. e.g.: /pulp/api/v3/repositories/1/
|
2383
2361
|
# @param [Hash] opts the optional parameters
|
2384
2362
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
2385
2363
|
# @option opts [Float] :number
|
@@ -2398,16 +2376,16 @@ module Zest
|
|
2398
2376
|
# @option opts [Integer] :page A page number within the paginated result set.
|
2399
2377
|
# @option opts [Integer] :page_size Number of results to return per page.
|
2400
2378
|
# @return [Array<(InlineResponse2007, Fixnum, Hash)>] InlineResponse2007 data, response status code and response headers
|
2401
|
-
def repositories_versions_list_with_http_info(
|
2379
|
+
def repositories_versions_list_with_http_info(repository_href, opts = {})
|
2402
2380
|
if @api_client.config.debugging
|
2403
2381
|
@api_client.config.logger.debug "Calling API: PulpApi.repositories_versions_list ..."
|
2404
2382
|
end
|
2405
|
-
# verify the required parameter '
|
2406
|
-
if @api_client.config.client_side_validation &&
|
2407
|
-
fail ArgumentError, "Missing the required parameter '
|
2383
|
+
# verify the required parameter 'repository_href' is set
|
2384
|
+
if @api_client.config.client_side_validation && repository_href.nil?
|
2385
|
+
fail ArgumentError, "Missing the required parameter 'repository_href' when calling PulpApi.repositories_versions_list"
|
2408
2386
|
end
|
2409
2387
|
# resource path
|
2410
|
-
local_var_path = "
|
2388
|
+
local_var_path = "{repository_href}versions/".sub('{' + 'repository_href' + '}', repository_href.to_s)
|
2411
2389
|
|
2412
2390
|
# query parameters
|
2413
2391
|
query_params = {}
|
@@ -2965,30 +2943,91 @@ module Zest
|
|
2965
2943
|
end
|
2966
2944
|
|
2967
2945
|
#
|
2946
|
+
# Handle POST requests.
|
2947
|
+
# @param data
|
2948
|
+
# @param [Hash] opts the optional parameters
|
2949
|
+
# @return [Upload]
|
2950
|
+
def uploads_create(data, opts = {})
|
2951
|
+
data, _status_code, _headers = uploads_create_with_http_info(data, opts)
|
2952
|
+
return data
|
2953
|
+
end
|
2954
|
+
|
2968
2955
|
#
|
2969
|
-
#
|
2956
|
+
# Handle POST requests.
|
2957
|
+
# @param data
|
2970
2958
|
# @param [Hash] opts the optional parameters
|
2971
|
-
# @return [
|
2972
|
-
def
|
2973
|
-
|
2974
|
-
|
2959
|
+
# @return [Array<(Upload, Fixnum, Hash)>] Upload data, response status code and response headers
|
2960
|
+
def uploads_create_with_http_info(data, opts = {})
|
2961
|
+
if @api_client.config.debugging
|
2962
|
+
@api_client.config.logger.debug "Calling API: PulpApi.uploads_create ..."
|
2963
|
+
end
|
2964
|
+
# verify the required parameter 'data' is set
|
2965
|
+
if @api_client.config.client_side_validation && data.nil?
|
2966
|
+
fail ArgumentError, "Missing the required parameter 'data' when calling PulpApi.uploads_create"
|
2967
|
+
end
|
2968
|
+
# resource path
|
2969
|
+
local_var_path = "/pulp/api/v3/uploads/"
|
2970
|
+
|
2971
|
+
# query parameters
|
2972
|
+
query_params = {}
|
2973
|
+
|
2974
|
+
# header parameters
|
2975
|
+
header_params = {}
|
2976
|
+
# HTTP header 'Accept' (if needed)
|
2977
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2978
|
+
# HTTP header 'Content-Type'
|
2979
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
2980
|
+
|
2981
|
+
# form parameters
|
2982
|
+
form_params = {}
|
2983
|
+
|
2984
|
+
# http body (model)
|
2985
|
+
post_body = @api_client.object_to_http_body(data)
|
2986
|
+
auth_names = ['Basic']
|
2987
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
2988
|
+
:header_params => header_params,
|
2989
|
+
:query_params => query_params,
|
2990
|
+
:form_params => form_params,
|
2991
|
+
:body => post_body,
|
2992
|
+
:auth_names => auth_names,
|
2993
|
+
:return_type => 'Upload')
|
2994
|
+
if @api_client.config.debugging
|
2995
|
+
@api_client.config.logger.debug "API called: PulpApi#uploads_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2996
|
+
end
|
2997
|
+
return data, status_code, headers
|
2975
2998
|
end
|
2976
2999
|
|
2977
3000
|
#
|
3001
|
+
# Handle POST requests.
|
3002
|
+
# @param upload_href URI of Upload. e.g.: /pulp/api/v3/uploads/1/
|
3003
|
+
# @param data
|
3004
|
+
# @param [Hash] opts the optional parameters
|
3005
|
+
# @return [Upload]
|
3006
|
+
def uploads_create_0(upload_href, data, opts = {})
|
3007
|
+
data, _status_code, _headers = uploads_create_0_with_http_info(upload_href, data, opts)
|
3008
|
+
return data
|
3009
|
+
end
|
3010
|
+
|
2978
3011
|
#
|
2979
|
-
#
|
3012
|
+
# Handle POST requests.
|
3013
|
+
# @param upload_href URI of Upload. e.g.: /pulp/api/v3/uploads/1/
|
3014
|
+
# @param data
|
2980
3015
|
# @param [Hash] opts the optional parameters
|
2981
|
-
# @return [Array<(
|
2982
|
-
def
|
3016
|
+
# @return [Array<(Upload, Fixnum, Hash)>] Upload data, response status code and response headers
|
3017
|
+
def uploads_create_0_with_http_info(upload_href, data, opts = {})
|
2983
3018
|
if @api_client.config.debugging
|
2984
|
-
@api_client.config.logger.debug "Calling API: PulpApi.
|
3019
|
+
@api_client.config.logger.debug "Calling API: PulpApi.uploads_create_0 ..."
|
2985
3020
|
end
|
2986
|
-
# verify the required parameter '
|
2987
|
-
if @api_client.config.client_side_validation &&
|
2988
|
-
fail ArgumentError, "Missing the required parameter '
|
3021
|
+
# verify the required parameter 'upload_href' is set
|
3022
|
+
if @api_client.config.client_side_validation && upload_href.nil?
|
3023
|
+
fail ArgumentError, "Missing the required parameter 'upload_href' when calling PulpApi.uploads_create_0"
|
3024
|
+
end
|
3025
|
+
# verify the required parameter 'data' is set
|
3026
|
+
if @api_client.config.client_side_validation && data.nil?
|
3027
|
+
fail ArgumentError, "Missing the required parameter 'data' when calling PulpApi.uploads_create_0"
|
2989
3028
|
end
|
2990
3029
|
# resource path
|
2991
|
-
local_var_path = "{
|
3030
|
+
local_var_path = "{upload_href}".sub('{' + 'upload_href' + '}', upload_href.to_s)
|
2992
3031
|
|
2993
3032
|
# query parameters
|
2994
3033
|
query_params = {}
|
@@ -3004,54 +3043,43 @@ module Zest
|
|
3004
3043
|
form_params = {}
|
3005
3044
|
|
3006
3045
|
# http body (model)
|
3007
|
-
post_body =
|
3046
|
+
post_body = @api_client.object_to_http_body(data)
|
3008
3047
|
auth_names = ['Basic']
|
3009
|
-
data, status_code, headers = @api_client.call_api(:
|
3048
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
3010
3049
|
:header_params => header_params,
|
3011
3050
|
:query_params => query_params,
|
3012
3051
|
:form_params => form_params,
|
3013
3052
|
:body => post_body,
|
3014
|
-
:auth_names => auth_names
|
3053
|
+
:auth_names => auth_names,
|
3054
|
+
:return_type => 'Upload')
|
3015
3055
|
if @api_client.config.debugging
|
3016
|
-
@api_client.config.logger.debug "API called: PulpApi#
|
3056
|
+
@api_client.config.logger.debug "API called: PulpApi#uploads_create_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
3017
3057
|
end
|
3018
3058
|
return data, status_code, headers
|
3019
3059
|
end
|
3020
3060
|
|
3021
3061
|
#
|
3022
|
-
#
|
3062
|
+
# Handle GET requests.
|
3023
3063
|
# @param [Hash] opts the optional parameters
|
3024
|
-
# @
|
3025
|
-
|
3026
|
-
|
3027
|
-
# @option opts [Integer] :page_size Number of results to return per page.
|
3028
|
-
# @return [InlineResponse2009]
|
3029
|
-
def users_list(opts = {})
|
3030
|
-
data, _status_code, _headers = users_list_with_http_info(opts)
|
3064
|
+
# @return [Upload]
|
3065
|
+
def uploads_read(opts = {})
|
3066
|
+
data, _status_code, _headers = uploads_read_with_http_info(opts)
|
3031
3067
|
return data
|
3032
3068
|
end
|
3033
3069
|
|
3034
3070
|
#
|
3035
|
-
#
|
3071
|
+
# Handle GET requests.
|
3036
3072
|
# @param [Hash] opts the optional parameters
|
3037
|
-
# @
|
3038
|
-
|
3039
|
-
# @option opts [Integer] :page A page number within the paginated result set.
|
3040
|
-
# @option opts [Integer] :page_size Number of results to return per page.
|
3041
|
-
# @return [Array<(InlineResponse2009, Fixnum, Hash)>] InlineResponse2009 data, response status code and response headers
|
3042
|
-
def users_list_with_http_info(opts = {})
|
3073
|
+
# @return [Array<(Upload, Fixnum, Hash)>] Upload data, response status code and response headers
|
3074
|
+
def uploads_read_with_http_info(opts = {})
|
3043
3075
|
if @api_client.config.debugging
|
3044
|
-
@api_client.config.logger.debug "Calling API: PulpApi.
|
3076
|
+
@api_client.config.logger.debug "Calling API: PulpApi.uploads_read ..."
|
3045
3077
|
end
|
3046
3078
|
# resource path
|
3047
|
-
local_var_path = "/pulp/api/v3/
|
3079
|
+
local_var_path = "/pulp/api/v3/uploads/"
|
3048
3080
|
|
3049
3081
|
# query parameters
|
3050
3082
|
query_params = {}
|
3051
|
-
query_params[:'username'] = opts[:'username'] if !opts[:'username'].nil?
|
3052
|
-
query_params[:'username__in'] = opts[:'username__in'] if !opts[:'username__in'].nil?
|
3053
|
-
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
3054
|
-
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
3055
3083
|
|
3056
3084
|
# header parameters
|
3057
3085
|
header_params = {}
|
@@ -3072,38 +3100,38 @@ module Zest
|
|
3072
3100
|
:form_params => form_params,
|
3073
3101
|
:body => post_body,
|
3074
3102
|
:auth_names => auth_names,
|
3075
|
-
:return_type => '
|
3103
|
+
:return_type => 'Upload')
|
3076
3104
|
if @api_client.config.debugging
|
3077
|
-
@api_client.config.logger.debug "API called: PulpApi#
|
3105
|
+
@api_client.config.logger.debug "API called: PulpApi#uploads_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
3078
3106
|
end
|
3079
3107
|
return data, status_code, headers
|
3080
3108
|
end
|
3081
3109
|
|
3082
3110
|
#
|
3083
|
-
#
|
3084
|
-
# @param
|
3111
|
+
# Handle GET requests.
|
3112
|
+
# @param upload_href URI of Upload. e.g.: /pulp/api/v3/uploads/1/
|
3085
3113
|
# @param [Hash] opts the optional parameters
|
3086
|
-
# @return [
|
3087
|
-
def
|
3088
|
-
data, _status_code, _headers =
|
3114
|
+
# @return [Upload]
|
3115
|
+
def uploads_read_0(upload_href, opts = {})
|
3116
|
+
data, _status_code, _headers = uploads_read_0_with_http_info(upload_href, opts)
|
3089
3117
|
return data
|
3090
3118
|
end
|
3091
3119
|
|
3092
3120
|
#
|
3093
|
-
#
|
3094
|
-
# @param
|
3121
|
+
# Handle GET requests.
|
3122
|
+
# @param upload_href URI of Upload. e.g.: /pulp/api/v3/uploads/1/
|
3095
3123
|
# @param [Hash] opts the optional parameters
|
3096
|
-
# @return [Array<(
|
3097
|
-
def
|
3124
|
+
# @return [Array<(Upload, Fixnum, Hash)>] Upload data, response status code and response headers
|
3125
|
+
def uploads_read_0_with_http_info(upload_href, opts = {})
|
3098
3126
|
if @api_client.config.debugging
|
3099
|
-
@api_client.config.logger.debug "Calling API: PulpApi.
|
3127
|
+
@api_client.config.logger.debug "Calling API: PulpApi.uploads_read_0 ..."
|
3100
3128
|
end
|
3101
|
-
# verify the required parameter '
|
3102
|
-
if @api_client.config.client_side_validation &&
|
3103
|
-
fail ArgumentError, "Missing the required parameter '
|
3129
|
+
# verify the required parameter 'upload_href' is set
|
3130
|
+
if @api_client.config.client_side_validation && upload_href.nil?
|
3131
|
+
fail ArgumentError, "Missing the required parameter 'upload_href' when calling PulpApi.uploads_read_0"
|
3104
3132
|
end
|
3105
3133
|
# resource path
|
3106
|
-
local_var_path = "{
|
3134
|
+
local_var_path = "{upload_href}".sub('{' + 'upload_href' + '}', upload_href.to_s)
|
3107
3135
|
|
3108
3136
|
# query parameters
|
3109
3137
|
query_params = {}
|
@@ -3127,9 +3155,125 @@ module Zest
|
|
3127
3155
|
:form_params => form_params,
|
3128
3156
|
:body => post_body,
|
3129
3157
|
:auth_names => auth_names,
|
3130
|
-
:return_type => '
|
3158
|
+
:return_type => 'Upload')
|
3131
3159
|
if @api_client.config.debugging
|
3132
|
-
@api_client.config.logger.debug "API called: PulpApi#
|
3160
|
+
@api_client.config.logger.debug "API called: PulpApi#uploads_read_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
3161
|
+
end
|
3162
|
+
return data, status_code, headers
|
3163
|
+
end
|
3164
|
+
|
3165
|
+
#
|
3166
|
+
# Handle PUT requests.
|
3167
|
+
# @param data
|
3168
|
+
# @param [Hash] opts the optional parameters
|
3169
|
+
# @return [Upload]
|
3170
|
+
def uploads_update(data, opts = {})
|
3171
|
+
data, _status_code, _headers = uploads_update_with_http_info(data, opts)
|
3172
|
+
return data
|
3173
|
+
end
|
3174
|
+
|
3175
|
+
#
|
3176
|
+
# Handle PUT requests.
|
3177
|
+
# @param data
|
3178
|
+
# @param [Hash] opts the optional parameters
|
3179
|
+
# @return [Array<(Upload, Fixnum, Hash)>] Upload data, response status code and response headers
|
3180
|
+
def uploads_update_with_http_info(data, opts = {})
|
3181
|
+
if @api_client.config.debugging
|
3182
|
+
@api_client.config.logger.debug "Calling API: PulpApi.uploads_update ..."
|
3183
|
+
end
|
3184
|
+
# verify the required parameter 'data' is set
|
3185
|
+
if @api_client.config.client_side_validation && data.nil?
|
3186
|
+
fail ArgumentError, "Missing the required parameter 'data' when calling PulpApi.uploads_update"
|
3187
|
+
end
|
3188
|
+
# resource path
|
3189
|
+
local_var_path = "/pulp/api/v3/uploads/"
|
3190
|
+
|
3191
|
+
# query parameters
|
3192
|
+
query_params = {}
|
3193
|
+
|
3194
|
+
# header parameters
|
3195
|
+
header_params = {}
|
3196
|
+
# HTTP header 'Accept' (if needed)
|
3197
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
3198
|
+
# HTTP header 'Content-Type'
|
3199
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
3200
|
+
|
3201
|
+
# form parameters
|
3202
|
+
form_params = {}
|
3203
|
+
|
3204
|
+
# http body (model)
|
3205
|
+
post_body = @api_client.object_to_http_body(data)
|
3206
|
+
auth_names = ['Basic']
|
3207
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
3208
|
+
:header_params => header_params,
|
3209
|
+
:query_params => query_params,
|
3210
|
+
:form_params => form_params,
|
3211
|
+
:body => post_body,
|
3212
|
+
:auth_names => auth_names,
|
3213
|
+
:return_type => 'Upload')
|
3214
|
+
if @api_client.config.debugging
|
3215
|
+
@api_client.config.logger.debug "API called: PulpApi#uploads_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
3216
|
+
end
|
3217
|
+
return data, status_code, headers
|
3218
|
+
end
|
3219
|
+
|
3220
|
+
#
|
3221
|
+
# Handle PUT requests.
|
3222
|
+
# @param upload_href URI of Upload. e.g.: /pulp/api/v3/uploads/1/
|
3223
|
+
# @param data
|
3224
|
+
# @param [Hash] opts the optional parameters
|
3225
|
+
# @return [Upload]
|
3226
|
+
def uploads_update_0(upload_href, data, opts = {})
|
3227
|
+
data, _status_code, _headers = uploads_update_0_with_http_info(upload_href, data, opts)
|
3228
|
+
return data
|
3229
|
+
end
|
3230
|
+
|
3231
|
+
#
|
3232
|
+
# Handle PUT requests.
|
3233
|
+
# @param upload_href URI of Upload. e.g.: /pulp/api/v3/uploads/1/
|
3234
|
+
# @param data
|
3235
|
+
# @param [Hash] opts the optional parameters
|
3236
|
+
# @return [Array<(Upload, Fixnum, Hash)>] Upload data, response status code and response headers
|
3237
|
+
def uploads_update_0_with_http_info(upload_href, data, opts = {})
|
3238
|
+
if @api_client.config.debugging
|
3239
|
+
@api_client.config.logger.debug "Calling API: PulpApi.uploads_update_0 ..."
|
3240
|
+
end
|
3241
|
+
# verify the required parameter 'upload_href' is set
|
3242
|
+
if @api_client.config.client_side_validation && upload_href.nil?
|
3243
|
+
fail ArgumentError, "Missing the required parameter 'upload_href' when calling PulpApi.uploads_update_0"
|
3244
|
+
end
|
3245
|
+
# verify the required parameter 'data' is set
|
3246
|
+
if @api_client.config.client_side_validation && data.nil?
|
3247
|
+
fail ArgumentError, "Missing the required parameter 'data' when calling PulpApi.uploads_update_0"
|
3248
|
+
end
|
3249
|
+
# resource path
|
3250
|
+
local_var_path = "{upload_href}".sub('{' + 'upload_href' + '}', upload_href.to_s)
|
3251
|
+
|
3252
|
+
# query parameters
|
3253
|
+
query_params = {}
|
3254
|
+
|
3255
|
+
# header parameters
|
3256
|
+
header_params = {}
|
3257
|
+
# HTTP header 'Accept' (if needed)
|
3258
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
3259
|
+
# HTTP header 'Content-Type'
|
3260
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
3261
|
+
|
3262
|
+
# form parameters
|
3263
|
+
form_params = {}
|
3264
|
+
|
3265
|
+
# http body (model)
|
3266
|
+
post_body = @api_client.object_to_http_body(data)
|
3267
|
+
auth_names = ['Basic']
|
3268
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
3269
|
+
:header_params => header_params,
|
3270
|
+
:query_params => query_params,
|
3271
|
+
:form_params => form_params,
|
3272
|
+
:body => post_body,
|
3273
|
+
:auth_names => auth_names,
|
3274
|
+
:return_type => 'Upload')
|
3275
|
+
if @api_client.config.debugging
|
3276
|
+
@api_client.config.logger.debug "API called: PulpApi#uploads_update_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
3133
3277
|
end
|
3134
3278
|
return data, status_code, headers
|
3135
3279
|
end
|
@@ -3149,7 +3293,7 @@ module Zest
|
|
3149
3293
|
# @option opts [String] :last_heartbeat ISO 8601 formatted dates are supported
|
3150
3294
|
# @option opts [Integer] :page A page number within the paginated result set.
|
3151
3295
|
# @option opts [Integer] :page_size Number of results to return per page.
|
3152
|
-
# @return [
|
3296
|
+
# @return [InlineResponse2009]
|
3153
3297
|
def workers_list(opts = {})
|
3154
3298
|
data, _status_code, _headers = workers_list_with_http_info(opts)
|
3155
3299
|
return data
|
@@ -3170,7 +3314,7 @@ module Zest
|
|
3170
3314
|
# @option opts [String] :last_heartbeat ISO 8601 formatted dates are supported
|
3171
3315
|
# @option opts [Integer] :page A page number within the paginated result set.
|
3172
3316
|
# @option opts [Integer] :page_size Number of results to return per page.
|
3173
|
-
# @return [Array<(
|
3317
|
+
# @return [Array<(InlineResponse2009, Fixnum, Hash)>] InlineResponse2009 data, response status code and response headers
|
3174
3318
|
def workers_list_with_http_info(opts = {})
|
3175
3319
|
if @api_client.config.debugging
|
3176
3320
|
@api_client.config.logger.debug "Calling API: PulpApi.workers_list ..."
|
@@ -3212,7 +3356,7 @@ module Zest
|
|
3212
3356
|
:form_params => form_params,
|
3213
3357
|
:body => post_body,
|
3214
3358
|
:auth_names => auth_names,
|
3215
|
-
:return_type => '
|
3359
|
+
:return_type => 'InlineResponse2009')
|
3216
3360
|
if @api_client.config.debugging
|
3217
3361
|
@api_client.config.logger.debug "API called: PulpApi#workers_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
3218
3362
|
end
|