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,2676 @@
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, StrictInt, StrictStr, field_validator
21
+ from typing import List, Optional
22
+ from typing_extensions import Annotated
23
+ from crc-pulpcore-client.models.async_operation_response import AsyncOperationResponse
24
+ from crc-pulpcore-client.models.open_pgp_distribution import OpenPGPDistribution
25
+ from crc-pulpcore-client.models.open_pgp_distribution_response import OpenPGPDistributionResponse
26
+ from crc-pulpcore-client.models.paginated_open_pgp_distribution_response_list import PaginatedOpenPGPDistributionResponseList
27
+ from crc-pulpcore-client.models.patched_open_pgp_distribution import PatchedOpenPGPDistribution
28
+ from crc-pulpcore-client.models.set_label import SetLabel
29
+ from crc-pulpcore-client.models.set_label_response import SetLabelResponse
30
+ from crc-pulpcore-client.models.unset_label import UnsetLabel
31
+ from crc-pulpcore-client.models.unset_label_response import UnsetLabelResponse
32
+
33
+ from crc-pulpcore-client.api_client import ApiClient, RequestSerialized
34
+ from crc-pulpcore-client.api_response import ApiResponse
35
+ from crc-pulpcore-client.rest import RESTResponseType
36
+
37
+
38
+ class DistributionsOpenpgpApi:
39
+ """NOTE: This class is auto generated by OpenAPI Generator
40
+ Ref: https://openapi-generator.tech
41
+
42
+ Do not edit the class manually.
43
+ """
44
+
45
+ def __init__(self, api_client=None) -> None:
46
+ if api_client is None:
47
+ api_client = ApiClient.get_default()
48
+ self.api_client = api_client
49
+
50
+
51
+ @validate_call
52
+ def create(
53
+ self,
54
+ open_pgp_distribution: OpenPGPDistribution,
55
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
56
+ pulp_domain: StrictStr = "default",
57
+ _request_timeout: Union[
58
+ None,
59
+ Annotated[StrictFloat, Field(gt=0)],
60
+ Tuple[
61
+ Annotated[StrictFloat, Field(gt=0)],
62
+ Annotated[StrictFloat, Field(gt=0)]
63
+ ]
64
+ ] = None,
65
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
66
+ _content_type: Optional[StrictStr] = None,
67
+ _headers: Optional[Dict[StrictStr, Any]] = None,
68
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
69
+ ) -> AsyncOperationResponse:
70
+ """Create an open pgp distribution
71
+
72
+ Trigger an asynchronous create task
73
+
74
+ :param pulp_domain: (required)
75
+ :type pulp_domain: str
76
+ :param open_pgp_distribution: (required)
77
+ :type open_pgp_distribution: OpenPGPDistribution
78
+ :param x_task_diagnostics: List of profilers to use on tasks.
79
+ :type x_task_diagnostics: List[str]
80
+ :param _request_timeout: timeout setting for this request. If one
81
+ number provided, it will be total request
82
+ timeout. It can also be a pair (tuple) of
83
+ (connection, read) timeouts.
84
+ :type _request_timeout: int, tuple(int, int), optional
85
+ :param _request_auth: set to override the auth_settings for an a single
86
+ request; this effectively ignores the
87
+ authentication in the spec for a single request.
88
+ :type _request_auth: dict, optional
89
+ :param _content_type: force content-type for the request.
90
+ :type _content_type: str, Optional
91
+ :param _headers: set to override the headers for a single
92
+ request; this effectively ignores the headers
93
+ in the spec for a single request.
94
+ :type _headers: dict, optional
95
+ :param _host_index: set to override the host_index for a single
96
+ request; this effectively ignores the host_index
97
+ in the spec for a single request.
98
+ :type _host_index: int, optional
99
+ :return: Returns the result object.
100
+ """ # noqa: E501
101
+
102
+ _param = self._create_serialize(
103
+ pulp_domain=pulp_domain,
104
+ open_pgp_distribution=open_pgp_distribution,
105
+ x_task_diagnostics=x_task_diagnostics,
106
+ _request_auth=_request_auth,
107
+ _content_type=_content_type,
108
+ _headers=_headers,
109
+ _host_index=_host_index
110
+ )
111
+
112
+ _response_types_map: Dict[str, Optional[str]] = {
113
+ '202': "AsyncOperationResponse",
114
+ }
115
+ response_data = self.api_client.call_api(
116
+ *_param,
117
+ _request_timeout=_request_timeout
118
+ )
119
+ response_data.read()
120
+ return self.api_client.response_deserialize(
121
+ response_data=response_data,
122
+ response_types_map=_response_types_map,
123
+ ).data
124
+
125
+
126
+ @validate_call
127
+ def create_with_http_info(
128
+ self,
129
+ open_pgp_distribution: OpenPGPDistribution,
130
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
131
+ pulp_domain: StrictStr = "default",
132
+ _request_timeout: Union[
133
+ None,
134
+ Annotated[StrictFloat, Field(gt=0)],
135
+ Tuple[
136
+ Annotated[StrictFloat, Field(gt=0)],
137
+ Annotated[StrictFloat, Field(gt=0)]
138
+ ]
139
+ ] = None,
140
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
141
+ _content_type: Optional[StrictStr] = None,
142
+ _headers: Optional[Dict[StrictStr, Any]] = None,
143
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
144
+ ) -> ApiResponse[AsyncOperationResponse]:
145
+ """Create an open pgp distribution
146
+
147
+ Trigger an asynchronous create task
148
+
149
+ :param pulp_domain: (required)
150
+ :type pulp_domain: str
151
+ :param open_pgp_distribution: (required)
152
+ :type open_pgp_distribution: OpenPGPDistribution
153
+ :param x_task_diagnostics: List of profilers to use on tasks.
154
+ :type x_task_diagnostics: List[str]
155
+ :param _request_timeout: timeout setting for this request. If one
156
+ number provided, it will be total request
157
+ timeout. It can also be a pair (tuple) of
158
+ (connection, read) timeouts.
159
+ :type _request_timeout: int, tuple(int, int), optional
160
+ :param _request_auth: set to override the auth_settings for an a single
161
+ request; this effectively ignores the
162
+ authentication in the spec for a single request.
163
+ :type _request_auth: dict, optional
164
+ :param _content_type: force content-type for the request.
165
+ :type _content_type: str, Optional
166
+ :param _headers: set to override the headers for a single
167
+ request; this effectively ignores the headers
168
+ in the spec for a single request.
169
+ :type _headers: dict, optional
170
+ :param _host_index: set to override the host_index for a single
171
+ request; this effectively ignores the host_index
172
+ in the spec for a single request.
173
+ :type _host_index: int, optional
174
+ :return: Returns the result object.
175
+ """ # noqa: E501
176
+
177
+ _param = self._create_serialize(
178
+ pulp_domain=pulp_domain,
179
+ open_pgp_distribution=open_pgp_distribution,
180
+ x_task_diagnostics=x_task_diagnostics,
181
+ _request_auth=_request_auth,
182
+ _content_type=_content_type,
183
+ _headers=_headers,
184
+ _host_index=_host_index
185
+ )
186
+
187
+ _response_types_map: Dict[str, Optional[str]] = {
188
+ '202': "AsyncOperationResponse",
189
+ }
190
+ response_data = self.api_client.call_api(
191
+ *_param,
192
+ _request_timeout=_request_timeout
193
+ )
194
+ response_data.read()
195
+ return self.api_client.response_deserialize(
196
+ response_data=response_data,
197
+ response_types_map=_response_types_map,
198
+ )
199
+
200
+
201
+ @validate_call
202
+ def create_without_preload_content(
203
+ self,
204
+ open_pgp_distribution: OpenPGPDistribution,
205
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
206
+ pulp_domain: StrictStr = "default",
207
+ _request_timeout: Union[
208
+ None,
209
+ Annotated[StrictFloat, Field(gt=0)],
210
+ Tuple[
211
+ Annotated[StrictFloat, Field(gt=0)],
212
+ Annotated[StrictFloat, Field(gt=0)]
213
+ ]
214
+ ] = None,
215
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
216
+ _content_type: Optional[StrictStr] = None,
217
+ _headers: Optional[Dict[StrictStr, Any]] = None,
218
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
219
+ ) -> RESTResponseType:
220
+ """Create an open pgp distribution
221
+
222
+ Trigger an asynchronous create task
223
+
224
+ :param pulp_domain: (required)
225
+ :type pulp_domain: str
226
+ :param open_pgp_distribution: (required)
227
+ :type open_pgp_distribution: OpenPGPDistribution
228
+ :param x_task_diagnostics: List of profilers to use on tasks.
229
+ :type x_task_diagnostics: List[str]
230
+ :param _request_timeout: timeout setting for this request. If one
231
+ number provided, it will be total request
232
+ timeout. It can also be a pair (tuple) of
233
+ (connection, read) timeouts.
234
+ :type _request_timeout: int, tuple(int, int), optional
235
+ :param _request_auth: set to override the auth_settings for an a single
236
+ request; this effectively ignores the
237
+ authentication in the spec for a single request.
238
+ :type _request_auth: dict, optional
239
+ :param _content_type: force content-type for the request.
240
+ :type _content_type: str, Optional
241
+ :param _headers: set to override the headers for a single
242
+ request; this effectively ignores the headers
243
+ in the spec for a single request.
244
+ :type _headers: dict, optional
245
+ :param _host_index: set to override the host_index for a single
246
+ request; this effectively ignores the host_index
247
+ in the spec for a single request.
248
+ :type _host_index: int, optional
249
+ :return: Returns the result object.
250
+ """ # noqa: E501
251
+
252
+ _param = self._create_serialize(
253
+ pulp_domain=pulp_domain,
254
+ open_pgp_distribution=open_pgp_distribution,
255
+ x_task_diagnostics=x_task_diagnostics,
256
+ _request_auth=_request_auth,
257
+ _content_type=_content_type,
258
+ _headers=_headers,
259
+ _host_index=_host_index
260
+ )
261
+
262
+ _response_types_map: Dict[str, Optional[str]] = {
263
+ '202': "AsyncOperationResponse",
264
+ }
265
+ response_data = self.api_client.call_api(
266
+ *_param,
267
+ _request_timeout=_request_timeout
268
+ )
269
+ return response_data.response
270
+
271
+
272
+ def _create_serialize(
273
+ self,
274
+ pulp_domain,
275
+ open_pgp_distribution,
276
+ x_task_diagnostics,
277
+ _request_auth,
278
+ _content_type,
279
+ _headers,
280
+ _host_index,
281
+ ) -> RequestSerialized:
282
+
283
+ _host = None
284
+
285
+ _collection_formats: Dict[str, str] = {
286
+ 'X-Task-Diagnostics': 'csv',
287
+ }
288
+
289
+ _path_params: Dict[str, str] = {}
290
+ _query_params: List[Tuple[str, str]] = []
291
+ _header_params: Dict[str, Optional[str]] = _headers or {}
292
+ _form_params: List[Tuple[str, str]] = []
293
+ _files: Dict[
294
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
295
+ ] = {}
296
+ _body_params: Optional[bytes] = None
297
+
298
+ # process the path parameters
299
+ if pulp_domain is not None:
300
+ _path_params['pulp_domain'] = pulp_domain
301
+ # process the query parameters
302
+ # process the header parameters
303
+ if x_task_diagnostics is not None:
304
+ _header_params['X-Task-Diagnostics'] = x_task_diagnostics
305
+ # process the form parameters
306
+ # process the body parameter
307
+ if open_pgp_distribution is not None:
308
+ _body_params = open_pgp_distribution
309
+
310
+
311
+ # set the HTTP header `Accept`
312
+ if 'Accept' not in _header_params:
313
+ _header_params['Accept'] = self.api_client.select_header_accept(
314
+ [
315
+ 'application/json'
316
+ ]
317
+ )
318
+
319
+ # set the HTTP header `Content-Type`
320
+ if _content_type:
321
+ _header_params['Content-Type'] = _content_type
322
+ else:
323
+ _default_content_type = (
324
+ self.api_client.select_header_content_type(
325
+ [
326
+ 'application/json',
327
+ 'application/x-www-form-urlencoded',
328
+ 'multipart/form-data'
329
+ ]
330
+ )
331
+ )
332
+ if _default_content_type is not None:
333
+ _header_params['Content-Type'] = _default_content_type
334
+
335
+ # authentication setting
336
+ _auth_settings: List[str] = [
337
+ 'json_header_remote_authentication',
338
+ 'basicAuth',
339
+ 'cookieAuth'
340
+ ]
341
+
342
+ return self.api_client.param_serialize(
343
+ method='POST',
344
+ resource_path='/api/pulp/{pulp_domain}/api/v3/distributions/core/openpgp/',
345
+ path_params=_path_params,
346
+ query_params=_query_params,
347
+ header_params=_header_params,
348
+ body=_body_params,
349
+ post_params=_form_params,
350
+ files=_files,
351
+ auth_settings=_auth_settings,
352
+ collection_formats=_collection_formats,
353
+ _host=_host,
354
+ _request_auth=_request_auth
355
+ )
356
+
357
+
358
+
359
+
360
+ @validate_call
361
+ def delete(
362
+ self,
363
+ open_p_g_p_distribution_href: StrictStr,
364
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
365
+ _request_timeout: Union[
366
+ None,
367
+ Annotated[StrictFloat, Field(gt=0)],
368
+ Tuple[
369
+ Annotated[StrictFloat, Field(gt=0)],
370
+ Annotated[StrictFloat, Field(gt=0)]
371
+ ]
372
+ ] = None,
373
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
374
+ _content_type: Optional[StrictStr] = None,
375
+ _headers: Optional[Dict[StrictStr, Any]] = None,
376
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
377
+ ) -> AsyncOperationResponse:
378
+ """Delete an open pgp distribution
379
+
380
+ Trigger an asynchronous delete task
381
+
382
+ :param open_p_g_p_distribution_href: (required)
383
+ :type open_p_g_p_distribution_href: str
384
+ :param x_task_diagnostics: List of profilers to use on tasks.
385
+ :type x_task_diagnostics: List[str]
386
+ :param _request_timeout: timeout setting for this request. If one
387
+ number provided, it will be total request
388
+ timeout. It can also be a pair (tuple) of
389
+ (connection, read) timeouts.
390
+ :type _request_timeout: int, tuple(int, int), optional
391
+ :param _request_auth: set to override the auth_settings for an a single
392
+ request; this effectively ignores the
393
+ authentication in the spec for a single request.
394
+ :type _request_auth: dict, optional
395
+ :param _content_type: force content-type for the request.
396
+ :type _content_type: str, Optional
397
+ :param _headers: set to override the headers for a single
398
+ request; this effectively ignores the headers
399
+ in the spec for a single request.
400
+ :type _headers: dict, optional
401
+ :param _host_index: set to override the host_index for a single
402
+ request; this effectively ignores the host_index
403
+ in the spec for a single request.
404
+ :type _host_index: int, optional
405
+ :return: Returns the result object.
406
+ """ # noqa: E501
407
+
408
+ _param = self._delete_serialize(
409
+ open_p_g_p_distribution_href=open_p_g_p_distribution_href,
410
+ x_task_diagnostics=x_task_diagnostics,
411
+ _request_auth=_request_auth,
412
+ _content_type=_content_type,
413
+ _headers=_headers,
414
+ _host_index=_host_index
415
+ )
416
+
417
+ _response_types_map: Dict[str, Optional[str]] = {
418
+ '202': "AsyncOperationResponse",
419
+ }
420
+ response_data = self.api_client.call_api(
421
+ *_param,
422
+ _request_timeout=_request_timeout
423
+ )
424
+ response_data.read()
425
+ return self.api_client.response_deserialize(
426
+ response_data=response_data,
427
+ response_types_map=_response_types_map,
428
+ ).data
429
+
430
+
431
+ @validate_call
432
+ def delete_with_http_info(
433
+ self,
434
+ open_p_g_p_distribution_href: StrictStr,
435
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
436
+ _request_timeout: Union[
437
+ None,
438
+ Annotated[StrictFloat, Field(gt=0)],
439
+ Tuple[
440
+ Annotated[StrictFloat, Field(gt=0)],
441
+ Annotated[StrictFloat, Field(gt=0)]
442
+ ]
443
+ ] = None,
444
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
445
+ _content_type: Optional[StrictStr] = None,
446
+ _headers: Optional[Dict[StrictStr, Any]] = None,
447
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
448
+ ) -> ApiResponse[AsyncOperationResponse]:
449
+ """Delete an open pgp distribution
450
+
451
+ Trigger an asynchronous delete task
452
+
453
+ :param open_p_g_p_distribution_href: (required)
454
+ :type open_p_g_p_distribution_href: str
455
+ :param x_task_diagnostics: List of profilers to use on tasks.
456
+ :type x_task_diagnostics: List[str]
457
+ :param _request_timeout: timeout setting for this request. If one
458
+ number provided, it will be total request
459
+ timeout. It can also be a pair (tuple) of
460
+ (connection, read) timeouts.
461
+ :type _request_timeout: int, tuple(int, int), optional
462
+ :param _request_auth: set to override the auth_settings for an a single
463
+ request; this effectively ignores the
464
+ authentication in the spec for a single request.
465
+ :type _request_auth: dict, optional
466
+ :param _content_type: force content-type for the request.
467
+ :type _content_type: str, Optional
468
+ :param _headers: set to override the headers for a single
469
+ request; this effectively ignores the headers
470
+ in the spec for a single request.
471
+ :type _headers: dict, optional
472
+ :param _host_index: set to override the host_index for a single
473
+ request; this effectively ignores the host_index
474
+ in the spec for a single request.
475
+ :type _host_index: int, optional
476
+ :return: Returns the result object.
477
+ """ # noqa: E501
478
+
479
+ _param = self._delete_serialize(
480
+ open_p_g_p_distribution_href=open_p_g_p_distribution_href,
481
+ x_task_diagnostics=x_task_diagnostics,
482
+ _request_auth=_request_auth,
483
+ _content_type=_content_type,
484
+ _headers=_headers,
485
+ _host_index=_host_index
486
+ )
487
+
488
+ _response_types_map: Dict[str, Optional[str]] = {
489
+ '202': "AsyncOperationResponse",
490
+ }
491
+ response_data = self.api_client.call_api(
492
+ *_param,
493
+ _request_timeout=_request_timeout
494
+ )
495
+ response_data.read()
496
+ return self.api_client.response_deserialize(
497
+ response_data=response_data,
498
+ response_types_map=_response_types_map,
499
+ )
500
+
501
+
502
+ @validate_call
503
+ def delete_without_preload_content(
504
+ self,
505
+ open_p_g_p_distribution_href: StrictStr,
506
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
507
+ _request_timeout: Union[
508
+ None,
509
+ Annotated[StrictFloat, Field(gt=0)],
510
+ Tuple[
511
+ Annotated[StrictFloat, Field(gt=0)],
512
+ Annotated[StrictFloat, Field(gt=0)]
513
+ ]
514
+ ] = None,
515
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
516
+ _content_type: Optional[StrictStr] = None,
517
+ _headers: Optional[Dict[StrictStr, Any]] = None,
518
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
519
+ ) -> RESTResponseType:
520
+ """Delete an open pgp distribution
521
+
522
+ Trigger an asynchronous delete task
523
+
524
+ :param open_p_g_p_distribution_href: (required)
525
+ :type open_p_g_p_distribution_href: str
526
+ :param x_task_diagnostics: List of profilers to use on tasks.
527
+ :type x_task_diagnostics: List[str]
528
+ :param _request_timeout: timeout setting for this request. If one
529
+ number provided, it will be total request
530
+ timeout. It can also be a pair (tuple) of
531
+ (connection, read) timeouts.
532
+ :type _request_timeout: int, tuple(int, int), optional
533
+ :param _request_auth: set to override the auth_settings for an a single
534
+ request; this effectively ignores the
535
+ authentication in the spec for a single request.
536
+ :type _request_auth: dict, optional
537
+ :param _content_type: force content-type for the request.
538
+ :type _content_type: str, Optional
539
+ :param _headers: set to override the headers for a single
540
+ request; this effectively ignores the headers
541
+ in the spec for a single request.
542
+ :type _headers: dict, optional
543
+ :param _host_index: set to override the host_index for a single
544
+ request; this effectively ignores the host_index
545
+ in the spec for a single request.
546
+ :type _host_index: int, optional
547
+ :return: Returns the result object.
548
+ """ # noqa: E501
549
+
550
+ _param = self._delete_serialize(
551
+ open_p_g_p_distribution_href=open_p_g_p_distribution_href,
552
+ x_task_diagnostics=x_task_diagnostics,
553
+ _request_auth=_request_auth,
554
+ _content_type=_content_type,
555
+ _headers=_headers,
556
+ _host_index=_host_index
557
+ )
558
+
559
+ _response_types_map: Dict[str, Optional[str]] = {
560
+ '202': "AsyncOperationResponse",
561
+ }
562
+ response_data = self.api_client.call_api(
563
+ *_param,
564
+ _request_timeout=_request_timeout
565
+ )
566
+ return response_data.response
567
+
568
+
569
+ def _delete_serialize(
570
+ self,
571
+ open_p_g_p_distribution_href,
572
+ x_task_diagnostics,
573
+ _request_auth,
574
+ _content_type,
575
+ _headers,
576
+ _host_index,
577
+ ) -> RequestSerialized:
578
+
579
+ _host = None
580
+
581
+ _collection_formats: Dict[str, str] = {
582
+ 'X-Task-Diagnostics': 'csv',
583
+ }
584
+
585
+ _path_params: Dict[str, str] = {}
586
+ _query_params: List[Tuple[str, str]] = []
587
+ _header_params: Dict[str, Optional[str]] = _headers or {}
588
+ _form_params: List[Tuple[str, str]] = []
589
+ _files: Dict[
590
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
591
+ ] = {}
592
+ _body_params: Optional[bytes] = None
593
+
594
+ # process the path parameters
595
+ if open_p_g_p_distribution_href is not None:
596
+ _path_params['open_p_g_p_distribution_href'] = open_p_g_p_distribution_href
597
+ # process the query parameters
598
+ # process the header parameters
599
+ if x_task_diagnostics is not None:
600
+ _header_params['X-Task-Diagnostics'] = x_task_diagnostics
601
+ # process the form parameters
602
+ # process the body parameter
603
+
604
+
605
+ # set the HTTP header `Accept`
606
+ if 'Accept' not in _header_params:
607
+ _header_params['Accept'] = self.api_client.select_header_accept(
608
+ [
609
+ 'application/json'
610
+ ]
611
+ )
612
+
613
+
614
+ # authentication setting
615
+ _auth_settings: List[str] = [
616
+ 'json_header_remote_authentication',
617
+ 'basicAuth',
618
+ 'cookieAuth'
619
+ ]
620
+
621
+ return self.api_client.param_serialize(
622
+ method='DELETE',
623
+ resource_path='{open_p_g_p_distribution_href}',
624
+ path_params=_path_params,
625
+ query_params=_query_params,
626
+ header_params=_header_params,
627
+ body=_body_params,
628
+ post_params=_form_params,
629
+ files=_files,
630
+ auth_settings=_auth_settings,
631
+ collection_formats=_collection_formats,
632
+ _host=_host,
633
+ _request_auth=_request_auth
634
+ )
635
+
636
+
637
+
638
+
639
+ @validate_call
640
+ def list(
641
+ self,
642
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
643
+ limit: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None,
644
+ offset: Annotated[Optional[StrictInt], Field(description="The initial index from which to return the results.")] = None,
645
+ 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) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `base_path` - Base path * `-base_path` - Base path (descending) * `hidden` - Hidden * `-hidden` - Hidden (descending) * `checkpoint` - Checkpoint * `-checkpoint` - Checkpoint (descending) * `pk` - Pk * `-pk` - Pk (descending)")] = None,
646
+ prn__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
647
+ pulp_href__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
648
+ pulp_id__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
649
+ pulp_label_select: Annotated[Optional[StrictStr], Field(description="Filter labels by search string")] = None,
650
+ q: Annotated[Optional[StrictStr], Field(description="Filter results by using NOT, AND and OR operations on other filters")] = None,
651
+ repository_version: Annotated[Optional[StrictStr], Field(description="Filter results where repository_version matches value")] = None,
652
+ with_content: Annotated[Optional[StrictStr], Field(description="Filter distributions based on the content served by them")] = None,
653
+ fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
654
+ exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
655
+ pulp_domain: StrictStr = "default",
656
+ _request_timeout: Union[
657
+ None,
658
+ Annotated[StrictFloat, Field(gt=0)],
659
+ Tuple[
660
+ Annotated[StrictFloat, Field(gt=0)],
661
+ Annotated[StrictFloat, Field(gt=0)]
662
+ ]
663
+ ] = None,
664
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
665
+ _content_type: Optional[StrictStr] = None,
666
+ _headers: Optional[Dict[StrictStr, Any]] = None,
667
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
668
+ ) -> PaginatedOpenPGPDistributionResponseList:
669
+ """List open pgp distributions
670
+
671
+ Provides read and list methods and also provides asynchronous CUD methods to dispatch tasks with reservation that lock all Distributions preventing race conditions during base_path checking.
672
+
673
+ :param pulp_domain: (required)
674
+ :type pulp_domain: str
675
+ :param x_task_diagnostics: List of profilers to use on tasks.
676
+ :type x_task_diagnostics: List[str]
677
+ :param limit: Number of results to return per page.
678
+ :type limit: int
679
+ :param offset: The initial index from which to return the results.
680
+ :type offset: int
681
+ :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) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `base_path` - Base path * `-base_path` - Base path (descending) * `hidden` - Hidden * `-hidden` - Hidden (descending) * `checkpoint` - Checkpoint * `-checkpoint` - Checkpoint (descending) * `pk` - Pk * `-pk` - Pk (descending)
682
+ :type ordering: List[str]
683
+ :param prn__in: Multiple values may be separated by commas.
684
+ :type prn__in: List[str]
685
+ :param pulp_href__in: Multiple values may be separated by commas.
686
+ :type pulp_href__in: List[str]
687
+ :param pulp_id__in: Multiple values may be separated by commas.
688
+ :type pulp_id__in: List[str]
689
+ :param pulp_label_select: Filter labels by search string
690
+ :type pulp_label_select: str
691
+ :param q: Filter results by using NOT, AND and OR operations on other filters
692
+ :type q: str
693
+ :param repository_version: Filter results where repository_version matches value
694
+ :type repository_version: str
695
+ :param with_content: Filter distributions based on the content served by them
696
+ :type with_content: str
697
+ :param fields: A list of fields to include in the response.
698
+ :type fields: List[str]
699
+ :param exclude_fields: A list of fields to exclude from the response.
700
+ :type exclude_fields: List[str]
701
+ :param _request_timeout: timeout setting for this request. If one
702
+ number provided, it will be total request
703
+ timeout. It can also be a pair (tuple) of
704
+ (connection, read) timeouts.
705
+ :type _request_timeout: int, tuple(int, int), optional
706
+ :param _request_auth: set to override the auth_settings for an a single
707
+ request; this effectively ignores the
708
+ authentication in the spec for a single request.
709
+ :type _request_auth: dict, optional
710
+ :param _content_type: force content-type for the request.
711
+ :type _content_type: str, Optional
712
+ :param _headers: set to override the headers for a single
713
+ request; this effectively ignores the headers
714
+ in the spec for a single request.
715
+ :type _headers: dict, optional
716
+ :param _host_index: set to override the host_index for a single
717
+ request; this effectively ignores the host_index
718
+ in the spec for a single request.
719
+ :type _host_index: int, optional
720
+ :return: Returns the result object.
721
+ """ # noqa: E501
722
+
723
+ _param = self._list_serialize(
724
+ pulp_domain=pulp_domain,
725
+ x_task_diagnostics=x_task_diagnostics,
726
+ limit=limit,
727
+ offset=offset,
728
+ ordering=ordering,
729
+ prn__in=prn__in,
730
+ pulp_href__in=pulp_href__in,
731
+ pulp_id__in=pulp_id__in,
732
+ pulp_label_select=pulp_label_select,
733
+ q=q,
734
+ repository_version=repository_version,
735
+ with_content=with_content,
736
+ fields=fields,
737
+ exclude_fields=exclude_fields,
738
+ _request_auth=_request_auth,
739
+ _content_type=_content_type,
740
+ _headers=_headers,
741
+ _host_index=_host_index
742
+ )
743
+
744
+ _response_types_map: Dict[str, Optional[str]] = {
745
+ '200': "PaginatedOpenPGPDistributionResponseList",
746
+ }
747
+ response_data = self.api_client.call_api(
748
+ *_param,
749
+ _request_timeout=_request_timeout
750
+ )
751
+ response_data.read()
752
+ return self.api_client.response_deserialize(
753
+ response_data=response_data,
754
+ response_types_map=_response_types_map,
755
+ ).data
756
+
757
+
758
+ @validate_call
759
+ def list_with_http_info(
760
+ self,
761
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
762
+ limit: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None,
763
+ offset: Annotated[Optional[StrictInt], Field(description="The initial index from which to return the results.")] = None,
764
+ 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) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `base_path` - Base path * `-base_path` - Base path (descending) * `hidden` - Hidden * `-hidden` - Hidden (descending) * `checkpoint` - Checkpoint * `-checkpoint` - Checkpoint (descending) * `pk` - Pk * `-pk` - Pk (descending)")] = None,
765
+ prn__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
766
+ pulp_href__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
767
+ pulp_id__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
768
+ pulp_label_select: Annotated[Optional[StrictStr], Field(description="Filter labels by search string")] = None,
769
+ q: Annotated[Optional[StrictStr], Field(description="Filter results by using NOT, AND and OR operations on other filters")] = None,
770
+ repository_version: Annotated[Optional[StrictStr], Field(description="Filter results where repository_version matches value")] = None,
771
+ with_content: Annotated[Optional[StrictStr], Field(description="Filter distributions based on the content served by them")] = None,
772
+ fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
773
+ exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
774
+ pulp_domain: StrictStr = "default",
775
+ _request_timeout: Union[
776
+ None,
777
+ Annotated[StrictFloat, Field(gt=0)],
778
+ Tuple[
779
+ Annotated[StrictFloat, Field(gt=0)],
780
+ Annotated[StrictFloat, Field(gt=0)]
781
+ ]
782
+ ] = None,
783
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
784
+ _content_type: Optional[StrictStr] = None,
785
+ _headers: Optional[Dict[StrictStr, Any]] = None,
786
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
787
+ ) -> ApiResponse[PaginatedOpenPGPDistributionResponseList]:
788
+ """List open pgp distributions
789
+
790
+ Provides read and list methods and also provides asynchronous CUD methods to dispatch tasks with reservation that lock all Distributions preventing race conditions during base_path checking.
791
+
792
+ :param pulp_domain: (required)
793
+ :type pulp_domain: str
794
+ :param x_task_diagnostics: List of profilers to use on tasks.
795
+ :type x_task_diagnostics: List[str]
796
+ :param limit: Number of results to return per page.
797
+ :type limit: int
798
+ :param offset: The initial index from which to return the results.
799
+ :type offset: int
800
+ :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) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `base_path` - Base path * `-base_path` - Base path (descending) * `hidden` - Hidden * `-hidden` - Hidden (descending) * `checkpoint` - Checkpoint * `-checkpoint` - Checkpoint (descending) * `pk` - Pk * `-pk` - Pk (descending)
801
+ :type ordering: List[str]
802
+ :param prn__in: Multiple values may be separated by commas.
803
+ :type prn__in: List[str]
804
+ :param pulp_href__in: Multiple values may be separated by commas.
805
+ :type pulp_href__in: List[str]
806
+ :param pulp_id__in: Multiple values may be separated by commas.
807
+ :type pulp_id__in: List[str]
808
+ :param pulp_label_select: Filter labels by search string
809
+ :type pulp_label_select: str
810
+ :param q: Filter results by using NOT, AND and OR operations on other filters
811
+ :type q: str
812
+ :param repository_version: Filter results where repository_version matches value
813
+ :type repository_version: str
814
+ :param with_content: Filter distributions based on the content served by them
815
+ :type with_content: str
816
+ :param fields: A list of fields to include in the response.
817
+ :type fields: List[str]
818
+ :param exclude_fields: A list of fields to exclude from the response.
819
+ :type exclude_fields: List[str]
820
+ :param _request_timeout: timeout setting for this request. If one
821
+ number provided, it will be total request
822
+ timeout. It can also be a pair (tuple) of
823
+ (connection, read) timeouts.
824
+ :type _request_timeout: int, tuple(int, int), optional
825
+ :param _request_auth: set to override the auth_settings for an a single
826
+ request; this effectively ignores the
827
+ authentication in the spec for a single request.
828
+ :type _request_auth: dict, optional
829
+ :param _content_type: force content-type for the request.
830
+ :type _content_type: str, Optional
831
+ :param _headers: set to override the headers for a single
832
+ request; this effectively ignores the headers
833
+ in the spec for a single request.
834
+ :type _headers: dict, optional
835
+ :param _host_index: set to override the host_index for a single
836
+ request; this effectively ignores the host_index
837
+ in the spec for a single request.
838
+ :type _host_index: int, optional
839
+ :return: Returns the result object.
840
+ """ # noqa: E501
841
+
842
+ _param = self._list_serialize(
843
+ pulp_domain=pulp_domain,
844
+ x_task_diagnostics=x_task_diagnostics,
845
+ limit=limit,
846
+ offset=offset,
847
+ ordering=ordering,
848
+ prn__in=prn__in,
849
+ pulp_href__in=pulp_href__in,
850
+ pulp_id__in=pulp_id__in,
851
+ pulp_label_select=pulp_label_select,
852
+ q=q,
853
+ repository_version=repository_version,
854
+ with_content=with_content,
855
+ fields=fields,
856
+ exclude_fields=exclude_fields,
857
+ _request_auth=_request_auth,
858
+ _content_type=_content_type,
859
+ _headers=_headers,
860
+ _host_index=_host_index
861
+ )
862
+
863
+ _response_types_map: Dict[str, Optional[str]] = {
864
+ '200': "PaginatedOpenPGPDistributionResponseList",
865
+ }
866
+ response_data = self.api_client.call_api(
867
+ *_param,
868
+ _request_timeout=_request_timeout
869
+ )
870
+ response_data.read()
871
+ return self.api_client.response_deserialize(
872
+ response_data=response_data,
873
+ response_types_map=_response_types_map,
874
+ )
875
+
876
+
877
+ @validate_call
878
+ def list_without_preload_content(
879
+ self,
880
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
881
+ limit: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None,
882
+ offset: Annotated[Optional[StrictInt], Field(description="The initial index from which to return the results.")] = None,
883
+ 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) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `base_path` - Base path * `-base_path` - Base path (descending) * `hidden` - Hidden * `-hidden` - Hidden (descending) * `checkpoint` - Checkpoint * `-checkpoint` - Checkpoint (descending) * `pk` - Pk * `-pk` - Pk (descending)")] = None,
884
+ prn__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
885
+ pulp_href__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
886
+ pulp_id__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
887
+ pulp_label_select: Annotated[Optional[StrictStr], Field(description="Filter labels by search string")] = None,
888
+ q: Annotated[Optional[StrictStr], Field(description="Filter results by using NOT, AND and OR operations on other filters")] = None,
889
+ repository_version: Annotated[Optional[StrictStr], Field(description="Filter results where repository_version matches value")] = None,
890
+ with_content: Annotated[Optional[StrictStr], Field(description="Filter distributions based on the content served by them")] = None,
891
+ fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
892
+ exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
893
+ pulp_domain: StrictStr = "default",
894
+ _request_timeout: Union[
895
+ None,
896
+ Annotated[StrictFloat, Field(gt=0)],
897
+ Tuple[
898
+ Annotated[StrictFloat, Field(gt=0)],
899
+ Annotated[StrictFloat, Field(gt=0)]
900
+ ]
901
+ ] = None,
902
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
903
+ _content_type: Optional[StrictStr] = None,
904
+ _headers: Optional[Dict[StrictStr, Any]] = None,
905
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
906
+ ) -> RESTResponseType:
907
+ """List open pgp distributions
908
+
909
+ Provides read and list methods and also provides asynchronous CUD methods to dispatch tasks with reservation that lock all Distributions preventing race conditions during base_path checking.
910
+
911
+ :param pulp_domain: (required)
912
+ :type pulp_domain: str
913
+ :param x_task_diagnostics: List of profilers to use on tasks.
914
+ :type x_task_diagnostics: List[str]
915
+ :param limit: Number of results to return per page.
916
+ :type limit: int
917
+ :param offset: The initial index from which to return the results.
918
+ :type offset: int
919
+ :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) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `base_path` - Base path * `-base_path` - Base path (descending) * `hidden` - Hidden * `-hidden` - Hidden (descending) * `checkpoint` - Checkpoint * `-checkpoint` - Checkpoint (descending) * `pk` - Pk * `-pk` - Pk (descending)
920
+ :type ordering: List[str]
921
+ :param prn__in: Multiple values may be separated by commas.
922
+ :type prn__in: List[str]
923
+ :param pulp_href__in: Multiple values may be separated by commas.
924
+ :type pulp_href__in: List[str]
925
+ :param pulp_id__in: Multiple values may be separated by commas.
926
+ :type pulp_id__in: List[str]
927
+ :param pulp_label_select: Filter labels by search string
928
+ :type pulp_label_select: str
929
+ :param q: Filter results by using NOT, AND and OR operations on other filters
930
+ :type q: str
931
+ :param repository_version: Filter results where repository_version matches value
932
+ :type repository_version: str
933
+ :param with_content: Filter distributions based on the content served by them
934
+ :type with_content: str
935
+ :param fields: A list of fields to include in the response.
936
+ :type fields: List[str]
937
+ :param exclude_fields: A list of fields to exclude from the response.
938
+ :type exclude_fields: List[str]
939
+ :param _request_timeout: timeout setting for this request. If one
940
+ number provided, it will be total request
941
+ timeout. It can also be a pair (tuple) of
942
+ (connection, read) timeouts.
943
+ :type _request_timeout: int, tuple(int, int), optional
944
+ :param _request_auth: set to override the auth_settings for an a single
945
+ request; this effectively ignores the
946
+ authentication in the spec for a single request.
947
+ :type _request_auth: dict, optional
948
+ :param _content_type: force content-type for the request.
949
+ :type _content_type: str, Optional
950
+ :param _headers: set to override the headers for a single
951
+ request; this effectively ignores the headers
952
+ in the spec for a single request.
953
+ :type _headers: dict, optional
954
+ :param _host_index: set to override the host_index for a single
955
+ request; this effectively ignores the host_index
956
+ in the spec for a single request.
957
+ :type _host_index: int, optional
958
+ :return: Returns the result object.
959
+ """ # noqa: E501
960
+
961
+ _param = self._list_serialize(
962
+ pulp_domain=pulp_domain,
963
+ x_task_diagnostics=x_task_diagnostics,
964
+ limit=limit,
965
+ offset=offset,
966
+ ordering=ordering,
967
+ prn__in=prn__in,
968
+ pulp_href__in=pulp_href__in,
969
+ pulp_id__in=pulp_id__in,
970
+ pulp_label_select=pulp_label_select,
971
+ q=q,
972
+ repository_version=repository_version,
973
+ with_content=with_content,
974
+ fields=fields,
975
+ exclude_fields=exclude_fields,
976
+ _request_auth=_request_auth,
977
+ _content_type=_content_type,
978
+ _headers=_headers,
979
+ _host_index=_host_index
980
+ )
981
+
982
+ _response_types_map: Dict[str, Optional[str]] = {
983
+ '200': "PaginatedOpenPGPDistributionResponseList",
984
+ }
985
+ response_data = self.api_client.call_api(
986
+ *_param,
987
+ _request_timeout=_request_timeout
988
+ )
989
+ return response_data.response
990
+
991
+
992
+ def _list_serialize(
993
+ self,
994
+ pulp_domain,
995
+ x_task_diagnostics,
996
+ limit,
997
+ offset,
998
+ ordering,
999
+ prn__in,
1000
+ pulp_href__in,
1001
+ pulp_id__in,
1002
+ pulp_label_select,
1003
+ q,
1004
+ repository_version,
1005
+ with_content,
1006
+ fields,
1007
+ exclude_fields,
1008
+ _request_auth,
1009
+ _content_type,
1010
+ _headers,
1011
+ _host_index,
1012
+ ) -> RequestSerialized:
1013
+
1014
+ _host = None
1015
+
1016
+ _collection_formats: Dict[str, str] = {
1017
+ 'X-Task-Diagnostics': 'csv',
1018
+ 'ordering': 'csv',
1019
+ 'prn__in': 'csv',
1020
+ 'pulp_href__in': 'csv',
1021
+ 'pulp_id__in': 'csv',
1022
+ 'fields': 'multi',
1023
+ 'exclude_fields': 'multi',
1024
+ }
1025
+
1026
+ _path_params: Dict[str, str] = {}
1027
+ _query_params: List[Tuple[str, str]] = []
1028
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1029
+ _form_params: List[Tuple[str, str]] = []
1030
+ _files: Dict[
1031
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1032
+ ] = {}
1033
+ _body_params: Optional[bytes] = None
1034
+
1035
+ # process the path parameters
1036
+ if pulp_domain is not None:
1037
+ _path_params['pulp_domain'] = pulp_domain
1038
+ # process the query parameters
1039
+ if limit is not None:
1040
+
1041
+ _query_params.append(('limit', limit))
1042
+
1043
+ if offset is not None:
1044
+
1045
+ _query_params.append(('offset', offset))
1046
+
1047
+ if ordering is not None:
1048
+
1049
+ _query_params.append(('ordering', ordering))
1050
+
1051
+ if prn__in is not None:
1052
+
1053
+ _query_params.append(('prn__in', prn__in))
1054
+
1055
+ if pulp_href__in is not None:
1056
+
1057
+ _query_params.append(('pulp_href__in', pulp_href__in))
1058
+
1059
+ if pulp_id__in is not None:
1060
+
1061
+ _query_params.append(('pulp_id__in', pulp_id__in))
1062
+
1063
+ if pulp_label_select is not None:
1064
+
1065
+ _query_params.append(('pulp_label_select', pulp_label_select))
1066
+
1067
+ if q is not None:
1068
+
1069
+ _query_params.append(('q', q))
1070
+
1071
+ if repository_version is not None:
1072
+
1073
+ _query_params.append(('repository_version', repository_version))
1074
+
1075
+ if with_content is not None:
1076
+
1077
+ _query_params.append(('with_content', with_content))
1078
+
1079
+ if fields is not None:
1080
+
1081
+ _query_params.append(('fields', fields))
1082
+
1083
+ if exclude_fields is not None:
1084
+
1085
+ _query_params.append(('exclude_fields', exclude_fields))
1086
+
1087
+ # process the header parameters
1088
+ if x_task_diagnostics is not None:
1089
+ _header_params['X-Task-Diagnostics'] = x_task_diagnostics
1090
+ # process the form parameters
1091
+ # process the body parameter
1092
+
1093
+
1094
+ # set the HTTP header `Accept`
1095
+ if 'Accept' not in _header_params:
1096
+ _header_params['Accept'] = self.api_client.select_header_accept(
1097
+ [
1098
+ 'application/json'
1099
+ ]
1100
+ )
1101
+
1102
+
1103
+ # authentication setting
1104
+ _auth_settings: List[str] = [
1105
+ 'json_header_remote_authentication',
1106
+ 'basicAuth',
1107
+ 'cookieAuth'
1108
+ ]
1109
+
1110
+ return self.api_client.param_serialize(
1111
+ method='GET',
1112
+ resource_path='/api/pulp/{pulp_domain}/api/v3/distributions/core/openpgp/',
1113
+ path_params=_path_params,
1114
+ query_params=_query_params,
1115
+ header_params=_header_params,
1116
+ body=_body_params,
1117
+ post_params=_form_params,
1118
+ files=_files,
1119
+ auth_settings=_auth_settings,
1120
+ collection_formats=_collection_formats,
1121
+ _host=_host,
1122
+ _request_auth=_request_auth
1123
+ )
1124
+
1125
+
1126
+
1127
+
1128
+ @validate_call
1129
+ def partial_update(
1130
+ self,
1131
+ open_p_g_p_distribution_href: StrictStr,
1132
+ patched_open_pgp_distribution: PatchedOpenPGPDistribution,
1133
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
1134
+ _request_timeout: Union[
1135
+ None,
1136
+ Annotated[StrictFloat, Field(gt=0)],
1137
+ Tuple[
1138
+ Annotated[StrictFloat, Field(gt=0)],
1139
+ Annotated[StrictFloat, Field(gt=0)]
1140
+ ]
1141
+ ] = None,
1142
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1143
+ _content_type: Optional[StrictStr] = None,
1144
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1145
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1146
+ ) -> AsyncOperationResponse:
1147
+ """Update an open pgp distribution
1148
+
1149
+ Trigger an asynchronous partial update task
1150
+
1151
+ :param open_p_g_p_distribution_href: (required)
1152
+ :type open_p_g_p_distribution_href: str
1153
+ :param patched_open_pgp_distribution: (required)
1154
+ :type patched_open_pgp_distribution: PatchedOpenPGPDistribution
1155
+ :param x_task_diagnostics: List of profilers to use on tasks.
1156
+ :type x_task_diagnostics: List[str]
1157
+ :param _request_timeout: timeout setting for this request. If one
1158
+ number provided, it will be total request
1159
+ timeout. It can also be a pair (tuple) of
1160
+ (connection, read) timeouts.
1161
+ :type _request_timeout: int, tuple(int, int), optional
1162
+ :param _request_auth: set to override the auth_settings for an a single
1163
+ request; this effectively ignores the
1164
+ authentication in the spec for a single request.
1165
+ :type _request_auth: dict, optional
1166
+ :param _content_type: force content-type for the request.
1167
+ :type _content_type: str, Optional
1168
+ :param _headers: set to override the headers for a single
1169
+ request; this effectively ignores the headers
1170
+ in the spec for a single request.
1171
+ :type _headers: dict, optional
1172
+ :param _host_index: set to override the host_index for a single
1173
+ request; this effectively ignores the host_index
1174
+ in the spec for a single request.
1175
+ :type _host_index: int, optional
1176
+ :return: Returns the result object.
1177
+ """ # noqa: E501
1178
+
1179
+ _param = self._partial_update_serialize(
1180
+ open_p_g_p_distribution_href=open_p_g_p_distribution_href,
1181
+ patched_open_pgp_distribution=patched_open_pgp_distribution,
1182
+ x_task_diagnostics=x_task_diagnostics,
1183
+ _request_auth=_request_auth,
1184
+ _content_type=_content_type,
1185
+ _headers=_headers,
1186
+ _host_index=_host_index
1187
+ )
1188
+
1189
+ _response_types_map: Dict[str, Optional[str]] = {
1190
+ '202': "AsyncOperationResponse",
1191
+ }
1192
+ response_data = self.api_client.call_api(
1193
+ *_param,
1194
+ _request_timeout=_request_timeout
1195
+ )
1196
+ response_data.read()
1197
+ return self.api_client.response_deserialize(
1198
+ response_data=response_data,
1199
+ response_types_map=_response_types_map,
1200
+ ).data
1201
+
1202
+
1203
+ @validate_call
1204
+ def partial_update_with_http_info(
1205
+ self,
1206
+ open_p_g_p_distribution_href: StrictStr,
1207
+ patched_open_pgp_distribution: PatchedOpenPGPDistribution,
1208
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
1209
+ _request_timeout: Union[
1210
+ None,
1211
+ Annotated[StrictFloat, Field(gt=0)],
1212
+ Tuple[
1213
+ Annotated[StrictFloat, Field(gt=0)],
1214
+ Annotated[StrictFloat, Field(gt=0)]
1215
+ ]
1216
+ ] = None,
1217
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1218
+ _content_type: Optional[StrictStr] = None,
1219
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1220
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1221
+ ) -> ApiResponse[AsyncOperationResponse]:
1222
+ """Update an open pgp distribution
1223
+
1224
+ Trigger an asynchronous partial update task
1225
+
1226
+ :param open_p_g_p_distribution_href: (required)
1227
+ :type open_p_g_p_distribution_href: str
1228
+ :param patched_open_pgp_distribution: (required)
1229
+ :type patched_open_pgp_distribution: PatchedOpenPGPDistribution
1230
+ :param x_task_diagnostics: List of profilers to use on tasks.
1231
+ :type x_task_diagnostics: List[str]
1232
+ :param _request_timeout: timeout setting for this request. If one
1233
+ number provided, it will be total request
1234
+ timeout. It can also be a pair (tuple) of
1235
+ (connection, read) timeouts.
1236
+ :type _request_timeout: int, tuple(int, int), optional
1237
+ :param _request_auth: set to override the auth_settings for an a single
1238
+ request; this effectively ignores the
1239
+ authentication in the spec for a single request.
1240
+ :type _request_auth: dict, optional
1241
+ :param _content_type: force content-type for the request.
1242
+ :type _content_type: str, Optional
1243
+ :param _headers: set to override the headers for a single
1244
+ request; this effectively ignores the headers
1245
+ in the spec for a single request.
1246
+ :type _headers: dict, optional
1247
+ :param _host_index: set to override the host_index for a single
1248
+ request; this effectively ignores the host_index
1249
+ in the spec for a single request.
1250
+ :type _host_index: int, optional
1251
+ :return: Returns the result object.
1252
+ """ # noqa: E501
1253
+
1254
+ _param = self._partial_update_serialize(
1255
+ open_p_g_p_distribution_href=open_p_g_p_distribution_href,
1256
+ patched_open_pgp_distribution=patched_open_pgp_distribution,
1257
+ x_task_diagnostics=x_task_diagnostics,
1258
+ _request_auth=_request_auth,
1259
+ _content_type=_content_type,
1260
+ _headers=_headers,
1261
+ _host_index=_host_index
1262
+ )
1263
+
1264
+ _response_types_map: Dict[str, Optional[str]] = {
1265
+ '202': "AsyncOperationResponse",
1266
+ }
1267
+ response_data = self.api_client.call_api(
1268
+ *_param,
1269
+ _request_timeout=_request_timeout
1270
+ )
1271
+ response_data.read()
1272
+ return self.api_client.response_deserialize(
1273
+ response_data=response_data,
1274
+ response_types_map=_response_types_map,
1275
+ )
1276
+
1277
+
1278
+ @validate_call
1279
+ def partial_update_without_preload_content(
1280
+ self,
1281
+ open_p_g_p_distribution_href: StrictStr,
1282
+ patched_open_pgp_distribution: PatchedOpenPGPDistribution,
1283
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
1284
+ _request_timeout: Union[
1285
+ None,
1286
+ Annotated[StrictFloat, Field(gt=0)],
1287
+ Tuple[
1288
+ Annotated[StrictFloat, Field(gt=0)],
1289
+ Annotated[StrictFloat, Field(gt=0)]
1290
+ ]
1291
+ ] = None,
1292
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1293
+ _content_type: Optional[StrictStr] = None,
1294
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1295
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1296
+ ) -> RESTResponseType:
1297
+ """Update an open pgp distribution
1298
+
1299
+ Trigger an asynchronous partial update task
1300
+
1301
+ :param open_p_g_p_distribution_href: (required)
1302
+ :type open_p_g_p_distribution_href: str
1303
+ :param patched_open_pgp_distribution: (required)
1304
+ :type patched_open_pgp_distribution: PatchedOpenPGPDistribution
1305
+ :param x_task_diagnostics: List of profilers to use on tasks.
1306
+ :type x_task_diagnostics: List[str]
1307
+ :param _request_timeout: timeout setting for this request. If one
1308
+ number provided, it will be total request
1309
+ timeout. It can also be a pair (tuple) of
1310
+ (connection, read) timeouts.
1311
+ :type _request_timeout: int, tuple(int, int), optional
1312
+ :param _request_auth: set to override the auth_settings for an a single
1313
+ request; this effectively ignores the
1314
+ authentication in the spec for a single request.
1315
+ :type _request_auth: dict, optional
1316
+ :param _content_type: force content-type for the request.
1317
+ :type _content_type: str, Optional
1318
+ :param _headers: set to override the headers for a single
1319
+ request; this effectively ignores the headers
1320
+ in the spec for a single request.
1321
+ :type _headers: dict, optional
1322
+ :param _host_index: set to override the host_index for a single
1323
+ request; this effectively ignores the host_index
1324
+ in the spec for a single request.
1325
+ :type _host_index: int, optional
1326
+ :return: Returns the result object.
1327
+ """ # noqa: E501
1328
+
1329
+ _param = self._partial_update_serialize(
1330
+ open_p_g_p_distribution_href=open_p_g_p_distribution_href,
1331
+ patched_open_pgp_distribution=patched_open_pgp_distribution,
1332
+ x_task_diagnostics=x_task_diagnostics,
1333
+ _request_auth=_request_auth,
1334
+ _content_type=_content_type,
1335
+ _headers=_headers,
1336
+ _host_index=_host_index
1337
+ )
1338
+
1339
+ _response_types_map: Dict[str, Optional[str]] = {
1340
+ '202': "AsyncOperationResponse",
1341
+ }
1342
+ response_data = self.api_client.call_api(
1343
+ *_param,
1344
+ _request_timeout=_request_timeout
1345
+ )
1346
+ return response_data.response
1347
+
1348
+
1349
+ def _partial_update_serialize(
1350
+ self,
1351
+ open_p_g_p_distribution_href,
1352
+ patched_open_pgp_distribution,
1353
+ x_task_diagnostics,
1354
+ _request_auth,
1355
+ _content_type,
1356
+ _headers,
1357
+ _host_index,
1358
+ ) -> RequestSerialized:
1359
+
1360
+ _host = None
1361
+
1362
+ _collection_formats: Dict[str, str] = {
1363
+ 'X-Task-Diagnostics': 'csv',
1364
+ }
1365
+
1366
+ _path_params: Dict[str, str] = {}
1367
+ _query_params: List[Tuple[str, str]] = []
1368
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1369
+ _form_params: List[Tuple[str, str]] = []
1370
+ _files: Dict[
1371
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1372
+ ] = {}
1373
+ _body_params: Optional[bytes] = None
1374
+
1375
+ # process the path parameters
1376
+ if open_p_g_p_distribution_href is not None:
1377
+ _path_params['open_p_g_p_distribution_href'] = open_p_g_p_distribution_href
1378
+ # process the query parameters
1379
+ # process the header parameters
1380
+ if x_task_diagnostics is not None:
1381
+ _header_params['X-Task-Diagnostics'] = x_task_diagnostics
1382
+ # process the form parameters
1383
+ # process the body parameter
1384
+ if patched_open_pgp_distribution is not None:
1385
+ _body_params = patched_open_pgp_distribution
1386
+
1387
+
1388
+ # set the HTTP header `Accept`
1389
+ if 'Accept' not in _header_params:
1390
+ _header_params['Accept'] = self.api_client.select_header_accept(
1391
+ [
1392
+ 'application/json'
1393
+ ]
1394
+ )
1395
+
1396
+ # set the HTTP header `Content-Type`
1397
+ if _content_type:
1398
+ _header_params['Content-Type'] = _content_type
1399
+ else:
1400
+ _default_content_type = (
1401
+ self.api_client.select_header_content_type(
1402
+ [
1403
+ 'application/json',
1404
+ 'application/x-www-form-urlencoded',
1405
+ 'multipart/form-data'
1406
+ ]
1407
+ )
1408
+ )
1409
+ if _default_content_type is not None:
1410
+ _header_params['Content-Type'] = _default_content_type
1411
+
1412
+ # authentication setting
1413
+ _auth_settings: List[str] = [
1414
+ 'json_header_remote_authentication',
1415
+ 'basicAuth',
1416
+ 'cookieAuth'
1417
+ ]
1418
+
1419
+ return self.api_client.param_serialize(
1420
+ method='PATCH',
1421
+ resource_path='{open_p_g_p_distribution_href}',
1422
+ path_params=_path_params,
1423
+ query_params=_query_params,
1424
+ header_params=_header_params,
1425
+ body=_body_params,
1426
+ post_params=_form_params,
1427
+ files=_files,
1428
+ auth_settings=_auth_settings,
1429
+ collection_formats=_collection_formats,
1430
+ _host=_host,
1431
+ _request_auth=_request_auth
1432
+ )
1433
+
1434
+
1435
+
1436
+
1437
+ @validate_call
1438
+ def read(
1439
+ self,
1440
+ open_p_g_p_distribution_href: StrictStr,
1441
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
1442
+ fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
1443
+ exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
1444
+ _request_timeout: Union[
1445
+ None,
1446
+ Annotated[StrictFloat, Field(gt=0)],
1447
+ Tuple[
1448
+ Annotated[StrictFloat, Field(gt=0)],
1449
+ Annotated[StrictFloat, Field(gt=0)]
1450
+ ]
1451
+ ] = None,
1452
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1453
+ _content_type: Optional[StrictStr] = None,
1454
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1455
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1456
+ ) -> OpenPGPDistributionResponse:
1457
+ """Inspect an open pgp distribution
1458
+
1459
+ Provides read and list methods and also provides asynchronous CUD methods to dispatch tasks with reservation that lock all Distributions preventing race conditions during base_path checking.
1460
+
1461
+ :param open_p_g_p_distribution_href: (required)
1462
+ :type open_p_g_p_distribution_href: str
1463
+ :param x_task_diagnostics: List of profilers to use on tasks.
1464
+ :type x_task_diagnostics: List[str]
1465
+ :param fields: A list of fields to include in the response.
1466
+ :type fields: List[str]
1467
+ :param exclude_fields: A list of fields to exclude from the response.
1468
+ :type exclude_fields: List[str]
1469
+ :param _request_timeout: timeout setting for this request. If one
1470
+ number provided, it will be total request
1471
+ timeout. It can also be a pair (tuple) of
1472
+ (connection, read) timeouts.
1473
+ :type _request_timeout: int, tuple(int, int), optional
1474
+ :param _request_auth: set to override the auth_settings for an a single
1475
+ request; this effectively ignores the
1476
+ authentication in the spec for a single request.
1477
+ :type _request_auth: dict, optional
1478
+ :param _content_type: force content-type for the request.
1479
+ :type _content_type: str, Optional
1480
+ :param _headers: set to override the headers for a single
1481
+ request; this effectively ignores the headers
1482
+ in the spec for a single request.
1483
+ :type _headers: dict, optional
1484
+ :param _host_index: set to override the host_index for a single
1485
+ request; this effectively ignores the host_index
1486
+ in the spec for a single request.
1487
+ :type _host_index: int, optional
1488
+ :return: Returns the result object.
1489
+ """ # noqa: E501
1490
+
1491
+ _param = self._read_serialize(
1492
+ open_p_g_p_distribution_href=open_p_g_p_distribution_href,
1493
+ x_task_diagnostics=x_task_diagnostics,
1494
+ fields=fields,
1495
+ exclude_fields=exclude_fields,
1496
+ _request_auth=_request_auth,
1497
+ _content_type=_content_type,
1498
+ _headers=_headers,
1499
+ _host_index=_host_index
1500
+ )
1501
+
1502
+ _response_types_map: Dict[str, Optional[str]] = {
1503
+ '200': "OpenPGPDistributionResponse",
1504
+ }
1505
+ response_data = self.api_client.call_api(
1506
+ *_param,
1507
+ _request_timeout=_request_timeout
1508
+ )
1509
+ response_data.read()
1510
+ return self.api_client.response_deserialize(
1511
+ response_data=response_data,
1512
+ response_types_map=_response_types_map,
1513
+ ).data
1514
+
1515
+
1516
+ @validate_call
1517
+ def read_with_http_info(
1518
+ self,
1519
+ open_p_g_p_distribution_href: StrictStr,
1520
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
1521
+ fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
1522
+ exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
1523
+ _request_timeout: Union[
1524
+ None,
1525
+ Annotated[StrictFloat, Field(gt=0)],
1526
+ Tuple[
1527
+ Annotated[StrictFloat, Field(gt=0)],
1528
+ Annotated[StrictFloat, Field(gt=0)]
1529
+ ]
1530
+ ] = None,
1531
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1532
+ _content_type: Optional[StrictStr] = None,
1533
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1534
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1535
+ ) -> ApiResponse[OpenPGPDistributionResponse]:
1536
+ """Inspect an open pgp distribution
1537
+
1538
+ Provides read and list methods and also provides asynchronous CUD methods to dispatch tasks with reservation that lock all Distributions preventing race conditions during base_path checking.
1539
+
1540
+ :param open_p_g_p_distribution_href: (required)
1541
+ :type open_p_g_p_distribution_href: str
1542
+ :param x_task_diagnostics: List of profilers to use on tasks.
1543
+ :type x_task_diagnostics: List[str]
1544
+ :param fields: A list of fields to include in the response.
1545
+ :type fields: List[str]
1546
+ :param exclude_fields: A list of fields to exclude from the response.
1547
+ :type exclude_fields: List[str]
1548
+ :param _request_timeout: timeout setting for this request. If one
1549
+ number provided, it will be total request
1550
+ timeout. It can also be a pair (tuple) of
1551
+ (connection, read) timeouts.
1552
+ :type _request_timeout: int, tuple(int, int), optional
1553
+ :param _request_auth: set to override the auth_settings for an a single
1554
+ request; this effectively ignores the
1555
+ authentication in the spec for a single request.
1556
+ :type _request_auth: dict, optional
1557
+ :param _content_type: force content-type for the request.
1558
+ :type _content_type: str, Optional
1559
+ :param _headers: set to override the headers for a single
1560
+ request; this effectively ignores the headers
1561
+ in the spec for a single request.
1562
+ :type _headers: dict, optional
1563
+ :param _host_index: set to override the host_index for a single
1564
+ request; this effectively ignores the host_index
1565
+ in the spec for a single request.
1566
+ :type _host_index: int, optional
1567
+ :return: Returns the result object.
1568
+ """ # noqa: E501
1569
+
1570
+ _param = self._read_serialize(
1571
+ open_p_g_p_distribution_href=open_p_g_p_distribution_href,
1572
+ x_task_diagnostics=x_task_diagnostics,
1573
+ fields=fields,
1574
+ exclude_fields=exclude_fields,
1575
+ _request_auth=_request_auth,
1576
+ _content_type=_content_type,
1577
+ _headers=_headers,
1578
+ _host_index=_host_index
1579
+ )
1580
+
1581
+ _response_types_map: Dict[str, Optional[str]] = {
1582
+ '200': "OpenPGPDistributionResponse",
1583
+ }
1584
+ response_data = self.api_client.call_api(
1585
+ *_param,
1586
+ _request_timeout=_request_timeout
1587
+ )
1588
+ response_data.read()
1589
+ return self.api_client.response_deserialize(
1590
+ response_data=response_data,
1591
+ response_types_map=_response_types_map,
1592
+ )
1593
+
1594
+
1595
+ @validate_call
1596
+ def read_without_preload_content(
1597
+ self,
1598
+ open_p_g_p_distribution_href: StrictStr,
1599
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
1600
+ fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
1601
+ exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
1602
+ _request_timeout: Union[
1603
+ None,
1604
+ Annotated[StrictFloat, Field(gt=0)],
1605
+ Tuple[
1606
+ Annotated[StrictFloat, Field(gt=0)],
1607
+ Annotated[StrictFloat, Field(gt=0)]
1608
+ ]
1609
+ ] = None,
1610
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1611
+ _content_type: Optional[StrictStr] = None,
1612
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1613
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1614
+ ) -> RESTResponseType:
1615
+ """Inspect an open pgp distribution
1616
+
1617
+ Provides read and list methods and also provides asynchronous CUD methods to dispatch tasks with reservation that lock all Distributions preventing race conditions during base_path checking.
1618
+
1619
+ :param open_p_g_p_distribution_href: (required)
1620
+ :type open_p_g_p_distribution_href: str
1621
+ :param x_task_diagnostics: List of profilers to use on tasks.
1622
+ :type x_task_diagnostics: List[str]
1623
+ :param fields: A list of fields to include in the response.
1624
+ :type fields: List[str]
1625
+ :param exclude_fields: A list of fields to exclude from the response.
1626
+ :type exclude_fields: List[str]
1627
+ :param _request_timeout: timeout setting for this request. If one
1628
+ number provided, it will be total request
1629
+ timeout. It can also be a pair (tuple) of
1630
+ (connection, read) timeouts.
1631
+ :type _request_timeout: int, tuple(int, int), optional
1632
+ :param _request_auth: set to override the auth_settings for an a single
1633
+ request; this effectively ignores the
1634
+ authentication in the spec for a single request.
1635
+ :type _request_auth: dict, optional
1636
+ :param _content_type: force content-type for the request.
1637
+ :type _content_type: str, Optional
1638
+ :param _headers: set to override the headers for a single
1639
+ request; this effectively ignores the headers
1640
+ in the spec for a single request.
1641
+ :type _headers: dict, optional
1642
+ :param _host_index: set to override the host_index for a single
1643
+ request; this effectively ignores the host_index
1644
+ in the spec for a single request.
1645
+ :type _host_index: int, optional
1646
+ :return: Returns the result object.
1647
+ """ # noqa: E501
1648
+
1649
+ _param = self._read_serialize(
1650
+ open_p_g_p_distribution_href=open_p_g_p_distribution_href,
1651
+ x_task_diagnostics=x_task_diagnostics,
1652
+ fields=fields,
1653
+ exclude_fields=exclude_fields,
1654
+ _request_auth=_request_auth,
1655
+ _content_type=_content_type,
1656
+ _headers=_headers,
1657
+ _host_index=_host_index
1658
+ )
1659
+
1660
+ _response_types_map: Dict[str, Optional[str]] = {
1661
+ '200': "OpenPGPDistributionResponse",
1662
+ }
1663
+ response_data = self.api_client.call_api(
1664
+ *_param,
1665
+ _request_timeout=_request_timeout
1666
+ )
1667
+ return response_data.response
1668
+
1669
+
1670
+ def _read_serialize(
1671
+ self,
1672
+ open_p_g_p_distribution_href,
1673
+ x_task_diagnostics,
1674
+ fields,
1675
+ exclude_fields,
1676
+ _request_auth,
1677
+ _content_type,
1678
+ _headers,
1679
+ _host_index,
1680
+ ) -> RequestSerialized:
1681
+
1682
+ _host = None
1683
+
1684
+ _collection_formats: Dict[str, str] = {
1685
+ 'X-Task-Diagnostics': 'csv',
1686
+ 'fields': 'multi',
1687
+ 'exclude_fields': 'multi',
1688
+ }
1689
+
1690
+ _path_params: Dict[str, str] = {}
1691
+ _query_params: List[Tuple[str, str]] = []
1692
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1693
+ _form_params: List[Tuple[str, str]] = []
1694
+ _files: Dict[
1695
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1696
+ ] = {}
1697
+ _body_params: Optional[bytes] = None
1698
+
1699
+ # process the path parameters
1700
+ if open_p_g_p_distribution_href is not None:
1701
+ _path_params['open_p_g_p_distribution_href'] = open_p_g_p_distribution_href
1702
+ # process the query parameters
1703
+ if fields is not None:
1704
+
1705
+ _query_params.append(('fields', fields))
1706
+
1707
+ if exclude_fields is not None:
1708
+
1709
+ _query_params.append(('exclude_fields', exclude_fields))
1710
+
1711
+ # process the header parameters
1712
+ if x_task_diagnostics is not None:
1713
+ _header_params['X-Task-Diagnostics'] = x_task_diagnostics
1714
+ # process the form parameters
1715
+ # process the body parameter
1716
+
1717
+
1718
+ # set the HTTP header `Accept`
1719
+ if 'Accept' not in _header_params:
1720
+ _header_params['Accept'] = self.api_client.select_header_accept(
1721
+ [
1722
+ 'application/json'
1723
+ ]
1724
+ )
1725
+
1726
+
1727
+ # authentication setting
1728
+ _auth_settings: List[str] = [
1729
+ 'json_header_remote_authentication',
1730
+ 'basicAuth',
1731
+ 'cookieAuth'
1732
+ ]
1733
+
1734
+ return self.api_client.param_serialize(
1735
+ method='GET',
1736
+ resource_path='{open_p_g_p_distribution_href}',
1737
+ path_params=_path_params,
1738
+ query_params=_query_params,
1739
+ header_params=_header_params,
1740
+ body=_body_params,
1741
+ post_params=_form_params,
1742
+ files=_files,
1743
+ auth_settings=_auth_settings,
1744
+ collection_formats=_collection_formats,
1745
+ _host=_host,
1746
+ _request_auth=_request_auth
1747
+ )
1748
+
1749
+
1750
+
1751
+
1752
+ @validate_call
1753
+ def set_label(
1754
+ self,
1755
+ open_p_g_p_distribution_href: StrictStr,
1756
+ set_label: SetLabel,
1757
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
1758
+ _request_timeout: Union[
1759
+ None,
1760
+ Annotated[StrictFloat, Field(gt=0)],
1761
+ Tuple[
1762
+ Annotated[StrictFloat, Field(gt=0)],
1763
+ Annotated[StrictFloat, Field(gt=0)]
1764
+ ]
1765
+ ] = None,
1766
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1767
+ _content_type: Optional[StrictStr] = None,
1768
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1769
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1770
+ ) -> SetLabelResponse:
1771
+ """Set a label
1772
+
1773
+ Set a single pulp_label on the object to a specific value or null.
1774
+
1775
+ :param open_p_g_p_distribution_href: (required)
1776
+ :type open_p_g_p_distribution_href: str
1777
+ :param set_label: (required)
1778
+ :type set_label: SetLabel
1779
+ :param x_task_diagnostics: List of profilers to use on tasks.
1780
+ :type x_task_diagnostics: List[str]
1781
+ :param _request_timeout: timeout setting for this request. If one
1782
+ number provided, it will be total request
1783
+ timeout. It can also be a pair (tuple) of
1784
+ (connection, read) timeouts.
1785
+ :type _request_timeout: int, tuple(int, int), optional
1786
+ :param _request_auth: set to override the auth_settings for an a single
1787
+ request; this effectively ignores the
1788
+ authentication in the spec for a single request.
1789
+ :type _request_auth: dict, optional
1790
+ :param _content_type: force content-type for the request.
1791
+ :type _content_type: str, Optional
1792
+ :param _headers: set to override the headers for a single
1793
+ request; this effectively ignores the headers
1794
+ in the spec for a single request.
1795
+ :type _headers: dict, optional
1796
+ :param _host_index: set to override the host_index for a single
1797
+ request; this effectively ignores the host_index
1798
+ in the spec for a single request.
1799
+ :type _host_index: int, optional
1800
+ :return: Returns the result object.
1801
+ """ # noqa: E501
1802
+
1803
+ _param = self._set_label_serialize(
1804
+ open_p_g_p_distribution_href=open_p_g_p_distribution_href,
1805
+ set_label=set_label,
1806
+ x_task_diagnostics=x_task_diagnostics,
1807
+ _request_auth=_request_auth,
1808
+ _content_type=_content_type,
1809
+ _headers=_headers,
1810
+ _host_index=_host_index
1811
+ )
1812
+
1813
+ _response_types_map: Dict[str, Optional[str]] = {
1814
+ '200': "SetLabelResponse",
1815
+ }
1816
+ response_data = self.api_client.call_api(
1817
+ *_param,
1818
+ _request_timeout=_request_timeout
1819
+ )
1820
+ response_data.read()
1821
+ return self.api_client.response_deserialize(
1822
+ response_data=response_data,
1823
+ response_types_map=_response_types_map,
1824
+ ).data
1825
+
1826
+
1827
+ @validate_call
1828
+ def set_label_with_http_info(
1829
+ self,
1830
+ open_p_g_p_distribution_href: StrictStr,
1831
+ set_label: SetLabel,
1832
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
1833
+ _request_timeout: Union[
1834
+ None,
1835
+ Annotated[StrictFloat, Field(gt=0)],
1836
+ Tuple[
1837
+ Annotated[StrictFloat, Field(gt=0)],
1838
+ Annotated[StrictFloat, Field(gt=0)]
1839
+ ]
1840
+ ] = None,
1841
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1842
+ _content_type: Optional[StrictStr] = None,
1843
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1844
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1845
+ ) -> ApiResponse[SetLabelResponse]:
1846
+ """Set a label
1847
+
1848
+ Set a single pulp_label on the object to a specific value or null.
1849
+
1850
+ :param open_p_g_p_distribution_href: (required)
1851
+ :type open_p_g_p_distribution_href: str
1852
+ :param set_label: (required)
1853
+ :type set_label: SetLabel
1854
+ :param x_task_diagnostics: List of profilers to use on tasks.
1855
+ :type x_task_diagnostics: List[str]
1856
+ :param _request_timeout: timeout setting for this request. If one
1857
+ number provided, it will be total request
1858
+ timeout. It can also be a pair (tuple) of
1859
+ (connection, read) timeouts.
1860
+ :type _request_timeout: int, tuple(int, int), optional
1861
+ :param _request_auth: set to override the auth_settings for an a single
1862
+ request; this effectively ignores the
1863
+ authentication in the spec for a single request.
1864
+ :type _request_auth: dict, optional
1865
+ :param _content_type: force content-type for the request.
1866
+ :type _content_type: str, Optional
1867
+ :param _headers: set to override the headers for a single
1868
+ request; this effectively ignores the headers
1869
+ in the spec for a single request.
1870
+ :type _headers: dict, optional
1871
+ :param _host_index: set to override the host_index for a single
1872
+ request; this effectively ignores the host_index
1873
+ in the spec for a single request.
1874
+ :type _host_index: int, optional
1875
+ :return: Returns the result object.
1876
+ """ # noqa: E501
1877
+
1878
+ _param = self._set_label_serialize(
1879
+ open_p_g_p_distribution_href=open_p_g_p_distribution_href,
1880
+ set_label=set_label,
1881
+ x_task_diagnostics=x_task_diagnostics,
1882
+ _request_auth=_request_auth,
1883
+ _content_type=_content_type,
1884
+ _headers=_headers,
1885
+ _host_index=_host_index
1886
+ )
1887
+
1888
+ _response_types_map: Dict[str, Optional[str]] = {
1889
+ '200': "SetLabelResponse",
1890
+ }
1891
+ response_data = self.api_client.call_api(
1892
+ *_param,
1893
+ _request_timeout=_request_timeout
1894
+ )
1895
+ response_data.read()
1896
+ return self.api_client.response_deserialize(
1897
+ response_data=response_data,
1898
+ response_types_map=_response_types_map,
1899
+ )
1900
+
1901
+
1902
+ @validate_call
1903
+ def set_label_without_preload_content(
1904
+ self,
1905
+ open_p_g_p_distribution_href: StrictStr,
1906
+ set_label: SetLabel,
1907
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
1908
+ _request_timeout: Union[
1909
+ None,
1910
+ Annotated[StrictFloat, Field(gt=0)],
1911
+ Tuple[
1912
+ Annotated[StrictFloat, Field(gt=0)],
1913
+ Annotated[StrictFloat, Field(gt=0)]
1914
+ ]
1915
+ ] = None,
1916
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1917
+ _content_type: Optional[StrictStr] = None,
1918
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1919
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1920
+ ) -> RESTResponseType:
1921
+ """Set a label
1922
+
1923
+ Set a single pulp_label on the object to a specific value or null.
1924
+
1925
+ :param open_p_g_p_distribution_href: (required)
1926
+ :type open_p_g_p_distribution_href: str
1927
+ :param set_label: (required)
1928
+ :type set_label: SetLabel
1929
+ :param x_task_diagnostics: List of profilers to use on tasks.
1930
+ :type x_task_diagnostics: List[str]
1931
+ :param _request_timeout: timeout setting for this request. If one
1932
+ number provided, it will be total request
1933
+ timeout. It can also be a pair (tuple) of
1934
+ (connection, read) timeouts.
1935
+ :type _request_timeout: int, tuple(int, int), optional
1936
+ :param _request_auth: set to override the auth_settings for an a single
1937
+ request; this effectively ignores the
1938
+ authentication in the spec for a single request.
1939
+ :type _request_auth: dict, optional
1940
+ :param _content_type: force content-type for the request.
1941
+ :type _content_type: str, Optional
1942
+ :param _headers: set to override the headers for a single
1943
+ request; this effectively ignores the headers
1944
+ in the spec for a single request.
1945
+ :type _headers: dict, optional
1946
+ :param _host_index: set to override the host_index for a single
1947
+ request; this effectively ignores the host_index
1948
+ in the spec for a single request.
1949
+ :type _host_index: int, optional
1950
+ :return: Returns the result object.
1951
+ """ # noqa: E501
1952
+
1953
+ _param = self._set_label_serialize(
1954
+ open_p_g_p_distribution_href=open_p_g_p_distribution_href,
1955
+ set_label=set_label,
1956
+ x_task_diagnostics=x_task_diagnostics,
1957
+ _request_auth=_request_auth,
1958
+ _content_type=_content_type,
1959
+ _headers=_headers,
1960
+ _host_index=_host_index
1961
+ )
1962
+
1963
+ _response_types_map: Dict[str, Optional[str]] = {
1964
+ '200': "SetLabelResponse",
1965
+ }
1966
+ response_data = self.api_client.call_api(
1967
+ *_param,
1968
+ _request_timeout=_request_timeout
1969
+ )
1970
+ return response_data.response
1971
+
1972
+
1973
+ def _set_label_serialize(
1974
+ self,
1975
+ open_p_g_p_distribution_href,
1976
+ set_label,
1977
+ x_task_diagnostics,
1978
+ _request_auth,
1979
+ _content_type,
1980
+ _headers,
1981
+ _host_index,
1982
+ ) -> RequestSerialized:
1983
+
1984
+ _host = None
1985
+
1986
+ _collection_formats: Dict[str, str] = {
1987
+ 'X-Task-Diagnostics': 'csv',
1988
+ }
1989
+
1990
+ _path_params: Dict[str, str] = {}
1991
+ _query_params: List[Tuple[str, str]] = []
1992
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1993
+ _form_params: List[Tuple[str, str]] = []
1994
+ _files: Dict[
1995
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1996
+ ] = {}
1997
+ _body_params: Optional[bytes] = None
1998
+
1999
+ # process the path parameters
2000
+ if open_p_g_p_distribution_href is not None:
2001
+ _path_params['open_p_g_p_distribution_href'] = open_p_g_p_distribution_href
2002
+ # process the query parameters
2003
+ # process the header parameters
2004
+ if x_task_diagnostics is not None:
2005
+ _header_params['X-Task-Diagnostics'] = x_task_diagnostics
2006
+ # process the form parameters
2007
+ # process the body parameter
2008
+ if set_label is not None:
2009
+ _body_params = set_label
2010
+
2011
+
2012
+ # set the HTTP header `Accept`
2013
+ if 'Accept' not in _header_params:
2014
+ _header_params['Accept'] = self.api_client.select_header_accept(
2015
+ [
2016
+ 'application/json'
2017
+ ]
2018
+ )
2019
+
2020
+ # set the HTTP header `Content-Type`
2021
+ if _content_type:
2022
+ _header_params['Content-Type'] = _content_type
2023
+ else:
2024
+ _default_content_type = (
2025
+ self.api_client.select_header_content_type(
2026
+ [
2027
+ 'application/json',
2028
+ 'application/x-www-form-urlencoded',
2029
+ 'multipart/form-data'
2030
+ ]
2031
+ )
2032
+ )
2033
+ if _default_content_type is not None:
2034
+ _header_params['Content-Type'] = _default_content_type
2035
+
2036
+ # authentication setting
2037
+ _auth_settings: List[str] = [
2038
+ 'json_header_remote_authentication',
2039
+ 'basicAuth',
2040
+ 'cookieAuth'
2041
+ ]
2042
+
2043
+ return self.api_client.param_serialize(
2044
+ method='POST',
2045
+ resource_path='{open_p_g_p_distribution_href}set_label/',
2046
+ path_params=_path_params,
2047
+ query_params=_query_params,
2048
+ header_params=_header_params,
2049
+ body=_body_params,
2050
+ post_params=_form_params,
2051
+ files=_files,
2052
+ auth_settings=_auth_settings,
2053
+ collection_formats=_collection_formats,
2054
+ _host=_host,
2055
+ _request_auth=_request_auth
2056
+ )
2057
+
2058
+
2059
+
2060
+
2061
+ @validate_call
2062
+ def unset_label(
2063
+ self,
2064
+ open_p_g_p_distribution_href: StrictStr,
2065
+ unset_label: UnsetLabel,
2066
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
2067
+ _request_timeout: Union[
2068
+ None,
2069
+ Annotated[StrictFloat, Field(gt=0)],
2070
+ Tuple[
2071
+ Annotated[StrictFloat, Field(gt=0)],
2072
+ Annotated[StrictFloat, Field(gt=0)]
2073
+ ]
2074
+ ] = None,
2075
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2076
+ _content_type: Optional[StrictStr] = None,
2077
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2078
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2079
+ ) -> UnsetLabelResponse:
2080
+ """Unset a label
2081
+
2082
+ Unset a single pulp_label on the object.
2083
+
2084
+ :param open_p_g_p_distribution_href: (required)
2085
+ :type open_p_g_p_distribution_href: str
2086
+ :param unset_label: (required)
2087
+ :type unset_label: UnsetLabel
2088
+ :param x_task_diagnostics: List of profilers to use on tasks.
2089
+ :type x_task_diagnostics: List[str]
2090
+ :param _request_timeout: timeout setting for this request. If one
2091
+ number provided, it will be total request
2092
+ timeout. It can also be a pair (tuple) of
2093
+ (connection, read) timeouts.
2094
+ :type _request_timeout: int, tuple(int, int), optional
2095
+ :param _request_auth: set to override the auth_settings for an a single
2096
+ request; this effectively ignores the
2097
+ authentication in the spec for a single request.
2098
+ :type _request_auth: dict, optional
2099
+ :param _content_type: force content-type for the request.
2100
+ :type _content_type: str, Optional
2101
+ :param _headers: set to override the headers for a single
2102
+ request; this effectively ignores the headers
2103
+ in the spec for a single request.
2104
+ :type _headers: dict, optional
2105
+ :param _host_index: set to override the host_index for a single
2106
+ request; this effectively ignores the host_index
2107
+ in the spec for a single request.
2108
+ :type _host_index: int, optional
2109
+ :return: Returns the result object.
2110
+ """ # noqa: E501
2111
+
2112
+ _param = self._unset_label_serialize(
2113
+ open_p_g_p_distribution_href=open_p_g_p_distribution_href,
2114
+ unset_label=unset_label,
2115
+ x_task_diagnostics=x_task_diagnostics,
2116
+ _request_auth=_request_auth,
2117
+ _content_type=_content_type,
2118
+ _headers=_headers,
2119
+ _host_index=_host_index
2120
+ )
2121
+
2122
+ _response_types_map: Dict[str, Optional[str]] = {
2123
+ '200': "UnsetLabelResponse",
2124
+ }
2125
+ response_data = self.api_client.call_api(
2126
+ *_param,
2127
+ _request_timeout=_request_timeout
2128
+ )
2129
+ response_data.read()
2130
+ return self.api_client.response_deserialize(
2131
+ response_data=response_data,
2132
+ response_types_map=_response_types_map,
2133
+ ).data
2134
+
2135
+
2136
+ @validate_call
2137
+ def unset_label_with_http_info(
2138
+ self,
2139
+ open_p_g_p_distribution_href: StrictStr,
2140
+ unset_label: UnsetLabel,
2141
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
2142
+ _request_timeout: Union[
2143
+ None,
2144
+ Annotated[StrictFloat, Field(gt=0)],
2145
+ Tuple[
2146
+ Annotated[StrictFloat, Field(gt=0)],
2147
+ Annotated[StrictFloat, Field(gt=0)]
2148
+ ]
2149
+ ] = None,
2150
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2151
+ _content_type: Optional[StrictStr] = None,
2152
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2153
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2154
+ ) -> ApiResponse[UnsetLabelResponse]:
2155
+ """Unset a label
2156
+
2157
+ Unset a single pulp_label on the object.
2158
+
2159
+ :param open_p_g_p_distribution_href: (required)
2160
+ :type open_p_g_p_distribution_href: str
2161
+ :param unset_label: (required)
2162
+ :type unset_label: UnsetLabel
2163
+ :param x_task_diagnostics: List of profilers to use on tasks.
2164
+ :type x_task_diagnostics: List[str]
2165
+ :param _request_timeout: timeout setting for this request. If one
2166
+ number provided, it will be total request
2167
+ timeout. It can also be a pair (tuple) of
2168
+ (connection, read) timeouts.
2169
+ :type _request_timeout: int, tuple(int, int), optional
2170
+ :param _request_auth: set to override the auth_settings for an a single
2171
+ request; this effectively ignores the
2172
+ authentication in the spec for a single request.
2173
+ :type _request_auth: dict, optional
2174
+ :param _content_type: force content-type for the request.
2175
+ :type _content_type: str, Optional
2176
+ :param _headers: set to override the headers for a single
2177
+ request; this effectively ignores the headers
2178
+ in the spec for a single request.
2179
+ :type _headers: dict, optional
2180
+ :param _host_index: set to override the host_index for a single
2181
+ request; this effectively ignores the host_index
2182
+ in the spec for a single request.
2183
+ :type _host_index: int, optional
2184
+ :return: Returns the result object.
2185
+ """ # noqa: E501
2186
+
2187
+ _param = self._unset_label_serialize(
2188
+ open_p_g_p_distribution_href=open_p_g_p_distribution_href,
2189
+ unset_label=unset_label,
2190
+ x_task_diagnostics=x_task_diagnostics,
2191
+ _request_auth=_request_auth,
2192
+ _content_type=_content_type,
2193
+ _headers=_headers,
2194
+ _host_index=_host_index
2195
+ )
2196
+
2197
+ _response_types_map: Dict[str, Optional[str]] = {
2198
+ '200': "UnsetLabelResponse",
2199
+ }
2200
+ response_data = self.api_client.call_api(
2201
+ *_param,
2202
+ _request_timeout=_request_timeout
2203
+ )
2204
+ response_data.read()
2205
+ return self.api_client.response_deserialize(
2206
+ response_data=response_data,
2207
+ response_types_map=_response_types_map,
2208
+ )
2209
+
2210
+
2211
+ @validate_call
2212
+ def unset_label_without_preload_content(
2213
+ self,
2214
+ open_p_g_p_distribution_href: StrictStr,
2215
+ unset_label: UnsetLabel,
2216
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
2217
+ _request_timeout: Union[
2218
+ None,
2219
+ Annotated[StrictFloat, Field(gt=0)],
2220
+ Tuple[
2221
+ Annotated[StrictFloat, Field(gt=0)],
2222
+ Annotated[StrictFloat, Field(gt=0)]
2223
+ ]
2224
+ ] = None,
2225
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2226
+ _content_type: Optional[StrictStr] = None,
2227
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2228
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2229
+ ) -> RESTResponseType:
2230
+ """Unset a label
2231
+
2232
+ Unset a single pulp_label on the object.
2233
+
2234
+ :param open_p_g_p_distribution_href: (required)
2235
+ :type open_p_g_p_distribution_href: str
2236
+ :param unset_label: (required)
2237
+ :type unset_label: UnsetLabel
2238
+ :param x_task_diagnostics: List of profilers to use on tasks.
2239
+ :type x_task_diagnostics: List[str]
2240
+ :param _request_timeout: timeout setting for this request. If one
2241
+ number provided, it will be total request
2242
+ timeout. It can also be a pair (tuple) of
2243
+ (connection, read) timeouts.
2244
+ :type _request_timeout: int, tuple(int, int), optional
2245
+ :param _request_auth: set to override the auth_settings for an a single
2246
+ request; this effectively ignores the
2247
+ authentication in the spec for a single request.
2248
+ :type _request_auth: dict, optional
2249
+ :param _content_type: force content-type for the request.
2250
+ :type _content_type: str, Optional
2251
+ :param _headers: set to override the headers for a single
2252
+ request; this effectively ignores the headers
2253
+ in the spec for a single request.
2254
+ :type _headers: dict, optional
2255
+ :param _host_index: set to override the host_index for a single
2256
+ request; this effectively ignores the host_index
2257
+ in the spec for a single request.
2258
+ :type _host_index: int, optional
2259
+ :return: Returns the result object.
2260
+ """ # noqa: E501
2261
+
2262
+ _param = self._unset_label_serialize(
2263
+ open_p_g_p_distribution_href=open_p_g_p_distribution_href,
2264
+ unset_label=unset_label,
2265
+ x_task_diagnostics=x_task_diagnostics,
2266
+ _request_auth=_request_auth,
2267
+ _content_type=_content_type,
2268
+ _headers=_headers,
2269
+ _host_index=_host_index
2270
+ )
2271
+
2272
+ _response_types_map: Dict[str, Optional[str]] = {
2273
+ '200': "UnsetLabelResponse",
2274
+ }
2275
+ response_data = self.api_client.call_api(
2276
+ *_param,
2277
+ _request_timeout=_request_timeout
2278
+ )
2279
+ return response_data.response
2280
+
2281
+
2282
+ def _unset_label_serialize(
2283
+ self,
2284
+ open_p_g_p_distribution_href,
2285
+ unset_label,
2286
+ x_task_diagnostics,
2287
+ _request_auth,
2288
+ _content_type,
2289
+ _headers,
2290
+ _host_index,
2291
+ ) -> RequestSerialized:
2292
+
2293
+ _host = None
2294
+
2295
+ _collection_formats: Dict[str, str] = {
2296
+ 'X-Task-Diagnostics': 'csv',
2297
+ }
2298
+
2299
+ _path_params: Dict[str, str] = {}
2300
+ _query_params: List[Tuple[str, str]] = []
2301
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2302
+ _form_params: List[Tuple[str, str]] = []
2303
+ _files: Dict[
2304
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2305
+ ] = {}
2306
+ _body_params: Optional[bytes] = None
2307
+
2308
+ # process the path parameters
2309
+ if open_p_g_p_distribution_href is not None:
2310
+ _path_params['open_p_g_p_distribution_href'] = open_p_g_p_distribution_href
2311
+ # process the query parameters
2312
+ # process the header parameters
2313
+ if x_task_diagnostics is not None:
2314
+ _header_params['X-Task-Diagnostics'] = x_task_diagnostics
2315
+ # process the form parameters
2316
+ # process the body parameter
2317
+ if unset_label is not None:
2318
+ _body_params = unset_label
2319
+
2320
+
2321
+ # set the HTTP header `Accept`
2322
+ if 'Accept' not in _header_params:
2323
+ _header_params['Accept'] = self.api_client.select_header_accept(
2324
+ [
2325
+ 'application/json'
2326
+ ]
2327
+ )
2328
+
2329
+ # set the HTTP header `Content-Type`
2330
+ if _content_type:
2331
+ _header_params['Content-Type'] = _content_type
2332
+ else:
2333
+ _default_content_type = (
2334
+ self.api_client.select_header_content_type(
2335
+ [
2336
+ 'application/json',
2337
+ 'application/x-www-form-urlencoded',
2338
+ 'multipart/form-data'
2339
+ ]
2340
+ )
2341
+ )
2342
+ if _default_content_type is not None:
2343
+ _header_params['Content-Type'] = _default_content_type
2344
+
2345
+ # authentication setting
2346
+ _auth_settings: List[str] = [
2347
+ 'json_header_remote_authentication',
2348
+ 'basicAuth',
2349
+ 'cookieAuth'
2350
+ ]
2351
+
2352
+ return self.api_client.param_serialize(
2353
+ method='POST',
2354
+ resource_path='{open_p_g_p_distribution_href}unset_label/',
2355
+ path_params=_path_params,
2356
+ query_params=_query_params,
2357
+ header_params=_header_params,
2358
+ body=_body_params,
2359
+ post_params=_form_params,
2360
+ files=_files,
2361
+ auth_settings=_auth_settings,
2362
+ collection_formats=_collection_formats,
2363
+ _host=_host,
2364
+ _request_auth=_request_auth
2365
+ )
2366
+
2367
+
2368
+
2369
+
2370
+ @validate_call
2371
+ def update(
2372
+ self,
2373
+ open_p_g_p_distribution_href: StrictStr,
2374
+ open_pgp_distribution: OpenPGPDistribution,
2375
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
2376
+ _request_timeout: Union[
2377
+ None,
2378
+ Annotated[StrictFloat, Field(gt=0)],
2379
+ Tuple[
2380
+ Annotated[StrictFloat, Field(gt=0)],
2381
+ Annotated[StrictFloat, Field(gt=0)]
2382
+ ]
2383
+ ] = None,
2384
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2385
+ _content_type: Optional[StrictStr] = None,
2386
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2387
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2388
+ ) -> AsyncOperationResponse:
2389
+ """Update an open pgp distribution
2390
+
2391
+ Trigger an asynchronous update task
2392
+
2393
+ :param open_p_g_p_distribution_href: (required)
2394
+ :type open_p_g_p_distribution_href: str
2395
+ :param open_pgp_distribution: (required)
2396
+ :type open_pgp_distribution: OpenPGPDistribution
2397
+ :param x_task_diagnostics: List of profilers to use on tasks.
2398
+ :type x_task_diagnostics: List[str]
2399
+ :param _request_timeout: timeout setting for this request. If one
2400
+ number provided, it will be total request
2401
+ timeout. It can also be a pair (tuple) of
2402
+ (connection, read) timeouts.
2403
+ :type _request_timeout: int, tuple(int, int), optional
2404
+ :param _request_auth: set to override the auth_settings for an a single
2405
+ request; this effectively ignores the
2406
+ authentication in the spec for a single request.
2407
+ :type _request_auth: dict, optional
2408
+ :param _content_type: force content-type for the request.
2409
+ :type _content_type: str, Optional
2410
+ :param _headers: set to override the headers for a single
2411
+ request; this effectively ignores the headers
2412
+ in the spec for a single request.
2413
+ :type _headers: dict, optional
2414
+ :param _host_index: set to override the host_index for a single
2415
+ request; this effectively ignores the host_index
2416
+ in the spec for a single request.
2417
+ :type _host_index: int, optional
2418
+ :return: Returns the result object.
2419
+ """ # noqa: E501
2420
+
2421
+ _param = self._update_serialize(
2422
+ open_p_g_p_distribution_href=open_p_g_p_distribution_href,
2423
+ open_pgp_distribution=open_pgp_distribution,
2424
+ x_task_diagnostics=x_task_diagnostics,
2425
+ _request_auth=_request_auth,
2426
+ _content_type=_content_type,
2427
+ _headers=_headers,
2428
+ _host_index=_host_index
2429
+ )
2430
+
2431
+ _response_types_map: Dict[str, Optional[str]] = {
2432
+ '202': "AsyncOperationResponse",
2433
+ }
2434
+ response_data = self.api_client.call_api(
2435
+ *_param,
2436
+ _request_timeout=_request_timeout
2437
+ )
2438
+ response_data.read()
2439
+ return self.api_client.response_deserialize(
2440
+ response_data=response_data,
2441
+ response_types_map=_response_types_map,
2442
+ ).data
2443
+
2444
+
2445
+ @validate_call
2446
+ def update_with_http_info(
2447
+ self,
2448
+ open_p_g_p_distribution_href: StrictStr,
2449
+ open_pgp_distribution: OpenPGPDistribution,
2450
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
2451
+ _request_timeout: Union[
2452
+ None,
2453
+ Annotated[StrictFloat, Field(gt=0)],
2454
+ Tuple[
2455
+ Annotated[StrictFloat, Field(gt=0)],
2456
+ Annotated[StrictFloat, Field(gt=0)]
2457
+ ]
2458
+ ] = None,
2459
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2460
+ _content_type: Optional[StrictStr] = None,
2461
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2462
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2463
+ ) -> ApiResponse[AsyncOperationResponse]:
2464
+ """Update an open pgp distribution
2465
+
2466
+ Trigger an asynchronous update task
2467
+
2468
+ :param open_p_g_p_distribution_href: (required)
2469
+ :type open_p_g_p_distribution_href: str
2470
+ :param open_pgp_distribution: (required)
2471
+ :type open_pgp_distribution: OpenPGPDistribution
2472
+ :param x_task_diagnostics: List of profilers to use on tasks.
2473
+ :type x_task_diagnostics: List[str]
2474
+ :param _request_timeout: timeout setting for this request. If one
2475
+ number provided, it will be total request
2476
+ timeout. It can also be a pair (tuple) of
2477
+ (connection, read) timeouts.
2478
+ :type _request_timeout: int, tuple(int, int), optional
2479
+ :param _request_auth: set to override the auth_settings for an a single
2480
+ request; this effectively ignores the
2481
+ authentication in the spec for a single request.
2482
+ :type _request_auth: dict, optional
2483
+ :param _content_type: force content-type for the request.
2484
+ :type _content_type: str, Optional
2485
+ :param _headers: set to override the headers for a single
2486
+ request; this effectively ignores the headers
2487
+ in the spec for a single request.
2488
+ :type _headers: dict, optional
2489
+ :param _host_index: set to override the host_index for a single
2490
+ request; this effectively ignores the host_index
2491
+ in the spec for a single request.
2492
+ :type _host_index: int, optional
2493
+ :return: Returns the result object.
2494
+ """ # noqa: E501
2495
+
2496
+ _param = self._update_serialize(
2497
+ open_p_g_p_distribution_href=open_p_g_p_distribution_href,
2498
+ open_pgp_distribution=open_pgp_distribution,
2499
+ x_task_diagnostics=x_task_diagnostics,
2500
+ _request_auth=_request_auth,
2501
+ _content_type=_content_type,
2502
+ _headers=_headers,
2503
+ _host_index=_host_index
2504
+ )
2505
+
2506
+ _response_types_map: Dict[str, Optional[str]] = {
2507
+ '202': "AsyncOperationResponse",
2508
+ }
2509
+ response_data = self.api_client.call_api(
2510
+ *_param,
2511
+ _request_timeout=_request_timeout
2512
+ )
2513
+ response_data.read()
2514
+ return self.api_client.response_deserialize(
2515
+ response_data=response_data,
2516
+ response_types_map=_response_types_map,
2517
+ )
2518
+
2519
+
2520
+ @validate_call
2521
+ def update_without_preload_content(
2522
+ self,
2523
+ open_p_g_p_distribution_href: StrictStr,
2524
+ open_pgp_distribution: OpenPGPDistribution,
2525
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
2526
+ _request_timeout: Union[
2527
+ None,
2528
+ Annotated[StrictFloat, Field(gt=0)],
2529
+ Tuple[
2530
+ Annotated[StrictFloat, Field(gt=0)],
2531
+ Annotated[StrictFloat, Field(gt=0)]
2532
+ ]
2533
+ ] = None,
2534
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2535
+ _content_type: Optional[StrictStr] = None,
2536
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2537
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2538
+ ) -> RESTResponseType:
2539
+ """Update an open pgp distribution
2540
+
2541
+ Trigger an asynchronous update task
2542
+
2543
+ :param open_p_g_p_distribution_href: (required)
2544
+ :type open_p_g_p_distribution_href: str
2545
+ :param open_pgp_distribution: (required)
2546
+ :type open_pgp_distribution: OpenPGPDistribution
2547
+ :param x_task_diagnostics: List of profilers to use on tasks.
2548
+ :type x_task_diagnostics: List[str]
2549
+ :param _request_timeout: timeout setting for this request. If one
2550
+ number provided, it will be total request
2551
+ timeout. It can also be a pair (tuple) of
2552
+ (connection, read) timeouts.
2553
+ :type _request_timeout: int, tuple(int, int), optional
2554
+ :param _request_auth: set to override the auth_settings for an a single
2555
+ request; this effectively ignores the
2556
+ authentication in the spec for a single request.
2557
+ :type _request_auth: dict, optional
2558
+ :param _content_type: force content-type for the request.
2559
+ :type _content_type: str, Optional
2560
+ :param _headers: set to override the headers for a single
2561
+ request; this effectively ignores the headers
2562
+ in the spec for a single request.
2563
+ :type _headers: dict, optional
2564
+ :param _host_index: set to override the host_index for a single
2565
+ request; this effectively ignores the host_index
2566
+ in the spec for a single request.
2567
+ :type _host_index: int, optional
2568
+ :return: Returns the result object.
2569
+ """ # noqa: E501
2570
+
2571
+ _param = self._update_serialize(
2572
+ open_p_g_p_distribution_href=open_p_g_p_distribution_href,
2573
+ open_pgp_distribution=open_pgp_distribution,
2574
+ x_task_diagnostics=x_task_diagnostics,
2575
+ _request_auth=_request_auth,
2576
+ _content_type=_content_type,
2577
+ _headers=_headers,
2578
+ _host_index=_host_index
2579
+ )
2580
+
2581
+ _response_types_map: Dict[str, Optional[str]] = {
2582
+ '202': "AsyncOperationResponse",
2583
+ }
2584
+ response_data = self.api_client.call_api(
2585
+ *_param,
2586
+ _request_timeout=_request_timeout
2587
+ )
2588
+ return response_data.response
2589
+
2590
+
2591
+ def _update_serialize(
2592
+ self,
2593
+ open_p_g_p_distribution_href,
2594
+ open_pgp_distribution,
2595
+ x_task_diagnostics,
2596
+ _request_auth,
2597
+ _content_type,
2598
+ _headers,
2599
+ _host_index,
2600
+ ) -> RequestSerialized:
2601
+
2602
+ _host = None
2603
+
2604
+ _collection_formats: Dict[str, str] = {
2605
+ 'X-Task-Diagnostics': 'csv',
2606
+ }
2607
+
2608
+ _path_params: Dict[str, str] = {}
2609
+ _query_params: List[Tuple[str, str]] = []
2610
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2611
+ _form_params: List[Tuple[str, str]] = []
2612
+ _files: Dict[
2613
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2614
+ ] = {}
2615
+ _body_params: Optional[bytes] = None
2616
+
2617
+ # process the path parameters
2618
+ if open_p_g_p_distribution_href is not None:
2619
+ _path_params['open_p_g_p_distribution_href'] = open_p_g_p_distribution_href
2620
+ # process the query parameters
2621
+ # process the header parameters
2622
+ if x_task_diagnostics is not None:
2623
+ _header_params['X-Task-Diagnostics'] = x_task_diagnostics
2624
+ # process the form parameters
2625
+ # process the body parameter
2626
+ if open_pgp_distribution is not None:
2627
+ _body_params = open_pgp_distribution
2628
+
2629
+
2630
+ # set the HTTP header `Accept`
2631
+ if 'Accept' not in _header_params:
2632
+ _header_params['Accept'] = self.api_client.select_header_accept(
2633
+ [
2634
+ 'application/json'
2635
+ ]
2636
+ )
2637
+
2638
+ # set the HTTP header `Content-Type`
2639
+ if _content_type:
2640
+ _header_params['Content-Type'] = _content_type
2641
+ else:
2642
+ _default_content_type = (
2643
+ self.api_client.select_header_content_type(
2644
+ [
2645
+ 'application/json',
2646
+ 'application/x-www-form-urlencoded',
2647
+ 'multipart/form-data'
2648
+ ]
2649
+ )
2650
+ )
2651
+ if _default_content_type is not None:
2652
+ _header_params['Content-Type'] = _default_content_type
2653
+
2654
+ # authentication setting
2655
+ _auth_settings: List[str] = [
2656
+ 'json_header_remote_authentication',
2657
+ 'basicAuth',
2658
+ 'cookieAuth'
2659
+ ]
2660
+
2661
+ return self.api_client.param_serialize(
2662
+ method='PUT',
2663
+ resource_path='{open_p_g_p_distribution_href}',
2664
+ path_params=_path_params,
2665
+ query_params=_query_params,
2666
+ header_params=_header_params,
2667
+ body=_body_params,
2668
+ post_params=_form_params,
2669
+ files=_files,
2670
+ auth_settings=_auth_settings,
2671
+ collection_formats=_collection_formats,
2672
+ _host=_host,
2673
+ _request_auth=_request_auth
2674
+ )
2675
+
2676
+