crc-pulp-python-client 20250819.1__tar.gz
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.
Potentially problematic release.
This version of crc-pulp-python-client might be problematic. Click here for more details.
- crc_pulp_python_client-20250819.1/PKG-INFO +25 -0
- crc_pulp_python_client-20250819.1/README.md +249 -0
- crc_pulp_python_client-20250819.1/crc-pulp_python-client/__init__.py +2 -0
- crc_pulp_python_client-20250819.1/crc-pulp_python-client/api/__init__.py +14 -0
- crc_pulp_python_client-20250819.1/crc-pulp_python-client/api/api_pypi_api.py +370 -0
- crc_pulp_python_client-20250819.1/crc-pulp_python-client/api/api_pypi_legacy_api.py +393 -0
- crc_pulp_python_client-20250819.1/crc-pulp_python-client/api/api_pypi_simple_api.py +1045 -0
- crc_pulp_python_client-20250819.1/crc-pulp_python-client/api/content_packages_api.py +2594 -0
- crc_pulp_python_client-20250819.1/crc-pulp_python-client/api/distributions_pypi_api.py +4186 -0
- crc_pulp_python_client-20250819.1/crc-pulp_python-client/api/publications_pypi_api.py +2881 -0
- crc_pulp_python_client-20250819.1/crc-pulp_python-client/api/pypi_metadata_api.py +385 -0
- crc_pulp_python_client-20250819.1/crc-pulp_python-client/api/remotes_python_api.py +4552 -0
- crc_pulp_python_client-20250819.1/crc-pulp_python-client/api/repositories_python_api.py +4856 -0
- crc_pulp_python_client-20250819.1/crc-pulp_python-client/api/repositories_python_versions_api.py +1670 -0
- crc_pulp_python_client-20250819.1/crc-pulp_python-client/api_client.py +798 -0
- crc_pulp_python_client-20250819.1/crc-pulp_python-client/api_response.py +21 -0
- crc_pulp_python_client-20250819.1/crc-pulp_python-client/configuration.py +628 -0
- crc_pulp_python_client-20250819.1/crc-pulp_python-client/exceptions.py +200 -0
- crc_pulp_python_client-20250819.1/crc-pulp_python-client/models/__init__.py +56 -0
- crc_pulp_python_client-20250819.1/crc-pulp_python-client/models/async_operation_response.py +88 -0
- crc_pulp_python_client-20250819.1/crc-pulp_python-client/models/content_summary_response.py +92 -0
- crc_pulp_python_client-20250819.1/crc-pulp_python-client/models/exclude_platforms_enum.py +40 -0
- crc_pulp_python_client-20250819.1/crc-pulp_python-client/models/my_permissions_response.py +88 -0
- crc_pulp_python_client-20250819.1/crc-pulp_python-client/models/nested_role.py +93 -0
- crc_pulp_python_client-20250819.1/crc-pulp_python-client/models/nested_role_response.py +92 -0
- crc_pulp_python_client-20250819.1/crc-pulp_python-client/models/object_roles_response.py +96 -0
- crc_pulp_python_client-20250819.1/crc-pulp_python-client/models/package_metadata_response.py +109 -0
- crc_pulp_python_client-20250819.1/crc-pulp_python-client/models/package_types_enum.py +44 -0
- crc_pulp_python_client-20250819.1/crc-pulp_python-client/models/package_upload_task_response.py +103 -0
- crc_pulp_python_client-20250819.1/crc-pulp_python-client/models/paginated_repository_version_response_list.py +112 -0
- crc_pulp_python_client-20250819.1/crc-pulp_python-client/models/paginatedpython_python_distribution_response_list.py +112 -0
- crc_pulp_python_client-20250819.1/crc-pulp_python-client/models/paginatedpython_python_package_content_response_list.py +112 -0
- crc_pulp_python_client-20250819.1/crc-pulp_python-client/models/paginatedpython_python_publication_response_list.py +112 -0
- crc_pulp_python_client-20250819.1/crc-pulp_python-client/models/paginatedpython_python_remote_response_list.py +112 -0
- crc_pulp_python_client-20250819.1/crc-pulp_python-client/models/paginatedpython_python_repository_response_list.py +112 -0
- crc_pulp_python_client-20250819.1/crc-pulp_python-client/models/patchedpython_python_distribution.py +125 -0
- crc_pulp_python_client-20250819.1/crc-pulp_python-client/models/patchedpython_python_remote.py +219 -0
- crc_pulp_python_client-20250819.1/crc-pulp_python-client/models/patchedpython_python_repository.py +114 -0
- crc_pulp_python_client-20250819.1/crc-pulp_python-client/models/policy_enum.py +39 -0
- crc_pulp_python_client-20250819.1/crc-pulp_python-client/models/python_python_distribution.py +125 -0
- crc_pulp_python_client-20250819.1/crc-pulp_python-client/models/python_python_distribution_response.py +149 -0
- crc_pulp_python_client-20250819.1/crc-pulp_python-client/models/python_python_package_content_response.py +201 -0
- crc_pulp_python_client-20250819.1/crc-pulp_python-client/models/python_python_publication.py +90 -0
- crc_pulp_python_client-20250819.1/crc-pulp_python-client/models/python_python_publication_response.py +111 -0
- crc_pulp_python_client-20250819.1/crc-pulp_python-client/models/python_python_remote.py +219 -0
- crc_pulp_python_client-20250819.1/crc-pulp_python-client/models/python_python_remote_response.py +213 -0
- crc_pulp_python_client-20250819.1/crc-pulp_python-client/models/python_python_remote_response_hidden_fields_inner.py +90 -0
- crc_pulp_python_client-20250819.1/crc-pulp_python-client/models/python_python_repository.py +114 -0
- crc_pulp_python_client-20250819.1/crc-pulp_python-client/models/python_python_repository_response.py +139 -0
- crc_pulp_python_client-20250819.1/crc-pulp_python-client/models/repair.py +88 -0
- crc_pulp_python_client-20250819.1/crc-pulp_python-client/models/repository_add_remove_content.py +93 -0
- crc_pulp_python_client-20250819.1/crc-pulp_python-client/models/repository_sync_url.py +90 -0
- crc_pulp_python_client-20250819.1/crc-pulp_python-client/models/repository_version_response.py +121 -0
- crc_pulp_python_client-20250819.1/crc-pulp_python-client/models/set_label.py +103 -0
- crc_pulp_python_client-20250819.1/crc-pulp_python-client/models/set_label_response.py +103 -0
- crc_pulp_python_client-20250819.1/crc-pulp_python-client/models/summary_response.py +92 -0
- crc_pulp_python_client-20250819.1/crc-pulp_python-client/models/unset_label.py +96 -0
- crc_pulp_python_client-20250819.1/crc-pulp_python-client/models/unset_label_response.py +100 -0
- crc_pulp_python_client-20250819.1/crc-pulp_python-client/py.typed +0 -0
- crc_pulp_python_client-20250819.1/crc-pulp_python-client/rest.py +258 -0
- crc_pulp_python_client-20250819.1/crc_pulp_python_client.egg-info/PKG-INFO +25 -0
- crc_pulp_python_client-20250819.1/crc_pulp_python_client.egg-info/SOURCES.txt +174 -0
- crc_pulp_python_client-20250819.1/crc_pulp_python_client.egg-info/dependency_links.txt +1 -0
- crc_pulp_python_client-20250819.1/crc_pulp_python_client.egg-info/requires.txt +4 -0
- crc_pulp_python_client-20250819.1/crc_pulp_python_client.egg-info/top_level.txt +2 -0
- crc_pulp_python_client-20250819.1/pyproject.toml +89 -0
- crc_pulp_python_client-20250819.1/services-pulp_python-client/__init__.py +2 -0
- crc_pulp_python_client-20250819.1/services-pulp_python-client/api/__init__.py +14 -0
- crc_pulp_python_client-20250819.1/services-pulp_python-client/api/api_pypi_api.py +370 -0
- crc_pulp_python_client-20250819.1/services-pulp_python-client/api/api_pypi_legacy_api.py +393 -0
- crc_pulp_python_client-20250819.1/services-pulp_python-client/api/api_pypi_simple_api.py +1045 -0
- crc_pulp_python_client-20250819.1/services-pulp_python-client/api/content_packages_api.py +2594 -0
- crc_pulp_python_client-20250819.1/services-pulp_python-client/api/distributions_pypi_api.py +4186 -0
- crc_pulp_python_client-20250819.1/services-pulp_python-client/api/publications_pypi_api.py +2881 -0
- crc_pulp_python_client-20250819.1/services-pulp_python-client/api/pypi_metadata_api.py +385 -0
- crc_pulp_python_client-20250819.1/services-pulp_python-client/api/remotes_python_api.py +4552 -0
- crc_pulp_python_client-20250819.1/services-pulp_python-client/api/repositories_python_api.py +4856 -0
- crc_pulp_python_client-20250819.1/services-pulp_python-client/api/repositories_python_versions_api.py +1670 -0
- crc_pulp_python_client-20250819.1/services-pulp_python-client/api_client.py +798 -0
- crc_pulp_python_client-20250819.1/services-pulp_python-client/api_response.py +21 -0
- crc_pulp_python_client-20250819.1/services-pulp_python-client/configuration.py +628 -0
- crc_pulp_python_client-20250819.1/services-pulp_python-client/exceptions.py +200 -0
- crc_pulp_python_client-20250819.1/services-pulp_python-client/models/__init__.py +56 -0
- crc_pulp_python_client-20250819.1/services-pulp_python-client/models/async_operation_response.py +88 -0
- crc_pulp_python_client-20250819.1/services-pulp_python-client/models/content_summary_response.py +92 -0
- crc_pulp_python_client-20250819.1/services-pulp_python-client/models/exclude_platforms_enum.py +40 -0
- crc_pulp_python_client-20250819.1/services-pulp_python-client/models/my_permissions_response.py +88 -0
- crc_pulp_python_client-20250819.1/services-pulp_python-client/models/nested_role.py +93 -0
- crc_pulp_python_client-20250819.1/services-pulp_python-client/models/nested_role_response.py +92 -0
- crc_pulp_python_client-20250819.1/services-pulp_python-client/models/object_roles_response.py +96 -0
- crc_pulp_python_client-20250819.1/services-pulp_python-client/models/package_metadata_response.py +109 -0
- crc_pulp_python_client-20250819.1/services-pulp_python-client/models/package_types_enum.py +44 -0
- crc_pulp_python_client-20250819.1/services-pulp_python-client/models/package_upload_task_response.py +103 -0
- crc_pulp_python_client-20250819.1/services-pulp_python-client/models/paginated_repository_version_response_list.py +112 -0
- crc_pulp_python_client-20250819.1/services-pulp_python-client/models/paginatedpython_python_distribution_response_list.py +112 -0
- crc_pulp_python_client-20250819.1/services-pulp_python-client/models/paginatedpython_python_package_content_response_list.py +112 -0
- crc_pulp_python_client-20250819.1/services-pulp_python-client/models/paginatedpython_python_publication_response_list.py +112 -0
- crc_pulp_python_client-20250819.1/services-pulp_python-client/models/paginatedpython_python_remote_response_list.py +112 -0
- crc_pulp_python_client-20250819.1/services-pulp_python-client/models/paginatedpython_python_repository_response_list.py +112 -0
- crc_pulp_python_client-20250819.1/services-pulp_python-client/models/patchedpython_python_distribution.py +125 -0
- crc_pulp_python_client-20250819.1/services-pulp_python-client/models/patchedpython_python_remote.py +219 -0
- crc_pulp_python_client-20250819.1/services-pulp_python-client/models/patchedpython_python_repository.py +114 -0
- crc_pulp_python_client-20250819.1/services-pulp_python-client/models/policy_enum.py +39 -0
- crc_pulp_python_client-20250819.1/services-pulp_python-client/models/python_python_distribution.py +125 -0
- crc_pulp_python_client-20250819.1/services-pulp_python-client/models/python_python_distribution_response.py +149 -0
- crc_pulp_python_client-20250819.1/services-pulp_python-client/models/python_python_package_content_response.py +201 -0
- crc_pulp_python_client-20250819.1/services-pulp_python-client/models/python_python_publication.py +90 -0
- crc_pulp_python_client-20250819.1/services-pulp_python-client/models/python_python_publication_response.py +111 -0
- crc_pulp_python_client-20250819.1/services-pulp_python-client/models/python_python_remote.py +219 -0
- crc_pulp_python_client-20250819.1/services-pulp_python-client/models/python_python_remote_response.py +213 -0
- crc_pulp_python_client-20250819.1/services-pulp_python-client/models/python_python_remote_response_hidden_fields_inner.py +90 -0
- crc_pulp_python_client-20250819.1/services-pulp_python-client/models/python_python_repository.py +114 -0
- crc_pulp_python_client-20250819.1/services-pulp_python-client/models/python_python_repository_response.py +139 -0
- crc_pulp_python_client-20250819.1/services-pulp_python-client/models/repair.py +88 -0
- crc_pulp_python_client-20250819.1/services-pulp_python-client/models/repository_add_remove_content.py +93 -0
- crc_pulp_python_client-20250819.1/services-pulp_python-client/models/repository_sync_url.py +90 -0
- crc_pulp_python_client-20250819.1/services-pulp_python-client/models/repository_version_response.py +121 -0
- crc_pulp_python_client-20250819.1/services-pulp_python-client/models/set_label.py +103 -0
- crc_pulp_python_client-20250819.1/services-pulp_python-client/models/set_label_response.py +103 -0
- crc_pulp_python_client-20250819.1/services-pulp_python-client/models/summary_response.py +92 -0
- crc_pulp_python_client-20250819.1/services-pulp_python-client/models/unset_label.py +96 -0
- crc_pulp_python_client-20250819.1/services-pulp_python-client/models/unset_label_response.py +100 -0
- crc_pulp_python_client-20250819.1/services-pulp_python-client/py.typed +0 -0
- crc_pulp_python_client-20250819.1/services-pulp_python-client/rest.py +258 -0
- crc_pulp_python_client-20250819.1/setup.cfg +7 -0
- crc_pulp_python_client-20250819.1/setup.py +52 -0
- crc_pulp_python_client-20250819.1/test/test_api_pypi_api.py +39 -0
- crc_pulp_python_client-20250819.1/test/test_api_pypi_legacy_api.py +39 -0
- crc_pulp_python_client-20250819.1/test/test_api_pypi_simple_api.py +53 -0
- crc_pulp_python_client-20250819.1/test/test_async_operation_response.py +53 -0
- crc_pulp_python_client-20250819.1/test/test_content_packages_api.py +67 -0
- crc_pulp_python_client-20250819.1/test/test_content_summary_response.py +69 -0
- crc_pulp_python_client-20250819.1/test/test_distributions_pypi_api.py +116 -0
- crc_pulp_python_client-20250819.1/test/test_exclude_platforms_enum.py +34 -0
- crc_pulp_python_client-20250819.1/test/test_my_permissions_response.py +57 -0
- crc_pulp_python_client-20250819.1/test/test_nested_role.py +59 -0
- crc_pulp_python_client-20250819.1/test/test_nested_role_response.py +59 -0
- crc_pulp_python_client-20250819.1/test/test_object_roles_response.py +71 -0
- crc_pulp_python_client-20250819.1/test/test_package_metadata_response.py +59 -0
- crc_pulp_python_client-20250819.1/test/test_package_types_enum.py +34 -0
- crc_pulp_python_client-20250819.1/test/test_package_upload_task_response.py +57 -0
- crc_pulp_python_client-20250819.1/test/test_paginated_repository_version_response_list.py +77 -0
- crc_pulp_python_client-20250819.1/test/test_paginatedpython_python_distribution_response_list.py +95 -0
- crc_pulp_python_client-20250819.1/test/test_paginatedpython_python_package_content_response_list.py +131 -0
- crc_pulp_python_client-20250819.1/test/test_paginatedpython_python_publication_response_list.py +79 -0
- crc_pulp_python_client-20250819.1/test/test_paginatedpython_python_remote_response_list.py +147 -0
- crc_pulp_python_client-20250819.1/test/test_paginatedpython_python_repository_response_list.py +89 -0
- crc_pulp_python_client-20250819.1/test/test_patchedpython_python_distribution.py +62 -0
- crc_pulp_python_client-20250819.1/test/test_patchedpython_python_remote.py +90 -0
- crc_pulp_python_client-20250819.1/test/test_patchedpython_python_repository.py +59 -0
- crc_pulp_python_client-20250819.1/test/test_policy_enum.py +34 -0
- crc_pulp_python_client-20250819.1/test/test_publications_pypi_api.py +88 -0
- crc_pulp_python_client-20250819.1/test/test_pypi_metadata_api.py +39 -0
- crc_pulp_python_client-20250819.1/test/test_python_python_distribution.py +64 -0
- crc_pulp_python_client-20250819.1/test/test_python_python_distribution_response.py +70 -0
- crc_pulp_python_client-20250819.1/test/test_python_python_package_content_response.py +86 -0
- crc_pulp_python_client-20250819.1/test/test_python_python_publication.py +53 -0
- crc_pulp_python_client-20250819.1/test/test_python_python_publication_response.py +60 -0
- crc_pulp_python_client-20250819.1/test/test_python_python_remote.py +92 -0
- crc_pulp_python_client-20250819.1/test/test_python_python_remote_response.py +96 -0
- crc_pulp_python_client-20250819.1/test/test_python_python_remote_response_hidden_fields_inner.py +55 -0
- crc_pulp_python_client-20250819.1/test/test_python_python_repository.py +60 -0
- crc_pulp_python_client-20250819.1/test/test_python_python_repository_response.py +66 -0
- crc_pulp_python_client-20250819.1/test/test_remotes_python_api.py +123 -0
- crc_pulp_python_client-20250819.1/test/test_repair.py +52 -0
- crc_pulp_python_client-20250819.1/test/test_repositories_python_api.py +130 -0
- crc_pulp_python_client-20250819.1/test/test_repositories_python_versions_api.py +59 -0
- crc_pulp_python_client-20250819.1/test/test_repository_add_remove_content.py +58 -0
- crc_pulp_python_client-20250819.1/test/test_repository_sync_url.py +53 -0
- crc_pulp_python_client-20250819.1/test/test_repository_version_response.py +68 -0
- crc_pulp_python_client-20250819.1/test/test_set_label.py +55 -0
- crc_pulp_python_client-20250819.1/test/test_set_label_response.py +55 -0
- crc_pulp_python_client-20250819.1/test/test_summary_response.py +57 -0
- crc_pulp_python_client-20250819.1/test/test_unset_label.py +53 -0
- crc_pulp_python_client-20250819.1/test/test_unset_label_response.py +54 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: crc-pulp_python-client
|
|
3
|
+
Version: 20250819.1
|
|
4
|
+
Summary: Pulp 3 API
|
|
5
|
+
Home-page:
|
|
6
|
+
Author: Pulp Team
|
|
7
|
+
Author-email: pulp-list@redhat.com
|
|
8
|
+
License: GPLv2+
|
|
9
|
+
Keywords: pulp,pulpcore,client,Pulp 3 API
|
|
10
|
+
Description-Content-Type: text/markdown
|
|
11
|
+
Requires-Dist: urllib3<3.0.0,>=1.25.3
|
|
12
|
+
Requires-Dist: python-dateutil<2.10.0,>=2.8.1
|
|
13
|
+
Requires-Dist: pydantic>=2
|
|
14
|
+
Requires-Dist: typing-extensions>=4.7.1
|
|
15
|
+
Dynamic: author
|
|
16
|
+
Dynamic: author-email
|
|
17
|
+
Dynamic: description
|
|
18
|
+
Dynamic: description-content-type
|
|
19
|
+
Dynamic: keywords
|
|
20
|
+
Dynamic: license
|
|
21
|
+
Dynamic: requires-dist
|
|
22
|
+
Dynamic: summary
|
|
23
|
+
|
|
24
|
+
Fetch, Upload, Organize, and Distribute Software Packages
|
|
25
|
+
|
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
# crc-pulp_python-client
|
|
2
|
+
Fetch, Upload, Organize, and Distribute Software Packages
|
|
3
|
+
|
|
4
|
+
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
5
|
+
|
|
6
|
+
- API version: v3
|
|
7
|
+
- Package version: 20250819.1
|
|
8
|
+
- Generator version: 7.10.0
|
|
9
|
+
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
|
|
10
|
+
For more information, please visit [https://pulpproject.org](https://pulpproject.org)
|
|
11
|
+
|
|
12
|
+
## Requirements.
|
|
13
|
+
|
|
14
|
+
Python 3.8+
|
|
15
|
+
|
|
16
|
+
## Installation & Usage
|
|
17
|
+
### pip install
|
|
18
|
+
|
|
19
|
+
If the python package is hosted on a repository, you can install directly using:
|
|
20
|
+
|
|
21
|
+
```sh
|
|
22
|
+
pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
|
|
23
|
+
```
|
|
24
|
+
(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git`)
|
|
25
|
+
|
|
26
|
+
Then import the package:
|
|
27
|
+
```python
|
|
28
|
+
import crc-pulp_python-client
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
### Setuptools
|
|
32
|
+
|
|
33
|
+
Install via [Setuptools](http://pypi.python.org/pypi/setuptools).
|
|
34
|
+
|
|
35
|
+
```sh
|
|
36
|
+
python setup.py install --user
|
|
37
|
+
```
|
|
38
|
+
(or `sudo python setup.py install` to install the package for all users)
|
|
39
|
+
|
|
40
|
+
Then import the package:
|
|
41
|
+
```python
|
|
42
|
+
import crc-pulp_python-client
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
### Tests
|
|
46
|
+
|
|
47
|
+
Execute `pytest` to run the tests.
|
|
48
|
+
|
|
49
|
+
## Getting Started
|
|
50
|
+
|
|
51
|
+
Please follow the [installation procedure](#installation--usage) and then run the following:
|
|
52
|
+
|
|
53
|
+
```python
|
|
54
|
+
|
|
55
|
+
import crc-pulp_python-client
|
|
56
|
+
from crc-pulp_python-client.rest import ApiException
|
|
57
|
+
from pprint import pprint
|
|
58
|
+
|
|
59
|
+
# Defining the host is optional and defaults to https://env-ephemeral-pkrsh0.apps.crc-eph.r9lp.p1.openshiftapps.com
|
|
60
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
61
|
+
configuration = crc-pulp_python-client.Configuration(
|
|
62
|
+
host = "https://env-ephemeral-pkrsh0.apps.crc-eph.r9lp.p1.openshiftapps.com"
|
|
63
|
+
)
|
|
64
|
+
|
|
65
|
+
# The client must configure the authentication and authorization parameters
|
|
66
|
+
# in accordance with the API server security policy.
|
|
67
|
+
# Examples for each auth method are provided below, use the example that
|
|
68
|
+
# satisfies your auth use case.
|
|
69
|
+
|
|
70
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
71
|
+
|
|
72
|
+
# Configure HTTP basic authorization: basicAuth
|
|
73
|
+
configuration = crc-pulp_python-client.Configuration(
|
|
74
|
+
username = os.environ["USERNAME"],
|
|
75
|
+
password = os.environ["PASSWORD"]
|
|
76
|
+
)
|
|
77
|
+
|
|
78
|
+
# Configure API key authorization: cookieAuth
|
|
79
|
+
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
|
|
80
|
+
|
|
81
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
82
|
+
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
# Enter a context with an instance of the API client
|
|
86
|
+
with crc-pulp_python-client.ApiClient(configuration) as api_client:
|
|
87
|
+
# Create an instance of the API class
|
|
88
|
+
api_instance = crc-pulp_python-client.ApiPypiApi(api_client)
|
|
89
|
+
path = 'path_example' # str |
|
|
90
|
+
pulp_domain = 'pulp_domain_example' # str |
|
|
91
|
+
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
|
|
92
|
+
fields = ['fields_example'] # List[str] | A list of fields to include in the response. (optional)
|
|
93
|
+
exclude_fields = ['exclude_fields_example'] # List[str] | A list of fields to exclude from the response. (optional)
|
|
94
|
+
|
|
95
|
+
try:
|
|
96
|
+
# Get index summary
|
|
97
|
+
api_response = api_instance.read(path, pulp_domain, x_task_diagnostics=x_task_diagnostics, fields=fields, exclude_fields=exclude_fields)
|
|
98
|
+
print("The response of ApiPypiApi->read:\n")
|
|
99
|
+
pprint(api_response)
|
|
100
|
+
except ApiException as e:
|
|
101
|
+
print("Exception when calling ApiPypiApi->read: %s\n" % e)
|
|
102
|
+
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
## Documentation for API Endpoints
|
|
106
|
+
|
|
107
|
+
All URIs are relative to *https://env-ephemeral-pkrsh0.apps.crc-eph.r9lp.p1.openshiftapps.com*
|
|
108
|
+
|
|
109
|
+
Class | Method | HTTP request | Description
|
|
110
|
+
------------ | ------------- | ------------- | -------------
|
|
111
|
+
*ApiPypiApi* | [**read**](docs/ApiPypiApi.md#read) | **GET** /api/pulp/pypi/{pulp_domain}/{path}/ | Get index summary
|
|
112
|
+
*ApiPypiLegacyApi* | [**create**](docs/ApiPypiLegacyApi.md#create) | **POST** /api/pulp/pypi/{pulp_domain}/{path}/legacy/ | Upload a package
|
|
113
|
+
*ApiPypiSimpleApi* | [**create**](docs/ApiPypiSimpleApi.md#create) | **POST** /api/pulp/pypi/{pulp_domain}/{path}/simple/ | Upload a package
|
|
114
|
+
*ApiPypiSimpleApi* | [**pypi_simple_package_read**](docs/ApiPypiSimpleApi.md#pypi_simple_package_read) | **GET** /api/pulp/pypi/{pulp_domain}/{path}/simple/{package}/ | Get package simple page
|
|
115
|
+
*ApiPypiSimpleApi* | [**read**](docs/ApiPypiSimpleApi.md#read) | **GET** /api/pulp/pypi/{pulp_domain}/{path}/simple/ | Get index simple page
|
|
116
|
+
*ContentPackagesApi* | [**create**](docs/ContentPackagesApi.md#create) | **POST** /api/pulp/{pulp_domain}/api/v3/content/python/packages/ | Create a python package content
|
|
117
|
+
*ContentPackagesApi* | [**list**](docs/ContentPackagesApi.md#list) | **GET** /api/pulp/{pulp_domain}/api/v3/content/python/packages/ | List python package contents
|
|
118
|
+
*ContentPackagesApi* | [**read**](docs/ContentPackagesApi.md#read) | **GET** {python_python_package_content_href} | Inspect a python package content
|
|
119
|
+
*ContentPackagesApi* | [**set_label**](docs/ContentPackagesApi.md#set_label) | **POST** {python_python_package_content_href}set_label/ | Set a label
|
|
120
|
+
*ContentPackagesApi* | [**unset_label**](docs/ContentPackagesApi.md#unset_label) | **POST** {python_python_package_content_href}unset_label/ | Unset a label
|
|
121
|
+
*DistributionsPypiApi* | [**add_role**](docs/DistributionsPypiApi.md#add_role) | **POST** {python_python_distribution_href}add_role/ | Add a role
|
|
122
|
+
*DistributionsPypiApi* | [**create**](docs/DistributionsPypiApi.md#create) | **POST** /api/pulp/{pulp_domain}/api/v3/distributions/python/pypi/ | Create a python distribution
|
|
123
|
+
*DistributionsPypiApi* | [**delete**](docs/DistributionsPypiApi.md#delete) | **DELETE** {python_python_distribution_href} | Delete a python distribution
|
|
124
|
+
*DistributionsPypiApi* | [**list**](docs/DistributionsPypiApi.md#list) | **GET** /api/pulp/{pulp_domain}/api/v3/distributions/python/pypi/ | List python distributions
|
|
125
|
+
*DistributionsPypiApi* | [**list_roles**](docs/DistributionsPypiApi.md#list_roles) | **GET** {python_python_distribution_href}list_roles/ | List roles
|
|
126
|
+
*DistributionsPypiApi* | [**my_permissions**](docs/DistributionsPypiApi.md#my_permissions) | **GET** {python_python_distribution_href}my_permissions/ | List user permissions
|
|
127
|
+
*DistributionsPypiApi* | [**partial_update**](docs/DistributionsPypiApi.md#partial_update) | **PATCH** {python_python_distribution_href} | Update a python distribution
|
|
128
|
+
*DistributionsPypiApi* | [**read**](docs/DistributionsPypiApi.md#read) | **GET** {python_python_distribution_href} | Inspect a python distribution
|
|
129
|
+
*DistributionsPypiApi* | [**remove_role**](docs/DistributionsPypiApi.md#remove_role) | **POST** {python_python_distribution_href}remove_role/ | Remove a role
|
|
130
|
+
*DistributionsPypiApi* | [**set_label**](docs/DistributionsPypiApi.md#set_label) | **POST** {python_python_distribution_href}set_label/ | Set a label
|
|
131
|
+
*DistributionsPypiApi* | [**unset_label**](docs/DistributionsPypiApi.md#unset_label) | **POST** {python_python_distribution_href}unset_label/ | Unset a label
|
|
132
|
+
*DistributionsPypiApi* | [**update**](docs/DistributionsPypiApi.md#update) | **PUT** {python_python_distribution_href} | Update a python distribution
|
|
133
|
+
*PublicationsPypiApi* | [**add_role**](docs/PublicationsPypiApi.md#add_role) | **POST** {python_python_publication_href}add_role/ | Add a role
|
|
134
|
+
*PublicationsPypiApi* | [**create**](docs/PublicationsPypiApi.md#create) | **POST** /api/pulp/{pulp_domain}/api/v3/publications/python/pypi/ | Create a python publication
|
|
135
|
+
*PublicationsPypiApi* | [**delete**](docs/PublicationsPypiApi.md#delete) | **DELETE** {python_python_publication_href} | Delete a python publication
|
|
136
|
+
*PublicationsPypiApi* | [**list**](docs/PublicationsPypiApi.md#list) | **GET** /api/pulp/{pulp_domain}/api/v3/publications/python/pypi/ | List python publications
|
|
137
|
+
*PublicationsPypiApi* | [**list_roles**](docs/PublicationsPypiApi.md#list_roles) | **GET** {python_python_publication_href}list_roles/ | List roles
|
|
138
|
+
*PublicationsPypiApi* | [**my_permissions**](docs/PublicationsPypiApi.md#my_permissions) | **GET** {python_python_publication_href}my_permissions/ | List user permissions
|
|
139
|
+
*PublicationsPypiApi* | [**read**](docs/PublicationsPypiApi.md#read) | **GET** {python_python_publication_href} | Inspect a python publication
|
|
140
|
+
*PublicationsPypiApi* | [**remove_role**](docs/PublicationsPypiApi.md#remove_role) | **POST** {python_python_publication_href}remove_role/ | Remove a role
|
|
141
|
+
*PypiMetadataApi* | [**read**](docs/PypiMetadataApi.md#read) | **GET** /api/pulp/pypi/{pulp_domain}/{path}/pypi/{meta}/ | Get package metadata
|
|
142
|
+
*RemotesPythonApi* | [**add_role**](docs/RemotesPythonApi.md#add_role) | **POST** {python_python_remote_href}add_role/ | Add a role
|
|
143
|
+
*RemotesPythonApi* | [**create**](docs/RemotesPythonApi.md#create) | **POST** /api/pulp/{pulp_domain}/api/v3/remotes/python/python/ | Create a python remote
|
|
144
|
+
*RemotesPythonApi* | [**delete**](docs/RemotesPythonApi.md#delete) | **DELETE** {python_python_remote_href} | Delete a python remote
|
|
145
|
+
*RemotesPythonApi* | [**from_bandersnatch**](docs/RemotesPythonApi.md#from_bandersnatch) | **POST** /api/pulp/{pulp_domain}/api/v3/remotes/python/python/from_bandersnatch/ | Create from Bandersnatch
|
|
146
|
+
*RemotesPythonApi* | [**list**](docs/RemotesPythonApi.md#list) | **GET** /api/pulp/{pulp_domain}/api/v3/remotes/python/python/ | List python remotes
|
|
147
|
+
*RemotesPythonApi* | [**list_roles**](docs/RemotesPythonApi.md#list_roles) | **GET** {python_python_remote_href}list_roles/ | List roles
|
|
148
|
+
*RemotesPythonApi* | [**my_permissions**](docs/RemotesPythonApi.md#my_permissions) | **GET** {python_python_remote_href}my_permissions/ | List user permissions
|
|
149
|
+
*RemotesPythonApi* | [**partial_update**](docs/RemotesPythonApi.md#partial_update) | **PATCH** {python_python_remote_href} | Update a python remote
|
|
150
|
+
*RemotesPythonApi* | [**read**](docs/RemotesPythonApi.md#read) | **GET** {python_python_remote_href} | Inspect a python remote
|
|
151
|
+
*RemotesPythonApi* | [**remove_role**](docs/RemotesPythonApi.md#remove_role) | **POST** {python_python_remote_href}remove_role/ | Remove a role
|
|
152
|
+
*RemotesPythonApi* | [**set_label**](docs/RemotesPythonApi.md#set_label) | **POST** {python_python_remote_href}set_label/ | Set a label
|
|
153
|
+
*RemotesPythonApi* | [**unset_label**](docs/RemotesPythonApi.md#unset_label) | **POST** {python_python_remote_href}unset_label/ | Unset a label
|
|
154
|
+
*RemotesPythonApi* | [**update**](docs/RemotesPythonApi.md#update) | **PUT** {python_python_remote_href} | Update a python remote
|
|
155
|
+
*RepositoriesPythonApi* | [**add_role**](docs/RepositoriesPythonApi.md#add_role) | **POST** {python_python_repository_href}add_role/ | Add a role
|
|
156
|
+
*RepositoriesPythonApi* | [**create**](docs/RepositoriesPythonApi.md#create) | **POST** /api/pulp/{pulp_domain}/api/v3/repositories/python/python/ | Create a python repository
|
|
157
|
+
*RepositoriesPythonApi* | [**delete**](docs/RepositoriesPythonApi.md#delete) | **DELETE** {python_python_repository_href} | Delete a python repository
|
|
158
|
+
*RepositoriesPythonApi* | [**list**](docs/RepositoriesPythonApi.md#list) | **GET** /api/pulp/{pulp_domain}/api/v3/repositories/python/python/ | List python repositorys
|
|
159
|
+
*RepositoriesPythonApi* | [**list_roles**](docs/RepositoriesPythonApi.md#list_roles) | **GET** {python_python_repository_href}list_roles/ | List roles
|
|
160
|
+
*RepositoriesPythonApi* | [**modify**](docs/RepositoriesPythonApi.md#modify) | **POST** {python_python_repository_href}modify/ | Modify Repository Content
|
|
161
|
+
*RepositoriesPythonApi* | [**my_permissions**](docs/RepositoriesPythonApi.md#my_permissions) | **GET** {python_python_repository_href}my_permissions/ | List user permissions
|
|
162
|
+
*RepositoriesPythonApi* | [**partial_update**](docs/RepositoriesPythonApi.md#partial_update) | **PATCH** {python_python_repository_href} | Update a python repository
|
|
163
|
+
*RepositoriesPythonApi* | [**read**](docs/RepositoriesPythonApi.md#read) | **GET** {python_python_repository_href} | Inspect a python repository
|
|
164
|
+
*RepositoriesPythonApi* | [**remove_role**](docs/RepositoriesPythonApi.md#remove_role) | **POST** {python_python_repository_href}remove_role/ | Remove a role
|
|
165
|
+
*RepositoriesPythonApi* | [**set_label**](docs/RepositoriesPythonApi.md#set_label) | **POST** {python_python_repository_href}set_label/ | Set a label
|
|
166
|
+
*RepositoriesPythonApi* | [**sync**](docs/RepositoriesPythonApi.md#sync) | **POST** {python_python_repository_href}sync/ | Sync from remote
|
|
167
|
+
*RepositoriesPythonApi* | [**unset_label**](docs/RepositoriesPythonApi.md#unset_label) | **POST** {python_python_repository_href}unset_label/ | Unset a label
|
|
168
|
+
*RepositoriesPythonApi* | [**update**](docs/RepositoriesPythonApi.md#update) | **PUT** {python_python_repository_href} | Update a python repository
|
|
169
|
+
*RepositoriesPythonVersionsApi* | [**delete**](docs/RepositoriesPythonVersionsApi.md#delete) | **DELETE** {python_python_repository_version_href} | Delete a repository version
|
|
170
|
+
*RepositoriesPythonVersionsApi* | [**list**](docs/RepositoriesPythonVersionsApi.md#list) | **GET** {python_python_repository_href}versions/ | List repository versions
|
|
171
|
+
*RepositoriesPythonVersionsApi* | [**read**](docs/RepositoriesPythonVersionsApi.md#read) | **GET** {python_python_repository_version_href} | Inspect a repository version
|
|
172
|
+
*RepositoriesPythonVersionsApi* | [**repair**](docs/RepositoriesPythonVersionsApi.md#repair) | **POST** {python_python_repository_version_href}repair/ |
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
## Documentation For Models
|
|
176
|
+
|
|
177
|
+
- [AsyncOperationResponse](docs/AsyncOperationResponse.md)
|
|
178
|
+
- [ContentSummaryResponse](docs/ContentSummaryResponse.md)
|
|
179
|
+
- [ExcludePlatformsEnum](docs/ExcludePlatformsEnum.md)
|
|
180
|
+
- [MyPermissionsResponse](docs/MyPermissionsResponse.md)
|
|
181
|
+
- [NestedRole](docs/NestedRole.md)
|
|
182
|
+
- [NestedRoleResponse](docs/NestedRoleResponse.md)
|
|
183
|
+
- [ObjectRolesResponse](docs/ObjectRolesResponse.md)
|
|
184
|
+
- [PackageMetadataResponse](docs/PackageMetadataResponse.md)
|
|
185
|
+
- [PackageTypesEnum](docs/PackageTypesEnum.md)
|
|
186
|
+
- [PackageUploadTaskResponse](docs/PackageUploadTaskResponse.md)
|
|
187
|
+
- [PaginatedRepositoryVersionResponseList](docs/PaginatedRepositoryVersionResponseList.md)
|
|
188
|
+
- [PaginatedpythonPythonDistributionResponseList](docs/PaginatedpythonPythonDistributionResponseList.md)
|
|
189
|
+
- [PaginatedpythonPythonPackageContentResponseList](docs/PaginatedpythonPythonPackageContentResponseList.md)
|
|
190
|
+
- [PaginatedpythonPythonPublicationResponseList](docs/PaginatedpythonPythonPublicationResponseList.md)
|
|
191
|
+
- [PaginatedpythonPythonRemoteResponseList](docs/PaginatedpythonPythonRemoteResponseList.md)
|
|
192
|
+
- [PaginatedpythonPythonRepositoryResponseList](docs/PaginatedpythonPythonRepositoryResponseList.md)
|
|
193
|
+
- [PatchedpythonPythonDistribution](docs/PatchedpythonPythonDistribution.md)
|
|
194
|
+
- [PatchedpythonPythonRemote](docs/PatchedpythonPythonRemote.md)
|
|
195
|
+
- [PatchedpythonPythonRepository](docs/PatchedpythonPythonRepository.md)
|
|
196
|
+
- [PolicyEnum](docs/PolicyEnum.md)
|
|
197
|
+
- [PythonPythonDistribution](docs/PythonPythonDistribution.md)
|
|
198
|
+
- [PythonPythonDistributionResponse](docs/PythonPythonDistributionResponse.md)
|
|
199
|
+
- [PythonPythonPackageContentResponse](docs/PythonPythonPackageContentResponse.md)
|
|
200
|
+
- [PythonPythonPublication](docs/PythonPythonPublication.md)
|
|
201
|
+
- [PythonPythonPublicationResponse](docs/PythonPythonPublicationResponse.md)
|
|
202
|
+
- [PythonPythonRemote](docs/PythonPythonRemote.md)
|
|
203
|
+
- [PythonPythonRemoteResponse](docs/PythonPythonRemoteResponse.md)
|
|
204
|
+
- [PythonPythonRemoteResponseHiddenFieldsInner](docs/PythonPythonRemoteResponseHiddenFieldsInner.md)
|
|
205
|
+
- [PythonPythonRepository](docs/PythonPythonRepository.md)
|
|
206
|
+
- [PythonPythonRepositoryResponse](docs/PythonPythonRepositoryResponse.md)
|
|
207
|
+
- [Repair](docs/Repair.md)
|
|
208
|
+
- [RepositoryAddRemoveContent](docs/RepositoryAddRemoveContent.md)
|
|
209
|
+
- [RepositorySyncURL](docs/RepositorySyncURL.md)
|
|
210
|
+
- [RepositoryVersionResponse](docs/RepositoryVersionResponse.md)
|
|
211
|
+
- [SetLabel](docs/SetLabel.md)
|
|
212
|
+
- [SetLabelResponse](docs/SetLabelResponse.md)
|
|
213
|
+
- [SummaryResponse](docs/SummaryResponse.md)
|
|
214
|
+
- [UnsetLabel](docs/UnsetLabel.md)
|
|
215
|
+
- [UnsetLabelResponse](docs/UnsetLabelResponse.md)
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
<a id="documentation-for-authorization"></a>
|
|
219
|
+
## Documentation For Authorization
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
Authentication schemes defined for the API:
|
|
223
|
+
<a id="basicAuth"></a>
|
|
224
|
+
### basicAuth
|
|
225
|
+
|
|
226
|
+
- **Type**: HTTP basic authentication
|
|
227
|
+
|
|
228
|
+
<a id="cookieAuth"></a>
|
|
229
|
+
### cookieAuth
|
|
230
|
+
|
|
231
|
+
- **Type**: API key
|
|
232
|
+
- **API key parameter name**: sessionid
|
|
233
|
+
- **Location**:
|
|
234
|
+
|
|
235
|
+
<a id="json_header_remote_authentication"></a>
|
|
236
|
+
### json_header_remote_authentication
|
|
237
|
+
|
|
238
|
+
- **Type**: OAuth
|
|
239
|
+
- **Flow**: application
|
|
240
|
+
- **Authorization URL**:
|
|
241
|
+
- **Scopes**:
|
|
242
|
+
- **api.console**: grant_access_to_pulp
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
## Author
|
|
246
|
+
|
|
247
|
+
pulp-list@redhat.com
|
|
248
|
+
|
|
249
|
+
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# flake8: noqa
|
|
2
|
+
|
|
3
|
+
# import apis into api package
|
|
4
|
+
from crc-pulp_python-client.api.api_pypi_api import ApiPypiApi
|
|
5
|
+
from crc-pulp_python-client.api.api_pypi_legacy_api import ApiPypiLegacyApi
|
|
6
|
+
from crc-pulp_python-client.api.api_pypi_simple_api import ApiPypiSimpleApi
|
|
7
|
+
from crc-pulp_python-client.api.content_packages_api import ContentPackagesApi
|
|
8
|
+
from crc-pulp_python-client.api.distributions_pypi_api import DistributionsPypiApi
|
|
9
|
+
from crc-pulp_python-client.api.publications_pypi_api import PublicationsPypiApi
|
|
10
|
+
from crc-pulp_python-client.api.pypi_metadata_api import PypiMetadataApi
|
|
11
|
+
from crc-pulp_python-client.api.remotes_python_api import RemotesPythonApi
|
|
12
|
+
from crc-pulp_python-client.api.repositories_python_api import RepositoriesPythonApi
|
|
13
|
+
from crc-pulp_python-client.api.repositories_python_versions_api import RepositoriesPythonVersionsApi
|
|
14
|
+
|
|
@@ -0,0 +1,370 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Pulp 3 API
|
|
5
|
+
|
|
6
|
+
Fetch, Upload, Organize, and Distribute Software Packages
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: v3
|
|
9
|
+
Contact: pulp-list@redhat.com
|
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
|
+
|
|
12
|
+
Do not edit the class manually.
|
|
13
|
+
""" # noqa: E501
|
|
14
|
+
|
|
15
|
+
import warnings
|
|
16
|
+
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
17
|
+
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
18
|
+
from typing_extensions import Annotated
|
|
19
|
+
|
|
20
|
+
from pydantic import Field, StrictStr
|
|
21
|
+
from typing import List, Optional
|
|
22
|
+
from typing_extensions import Annotated
|
|
23
|
+
from crc-pulp_python-client.models.summary_response import SummaryResponse
|
|
24
|
+
|
|
25
|
+
from crc-pulp_python-client.api_client import ApiClient, RequestSerialized
|
|
26
|
+
from crc-pulp_python-client.api_response import ApiResponse
|
|
27
|
+
from crc-pulp_python-client.rest import RESTResponseType
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
class ApiPypiApi:
|
|
31
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
32
|
+
Ref: https://openapi-generator.tech
|
|
33
|
+
|
|
34
|
+
Do not edit the class manually.
|
|
35
|
+
"""
|
|
36
|
+
|
|
37
|
+
def __init__(self, api_client=None) -> None:
|
|
38
|
+
if api_client is None:
|
|
39
|
+
api_client = ApiClient.get_default()
|
|
40
|
+
self.api_client = api_client
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
@validate_call
|
|
44
|
+
def read(
|
|
45
|
+
self,
|
|
46
|
+
path: StrictStr,
|
|
47
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
48
|
+
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
49
|
+
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
50
|
+
pulp_domain: StrictStr = "default",
|
|
51
|
+
_request_timeout: Union[
|
|
52
|
+
None,
|
|
53
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
54
|
+
Tuple[
|
|
55
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
56
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
57
|
+
]
|
|
58
|
+
] = None,
|
|
59
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
60
|
+
_content_type: Optional[StrictStr] = None,
|
|
61
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
62
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
63
|
+
) -> SummaryResponse:
|
|
64
|
+
"""Get index summary
|
|
65
|
+
|
|
66
|
+
Gets package summary stats of index.
|
|
67
|
+
|
|
68
|
+
:param path: (required)
|
|
69
|
+
:type path: str
|
|
70
|
+
:param pulp_domain: (required)
|
|
71
|
+
:type pulp_domain: str
|
|
72
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
73
|
+
:type x_task_diagnostics: List[str]
|
|
74
|
+
:param fields: A list of fields to include in the response.
|
|
75
|
+
:type fields: List[str]
|
|
76
|
+
:param exclude_fields: A list of fields to exclude from the response.
|
|
77
|
+
:type exclude_fields: List[str]
|
|
78
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
79
|
+
number provided, it will be total request
|
|
80
|
+
timeout. It can also be a pair (tuple) of
|
|
81
|
+
(connection, read) timeouts.
|
|
82
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
83
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
84
|
+
request; this effectively ignores the
|
|
85
|
+
authentication in the spec for a single request.
|
|
86
|
+
:type _request_auth: dict, optional
|
|
87
|
+
:param _content_type: force content-type for the request.
|
|
88
|
+
:type _content_type: str, Optional
|
|
89
|
+
:param _headers: set to override the headers for a single
|
|
90
|
+
request; this effectively ignores the headers
|
|
91
|
+
in the spec for a single request.
|
|
92
|
+
:type _headers: dict, optional
|
|
93
|
+
:param _host_index: set to override the host_index for a single
|
|
94
|
+
request; this effectively ignores the host_index
|
|
95
|
+
in the spec for a single request.
|
|
96
|
+
:type _host_index: int, optional
|
|
97
|
+
:return: Returns the result object.
|
|
98
|
+
""" # noqa: E501
|
|
99
|
+
|
|
100
|
+
_param = self._read_serialize(
|
|
101
|
+
path=path,
|
|
102
|
+
pulp_domain=pulp_domain,
|
|
103
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
104
|
+
fields=fields,
|
|
105
|
+
exclude_fields=exclude_fields,
|
|
106
|
+
_request_auth=_request_auth,
|
|
107
|
+
_content_type=_content_type,
|
|
108
|
+
_headers=_headers,
|
|
109
|
+
_host_index=_host_index
|
|
110
|
+
)
|
|
111
|
+
|
|
112
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
113
|
+
'200': "SummaryResponse",
|
|
114
|
+
}
|
|
115
|
+
response_data = self.api_client.call_api(
|
|
116
|
+
*_param,
|
|
117
|
+
_request_timeout=_request_timeout
|
|
118
|
+
)
|
|
119
|
+
response_data.read()
|
|
120
|
+
return self.api_client.response_deserialize(
|
|
121
|
+
response_data=response_data,
|
|
122
|
+
response_types_map=_response_types_map,
|
|
123
|
+
).data
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
@validate_call
|
|
127
|
+
def read_with_http_info(
|
|
128
|
+
self,
|
|
129
|
+
path: StrictStr,
|
|
130
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
131
|
+
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
132
|
+
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
133
|
+
pulp_domain: StrictStr = "default",
|
|
134
|
+
_request_timeout: Union[
|
|
135
|
+
None,
|
|
136
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
137
|
+
Tuple[
|
|
138
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
139
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
140
|
+
]
|
|
141
|
+
] = None,
|
|
142
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
143
|
+
_content_type: Optional[StrictStr] = None,
|
|
144
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
145
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
146
|
+
) -> ApiResponse[SummaryResponse]:
|
|
147
|
+
"""Get index summary
|
|
148
|
+
|
|
149
|
+
Gets package summary stats of index.
|
|
150
|
+
|
|
151
|
+
:param path: (required)
|
|
152
|
+
:type path: str
|
|
153
|
+
:param pulp_domain: (required)
|
|
154
|
+
:type pulp_domain: str
|
|
155
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
156
|
+
:type x_task_diagnostics: List[str]
|
|
157
|
+
:param fields: A list of fields to include in the response.
|
|
158
|
+
:type fields: List[str]
|
|
159
|
+
:param exclude_fields: A list of fields to exclude from the response.
|
|
160
|
+
:type exclude_fields: List[str]
|
|
161
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
162
|
+
number provided, it will be total request
|
|
163
|
+
timeout. It can also be a pair (tuple) of
|
|
164
|
+
(connection, read) timeouts.
|
|
165
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
166
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
167
|
+
request; this effectively ignores the
|
|
168
|
+
authentication in the spec for a single request.
|
|
169
|
+
:type _request_auth: dict, optional
|
|
170
|
+
:param _content_type: force content-type for the request.
|
|
171
|
+
:type _content_type: str, Optional
|
|
172
|
+
:param _headers: set to override the headers for a single
|
|
173
|
+
request; this effectively ignores the headers
|
|
174
|
+
in the spec for a single request.
|
|
175
|
+
:type _headers: dict, optional
|
|
176
|
+
:param _host_index: set to override the host_index for a single
|
|
177
|
+
request; this effectively ignores the host_index
|
|
178
|
+
in the spec for a single request.
|
|
179
|
+
:type _host_index: int, optional
|
|
180
|
+
:return: Returns the result object.
|
|
181
|
+
""" # noqa: E501
|
|
182
|
+
|
|
183
|
+
_param = self._read_serialize(
|
|
184
|
+
path=path,
|
|
185
|
+
pulp_domain=pulp_domain,
|
|
186
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
187
|
+
fields=fields,
|
|
188
|
+
exclude_fields=exclude_fields,
|
|
189
|
+
_request_auth=_request_auth,
|
|
190
|
+
_content_type=_content_type,
|
|
191
|
+
_headers=_headers,
|
|
192
|
+
_host_index=_host_index
|
|
193
|
+
)
|
|
194
|
+
|
|
195
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
196
|
+
'200': "SummaryResponse",
|
|
197
|
+
}
|
|
198
|
+
response_data = self.api_client.call_api(
|
|
199
|
+
*_param,
|
|
200
|
+
_request_timeout=_request_timeout
|
|
201
|
+
)
|
|
202
|
+
response_data.read()
|
|
203
|
+
return self.api_client.response_deserialize(
|
|
204
|
+
response_data=response_data,
|
|
205
|
+
response_types_map=_response_types_map,
|
|
206
|
+
)
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
@validate_call
|
|
210
|
+
def read_without_preload_content(
|
|
211
|
+
self,
|
|
212
|
+
path: StrictStr,
|
|
213
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
214
|
+
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
215
|
+
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
216
|
+
pulp_domain: StrictStr = "default",
|
|
217
|
+
_request_timeout: Union[
|
|
218
|
+
None,
|
|
219
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
220
|
+
Tuple[
|
|
221
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
222
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
223
|
+
]
|
|
224
|
+
] = None,
|
|
225
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
226
|
+
_content_type: Optional[StrictStr] = None,
|
|
227
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
228
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
229
|
+
) -> RESTResponseType:
|
|
230
|
+
"""Get index summary
|
|
231
|
+
|
|
232
|
+
Gets package summary stats of index.
|
|
233
|
+
|
|
234
|
+
:param path: (required)
|
|
235
|
+
:type path: str
|
|
236
|
+
:param pulp_domain: (required)
|
|
237
|
+
:type pulp_domain: str
|
|
238
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
239
|
+
:type x_task_diagnostics: List[str]
|
|
240
|
+
:param fields: A list of fields to include in the response.
|
|
241
|
+
:type fields: List[str]
|
|
242
|
+
:param exclude_fields: A list of fields to exclude from the response.
|
|
243
|
+
:type exclude_fields: List[str]
|
|
244
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
245
|
+
number provided, it will be total request
|
|
246
|
+
timeout. It can also be a pair (tuple) of
|
|
247
|
+
(connection, read) timeouts.
|
|
248
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
249
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
250
|
+
request; this effectively ignores the
|
|
251
|
+
authentication in the spec for a single request.
|
|
252
|
+
:type _request_auth: dict, optional
|
|
253
|
+
:param _content_type: force content-type for the request.
|
|
254
|
+
:type _content_type: str, Optional
|
|
255
|
+
:param _headers: set to override the headers for a single
|
|
256
|
+
request; this effectively ignores the headers
|
|
257
|
+
in the spec for a single request.
|
|
258
|
+
:type _headers: dict, optional
|
|
259
|
+
:param _host_index: set to override the host_index for a single
|
|
260
|
+
request; this effectively ignores the host_index
|
|
261
|
+
in the spec for a single request.
|
|
262
|
+
:type _host_index: int, optional
|
|
263
|
+
:return: Returns the result object.
|
|
264
|
+
""" # noqa: E501
|
|
265
|
+
|
|
266
|
+
_param = self._read_serialize(
|
|
267
|
+
path=path,
|
|
268
|
+
pulp_domain=pulp_domain,
|
|
269
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
270
|
+
fields=fields,
|
|
271
|
+
exclude_fields=exclude_fields,
|
|
272
|
+
_request_auth=_request_auth,
|
|
273
|
+
_content_type=_content_type,
|
|
274
|
+
_headers=_headers,
|
|
275
|
+
_host_index=_host_index
|
|
276
|
+
)
|
|
277
|
+
|
|
278
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
279
|
+
'200': "SummaryResponse",
|
|
280
|
+
}
|
|
281
|
+
response_data = self.api_client.call_api(
|
|
282
|
+
*_param,
|
|
283
|
+
_request_timeout=_request_timeout
|
|
284
|
+
)
|
|
285
|
+
return response_data.response
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
def _read_serialize(
|
|
289
|
+
self,
|
|
290
|
+
path,
|
|
291
|
+
pulp_domain,
|
|
292
|
+
x_task_diagnostics,
|
|
293
|
+
fields,
|
|
294
|
+
exclude_fields,
|
|
295
|
+
_request_auth,
|
|
296
|
+
_content_type,
|
|
297
|
+
_headers,
|
|
298
|
+
_host_index,
|
|
299
|
+
) -> RequestSerialized:
|
|
300
|
+
|
|
301
|
+
_host = None
|
|
302
|
+
|
|
303
|
+
_collection_formats: Dict[str, str] = {
|
|
304
|
+
'X-Task-Diagnostics': 'csv',
|
|
305
|
+
'fields': 'multi',
|
|
306
|
+
'exclude_fields': 'multi',
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
_path_params: Dict[str, str] = {}
|
|
310
|
+
_query_params: List[Tuple[str, str]] = []
|
|
311
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
312
|
+
_form_params: List[Tuple[str, str]] = []
|
|
313
|
+
_files: Dict[
|
|
314
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
315
|
+
] = {}
|
|
316
|
+
_body_params: Optional[bytes] = None
|
|
317
|
+
|
|
318
|
+
# process the path parameters
|
|
319
|
+
if path is not None:
|
|
320
|
+
_path_params['path'] = path
|
|
321
|
+
if pulp_domain is not None:
|
|
322
|
+
_path_params['pulp_domain'] = pulp_domain
|
|
323
|
+
# process the query parameters
|
|
324
|
+
if fields is not None:
|
|
325
|
+
|
|
326
|
+
_query_params.append(('fields', fields))
|
|
327
|
+
|
|
328
|
+
if exclude_fields is not None:
|
|
329
|
+
|
|
330
|
+
_query_params.append(('exclude_fields', exclude_fields))
|
|
331
|
+
|
|
332
|
+
# process the header parameters
|
|
333
|
+
if x_task_diagnostics is not None:
|
|
334
|
+
_header_params['X-Task-Diagnostics'] = x_task_diagnostics
|
|
335
|
+
# process the form parameters
|
|
336
|
+
# process the body parameter
|
|
337
|
+
|
|
338
|
+
|
|
339
|
+
# set the HTTP header `Accept`
|
|
340
|
+
if 'Accept' not in _header_params:
|
|
341
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
342
|
+
[
|
|
343
|
+
'application/json'
|
|
344
|
+
]
|
|
345
|
+
)
|
|
346
|
+
|
|
347
|
+
|
|
348
|
+
# authentication setting
|
|
349
|
+
_auth_settings: List[str] = [
|
|
350
|
+
'json_header_remote_authentication',
|
|
351
|
+
'basicAuth',
|
|
352
|
+
'cookieAuth'
|
|
353
|
+
]
|
|
354
|
+
|
|
355
|
+
return self.api_client.param_serialize(
|
|
356
|
+
method='GET',
|
|
357
|
+
resource_path='/api/pulp/pypi/{pulp_domain}/{path}/',
|
|
358
|
+
path_params=_path_params,
|
|
359
|
+
query_params=_query_params,
|
|
360
|
+
header_params=_header_params,
|
|
361
|
+
body=_body_params,
|
|
362
|
+
post_params=_form_params,
|
|
363
|
+
files=_files,
|
|
364
|
+
auth_settings=_auth_settings,
|
|
365
|
+
collection_formats=_collection_formats,
|
|
366
|
+
_host=_host,
|
|
367
|
+
_request_auth=_request_auth
|
|
368
|
+
)
|
|
369
|
+
|
|
370
|
+
|