pulp-python-client 3.30.0__tar.gz → 3.30.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (145) hide show
  1. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/PKG-INFO +4 -3
  2. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/README.md +3 -2
  3. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/pulp_python_client.egg-info/PKG-INFO +4 -3
  4. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/pulpcore/client/pulp_python/__init__.py +1 -1
  5. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/pulpcore/client/pulp_python/api/content_packages_api.py +31 -1
  6. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/pulpcore/client/pulp_python/api/content_provenance_api.py +15 -0
  7. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/pulpcore/client/pulp_python/api_client.py +1 -1
  8. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/pulpcore/client/pulp_python/configuration.py +1 -1
  9. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/pulpcore/client/pulp_python/models/repository_add_remove_content.py +3 -2
  10. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/pyproject.toml +1 -1
  11. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/setup.py +1 -1
  12. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/test/test_repository_add_remove_content.py +2 -1
  13. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/pulp_python_client.egg-info/SOURCES.txt +0 -0
  14. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/pulp_python_client.egg-info/dependency_links.txt +0 -0
  15. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/pulp_python_client.egg-info/requires.txt +0 -0
  16. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/pulp_python_client.egg-info/top_level.txt +0 -0
  17. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/pulpcore/__init__.py +0 -0
  18. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/pulpcore/client/__init__.py +0 -0
  19. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/pulpcore/client/pulp_python/api/__init__.py +0 -0
  20. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/pulpcore/client/pulp_python/api/distributions_pypi_api.py +0 -0
  21. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/pulpcore/client/pulp_python/api/publications_pypi_api.py +0 -0
  22. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/pulpcore/client/pulp_python/api/pypi_api.py +0 -0
  23. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/pulpcore/client/pulp_python/api/pypi_legacy_api.py +0 -0
  24. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/pulpcore/client/pulp_python/api/pypi_metadata_api.py +0 -0
  25. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/pulpcore/client/pulp_python/api/pypi_provenance_api.py +0 -0
  26. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/pulpcore/client/pulp_python/api/pypi_simple_api.py +0 -0
  27. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/pulpcore/client/pulp_python/api/remotes_python_api.py +0 -0
  28. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/pulpcore/client/pulp_python/api/repositories_python_api.py +0 -0
  29. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/pulpcore/client/pulp_python/api/repositories_python_blocklist_entries_api.py +0 -0
  30. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/pulpcore/client/pulp_python/api/repositories_python_versions_api.py +0 -0
  31. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/pulpcore/client/pulp_python/api_response.py +0 -0
  32. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/pulpcore/client/pulp_python/exceptions.py +0 -0
  33. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/pulpcore/client/pulp_python/models/__init__.py +0 -0
  34. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/pulpcore/client/pulp_python/models/async_operation_response.py +0 -0
  35. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/pulpcore/client/pulp_python/models/content_summary_response.py +0 -0
  36. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/pulpcore/client/pulp_python/models/exclude_platforms_enum.py +0 -0
  37. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/pulpcore/client/pulp_python/models/filetype_enum.py +0 -0
  38. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/pulpcore/client/pulp_python/models/metadata_version_enum.py +0 -0
  39. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/pulpcore/client/pulp_python/models/my_permissions_response.py +0 -0
  40. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/pulpcore/client/pulp_python/models/nested_role.py +0 -0
  41. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/pulpcore/client/pulp_python/models/nested_role_response.py +0 -0
  42. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/pulpcore/client/pulp_python/models/object_roles_response.py +0 -0
  43. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/pulpcore/client/pulp_python/models/package_metadata_response.py +0 -0
  44. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/pulpcore/client/pulp_python/models/package_types_enum.py +0 -0
  45. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/pulpcore/client/pulp_python/models/package_upload_task_response.py +0 -0
  46. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/pulpcore/client/pulp_python/models/paginated_repository_version_response_list.py +0 -0
  47. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/pulpcore/client/pulp_python/models/paginatedpython_package_provenance_response_list.py +0 -0
  48. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/pulpcore/client/pulp_python/models/paginatedpython_python_blocklist_entry_response_list.py +0 -0
  49. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/pulpcore/client/pulp_python/models/paginatedpython_python_distribution_response_list.py +0 -0
  50. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/pulpcore/client/pulp_python/models/paginatedpython_python_package_content_response_list.py +0 -0
  51. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/pulpcore/client/pulp_python/models/paginatedpython_python_publication_response_list.py +0 -0
  52. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/pulpcore/client/pulp_python/models/paginatedpython_python_remote_response_list.py +0 -0
  53. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/pulpcore/client/pulp_python/models/paginatedpython_python_repository_response_list.py +0 -0
  54. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/pulpcore/client/pulp_python/models/patchedpython_python_distribution.py +0 -0
  55. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/pulpcore/client/pulp_python/models/patchedpython_python_remote.py +0 -0
  56. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/pulpcore/client/pulp_python/models/patchedpython_python_repository.py +0 -0
  57. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/pulpcore/client/pulp_python/models/policy_enum.py +0 -0
  58. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/pulpcore/client/pulp_python/models/protocol_version_enum.py +0 -0
  59. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/pulpcore/client/pulp_python/models/python_package_provenance_response.py +0 -0
  60. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/pulpcore/client/pulp_python/models/python_python_blocklist_entry.py +0 -0
  61. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/pulpcore/client/pulp_python/models/python_python_blocklist_entry_response.py +0 -0
  62. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/pulpcore/client/pulp_python/models/python_python_distribution.py +0 -0
  63. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/pulpcore/client/pulp_python/models/python_python_distribution_response.py +0 -0
  64. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/pulpcore/client/pulp_python/models/python_python_package_content_response.py +0 -0
  65. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/pulpcore/client/pulp_python/models/python_python_publication.py +0 -0
  66. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/pulpcore/client/pulp_python/models/python_python_publication_response.py +0 -0
  67. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/pulpcore/client/pulp_python/models/python_python_remote.py +0 -0
  68. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/pulpcore/client/pulp_python/models/python_python_remote_response.py +0 -0
  69. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/pulpcore/client/pulp_python/models/python_python_remote_response_hidden_fields_inner.py +0 -0
  70. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/pulpcore/client/pulp_python/models/python_python_repository.py +0 -0
  71. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/pulpcore/client/pulp_python/models/python_python_repository_response.py +0 -0
  72. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/pulpcore/client/pulp_python/models/remote_network_config.py +0 -0
  73. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/pulpcore/client/pulp_python/models/remote_network_config_response.py +0 -0
  74. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/pulpcore/client/pulp_python/models/repair.py +0 -0
  75. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/pulpcore/client/pulp_python/models/repository_sync_url.py +0 -0
  76. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/pulpcore/client/pulp_python/models/repository_version_response.py +0 -0
  77. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/pulpcore/client/pulp_python/models/set_label.py +0 -0
  78. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/pulpcore/client/pulp_python/models/set_label_response.py +0 -0
  79. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/pulpcore/client/pulp_python/models/summary_response.py +0 -0
  80. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/pulpcore/client/pulp_python/models/unset_label.py +0 -0
  81. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/pulpcore/client/pulp_python/models/unset_label_response.py +0 -0
  82. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/pulpcore/client/pulp_python/py.typed +0 -0
  83. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/pulpcore/client/pulp_python/rest.py +0 -0
  84. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/setup.cfg +0 -0
  85. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/test/test_async_operation_response.py +0 -0
  86. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/test/test_content_packages_api.py +0 -0
  87. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/test/test_content_provenance_api.py +0 -0
  88. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/test/test_content_summary_response.py +0 -0
  89. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/test/test_distributions_pypi_api.py +0 -0
  90. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/test/test_exclude_platforms_enum.py +0 -0
  91. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/test/test_filetype_enum.py +0 -0
  92. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/test/test_metadata_version_enum.py +0 -0
  93. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/test/test_my_permissions_response.py +0 -0
  94. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/test/test_nested_role.py +0 -0
  95. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/test/test_nested_role_response.py +0 -0
  96. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/test/test_object_roles_response.py +0 -0
  97. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/test/test_package_metadata_response.py +0 -0
  98. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/test/test_package_types_enum.py +0 -0
  99. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/test/test_package_upload_task_response.py +0 -0
  100. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/test/test_paginated_repository_version_response_list.py +0 -0
  101. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/test/test_paginatedpython_package_provenance_response_list.py +0 -0
  102. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/test/test_paginatedpython_python_blocklist_entry_response_list.py +0 -0
  103. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/test/test_paginatedpython_python_distribution_response_list.py +0 -0
  104. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/test/test_paginatedpython_python_package_content_response_list.py +0 -0
  105. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/test/test_paginatedpython_python_publication_response_list.py +0 -0
  106. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/test/test_paginatedpython_python_remote_response_list.py +0 -0
  107. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/test/test_paginatedpython_python_repository_response_list.py +0 -0
  108. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/test/test_patchedpython_python_distribution.py +0 -0
  109. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/test/test_patchedpython_python_remote.py +0 -0
  110. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/test/test_patchedpython_python_repository.py +0 -0
  111. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/test/test_policy_enum.py +0 -0
  112. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/test/test_protocol_version_enum.py +0 -0
  113. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/test/test_publications_pypi_api.py +0 -0
  114. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/test/test_pypi_api.py +0 -0
  115. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/test/test_pypi_legacy_api.py +0 -0
  116. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/test/test_pypi_metadata_api.py +0 -0
  117. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/test/test_pypi_provenance_api.py +0 -0
  118. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/test/test_pypi_simple_api.py +0 -0
  119. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/test/test_python_package_provenance_response.py +0 -0
  120. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/test/test_python_python_blocklist_entry.py +0 -0
  121. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/test/test_python_python_blocklist_entry_response.py +0 -0
  122. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/test/test_python_python_distribution.py +0 -0
  123. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/test/test_python_python_distribution_response.py +0 -0
  124. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/test/test_python_python_package_content_response.py +0 -0
  125. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/test/test_python_python_publication.py +0 -0
  126. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/test/test_python_python_publication_response.py +0 -0
  127. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/test/test_python_python_remote.py +0 -0
  128. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/test/test_python_python_remote_response.py +0 -0
  129. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/test/test_python_python_remote_response_hidden_fields_inner.py +0 -0
  130. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/test/test_python_python_repository.py +0 -0
  131. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/test/test_python_python_repository_response.py +0 -0
  132. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/test/test_remote_network_config.py +0 -0
  133. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/test/test_remote_network_config_response.py +0 -0
  134. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/test/test_remotes_python_api.py +0 -0
  135. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/test/test_repair.py +0 -0
  136. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/test/test_repositories_python_api.py +0 -0
  137. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/test/test_repositories_python_blocklist_entries_api.py +0 -0
  138. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/test/test_repositories_python_versions_api.py +0 -0
  139. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/test/test_repository_sync_url.py +0 -0
  140. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/test/test_repository_version_response.py +0 -0
  141. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/test/test_set_label.py +0 -0
  142. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/test/test_set_label_response.py +0 -0
  143. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/test/test_summary_response.py +0 -0
  144. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/test/test_unset_label.py +0 -0
  145. {pulp_python_client-3.30.0 → pulp_python_client-3.30.1}/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.30.0
