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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 74a133262c5b563a20757c03c07972447ff2018ddecdd45840a0b4fd72a16aa6
4
- data.tar.gz: 82b4f5988740d63345dcfe02ec681933f9cafb3d92c489d074aec0bddd014726
3
+ metadata.gz: eaedb15c33a0adb96f4f9794c2bb392653cb13fe5a292d44ff153eb535a82ae3
4
+ data.tar.gz: 1a315d9b3a3d42071dfc1c854b8604bba7adbccc1c75bb027624c9a3d49dfb24
5
5
  SHA512:
6
- metadata.gz: 91a54c9782e456f50c8981d182ad829d4e324ca50475156321ca307ec57c15128619d13935f116d7725a8cb786b385e6671f6ee7444056f5c88abb5d453fe4fd
7
- data.tar.gz: 8e603c83175ead0c6bb8ee5be64e2e6f8adecc92f47506d217cecf6beaf5354297b2c66809d8f9129e23392d746004fc8d3866dbd9ee9a51d6ca570f622b2fb3
6
+ metadata.gz: '0051969400b005329c29a4d5ac3b177cee4a11b53c33ed80aceb06bd5a5662cece827c1d5722fbeca72c8dc83e9fbf1a67829982f6d799d9c37b31ee4217cdc6'
7
+ data.tar.gz: 01636a659458d89567d60a73c11d9456b8c8bfad39d90fb160ac27092c01b50d9ac4f1884a9be4d8d0dc67a7f316ee98c08e3c84f54ccdef77bcb63e580a9955
data/README.md CHANGED
@@ -7,7 +7,7 @@ Fetch, Upload, Organize, and Distribute Software Packages
7
7
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
8
8
 
9
9
  - API version: v3
10
- - Package version: 3.20.1
10
+ - Package version: 3.22.0
11
11
  - Generator version: 7.10.0
