pulp_python_client 3.20.1 → 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.
Files changed (59) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +18 -5
  3. data/docs/ContentPackagesApi.md +8 -4
  4. data/docs/ContentProvenanceApi.md +428 -0
  5. data/docs/FiletypeEnum.md +15 -0
  6. data/docs/MetadataVersionEnum.md +15 -0
  7. data/docs/PaginatedpythonPackageProvenanceResponseList.md +24 -0
  8. data/docs/PatchedpythonPythonDistribution.md +2 -0
  9. data/docs/PatchedpythonPythonRemote.md +3 -1
  10. data/docs/ProtocolVersionEnum.md +15 -0
  11. data/docs/PypiLegacyApi.md +9 -1
  12. data/docs/PypiProvenanceApi.md +91 -0
  13. data/docs/PypiSimpleApi.md +9 -1
  14. data/docs/PythonPackageProvenanceResponse.md +34 -0
  15. data/docs/PythonPythonDistribution.md +2 -0
  16. data/docs/PythonPythonDistributionResponse.md +2 -0
  17. data/docs/PythonPythonPackageContentResponse.md +5 -1
  18. data/docs/PythonPythonRemote.md +3 -1
  19. data/docs/PythonPythonRemoteResponse.md +3 -1
  20. data/docs/RepositoriesPythonVersionsApi.md +75 -0
  21. data/lib/pulp_python_client/api/content_packages_api.rb +9 -3
  22. data/lib/pulp_python_client/api/content_provenance_api.rb +448 -0
  23. data/lib/pulp_python_client/api/pypi_legacy_api.rb +12 -0
  24. data/lib/pulp_python_client/api/pypi_provenance_api.rb +110 -0
  25. data/lib/pulp_python_client/api/pypi_simple_api.rb +12 -0
  26. data/lib/pulp_python_client/api/repositories_python_versions_api.rb +66 -0
  27. data/lib/pulp_python_client/models/filetype_enum.rb +40 -0
  28. data/lib/pulp_python_client/models/metadata_version_enum.rb +46 -0
  29. data/lib/pulp_python_client/models/paginatedpython_package_provenance_response_list.rb +257 -0
  30. data/lib/pulp_python_client/models/patchedpython_python_distribution.rb +12 -1
  31. data/lib/pulp_python_client/models/patchedpython_python_remote.rb +16 -4
  32. data/lib/pulp_python_client/models/protocol_version_enum.rb +39 -0
  33. data/lib/pulp_python_client/models/python_package_provenance_response.rb +302 -0
  34. data/lib/pulp_python_client/models/python_python_distribution.rb +12 -1
  35. data/lib/pulp_python_client/models/python_python_distribution_response.rb +12 -1
  36. data/lib/pulp_python_client/models/python_python_package_content_response.rb +25 -5
  37. data/lib/pulp_python_client/models/python_python_remote.rb +16 -4
  38. data/lib/pulp_python_client/models/python_python_remote_response.rb +16 -4
  39. data/lib/pulp_python_client/version.rb +1 -1
  40. data/lib/pulp_python_client.rb +7 -0
  41. data/spec/api/content_packages_api_spec.rb +3 -1
  42. data/spec/api/content_provenance_api_spec.rb +123 -0
  43. data/spec/api/pypi_legacy_api_spec.rb +4 -0
  44. data/spec/api/pypi_provenance_api_spec.rb +53 -0
  45. data/spec/api/pypi_simple_api_spec.rb +4 -0
  46. data/spec/api/repositories_python_versions_api_spec.rb +13 -0
  47. data/spec/models/filetype_enum_spec.rb +30 -0
  48. data/spec/models/metadata_version_enum_spec.rb +30 -0
  49. data/spec/models/paginatedpython_package_provenance_response_list_spec.rb +54 -0
  50. data/spec/models/patchedpython_python_distribution_spec.rb +6 -0
  51. data/spec/models/patchedpython_python_remote_spec.rb +6 -0
  52. data/spec/models/protocol_version_enum_spec.rb +30 -0
  53. data/spec/models/python_package_provenance_response_spec.rb +84 -0
  54. data/spec/models/python_python_distribution_response_spec.rb +6 -0
  55. data/spec/models/python_python_distribution_spec.rb +6 -0
  56. data/spec/models/python_python_package_content_response_spec.rb +12 -0
  57. data/spec/models/python_python_remote_response_spec.rb +6 -0
  58. data/spec/models/python_python_remote_spec.rb +6 -0
  59. metadata +30 -2
@@ -0,0 +1,24 @@
1
+ # PulpPythonClient::PaginatedpythonPackageProvenanceResponseList
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **count** | **Integer** | | |
8
+ | **_next** | **String** | | [optional] |
9
+ | **previous** | **String** | | [optional] |
10
+ | **results** | [**Array<PythonPackageProvenanceResponse>**](PythonPackageProvenanceResponse.md) | | |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'pulp_python_client'
16
+
17
+ instance = PulpPythonClient::PaginatedpythonPackageProvenanceResponseList.new(
18
+ count: 123,
19
+ _next: http://api.example.org/accounts/?offset=400&limit=100,
20
+ previous: http://api.example.org/accounts/?offset=200&limit=100,
21
+ results: null
22
+ )
23
+ ```
24
+
@@ -11,6 +11,7 @@
11
11
  | **name** | **String** | A unique name. Ex, `rawhide` and `stable`. | [optional] |
12
12
  | **repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional] |
13
13
  | **publication** | **String** | Publication to be served | [optional] |
14
+ | **repository_version** | **String** | RepositoryVersion to be served. | [optional] |
14
15
  | **allow_uploads** | **Boolean** | Allow packages to be uploaded to this index. | [optional][default to true] |
15
16
  | **remote** | **String** | Remote that can be used to fetch content when using pull-through caching. | [optional] |
16
17
 
@@ -27,6 +28,7 @@ instance = PulpPythonClient::PatchedpythonPythonDistribution.new(
27
28
  name: null,
28
29
  repository: null,
29
30
  publication: null,
31
+ repository_version: null,
30
32
  allow_uploads: null,
31
33
  remote: null
32
34
  )
@@ -31,6 +31,7 @@
31
31
  | **package_types** | [**Array<PackageTypesEnum>**](PackageTypesEnum.md) | The package types to sync for Python content. Leave blank to get everypackage type. | [optional] |
32
32
  | **keep_latest_packages** | **Integer** | The amount of latest versions of a package to keep on sync, includespre-releases if synced. Default 0 keeps all versions. | [optional][default to 0] |
33
33
  | **exclude_platforms** | [**Array<ExcludePlatformsEnum>**](ExcludePlatformsEnum.md) | List of platforms to exclude syncing Python packages for. Possible valuesinclude: windows, macos, freebsd, and linux. | [optional] |
34
+ | **provenance** | **Boolean** | Whether to sync available provenances for Python packages. | [optional][default to false] |
34
35
 
35
36
  ## Example
36
37
 
@@ -64,7 +65,8 @@ instance = PulpPythonClient::PatchedpythonPythonRemote.new(
64
65
  prereleases: null,
65
66
  package_types: null,
66
67
  keep_latest_packages: null,
67
- exclude_platforms: null
68
+ exclude_platforms: null,
69
+ provenance: null
68
70
  )
69
71
  ```
