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,1148 @@
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 datetime import datetime
21
+ from pydantic import Field, StrictBool, StrictInt, StrictStr, field_validator
22
+ from typing import List, Optional
23
+ from typing_extensions import Annotated
24
+ from crc-pulpcore-client.models.paginated_worker_response_list import PaginatedWorkerResponseList
25
+ from crc-pulpcore-client.models.worker_response import WorkerResponse
26
+
27
+ from crc-pulpcore-client.api_client import ApiClient, RequestSerialized
28
+ from crc-pulpcore-client.api_response import ApiResponse
29
+ from crc-pulpcore-client.rest import RESTResponseType
30
+
31
+
32
+ class WorkersApi:
33
+ """NOTE: This class is auto generated by OpenAPI Generator
34
+ Ref: https://openapi-generator.tech
35
+
36
+ Do not edit the class manually.
37
+ """
38
+
39
+ def __init__(self, api_client=None) -> None:
40
+ if api_client is None:
41
+ api_client = ApiClient.get_default()
42
+ self.api_client = api_client
43
+
44
+
45
+ @validate_call
46
+ def list(
47
+ self,
48
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
49
+ last_heartbeat: Annotated[Optional[datetime], Field(description="Filter results where last_heartbeat matches value")] = None,
50
+ last_heartbeat__gt: Annotated[Optional[datetime], Field(description="Filter results where last_heartbeat is greater than value")] = None,
51
+ last_heartbeat__gte: Annotated[Optional[datetime], Field(description="Filter results where last_heartbeat is greater than or equal to value")] = None,
52
+ last_heartbeat__isnull: Annotated[Optional[StrictBool], Field(description="Filter results where last_heartbeat has a null value")] = None,
53
+ last_heartbeat__lt: Annotated[Optional[datetime], Field(description="Filter results where last_heartbeat is less than value")] = None,
54
+ last_heartbeat__lte: Annotated[Optional[datetime], Field(description="Filter results where last_heartbeat is less than or equal to value")] = None,
55
+ last_heartbeat__range: Annotated[Optional[List[datetime]], Field(description="Filter results where last_heartbeat is between two comma separated values")] = None,
56
+ limit: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None,
57
+ missing: Optional[StrictBool] = None,
58
+ name: Annotated[Optional[StrictStr], Field(description="Filter results where name matches value")] = None,
59
+ name__contains: Annotated[Optional[StrictStr], Field(description="Filter results where name contains value")] = None,
60
+ name__icontains: Annotated[Optional[StrictStr], Field(description="Filter results where name contains value")] = None,
61
+ name__iexact: Annotated[Optional[StrictStr], Field(description="Filter results where name matches value")] = None,
62
+ name__in: Annotated[Optional[List[StrictStr]], Field(description="Filter results where name is in a comma-separated list of values")] = None,
63
+ name__iregex: Annotated[Optional[StrictStr], Field(description="Filter results where name matches regex value")] = None,
64
+ name__istartswith: Annotated[Optional[StrictStr], Field(description="Filter results where name starts with value")] = None,
65
+ name__regex: Annotated[Optional[StrictStr], Field(description="Filter results where name matches regex value")] = None,
66
+ name__startswith: Annotated[Optional[StrictStr], Field(description="Filter results where name starts with value")] = None,
67
+ offset: Annotated[Optional[StrictInt], Field(description="The initial index from which to return the results.")] = None,
68
+ online: Optional[StrictBool] = None,
69
+ 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) * `name` - Name * `-name` - Name (descending) * `last_heartbeat` - Last heartbeat * `-last_heartbeat` - Last heartbeat (descending) * `versions` - Versions * `-versions` - Versions (descending) * `pk` - Pk * `-pk` - Pk (descending)")] = None,
70
+ prn__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
71
+ pulp_href__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
72
+ pulp_id__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
73
+ q: Annotated[Optional[StrictStr], Field(description="Filter results by using NOT, AND and OR operations on other filters")] = None,
74
+ fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
75
+ exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
76
+ pulp_domain: StrictStr = "default",
77
+ _request_timeout: Union[
78
+ None,
79
+ Annotated[StrictFloat, Field(gt=0)],
80
+ Tuple[
81
+ Annotated[StrictFloat, Field(gt=0)],
82
+ Annotated[StrictFloat, Field(gt=0)]
83
+ ]
84
+ ] = None,
85
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
86
+ _content_type: Optional[StrictStr] = None,
87
+ _headers: Optional[Dict[StrictStr, Any]] = None,
88
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
89
+ ) -> PaginatedWorkerResponseList:
90
+ """List workers
91
+
92
+ A customized named ModelViewSet that knows how to register itself with the Pulp API router. This viewset is discoverable by its name. \"Normal\" Django Models and Master/Detail models are supported by the ``register_with`` method. Attributes: lookup_field (str): The name of the field by which an object should be looked up, in addition to any parent lookups if this ViewSet is nested. Defaults to 'pk' endpoint_name (str): The name of the final path segment that should identify the ViewSet's collection endpoint. nest_prefix (str): Optional prefix under which this ViewSet should be nested. This must correspond to the \"parent_prefix\" of a router with rest_framework_nested.NestedMixin. None indicates this ViewSet should not be nested. parent_lookup_kwargs (dict): Optional mapping of key names that would appear in self.kwargs to django model filter expressions that can be used with the corresponding value from self.kwargs, used only by a nested ViewSet to filter based on the parent object's identity. schema (DefaultSchema): The schema class to use by default in a viewset.
93
+
94
+ :param pulp_domain: (required)
95
+ :type pulp_domain: str
96
+ :param x_task_diagnostics: List of profilers to use on tasks.
97
+ :type x_task_diagnostics: List[str]
98
+ :param last_heartbeat: Filter results where last_heartbeat matches value
99
+ :type last_heartbeat: datetime
100
+ :param last_heartbeat__gt: Filter results where last_heartbeat is greater than value
101
+ :type last_heartbeat__gt: datetime
102
+ :param last_heartbeat__gte: Filter results where last_heartbeat is greater than or equal to value
103
+ :type last_heartbeat__gte: datetime
104
+ :param last_heartbeat__isnull: Filter results where last_heartbeat has a null value
105
+ :type last_heartbeat__isnull: bool
106
+ :param last_heartbeat__lt: Filter results where last_heartbeat is less than value
107
+ :type last_heartbeat__lt: datetime
108
+ :param last_heartbeat__lte: Filter results where last_heartbeat is less than or equal to value
109
+ :type last_heartbeat__lte: datetime
110
+ :param last_heartbeat__range: Filter results where last_heartbeat is between two comma separated values
111
+ :type last_heartbeat__range: List[datetime]
112
+ :param limit: Number of results to return per page.
113
+ :type limit: int
114
+ :param missing:
115
+ :type missing: bool
116
+ :param name: Filter results where name matches value
117
+ :type name: str
118
+ :param name__contains: Filter results where name contains value
119
+ :type name__contains: str
120
+ :param name__icontains: Filter results where name contains value
121
+ :type name__icontains: str
122
+ :param name__iexact: Filter results where name matches value
123
+ :type name__iexact: str
124
+ :param name__in: Filter results where name is in a comma-separated list of values
125
+ :type name__in: List[str]
126
+ :param name__iregex: Filter results where name matches regex value
127
+ :type name__iregex: str
128
+ :param name__istartswith: Filter results where name starts with value
129
+ :type name__istartswith: str
130
+ :param name__regex: Filter results where name matches regex value
131
+ :type name__regex: str
132
+ :param name__startswith: Filter results where name starts with value
133
+ :type name__startswith: str
134
+ :param offset: The initial index from which to return the results.
135
+ :type offset: int
136
+ :param online:
137
+ :type online: bool
138
+ :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) * `name` - Name * `-name` - Name (descending) * `last_heartbeat` - Last heartbeat * `-last_heartbeat` - Last heartbeat (descending) * `versions` - Versions * `-versions` - Versions (descending) * `pk` - Pk * `-pk` - Pk (descending)
139
+ :type ordering: List[str]
140
+ :param prn__in: Multiple values may be separated by commas.
141
+ :type prn__in: List[str]
142
+ :param pulp_href__in: Multiple values may be separated by commas.
143
+ :type pulp_href__in: List[str]
144
+ :param pulp_id__in: Multiple values may be separated by commas.
145
+ :type pulp_id__in: List[str]
146
+ :param q: Filter results by using NOT, AND and OR operations on other filters
147
+ :type q: str
148
+ :param fields: A list of fields to include in the response.
149
+ :type fields: List[str]
150
+ :param exclude_fields: A list of fields to exclude from the response.
151
+ :type exclude_fields: List[str]
152
+ :param _request_timeout: timeout setting for this request. If one
153
+ number provided, it will be total request
154
+ timeout. It can also be a pair (tuple) of
155
+ (connection, read) timeouts.
156
+ :type _request_timeout: int, tuple(int, int), optional
157
+ :param _request_auth: set to override the auth_settings for an a single
158
+ request; this effectively ignores the
159
+ authentication in the spec for a single request.
160
+ :type _request_auth: dict, optional
161
+ :param _content_type: force content-type for the request.
162
+ :type _content_type: str, Optional
163
+ :param _headers: set to override the headers for a single
164
+ request; this effectively ignores the headers
165
+ in the spec for a single request.
166
+ :type _headers: dict, optional
167
+ :param _host_index: set to override the host_index for a single
168
+ request; this effectively ignores the host_index
169
+ in the spec for a single request.
170
+ :type _host_index: int, optional
171
+ :return: Returns the result object.
172
+ """ # noqa: E501
173
+
174
+ _param = self._list_serialize(
175
+ pulp_domain=pulp_domain,
176
+ x_task_diagnostics=x_task_diagnostics,
177
+ last_heartbeat=last_heartbeat,
178
+ last_heartbeat__gt=last_heartbeat__gt,
179
+ last_heartbeat__gte=last_heartbeat__gte,
180
+ last_heartbeat__isnull=last_heartbeat__isnull,
181
+ last_heartbeat__lt=last_heartbeat__lt,
182
+ last_heartbeat__lte=last_heartbeat__lte,
183
+ last_heartbeat__range=last_heartbeat__range,
184
+ limit=limit,
185
+ missing=missing,
186
+ name=name,
187
+ name__contains=name__contains,
188
+ name__icontains=name__icontains,
189
+ name__iexact=name__iexact,
190
+ name__in=name__in,
191
+ name__iregex=name__iregex,
192
+ name__istartswith=name__istartswith,
193
+ name__regex=name__regex,
194
+ name__startswith=name__startswith,
195
+ offset=offset,
196
+ online=online,
197
+ ordering=ordering,
198
+ prn__in=prn__in,
199
+ pulp_href__in=pulp_href__in,
200
+ pulp_id__in=pulp_id__in,
201
+ q=q,
202
+ fields=fields,
203
+ exclude_fields=exclude_fields,
204
+ _request_auth=_request_auth,
205
+ _content_type=_content_type,
206
+ _headers=_headers,
207
+ _host_index=_host_index
208
+ )
209
+
210
+ _response_types_map: Dict[str, Optional[str]] = {
211
+ '200': "PaginatedWorkerResponseList",
212
+ }
213
+ response_data = self.api_client.call_api(
214
+ *_param,
215
+ _request_timeout=_request_timeout
216
+ )
217
+ response_data.read()
218
+ return self.api_client.response_deserialize(
219
+ response_data=response_data,
220
+ response_types_map=_response_types_map,
221
+ ).data
222
+
223
+
224
+ @validate_call
225
+ def list_with_http_info(
226
+ self,
227
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
228
+ last_heartbeat: Annotated[Optional[datetime], Field(description="Filter results where last_heartbeat matches value")] = None,
229
+ last_heartbeat__gt: Annotated[Optional[datetime], Field(description="Filter results where last_heartbeat is greater than value")] = None,
230
+ last_heartbeat__gte: Annotated[Optional[datetime], Field(description="Filter results where last_heartbeat is greater than or equal to value")] = None,
231
+ last_heartbeat__isnull: Annotated[Optional[StrictBool], Field(description="Filter results where last_heartbeat has a null value")] = None,
232
+ last_heartbeat__lt: Annotated[Optional[datetime], Field(description="Filter results where last_heartbeat is less than value")] = None,
233
+ last_heartbeat__lte: Annotated[Optional[datetime], Field(description="Filter results where last_heartbeat is less than or equal to value")] = None,
234
+ last_heartbeat__range: Annotated[Optional[List[datetime]], Field(description="Filter results where last_heartbeat is between two comma separated values")] = None,
235
+ limit: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None,
236
+ missing: Optional[StrictBool] = None,
237
+ name: Annotated[Optional[StrictStr], Field(description="Filter results where name matches value")] = None,
238
+ name__contains: Annotated[Optional[StrictStr], Field(description="Filter results where name contains value")] = None,
239
+ name__icontains: Annotated[Optional[StrictStr], Field(description="Filter results where name contains value")] = None,
240
+ name__iexact: Annotated[Optional[StrictStr], Field(description="Filter results where name matches value")] = None,
241
+ name__in: Annotated[Optional[List[StrictStr]], Field(description="Filter results where name is in a comma-separated list of values")] = None,
242
+ name__iregex: Annotated[Optional[StrictStr], Field(description="Filter results where name matches regex value")] = None,
243
+ name__istartswith: Annotated[Optional[StrictStr], Field(description="Filter results where name starts with value")] = None,
244
+ name__regex: Annotated[Optional[StrictStr], Field(description="Filter results where name matches regex value")] = None,
245
+ name__startswith: Annotated[Optional[StrictStr], Field(description="Filter results where name starts with value")] = None,
246
+ offset: Annotated[Optional[StrictInt], Field(description="The initial index from which to return the results.")] = None,
247
+ online: Optional[StrictBool] = None,
248
+ 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) * `name` - Name * `-name` - Name (descending) * `last_heartbeat` - Last heartbeat * `-last_heartbeat` - Last heartbeat (descending) * `versions` - Versions * `-versions` - Versions (descending) * `pk` - Pk * `-pk` - Pk (descending)")] = None,
249
+ prn__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
250
+ pulp_href__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
251
+ pulp_id__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
252
+ q: Annotated[Optional[StrictStr], Field(description="Filter results by using NOT, AND and OR operations on other filters")] = None,
253
+ fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
254
+ exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
255
+ pulp_domain: StrictStr = "default",
256
+ _request_timeout: Union[
257
+ None,
258
+ Annotated[StrictFloat, Field(gt=0)],
259
+ Tuple[
260
+ Annotated[StrictFloat, Field(gt=0)],
261
+ Annotated[StrictFloat, Field(gt=0)]
262
+ ]
263
+ ] = None,
264
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
265
+ _content_type: Optional[StrictStr] = None,
266
+ _headers: Optional[Dict[StrictStr, Any]] = None,
267
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
268
+ ) -> ApiResponse[PaginatedWorkerResponseList]:
269
+ """List workers
270
+
271
+ A customized named ModelViewSet that knows how to register itself with the Pulp API router. This viewset is discoverable by its name. \"Normal\" Django Models and Master/Detail models are supported by the ``register_with`` method. Attributes: lookup_field (str): The name of the field by which an object should be looked up, in addition to any parent lookups if this ViewSet is nested. Defaults to 'pk' endpoint_name (str): The name of the final path segment that should identify the ViewSet's collection endpoint. nest_prefix (str): Optional prefix under which this ViewSet should be nested. This must correspond to the \"parent_prefix\" of a router with rest_framework_nested.NestedMixin. None indicates this ViewSet should not be nested. parent_lookup_kwargs (dict): Optional mapping of key names that would appear in self.kwargs to django model filter expressions that can be used with the corresponding value from self.kwargs, used only by a nested ViewSet to filter based on the parent object's identity. schema (DefaultSchema): The schema class to use by default in a viewset.
272
+
273
+ :param pulp_domain: (required)
274
+ :type pulp_domain: str
275
+ :param x_task_diagnostics: List of profilers to use on tasks.
276
+ :type x_task_diagnostics: List[str]
277
+ :param last_heartbeat: Filter results where last_heartbeat matches value
278
+ :type last_heartbeat: datetime
279
+ :param last_heartbeat__gt: Filter results where last_heartbeat is greater than value
280
+ :type last_heartbeat__gt: datetime
281
+ :param last_heartbeat__gte: Filter results where last_heartbeat is greater than or equal to value
282
+ :type last_heartbeat__gte: datetime
283
+ :param last_heartbeat__isnull: Filter results where last_heartbeat has a null value
284
+ :type last_heartbeat__isnull: bool
285
+ :param last_heartbeat__lt: Filter results where last_heartbeat is less than value
286
+ :type last_heartbeat__lt: datetime
287
+ :param last_heartbeat__lte: Filter results where last_heartbeat is less than or equal to value
288
+ :type last_heartbeat__lte: datetime
289
+ :param last_heartbeat__range: Filter results where last_heartbeat is between two comma separated values
290
+ :type last_heartbeat__range: List[datetime]
291
+ :param limit: Number of results to return per page.
292
+ :type limit: int
293
+ :param missing:
294
+ :type missing: bool
295
+ :param name: Filter results where name matches value
296
+ :type name: str
297
+ :param name__contains: Filter results where name contains value
298
+ :type name__contains: str
299
+ :param name__icontains: Filter results where name contains value
300
+ :type name__icontains: str
301
+ :param name__iexact: Filter results where name matches value
302
+ :type name__iexact: str
303
+ :param name__in: Filter results where name is in a comma-separated list of values
304
+ :type name__in: List[str]
305
+ :param name__iregex: Filter results where name matches regex value
306
+ :type name__iregex: str
307
+ :param name__istartswith: Filter results where name starts with value
308
+ :type name__istartswith: str
309
+ :param name__regex: Filter results where name matches regex value
310
+ :type name__regex: str
311
+ :param name__startswith: Filter results where name starts with value
312
+ :type name__startswith: str
313
+ :param offset: The initial index from which to return the results.
314
+ :type offset: int
315
+ :param online:
316
+ :type online: bool
317
+ :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) * `name` - Name * `-name` - Name (descending) * `last_heartbeat` - Last heartbeat * `-last_heartbeat` - Last heartbeat (descending) * `versions` - Versions * `-versions` - Versions (descending) * `pk` - Pk * `-pk` - Pk (descending)
318
+ :type ordering: List[str]
319
+ :param prn__in: Multiple values may be separated by commas.
320
+ :type prn__in: List[str]
321
+ :param pulp_href__in: Multiple values may be separated by commas.
322
+ :type pulp_href__in: List[str]
323
+ :param pulp_id__in: Multiple values may be separated by commas.
324
+ :type pulp_id__in: List[str]
325
+ :param q: Filter results by using NOT, AND and OR operations on other filters
326
+ :type q: str
327
+ :param fields: A list of fields to include in the response.
328
+ :type fields: List[str]
329
+ :param exclude_fields: A list of fields to exclude from the response.
330
+ :type exclude_fields: List[str]
331
+ :param _request_timeout: timeout setting for this request. If one
332
+ number provided, it will be total request
333
+ timeout. It can also be a pair (tuple) of
334
+ (connection, read) timeouts.
335
+ :type _request_timeout: int, tuple(int, int), optional
336
+ :param _request_auth: set to override the auth_settings for an a single
337
+ request; this effectively ignores the
338
+ authentication in the spec for a single request.
339
+ :type _request_auth: dict, optional
340
+ :param _content_type: force content-type for the request.
341
+ :type _content_type: str, Optional
342
+ :param _headers: set to override the headers for a single
343
+ request; this effectively ignores the headers
344
+ in the spec for a single request.
345
+ :type _headers: dict, optional
346
+ :param _host_index: set to override the host_index for a single
347
+ request; this effectively ignores the host_index
348
+ in the spec for a single request.
349
+ :type _host_index: int, optional
350
+ :return: Returns the result object.
351
+ """ # noqa: E501
352
+
353
+ _param = self._list_serialize(
354
+ pulp_domain=pulp_domain,
355
+ x_task_diagnostics=x_task_diagnostics,
356
+ last_heartbeat=last_heartbeat,
357
+ last_heartbeat__gt=last_heartbeat__gt,
358
+ last_heartbeat__gte=last_heartbeat__gte,
359
+ last_heartbeat__isnull=last_heartbeat__isnull,
360
+ last_heartbeat__lt=last_heartbeat__lt,
361
+ last_heartbeat__lte=last_heartbeat__lte,
362
+ last_heartbeat__range=last_heartbeat__range,
363
+ limit=limit,
364
+ missing=missing,
365
+ name=name,
366
+ name__contains=name__contains,
367
+ name__icontains=name__icontains,
368
+ name__iexact=name__iexact,
369
+ name__in=name__in,
370
+ name__iregex=name__iregex,
371
+ name__istartswith=name__istartswith,
372
+ name__regex=name__regex,
373
+ name__startswith=name__startswith,
374
+ offset=offset,
375
+ online=online,
376
+ ordering=ordering,
377
+ prn__in=prn__in,
378
+ pulp_href__in=pulp_href__in,
379
+ pulp_id__in=pulp_id__in,
380
+ q=q,
381
+ fields=fields,
382
+ exclude_fields=exclude_fields,
383
+ _request_auth=_request_auth,
384
+ _content_type=_content_type,
385
+ _headers=_headers,
386
+ _host_index=_host_index
387
+ )
388
+
389
+ _response_types_map: Dict[str, Optional[str]] = {
390
+ '200': "PaginatedWorkerResponseList",
391
+ }
392
+ response_data = self.api_client.call_api(
393
+ *_param,
394
+ _request_timeout=_request_timeout
395
+ )
396
+ response_data.read()
397
+ return self.api_client.response_deserialize(
398
+ response_data=response_data,
399
+ response_types_map=_response_types_map,
400
+ )
401
+
402
+
403
+ @validate_call
404
+ def list_without_preload_content(
405
+ self,
406
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
407
+ last_heartbeat: Annotated[Optional[datetime], Field(description="Filter results where last_heartbeat matches value")] = None,
408
+ last_heartbeat__gt: Annotated[Optional[datetime], Field(description="Filter results where last_heartbeat is greater than value")] = None,
409
+ last_heartbeat__gte: Annotated[Optional[datetime], Field(description="Filter results where last_heartbeat is greater than or equal to value")] = None,
410
+ last_heartbeat__isnull: Annotated[Optional[StrictBool], Field(description="Filter results where last_heartbeat has a null value")] = None,
411
+ last_heartbeat__lt: Annotated[Optional[datetime], Field(description="Filter results where last_heartbeat is less than value")] = None,
412
+ last_heartbeat__lte: Annotated[Optional[datetime], Field(description="Filter results where last_heartbeat is less than or equal to value")] = None,
413
+ last_heartbeat__range: Annotated[Optional[List[datetime]], Field(description="Filter results where last_heartbeat is between two comma separated values")] = None,
414
+ limit: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None,
415
+ missing: Optional[StrictBool] = None,
416
+ name: Annotated[Optional[StrictStr], Field(description="Filter results where name matches value")] = None,
417
+ name__contains: Annotated[Optional[StrictStr], Field(description="Filter results where name contains value")] = None,
418
+ name__icontains: Annotated[Optional[StrictStr], Field(description="Filter results where name contains value")] = None,
419
+ name__iexact: Annotated[Optional[StrictStr], Field(description="Filter results where name matches value")] = None,
420
+ name__in: Annotated[Optional[List[StrictStr]], Field(description="Filter results where name is in a comma-separated list of values")] = None,
421
+ name__iregex: Annotated[Optional[StrictStr], Field(description="Filter results where name matches regex value")] = None,
422
+ name__istartswith: Annotated[Optional[StrictStr], Field(description="Filter results where name starts with value")] = None,
423
+ name__regex: Annotated[Optional[StrictStr], Field(description="Filter results where name matches regex value")] = None,
424
+ name__startswith: Annotated[Optional[StrictStr], Field(description="Filter results where name starts with value")] = None,
425
+ offset: Annotated[Optional[StrictInt], Field(description="The initial index from which to return the results.")] = None,
426
+ online: Optional[StrictBool] = None,
427
+ 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) * `name` - Name * `-name` - Name (descending) * `last_heartbeat` - Last heartbeat * `-last_heartbeat` - Last heartbeat (descending) * `versions` - Versions * `-versions` - Versions (descending) * `pk` - Pk * `-pk` - Pk (descending)")] = None,
428
+ prn__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
429
+ pulp_href__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
430
+ pulp_id__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
431
+ q: Annotated[Optional[StrictStr], Field(description="Filter results by using NOT, AND and OR operations on other filters")] = None,
432
+ fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
433
+ exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
434
+ pulp_domain: StrictStr = "default",
435
+ _request_timeout: Union[
436
+ None,
437
+ Annotated[StrictFloat, Field(gt=0)],
438
+ Tuple[
439
+ Annotated[StrictFloat, Field(gt=0)],
440
+ Annotated[StrictFloat, Field(gt=0)]
441
+ ]
442
+ ] = None,
443
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
444
+ _content_type: Optional[StrictStr] = None,
445
+ _headers: Optional[Dict[StrictStr, Any]] = None,
446
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
447
+ ) -> RESTResponseType:
448
+ """List workers
449
+
450
+ A customized named ModelViewSet that knows how to register itself with the Pulp API router. This viewset is discoverable by its name. \"Normal\" Django Models and Master/Detail models are supported by the ``register_with`` method. Attributes: lookup_field (str): The name of the field by which an object should be looked up, in addition to any parent lookups if this ViewSet is nested. Defaults to 'pk' endpoint_name (str): The name of the final path segment that should identify the ViewSet's collection endpoint. nest_prefix (str): Optional prefix under which this ViewSet should be nested. This must correspond to the \"parent_prefix\" of a router with rest_framework_nested.NestedMixin. None indicates this ViewSet should not be nested. parent_lookup_kwargs (dict): Optional mapping of key names that would appear in self.kwargs to django model filter expressions that can be used with the corresponding value from self.kwargs, used only by a nested ViewSet to filter based on the parent object's identity. schema (DefaultSchema): The schema class to use by default in a viewset.
451
+
452
+ :param pulp_domain: (required)
453
+ :type pulp_domain: str
454
+ :param x_task_diagnostics: List of profilers to use on tasks.
455
+ :type x_task_diagnostics: List[str]
456
+ :param last_heartbeat: Filter results where last_heartbeat matches value
457
+ :type last_heartbeat: datetime
458
+ :param last_heartbeat__gt: Filter results where last_heartbeat is greater than value
459
+ :type last_heartbeat__gt: datetime
460
+ :param last_heartbeat__gte: Filter results where last_heartbeat is greater than or equal to value
461
+ :type last_heartbeat__gte: datetime
462
+ :param last_heartbeat__isnull: Filter results where last_heartbeat has a null value
463
+ :type last_heartbeat__isnull: bool
464
+ :param last_heartbeat__lt: Filter results where last_heartbeat is less than value
465
+ :type last_heartbeat__lt: datetime
466
+ :param last_heartbeat__lte: Filter results where last_heartbeat is less than or equal to value
467
+ :type last_heartbeat__lte: datetime
468
+ :param last_heartbeat__range: Filter results where last_heartbeat is between two comma separated values
469
+ :type last_heartbeat__range: List[datetime]
470
+ :param limit: Number of results to return per page.
471
+ :type limit: int
472
+ :param missing:
473
+ :type missing: bool
474
+ :param name: Filter results where name matches value
475
+ :type name: str
476
+ :param name__contains: Filter results where name contains value
477
+ :type name__contains: str
478
+ :param name__icontains: Filter results where name contains value
479
+ :type name__icontains: str
480
+ :param name__iexact: Filter results where name matches value
481
+ :type name__iexact: str
482
+ :param name__in: Filter results where name is in a comma-separated list of values
483
+ :type name__in: List[str]
484
+ :param name__iregex: Filter results where name matches regex value
485
+ :type name__iregex: str
486
+ :param name__istartswith: Filter results where name starts with value
487
+ :type name__istartswith: str
488
+ :param name__regex: Filter results where name matches regex value
489
+ :type name__regex: str
490
+ :param name__startswith: Filter results where name starts with value
491
+ :type name__startswith: str
492
+ :param offset: The initial index from which to return the results.
493
+ :type offset: int
494
+ :param online:
495
+ :type online: bool
496
+ :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) * `name` - Name * `-name` - Name (descending) * `last_heartbeat` - Last heartbeat * `-last_heartbeat` - Last heartbeat (descending) * `versions` - Versions * `-versions` - Versions (descending) * `pk` - Pk * `-pk` - Pk (descending)
497
+ :type ordering: List[str]
498
+ :param prn__in: Multiple values may be separated by commas.
499
+ :type prn__in: List[str]
500
+ :param pulp_href__in: Multiple values may be separated by commas.
501
+ :type pulp_href__in: List[str]
502
+ :param pulp_id__in: Multiple values may be separated by commas.
503
+ :type pulp_id__in: List[str]
504
+ :param q: Filter results by using NOT, AND and OR operations on other filters
505
+ :type q: str
506
+ :param fields: A list of fields to include in the response.
507
+ :type fields: List[str]
508
+ :param exclude_fields: A list of fields to exclude from the response.
509
+ :type exclude_fields: List[str]
510
+ :param _request_timeout: timeout setting for this request. If one
511
+ number provided, it will be total request
512
+ timeout. It can also be a pair (tuple) of
513
+ (connection, read) timeouts.
514
+ :type _request_timeout: int, tuple(int, int), optional
515
+ :param _request_auth: set to override the auth_settings for an a single
516
+ request; this effectively ignores the
517
+ authentication in the spec for a single request.
518
+ :type _request_auth: dict, optional
519
+ :param _content_type: force content-type for the request.
520
+ :type _content_type: str, Optional
521
+ :param _headers: set to override the headers for a single
522
+ request; this effectively ignores the headers
523
+ in the spec for a single request.
524
+ :type _headers: dict, optional
525
+ :param _host_index: set to override the host_index for a single
526
+ request; this effectively ignores the host_index
527
+ in the spec for a single request.
528
+ :type _host_index: int, optional
529
+ :return: Returns the result object.
530
+ """ # noqa: E501
531
+
532
+ _param = self._list_serialize(
533
+ pulp_domain=pulp_domain,
534
+ x_task_diagnostics=x_task_diagnostics,
535
+ last_heartbeat=last_heartbeat,
536
+ last_heartbeat__gt=last_heartbeat__gt,
537
+ last_heartbeat__gte=last_heartbeat__gte,
538
+ last_heartbeat__isnull=last_heartbeat__isnull,
539
+ last_heartbeat__lt=last_heartbeat__lt,
540
+ last_heartbeat__lte=last_heartbeat__lte,
541
+ last_heartbeat__range=last_heartbeat__range,
542
+ limit=limit,
543
+ missing=missing,
544
+ name=name,
545
+ name__contains=name__contains,
546
+ name__icontains=name__icontains,
547
+ name__iexact=name__iexact,
548
+ name__in=name__in,
549
+ name__iregex=name__iregex,
550
+ name__istartswith=name__istartswith,
551
+ name__regex=name__regex,
552
+ name__startswith=name__startswith,
553
+ offset=offset,
554
+ online=online,
555
+ ordering=ordering,
556
+ prn__in=prn__in,
557
+ pulp_href__in=pulp_href__in,
558
+ pulp_id__in=pulp_id__in,
559
+ q=q,
560
+ fields=fields,
561
+ exclude_fields=exclude_fields,
562
+ _request_auth=_request_auth,
563
+ _content_type=_content_type,
564
+ _headers=_headers,
565
+ _host_index=_host_index
566
+ )
567
+
568
+ _response_types_map: Dict[str, Optional[str]] = {
569
+ '200': "PaginatedWorkerResponseList",
570
+ }
571
+ response_data = self.api_client.call_api(
572
+ *_param,
573
+ _request_timeout=_request_timeout
574
+ )
575
+ return response_data.response
576
+
577
+
578
+ def _list_serialize(
579
+ self,
580
+ pulp_domain,
581
+ x_task_diagnostics,
582
+ last_heartbeat,
583
+ last_heartbeat__gt,
584
+ last_heartbeat__gte,
585
+ last_heartbeat__isnull,
586
+ last_heartbeat__lt,
587
+ last_heartbeat__lte,
588
+ last_heartbeat__range,
589
+ limit,
590
+ missing,
591
+ name,
592
+ name__contains,
593
+ name__icontains,
594
+ name__iexact,
595
+ name__in,
596
+ name__iregex,
597
+ name__istartswith,
598
+ name__regex,
599
+ name__startswith,
600
+ offset,
601
+ online,
602
+ ordering,
603
+ prn__in,
604
+ pulp_href__in,
605
+ pulp_id__in,
606
+ q,
607
+ fields,
608
+ exclude_fields,
609
+ _request_auth,
610
+ _content_type,
611
+ _headers,
612
+ _host_index,
613
+ ) -> RequestSerialized:
614
+
615
+ _host = None
616
+
617
+ _collection_formats: Dict[str, str] = {
618
+ 'X-Task-Diagnostics': 'csv',
619
+ 'last_heartbeat__range': 'csv',
620
+ 'name__in': 'csv',
621
+ 'ordering': 'csv',
622
+ 'prn__in': 'csv',
623
+ 'pulp_href__in': 'csv',
624
+ 'pulp_id__in': 'csv',
625
+ 'fields': 'multi',
626
+ 'exclude_fields': 'multi',
627
+ }
628
+
629
+ _path_params: Dict[str, str] = {}
630
+ _query_params: List[Tuple[str, str]] = []
631
+ _header_params: Dict[str, Optional[str]] = _headers or {}
632
+ _form_params: List[Tuple[str, str]] = []
633
+ _files: Dict[
634
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
635
+ ] = {}
636
+ _body_params: Optional[bytes] = None
637
+
638
+ # process the path parameters
639
+ if pulp_domain is not None:
640
+ _path_params['pulp_domain'] = pulp_domain
641
+ # process the query parameters
642
+ if last_heartbeat is not None:
643
+ if isinstance(last_heartbeat, datetime):
644
+ _query_params.append(
645
+ (
646
+ 'last_heartbeat',
647
+ last_heartbeat.strftime(
648
+ self.api_client.configuration.datetime_format
649
+ )
650
+ )
651
+ )
652
+ else:
653
+ _query_params.append(('last_heartbeat', last_heartbeat))
654
+
655
+ if last_heartbeat__gt is not None:
656
+ if isinstance(last_heartbeat__gt, datetime):
657
+ _query_params.append(
658
+ (
659
+ 'last_heartbeat__gt',
660
+ last_heartbeat__gt.strftime(
661
+ self.api_client.configuration.datetime_format
662
+ )
663
+ )
664
+ )
665
+ else:
666
+ _query_params.append(('last_heartbeat__gt', last_heartbeat__gt))
667
+
668
+ if last_heartbeat__gte is not None:
669
+ if isinstance(last_heartbeat__gte, datetime):
670
+ _query_params.append(
671
+ (
672
+ 'last_heartbeat__gte',
673
+ last_heartbeat__gte.strftime(
674
+ self.api_client.configuration.datetime_format
675
+ )
676
+ )
677
+ )
678
+ else:
679
+ _query_params.append(('last_heartbeat__gte', last_heartbeat__gte))
680
+
681
+ if last_heartbeat__isnull is not None:
682
+
683
+ _query_params.append(('last_heartbeat__isnull', last_heartbeat__isnull))
684
+
685
+ if last_heartbeat__lt is not None:
686
+ if isinstance(last_heartbeat__lt, datetime):
687
+ _query_params.append(
688
+ (
689
+ 'last_heartbeat__lt',
690
+ last_heartbeat__lt.strftime(
691
+ self.api_client.configuration.datetime_format
692
+ )
693
+ )
694
+ )
695
+ else:
696
+ _query_params.append(('last_heartbeat__lt', last_heartbeat__lt))
697
+
698
+ if last_heartbeat__lte is not None:
699
+ if isinstance(last_heartbeat__lte, datetime):
700
+ _query_params.append(
701
+ (
702
+ 'last_heartbeat__lte',
703
+ last_heartbeat__lte.strftime(
704
+ self.api_client.configuration.datetime_format
705
+ )
706
+ )
707
+ )
708
+ else:
709
+ _query_params.append(('last_heartbeat__lte', last_heartbeat__lte))
710
+
711
+ if last_heartbeat__range is not None:
712
+
713
+ _query_params.append(('last_heartbeat__range', last_heartbeat__range))
714
+
715
+ if limit is not None:
716
+
717
+ _query_params.append(('limit', limit))
718
+
719
+ if missing is not None:
720
+
721
+ _query_params.append(('missing', missing))
722
+
723
+ if name is not None:
724
+
725
+ _query_params.append(('name', name))
726
+
727
+ if name__contains is not None:
728
+
729
+ _query_params.append(('name__contains', name__contains))
730
+
731
+ if name__icontains is not None:
732
+
733
+ _query_params.append(('name__icontains', name__icontains))
734
+
735
+ if name__iexact is not None:
736
+
737
+ _query_params.append(('name__iexact', name__iexact))
738
+
739
+ if name__in is not None:
740
+
741
+ _query_params.append(('name__in', name__in))
742
+
743
+ if name__iregex is not None:
744
+
745
+ _query_params.append(('name__iregex', name__iregex))
746
+
747
+ if name__istartswith is not None:
748
+
749
+ _query_params.append(('name__istartswith', name__istartswith))
750
+
751
+ if name__regex is not None:
752
+
753
+ _query_params.append(('name__regex', name__regex))
754
+
755
+ if name__startswith is not None:
756
+
757
+ _query_params.append(('name__startswith', name__startswith))
758
+
759
+ if offset is not None:
760
+
761
+ _query_params.append(('offset', offset))
762
+
763
+ if online is not None:
764
+
765
+ _query_params.append(('online', online))
766
+
767
+ if ordering is not None:
768
+
769
+ _query_params.append(('ordering', ordering))
770
+
771
+ if prn__in is not None:
772
+
773
+ _query_params.append(('prn__in', prn__in))
774
+
775
+ if pulp_href__in is not None:
776
+
777
+ _query_params.append(('pulp_href__in', pulp_href__in))
778
+
779
+ if pulp_id__in is not None:
780
+
781
+ _query_params.append(('pulp_id__in', pulp_id__in))
782
+
783
+ if q is not None:
784
+
785
+ _query_params.append(('q', q))
786
+
787
+ if fields is not None:
788
+
789
+ _query_params.append(('fields', fields))
790
+
791
+ if exclude_fields is not None:
792
+
793
+ _query_params.append(('exclude_fields', exclude_fields))
794
+
795
+ # process the header parameters
796
+ if x_task_diagnostics is not None:
797
+ _header_params['X-Task-Diagnostics'] = x_task_diagnostics
798
+ # process the form parameters
799
+ # process the body parameter
800
+
801
+
802
+ # set the HTTP header `Accept`
803
+ if 'Accept' not in _header_params:
804
+ _header_params['Accept'] = self.api_client.select_header_accept(
805
+ [
806
+ 'application/json'
807
+ ]
808
+ )
809
+
810
+
811
+ # authentication setting
812
+ _auth_settings: List[str] = [
813
+ 'json_header_remote_authentication',
814
+ 'basicAuth',
815
+ 'cookieAuth'
816
+ ]
817
+
818
+ return self.api_client.param_serialize(
819
+ method='GET',
820
+ resource_path='/api/pulp/{pulp_domain}/api/v3/workers/',
821
+ path_params=_path_params,
822
+ query_params=_query_params,
823
+ header_params=_header_params,
824
+ body=_body_params,
825
+ post_params=_form_params,
826
+ files=_files,
827
+ auth_settings=_auth_settings,
828
+ collection_formats=_collection_formats,
829
+ _host=_host,
830
+ _request_auth=_request_auth
831
+ )
832
+
833
+
834
+
835
+
836
+ @validate_call
837
+ def read(
838
+ self,
839
+ worker_href: StrictStr,
840
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
841
+ fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
842
+ exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
843
+ _request_timeout: Union[
844
+ None,
845
+ Annotated[StrictFloat, Field(gt=0)],
846
+ Tuple[
847
+ Annotated[StrictFloat, Field(gt=0)],
848
+ Annotated[StrictFloat, Field(gt=0)]
849
+ ]
850
+ ] = None,
851
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
852
+ _content_type: Optional[StrictStr] = None,
853
+ _headers: Optional[Dict[StrictStr, Any]] = None,
854
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
855
+ ) -> WorkerResponse:
856
+ """Inspect a worker
857
+
858
+ A customized named ModelViewSet that knows how to register itself with the Pulp API router. This viewset is discoverable by its name. \"Normal\" Django Models and Master/Detail models are supported by the ``register_with`` method. Attributes: lookup_field (str): The name of the field by which an object should be looked up, in addition to any parent lookups if this ViewSet is nested. Defaults to 'pk' endpoint_name (str): The name of the final path segment that should identify the ViewSet's collection endpoint. nest_prefix (str): Optional prefix under which this ViewSet should be nested. This must correspond to the \"parent_prefix\" of a router with rest_framework_nested.NestedMixin. None indicates this ViewSet should not be nested. parent_lookup_kwargs (dict): Optional mapping of key names that would appear in self.kwargs to django model filter expressions that can be used with the corresponding value from self.kwargs, used only by a nested ViewSet to filter based on the parent object's identity. schema (DefaultSchema): The schema class to use by default in a viewset.
859
+
860
+ :param worker_href: (required)
861
+ :type worker_href: str
862
+ :param x_task_diagnostics: List of profilers to use on tasks.
863
+ :type x_task_diagnostics: List[str]
864
+ :param fields: A list of fields to include in the response.
865
+ :type fields: List[str]
866
+ :param exclude_fields: A list of fields to exclude from the response.
867
+ :type exclude_fields: List[str]
868
+ :param _request_timeout: timeout setting for this request. If one
869
+ number provided, it will be total request
870
+ timeout. It can also be a pair (tuple) of
871
+ (connection, read) timeouts.
872
+ :type _request_timeout: int, tuple(int, int), optional
873
+ :param _request_auth: set to override the auth_settings for an a single
874
+ request; this effectively ignores the
875
+ authentication in the spec for a single request.
876
+ :type _request_auth: dict, optional
877
+ :param _content_type: force content-type for the request.
878
+ :type _content_type: str, Optional
879
+ :param _headers: set to override the headers for a single
880
+ request; this effectively ignores the headers
881
+ in the spec for a single request.
882
+ :type _headers: dict, optional
883
+ :param _host_index: set to override the host_index for a single
884
+ request; this effectively ignores the host_index
885
+ in the spec for a single request.
886
+ :type _host_index: int, optional
887
+ :return: Returns the result object.
888
+ """ # noqa: E501
889
+
890
+ _param = self._read_serialize(
891
+ worker_href=worker_href,
892
+ x_task_diagnostics=x_task_diagnostics,
893
+ fields=fields,
894
+ exclude_fields=exclude_fields,
895
+ _request_auth=_request_auth,
896
+ _content_type=_content_type,
897
+ _headers=_headers,
898
+ _host_index=_host_index
899
+ )
900
+
901
+ _response_types_map: Dict[str, Optional[str]] = {
902
+ '200': "WorkerResponse",
903
+ }
904
+ response_data = self.api_client.call_api(
905
+ *_param,
906
+ _request_timeout=_request_timeout
907
+ )
908
+ response_data.read()
909
+ return self.api_client.response_deserialize(
910
+ response_data=response_data,
911
+ response_types_map=_response_types_map,
912
+ ).data
913
+
914
+
915
+ @validate_call
916
+ def read_with_http_info(
917
+ self,
918
+ worker_href: StrictStr,
919
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
920
+ fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
921
+ exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
922
+ _request_timeout: Union[
923
+ None,
924
+ Annotated[StrictFloat, Field(gt=0)],
925
+ Tuple[
926
+ Annotated[StrictFloat, Field(gt=0)],
927
+ Annotated[StrictFloat, Field(gt=0)]
928
+ ]
929
+ ] = None,
930
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
931
+ _content_type: Optional[StrictStr] = None,
932
+ _headers: Optional[Dict[StrictStr, Any]] = None,
933
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
934
+ ) -> ApiResponse[WorkerResponse]:
935
+ """Inspect a worker
936
+
937
+ A customized named ModelViewSet that knows how to register itself with the Pulp API router. This viewset is discoverable by its name. \"Normal\" Django Models and Master/Detail models are supported by the ``register_with`` method. Attributes: lookup_field (str): The name of the field by which an object should be looked up, in addition to any parent lookups if this ViewSet is nested. Defaults to 'pk' endpoint_name (str): The name of the final path segment that should identify the ViewSet's collection endpoint. nest_prefix (str): Optional prefix under which this ViewSet should be nested. This must correspond to the \"parent_prefix\" of a router with rest_framework_nested.NestedMixin. None indicates this ViewSet should not be nested. parent_lookup_kwargs (dict): Optional mapping of key names that would appear in self.kwargs to django model filter expressions that can be used with the corresponding value from self.kwargs, used only by a nested ViewSet to filter based on the parent object's identity. schema (DefaultSchema): The schema class to use by default in a viewset.
938
+
939
+ :param worker_href: (required)
940
+ :type worker_href: str
941
+ :param x_task_diagnostics: List of profilers to use on tasks.
942
+ :type x_task_diagnostics: List[str]
943
+ :param fields: A list of fields to include in the response.
944
+ :type fields: List[str]
945
+ :param exclude_fields: A list of fields to exclude from the response.
946
+ :type exclude_fields: List[str]
947
+ :param _request_timeout: timeout setting for this request. If one
948
+ number provided, it will be total request
949
+ timeout. It can also be a pair (tuple) of
950
+ (connection, read) timeouts.
951
+ :type _request_timeout: int, tuple(int, int), optional
952
+ :param _request_auth: set to override the auth_settings for an a single
953
+ request; this effectively ignores the
954
+ authentication in the spec for a single request.
955
+ :type _request_auth: dict, optional
956
+ :param _content_type: force content-type for the request.
957
+ :type _content_type: str, Optional
958
+ :param _headers: set to override the headers for a single
959
+ request; this effectively ignores the headers
960
+ in the spec for a single request.
961
+ :type _headers: dict, optional
962
+ :param _host_index: set to override the host_index for a single
963
+ request; this effectively ignores the host_index
964
+ in the spec for a single request.
965
+ :type _host_index: int, optional
966
+ :return: Returns the result object.
967
+ """ # noqa: E501
968
+
969
+ _param = self._read_serialize(
970
+ worker_href=worker_href,
971
+ x_task_diagnostics=x_task_diagnostics,
972
+ fields=fields,
973
+ exclude_fields=exclude_fields,
974
+ _request_auth=_request_auth,
975
+ _content_type=_content_type,
976
+ _headers=_headers,
977
+ _host_index=_host_index
978
+ )
979
+
980
+ _response_types_map: Dict[str, Optional[str]] = {
981
+ '200': "WorkerResponse",
982
+ }
983
+ response_data = self.api_client.call_api(
984
+ *_param,
985
+ _request_timeout=_request_timeout
986
+ )
987
+ response_data.read()
988
+ return self.api_client.response_deserialize(
989
+ response_data=response_data,
990
+ response_types_map=_response_types_map,
991
+ )
992
+
993
+
994
+ @validate_call
995
+ def read_without_preload_content(
996
+ self,
997
+ worker_href: StrictStr,
998
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
999
+ fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
1000
+ exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
1001
+ _request_timeout: Union[
1002
+ None,
1003
+ Annotated[StrictFloat, Field(gt=0)],
1004
+ Tuple[
1005
+ Annotated[StrictFloat, Field(gt=0)],
1006
+ Annotated[StrictFloat, Field(gt=0)]
1007
+ ]
1008
+ ] = None,
1009
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1010
+ _content_type: Optional[StrictStr] = None,
1011
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1012
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1013
+ ) -> RESTResponseType:
1014
+ """Inspect a worker
1015
+
1016
+ A customized named ModelViewSet that knows how to register itself with the Pulp API router. This viewset is discoverable by its name. \"Normal\" Django Models and Master/Detail models are supported by the ``register_with`` method. Attributes: lookup_field (str): The name of the field by which an object should be looked up, in addition to any parent lookups if this ViewSet is nested. Defaults to 'pk' endpoint_name (str): The name of the final path segment that should identify the ViewSet's collection endpoint. nest_prefix (str): Optional prefix under which this ViewSet should be nested. This must correspond to the \"parent_prefix\" of a router with rest_framework_nested.NestedMixin. None indicates this ViewSet should not be nested. parent_lookup_kwargs (dict): Optional mapping of key names that would appear in self.kwargs to django model filter expressions that can be used with the corresponding value from self.kwargs, used only by a nested ViewSet to filter based on the parent object's identity. schema (DefaultSchema): The schema class to use by default in a viewset.
1017
+
1018
+ :param worker_href: (required)
1019
+ :type worker_href: str
1020
+ :param x_task_diagnostics: List of profilers to use on tasks.
1021
+ :type x_task_diagnostics: List[str]
1022
+ :param fields: A list of fields to include in the response.
1023
+ :type fields: List[str]
1024
+ :param exclude_fields: A list of fields to exclude from the response.
1025
+ :type exclude_fields: List[str]
1026
+ :param _request_timeout: timeout setting for this request. If one
1027
+ number provided, it will be total request
1028
+ timeout. It can also be a pair (tuple) of
1029
+ (connection, read) timeouts.
1030
+ :type _request_timeout: int, tuple(int, int), optional
1031
+ :param _request_auth: set to override the auth_settings for an a single
1032
+ request; this effectively ignores the
1033
+ authentication in the spec for a single request.
1034
+ :type _request_auth: dict, optional
1035
+ :param _content_type: force content-type for the request.
1036
+ :type _content_type: str, Optional
1037
+ :param _headers: set to override the headers for a single
1038
+ request; this effectively ignores the headers
1039
+ in the spec for a single request.
1040
+ :type _headers: dict, optional
1041
+ :param _host_index: set to override the host_index for a single
1042
+ request; this effectively ignores the host_index
1043
+ in the spec for a single request.
1044
+ :type _host_index: int, optional
1045
+ :return: Returns the result object.
1046
+ """ # noqa: E501
1047
+
1048
+ _param = self._read_serialize(
1049
+ worker_href=worker_href,
1050
+ x_task_diagnostics=x_task_diagnostics,
1051
+ fields=fields,
1052
+ exclude_fields=exclude_fields,
1053
+ _request_auth=_request_auth,
1054
+ _content_type=_content_type,
1055
+ _headers=_headers,
1056
+ _host_index=_host_index
1057
+ )
1058
+
1059
+ _response_types_map: Dict[str, Optional[str]] = {
1060
+ '200': "WorkerResponse",
1061
+ }
1062
+ response_data = self.api_client.call_api(
1063
+ *_param,
1064
+ _request_timeout=_request_timeout
1065
+ )
1066
+ return response_data.response
1067
+
1068
+
1069
+ def _read_serialize(
1070
+ self,
1071
+ worker_href,
1072
+ x_task_diagnostics,
1073
+ fields,
1074
+ exclude_fields,
1075
+ _request_auth,
1076
+ _content_type,
1077
+ _headers,
1078
+ _host_index,
1079
+ ) -> RequestSerialized:
1080
+
1081
+ _host = None
1082
+
1083
+ _collection_formats: Dict[str, str] = {
1084
+ 'X-Task-Diagnostics': 'csv',
1085
+ 'fields': 'multi',
1086
+ 'exclude_fields': 'multi',
1087
+ }
1088
+
1089
+ _path_params: Dict[str, str] = {}
1090
+ _query_params: List[Tuple[str, str]] = []
1091
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1092
+ _form_params: List[Tuple[str, str]] = []
1093
+ _files: Dict[
1094
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1095
+ ] = {}
1096
+ _body_params: Optional[bytes] = None
1097
+
1098
+ # process the path parameters
1099
+ if worker_href is not None:
1100
+ _path_params['worker_href'] = worker_href
1101
+ # process the query parameters
1102
+ if fields is not None:
1103
+
1104
+ _query_params.append(('fields', fields))
1105
+
1106
+ if exclude_fields is not None:
1107
+
1108
+ _query_params.append(('exclude_fields', exclude_fields))
1109
+
1110
+ # process the header parameters
1111
+ if x_task_diagnostics is not None:
1112
+ _header_params['X-Task-Diagnostics'] = x_task_diagnostics
1113
+ # process the form parameters
1114
+ # process the body parameter
1115
+
1116
+
1117
+ # set the HTTP header `Accept`
1118
+ if 'Accept' not in _header_params:
1119
+ _header_params['Accept'] = self.api_client.select_header_accept(
1120
+ [
1121
+ 'application/json'
1122
+ ]
1123
+ )
1124
+
1125
+
1126
+ # authentication setting
1127
+ _auth_settings: List[str] = [
1128
+ 'json_header_remote_authentication',
1129
+ 'basicAuth',
1130
+ 'cookieAuth'
1131
+ ]
1132
+
1133
+ return self.api_client.param_serialize(
1134
+ method='GET',
1135
+ resource_path='{worker_href}',
1136
+ path_params=_path_params,
1137
+ query_params=_query_params,
1138
+ header_params=_header_params,
1139
+ body=_body_params,
1140
+ post_params=_form_params,
1141
+ files=_files,
1142
+ auth_settings=_auth_settings,
1143
+ collection_formats=_collection_formats,
1144
+ _host=_host,
1145
+ _request_auth=_request_auth
1146
+ )
1147
+
1148
+