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