pulp_python_client 3.21.0 → 3.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +17 -5
- data/docs/ContentPackagesApi.md +6 -2
- data/docs/ContentProvenanceApi.md +428 -0
- data/docs/FiletypeEnum.md +15 -0
- data/docs/MetadataVersionEnum.md +15 -0
- data/docs/PaginatedpythonPackageProvenanceResponseList.md +24 -0
- data/docs/PatchedpythonPythonRemote.md +3 -1
- data/docs/ProtocolVersionEnum.md +15 -0
- data/docs/PypiLegacyApi.md +9 -1
- data/docs/PypiProvenanceApi.md +91 -0
- data/docs/PypiSimpleApi.md +9 -1
- data/docs/PythonPackageProvenanceResponse.md +34 -0
- data/docs/PythonPythonPackageContentResponse.md +3 -1
- data/docs/PythonPythonRemote.md +3 -1
- data/docs/PythonPythonRemoteResponse.md +3 -1
- data/lib/pulp_python_client/api/content_packages_api.rb +6 -0
- data/lib/pulp_python_client/api/content_provenance_api.rb +448 -0
- data/lib/pulp_python_client/api/pypi_legacy_api.rb +12 -0
- data/lib/pulp_python_client/api/pypi_provenance_api.rb +110 -0
- data/lib/pulp_python_client/api/pypi_simple_api.rb +12 -0
- data/lib/pulp_python_client/models/filetype_enum.rb +40 -0
- data/lib/pulp_python_client/models/metadata_version_enum.rb +46 -0
- data/lib/pulp_python_client/models/paginatedpython_package_provenance_response_list.rb +257 -0
- data/lib/pulp_python_client/models/patchedpython_python_remote.rb +16 -4
- data/lib/pulp_python_client/models/protocol_version_enum.rb +39 -0
- data/lib/pulp_python_client/models/python_package_provenance_response.rb +302 -0
- data/lib/pulp_python_client/models/python_python_package_content_response.rb +15 -5
- data/lib/pulp_python_client/models/python_python_remote.rb +16 -4
- data/lib/pulp_python_client/models/python_python_remote_response.rb +16 -4
- data/lib/pulp_python_client/version.rb +1 -1
- data/lib/pulp_python_client.rb +7 -0
- data/spec/api/content_packages_api_spec.rb +2 -0
- data/spec/api/content_provenance_api_spec.rb +123 -0
- data/spec/api/pypi_legacy_api_spec.rb +4 -0
- data/spec/api/pypi_provenance_api_spec.rb +53 -0
- data/spec/api/pypi_simple_api_spec.rb +4 -0
- data/spec/models/filetype_enum_spec.rb +30 -0
- data/spec/models/metadata_version_enum_spec.rb +30 -0
- data/spec/models/paginatedpython_package_provenance_response_list_spec.rb +54 -0
- data/spec/models/patchedpython_python_remote_spec.rb +6 -0
- data/spec/models/protocol_version_enum_spec.rb +30 -0
- data/spec/models/python_package_provenance_response_spec.rb +84 -0
- data/spec/models/python_python_package_content_response_spec.rb +6 -0
- data/spec/models/python_python_remote_response_spec.rb +6 -0
- data/spec/models/python_python_remote_spec.rb +6 -0
- metadata +30 -2
|
@@ -128,6 +128,9 @@ module PulpPythonClient
|
|
|
128
128
|
# The SHA256 digest of the package's METADATA file.
|
|
129
129
|
attr_accessor :metadata_sha256
|
|
130
130
|
|
|
131
|
+
# The created provenance object on upload.
|
|
132
|
+
attr_accessor :provenance
|
|
133
|
+
|
|
131
134
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
132
135
|
def self.attribute_map
|
|
133
136
|
{
|
|
@@ -171,7 +174,8 @@ module PulpPythonClient
|
|
|
171
174
|
:'python_version' => :'python_version',
|
|
172
175
|
:'size' => :'size',
|
|
173
176
|
:'sha256' => :'sha256',
|
|
174
|
-
:'metadata_sha256' => :'metadata_sha256'
|
|
177
|
+
:'metadata_sha256' => :'metadata_sha256',
|
|
178
|
+
:'provenance' => :'provenance'
|
|
175
179
|
}
|
|
176
180
|
end
|
|
177
181
|
|
|
@@ -223,7 +227,8 @@ module PulpPythonClient
|
|
|
223
227
|
:'python_version' => :'String',
|
|
224
228
|
:'size' => :'Integer',
|
|
225
229
|
:'sha256' => :'String',
|
|
226
|
-
:'metadata_sha256' => :'String'
|
|
230
|
+
:'metadata_sha256' => :'String',
|
|
231
|
+
:'provenance' => :'String'
|
|
227
232
|
}
|
|
228
233
|
end
|
|
229
234
|
|
|
@@ -239,7 +244,7 @@ module PulpPythonClient
|
|
|
239
244
|
:'provides_extras',
|
|
240
245
|
:'dynamic',
|
|
241
246
|
:'license_file',
|
|
242
|
-
:'metadata_sha256'
|
|
247
|
+
:'metadata_sha256',
|
|
243
248
|
])
|
|
244
249
|
end
|
|
245
250
|
|
|
@@ -425,6 +430,10 @@ module PulpPythonClient
|
|
|
425
430
|
if attributes.key?(:'metadata_sha256')
|
|
426
431
|
self.metadata_sha256 = attributes[:'metadata_sha256']
|
|
427
432
|
end
|
|
433
|
+
|
|
434
|
+
if attributes.key?(:'provenance')
|
|
435
|
+
self.provenance = attributes[:'provenance']
|
|
436
|
+
end
|
|
428
437
|
end
|
|
429
438
|
|
|
430
439
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -487,7 +496,8 @@ module PulpPythonClient
|
|
|
487
496
|
python_version == o.python_version &&
|
|
488
497
|
size == o.size &&
|
|
489
498
|
sha256 == o.sha256 &&
|
|
490
|
-
metadata_sha256 == o.metadata_sha256
|
|
499
|
+
metadata_sha256 == o.metadata_sha256 &&
|
|
500
|
+
provenance == o.provenance
|
|
491
501
|
end
|
|
492
502
|
|
|
493
503
|
# @see the `==` method
|
|
@@ -499,7 +509,7 @@ module PulpPythonClient
|
|
|
499
509
|
# Calculates hash code according to all attributes.
|
|
500
510
|
# @return [Integer] Hash code
|
|
501
511
|
def hash
|
|
502
|
-
[pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, vuln_report, artifact, author, author_email, description, home_page, keywords, license, metadata_version, name, platform, summary, version, classifiers, download_url, supported_platform, maintainer, maintainer_email, obsoletes_dist, project_url, project_urls, provides_dist, requires_external, requires_dist, requires_python, description_content_type, provides_extras, dynamic, license_expression, license_file, filename, packagetype, python_version, size, sha256, metadata_sha256].hash
|
|
512
|
+
[pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, vuln_report, artifact, author, author_email, description, home_page, keywords, license, metadata_version, name, platform, summary, version, classifiers, download_url, supported_platform, maintainer, maintainer_email, obsoletes_dist, project_url, project_urls, provides_dist, requires_external, requires_dist, requires_python, description_content_type, provides_extras, dynamic, license_expression, license_file, filename, packagetype, python_version, size, sha256, metadata_sha256, provenance].hash
|
|
503
513
|
end
|
|
504
514
|
|
|
505
515
|
# Builds the object from hash
|
|
@@ -96,6 +96,9 @@ module PulpPythonClient
|
|
|
96
96
|
# List of platforms to exclude syncing Python packages for. Possible valuesinclude: windows, macos, freebsd, and linux.
|
|
97
97
|
attr_accessor :exclude_platforms
|
|
98
98
|
|
|
99
|
+
# Whether to sync available provenances for Python packages.
|
|
100
|
+
attr_accessor :provenance
|
|
101
|
+
|
|
99
102
|
class EnumAttributeValidator
|
|
100
103
|
attr_reader :datatype
|
|
101
104
|
attr_reader :allowable_values
|
|
@@ -147,7 +150,8 @@ module PulpPythonClient
|
|
|
147
150
|
:'prereleases' => :'prereleases',
|
|
148
151
|
:'package_types' => :'package_types',
|
|
149
152
|
:'keep_latest_packages' => :'keep_latest_packages',
|
|
150
|
-
:'exclude_platforms' => :'exclude_platforms'
|
|
153
|
+
:'exclude_platforms' => :'exclude_platforms',
|
|
154
|
+
:'provenance' => :'provenance'
|
|
151
155
|
}
|
|
152
156
|
end
|
|
153
157
|
|
|
@@ -185,7 +189,8 @@ module PulpPythonClient
|
|
|
185
189
|
:'prereleases' => :'Boolean',
|
|
186
190
|
:'package_types' => :'Array<PackageTypesEnum>',
|
|
187
191
|
:'keep_latest_packages' => :'Integer',
|
|
188
|
-
:'exclude_platforms' => :'Array<ExcludePlatformsEnum>'
|
|
192
|
+
:'exclude_platforms' => :'Array<ExcludePlatformsEnum>',
|
|
193
|
+
:'provenance' => :'Boolean'
|
|
189
194
|
}
|
|
190
195
|
end
|
|
191
196
|
|
|
@@ -350,6 +355,12 @@ module PulpPythonClient
|
|
|
350
355
|
self.exclude_platforms = value
|
|
351
356
|
end
|
|
352
357
|
end
|
|
358
|
+
|
|
359
|
+
if attributes.key?(:'provenance')
|
|
360
|
+
self.provenance = attributes[:'provenance']
|
|
361
|
+
else
|
|
362
|
+
self.provenance = false
|
|
363
|
+
end
|
|
353
364
|
end
|
|
354
365
|
|
|
355
366
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -626,7 +637,8 @@ module PulpPythonClient
|
|
|
626
637
|
prereleases == o.prereleases &&
|
|
627
638
|
package_types == o.package_types &&
|
|
628
639
|
keep_latest_packages == o.keep_latest_packages &&
|
|
629
|
-
exclude_platforms == o.exclude_platforms
|
|
640
|
+
exclude_platforms == o.exclude_platforms &&
|
|
641
|
+
provenance == o.provenance
|
|
630
642
|
end
|
|
631
643
|
|
|
632
644
|
# @see the `==` method
|
|
@@ -638,7 +650,7 @@ module PulpPythonClient
|
|
|
638
650
|
# Calculates hash code according to all attributes.
|
|
639
651
|
# @return [Integer] Hash code
|
|
640
652
|
def hash
|
|
641
|
-
[name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, proxy_username, proxy_password, username, password, pulp_labels, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, includes, excludes, prereleases, package_types, keep_latest_packages, exclude_platforms].hash
|
|
653
|
+
[name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, proxy_username, proxy_password, username, password, pulp_labels, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, includes, excludes, prereleases, package_types, keep_latest_packages, exclude_platforms, provenance].hash
|
|
642
654
|
end
|
|
643
655
|
|
|
644
656
|
# Builds the object from hash
|
|
@@ -95,6 +95,9 @@ module PulpPythonClient
|
|
|
95
95
|
# List of platforms to exclude syncing Python packages for. Possible valuesinclude: windows, macos, freebsd, and linux.
|
|
96
96
|
attr_accessor :exclude_platforms
|
|
97
97
|
|
|
98
|
+
# Whether to sync available provenances for Python packages.
|
|
99
|
+
attr_accessor :provenance
|
|
100
|
+
|
|
98
101
|
class EnumAttributeValidator
|
|
99
102
|
attr_reader :datatype
|
|
100
103
|
attr_reader :allowable_values
|
|
@@ -146,7 +149,8 @@ module PulpPythonClient
|
|
|
146
149
|
:'prereleases' => :'prereleases',
|
|
147
150
|
:'package_types' => :'package_types',
|
|
148
151
|
:'keep_latest_packages' => :'keep_latest_packages',
|
|
149
|
-
:'exclude_platforms' => :'exclude_platforms'
|
|
152
|
+
:'exclude_platforms' => :'exclude_platforms',
|
|
153
|
+
:'provenance' => :'provenance'
|
|
150
154
|
}
|
|
151
155
|
end
|
|
152
156
|
|
|
@@ -184,7 +188,8 @@ module PulpPythonClient
|
|
|
184
188
|
:'prereleases' => :'Boolean',
|
|
185
189
|
:'package_types' => :'Array<PackageTypesEnum>',
|
|
186
190
|
:'keep_latest_packages' => :'Integer',
|
|
187
|
-
:'exclude_platforms' => :'Array<ExcludePlatformsEnum>'
|
|
191
|
+
:'exclude_platforms' => :'Array<ExcludePlatformsEnum>',
|
|
192
|
+
:'provenance' => :'Boolean'
|
|
188
193
|
}
|
|
189
194
|
end
|
|
190
195
|
|
|
@@ -346,6 +351,12 @@ module PulpPythonClient
|
|
|
346
351
|
self.exclude_platforms = value
|
|
347
352
|
end
|
|
348
353
|
end
|
|
354
|
+
|
|
355
|
+
if attributes.key?(:'provenance')
|
|
356
|
+
self.provenance = attributes[:'provenance']
|
|
357
|
+
else
|
|
358
|
+
self.provenance = false
|
|
359
|
+
end
|
|
349
360
|
end
|
|
350
361
|
|
|
351
362
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -464,7 +475,8 @@ module PulpPythonClient
|
|
|
464
475
|
prereleases == o.prereleases &&
|
|
465
476
|
package_types == o.package_types &&
|
|
466
477
|
keep_latest_packages == o.keep_latest_packages &&
|
|
467
|
-
exclude_platforms == o.exclude_platforms
|
|
478
|
+
exclude_platforms == o.exclude_platforms &&
|
|
479
|
+
provenance == o.provenance
|
|
468
480
|
end
|
|
469
481
|
|
|
470
482
|
# @see the `==` method
|
|
@@ -476,7 +488,7 @@ module PulpPythonClient
|
|
|
476
488
|
# Calculates hash code according to all attributes.
|
|
477
489
|
# @return [Integer] Hash code
|
|
478
490
|
def hash
|
|
479
|
-
[pulp_href, prn, pulp_created, pulp_last_updated, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, hidden_fields, includes, excludes, prereleases, package_types, keep_latest_packages, exclude_platforms].hash
|
|
491
|
+
[pulp_href, prn, pulp_created, pulp_last_updated, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, hidden_fields, includes, excludes, prereleases, package_types, keep_latest_packages, exclude_platforms, provenance].hash
|
|
480
492
|
end
|
|
481
493
|
|
|
482
494
|
# Builds the object from hash
|
data/lib/pulp_python_client.rb
CHANGED
|
@@ -20,6 +20,8 @@ require 'pulp_python_client/configuration'
|
|
|
20
20
|
require 'pulp_python_client/models/async_operation_response'
|
|
21
21
|
require 'pulp_python_client/models/content_summary_response'
|
|
22
22
|
require 'pulp_python_client/models/exclude_platforms_enum'
|
|
23
|
+
require 'pulp_python_client/models/filetype_enum'
|
|
24
|
+
require 'pulp_python_client/models/metadata_version_enum'
|
|
23
25
|
require 'pulp_python_client/models/my_permissions_response'
|
|
24
26
|
require 'pulp_python_client/models/nested_role'
|
|
25
27
|
require 'pulp_python_client/models/nested_role_response'
|
|
@@ -28,6 +30,7 @@ require 'pulp_python_client/models/package_metadata_response'
|
|
|
28
30
|
require 'pulp_python_client/models/package_types_enum'
|
|
29
31
|
require 'pulp_python_client/models/package_upload_task_response'
|
|
30
32
|
require 'pulp_python_client/models/paginated_repository_version_response_list'
|
|
33
|
+
require 'pulp_python_client/models/paginatedpython_package_provenance_response_list'
|
|
31
34
|
require 'pulp_python_client/models/paginatedpython_python_distribution_response_list'
|
|
32
35
|
require 'pulp_python_client/models/paginatedpython_python_package_content_response_list'
|
|
33
36
|
require 'pulp_python_client/models/paginatedpython_python_publication_response_list'
|
|
@@ -37,6 +40,8 @@ require 'pulp_python_client/models/patchedpython_python_distribution'
|
|
|
37
40
|
require 'pulp_python_client/models/patchedpython_python_remote'
|
|
38
41
|
require 'pulp_python_client/models/patchedpython_python_repository'
|
|
39
42
|
require 'pulp_python_client/models/policy_enum'
|
|
43
|
+
require 'pulp_python_client/models/protocol_version_enum'
|
|
44
|
+
require 'pulp_python_client/models/python_package_provenance_response'
|
|
40
45
|
require 'pulp_python_client/models/python_python_distribution'
|
|
41
46
|
require 'pulp_python_client/models/python_python_distribution_response'
|
|
42
47
|
require 'pulp_python_client/models/python_python_package_content_response'
|
|
@@ -59,11 +64,13 @@ require 'pulp_python_client/models/unset_label_response'
|
|
|
59
64
|
|
|
60
65
|
# APIs
|
|
61
66
|
require 'pulp_python_client/api/content_packages_api'
|
|
67
|
+
require 'pulp_python_client/api/content_provenance_api'
|
|
62
68
|
require 'pulp_python_client/api/distributions_pypi_api'
|
|
63
69
|
require 'pulp_python_client/api/publications_pypi_api'
|
|
64
70
|
require 'pulp_python_client/api/pypi_api'
|
|
65
71
|
require 'pulp_python_client/api/pypi_legacy_api'
|
|
66
72
|
require 'pulp_python_client/api/pypi_metadata_api'
|
|
73
|
+
require 'pulp_python_client/api/pypi_provenance_api'
|
|
67
74
|
require 'pulp_python_client/api/pypi_simple_api'
|
|
68
75
|
require 'pulp_python_client/api/remotes_python_api'
|
|
69
76
|
require 'pulp_python_client/api/repositories_python_api'
|
|
@@ -71,6 +71,7 @@ describe 'ContentPackagesApi' do
|
|
|
71
71
|
# @option opts [Object] :license_file
|
|
72
72
|
# @option opts [String] :sha256 The SHA256 digest of this package.
|
|
73
73
|
# @option opts [String] :metadata_sha256 The SHA256 digest of the package's METADATA file.
|
|
74
|
+
# @option opts [Object] :attestations
|
|
74
75
|
# @return [AsyncOperationResponse]
|
|
75
76
|
describe 'create test' do
|
|
76
77
|
it 'should work' do
|
|
@@ -205,6 +206,7 @@ describe 'ContentPackagesApi' do
|
|
|
205
206
|
# @option opts [Object] :license_file
|
|
206
207
|
# @option opts [String] :sha256 The SHA256 digest of this package.
|
|
207
208
|
# @option opts [String] :metadata_sha256 The SHA256 digest of the package's METADATA file.
|
|
209
|
+
# @option opts [Object] :attestations
|
|
208
210
|
# @return [PythonPythonPackageContentResponse]
|
|
209
211
|
describe 'upload test' do
|
|
210
212
|
it 'should work' do
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Pulp 3 API
|
|
3
|
+
|
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: v3
|
|
7
|
+
Contact: pulp-list@redhat.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.10.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
|
|
16
|
+
# Unit tests for PulpPythonClient::ContentProvenanceApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'ContentProvenanceApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = PulpPythonClient::ContentProvenanceApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of ContentProvenanceApi' do
|
|
30
|
+
it 'should create an instance of ContentProvenanceApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(PulpPythonClient::ContentProvenanceApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for create
|
|
36
|
+
# Create a package provenance
|
|
37
|
+
# Trigger an asynchronous task to create content,optionally create new repository version.
|
|
38
|
+
# @param package The package that the provenance is for.
|
|
39
|
+
# @param [Hash] opts the optional parameters
|
|
40
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
41
|
+
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
|
42
|
+
# @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
|
43
|
+
# @option opts [File] :file An uploaded file that may be turned into the content unit.
|
|
44
|
+
# @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
|
|
45
|
+
# @option opts [String] :file_url A url that Pulp can download and turn into the content unit.
|
|
46
|
+
# @option opts [Boolean] :verify Verify each attestation in the provenance.
|
|
47
|
+
# @return [AsyncOperationResponse]
|
|
48
|
+
describe 'create test' do
|
|
49
|
+
it 'should work' do
|
|
50
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
# unit tests for list
|
|
55
|
+
# List package provenances
|
|
56
|
+
# PackageProvenance represents a PEP 740 provenance object for a Python package. Use ?minimal=true to get a human readable representation of the provenance.
|
|
57
|
+
# @param [Hash] opts the optional parameters
|
|
58
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
59
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
|
60
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
61
|
+
# @option opts [Array<String>] :ordering Ordering * `pk` - Pk * `-pk` - Pk (descending)
|
|
62
|
+
# @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
|
63
|
+
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
|
64
|
+
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
|
65
|
+
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
66
|
+
# @option opts [String] :pulp_label_select Filter labels by search string
|
|
67
|
+
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
|
68
|
+
# @option opts [String] :repository_version Repository Version referenced by HREF/PRN
|
|
69
|
+
# @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
|
|
70
|
+
# @option opts [String] :repository_version_removed Repository Version referenced by HREF/PRN
|
|
71
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
72
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
73
|
+
# @return [PaginatedpythonPackageProvenanceResponseList]
|
|
74
|
+
describe 'list test' do
|
|
75
|
+
it 'should work' do
|
|
76
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
77
|
+
end
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
# unit tests for read
|
|
81
|
+
# Inspect a package provenance
|
|
82
|
+
# PackageProvenance represents a PEP 740 provenance object for a Python package. Use ?minimal=true to get a human readable representation of the provenance.
|
|
83
|
+
# @param python_package_provenance_href
|
|
84
|
+
# @param [Hash] opts the optional parameters
|
|
85
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
86
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
87
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
88
|
+
# @return [PythonPackageProvenanceResponse]
|
|
89
|
+
describe 'read test' do
|
|
90
|
+
it 'should work' do
|
|
91
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
# unit tests for set_label
|
|
96
|
+
# Set a label
|
|
97
|
+
# Set a single pulp_label on the object to a specific value or null.
|
|
98
|
+
# @param python_package_provenance_href
|
|
99
|
+
# @param set_label
|
|
100
|
+
# @param [Hash] opts the optional parameters
|
|
101
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
102
|
+
# @return [SetLabelResponse]
|
|
103
|
+
describe 'set_label test' do
|
|
104
|
+
it 'should work' do
|
|
105
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
106
|
+
end
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
# unit tests for unset_label
|
|
110
|
+
# Unset a label
|
|
111
|
+
# Unset a single pulp_label on the object.
|
|
112
|
+
# @param python_package_provenance_href
|
|
113
|
+
# @param unset_label
|
|
114
|
+
# @param [Hash] opts the optional parameters
|
|
115
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
116
|
+
# @return [UnsetLabelResponse]
|
|
117
|
+
describe 'unset_label test' do
|
|
118
|
+
it 'should work' do
|
|
119
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
120
|
+
end
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
end
|
|
@@ -41,6 +41,10 @@ describe 'PypiLegacyApi' do
|
|
|
41
41
|
# @param [Hash] opts the optional parameters
|
|
42
42
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
43
43
|
# @option opts [String] :action Defaults to `file_upload`, don't change it or request will fail!
|
|
44
|
+
# @option opts [ProtocolVersionEnum] :protocol_version Protocol version to use for the upload. Only version 1 is supported. * `1` - 1
|
|
45
|
+
# @option opts [FiletypeEnum] :filetype Type of artifact to upload. * `bdist_wheel` - bdist_wheel * `sdist` - sdist
|
|
46
|
+
# @option opts [MetadataVersionEnum] :metadata_version Metadata version of the uploaded package. * `1.0` - 1.0 * `1.1` - 1.1 * `1.2` - 1.2 * `2.0` - 2.0 * `2.1` - 2.1 * `2.2` - 2.2 * `2.3` - 2.3 * `2.4` - 2.4
|
|
47
|
+
# @option opts [Object] :attestations
|
|
44
48
|
# @return [PackageUploadTaskResponse]
|
|
45
49
|
describe 'create test' do
|
|
46
50
|
it 'should work' do
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Pulp 3 API
|
|
3
|
+
|
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: v3
|
|
7
|
+
Contact: pulp-list@redhat.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.10.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
|
|
16
|
+
# Unit tests for PulpPythonClient::PypiProvenanceApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'PypiProvenanceApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = PulpPythonClient::PypiProvenanceApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of PypiProvenanceApi' do
|
|
30
|
+
it 'should create an instance of PypiProvenanceApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(PulpPythonClient::PypiProvenanceApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for read
|
|
36
|
+
# Get package provenance
|
|
37
|
+
# Gets the provenance for a package.
|
|
38
|
+
# @param filename
|
|
39
|
+
# @param package
|
|
40
|
+
# @param path
|
|
41
|
+
# @param version
|
|
42
|
+
# @param [Hash] opts the optional parameters
|
|
43
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
44
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
45
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
46
|
+
# @return [nil]
|
|
47
|
+
describe 'read test' do
|
|
48
|
+
it 'should work' do
|
|
49
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
end
|
|
@@ -41,6 +41,10 @@ describe 'PypiSimpleApi' do
|
|
|
41
41
|
# @param [Hash] opts the optional parameters
|
|
42
42
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
43
43
|
# @option opts [String] :action Defaults to `file_upload`, don't change it or request will fail!
|
|
44
|
+
# @option opts [ProtocolVersionEnum] :protocol_version Protocol version to use for the upload. Only version 1 is supported. * `1` - 1
|
|
45
|
+
# @option opts [FiletypeEnum] :filetype Type of artifact to upload. * `bdist_wheel` - bdist_wheel * `sdist` - sdist
|
|
46
|
+
# @option opts [MetadataVersionEnum] :metadata_version Metadata version of the uploaded package. * `1.0` - 1.0 * `1.1` - 1.1 * `1.2` - 1.2 * `2.0` - 2.0 * `2.1` - 2.1 * `2.2` - 2.2 * `2.3` - 2.3 * `2.4` - 2.4
|
|
47
|
+
# @option opts [Object] :attestations
|
|
44
48
|
# @return [PackageUploadTaskResponse]
|
|
45
49
|
describe 'create test' do
|
|
46
50
|
it 'should work' do
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Pulp 3 API
|
|
3
|
+
|
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: v3
|
|
7
|
+
Contact: pulp-list@redhat.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.10.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for PulpPythonClient::FiletypeEnum
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe PulpPythonClient::FiletypeEnum do
|
|
21
|
+
let(:instance) { PulpPythonClient::FiletypeEnum.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of FiletypeEnum' do
|
|
24
|
+
it 'should create an instance of FiletypeEnum' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(PulpPythonClient::FiletypeEnum)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Pulp 3 API
|
|
3
|
+
|
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: v3
|
|
7
|
+
Contact: pulp-list@redhat.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.10.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for PulpPythonClient::MetadataVersionEnum
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe PulpPythonClient::MetadataVersionEnum do
|
|
21
|
+
let(:instance) { PulpPythonClient::MetadataVersionEnum.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of MetadataVersionEnum' do
|
|
24
|
+
it 'should create an instance of MetadataVersionEnum' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(PulpPythonClient::MetadataVersionEnum)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
end
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Pulp 3 API
|
|
3
|
+
|
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: v3
|
|
7
|
+
Contact: pulp-list@redhat.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.10.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for PulpPythonClient::PaginatedpythonPackageProvenanceResponseList
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe PulpPythonClient::PaginatedpythonPackageProvenanceResponseList do
|
|
21
|
+
let(:instance) { PulpPythonClient::PaginatedpythonPackageProvenanceResponseList.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of PaginatedpythonPackageProvenanceResponseList' do
|
|
24
|
+
it 'should create an instance of PaginatedpythonPackageProvenanceResponseList' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(PulpPythonClient::PaginatedpythonPackageProvenanceResponseList)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "count"' do
|
|
31
|
+
it 'should work' do
|
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
describe 'test attribute "_next"' do
|
|
37
|
+
it 'should work' do
|
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
describe 'test attribute "previous"' do
|
|
43
|
+
it 'should work' do
|
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
describe 'test attribute "results"' do
|
|
49
|
+
it 'should work' do
|
|
50
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
end
|
|
@@ -189,4 +189,10 @@ describe PulpPythonClient::PatchedpythonPythonRemote do
|
|
|
189
189
|
end
|
|
190
190
|
end
|
|
191
191
|
|
|
192
|
+
describe 'test attribute "provenance"' do
|
|
193
|
+
it 'should work' do
|
|
194
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
195
|
+
end
|
|
196
|
+
end
|
|
197
|
+
|
|
192
198
|
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Pulp 3 API
|
|
3
|
+
|
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: v3
|
|
7
|
+
Contact: pulp-list@redhat.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.10.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for PulpPythonClient::ProtocolVersionEnum
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe PulpPythonClient::ProtocolVersionEnum do
|
|
21
|
+
let(:instance) { PulpPythonClient::ProtocolVersionEnum.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of ProtocolVersionEnum' do
|
|
24
|
+
it 'should create an instance of ProtocolVersionEnum' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(PulpPythonClient::ProtocolVersionEnum)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
end
|