12
12
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
13
13
  For more information, please visit [https://pulpproject.org](https://pulpproject.org)
@@ -25,16 +25,16 @@ gem build pulp_python_client.gemspec
25
25
  Then either install the gem locally:
26
26
 
27
27
  ```shell
28
- gem install ./pulp_python_client-3.20.1.gem
28
+ gem install ./pulp_python_client-3.22.0.gem
29
29
  ```
30
30
 
31
- (for development, run `gem install --dev ./pulp_python_client-3.20.1.gem` to install the development dependencies)
31
+ (for development, run `gem install --dev ./pulp_python_client-3.22.0.gem` to install the development dependencies)
32
32
 
33
33
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
34
34
 
35
35
  Finally add this to the Gemfile:
36
36
 
37
- gem 'pulp_python_client', '~> 3.20.1'
37
+ gem 'pulp_python_client', '~> 3.22.0'
38
38
 
39
39
  ### Install from Git
40
40
 
@@ -103,7 +103,8 @@ opts = {
103
103
  license_expression: 'license_expression_example', # String | Text string that is a valid SPDX license expression.
104
104
  license_file: TODO, # Object |
105
105
  sha256: 'sha256_example', # String | The SHA256 digest of this package.
106
- metadata_sha256: 'metadata_sha256_example' # String | The SHA256 digest of the package's METADATA file.
106
+ metadata_sha256: 'metadata_sha256_example', # String | The SHA256 digest of the package's METADATA file.
107
+ attestations: TODO # Object |
107
108
  }
108
109
 
109
110
  begin
@@ -128,6 +129,11 @@ Class | Method | HTTP request | Description
128
129
  *PulpPythonClient::ContentPackagesApi* | [**set_label**](docs/ContentPackagesApi.md#set_label) | **POST** {python_python_package_content_href}set_label/ | Set a label
129
130
  *PulpPythonClient::ContentPackagesApi* | [**unset_label**](docs/ContentPackagesApi.md#unset_label) | **POST** {python_python_package_content_href}unset_label/ | Unset a label
130
131
  *PulpPythonClient::ContentPackagesApi* | [**upload**](docs/ContentPackagesApi.md#upload) | **POST** /pulp/api/v3/content/python/packages/upload/ | Synchronous Python package upload
132
+ *PulpPythonClient::ContentProvenanceApi* | [**create**](docs/ContentProvenanceApi.md#create) | **POST** /pulp/api/v3/content/python/provenance/ | Create a package provenance
133
+ *PulpPythonClient::ContentProvenanceApi* | [**list**](docs/ContentProvenanceApi.md#list) | **GET** /pulp/api/v3/content/python/provenance/ | List package provenances
134
+ *PulpPythonClient::ContentProvenanceApi* | [**read**](docs/ContentProvenanceApi.md#read) | **GET** {python_package_provenance_href} | Inspect a package provenance
135
+ *PulpPythonClient::ContentProvenanceApi* | [**set_label**](docs/ContentProvenanceApi.md#set_label) | **POST** {python_package_provenance_href}set_label/ | Set a label
136
+ *PulpPythonClient::ContentProvenanceApi* | [**unset_label**](docs/ContentProvenanceApi.md#unset_label) | **POST** {python_package_provenance_href}unset_label/ | Unset a label
131
137
  *PulpPythonClient::DistributionsPypiApi* | [**add_role**](docs/DistributionsPypiApi.md#add_role) | **POST** {python_python_distribution_href}add_role/ | Add a role
132
138
  *PulpPythonClient::DistributionsPypiApi* | [**create**](docs/DistributionsPypiApi.md#create) | **POST** /pulp/api/v3/distributions/python/pypi/ | Create a python distribution
133
139
  *PulpPythonClient::DistributionsPypiApi* | [**delete**](docs/DistributionsPypiApi.md#delete) | **DELETE** {python_python_distribution_href} | Delete a python distribution
@@ -151,6 +157,7 @@ Class | Method | HTTP request | Description
151
157
  *PulpPythonClient::PypiApi* | [**read**](docs/PypiApi.md#read) | **GET** /pypi/{path}/ | Get index summary
152
158
  *PulpPythonClient::PypiLegacyApi* | [**create**](docs/PypiLegacyApi.md#create) | **POST** /pypi/{path}/legacy/ | Upload a package
153
159
  *PulpPythonClient::PypiMetadataApi* | [**read**](docs/PypiMetadataApi.md#read) | **GET** /pypi/{path}/pypi/{meta}/ | Get package metadata
160
+ *PulpPythonClient::PypiProvenanceApi* | [**read**](docs/PypiProvenanceApi.md#read) | **GET** /pypi/{path}/integrity/{package}/{version}/{filename}/provenance/ | Get package provenance
154
161
  *PulpPythonClient::PypiSimpleApi* | [**create**](docs/PypiSimpleApi.md#create) | **POST** /pypi/{path}/simple/ | Upload a package
155
162
  *PulpPythonClient::PypiSimpleApi* | [**pypi_simple_package_read**](docs/PypiSimpleApi.md#pypi_simple_package_read) | **GET** /pypi/{path}/simple/{package}/ | Get package simple page
156
163
  *PulpPythonClient::PypiSimpleApi* | [**read**](docs/PypiSimpleApi.md#read) | **GET** /pypi/{path}/simple/ | Get index simple page
@@ -186,6 +193,7 @@ Class | Method | HTTP request | Description
186
193
  *PulpPythonClient::RepositoriesPythonVersionsApi* | [**list**](docs/RepositoriesPythonVersionsApi.md#list) | **GET** {python_python_repository_href}versions/ | List repository versions
187
194
  *PulpPythonClient::RepositoriesPythonVersionsApi* | [**read**](docs/RepositoriesPythonVersionsApi.md#read) | **GET** {python_python_repository_version_href} | Inspect a repository version
188
195
  *PulpPythonClient::RepositoriesPythonVersionsApi* | [**repair**](docs/RepositoriesPythonVersionsApi.md#repair) | **POST** {python_python_repository_version_href}repair/ |
196
+ *PulpPythonClient::RepositoriesPythonVersionsApi* | [**scan**](docs/RepositoriesPythonVersionsApi.md#scan) | **POST** {python_python_repository_version_href}scan/ | Generate vulnerability report
189
197
 
190
198
 
191
199
  ## Documentation for Models
@@ -193,6 +201,8 @@ Class | Method | HTTP request | Description
193
201
  - [PulpPythonClient::AsyncOperationResponse](docs/AsyncOperationResponse.md)
194
202
  - [PulpPythonClient::ContentSummaryResponse](docs/ContentSummaryResponse.md)
195
203
  - [PulpPythonClient::ExcludePlatformsEnum](docs/ExcludePlatformsEnum.md)
204
+ - [PulpPythonClient::FiletypeEnum](docs/FiletypeEnum.md)
205
+ - [PulpPythonClient::MetadataVersionEnum](docs/MetadataVersionEnum.md)
196
206
  - [PulpPythonClient::MyPermissionsResponse](docs/MyPermissionsResponse.md)
197
207
  - [PulpPythonClient::NestedRole](docs/NestedRole.md)
198
208
  - [PulpPythonClient::NestedRoleResponse](docs/NestedRoleResponse.md)
@@ -201,6 +211,7 @@ Class | Method | HTTP request | Description
201
211
  - [PulpPythonClient::PackageTypesEnum](docs/PackageTypesEnum.md)
202
212
  - [PulpPythonClient::PackageUploadTaskResponse](docs/PackageUploadTaskResponse.md)
203
213
  - [PulpPythonClient::PaginatedRepositoryVersionResponseList](docs/PaginatedRepositoryVersionResponseList.md)
214
+ - [PulpPythonClient::PaginatedpythonPackageProvenanceResponseList](docs/PaginatedpythonPackageProvenanceResponseList.md)
204
215
  - [PulpPythonClient::PaginatedpythonPythonDistributionResponseList](docs/PaginatedpythonPythonDistributionResponseList.md)
205
216
  - [PulpPythonClient::PaginatedpythonPythonPackageContentResponseList](docs/PaginatedpythonPythonPackageContentResponseList.md)
206
217
  - [PulpPythonClient::PaginatedpythonPythonPublicationResponseList](docs/PaginatedpythonPythonPublicationResponseList.md)
@@ -210,6 +221,8 @@ Class | Method | HTTP request | Description
210
221
  - [PulpPythonClient::PatchedpythonPythonRemote](docs/PatchedpythonPythonRemote.md)
211
222
  - [PulpPythonClient::PatchedpythonPythonRepository](docs/PatchedpythonPythonRepository.md)
212
223
  - [PulpPythonClient::PolicyEnum](docs/PolicyEnum.md)
224
+ - [PulpPythonClient::ProtocolVersionEnum](docs/ProtocolVersionEnum.md)
225
+ - [PulpPythonClient::PythonPackageProvenanceResponse](docs/PythonPackageProvenanceResponse.md)
213
226
  - [PulpPythonClient::PythonPythonDistribution](docs/PythonPythonDistribution.md)
214
227
  - [PulpPythonClient::PythonPythonDistributionResponse](docs/PythonPythonDistributionResponse.md)
215
228
  - [PulpPythonClient::PythonPythonPackageContentResponse](docs/PythonPythonPackageContentResponse.md)
@@ -68,7 +68,8 @@ opts = {
68
68
  license_expression: 'license_expression_example', # String | Text string that is a valid SPDX license expression.
69
69
  license_file: TODO, # Object |
70
70
  sha256: 'sha256_example', # String | The SHA256 digest of this package.
71
- metadata_sha256: 'metadata_sha256_example' # String | The SHA256 digest of the package's METADATA file.
71
+ metadata_sha256: 'metadata_sha256_example', # String | The SHA256 digest of the package's METADATA file.
72
+ attestations: TODO # Object |
72
73
  }
73
74
 
74
75
  begin
@@ -137,6 +138,7 @@ end
137
138
  | **license_file** | [**Object**](Object.md) | | [optional] |
138
139
  | **sha256** | **String** | The SHA256 digest of this package. | [optional][default to ''] |
139
140
  | **metadata_sha256** | **String** | The SHA256 digest of the package's METADATA file. | [optional] |
141
+ | **attestations** | [**Object**](Object.md) | | [optional] |
140
142
 
141
143
  ### Return type
142
144
 
@@ -186,7 +188,7 @@ opts = {
186
188
  name: 'name_example', # String | Filter results where name matches value
187
189
  name__in: ['inner_example'], # Array<String> | Filter results where name is in a comma-separated list of values
188
190
  offset: 56, # Integer | The initial index from which to return the results.
189
- ordering: ['-author'], # Array<String> | 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)
191
+ ordering: ['-author'], # Array<String> | 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)
190
192
  orphaned_for: 8.14, # Float | Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
191
193
  packagetype: 'bdist_dmg', # String | 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
192
194
  packagetype__in: ['inner_example'], # Array<String> | Filter results where packagetype is in a comma-separated list of values
@@ -255,7 +257,7 @@ end
255
257
  | **name** | **String** | Filter results where name matches value | [optional] |
256
258
  | **name__in** | [**Array&lt;String&gt;**](String.md) | Filter results where name is in a comma-separated list of values | [optional] |
257
259
  | **offset** | **Integer** | The initial index from which to return the results. | [optional] |
258
- | **ordering** | [**Array&lt;String&gt;**](String.md) | 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) | [optional] |
260
+ | **ordering** | [**Array&lt;String&gt;**](String.md) | 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) | [optional] |
259
261
  | **orphaned_for** | **Float** | Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME. | [optional] |
260
262
  | **packagetype** | **String** | 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 | [optional] |
261
263
  | **packagetype__in** | [**Array&lt;String&gt;**](String.md) | Filter results where packagetype is in a comma-separated list of values | [optional] |
@@ -578,7 +580,8 @@ opts = {
578
580
  license_expression: 'license_expression_example', # String | Text string that is a valid SPDX license expression.
579
581
  license_file: TODO, # Object |
580
582
  sha256: 'sha256_example', # String | The SHA256 digest of this package.
581
- metadata_sha256: 'metadata_sha256_example' # String | The SHA256 digest of the package's METADATA file.
583
+ metadata_sha256: 'metadata_sha256_example', # String | The SHA256 digest of the package's METADATA file.
584
+ attestations: TODO # Object |
582
585
  }
583
586
 
584
587
  begin
@@ -645,6 +648,7 @@ end
645
648
  | **license_file** | [**Object**](Object.md) | | [optional] |
646
649
  | **sha256** | **String** | The SHA256 digest of this package. | [optional][default to &#39;&#39;] |
647
650
  | **metadata_sha256** | **String** | The SHA256 digest of the package&#39;s METADATA file. | [optional] |
651
+ | **attestations** | [**Object**](Object.md) | | [optional] |
648
652
 
649
653
  ### Return type
650
654
 
@@ -0,0 +1,428 @@
1
+ # PulpPythonClient::ContentProvenanceApi
2
+
3
+ All URIs are relative to *http://localhost:24817*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**create**](ContentProvenanceApi.md#create) | **POST** /pulp/api/v3/content/python/provenance/ | Create a package provenance |
8
+ | [**list**](ContentProvenanceApi.md#list) | **GET** /pulp/api/v3/content/python/provenance/ | List package provenances |
9
+ | [**read**](ContentProvenanceApi.md#read) | **GET** {python_package_provenance_href} | Inspect a package provenance |
10
+ | [**set_label**](ContentProvenanceApi.md#set_label) | **POST** {python_package_provenance_href}set_label/ | Set a label |
11
+ | [**unset_label**](ContentProvenanceApi.md#unset_label) | **POST** {python_package_provenance_href}unset_label/ | Unset a label |
12
+
13
+
14
+ ## create
15
+
16
+ > <AsyncOperationResponse> create(package, opts)
17
+
18
+ Create a package provenance
19
+
20
+ Trigger an asynchronous task to create content,optionally create new repository version.
21
+
22
+ ### Examples
23
+
24
+ ```ruby
25
+ require 'time'
26
+ require 'pulp_python_client'
27
+ # setup authorization
28
+ PulpPythonClient.configure do |config|
29
+ # Configure HTTP basic authorization: basicAuth
30
+ config.username = 'YOUR USERNAME'
31
+ config.password = 'YOUR PASSWORD'
32
+ end
33
+
34
+ api_instance = PulpPythonClient::ContentProvenanceApi.new
35
+ package = 'package_example' # String | The package that the provenance is for.
36
+ opts = {
37
+ x_task_diagnostics: ['inner_example'], # Array<String> | List of profilers to use on tasks.
38
+ repository: 'repository_example', # String | A URI of a repository the new content unit should be associated with.
39
+ pulp_labels: { key: 'inner_example'}, # Hash<String, String> | A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
40
+ file: File.new('/path/to/some/file'), # File | An uploaded file that may be turned into the content unit.
41
+ upload: 'upload_example', # String | An uncommitted upload that may be turned into the content unit.
42
+ file_url: 'file_url_example', # String | A url that Pulp can download and turn into the content unit.
43
+ verify: true # Boolean | Verify each attestation in the provenance.
44
+ }
45
+
46
+ begin
47
+ # Create a package provenance
48
+ result = api_instance.create(package, opts)
49
+ p result
50
+ rescue PulpPythonClient::ApiError => e
51
+ puts "Error when calling ContentProvenanceApi->create: #{e}"
52
+ end
53
+ ```
54
+
55
+ #### Using the create_with_http_info variant
56
+
57
+ This returns an Array which contains the response data, status code and headers.
58
+
59
+ > <Array(<AsyncOperationResponse>, Integer, Hash)> create_with_http_info(package, opts)
60
+
61
+ ```ruby
62
+ begin
63
+ # Create a package provenance
64
+ data, status_code, headers = api_instance.create_with_http_info(package, opts)
65
+ p status_code # => 2xx
66
+ p headers # => { ... }
67
+ p data # => <AsyncOperationResponse>
68
+ rescue PulpPythonClient::ApiError => e
69
+ puts "Error when calling ContentProvenanceApi->create_with_http_info: #{e}"
70
+ end
71
+ ```
72
+
73
+ ### Parameters
74
+
75
+ | Name | Type | Description | Notes |
76
+ | ---- | ---- | ----------- | ----- |
77
+ | **package** | **String** | The package that the provenance is for. | |
78
+ | **x_task_diagnostics** | [**Array&lt;String&gt;**](String.md) | List of profilers to use on tasks. | [optional] |
79
+ | **repository** | **String** | A URI of a repository the new content unit should be associated with. | [optional] |
80
+ | **pulp_labels** | [**Hash&lt;String, String&gt;**](Hash.md) | A dictionary of arbitrary key/value pairs used to describe a specific Content instance. | [optional] |
81
+ | **file** | **File** | An uploaded file that may be turned into the content unit. | [optional] |
82
+ | **upload** | **String** | An uncommitted upload that may be turned into the content unit. | [optional] |
83
+ | **file_url** | **String** | A url that Pulp can download and turn into the content unit. | [optional] |
84
+ | **verify** | **Boolean** | Verify each attestation in the provenance. | [optional][default to true] |
85
+
86
+ ### Return type
87
+
88
+ [**AsyncOperationResponse**](AsyncOperationResponse.md)
89
+
90
+ ### Authorization
91
+
92
+ [basicAuth](../README.md#basicAuth)
93
+
94
+ ### HTTP request headers
95
+
96
+ - **Content-Type**: multipart/form-data, application/x-www-form-urlencoded
97
+ - **Accept**: application/json
98
+
99
+
100
+ ## list
101
+
102
+ > <PaginatedpythonPackageProvenanceResponseList> list(opts)
103
+
104
+ List package provenances
105
+
106
+ PackageProvenance represents a PEP 740 provenance object for a Python package. Use ?minimal=true to get a human readable representation of the provenance.
107
+
108
+ ### Examples
109
+
110
+ ```ruby
111
+ require 'time'
112
+ require 'pulp_python_client'
113
+ # setup authorization
114
+ PulpPythonClient.configure do |config|
115
+ # Configure HTTP basic authorization: basicAuth
116
+ config.username = 'YOUR USERNAME'
117
+ config.password = 'YOUR PASSWORD'
118
+ end
119
+
120
+ api_instance = PulpPythonClient::ContentProvenanceApi.new
121
+ opts = {
122
+ x_task_diagnostics: ['inner_example'], # Array<String> | List of profilers to use on tasks.
123
+ limit: 56, # Integer | Number of results to return per page.
124
+ offset: 56, # Integer | The initial index from which to return the results.
125
+ ordering: ['-pk'], # Array<String> | Ordering * `pk` - Pk * `-pk` - Pk (descending)
126
+ orphaned_for: 8.14, # Float | Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
127
+ prn__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
128
+ pulp_href__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
129
+ pulp_id__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
130
+ pulp_label_select: 'pulp_label_select_example', # String | Filter labels by search string
131
+ q: 'q_example', # String | Filter results by using NOT, AND and OR operations on other filters
132
+ repository_version: 'repository_version_example', # String | Repository Version referenced by HREF/PRN
133
+ repository_version_added: 'repository_version_added_example', # String | Repository Version referenced by HREF/PRN
134
+ repository_version_removed: 'repository_version_removed_example', # String | Repository Version referenced by HREF/PRN
135
+ fields: ['inner_example'], # Array<String> | A list of fields to include in the response.
136
+ exclude_fields: ['inner_example'] # Array<String> | A list of fields to exclude from the response.
137
+ }
138
+
139
+ begin
140
+ # List package provenances
141
+ result = api_instance.list(opts)
142
+ p result
143
+ rescue PulpPythonClient::ApiError => e
144
+ puts "Error when calling ContentProvenanceApi->list: #{e}"
145
+ end
146
+ ```
147
+
148
+ #### Using the list_with_http_info variant
149
+
150
+ This returns an Array which contains the response data, status code and headers.
151
+
152
+ > <Array(<PaginatedpythonPackageProvenanceResponseList>, Integer, Hash)> list_with_http_info(opts)
153
+
154
+ ```ruby
155
+ begin
156
+ # List package provenances
157
+ data, status_code, headers = api_instance.list_with_http_info(opts)
158
+ p status_code # => 2xx
159
+ p headers # => { ... }
160
+ p data # => <PaginatedpythonPackageProvenanceResponseList>
161
+ rescue PulpPythonClient::ApiError => e
162
+ puts "Error when calling ContentProvenanceApi->list_with_http_info: #{e}"
163
+ end
164
+ ```
165
+
166
+ ### Parameters
167
+
168
+ | Name | Type | Description | Notes |
169
+ | ---- | ---- | ----------- | ----- |
170
+ | **x_task_diagnostics** | [**Array&lt;String&gt;**](String.md) | List of profilers to use on tasks. | [optional] |
171
+ | **limit** | **Integer** | Number of results to return per page. | [optional] |
172
+ | **offset** | **Integer** | The initial index from which to return the results. | [optional] |
173
+ | **ordering** | [**Array&lt;String&gt;**](String.md) | Ordering * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending) | [optional] |
174
+ | **orphaned_for** | **Float** | Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME. | [optional] |
175
+ | **prn__in** | [**Array&lt;String&gt;**](String.md) | Multiple values may be separated by commas. | [optional] |
176
+ | **pulp_href__in** | [**Array&lt;String&gt;**](String.md) | Multiple values may be separated by commas. | [optional] |
177
+ | **pulp_id__in** | [**Array&lt;String&gt;**](String.md) | Multiple values may be separated by commas. | [optional] |
178
+ | **pulp_label_select** | **String** | Filter labels by search string | [optional] |
179
+ | **q** | **String** | Filter results by using NOT, AND and OR operations on other filters | [optional] |
180
+ | **repository_version** | **String** | Repository Version referenced by HREF/PRN | [optional] |
181
+ | **repository_version_added** | **String** | Repository Version referenced by HREF/PRN | [optional] |
182
+ | **repository_version_removed** | **String** | Repository Version referenced by HREF/PRN | [optional] |
183
+ | **fields** | [**Array&lt;String&gt;**](String.md) | A list of fields to include in the response. | [optional] |
184
+ | **exclude_fields** | [**Array&lt;String&gt;**](String.md) | A list of fields to exclude from the response. | [optional] |
185
+
186
+ ### Return type
187
+
188
+ [**PaginatedpythonPackageProvenanceResponseList**](PaginatedpythonPackageProvenanceResponseList.md)
189
+
190
+ ### Authorization
191
+
192
+ [basicAuth](../README.md#basicAuth)
193
+
194
+ ### HTTP request headers
195
+
196
+ - **Content-Type**: Not defined
197
+ - **Accept**: application/json
198
+
199
+
200
+ ## read
201
+
202
+ > <PythonPackageProvenanceResponse> read(python_package_provenance_href, opts)
203
+
204
+ Inspect a package provenance
205
+
206
+ PackageProvenance represents a PEP 740 provenance object for a Python package. Use ?minimal=true to get a human readable representation of the provenance.
207
+
208
+ ### Examples
209
+
210
+ ```ruby
211
+ require 'time'
212
+ require 'pulp_python_client'
213
+ # setup authorization
214
+ PulpPythonClient.configure do |config|
215
+ # Configure HTTP basic authorization: basicAuth
216
+ config.username = 'YOUR USERNAME'
217
+ config.password = 'YOUR PASSWORD'
218
+ end
219
+
220
+ api_instance = PulpPythonClient::ContentProvenanceApi.new
221
+ python_package_provenance_href = 'python_package_provenance_href_example' # String |
222
+ opts = {
223
+ x_task_diagnostics: ['inner_example'], # Array<String> | List of profilers to use on tasks.
224
+ fields: ['inner_example'], # Array<String> | A list of fields to include in the response.
225
+ exclude_fields: ['inner_example'] # Array<String> | A list of fields to exclude from the response.
226
+ }
227
+
228
+ begin
229
+ # Inspect a package provenance
230
+ result = api_instance.read(python_package_provenance_href, opts)
231
+ p result
232
+ rescue PulpPythonClient::ApiError => e
233
+ puts "Error when calling ContentProvenanceApi->read: #{e}"
234
+ end
235
+ ```
236
+
237
+ #### Using the read_with_http_info variant
238
+
239
+ This returns an Array which contains the response data, status code and headers.
240
+
241
+ > <Array(<PythonPackageProvenanceResponse>, Integer, Hash)> read_with_http_info(python_package_provenance_href, opts)
242
+
243
+ ```ruby
244
+ begin
245
+ # Inspect a package provenance
246
+ data, status_code, headers = api_instance.read_with_http_info(python_package_provenance_href, opts)
247
+ p status_code # => 2xx
248
+ p headers # => { ... }
249
+ p data # => <PythonPackageProvenanceResponse>
250
+ rescue PulpPythonClient::ApiError => e
251
+ puts "Error when calling ContentProvenanceApi->read_with_http_info: #{e}"
252
+ end
253
+ ```
254
+
255
+ ### Parameters
256
+
257
+ | Name | Type | Description | Notes |
258
+ | ---- | ---- | ----------- | ----- |
259
+ | **python_package_provenance_href** | **String** | | |
260
+ | **x_task_diagnostics** | [**Array&lt;String&gt;**](String.md) | List of profilers to use on tasks. | [optional] |
261
+ | **fields** | [**Array&lt;String&gt;**](String.md) | A list of fields to include in the response. | [optional] |
262
+ | **exclude_fields** | [**Array&lt;String&gt;**](String.md) | A list of fields to exclude from the response. | [optional] |
263
+
264
+ ### Return type
265
+
266
+ [**PythonPackageProvenanceResponse**](PythonPackageProvenanceResponse.md)
267
+
268
+ ### Authorization
269
+
270
+ [basicAuth](../README.md#basicAuth)
271
+
272
+ ### HTTP request headers
273
+
274
+ - **Content-Type**: Not defined
275
+ - **Accept**: application/json
276
+
277
+
278
+ ## set_label
279
+
280
+ > <SetLabelResponse> set_label(python_package_provenance_href, set_label, opts)
281
+
282
+ Set a label
283
+
284
+ Set a single pulp_label on the object to a specific value or null.
285
+
286
+ ### Examples
287
+
288
+ ```ruby
289
+ require 'time'
290
+ require 'pulp_python_client'
291
+ # setup authorization
292
+ PulpPythonClient.configure do |config|
293
+ # Configure HTTP basic authorization: basicAuth
294
+ config.username = 'YOUR USERNAME'
295
+ config.password = 'YOUR PASSWORD'
296
+ end
297
+
298
+ api_instance = PulpPythonClient::ContentProvenanceApi.new
299
+ python_package_provenance_href = 'python_package_provenance_href_example' # String |
300
+ set_label = PulpPythonClient::SetLabel.new({key: 'key_example', value: 'value_example'}) # SetLabel |
301
+ opts = {
302
+ x_task_diagnostics: ['inner_example'] # Array<String> | List of profilers to use on tasks.
303
+ }
304
+
305
+ begin
306
+ # Set a label
307
+ result = api_instance.set_label(python_package_provenance_href, set_label, opts)
308
+ p result
309
+ rescue PulpPythonClient::ApiError => e
310
+ puts "Error when calling ContentProvenanceApi->set_label: #{e}"
311
+ end
312
+ ```
313
+
314
+ #### Using the set_label_with_http_info variant
315
+
316
+ This returns an Array which contains the response data, status code and headers.
317
+
318
+ > <Array(<SetLabelResponse>, Integer, Hash)> set_label_with_http_info(python_package_provenance_href, set_label, opts)
319
+
320
+ ```ruby
321
+ begin
322
+ # Set a label
323
+ data, status_code, headers = api_instance.set_label_with_http_info(python_package_provenance_href, set_label, opts)
324
+ p status_code # => 2xx
325
+ p headers # => { ... }
326
+ p data # => <SetLabelResponse>
327
+ rescue PulpPythonClient::ApiError => e
328
+ puts "Error when calling ContentProvenanceApi->set_label_with_http_info: #{e}"
329
+ end
330
+ ```
331
+
332
+ ### Parameters
333
+
334
+ | Name | Type | Description | Notes |
335
+ | ---- | ---- | ----------- | ----- |
336
+ | **python_package_provenance_href** | **String** | | |
337
+ | **set_label** | [**SetLabel**](SetLabel.md) | | |
338
+ | **x_task_diagnostics** | [**Array&lt;String&gt;**](String.md) | List of profilers to use on tasks. | [optional] |
339
+
340
+ ### Return type
341
+
342
+ [**SetLabelResponse**](SetLabelResponse.md)
343
+
344
+ ### Authorization
345
+
346
+ [basicAuth](../README.md#basicAuth)
347
+
348
+ ### HTTP request headers
349
+
350
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
351
+ - **Accept**: application/json
352
+
353
+
354
+ ## unset_label
355
+
356
+ > <UnsetLabelResponse> unset_label(python_package_provenance_href, unset_label, opts)
357
+
358
+ Unset a label
359
+
360
+ Unset a single pulp_label on the object.
361
+
362
+ ### Examples
363
+
364
+ ```ruby
365
+ require 'time'
366
+ require 'pulp_python_client'
367
+ # setup authorization
368
+ PulpPythonClient.configure do |config|
369
+ # Configure HTTP basic authorization: basicAuth
370
+ config.username = 'YOUR USERNAME'
371
+ config.password = 'YOUR PASSWORD'
372
+ end
373
+
374
+ api_instance = PulpPythonClient::ContentProvenanceApi.new
375
+ python_package_provenance_href = 'python_package_provenance_href_example' # String |
376
+ unset_label = PulpPythonClient::UnsetLabel.new({key: 'key_example'}) # UnsetLabel |
377
+ opts = {
378
+ x_task_diagnostics: ['inner_example'] # Array<String> | List of profilers to use on tasks.
379
+ }
380
+
381
+ begin
382
+ # Unset a label
383
+ result = api_instance.unset_label(python_package_provenance_href, unset_label, opts)
384
+ p result
385
+ rescue PulpPythonClient::ApiError => e
386
+ puts "Error when calling ContentProvenanceApi->unset_label: #{e}"
387
+ end
388
+ ```
389
+
390
+ #### Using the unset_label_with_http_info variant
391
+
392
+ This returns an Array which contains the response data, status code and headers.
393
+
394
+ > <Array(<UnsetLabelResponse>, Integer, Hash)> unset_label_with_http_info(python_package_provenance_href, unset_label, opts)
395
+
396
+ ```ruby
397
+ begin
398
+ # Unset a label
399
+ data, status_code, headers = api_instance.unset_label_with_http_info(python_package_provenance_href, unset_label, opts)
400
+ p status_code # => 2xx
401
+ p headers # => { ... }
402
+ p data # => <UnsetLabelResponse>
403
+ rescue PulpPythonClient::ApiError => e
404
+ puts "Error when calling ContentProvenanceApi->unset_label_with_http_info: #{e}"
405
+ end
406
+ ```
407
+
408
+ ### Parameters
409
+
410
+ | Name | Type | Description | Notes |
411
+ | ---- | ---- | ----------- | ----- |
412
+ | **python_package_provenance_href** | **String** | | |
413
+ | **unset_label** | [**UnsetLabel**](UnsetLabel.md) | | |
414
+ | **x_task_diagnostics** | [**Array&lt;String&gt;**](String.md) | List of profilers to use on tasks. | [optional] |
415
+
416
+ ### Return type
417
+
418
+ [**UnsetLabelResponse**](UnsetLabelResponse.md)
419
+
420
+ ### Authorization
421
+
422
+ [basicAuth](../README.md#basicAuth)
423
+
424
+ ### HTTP request headers
425
+
426
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
427
+ - **Accept**: application/json
428
+
@@ -0,0 +1,15 @@
1
+ # PulpPythonClient::FiletypeEnum
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::FiletypeEnum.new()
14
+ ```
15
+
@@ -0,0 +1,15 @@
1
+ # PulpPythonClient::MetadataVersionEnum
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::MetadataVersionEnum.new()
14
+ ```
15
+