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,2157 @@
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 services-pulpcore-client.models.async_operation_response import AsyncOperationResponse
24
+ from services-pulpcore-client.models.paginated_pulp_exporter_response_list import PaginatedPulpExporterResponseList
25
+ from services-pulpcore-client.models.patched_pulp_exporter import PatchedPulpExporter
26
+ from services-pulpcore-client.models.pulp_exporter import PulpExporter
27
+ from services-pulpcore-client.models.pulp_exporter_response import PulpExporterResponse
28
+
29
+ from services-pulpcore-client.api_client import ApiClient, RequestSerialized
30
+ from services-pulpcore-client.api_response import ApiResponse
31
+ from services-pulpcore-client.rest import RESTResponseType
32
+
33
+
34
+ class ExportersPulpApi:
35
+ """NOTE: This class is auto generated by OpenAPI Generator
36
+ Ref: https://openapi-generator.tech
37
+
38
+ Do not edit the class manually.
39
+ """
40
+
41
+ def __init__(self, api_client=None) -> None:
42
+ if api_client is None:
43
+ api_client = ApiClient.get_default()
44
+ self.api_client = api_client
45
+
46
+
47
+ @validate_call
48
+ def create(
49
+ self,
50
+ pulp_exporter: PulpExporter,
51
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
52
+ pulp_domain: StrictStr = "default",
53
+ _request_timeout: Union[
54
+ None,
55
+ Annotated[StrictFloat, Field(gt=0)],
56
+ Tuple[
57
+ Annotated[StrictFloat, Field(gt=0)],
58
+ Annotated[StrictFloat, Field(gt=0)]
59
+ ]
60
+ ] = None,
61
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
62
+ _content_type: Optional[StrictStr] = None,
63
+ _headers: Optional[Dict[StrictStr, Any]] = None,
64
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
65
+ ) -> PulpExporterResponse:
66
+ """Create a pulp exporter
67
+
68
+ ViewSet for viewing PulpExporters.
69
+
70
+ :param pulp_domain: (required)
71
+ :type pulp_domain: str
72
+ :param pulp_exporter: (required)
73
+ :type pulp_exporter: PulpExporter
74
+ :param x_task_diagnostics: List of profilers to use on tasks.
75
+ :type x_task_diagnostics: List[str]
76
+ :param _request_timeout: timeout setting for this request. If one
77
+ number provided, it will be total request
78
+ timeout. It can also be a pair (tuple) of
79
+ (connection, read) timeouts.
80
+ :type _request_timeout: int, tuple(int, int), optional
81
+ :param _request_auth: set to override the auth_settings for an a single
82
+ request; this effectively ignores the
83
+ authentication in the spec for a single request.
84
+ :type _request_auth: dict, optional
85
+ :param _content_type: force content-type for the request.
86
+ :type _content_type: str, Optional
87
+ :param _headers: set to override the headers for a single
88
+ request; this effectively ignores the headers
89
+ in the spec for a single request.
90
+ :type _headers: dict, optional
91
+ :param _host_index: set to override the host_index for a single
92
+ request; this effectively ignores the host_index
93
+ in the spec for a single request.
94
+ :type _host_index: int, optional
95
+ :return: Returns the result object.
96
+ """ # noqa: E501
97
+
98
+ _param = self._create_serialize(
99
+ pulp_domain=pulp_domain,
100
+ pulp_exporter=pulp_exporter,
101
+ x_task_diagnostics=x_task_diagnostics,
102
+ _request_auth=_request_auth,
103
+ _content_type=_content_type,
104
+ _headers=_headers,
105
+ _host_index=_host_index
106
+ )
107
+
108
+ _response_types_map: Dict[str, Optional[str]] = {
109
+ '201': "PulpExporterResponse",
110
+ }
111
+ response_data = self.api_client.call_api(
112
+ *_param,
113
+ _request_timeout=_request_timeout
114
+ )
115
+ response_data.read()
116
+ return self.api_client.response_deserialize(
117
+ response_data=response_data,
118
+ response_types_map=_response_types_map,
119
+ ).data
120
+
121
+
122
+ @validate_call
123
+ def create_with_http_info(
124
+ self,
125
+ pulp_exporter: PulpExporter,
126
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
127
+ pulp_domain: StrictStr = "default",
128
+ _request_timeout: Union[
129
+ None,
130
+ Annotated[StrictFloat, Field(gt=0)],
131
+ Tuple[
132
+ Annotated[StrictFloat, Field(gt=0)],
133
+ Annotated[StrictFloat, Field(gt=0)]
134
+ ]
135
+ ] = None,
136
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
137
+ _content_type: Optional[StrictStr] = None,
138
+ _headers: Optional[Dict[StrictStr, Any]] = None,
139
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
140
+ ) -> ApiResponse[PulpExporterResponse]:
141
+ """Create a pulp exporter
142
+
143
+ ViewSet for viewing PulpExporters.
144
+
145
+ :param pulp_domain: (required)
146
+ :type pulp_domain: str
147
+ :param pulp_exporter: (required)
148
+ :type pulp_exporter: PulpExporter
149
+ :param x_task_diagnostics: List of profilers to use on tasks.
150
+ :type x_task_diagnostics: List[str]
151
+ :param _request_timeout: timeout setting for this request. If one
152
+ number provided, it will be total request
153
+ timeout. It can also be a pair (tuple) of
154
+ (connection, read) timeouts.
155
+ :type _request_timeout: int, tuple(int, int), optional
156
+ :param _request_auth: set to override the auth_settings for an a single
157
+ request; this effectively ignores the
158
+ authentication in the spec for a single request.
159
+ :type _request_auth: dict, optional
160
+ :param _content_type: force content-type for the request.
161
+ :type _content_type: str, Optional
162
+ :param _headers: set to override the headers for a single
163
+ request; this effectively ignores the headers
164
+ in the spec for a single request.
165
+ :type _headers: dict, optional
166
+ :param _host_index: set to override the host_index for a single
167
+ request; this effectively ignores the host_index
168
+ in the spec for a single request.
169
+ :type _host_index: int, optional
170
+ :return: Returns the result object.
171
+ """ # noqa: E501
172
+
173
+ _param = self._create_serialize(
174
+ pulp_domain=pulp_domain,
175
+ pulp_exporter=pulp_exporter,
176
+ x_task_diagnostics=x_task_diagnostics,
177
+ _request_auth=_request_auth,
178
+ _content_type=_content_type,
179
+ _headers=_headers,
180
+ _host_index=_host_index
181
+ )
182
+
183
+ _response_types_map: Dict[str, Optional[str]] = {
184
+ '201': "PulpExporterResponse",
185
+ }
186
+ response_data = self.api_client.call_api(
187
+ *_param,
188
+ _request_timeout=_request_timeout
189
+ )
190
+ response_data.read()
191
+ return self.api_client.response_deserialize(
192
+ response_data=response_data,
193
+ response_types_map=_response_types_map,
194
+ )
195
+
196
+
197
+ @validate_call
198
+ def create_without_preload_content(
199
+ self,
200
+ pulp_exporter: PulpExporter,
201
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
202
+ pulp_domain: StrictStr = "default",
203
+ _request_timeout: Union[
204
+ None,
205
+ Annotated[StrictFloat, Field(gt=0)],
206
+ Tuple[
207
+ Annotated[StrictFloat, Field(gt=0)],
208
+ Annotated[StrictFloat, Field(gt=0)]
209
+ ]
210
+ ] = None,
211
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
212
+ _content_type: Optional[StrictStr] = None,
213
+ _headers: Optional[Dict[StrictStr, Any]] = None,
214
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
215
+ ) -> RESTResponseType:
216
+ """Create a pulp exporter
217
+
218
+ ViewSet for viewing PulpExporters.
219
+
220
+ :param pulp_domain: (required)
221
+ :type pulp_domain: str
222
+ :param pulp_exporter: (required)
223
+ :type pulp_exporter: PulpExporter
224
+ :param x_task_diagnostics: List of profilers to use on tasks.
225
+ :type x_task_diagnostics: List[str]
226
+ :param _request_timeout: timeout setting for this request. If one
227
+ number provided, it will be total request
228
+ timeout. It can also be a pair (tuple) of
229
+ (connection, read) timeouts.
230
+ :type _request_timeout: int, tuple(int, int), optional
231
+ :param _request_auth: set to override the auth_settings for an a single
232
+ request; this effectively ignores the
233
+ authentication in the spec for a single request.
234
+ :type _request_auth: dict, optional
235
+ :param _content_type: force content-type for the request.
236
+ :type _content_type: str, Optional
237
+ :param _headers: set to override the headers for a single
238
+ request; this effectively ignores the headers
239
+ in the spec for a single request.
240
+ :type _headers: dict, optional
241
+ :param _host_index: set to override the host_index for a single
242
+ request; this effectively ignores the host_index
243
+ in the spec for a single request.
244
+ :type _host_index: int, optional
245
+ :return: Returns the result object.
246
+ """ # noqa: E501
247
+
248
+ _param = self._create_serialize(
249
+ pulp_domain=pulp_domain,
250
+ pulp_exporter=pulp_exporter,
251
+ x_task_diagnostics=x_task_diagnostics,
252
+ _request_auth=_request_auth,
253
+ _content_type=_content_type,
254
+ _headers=_headers,
255
+ _host_index=_host_index
256
+ )
257
+
258
+ _response_types_map: Dict[str, Optional[str]] = {
259
+ '201': "PulpExporterResponse",
260
+ }
261
+ response_data = self.api_client.call_api(
262
+ *_param,
263
+ _request_timeout=_request_timeout
264
+ )
265
+ return response_data.response
266
+
267
+
268
+ def _create_serialize(
269
+ self,
270
+ pulp_domain,
271
+ pulp_exporter,
272
+ x_task_diagnostics,
273
+ _request_auth,
274
+ _content_type,
275
+ _headers,
276
+ _host_index,
277
+ ) -> RequestSerialized:
278
+
279
+ _host = None
280
+
281
+ _collection_formats: Dict[str, str] = {
282
+ 'X-Task-Diagnostics': 'csv',
283
+ }
284
+
285
+ _path_params: Dict[str, str] = {}
286
+ _query_params: List[Tuple[str, str]] = []
287
+ _header_params: Dict[str, Optional[str]] = _headers or {}
288
+ _form_params: List[Tuple[str, str]] = []
289
+ _files: Dict[
290
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
291
+ ] = {}
292
+ _body_params: Optional[bytes] = None
293
+
294
+ # process the path parameters
295
+ if pulp_domain is not None:
296
+ _path_params['pulp_domain'] = pulp_domain
297
+ # process the query parameters
298
+ # process the header parameters
299
+ if x_task_diagnostics is not None:
300
+ _header_params['X-Task-Diagnostics'] = x_task_diagnostics
301
+ # process the form parameters
302
+ # process the body parameter
303
+ if pulp_exporter is not None:
304
+ _body_params = pulp_exporter
305
+
306
+
307
+ # set the HTTP header `Accept`
308
+ if 'Accept' not in _header_params:
309
+ _header_params['Accept'] = self.api_client.select_header_accept(
310
+ [
311
+ 'application/json'
312
+ ]
313
+ )
314
+
315
+ # set the HTTP header `Content-Type`
316
+ if _content_type:
317
+ _header_params['Content-Type'] = _content_type
318
+ else:
319
+ _default_content_type = (
320
+ self.api_client.select_header_content_type(
321
+ [
322
+ 'application/json',
323
+ 'application/x-www-form-urlencoded',
324
+ 'multipart/form-data'
325
+ ]
326
+ )
327
+ )
328
+ if _default_content_type is not None:
329
+ _header_params['Content-Type'] = _default_content_type
330
+
331
+ # authentication setting
332
+ _auth_settings: List[str] = [
333
+ 'json_header_remote_authentication',
334
+ 'basicAuth',
335
+ 'cookieAuth'
336
+ ]
337
+
338
+ return self.api_client.param_serialize(
339
+ method='POST',
340
+ resource_path='/api/pulp/{pulp_domain}/api/v3/exporters/core/pulp/',
341
+ path_params=_path_params,
342
+ query_params=_query_params,
343
+ header_params=_header_params,
344
+ body=_body_params,
345
+ post_params=_form_params,
346
+ files=_files,
347
+ auth_settings=_auth_settings,
348
+ collection_formats=_collection_formats,
349
+ _host=_host,
350
+ _request_auth=_request_auth
351
+ )
352
+
353
+
354
+
355
+
356
+ @validate_call
357
+ def delete(
358
+ self,
359
+ pulp_exporter_href: StrictStr,
360
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
361
+ _request_timeout: Union[
362
+ None,
363
+ Annotated[StrictFloat, Field(gt=0)],
364
+ Tuple[
365
+ Annotated[StrictFloat, Field(gt=0)],
366
+ Annotated[StrictFloat, Field(gt=0)]
367
+ ]
368
+ ] = None,
369
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
370
+ _content_type: Optional[StrictStr] = None,
371
+ _headers: Optional[Dict[StrictStr, Any]] = None,
372
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
373
+ ) -> AsyncOperationResponse:
374
+ """Delete a pulp exporter
375
+
376
+ Trigger an asynchronous delete task
377
+
378
+ :param pulp_exporter_href: (required)
379
+ :type pulp_exporter_href: str
380
+ :param x_task_diagnostics: List of profilers to use on tasks.
381
+ :type x_task_diagnostics: List[str]
382
+ :param _request_timeout: timeout setting for this request. If one
383
+ number provided, it will be total request
384
+ timeout. It can also be a pair (tuple) of
385
+ (connection, read) timeouts.
386
+ :type _request_timeout: int, tuple(int, int), optional
387
+ :param _request_auth: set to override the auth_settings for an a single
388
+ request; this effectively ignores the
389
+ authentication in the spec for a single request.
390
+ :type _request_auth: dict, optional
391
+ :param _content_type: force content-type for the request.
392
+ :type _content_type: str, Optional
393
+ :param _headers: set to override the headers for a single
394
+ request; this effectively ignores the headers
395
+ in the spec for a single request.
396
+ :type _headers: dict, optional
397
+ :param _host_index: set to override the host_index for a single
398
+ request; this effectively ignores the host_index
399
+ in the spec for a single request.
400
+ :type _host_index: int, optional
401
+ :return: Returns the result object.
402
+ """ # noqa: E501
403
+
404
+ _param = self._delete_serialize(
405
+ pulp_exporter_href=pulp_exporter_href,
406
+ x_task_diagnostics=x_task_diagnostics,
407
+ _request_auth=_request_auth,
408
+ _content_type=_content_type,
409
+ _headers=_headers,
410
+ _host_index=_host_index
411
+ )
412
+
413
+ _response_types_map: Dict[str, Optional[str]] = {
414
+ '202': "AsyncOperationResponse",
415
+ }
416
+ response_data = self.api_client.call_api(
417
+ *_param,
418
+ _request_timeout=_request_timeout
419
+ )
420
+ response_data.read()
421
+ return self.api_client.response_deserialize(
422
+ response_data=response_data,
423
+ response_types_map=_response_types_map,
424
+ ).data
425
+
426
+
427
+ @validate_call
428
+ def delete_with_http_info(
429
+ self,
430
+ pulp_exporter_href: StrictStr,
431
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
432
+ _request_timeout: Union[
433
+ None,
434
+ Annotated[StrictFloat, Field(gt=0)],
435
+ Tuple[
436
+ Annotated[StrictFloat, Field(gt=0)],
437
+ Annotated[StrictFloat, Field(gt=0)]
438
+ ]
439
+ ] = None,
440
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
441
+ _content_type: Optional[StrictStr] = None,
442
+ _headers: Optional[Dict[StrictStr, Any]] = None,
443
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
444
+ ) -> ApiResponse[AsyncOperationResponse]:
445
+ """Delete a pulp exporter
446
+
447
+ Trigger an asynchronous delete task
448
+
449
+ :param pulp_exporter_href: (required)
450
+ :type pulp_exporter_href: str
451
+ :param x_task_diagnostics: List of profilers to use on tasks.
452
+ :type x_task_diagnostics: List[str]
453
+ :param _request_timeout: timeout setting for this request. If one
454
+ number provided, it will be total request
455
+ timeout. It can also be a pair (tuple) of
456
+ (connection, read) timeouts.
457
+ :type _request_timeout: int, tuple(int, int), optional
458
+ :param _request_auth: set to override the auth_settings for an a single
459
+ request; this effectively ignores the
460
+ authentication in the spec for a single request.
461
+ :type _request_auth: dict, optional
462
+ :param _content_type: force content-type for the request.
463
+ :type _content_type: str, Optional
464
+ :param _headers: set to override the headers for a single
465
+ request; this effectively ignores the headers
466
+ in the spec for a single request.
467
+ :type _headers: dict, optional
468
+ :param _host_index: set to override the host_index for a single
469
+ request; this effectively ignores the host_index
470
+ in the spec for a single request.
471
+ :type _host_index: int, optional
472
+ :return: Returns the result object.
473
+ """ # noqa: E501
474
+
475
+ _param = self._delete_serialize(
476
+ pulp_exporter_href=pulp_exporter_href,
477
+ x_task_diagnostics=x_task_diagnostics,
478
+ _request_auth=_request_auth,
479
+ _content_type=_content_type,
480
+ _headers=_headers,
481
+ _host_index=_host_index
482
+ )
483
+
484
+ _response_types_map: Dict[str, Optional[str]] = {
485
+ '202': "AsyncOperationResponse",
486
+ }
487
+ response_data = self.api_client.call_api(
488
+ *_param,
489
+ _request_timeout=_request_timeout
490
+ )
491
+ response_data.read()
492
+ return self.api_client.response_deserialize(
493
+ response_data=response_data,
494
+ response_types_map=_response_types_map,
495
+ )
496
+
497
+
498
+ @validate_call
499
+ def delete_without_preload_content(
500
+ self,
501
+ pulp_exporter_href: StrictStr,
502
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
503
+ _request_timeout: Union[
504
+ None,
505
+ Annotated[StrictFloat, Field(gt=0)],
506
+ Tuple[
507
+ Annotated[StrictFloat, Field(gt=0)],
508
+ Annotated[StrictFloat, Field(gt=0)]
509
+ ]
510
+ ] = None,
511
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
512
+ _content_type: Optional[StrictStr] = None,
513
+ _headers: Optional[Dict[StrictStr, Any]] = None,
514
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
515
+ ) -> RESTResponseType:
516
+ """Delete a pulp exporter
517
+
518
+ Trigger an asynchronous delete task
519
+
520
+ :param pulp_exporter_href: (required)
521
+ :type pulp_exporter_href: str
522
+ :param x_task_diagnostics: List of profilers to use on tasks.
523
+ :type x_task_diagnostics: List[str]
524
+ :param _request_timeout: timeout setting for this request. If one
525
+ number provided, it will be total request
526
+ timeout. It can also be a pair (tuple) of
527
+ (connection, read) timeouts.
528
+ :type _request_timeout: int, tuple(int, int), optional
529
+ :param _request_auth: set to override the auth_settings for an a single
530
+ request; this effectively ignores the
531
+ authentication in the spec for a single request.
532
+ :type _request_auth: dict, optional
533
+ :param _content_type: force content-type for the request.
534
+ :type _content_type: str, Optional
535
+ :param _headers: set to override the headers for a single
536
+ request; this effectively ignores the headers
537
+ in the spec for a single request.
538
+ :type _headers: dict, optional
539
+ :param _host_index: set to override the host_index for a single
540
+ request; this effectively ignores the host_index
541
+ in the spec for a single request.
542
+ :type _host_index: int, optional
543
+ :return: Returns the result object.
544
+ """ # noqa: E501
545
+
546
+ _param = self._delete_serialize(
547
+ pulp_exporter_href=pulp_exporter_href,
548
+ x_task_diagnostics=x_task_diagnostics,
549
+ _request_auth=_request_auth,
550
+ _content_type=_content_type,
551
+ _headers=_headers,
552
+ _host_index=_host_index
553
+ )
554
+
555
+ _response_types_map: Dict[str, Optional[str]] = {
556
+ '202': "AsyncOperationResponse",
557
+ }
558
+ response_data = self.api_client.call_api(
559
+ *_param,
560
+ _request_timeout=_request_timeout
561
+ )
562
+ return response_data.response
563
+
564
+
565
+ def _delete_serialize(
566
+ self,
567
+ pulp_exporter_href,
568
+ x_task_diagnostics,
569
+ _request_auth,
570
+ _content_type,
571
+ _headers,
572
+ _host_index,
573
+ ) -> RequestSerialized:
574
+
575
+ _host = None
576
+
577
+ _collection_formats: Dict[str, str] = {
578
+ 'X-Task-Diagnostics': 'csv',
579
+ }
580
+
581
+ _path_params: Dict[str, str] = {}
582
+ _query_params: List[Tuple[str, str]] = []
583
+ _header_params: Dict[str, Optional[str]] = _headers or {}
584
+ _form_params: List[Tuple[str, str]] = []
585
+ _files: Dict[
586
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
587
+ ] = {}
588
+ _body_params: Optional[bytes] = None
589
+
590
+ # process the path parameters
591
+ if pulp_exporter_href is not None:
592
+ _path_params['pulp_exporter_href'] = pulp_exporter_href
593
+ # process the query parameters
594
+ # process the header parameters
595
+ if x_task_diagnostics is not None:
596
+ _header_params['X-Task-Diagnostics'] = x_task_diagnostics
597
+ # process the form parameters
598
+ # process the body parameter
599
+
600
+
601
+ # set the HTTP header `Accept`
602
+ if 'Accept' not in _header_params:
603
+ _header_params['Accept'] = self.api_client.select_header_accept(
604
+ [
605
+ 'application/json'
606
+ ]
607
+ )
608
+
609
+
610
+ # authentication setting
611
+ _auth_settings: List[str] = [
612
+ 'json_header_remote_authentication',
613
+ 'basicAuth',
614
+ 'cookieAuth'
615
+ ]
616
+
617
+ return self.api_client.param_serialize(
618
+ method='DELETE',
619
+ resource_path='{pulp_exporter_href}',
620
+ path_params=_path_params,
621
+ query_params=_query_params,
622
+ header_params=_header_params,
623
+ body=_body_params,
624
+ post_params=_form_params,
625
+ files=_files,
626
+ auth_settings=_auth_settings,
627
+ collection_formats=_collection_formats,
628
+ _host=_host,
629
+ _request_auth=_request_auth
630
+ )
631
+
632
+
633
+
634
+
635
+ @validate_call
636
+ def list(
637
+ self,
638
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
639
+ limit: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None,
640
+ name: Annotated[Optional[StrictStr], Field(description="Filter results where name matches value")] = None,
641
+ name__contains: Annotated[Optional[StrictStr], Field(description="Filter results where name contains value")] = None,
642
+ name__icontains: Annotated[Optional[StrictStr], Field(description="Filter results where name contains value")] = None,
643
+ name__iexact: Annotated[Optional[StrictStr], Field(description="Filter results where name matches value")] = None,
644
+ name__in: Annotated[Optional[List[StrictStr]], Field(description="Filter results where name is in a comma-separated list of values")] = None,
645
+ name__iregex: Annotated[Optional[StrictStr], Field(description="Filter results where name matches regex value")] = None,
646
+ name__istartswith: Annotated[Optional[StrictStr], Field(description="Filter results where name starts with value")] = None,
647
+ name__regex: Annotated[Optional[StrictStr], Field(description="Filter results where name matches regex value")] = None,
648
+ name__startswith: Annotated[Optional[StrictStr], Field(description="Filter results where name starts with value")] = None,
649
+ offset: Annotated[Optional[StrictInt], Field(description="The initial index from which to return the results.")] = None,
650
+ 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) * `path` - Path * `-path` - Path (descending) * `pk` - Pk * `-pk` - Pk (descending)")] = None,
651
+ prn__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
652
+ pulp_href__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
653
+ pulp_id__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
654
+ q: Annotated[Optional[StrictStr], Field(description="Filter results by using NOT, AND and OR operations on other filters")] = None,
655
+ fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
656
+ exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
657
+ pulp_domain: StrictStr = "default",
658
+ _request_timeout: Union[
659
+ None,
660
+ Annotated[StrictFloat, Field(gt=0)],
661
+ Tuple[
662
+ Annotated[StrictFloat, Field(gt=0)],
663
+ Annotated[StrictFloat, Field(gt=0)]
664
+ ]
665
+ ] = None,
666
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
667
+ _content_type: Optional[StrictStr] = None,
668
+ _headers: Optional[Dict[StrictStr, Any]] = None,
669
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
670
+ ) -> PaginatedPulpExporterResponseList:
671
+ """List pulp exporters
672
+
673
+ ViewSet for viewing PulpExporters.
674
+
675
+ :param pulp_domain: (required)
676
+ :type pulp_domain: str
677
+ :param x_task_diagnostics: List of profilers to use on tasks.
678
+ :type x_task_diagnostics: List[str]
679
+ :param limit: Number of results to return per page.
680
+ :type limit: int
681
+ :param name: Filter results where name matches value
682
+ :type name: str
683
+ :param name__contains: Filter results where name contains value
684
+ :type name__contains: str
685
+ :param name__icontains: Filter results where name contains value
686
+ :type name__icontains: str
687
+ :param name__iexact: Filter results where name matches value
688
+ :type name__iexact: str
689
+ :param name__in: Filter results where name is in a comma-separated list of values
690
+ :type name__in: List[str]
691
+ :param name__iregex: Filter results where name matches regex value
692
+ :type name__iregex: str
693
+ :param name__istartswith: Filter results where name starts with value
694
+ :type name__istartswith: str
695
+ :param name__regex: Filter results where name matches regex value
696
+ :type name__regex: str
697
+ :param name__startswith: Filter results where name starts with value
698
+ :type name__startswith: str
699
+ :param offset: The initial index from which to return the results.
700
+ :type offset: int
701
+ :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) * `path` - Path * `-path` - Path (descending) * `pk` - Pk * `-pk` - Pk (descending)
702
+ :type ordering: List[str]
703
+ :param prn__in: Multiple values may be separated by commas.
704
+ :type prn__in: List[str]
705
+ :param pulp_href__in: Multiple values may be separated by commas.
706
+ :type pulp_href__in: List[str]
707
+ :param pulp_id__in: Multiple values may be separated by commas.
708
+ :type pulp_id__in: List[str]
709
+ :param q: Filter results by using NOT, AND and OR operations on other filters
710
+ :type q: str
711
+ :param fields: A list of fields to include in the response.
712
+ :type fields: List[str]
713
+ :param exclude_fields: A list of fields to exclude from the response.
714
+ :type exclude_fields: List[str]
715
+ :param _request_timeout: timeout setting for this request. If one
716
+ number provided, it will be total request
717
+ timeout. It can also be a pair (tuple) of
718
+ (connection, read) timeouts.
719
+ :type _request_timeout: int, tuple(int, int), optional
720
+ :param _request_auth: set to override the auth_settings for an a single
721
+ request; this effectively ignores the
722
+ authentication in the spec for a single request.
723
+ :type _request_auth: dict, optional
724
+ :param _content_type: force content-type for the request.
725
+ :type _content_type: str, Optional
726
+ :param _headers: set to override the headers for a single
727
+ request; this effectively ignores the headers
728
+ in the spec for a single request.
729
+ :type _headers: dict, optional
730
+ :param _host_index: set to override the host_index for a single
731
+ request; this effectively ignores the host_index
732
+ in the spec for a single request.
733
+ :type _host_index: int, optional
734
+ :return: Returns the result object.
735
+ """ # noqa: E501
736
+
737
+ _param = self._list_serialize(
738
+ pulp_domain=pulp_domain,
739
+ x_task_diagnostics=x_task_diagnostics,
740
+ limit=limit,
741
+ name=name,
742
+ name__contains=name__contains,
743
+ name__icontains=name__icontains,
744
+ name__iexact=name__iexact,
745
+ name__in=name__in,
746
+ name__iregex=name__iregex,
747
+ name__istartswith=name__istartswith,
748
+ name__regex=name__regex,
749
+ name__startswith=name__startswith,
750
+ offset=offset,
751
+ ordering=ordering,
752
+ prn__in=prn__in,
753
+ pulp_href__in=pulp_href__in,
754
+ pulp_id__in=pulp_id__in,
755
+ q=q,
756
+ fields=fields,
757
+ exclude_fields=exclude_fields,
758
+ _request_auth=_request_auth,
759
+ _content_type=_content_type,
760
+ _headers=_headers,
761
+ _host_index=_host_index
762
+ )
763
+
764
+ _response_types_map: Dict[str, Optional[str]] = {
765
+ '200': "PaginatedPulpExporterResponseList",
766
+ }
767
+ response_data = self.api_client.call_api(
768
+ *_param,
769
+ _request_timeout=_request_timeout
770
+ )
771
+ response_data.read()
772
+ return self.api_client.response_deserialize(
773
+ response_data=response_data,
774
+ response_types_map=_response_types_map,
775
+ ).data
776
+
777
+
778
+ @validate_call
779
+ def list_with_http_info(
780
+ self,
781
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
782
+ limit: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None,
783
+ name: Annotated[Optional[StrictStr], Field(description="Filter results where name matches value")] = None,
784
+ name__contains: Annotated[Optional[StrictStr], Field(description="Filter results where name contains value")] = None,
785
+ name__icontains: Annotated[Optional[StrictStr], Field(description="Filter results where name contains value")] = None,
786
+ name__iexact: Annotated[Optional[StrictStr], Field(description="Filter results where name matches value")] = None,
787
+ name__in: Annotated[Optional[List[StrictStr]], Field(description="Filter results where name is in a comma-separated list of values")] = None,
788
+ name__iregex: Annotated[Optional[StrictStr], Field(description="Filter results where name matches regex value")] = None,
789
+ name__istartswith: Annotated[Optional[StrictStr], Field(description="Filter results where name starts with value")] = None,
790
+ name__regex: Annotated[Optional[StrictStr], Field(description="Filter results where name matches regex value")] = None,
791
+ name__startswith: Annotated[Optional[StrictStr], Field(description="Filter results where name starts with value")] = None,
792
+ offset: Annotated[Optional[StrictInt], Field(description="The initial index from which to return the results.")] = None,
793
+ 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) * `path` - Path * `-path` - Path (descending) * `pk` - Pk * `-pk` - Pk (descending)")] = None,
794
+ prn__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
795
+ pulp_href__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
796
+ pulp_id__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
797
+ q: Annotated[Optional[StrictStr], Field(description="Filter results by using NOT, AND and OR operations on other filters")] = None,
798
+ fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
799
+ exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
800
+ pulp_domain: StrictStr = "default",
801
+ _request_timeout: Union[
802
+ None,
803
+ Annotated[StrictFloat, Field(gt=0)],
804
+ Tuple[
805
+ Annotated[StrictFloat, Field(gt=0)],
806
+ Annotated[StrictFloat, Field(gt=0)]
807
+ ]
808
+ ] = None,
809
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
810
+ _content_type: Optional[StrictStr] = None,
811
+ _headers: Optional[Dict[StrictStr, Any]] = None,
812
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
813
+ ) -> ApiResponse[PaginatedPulpExporterResponseList]:
814
+ """List pulp exporters
815
+
816
+ ViewSet for viewing PulpExporters.
817
+
818
+ :param pulp_domain: (required)
819
+ :type pulp_domain: str
820
+ :param x_task_diagnostics: List of profilers to use on tasks.
821
+ :type x_task_diagnostics: List[str]
822
+ :param limit: Number of results to return per page.
823
+ :type limit: int
824
+ :param name: Filter results where name matches value
825
+ :type name: str
826
+ :param name__contains: Filter results where name contains value
827
+ :type name__contains: str
828
+ :param name__icontains: Filter results where name contains value
829
+ :type name__icontains: str
830
+ :param name__iexact: Filter results where name matches value
831
+ :type name__iexact: str
832
+ :param name__in: Filter results where name is in a comma-separated list of values
833
+ :type name__in: List[str]
834
+ :param name__iregex: Filter results where name matches regex value
835
+ :type name__iregex: str
836
+ :param name__istartswith: Filter results where name starts with value
837
+ :type name__istartswith: str
838
+ :param name__regex: Filter results where name matches regex value
839
+ :type name__regex: str
840
+ :param name__startswith: Filter results where name starts with value
841
+ :type name__startswith: str
842
+ :param offset: The initial index from which to return the results.
843
+ :type offset: int
844
+ :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) * `path` - Path * `-path` - Path (descending) * `pk` - Pk * `-pk` - Pk (descending)
845
+ :type ordering: List[str]
846
+ :param prn__in: Multiple values may be separated by commas.
847
+ :type prn__in: List[str]
848
+ :param pulp_href__in: Multiple values may be separated by commas.
849
+ :type pulp_href__in: List[str]
850
+ :param pulp_id__in: Multiple values may be separated by commas.
851
+ :type pulp_id__in: List[str]
852
+ :param q: Filter results by using NOT, AND and OR operations on other filters
853
+ :type q: str
854
+ :param fields: A list of fields to include in the response.
855
+ :type fields: List[str]
856
+ :param exclude_fields: A list of fields to exclude from the response.
857
+ :type exclude_fields: List[str]
858
+ :param _request_timeout: timeout setting for this request. If one
859
+ number provided, it will be total request
860
+ timeout. It can also be a pair (tuple) of
861
+ (connection, read) timeouts.
862
+ :type _request_timeout: int, tuple(int, int), optional
863
+ :param _request_auth: set to override the auth_settings for an a single
864
+ request; this effectively ignores the
865
+ authentication in the spec for a single request.
866
+ :type _request_auth: dict, optional
867
+ :param _content_type: force content-type for the request.
868
+ :type _content_type: str, Optional
869
+ :param _headers: set to override the headers for a single
870
+ request; this effectively ignores the headers
871
+ in the spec for a single request.
872
+ :type _headers: dict, optional
873
+ :param _host_index: set to override the host_index for a single
874
+ request; this effectively ignores the host_index
875
+ in the spec for a single request.
876
+ :type _host_index: int, optional
877
+ :return: Returns the result object.
878
+ """ # noqa: E501
879
+
880
+ _param = self._list_serialize(
881
+ pulp_domain=pulp_domain,
882
+ x_task_diagnostics=x_task_diagnostics,
883
+ limit=limit,
884
+ name=name,
885
+ name__contains=name__contains,
886
+ name__icontains=name__icontains,
887
+ name__iexact=name__iexact,
888
+ name__in=name__in,
889
+ name__iregex=name__iregex,
890
+ name__istartswith=name__istartswith,
891
+ name__regex=name__regex,
892
+ name__startswith=name__startswith,
893
+ offset=offset,
894
+ ordering=ordering,
895
+ prn__in=prn__in,
896
+ pulp_href__in=pulp_href__in,
897
+ pulp_id__in=pulp_id__in,
898
+ q=q,
899
+ fields=fields,
900
+ exclude_fields=exclude_fields,
901
+ _request_auth=_request_auth,
902
+ _content_type=_content_type,
903
+ _headers=_headers,
904
+ _host_index=_host_index
905
+ )
906
+
907
+ _response_types_map: Dict[str, Optional[str]] = {
908
+ '200': "PaginatedPulpExporterResponseList",
909
+ }
910
+ response_data = self.api_client.call_api(
911
+ *_param,
912
+ _request_timeout=_request_timeout
913
+ )
914
+ response_data.read()
915
+ return self.api_client.response_deserialize(
916
+ response_data=response_data,
917
+ response_types_map=_response_types_map,
918
+ )
919
+
920
+
921
+ @validate_call
922
+ def list_without_preload_content(
923
+ self,
924
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
925
+ limit: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None,
926
+ name: Annotated[Optional[StrictStr], Field(description="Filter results where name matches value")] = None,
927
+ name__contains: Annotated[Optional[StrictStr], Field(description="Filter results where name contains value")] = None,
928
+ name__icontains: Annotated[Optional[StrictStr], Field(description="Filter results where name contains value")] = None,
929
+ name__iexact: Annotated[Optional[StrictStr], Field(description="Filter results where name matches value")] = None,
930
+ name__in: Annotated[Optional[List[StrictStr]], Field(description="Filter results where name is in a comma-separated list of values")] = None,
931
+ name__iregex: Annotated[Optional[StrictStr], Field(description="Filter results where name matches regex value")] = None,
932
+ name__istartswith: Annotated[Optional[StrictStr], Field(description="Filter results where name starts with value")] = None,
933
+ name__regex: Annotated[Optional[StrictStr], Field(description="Filter results where name matches regex value")] = None,
934
+ name__startswith: Annotated[Optional[StrictStr], Field(description="Filter results where name starts with value")] = None,
935
+ offset: Annotated[Optional[StrictInt], Field(description="The initial index from which to return the results.")] = None,
936
+ 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) * `path` - Path * `-path` - Path (descending) * `pk` - Pk * `-pk` - Pk (descending)")] = None,
937
+ prn__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
938
+ pulp_href__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
939
+ pulp_id__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
940
+ q: Annotated[Optional[StrictStr], Field(description="Filter results by using NOT, AND and OR operations on other filters")] = None,
941
+ fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
942
+ exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
943
+ pulp_domain: StrictStr = "default",
944
+ _request_timeout: Union[
945
+ None,
946
+ Annotated[StrictFloat, Field(gt=0)],
947
+ Tuple[
948
+ Annotated[StrictFloat, Field(gt=0)],
949
+ Annotated[StrictFloat, Field(gt=0)]
950
+ ]
951
+ ] = None,
952
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
953
+ _content_type: Optional[StrictStr] = None,
954
+ _headers: Optional[Dict[StrictStr, Any]] = None,
955
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
956
+ ) -> RESTResponseType:
957
+ """List pulp exporters
958
+
959
+ ViewSet for viewing PulpExporters.
960
+
961
+ :param pulp_domain: (required)
962
+ :type pulp_domain: str
963
+ :param x_task_diagnostics: List of profilers to use on tasks.
964
+ :type x_task_diagnostics: List[str]
965
+ :param limit: Number of results to return per page.
966
+ :type limit: int
967
+ :param name: Filter results where name matches value
968
+ :type name: str
969
+ :param name__contains: Filter results where name contains value
970
+ :type name__contains: str
971
+ :param name__icontains: Filter results where name contains value
972
+ :type name__icontains: str
973
+ :param name__iexact: Filter results where name matches value
974
+ :type name__iexact: str
975
+ :param name__in: Filter results where name is in a comma-separated list of values
976
+ :type name__in: List[str]
977
+ :param name__iregex: Filter results where name matches regex value
978
+ :type name__iregex: str
979
+ :param name__istartswith: Filter results where name starts with value
980
+ :type name__istartswith: str
981
+ :param name__regex: Filter results where name matches regex value
982
+ :type name__regex: str
983
+ :param name__startswith: Filter results where name starts with value
984
+ :type name__startswith: str
985
+ :param offset: The initial index from which to return the results.
986
+ :type offset: int
987
+ :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) * `path` - Path * `-path` - Path (descending) * `pk` - Pk * `-pk` - Pk (descending)
988
+ :type ordering: List[str]
989
+ :param prn__in: Multiple values may be separated by commas.
990
+ :type prn__in: List[str]
991
+ :param pulp_href__in: Multiple values may be separated by commas.
992
+ :type pulp_href__in: List[str]
993
+ :param pulp_id__in: Multiple values may be separated by commas.
994
+ :type pulp_id__in: List[str]
995
+ :param q: Filter results by using NOT, AND and OR operations on other filters
996
+ :type q: str
997
+ :param fields: A list of fields to include in the response.
998
+ :type fields: List[str]
999
+ :param exclude_fields: A list of fields to exclude from the response.
1000
+ :type exclude_fields: List[str]
1001
+ :param _request_timeout: timeout setting for this request. If one
1002
+ number provided, it will be total request
1003
+ timeout. It can also be a pair (tuple) of
1004
+ (connection, read) timeouts.
1005
+ :type _request_timeout: int, tuple(int, int), optional
1006
+ :param _request_auth: set to override the auth_settings for an a single
1007
+ request; this effectively ignores the
1008
+ authentication in the spec for a single request.
1009
+ :type _request_auth: dict, optional
1010
+ :param _content_type: force content-type for the request.
1011
+ :type _content_type: str, Optional
1012
+ :param _headers: set to override the headers for a single
1013
+ request; this effectively ignores the headers
1014
+ in the spec for a single request.
1015
+ :type _headers: dict, optional
1016
+ :param _host_index: set to override the host_index for a single
1017
+ request; this effectively ignores the host_index
1018
+ in the spec for a single request.
1019
+ :type _host_index: int, optional
1020
+ :return: Returns the result object.
1021
+ """ # noqa: E501
1022
+
1023
+ _param = self._list_serialize(
1024
+ pulp_domain=pulp_domain,
1025
+ x_task_diagnostics=x_task_diagnostics,
1026
+ limit=limit,
1027
+ name=name,
1028
+ name__contains=name__contains,
1029
+ name__icontains=name__icontains,
1030
+ name__iexact=name__iexact,
1031
+ name__in=name__in,
1032
+ name__iregex=name__iregex,
1033
+ name__istartswith=name__istartswith,
1034
+ name__regex=name__regex,
1035
+ name__startswith=name__startswith,
1036
+ offset=offset,
1037
+ ordering=ordering,
1038
+ prn__in=prn__in,
1039
+ pulp_href__in=pulp_href__in,
1040
+ pulp_id__in=pulp_id__in,
1041
+ q=q,
1042
+ fields=fields,
1043
+ exclude_fields=exclude_fields,
1044
+ _request_auth=_request_auth,
1045
+ _content_type=_content_type,
1046
+ _headers=_headers,
1047
+ _host_index=_host_index
1048
+ )
1049
+
1050
+ _response_types_map: Dict[str, Optional[str]] = {
1051
+ '200': "PaginatedPulpExporterResponseList",
1052
+ }
1053
+ response_data = self.api_client.call_api(
1054
+ *_param,
1055
+ _request_timeout=_request_timeout
1056
+ )
1057
+ return response_data.response
1058
+
1059
+
1060
+ def _list_serialize(
1061
+ self,
1062
+ pulp_domain,
1063
+ x_task_diagnostics,
1064
+ limit,
1065
+ name,
1066
+ name__contains,
1067
+ name__icontains,
1068
+ name__iexact,
1069
+ name__in,
1070
+ name__iregex,
1071
+ name__istartswith,
1072
+ name__regex,
1073
+ name__startswith,
1074
+ offset,
1075
+ ordering,
1076
+ prn__in,
1077
+ pulp_href__in,
1078
+ pulp_id__in,
1079
+ q,
1080
+ fields,
1081
+ exclude_fields,
1082
+ _request_auth,
1083
+ _content_type,
1084
+ _headers,
1085
+ _host_index,
1086
+ ) -> RequestSerialized:
1087
+
1088
+ _host = None
1089
+
1090
+ _collection_formats: Dict[str, str] = {
1091
+ 'X-Task-Diagnostics': 'csv',
1092
+ 'name__in': 'csv',
1093
+ 'ordering': 'csv',
1094
+ 'prn__in': 'csv',
1095
+ 'pulp_href__in': 'csv',
1096
+ 'pulp_id__in': 'csv',
1097
+ 'fields': 'multi',
1098
+ 'exclude_fields': 'multi',
1099
+ }
1100
+
1101
+ _path_params: Dict[str, str] = {}
1102
+ _query_params: List[Tuple[str, str]] = []
1103
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1104
+ _form_params: List[Tuple[str, str]] = []
1105
+ _files: Dict[
1106
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1107
+ ] = {}
1108
+ _body_params: Optional[bytes] = None
1109
+
1110
+ # process the path parameters
1111
+ if pulp_domain is not None:
1112
+ _path_params['pulp_domain'] = pulp_domain
1113
+ # process the query parameters
1114
+ if limit is not None:
1115
+
1116
+ _query_params.append(('limit', limit))
1117
+
1118
+ if name is not None:
1119
+
1120
+ _query_params.append(('name', name))
1121
+
1122
+ if name__contains is not None:
1123
+
1124
+ _query_params.append(('name__contains', name__contains))
1125
+
1126
+ if name__icontains is not None:
1127
+
1128
+ _query_params.append(('name__icontains', name__icontains))
1129
+
1130
+ if name__iexact is not None:
1131
+
1132
+ _query_params.append(('name__iexact', name__iexact))
1133
+
1134
+ if name__in is not None:
1135
+
1136
+ _query_params.append(('name__in', name__in))
1137
+
1138
+ if name__iregex is not None:
1139
+
1140
+ _query_params.append(('name__iregex', name__iregex))
1141
+
1142
+ if name__istartswith is not None:
1143
+
1144
+ _query_params.append(('name__istartswith', name__istartswith))
1145
+
1146
+ if name__regex is not None:
1147
+
1148
+ _query_params.append(('name__regex', name__regex))
1149
+
1150
+ if name__startswith is not None:
1151
+
1152
+ _query_params.append(('name__startswith', name__startswith))
1153
+
1154
+ if offset is not None:
1155
+
1156
+ _query_params.append(('offset', offset))
1157
+
1158
+ if ordering is not None:
1159
+
1160
+ _query_params.append(('ordering', ordering))
1161
+
1162
+ if prn__in is not None:
1163
+
1164
+ _query_params.append(('prn__in', prn__in))
1165
+
1166
+ if pulp_href__in is not None:
1167
+
1168
+ _query_params.append(('pulp_href__in', pulp_href__in))
1169
+
1170
+ if pulp_id__in is not None:
1171
+
1172
+ _query_params.append(('pulp_id__in', pulp_id__in))
1173
+
1174
+ if q is not None:
1175
+
1176
+ _query_params.append(('q', q))
1177
+
1178
+ if fields is not None:
1179
+
1180
+ _query_params.append(('fields', fields))
1181
+
1182
+ if exclude_fields is not None:
1183
+
1184
+ _query_params.append(('exclude_fields', exclude_fields))
1185
+
1186
+ # process the header parameters
1187
+ if x_task_diagnostics is not None:
1188
+ _header_params['X-Task-Diagnostics'] = x_task_diagnostics
1189
+ # process the form parameters
1190
+ # process the body parameter
1191
+
1192
+
1193
+ # set the HTTP header `Accept`
1194
+ if 'Accept' not in _header_params:
1195
+ _header_params['Accept'] = self.api_client.select_header_accept(
1196
+ [
1197
+ 'application/json'
1198
+ ]
1199
+ )
1200
+
1201
+
1202
+ # authentication setting
1203
+ _auth_settings: List[str] = [
1204
+ 'json_header_remote_authentication',
1205
+ 'basicAuth',
1206
+ 'cookieAuth'
1207
+ ]
1208
+
1209
+ return self.api_client.param_serialize(
1210
+ method='GET',
1211
+ resource_path='/api/pulp/{pulp_domain}/api/v3/exporters/core/pulp/',
1212
+ path_params=_path_params,
1213
+ query_params=_query_params,
1214
+ header_params=_header_params,
1215
+ body=_body_params,
1216
+ post_params=_form_params,
1217
+ files=_files,
1218
+ auth_settings=_auth_settings,
1219
+ collection_formats=_collection_formats,
1220
+ _host=_host,
1221
+ _request_auth=_request_auth
1222
+ )
1223
+
1224
+
1225
+
1226
+
1227
+ @validate_call
1228
+ def partial_update(
1229
+ self,
1230
+ pulp_exporter_href: StrictStr,
1231
+ patched_pulp_exporter: PatchedPulpExporter,
1232
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
1233
+ _request_timeout: Union[
1234
+ None,
1235
+ Annotated[StrictFloat, Field(gt=0)],
1236
+ Tuple[
1237
+ Annotated[StrictFloat, Field(gt=0)],
1238
+ Annotated[StrictFloat, Field(gt=0)]
1239
+ ]
1240
+ ] = None,
1241
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1242
+ _content_type: Optional[StrictStr] = None,
1243
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1244
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1245
+ ) -> AsyncOperationResponse:
1246
+ """Update a pulp exporter
1247
+
1248
+ Trigger an asynchronous partial update task
1249
+
1250
+ :param pulp_exporter_href: (required)
1251
+ :type pulp_exporter_href: str
1252
+ :param patched_pulp_exporter: (required)
1253
+ :type patched_pulp_exporter: PatchedPulpExporter
1254
+ :param x_task_diagnostics: List of profilers to use on tasks.
1255
+ :type x_task_diagnostics: List[str]
1256
+ :param _request_timeout: timeout setting for this request. If one
1257
+ number provided, it will be total request
1258
+ timeout. It can also be a pair (tuple) of
1259
+ (connection, read) timeouts.
1260
+ :type _request_timeout: int, tuple(int, int), optional
1261
+ :param _request_auth: set to override the auth_settings for an a single
1262
+ request; this effectively ignores the
1263
+ authentication in the spec for a single request.
1264
+ :type _request_auth: dict, optional
1265
+ :param _content_type: force content-type for the request.
1266
+ :type _content_type: str, Optional
1267
+ :param _headers: set to override the headers for a single
1268
+ request; this effectively ignores the headers
1269
+ in the spec for a single request.
1270
+ :type _headers: dict, optional
1271
+ :param _host_index: set to override the host_index for a single
1272
+ request; this effectively ignores the host_index
1273
+ in the spec for a single request.
1274
+ :type _host_index: int, optional
1275
+ :return: Returns the result object.
1276
+ """ # noqa: E501
1277
+
1278
+ _param = self._partial_update_serialize(
1279
+ pulp_exporter_href=pulp_exporter_href,
1280
+ patched_pulp_exporter=patched_pulp_exporter,
1281
+ x_task_diagnostics=x_task_diagnostics,
1282
+ _request_auth=_request_auth,
1283
+ _content_type=_content_type,
1284
+ _headers=_headers,
1285
+ _host_index=_host_index
1286
+ )
1287
+
1288
+ _response_types_map: Dict[str, Optional[str]] = {
1289
+ '202': "AsyncOperationResponse",
1290
+ }
1291
+ response_data = self.api_client.call_api(
1292
+ *_param,
1293
+ _request_timeout=_request_timeout
1294
+ )
1295
+ response_data.read()
1296
+ return self.api_client.response_deserialize(
1297
+ response_data=response_data,
1298
+ response_types_map=_response_types_map,
1299
+ ).data
1300
+
1301
+
1302
+ @validate_call
1303
+ def partial_update_with_http_info(
1304
+ self,
1305
+ pulp_exporter_href: StrictStr,
1306
+ patched_pulp_exporter: PatchedPulpExporter,
1307
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
1308
+ _request_timeout: Union[
1309
+ None,
1310
+ Annotated[StrictFloat, Field(gt=0)],
1311
+ Tuple[
1312
+ Annotated[StrictFloat, Field(gt=0)],
1313
+ Annotated[StrictFloat, Field(gt=0)]
1314
+ ]
1315
+ ] = None,
1316
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1317
+ _content_type: Optional[StrictStr] = None,
1318
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1319
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1320
+ ) -> ApiResponse[AsyncOperationResponse]:
1321
+ """Update a pulp exporter
1322
+
1323
+ Trigger an asynchronous partial update task
1324
+
1325
+ :param pulp_exporter_href: (required)
1326
+ :type pulp_exporter_href: str
1327
+ :param patched_pulp_exporter: (required)
1328
+ :type patched_pulp_exporter: PatchedPulpExporter
1329
+ :param x_task_diagnostics: List of profilers to use on tasks.
1330
+ :type x_task_diagnostics: List[str]
1331
+ :param _request_timeout: timeout setting for this request. If one
1332
+ number provided, it will be total request
1333
+ timeout. It can also be a pair (tuple) of
1334
+ (connection, read) timeouts.
1335
+ :type _request_timeout: int, tuple(int, int), optional
1336
+ :param _request_auth: set to override the auth_settings for an a single
1337
+ request; this effectively ignores the
1338
+ authentication in the spec for a single request.
1339
+ :type _request_auth: dict, optional
1340
+ :param _content_type: force content-type for the request.
1341
+ :type _content_type: str, Optional
1342
+ :param _headers: set to override the headers for a single
1343
+ request; this effectively ignores the headers
1344
+ in the spec for a single request.
1345
+ :type _headers: dict, optional
1346
+ :param _host_index: set to override the host_index for a single
1347
+ request; this effectively ignores the host_index
1348
+ in the spec for a single request.
1349
+ :type _host_index: int, optional
1350
+ :return: Returns the result object.
1351
+ """ # noqa: E501
1352
+
1353
+ _param = self._partial_update_serialize(
1354
+ pulp_exporter_href=pulp_exporter_href,
1355
+ patched_pulp_exporter=patched_pulp_exporter,
1356
+ x_task_diagnostics=x_task_diagnostics,
1357
+ _request_auth=_request_auth,
1358
+ _content_type=_content_type,
1359
+ _headers=_headers,
1360
+ _host_index=_host_index
1361
+ )
1362
+
1363
+ _response_types_map: Dict[str, Optional[str]] = {
1364
+ '202': "AsyncOperationResponse",
1365
+ }
1366
+ response_data = self.api_client.call_api(
1367
+ *_param,
1368
+ _request_timeout=_request_timeout
1369
+ )
1370
+ response_data.read()
1371
+ return self.api_client.response_deserialize(
1372
+ response_data=response_data,
1373
+ response_types_map=_response_types_map,
1374
+ )
1375
+
1376
+
1377
+ @validate_call
1378
+ def partial_update_without_preload_content(
1379
+ self,
1380
+ pulp_exporter_href: StrictStr,
1381
+ patched_pulp_exporter: PatchedPulpExporter,
1382
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
1383
+ _request_timeout: Union[
1384
+ None,
1385
+ Annotated[StrictFloat, Field(gt=0)],
1386
+ Tuple[
1387
+ Annotated[StrictFloat, Field(gt=0)],
1388
+ Annotated[StrictFloat, Field(gt=0)]
1389
+ ]
1390
+ ] = None,
1391
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1392
+ _content_type: Optional[StrictStr] = None,
1393
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1394
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1395
+ ) -> RESTResponseType:
1396
+ """Update a pulp exporter
1397
+
1398
+ Trigger an asynchronous partial update task
1399
+
1400
+ :param pulp_exporter_href: (required)
1401
+ :type pulp_exporter_href: str
1402
+ :param patched_pulp_exporter: (required)
1403
+ :type patched_pulp_exporter: PatchedPulpExporter
1404
+ :param x_task_diagnostics: List of profilers to use on tasks.
1405
+ :type x_task_diagnostics: List[str]
1406
+ :param _request_timeout: timeout setting for this request. If one
1407
+ number provided, it will be total request
1408
+ timeout. It can also be a pair (tuple) of
1409
+ (connection, read) timeouts.
1410
+ :type _request_timeout: int, tuple(int, int), optional
1411
+ :param _request_auth: set to override the auth_settings for an a single
1412
+ request; this effectively ignores the
1413
+ authentication in the spec for a single request.
1414
+ :type _request_auth: dict, optional
1415
+ :param _content_type: force content-type for the request.
1416
+ :type _content_type: str, Optional
1417
+ :param _headers: set to override the headers for a single
1418
+ request; this effectively ignores the headers
1419
+ in the spec for a single request.
1420
+ :type _headers: dict, optional
1421
+ :param _host_index: set to override the host_index for a single
1422
+ request; this effectively ignores the host_index
1423
+ in the spec for a single request.
1424
+ :type _host_index: int, optional
1425
+ :return: Returns the result object.
1426
+ """ # noqa: E501
1427
+
1428
+ _param = self._partial_update_serialize(
1429
+ pulp_exporter_href=pulp_exporter_href,
1430
+ patched_pulp_exporter=patched_pulp_exporter,
1431
+ x_task_diagnostics=x_task_diagnostics,
1432
+ _request_auth=_request_auth,
1433
+ _content_type=_content_type,
1434
+ _headers=_headers,
1435
+ _host_index=_host_index
1436
+ )
1437
+
1438
+ _response_types_map: Dict[str, Optional[str]] = {
1439
+ '202': "AsyncOperationResponse",
1440
+ }
1441
+ response_data = self.api_client.call_api(
1442
+ *_param,
1443
+ _request_timeout=_request_timeout
1444
+ )
1445
+ return response_data.response
1446
+
1447
+
1448
+ def _partial_update_serialize(
1449
+ self,
1450
+ pulp_exporter_href,
1451
+ patched_pulp_exporter,
1452
+ x_task_diagnostics,
1453
+ _request_auth,
1454
+ _content_type,
1455
+ _headers,
1456
+ _host_index,
1457
+ ) -> RequestSerialized:
1458
+
1459
+ _host = None
1460
+
1461
+ _collection_formats: Dict[str, str] = {
1462
+ 'X-Task-Diagnostics': 'csv',
1463
+ }
1464
+
1465
+ _path_params: Dict[str, str] = {}
1466
+ _query_params: List[Tuple[str, str]] = []
1467
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1468
+ _form_params: List[Tuple[str, str]] = []
1469
+ _files: Dict[
1470
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1471
+ ] = {}
1472
+ _body_params: Optional[bytes] = None
1473
+
1474
+ # process the path parameters
1475
+ if pulp_exporter_href is not None:
1476
+ _path_params['pulp_exporter_href'] = pulp_exporter_href
1477
+ # process the query parameters
1478
+ # process the header parameters
1479
+ if x_task_diagnostics is not None:
1480
+ _header_params['X-Task-Diagnostics'] = x_task_diagnostics
1481
+ # process the form parameters
1482
+ # process the body parameter
1483
+ if patched_pulp_exporter is not None:
1484
+ _body_params = patched_pulp_exporter
1485
+
1486
+
1487
+ # set the HTTP header `Accept`
1488
+ if 'Accept' not in _header_params:
1489
+ _header_params['Accept'] = self.api_client.select_header_accept(
1490
+ [
1491
+ 'application/json'
1492
+ ]
1493
+ )
1494
+
1495
+ # set the HTTP header `Content-Type`
1496
+ if _content_type:
1497
+ _header_params['Content-Type'] = _content_type
1498
+ else:
1499
+ _default_content_type = (
1500
+ self.api_client.select_header_content_type(
1501
+ [
1502
+ 'application/json',
1503
+ 'application/x-www-form-urlencoded',
1504
+ 'multipart/form-data'
1505
+ ]
1506
+ )
1507
+ )
1508
+ if _default_content_type is not None:
1509
+ _header_params['Content-Type'] = _default_content_type
1510
+
1511
+ # authentication setting
1512
+ _auth_settings: List[str] = [
1513
+ 'json_header_remote_authentication',
1514
+ 'basicAuth',
1515
+ 'cookieAuth'
1516
+ ]
1517
+
1518
+ return self.api_client.param_serialize(
1519
+ method='PATCH',
1520
+ resource_path='{pulp_exporter_href}',
1521
+ path_params=_path_params,
1522
+ query_params=_query_params,
1523
+ header_params=_header_params,
1524
+ body=_body_params,
1525
+ post_params=_form_params,
1526
+ files=_files,
1527
+ auth_settings=_auth_settings,
1528
+ collection_formats=_collection_formats,
1529
+ _host=_host,
1530
+ _request_auth=_request_auth
1531
+ )
1532
+
1533
+
1534
+
1535
+
1536
+ @validate_call
1537
+ def read(
1538
+ self,
1539
+ pulp_exporter_href: StrictStr,
1540
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
1541
+ fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
1542
+ exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
1543
+ _request_timeout: Union[
1544
+ None,
1545
+ Annotated[StrictFloat, Field(gt=0)],
1546
+ Tuple[
1547
+ Annotated[StrictFloat, Field(gt=0)],
1548
+ Annotated[StrictFloat, Field(gt=0)]
1549
+ ]
1550
+ ] = None,
1551
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1552
+ _content_type: Optional[StrictStr] = None,
1553
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1554
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1555
+ ) -> PulpExporterResponse:
1556
+ """Inspect a pulp exporter
1557
+
1558
+ ViewSet for viewing PulpExporters.
1559
+
1560
+ :param pulp_exporter_href: (required)
1561
+ :type pulp_exporter_href: str
1562
+ :param x_task_diagnostics: List of profilers to use on tasks.
1563
+ :type x_task_diagnostics: List[str]
1564
+ :param fields: A list of fields to include in the response.
1565
+ :type fields: List[str]
1566
+ :param exclude_fields: A list of fields to exclude from the response.
1567
+ :type exclude_fields: List[str]
1568
+ :param _request_timeout: timeout setting for this request. If one
1569
+ number provided, it will be total request
1570
+ timeout. It can also be a pair (tuple) of
1571
+ (connection, read) timeouts.
1572
+ :type _request_timeout: int, tuple(int, int), optional
1573
+ :param _request_auth: set to override the auth_settings for an a single
1574
+ request; this effectively ignores the
1575
+ authentication in the spec for a single request.
1576
+ :type _request_auth: dict, optional
1577
+ :param _content_type: force content-type for the request.
1578
+ :type _content_type: str, Optional
1579
+ :param _headers: set to override the headers for a single
1580
+ request; this effectively ignores the headers
1581
+ in the spec for a single request.
1582
+ :type _headers: dict, optional
1583
+ :param _host_index: set to override the host_index for a single
1584
+ request; this effectively ignores the host_index
1585
+ in the spec for a single request.
1586
+ :type _host_index: int, optional
1587
+ :return: Returns the result object.
1588
+ """ # noqa: E501
1589
+
1590
+ _param = self._read_serialize(
1591
+ pulp_exporter_href=pulp_exporter_href,
1592
+ x_task_diagnostics=x_task_diagnostics,
1593
+ fields=fields,
1594
+ exclude_fields=exclude_fields,
1595
+ _request_auth=_request_auth,
1596
+ _content_type=_content_type,
1597
+ _headers=_headers,
1598
+ _host_index=_host_index
1599
+ )
1600
+
1601
+ _response_types_map: Dict[str, Optional[str]] = {
1602
+ '200': "PulpExporterResponse",
1603
+ }
1604
+ response_data = self.api_client.call_api(
1605
+ *_param,
1606
+ _request_timeout=_request_timeout
1607
+ )
1608
+ response_data.read()
1609
+ return self.api_client.response_deserialize(
1610
+ response_data=response_data,
1611
+ response_types_map=_response_types_map,
1612
+ ).data
1613
+
1614
+
1615
+ @validate_call
1616
+ def read_with_http_info(
1617
+ self,
1618
+ pulp_exporter_href: StrictStr,
1619
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
1620
+ fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
1621
+ exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
1622
+ _request_timeout: Union[
1623
+ None,
1624
+ Annotated[StrictFloat, Field(gt=0)],
1625
+ Tuple[
1626
+ Annotated[StrictFloat, Field(gt=0)],
1627
+ Annotated[StrictFloat, Field(gt=0)]
1628
+ ]
1629
+ ] = None,
1630
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1631
+ _content_type: Optional[StrictStr] = None,
1632
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1633
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1634
+ ) -> ApiResponse[PulpExporterResponse]:
1635
+ """Inspect a pulp exporter
1636
+
1637
+ ViewSet for viewing PulpExporters.
1638
+
1639
+ :param pulp_exporter_href: (required)
1640
+ :type pulp_exporter_href: str
1641
+ :param x_task_diagnostics: List of profilers to use on tasks.
1642
+ :type x_task_diagnostics: List[str]
1643
+ :param fields: A list of fields to include in the response.
1644
+ :type fields: List[str]
1645
+ :param exclude_fields: A list of fields to exclude from the response.
1646
+ :type exclude_fields: List[str]
1647
+ :param _request_timeout: timeout setting for this request. If one
1648
+ number provided, it will be total request
1649
+ timeout. It can also be a pair (tuple) of
1650
+ (connection, read) timeouts.
1651
+ :type _request_timeout: int, tuple(int, int), optional
1652
+ :param _request_auth: set to override the auth_settings for an a single
1653
+ request; this effectively ignores the
1654
+ authentication in the spec for a single request.
1655
+ :type _request_auth: dict, optional
1656
+ :param _content_type: force content-type for the request.
1657
+ :type _content_type: str, Optional
1658
+ :param _headers: set to override the headers for a single
1659
+ request; this effectively ignores the headers
1660
+ in the spec for a single request.
1661
+ :type _headers: dict, optional
1662
+ :param _host_index: set to override the host_index for a single
1663
+ request; this effectively ignores the host_index
1664
+ in the spec for a single request.
1665
+ :type _host_index: int, optional
1666
+ :return: Returns the result object.
1667
+ """ # noqa: E501
1668
+
1669
+ _param = self._read_serialize(
1670
+ pulp_exporter_href=pulp_exporter_href,
1671
+ x_task_diagnostics=x_task_diagnostics,
1672
+ fields=fields,
1673
+ exclude_fields=exclude_fields,
1674
+ _request_auth=_request_auth,
1675
+ _content_type=_content_type,
1676
+ _headers=_headers,
1677
+ _host_index=_host_index
1678
+ )
1679
+
1680
+ _response_types_map: Dict[str, Optional[str]] = {
1681
+ '200': "PulpExporterResponse",
1682
+ }
1683
+ response_data = self.api_client.call_api(
1684
+ *_param,
1685
+ _request_timeout=_request_timeout
1686
+ )
1687
+ response_data.read()
1688
+ return self.api_client.response_deserialize(
1689
+ response_data=response_data,
1690
+ response_types_map=_response_types_map,
1691
+ )
1692
+
1693
+
1694
+ @validate_call
1695
+ def read_without_preload_content(
1696
+ self,
1697
+ pulp_exporter_href: StrictStr,
1698
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
1699
+ fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
1700
+ exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
1701
+ _request_timeout: Union[
1702
+ None,
1703
+ Annotated[StrictFloat, Field(gt=0)],
1704
+ Tuple[
1705
+ Annotated[StrictFloat, Field(gt=0)],
1706
+ Annotated[StrictFloat, Field(gt=0)]
1707
+ ]
1708
+ ] = None,
1709
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1710
+ _content_type: Optional[StrictStr] = None,
1711
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1712
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1713
+ ) -> RESTResponseType:
1714
+ """Inspect a pulp exporter
1715
+
1716
+ ViewSet for viewing PulpExporters.
1717
+
1718
+ :param pulp_exporter_href: (required)
1719
+ :type pulp_exporter_href: str
1720
+ :param x_task_diagnostics: List of profilers to use on tasks.
1721
+ :type x_task_diagnostics: List[str]
1722
+ :param fields: A list of fields to include in the response.
1723
+ :type fields: List[str]
1724
+ :param exclude_fields: A list of fields to exclude from the response.
1725
+ :type exclude_fields: List[str]
1726
+ :param _request_timeout: timeout setting for this request. If one
1727
+ number provided, it will be total request
1728
+ timeout. It can also be a pair (tuple) of
1729
+ (connection, read) timeouts.
1730
+ :type _request_timeout: int, tuple(int, int), optional
1731
+ :param _request_auth: set to override the auth_settings for an a single
1732
+ request; this effectively ignores the
1733
+ authentication in the spec for a single request.
1734
+ :type _request_auth: dict, optional
1735
+ :param _content_type: force content-type for the request.
1736
+ :type _content_type: str, Optional
1737
+ :param _headers: set to override the headers for a single
1738
+ request; this effectively ignores the headers
1739
+ in the spec for a single request.
1740
+ :type _headers: dict, optional
1741
+ :param _host_index: set to override the host_index for a single
1742
+ request; this effectively ignores the host_index
1743
+ in the spec for a single request.
1744
+ :type _host_index: int, optional
1745
+ :return: Returns the result object.
1746
+ """ # noqa: E501
1747
+
1748
+ _param = self._read_serialize(
1749
+ pulp_exporter_href=pulp_exporter_href,
1750
+ x_task_diagnostics=x_task_diagnostics,
1751
+ fields=fields,
1752
+ exclude_fields=exclude_fields,
1753
+ _request_auth=_request_auth,
1754
+ _content_type=_content_type,
1755
+ _headers=_headers,
1756
+ _host_index=_host_index
1757
+ )
1758
+
1759
+ _response_types_map: Dict[str, Optional[str]] = {
1760
+ '200': "PulpExporterResponse",
1761
+ }
1762
+ response_data = self.api_client.call_api(
1763
+ *_param,
1764
+ _request_timeout=_request_timeout
1765
+ )
1766
+ return response_data.response
1767
+
1768
+
1769
+ def _read_serialize(
1770
+ self,
1771
+ pulp_exporter_href,
1772
+ x_task_diagnostics,
1773
+ fields,
1774
+ exclude_fields,
1775
+ _request_auth,
1776
+ _content_type,
1777
+ _headers,
1778
+ _host_index,
1779
+ ) -> RequestSerialized:
1780
+
1781
+ _host = None
1782
+
1783
+ _collection_formats: Dict[str, str] = {
1784
+ 'X-Task-Diagnostics': 'csv',
1785
+ 'fields': 'multi',
1786
+ 'exclude_fields': 'multi',
1787
+ }
1788
+
1789
+ _path_params: Dict[str, str] = {}
1790
+ _query_params: List[Tuple[str, str]] = []
1791
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1792
+ _form_params: List[Tuple[str, str]] = []
1793
+ _files: Dict[
1794
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1795
+ ] = {}
1796
+ _body_params: Optional[bytes] = None
1797
+
1798
+ # process the path parameters
1799
+ if pulp_exporter_href is not None:
1800
+ _path_params['pulp_exporter_href'] = pulp_exporter_href
1801
+ # process the query parameters
1802
+ if fields is not None:
1803
+
1804
+ _query_params.append(('fields', fields))
1805
+
1806
+ if exclude_fields is not None:
1807
+
1808
+ _query_params.append(('exclude_fields', exclude_fields))
1809
+
1810
+ # process the header parameters
1811
+ if x_task_diagnostics is not None:
1812
+ _header_params['X-Task-Diagnostics'] = x_task_diagnostics
1813
+ # process the form parameters
1814
+ # process the body parameter
1815
+
1816
+
1817
+ # set the HTTP header `Accept`
1818
+ if 'Accept' not in _header_params:
1819
+ _header_params['Accept'] = self.api_client.select_header_accept(
1820
+ [
1821
+ 'application/json'
1822
+ ]
1823
+ )
1824
+
1825
+
1826
+ # authentication setting
1827
+ _auth_settings: List[str] = [
1828
+ 'json_header_remote_authentication',
1829
+ 'basicAuth',
1830
+ 'cookieAuth'
1831
+ ]
1832
+
1833
+ return self.api_client.param_serialize(
1834
+ method='GET',
1835
+ resource_path='{pulp_exporter_href}',
1836
+ path_params=_path_params,
1837
+ query_params=_query_params,
1838
+ header_params=_header_params,
1839
+ body=_body_params,
1840
+ post_params=_form_params,
1841
+ files=_files,
1842
+ auth_settings=_auth_settings,
1843
+ collection_formats=_collection_formats,
1844
+ _host=_host,
1845
+ _request_auth=_request_auth
1846
+ )
1847
+
1848
+
1849
+
1850
+
1851
+ @validate_call
1852
+ def update(
1853
+ self,
1854
+ pulp_exporter_href: StrictStr,
1855
+ pulp_exporter: PulpExporter,
1856
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
1857
+ _request_timeout: Union[
1858
+ None,
1859
+ Annotated[StrictFloat, Field(gt=0)],
1860
+ Tuple[
1861
+ Annotated[StrictFloat, Field(gt=0)],
1862
+ Annotated[StrictFloat, Field(gt=0)]
1863
+ ]
1864
+ ] = None,
1865
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1866
+ _content_type: Optional[StrictStr] = None,
1867
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1868
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1869
+ ) -> AsyncOperationResponse:
1870
+ """Update a pulp exporter
1871
+
1872
+ Trigger an asynchronous update task
1873
+
1874
+ :param pulp_exporter_href: (required)
1875
+ :type pulp_exporter_href: str
1876
+ :param pulp_exporter: (required)
1877
+ :type pulp_exporter: PulpExporter
1878
+ :param x_task_diagnostics: List of profilers to use on tasks.
1879
+ :type x_task_diagnostics: List[str]
1880
+ :param _request_timeout: timeout setting for this request. If one
1881
+ number provided, it will be total request
1882
+ timeout. It can also be a pair (tuple) of
1883
+ (connection, read) timeouts.
1884
+ :type _request_timeout: int, tuple(int, int), optional
1885
+ :param _request_auth: set to override the auth_settings for an a single
1886
+ request; this effectively ignores the
1887
+ authentication in the spec for a single request.
1888
+ :type _request_auth: dict, optional
1889
+ :param _content_type: force content-type for the request.
1890
+ :type _content_type: str, Optional
1891
+ :param _headers: set to override the headers for a single
1892
+ request; this effectively ignores the headers
1893
+ in the spec for a single request.
1894
+ :type _headers: dict, optional
1895
+ :param _host_index: set to override the host_index for a single
1896
+ request; this effectively ignores the host_index
1897
+ in the spec for a single request.
1898
+ :type _host_index: int, optional
1899
+ :return: Returns the result object.
1900
+ """ # noqa: E501
1901
+
1902
+ _param = self._update_serialize(
1903
+ pulp_exporter_href=pulp_exporter_href,
1904
+ pulp_exporter=pulp_exporter,
1905
+ x_task_diagnostics=x_task_diagnostics,
1906
+ _request_auth=_request_auth,
1907
+ _content_type=_content_type,
1908
+ _headers=_headers,
1909
+ _host_index=_host_index
1910
+ )
1911
+
1912
+ _response_types_map: Dict[str, Optional[str]] = {
1913
+ '202': "AsyncOperationResponse",
1914
+ }
1915
+ response_data = self.api_client.call_api(
1916
+ *_param,
1917
+ _request_timeout=_request_timeout
1918
+ )
1919
+ response_data.read()
1920
+ return self.api_client.response_deserialize(
1921
+ response_data=response_data,
1922
+ response_types_map=_response_types_map,
1923
+ ).data
1924
+
1925
+
1926
+ @validate_call
1927
+ def update_with_http_info(
1928
+ self,
1929
+ pulp_exporter_href: StrictStr,
1930
+ pulp_exporter: PulpExporter,
1931
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
1932
+ _request_timeout: Union[
1933
+ None,
1934
+ Annotated[StrictFloat, Field(gt=0)],
1935
+ Tuple[
1936
+ Annotated[StrictFloat, Field(gt=0)],
1937
+ Annotated[StrictFloat, Field(gt=0)]
1938
+ ]
1939
+ ] = None,
1940
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1941
+ _content_type: Optional[StrictStr] = None,
1942
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1943
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1944
+ ) -> ApiResponse[AsyncOperationResponse]:
1945
+ """Update a pulp exporter
1946
+
1947
+ Trigger an asynchronous update task
1948
+
1949
+ :param pulp_exporter_href: (required)
1950
+ :type pulp_exporter_href: str
1951
+ :param pulp_exporter: (required)
1952
+ :type pulp_exporter: PulpExporter
1953
+ :param x_task_diagnostics: List of profilers to use on tasks.
1954
+ :type x_task_diagnostics: List[str]
1955
+ :param _request_timeout: timeout setting for this request. If one
1956
+ number provided, it will be total request
1957
+ timeout. It can also be a pair (tuple) of
1958
+ (connection, read) timeouts.
1959
+ :type _request_timeout: int, tuple(int, int), optional
1960
+ :param _request_auth: set to override the auth_settings for an a single
1961
+ request; this effectively ignores the
1962
+ authentication in the spec for a single request.
1963
+ :type _request_auth: dict, optional
1964
+ :param _content_type: force content-type for the request.
1965
+ :type _content_type: str, Optional
1966
+ :param _headers: set to override the headers for a single
1967
+ request; this effectively ignores the headers
1968
+ in the spec for a single request.
1969
+ :type _headers: dict, optional
1970
+ :param _host_index: set to override the host_index for a single
1971
+ request; this effectively ignores the host_index
1972
+ in the spec for a single request.
1973
+ :type _host_index: int, optional
1974
+ :return: Returns the result object.
1975
+ """ # noqa: E501
1976
+
1977
+ _param = self._update_serialize(
1978
+ pulp_exporter_href=pulp_exporter_href,
1979
+ pulp_exporter=pulp_exporter,
1980
+ x_task_diagnostics=x_task_diagnostics,
1981
+ _request_auth=_request_auth,
1982
+ _content_type=_content_type,
1983
+ _headers=_headers,
1984
+ _host_index=_host_index
1985
+ )
1986
+
1987
+ _response_types_map: Dict[str, Optional[str]] = {
1988
+ '202': "AsyncOperationResponse",
1989
+ }
1990
+ response_data = self.api_client.call_api(
1991
+ *_param,
1992
+ _request_timeout=_request_timeout
1993
+ )
1994
+ response_data.read()
1995
+ return self.api_client.response_deserialize(
1996
+ response_data=response_data,
1997
+ response_types_map=_response_types_map,
1998
+ )
1999
+
2000
+
2001
+ @validate_call
2002
+ def update_without_preload_content(
2003
+ self,
2004
+ pulp_exporter_href: StrictStr,
2005
+ pulp_exporter: PulpExporter,
2006
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
2007
+ _request_timeout: Union[
2008
+ None,
2009
+ Annotated[StrictFloat, Field(gt=0)],
2010
+ Tuple[
2011
+ Annotated[StrictFloat, Field(gt=0)],
2012
+ Annotated[StrictFloat, Field(gt=0)]
2013
+ ]
2014
+ ] = None,
2015
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2016
+ _content_type: Optional[StrictStr] = None,
2017
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2018
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2019
+ ) -> RESTResponseType:
2020
+ """Update a pulp exporter
2021
+
2022
+ Trigger an asynchronous update task
2023
+
2024
+ :param pulp_exporter_href: (required)
2025
+ :type pulp_exporter_href: str
2026
+ :param pulp_exporter: (required)
2027
+ :type pulp_exporter: PulpExporter
2028
+ :param x_task_diagnostics: List of profilers to use on tasks.
2029
+ :type x_task_diagnostics: List[str]
2030
+ :param _request_timeout: timeout setting for this request. If one
2031
+ number provided, it will be total request
2032
+ timeout. It can also be a pair (tuple) of
2033
+ (connection, read) timeouts.
2034
+ :type _request_timeout: int, tuple(int, int), optional
2035
+ :param _request_auth: set to override the auth_settings for an a single
2036
+ request; this effectively ignores the
2037
+ authentication in the spec for a single request.
2038
+ :type _request_auth: dict, optional
2039
+ :param _content_type: force content-type for the request.
2040
+ :type _content_type: str, Optional
2041
+ :param _headers: set to override the headers for a single
2042
+ request; this effectively ignores the headers
2043
+ in the spec for a single request.
2044
+ :type _headers: dict, optional
2045
+ :param _host_index: set to override the host_index for a single
2046
+ request; this effectively ignores the host_index
2047
+ in the spec for a single request.
2048
+ :type _host_index: int, optional
2049
+ :return: Returns the result object.
2050
+ """ # noqa: E501
2051
+
2052
+ _param = self._update_serialize(
2053
+ pulp_exporter_href=pulp_exporter_href,
2054
+ pulp_exporter=pulp_exporter,
2055
+ x_task_diagnostics=x_task_diagnostics,
2056
+ _request_auth=_request_auth,
2057
+ _content_type=_content_type,
2058
+ _headers=_headers,
2059
+ _host_index=_host_index
2060
+ )
2061
+
2062
+ _response_types_map: Dict[str, Optional[str]] = {
2063
+ '202': "AsyncOperationResponse",
2064
+ }
2065
+ response_data = self.api_client.call_api(
2066
+ *_param,
2067
+ _request_timeout=_request_timeout
2068
+ )
2069
+ return response_data.response
2070
+
2071
+
2072
+ def _update_serialize(
2073
+ self,
2074
+ pulp_exporter_href,
2075
+ pulp_exporter,
2076
+ x_task_diagnostics,
2077
+ _request_auth,
2078
+ _content_type,
2079
+ _headers,
2080
+ _host_index,
2081
+ ) -> RequestSerialized:
2082
+
2083
+ _host = None
2084
+
2085
+ _collection_formats: Dict[str, str] = {
2086
+ 'X-Task-Diagnostics': 'csv',
2087
+ }
2088
+
2089
+ _path_params: Dict[str, str] = {}
2090
+ _query_params: List[Tuple[str, str]] = []
2091
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2092
+ _form_params: List[Tuple[str, str]] = []
2093
+ _files: Dict[
2094
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2095
+ ] = {}
2096
+ _body_params: Optional[bytes] = None
2097
+
2098
+ # process the path parameters
2099
+ if pulp_exporter_href is not None:
2100
+ _path_params['pulp_exporter_href'] = pulp_exporter_href
2101
+ # process the query parameters
2102
+ # process the header parameters
2103
+ if x_task_diagnostics is not None:
2104
+ _header_params['X-Task-Diagnostics'] = x_task_diagnostics
2105
+ # process the form parameters
2106
+ # process the body parameter
2107
+ if pulp_exporter is not None:
2108
+ _body_params = pulp_exporter
2109
+
2110
+
2111
+ # set the HTTP header `Accept`
2112
+ if 'Accept' not in _header_params:
2113
+ _header_params['Accept'] = self.api_client.select_header_accept(
2114
+ [
2115
+ 'application/json'
2116
+ ]
2117
+ )
2118
+
2119
+ # set the HTTP header `Content-Type`
2120
+ if _content_type:
2121
+ _header_params['Content-Type'] = _content_type
2122
+ else:
2123
+ _default_content_type = (
2124
+ self.api_client.select_header_content_type(
2125
+ [
2126
+ 'application/json',
2127
+ 'application/x-www-form-urlencoded',
2128
+ 'multipart/form-data'
2129
+ ]
2130
+ )
2131
+ )
2132
+ if _default_content_type is not None:
2133
+ _header_params['Content-Type'] = _default_content_type
2134
+
2135
+ # authentication setting
2136
+ _auth_settings: List[str] = [
2137
+ 'json_header_remote_authentication',
2138
+ 'basicAuth',
2139
+ 'cookieAuth'
2140
+ ]
2141
+
2142
+ return self.api_client.param_serialize(
2143
+ method='PUT',
2144
+ resource_path='{pulp_exporter_href}',
2145
+ path_params=_path_params,
2146
+ query_params=_query_params,
2147
+ header_params=_header_params,
2148
+ body=_body_params,
2149
+ post_params=_form_params,
2150
+ files=_files,
2151
+ auth_settings=_auth_settings,
2152
+ collection_formats=_collection_formats,
2153
+ _host=_host,
2154
+ _request_auth=_request_auth
2155
+ )
2156
+
2157
+