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