3
+ Version: 3.30.1
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.30.0
27
+ - Package version: 3.30.1
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.30.0
7
+ - Package version: 3.30.1
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:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pulp_python-client
3
- Version: 3.30.0
3
+ Version: 3.30.1
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.30.0
27
+ - Package version: 3.30.1
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:
@@ -15,7 +15,7 @@
15
15
  """ # noqa: E501
16
16
 
17
17
 
18
- __version__ = "3.30.0"
18
+ __version__ = "3.30.1"
19
19
 
20
20
  # Define package exports
21
21
  __all__ = [
@@ -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:
@@ -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.30.0/python'
94
+ self.user_agent = 'OpenAPI-Generator/3.30.1/python'
95
95
  self.client_side_validation = configuration.client_side_validation
96
96
 
97
97
  def __enter__(self):
@@ -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.30.0".\
559
+ "SDK Package Version: 3.30.1".\
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
- __properties: ClassVar[List[str]] = ["add_content_units", "remove_content_units", "base_version"]
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,
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "pulp_python-client"
3
- version = "3.30.0"
3
+ version = "3.30.1"
4
4
  description = "Pulp 3 API"
5
5
  authors = [
6
6
  {name = "Pulp Team",email = "pulp-list@redhat.com"},
@@ -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.30.0"
25
+ VERSION = "3.30.1"
26
26
  PYTHON_REQUIRES = ">= 3.9"
27
27
  REQUIRES = [
28
28
  "urllib3 >= 2.1.0, < 2.7",
@@ -42,7 +42,8 @@ class TestRepositoryAddRemoveContent(unittest.TestCase):
42
42
  remove_content_units = [
43
43
  '0'
44
44
  ],
45
- base_version = ''
45
+ base_version = '',
46
+ overwrite = True
46
47
  )
47
48
  else:
48
49
  return RepositoryAddRemoveContent(