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,1655 @@
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, StrictFloat, StrictInt, StrictStr, field_validator
21
+ from typing import List, Optional, Union
22
+ from typing_extensions import Annotated
23
+ from services-pulpcore-client.models.open_pgp_user_id_response import OpenPGPUserIDResponse
24
+ from services-pulpcore-client.models.paginated_open_pgp_user_id_response_list import PaginatedOpenPGPUserIDResponseList
25
+ from services-pulpcore-client.models.set_label import SetLabel
26
+ from services-pulpcore-client.models.set_label_response import SetLabelResponse
27
+ from services-pulpcore-client.models.unset_label import UnsetLabel
28
+ from services-pulpcore-client.models.unset_label_response import UnsetLabelResponse
29
+
30
+ from services-pulpcore-client.api_client import ApiClient, RequestSerialized
31
+ from services-pulpcore-client.api_response import ApiResponse
32
+ from services-pulpcore-client.rest import RESTResponseType
33
+
34
+
35
+ class ContentOpenpgpUseridApi:
36
+ """NOTE: This class is auto generated by OpenAPI Generator
37
+ Ref: https://openapi-generator.tech
38
+
39
+ Do not edit the class manually.
40
+ """
41
+
42
+ def __init__(self, api_client=None) -> None:
43
+ if api_client is None:
44
+ api_client = ApiClient.get_default()
45
+ self.api_client = api_client
46
+
47
+
48
+ @validate_call
49
+ def list(
50
+ self,
51
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
52
+ limit: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None,
53
+ offset: Annotated[Optional[StrictInt], Field(description="The initial index from which to return the results.")] = None,
54
+ ordering: Annotated[Optional[List[StrictStr]], Field(description="Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `raw_data` - Raw data * `-raw_data` - Raw data (descending) * `user_id` - User id * `-user_id` - User id (descending) * `pk` - Pk * `-pk` - Pk (descending)")] = None,
55
+ orphaned_for: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.")] = None,
56
+ prn__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
57
+ pulp_href__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
58
+ pulp_id__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
59
+ pulp_label_select: Annotated[Optional[StrictStr], Field(description="Filter labels by search string")] = None,
60
+ q: Annotated[Optional[StrictStr], Field(description="Filter results by using NOT, AND and OR operations on other filters")] = None,
61
+ repository_version: Annotated[Optional[StrictStr], Field(description="Repository Version referenced by HREF/PRN")] = None,
62
+ repository_version_added: Annotated[Optional[StrictStr], Field(description="Repository Version referenced by HREF/PRN")] = None,
63
+ repository_version_removed: Annotated[Optional[StrictStr], Field(description="Repository Version referenced by HREF/PRN")] = None,
64
+ user_id: Annotated[Optional[StrictStr], Field(description="Filter results where user_id matches value")] = None,
65
+ user_id__contains: Annotated[Optional[StrictStr], Field(description="Filter results where user_id contains value")] = None,
66
+ user_id__icontains: Annotated[Optional[StrictStr], Field(description="Filter results where user_id contains value")] = None,
67
+ user_id__iexact: Annotated[Optional[StrictStr], Field(description="Filter results where user_id matches value")] = None,
68
+ user_id__in: Annotated[Optional[List[StrictStr]], Field(description="Filter results where user_id is in a comma-separated list of values")] = None,
69
+ user_id__iregex: Annotated[Optional[StrictStr], Field(description="Filter results where user_id matches regex value")] = None,
70
+ user_id__istartswith: Annotated[Optional[StrictStr], Field(description="Filter results where user_id starts with value")] = None,
71
+ user_id__regex: Annotated[Optional[StrictStr], Field(description="Filter results where user_id matches regex value")] = None,
72
+ user_id__startswith: Annotated[Optional[StrictStr], Field(description="Filter results where user_id starts with value")] = None,
73
+ fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
74
+ exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
75
+ pulp_domain: StrictStr = "default",
76
+ _request_timeout: Union[
77
+ None,
78
+ Annotated[StrictFloat, Field(gt=0)],
79
+ Tuple[
80
+ Annotated[StrictFloat, Field(gt=0)],
81
+ Annotated[StrictFloat, Field(gt=0)]
82
+ ]
83
+ ] = None,
84
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
85
+ _content_type: Optional[StrictStr] = None,
86
+ _headers: Optional[Dict[StrictStr, Any]] = None,
87
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
88
+ ) -> PaginatedOpenPGPUserIDResponseList:
89
+ """List open pgp user ids
90
+
91
+ Content viewset that supports only GET by default.
92
+
93
+ :param pulp_domain: (required)
94
+ :type pulp_domain: str
95
+ :param x_task_diagnostics: List of profilers to use on tasks.
96
+ :type x_task_diagnostics: List[str]
97
+ :param limit: Number of results to return per page.
98
+ :type limit: int
99
+ :param offset: The initial index from which to return the results.
100
+ :type offset: int
101
+ :param ordering: Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `raw_data` - Raw data * `-raw_data` - Raw data (descending) * `user_id` - User id * `-user_id` - User id (descending) * `pk` - Pk * `-pk` - Pk (descending)
102
+ :type ordering: List[str]
103
+ :param orphaned_for: Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
104
+ :type orphaned_for: float
105
+ :param prn__in: Multiple values may be separated by commas.
106
+ :type prn__in: List[str]
107
+ :param pulp_href__in: Multiple values may be separated by commas.
108
+ :type pulp_href__in: List[str]
109
+ :param pulp_id__in: Multiple values may be separated by commas.
110
+ :type pulp_id__in: List[str]
111
+ :param pulp_label_select: Filter labels by search string
112
+ :type pulp_label_select: str
113
+ :param q: Filter results by using NOT, AND and OR operations on other filters
114
+ :type q: str
115
+ :param repository_version: Repository Version referenced by HREF/PRN
116
+ :type repository_version: str
117
+ :param repository_version_added: Repository Version referenced by HREF/PRN
118
+ :type repository_version_added: str
119
+ :param repository_version_removed: Repository Version referenced by HREF/PRN
120
+ :type repository_version_removed: str
121
+ :param user_id: Filter results where user_id matches value
122
+ :type user_id: str
123
+ :param user_id__contains: Filter results where user_id contains value
124
+ :type user_id__contains: str
125
+ :param user_id__icontains: Filter results where user_id contains value
126
+ :type user_id__icontains: str
127
+ :param user_id__iexact: Filter results where user_id matches value
128
+ :type user_id__iexact: str
129
+ :param user_id__in: Filter results where user_id is in a comma-separated list of values
130
+ :type user_id__in: List[str]
131
+ :param user_id__iregex: Filter results where user_id matches regex value
132
+ :type user_id__iregex: str
133
+ :param user_id__istartswith: Filter results where user_id starts with value
134
+ :type user_id__istartswith: str
135
+ :param user_id__regex: Filter results where user_id matches regex value
136
+ :type user_id__regex: str
137
+ :param user_id__startswith: Filter results where user_id starts with value
138
+ :type user_id__startswith: str
139
+ :param fields: A list of fields to include in the response.
140
+ :type fields: List[str]
141
+ :param exclude_fields: A list of fields to exclude from the response.
142
+ :type exclude_fields: List[str]
143
+ :param _request_timeout: timeout setting for this request. If one
144
+ number provided, it will be total request
145
+ timeout. It can also be a pair (tuple) of
146
+ (connection, read) timeouts.
147
+ :type _request_timeout: int, tuple(int, int), optional
148
+ :param _request_auth: set to override the auth_settings for an a single
149
+ request; this effectively ignores the
150
+ authentication in the spec for a single request.
151
+ :type _request_auth: dict, optional
152
+ :param _content_type: force content-type for the request.
153
+ :type _content_type: str, Optional
154
+ :param _headers: set to override the headers for a single
155
+ request; this effectively ignores the headers
156
+ in the spec for a single request.
157
+ :type _headers: dict, optional
158
+ :param _host_index: set to override the host_index for a single
159
+ request; this effectively ignores the host_index
160
+ in the spec for a single request.
161
+ :type _host_index: int, optional
162
+ :return: Returns the result object.
163
+ """ # noqa: E501
164
+
165
+ _param = self._list_serialize(
166
+ pulp_domain=pulp_domain,
167
+ x_task_diagnostics=x_task_diagnostics,
168
+ limit=limit,
169
+ offset=offset,
170
+ ordering=ordering,
171
+ orphaned_for=orphaned_for,
172
+ prn__in=prn__in,
173
+ pulp_href__in=pulp_href__in,
174
+ pulp_id__in=pulp_id__in,
175
+ pulp_label_select=pulp_label_select,
176
+ q=q,
177
+ repository_version=repository_version,
178
+ repository_version_added=repository_version_added,
179
+ repository_version_removed=repository_version_removed,
180
+ user_id=user_id,
181
+ user_id__contains=user_id__contains,
182
+ user_id__icontains=user_id__icontains,
183
+ user_id__iexact=user_id__iexact,
184
+ user_id__in=user_id__in,
185
+ user_id__iregex=user_id__iregex,
186
+ user_id__istartswith=user_id__istartswith,
187
+ user_id__regex=user_id__regex,
188
+ user_id__startswith=user_id__startswith,
189
+ fields=fields,
190
+ exclude_fields=exclude_fields,
191
+ _request_auth=_request_auth,
192
+ _content_type=_content_type,
193
+ _headers=_headers,
194
+ _host_index=_host_index
195
+ )
196
+
197
+ _response_types_map: Dict[str, Optional[str]] = {
198
+ '200': "PaginatedOpenPGPUserIDResponseList",
199
+ }
200
+ response_data = self.api_client.call_api(
201
+ *_param,
202
+ _request_timeout=_request_timeout
203
+ )
204
+ response_data.read()
205
+ return self.api_client.response_deserialize(
206
+ response_data=response_data,
207
+ response_types_map=_response_types_map,
208
+ ).data
209
+
210
+
211
+ @validate_call
212
+ def list_with_http_info(
213
+ self,
214
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
215
+ limit: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None,
216
+ offset: Annotated[Optional[StrictInt], Field(description="The initial index from which to return the results.")] = None,
217
+ ordering: Annotated[Optional[List[StrictStr]], Field(description="Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `raw_data` - Raw data * `-raw_data` - Raw data (descending) * `user_id` - User id * `-user_id` - User id (descending) * `pk` - Pk * `-pk` - Pk (descending)")] = None,
218
+ orphaned_for: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.")] = None,
219
+ prn__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
220
+ pulp_href__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
221
+ pulp_id__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
222
+ pulp_label_select: Annotated[Optional[StrictStr], Field(description="Filter labels by search string")] = None,
223
+ q: Annotated[Optional[StrictStr], Field(description="Filter results by using NOT, AND and OR operations on other filters")] = None,
224
+ repository_version: Annotated[Optional[StrictStr], Field(description="Repository Version referenced by HREF/PRN")] = None,
225
+ repository_version_added: Annotated[Optional[StrictStr], Field(description="Repository Version referenced by HREF/PRN")] = None,
226
+ repository_version_removed: Annotated[Optional[StrictStr], Field(description="Repository Version referenced by HREF/PRN")] = None,
227
+ user_id: Annotated[Optional[StrictStr], Field(description="Filter results where user_id matches value")] = None,
228
+ user_id__contains: Annotated[Optional[StrictStr], Field(description="Filter results where user_id contains value")] = None,
229
+ user_id__icontains: Annotated[Optional[StrictStr], Field(description="Filter results where user_id contains value")] = None,
230
+ user_id__iexact: Annotated[Optional[StrictStr], Field(description="Filter results where user_id matches value")] = None,
231
+ user_id__in: Annotated[Optional[List[StrictStr]], Field(description="Filter results where user_id is in a comma-separated list of values")] = None,
232
+ user_id__iregex: Annotated[Optional[StrictStr], Field(description="Filter results where user_id matches regex value")] = None,
233
+ user_id__istartswith: Annotated[Optional[StrictStr], Field(description="Filter results where user_id starts with value")] = None,
234
+ user_id__regex: Annotated[Optional[StrictStr], Field(description="Filter results where user_id matches regex value")] = None,
235
+ user_id__startswith: Annotated[Optional[StrictStr], Field(description="Filter results where user_id starts with value")] = None,
236
+ fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
237
+ exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
238
+ pulp_domain: StrictStr = "default",
239
+ _request_timeout: Union[
240
+ None,
241
+ Annotated[StrictFloat, Field(gt=0)],
242
+ Tuple[
243
+ Annotated[StrictFloat, Field(gt=0)],
244
+ Annotated[StrictFloat, Field(gt=0)]
245
+ ]
246
+ ] = None,
247
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
248
+ _content_type: Optional[StrictStr] = None,
249
+ _headers: Optional[Dict[StrictStr, Any]] = None,
250
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
251
+ ) -> ApiResponse[PaginatedOpenPGPUserIDResponseList]:
252
+ """List open pgp user ids
253
+
254
+ Content viewset that supports only GET by default.
255
+
256
+ :param pulp_domain: (required)
257
+ :type pulp_domain: str
258
+ :param x_task_diagnostics: List of profilers to use on tasks.
259
+ :type x_task_diagnostics: List[str]
260
+ :param limit: Number of results to return per page.
261
+ :type limit: int
262
+ :param offset: The initial index from which to return the results.
263
+ :type offset: int
264
+ :param ordering: Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `raw_data` - Raw data * `-raw_data` - Raw data (descending) * `user_id` - User id * `-user_id` - User id (descending) * `pk` - Pk * `-pk` - Pk (descending)
265
+ :type ordering: List[str]
266
+ :param orphaned_for: Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
267
+ :type orphaned_for: float
268
+ :param prn__in: Multiple values may be separated by commas.
269
+ :type prn__in: List[str]
270
+ :param pulp_href__in: Multiple values may be separated by commas.
271
+ :type pulp_href__in: List[str]
272
+ :param pulp_id__in: Multiple values may be separated by commas.
273
+ :type pulp_id__in: List[str]
274
+ :param pulp_label_select: Filter labels by search string
275
+ :type pulp_label_select: str
276
+ :param q: Filter results by using NOT, AND and OR operations on other filters
277
+ :type q: str
278
+ :param repository_version: Repository Version referenced by HREF/PRN
279
+ :type repository_version: str
280
+ :param repository_version_added: Repository Version referenced by HREF/PRN
281
+ :type repository_version_added: str
282
+ :param repository_version_removed: Repository Version referenced by HREF/PRN
283
+ :type repository_version_removed: str
284
+ :param user_id: Filter results where user_id matches value
285
+ :type user_id: str
286
+ :param user_id__contains: Filter results where user_id contains value
287
+ :type user_id__contains: str
288
+ :param user_id__icontains: Filter results where user_id contains value
289
+ :type user_id__icontains: str
290
+ :param user_id__iexact: Filter results where user_id matches value
291
+ :type user_id__iexact: str
292
+ :param user_id__in: Filter results where user_id is in a comma-separated list of values
293
+ :type user_id__in: List[str]
294
+ :param user_id__iregex: Filter results where user_id matches regex value
295
+ :type user_id__iregex: str
296
+ :param user_id__istartswith: Filter results where user_id starts with value
297
+ :type user_id__istartswith: str
298
+ :param user_id__regex: Filter results where user_id matches regex value
299
+ :type user_id__regex: str
300
+ :param user_id__startswith: Filter results where user_id starts with value
301
+ :type user_id__startswith: str
302
+ :param fields: A list of fields to include in the response.
303
+ :type fields: List[str]
304
+ :param exclude_fields: A list of fields to exclude from the response.
305
+ :type exclude_fields: List[str]
306
+ :param _request_timeout: timeout setting for this request. If one
307
+ number provided, it will be total request
308
+ timeout. It can also be a pair (tuple) of
309
+ (connection, read) timeouts.
310
+ :type _request_timeout: int, tuple(int, int), optional
311
+ :param _request_auth: set to override the auth_settings for an a single
312
+ request; this effectively ignores the
313
+ authentication in the spec for a single request.
314
+ :type _request_auth: dict, optional
315
+ :param _content_type: force content-type for the request.
316
+ :type _content_type: str, Optional
317
+ :param _headers: set to override the headers for a single
318
+ request; this effectively ignores the headers
319
+ in the spec for a single request.
320
+ :type _headers: dict, optional
321
+ :param _host_index: set to override the host_index for a single
322
+ request; this effectively ignores the host_index
323
+ in the spec for a single request.
324
+ :type _host_index: int, optional
325
+ :return: Returns the result object.
326
+ """ # noqa: E501
327
+
328
+ _param = self._list_serialize(
329
+ pulp_domain=pulp_domain,
330
+ x_task_diagnostics=x_task_diagnostics,
331
+ limit=limit,
332
+ offset=offset,
333
+ ordering=ordering,
334
+ orphaned_for=orphaned_for,
335
+ prn__in=prn__in,
336
+ pulp_href__in=pulp_href__in,
337
+ pulp_id__in=pulp_id__in,
338
+ pulp_label_select=pulp_label_select,
339
+ q=q,
340
+ repository_version=repository_version,
341
+ repository_version_added=repository_version_added,
342
+ repository_version_removed=repository_version_removed,
343
+ user_id=user_id,
344
+ user_id__contains=user_id__contains,
345
+ user_id__icontains=user_id__icontains,
346
+ user_id__iexact=user_id__iexact,
347
+ user_id__in=user_id__in,
348
+ user_id__iregex=user_id__iregex,
349
+ user_id__istartswith=user_id__istartswith,
350
+ user_id__regex=user_id__regex,
351
+ user_id__startswith=user_id__startswith,
352
+ fields=fields,
353
+ exclude_fields=exclude_fields,
354
+ _request_auth=_request_auth,
355
+ _content_type=_content_type,
356
+ _headers=_headers,
357
+ _host_index=_host_index
358
+ )
359
+
360
+ _response_types_map: Dict[str, Optional[str]] = {
361
+ '200': "PaginatedOpenPGPUserIDResponseList",
362
+ }
363
+ response_data = self.api_client.call_api(
364
+ *_param,
365
+ _request_timeout=_request_timeout
366
+ )
367
+ response_data.read()
368
+ return self.api_client.response_deserialize(
369
+ response_data=response_data,
370
+ response_types_map=_response_types_map,
371
+ )
372
+
373
+
374
+ @validate_call
375
+ def list_without_preload_content(
376
+ self,
377
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
378
+ limit: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None,
379
+ offset: Annotated[Optional[StrictInt], Field(description="The initial index from which to return the results.")] = None,
380
+ ordering: Annotated[Optional[List[StrictStr]], Field(description="Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `raw_data` - Raw data * `-raw_data` - Raw data (descending) * `user_id` - User id * `-user_id` - User id (descending) * `pk` - Pk * `-pk` - Pk (descending)")] = None,
381
+ orphaned_for: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.")] = None,
382
+ prn__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
383
+ pulp_href__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
384
+ pulp_id__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
385
+ pulp_label_select: Annotated[Optional[StrictStr], Field(description="Filter labels by search string")] = None,
386
+ q: Annotated[Optional[StrictStr], Field(description="Filter results by using NOT, AND and OR operations on other filters")] = None,
387
+ repository_version: Annotated[Optional[StrictStr], Field(description="Repository Version referenced by HREF/PRN")] = None,
388
+ repository_version_added: Annotated[Optional[StrictStr], Field(description="Repository Version referenced by HREF/PRN")] = None,
389
+ repository_version_removed: Annotated[Optional[StrictStr], Field(description="Repository Version referenced by HREF/PRN")] = None,
390
+ user_id: Annotated[Optional[StrictStr], Field(description="Filter results where user_id matches value")] = None,
391
+ user_id__contains: Annotated[Optional[StrictStr], Field(description="Filter results where user_id contains value")] = None,
392
+ user_id__icontains: Annotated[Optional[StrictStr], Field(description="Filter results where user_id contains value")] = None,
393
+ user_id__iexact: Annotated[Optional[StrictStr], Field(description="Filter results where user_id matches value")] = None,
394
+ user_id__in: Annotated[Optional[List[StrictStr]], Field(description="Filter results where user_id is in a comma-separated list of values")] = None,
395
+ user_id__iregex: Annotated[Optional[StrictStr], Field(description="Filter results where user_id matches regex value")] = None,
396
+ user_id__istartswith: Annotated[Optional[StrictStr], Field(description="Filter results where user_id starts with value")] = None,
397
+ user_id__regex: Annotated[Optional[StrictStr], Field(description="Filter results where user_id matches regex value")] = None,
398
+ user_id__startswith: Annotated[Optional[StrictStr], Field(description="Filter results where user_id starts with value")] = None,
399
+ fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
400
+ exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
401
+ pulp_domain: StrictStr = "default",
402
+ _request_timeout: Union[
403
+ None,
404
+ Annotated[StrictFloat, Field(gt=0)],
405
+ Tuple[
406
+ Annotated[StrictFloat, Field(gt=0)],
407
+ Annotated[StrictFloat, Field(gt=0)]
408
+ ]
409
+ ] = None,
410
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
411
+ _content_type: Optional[StrictStr] = None,
412
+ _headers: Optional[Dict[StrictStr, Any]] = None,
413
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
414
+ ) -> RESTResponseType:
415
+ """List open pgp user ids
416
+
417
+ Content viewset that supports only GET by default.
418
+
419
+ :param pulp_domain: (required)
420
+ :type pulp_domain: str
421
+ :param x_task_diagnostics: List of profilers to use on tasks.
422
+ :type x_task_diagnostics: List[str]
423
+ :param limit: Number of results to return per page.
424
+ :type limit: int
425
+ :param offset: The initial index from which to return the results.
426
+ :type offset: int
427
+ :param ordering: Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `raw_data` - Raw data * `-raw_data` - Raw data (descending) * `user_id` - User id * `-user_id` - User id (descending) * `pk` - Pk * `-pk` - Pk (descending)
428
+ :type ordering: List[str]
429
+ :param orphaned_for: Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
430
+ :type orphaned_for: float
431
+ :param prn__in: Multiple values may be separated by commas.
432
+ :type prn__in: List[str]
433
+ :param pulp_href__in: Multiple values may be separated by commas.
434
+ :type pulp_href__in: List[str]
435
+ :param pulp_id__in: Multiple values may be separated by commas.
436
+ :type pulp_id__in: List[str]
437
+ :param pulp_label_select: Filter labels by search string
438
+ :type pulp_label_select: str
439
+ :param q: Filter results by using NOT, AND and OR operations on other filters
440
+ :type q: str
441
+ :param repository_version: Repository Version referenced by HREF/PRN
442
+ :type repository_version: str
443
+ :param repository_version_added: Repository Version referenced by HREF/PRN
444
+ :type repository_version_added: str
445
+ :param repository_version_removed: Repository Version referenced by HREF/PRN
446
+ :type repository_version_removed: str
447
+ :param user_id: Filter results where user_id matches value
448
+ :type user_id: str
449
+ :param user_id__contains: Filter results where user_id contains value
450
+ :type user_id__contains: str
451
+ :param user_id__icontains: Filter results where user_id contains value
452
+ :type user_id__icontains: str
453
+ :param user_id__iexact: Filter results where user_id matches value
454
+ :type user_id__iexact: str
455
+ :param user_id__in: Filter results where user_id is in a comma-separated list of values
456
+ :type user_id__in: List[str]
457
+ :param user_id__iregex: Filter results where user_id matches regex value
458
+ :type user_id__iregex: str
459
+ :param user_id__istartswith: Filter results where user_id starts with value
460
+ :type user_id__istartswith: str
461
+ :param user_id__regex: Filter results where user_id matches regex value
462
+ :type user_id__regex: str
463
+ :param user_id__startswith: Filter results where user_id starts with value
464
+ :type user_id__startswith: str
465
+ :param fields: A list of fields to include in the response.
466
+ :type fields: List[str]
467
+ :param exclude_fields: A list of fields to exclude from the response.
468
+ :type exclude_fields: List[str]
469
+ :param _request_timeout: timeout setting for this request. If one
470
+ number provided, it will be total request
471
+ timeout. It can also be a pair (tuple) of
472
+ (connection, read) timeouts.
473
+ :type _request_timeout: int, tuple(int, int), optional
474
+ :param _request_auth: set to override the auth_settings for an a single
475
+ request; this effectively ignores the
476
+ authentication in the spec for a single request.
477
+ :type _request_auth: dict, optional
478
+ :param _content_type: force content-type for the request.
479
+ :type _content_type: str, Optional
480
+ :param _headers: set to override the headers for a single
481
+ request; this effectively ignores the headers
482
+ in the spec for a single request.
483
+ :type _headers: dict, optional
484
+ :param _host_index: set to override the host_index for a single
485
+ request; this effectively ignores the host_index
486
+ in the spec for a single request.
487
+ :type _host_index: int, optional
488
+ :return: Returns the result object.
489
+ """ # noqa: E501
490
+
491
+ _param = self._list_serialize(
492
+ pulp_domain=pulp_domain,
493
+ x_task_diagnostics=x_task_diagnostics,
494
+ limit=limit,
495
+ offset=offset,
496
+ ordering=ordering,
497
+ orphaned_for=orphaned_for,
498
+ prn__in=prn__in,
499
+ pulp_href__in=pulp_href__in,
500
+ pulp_id__in=pulp_id__in,
501
+ pulp_label_select=pulp_label_select,
502
+ q=q,
503
+ repository_version=repository_version,
504
+ repository_version_added=repository_version_added,
505
+ repository_version_removed=repository_version_removed,
506
+ user_id=user_id,
507
+ user_id__contains=user_id__contains,
508
+ user_id__icontains=user_id__icontains,
509
+ user_id__iexact=user_id__iexact,
510
+ user_id__in=user_id__in,
511
+ user_id__iregex=user_id__iregex,
512
+ user_id__istartswith=user_id__istartswith,
513
+ user_id__regex=user_id__regex,
514
+ user_id__startswith=user_id__startswith,
515
+ fields=fields,
516
+ exclude_fields=exclude_fields,
517
+ _request_auth=_request_auth,
518
+ _content_type=_content_type,
519
+ _headers=_headers,
520
+ _host_index=_host_index
521
+ )
522
+
523
+ _response_types_map: Dict[str, Optional[str]] = {
524
+ '200': "PaginatedOpenPGPUserIDResponseList",
525
+ }
526
+ response_data = self.api_client.call_api(
527
+ *_param,
528
+ _request_timeout=_request_timeout
529
+ )
530
+ return response_data.response
531
+
532
+
533
+ def _list_serialize(
534
+ self,
535
+ pulp_domain,
536
+ x_task_diagnostics,
537
+ limit,
538
+ offset,
539
+ ordering,
540
+ orphaned_for,
541
+ prn__in,
542
+ pulp_href__in,
543
+ pulp_id__in,
544
+ pulp_label_select,
545
+ q,
546
+ repository_version,
547
+ repository_version_added,
548
+ repository_version_removed,
549
+ user_id,
550
+ user_id__contains,
551
+ user_id__icontains,
552
+ user_id__iexact,
553
+ user_id__in,
554
+ user_id__iregex,
555
+ user_id__istartswith,
556
+ user_id__regex,
557
+ user_id__startswith,
558
+ fields,
559
+ exclude_fields,
560
+ _request_auth,
561
+ _content_type,
562
+ _headers,
563
+ _host_index,
564
+ ) -> RequestSerialized:
565
+
566
+ _host = None
567
+
568
+ _collection_formats: Dict[str, str] = {
569
+ 'X-Task-Diagnostics': 'csv',
570
+ 'ordering': 'csv',
571
+ 'prn__in': 'csv',
572
+ 'pulp_href__in': 'csv',
573
+ 'pulp_id__in': 'csv',
574
+ 'user_id__in': 'csv',
575
+ 'fields': 'multi',
576
+ 'exclude_fields': 'multi',
577
+ }
578
+
579
+ _path_params: Dict[str, str] = {}
580
+ _query_params: List[Tuple[str, str]] = []
581
+ _header_params: Dict[str, Optional[str]] = _headers or {}
582
+ _form_params: List[Tuple[str, str]] = []
583
+ _files: Dict[
584
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
585
+ ] = {}
586
+ _body_params: Optional[bytes] = None
587
+
588
+ # process the path parameters
589
+ if pulp_domain is not None:
590
+ _path_params['pulp_domain'] = pulp_domain
591
+ # process the query parameters
592
+ if limit is not None:
593
+
594
+ _query_params.append(('limit', limit))
595
+
596
+ if offset is not None:
597
+
598
+ _query_params.append(('offset', offset))
599
+
600
+ if ordering is not None:
601
+
602
+ _query_params.append(('ordering', ordering))
603
+
604
+ if orphaned_for is not None:
605
+
606
+ _query_params.append(('orphaned_for', orphaned_for))
607
+
608
+ if prn__in is not None:
609
+
610
+ _query_params.append(('prn__in', prn__in))
611
+
612
+ if pulp_href__in is not None:
613
+
614
+ _query_params.append(('pulp_href__in', pulp_href__in))
615
+
616
+ if pulp_id__in is not None:
617
+
618
+ _query_params.append(('pulp_id__in', pulp_id__in))
619
+
620
+ if pulp_label_select is not None:
621
+
622
+ _query_params.append(('pulp_label_select', pulp_label_select))
623
+
624
+ if q is not None:
625
+
626
+ _query_params.append(('q', q))
627
+
628
+ if repository_version is not None:
629
+
630
+ _query_params.append(('repository_version', repository_version))
631
+
632
+ if repository_version_added is not None:
633
+
634
+ _query_params.append(('repository_version_added', repository_version_added))
635
+
636
+ if repository_version_removed is not None:
637
+
638
+ _query_params.append(('repository_version_removed', repository_version_removed))
639
+
640
+ if user_id is not None:
641
+
642
+ _query_params.append(('user_id', user_id))
643
+
644
+ if user_id__contains is not None:
645
+
646
+ _query_params.append(('user_id__contains', user_id__contains))
647
+
648
+ if user_id__icontains is not None:
649
+
650
+ _query_params.append(('user_id__icontains', user_id__icontains))
651
+
652
+ if user_id__iexact is not None:
653
+
654
+ _query_params.append(('user_id__iexact', user_id__iexact))
655
+
656
+ if user_id__in is not None:
657
+
658
+ _query_params.append(('user_id__in', user_id__in))
659
+
660
+ if user_id__iregex is not None:
661
+
662
+ _query_params.append(('user_id__iregex', user_id__iregex))
663
+
664
+ if user_id__istartswith is not None:
665
+
666
+ _query_params.append(('user_id__istartswith', user_id__istartswith))
667
+
668
+ if user_id__regex is not None:
669
+
670
+ _query_params.append(('user_id__regex', user_id__regex))
671
+
672
+ if user_id__startswith is not None:
673
+
674
+ _query_params.append(('user_id__startswith', user_id__startswith))
675
+
676
+ if fields is not None:
677
+
678
+ _query_params.append(('fields', fields))
679
+
680
+ if exclude_fields is not None:
681
+
682
+ _query_params.append(('exclude_fields', exclude_fields))
683
+
684
+ # process the header parameters
685
+ if x_task_diagnostics is not None:
686
+ _header_params['X-Task-Diagnostics'] = x_task_diagnostics
687
+ # process the form parameters
688
+ # process the body parameter
689
+
690
+
691
+ # set the HTTP header `Accept`
692
+ if 'Accept' not in _header_params:
693
+ _header_params['Accept'] = self.api_client.select_header_accept(
694
+ [
695
+ 'application/json'
696
+ ]
697
+ )
698
+
699
+
700
+ # authentication setting
701
+ _auth_settings: List[str] = [
702
+ 'json_header_remote_authentication',
703
+ 'basicAuth',
704
+ 'cookieAuth'
705
+ ]
706
+
707
+ return self.api_client.param_serialize(
708
+ method='GET',
709
+ resource_path='/api/pulp/{pulp_domain}/api/v3/content/core/openpgp_userid/',
710
+ path_params=_path_params,
711
+ query_params=_query_params,
712
+ header_params=_header_params,
713
+ body=_body_params,
714
+ post_params=_form_params,
715
+ files=_files,
716
+ auth_settings=_auth_settings,
717
+ collection_formats=_collection_formats,
718
+ _host=_host,
719
+ _request_auth=_request_auth
720
+ )
721
+
722
+
723
+
724
+
725
+ @validate_call
726
+ def read(
727
+ self,
728
+ open_p_g_p_user_i_d_href: StrictStr,
729
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
730
+ fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
731
+ exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
732
+ _request_timeout: Union[
733
+ None,
734
+ Annotated[StrictFloat, Field(gt=0)],
735
+ Tuple[
736
+ Annotated[StrictFloat, Field(gt=0)],
737
+ Annotated[StrictFloat, Field(gt=0)]
738
+ ]
739
+ ] = None,
740
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
741
+ _content_type: Optional[StrictStr] = None,
742
+ _headers: Optional[Dict[StrictStr, Any]] = None,
743
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
744
+ ) -> OpenPGPUserIDResponse:
745
+ """Inspect an open pgp user id
746
+
747
+ Content viewset that supports only GET by default.
748
+
749
+ :param open_p_g_p_user_i_d_href: (required)
750
+ :type open_p_g_p_user_i_d_href: str
751
+ :param x_task_diagnostics: List of profilers to use on tasks.
752
+ :type x_task_diagnostics: List[str]
753
+ :param fields: A list of fields to include in the response.
754
+ :type fields: List[str]
755
+ :param exclude_fields: A list of fields to exclude from the response.
756
+ :type exclude_fields: List[str]
757
+ :param _request_timeout: timeout setting for this request. If one
758
+ number provided, it will be total request
759
+ timeout. It can also be a pair (tuple) of
760
+ (connection, read) timeouts.
761
+ :type _request_timeout: int, tuple(int, int), optional
762
+ :param _request_auth: set to override the auth_settings for an a single
763
+ request; this effectively ignores the
764
+ authentication in the spec for a single request.
765
+ :type _request_auth: dict, optional
766
+ :param _content_type: force content-type for the request.
767
+ :type _content_type: str, Optional
768
+ :param _headers: set to override the headers for a single
769
+ request; this effectively ignores the headers
770
+ in the spec for a single request.
771
+ :type _headers: dict, optional
772
+ :param _host_index: set to override the host_index for a single
773
+ request; this effectively ignores the host_index
774
+ in the spec for a single request.
775
+ :type _host_index: int, optional
776
+ :return: Returns the result object.
777
+ """ # noqa: E501
778
+
779
+ _param = self._read_serialize(
780
+ open_p_g_p_user_i_d_href=open_p_g_p_user_i_d_href,
781
+ x_task_diagnostics=x_task_diagnostics,
782
+ fields=fields,
783
+ exclude_fields=exclude_fields,
784
+ _request_auth=_request_auth,
785
+ _content_type=_content_type,
786
+ _headers=_headers,
787
+ _host_index=_host_index
788
+ )
789
+
790
+ _response_types_map: Dict[str, Optional[str]] = {
791
+ '200': "OpenPGPUserIDResponse",
792
+ }
793
+ response_data = self.api_client.call_api(
794
+ *_param,
795
+ _request_timeout=_request_timeout
796
+ )
797
+ response_data.read()
798
+ return self.api_client.response_deserialize(
799
+ response_data=response_data,
800
+ response_types_map=_response_types_map,
801
+ ).data
802
+
803
+
804
+ @validate_call
805
+ def read_with_http_info(
806
+ self,
807
+ open_p_g_p_user_i_d_href: StrictStr,
808
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
809
+ fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
810
+ exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
811
+ _request_timeout: Union[
812
+ None,
813
+ Annotated[StrictFloat, Field(gt=0)],
814
+ Tuple[
815
+ Annotated[StrictFloat, Field(gt=0)],
816
+ Annotated[StrictFloat, Field(gt=0)]
817
+ ]
818
+ ] = None,
819
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
820
+ _content_type: Optional[StrictStr] = None,
821
+ _headers: Optional[Dict[StrictStr, Any]] = None,
822
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
823
+ ) -> ApiResponse[OpenPGPUserIDResponse]:
824
+ """Inspect an open pgp user id
825
+
826
+ Content viewset that supports only GET by default.
827
+
828
+ :param open_p_g_p_user_i_d_href: (required)
829
+ :type open_p_g_p_user_i_d_href: str
830
+ :param x_task_diagnostics: List of profilers to use on tasks.
831
+ :type x_task_diagnostics: List[str]
832
+ :param fields: A list of fields to include in the response.
833
+ :type fields: List[str]
834
+ :param exclude_fields: A list of fields to exclude from the response.
835
+ :type exclude_fields: List[str]
836
+ :param _request_timeout: timeout setting for this request. If one
837
+ number provided, it will be total request
838
+ timeout. It can also be a pair (tuple) of
839
+ (connection, read) timeouts.
840
+ :type _request_timeout: int, tuple(int, int), optional
841
+ :param _request_auth: set to override the auth_settings for an a single
842
+ request; this effectively ignores the
843
+ authentication in the spec for a single request.
844
+ :type _request_auth: dict, optional
845
+ :param _content_type: force content-type for the request.
846
+ :type _content_type: str, Optional
847
+ :param _headers: set to override the headers for a single
848
+ request; this effectively ignores the headers
849
+ in the spec for a single request.
850
+ :type _headers: dict, optional
851
+ :param _host_index: set to override the host_index for a single
852
+ request; this effectively ignores the host_index
853
+ in the spec for a single request.
854
+ :type _host_index: int, optional
855
+ :return: Returns the result object.
856
+ """ # noqa: E501
857
+
858
+ _param = self._read_serialize(
859
+ open_p_g_p_user_i_d_href=open_p_g_p_user_i_d_href,
860
+ x_task_diagnostics=x_task_diagnostics,
861
+ fields=fields,
862
+ exclude_fields=exclude_fields,
863
+ _request_auth=_request_auth,
864
+ _content_type=_content_type,
865
+ _headers=_headers,
866
+ _host_index=_host_index
867
+ )
868
+
869
+ _response_types_map: Dict[str, Optional[str]] = {
870
+ '200': "OpenPGPUserIDResponse",
871
+ }
872
+ response_data = self.api_client.call_api(
873
+ *_param,
874
+ _request_timeout=_request_timeout
875
+ )
876
+ response_data.read()
877
+ return self.api_client.response_deserialize(
878
+ response_data=response_data,
879
+ response_types_map=_response_types_map,
880
+ )
881
+
882
+
883
+ @validate_call
884
+ def read_without_preload_content(
885
+ self,
886
+ open_p_g_p_user_i_d_href: StrictStr,
887
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
888
+ fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
889
+ exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
890
+ _request_timeout: Union[
891
+ None,
892
+ Annotated[StrictFloat, Field(gt=0)],
893
+ Tuple[
894
+ Annotated[StrictFloat, Field(gt=0)],
895
+ Annotated[StrictFloat, Field(gt=0)]
896
+ ]
897
+ ] = None,
898
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
899
+ _content_type: Optional[StrictStr] = None,
900
+ _headers: Optional[Dict[StrictStr, Any]] = None,
901
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
902
+ ) -> RESTResponseType:
903
+ """Inspect an open pgp user id
904
+
905
+ Content viewset that supports only GET by default.
906
+
907
+ :param open_p_g_p_user_i_d_href: (required)
908
+ :type open_p_g_p_user_i_d_href: str
909
+ :param x_task_diagnostics: List of profilers to use on tasks.
910
+ :type x_task_diagnostics: List[str]
911
+ :param fields: A list of fields to include in the response.
912
+ :type fields: List[str]
913
+ :param exclude_fields: A list of fields to exclude from the response.
914
+ :type exclude_fields: List[str]
915
+ :param _request_timeout: timeout setting for this request. If one
916
+ number provided, it will be total request
917
+ timeout. It can also be a pair (tuple) of
918
+ (connection, read) timeouts.
919
+ :type _request_timeout: int, tuple(int, int), optional
920
+ :param _request_auth: set to override the auth_settings for an a single
921
+ request; this effectively ignores the
922
+ authentication in the spec for a single request.
923
+ :type _request_auth: dict, optional
924
+ :param _content_type: force content-type for the request.
925
+ :type _content_type: str, Optional
926
+ :param _headers: set to override the headers for a single
927
+ request; this effectively ignores the headers
928
+ in the spec for a single request.
929
+ :type _headers: dict, optional
930
+ :param _host_index: set to override the host_index for a single
931
+ request; this effectively ignores the host_index
932
+ in the spec for a single request.
933
+ :type _host_index: int, optional
934
+ :return: Returns the result object.
935
+ """ # noqa: E501
936
+
937
+ _param = self._read_serialize(
938
+ open_p_g_p_user_i_d_href=open_p_g_p_user_i_d_href,
939
+ x_task_diagnostics=x_task_diagnostics,
940
+ fields=fields,
941
+ exclude_fields=exclude_fields,
942
+ _request_auth=_request_auth,
943
+ _content_type=_content_type,
944
+ _headers=_headers,
945
+ _host_index=_host_index
946
+ )
947
+
948
+ _response_types_map: Dict[str, Optional[str]] = {
949
+ '200': "OpenPGPUserIDResponse",
950
+ }
951
+ response_data = self.api_client.call_api(
952
+ *_param,
953
+ _request_timeout=_request_timeout
954
+ )
955
+ return response_data.response
956
+
957
+
958
+ def _read_serialize(
959
+ self,
960
+ open_p_g_p_user_i_d_href,
961
+ x_task_diagnostics,
962
+ fields,
963
+ exclude_fields,
964
+ _request_auth,
965
+ _content_type,
966
+ _headers,
967
+ _host_index,
968
+ ) -> RequestSerialized:
969
+
970
+ _host = None
971
+
972
+ _collection_formats: Dict[str, str] = {
973
+ 'X-Task-Diagnostics': 'csv',
974
+ 'fields': 'multi',
975
+ 'exclude_fields': 'multi',
976
+ }
977
+
978
+ _path_params: Dict[str, str] = {}
979
+ _query_params: List[Tuple[str, str]] = []
980
+ _header_params: Dict[str, Optional[str]] = _headers or {}
981
+ _form_params: List[Tuple[str, str]] = []
982
+ _files: Dict[
983
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
984
+ ] = {}
985
+ _body_params: Optional[bytes] = None
986
+
987
+ # process the path parameters
988
+ if open_p_g_p_user_i_d_href is not None:
989
+ _path_params['open_p_g_p_user_i_d_href'] = open_p_g_p_user_i_d_href
990
+ # process the query parameters
991
+ if fields is not None:
992
+
993
+ _query_params.append(('fields', fields))
994
+
995
+ if exclude_fields is not None:
996
+
997
+ _query_params.append(('exclude_fields', exclude_fields))
998
+
999
+ # process the header parameters
1000
+ if x_task_diagnostics is not None:
1001
+ _header_params['X-Task-Diagnostics'] = x_task_diagnostics
1002
+ # process the form parameters
1003
+ # process the body parameter
1004
+
1005
+
1006
+ # set the HTTP header `Accept`
1007
+ if 'Accept' not in _header_params:
1008
+ _header_params['Accept'] = self.api_client.select_header_accept(
1009
+ [
1010
+ 'application/json'
1011
+ ]
1012
+ )
1013
+
1014
+
1015
+ # authentication setting
1016
+ _auth_settings: List[str] = [
1017
+ 'json_header_remote_authentication',
1018
+ 'basicAuth',
1019
+ 'cookieAuth'
1020
+ ]
1021
+
1022
+ return self.api_client.param_serialize(
1023
+ method='GET',
1024
+ resource_path='{open_p_g_p_user_i_d_href}',
1025
+ path_params=_path_params,
1026
+ query_params=_query_params,
1027
+ header_params=_header_params,
1028
+ body=_body_params,
1029
+ post_params=_form_params,
1030
+ files=_files,
1031
+ auth_settings=_auth_settings,
1032
+ collection_formats=_collection_formats,
1033
+ _host=_host,
1034
+ _request_auth=_request_auth
1035
+ )
1036
+
1037
+
1038
+
1039
+
1040
+ @validate_call
1041
+ def set_label(
1042
+ self,
1043
+ open_p_g_p_user_i_d_href: StrictStr,
1044
+ set_label: SetLabel,
1045
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
1046
+ _request_timeout: Union[
1047
+ None,
1048
+ Annotated[StrictFloat, Field(gt=0)],
1049
+ Tuple[
1050
+ Annotated[StrictFloat, Field(gt=0)],
1051
+ Annotated[StrictFloat, Field(gt=0)]
1052
+ ]
1053
+ ] = None,
1054
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1055
+ _content_type: Optional[StrictStr] = None,
1056
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1057
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1058
+ ) -> SetLabelResponse:
1059
+ """Set a label
1060
+
1061
+ Set a single pulp_label on the object to a specific value or null.
1062
+
1063
+ :param open_p_g_p_user_i_d_href: (required)
1064
+ :type open_p_g_p_user_i_d_href: str
1065
+ :param set_label: (required)
1066
+ :type set_label: SetLabel
1067
+ :param x_task_diagnostics: List of profilers to use on tasks.
1068
+ :type x_task_diagnostics: List[str]
1069
+ :param _request_timeout: timeout setting for this request. If one
1070
+ number provided, it will be total request
1071
+ timeout. It can also be a pair (tuple) of
1072
+ (connection, read) timeouts.
1073
+ :type _request_timeout: int, tuple(int, int), optional
1074
+ :param _request_auth: set to override the auth_settings for an a single
1075
+ request; this effectively ignores the
1076
+ authentication in the spec for a single request.
1077
+ :type _request_auth: dict, optional
1078
+ :param _content_type: force content-type for the request.
1079
+ :type _content_type: str, Optional
1080
+ :param _headers: set to override the headers for a single
1081
+ request; this effectively ignores the headers
1082
+ in the spec for a single request.
1083
+ :type _headers: dict, optional
1084
+ :param _host_index: set to override the host_index for a single
1085
+ request; this effectively ignores the host_index
1086
+ in the spec for a single request.
1087
+ :type _host_index: int, optional
1088
+ :return: Returns the result object.
1089
+ """ # noqa: E501
1090
+
1091
+ _param = self._set_label_serialize(
1092
+ open_p_g_p_user_i_d_href=open_p_g_p_user_i_d_href,
1093
+ set_label=set_label,
1094
+ x_task_diagnostics=x_task_diagnostics,
1095
+ _request_auth=_request_auth,
1096
+ _content_type=_content_type,
1097
+ _headers=_headers,
1098
+ _host_index=_host_index
1099
+ )
1100
+
1101
+ _response_types_map: Dict[str, Optional[str]] = {
1102
+ '200': "SetLabelResponse",
1103
+ }
1104
+ response_data = self.api_client.call_api(
1105
+ *_param,
1106
+ _request_timeout=_request_timeout
1107
+ )
1108
+ response_data.read()
1109
+ return self.api_client.response_deserialize(
1110
+ response_data=response_data,
1111
+ response_types_map=_response_types_map,
1112
+ ).data
1113
+
1114
+
1115
+ @validate_call
1116
+ def set_label_with_http_info(
1117
+ self,
1118
+ open_p_g_p_user_i_d_href: StrictStr,
1119
+ set_label: SetLabel,
1120
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
1121
+ _request_timeout: Union[
1122
+ None,
1123
+ Annotated[StrictFloat, Field(gt=0)],
1124
+ Tuple[
1125
+ Annotated[StrictFloat, Field(gt=0)],
1126
+ Annotated[StrictFloat, Field(gt=0)]
1127
+ ]
1128
+ ] = None,
1129
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1130
+ _content_type: Optional[StrictStr] = None,
1131
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1132
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1133
+ ) -> ApiResponse[SetLabelResponse]:
1134
+ """Set a label
1135
+
1136
+ Set a single pulp_label on the object to a specific value or null.
1137
+
1138
+ :param open_p_g_p_user_i_d_href: (required)
1139
+ :type open_p_g_p_user_i_d_href: str
1140
+ :param set_label: (required)
1141
+ :type set_label: SetLabel
1142
+ :param x_task_diagnostics: List of profilers to use on tasks.
1143
+ :type x_task_diagnostics: List[str]
1144
+ :param _request_timeout: timeout setting for this request. If one
1145
+ number provided, it will be total request
1146
+ timeout. It can also be a pair (tuple) of
1147
+ (connection, read) timeouts.
1148
+ :type _request_timeout: int, tuple(int, int), optional
1149
+ :param _request_auth: set to override the auth_settings for an a single
1150
+ request; this effectively ignores the
1151
+ authentication in the spec for a single request.
1152
+ :type _request_auth: dict, optional
1153
+ :param _content_type: force content-type for the request.
1154
+ :type _content_type: str, Optional
1155
+ :param _headers: set to override the headers for a single
1156
+ request; this effectively ignores the headers
1157
+ in the spec for a single request.
1158
+ :type _headers: dict, optional
1159
+ :param _host_index: set to override the host_index for a single
1160
+ request; this effectively ignores the host_index
1161
+ in the spec for a single request.
1162
+ :type _host_index: int, optional
1163
+ :return: Returns the result object.
1164
+ """ # noqa: E501
1165
+
1166
+ _param = self._set_label_serialize(
1167
+ open_p_g_p_user_i_d_href=open_p_g_p_user_i_d_href,
1168
+ set_label=set_label,
1169
+ x_task_diagnostics=x_task_diagnostics,
1170
+ _request_auth=_request_auth,
1171
+ _content_type=_content_type,
1172
+ _headers=_headers,
1173
+ _host_index=_host_index
1174
+ )
1175
+
1176
+ _response_types_map: Dict[str, Optional[str]] = {
1177
+ '200': "SetLabelResponse",
1178
+ }
1179
+ response_data = self.api_client.call_api(
1180
+ *_param,
1181
+ _request_timeout=_request_timeout
1182
+ )
1183
+ response_data.read()
1184
+ return self.api_client.response_deserialize(
1185
+ response_data=response_data,
1186
+ response_types_map=_response_types_map,
1187
+ )
1188
+
1189
+
1190
+ @validate_call
1191
+ def set_label_without_preload_content(
1192
+ self,
1193
+ open_p_g_p_user_i_d_href: StrictStr,
1194
+ set_label: SetLabel,
1195
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
1196
+ _request_timeout: Union[
1197
+ None,
1198
+ Annotated[StrictFloat, Field(gt=0)],
1199
+ Tuple[
1200
+ Annotated[StrictFloat, Field(gt=0)],
1201
+ Annotated[StrictFloat, Field(gt=0)]
1202
+ ]
1203
+ ] = None,
1204
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1205
+ _content_type: Optional[StrictStr] = None,
1206
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1207
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1208
+ ) -> RESTResponseType:
1209
+ """Set a label
1210
+
1211
+ Set a single pulp_label on the object to a specific value or null.
1212
+
1213
+ :param open_p_g_p_user_i_d_href: (required)
1214
+ :type open_p_g_p_user_i_d_href: str
1215
+ :param set_label: (required)
1216
+ :type set_label: SetLabel
1217
+ :param x_task_diagnostics: List of profilers to use on tasks.
1218
+ :type x_task_diagnostics: List[str]
1219
+ :param _request_timeout: timeout setting for this request. If one
1220
+ number provided, it will be total request
1221
+ timeout. It can also be a pair (tuple) of
1222
+ (connection, read) timeouts.
1223
+ :type _request_timeout: int, tuple(int, int), optional
1224
+ :param _request_auth: set to override the auth_settings for an a single
1225
+ request; this effectively ignores the
1226
+ authentication in the spec for a single request.
1227
+ :type _request_auth: dict, optional
1228
+ :param _content_type: force content-type for the request.
1229
+ :type _content_type: str, Optional
1230
+ :param _headers: set to override the headers for a single
1231
+ request; this effectively ignores the headers
1232
+ in the spec for a single request.
1233
+ :type _headers: dict, optional
1234
+ :param _host_index: set to override the host_index for a single
1235
+ request; this effectively ignores the host_index
1236
+ in the spec for a single request.
1237
+ :type _host_index: int, optional
1238
+ :return: Returns the result object.
1239
+ """ # noqa: E501
1240
+
1241
+ _param = self._set_label_serialize(
1242
+ open_p_g_p_user_i_d_href=open_p_g_p_user_i_d_href,
1243
+ set_label=set_label,
1244
+ x_task_diagnostics=x_task_diagnostics,
1245
+ _request_auth=_request_auth,
1246
+ _content_type=_content_type,
1247
+ _headers=_headers,
1248
+ _host_index=_host_index
1249
+ )
1250
+
1251
+ _response_types_map: Dict[str, Optional[str]] = {
1252
+ '200': "SetLabelResponse",
1253
+ }
1254
+ response_data = self.api_client.call_api(
1255
+ *_param,
1256
+ _request_timeout=_request_timeout
1257
+ )
1258
+ return response_data.response
1259
+
1260
+
1261
+ def _set_label_serialize(
1262
+ self,
1263
+ open_p_g_p_user_i_d_href,
1264
+ set_label,
1265
+ x_task_diagnostics,
1266
+ _request_auth,
1267
+ _content_type,
1268
+ _headers,
1269
+ _host_index,
1270
+ ) -> RequestSerialized:
1271
+
1272
+ _host = None
1273
+
1274
+ _collection_formats: Dict[str, str] = {
1275
+ 'X-Task-Diagnostics': 'csv',
1276
+ }
1277
+
1278
+ _path_params: Dict[str, str] = {}
1279
+ _query_params: List[Tuple[str, str]] = []
1280
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1281
+ _form_params: List[Tuple[str, str]] = []
1282
+ _files: Dict[
1283
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1284
+ ] = {}
1285
+ _body_params: Optional[bytes] = None
1286
+
1287
+ # process the path parameters
1288
+ if open_p_g_p_user_i_d_href is not None:
1289
+ _path_params['open_p_g_p_user_i_d_href'] = open_p_g_p_user_i_d_href
1290
+ # process the query parameters
1291
+ # process the header parameters
1292
+ if x_task_diagnostics is not None:
1293
+ _header_params['X-Task-Diagnostics'] = x_task_diagnostics
1294
+ # process the form parameters
1295
+ # process the body parameter
1296
+ if set_label is not None:
1297
+ _body_params = set_label
1298
+
1299
+
1300
+ # set the HTTP header `Accept`
1301
+ if 'Accept' not in _header_params:
1302
+ _header_params['Accept'] = self.api_client.select_header_accept(
1303
+ [
1304
+ 'application/json'
1305
+ ]
1306
+ )
1307
+
1308
+ # set the HTTP header `Content-Type`
1309
+ if _content_type:
1310
+ _header_params['Content-Type'] = _content_type
1311
+ else:
1312
+ _default_content_type = (
1313
+ self.api_client.select_header_content_type(
1314
+ [
1315
+ 'application/json',
1316
+ 'application/x-www-form-urlencoded',
1317
+ 'multipart/form-data'
1318
+ ]
1319
+ )
1320
+ )
1321
+ if _default_content_type is not None:
1322
+ _header_params['Content-Type'] = _default_content_type
1323
+
1324
+ # authentication setting
1325
+ _auth_settings: List[str] = [
1326
+ 'json_header_remote_authentication',
1327
+ 'basicAuth',
1328
+ 'cookieAuth'
1329
+ ]
1330
+
1331
+ return self.api_client.param_serialize(
1332
+ method='POST',
1333
+ resource_path='{open_p_g_p_user_i_d_href}set_label/',
1334
+ path_params=_path_params,
1335
+ query_params=_query_params,
1336
+ header_params=_header_params,
1337
+ body=_body_params,
1338
+ post_params=_form_params,
1339
+ files=_files,
1340
+ auth_settings=_auth_settings,
1341
+ collection_formats=_collection_formats,
1342
+ _host=_host,
1343
+ _request_auth=_request_auth
1344
+ )
1345
+
1346
+
1347
+
1348
+
1349
+ @validate_call
1350
+ def unset_label(
1351
+ self,
1352
+ open_p_g_p_user_i_d_href: StrictStr,
1353
+ unset_label: UnsetLabel,
1354
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
1355
+ _request_timeout: Union[
1356
+ None,
1357
+ Annotated[StrictFloat, Field(gt=0)],
1358
+ Tuple[
1359
+ Annotated[StrictFloat, Field(gt=0)],
1360
+ Annotated[StrictFloat, Field(gt=0)]
1361
+ ]
1362
+ ] = None,
1363
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1364
+ _content_type: Optional[StrictStr] = None,
1365
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1366
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1367
+ ) -> UnsetLabelResponse:
1368
+ """Unset a label
1369
+
1370
+ Unset a single pulp_label on the object.
1371
+
1372
+ :param open_p_g_p_user_i_d_href: (required)
1373
+ :type open_p_g_p_user_i_d_href: str
1374
+ :param unset_label: (required)
1375
+ :type unset_label: UnsetLabel
1376
+ :param x_task_diagnostics: List of profilers to use on tasks.
1377
+ :type x_task_diagnostics: List[str]
1378
+ :param _request_timeout: timeout setting for this request. If one
1379
+ number provided, it will be total request
1380
+ timeout. It can also be a pair (tuple) of
1381
+ (connection, read) timeouts.
1382
+ :type _request_timeout: int, tuple(int, int), optional
1383
+ :param _request_auth: set to override the auth_settings for an a single
1384
+ request; this effectively ignores the
1385
+ authentication in the spec for a single request.
1386
+ :type _request_auth: dict, optional
1387
+ :param _content_type: force content-type for the request.
1388
+ :type _content_type: str, Optional
1389
+ :param _headers: set to override the headers for a single
1390
+ request; this effectively ignores the headers
1391
+ in the spec for a single request.
1392
+ :type _headers: dict, optional
1393
+ :param _host_index: set to override the host_index for a single
1394
+ request; this effectively ignores the host_index
1395
+ in the spec for a single request.
1396
+ :type _host_index: int, optional
1397
+ :return: Returns the result object.
1398
+ """ # noqa: E501
1399
+
1400
+ _param = self._unset_label_serialize(
1401
+ open_p_g_p_user_i_d_href=open_p_g_p_user_i_d_href,
1402
+ unset_label=unset_label,
1403
+ x_task_diagnostics=x_task_diagnostics,
1404
+ _request_auth=_request_auth,
1405
+ _content_type=_content_type,
1406
+ _headers=_headers,
1407
+ _host_index=_host_index
1408
+ )
1409
+
1410
+ _response_types_map: Dict[str, Optional[str]] = {
1411
+ '200': "UnsetLabelResponse",
1412
+ }
1413
+ response_data = self.api_client.call_api(
1414
+ *_param,
1415
+ _request_timeout=_request_timeout
1416
+ )
1417
+ response_data.read()
1418
+ return self.api_client.response_deserialize(
1419
+ response_data=response_data,
1420
+ response_types_map=_response_types_map,
1421
+ ).data
1422
+
1423
+
1424
+ @validate_call
1425
+ def unset_label_with_http_info(
1426
+ self,
1427
+ open_p_g_p_user_i_d_href: StrictStr,
1428
+ unset_label: UnsetLabel,
1429
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
1430
+ _request_timeout: Union[
1431
+ None,
1432
+ Annotated[StrictFloat, Field(gt=0)],
1433
+ Tuple[
1434
+ Annotated[StrictFloat, Field(gt=0)],
1435
+ Annotated[StrictFloat, Field(gt=0)]
1436
+ ]
1437
+ ] = None,
1438
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1439
+ _content_type: Optional[StrictStr] = None,
1440
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1441
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1442
+ ) -> ApiResponse[UnsetLabelResponse]:
1443
+ """Unset a label
1444
+
1445
+ Unset a single pulp_label on the object.
1446
+
1447
+ :param open_p_g_p_user_i_d_href: (required)
1448
+ :type open_p_g_p_user_i_d_href: str
1449
+ :param unset_label: (required)
1450
+ :type unset_label: UnsetLabel
1451
+ :param x_task_diagnostics: List of profilers to use on tasks.
1452
+ :type x_task_diagnostics: List[str]
1453
+ :param _request_timeout: timeout setting for this request. If one
1454
+ number provided, it will be total request
1455
+ timeout. It can also be a pair (tuple) of
1456
+ (connection, read) timeouts.
1457
+ :type _request_timeout: int, tuple(int, int), optional
1458
+ :param _request_auth: set to override the auth_settings for an a single
1459
+ request; this effectively ignores the
1460
+ authentication in the spec for a single request.
1461
+ :type _request_auth: dict, optional
1462
+ :param _content_type: force content-type for the request.
1463
+ :type _content_type: str, Optional
1464
+ :param _headers: set to override the headers for a single
1465
+ request; this effectively ignores the headers
1466
+ in the spec for a single request.
1467
+ :type _headers: dict, optional
1468
+ :param _host_index: set to override the host_index for a single
1469
+ request; this effectively ignores the host_index
1470
+ in the spec for a single request.
1471
+ :type _host_index: int, optional
1472
+ :return: Returns the result object.
1473
+ """ # noqa: E501
1474
+
1475
+ _param = self._unset_label_serialize(
1476
+ open_p_g_p_user_i_d_href=open_p_g_p_user_i_d_href,
1477
+ unset_label=unset_label,
1478
+ x_task_diagnostics=x_task_diagnostics,
1479
+ _request_auth=_request_auth,
1480
+ _content_type=_content_type,
1481
+ _headers=_headers,
1482
+ _host_index=_host_index
1483
+ )
1484
+
1485
+ _response_types_map: Dict[str, Optional[str]] = {
1486
+ '200': "UnsetLabelResponse",
1487
+ }
1488
+ response_data = self.api_client.call_api(
1489
+ *_param,
1490
+ _request_timeout=_request_timeout
1491
+ )
1492
+ response_data.read()
1493
+ return self.api_client.response_deserialize(
1494
+ response_data=response_data,
1495
+ response_types_map=_response_types_map,
1496
+ )
1497
+
1498
+
1499
+ @validate_call
1500
+ def unset_label_without_preload_content(
1501
+ self,
1502
+ open_p_g_p_user_i_d_href: StrictStr,
1503
+ unset_label: UnsetLabel,
1504
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
1505
+ _request_timeout: Union[
1506
+ None,
1507
+ Annotated[StrictFloat, Field(gt=0)],
1508
+ Tuple[
1509
+ Annotated[StrictFloat, Field(gt=0)],
1510
+ Annotated[StrictFloat, Field(gt=0)]
1511
+ ]
1512
+ ] = None,
1513
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1514
+ _content_type: Optional[StrictStr] = None,
1515
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1516
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1517
+ ) -> RESTResponseType:
1518
+ """Unset a label
1519
+
1520
+ Unset a single pulp_label on the object.
1521
+
1522
+ :param open_p_g_p_user_i_d_href: (required)
1523
+ :type open_p_g_p_user_i_d_href: str
1524
+ :param unset_label: (required)
1525
+ :type unset_label: UnsetLabel
1526
+ :param x_task_diagnostics: List of profilers to use on tasks.
1527
+ :type x_task_diagnostics: List[str]
1528
+ :param _request_timeout: timeout setting for this request. If one
1529
+ number provided, it will be total request
1530
+ timeout. It can also be a pair (tuple) of
1531
+ (connection, read) timeouts.
1532
+ :type _request_timeout: int, tuple(int, int), optional
1533
+ :param _request_auth: set to override the auth_settings for an a single
1534
+ request; this effectively ignores the
1535
+ authentication in the spec for a single request.
1536
+ :type _request_auth: dict, optional
1537
+ :param _content_type: force content-type for the request.
1538
+ :type _content_type: str, Optional
1539
+ :param _headers: set to override the headers for a single
1540
+ request; this effectively ignores the headers
1541
+ in the spec for a single request.
1542
+ :type _headers: dict, optional
1543
+ :param _host_index: set to override the host_index for a single
1544
+ request; this effectively ignores the host_index
1545
+ in the spec for a single request.
1546
+ :type _host_index: int, optional
1547
+ :return: Returns the result object.
1548
+ """ # noqa: E501
1549
+
1550
+ _param = self._unset_label_serialize(
1551
+ open_p_g_p_user_i_d_href=open_p_g_p_user_i_d_href,
1552
+ unset_label=unset_label,
1553
+ x_task_diagnostics=x_task_diagnostics,
1554
+ _request_auth=_request_auth,
1555
+ _content_type=_content_type,
1556
+ _headers=_headers,
1557
+ _host_index=_host_index
1558
+ )
1559
+
1560
+ _response_types_map: Dict[str, Optional[str]] = {
1561
+ '200': "UnsetLabelResponse",
1562
+ }
1563
+ response_data = self.api_client.call_api(
1564
+ *_param,
1565
+ _request_timeout=_request_timeout
1566
+ )
1567
+ return response_data.response
1568
+
1569
+
1570
+ def _unset_label_serialize(
1571
+ self,
1572
+ open_p_g_p_user_i_d_href,
1573
+ unset_label,
1574
+ x_task_diagnostics,
1575
+ _request_auth,
1576
+ _content_type,
1577
+ _headers,
1578
+ _host_index,
1579
+ ) -> RequestSerialized:
1580
+
1581
+ _host = None
1582
+
1583
+ _collection_formats: Dict[str, str] = {
1584
+ 'X-Task-Diagnostics': 'csv',
1585
+ }
1586
+
1587
+ _path_params: Dict[str, str] = {}
1588
+ _query_params: List[Tuple[str, str]] = []
1589
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1590
+ _form_params: List[Tuple[str, str]] = []
1591
+ _files: Dict[
1592
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1593
+ ] = {}
1594
+ _body_params: Optional[bytes] = None
1595
+
1596
+ # process the path parameters
1597
+ if open_p_g_p_user_i_d_href is not None:
1598
+ _path_params['open_p_g_p_user_i_d_href'] = open_p_g_p_user_i_d_href
1599
+ # process the query parameters
1600
+ # process the header parameters
1601
+ if x_task_diagnostics is not None:
1602
+ _header_params['X-Task-Diagnostics'] = x_task_diagnostics
1603
+ # process the form parameters
1604
+ # process the body parameter
1605
+ if unset_label is not None:
1606
+ _body_params = unset_label
1607
+
1608
+
1609
+ # set the HTTP header `Accept`
1610
+ if 'Accept' not in _header_params:
1611
+ _header_params['Accept'] = self.api_client.select_header_accept(
1612
+ [
1613
+ 'application/json'
1614
+ ]
1615
+ )
1616
+
1617
+ # set the HTTP header `Content-Type`
1618
+ if _content_type:
1619
+ _header_params['Content-Type'] = _content_type
1620
+ else:
1621
+ _default_content_type = (
1622
+ self.api_client.select_header_content_type(
1623
+ [
1624
+ 'application/json',
1625
+ 'application/x-www-form-urlencoded',
1626
+ 'multipart/form-data'
1627
+ ]
1628
+ )
1629
+ )
1630
+ if _default_content_type is not None:
1631
+ _header_params['Content-Type'] = _default_content_type
1632
+
1633
+ # authentication setting
1634
+ _auth_settings: List[str] = [
1635
+ 'json_header_remote_authentication',
1636
+ 'basicAuth',
1637
+ 'cookieAuth'
1638
+ ]
1639
+
1640
+ return self.api_client.param_serialize(
1641
+ method='POST',
1642
+ resource_path='{open_p_g_p_user_i_d_href}unset_label/',
1643
+ path_params=_path_params,
1644
+ query_params=_query_params,
1645
+ header_params=_header_params,
1646
+ body=_body_params,
1647
+ post_params=_form_params,
1648
+ files=_files,
1649
+ auth_settings=_auth_settings,
1650
+ collection_formats=_collection_formats,
1651
+ _host=_host,
1652
+ _request_auth=_request_auth
1653
+ )
1654
+
1655
+