crc-pulpcore-client 20250819.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of crc-pulpcore-client might be problematic. Click here for more details.

Files changed (464) hide show
  1. crc-pulpcore-client/__init__.py +2 -0
  2. crc-pulpcore-client/api/__init__.py +53 -0
  3. crc-pulpcore-client/api/access_policies_api.py +1864 -0
  4. crc-pulpcore-client/api/artifacts_api.py +1615 -0
  5. crc-pulpcore-client/api/content_api.py +598 -0
  6. crc-pulpcore-client/api/content_openpgp_publickey_api.py +1887 -0
  7. crc-pulpcore-client/api/content_openpgp_publicsubkey_api.py +1518 -0
  8. crc-pulpcore-client/api/content_openpgp_signature_api.py +1518 -0
  9. crc-pulpcore-client/api/content_openpgp_userattribute_api.py +1518 -0
  10. crc-pulpcore-client/api/content_openpgp_userid_api.py +1655 -0
  11. crc-pulpcore-client/api/contentguards_api.py +667 -0
  12. crc-pulpcore-client/api/contentguards_composite_api.py +3401 -0
  13. crc-pulpcore-client/api/contentguards_content_redirect_api.py +3401 -0
  14. crc-pulpcore-client/api/contentguards_header_api.py +3401 -0
  15. crc-pulpcore-client/api/contentguards_rbac_api.py +3401 -0
  16. crc-pulpcore-client/api/distributions_api.py +822 -0
  17. crc-pulpcore-client/api/distributions_artifacts_api.py +1103 -0
  18. crc-pulpcore-client/api/distributions_openpgp_api.py +2676 -0
  19. crc-pulpcore-client/api/domains_api.py +3106 -0
  20. crc-pulpcore-client/api/exporters_filesystem_api.py +2157 -0
  21. crc-pulpcore-client/api/exporters_filesystem_exports_api.py +1288 -0
  22. crc-pulpcore-client/api/exporters_pulp_api.py +2157 -0
  23. crc-pulpcore-client/api/exporters_pulp_exports_api.py +1288 -0
  24. crc-pulpcore-client/api/groups_api.py +3368 -0
  25. crc-pulpcore-client/api/groups_roles_api.py +1496 -0
  26. crc-pulpcore-client/api/groups_users_api.py +972 -0
  27. crc-pulpcore-client/api/importers_pulp_api.py +2149 -0
  28. crc-pulpcore-client/api/importers_pulp_import_check_api.py +350 -0
  29. crc-pulpcore-client/api/importers_pulp_imports_api.py +1288 -0
  30. crc-pulpcore-client/api/livez_api.py +329 -0
  31. crc-pulpcore-client/api/login_api.py +897 -0
  32. crc-pulpcore-client/api/orphans_api.py +319 -0
  33. crc-pulpcore-client/api/orphans_cleanup_api.py +350 -0
  34. crc-pulpcore-client/api/publications_api.py +765 -0
  35. crc-pulpcore-client/api/remotes_api.py +850 -0
  36. crc-pulpcore-client/api/repair_api.py +350 -0
  37. crc-pulpcore-client/api/repositories_api.py +872 -0
  38. crc-pulpcore-client/api/repositories_openpgp_keyring_api.py +4546 -0
  39. crc-pulpcore-client/api/repositories_reclaim_space_api.py +350 -0
  40. crc-pulpcore-client/api/repository_versions_api.py +764 -0
  41. crc-pulpcore-client/api/roles_api.py +2269 -0
  42. crc-pulpcore-client/api/signing_services_api.py +811 -0
  43. crc-pulpcore-client/api/status_api.py +337 -0
  44. crc-pulpcore-client/api/task_groups_api.py +1012 -0
  45. crc-pulpcore-client/api/task_schedules_api.py +2114 -0
  46. crc-pulpcore-client/api/tasks_api.py +4299 -0
  47. crc-pulpcore-client/api/uploads_api.py +3346 -0
  48. crc-pulpcore-client/api/upstream_pulps_api.py +4001 -0
  49. crc-pulpcore-client/api/users_api.py +2373 -0
  50. crc-pulpcore-client/api/users_roles_api.py +1496 -0
  51. crc-pulpcore-client/api/workers_api.py +1148 -0
  52. crc-pulpcore-client/api_client.py +798 -0
  53. crc-pulpcore-client/api_response.py +21 -0
  54. crc-pulpcore-client/configuration.py +628 -0
  55. crc-pulpcore-client/exceptions.py +200 -0
  56. crc-pulpcore-client/models/__init__.py +189 -0
  57. crc-pulpcore-client/models/access_policy.py +94 -0
  58. crc-pulpcore-client/models/access_policy_response.py +119 -0
  59. crc-pulpcore-client/models/api_app_status_response.py +99 -0
  60. crc-pulpcore-client/models/artifact_distribution_response.py +126 -0
  61. crc-pulpcore-client/models/artifact_response.py +149 -0
  62. crc-pulpcore-client/models/async_operation_response.py +88 -0
  63. crc-pulpcore-client/models/composite_content_guard.py +98 -0
  64. crc-pulpcore-client/models/composite_content_guard_response.py +114 -0
  65. crc-pulpcore-client/models/content_app_status_response.py +99 -0
  66. crc-pulpcore-client/models/content_guard_response.py +112 -0
  67. crc-pulpcore-client/models/content_redirect_content_guard.py +96 -0
  68. crc-pulpcore-client/models/content_redirect_content_guard_response.py +112 -0
  69. crc-pulpcore-client/models/content_settings_response.py +95 -0
  70. crc-pulpcore-client/models/content_summary_response.py +92 -0
  71. crc-pulpcore-client/models/database_connection_response.py +88 -0
  72. crc-pulpcore-client/models/distribution_response.py +133 -0
  73. crc-pulpcore-client/models/domain.py +114 -0
  74. crc-pulpcore-client/models/domain_backend_migrator.py +91 -0
  75. crc-pulpcore-client/models/domain_response.py +131 -0
  76. crc-pulpcore-client/models/evaluation_response.py +92 -0
  77. crc-pulpcore-client/models/filesystem_export.py +99 -0
  78. crc-pulpcore-client/models/filesystem_export_response.py +118 -0
  79. crc-pulpcore-client/models/filesystem_exporter.py +94 -0
  80. crc-pulpcore-client/models/filesystem_exporter_response.py +110 -0
  81. crc-pulpcore-client/models/generic_remote_response.py +199 -0
  82. crc-pulpcore-client/models/generic_remote_response_hidden_fields_inner.py +90 -0
  83. crc-pulpcore-client/models/generic_remote_response_policy_enum.py +39 -0
  84. crc-pulpcore-client/models/group.py +89 -0
  85. crc-pulpcore-client/models/group_progress_report_response.py +111 -0
  86. crc-pulpcore-client/models/group_response.py +101 -0
  87. crc-pulpcore-client/models/group_role.py +110 -0
  88. crc-pulpcore-client/models/group_role_response.py +134 -0
  89. crc-pulpcore-client/models/group_user.py +89 -0
  90. crc-pulpcore-client/models/group_user_response.py +97 -0
  91. crc-pulpcore-client/models/header_content_guard.py +107 -0
  92. crc-pulpcore-client/models/header_content_guard_response.py +123 -0
  93. crc-pulpcore-client/models/import_response.py +107 -0
  94. crc-pulpcore-client/models/login_response.py +98 -0
  95. crc-pulpcore-client/models/method_enum.py +39 -0
  96. crc-pulpcore-client/models/minimal_task_response.py +125 -0
  97. crc-pulpcore-client/models/multiple_artifact_content_response.py +107 -0
  98. crc-pulpcore-client/models/my_permissions_response.py +88 -0
  99. crc-pulpcore-client/models/nested_open_pgp_public_subkey.py +92 -0
  100. crc-pulpcore-client/models/nested_open_pgp_public_subkey_response.py +104 -0
  101. crc-pulpcore-client/models/nested_open_pgp_signature.py +120 -0
  102. crc-pulpcore-client/models/nested_open_pgp_signature_response.py +124 -0
  103. crc-pulpcore-client/models/nested_open_pgp_user_attribute.py +89 -0
  104. crc-pulpcore-client/models/nested_open_pgp_user_attribute_response.py +101 -0
  105. crc-pulpcore-client/models/nested_open_pgp_user_id.py +89 -0
  106. crc-pulpcore-client/models/nested_open_pgp_user_id_response.py +100 -0
  107. crc-pulpcore-client/models/nested_role.py +93 -0
  108. crc-pulpcore-client/models/nested_role_response.py +92 -0
  109. crc-pulpcore-client/models/object_roles_response.py +96 -0
  110. crc-pulpcore-client/models/open_pgp_distribution.py +116 -0
  111. crc-pulpcore-client/models/open_pgp_distribution_response.py +140 -0
  112. crc-pulpcore-client/models/open_pgp_keyring.py +112 -0
  113. crc-pulpcore-client/models/open_pgp_keyring_response.py +137 -0
  114. crc-pulpcore-client/models/open_pgp_public_key_response.py +150 -0
  115. crc-pulpcore-client/models/open_pgp_public_subkey_response.py +126 -0
  116. crc-pulpcore-client/models/open_pgp_signature_response.py +146 -0
  117. crc-pulpcore-client/models/open_pgp_user_attribute_response.py +124 -0
  118. crc-pulpcore-client/models/open_pgp_user_id_response.py +123 -0
  119. crc-pulpcore-client/models/orphans_cleanup.py +96 -0
  120. crc-pulpcore-client/models/paginated_access_policy_response_list.py +112 -0
  121. crc-pulpcore-client/models/paginated_artifact_distribution_response_list.py +112 -0
  122. crc-pulpcore-client/models/paginated_artifact_response_list.py +112 -0
  123. crc-pulpcore-client/models/paginated_composite_content_guard_response_list.py +112 -0
  124. crc-pulpcore-client/models/paginated_content_guard_response_list.py +112 -0
  125. crc-pulpcore-client/models/paginated_content_redirect_content_guard_response_list.py +112 -0
  126. crc-pulpcore-client/models/paginated_distribution_response_list.py +112 -0
  127. crc-pulpcore-client/models/paginated_domain_response_list.py +112 -0
  128. crc-pulpcore-client/models/paginated_filesystem_export_response_list.py +112 -0
  129. crc-pulpcore-client/models/paginated_filesystem_exporter_response_list.py +112 -0
  130. crc-pulpcore-client/models/paginated_generic_remote_response_list.py +112 -0
  131. crc-pulpcore-client/models/paginated_group_response_list.py +112 -0
  132. crc-pulpcore-client/models/paginated_group_role_response_list.py +112 -0
  133. crc-pulpcore-client/models/paginated_group_user_response_list.py +112 -0
  134. crc-pulpcore-client/models/paginated_header_content_guard_response_list.py +112 -0
  135. crc-pulpcore-client/models/paginated_import_response_list.py +112 -0
  136. crc-pulpcore-client/models/paginated_multiple_artifact_content_response_list.py +112 -0
  137. crc-pulpcore-client/models/paginated_open_pgp_distribution_response_list.py +112 -0
  138. crc-pulpcore-client/models/paginated_open_pgp_keyring_response_list.py +112 -0
  139. crc-pulpcore-client/models/paginated_open_pgp_public_key_response_list.py +112 -0
  140. crc-pulpcore-client/models/paginated_open_pgp_public_subkey_response_list.py +112 -0
  141. crc-pulpcore-client/models/paginated_open_pgp_signature_response_list.py +112 -0
  142. crc-pulpcore-client/models/paginated_open_pgp_user_attribute_response_list.py +112 -0
  143. crc-pulpcore-client/models/paginated_open_pgp_user_id_response_list.py +112 -0
  144. crc-pulpcore-client/models/paginated_publication_response_list.py +112 -0
  145. crc-pulpcore-client/models/paginated_pulp_export_response_list.py +112 -0
  146. crc-pulpcore-client/models/paginated_pulp_exporter_response_list.py +112 -0
  147. crc-pulpcore-client/models/paginated_pulp_importer_response_list.py +112 -0
  148. crc-pulpcore-client/models/paginated_rbac_content_guard_response_list.py +112 -0
  149. crc-pulpcore-client/models/paginated_repository_response_list.py +112 -0
  150. crc-pulpcore-client/models/paginated_repository_version_response_list.py +112 -0
  151. crc-pulpcore-client/models/paginated_role_response_list.py +112 -0
  152. crc-pulpcore-client/models/paginated_signing_service_response_list.py +112 -0
  153. crc-pulpcore-client/models/paginated_task_group_response_list.py +112 -0
  154. crc-pulpcore-client/models/paginated_task_response_list.py +112 -0
  155. crc-pulpcore-client/models/paginated_task_schedule_response_list.py +112 -0
  156. crc-pulpcore-client/models/paginated_upload_response_list.py +112 -0
  157. crc-pulpcore-client/models/paginated_upstream_pulp_response_list.py +112 -0
  158. crc-pulpcore-client/models/paginated_user_response_list.py +112 -0
  159. crc-pulpcore-client/models/paginated_user_role_response_list.py +112 -0
  160. crc-pulpcore-client/models/paginated_worker_response_list.py +112 -0
  161. crc-pulpcore-client/models/patched_access_policy.py +94 -0
  162. crc-pulpcore-client/models/patched_composite_content_guard.py +98 -0
  163. crc-pulpcore-client/models/patched_content_redirect_content_guard.py +96 -0
  164. crc-pulpcore-client/models/patched_domain.py +117 -0
  165. crc-pulpcore-client/models/patched_filesystem_exporter.py +94 -0
  166. crc-pulpcore-client/models/patched_group.py +89 -0
  167. crc-pulpcore-client/models/patched_header_content_guard.py +107 -0
  168. crc-pulpcore-client/models/patched_open_pgp_distribution.py +116 -0
  169. crc-pulpcore-client/models/patched_open_pgp_keyring.py +112 -0
  170. crc-pulpcore-client/models/patched_pulp_exporter.py +100 -0
  171. crc-pulpcore-client/models/patched_pulp_importer.py +91 -0
  172. crc-pulpcore-client/models/patched_rbac_content_guard.py +96 -0
  173. crc-pulpcore-client/models/patched_role.py +98 -0
  174. crc-pulpcore-client/models/patched_task_cancel.py +89 -0
  175. crc-pulpcore-client/models/patched_upstream_pulp.py +147 -0
  176. crc-pulpcore-client/models/patched_user.py +106 -0
  177. crc-pulpcore-client/models/policy357_enum.py +39 -0
  178. crc-pulpcore-client/models/profile_artifact_response.py +88 -0
  179. crc-pulpcore-client/models/progress_report_response.py +115 -0
  180. crc-pulpcore-client/models/publication_response.py +107 -0
  181. crc-pulpcore-client/models/pulp_export.py +104 -0
  182. crc-pulpcore-client/models/pulp_export_response.py +126 -0
  183. crc-pulpcore-client/models/pulp_exporter.py +100 -0
  184. crc-pulpcore-client/models/pulp_exporter_response.py +116 -0
  185. crc-pulpcore-client/models/pulp_import.py +93 -0
  186. crc-pulpcore-client/models/pulp_import_check.py +93 -0
  187. crc-pulpcore-client/models/pulp_import_check_response.py +102 -0
  188. crc-pulpcore-client/models/pulp_importer.py +91 -0
  189. crc-pulpcore-client/models/pulp_importer_response.py +107 -0
  190. crc-pulpcore-client/models/purge.py +92 -0
  191. crc-pulpcore-client/models/rbac_content_guard.py +96 -0
  192. crc-pulpcore-client/models/rbac_content_guard_response.py +136 -0
  193. crc-pulpcore-client/models/reclaim_space.py +90 -0
  194. crc-pulpcore-client/models/redis_connection_response.py +88 -0
  195. crc-pulpcore-client/models/repair.py +88 -0
  196. crc-pulpcore-client/models/repository_add_remove_content.py +93 -0
  197. crc-pulpcore-client/models/repository_response.py +137 -0
  198. crc-pulpcore-client/models/repository_version_response.py +121 -0
  199. crc-pulpcore-client/models/role.py +98 -0
  200. crc-pulpcore-client/models/role_response.py +118 -0
  201. crc-pulpcore-client/models/set_label.py +103 -0
  202. crc-pulpcore-client/models/set_label_response.py +103 -0
  203. crc-pulpcore-client/models/signing_service_response.py +111 -0
  204. crc-pulpcore-client/models/states_enum.py +40 -0
  205. crc-pulpcore-client/models/status_response.py +152 -0
  206. crc-pulpcore-client/models/storage_class_enum.py +40 -0
  207. crc-pulpcore-client/models/storage_response.py +108 -0
  208. crc-pulpcore-client/models/task_group_operation_response.py +88 -0
  209. crc-pulpcore-client/models/task_group_response.py +150 -0
  210. crc-pulpcore-client/models/task_response.py +167 -0
  211. crc-pulpcore-client/models/task_schedule_response.py +127 -0
  212. crc-pulpcore-client/models/unset_label.py +96 -0
  213. crc-pulpcore-client/models/unset_label_response.py +100 -0
  214. crc-pulpcore-client/models/upload.py +88 -0
  215. crc-pulpcore-client/models/upload_chunk_response.py +94 -0
  216. crc-pulpcore-client/models/upload_commit.py +89 -0
  217. crc-pulpcore-client/models/upload_detail_response.py +121 -0
  218. crc-pulpcore-client/models/upload_response.py +109 -0
  219. crc-pulpcore-client/models/upstream_pulp.py +147 -0
  220. crc-pulpcore-client/models/upstream_pulp_response.py +158 -0
  221. crc-pulpcore-client/models/user.py +106 -0
  222. crc-pulpcore-client/models/user_group.py +89 -0
  223. crc-pulpcore-client/models/user_group_response.py +97 -0
  224. crc-pulpcore-client/models/user_response.py +140 -0
  225. crc-pulpcore-client/models/user_role.py +110 -0
  226. crc-pulpcore-client/models/user_role_response.py +134 -0
  227. crc-pulpcore-client/models/version_response.py +96 -0
  228. crc-pulpcore-client/models/worker_response.py +119 -0
  229. crc-pulpcore-client/py.typed +0 -0
  230. crc-pulpcore-client/rest.py +258 -0
  231. crc_pulpcore_client-20250819.1.dist-info/METADATA +25 -0
  232. crc_pulpcore_client-20250819.1.dist-info/RECORD +464 -0
  233. crc_pulpcore_client-20250819.1.dist-info/WHEEL +5 -0
  234. crc_pulpcore_client-20250819.1.dist-info/top_level.txt +2 -0
  235. services-pulpcore-client/__init__.py +2 -0
  236. services-pulpcore-client/api/__init__.py +53 -0
  237. services-pulpcore-client/api/access_policies_api.py +1864 -0
  238. services-pulpcore-client/api/artifacts_api.py +1615 -0
  239. services-pulpcore-client/api/content_api.py +598 -0
  240. services-pulpcore-client/api/content_openpgp_publickey_api.py +1887 -0
  241. services-pulpcore-client/api/content_openpgp_publicsubkey_api.py +1518 -0
  242. services-pulpcore-client/api/content_openpgp_signature_api.py +1518 -0
  243. services-pulpcore-client/api/content_openpgp_userattribute_api.py +1518 -0
  244. services-pulpcore-client/api/content_openpgp_userid_api.py +1655 -0
  245. services-pulpcore-client/api/contentguards_api.py +667 -0
  246. services-pulpcore-client/api/contentguards_composite_api.py +3401 -0
  247. services-pulpcore-client/api/contentguards_content_redirect_api.py +3401 -0
  248. services-pulpcore-client/api/contentguards_header_api.py +3401 -0
  249. services-pulpcore-client/api/contentguards_rbac_api.py +3401 -0
  250. services-pulpcore-client/api/distributions_api.py +822 -0
  251. services-pulpcore-client/api/distributions_artifacts_api.py +1103 -0
  252. services-pulpcore-client/api/distributions_openpgp_api.py +2676 -0
  253. services-pulpcore-client/api/domains_api.py +3106 -0
  254. services-pulpcore-client/api/exporters_filesystem_api.py +2157 -0
  255. services-pulpcore-client/api/exporters_filesystem_exports_api.py +1288 -0
  256. services-pulpcore-client/api/exporters_pulp_api.py +2157 -0
  257. services-pulpcore-client/api/exporters_pulp_exports_api.py +1288 -0
  258. services-pulpcore-client/api/groups_api.py +3368 -0
  259. services-pulpcore-client/api/groups_roles_api.py +1496 -0
  260. services-pulpcore-client/api/groups_users_api.py +972 -0
  261. services-pulpcore-client/api/importers_pulp_api.py +2149 -0
  262. services-pulpcore-client/api/importers_pulp_import_check_api.py +350 -0
  263. services-pulpcore-client/api/importers_pulp_imports_api.py +1288 -0
  264. services-pulpcore-client/api/livez_api.py +329 -0
  265. services-pulpcore-client/api/login_api.py +897 -0
  266. services-pulpcore-client/api/orphans_api.py +319 -0
  267. services-pulpcore-client/api/orphans_cleanup_api.py +350 -0
  268. services-pulpcore-client/api/publications_api.py +765 -0
  269. services-pulpcore-client/api/remotes_api.py +850 -0
  270. services-pulpcore-client/api/repair_api.py +350 -0
  271. services-pulpcore-client/api/repositories_api.py +872 -0
  272. services-pulpcore-client/api/repositories_openpgp_keyring_api.py +4546 -0
  273. services-pulpcore-client/api/repositories_reclaim_space_api.py +350 -0
  274. services-pulpcore-client/api/repository_versions_api.py +764 -0
  275. services-pulpcore-client/api/roles_api.py +2269 -0
  276. services-pulpcore-client/api/signing_services_api.py +811 -0
  277. services-pulpcore-client/api/status_api.py +337 -0
  278. services-pulpcore-client/api/task_groups_api.py +1012 -0
  279. services-pulpcore-client/api/task_schedules_api.py +2114 -0
  280. services-pulpcore-client/api/tasks_api.py +4299 -0
  281. services-pulpcore-client/api/uploads_api.py +3346 -0
  282. services-pulpcore-client/api/upstream_pulps_api.py +4001 -0
  283. services-pulpcore-client/api/users_api.py +2373 -0
  284. services-pulpcore-client/api/users_roles_api.py +1496 -0
  285. services-pulpcore-client/api/workers_api.py +1148 -0
  286. services-pulpcore-client/api_client.py +798 -0
  287. services-pulpcore-client/api_response.py +21 -0
  288. services-pulpcore-client/configuration.py +628 -0
  289. services-pulpcore-client/exceptions.py +200 -0
  290. services-pulpcore-client/models/__init__.py +189 -0
  291. services-pulpcore-client/models/access_policy.py +94 -0
  292. services-pulpcore-client/models/access_policy_response.py +119 -0
  293. services-pulpcore-client/models/api_app_status_response.py +99 -0
  294. services-pulpcore-client/models/artifact_distribution_response.py +126 -0
  295. services-pulpcore-client/models/artifact_response.py +149 -0
  296. services-pulpcore-client/models/async_operation_response.py +88 -0
  297. services-pulpcore-client/models/composite_content_guard.py +98 -0
  298. services-pulpcore-client/models/composite_content_guard_response.py +114 -0
  299. services-pulpcore-client/models/content_app_status_response.py +99 -0
  300. services-pulpcore-client/models/content_guard_response.py +112 -0
  301. services-pulpcore-client/models/content_redirect_content_guard.py +96 -0
  302. services-pulpcore-client/models/content_redirect_content_guard_response.py +112 -0
  303. services-pulpcore-client/models/content_settings_response.py +95 -0
  304. services-pulpcore-client/models/content_summary_response.py +92 -0
  305. services-pulpcore-client/models/database_connection_response.py +88 -0
  306. services-pulpcore-client/models/distribution_response.py +133 -0
  307. services-pulpcore-client/models/domain.py +114 -0
  308. services-pulpcore-client/models/domain_backend_migrator.py +91 -0
  309. services-pulpcore-client/models/domain_response.py +131 -0
  310. services-pulpcore-client/models/evaluation_response.py +92 -0
  311. services-pulpcore-client/models/filesystem_export.py +99 -0
  312. services-pulpcore-client/models/filesystem_export_response.py +118 -0
  313. services-pulpcore-client/models/filesystem_exporter.py +94 -0
  314. services-pulpcore-client/models/filesystem_exporter_response.py +110 -0
  315. services-pulpcore-client/models/generic_remote_response.py +199 -0
  316. services-pulpcore-client/models/generic_remote_response_hidden_fields_inner.py +90 -0
  317. services-pulpcore-client/models/generic_remote_response_policy_enum.py +39 -0
  318. services-pulpcore-client/models/group.py +89 -0
  319. services-pulpcore-client/models/group_progress_report_response.py +111 -0
  320. services-pulpcore-client/models/group_response.py +101 -0
  321. services-pulpcore-client/models/group_role.py +110 -0
  322. services-pulpcore-client/models/group_role_response.py +134 -0
  323. services-pulpcore-client/models/group_user.py +89 -0
  324. services-pulpcore-client/models/group_user_response.py +97 -0
  325. services-pulpcore-client/models/header_content_guard.py +107 -0
  326. services-pulpcore-client/models/header_content_guard_response.py +123 -0
  327. services-pulpcore-client/models/import_response.py +107 -0
  328. services-pulpcore-client/models/login_response.py +98 -0
  329. services-pulpcore-client/models/method_enum.py +39 -0
  330. services-pulpcore-client/models/minimal_task_response.py +125 -0
  331. services-pulpcore-client/models/multiple_artifact_content_response.py +107 -0
  332. services-pulpcore-client/models/my_permissions_response.py +88 -0
  333. services-pulpcore-client/models/nested_open_pgp_public_subkey.py +92 -0
  334. services-pulpcore-client/models/nested_open_pgp_public_subkey_response.py +104 -0
  335. services-pulpcore-client/models/nested_open_pgp_signature.py +120 -0
  336. services-pulpcore-client/models/nested_open_pgp_signature_response.py +124 -0
  337. services-pulpcore-client/models/nested_open_pgp_user_attribute.py +89 -0
  338. services-pulpcore-client/models/nested_open_pgp_user_attribute_response.py +101 -0
  339. services-pulpcore-client/models/nested_open_pgp_user_id.py +89 -0
  340. services-pulpcore-client/models/nested_open_pgp_user_id_response.py +100 -0
  341. services-pulpcore-client/models/nested_role.py +93 -0
  342. services-pulpcore-client/models/nested_role_response.py +92 -0
  343. services-pulpcore-client/models/object_roles_response.py +96 -0
  344. services-pulpcore-client/models/open_pgp_distribution.py +116 -0
  345. services-pulpcore-client/models/open_pgp_distribution_response.py +140 -0
  346. services-pulpcore-client/models/open_pgp_keyring.py +112 -0
  347. services-pulpcore-client/models/open_pgp_keyring_response.py +137 -0
  348. services-pulpcore-client/models/open_pgp_public_key_response.py +150 -0
  349. services-pulpcore-client/models/open_pgp_public_subkey_response.py +126 -0
  350. services-pulpcore-client/models/open_pgp_signature_response.py +146 -0
  351. services-pulpcore-client/models/open_pgp_user_attribute_response.py +124 -0
  352. services-pulpcore-client/models/open_pgp_user_id_response.py +123 -0
  353. services-pulpcore-client/models/orphans_cleanup.py +96 -0
  354. services-pulpcore-client/models/paginated_access_policy_response_list.py +112 -0
  355. services-pulpcore-client/models/paginated_artifact_distribution_response_list.py +112 -0
  356. services-pulpcore-client/models/paginated_artifact_response_list.py +112 -0
  357. services-pulpcore-client/models/paginated_composite_content_guard_response_list.py +112 -0
  358. services-pulpcore-client/models/paginated_content_guard_response_list.py +112 -0
  359. services-pulpcore-client/models/paginated_content_redirect_content_guard_response_list.py +112 -0
  360. services-pulpcore-client/models/paginated_distribution_response_list.py +112 -0
  361. services-pulpcore-client/models/paginated_domain_response_list.py +112 -0
  362. services-pulpcore-client/models/paginated_filesystem_export_response_list.py +112 -0
  363. services-pulpcore-client/models/paginated_filesystem_exporter_response_list.py +112 -0
  364. services-pulpcore-client/models/paginated_generic_remote_response_list.py +112 -0
  365. services-pulpcore-client/models/paginated_group_response_list.py +112 -0
  366. services-pulpcore-client/models/paginated_group_role_response_list.py +112 -0
  367. services-pulpcore-client/models/paginated_group_user_response_list.py +112 -0
  368. services-pulpcore-client/models/paginated_header_content_guard_response_list.py +112 -0
  369. services-pulpcore-client/models/paginated_import_response_list.py +112 -0
  370. services-pulpcore-client/models/paginated_multiple_artifact_content_response_list.py +112 -0
  371. services-pulpcore-client/models/paginated_open_pgp_distribution_response_list.py +112 -0
  372. services-pulpcore-client/models/paginated_open_pgp_keyring_response_list.py +112 -0
  373. services-pulpcore-client/models/paginated_open_pgp_public_key_response_list.py +112 -0
  374. services-pulpcore-client/models/paginated_open_pgp_public_subkey_response_list.py +112 -0
  375. services-pulpcore-client/models/paginated_open_pgp_signature_response_list.py +112 -0
  376. services-pulpcore-client/models/paginated_open_pgp_user_attribute_response_list.py +112 -0
  377. services-pulpcore-client/models/paginated_open_pgp_user_id_response_list.py +112 -0
  378. services-pulpcore-client/models/paginated_publication_response_list.py +112 -0
  379. services-pulpcore-client/models/paginated_pulp_export_response_list.py +112 -0
  380. services-pulpcore-client/models/paginated_pulp_exporter_response_list.py +112 -0
  381. services-pulpcore-client/models/paginated_pulp_importer_response_list.py +112 -0
  382. services-pulpcore-client/models/paginated_rbac_content_guard_response_list.py +112 -0
  383. services-pulpcore-client/models/paginated_repository_response_list.py +112 -0
  384. services-pulpcore-client/models/paginated_repository_version_response_list.py +112 -0
  385. services-pulpcore-client/models/paginated_role_response_list.py +112 -0
  386. services-pulpcore-client/models/paginated_signing_service_response_list.py +112 -0
  387. services-pulpcore-client/models/paginated_task_group_response_list.py +112 -0
  388. services-pulpcore-client/models/paginated_task_response_list.py +112 -0
  389. services-pulpcore-client/models/paginated_task_schedule_response_list.py +112 -0
  390. services-pulpcore-client/models/paginated_upload_response_list.py +112 -0
  391. services-pulpcore-client/models/paginated_upstream_pulp_response_list.py +112 -0
  392. services-pulpcore-client/models/paginated_user_response_list.py +112 -0
  393. services-pulpcore-client/models/paginated_user_role_response_list.py +112 -0
  394. services-pulpcore-client/models/paginated_worker_response_list.py +112 -0
  395. services-pulpcore-client/models/patched_access_policy.py +94 -0
  396. services-pulpcore-client/models/patched_composite_content_guard.py +98 -0
  397. services-pulpcore-client/models/patched_content_redirect_content_guard.py +96 -0
  398. services-pulpcore-client/models/patched_domain.py +117 -0
  399. services-pulpcore-client/models/patched_filesystem_exporter.py +94 -0
  400. services-pulpcore-client/models/patched_group.py +89 -0
  401. services-pulpcore-client/models/patched_header_content_guard.py +107 -0
  402. services-pulpcore-client/models/patched_open_pgp_distribution.py +116 -0
  403. services-pulpcore-client/models/patched_open_pgp_keyring.py +112 -0
  404. services-pulpcore-client/models/patched_pulp_exporter.py +100 -0
  405. services-pulpcore-client/models/patched_pulp_importer.py +91 -0
  406. services-pulpcore-client/models/patched_rbac_content_guard.py +96 -0
  407. services-pulpcore-client/models/patched_role.py +98 -0
  408. services-pulpcore-client/models/patched_task_cancel.py +89 -0
  409. services-pulpcore-client/models/patched_upstream_pulp.py +147 -0
  410. services-pulpcore-client/models/patched_user.py +106 -0
  411. services-pulpcore-client/models/policy357_enum.py +39 -0
  412. services-pulpcore-client/models/profile_artifact_response.py +88 -0
  413. services-pulpcore-client/models/progress_report_response.py +115 -0
  414. services-pulpcore-client/models/publication_response.py +107 -0
  415. services-pulpcore-client/models/pulp_export.py +104 -0
  416. services-pulpcore-client/models/pulp_export_response.py +126 -0
  417. services-pulpcore-client/models/pulp_exporter.py +100 -0
  418. services-pulpcore-client/models/pulp_exporter_response.py +116 -0
  419. services-pulpcore-client/models/pulp_import.py +93 -0
  420. services-pulpcore-client/models/pulp_import_check.py +93 -0
  421. services-pulpcore-client/models/pulp_import_check_response.py +102 -0
  422. services-pulpcore-client/models/pulp_importer.py +91 -0
  423. services-pulpcore-client/models/pulp_importer_response.py +107 -0
  424. services-pulpcore-client/models/purge.py +92 -0
  425. services-pulpcore-client/models/rbac_content_guard.py +96 -0
  426. services-pulpcore-client/models/rbac_content_guard_response.py +136 -0
  427. services-pulpcore-client/models/reclaim_space.py +90 -0
  428. services-pulpcore-client/models/redis_connection_response.py +88 -0
  429. services-pulpcore-client/models/repair.py +88 -0
  430. services-pulpcore-client/models/repository_add_remove_content.py +93 -0
  431. services-pulpcore-client/models/repository_response.py +137 -0
  432. services-pulpcore-client/models/repository_version_response.py +121 -0
  433. services-pulpcore-client/models/role.py +98 -0
  434. services-pulpcore-client/models/role_response.py +118 -0
  435. services-pulpcore-client/models/set_label.py +103 -0
  436. services-pulpcore-client/models/set_label_response.py +103 -0
  437. services-pulpcore-client/models/signing_service_response.py +111 -0
  438. services-pulpcore-client/models/states_enum.py +40 -0
  439. services-pulpcore-client/models/status_response.py +152 -0
  440. services-pulpcore-client/models/storage_class_enum.py +40 -0
  441. services-pulpcore-client/models/storage_response.py +108 -0
  442. services-pulpcore-client/models/task_group_operation_response.py +88 -0
  443. services-pulpcore-client/models/task_group_response.py +150 -0
  444. services-pulpcore-client/models/task_response.py +167 -0
  445. services-pulpcore-client/models/task_schedule_response.py +127 -0
  446. services-pulpcore-client/models/unset_label.py +96 -0
  447. services-pulpcore-client/models/unset_label_response.py +100 -0
  448. services-pulpcore-client/models/upload.py +88 -0
  449. services-pulpcore-client/models/upload_chunk_response.py +94 -0
  450. services-pulpcore-client/models/upload_commit.py +89 -0
  451. services-pulpcore-client/models/upload_detail_response.py +121 -0
  452. services-pulpcore-client/models/upload_response.py +109 -0
  453. services-pulpcore-client/models/upstream_pulp.py +147 -0
  454. services-pulpcore-client/models/upstream_pulp_response.py +158 -0
  455. services-pulpcore-client/models/user.py +106 -0
  456. services-pulpcore-client/models/user_group.py +89 -0
  457. services-pulpcore-client/models/user_group_response.py +97 -0
  458. services-pulpcore-client/models/user_response.py +140 -0
  459. services-pulpcore-client/models/user_role.py +110 -0
  460. services-pulpcore-client/models/user_role_response.py +134 -0
  461. services-pulpcore-client/models/version_response.py +96 -0
  462. services-pulpcore-client/models/worker_response.py +119 -0
  463. services-pulpcore-client/py.typed +0 -0
  464. services-pulpcore-client/rest.py +258 -0
