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