pulp-python-client 3.27.2__tar.gz → 3.27.3__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.27.2 → pulp_python_client-3.27.3}/PKG-INFO +4 -3
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/README.md +3 -2
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/pulp_python_client.egg-info/PKG-INFO +4 -3
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/pulpcore/client/pulp_python/__init__.py +1 -1
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/pulpcore/client/pulp_python/api/content_packages_api.py +31 -1
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/pulpcore/client/pulp_python/api/content_provenance_api.py +15 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/pulpcore/client/pulp_python/api_client.py +1 -1
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/pulpcore/client/pulp_python/configuration.py +1 -1
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/pulpcore/client/pulp_python/models/repository_add_remove_content.py +3 -2
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/pyproject.toml +1 -1
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/setup.py +1 -1
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/test/test_repository_add_remove_content.py +2 -1
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/pulp_python_client.egg-info/SOURCES.txt +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/pulp_python_client.egg-info/dependency_links.txt +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/pulp_python_client.egg-info/requires.txt +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/pulp_python_client.egg-info/top_level.txt +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/pulpcore/__init__.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/pulpcore/client/__init__.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/pulpcore/client/pulp_python/api/__init__.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/pulpcore/client/pulp_python/api/distributions_pypi_api.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/pulpcore/client/pulp_python/api/publications_pypi_api.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/pulpcore/client/pulp_python/api/pypi_api.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/pulpcore/client/pulp_python/api/pypi_legacy_api.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/pulpcore/client/pulp_python/api/pypi_metadata_api.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/pulpcore/client/pulp_python/api/pypi_provenance_api.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/pulpcore/client/pulp_python/api/pypi_simple_api.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/pulpcore/client/pulp_python/api/remotes_python_api.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/pulpcore/client/pulp_python/api/repositories_python_api.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/pulpcore/client/pulp_python/api/repositories_python_versions_api.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/pulpcore/client/pulp_python/api_response.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/pulpcore/client/pulp_python/exceptions.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/pulpcore/client/pulp_python/models/__init__.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/pulpcore/client/pulp_python/models/async_operation_response.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/pulpcore/client/pulp_python/models/content_summary_response.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/pulpcore/client/pulp_python/models/exclude_platforms_enum.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/pulpcore/client/pulp_python/models/filetype_enum.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/pulpcore/client/pulp_python/models/metadata_version_enum.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/pulpcore/client/pulp_python/models/my_permissions_response.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/pulpcore/client/pulp_python/models/nested_role.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/pulpcore/client/pulp_python/models/nested_role_response.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/pulpcore/client/pulp_python/models/object_roles_response.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/pulpcore/client/pulp_python/models/package_metadata_response.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/pulpcore/client/pulp_python/models/package_types_enum.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/pulpcore/client/pulp_python/models/package_upload_task_response.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/pulpcore/client/pulp_python/models/paginated_repository_version_response_list.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/pulpcore/client/pulp_python/models/paginatedpython_package_provenance_response_list.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/pulpcore/client/pulp_python/models/paginatedpython_python_distribution_response_list.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/pulpcore/client/pulp_python/models/paginatedpython_python_package_content_response_list.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/pulpcore/client/pulp_python/models/paginatedpython_python_publication_response_list.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/pulpcore/client/pulp_python/models/paginatedpython_python_remote_response_list.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/pulpcore/client/pulp_python/models/paginatedpython_python_repository_response_list.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/pulpcore/client/pulp_python/models/patchedpython_python_distribution.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/pulpcore/client/pulp_python/models/patchedpython_python_remote.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/pulpcore/client/pulp_python/models/patchedpython_python_repository.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/pulpcore/client/pulp_python/models/policy_enum.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/pulpcore/client/pulp_python/models/protocol_version_enum.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/pulpcore/client/pulp_python/models/python_package_provenance_response.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/pulpcore/client/pulp_python/models/python_python_distribution.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/pulpcore/client/pulp_python/models/python_python_distribution_response.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/pulpcore/client/pulp_python/models/python_python_package_content_response.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/pulpcore/client/pulp_python/models/python_python_publication.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/pulpcore/client/pulp_python/models/python_python_publication_response.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/pulpcore/client/pulp_python/models/python_python_remote.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/pulpcore/client/pulp_python/models/python_python_remote_response.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/pulpcore/client/pulp_python/models/python_python_remote_response_hidden_fields_inner.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/pulpcore/client/pulp_python/models/python_python_repository.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/pulpcore/client/pulp_python/models/python_python_repository_response.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/pulpcore/client/pulp_python/models/remote_network_config.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/pulpcore/client/pulp_python/models/remote_network_config_response.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/pulpcore/client/pulp_python/models/repair.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/pulpcore/client/pulp_python/models/repository_sync_url.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/pulpcore/client/pulp_python/models/repository_version_response.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/pulpcore/client/pulp_python/models/set_label.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/pulpcore/client/pulp_python/models/set_label_response.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/pulpcore/client/pulp_python/models/summary_response.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/pulpcore/client/pulp_python/models/unset_label.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/pulpcore/client/pulp_python/models/unset_label_response.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/pulpcore/client/pulp_python/py.typed +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/pulpcore/client/pulp_python/rest.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/setup.cfg +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/test/test_async_operation_response.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/test/test_content_packages_api.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/test/test_content_provenance_api.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/test/test_content_summary_response.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/test/test_distributions_pypi_api.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/test/test_exclude_platforms_enum.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/test/test_filetype_enum.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/test/test_metadata_version_enum.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/test/test_my_permissions_response.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/test/test_nested_role.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/test/test_nested_role_response.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/test/test_object_roles_response.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/test/test_package_metadata_response.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/test/test_package_types_enum.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/test/test_package_upload_task_response.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/test/test_paginated_repository_version_response_list.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/test/test_paginatedpython_package_provenance_response_list.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/test/test_paginatedpython_python_distribution_response_list.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/test/test_paginatedpython_python_package_content_response_list.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/test/test_paginatedpython_python_publication_response_list.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/test/test_paginatedpython_python_remote_response_list.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/test/test_paginatedpython_python_repository_response_list.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/test/test_patchedpython_python_distribution.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/test/test_patchedpython_python_remote.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/test/test_patchedpython_python_repository.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/test/test_policy_enum.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/test/test_protocol_version_enum.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/test/test_publications_pypi_api.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/test/test_pypi_api.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/test/test_pypi_legacy_api.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/test/test_pypi_metadata_api.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/test/test_pypi_provenance_api.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/test/test_pypi_simple_api.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/test/test_python_package_provenance_response.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/test/test_python_python_distribution.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/test/test_python_python_distribution_response.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/test/test_python_python_package_content_response.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/test/test_python_python_publication.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/test/test_python_python_publication_response.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/test/test_python_python_remote.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/test/test_python_python_remote_response.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/test/test_python_python_remote_response_hidden_fields_inner.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/test/test_python_python_repository.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/test/test_python_python_repository_response.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/test/test_remote_network_config.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/test/test_remote_network_config_response.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/test/test_remotes_python_api.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/test/test_repair.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/test/test_repositories_python_api.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/test/test_repositories_python_versions_api.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/test/test_repository_sync_url.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/test/test_repository_version_response.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/test/test_set_label.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/test/test_set_label_response.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/test/test_summary_response.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/test/test_unset_label.py +0 -0
- {pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/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.27.
|
|
3
|
+
Version: 3.27.3
|
|
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.27.
|
|
27
|
+
- Package version: 3.27.3
|
|
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)
|
|
@@ -107,6 +107,7 @@ with pulpcore.client.pulp_python.ApiClient(configuration) as api_client:
|
|
|
107
107
|
relative_path = 'relative_path_example' # str | Path where the artifact is located relative to distributions base_path
|
|
108
108
|
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
|
|
109
109
|
repository = 'repository_example' # str | A URI of a repository the new content unit should be associated with. (optional)
|
|
110
|
+
overwrite = True # bool | When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when 'repository' is specified. Defaults to true. (optional)
|
|
110
111
|
pulp_labels = None # Dict[str, Optional[str]] | A dictionary of arbitrary key/value pairs used to describe a specific Content instance. (optional)
|
|
111
112
|
artifact = 'artifact_example' # str | Artifact file representing the physical content (optional)
|
|
112
113
|
file = None # bytearray | An uploaded file that may be turned into the content unit. (optional)
|
|
@@ -144,7 +145,7 @@ with pulpcore.client.pulp_python.ApiClient(configuration) as api_client:
|
|
|
144
145
|
|
|
145
146
|
try:
|
|
146
147
|
# Create a python package content
|
|
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)
|
|
148
|
+
api_response = api_instance.create(relative_path, x_task_diagnostics=x_task_diagnostics, repository=repository, overwrite=overwrite, 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)
|
|
148
149
|
print("The response of ContentPackagesApi->create:\n")
|
|
149
150
|
pprint(api_response)
|
|
150
151
|
except ApiException as e:
|
|
@@ -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.27.
|
|
7
|
+
- Package version: 3.27.3
|
|
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)
|
|
@@ -87,6 +87,7 @@ with pulpcore.client.pulp_python.ApiClient(configuration) as api_client:
|
|
|
87
87
|
relative_path = 'relative_path_example' # str | Path where the artifact is located relative to distributions base_path
|
|
88
88
|
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
|
|
89
89
|
repository = 'repository_example' # str | A URI of a repository the new content unit should be associated with. (optional)
|
|
90
|
+
overwrite = True # bool | When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when 'repository' is specified. Defaults to true. (optional)
|
|
90
91
|
pulp_labels = None # Dict[str, Optional[str]] | A dictionary of arbitrary key/value pairs used to describe a specific Content instance. (optional)
|
|
91
92
|
artifact = 'artifact_example' # str | Artifact file representing the physical content (optional)
|
|
92
93
|
file = None # bytearray | An uploaded file that may be turned into the content unit. (optional)
|
|
@@ -124,7 +125,7 @@ with pulpcore.client.pulp_python.ApiClient(configuration) as api_client:
|
|
|
124
125
|
|
|
125
126
|
try:
|
|
126
127
|
# Create a python package content
|
|
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)
|
|
128
|
+
api_response = api_instance.create(relative_path, x_task_diagnostics=x_task_diagnostics, repository=repository, overwrite=overwrite, 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)
|
|
128
129
|
print("The response of ContentPackagesApi->create:\n")
|
|
129
130
|
pprint(api_response)
|
|
130
131
|
except ApiException as e:
|
{pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/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.27.
|
|
3
|
+
Version: 3.27.3
|
|
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.27.
|
|
27
|
+
- Package version: 3.27.3
|
|
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)
|
|
@@ -107,6 +107,7 @@ with pulpcore.client.pulp_python.ApiClient(configuration) as api_client:
|
|
|
107
107
|
relative_path = 'relative_path_example' # str | Path where the artifact is located relative to distributions base_path
|
|
108
108
|
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
|
|
109
109
|
repository = 'repository_example' # str | A URI of a repository the new content unit should be associated with. (optional)
|
|
110
|
+
overwrite = True # bool | When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when 'repository' is specified. Defaults to true. (optional)
|
|
110
111
|
pulp_labels = None # Dict[str, Optional[str]] | A dictionary of arbitrary key/value pairs used to describe a specific Content instance. (optional)
|
|
111
112
|
artifact = 'artifact_example' # str | Artifact file representing the physical content (optional)
|
|
112
113
|
file = None # bytearray | An uploaded file that may be turned into the content unit. (optional)
|
|
@@ -144,7 +145,7 @@ with pulpcore.client.pulp_python.ApiClient(configuration) as api_client:
|
|
|
144
145
|
|
|
145
146
|
try:
|
|
146
147
|
# Create a python package content
|
|
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)
|
|
148
|
+
api_response = api_instance.create(relative_path, x_task_diagnostics=x_task_diagnostics, repository=repository, overwrite=overwrite, 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)
|
|
148
149
|
print("The response of ContentPackagesApi->create:\n")
|
|
149
150
|
pprint(api_response)
|
|
150
151
|
except ApiException as e:
|
|
@@ -17,7 +17,7 @@ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
|
17
17
|
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
18
18
|
from typing_extensions import Annotated
|
|
19
19
|
|
|
20
|
-
from pydantic import Field, StrictBytes, StrictFloat, StrictInt, StrictStr, field_validator
|
|
20
|
+
from pydantic import Field, StrictBool, StrictBytes, StrictFloat, StrictInt, StrictStr, field_validator
|
|
21
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
|
|
@@ -52,6 +52,7 @@ class ContentPackagesApi:
|
|
|
52
52
|
relative_path: Annotated[str, Field(min_length=1, strict=True, description="Path where the artifact is located relative to distributions base_path")],
|
|
53
53
|
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
54
54
|
repository: Annotated[Optional[StrictStr], Field(description="A URI of a repository the new content unit should be associated with.")] = None,
|
|
55
|
+
overwrite: Annotated[Optional[StrictBool], Field(description="When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when 'repository' is specified. Defaults to true.")] = None,
|
|
55
56
|
pulp_labels: Annotated[Optional[Dict[str, Optional[StrictStr]]], Field(description="A dictionary of arbitrary key/value pairs used to describe a specific Content instance.")] = None,
|
|
56
57
|
artifact: Annotated[Optional[StrictStr], Field(description="Artifact file representing the physical content")] = None,
|
|
57
58
|
file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="An uploaded file that may be turned into the content unit.")] = None,
|
|
@@ -109,6 +110,8 @@ class ContentPackagesApi:
|
|
|
109
110
|
:type x_task_diagnostics: List[str]
|
|
110
111
|
:param repository: A URI of a repository the new content unit should be associated with.
|
|
111
112
|
:type repository: str
|
|
113
|
+
:param overwrite: When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when 'repository' is specified. Defaults to true.
|
|
114
|
+
:type overwrite: bool
|
|
112
115
|
:param pulp_labels: A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
|
113
116
|
:type pulp_labels: Dict[str, Optional[str]]
|
|
114
117
|
:param artifact: Artifact file representing the physical content
|
|
@@ -203,6 +206,7 @@ class ContentPackagesApi:
|
|
|
203
206
|
relative_path=relative_path,
|
|
204
207
|
x_task_diagnostics=x_task_diagnostics,
|
|
205
208
|
repository=repository,
|
|
209
|
+
overwrite=overwrite,
|
|
206
210
|
pulp_labels=pulp_labels,
|
|
207
211
|
artifact=artifact,
|
|
208
212
|
file=file,
|
|
@@ -263,6 +267,7 @@ class ContentPackagesApi:
|
|
|
263
267
|
relative_path: Annotated[str, Field(min_length=1, strict=True, description="Path where the artifact is located relative to distributions base_path")],
|
|
264
268
|
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
265
269
|
repository: Annotated[Optional[StrictStr], Field(description="A URI of a repository the new content unit should be associated with.")] = None,
|
|
270
|
+
overwrite: Annotated[Optional[StrictBool], Field(description="When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when 'repository' is specified. Defaults to true.")] = None,
|
|
266
271
|
pulp_labels: Annotated[Optional[Dict[str, Optional[StrictStr]]], Field(description="A dictionary of arbitrary key/value pairs used to describe a specific Content instance.")] = None,
|
|
267
272
|
artifact: Annotated[Optional[StrictStr], Field(description="Artifact file representing the physical content")] = None,
|
|
268
273
|
file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="An uploaded file that may be turned into the content unit.")] = None,
|
|
@@ -320,6 +325,8 @@ class ContentPackagesApi:
|
|
|
320
325
|
:type x_task_diagnostics: List[str]
|
|
321
326
|
:param repository: A URI of a repository the new content unit should be associated with.
|
|
322
327
|
:type repository: str
|
|
328
|
+
:param overwrite: When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when 'repository' is specified. Defaults to true.
|
|
329
|
+
:type overwrite: bool
|
|
323
330
|
:param pulp_labels: A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
|
324
331
|
:type pulp_labels: Dict[str, Optional[str]]
|
|
325
332
|
:param artifact: Artifact file representing the physical content
|
|
@@ -414,6 +421,7 @@ class ContentPackagesApi:
|
|
|
414
421
|
relative_path=relative_path,
|
|
415
422
|
x_task_diagnostics=x_task_diagnostics,
|
|
416
423
|
repository=repository,
|
|
424
|
+
overwrite=overwrite,
|
|
417
425
|
pulp_labels=pulp_labels,
|
|
418
426
|
artifact=artifact,
|
|
419
427
|
file=file,
|
|
@@ -474,6 +482,7 @@ class ContentPackagesApi:
|
|
|
474
482
|
relative_path: Annotated[str, Field(min_length=1, strict=True, description="Path where the artifact is located relative to distributions base_path")],
|
|
475
483
|
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
476
484
|
repository: Annotated[Optional[StrictStr], Field(description="A URI of a repository the new content unit should be associated with.")] = None,
|
|
485
|
+
overwrite: Annotated[Optional[StrictBool], Field(description="When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when 'repository' is specified. Defaults to true.")] = None,
|
|
477
486
|
pulp_labels: Annotated[Optional[Dict[str, Optional[StrictStr]]], Field(description="A dictionary of arbitrary key/value pairs used to describe a specific Content instance.")] = None,
|
|
478
487
|
artifact: Annotated[Optional[StrictStr], Field(description="Artifact file representing the physical content")] = None,
|
|
479
488
|
file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="An uploaded file that may be turned into the content unit.")] = None,
|
|
@@ -531,6 +540,8 @@ class ContentPackagesApi:
|
|
|
531
540
|
:type x_task_diagnostics: List[str]
|
|
532
541
|
:param repository: A URI of a repository the new content unit should be associated with.
|
|
533
542
|
:type repository: str
|
|
543
|
+
:param overwrite: When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when 'repository' is specified. Defaults to true.
|
|
544
|
+
:type overwrite: bool
|
|
534
545
|
:param pulp_labels: A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
|
535
546
|
:type pulp_labels: Dict[str, Optional[str]]
|
|
536
547
|
:param artifact: Artifact file representing the physical content
|
|
@@ -625,6 +636,7 @@ class ContentPackagesApi:
|
|
|
625
636
|
relative_path=relative_path,
|
|
626
637
|
x_task_diagnostics=x_task_diagnostics,
|
|
627
638
|
repository=repository,
|
|
639
|
+
overwrite=overwrite,
|
|
628
640
|
pulp_labels=pulp_labels,
|
|
629
641
|
artifact=artifact,
|
|
630
642
|
file=file,
|
|
@@ -680,6 +692,7 @@ class ContentPackagesApi:
|
|
|
680
692
|
relative_path,
|
|
681
693
|
x_task_diagnostics,
|
|
682
694
|
repository,
|
|
695
|
+
overwrite,
|
|
683
696
|
pulp_labels,
|
|
684
697
|
artifact,
|
|
685
698
|
file,
|
|
@@ -743,6 +756,8 @@ class ContentPackagesApi:
|
|
|
743
756
|
# process the form parameters
|
|
744
757
|
if repository is not None:
|
|
745
758
|
_form_params.append(('repository', repository))
|
|
759
|
+
if overwrite is not None:
|
|
760
|
+
_form_params.append(('overwrite', overwrite))
|
|
746
761
|
if pulp_labels is not None:
|
|
747
762
|
_form_params.append(('pulp_labels', pulp_labels))
|
|
748
763
|
if artifact is not None:
|
|
@@ -2702,6 +2717,7 @@ class ContentPackagesApi:
|
|
|
2702
2717
|
def upload(
|
|
2703
2718
|
self,
|
|
2704
2719
|
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
2720
|
+
overwrite: Annotated[Optional[StrictBool], Field(description="When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when 'repository' is specified. Defaults to true.")] = None,
|
|
2705
2721
|
pulp_labels: Annotated[Optional[Dict[str, Optional[StrictStr]]], Field(description="A dictionary of arbitrary key/value pairs used to describe a specific Content instance.")] = None,
|
|
2706
2722
|
artifact: Annotated[Optional[StrictStr], Field(description="Artifact file representing the physical content")] = None,
|
|
2707
2723
|
file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="An uploaded file that may be turned into the content unit.")] = None,
|
|
@@ -2755,6 +2771,8 @@ class ContentPackagesApi:
|
|
|
2755
2771
|
|
|
2756
2772
|
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
2757
2773
|
:type x_task_diagnostics: List[str]
|
|
2774
|
+
:param overwrite: When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when 'repository' is specified. Defaults to true.
|
|
2775
|
+
:type overwrite: bool
|
|
2758
2776
|
:param pulp_labels: A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
|
2759
2777
|
:type pulp_labels: Dict[str, Optional[str]]
|
|
2760
2778
|
:param artifact: Artifact file representing the physical content
|
|
@@ -2847,6 +2865,7 @@ class ContentPackagesApi:
|
|
|
2847
2865
|
|
|
2848
2866
|
_param = self._upload_serialize(
|
|
2849
2867
|
x_task_diagnostics=x_task_diagnostics,
|
|
2868
|
+
overwrite=overwrite,
|
|
2850
2869
|
pulp_labels=pulp_labels,
|
|
2851
2870
|
artifact=artifact,
|
|
2852
2871
|
file=file,
|
|
@@ -2905,6 +2924,7 @@ class ContentPackagesApi:
|
|
|
2905
2924
|
def upload_with_http_info(
|
|
2906
2925
|
self,
|
|
2907
2926
|
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
2927
|
+
overwrite: Annotated[Optional[StrictBool], Field(description="When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when 'repository' is specified. Defaults to true.")] = None,
|
|
2908
2928
|
pulp_labels: Annotated[Optional[Dict[str, Optional[StrictStr]]], Field(description="A dictionary of arbitrary key/value pairs used to describe a specific Content instance.")] = None,
|
|
2909
2929
|
artifact: Annotated[Optional[StrictStr], Field(description="Artifact file representing the physical content")] = None,
|
|
2910
2930
|
file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="An uploaded file that may be turned into the content unit.")] = None,
|
|
@@ -2958,6 +2978,8 @@ class ContentPackagesApi:
|
|
|
2958
2978
|
|
|
2959
2979
|
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
2960
2980
|
:type x_task_diagnostics: List[str]
|
|
2981
|
+
:param overwrite: When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when 'repository' is specified. Defaults to true.
|
|
2982
|
+
:type overwrite: bool
|
|
2961
2983
|
:param pulp_labels: A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
|
2962
2984
|
:type pulp_labels: Dict[str, Optional[str]]
|
|
2963
2985
|
:param artifact: Artifact file representing the physical content
|
|
@@ -3050,6 +3072,7 @@ class ContentPackagesApi:
|
|
|
3050
3072
|
|
|
3051
3073
|
_param = self._upload_serialize(
|
|
3052
3074
|
x_task_diagnostics=x_task_diagnostics,
|
|
3075
|
+
overwrite=overwrite,
|
|
3053
3076
|
pulp_labels=pulp_labels,
|
|
3054
3077
|
artifact=artifact,
|
|
3055
3078
|
file=file,
|
|
@@ -3108,6 +3131,7 @@ class ContentPackagesApi:
|
|
|
3108
3131
|
def upload_without_preload_content(
|
|
3109
3132
|
self,
|
|
3110
3133
|
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
3134
|
+
overwrite: Annotated[Optional[StrictBool], Field(description="When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when 'repository' is specified. Defaults to true.")] = None,
|
|
3111
3135
|
pulp_labels: Annotated[Optional[Dict[str, Optional[StrictStr]]], Field(description="A dictionary of arbitrary key/value pairs used to describe a specific Content instance.")] = None,
|
|
3112
3136
|
artifact: Annotated[Optional[StrictStr], Field(description="Artifact file representing the physical content")] = None,
|
|
3113
3137
|
file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="An uploaded file that may be turned into the content unit.")] = None,
|
|
@@ -3161,6 +3185,8 @@ class ContentPackagesApi:
|
|
|
3161
3185
|
|
|
3162
3186
|
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
3163
3187
|
:type x_task_diagnostics: List[str]
|
|
3188
|
+
:param overwrite: When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when 'repository' is specified. Defaults to true.
|
|
3189
|
+
:type overwrite: bool
|
|
3164
3190
|
:param pulp_labels: A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
|
3165
3191
|
:type pulp_labels: Dict[str, Optional[str]]
|
|
3166
3192
|
:param artifact: Artifact file representing the physical content
|
|
@@ -3253,6 +3279,7 @@ class ContentPackagesApi:
|
|
|
3253
3279
|
|
|
3254
3280
|
_param = self._upload_serialize(
|
|
3255
3281
|
x_task_diagnostics=x_task_diagnostics,
|
|
3282
|
+
overwrite=overwrite,
|
|
3256
3283
|
pulp_labels=pulp_labels,
|
|
3257
3284
|
artifact=artifact,
|
|
3258
3285
|
file=file,
|
|
@@ -3306,6 +3333,7 @@ class ContentPackagesApi:
|
|
|
3306
3333
|
def _upload_serialize(
|
|
3307
3334
|
self,
|
|
3308
3335
|
x_task_diagnostics,
|
|
3336
|
+
overwrite,
|
|
3309
3337
|
pulp_labels,
|
|
3310
3338
|
artifact,
|
|
3311
3339
|
file,
|
|
@@ -3367,6 +3395,8 @@ class ContentPackagesApi:
|
|
|
3367
3395
|
if x_task_diagnostics is not None:
|
|
3368
3396
|
_header_params['X-Task-Diagnostics'] = x_task_diagnostics
|
|
3369
3397
|
# process the form parameters
|
|
3398
|
+
if overwrite is not None:
|
|
3399
|
+
_form_params.append(('overwrite', overwrite))
|
|
3370
3400
|
if pulp_labels is not None:
|
|
3371
3401
|
_form_params.append(('pulp_labels', pulp_labels))
|
|
3372
3402
|
if artifact is not None:
|
|
@@ -52,6 +52,7 @@ class ContentProvenanceApi:
|
|
|
52
52
|
package: Annotated[StrictStr, Field(description="The package that the provenance is for.")],
|
|
53
53
|
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
54
54
|
repository: Annotated[Optional[StrictStr], Field(description="A URI of a repository the new content unit should be associated with.")] = None,
|
|
55
|
+
overwrite: Annotated[Optional[StrictBool], Field(description="When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when 'repository' is specified. Defaults to true.")] = None,
|
|
55
56
|
pulp_labels: Annotated[Optional[Dict[str, Optional[StrictStr]]], Field(description="A dictionary of arbitrary key/value pairs used to describe a specific Content instance.")] = None,
|
|
56
57
|
file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="An uploaded file that may be turned into the content unit.")] = None,
|
|
57
58
|
upload: Annotated[Optional[StrictStr], Field(description="An uncommitted upload that may be turned into the content unit.")] = None,
|
|
@@ -81,6 +82,8 @@ class ContentProvenanceApi:
|
|
|
81
82
|
:type x_task_diagnostics: List[str]
|
|
82
83
|
:param repository: A URI of a repository the new content unit should be associated with.
|
|
83
84
|
:type repository: str
|
|
85
|
+
:param overwrite: When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when 'repository' is specified. Defaults to true.
|
|
86
|
+
:type overwrite: bool
|
|
84
87
|
:param pulp_labels: A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
|
85
88
|
:type pulp_labels: Dict[str, Optional[str]]
|
|
86
89
|
:param file: An uploaded file that may be turned into the content unit.
|
|
@@ -119,6 +122,7 @@ class ContentProvenanceApi:
|
|
|
119
122
|
package=package,
|
|
120
123
|
x_task_diagnostics=x_task_diagnostics,
|
|
121
124
|
repository=repository,
|
|
125
|
+
overwrite=overwrite,
|
|
122
126
|
pulp_labels=pulp_labels,
|
|
123
127
|
file=file,
|
|
124
128
|
upload=upload,
|
|
@@ -151,6 +155,7 @@ class ContentProvenanceApi:
|
|
|
151
155
|
package: Annotated[StrictStr, Field(description="The package that the provenance is for.")],
|
|
152
156
|
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
153
157
|
repository: Annotated[Optional[StrictStr], Field(description="A URI of a repository the new content unit should be associated with.")] = None,
|
|
158
|
+
overwrite: Annotated[Optional[StrictBool], Field(description="When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when 'repository' is specified. Defaults to true.")] = None,
|
|
154
159
|
pulp_labels: Annotated[Optional[Dict[str, Optional[StrictStr]]], Field(description="A dictionary of arbitrary key/value pairs used to describe a specific Content instance.")] = None,
|
|
155
160
|
file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="An uploaded file that may be turned into the content unit.")] = None,
|
|
156
161
|
upload: Annotated[Optional[StrictStr], Field(description="An uncommitted upload that may be turned into the content unit.")] = None,
|
|
@@ -180,6 +185,8 @@ class ContentProvenanceApi:
|
|
|
180
185
|
:type x_task_diagnostics: List[str]
|
|
181
186
|
:param repository: A URI of a repository the new content unit should be associated with.
|
|
182
187
|
:type repository: str
|
|
188
|
+
:param overwrite: When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when 'repository' is specified. Defaults to true.
|
|
189
|
+
:type overwrite: bool
|
|
183
190
|
:param pulp_labels: A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
|
184
191
|
:type pulp_labels: Dict[str, Optional[str]]
|
|
185
192
|
:param file: An uploaded file that may be turned into the content unit.
|
|
@@ -218,6 +225,7 @@ class ContentProvenanceApi:
|
|
|
218
225
|
package=package,
|
|
219
226
|
x_task_diagnostics=x_task_diagnostics,
|
|
220
227
|
repository=repository,
|
|
228
|
+
overwrite=overwrite,
|
|
221
229
|
pulp_labels=pulp_labels,
|
|
222
230
|
file=file,
|
|
223
231
|
upload=upload,
|
|
@@ -250,6 +258,7 @@ class ContentProvenanceApi:
|
|
|
250
258
|
package: Annotated[StrictStr, Field(description="The package that the provenance is for.")],
|
|
251
259
|
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
252
260
|
repository: Annotated[Optional[StrictStr], Field(description="A URI of a repository the new content unit should be associated with.")] = None,
|
|
261
|
+
overwrite: Annotated[Optional[StrictBool], Field(description="When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when 'repository' is specified. Defaults to true.")] = None,
|
|
253
262
|
pulp_labels: Annotated[Optional[Dict[str, Optional[StrictStr]]], Field(description="A dictionary of arbitrary key/value pairs used to describe a specific Content instance.")] = None,
|
|
254
263
|
file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="An uploaded file that may be turned into the content unit.")] = None,
|
|
255
264
|
upload: Annotated[Optional[StrictStr], Field(description="An uncommitted upload that may be turned into the content unit.")] = None,
|
|
@@ -279,6 +288,8 @@ class ContentProvenanceApi:
|
|
|
279
288
|
:type x_task_diagnostics: List[str]
|
|
280
289
|
:param repository: A URI of a repository the new content unit should be associated with.
|
|
281
290
|
:type repository: str
|
|
291
|
+
:param overwrite: When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when 'repository' is specified. Defaults to true.
|
|
292
|
+
:type overwrite: bool
|
|
282
293
|
:param pulp_labels: A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
|
283
294
|
:type pulp_labels: Dict[str, Optional[str]]
|
|
284
295
|
:param file: An uploaded file that may be turned into the content unit.
|
|
@@ -317,6 +328,7 @@ class ContentProvenanceApi:
|
|
|
317
328
|
package=package,
|
|
318
329
|
x_task_diagnostics=x_task_diagnostics,
|
|
319
330
|
repository=repository,
|
|
331
|
+
overwrite=overwrite,
|
|
320
332
|
pulp_labels=pulp_labels,
|
|
321
333
|
file=file,
|
|
322
334
|
upload=upload,
|
|
@@ -344,6 +356,7 @@ class ContentProvenanceApi:
|
|
|
344
356
|
package,
|
|
345
357
|
x_task_diagnostics,
|
|
346
358
|
repository,
|
|
359
|
+
overwrite,
|
|
347
360
|
pulp_labels,
|
|
348
361
|
file,
|
|
349
362
|
upload,
|
|
@@ -379,6 +392,8 @@ class ContentProvenanceApi:
|
|
|
379
392
|
# process the form parameters
|
|
380
393
|
if repository is not None:
|
|
381
394
|
_form_params.append(('repository', repository))
|
|
395
|
+
if overwrite is not None:
|
|
396
|
+
_form_params.append(('overwrite', overwrite))
|
|
382
397
|
if pulp_labels is not None:
|
|
383
398
|
_form_params.append(('pulp_labels', pulp_labels))
|
|
384
399
|
if file is not None:
|
{pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/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.27.
|
|
94
|
+
self.user_agent = 'OpenAPI-Generator/3.27.3/python'
|
|
95
95
|
self.client_side_validation = configuration.client_side_validation
|
|
96
96
|
|
|
97
97
|
def __enter__(self):
|
{pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/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.27.
|
|
559
|
+
"SDK Package Version: 3.27.3".\
|
|
560
560
|
format(env=sys.platform, pyversion=sys.version)
|
|
561
561
|
|
|
562
562
|
def get_host_settings(self) -> List[HostSetting]:
|
|
@@ -18,7 +18,7 @@ import pprint
|
|
|
18
18
|
import re # noqa: F401
|
|
19
19
|
import json
|
|
20
20
|
|
|
21
|
-
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
21
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
|
|
22
22
|
from typing import Any, ClassVar, Dict, List, Optional
|
|
23
23
|
from typing_extensions import Annotated
|
|
24
24
|
from typing import Optional, Set
|
|
@@ -31,7 +31,8 @@ class RepositoryAddRemoveContent(BaseModel):
|
|
|
31
31
|
add_content_units: Optional[List[Annotated[str, Field(min_length=1, strict=True)]]] = Field(default=None, description="A list of content units to add to a new repository version. This content is added after remove_content_units are removed.")
|
|
32
32
|
remove_content_units: Optional[List[Annotated[str, Field(min_length=1, strict=True)]]] = Field(default=None, description="A list of content units to remove from the latest repository version. You may also specify '*' as an entry to remove all content. This content is removed before add_content_units are added.")
|
|
33
33
|
base_version: Optional[StrictStr] = Field(default=None, description="A repository version whose content will be used as the initial set of content for the new repository version")
|
|
34
|
-
|
|
34
|
+
overwrite: Optional[StrictBool] = Field(default=True, description="When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Defaults to true.")
|
|
35
|
+
__properties: ClassVar[List[str]] = ["add_content_units", "remove_content_units", "base_version", "overwrite"]
|
|
35
36
|
|
|
36
37
|
model_config = ConfigDict(
|
|
37
38
|
populate_by_name=True,
|
|
@@ -22,7 +22,7 @@ from setuptools import setup, find_packages # noqa: H301
|
|
|
22
22
|
# prerequisite: setuptools
|
|
23
23
|
# http://pypi.python.org/pypi/setuptools
|
|
24
24
|
NAME = "pulp_python-client"
|
|
25
|
-
VERSION = "3.27.
|
|
25
|
+
VERSION = "3.27.3"
|
|
26
26
|
PYTHON_REQUIRES = ">= 3.9"
|
|
27
27
|
REQUIRES = [
|
|
28
28
|
"urllib3 >= 2.1.0, < 2.7",
|
{pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/pulp_python_client.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/pulp_python_client.egg-info/requires.txt
RENAMED
|
File without changes
|
{pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/pulp_python_client.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/pulpcore/client/pulp_python/api/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/pulpcore/client/pulp_python/api/pypi_api.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/pulpcore/client/pulp_python/api_response.py
RENAMED
|
File without changes
|
{pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/pulpcore/client/pulp_python/exceptions.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/pulpcore/client/pulp_python/models/repair.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/pulpcore/client/pulp_python/py.typed
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/test/test_async_operation_response.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/test/test_content_summary_response.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/test/test_my_permissions_response.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/test/test_package_metadata_response.py
RENAMED
|
File without changes
|
|
File without changes
|
{pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/test/test_package_upload_task_response.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/test/test_patchedpython_python_remote.py
RENAMED
|
File without changes
|
{pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/test/test_patchedpython_python_repository.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/test/test_python_python_distribution.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/test/test_python_python_publication.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/test/test_python_python_remote_response.py
RENAMED
|
File without changes
|
|
File without changes
|
{pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/test/test_python_python_repository.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/test/test_remote_network_config_response.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/test/test_repositories_python_api.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pulp_python_client-3.27.2 → pulp_python_client-3.27.3}/test/test_repository_version_response.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|