pulp-python-client 3.24.1__tar.gz → 3.24.2__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.
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/PKG-INFO +6 -3
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/README.md +5 -2
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/pulp_python_client.egg-info/PKG-INFO +6 -3
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/pulp_python_client.egg-info/SOURCES.txt +4 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/pulpcore/client/pulp_python/__init__.py +5 -1
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/pulpcore/client/pulp_python/api/content_packages_api.py +30 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/pulpcore/client/pulp_python/api/content_provenance_api.py +16 -1
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/pulpcore/client/pulp_python/api_client.py +1 -1
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/pulpcore/client/pulp_python/configuration.py +1 -1
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/pulpcore/client/pulp_python/models/__init__.py +2 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/pulpcore/client/pulp_python/models/patchedpython_python_remote.py +9 -9
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/pulpcore/client/pulp_python/models/python_python_remote.py +9 -9
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/pulpcore/client/pulp_python/models/python_python_remote_response.py +10 -10
- pulp_python_client-3.24.2/pulpcore/client/pulp_python/models/remote_network_config.py +178 -0
- pulp_python_client-3.24.2/pulpcore/client/pulp_python/models/remote_network_config_response.py +148 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/pyproject.toml +1 -1
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/setup.py +1 -1
- pulp_python_client-3.24.2/test/test_remote_network_config.py +70 -0
- pulp_python_client-3.24.2/test/test_remote_network_config_response.py +65 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/pulp_python_client.egg-info/dependency_links.txt +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/pulp_python_client.egg-info/requires.txt +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/pulp_python_client.egg-info/top_level.txt +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/pulpcore/__init__.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/pulpcore/client/__init__.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/pulpcore/client/pulp_python/api/__init__.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/pulpcore/client/pulp_python/api/distributions_pypi_api.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/pulpcore/client/pulp_python/api/publications_pypi_api.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/pulpcore/client/pulp_python/api/pypi_api.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/pulpcore/client/pulp_python/api/pypi_legacy_api.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/pulpcore/client/pulp_python/api/pypi_metadata_api.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/pulpcore/client/pulp_python/api/pypi_provenance_api.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/pulpcore/client/pulp_python/api/pypi_simple_api.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/pulpcore/client/pulp_python/api/remotes_python_api.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/pulpcore/client/pulp_python/api/repositories_python_api.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/pulpcore/client/pulp_python/api/repositories_python_versions_api.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/pulpcore/client/pulp_python/api_response.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/pulpcore/client/pulp_python/exceptions.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/pulpcore/client/pulp_python/models/async_operation_response.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/pulpcore/client/pulp_python/models/content_summary_response.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/pulpcore/client/pulp_python/models/exclude_platforms_enum.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/pulpcore/client/pulp_python/models/filetype_enum.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/pulpcore/client/pulp_python/models/metadata_version_enum.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/pulpcore/client/pulp_python/models/my_permissions_response.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/pulpcore/client/pulp_python/models/nested_role.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/pulpcore/client/pulp_python/models/nested_role_response.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/pulpcore/client/pulp_python/models/object_roles_response.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/pulpcore/client/pulp_python/models/package_metadata_response.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/pulpcore/client/pulp_python/models/package_types_enum.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/pulpcore/client/pulp_python/models/package_upload_task_response.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/pulpcore/client/pulp_python/models/paginated_repository_version_response_list.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/pulpcore/client/pulp_python/models/paginatedpython_package_provenance_response_list.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/pulpcore/client/pulp_python/models/paginatedpython_python_distribution_response_list.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/pulpcore/client/pulp_python/models/paginatedpython_python_package_content_response_list.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/pulpcore/client/pulp_python/models/paginatedpython_python_publication_response_list.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/pulpcore/client/pulp_python/models/paginatedpython_python_remote_response_list.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/pulpcore/client/pulp_python/models/paginatedpython_python_repository_response_list.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/pulpcore/client/pulp_python/models/patchedpython_python_distribution.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/pulpcore/client/pulp_python/models/patchedpython_python_repository.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/pulpcore/client/pulp_python/models/policy_enum.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/pulpcore/client/pulp_python/models/protocol_version_enum.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/pulpcore/client/pulp_python/models/python_package_provenance_response.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/pulpcore/client/pulp_python/models/python_python_distribution.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/pulpcore/client/pulp_python/models/python_python_distribution_response.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/pulpcore/client/pulp_python/models/python_python_package_content_response.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/pulpcore/client/pulp_python/models/python_python_publication.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/pulpcore/client/pulp_python/models/python_python_publication_response.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/pulpcore/client/pulp_python/models/python_python_remote_response_hidden_fields_inner.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/pulpcore/client/pulp_python/models/python_python_repository.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/pulpcore/client/pulp_python/models/python_python_repository_response.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/pulpcore/client/pulp_python/models/repair.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/pulpcore/client/pulp_python/models/repository_add_remove_content.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/pulpcore/client/pulp_python/models/repository_sync_url.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/pulpcore/client/pulp_python/models/repository_version_response.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/pulpcore/client/pulp_python/models/set_label.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/pulpcore/client/pulp_python/models/set_label_response.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/pulpcore/client/pulp_python/models/summary_response.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/pulpcore/client/pulp_python/models/unset_label.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/pulpcore/client/pulp_python/models/unset_label_response.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/pulpcore/client/pulp_python/py.typed +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/pulpcore/client/pulp_python/rest.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/setup.cfg +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/test/test_async_operation_response.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/test/test_content_packages_api.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/test/test_content_provenance_api.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/test/test_content_summary_response.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/test/test_distributions_pypi_api.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/test/test_exclude_platforms_enum.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/test/test_filetype_enum.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/test/test_metadata_version_enum.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/test/test_my_permissions_response.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/test/test_nested_role.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/test/test_nested_role_response.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/test/test_object_roles_response.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/test/test_package_metadata_response.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/test/test_package_types_enum.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/test/test_package_upload_task_response.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/test/test_paginated_repository_version_response_list.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/test/test_paginatedpython_package_provenance_response_list.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/test/test_paginatedpython_python_distribution_response_list.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/test/test_paginatedpython_python_package_content_response_list.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/test/test_paginatedpython_python_publication_response_list.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/test/test_paginatedpython_python_remote_response_list.py +20 -20
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/test/test_paginatedpython_python_repository_response_list.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/test/test_patchedpython_python_distribution.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/test/test_patchedpython_python_remote.py +5 -5
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/test/test_patchedpython_python_repository.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/test/test_policy_enum.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/test/test_protocol_version_enum.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/test/test_publications_pypi_api.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/test/test_pypi_api.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/test/test_pypi_legacy_api.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/test/test_pypi_metadata_api.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/test/test_pypi_provenance_api.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/test/test_pypi_simple_api.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/test/test_python_package_provenance_response.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/test/test_python_python_distribution.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/test/test_python_python_distribution_response.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/test/test_python_python_package_content_response.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/test/test_python_python_publication.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/test/test_python_python_publication_response.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/test/test_python_python_remote.py +5 -5
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/test/test_python_python_remote_response.py +10 -10
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/test/test_python_python_remote_response_hidden_fields_inner.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/test/test_python_python_repository.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/test/test_python_python_repository_response.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/test/test_remotes_python_api.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/test/test_repair.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/test/test_repositories_python_api.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/test/test_repositories_python_versions_api.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/test/test_repository_add_remove_content.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/test/test_repository_sync_url.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/test/test_repository_version_response.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/test/test_set_label.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/test/test_set_label_response.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/test/test_summary_response.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/test/test_unset_label.py +0 -0
- {pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/test/test_unset_label_response.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pulp_python-client
|
|
3
|
-
Version: 3.24.
|
|
3
|
+
Version: 3.24.2
|
|
4
4
|
Summary: Pulp 3 API
|
|
5
5
|
Home-page:
|
|
6
6
|
Author: Pulp Team
|
|
@@ -24,7 +24,7 @@ Fetch, Upload, Organize, and Distribute Software Packages
|
|
|
24
24
|
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
25
25
|
|
|
26
26
|
- API version: v3
|
|
27
|
-
- Package version: 3.24.
|
|
27
|
+
- Package version: 3.24.2
|
|
28
28
|
- Generator version: 7.14.0
|
|
29
29
|
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
|
|
30
30
|
For more information, please visit [https://pulpproject.org](https://pulpproject.org)
|
|
@@ -112,6 +112,7 @@ with pulpcore.client.pulp_python.ApiClient(configuration) as api_client:
|
|
|
112
112
|
file = None # bytearray | An uploaded file that may be turned into the content unit. (optional)
|
|
113
113
|
upload = 'upload_example' # str | An uncommitted upload that may be turned into the content unit. (optional)
|
|
114
114
|
file_url = 'file_url_example' # str | A url that Pulp can download and turn into the content unit. (optional)
|
|
115
|
+
downloader_config = pulpcore.client.pulp_python.RemoteNetworkConfig() # RemoteNetworkConfig | Configuration for the download process (e.g., proxies, auth, timeouts). Only applicable when providing a 'file_url. (optional)
|
|
115
116
|
author = 'author_example' # str | Text containing the author's name. Contact information can also be added, separated with newlines. (optional)
|
|
116
117
|
author_email = 'author_email_example' # str | The author's e-mail address. (optional)
|
|
117
118
|
description = 'description_example' # str | A longer description of the package that can run to several paragraphs. (optional)
|
|
@@ -143,7 +144,7 @@ with pulpcore.client.pulp_python.ApiClient(configuration) as api_client:
|
|
|
143
144
|
|
|
144
145
|
try:
|
|
145
146
|
# Create a python package content
|
|
146
|
-
api_response = api_instance.create(relative_path, x_task_diagnostics=x_task_diagnostics, repository=repository, pulp_labels=pulp_labels, artifact=artifact, file=file, upload=upload, file_url=file_url, author=author, author_email=author_email, description=description, home_page=home_page, keywords=keywords, license=license, platform=platform, summary=summary, classifiers=classifiers, download_url=download_url, supported_platform=supported_platform, maintainer=maintainer, maintainer_email=maintainer_email, obsoletes_dist=obsoletes_dist, project_url=project_url, project_urls=project_urls, provides_dist=provides_dist, requires_external=requires_external, requires_dist=requires_dist, requires_python=requires_python, description_content_type=description_content_type, provides_extras=provides_extras, dynamic=dynamic, license_expression=license_expression, license_file=license_file, sha256=sha256, metadata_sha256=metadata_sha256, attestations=attestations)
|
|
147
|
+
api_response = api_instance.create(relative_path, x_task_diagnostics=x_task_diagnostics, repository=repository, pulp_labels=pulp_labels, artifact=artifact, file=file, upload=upload, file_url=file_url, downloader_config=downloader_config, author=author, author_email=author_email, description=description, home_page=home_page, keywords=keywords, license=license, platform=platform, summary=summary, classifiers=classifiers, download_url=download_url, supported_platform=supported_platform, maintainer=maintainer, maintainer_email=maintainer_email, obsoletes_dist=obsoletes_dist, project_url=project_url, project_urls=project_urls, provides_dist=provides_dist, requires_external=requires_external, requires_dist=requires_dist, requires_python=requires_python, description_content_type=description_content_type, provides_extras=provides_extras, dynamic=dynamic, license_expression=license_expression, license_file=license_file, sha256=sha256, metadata_sha256=metadata_sha256, attestations=attestations)
|
|
147
148
|
print("The response of ContentPackagesApi->create:\n")
|
|
148
149
|
pprint(api_response)
|
|
149
150
|
except ApiException as e:
|
|
@@ -267,6 +268,8 @@ Class | Method | HTTP request | Description
|
|
|
267
268
|
- [PythonPythonRemoteResponseHiddenFieldsInner](docs/PythonPythonRemoteResponseHiddenFieldsInner.md)
|
|
268
269
|
- [PythonPythonRepository](docs/PythonPythonRepository.md)
|
|
269
270
|
- [PythonPythonRepositoryResponse](docs/PythonPythonRepositoryResponse.md)
|
|
271
|
+
- [RemoteNetworkConfig](docs/RemoteNetworkConfig.md)
|
|
272
|
+
- [RemoteNetworkConfigResponse](docs/RemoteNetworkConfigResponse.md)
|
|
270
273
|
- [Repair](docs/Repair.md)
|
|
271
274
|
- [RepositoryAddRemoveContent](docs/RepositoryAddRemoveContent.md)
|
|
272
275
|
- [RepositorySyncURL](docs/RepositorySyncURL.md)
|
|
@@ -4,7 +4,7 @@ Fetch, Upload, Organize, and Distribute Software Packages
|
|
|
4
4
|
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
5
5
|
|
|
6
6
|
- API version: v3
|
|
7
|
-
- Package version: 3.24.
|
|
7
|
+
- Package version: 3.24.2
|
|
8
8
|
- Generator version: 7.14.0
|
|
9
9
|
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
|
|
10
10
|
For more information, please visit [https://pulpproject.org](https://pulpproject.org)
|
|
@@ -92,6 +92,7 @@ with pulpcore.client.pulp_python.ApiClient(configuration) as api_client:
|
|
|
92
92
|
file = None # bytearray | An uploaded file that may be turned into the content unit. (optional)
|
|
93
93
|
upload = 'upload_example' # str | An uncommitted upload that may be turned into the content unit. (optional)
|
|
94
94
|
file_url = 'file_url_example' # str | A url that Pulp can download and turn into the content unit. (optional)
|
|
95
|
+
downloader_config = pulpcore.client.pulp_python.RemoteNetworkConfig() # RemoteNetworkConfig | Configuration for the download process (e.g., proxies, auth, timeouts). Only applicable when providing a 'file_url. (optional)
|
|
95
96
|
author = 'author_example' # str | Text containing the author's name. Contact information can also be added, separated with newlines. (optional)
|
|
96
97
|
author_email = 'author_email_example' # str | The author's e-mail address. (optional)
|
|
97
98
|
description = 'description_example' # str | A longer description of the package that can run to several paragraphs. (optional)
|
|
@@ -123,7 +124,7 @@ with pulpcore.client.pulp_python.ApiClient(configuration) as api_client:
|
|
|
123
124
|
|
|
124
125
|
try:
|
|
125
126
|
# Create a python package content
|
|
126
|
-
api_response = api_instance.create(relative_path, x_task_diagnostics=x_task_diagnostics, repository=repository, pulp_labels=pulp_labels, artifact=artifact, file=file, upload=upload, file_url=file_url, author=author, author_email=author_email, description=description, home_page=home_page, keywords=keywords, license=license, platform=platform, summary=summary, classifiers=classifiers, download_url=download_url, supported_platform=supported_platform, maintainer=maintainer, maintainer_email=maintainer_email, obsoletes_dist=obsoletes_dist, project_url=project_url, project_urls=project_urls, provides_dist=provides_dist, requires_external=requires_external, requires_dist=requires_dist, requires_python=requires_python, description_content_type=description_content_type, provides_extras=provides_extras, dynamic=dynamic, license_expression=license_expression, license_file=license_file, sha256=sha256, metadata_sha256=metadata_sha256, attestations=attestations)
|
|
127
|
+
api_response = api_instance.create(relative_path, x_task_diagnostics=x_task_diagnostics, repository=repository, pulp_labels=pulp_labels, artifact=artifact, file=file, upload=upload, file_url=file_url, downloader_config=downloader_config, author=author, author_email=author_email, description=description, home_page=home_page, keywords=keywords, license=license, platform=platform, summary=summary, classifiers=classifiers, download_url=download_url, supported_platform=supported_platform, maintainer=maintainer, maintainer_email=maintainer_email, obsoletes_dist=obsoletes_dist, project_url=project_url, project_urls=project_urls, provides_dist=provides_dist, requires_external=requires_external, requires_dist=requires_dist, requires_python=requires_python, description_content_type=description_content_type, provides_extras=provides_extras, dynamic=dynamic, license_expression=license_expression, license_file=license_file, sha256=sha256, metadata_sha256=metadata_sha256, attestations=attestations)
|
|
127
128
|
print("The response of ContentPackagesApi->create:\n")
|
|
128
129
|
pprint(api_response)
|
|
129
130
|
except ApiException as e:
|
|
@@ -247,6 +248,8 @@ Class | Method | HTTP request | Description
|
|
|
247
248
|
- [PythonPythonRemoteResponseHiddenFieldsInner](docs/PythonPythonRemoteResponseHiddenFieldsInner.md)
|
|
248
249
|
- [PythonPythonRepository](docs/PythonPythonRepository.md)
|
|
249
250
|
- [PythonPythonRepositoryResponse](docs/PythonPythonRepositoryResponse.md)
|
|
251
|
+
- [RemoteNetworkConfig](docs/RemoteNetworkConfig.md)
|
|
252
|
+
- [RemoteNetworkConfigResponse](docs/RemoteNetworkConfigResponse.md)
|
|
250
253
|
- [Repair](docs/Repair.md)
|
|
251
254
|
- [RepositoryAddRemoveContent](docs/RepositoryAddRemoveContent.md)
|
|
252
255
|
- [RepositorySyncURL](docs/RepositorySyncURL.md)
|
{pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/pulp_python_client.egg-info/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pulp_python-client
|
|
3
|
-
Version: 3.24.
|
|
3
|
+
Version: 3.24.2
|
|
4
4
|
Summary: Pulp 3 API
|
|
5
5
|
Home-page:
|
|
6
6
|
Author: Pulp Team
|
|
@@ -24,7 +24,7 @@ Fetch, Upload, Organize, and Distribute Software Packages
|
|
|
24
24
|
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
25
25
|
|
|
26
26
|
- API version: v3
|
|
27
|
-
- Package version: 3.24.
|
|
27
|
+
- Package version: 3.24.2
|
|
28
28
|
- Generator version: 7.14.0
|
|
29
29
|
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
|
|
30
30
|
For more information, please visit [https://pulpproject.org](https://pulpproject.org)
|
|
@@ -112,6 +112,7 @@ with pulpcore.client.pulp_python.ApiClient(configuration) as api_client:
|
|
|
112
112
|
file = None # bytearray | An uploaded file that may be turned into the content unit. (optional)
|
|
113
113
|
upload = 'upload_example' # str | An uncommitted upload that may be turned into the content unit. (optional)
|
|
114
114
|
file_url = 'file_url_example' # str | A url that Pulp can download and turn into the content unit. (optional)
|
|
115
|
+
downloader_config = pulpcore.client.pulp_python.RemoteNetworkConfig() # RemoteNetworkConfig | Configuration for the download process (e.g., proxies, auth, timeouts). Only applicable when providing a 'file_url. (optional)
|
|
115
116
|
author = 'author_example' # str | Text containing the author's name. Contact information can also be added, separated with newlines. (optional)
|
|
116
117
|
author_email = 'author_email_example' # str | The author's e-mail address. (optional)
|
|
117
118
|
description = 'description_example' # str | A longer description of the package that can run to several paragraphs. (optional)
|
|
@@ -143,7 +144,7 @@ with pulpcore.client.pulp_python.ApiClient(configuration) as api_client:
|
|
|
143
144
|
|
|
144
145
|
try:
|
|
145
146
|
# Create a python package content
|
|
146
|
-
api_response = api_instance.create(relative_path, x_task_diagnostics=x_task_diagnostics, repository=repository, pulp_labels=pulp_labels, artifact=artifact, file=file, upload=upload, file_url=file_url, author=author, author_email=author_email, description=description, home_page=home_page, keywords=keywords, license=license, platform=platform, summary=summary, classifiers=classifiers, download_url=download_url, supported_platform=supported_platform, maintainer=maintainer, maintainer_email=maintainer_email, obsoletes_dist=obsoletes_dist, project_url=project_url, project_urls=project_urls, provides_dist=provides_dist, requires_external=requires_external, requires_dist=requires_dist, requires_python=requires_python, description_content_type=description_content_type, provides_extras=provides_extras, dynamic=dynamic, license_expression=license_expression, license_file=license_file, sha256=sha256, metadata_sha256=metadata_sha256, attestations=attestations)
|
|
147
|
+
api_response = api_instance.create(relative_path, x_task_diagnostics=x_task_diagnostics, repository=repository, pulp_labels=pulp_labels, artifact=artifact, file=file, upload=upload, file_url=file_url, downloader_config=downloader_config, author=author, author_email=author_email, description=description, home_page=home_page, keywords=keywords, license=license, platform=platform, summary=summary, classifiers=classifiers, download_url=download_url, supported_platform=supported_platform, maintainer=maintainer, maintainer_email=maintainer_email, obsoletes_dist=obsoletes_dist, project_url=project_url, project_urls=project_urls, provides_dist=provides_dist, requires_external=requires_external, requires_dist=requires_dist, requires_python=requires_python, description_content_type=description_content_type, provides_extras=provides_extras, dynamic=dynamic, license_expression=license_expression, license_file=license_file, sha256=sha256, metadata_sha256=metadata_sha256, attestations=attestations)
|
|
147
148
|
print("The response of ContentPackagesApi->create:\n")
|
|
148
149
|
pprint(api_response)
|
|
149
150
|
except ApiException as e:
|
|
@@ -267,6 +268,8 @@ Class | Method | HTTP request | Description
|
|
|
267
268
|
- [PythonPythonRemoteResponseHiddenFieldsInner](docs/PythonPythonRemoteResponseHiddenFieldsInner.md)
|
|
268
269
|
- [PythonPythonRepository](docs/PythonPythonRepository.md)
|
|
269
270
|
- [PythonPythonRepositoryResponse](docs/PythonPythonRepositoryResponse.md)
|
|
271
|
+
- [RemoteNetworkConfig](docs/RemoteNetworkConfig.md)
|
|
272
|
+
- [RemoteNetworkConfigResponse](docs/RemoteNetworkConfigResponse.md)
|
|
270
273
|
- [Repair](docs/Repair.md)
|
|
271
274
|
- [RepositoryAddRemoveContent](docs/RepositoryAddRemoveContent.md)
|
|
272
275
|
- [RepositorySyncURL](docs/RepositorySyncURL.md)
|
{pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/pulp_python_client.egg-info/SOURCES.txt
RENAMED
|
@@ -65,6 +65,8 @@ pulpcore/client/pulp_python/models/python_python_remote_response.py
|
|
|
65
65
|
pulpcore/client/pulp_python/models/python_python_remote_response_hidden_fields_inner.py
|
|
66
66
|
pulpcore/client/pulp_python/models/python_python_repository.py
|
|
67
67
|
pulpcore/client/pulp_python/models/python_python_repository_response.py
|
|
68
|
+
pulpcore/client/pulp_python/models/remote_network_config.py
|
|
69
|
+
pulpcore/client/pulp_python/models/remote_network_config_response.py
|
|
68
70
|
pulpcore/client/pulp_python/models/repair.py
|
|
69
71
|
pulpcore/client/pulp_python/models/repository_add_remove_content.py
|
|
70
72
|
pulpcore/client/pulp_python/models/repository_sync_url.py
|
|
@@ -118,6 +120,8 @@ test/test_python_python_remote_response.py
|
|
|
118
120
|
test/test_python_python_remote_response_hidden_fields_inner.py
|
|
119
121
|
test/test_python_python_repository.py
|
|
120
122
|
test/test_python_python_repository_response.py
|
|
123
|
+
test/test_remote_network_config.py
|
|
124
|
+
test/test_remote_network_config_response.py
|
|
121
125
|
test/test_remotes_python_api.py
|
|
122
126
|
test/test_repair.py
|
|
123
127
|
test/test_repositories_python_api.py
|
{pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/pulpcore/client/pulp_python/__init__.py
RENAMED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
""" # noqa: E501
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
__version__ = "3.24.
|
|
18
|
+
__version__ = "3.24.2"
|
|
19
19
|
|
|
20
20
|
# Define package exports
|
|
21
21
|
__all__ = [
|
|
@@ -75,6 +75,8 @@ __all__ = [
|
|
|
75
75
|
"PythonPythonRemoteResponseHiddenFieldsInner",
|
|
76
76
|
"PythonPythonRepository",
|
|
77
77
|
"PythonPythonRepositoryResponse",
|
|
78
|
+
"RemoteNetworkConfig",
|
|
79
|
+
"RemoteNetworkConfigResponse",
|
|
78
80
|
"Repair",
|
|
79
81
|
"RepositoryAddRemoveContent",
|
|
80
82
|
"RepositorySyncURL",
|
|
@@ -147,6 +149,8 @@ from pulpcore.client.pulp_python.models.python_python_remote_response import Pyt
|
|
|
147
149
|
from pulpcore.client.pulp_python.models.python_python_remote_response_hidden_fields_inner import PythonPythonRemoteResponseHiddenFieldsInner as PythonPythonRemoteResponseHiddenFieldsInner
|
|
148
150
|
from pulpcore.client.pulp_python.models.python_python_repository import PythonPythonRepository as PythonPythonRepository
|
|
149
151
|
from pulpcore.client.pulp_python.models.python_python_repository_response import PythonPythonRepositoryResponse as PythonPythonRepositoryResponse
|
|
152
|
+
from pulpcore.client.pulp_python.models.remote_network_config import RemoteNetworkConfig as RemoteNetworkConfig
|
|
153
|
+
from pulpcore.client.pulp_python.models.remote_network_config_response import RemoteNetworkConfigResponse as RemoteNetworkConfigResponse
|
|
150
154
|
from pulpcore.client.pulp_python.models.repair import Repair as Repair
|
|
151
155
|
from pulpcore.client.pulp_python.models.repository_add_remove_content import RepositoryAddRemoveContent as RepositoryAddRemoveContent
|
|
152
156
|
from pulpcore.client.pulp_python.models.repository_sync_url import RepositorySyncURL as RepositorySyncURL
|
|
@@ -57,6 +57,7 @@ class ContentPackagesApi:
|
|
|
57
57
|
file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="An uploaded file that may be turned into the content unit.")] = None,
|
|
58
58
|
upload: Annotated[Optional[StrictStr], Field(description="An uncommitted upload that may be turned into the content unit.")] = None,
|
|
59
59
|
file_url: Annotated[Optional[Annotated[str, Field(min_length=1, strict=True)]], Field(description="A url that Pulp can download and turn into the content unit.")] = None,
|
|
60
|
+
downloader_config: Annotated[Optional[Any], Field(description="Configuration for the download process (e.g., proxies, auth, timeouts). Only applicable when providing a 'file_url.")] = None,
|
|
60
61
|
author: Annotated[Optional[StrictStr], Field(description="Text containing the author's name. Contact information can also be added, separated with newlines.")] = None,
|
|
61
62
|
author_email: Annotated[Optional[StrictStr], Field(description="The author's e-mail address. ")] = None,
|
|
62
63
|
description: Annotated[Optional[StrictStr], Field(description="A longer description of the package that can run to several paragraphs.")] = None,
|
|
@@ -118,6 +119,8 @@ class ContentPackagesApi:
|
|
|
118
119
|
:type upload: str
|
|
119
120
|
:param file_url: A url that Pulp can download and turn into the content unit.
|
|
120
121
|
:type file_url: str
|
|
122
|
+
:param downloader_config: Configuration for the download process (e.g., proxies, auth, timeouts). Only applicable when providing a 'file_url.
|
|
123
|
+
:type downloader_config: RemoteNetworkConfig
|
|
121
124
|
:param author: Text containing the author's name. Contact information can also be added, separated with newlines.
|
|
122
125
|
:type author: str
|
|
123
126
|
:param author_email: The author's e-mail address.
|
|
@@ -205,6 +208,7 @@ class ContentPackagesApi:
|
|
|
205
208
|
file=file,
|
|
206
209
|
upload=upload,
|
|
207
210
|
file_url=file_url,
|
|
211
|
+
downloader_config=downloader_config,
|
|
208
212
|
author=author,
|
|
209
213
|
author_email=author_email,
|
|
210
214
|
description=description,
|
|
@@ -264,6 +268,7 @@ class ContentPackagesApi:
|
|
|
264
268
|
file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="An uploaded file that may be turned into the content unit.")] = None,
|
|
265
269
|
upload: Annotated[Optional[StrictStr], Field(description="An uncommitted upload that may be turned into the content unit.")] = None,
|
|
266
270
|
file_url: Annotated[Optional[Annotated[str, Field(min_length=1, strict=True)]], Field(description="A url that Pulp can download and turn into the content unit.")] = None,
|
|
271
|
+
downloader_config: Annotated[Optional[Any], Field(description="Configuration for the download process (e.g., proxies, auth, timeouts). Only applicable when providing a 'file_url.")] = None,
|
|
267
272
|
author: Annotated[Optional[StrictStr], Field(description="Text containing the author's name. Contact information can also be added, separated with newlines.")] = None,
|
|
268
273
|
author_email: Annotated[Optional[StrictStr], Field(description="The author's e-mail address. ")] = None,
|
|
269
274
|
description: Annotated[Optional[StrictStr], Field(description="A longer description of the package that can run to several paragraphs.")] = None,
|
|
@@ -325,6 +330,8 @@ class ContentPackagesApi:
|
|
|
325
330
|
:type upload: str
|
|
326
331
|
:param file_url: A url that Pulp can download and turn into the content unit.
|
|
327
332
|
:type file_url: str
|
|
333
|
+
:param downloader_config: Configuration for the download process (e.g., proxies, auth, timeouts). Only applicable when providing a 'file_url.
|
|
334
|
+
:type downloader_config: RemoteNetworkConfig
|
|
328
335
|
:param author: Text containing the author's name. Contact information can also be added, separated with newlines.
|
|
329
336
|
:type author: str
|
|
330
337
|
:param author_email: The author's e-mail address.
|
|
@@ -412,6 +419,7 @@ class ContentPackagesApi:
|
|
|
412
419
|
file=file,
|
|
413
420
|
upload=upload,
|
|
414
421
|
file_url=file_url,
|
|
422
|
+
downloader_config=downloader_config,
|
|
415
423
|
author=author,
|
|
416
424
|
author_email=author_email,
|
|
417
425
|
description=description,
|
|
@@ -471,6 +479,7 @@ class ContentPackagesApi:
|
|
|
471
479
|
file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="An uploaded file that may be turned into the content unit.")] = None,
|
|
472
480
|
upload: Annotated[Optional[StrictStr], Field(description="An uncommitted upload that may be turned into the content unit.")] = None,
|
|
473
481
|
file_url: Annotated[Optional[Annotated[str, Field(min_length=1, strict=True)]], Field(description="A url that Pulp can download and turn into the content unit.")] = None,
|
|
482
|
+
downloader_config: Annotated[Optional[Any], Field(description="Configuration for the download process (e.g., proxies, auth, timeouts). Only applicable when providing a 'file_url.")] = None,
|
|
474
483
|
author: Annotated[Optional[StrictStr], Field(description="Text containing the author's name. Contact information can also be added, separated with newlines.")] = None,
|
|
475
484
|
author_email: Annotated[Optional[StrictStr], Field(description="The author's e-mail address. ")] = None,
|
|
476
485
|
description: Annotated[Optional[StrictStr], Field(description="A longer description of the package that can run to several paragraphs.")] = None,
|
|
@@ -532,6 +541,8 @@ class ContentPackagesApi:
|
|
|
532
541
|
:type upload: str
|
|
533
542
|
:param file_url: A url that Pulp can download and turn into the content unit.
|
|
534
543
|
:type file_url: str
|
|
544
|
+
:param downloader_config: Configuration for the download process (e.g., proxies, auth, timeouts). Only applicable when providing a 'file_url.
|
|
545
|
+
:type downloader_config: RemoteNetworkConfig
|
|
535
546
|
:param author: Text containing the author's name. Contact information can also be added, separated with newlines.
|
|
536
547
|
:type author: str
|
|
537
548
|
:param author_email: The author's e-mail address.
|
|
@@ -619,6 +630,7 @@ class ContentPackagesApi:
|
|
|
619
630
|
file=file,
|
|
620
631
|
upload=upload,
|
|
621
632
|
file_url=file_url,
|
|
633
|
+
downloader_config=downloader_config,
|
|
622
634
|
author=author,
|
|
623
635
|
author_email=author_email,
|
|
624
636
|
description=description,
|
|
@@ -673,6 +685,7 @@ class ContentPackagesApi:
|
|
|
673
685
|
file,
|
|
674
686
|
upload,
|
|
675
687
|
file_url,
|
|
688
|
+
downloader_config,
|
|
676
689
|
author,
|
|
677
690
|
author_email,
|
|
678
691
|
description,
|
|
@@ -742,6 +755,8 @@ class ContentPackagesApi:
|
|
|
742
755
|
_form_params.append(('upload', upload))
|
|
743
756
|
if file_url is not None:
|
|
744
757
|
_form_params.append(('file_url', file_url))
|
|
758
|
+
if downloader_config is not None:
|
|
759
|
+
_form_params.append(('downloader_config', downloader_config))
|
|
745
760
|
if author is not None:
|
|
746
761
|
_form_params.append(('author', author))
|
|
747
762
|
if author_email is not None:
|
|
@@ -2658,6 +2673,7 @@ class ContentPackagesApi:
|
|
|
2658
2673
|
file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="An uploaded file that may be turned into the content unit.")] = None,
|
|
2659
2674
|
upload: Annotated[Optional[StrictStr], Field(description="An uncommitted upload that may be turned into the content unit.")] = None,
|
|
2660
2675
|
file_url: Annotated[Optional[Annotated[str, Field(min_length=1, strict=True)]], Field(description="A url that Pulp can download and turn into the content unit.")] = None,
|
|
2676
|
+
downloader_config: Annotated[Optional[Any], Field(description="Configuration for the download process (e.g., proxies, auth, timeouts). Only applicable when providing a 'file_url.")] = None,
|
|
2661
2677
|
author: Annotated[Optional[StrictStr], Field(description="Text containing the author's name. Contact information can also be added, separated with newlines.")] = None,
|
|
2662
2678
|
author_email: Annotated[Optional[StrictStr], Field(description="The author's e-mail address. ")] = None,
|
|
2663
2679
|
description: Annotated[Optional[StrictStr], Field(description="A longer description of the package that can run to several paragraphs.")] = None,
|
|
@@ -2715,6 +2731,8 @@ class ContentPackagesApi:
|
|
|
2715
2731
|
:type upload: str
|
|
2716
2732
|
:param file_url: A url that Pulp can download and turn into the content unit.
|
|
2717
2733
|
:type file_url: str
|
|
2734
|
+
:param downloader_config: Configuration for the download process (e.g., proxies, auth, timeouts). Only applicable when providing a 'file_url.
|
|
2735
|
+
:type downloader_config: RemoteNetworkConfig
|
|
2718
2736
|
:param author: Text containing the author's name. Contact information can also be added, separated with newlines.
|
|
2719
2737
|
:type author: str
|
|
2720
2738
|
:param author_email: The author's e-mail address.
|
|
@@ -2800,6 +2818,7 @@ class ContentPackagesApi:
|
|
|
2800
2818
|
file=file,
|
|
2801
2819
|
upload=upload,
|
|
2802
2820
|
file_url=file_url,
|
|
2821
|
+
downloader_config=downloader_config,
|
|
2803
2822
|
author=author,
|
|
2804
2823
|
author_email=author_email,
|
|
2805
2824
|
description=description,
|
|
@@ -2857,6 +2876,7 @@ class ContentPackagesApi:
|
|
|
2857
2876
|
file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="An uploaded file that may be turned into the content unit.")] = None,
|
|
2858
2877
|
upload: Annotated[Optional[StrictStr], Field(description="An uncommitted upload that may be turned into the content unit.")] = None,
|
|
2859
2878
|
file_url: Annotated[Optional[Annotated[str, Field(min_length=1, strict=True)]], Field(description="A url that Pulp can download and turn into the content unit.")] = None,
|
|
2879
|
+
downloader_config: Annotated[Optional[Any], Field(description="Configuration for the download process (e.g., proxies, auth, timeouts). Only applicable when providing a 'file_url.")] = None,
|
|
2860
2880
|
author: Annotated[Optional[StrictStr], Field(description="Text containing the author's name. Contact information can also be added, separated with newlines.")] = None,
|
|
2861
2881
|
author_email: Annotated[Optional[StrictStr], Field(description="The author's e-mail address. ")] = None,
|
|
2862
2882
|
description: Annotated[Optional[StrictStr], Field(description="A longer description of the package that can run to several paragraphs.")] = None,
|
|
@@ -2914,6 +2934,8 @@ class ContentPackagesApi:
|
|
|
2914
2934
|
:type upload: str
|
|
2915
2935
|
:param file_url: A url that Pulp can download and turn into the content unit.
|
|
2916
2936
|
:type file_url: str
|
|
2937
|
+
:param downloader_config: Configuration for the download process (e.g., proxies, auth, timeouts). Only applicable when providing a 'file_url.
|
|
2938
|
+
:type downloader_config: RemoteNetworkConfig
|
|
2917
2939
|
:param author: Text containing the author's name. Contact information can also be added, separated with newlines.
|
|
2918
2940
|
:type author: str
|
|
2919
2941
|
:param author_email: The author's e-mail address.
|
|
@@ -2999,6 +3021,7 @@ class ContentPackagesApi:
|
|
|
2999
3021
|
file=file,
|
|
3000
3022
|
upload=upload,
|
|
3001
3023
|
file_url=file_url,
|
|
3024
|
+
downloader_config=downloader_config,
|
|
3002
3025
|
author=author,
|
|
3003
3026
|
author_email=author_email,
|
|
3004
3027
|
description=description,
|
|
@@ -3056,6 +3079,7 @@ class ContentPackagesApi:
|
|
|
3056
3079
|
file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="An uploaded file that may be turned into the content unit.")] = None,
|
|
3057
3080
|
upload: Annotated[Optional[StrictStr], Field(description="An uncommitted upload that may be turned into the content unit.")] = None,
|
|
3058
3081
|
file_url: Annotated[Optional[Annotated[str, Field(min_length=1, strict=True)]], Field(description="A url that Pulp can download and turn into the content unit.")] = None,
|
|
3082
|
+
downloader_config: Annotated[Optional[Any], Field(description="Configuration for the download process (e.g., proxies, auth, timeouts). Only applicable when providing a 'file_url.")] = None,
|
|
3059
3083
|
author: Annotated[Optional[StrictStr], Field(description="Text containing the author's name. Contact information can also be added, separated with newlines.")] = None,
|
|
3060
3084
|
author_email: Annotated[Optional[StrictStr], Field(description="The author's e-mail address. ")] = None,
|
|
3061
3085
|
description: Annotated[Optional[StrictStr], Field(description="A longer description of the package that can run to several paragraphs.")] = None,
|
|
@@ -3113,6 +3137,8 @@ class ContentPackagesApi:
|
|
|
3113
3137
|
:type upload: str
|
|
3114
3138
|
:param file_url: A url that Pulp can download and turn into the content unit.
|
|
3115
3139
|
:type file_url: str
|
|
3140
|
+
:param downloader_config: Configuration for the download process (e.g., proxies, auth, timeouts). Only applicable when providing a 'file_url.
|
|
3141
|
+
:type downloader_config: RemoteNetworkConfig
|
|
3116
3142
|
:param author: Text containing the author's name. Contact information can also be added, separated with newlines.
|
|
3117
3143
|
:type author: str
|
|
3118
3144
|
:param author_email: The author's e-mail address.
|
|
@@ -3198,6 +3224,7 @@ class ContentPackagesApi:
|
|
|
3198
3224
|
file=file,
|
|
3199
3225
|
upload=upload,
|
|
3200
3226
|
file_url=file_url,
|
|
3227
|
+
downloader_config=downloader_config,
|
|
3201
3228
|
author=author,
|
|
3202
3229
|
author_email=author_email,
|
|
3203
3230
|
description=description,
|
|
@@ -3250,6 +3277,7 @@ class ContentPackagesApi:
|
|
|
3250
3277
|
file,
|
|
3251
3278
|
upload,
|
|
3252
3279
|
file_url,
|
|
3280
|
+
downloader_config,
|
|
3253
3281
|
author,
|
|
3254
3282
|
author_email,
|
|
3255
3283
|
description,
|
|
@@ -3315,6 +3343,8 @@ class ContentPackagesApi:
|
|
|
3315
3343
|
_form_params.append(('upload', upload))
|
|
3316
3344
|
if file_url is not None:
|
|
3317
3345
|
_form_params.append(('file_url', file_url))
|
|
3346
|
+
if downloader_config is not None:
|
|
3347
|
+
_form_params.append(('downloader_config', downloader_config))
|
|
3318
3348
|
if author is not None:
|
|
3319
3349
|
_form_params.append(('author', author))
|
|
3320
3350
|
if author_email is not None:
|
|
@@ -18,7 +18,7 @@ from typing import Any, Dict, List, Optional, Tuple, Union
|
|
|
18
18
|
from typing_extensions import Annotated
|
|
19
19
|
|
|
20
20
|
from pydantic import Field, StrictBool, StrictBytes, StrictFloat, StrictInt, StrictStr, field_validator
|
|
21
|
-
from typing import Dict, List, Optional, Tuple, Union
|
|
21
|
+
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
22
22
|
from typing_extensions import Annotated
|
|
23
23
|
from pulpcore.client.pulp_python.models.async_operation_response import AsyncOperationResponse
|
|
24
24
|
from pulpcore.client.pulp_python.models.paginatedpython_package_provenance_response_list import PaginatedpythonPackageProvenanceResponseList
|
|
@@ -56,6 +56,7 @@ class ContentProvenanceApi:
|
|
|
56
56
|
file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="An uploaded file that may be turned into the content unit.")] = None,
|
|
57
57
|
upload: Annotated[Optional[StrictStr], Field(description="An uncommitted upload that may be turned into the content unit.")] = None,
|
|
58
58
|
file_url: Annotated[Optional[Annotated[str, Field(min_length=1, strict=True)]], Field(description="A url that Pulp can download and turn into the content unit.")] = None,
|
|
59
|
+
downloader_config: Annotated[Optional[Any], Field(description="Configuration for the download process (e.g., proxies, auth, timeouts). Only applicable when providing a 'file_url.")] = None,
|
|
59
60
|
verify: Annotated[Optional[StrictBool], Field(description="Verify each attestation in the provenance.")] = None,
|
|
60
61
|
_request_timeout: Union[
|
|
61
62
|
None,
|
|
@@ -88,6 +89,8 @@ class ContentProvenanceApi:
|
|
|
88
89
|
:type upload: str
|
|
89
90
|
:param file_url: A url that Pulp can download and turn into the content unit.
|
|
90
91
|
:type file_url: str
|
|
92
|
+
:param downloader_config: Configuration for the download process (e.g., proxies, auth, timeouts). Only applicable when providing a 'file_url.
|
|
93
|
+
:type downloader_config: RemoteNetworkConfig
|
|
91
94
|
:param verify: Verify each attestation in the provenance.
|
|
92
95
|
:type verify: bool
|
|
93
96
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -120,6 +123,7 @@ class ContentProvenanceApi:
|
|
|
120
123
|
file=file,
|
|
121
124
|
upload=upload,
|
|
122
125
|
file_url=file_url,
|
|
126
|
+
downloader_config=downloader_config,
|
|
123
127
|
verify=verify,
|
|
124
128
|
_request_auth=_request_auth,
|
|
125
129
|
_content_type=_content_type,
|
|
@@ -151,6 +155,7 @@ class ContentProvenanceApi:
|
|
|
151
155
|
file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="An uploaded file that may be turned into the content unit.")] = None,
|
|
152
156
|
upload: Annotated[Optional[StrictStr], Field(description="An uncommitted upload that may be turned into the content unit.")] = None,
|
|
153
157
|
file_url: Annotated[Optional[Annotated[str, Field(min_length=1, strict=True)]], Field(description="A url that Pulp can download and turn into the content unit.")] = None,
|
|
158
|
+
downloader_config: Annotated[Optional[Any], Field(description="Configuration for the download process (e.g., proxies, auth, timeouts). Only applicable when providing a 'file_url.")] = None,
|
|
154
159
|
verify: Annotated[Optional[StrictBool], Field(description="Verify each attestation in the provenance.")] = None,
|
|
155
160
|
_request_timeout: Union[
|
|
156
161
|
None,
|
|
@@ -183,6 +188,8 @@ class ContentProvenanceApi:
|
|
|
183
188
|
:type upload: str
|
|
184
189
|
:param file_url: A url that Pulp can download and turn into the content unit.
|
|
185
190
|
:type file_url: str
|
|
191
|
+
:param downloader_config: Configuration for the download process (e.g., proxies, auth, timeouts). Only applicable when providing a 'file_url.
|
|
192
|
+
:type downloader_config: RemoteNetworkConfig
|
|
186
193
|
:param verify: Verify each attestation in the provenance.
|
|
187
194
|
:type verify: bool
|
|
188
195
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -215,6 +222,7 @@ class ContentProvenanceApi:
|
|
|
215
222
|
file=file,
|
|
216
223
|
upload=upload,
|
|
217
224
|
file_url=file_url,
|
|
225
|
+
downloader_config=downloader_config,
|
|
218
226
|
verify=verify,
|
|
219
227
|
_request_auth=_request_auth,
|
|
220
228
|
_content_type=_content_type,
|
|
@@ -246,6 +254,7 @@ class ContentProvenanceApi:
|
|
|
246
254
|
file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="An uploaded file that may be turned into the content unit.")] = None,
|
|
247
255
|
upload: Annotated[Optional[StrictStr], Field(description="An uncommitted upload that may be turned into the content unit.")] = None,
|
|
248
256
|
file_url: Annotated[Optional[Annotated[str, Field(min_length=1, strict=True)]], Field(description="A url that Pulp can download and turn into the content unit.")] = None,
|
|
257
|
+
downloader_config: Annotated[Optional[Any], Field(description="Configuration for the download process (e.g., proxies, auth, timeouts). Only applicable when providing a 'file_url.")] = None,
|
|
249
258
|
verify: Annotated[Optional[StrictBool], Field(description="Verify each attestation in the provenance.")] = None,
|
|
250
259
|
_request_timeout: Union[
|
|
251
260
|
None,
|
|
@@ -278,6 +287,8 @@ class ContentProvenanceApi:
|
|
|
278
287
|
:type upload: str
|
|
279
288
|
:param file_url: A url that Pulp can download and turn into the content unit.
|
|
280
289
|
:type file_url: str
|
|
290
|
+
:param downloader_config: Configuration for the download process (e.g., proxies, auth, timeouts). Only applicable when providing a 'file_url.
|
|
291
|
+
:type downloader_config: RemoteNetworkConfig
|
|
281
292
|
:param verify: Verify each attestation in the provenance.
|
|
282
293
|
:type verify: bool
|
|
283
294
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -310,6 +321,7 @@ class ContentProvenanceApi:
|
|
|
310
321
|
file=file,
|
|
311
322
|
upload=upload,
|
|
312
323
|
file_url=file_url,
|
|
324
|
+
downloader_config=downloader_config,
|
|
313
325
|
verify=verify,
|
|
314
326
|
_request_auth=_request_auth,
|
|
315
327
|
_content_type=_content_type,
|
|
@@ -336,6 +348,7 @@ class ContentProvenanceApi:
|
|
|
336
348
|
file,
|
|
337
349
|
upload,
|
|
338
350
|
file_url,
|
|
351
|
+
downloader_config,
|
|
339
352
|
verify,
|
|
340
353
|
_request_auth,
|
|
341
354
|
_content_type,
|
|
@@ -374,6 +387,8 @@ class ContentProvenanceApi:
|
|
|
374
387
|
_form_params.append(('upload', upload))
|
|
375
388
|
if file_url is not None:
|
|
376
389
|
_form_params.append(('file_url', file_url))
|
|
390
|
+
if downloader_config is not None:
|
|
391
|
+
_form_params.append(('downloader_config', downloader_config))
|
|
377
392
|
if package is not None:
|
|
378
393
|
_form_params.append(('package', package))
|
|
379
394
|
if verify is not None:
|
{pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/pulpcore/client/pulp_python/api_client.py
RENAMED
|
@@ -91,7 +91,7 @@ class ApiClient:
|
|
|
91
91
|
self.default_headers[header_name] = header_value
|
|
92
92
|
self.cookie = cookie
|
|
93
93
|
# Set default User-Agent.
|
|
94
|
-
self.user_agent = 'OpenAPI-Generator/3.24.
|
|
94
|
+
self.user_agent = 'OpenAPI-Generator/3.24.2/python'
|
|
95
95
|
self.client_side_validation = configuration.client_side_validation
|
|
96
96
|
|
|
97
97
|
def __enter__(self):
|
{pulp_python_client-3.24.1 → pulp_python_client-3.24.2}/pulpcore/client/pulp_python/configuration.py
RENAMED
|
@@ -556,7 +556,7 @@ conf = pulpcore.client.pulp_python.Configuration(
|
|
|
556
556
|
"OS: {env}\n"\
|
|
557
557
|
"Python Version: {pyversion}\n"\
|
|
558
558
|
"Version of the API: v3\n"\
|
|
559
|
-
"SDK Package Version: 3.24.
|
|
559
|
+
"SDK Package Version: 3.24.2".\
|
|
560
560
|
format(env=sys.platform, pyversion=sys.version)
|
|
561
561
|
|
|
562
562
|
def get_host_settings(self) -> List[HostSetting]:
|
|
@@ -50,6 +50,8 @@ from pulpcore.client.pulp_python.models.python_python_remote_response import Pyt
|
|
|
50
50
|
from pulpcore.client.pulp_python.models.python_python_remote_response_hidden_fields_inner import PythonPythonRemoteResponseHiddenFieldsInner
|
|
51
51
|
from pulpcore.client.pulp_python.models.python_python_repository import PythonPythonRepository
|
|
52
52
|
from pulpcore.client.pulp_python.models.python_python_repository_response import PythonPythonRepositoryResponse
|
|
53
|
+
from pulpcore.client.pulp_python.models.remote_network_config import RemoteNetworkConfig
|
|
54
|
+
from pulpcore.client.pulp_python.models.remote_network_config_response import RemoteNetworkConfigResponse
|
|
53
55
|
from pulpcore.client.pulp_python.models.repair import Repair
|
|
54
56
|
from pulpcore.client.pulp_python.models.repository_add_remove_content import RepositoryAddRemoveContent
|
|
55
57
|
from pulpcore.client.pulp_python.models.repository_sync_url import RepositorySyncURL
|
|
@@ -33,6 +33,8 @@ class PatchedpythonPythonRemote(BaseModel):
|
|
|
33
33
|
""" # noqa: E501
|
|
34
34
|
name: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="A unique name for this remote.")
|
|
35
35
|
url: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="The URL of an external content source.")
|
|
36
|
+
pulp_labels: Optional[Dict[str, Optional[StrictStr]]] = None
|
|
37
|
+
policy: Optional[PolicyEnum] = Field(default=None, description="The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'on_demand' is the default. * `immediate` - When syncing, download all metadata and content now. * `on_demand` - When syncing, download metadata, but do not download content now. Instead, download content as clients request it, and save it in Pulp to be served for future client requests. * `streamed` - When syncing, download metadata, but do not download content now. Instead,download content as clients request it, but never save it in Pulp. This causes future requests for that same content to have to be downloaded again.")
|
|
36
38
|
ca_cert: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="A PEM encoded CA certificate used to validate the server certificate presented by the remote server.")
|
|
37
39
|
client_cert: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="A PEM encoded client certificate used for authentication.")
|
|
38
40
|
client_key: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="A PEM encoded private key used for authentication.")
|
|
@@ -42,15 +44,13 @@ class PatchedpythonPythonRemote(BaseModel):
|
|
|
42
44
|
proxy_password: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed.")
|
|
43
45
|
username: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="The username to be used for authentication when syncing.")
|
|
44
46
|
password: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed.")
|
|
45
|
-
pulp_labels: Optional[Dict[str, Optional[StrictStr]]] = None
|
|
46
|
-
download_concurrency: Optional[StrictInt] = Field(default=None, description="Total number of simultaneous connections. If not set then the default value will be used.")
|
|
47
47
|
max_retries: Optional[StrictInt] = Field(default=None, description="Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.")
|
|
48
|
-
policy: Optional[PolicyEnum] = Field(default=None, description="The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'on_demand' is the default. * `immediate` - When syncing, download all metadata and content now. * `on_demand` - When syncing, download metadata, but do not download content now. Instead, download content as clients request it, and save it in Pulp to be served for future client requests. * `streamed` - When syncing, download metadata, but do not download content now. Instead,download content as clients request it, but never save it in Pulp. This causes future requests for that same content to have to be downloaded again.")
|
|
49
48
|
total_timeout: Optional[Union[Annotated[float, Field(strict=True, ge=0.0)], Annotated[int, Field(strict=True, ge=0)]]] = Field(default=None, description="aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.")
|
|
50
49
|
connect_timeout: Optional[Union[Annotated[float, Field(strict=True, ge=0.0)], Annotated[int, Field(strict=True, ge=0)]]] = Field(default=None, description="aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.")
|
|
51
50
|
sock_connect_timeout: Optional[Union[Annotated[float, Field(strict=True, ge=0.0)], Annotated[int, Field(strict=True, ge=0)]]] = Field(default=None, description="aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.")
|
|
52
51
|
sock_read_timeout: Optional[Union[Annotated[float, Field(strict=True, ge=0.0)], Annotated[int, Field(strict=True, ge=0)]]] = Field(default=None, description="aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.")
|
|
53
52
|
headers: Optional[List[Dict[str, Any]]] = Field(default=None, description="Headers for aiohttp.Clientsession")
|
|
53
|
+
download_concurrency: Optional[StrictInt] = Field(default=None, description="Total number of simultaneous connections. If not set then the default value will be used.")
|
|
54
54
|
rate_limit: Optional[StrictInt] = Field(default=None, description="Limits requests per second for each concurrent downloader")
|
|
55
55
|
includes: Optional[List[Annotated[str, Field(min_length=1, strict=True)]]] = Field(default=None, description="A list containing project specifiers for Python packages to include.")
|
|
56
56
|
excludes: Optional[List[Annotated[str, Field(min_length=1, strict=True)]]] = Field(default=None, description="A list containing project specifiers for Python packages to exclude.")
|
|
@@ -59,7 +59,7 @@ class PatchedpythonPythonRemote(BaseModel):
|
|
|
59
59
|
keep_latest_packages: Optional[StrictInt] = Field(default=0, description="The amount of latest versions of a package to keep on sync, includespre-releases if synced. Default 0 keeps all versions.")
|
|
60
60
|
exclude_platforms: Optional[List[ExcludePlatformsEnum]] = Field(default=None, description="List of platforms to exclude syncing Python packages for. Possible valuesinclude: windows, macos, freebsd, and linux.")
|
|
61
61
|
provenance: Optional[StrictBool] = Field(default=False, description="Whether to sync available provenances for Python packages.")
|
|
62
|
-
__properties: ClassVar[List[str]] = ["name", "url", "ca_cert", "client_cert", "client_key", "tls_validation", "proxy_url", "proxy_username", "proxy_password", "username", "password", "
|
|
62
|
+
__properties: ClassVar[List[str]] = ["name", "url", "pulp_labels", "policy", "ca_cert", "client_cert", "client_key", "tls_validation", "proxy_url", "proxy_username", "proxy_password", "username", "password", "max_retries", "total_timeout", "connect_timeout", "sock_connect_timeout", "sock_read_timeout", "headers", "download_concurrency", "rate_limit", "includes", "excludes", "prereleases", "package_types", "keep_latest_packages", "exclude_platforms", "provenance"]
|
|
63
63
|
|
|
64
64
|
model_config = ConfigDict(
|
|
65
65
|
populate_by_name=True,
|
|
@@ -140,11 +140,6 @@ class PatchedpythonPythonRemote(BaseModel):
|
|
|
140
140
|
if self.password is None and "password" in self.model_fields_set:
|
|
141
141
|
_dict['password'] = None
|
|
142
142
|
|
|
143
|
-
# set to None if download_concurrency (nullable) is None
|
|
144
|
-
# and model_fields_set contains the field
|
|
145
|
-
if self.download_concurrency is None and "download_concurrency" in self.model_fields_set:
|
|
146
|
-
_dict['download_concurrency'] = None
|
|
147
|
-
|
|
148
143
|
# set to None if max_retries (nullable) is None
|
|
149
144
|
# and model_fields_set contains the field
|
|
150
145
|
if self.max_retries is None and "max_retries" in self.model_fields_set:
|
|
@@ -170,6 +165,11 @@ class PatchedpythonPythonRemote(BaseModel):
|
|
|
170
165
|
if self.sock_read_timeout is None and "sock_read_timeout" in self.model_fields_set:
|
|
171
166
|
_dict['sock_read_timeout'] = None
|
|
172
167
|
|
|
168
|
+
# set to None if download_concurrency (nullable) is None
|
|
169
|
+
# and model_fields_set contains the field
|
|
170
|
+
if self.download_concurrency is None and "download_concurrency" in self.model_fields_set:
|
|
171
|
+
_dict['download_concurrency'] = None
|
|
172
|
+
|
|
173
173
|
# set to None if rate_limit (nullable) is None
|
|
174
174
|
# and model_fields_set contains the field
|
|
175
175
|
if self.rate_limit is None and "rate_limit" in self.model_fields_set:
|
|
@@ -33,6 +33,8 @@ class PythonPythonRemote(BaseModel):
|
|
|
33
33
|
""" # noqa: E501
|
|
34
34
|
name: Annotated[str, Field(min_length=1, strict=True)] = Field(description="A unique name for this remote.")
|
|
35
35
|
url: Annotated[str, Field(min_length=1, strict=True)] = Field(description="The URL of an external content source.")
|
|
36
|
+
pulp_labels: Optional[Dict[str, Optional[StrictStr]]] = None
|
|
37
|
+
policy: Optional[PolicyEnum] = Field(default=None, description="The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'on_demand' is the default. * `immediate` - When syncing, download all metadata and content now. * `on_demand` - When syncing, download metadata, but do not download content now. Instead, download content as clients request it, and save it in Pulp to be served for future client requests. * `streamed` - When syncing, download metadata, but do not download content now. Instead,download content as clients request it, but never save it in Pulp. This causes future requests for that same content to have to be downloaded again.")
|
|
36
38
|
ca_cert: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="A PEM encoded CA certificate used to validate the server certificate presented by the remote server.")
|
|
37
39
|
client_cert: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="A PEM encoded client certificate used for authentication.")
|
|
38
40
|
client_key: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="A PEM encoded private key used for authentication.")
|
|
@@ -42,15 +44,13 @@ class PythonPythonRemote(BaseModel):
|
|
|
42
44
|
proxy_password: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed.")
|
|
43
45
|
username: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="The username to be used for authentication when syncing.")
|
|
44
46
|
password: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed.")
|
|
45
|
-
pulp_labels: Optional[Dict[str, Optional[StrictStr]]] = None
|
|
46
|
-
download_concurrency: Optional[StrictInt] = Field(default=None, description="Total number of simultaneous connections. If not set then the default value will be used.")
|
|
47
47
|
max_retries: Optional[StrictInt] = Field(default=None, description="Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.")
|
|
48
|
-
policy: Optional[PolicyEnum] = Field(default=None, description="The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'on_demand' is the default. * `immediate` - When syncing, download all metadata and content now. * `on_demand` - When syncing, download metadata, but do not download content now. Instead, download content as clients request it, and save it in Pulp to be served for future client requests. * `streamed` - When syncing, download metadata, but do not download content now. Instead,download content as clients request it, but never save it in Pulp. This causes future requests for that same content to have to be downloaded again.")
|
|
49
48
|
total_timeout: Optional[Union[Annotated[float, Field(strict=True, ge=0.0)], Annotated[int, Field(strict=True, ge=0)]]] = Field(default=None, description="aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.")
|
|
50
49
|
connect_timeout: Optional[Union[Annotated[float, Field(strict=True, ge=0.0)], Annotated[int, Field(strict=True, ge=0)]]] = Field(default=None, description="aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.")
|
|
51
50
|
sock_connect_timeout: Optional[Union[Annotated[float, Field(strict=True, ge=0.0)], Annotated[int, Field(strict=True, ge=0)]]] = Field(default=None, description="aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.")
|
|
52
51
|
sock_read_timeout: Optional[Union[Annotated[float, Field(strict=True, ge=0.0)], Annotated[int, Field(strict=True, ge=0)]]] = Field(default=None, description="aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.")
|
|
53
52
|
headers: Optional[List[Dict[str, Any]]] = Field(default=None, description="Headers for aiohttp.Clientsession")
|
|
53
|
+
download_concurrency: Optional[StrictInt] = Field(default=None, description="Total number of simultaneous connections. If not set then the default value will be used.")
|
|
54
54
|
rate_limit: Optional[StrictInt] = Field(default=None, description="Limits requests per second for each concurrent downloader")
|
|
55
55
|
includes: Optional[List[Annotated[str, Field(min_length=1, strict=True)]]] = Field(default=None, description="A list containing project specifiers for Python packages to include.")
|
|
56
56
|
excludes: Optional[List[Annotated[str, Field(min_length=1, strict=True)]]] = Field(default=None, description="A list containing project specifiers for Python packages to exclude.")
|
|
@@ -59,7 +59,7 @@ class PythonPythonRemote(BaseModel):
|
|
|
59
59
|
keep_latest_packages: Optional[StrictInt] = Field(default=0, description="The amount of latest versions of a package to keep on sync, includespre-releases if synced. Default 0 keeps all versions.")
|
|
60
60
|
exclude_platforms: Optional[List[ExcludePlatformsEnum]] = Field(default=None, description="List of platforms to exclude syncing Python packages for. Possible valuesinclude: windows, macos, freebsd, and linux.")
|
|
61
61
|
provenance: Optional[StrictBool] = Field(default=False, description="Whether to sync available provenances for Python packages.")
|
|
62
|
-
__properties: ClassVar[List[str]] = ["name", "url", "ca_cert", "client_cert", "client_key", "tls_validation", "proxy_url", "proxy_username", "proxy_password", "username", "password", "
|
|
62
|
+
__properties: ClassVar[List[str]] = ["name", "url", "pulp_labels", "policy", "ca_cert", "client_cert", "client_key", "tls_validation", "proxy_url", "proxy_username", "proxy_password", "username", "password", "max_retries", "total_timeout", "connect_timeout", "sock_connect_timeout", "sock_read_timeout", "headers", "download_concurrency", "rate_limit", "includes", "excludes", "prereleases", "package_types", "keep_latest_packages", "exclude_platforms", "provenance"]
|
|
63
63
|
|
|
64
64
|
model_config = ConfigDict(
|
|
65
65
|
populate_by_name=True,
|
|
@@ -140,11 +140,6 @@ class PythonPythonRemote(BaseModel):
|
|
|
140
140
|
if self.password is None and "password" in self.model_fields_set:
|
|
141
141
|
_dict['password'] = None
|
|
142
142
|
|
|
143
|
-
# set to None if download_concurrency (nullable) is None
|
|
144
|
-
# and model_fields_set contains the field
|
|
145
|
-
if self.download_concurrency is None and "download_concurrency" in self.model_fields_set:
|
|
146
|
-
_dict['download_concurrency'] = None
|
|
147
|
-
|
|
148
143
|
# set to None if max_retries (nullable) is None
|
|
149
144
|
# and model_fields_set contains the field
|
|
150
145
|
if self.max_retries is None and "max_retries" in self.model_fields_set:
|
|
@@ -170,6 +165,11 @@ class PythonPythonRemote(BaseModel):
|
|
|
170
165
|
if self.sock_read_timeout is None and "sock_read_timeout" in self.model_fields_set:
|
|
171
166
|
_dict['sock_read_timeout'] = None
|
|
172
167
|
|
|
168
|
+
# set to None if download_concurrency (nullable) is None
|
|
169
|
+
# and model_fields_set contains the field
|
|
170
|
+
if self.download_concurrency is None and "download_concurrency" in self.model_fields_set:
|
|
171
|
+
_dict['download_concurrency'] = None
|
|
172
|
+
|
|
173
173
|
# set to None if rate_limit (nullable) is None
|
|
174
174
|
# and model_fields_set contains the field
|
|
175
175
|
if self.rate_limit is None and "rate_limit" in self.model_fields_set:
|