70
72
 
@@ -0,0 +1,15 @@
1
+ # PulpPythonClient::ProtocolVersionEnum
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+
8
+ ## Example
9
+
10
+ ```ruby
11
+ require 'pulp_python_client'
12
+
13
+ instance = PulpPythonClient::ProtocolVersionEnum.new()
14
+ ```
15
+
@@ -33,7 +33,11 @@ content = File.new('/path/to/some/file') # File | A Python package release file
33
33
  sha256_digest = 'sha256_digest_example' # String | SHA256 of package to validate upload integrity.
34
34
  opts = {
35
35
  x_task_diagnostics: ['inner_example'], # Array<String> | List of profilers to use on tasks.
36
- action: 'action_example' # String | Defaults to `file_upload`, don't change it or request will fail!
36
+ action: 'action_example', # String | Defaults to `file_upload`, don't change it or request will fail!
37
+ protocol_version: PulpPythonClient::ProtocolVersionEnum::N1, # ProtocolVersionEnum | Protocol version to use for the upload. Only version 1 is supported. * `1` - 1
38
+ filetype: PulpPythonClient::FiletypeEnum::BDIST_WHEEL, # FiletypeEnum | Type of artifact to upload. * `bdist_wheel` - bdist_wheel * `sdist` - sdist
39
+ metadata_version: PulpPythonClient::MetadataVersionEnum::N1_0, # MetadataVersionEnum | 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
40
+ attestations: TODO # Object |
37
41
  }
38
42
 
39
43
  begin
@@ -72,6 +76,10 @@ end
72
76
  | **sha256_digest** | **String** | SHA256 of package to validate upload integrity. | |
73
77
  | **x_task_diagnostics** | [**Array&lt;String&gt;**](String.md) | List of profilers to use on tasks. | [optional] |
74
78
  | **action** | **String** | Defaults to &#x60;file_upload&#x60;, don&#39;t change it or request will fail! | [optional][default to &#39;file_upload&#39;] |
79
+ | **protocol_version** | [**ProtocolVersionEnum**](ProtocolVersionEnum.md) | Protocol version to use for the upload. Only version 1 is supported. * &#x60;1&#x60; - 1 | [optional] |
80
+ | **filetype** | [**FiletypeEnum**](FiletypeEnum.md) | Type of artifact to upload. * &#x60;bdist_wheel&#x60; - bdist_wheel * &#x60;sdist&#x60; - sdist | [optional] |
81
+ | **metadata_version** | [**MetadataVersionEnum**](MetadataVersionEnum.md) | Metadata version of the uploaded package. * &#x60;1.0&#x60; - 1.0 * &#x60;1.1&#x60; - 1.1 * &#x60;1.2&#x60; - 1.2 * &#x60;2.0&#x60; - 2.0 * &#x60;2.1&#x60; - 2.1 * &#x60;2.2&#x60; - 2.2 * &#x60;2.3&#x60; - 2.3 * &#x60;2.4&#x60; - 2.4 | [optional] |
82
+ | **attestations** | [**Object**](Object.md) | | [optional] |
75
83
 
76
84
  ### Return type
77
85
 
