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.
- checksums.yaml +4 -4
- data/README.md +18 -5
- data/docs/ContentPackagesApi.md +8 -4
- 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/PatchedpythonPythonDistribution.md +2 -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/PythonPythonDistribution.md +2 -0
- data/docs/PythonPythonDistributionResponse.md +2 -0
- data/docs/PythonPythonPackageContentResponse.md +5 -1
- data/docs/PythonPythonRemote.md +3 -1
- data/docs/PythonPythonRemoteResponse.md +3 -1
- data/docs/RepositoriesPythonVersionsApi.md +75 -0
- data/lib/pulp_python_client/api/content_packages_api.rb +9 -3
- 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/api/repositories_python_versions_api.rb +66 -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_distribution.rb +12 -1
- 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_distribution.rb +12 -1
- data/lib/pulp_python_client/models/python_python_distribution_response.rb +12 -1
- data/lib/pulp_python_client/models/python_python_package_content_response.rb +25 -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 +3 -1
- 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/api/repositories_python_versions_api_spec.rb +13 -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_distribution_spec.rb +6 -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_distribution_response_spec.rb +6 -0
- data/spec/models/python_python_distribution_spec.rb +6 -0
- data/spec/models/python_python_package_content_response_spec.rb +12 -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
|
@@ -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
|
+
|
data/docs/PypiLegacyApi.md
CHANGED
|
@@ -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<String>**](String.md) | List of profilers to use on tasks. | [optional] |
|
|
74
78
|
| **action** | **String** | Defaults to `file_upload`, don't change it or request will fail! | [optional][default to 'file_upload'] |
|
|
79
|
+
| **protocol_version** | [**ProtocolVersionEnum**](ProtocolVersionEnum.md) | Protocol version to use for the upload. Only version 1 is supported. * `1` - 1 | [optional] |
|
|
80
|
+
| **filetype** | [**FiletypeEnum**](FiletypeEnum.md) | Type of artifact to upload. * `bdist_wheel` - bdist_wheel * `sdist` - sdist | [optional] |
|
|
81
|
+
| **metadata_version** | [**MetadataVersionEnum**](MetadataVersionEnum.md) | 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 | [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<String>**](String.md) | List of profilers to use on tasks. | [optional] |
|
|
76
|
+
| **fields** | [**Array<String>**](String.md) | A list of fields to include in the response. | [optional] |
|
|
77
|
+
| **exclude_fields** | [**Array<String>**](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
|
+
|
data/docs/PypiSimpleApi.md
CHANGED
|
@@ -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<String>**](String.md) | List of profilers to use on tasks. | [optional] |
|
|
76
80
|
| **action** | **String** | Defaults to `file_upload`, don't change it or request will fail! | [optional][default to 'file_upload'] |
|
|
81
|
+
| **protocol_version** | [**ProtocolVersionEnum**](ProtocolVersionEnum.md) | Protocol version to use for the upload. Only version 1 is supported. * `1` - 1 | [optional] |
|
|
82
|
+
| **filetype** | [**FiletypeEnum**](FiletypeEnum.md) | Type of artifact to upload. * `bdist_wheel` - bdist_wheel * `sdist` - sdist | [optional] |
|
|
83
|
+
| **metadata_version** | [**MetadataVersionEnum**](MetadataVersionEnum.md) | 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 | [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<String, String>** | 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, `rawhide` and `stable`. | |
|
|
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, `rawhide` and `stable`. | |
|
|
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 ''] |
|
|
46
47
|
| **metadata_sha256** | **String** | The SHA256 digest of the package'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
|
|
data/docs/PythonPythonRemote.md
CHANGED
|
@@ -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::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<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::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<String>**](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'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'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 * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `author` - Author * `-author` - Author (descending) * `author_email` - Author email * `-author_email` - Author email (descending) * `description` - Description * `-description` - Description (descending) * `home_page` - Home page * `-home_page` - Home page (descending) * `keywords` - Keywords * `-keywords` - Keywords (descending) * `license` - License * `-license` - License (descending) * `metadata_version` - Metadata version * `-metadata_version` - Metadata version (descending) * `name` - Name * `-name` - Name (descending) * `platform` - Platform * `-platform` - Platform (descending) * `summary` - Summary * `-summary` - Summary (descending) * `version` - Version * `-version` - Version (descending) * `classifiers` - Classifiers * `-classifiers` - Classifiers (descending) * `download_url` - Download url * `-download_url` - Download url (descending) * `supported_platform` - Supported platform * `-supported_platform` - Supported platform (descending) * `maintainer` - Maintainer * `-maintainer` - Maintainer (descending) * `maintainer_email` - Maintainer email * `-maintainer_email` - Maintainer email (descending) * `obsoletes_dist` - Obsoletes dist * `-obsoletes_dist` - Obsoletes dist (descending) * `project_url` - Project url * `-project_url` - Project url (descending) * `project_urls` - Project urls * `-project_urls` - Project urls (descending) * `provides_dist` - Provides dist * `-provides_dist` - Provides dist (descending) * `requires_external` - Requires external * `-requires_external` - Requires external (descending) * `requires_dist` - Requires dist * `-requires_dist` - Requires dist (descending) * `requires_python` - Requires python * `-requires_python` - Requires python (descending) * `description_content_type` - Description content type * `-description_content_type` - Description content type (descending) * `provides_extras` - Provides extras * `-provides_extras` - Provides extras (descending) * `dynamic` - Dynamic * `-dynamic` - Dynamic (descending) * `license_expression` - License expression * `-license_expression` - License expression (descending) * `license_file` - License file * `-license_file` - License file (descending) * `filename` - Filename * `-filename` - Filename (descending) * `packagetype` - Packagetype * `-packagetype` - Packagetype (descending) * `python_version` - Python version * `-python_version` - Python version (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `metadata_sha256` - Metadata sha256 * `-metadata_sha256` - Metadata sha256 (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
227
|
+
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `author` - Author * `-author` - Author (descending) * `author_email` - Author email * `-author_email` - Author email (descending) * `description` - Description * `-description` - Description (descending) * `home_page` - Home page * `-home_page` - Home page (descending) * `keywords` - Keywords * `-keywords` - Keywords (descending) * `license` - License * `-license` - License (descending) * `metadata_version` - Metadata version * `-metadata_version` - Metadata version (descending) * `name` - Name * `-name` - Name (descending) * `platform` - Platform * `-platform` - Platform (descending) * `summary` - Summary * `-summary` - Summary (descending) * `version` - Version * `-version` - Version (descending) * `classifiers` - Classifiers * `-classifiers` - Classifiers (descending) * `download_url` - Download url * `-download_url` - Download url (descending) * `supported_platform` - Supported platform * `-supported_platform` - Supported platform (descending) * `maintainer` - Maintainer * `-maintainer` - Maintainer (descending) * `maintainer_email` - Maintainer email * `-maintainer_email` - Maintainer email (descending) * `obsoletes_dist` - Obsoletes dist * `-obsoletes_dist` - Obsoletes dist (descending) * `project_url` - Project url * `-project_url` - Project url (descending) * `project_urls` - Project urls * `-project_urls` - Project urls (descending) * `provides_dist` - Provides dist * `-provides_dist` - Provides dist (descending) * `requires_external` - Requires external * `-requires_external` - Requires external (descending) * `requires_dist` - Requires dist * `-requires_dist` - Requires dist (descending) * `requires_python` - Requires python * `-requires_python` - Requires python (descending) * `description_content_type` - Description content type * `-description_content_type` - Description content type (descending) * `provides_extras` - Provides extras * `-provides_extras` - Provides extras (descending) * `dynamic` - Dynamic * `-dynamic` - Dynamic (descending) * `license_expression` - License expression * `-license_expression` - License expression (descending) * `license_file` - License file * `-license_file` - License file (descending) * `filename` - Filename * `-filename` - Filename (descending) * `packagetype` - Packagetype * `-packagetype` - Packagetype (descending) * `python_version` - Python version * `-python_version` - Python version (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `metadata_sha256` - Metadata sha256 * `-metadata_sha256` - Metadata sha256 (descending) * `size` - Size * `-size` - Size (descending) * `pk` - Pk * `-pk` - 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 * `bdist_dmg` - bdist_dmg * `bdist_dumb` - bdist_dumb * `bdist_egg` - bdist_egg * `bdist_msi` - bdist_msi * `bdist_rpm` - bdist_rpm * `bdist_wheel` - bdist_wheel * `bdist_wininst` - bdist_wininst * `sdist` - 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 * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `author` - Author * `-author` - Author (descending) * `author_email` - Author email * `-author_email` - Author email (descending) * `description` - Description * `-description` - Description (descending) * `home_page` - Home page * `-home_page` - Home page (descending) * `keywords` - Keywords * `-keywords` - Keywords (descending) * `license` - License * `-license` - License (descending) * `metadata_version` - Metadata version * `-metadata_version` - Metadata version (descending) * `name` - Name * `-name` - Name (descending) * `platform` - Platform * `-platform` - Platform (descending) * `summary` - Summary * `-summary` - Summary (descending) * `version` - Version * `-version` - Version (descending) * `classifiers` - Classifiers * `-classifiers` - Classifiers (descending) * `download_url` - Download url * `-download_url` - Download url (descending) * `supported_platform` - Supported platform * `-supported_platform` - Supported platform (descending) * `maintainer` - Maintainer * `-maintainer` - Maintainer (descending) * `maintainer_email` - Maintainer email * `-maintainer_email` - Maintainer email (descending) * `obsoletes_dist` - Obsoletes dist * `-obsoletes_dist` - Obsoletes dist (descending) * `project_url` - Project url * `-project_url` - Project url (descending) * `project_urls` - Project urls * `-project_urls` - Project urls (descending) * `provides_dist` - Provides dist * `-provides_dist` - Provides dist (descending) * `requires_external` - Requires external * `-requires_external` - Requires external (descending) * `requires_dist` - Requires dist * `-requires_dist` - Requires dist (descending) * `requires_python` - Requires python * `-requires_python` - Requires python (descending) * `description_content_type` - Description content type * `-description_content_type` - Description content type (descending) * `provides_extras` - Provides extras * `-provides_extras` - Provides extras (descending) * `dynamic` - Dynamic * `-dynamic` - Dynamic (descending) * `license_expression` - License expression * `-license_expression` - License expression (descending) * `license_file` - License file * `-license_file` - License file (descending) * `filename` - Filename * `-filename` - Filename (descending) * `packagetype` - Packagetype * `-packagetype` - Packagetype (descending) * `python_version` - Python version * `-python_version` - Python version (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `metadata_sha256` - Metadata sha256 * `-metadata_sha256` - Metadata sha256 (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
272
|
+
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `author` - Author * `-author` - Author (descending) * `author_email` - Author email * `-author_email` - Author email (descending) * `description` - Description * `-description` - Description (descending) * `home_page` - Home page * `-home_page` - Home page (descending) * `keywords` - Keywords * `-keywords` - Keywords (descending) * `license` - License * `-license` - License (descending) * `metadata_version` - Metadata version * `-metadata_version` - Metadata version (descending) * `name` - Name * `-name` - Name (descending) * `platform` - Platform * `-platform` - Platform (descending) * `summary` - Summary * `-summary` - Summary (descending) * `version` - Version * `-version` - Version (descending) * `classifiers` - Classifiers * `-classifiers` - Classifiers (descending) * `download_url` - Download url * `-download_url` - Download url (descending) * `supported_platform` - Supported platform * `-supported_platform` - Supported platform (descending) * `maintainer` - Maintainer * `-maintainer` - Maintainer (descending) * `maintainer_email` - Maintainer email * `-maintainer_email` - Maintainer email (descending) * `obsoletes_dist` - Obsoletes dist * `-obsoletes_dist` - Obsoletes dist (descending) * `project_url` - Project url * `-project_url` - Project url (descending) * `project_urls` - Project urls * `-project_urls` - Project urls (descending) * `provides_dist` - Provides dist * `-provides_dist` - Provides dist (descending) * `requires_external` - Requires external * `-requires_external` - Requires external (descending) * `requires_dist` - Requires dist * `-requires_dist` - Requires dist (descending) * `requires_python` - Requires python * `-requires_python` - Requires python (descending) * `description_content_type` - Description content type * `-description_content_type` - Description content type (descending) * `provides_extras` - Provides extras * `-provides_extras` - Provides extras (descending) * `dynamic` - Dynamic * `-dynamic` - Dynamic (descending) * `license_expression` - License expression * `-license_expression` - License expression (descending) * `license_file` - License file * `-license_file` - License file (descending) * `filename` - Filename * `-filename` - Filename (descending) * `packagetype` - Packagetype * `-packagetype` - Packagetype (descending) * `python_version` - Python version * `-python_version` - Python version (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `metadata_sha256` - Metadata sha256 * `-metadata_sha256` - Metadata sha256 (descending) * `size` - Size * `-size` - Size (descending) * `pk` - Pk * `-pk` - 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 * `bdist_dmg` - bdist_dmg * `bdist_dumb` - bdist_dumb * `bdist_egg` - bdist_egg * `bdist_msi` - bdist_msi * `bdist_rpm` - bdist_rpm * `bdist_wheel` - bdist_wheel * `bdist_wininst` - bdist_wininst * `sdist` - 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'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'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]
|