@@ -0,0 +1,1887 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Pulp 3 API
5
+
6
+ Fetch, Upload, Organize, and Distribute Software Packages
7
+
8
+ The version of the OpenAPI document: v3
9
+ Contact: pulp-list@redhat.com
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
+
12
+ Do not edit the class manually.
13
+ """ # noqa: E501
14
+
15
+ import warnings
16
+ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
17
+ from typing import Any, Dict, List, Optional, Tuple, Union
18
+ from typing_extensions import Annotated
19
+
20
+ from pydantic import Field, StrictBytes, StrictFloat, StrictInt, StrictStr, field_validator
21
+ from typing import Dict, List, Optional, Tuple, Union
22
+ from typing_extensions import Annotated
23
+ from services-pulpcore-client.models.async_operation_response import AsyncOperationResponse
24
+ from services-pulpcore-client.models.open_pgp_public_key_response import OpenPGPPublicKeyResponse
25
+ from services-pulpcore-client.models.paginated_open_pgp_public_key_response_list import PaginatedOpenPGPPublicKeyResponseList
26
+ from services-pulpcore-client.models.set_label import SetLabel
27
+ from services-pulpcore-client.models.set_label_response import SetLabelResponse
28
+ from services-pulpcore-client.models.unset_label import UnsetLabel
29
+ from services-pulpcore-client.models.unset_label_response import UnsetLabelResponse
30
+
31
+ from services-pulpcore-client.api_client import ApiClient, RequestSerialized
32
+ from services-pulpcore-client.api_response import ApiResponse
33
+ from services-pulpcore-client.rest import RESTResponseType
34
+
35
+
36
+ class ContentOpenpgpPublickeyApi:
37
+ """NOTE: This class is auto generated by OpenAPI Generator
38
+ Ref: https://openapi-generator.tech
39
+
40
+ Do not edit the class manually.
41
+ """
42
+
43
+ def __init__(self, api_client=None) -> None:
44
+ if api_client is None:
45
+ api_client = ApiClient.get_default()
46
+ self.api_client = api_client
47
+
48
+
49
+ @validate_call
50
+ def create(
51
+ self,
52
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
53
+ repository: Annotated[Optional[StrictStr], Field(description="A URI of a repository the new content unit should be associated with.")] = None,
54
+ 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,
55
+ file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="An uploaded file that may be turned into the content unit.")] = None,
56
+ upload: Annotated[Optional[StrictStr], Field(description="An uncommitted upload that may be turned into the content unit.")] = None,
57
+ file_url: Annotated[Optional[Annotated[str, Field(min_length=1, strict=True)]], Field(description="A url that Pulp can download and turn into the content unit.")] = None,
58
+ pulp_domain: StrictStr = "default",
59
+ _request_timeout: Union[
60
+ None,
61
+ Annotated[StrictFloat, Field(gt=0)],
62
+ Tuple[
63
+ Annotated[StrictFloat, Field(gt=0)],
64
+ Annotated[StrictFloat, Field(gt=0)]
65
+ ]
66
+ ] = None,
67
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
68
+ _content_type: Optional[StrictStr] = None,
69
+ _headers: Optional[Dict[StrictStr, Any]] = None,
70
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
71
+ ) -> AsyncOperationResponse:
72
+ """Create an open pgp public key
73
+
74
+ Trigger an asynchronous task to create content,optionally create new repository version.
75
+
76
+ :param pulp_domain: (required)
77
+ :type pulp_domain: str
78
+ :param x_task_diagnostics: List of profilers to use on tasks.
79
+ :type x_task_diagnostics: List[str]
80
+ :param repository: A URI of a repository the new content unit should be associated with.
81
+ :type repository: str
82
+ :param pulp_labels: A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
83
+ :type pulp_labels: Dict[str, Optional[str]]
84
+ :param file: An uploaded file that may be turned into the content unit.
85
+ :type file: bytearray
86
+ :param upload: An uncommitted upload that may be turned into the content unit.
87
+ :type upload: str
88
+ :param file_url: A url that Pulp can download and turn into the content unit.
89
+ :type file_url: str
90
+ :param _request_timeout: timeout setting for this request. If one
91
+ number provided, it will be total request
92
+ timeout. It can also be a pair (tuple) of
93
+ (connection, read) timeouts.
94
+ :type _request_timeout: int, tuple(int, int), optional
95
+ :param _request_auth: set to override the auth_settings for an a single
96
+ request; this effectively ignores the
97
+ authentication in the spec for a single request.
98
+ :type _request_auth: dict, optional
99
+ :param _content_type: force content-type for the request.
100
+ :type _content_type: str, Optional
101
+ :param _headers: set to override the headers for a single
102
+ request; this effectively ignores the headers
103
+ in the spec for a single request.
104
+ :type _headers: dict, optional
105
+ :param _host_index: set to override the host_index for a single
106
+ request; this effectively ignores the host_index
107
+ in the spec for a single request.
108
+ :type _host_index: int, optional
109
+ :return: Returns the result object.
110
+ """ # noqa: E501
111
+
112
+ _param = self._create_serialize(
113
+ pulp_domain=pulp_domain,
114
+ x_task_diagnostics=x_task_diagnostics,
115
+ repository=repository,
116
+ pulp_labels=pulp_labels,
117
+ file=file,
118
+ upload=upload,
119
+ file_url=file_url,
120
+ _request_auth=_request_auth,
121
+ _content_type=_content_type,
122
+ _headers=_headers,
123
+ _host_index=_host_index
124
+ )
125
+
126
+ _response_types_map: Dict[str, Optional[str]] = {
127
+ '202': "AsyncOperationResponse",
128
+ }
129
+ response_data = self.api_client.call_api(
130
+ *_param,
131
+ _request_timeout=_request_timeout
132
+ )
133
+ response_data.read()
134
+ return self.api_client.response_deserialize(
135
+ response_data=response_data,
136
+ response_types_map=_response_types_map,
137
+ ).data
138
+
139
+
140
+ @validate_call
141
+ def create_with_http_info(
142
+ self,
143
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
144
+ repository: Annotated[Optional[StrictStr], Field(description="A URI of a repository the new content unit should be associated with.")] = None,
145
+ 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,
146
+ file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="An uploaded file that may be turned into the content unit.")] = None,
147
+ upload: Annotated[Optional[StrictStr], Field(description="An uncommitted upload that may be turned into the content unit.")] = None,
148
+ file_url: Annotated[Optional[Annotated[str, Field(min_length=1, strict=True)]], Field(description="A url that Pulp can download and turn into the content unit.")] = None,
149
+ pulp_domain: StrictStr = "default",
150
+ _request_timeout: Union[
151
+ None,
152
+ Annotated[StrictFloat, Field(gt=0)],
153
+ Tuple[
154
+ Annotated[StrictFloat, Field(gt=0)],
155
+ Annotated[StrictFloat, Field(gt=0)]
156
+ ]
157
+ ] = None,
158
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
159
+ _content_type: Optional[StrictStr] = None,
160
+ _headers: Optional[Dict[StrictStr, Any]] = None,
161
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
162
+ ) -> ApiResponse[AsyncOperationResponse]:
163
+ """Create an open pgp public key
164
+
165
+ Trigger an asynchronous task to create content,optionally create new repository version.
166
+
167
+ :param pulp_domain: (required)
168
+ :type pulp_domain: str
169
+ :param x_task_diagnostics: List of profilers to use on tasks.
170
+ :type x_task_diagnostics: List[str]
171
+ :param repository: A URI of a repository the new content unit should be associated with.
172
+ :type repository: str
173
+ :param pulp_labels: A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
174
+ :type pulp_labels: Dict[str, Optional[str]]
175
+ :param file: An uploaded file that may be turned into the content unit.
176
+ :type file: bytearray
177
+ :param upload: An uncommitted upload that may be turned into the content unit.
178
+ :type upload: str
179
+ :param file_url: A url that Pulp can download and turn into the content unit.
180
+ :type file_url: str
181
+ :param _request_timeout: timeout setting for this request. If one
182
+ number provided, it will be total request
183
+ timeout. It can also be a pair (tuple) of
184
+ (connection, read) timeouts.
185
+ :type _request_timeout: int, tuple(int, int), optional
186
+ :param _request_auth: set to override the auth_settings for an a single
187
+ request; this effectively ignores the
188
+ authentication in the spec for a single request.
189
+ :type _request_auth: dict, optional
190
+ :param _content_type: force content-type for the request.
191
+ :type _content_type: str, Optional
192
+ :param _headers: set to override the headers for a single
193
+ request; this effectively ignores the headers
194
+ in the spec for a single request.
195
+ :type _headers: dict, optional
196
+ :param _host_index: set to override the host_index for a single
197
+ request; this effectively ignores the host_index
198
+ in the spec for a single request.
199
+ :type _host_index: int, optional
200
+ :return: Returns the result object.
201
+ """ # noqa: E501
202
+
203
+ _param = self._create_serialize(
204
+ pulp_domain=pulp_domain,
205
+ x_task_diagnostics=x_task_diagnostics,
206
+ repository=repository,
207
+ pulp_labels=pulp_labels,
208
+ file=file,
209
+ upload=upload,
210
+ file_url=file_url,
211
+ _request_auth=_request_auth,
212
+ _content_type=_content_type,
213
+ _headers=_headers,
214
+ _host_index=_host_index
215
+ )
216
+
217
+ _response_types_map: Dict[str, Optional[str]] = {
218
+ '202': "AsyncOperationResponse",
219
+ }
220
+ response_data = self.api_client.call_api(
221
+ *_param,
222
+ _request_timeout=_request_timeout
223
+ )
224
+ response_data.read()
225
+ return self.api_client.response_deserialize(
226
+ response_data=response_data,
227
+ response_types_map=_response_types_map,
228
+ )
229
+
230
+
231
+ @validate_call
232
+ def create_without_preload_content(
233
+ self,
234
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
235
+ repository: Annotated[Optional[StrictStr], Field(description="A URI of a repository the new content unit should be associated with.")] = None,
236
+ 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,
237
+ file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="An uploaded file that may be turned into the content unit.")] = None,
238
+ upload: Annotated[Optional[StrictStr], Field(description="An uncommitted upload that may be turned into the content unit.")] = None,
239
+ file_url: Annotated[Optional[Annotated[str, Field(min_length=1, strict=True)]], Field(description="A url that Pulp can download and turn into the content unit.")] = None,
240
+ pulp_domain: StrictStr = "default",
241
+ _request_timeout: Union[
242
+ None,
243
+ Annotated[StrictFloat, Field(gt=0)],
244
+ Tuple[
245
+ Annotated[StrictFloat, Field(gt=0)],
246
+ Annotated[StrictFloat, Field(gt=0)]
247
+ ]
248
+ ] = None,
249
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
250
+ _content_type: Optional[StrictStr] = None,
251
+ _headers: Optional[Dict[StrictStr, Any]] = None,
252
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
253
+ ) -> RESTResponseType:
254
+ """Create an open pgp public key
255
+
256
+ Trigger an asynchronous task to create content,optionally create new repository version.
257
+
258
+ :param pulp_domain: (required)
259
+ :type pulp_domain: str
260
+ :param x_task_diagnostics: List of profilers to use on tasks.
261
+ :type x_task_diagnostics: List[str]
262
+ :param repository: A URI of a repository the new content unit should be associated with.
263
+ :type repository: str
264
+ :param pulp_labels: A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
265
+ :type pulp_labels: Dict[str, Optional[str]]
266
+ :param file: An uploaded file that may be turned into the content unit.
267
+ :type file: bytearray
268
+ :param upload: An uncommitted upload that may be turned into the content unit.
269
+ :type upload: str
270
+ :param file_url: A url that Pulp can download and turn into the content unit.
271
+ :type file_url: str
272
+ :param _request_timeout: timeout setting for this request. If one
273
+ number provided, it will be total request
274
+ timeout. It can also be a pair (tuple) of
275
+ (connection, read) timeouts.
276
+ :type _request_timeout: int, tuple(int, int), optional
277
+ :param _request_auth: set to override the auth_settings for an a single
278
+ request; this effectively ignores the
279
+ authentication in the spec for a single request.
280
+ :type _request_auth: dict, optional
281
+ :param _content_type: force content-type for the request.
282
+ :type _content_type: str, Optional
283
+ :param _headers: set to override the headers for a single
284
+ request; this effectively ignores the headers
285
+ in the spec for a single request.
286
+ :type _headers: dict, optional
287
+ :param _host_index: set to override the host_index for a single
288
+ request; this effectively ignores the host_index
289
+ in the spec for a single request.
290
+ :type _host_index: int, optional
291
+ :return: Returns the result object.
292
+ """ # noqa: E501
293
+
294
+ _param = self._create_serialize(
295
+ pulp_domain=pulp_domain,
296
+ x_task_diagnostics=x_task_diagnostics,
297
+ repository=repository,
298
+ pulp_labels=pulp_labels,
299
+ file=file,
300
+ upload=upload,
301
+ file_url=file_url,
302
+ _request_auth=_request_auth,
303
+ _content_type=_content_type,
304
+ _headers=_headers,
305
+ _host_index=_host_index
306
+ )
307
+
308
+ _response_types_map: Dict[str, Optional[str]] = {
309
+ '202': "AsyncOperationResponse",
310
+ }
311
+ response_data = self.api_client.call_api(
312
+ *_param,
313
+ _request_timeout=_request_timeout
314
+ )
315
+ return response_data.response
316
+
317
+
318
+ def _create_serialize(
319
+ self,
320
+ pulp_domain,
321
+ x_task_diagnostics,
322
+ repository,
323
+ pulp_labels,
324
+ file,
325
+ upload,
326
+ file_url,
327
+ _request_auth,
328
+ _content_type,
329
+ _headers,
330
+ _host_index,
331
+ ) -> RequestSerialized:
332
+
333
+ _host = None
334
+
335
+ _collection_formats: Dict[str, str] = {
336
+ 'X-Task-Diagnostics': 'csv',
337
+ }
338
+
339
+ _path_params: Dict[str, str] = {}
340
+ _query_params: List[Tuple[str, str]] = []
341
+ _header_params: Dict[str, Optional[str]] = _headers or {}
342
+ _form_params: List[Tuple[str, str]] = []
343
+ _files: Dict[
344
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
345
+ ] = {}
346
+ _body_params: Optional[bytes] = None
347
+
348
+ # process the path parameters
349
+ if pulp_domain is not None:
350
+ _path_params['pulp_domain'] = pulp_domain
351
+ # process the query parameters
352
+ # process the header parameters
353
+ if x_task_diagnostics is not None:
354
+ _header_params['X-Task-Diagnostics'] = x_task_diagnostics
355
+ # process the form parameters
356
+ if repository is not None:
357
+ _form_params.append(('repository', repository))
358
+ if pulp_labels is not None:
359
+ _form_params.append(('pulp_labels', pulp_labels))
360
+ if file is not None:
361
+ _files['file'] = file
362
+ if upload is not None:
363
+ _form_params.append(('upload', upload))
364
+ if file_url is not None:
365
+ _form_params.append(('file_url', file_url))
366
+ # process the body parameter
367
+
368
+
369
+ # set the HTTP header `Accept`
370
+ if 'Accept' not in _header_params:
371
+ _header_params['Accept'] = self.api_client.select_header_accept(
372
+ [
373
+ 'application/json'
374
+ ]
375
+ )
376
+
377
+ # set the HTTP header `Content-Type`
378
+ if _content_type:
379
+ _header_params['Content-Type'] = _content_type
380
+ else:
381
+ _default_content_type = (
382
+ self.api_client.select_header_content_type(
383
+ [
384
+ 'multipart/form-data',
385
+ 'application/x-www-form-urlencoded'
386
+ ]
387
+ )
388
+ )
389
+ if _default_content_type is not None:
390
+ _header_params['Content-Type'] = _default_content_type
391
+
392
+ # authentication setting
393
+ _auth_settings: List[str] = [
394
+ 'json_header_remote_authentication',
395
+ 'basicAuth',
396
+ 'cookieAuth'
397
+ ]
398
+
399
+ return self.api_client.param_serialize(
400
+ method='POST',
401
+ resource_path='/api/pulp/{pulp_domain}/api/v3/content/core/openpgp_publickey/',
402
+ path_params=_path_params,
403
+ query_params=_query_params,
404
+ header_params=_header_params,
405
+ body=_body_params,
406
+ post_params=_form_params,
407
+ files=_files,
408
+ auth_settings=_auth_settings,
409
+ collection_formats=_collection_formats,
410
+ _host=_host,
411
+ _request_auth=_request_auth
412
+ )
413
+
414
+
415
+
416
+
417
+ @validate_call
418
+ def list(
419
+ self,
420
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
421
+ fingerprint: Annotated[Optional[StrictStr], Field(description="Filter results where fingerprint matches value")] = None,
422
+ limit: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None,
423
+ offset: Annotated[Optional[StrictInt], Field(description="The initial index from which to return the results.")] = None,
424
+ ordering: Annotated[Optional[List[StrictStr]], Field(description="Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `raw_data` - Raw data * `-raw_data` - Raw data (descending) * `fingerprint` - Fingerprint * `-fingerprint` - Fingerprint (descending) * `created` - Created * `-created` - Created (descending) * `pk` - Pk * `-pk` - Pk (descending)")] = None,
425
+ orphaned_for: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.")] = None,
426
+ prn__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
427
+ pulp_href__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
428
+ pulp_id__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
429
+ pulp_label_select: Annotated[Optional[StrictStr], Field(description="Filter labels by search string")] = None,
430
+ q: Annotated[Optional[StrictStr], Field(description="Filter results by using NOT, AND and OR operations on other filters")] = None,
431
+ repository_version: Annotated[Optional[StrictStr], Field(description="Repository Version referenced by HREF/PRN")] = None,
432
+ repository_version_added: Annotated[Optional[StrictStr], Field(description="Repository Version referenced by HREF/PRN")] = None,
433
+ repository_version_removed: Annotated[Optional[StrictStr], Field(description="Repository Version referenced by HREF/PRN")] = None,
434
+ fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
435
+ exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
436
+ pulp_domain: StrictStr = "default",
437
+ _request_timeout: Union[
438
+ None,
439
+ Annotated[StrictFloat, Field(gt=0)],
440
+ Tuple[
441
+ Annotated[StrictFloat, Field(gt=0)],
442
+ Annotated[StrictFloat, Field(gt=0)]
443
+ ]
444
+ ] = None,
445
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
446
+ _content_type: Optional[StrictStr] = None,
447
+ _headers: Optional[Dict[StrictStr, Any]] = None,
448
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
449
+ ) -> PaginatedOpenPGPPublicKeyResponseList:
450
+ """List open pgp public keys
451
+
452
+ A ViewSet for uploads that do not require to store an uploaded content as an Artifact.
453
+
454
+ :param pulp_domain: (required)
455
+ :type pulp_domain: str
456
+ :param x_task_diagnostics: List of profilers to use on tasks.
457
+ :type x_task_diagnostics: List[str]
458
+ :param fingerprint: Filter results where fingerprint matches value
459
+ :type fingerprint: str
460
+ :param limit: Number of results to return per page.
461
+ :type limit: int
462
+ :param offset: The initial index from which to return the results.
463
+ :type offset: int
464
+ :param ordering: Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `raw_data` - Raw data * `-raw_data` - Raw data (descending) * `fingerprint` - Fingerprint * `-fingerprint` - Fingerprint (descending) * `created` - Created * `-created` - Created (descending) * `pk` - Pk * `-pk` - Pk (descending)
465
+ :type ordering: List[str]
466
+ :param orphaned_for: Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
467
+ :type orphaned_for: float
468
+ :param prn__in: Multiple values may be separated by commas.
469
+ :type prn__in: List[str]
470
+ :param pulp_href__in: Multiple values may be separated by commas.
471
+ :type pulp_href__in: List[str]
472
+ :param pulp_id__in: Multiple values may be separated by commas.
473
+ :type pulp_id__in: List[str]
474
+ :param pulp_label_select: Filter labels by search string
475
+ :type pulp_label_select: str
476
+ :param q: Filter results by using NOT, AND and OR operations on other filters
477
+ :type q: str
478
+ :param repository_version: Repository Version referenced by HREF/PRN
479
+ :type repository_version: str
480
+ :param repository_version_added: Repository Version referenced by HREF/PRN
481
+ :type repository_version_added: str
482
+ :param repository_version_removed: Repository Version referenced by HREF/PRN
483
+ :type repository_version_removed: str
484
+ :param fields: A list of fields to include in the response.
485
+ :type fields: List[str]
486
+ :param exclude_fields: A list of fields to exclude from the response.
487
+ :type exclude_fields: List[str]
488
+ :param _request_timeout: timeout setting for this request. If one
489
+ number provided, it will be total request
490
+ timeout. It can also be a pair (tuple) of
491
+ (connection, read) timeouts.
492
+ :type _request_timeout: int, tuple(int, int), optional
493
+ :param _request_auth: set to override the auth_settings for an a single
494
+ request; this effectively ignores the
495
+ authentication in the spec for a single request.
496
+ :type _request_auth: dict, optional
497
+ :param _content_type: force content-type for the request.
498
+ :type _content_type: str, Optional
499
+ :param _headers: set to override the headers for a single
500
+ request; this effectively ignores the headers
501
+ in the spec for a single request.
502
+ :type _headers: dict, optional
503
+ :param _host_index: set to override the host_index for a single
504
+ request; this effectively ignores the host_index
505
+ in the spec for a single request.
506
+ :type _host_index: int, optional
507
+ :return: Returns the result object.
508
+ """ # noqa: E501
509
+
510
+ _param = self._list_serialize(
511
+ pulp_domain=pulp_domain,
512
+ x_task_diagnostics=x_task_diagnostics,
513
+ fingerprint=fingerprint,
514
+ limit=limit,
515
+ offset=offset,
516
+ ordering=ordering,
517
+ orphaned_for=orphaned_for,
518
+ prn__in=prn__in,
519
+ pulp_href__in=pulp_href__in,
520
+ pulp_id__in=pulp_id__in,
521
+ pulp_label_select=pulp_label_select,
522
+ q=q,
523
+ repository_version=repository_version,
524
+ repository_version_added=repository_version_added,
525
+ repository_version_removed=repository_version_removed,
526
+ fields=fields,
527
+ exclude_fields=exclude_fields,
528
+ _request_auth=_request_auth,
529
+ _content_type=_content_type,
530
+ _headers=_headers,
531
+ _host_index=_host_index
532
+ )
533
+
534
+ _response_types_map: Dict[str, Optional[str]] = {
535
+ '200': "PaginatedOpenPGPPublicKeyResponseList",
536
+ }
537
+ response_data = self.api_client.call_api(
538
+ *_param,
539
+ _request_timeout=_request_timeout
540
+ )
541
+ response_data.read()
542
+ return self.api_client.response_deserialize(
543
+ response_data=response_data,
544
+ response_types_map=_response_types_map,
545
+ ).data
546
+
547
+
548
+ @validate_call
549
+ def list_with_http_info(
550
+ self,
551
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
552
+ fingerprint: Annotated[Optional[StrictStr], Field(description="Filter results where fingerprint matches value")] = None,
553
+ limit: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None,
554
+ offset: Annotated[Optional[StrictInt], Field(description="The initial index from which to return the results.")] = None,
555
+ ordering: Annotated[Optional[List[StrictStr]], Field(description="Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `raw_data` - Raw data * `-raw_data` - Raw data (descending) * `fingerprint` - Fingerprint * `-fingerprint` - Fingerprint (descending) * `created` - Created * `-created` - Created (descending) * `pk` - Pk * `-pk` - Pk (descending)")] = None,
556
+ orphaned_for: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.")] = None,
557
+ prn__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
558
+ pulp_href__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
559
+ pulp_id__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
560
+ pulp_label_select: Annotated[Optional[StrictStr], Field(description="Filter labels by search string")] = None,
561
+ q: Annotated[Optional[StrictStr], Field(description="Filter results by using NOT, AND and OR operations on other filters")] = None,
562
+ repository_version: Annotated[Optional[StrictStr], Field(description="Repository Version referenced by HREF/PRN")] = None,
563
+ repository_version_added: Annotated[Optional[StrictStr], Field(description="Repository Version referenced by HREF/PRN")] = None,
564
+ repository_version_removed: Annotated[Optional[StrictStr], Field(description="Repository Version referenced by HREF/PRN")] = None,
565
+ fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
566
+ exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
567
+ pulp_domain: StrictStr = "default",
568
+ _request_timeout: Union[
569
+ None,
570
+ Annotated[StrictFloat, Field(gt=0)],
571
+ Tuple[
572
+ Annotated[StrictFloat, Field(gt=0)],
573
+ Annotated[StrictFloat, Field(gt=0)]
574
+ ]
575
+ ] = None,
576
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
577
+ _content_type: Optional[StrictStr] = None,
578
+ _headers: Optional[Dict[StrictStr, Any]] = None,
579
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
580
+ ) -> ApiResponse[PaginatedOpenPGPPublicKeyResponseList]:
581
+ """List open pgp public keys
582
+
583
+ A ViewSet for uploads that do not require to store an uploaded content as an Artifact.
584
+
585
+ :param pulp_domain: (required)
586
+ :type pulp_domain: str
587
+ :param x_task_diagnostics: List of profilers to use on tasks.
588
+ :type x_task_diagnostics: List[str]
589
+ :param fingerprint: Filter results where fingerprint matches value
590
+ :type fingerprint: str
591
+ :param limit: Number of results to return per page.
592
+ :type limit: int
593
+ :param offset: The initial index from which to return the results.
594
+ :type offset: int
595
+ :param ordering: Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `raw_data` - Raw data * `-raw_data` - Raw data (descending) * `fingerprint` - Fingerprint * `-fingerprint` - Fingerprint (descending) * `created` - Created * `-created` - Created (descending) * `pk` - Pk * `-pk` - Pk (descending)
596
+ :type ordering: List[str]
597
+ :param orphaned_for: Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
598
+ :type orphaned_for: float
599
+ :param prn__in: Multiple values may be separated by commas.
600
+ :type prn__in: List[str]
601
+ :param pulp_href__in: Multiple values may be separated by commas.
602
+ :type pulp_href__in: List[str]
603
+ :param pulp_id__in: Multiple values may be separated by commas.
604
+ :type pulp_id__in: List[str]
605
+ :param pulp_label_select: Filter labels by search string
606
+ :type pulp_label_select: str
607
+ :param q: Filter results by using NOT, AND and OR operations on other filters
608
+ :type q: str
609
+ :param repository_version: Repository Version referenced by HREF/PRN
610
+ :type repository_version: str
611
+ :param repository_version_added: Repository Version referenced by HREF/PRN
612
+ :type repository_version_added: str
613
+ :param repository_version_removed: Repository Version referenced by HREF/PRN
614
+ :type repository_version_removed: str
615
+ :param fields: A list of fields to include in the response.
616
+ :type fields: List[str]
617
+ :param exclude_fields: A list of fields to exclude from the response.
618
+ :type exclude_fields: List[str]
619
+ :param _request_timeout: timeout setting for this request. If one
620
+ number provided, it will be total request
621
+ timeout. It can also be a pair (tuple) of
622
+ (connection, read) timeouts.
623
+ :type _request_timeout: int, tuple(int, int), optional
624
+ :param _request_auth: set to override the auth_settings for an a single
625
+ request; this effectively ignores the
626
+ authentication in the spec for a single request.
627
+ :type _request_auth: dict, optional
628
+ :param _content_type: force content-type for the request.
629
+ :type _content_type: str, Optional
630
+ :param _headers: set to override the headers for a single
631
+ request; this effectively ignores the headers
632
+ in the spec for a single request.
633
+ :type _headers: dict, optional
634
+ :param _host_index: set to override the host_index for a single
635
+ request; this effectively ignores the host_index
636
+ in the spec for a single request.
637
+ :type _host_index: int, optional
638
+ :return: Returns the result object.
639
+ """ # noqa: E501
640
+
641
+ _param = self._list_serialize(
642
+ pulp_domain=pulp_domain,
643
+ x_task_diagnostics=x_task_diagnostics,
644
+ fingerprint=fingerprint,
645
+ limit=limit,
646
+ offset=offset,
647
+ ordering=ordering,
648
+ orphaned_for=orphaned_for,
649
+ prn__in=prn__in,
650
+ pulp_href__in=pulp_href__in,
651
+ pulp_id__in=pulp_id__in,
652
+ pulp_label_select=pulp_label_select,
653
+ q=q,
654
+ repository_version=repository_version,
655
+ repository_version_added=repository_version_added,
656
+ repository_version_removed=repository_version_removed,
657
+ fields=fields,
658
+ exclude_fields=exclude_fields,
659
+ _request_auth=_request_auth,
660
+ _content_type=_content_type,
661
+ _headers=_headers,
662
+ _host_index=_host_index
663
+ )
664
+
665
+ _response_types_map: Dict[str, Optional[str]] = {
666
+ '200': "PaginatedOpenPGPPublicKeyResponseList",
667
+ }
668
+ response_data = self.api_client.call_api(
669
+ *_param,
670
+ _request_timeout=_request_timeout
671
+ )
672
+ response_data.read()
673
+ return self.api_client.response_deserialize(
674
+ response_data=response_data,
675
+ response_types_map=_response_types_map,
676
+ )
677
+
678
+
679
+ @validate_call
680
+ def list_without_preload_content(
681
+ self,
682
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
683
+ fingerprint: Annotated[Optional[StrictStr], Field(description="Filter results where fingerprint matches value")] = None,
684
+ limit: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None,
685
+ offset: Annotated[Optional[StrictInt], Field(description="The initial index from which to return the results.")] = None,
686
+ ordering: Annotated[Optional[List[StrictStr]], Field(description="Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `raw_data` - Raw data * `-raw_data` - Raw data (descending) * `fingerprint` - Fingerprint * `-fingerprint` - Fingerprint (descending) * `created` - Created * `-created` - Created (descending) * `pk` - Pk * `-pk` - Pk (descending)")] = None,
687
+ orphaned_for: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.")] = None,
688
+ prn__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
689
+ pulp_href__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
690
+ pulp_id__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
691
+ pulp_label_select: Annotated[Optional[StrictStr], Field(description="Filter labels by search string")] = None,
692
+ q: Annotated[Optional[StrictStr], Field(description="Filter results by using NOT, AND and OR operations on other filters")] = None,
693
+ repository_version: Annotated[Optional[StrictStr], Field(description="Repository Version referenced by HREF/PRN")] = None,
694
+ repository_version_added: Annotated[Optional[StrictStr], Field(description="Repository Version referenced by HREF/PRN")] = None,
695
+ repository_version_removed: Annotated[Optional[StrictStr], Field(description="Repository Version referenced by HREF/PRN")] = None,
696
+ fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
697
+ exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
698
+ pulp_domain: StrictStr = "default",
699
+ _request_timeout: Union[
700
+ None,
701
+ Annotated[StrictFloat, Field(gt=0)],
702
+ Tuple[
703
+ Annotated[StrictFloat, Field(gt=0)],
704
+ Annotated[StrictFloat, Field(gt=0)]
705
+ ]
706
+ ] = None,
707
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
708
+ _content_type: Optional[StrictStr] = None,
709
+ _headers: Optional[Dict[StrictStr, Any]] = None,
710
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
711
+ ) -> RESTResponseType:
712
+ """List open pgp public keys
713
+
714
+ A ViewSet for uploads that do not require to store an uploaded content as an Artifact.
715
+
716
+ :param pulp_domain: (required)
717
+ :type pulp_domain: str
718
+ :param x_task_diagnostics: List of profilers to use on tasks.
719
+ :type x_task_diagnostics: List[str]
720
+ :param fingerprint: Filter results where fingerprint matches value
721
+ :type fingerprint: str
722
+ :param limit: Number of results to return per page.
723
+ :type limit: int
724
+ :param offset: The initial index from which to return the results.
725
+ :type offset: int
726
+ :param ordering: Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `raw_data` - Raw data * `-raw_data` - Raw data (descending) * `fingerprint` - Fingerprint * `-fingerprint` - Fingerprint (descending) * `created` - Created * `-created` - Created (descending) * `pk` - Pk * `-pk` - Pk (descending)
727
+ :type ordering: List[str]
728
+ :param orphaned_for: Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
729
+ :type orphaned_for: float
730
+ :param prn__in: Multiple values may be separated by commas.
731
+ :type prn__in: List[str]
732
+ :param pulp_href__in: Multiple values may be separated by commas.
733
+ :type pulp_href__in: List[str]
734
+ :param pulp_id__in: Multiple values may be separated by commas.
735
+ :type pulp_id__in: List[str]
736
+ :param pulp_label_select: Filter labels by search string
737
+ :type pulp_label_select: str
738
+ :param q: Filter results by using NOT, AND and OR operations on other filters
739
+ :type q: str
740
+ :param repository_version: Repository Version referenced by HREF/PRN
741
+ :type repository_version: str
742
+ :param repository_version_added: Repository Version referenced by HREF/PRN
743
+ :type repository_version_added: str
744
+ :param repository_version_removed: Repository Version referenced by HREF/PRN
745
+ :type repository_version_removed: str
746
+ :param fields: A list of fields to include in the response.
747
+ :type fields: List[str]
748
+ :param exclude_fields: A list of fields to exclude from the response.
749
+ :type exclude_fields: List[str]
750
+ :param _request_timeout: timeout setting for this request. If one
751
+ number provided, it will be total request
752
+ timeout. It can also be a pair (tuple) of
753
+ (connection, read) timeouts.
754
+ :type _request_timeout: int, tuple(int, int), optional
755
+ :param _request_auth: set to override the auth_settings for an a single
756
+ request; this effectively ignores the
757
+ authentication in the spec for a single request.
758
+ :type _request_auth: dict, optional
759
+ :param _content_type: force content-type for the request.
760
+ :type _content_type: str, Optional
761
+ :param _headers: set to override the headers for a single
762
+ request; this effectively ignores the headers
763
+ in the spec for a single request.
764
+ :type _headers: dict, optional
765
+ :param _host_index: set to override the host_index for a single
766
+ request; this effectively ignores the host_index
767
+ in the spec for a single request.
768
+ :type _host_index: int, optional
769
+ :return: Returns the result object.
770
+ """ # noqa: E501
771
+
772
+ _param = self._list_serialize(
773
+ pulp_domain=pulp_domain,
774
+ x_task_diagnostics=x_task_diagnostics,
775
+ fingerprint=fingerprint,
776
+ limit=limit,
777
+ offset=offset,
778
+ ordering=ordering,
779
+ orphaned_for=orphaned_for,
780
+ prn__in=prn__in,
781
+ pulp_href__in=pulp_href__in,
782
+ pulp_id__in=pulp_id__in,
783
+ pulp_label_select=pulp_label_select,
784
+ q=q,
785
+ repository_version=repository_version,
786
+ repository_version_added=repository_version_added,
787
+ repository_version_removed=repository_version_removed,
788
+ fields=fields,
789
+ exclude_fields=exclude_fields,
790
+ _request_auth=_request_auth,
791
+ _content_type=_content_type,
792
+ _headers=_headers,
793
+ _host_index=_host_index
794
+ )
795
+
796
+ _response_types_map: Dict[str, Optional[str]] = {
797
+ '200': "PaginatedOpenPGPPublicKeyResponseList",
798
+ }
799
+ response_data = self.api_client.call_api(
800
+ *_param,
801
+ _request_timeout=_request_timeout
802
+ )
803
+ return response_data.response
804
+
805
+
806
+ def _list_serialize(
807
+ self,
808
+ pulp_domain,
809
+ x_task_diagnostics,
810
+ fingerprint,
811
+ limit,
812
+ offset,
813
+ ordering,
814
+ orphaned_for,
815
+ prn__in,
816
+ pulp_href__in,
817
+ pulp_id__in,
818
+ pulp_label_select,
819
+ q,
820
+ repository_version,
821
+ repository_version_added,
822
+ repository_version_removed,
823
+ fields,
824
+ exclude_fields,
825
+ _request_auth,
826
+ _content_type,
827
+ _headers,
828
+ _host_index,
829
+ ) -> RequestSerialized:
830
+
831
+ _host = None
832
+
833
+ _collection_formats: Dict[str, str] = {
834
+ 'X-Task-Diagnostics': 'csv',
835
+ 'ordering': 'csv',
836
+ 'prn__in': 'csv',
837
+ 'pulp_href__in': 'csv',
838
+ 'pulp_id__in': 'csv',
839
+ 'fields': 'multi',
840
+ 'exclude_fields': 'multi',
841
+ }
842
+
843
+ _path_params: Dict[str, str] = {}
844
+ _query_params: List[Tuple[str, str]] = []
845
+ _header_params: Dict[str, Optional[str]] = _headers or {}
846
+ _form_params: List[Tuple[str, str]] = []
847
+ _files: Dict[
848
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
849
+ ] = {}
850
+ _body_params: Optional[bytes] = None
851
+
852
+ # process the path parameters
853
+ if pulp_domain is not None:
854
+ _path_params['pulp_domain'] = pulp_domain
855
+ # process the query parameters
856
+ if fingerprint is not None:
857
+
858
+ _query_params.append(('fingerprint', fingerprint))
859
+
860
+ if limit is not None:
861
+
862
+ _query_params.append(('limit', limit))
863
+
864
+ if offset is not None:
865
+
866
+ _query_params.append(('offset', offset))
867
+
868
+ if ordering is not None:
869
+
870
+ _query_params.append(('ordering', ordering))
871
+
872
+ if orphaned_for is not None:
873
+
874
+ _query_params.append(('orphaned_for', orphaned_for))
875
+
876
+ if prn__in is not None:
877
+
878
+ _query_params.append(('prn__in', prn__in))
879
+
880
+ if pulp_href__in is not None:
881
+
882
+ _query_params.append(('pulp_href__in', pulp_href__in))
883
+
884
+ if pulp_id__in is not None:
885
+
886
+ _query_params.append(('pulp_id__in', pulp_id__in))
887
+
888
+ if pulp_label_select is not None:
889
+
890
+ _query_params.append(('pulp_label_select', pulp_label_select))
891
+
892
+ if q is not None:
893
+
894
+ _query_params.append(('q', q))
895
+
896
+ if repository_version is not None:
897
+
898
+ _query_params.append(('repository_version', repository_version))
899
+
900
+ if repository_version_added is not None:
901
+
902
+ _query_params.append(('repository_version_added', repository_version_added))
903
+
904
+ if repository_version_removed is not None:
905
+
906
+ _query_params.append(('repository_version_removed', repository_version_removed))
907
+
908
+ if fields is not None:
909
+
910
+ _query_params.append(('fields', fields))
911
+
912
+ if exclude_fields is not None:
913
+
914
+ _query_params.append(('exclude_fields', exclude_fields))
915
+
916
+ # process the header parameters
917
+ if x_task_diagnostics is not None:
918
+ _header_params['X-Task-Diagnostics'] = x_task_diagnostics
919
+ # process the form parameters
920
+ # process the body parameter
921
+
922
+
923
+ # set the HTTP header `Accept`
924
+ if 'Accept' not in _header_params:
925
+ _header_params['Accept'] = self.api_client.select_header_accept(
926
+ [
927
+ 'application/json'
928
+ ]
929
+ )
930
+
931
+
932
+ # authentication setting
933
+ _auth_settings: List[str] = [
934
+ 'json_header_remote_authentication',
935
+ 'basicAuth',
936
+ 'cookieAuth'
937
+ ]
938
+
939
+ return self.api_client.param_serialize(
940
+ method='GET',
941
+ resource_path='/api/pulp/{pulp_domain}/api/v3/content/core/openpgp_publickey/',
942
+ path_params=_path_params,
943
+ query_params=_query_params,
944
+ header_params=_header_params,
945
+ body=_body_params,
946
+ post_params=_form_params,
947
+ files=_files,
948
+ auth_settings=_auth_settings,
949
+ collection_formats=_collection_formats,
950
+ _host=_host,
951
+ _request_auth=_request_auth
952
+ )
953
+
954
+
955
+
956
+
957
+ @validate_call
958
+ def read(
959
+ self,
960
+ open_p_g_p_public_key_href: StrictStr,
961
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
962
+ fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
963
+ exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
964
+ _request_timeout: Union[
965
+ None,
966
+ Annotated[StrictFloat, Field(gt=0)],
967
+ Tuple[
968
+ Annotated[StrictFloat, Field(gt=0)],
969
+ Annotated[StrictFloat, Field(gt=0)]
970
+ ]
971
+ ] = None,
972
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
973
+ _content_type: Optional[StrictStr] = None,
974
+ _headers: Optional[Dict[StrictStr, Any]] = None,
975
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
976
+ ) -> OpenPGPPublicKeyResponse:
977
+ """Inspect an open pgp public key
978
+
979
+ A ViewSet for uploads that do not require to store an uploaded content as an Artifact.
980
+
981
+ :param open_p_g_p_public_key_href: (required)
982
+ :type open_p_g_p_public_key_href: str
983
+ :param x_task_diagnostics: List of profilers to use on tasks.
984
+ :type x_task_diagnostics: List[str]
985
+ :param fields: A list of fields to include in the response.
986
+ :type fields: List[str]
987
+ :param exclude_fields: A list of fields to exclude from the response.
988
+ :type exclude_fields: List[str]
989
+ :param _request_timeout: timeout setting for this request. If one
990
+ number provided, it will be total request
991
+ timeout. It can also be a pair (tuple) of
992
+ (connection, read) timeouts.
993
+ :type _request_timeout: int, tuple(int, int), optional
994
+ :param _request_auth: set to override the auth_settings for an a single
995
+ request; this effectively ignores the
996
+ authentication in the spec for a single request.
997
+ :type _request_auth: dict, optional
998
+ :param _content_type: force content-type for the request.
999
+ :type _content_type: str, Optional
1000
+ :param _headers: set to override the headers for a single
1001
+ request; this effectively ignores the headers
1002
+ in the spec for a single request.
1003
+ :type _headers: dict, optional
1004
+ :param _host_index: set to override the host_index for a single
1005
+ request; this effectively ignores the host_index
1006
+ in the spec for a single request.
1007
+ :type _host_index: int, optional
1008
+ :return: Returns the result object.
1009
+ """ # noqa: E501
1010
+
1011
+ _param = self._read_serialize(
1012
+ open_p_g_p_public_key_href=open_p_g_p_public_key_href,
1013
+ x_task_diagnostics=x_task_diagnostics,
1014
+ fields=fields,
1015
+ exclude_fields=exclude_fields,
1016
+ _request_auth=_request_auth,
1017
+ _content_type=_content_type,
1018
+ _headers=_headers,
1019
+ _host_index=_host_index
1020
+ )
1021
+
1022
+ _response_types_map: Dict[str, Optional[str]] = {
1023
+ '200': "OpenPGPPublicKeyResponse",
1024
+ }
1025
+ response_data = self.api_client.call_api(
1026
+ *_param,
1027
+ _request_timeout=_request_timeout
1028
+ )
1029
+ response_data.read()
1030
+ return self.api_client.response_deserialize(
1031
+ response_data=response_data,
1032
+ response_types_map=_response_types_map,
1033
+ ).data
1034
+
1035
+
1036
+ @validate_call
1037
+ def read_with_http_info(
1038
+ self,
1039
+ open_p_g_p_public_key_href: StrictStr,
1040
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
1041
+ fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
1042
+ exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
1043
+ _request_timeout: Union[
1044
+ None,
1045
+ Annotated[StrictFloat, Field(gt=0)],
1046
+ Tuple[
1047
+ Annotated[StrictFloat, Field(gt=0)],
1048
+ Annotated[StrictFloat, Field(gt=0)]
1049
+ ]
1050
+ ] = None,
1051
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1052
+ _content_type: Optional[StrictStr] = None,
1053
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1054
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1055
+ ) -> ApiResponse[OpenPGPPublicKeyResponse]:
1056
+ """Inspect an open pgp public key
1057
+
1058
+ A ViewSet for uploads that do not require to store an uploaded content as an Artifact.
1059
+
1060
+ :param open_p_g_p_public_key_href: (required)
1061
+ :type open_p_g_p_public_key_href: str
1062
+ :param x_task_diagnostics: List of profilers to use on tasks.
1063
+ :type x_task_diagnostics: List[str]
1064
+ :param fields: A list of fields to include in the response.
1065
+ :type fields: List[str]
1066
+ :param exclude_fields: A list of fields to exclude from the response.
1067
+ :type exclude_fields: List[str]
1068
+ :param _request_timeout: timeout setting for this request. If one
1069
+ number provided, it will be total request
1070
+ timeout. It can also be a pair (tuple) of
1071
+ (connection, read) timeouts.
1072
+ :type _request_timeout: int, tuple(int, int), optional
1073
+ :param _request_auth: set to override the auth_settings for an a single
1074
+ request; this effectively ignores the
1075
+ authentication in the spec for a single request.
1076
+ :type _request_auth: dict, optional
1077
+ :param _content_type: force content-type for the request.
1078
+ :type _content_type: str, Optional
1079
+ :param _headers: set to override the headers for a single
1080
+ request; this effectively ignores the headers
1081
+ in the spec for a single request.
1082
+ :type _headers: dict, optional
1083
+ :param _host_index: set to override the host_index for a single
1084
+ request; this effectively ignores the host_index
1085
+ in the spec for a single request.
1086
+ :type _host_index: int, optional
1087
+ :return: Returns the result object.
1088
+ """ # noqa: E501
1089
+
1090
+ _param = self._read_serialize(
1091
+ open_p_g_p_public_key_href=open_p_g_p_public_key_href,
1092
+ x_task_diagnostics=x_task_diagnostics,
1093
+ fields=fields,
1094
+ exclude_fields=exclude_fields,
1095
+ _request_auth=_request_auth,
1096
+ _content_type=_content_type,
1097
+ _headers=_headers,
1098
+ _host_index=_host_index
1099
+ )
1100
+
1101
+ _response_types_map: Dict[str, Optional[str]] = {
1102
+ '200': "OpenPGPPublicKeyResponse",
1103
+ }
1104
+ response_data = self.api_client.call_api(
1105
+ *_param,
1106
+ _request_timeout=_request_timeout
1107
+ )
1108
+ response_data.read()
1109
+ return self.api_client.response_deserialize(
1110
+ response_data=response_data,
1111
+ response_types_map=_response_types_map,
1112
+ )
1113
+
1114
+
1115
+ @validate_call
1116
+ def read_without_preload_content(
1117
+ self,
1118
+ open_p_g_p_public_key_href: StrictStr,
1119
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
1120
+ fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
1121
+ exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
1122
+ _request_timeout: Union[
1123
+ None,
1124
+ Annotated[StrictFloat, Field(gt=0)],
1125
+ Tuple[
1126
+ Annotated[StrictFloat, Field(gt=0)],
1127
+ Annotated[StrictFloat, Field(gt=0)]
1128
+ ]
1129
+ ] = None,
1130
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1131
+ _content_type: Optional[StrictStr] = None,
1132
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1133
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1134
+ ) -> RESTResponseType:
1135
+ """Inspect an open pgp public key
1136
+
1137
+ A ViewSet for uploads that do not require to store an uploaded content as an Artifact.
1138
+
1139
+ :param open_p_g_p_public_key_href: (required)
1140
+ :type open_p_g_p_public_key_href: str
1141
+ :param x_task_diagnostics: List of profilers to use on tasks.
1142
+ :type x_task_diagnostics: List[str]
1143
+ :param fields: A list of fields to include in the response.
1144
+ :type fields: List[str]
1145
+ :param exclude_fields: A list of fields to exclude from the response.
1146
+ :type exclude_fields: List[str]
1147
+ :param _request_timeout: timeout setting for this request. If one
1148
+ number provided, it will be total request
1149
+ timeout. It can also be a pair (tuple) of
1150
+ (connection, read) timeouts.
1151
+ :type _request_timeout: int, tuple(int, int), optional
1152
+ :param _request_auth: set to override the auth_settings for an a single
1153
+ request; this effectively ignores the
1154
+ authentication in the spec for a single request.
1155
+ :type _request_auth: dict, optional
1156
+ :param _content_type: force content-type for the request.
1157
+ :type _content_type: str, Optional
1158
+ :param _headers: set to override the headers for a single
1159
+ request; this effectively ignores the headers
1160
+ in the spec for a single request.
1161
+ :type _headers: dict, optional
1162
+ :param _host_index: set to override the host_index for a single
1163
+ request; this effectively ignores the host_index
1164
+ in the spec for a single request.
1165
+ :type _host_index: int, optional
1166
+ :return: Returns the result object.
1167
+ """ # noqa: E501
1168
+
1169
+ _param = self._read_serialize(
1170
+ open_p_g_p_public_key_href=open_p_g_p_public_key_href,
1171
+ x_task_diagnostics=x_task_diagnostics,
1172
+ fields=fields,
1173
+ exclude_fields=exclude_fields,
1174
+ _request_auth=_request_auth,
1175
+ _content_type=_content_type,
1176
+ _headers=_headers,
1177
+ _host_index=_host_index
1178
+ )
1179
+
1180
+ _response_types_map: Dict[str, Optional[str]] = {
1181
+ '200': "OpenPGPPublicKeyResponse",
1182
+ }
1183
+ response_data = self.api_client.call_api(
1184
+ *_param,
1185
+ _request_timeout=_request_timeout
1186
+ )
1187
+ return response_data.response
1188
+
1189
+
1190
+ def _read_serialize(
1191
+ self,
1192
+ open_p_g_p_public_key_href,
1193
+ x_task_diagnostics,
1194
+ fields,
1195
+ exclude_fields,
1196
+ _request_auth,
1197
+ _content_type,
1198
+ _headers,
1199
+ _host_index,
1200
+ ) -> RequestSerialized:
1201
+
1202
+ _host = None
1203
+
1204
+ _collection_formats: Dict[str, str] = {
1205
+ 'X-Task-Diagnostics': 'csv',
1206
+ 'fields': 'multi',
1207
+ 'exclude_fields': 'multi',
1208
+ }
1209
+
1210
+ _path_params: Dict[str, str] = {}
1211
+ _query_params: List[Tuple[str, str]] = []
1212
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1213
+ _form_params: List[Tuple[str, str]] = []
1214
+ _files: Dict[
1215
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1216
+ ] = {}
1217
+ _body_params: Optional[bytes] = None
1218
+
1219
+ # process the path parameters
1220
+ if open_p_g_p_public_key_href is not None:
1221
+ _path_params['open_p_g_p_public_key_href'] = open_p_g_p_public_key_href
1222
+ # process the query parameters
1223
+ if fields is not None:
1224
+
1225
+ _query_params.append(('fields', fields))
1226
+
1227
+ if exclude_fields is not None:
1228
+
1229
+ _query_params.append(('exclude_fields', exclude_fields))
1230
+
1231
+ # process the header parameters
1232
+ if x_task_diagnostics is not None:
1233
+ _header_params['X-Task-Diagnostics'] = x_task_diagnostics
1234
+ # process the form parameters
1235
+ # process the body parameter
1236
+
1237
+
1238
+ # set the HTTP header `Accept`
1239
+ if 'Accept' not in _header_params:
1240
+ _header_params['Accept'] = self.api_client.select_header_accept(
1241
+ [
1242
+ 'application/json'
1243
+ ]
1244
+ )
1245
+
1246
+
1247
+ # authentication setting
1248
+ _auth_settings: List[str] = [
1249
+ 'json_header_remote_authentication',
1250
+ 'basicAuth',
1251
+ 'cookieAuth'
1252
+ ]
1253
+
1254
+ return self.api_client.param_serialize(
1255
+ method='GET',
1256
+ resource_path='{open_p_g_p_public_key_href}',
1257
+ path_params=_path_params,
1258
+ query_params=_query_params,
1259
+ header_params=_header_params,
1260
+ body=_body_params,
1261
+ post_params=_form_params,
1262
+ files=_files,
1263
+ auth_settings=_auth_settings,
1264
+ collection_formats=_collection_formats,
1265
+ _host=_host,
1266
+ _request_auth=_request_auth
1267
+ )
1268
+
1269
+
1270
+
1271
+
1272
+ @validate_call
1273
+ def set_label(
1274
+ self,
1275
+ open_p_g_p_public_key_href: StrictStr,
1276
+ set_label: SetLabel,
1277
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
1278
+ _request_timeout: Union[
1279
+ None,
1280
+ Annotated[StrictFloat, Field(gt=0)],
1281
+ Tuple[
1282
+ Annotated[StrictFloat, Field(gt=0)],
1283
+ Annotated[StrictFloat, Field(gt=0)]
1284
+ ]
1285
+ ] = None,
1286
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1287
+ _content_type: Optional[StrictStr] = None,
1288
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1289
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1290
+ ) -> SetLabelResponse:
1291
+ """Set a label
1292
+
1293
+ Set a single pulp_label on the object to a specific value or null.
1294
+
1295
+ :param open_p_g_p_public_key_href: (required)
1296
+ :type open_p_g_p_public_key_href: str
1297
+ :param set_label: (required)
1298
+ :type set_label: SetLabel
1299
+ :param x_task_diagnostics: List of profilers to use on tasks.
1300
+ :type x_task_diagnostics: List[str]
1301
+ :param _request_timeout: timeout setting for this request. If one
1302
+ number provided, it will be total request
1303
+ timeout. It can also be a pair (tuple) of
1304
+ (connection, read) timeouts.
1305
+ :type _request_timeout: int, tuple(int, int), optional
1306
+ :param _request_auth: set to override the auth_settings for an a single
1307
+ request; this effectively ignores the
1308
+ authentication in the spec for a single request.
1309
+ :type _request_auth: dict, optional
1310
+ :param _content_type: force content-type for the request.
1311
+ :type _content_type: str, Optional
1312
+ :param _headers: set to override the headers for a single
1313
+ request; this effectively ignores the headers
1314
+ in the spec for a single request.
1315
+ :type _headers: dict, optional
1316
+ :param _host_index: set to override the host_index for a single
1317
+ request; this effectively ignores the host_index
1318
+ in the spec for a single request.
1319
+ :type _host_index: int, optional
1320
+ :return: Returns the result object.
1321
+ """ # noqa: E501
1322
+
1323
+ _param = self._set_label_serialize(
1324
+ open_p_g_p_public_key_href=open_p_g_p_public_key_href,
1325
+ set_label=set_label,
1326
+ x_task_diagnostics=x_task_diagnostics,
1327
+ _request_auth=_request_auth,
1328
+ _content_type=_content_type,
1329
+ _headers=_headers,
1330
+ _host_index=_host_index
1331
+ )
1332
+
1333
+ _response_types_map: Dict[str, Optional[str]] = {
1334
+ '201': "SetLabelResponse",
1335
+ }
1336
+ response_data = self.api_client.call_api(
1337
+ *_param,
1338
+ _request_timeout=_request_timeout
1339
+ )
1340
+ response_data.read()
1341
+ return self.api_client.response_deserialize(
1342
+ response_data=response_data,
1343
+ response_types_map=_response_types_map,
1344
+ ).data
1345
+
1346
+
1347
+ @validate_call
1348
+ def set_label_with_http_info(
1349
+ self,
1350
+ open_p_g_p_public_key_href: StrictStr,
1351
+ set_label: SetLabel,
1352
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
1353
+ _request_timeout: Union[
1354
+ None,
1355
+ Annotated[StrictFloat, Field(gt=0)],
1356
+ Tuple[
1357
+ Annotated[StrictFloat, Field(gt=0)],
1358
+ Annotated[StrictFloat, Field(gt=0)]
1359
+ ]
1360
+ ] = None,
1361
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1362
+ _content_type: Optional[StrictStr] = None,
1363
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1364
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1365
+ ) -> ApiResponse[SetLabelResponse]:
1366
+ """Set a label
1367
+
1368
+ Set a single pulp_label on the object to a specific value or null.
1369
+
1370
+ :param open_p_g_p_public_key_href: (required)
1371
+ :type open_p_g_p_public_key_href: str
1372
+ :param set_label: (required)
1373
+ :type set_label: SetLabel
1374
+ :param x_task_diagnostics: List of profilers to use on tasks.
1375
+ :type x_task_diagnostics: List[str]
1376
+ :param _request_timeout: timeout setting for this request. If one
1377
+ number provided, it will be total request
1378
+ timeout. It can also be a pair (tuple) of
1379
+ (connection, read) timeouts.
1380
+ :type _request_timeout: int, tuple(int, int), optional
1381
+ :param _request_auth: set to override the auth_settings for an a single
1382
+ request; this effectively ignores the
1383
+ authentication in the spec for a single request.
1384
+ :type _request_auth: dict, optional
1385
+ :param _content_type: force content-type for the request.
1386
+ :type _content_type: str, Optional
1387
+ :param _headers: set to override the headers for a single
1388
+ request; this effectively ignores the headers
1389
+ in the spec for a single request.
1390
+ :type _headers: dict, optional
1391
+ :param _host_index: set to override the host_index for a single
1392
+ request; this effectively ignores the host_index
1393
+ in the spec for a single request.
1394
+ :type _host_index: int, optional
1395
+ :return: Returns the result object.
1396
+ """ # noqa: E501
1397
+
1398
+ _param = self._set_label_serialize(
1399
+ open_p_g_p_public_key_href=open_p_g_p_public_key_href,
1400
+ set_label=set_label,
1401
+ x_task_diagnostics=x_task_diagnostics,
1402
+ _request_auth=_request_auth,
1403
+ _content_type=_content_type,
1404
+ _headers=_headers,
1405
+ _host_index=_host_index
1406
+ )
1407
+
1408
+ _response_types_map: Dict[str, Optional[str]] = {
1409
+ '201': "SetLabelResponse",
1410
+ }
1411
+ response_data = self.api_client.call_api(
1412
+ *_param,
1413
+ _request_timeout=_request_timeout
1414
+ )
1415
+ response_data.read()
1416
+ return self.api_client.response_deserialize(
1417
+ response_data=response_data,
1418
+ response_types_map=_response_types_map,
1419
+ )
1420
+
1421
+
1422
+ @validate_call
1423
+ def set_label_without_preload_content(
1424
+ self,
1425
+ open_p_g_p_public_key_href: StrictStr,
1426
+ set_label: SetLabel,
1427
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
1428
+ _request_timeout: Union[
1429
+ None,
1430
+ Annotated[StrictFloat, Field(gt=0)],
1431
+ Tuple[
1432
+ Annotated[StrictFloat, Field(gt=0)],
1433
+ Annotated[StrictFloat, Field(gt=0)]
1434
+ ]
1435
+ ] = None,
1436
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1437
+ _content_type: Optional[StrictStr] = None,
1438
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1439
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1440
+ ) -> RESTResponseType:
1441
+ """Set a label
1442
+
1443
+ Set a single pulp_label on the object to a specific value or null.
1444
+
1445
+ :param open_p_g_p_public_key_href: (required)
1446
+ :type open_p_g_p_public_key_href: str
1447
+ :param set_label: (required)
1448
+ :type set_label: SetLabel
1449
+ :param x_task_diagnostics: List of profilers to use on tasks.
1450
+ :type x_task_diagnostics: List[str]
1451
+ :param _request_timeout: timeout setting for this request. If one
1452
+ number provided, it will be total request
1453
+ timeout. It can also be a pair (tuple) of
1454
+ (connection, read) timeouts.
1455
+ :type _request_timeout: int, tuple(int, int), optional
1456
+ :param _request_auth: set to override the auth_settings for an a single
1457
+ request; this effectively ignores the
1458
+ authentication in the spec for a single request.
1459
+ :type _request_auth: dict, optional
1460
+ :param _content_type: force content-type for the request.
1461
+ :type _content_type: str, Optional
1462
+ :param _headers: set to override the headers for a single
1463
+ request; this effectively ignores the headers
1464
+ in the spec for a single request.
1465
+ :type _headers: dict, optional
1466
+ :param _host_index: set to override the host_index for a single
1467
+ request; this effectively ignores the host_index
1468
+ in the spec for a single request.
1469
+ :type _host_index: int, optional
1470
+ :return: Returns the result object.
1471
+ """ # noqa: E501
1472
+
1473
+ _param = self._set_label_serialize(
1474
+ open_p_g_p_public_key_href=open_p_g_p_public_key_href,
1475
+ set_label=set_label,
1476
+ x_task_diagnostics=x_task_diagnostics,
1477
+ _request_auth=_request_auth,
1478
+ _content_type=_content_type,
1479
+ _headers=_headers,
1480
+ _host_index=_host_index
1481
+ )
1482
+
1483
+ _response_types_map: Dict[str, Optional[str]] = {
1484
+ '201': "SetLabelResponse",
1485
+ }
1486
+ response_data = self.api_client.call_api(
1487
+ *_param,
1488
+ _request_timeout=_request_timeout
1489
+ )
1490
+ return response_data.response
1491
+
1492
+
1493
+ def _set_label_serialize(
1494
+ self,
1495
+ open_p_g_p_public_key_href,
1496
+ set_label,
1497
+ x_task_diagnostics,
1498
+ _request_auth,
1499
+ _content_type,
1500
+ _headers,
1501
+ _host_index,
1502
+ ) -> RequestSerialized:
1503
+
1504
+ _host = None
1505
+
1506
+ _collection_formats: Dict[str, str] = {
1507
+ 'X-Task-Diagnostics': 'csv',
1508
+ }
1509
+
1510
+ _path_params: Dict[str, str] = {}
1511
+ _query_params: List[Tuple[str, str]] = []
1512
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1513
+ _form_params: List[Tuple[str, str]] = []
1514
+ _files: Dict[
1515
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1516
+ ] = {}
1517
+ _body_params: Optional[bytes] = None
1518
+
1519
+ # process the path parameters
1520
+ if open_p_g_p_public_key_href is not None:
1521
+ _path_params['open_p_g_p_public_key_href'] = open_p_g_p_public_key_href
1522
+ # process the query parameters
1523
+ # process the header parameters
1524
+ if x_task_diagnostics is not None:
1525
+ _header_params['X-Task-Diagnostics'] = x_task_diagnostics
1526
+ # process the form parameters
1527
+ # process the body parameter
1528
+ if set_label is not None:
1529
+ _body_params = set_label
1530
+
1531
+
1532
+ # set the HTTP header `Accept`
1533
+ if 'Accept' not in _header_params:
1534
+ _header_params['Accept'] = self.api_client.select_header_accept(
1535
+ [
1536
+ 'application/json'
1537
+ ]
1538
+ )
1539
+
1540
+ # set the HTTP header `Content-Type`
1541
+ if _content_type:
1542
+ _header_params['Content-Type'] = _content_type
1543
+ else:
1544
+ _default_content_type = (
1545
+ self.api_client.select_header_content_type(
1546
+ [
1547
+ 'application/json',
1548
+ 'application/x-www-form-urlencoded',
1549
+ 'multipart/form-data'
1550
+ ]
1551
+ )
1552
+ )
1553
+ if _default_content_type is not None:
1554
+ _header_params['Content-Type'] = _default_content_type
1555
+
1556
+ # authentication setting
1557
+ _auth_settings: List[str] = [
1558
+ 'json_header_remote_authentication',
1559
+ 'basicAuth',
1560
+ 'cookieAuth'
1561
+ ]
1562
+
1563
+ return self.api_client.param_serialize(
1564
+ method='POST',
1565
+ resource_path='{open_p_g_p_public_key_href}set_label/',
1566
+ path_params=_path_params,
1567
+ query_params=_query_params,
1568
+ header_params=_header_params,
1569
+ body=_body_params,
1570
+ post_params=_form_params,
1571
+ files=_files,
1572
+ auth_settings=_auth_settings,
1573
+ collection_formats=_collection_formats,
1574
+ _host=_host,
1575
+ _request_auth=_request_auth
1576
+ )
1577
+
1578
+
1579
+
1580
+
1581
+ @validate_call
1582
+ def unset_label(
1583
+ self,
1584
+ open_p_g_p_public_key_href: StrictStr,
1585
+ unset_label: UnsetLabel,
1586
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
1587
+ _request_timeout: Union[
1588
+ None,
1589
+ Annotated[StrictFloat, Field(gt=0)],
1590
+ Tuple[
1591
+ Annotated[StrictFloat, Field(gt=0)],
1592
+ Annotated[StrictFloat, Field(gt=0)]
1593
+ ]
1594
+ ] = None,
1595
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1596
+ _content_type: Optional[StrictStr] = None,
1597
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1598
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1599
+ ) -> UnsetLabelResponse:
1600
+ """Unset a label
1601
+
1602
+ Unset a single pulp_label on the object.
1603
+
1604
+ :param open_p_g_p_public_key_href: (required)
1605
+ :type open_p_g_p_public_key_href: str
1606
+ :param unset_label: (required)
1607
+ :type unset_label: UnsetLabel
1608
+ :param x_task_diagnostics: List of profilers to use on tasks.
1609
+ :type x_task_diagnostics: List[str]
1610
+ :param _request_timeout: timeout setting for this request. If one
1611
+ number provided, it will be total request
1612
+ timeout. It can also be a pair (tuple) of
1613
+ (connection, read) timeouts.
1614
+ :type _request_timeout: int, tuple(int, int), optional
1615
+ :param _request_auth: set to override the auth_settings for an a single
1616
+ request; this effectively ignores the
1617
+ authentication in the spec for a single request.
1618
+ :type _request_auth: dict, optional
1619
+ :param _content_type: force content-type for the request.
1620
+ :type _content_type: str, Optional
1621
+ :param _headers: set to override the headers for a single
1622
+ request; this effectively ignores the headers
1623
+ in the spec for a single request.
1624
+ :type _headers: dict, optional
1625
+ :param _host_index: set to override the host_index for a single
1626
+ request; this effectively ignores the host_index
1627
+ in the spec for a single request.
1628
+ :type _host_index: int, optional
1629
+ :return: Returns the result object.
1630
+ """ # noqa: E501
1631
+
1632
+ _param = self._unset_label_serialize(
1633
+ open_p_g_p_public_key_href=open_p_g_p_public_key_href,
1634
+ unset_label=unset_label,
1635
+ x_task_diagnostics=x_task_diagnostics,
1636
+ _request_auth=_request_auth,
1637
+ _content_type=_content_type,
1638
+ _headers=_headers,
1639
+ _host_index=_host_index
1640
+ )
1641
+
1642
+ _response_types_map: Dict[str, Optional[str]] = {
1643
+ '201': "UnsetLabelResponse",
1644
+ }
1645
+ response_data = self.api_client.call_api(
1646
+ *_param,
1647
+ _request_timeout=_request_timeout
1648
+ )
1649
+ response_data.read()
1650
+ return self.api_client.response_deserialize(
1651
+ response_data=response_data,
1652
+ response_types_map=_response_types_map,
1653
+ ).data
1654
+
1655
+
1656
+ @validate_call
1657
+ def unset_label_with_http_info(
1658
+ self,
1659
+ open_p_g_p_public_key_href: StrictStr,
1660
+ unset_label: UnsetLabel,
1661
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
1662
+ _request_timeout: Union[
1663
+ None,
1664
+ Annotated[StrictFloat, Field(gt=0)],
1665
+ Tuple[
1666
+ Annotated[StrictFloat, Field(gt=0)],
1667
+ Annotated[StrictFloat, Field(gt=0)]
1668
+ ]
1669
+ ] = None,
1670
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1671
+ _content_type: Optional[StrictStr] = None,
1672
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1673
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1674
+ ) -> ApiResponse[UnsetLabelResponse]:
1675
+ """Unset a label
1676
+
1677
+ Unset a single pulp_label on the object.
1678
+
1679
+ :param open_p_g_p_public_key_href: (required)
1680
+ :type open_p_g_p_public_key_href: str
1681
+ :param unset_label: (required)
1682
+ :type unset_label: UnsetLabel
1683
+ :param x_task_diagnostics: List of profilers to use on tasks.
1684
+ :type x_task_diagnostics: List[str]
1685
+ :param _request_timeout: timeout setting for this request. If one
1686
+ number provided, it will be total request
1687
+ timeout. It can also be a pair (tuple) of
1688
+ (connection, read) timeouts.
1689
+ :type _request_timeout: int, tuple(int, int), optional
1690
+ :param _request_auth: set to override the auth_settings for an a single
1691
+ request; this effectively ignores the
1692
+ authentication in the spec for a single request.
1693
+ :type _request_auth: dict, optional
1694
+ :param _content_type: force content-type for the request.
1695
+ :type _content_type: str, Optional
1696
+ :param _headers: set to override the headers for a single
1697
+ request; this effectively ignores the headers
1698
+ in the spec for a single request.
1699
+ :type _headers: dict, optional
1700
+ :param _host_index: set to override the host_index for a single
1701
+ request; this effectively ignores the host_index
1702
+ in the spec for a single request.
1703
+ :type _host_index: int, optional
1704
+ :return: Returns the result object.
1705
+ """ # noqa: E501
1706
+
1707
+ _param = self._unset_label_serialize(
1708
+ open_p_g_p_public_key_href=open_p_g_p_public_key_href,
1709
+ unset_label=unset_label,
1710
+ x_task_diagnostics=x_task_diagnostics,
1711
+ _request_auth=_request_auth,
1712
+ _content_type=_content_type,
1713
+ _headers=_headers,
1714
+ _host_index=_host_index
1715
+ )
1716
+
1717
+ _response_types_map: Dict[str, Optional[str]] = {
1718
+ '201': "UnsetLabelResponse",
1719
+ }
1720
+ response_data = self.api_client.call_api(
1721
+ *_param,
1722
+ _request_timeout=_request_timeout
1723
+ )
1724
+ response_data.read()
1725
+ return self.api_client.response_deserialize(
1726
+ response_data=response_data,
1727
+ response_types_map=_response_types_map,
1728
+ )
1729
+
1730
+
1731
+ @validate_call
1732
+ def unset_label_without_preload_content(
1733
+ self,
1734
+ open_p_g_p_public_key_href: StrictStr,
1735
+ unset_label: UnsetLabel,
1736
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
1737
+ _request_timeout: Union[
1738
+ None,
1739
+ Annotated[StrictFloat, Field(gt=0)],
1740
+ Tuple[
1741
+ Annotated[StrictFloat, Field(gt=0)],
1742
+ Annotated[StrictFloat, Field(gt=0)]
1743
+ ]
1744
+ ] = None,
1745
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1746
+ _content_type: Optional[StrictStr] = None,
1747
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1748
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1749
+ ) -> RESTResponseType:
1750
+ """Unset a label
1751
+
1752
+ Unset a single pulp_label on the object.
1753
+
1754
+ :param open_p_g_p_public_key_href: (required)
1755
+ :type open_p_g_p_public_key_href: str
1756
+ :param unset_label: (required)
1757
+ :type unset_label: UnsetLabel
1758
+ :param x_task_diagnostics: List of profilers to use on tasks.
1759
+ :type x_task_diagnostics: List[str]
1760
+ :param _request_timeout: timeout setting for this request. If one
1761
+ number provided, it will be total request
1762
+ timeout. It can also be a pair (tuple) of
1763
+ (connection, read) timeouts.
1764
+ :type _request_timeout: int, tuple(int, int), optional
1765
+ :param _request_auth: set to override the auth_settings for an a single
1766
+ request; this effectively ignores the
1767
+ authentication in the spec for a single request.
1768
+ :type _request_auth: dict, optional
1769
+ :param _content_type: force content-type for the request.
1770
+ :type _content_type: str, Optional
1771
+ :param _headers: set to override the headers for a single
1772
+ request; this effectively ignores the headers
1773
+ in the spec for a single request.
1774
+ :type _headers: dict, optional
1775
+ :param _host_index: set to override the host_index for a single
1776
+ request; this effectively ignores the host_index
1777
+ in the spec for a single request.
1778
+ :type _host_index: int, optional
1779
+ :return: Returns the result object.
1780
+ """ # noqa: E501
1781
+
1782
+ _param = self._unset_label_serialize(
1783
+ open_p_g_p_public_key_href=open_p_g_p_public_key_href,
1784
+ unset_label=unset_label,
1785
+ x_task_diagnostics=x_task_diagnostics,
1786
+ _request_auth=_request_auth,
1787
+ _content_type=_content_type,
1788
+ _headers=_headers,
1789
+ _host_index=_host_index
1790
+ )
1791
+
1792
+ _response_types_map: Dict[str, Optional[str]] = {
1793
+ '201': "UnsetLabelResponse",
1794
+ }
1795
+ response_data = self.api_client.call_api(
1796
+ *_param,
1797
+ _request_timeout=_request_timeout
1798
+ )
1799
+ return response_data.response
1800
+
1801
+
1802
+ def _unset_label_serialize(
1803
+ self,
1804
+ open_p_g_p_public_key_href,
1805
+ unset_label,
1806
+ x_task_diagnostics,
1807
+ _request_auth,
1808
+ _content_type,
1809
+ _headers,
1810
+ _host_index,
1811
+ ) -> RequestSerialized:
1812
+
1813
+ _host = None
1814
+
1815
+ _collection_formats: Dict[str, str] = {
1816
+ 'X-Task-Diagnostics': 'csv',
1817
+ }
1818
+
1819
+ _path_params: Dict[str, str] = {}
1820
+ _query_params: List[Tuple[str, str]] = []
1821
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1822
+ _form_params: List[Tuple[str, str]] = []
1823
+ _files: Dict[
1824
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1825
+ ] = {}
1826
+ _body_params: Optional[bytes] = None
1827
+
1828
+ # process the path parameters
1829
+ if open_p_g_p_public_key_href is not None:
1830
+ _path_params['open_p_g_p_public_key_href'] = open_p_g_p_public_key_href
1831
+ # process the query parameters
1832
+ # process the header parameters
1833
+ if x_task_diagnostics is not None:
1834
+ _header_params['X-Task-Diagnostics'] = x_task_diagnostics
1835
+ # process the form parameters
1836
+ # process the body parameter
1837
+ if unset_label is not None:
1838
+ _body_params = unset_label
1839
+
1840
+
1841
+ # set the HTTP header `Accept`
1842
+ if 'Accept' not in _header_params:
1843
+ _header_params['Accept'] = self.api_client.select_header_accept(
1844
+ [
1845
+ 'application/json'
1846
+ ]
1847
+ )
1848
+
1849
+ # set the HTTP header `Content-Type`
1850
+ if _content_type:
1851
+ _header_params['Content-Type'] = _content_type
1852
+ else:
1853
+ _default_content_type = (
1854
+ self.api_client.select_header_content_type(
1855
+ [
1856
+ 'application/json',
1857
+ 'application/x-www-form-urlencoded',
1858
+ 'multipart/form-data'
1859
+ ]
1860
+ )
1861
+ )
1862
+ if _default_content_type is not None:
1863
+ _header_params['Content-Type'] = _default_content_type
1864
+
1865
+ # authentication setting
1866
+ _auth_settings: List[str] = [
1867
+ 'json_header_remote_authentication',
1868
+ 'basicAuth',
1869
+ 'cookieAuth'
1870
+ ]
1871
+
1872
+ return self.api_client.param_serialize(
1873
+ method='POST',
1874
+ resource_path='{open_p_g_p_public_key_href}unset_label/',
1875
+ path_params=_path_params,
1876
+ query_params=_query_params,
1877
+ header_params=_header_params,
1878
+ body=_body_params,
1879
+ post_params=_form_params,
1880
+ files=_files,
1881
+ auth_settings=_auth_settings,
1882
+ collection_formats=_collection_formats,
1883
+ _host=_host,
1884
+ _request_auth=_request_auth
1885
+ )
1886
+
1887
+