@@ -0,0 +1,91 @@
1
+ # PulpPythonClient::PypiProvenanceApi
2
+
3
+ All URIs are relative to *http://localhost:24817*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**read**](PypiProvenanceApi.md#read) | **GET** /pypi/{path}/integrity/{package}/{version}/{filename}/provenance/ | Get package provenance |
8
+
9
+
10
+ ## read
11
+
12
+ > read(filename, package, path, version, opts)
13
+
14
+ Get package provenance
15
+
16
+ Gets the provenance for a package.
17
+
18
+ ### Examples
19
+
20
+ ```ruby
21
+ require 'time'
22
+ require 'pulp_python_client'
23
+ # setup authorization
24
+ PulpPythonClient.configure do |config|
25
+ # Configure HTTP basic authorization: basicAuth
26
+ config.username = 'YOUR USERNAME'
27
+ config.password = 'YOUR PASSWORD'
28
+ end
29
+
30
+ api_instance = PulpPythonClient::PypiProvenanceApi.new
31
+ filename = 'filename_example' # String |
32
+ package = 'package_example' # String |
33
+ path = 'path_example' # String |
34
+ version = 'version_example' # String |
35
+ opts = {
36
+ x_task_diagnostics: ['inner_example'], # Array<String> | List of profilers to use on tasks.
37
+ fields: ['inner_example'], # Array<String> | A list of fields to include in the response.
38
+ exclude_fields: ['inner_example'] # Array<String> | A list of fields to exclude from the response.
39
+ }
40
+
41
+ begin
42
+ # Get package provenance
43
+ api_instance.read(filename, package, path, version, opts)
44
+ rescue PulpPythonClient::ApiError => e
45
+ puts "Error when calling PypiProvenanceApi->read: #{e}"
46
+ end
47
+ ```
48
+
49
+ #### Using the read_with_http_info variant
50
+
51
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
52
+
53
+ > <Array(nil, Integer, Hash)> read_with_http_info(filename, package, path, version, opts)
54
+
55
+ ```ruby
56
+ begin
57
+ # Get package provenance
58
+ data, status_code, headers = api_instance.read_with_http_info(filename, package, path, version, opts)
59
+ p status_code # => 2xx
60
+ p headers # => { ... }
61
+ p data # => nil
62
+ rescue PulpPythonClient::ApiError => e
63
+ puts "Error when calling PypiProvenanceApi->read_with_http_info: #{e}"
64
+ end
65
+ ```
66
+
67
+ ### Parameters
68
+
69
+ | Name | Type | Description | Notes |
70
+ | ---- | ---- | ----------- | ----- |
71
+ | **filename** | **String** | | |
72
+ | **package** | **String** | | |
73
+ | **path** | **String** | | |
74
+ | **version** | **String** | | |
75
+ | **x_task_diagnostics** | [**Array&lt;String&gt;**](String.md) | List of profilers to use on tasks. | [optional] |
76
+ | **fields** | [**Array&lt;String&gt;**](String.md) | A list of fields to include in the response. | [optional] |
77
+ | **exclude_fields** | [**Array&lt;String&gt;**](String.md) | A list of fields to exclude from the response. | [optional] |
78
+
79
+ ### Return type
80
+
81
+ nil (empty response body)
82
+
83
+ ### Authorization
84
+
85
+ [basicAuth](../README.md#basicAuth)
86
+
87
+ ### HTTP request headers
88
+
89
+ - **Content-Type**: Not defined
90
+ - **Accept**: Not defined
91
+
@@ -35,7 +35,11 @@ content = File.new('/path/to/some/file') # File | A Python package release file
35
35
  sha256_digest = 'sha256_digest_example' # String | SHA256 of package to validate upload integrity.
36
36
  opts = {
37
37
  x_task_diagnostics: ['inner_example'], # Array<String> | List of profilers to use on tasks.
38
- action: 'action_example' # String | Defaults to `file_upload`, don't change it or request will fail!
38
+ action: 'action_example', # String | Defaults to `file_upload`, don't change it or request will fail!
39
+ protocol_version: PulpPythonClient::ProtocolVersionEnum::N1, # ProtocolVersionEnum | Protocol version to use for the upload. Only version 1 is supported. * `1` - 1
40
+ filetype: PulpPythonClient::FiletypeEnum::BDIST_WHEEL, # FiletypeEnum | Type of artifact to upload. * `bdist_wheel` - bdist_wheel * `sdist` - sdist
41
+ metadata_version: PulpPythonClient::MetadataVersionEnum::N1_0, # MetadataVersionEnum | 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
42
+ attestations: TODO # Object |
39
43
  }
40
44
 
41
45
  begin
@@ -74,6 +78,10 @@ end
74
78
  | **sha256_digest** | **String** | SHA256 of package to validate upload integrity. | |
75
79
  | **x_task_diagnostics** | [**Array&lt;String&gt;**](String.md) | List of profilers to use on tasks. | [optional] |
76
80
  | **action** | **String** | Defaults to &#x60;file_upload&#x60;, don&#39;t change it or request will fail! | [optional][default to &#39;file_upload&#39;] |
81
+ | **protocol_version** | [**ProtocolVersionEnum**](ProtocolVersionEnum.md) | Protocol version to use for the upload. Only version 1 is supported. * &#x60;1&#x60; - 1 | [optional] |
82
+ | **filetype** | [**FiletypeEnum**](FiletypeEnum.md) | Type of artifact to upload. * &#x60;bdist_wheel&#x60; - bdist_wheel * &#x60;sdist&#x60; - sdist | [optional] |
83
+ | **metadata_version** | [**MetadataVersionEnum**](MetadataVersionEnum.md) | Metadata version of the uploaded package. * &#x60;1.0&#x60; - 1.0 * &#x60;1.1&#x60; - 1.1 * &#x60;1.2&#x60; - 1.2 * &#x60;2.0&#x60; - 2.0 * &#x60;2.1&#x60; - 2.1 * &#x60;2.2&#x60; - 2.2 * &#x60;2.3&#x60; - 2.3 * &#x60;2.4&#x60; - 2.4 | [optional] |
84
+ | **attestations** | [**Object**](Object.md) | | [optional] |
77
85
 
78
86
  ### Return type
79
87
 
@@ -0,0 +1,34 @@
1
+ # PulpPythonClient::PythonPackageProvenanceResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **pulp_href** | **String** | | [optional][readonly] |
8
+ | **prn** | **String** | The Pulp Resource Name (PRN). | [optional][readonly] |
9
+ | **pulp_created** | **Time** | Timestamp of creation. | [optional][readonly] |
10
+ | **pulp_last_updated** | **Time** | Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same. | [optional][readonly] |
11
+ | **pulp_labels** | **Hash&lt;String, String&gt;** | A dictionary of arbitrary key/value pairs used to describe a specific Content instance. | [optional] |
12
+ | **vuln_report** | **String** | | [optional][readonly] |
13
+ | **package** | **String** | The package that the provenance is for. | |
14
+ | **provenance** | **Object** | | [optional] |
15
+ | **sha256** | **String** | | [optional][readonly] |
16
+
17
+ ## Example
18
+
19
+ ```ruby
20
+ require 'pulp_python_client'
21
+
22
+ instance = PulpPythonClient::PythonPackageProvenanceResponse.new(
23
+ pulp_href: null,
24
+ prn: null,
25
+ pulp_created: null,
26
+ pulp_last_updated: null,
27
+ pulp_labels: null,
28
+ vuln_report: null,
29
+ package: null,
30
+ provenance: null,
31
+ sha256: null
32
+ )
33
+ ```
34
+
@@ -11,6 +11,7 @@
11
11
  | **name** | **String** | A unique name. Ex, &#x60;rawhide&#x60; and &#x60;stable&#x60;. | |
12
12
  | **repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional] |
13
13
  | **publication** | **String** | Publication to be served | [optional] |
14
+ | **repository_version** | **String** | RepositoryVersion to be served. | [optional] |
14
15
  | **allow_uploads** | **Boolean** | Allow packages to be uploaded to this index. | [optional][default to true] |
15
16
  | **remote** | **String** | Remote that can be used to fetch content when using pull-through caching. | [optional] |
16
17
 
@@ -27,6 +28,7 @@ instance = PulpPythonClient::PythonPythonDistribution.new(
27
28
  name: null,
28
29
  repository: null,
29
30
  publication: null,
31
+ repository_version: null,
30
32
  allow_uploads: null,
31
33
  remote: null
32
34
  )
@@ -17,6 +17,7 @@
17
17
  | **name** | **String** | A unique name. Ex, &#x60;rawhide&#x60; and &#x60;stable&#x60;. | |
18
18
  | **repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional] |
19
19
  | **publication** | **String** | Publication to be served | [optional] |
20
+ | **repository_version** | **String** | RepositoryVersion to be served. | [optional] |
20
21
  | **allow_uploads** | **Boolean** | Allow packages to be uploaded to this index. | [optional][default to true] |
21
22
  | **remote** | **String** | Remote that can be used to fetch content when using pull-through caching. | [optional] |
22
23
 
@@ -39,6 +40,7 @@ instance = PulpPythonClient::PythonPythonDistributionResponse.new(
39
40
  name: null,
40
41
  repository: null,
41
42
  publication: null,
43
+ repository_version: null,
42
44
  allow_uploads: null,
43
45
  remote: null
44
46
  )
@@ -42,8 +42,10 @@
42
42
  | **filename** | **String** | The name of the distribution package, usually of the format: {distribution}-{version}(-{build tag})?-{python tag}-{abi tag}-{platform tag}.{packagetype} | [optional][readonly] |
43
43
  | **packagetype** | **String** | The type of the distribution package (e.g. sdist, bdist_wheel, bdist_egg, etc) | [optional][readonly] |
44
44
  | **python_version** | **String** | The tag that indicates which Python implementation or version the package requires. | [optional][readonly] |
45
+ | **size** | **Integer** | The size of the package in bytes. | [optional][readonly] |
45
46
  | **sha256** | **String** | The SHA256 digest of this package. | [optional][default to &#39;&#39;] |
46
47
  | **metadata_sha256** | **String** | The SHA256 digest of the package&#39;s METADATA file. | [optional] |
48
+ | **provenance** | **String** | The created provenance object on upload. | [optional][readonly] |
47
49
 
48
50
  ## Example
49
51
 
@@ -89,8 +91,10 @@ instance = PulpPythonClient::PythonPythonPackageContentResponse.new(
89
91
  filename: null,
90
92
  packagetype: null,
91
93
  python_version: null,
94
+ size: null,
92
95
  sha256: null,
93
- metadata_sha256: null
96
+ metadata_sha256: null,
97
+ provenance: null
94
98
  )
95
99
  ```
96
100
 
@@ -31,6 +31,7 @@
31
31
  | **package_types** | [**Array&lt;PackageTypesEnum&gt;**](PackageTypesEnum.md) | The package types to sync for Python content. Leave blank to get everypackage type. | [optional] |
32
32
  | **keep_latest_packages** | **Integer** | The amount of latest versions of a package to keep on sync, includespre-releases if synced. Default 0 keeps all versions. | [optional][default to 0] |
33
33
  | **exclude_platforms** | [**Array&lt;ExcludePlatformsEnum&gt;**](ExcludePlatformsEnum.md) | List of platforms to exclude syncing Python packages for. Possible valuesinclude: windows, macos, freebsd, and linux. | [optional] |
34
+ | **provenance** | **Boolean** | Whether to sync available provenances for Python packages. | [optional][default to false] |
34
35
 
35
36
  ## Example
36
37
 
@@ -64,7 +65,8 @@ instance = PulpPythonClient::PythonPythonRemote.new(
64
65
  prereleases: null,
65
66
  package_types: null,
66
67
  keep_latest_packages: null,
67
- exclude_platforms: null
68
+ exclude_platforms: null,
69
+ provenance: null
68
70
  )
69
71
  ```
70
72
 
@@ -31,6 +31,7 @@
31
31
  | **package_types** | [**Array&lt;PackageTypesEnum&gt;**](PackageTypesEnum.md) | The package types to sync for Python content. Leave blank to get everypackage type. | [optional] |
32
32
  | **keep_latest_packages** | **Integer** | The amount of latest versions of a package to keep on sync, includespre-releases if synced. Default 0 keeps all versions. | [optional][default to 0] |
33
33
  | **exclude_platforms** | [**Array&lt;ExcludePlatformsEnum&gt;**](ExcludePlatformsEnum.md) | List of platforms to exclude syncing Python packages for. Possible valuesinclude: windows, macos, freebsd, and linux. | [optional] |
34
+ | **provenance** | **Boolean** | Whether to sync available provenances for Python packages. | [optional][default to false] |
34
35
 
35
36
  ## Example
36
37
 
@@ -64,7 +65,8 @@ instance = PulpPythonClient::PythonPythonRemoteResponse.new(
64
65
  prereleases: null,
65
66
  package_types: null,
66
67
  keep_latest_packages: null,
67
- exclude_platforms: null
68
+ exclude_platforms: null,
69
+ provenance: null
68
70
  )
69
71
  ```
70
72
 
@@ -8,6 +8,7 @@ All URIs are relative to *http://localhost:24817*
8
8
  | [**list**](RepositoriesPythonVersionsApi.md#list) | **GET** {python_python_repository_href}versions/ | List repository versions |
9
9
  | [**read**](RepositoriesPythonVersionsApi.md#read) | **GET** {python_python_repository_version_href} | Inspect a repository version |
10
10
  | [**repair**](RepositoriesPythonVersionsApi.md#repair) | **POST** {python_python_repository_version_href}repair/ | |
11
+ | [**scan**](RepositoriesPythonVersionsApi.md#scan) | **POST** {python_python_repository_version_href}scan/ | Generate vulnerability report |
11
12
 
12
13
 
13
14
  ## delete
@@ -357,3 +358,77 @@ end
357
358
  - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
358
359
  - **Accept**: application/json
359
360
 
361
+
362
+ ## scan
363
+
364
+ > <AsyncOperationResponse> scan(python_python_repository_version_href, opts)
365
+
366
+ Generate vulnerability report
367
+
368
+ Scan a repository version for vulnerabilities.
369
+
370
+ ### Examples
371
+
372
+ ```ruby
373
+ require 'time'
374
+ require 'pulp_python_client'
375
+ # setup authorization
376
+ PulpPythonClient.configure do |config|
377
+ # Configure HTTP basic authorization: basicAuth
378
+ config.username = 'YOUR USERNAME'
379
+ config.password = 'YOUR PASSWORD'
380
+ end
381
+
382
+ api_instance = PulpPythonClient::RepositoriesPythonVersionsApi.new
383
+ python_python_repository_version_href = 'python_python_repository_version_href_example' # String |
384
+ opts = {
385
+ x_task_diagnostics: ['inner_example'] # Array<String> | List of profilers to use on tasks.
386
+ }
387
+
388
+ begin
389
+ # Generate vulnerability report
390
+ result = api_instance.scan(python_python_repository_version_href, opts)
391
+ p result
392
+ rescue PulpPythonClient::ApiError => e
393
+ puts "Error when calling RepositoriesPythonVersionsApi->scan: #{e}"
394
+ end
395
+ ```
396
+
397
+ #### Using the scan_with_http_info variant
398
+
399
+ This returns an Array which contains the response data, status code and headers.
400
+
401
+ > <Array(<AsyncOperationResponse>, Integer, Hash)> scan_with_http_info(python_python_repository_version_href, opts)
402
+
403
+ ```ruby
404
+ begin
405
+ # Generate vulnerability report
406
+ data, status_code, headers = api_instance.scan_with_http_info(python_python_repository_version_href, opts)
407
+ p status_code # => 2xx
408
+ p headers # => { ... }
409
+ p data # => <AsyncOperationResponse>
410
+ rescue PulpPythonClient::ApiError => e
411
+ puts "Error when calling RepositoriesPythonVersionsApi->scan_with_http_info: #{e}"
412
+ end
413
+ ```
414
+
415
+ ### Parameters
416
+
417
+ | Name | Type | Description | Notes |
418
+ | ---- | ---- | ----------- | ----- |
419
+ | **python_python_repository_version_href** | **String** | | |
420
+ | **x_task_diagnostics** | [**Array&lt;String&gt;**](String.md) | List of profilers to use on tasks. | [optional] |
421
+
422
+ ### Return type
423
+
424
+ [**AsyncOperationResponse**](AsyncOperationResponse.md)
425
+
426
+ ### Authorization
427
+
428
+ [basicAuth](../README.md#basicAuth)
429
+
430
+ ### HTTP request headers
431
+
432
+ - **Content-Type**: Not defined
433
+ - **Accept**: application/json
434
+
@@ -57,6 +57,7 @@ module PulpPythonClient
57
57
  # @option opts [Object] :license_file
58
58
  # @option opts [String] :sha256 The SHA256 digest of this package. (default to '')
59
59
  # @option opts [String] :metadata_sha256 The SHA256 digest of the package&#39;s METADATA file.
60
+ # @option opts [Object] :attestations
60
61
  # @return [AsyncOperationResponse]
61
62
  def create(relative_path, opts = {})
62
63
  data, _status_code, _headers = create_with_http_info(relative_path, opts)
@@ -101,6 +102,7 @@ module PulpPythonClient
101
102
  # @option opts [Object] :license_file
102
103
  # @option opts [String] :sha256 The SHA256 digest of this package. (default to '')
103
104
  # @option opts [String] :metadata_sha256 The SHA256 digest of the package&#39;s METADATA file.
105
+ # @option opts [Object] :attestations
104
106
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
105
107
  def create_with_http_info(relative_path, opts = {})
106
108
  if @api_client.config.debugging
@@ -179,6 +181,7 @@ module PulpPythonClient
179
181
  form_params['license_file'] = opts[:'license_file'] if !opts[:'license_file'].nil?
180
182
  form_params['sha256'] = opts[:'sha256'] if !opts[:'sha256'].nil?
181
183
  form_params['metadata_sha256'] = opts[:'metadata_sha256'] if !opts[:'metadata_sha256'].nil?
184
+ form_params['attestations'] = opts[:'attestations'] if !opts[:'attestations'].nil?
182
185
 
183
186
  # http body (model)
184
187
  post_body = opts[:debug_body]
@@ -221,7 +224,7 @@ module PulpPythonClient
221
224
  # @option opts [String] :name Filter results where name matches value
222
225
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
223
226
  # @option opts [Integer] :offset The initial index from which to return the results.
224
- # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;author&#x60; - Author * &#x60;-author&#x60; - Author (descending) * &#x60;author_email&#x60; - Author email * &#x60;-author_email&#x60; - Author email (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;home_page&#x60; - Home page * &#x60;-home_page&#x60; - Home page (descending) * &#x60;keywords&#x60; - Keywords * &#x60;-keywords&#x60; - Keywords (descending) * &#x60;license&#x60; - License * &#x60;-license&#x60; - License (descending) * &#x60;metadata_version&#x60; - Metadata version * &#x60;-metadata_version&#x60; - Metadata version (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;platform&#x60; - Platform * &#x60;-platform&#x60; - Platform (descending) * &#x60;summary&#x60; - Summary * &#x60;-summary&#x60; - Summary (descending) * &#x60;version&#x60; - Version * &#x60;-version&#x60; - Version (descending) * &#x60;classifiers&#x60; - Classifiers * &#x60;-classifiers&#x60; - Classifiers (descending) * &#x60;download_url&#x60; - Download url * &#x60;-download_url&#x60; - Download url (descending) * &#x60;supported_platform&#x60; - Supported platform * &#x60;-supported_platform&#x60; - Supported platform (descending) * &#x60;maintainer&#x60; - Maintainer * &#x60;-maintainer&#x60; - Maintainer (descending) * &#x60;maintainer_email&#x60; - Maintainer email * &#x60;-maintainer_email&#x60; - Maintainer email (descending) * &#x60;obsoletes_dist&#x60; - Obsoletes dist * &#x60;-obsoletes_dist&#x60; - Obsoletes dist (descending) * &#x60;project_url&#x60; - Project url * &#x60;-project_url&#x60; - Project url (descending) * &#x60;project_urls&#x60; - Project urls * &#x60;-project_urls&#x60; - Project urls (descending) * &#x60;provides_dist&#x60; - Provides dist * &#x60;-provides_dist&#x60; - Provides dist (descending) * &#x60;requires_external&#x60; - Requires external * &#x60;-requires_external&#x60; - Requires external (descending) * &#x60;requires_dist&#x60; - Requires dist * &#x60;-requires_dist&#x60; - Requires dist (descending) * &#x60;requires_python&#x60; - Requires python * &#x60;-requires_python&#x60; - Requires python (descending) * &#x60;description_content_type&#x60; - Description content type * &#x60;-description_content_type&#x60; - Description content type (descending) * &#x60;provides_extras&#x60; - Provides extras * &#x60;-provides_extras&#x60; - Provides extras (descending) * &#x60;dynamic&#x60; - Dynamic * &#x60;-dynamic&#x60; - Dynamic (descending) * &#x60;license_expression&#x60; - License expression * &#x60;-license_expression&#x60; - License expression (descending) * &#x60;license_file&#x60; - License file * &#x60;-license_file&#x60; - License file (descending) * &#x60;filename&#x60; - Filename * &#x60;-filename&#x60; - Filename (descending) * &#x60;packagetype&#x60; - Packagetype * &#x60;-packagetype&#x60; - Packagetype (descending) * &#x60;python_version&#x60; - Python version * &#x60;-python_version&#x60; - Python version (descending) * &#x60;sha256&#x60; - Sha256 * &#x60;-sha256&#x60; - Sha256 (descending) * &#x60;metadata_sha256&#x60; - Metadata sha256 * &#x60;-metadata_sha256&#x60; - Metadata sha256 (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
227
+ # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;author&#x60; - Author * &#x60;-author&#x60; - Author (descending) * &#x60;author_email&#x60; - Author email * &#x60;-author_email&#x60; - Author email (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;home_page&#x60; - Home page * &#x60;-home_page&#x60; - Home page (descending) * &#x60;keywords&#x60; - Keywords * &#x60;-keywords&#x60; - Keywords (descending) * &#x60;license&#x60; - License * &#x60;-license&#x60; - License (descending) * &#x60;metadata_version&#x60; - Metadata version * &#x60;-metadata_version&#x60; - Metadata version (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;platform&#x60; - Platform * &#x60;-platform&#x60; - Platform (descending) * &#x60;summary&#x60; - Summary * &#x60;-summary&#x60; - Summary (descending) * &#x60;version&#x60; - Version * &#x60;-version&#x60; - Version (descending) * &#x60;classifiers&#x60; - Classifiers * &#x60;-classifiers&#x60; - Classifiers (descending) * &#x60;download_url&#x60; - Download url * &#x60;-download_url&#x60; - Download url (descending) * &#x60;supported_platform&#x60; - Supported platform * &#x60;-supported_platform&#x60; - Supported platform (descending) * &#x60;maintainer&#x60; - Maintainer * &#x60;-maintainer&#x60; - Maintainer (descending) * &#x60;maintainer_email&#x60; - Maintainer email * &#x60;-maintainer_email&#x60; - Maintainer email (descending) * &#x60;obsoletes_dist&#x60; - Obsoletes dist * &#x60;-obsoletes_dist&#x60; - Obsoletes dist (descending) * &#x60;project_url&#x60; - Project url * &#x60;-project_url&#x60; - Project url (descending) * &#x60;project_urls&#x60; - Project urls * &#x60;-project_urls&#x60; - Project urls (descending) * &#x60;provides_dist&#x60; - Provides dist * &#x60;-provides_dist&#x60; - Provides dist (descending) * &#x60;requires_external&#x60; - Requires external * &#x60;-requires_external&#x60; - Requires external (descending) * &#x60;requires_dist&#x60; - Requires dist * &#x60;-requires_dist&#x60; - Requires dist (descending) * &#x60;requires_python&#x60; - Requires python * &#x60;-requires_python&#x60; - Requires python (descending) * &#x60;description_content_type&#x60; - Description content type * &#x60;-description_content_type&#x60; - Description content type (descending) * &#x60;provides_extras&#x60; - Provides extras * &#x60;-provides_extras&#x60; - Provides extras (descending) * &#x60;dynamic&#x60; - Dynamic * &#x60;-dynamic&#x60; - Dynamic (descending) * &#x60;license_expression&#x60; - License expression * &#x60;-license_expression&#x60; - License expression (descending) * &#x60;license_file&#x60; - License file * &#x60;-license_file&#x60; - License file (descending) * &#x60;filename&#x60; - Filename * &#x60;-filename&#x60; - Filename (descending) * &#x60;packagetype&#x60; - Packagetype * &#x60;-packagetype&#x60; - Packagetype (descending) * &#x60;python_version&#x60; - Python version * &#x60;-python_version&#x60; - Python version (descending) * &#x60;sha256&#x60; - Sha256 * &#x60;-sha256&#x60; - Sha256 (descending) * &#x60;metadata_sha256&#x60; - Metadata sha256 * &#x60;-metadata_sha256&#x60; - Metadata sha256 (descending) * &#x60;size&#x60; - Size * &#x60;-size&#x60; - Size (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
225
228
  # @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
226
229
  # @option opts [String] :packagetype Filter results where packagetype matches value * &#x60;bdist_dmg&#x60; - bdist_dmg * &#x60;bdist_dumb&#x60; - bdist_dumb * &#x60;bdist_egg&#x60; - bdist_egg * &#x60;bdist_msi&#x60; - bdist_msi * &#x60;bdist_rpm&#x60; - bdist_rpm * &#x60;bdist_wheel&#x60; - bdist_wheel * &#x60;bdist_wininst&#x60; - bdist_wininst * &#x60;sdist&#x60; - sdist
227
230
  # @option opts [Array<String>] :packagetype__in Filter results where packagetype is in a comma-separated list of values
@@ -266,7 +269,7 @@ module PulpPythonClient
266
269
  # @option opts [String] :name Filter results where name matches value
267
270
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
268
271
  # @option opts [Integer] :offset The initial index from which to return the results.
269
- # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;author&#x60; - Author * &#x60;-author&#x60; - Author (descending) * &#x60;author_email&#x60; - Author email * &#x60;-author_email&#x60; - Author email (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;home_page&#x60; - Home page * &#x60;-home_page&#x60; - Home page (descending) * &#x60;keywords&#x60; - Keywords * &#x60;-keywords&#x60; - Keywords (descending) * &#x60;license&#x60; - License * &#x60;-license&#x60; - License (descending) * &#x60;metadata_version&#x60; - Metadata version * &#x60;-metadata_version&#x60; - Metadata version (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;platform&#x60; - Platform * &#x60;-platform&#x60; - Platform (descending) * &#x60;summary&#x60; - Summary * &#x60;-summary&#x60; - Summary (descending) * &#x60;version&#x60; - Version * &#x60;-version&#x60; - Version (descending) * &#x60;classifiers&#x60; - Classifiers * &#x60;-classifiers&#x60; - Classifiers (descending) * &#x60;download_url&#x60; - Download url * &#x60;-download_url&#x60; - Download url (descending) * &#x60;supported_platform&#x60; - Supported platform * &#x60;-supported_platform&#x60; - Supported platform (descending) * &#x60;maintainer&#x60; - Maintainer * &#x60;-maintainer&#x60; - Maintainer (descending) * &#x60;maintainer_email&#x60; - Maintainer email * &#x60;-maintainer_email&#x60; - Maintainer email (descending) * &#x60;obsoletes_dist&#x60; - Obsoletes dist * &#x60;-obsoletes_dist&#x60; - Obsoletes dist (descending) * &#x60;project_url&#x60; - Project url * &#x60;-project_url&#x60; - Project url (descending) * &#x60;project_urls&#x60; - Project urls * &#x60;-project_urls&#x60; - Project urls (descending) * &#x60;provides_dist&#x60; - Provides dist * &#x60;-provides_dist&#x60; - Provides dist (descending) * &#x60;requires_external&#x60; - Requires external * &#x60;-requires_external&#x60; - Requires external (descending) * &#x60;requires_dist&#x60; - Requires dist * &#x60;-requires_dist&#x60; - Requires dist (descending) * &#x60;requires_python&#x60; - Requires python * &#x60;-requires_python&#x60; - Requires python (descending) * &#x60;description_content_type&#x60; - Description content type * &#x60;-description_content_type&#x60; - Description content type (descending) * &#x60;provides_extras&#x60; - Provides extras * &#x60;-provides_extras&#x60; - Provides extras (descending) * &#x60;dynamic&#x60; - Dynamic * &#x60;-dynamic&#x60; - Dynamic (descending) * &#x60;license_expression&#x60; - License expression * &#x60;-license_expression&#x60; - License expression (descending) * &#x60;license_file&#x60; - License file * &#x60;-license_file&#x60; - License file (descending) * &#x60;filename&#x60; - Filename * &#x60;-filename&#x60; - Filename (descending) * &#x60;packagetype&#x60; - Packagetype * &#x60;-packagetype&#x60; - Packagetype (descending) * &#x60;python_version&#x60; - Python version * &#x60;-python_version&#x60; - Python version (descending) * &#x60;sha256&#x60; - Sha256 * &#x60;-sha256&#x60; - Sha256 (descending) * &#x60;metadata_sha256&#x60; - Metadata sha256 * &#x60;-metadata_sha256&#x60; - Metadata sha256 (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
272
+ # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;author&#x60; - Author * &#x60;-author&#x60; - Author (descending) * &#x60;author_email&#x60; - Author email * &#x60;-author_email&#x60; - Author email (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;home_page&#x60; - Home page * &#x60;-home_page&#x60; - Home page (descending) * &#x60;keywords&#x60; - Keywords * &#x60;-keywords&#x60; - Keywords (descending) * &#x60;license&#x60; - License * &#x60;-license&#x60; - License (descending) * &#x60;metadata_version&#x60; - Metadata version * &#x60;-metadata_version&#x60; - Metadata version (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;platform&#x60; - Platform * &#x60;-platform&#x60; - Platform (descending) * &#x60;summary&#x60; - Summary * &#x60;-summary&#x60; - Summary (descending) * &#x60;version&#x60; - Version * &#x60;-version&#x60; - Version (descending) * &#x60;classifiers&#x60; - Classifiers * &#x60;-classifiers&#x60; - Classifiers (descending) * &#x60;download_url&#x60; - Download url * &#x60;-download_url&#x60; - Download url (descending) * &#x60;supported_platform&#x60; - Supported platform * &#x60;-supported_platform&#x60; - Supported platform (descending) * &#x60;maintainer&#x60; - Maintainer * &#x60;-maintainer&#x60; - Maintainer (descending) * &#x60;maintainer_email&#x60; - Maintainer email * &#x60;-maintainer_email&#x60; - Maintainer email (descending) * &#x60;obsoletes_dist&#x60; - Obsoletes dist * &#x60;-obsoletes_dist&#x60; - Obsoletes dist (descending) * &#x60;project_url&#x60; - Project url * &#x60;-project_url&#x60; - Project url (descending) * &#x60;project_urls&#x60; - Project urls * &#x60;-project_urls&#x60; - Project urls (descending) * &#x60;provides_dist&#x60; - Provides dist * &#x60;-provides_dist&#x60; - Provides dist (descending) * &#x60;requires_external&#x60; - Requires external * &#x60;-requires_external&#x60; - Requires external (descending) * &#x60;requires_dist&#x60; - Requires dist * &#x60;-requires_dist&#x60; - Requires dist (descending) * &#x60;requires_python&#x60; - Requires python * &#x60;-requires_python&#x60; - Requires python (descending) * &#x60;description_content_type&#x60; - Description content type * &#x60;-description_content_type&#x60; - Description content type (descending) * &#x60;provides_extras&#x60; - Provides extras * &#x60;-provides_extras&#x60; - Provides extras (descending) * &#x60;dynamic&#x60; - Dynamic * &#x60;-dynamic&#x60; - Dynamic (descending) * &#x60;license_expression&#x60; - License expression * &#x60;-license_expression&#x60; - License expression (descending) * &#x60;license_file&#x60; - License file * &#x60;-license_file&#x60; - License file (descending) * &#x60;filename&#x60; - Filename * &#x60;-filename&#x60; - Filename (descending) * &#x60;packagetype&#x60; - Packagetype * &#x60;-packagetype&#x60; - Packagetype (descending) * &#x60;python_version&#x60; - Python version * &#x60;-python_version&#x60; - Python version (descending) * &#x60;sha256&#x60; - Sha256 * &#x60;-sha256&#x60; - Sha256 (descending) * &#x60;metadata_sha256&#x60; - Metadata sha256 * &#x60;-metadata_sha256&#x60; - Metadata sha256 (descending) * &#x60;size&#x60; - Size * &#x60;-size&#x60; - Size (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
270
273
  # @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
271
274
  # @option opts [String] :packagetype Filter results where packagetype matches value * &#x60;bdist_dmg&#x60; - bdist_dmg * &#x60;bdist_dumb&#x60; - bdist_dumb * &#x60;bdist_egg&#x60; - bdist_egg * &#x60;bdist_msi&#x60; - bdist_msi * &#x60;bdist_rpm&#x60; - bdist_rpm * &#x60;bdist_wheel&#x60; - bdist_wheel * &#x60;bdist_wininst&#x60; - bdist_wininst * &#x60;sdist&#x60; - sdist
272
275
  # @option opts [Array<String>] :packagetype__in Filter results where packagetype is in a comma-separated list of values
@@ -295,7 +298,7 @@ module PulpPythonClient
295
298
  if @api_client.config.debugging
296
299
  @api_client.config.logger.debug 'Calling API: ContentPackagesApi.list ...'
297
300
  end
298
- allowable_values = ["-author", "-author_email", "-classifiers", "-description", "-description_content_type", "-download_url", "-dynamic", "-filename", "-home_page", "-keywords", "-license", "-license_expression", "-license_file", "-maintainer", "-maintainer_email", "-metadata_sha256", "-metadata_version", "-name", "-obsoletes_dist", "-packagetype", "-pk", "-platform", "-project_url", "-project_urls", "-provides_dist", "-provides_extras", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-python_version", "-requires_dist", "-requires_external", "-requires_python", "-sha256", "-summary", "-supported_platform", "-timestamp_of_interest", "-upstream_id", "-version", "author", "author_email", "classifiers", "description", "description_content_type", "download_url", "dynamic", "filename", "home_page", "keywords", "license", "license_expression", "license_file", "maintainer", "maintainer_email", "metadata_sha256", "metadata_version", "name", "obsoletes_dist", "packagetype", "pk", "platform", "project_url", "project_urls", "provides_dist", "provides_extras", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "python_version", "requires_dist", "requires_external", "requires_python", "sha256", "summary", "supported_platform", "timestamp_of_interest", "upstream_id", "version"]
301
+ allowable_values = ["-author", "-author_email", "-classifiers", "-description", "-description_content_type", "-download_url", "-dynamic", "-filename", "-home_page", "-keywords", "-license", "-license_expression", "-license_file", "-maintainer", "-maintainer_email", "-metadata_sha256", "-metadata_version", "-name", "-obsoletes_dist", "-packagetype", "-pk", "-platform", "-project_url", "-project_urls", "-provides_dist", "-provides_extras", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-python_version", "-requires_dist", "-requires_external", "-requires_python", "-sha256", "-size", "-summary", "-supported_platform", "-timestamp_of_interest", "-upstream_id", "-version", "author", "author_email", "classifiers", "description", "description_content_type", "download_url", "dynamic", "filename", "home_page", "keywords", "license", "license_expression", "license_file", "maintainer", "maintainer_email", "metadata_sha256", "metadata_version", "name", "obsoletes_dist", "packagetype", "pk", "platform", "project_url", "project_urls", "provides_dist", "provides_extras", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "python_version", "requires_dist", "requires_external", "requires_python", "sha256", "size", "summary", "supported_platform", "timestamp_of_interest", "upstream_id", "version"]
299
302
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
300
303
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
301
304
  end
@@ -641,6 +644,7 @@ module PulpPythonClient
641
644
  # @option opts [Object] :license_file
642
645
  # @option opts [String] :sha256 The SHA256 digest of this package. (default to '')
643
646
  # @option opts [String] :metadata_sha256 The SHA256 digest of the package&#39;s METADATA file.
647
+ # @option opts [Object] :attestations
644
648
  # @return [PythonPythonPackageContentResponse]
645
649
  def upload(opts = {})
646
650
  data, _status_code, _headers = upload_with_http_info(opts)
@@ -683,6 +687,7 @@ module PulpPythonClient
683
687
  # @option opts [Object] :license_file
684
688
  # @option opts [String] :sha256 The SHA256 digest of this package. (default to '')
685
689
  # @option opts [String] :metadata_sha256 The SHA256 digest of the package&#39;s METADATA file.
690
+ # @option opts [Object] :attestations
686
691
  # @return [Array<(PythonPythonPackageContentResponse, Integer, Hash)>] PythonPythonPackageContentResponse data, response status code and response headers
687
692
  def upload_with_http_info(opts = {})
688
693
  if @api_client.config.debugging
@@ -751,6 +756,7 @@ module PulpPythonClient
751
756
  form_params['license_file'] = opts[:'license_file'] if !opts[:'license_file'].nil?
752
757
  form_params['sha256'] = opts[:'sha256'] if !opts[:'sha256'].nil?
753
758
  form_params['metadata_sha256'] = opts[:'metadata_sha256'] if !opts[:'metadata_sha256'].nil?
759
+ form_params['attestations'] = opts[:'attestations'] if !opts[:'attestations'].nil?
754
760
 
755
761
  # http body (model)
756
762
  post_body = opts[:debug_body]