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,3368 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Pulp 3 API
5
+
6
+ Fetch, Upload, Organize, and Distribute Software Packages
7
+
8
+ The version of the OpenAPI document: v3
9
+ Contact: pulp-list@redhat.com
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
+
12
+ Do not edit the class manually.
13
+ """ # noqa: E501
14
+
15
+ import warnings
16
+ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
17
+ from typing import Any, Dict, List, Optional, Tuple, Union
18
+ from typing_extensions import Annotated
19
+
20
+ from pydantic import Field, StrictInt, StrictStr, field_validator
21
+ from typing import List, Optional
22
+ from typing_extensions import Annotated
23
+ from crc-pulpcore-client.models.group import Group
24
+ from crc-pulpcore-client.models.group_response import GroupResponse
25
+ from crc-pulpcore-client.models.my_permissions_response import MyPermissionsResponse
26
+ from crc-pulpcore-client.models.nested_role import NestedRole
27
+ from crc-pulpcore-client.models.nested_role_response import NestedRoleResponse
28
+ from crc-pulpcore-client.models.object_roles_response import ObjectRolesResponse
29
+ from crc-pulpcore-client.models.paginated_group_response_list import PaginatedGroupResponseList
30
+ from crc-pulpcore-client.models.patched_group import PatchedGroup
31
+
32
+ from crc-pulpcore-client.api_client import ApiClient, RequestSerialized
33
+ from crc-pulpcore-client.api_response import ApiResponse
34
+ from crc-pulpcore-client.rest import RESTResponseType
35
+
36
+
37
+ class GroupsApi:
38
+ """NOTE: This class is auto generated by OpenAPI Generator
39
+ Ref: https://openapi-generator.tech
40
+
41
+ Do not edit the class manually.
42
+ """
43
+
44
+ def __init__(self, api_client=None) -> None:
45
+ if api_client is None:
46
+ api_client = ApiClient.get_default()
47
+ self.api_client = api_client
48
+
49
+
50
+ @validate_call
51
+ def add_role(
52
+ self,
53
+ group_href: StrictStr,
54
+ nested_role: NestedRole,
55
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
56
+ _request_timeout: Union[
57
+ None,
58
+ Annotated[StrictFloat, Field(gt=0)],
59
+ Tuple[
60
+ Annotated[StrictFloat, Field(gt=0)],
61
+ Annotated[StrictFloat, Field(gt=0)]
62
+ ]
63
+ ] = None,
64
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
65
+ _content_type: Optional[StrictStr] = None,
66
+ _headers: Optional[Dict[StrictStr, Any]] = None,
67
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
68
+ ) -> NestedRoleResponse:
69
+ """Add a role
70
+
71
+ Add a role for this object to users/groups.
72
+
73
+ :param group_href: (required)
74
+ :type group_href: str
75
+ :param nested_role: (required)
76
+ :type nested_role: NestedRole
77
+ :param x_task_diagnostics: List of profilers to use on tasks.
78
+ :type x_task_diagnostics: List[str]
79
+ :param _request_timeout: timeout setting for this request. If one
80
+ number provided, it will be total request
81
+ timeout. It can also be a pair (tuple) of
82
+ (connection, read) timeouts.
83
+ :type _request_timeout: int, tuple(int, int), optional
84
+ :param _request_auth: set to override the auth_settings for an a single
85
+ request; this effectively ignores the
86
+ authentication in the spec for a single request.
87
+ :type _request_auth: dict, optional
88
+ :param _content_type: force content-type for the request.
89
+ :type _content_type: str, Optional
90
+ :param _headers: set to override the headers for a single
91
+ request; this effectively ignores the headers
92
+ in the spec for a single request.
93
+ :type _headers: dict, optional
94
+ :param _host_index: set to override the host_index for a single
95
+ request; this effectively ignores the host_index
96
+ in the spec for a single request.
97
+ :type _host_index: int, optional
98
+ :return: Returns the result object.
99
+ """ # noqa: E501
100
+
101
+ _param = self._add_role_serialize(
102
+ group_href=group_href,
103
+ nested_role=nested_role,
104
+ x_task_diagnostics=x_task_diagnostics,
105
+ _request_auth=_request_auth,
106
+ _content_type=_content_type,
107
+ _headers=_headers,
108
+ _host_index=_host_index
109
+ )
110
+
111
+ _response_types_map: Dict[str, Optional[str]] = {
112
+ '201': "NestedRoleResponse",
113
+ }
114
+ response_data = self.api_client.call_api(
115
+ *_param,
116
+ _request_timeout=_request_timeout
117
+ )
118
+ response_data.read()
119
+ return self.api_client.response_deserialize(
120
+ response_data=response_data,
121
+ response_types_map=_response_types_map,
122
+ ).data
123
+
124
+
125
+ @validate_call
126
+ def add_role_with_http_info(
127
+ self,
128
+ group_href: StrictStr,
129
+ nested_role: NestedRole,
130
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
131
+ _request_timeout: Union[
132
+ None,
133
+ Annotated[StrictFloat, Field(gt=0)],
134
+ Tuple[
135
+ Annotated[StrictFloat, Field(gt=0)],
136
+ Annotated[StrictFloat, Field(gt=0)]
137
+ ]
138
+ ] = None,
139
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
140
+ _content_type: Optional[StrictStr] = None,
141
+ _headers: Optional[Dict[StrictStr, Any]] = None,
142
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
143
+ ) -> ApiResponse[NestedRoleResponse]:
144
+ """Add a role
145
+
146
+ Add a role for this object to users/groups.
147
+
148
+ :param group_href: (required)
149
+ :type group_href: str
150
+ :param nested_role: (required)
151
+ :type nested_role: NestedRole
152
+ :param x_task_diagnostics: List of profilers to use on tasks.
153
+ :type x_task_diagnostics: List[str]
154
+ :param _request_timeout: timeout setting for this request. If one
155
+ number provided, it will be total request
156
+ timeout. It can also be a pair (tuple) of
157
+ (connection, read) timeouts.
158
+ :type _request_timeout: int, tuple(int, int), optional
159
+ :param _request_auth: set to override the auth_settings for an a single
160
+ request; this effectively ignores the
161
+ authentication in the spec for a single request.
162
+ :type _request_auth: dict, optional
163
+ :param _content_type: force content-type for the request.
164
+ :type _content_type: str, Optional
165
+ :param _headers: set to override the headers for a single
166
+ request; this effectively ignores the headers
167
+ in the spec for a single request.
168
+ :type _headers: dict, optional
169
+ :param _host_index: set to override the host_index for a single
170
+ request; this effectively ignores the host_index
171
+ in the spec for a single request.
172
+ :type _host_index: int, optional
173
+ :return: Returns the result object.
174
+ """ # noqa: E501
175
+
176
+ _param = self._add_role_serialize(
177
+ group_href=group_href,
178
+ nested_role=nested_role,
179
+ x_task_diagnostics=x_task_diagnostics,
180
+ _request_auth=_request_auth,
181
+ _content_type=_content_type,
182
+ _headers=_headers,
183
+ _host_index=_host_index
184
+ )
185
+
186
+ _response_types_map: Dict[str, Optional[str]] = {
187
+ '201': "NestedRoleResponse",
188
+ }
189
+ response_data = self.api_client.call_api(
190
+ *_param,
191
+ _request_timeout=_request_timeout
192
+ )
193
+ response_data.read()
194
+ return self.api_client.response_deserialize(
195
+ response_data=response_data,
196
+ response_types_map=_response_types_map,
197
+ )
198
+
199
+
200
+ @validate_call
201
+ def add_role_without_preload_content(
202
+ self,
203
+ group_href: StrictStr,
204
+ nested_role: NestedRole,
205
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
206
+ _request_timeout: Union[
207
+ None,
208
+ Annotated[StrictFloat, Field(gt=0)],
209
+ Tuple[
210
+ Annotated[StrictFloat, Field(gt=0)],
211
+ Annotated[StrictFloat, Field(gt=0)]
212
+ ]
213
+ ] = None,
214
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
215
+ _content_type: Optional[StrictStr] = None,
216
+ _headers: Optional[Dict[StrictStr, Any]] = None,
217
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
218
+ ) -> RESTResponseType:
219
+ """Add a role
220
+
221
+ Add a role for this object to users/groups.
222
+
223
+ :param group_href: (required)
224
+ :type group_href: str
225
+ :param nested_role: (required)
226
+ :type nested_role: NestedRole
227
+ :param x_task_diagnostics: List of profilers to use on tasks.
228
+ :type x_task_diagnostics: List[str]
229
+ :param _request_timeout: timeout setting for this request. If one
230
+ number provided, it will be total request
231
+ timeout. It can also be a pair (tuple) of
232
+ (connection, read) timeouts.
233
+ :type _request_timeout: int, tuple(int, int), optional
234
+ :param _request_auth: set to override the auth_settings for an a single
235
+ request; this effectively ignores the
236
+ authentication in the spec for a single request.
237
+ :type _request_auth: dict, optional
238
+ :param _content_type: force content-type for the request.
239
+ :type _content_type: str, Optional
240
+ :param _headers: set to override the headers for a single
241
+ request; this effectively ignores the headers
242
+ in the spec for a single request.
243
+ :type _headers: dict, optional
244
+ :param _host_index: set to override the host_index for a single
245
+ request; this effectively ignores the host_index
246
+ in the spec for a single request.
247
+ :type _host_index: int, optional
248
+ :return: Returns the result object.
249
+ """ # noqa: E501
250
+
251
+ _param = self._add_role_serialize(
252
+ group_href=group_href,
253
+ nested_role=nested_role,
254
+ x_task_diagnostics=x_task_diagnostics,
255
+ _request_auth=_request_auth,
256
+ _content_type=_content_type,
257
+ _headers=_headers,
258
+ _host_index=_host_index
259
+ )
260
+
261
+ _response_types_map: Dict[str, Optional[str]] = {
262
+ '201': "NestedRoleResponse",
263
+ }
264
+ response_data = self.api_client.call_api(
265
+ *_param,
266
+ _request_timeout=_request_timeout
267
+ )
268
+ return response_data.response
269
+
270
+
271
+ def _add_role_serialize(
272
+ self,
273
+ group_href,
274
+ nested_role,
275
+ x_task_diagnostics,
276
+ _request_auth,
277
+ _content_type,
278
+ _headers,
279
+ _host_index,
280
+ ) -> RequestSerialized:
281
+
282
+ _host = None
283
+
284
+ _collection_formats: Dict[str, str] = {
285
+ 'X-Task-Diagnostics': 'csv',
286
+ }
287
+
288
+ _path_params: Dict[str, str] = {}
289
+ _query_params: List[Tuple[str, str]] = []
290
+ _header_params: Dict[str, Optional[str]] = _headers or {}
291
+ _form_params: List[Tuple[str, str]] = []
292
+ _files: Dict[
293
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
294
+ ] = {}
295
+ _body_params: Optional[bytes] = None
296
+
297
+ # process the path parameters
298
+ if group_href is not None:
299
+ _path_params['group_href'] = group_href
300
+ # process the query parameters
301
+ # process the header parameters
302
+ if x_task_diagnostics is not None:
303
+ _header_params['X-Task-Diagnostics'] = x_task_diagnostics
304
+ # process the form parameters
305
+ # process the body parameter
306
+ if nested_role is not None:
307
+ _body_params = nested_role
308
+
309
+
310
+ # set the HTTP header `Accept`
311
+ if 'Accept' not in _header_params:
312
+ _header_params['Accept'] = self.api_client.select_header_accept(
313
+ [
314
+ 'application/json'
315
+ ]
316
+ )
317
+
318
+ # set the HTTP header `Content-Type`
319
+ if _content_type:
320
+ _header_params['Content-Type'] = _content_type
321
+ else:
322
+ _default_content_type = (
323
+ self.api_client.select_header_content_type(
324
+ [
325
+ 'application/json',
326
+ 'application/x-www-form-urlencoded',
327
+ 'multipart/form-data'
328
+ ]
329
+ )
330
+ )
331
+ if _default_content_type is not None:
332
+ _header_params['Content-Type'] = _default_content_type
333
+
334
+ # authentication setting
335
+ _auth_settings: List[str] = [
336
+ 'json_header_remote_authentication',
337
+ 'basicAuth',
338
+ 'cookieAuth'
339
+ ]
340
+
341
+ return self.api_client.param_serialize(
342
+ method='POST',
343
+ resource_path='{group_href}add_role/',
344
+ path_params=_path_params,
345
+ query_params=_query_params,
346
+ header_params=_header_params,
347
+ body=_body_params,
348
+ post_params=_form_params,
349
+ files=_files,
350
+ auth_settings=_auth_settings,
351
+ collection_formats=_collection_formats,
352
+ _host=_host,
353
+ _request_auth=_request_auth
354
+ )
355
+
356
+
357
+
358
+
359
+ @validate_call
360
+ def create(
361
+ self,
362
+ group: Group,
363
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
364
+ pulp_domain: StrictStr = "default",
365
+ _request_timeout: Union[
366
+ None,
367
+ Annotated[StrictFloat, Field(gt=0)],
368
+ Tuple[
369
+ Annotated[StrictFloat, Field(gt=0)],
370
+ Annotated[StrictFloat, Field(gt=0)]
371
+ ]
372
+ ] = None,
373
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
374
+ _content_type: Optional[StrictStr] = None,
375
+ _headers: Optional[Dict[StrictStr, Any]] = None,
376
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
377
+ ) -> GroupResponse:
378
+ """Create a group
379
+
380
+ ViewSet for Group.
381
+
382
+ :param pulp_domain: (required)
383
+ :type pulp_domain: str
384
+ :param group: (required)
385
+ :type group: Group
386
+ :param x_task_diagnostics: List of profilers to use on tasks.
387
+ :type x_task_diagnostics: List[str]
388
+ :param _request_timeout: timeout setting for this request. If one
389
+ number provided, it will be total request
390
+ timeout. It can also be a pair (tuple) of
391
+ (connection, read) timeouts.
392
+ :type _request_timeout: int, tuple(int, int), optional
393
+ :param _request_auth: set to override the auth_settings for an a single
394
+ request; this effectively ignores the
395
+ authentication in the spec for a single request.
396
+ :type _request_auth: dict, optional
397
+ :param _content_type: force content-type for the request.
398
+ :type _content_type: str, Optional
399
+ :param _headers: set to override the headers for a single
400
+ request; this effectively ignores the headers
401
+ in the spec for a single request.
402
+ :type _headers: dict, optional
403
+ :param _host_index: set to override the host_index for a single
404
+ request; this effectively ignores the host_index
405
+ in the spec for a single request.
406
+ :type _host_index: int, optional
407
+ :return: Returns the result object.
408
+ """ # noqa: E501
409
+
410
+ _param = self._create_serialize(
411
+ pulp_domain=pulp_domain,
412
+ group=group,
413
+ x_task_diagnostics=x_task_diagnostics,
414
+ _request_auth=_request_auth,
415
+ _content_type=_content_type,
416
+ _headers=_headers,
417
+ _host_index=_host_index
418
+ )
419
+
420
+ _response_types_map: Dict[str, Optional[str]] = {
421
+ '201': "GroupResponse",
422
+ }
423
+ response_data = self.api_client.call_api(
424
+ *_param,
425
+ _request_timeout=_request_timeout
426
+ )
427
+ response_data.read()
428
+ return self.api_client.response_deserialize(
429
+ response_data=response_data,
430
+ response_types_map=_response_types_map,
431
+ ).data
432
+
433
+
434
+ @validate_call
435
+ def create_with_http_info(
436
+ self,
437
+ group: Group,
438
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
439
+ pulp_domain: StrictStr = "default",
440
+ _request_timeout: Union[
441
+ None,
442
+ Annotated[StrictFloat, Field(gt=0)],
443
+ Tuple[
444
+ Annotated[StrictFloat, Field(gt=0)],
445
+ Annotated[StrictFloat, Field(gt=0)]
446
+ ]
447
+ ] = None,
448
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
449
+ _content_type: Optional[StrictStr] = None,
450
+ _headers: Optional[Dict[StrictStr, Any]] = None,
451
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
452
+ ) -> ApiResponse[GroupResponse]:
453
+ """Create a group
454
+
455
+ ViewSet for Group.
456
+
457
+ :param pulp_domain: (required)
458
+ :type pulp_domain: str
459
+ :param group: (required)
460
+ :type group: Group
461
+ :param x_task_diagnostics: List of profilers to use on tasks.
462
+ :type x_task_diagnostics: List[str]
463
+ :param _request_timeout: timeout setting for this request. If one
464
+ number provided, it will be total request
465
+ timeout. It can also be a pair (tuple) of
466
+ (connection, read) timeouts.
467
+ :type _request_timeout: int, tuple(int, int), optional
468
+ :param _request_auth: set to override the auth_settings for an a single
469
+ request; this effectively ignores the
470
+ authentication in the spec for a single request.
471
+ :type _request_auth: dict, optional
472
+ :param _content_type: force content-type for the request.
473
+ :type _content_type: str, Optional
474
+ :param _headers: set to override the headers for a single
475
+ request; this effectively ignores the headers
476
+ in the spec for a single request.
477
+ :type _headers: dict, optional
478
+ :param _host_index: set to override the host_index for a single
479
+ request; this effectively ignores the host_index
480
+ in the spec for a single request.
481
+ :type _host_index: int, optional
482
+ :return: Returns the result object.
483
+ """ # noqa: E501
484
+
485
+ _param = self._create_serialize(
486
+ pulp_domain=pulp_domain,
487
+ group=group,
488
+ x_task_diagnostics=x_task_diagnostics,
489
+ _request_auth=_request_auth,
490
+ _content_type=_content_type,
491
+ _headers=_headers,
492
+ _host_index=_host_index
493
+ )
494
+
495
+ _response_types_map: Dict[str, Optional[str]] = {
496
+ '201': "GroupResponse",
497
+ }
498
+ response_data = self.api_client.call_api(
499
+ *_param,
500
+ _request_timeout=_request_timeout
501
+ )
502
+ response_data.read()
503
+ return self.api_client.response_deserialize(
504
+ response_data=response_data,
505
+ response_types_map=_response_types_map,
506
+ )
507
+
508
+
509
+ @validate_call
510
+ def create_without_preload_content(
511
+ self,
512
+ group: Group,
513
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
514
+ pulp_domain: StrictStr = "default",
515
+ _request_timeout: Union[
516
+ None,
517
+ Annotated[StrictFloat, Field(gt=0)],
518
+ Tuple[
519
+ Annotated[StrictFloat, Field(gt=0)],
520
+ Annotated[StrictFloat, Field(gt=0)]
521
+ ]
522
+ ] = None,
523
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
524
+ _content_type: Optional[StrictStr] = None,
525
+ _headers: Optional[Dict[StrictStr, Any]] = None,
526
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
527
+ ) -> RESTResponseType:
528
+ """Create a group
529
+
530
+ ViewSet for Group.
531
+
532
+ :param pulp_domain: (required)
533
+ :type pulp_domain: str
534
+ :param group: (required)
535
+ :type group: Group
536
+ :param x_task_diagnostics: List of profilers to use on tasks.
537
+ :type x_task_diagnostics: List[str]
538
+ :param _request_timeout: timeout setting for this request. If one
539
+ number provided, it will be total request
540
+ timeout. It can also be a pair (tuple) of
541
+ (connection, read) timeouts.
542
+ :type _request_timeout: int, tuple(int, int), optional
543
+ :param _request_auth: set to override the auth_settings for an a single
544
+ request; this effectively ignores the
545
+ authentication in the spec for a single request.
546
+ :type _request_auth: dict, optional
547
+ :param _content_type: force content-type for the request.
548
+ :type _content_type: str, Optional
549
+ :param _headers: set to override the headers for a single
550
+ request; this effectively ignores the headers
551
+ in the spec for a single request.
552
+ :type _headers: dict, optional
553
+ :param _host_index: set to override the host_index for a single
554
+ request; this effectively ignores the host_index
555
+ in the spec for a single request.
556
+ :type _host_index: int, optional
557
+ :return: Returns the result object.
558
+ """ # noqa: E501
559
+
560
+ _param = self._create_serialize(
561
+ pulp_domain=pulp_domain,
562
+ group=group,
563
+ x_task_diagnostics=x_task_diagnostics,
564
+ _request_auth=_request_auth,
565
+ _content_type=_content_type,
566
+ _headers=_headers,
567
+ _host_index=_host_index
568
+ )
569
+
570
+ _response_types_map: Dict[str, Optional[str]] = {
571
+ '201': "GroupResponse",
572
+ }
573
+ response_data = self.api_client.call_api(
574
+ *_param,
575
+ _request_timeout=_request_timeout
576
+ )
577
+ return response_data.response
578
+
579
+
580
+ def _create_serialize(
581
+ self,
582
+ pulp_domain,
583
+ group,
584
+ x_task_diagnostics,
585
+ _request_auth,
586
+ _content_type,
587
+ _headers,
588
+ _host_index,
589
+ ) -> RequestSerialized:
590
+
591
+ _host = None
592
+
593
+ _collection_formats: Dict[str, str] = {
594
+ 'X-Task-Diagnostics': 'csv',
595
+ }
596
+
597
+ _path_params: Dict[str, str] = {}
598
+ _query_params: List[Tuple[str, str]] = []
599
+ _header_params: Dict[str, Optional[str]] = _headers or {}
600
+ _form_params: List[Tuple[str, str]] = []
601
+ _files: Dict[
602
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
603
+ ] = {}
604
+ _body_params: Optional[bytes] = None
605
+
606
+ # process the path parameters
607
+ if pulp_domain is not None:
608
+ _path_params['pulp_domain'] = pulp_domain
609
+ # process the query parameters
610
+ # process the header parameters
611
+ if x_task_diagnostics is not None:
612
+ _header_params['X-Task-Diagnostics'] = x_task_diagnostics
613
+ # process the form parameters
614
+ # process the body parameter
615
+ if group is not None:
616
+ _body_params = group
617
+
618
+
619
+ # set the HTTP header `Accept`
620
+ if 'Accept' not in _header_params:
621
+ _header_params['Accept'] = self.api_client.select_header_accept(
622
+ [
623
+ 'application/json'
624
+ ]
625
+ )
626
+
627
+ # set the HTTP header `Content-Type`
628
+ if _content_type:
629
+ _header_params['Content-Type'] = _content_type
630
+ else:
631
+ _default_content_type = (
632
+ self.api_client.select_header_content_type(
633
+ [
634
+ 'application/json',
635
+ 'application/x-www-form-urlencoded',
636
+ 'multipart/form-data'
637
+ ]
638
+ )
639
+ )
640
+ if _default_content_type is not None:
641
+ _header_params['Content-Type'] = _default_content_type
642
+
643
+ # authentication setting
644
+ _auth_settings: List[str] = [
645
+ 'json_header_remote_authentication',
646
+ 'basicAuth',
647
+ 'cookieAuth'
648
+ ]
649
+
650
+ return self.api_client.param_serialize(
651
+ method='POST',
652
+ resource_path='/api/pulp/{pulp_domain}/api/v3/groups/',
653
+ path_params=_path_params,
654
+ query_params=_query_params,
655
+ header_params=_header_params,
656
+ body=_body_params,
657
+ post_params=_form_params,
658
+ files=_files,
659
+ auth_settings=_auth_settings,
660
+ collection_formats=_collection_formats,
661
+ _host=_host,
662
+ _request_auth=_request_auth
663
+ )
664
+
665
+
666
+
667
+
668
+ @validate_call
669
+ def delete(
670
+ self,
671
+ group_href: StrictStr,
672
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
673
+ _request_timeout: Union[
674
+ None,
675
+ Annotated[StrictFloat, Field(gt=0)],
676
+ Tuple[
677
+ Annotated[StrictFloat, Field(gt=0)],
678
+ Annotated[StrictFloat, Field(gt=0)]
679
+ ]
680
+ ] = None,
681
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
682
+ _content_type: Optional[StrictStr] = None,
683
+ _headers: Optional[Dict[StrictStr, Any]] = None,
684
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
685
+ ) -> None:
686
+ """Delete a group
687
+
688
+ ViewSet for Group.
689
+
690
+ :param group_href: (required)
691
+ :type group_href: str
692
+ :param x_task_diagnostics: List of profilers to use on tasks.
693
+ :type x_task_diagnostics: List[str]
694
+ :param _request_timeout: timeout setting for this request. If one
695
+ number provided, it will be total request
696
+ timeout. It can also be a pair (tuple) of
697
+ (connection, read) timeouts.
698
+ :type _request_timeout: int, tuple(int, int), optional
699
+ :param _request_auth: set to override the auth_settings for an a single
700
+ request; this effectively ignores the
701
+ authentication in the spec for a single request.
702
+ :type _request_auth: dict, optional
703
+ :param _content_type: force content-type for the request.
704
+ :type _content_type: str, Optional
705
+ :param _headers: set to override the headers for a single
706
+ request; this effectively ignores the headers
707
+ in the spec for a single request.
708
+ :type _headers: dict, optional
709
+ :param _host_index: set to override the host_index for a single
710
+ request; this effectively ignores the host_index
711
+ in the spec for a single request.
712
+ :type _host_index: int, optional
713
+ :return: Returns the result object.
714
+ """ # noqa: E501
715
+
716
+ _param = self._delete_serialize(
717
+ group_href=group_href,
718
+ x_task_diagnostics=x_task_diagnostics,
719
+ _request_auth=_request_auth,
720
+ _content_type=_content_type,
721
+ _headers=_headers,
722
+ _host_index=_host_index
723
+ )
724
+
725
+ _response_types_map: Dict[str, Optional[str]] = {
726
+ '204': None,
727
+ }
728
+ response_data = self.api_client.call_api(
729
+ *_param,
730
+ _request_timeout=_request_timeout
731
+ )
732
+ response_data.read()
733
+ return self.api_client.response_deserialize(
734
+ response_data=response_data,
735
+ response_types_map=_response_types_map,
736
+ ).data
737
+
738
+
739
+ @validate_call
740
+ def delete_with_http_info(
741
+ self,
742
+ group_href: StrictStr,
743
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
744
+ _request_timeout: Union[
745
+ None,
746
+ Annotated[StrictFloat, Field(gt=0)],
747
+ Tuple[
748
+ Annotated[StrictFloat, Field(gt=0)],
749
+ Annotated[StrictFloat, Field(gt=0)]
750
+ ]
751
+ ] = None,
752
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
753
+ _content_type: Optional[StrictStr] = None,
754
+ _headers: Optional[Dict[StrictStr, Any]] = None,
755
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
756
+ ) -> ApiResponse[None]:
757
+ """Delete a group
758
+
759
+ ViewSet for Group.
760
+
761
+ :param group_href: (required)
762
+ :type group_href: str
763
+ :param x_task_diagnostics: List of profilers to use on tasks.
764
+ :type x_task_diagnostics: List[str]
765
+ :param _request_timeout: timeout setting for this request. If one
766
+ number provided, it will be total request
767
+ timeout. It can also be a pair (tuple) of
768
+ (connection, read) timeouts.
769
+ :type _request_timeout: int, tuple(int, int), optional
770
+ :param _request_auth: set to override the auth_settings for an a single
771
+ request; this effectively ignores the
772
+ authentication in the spec for a single request.
773
+ :type _request_auth: dict, optional
774
+ :param _content_type: force content-type for the request.
775
+ :type _content_type: str, Optional
776
+ :param _headers: set to override the headers for a single
777
+ request; this effectively ignores the headers
778
+ in the spec for a single request.
779
+ :type _headers: dict, optional
780
+ :param _host_index: set to override the host_index for a single
781
+ request; this effectively ignores the host_index
782
+ in the spec for a single request.
783
+ :type _host_index: int, optional
784
+ :return: Returns the result object.
785
+ """ # noqa: E501
786
+
787
+ _param = self._delete_serialize(
788
+ group_href=group_href,
789
+ x_task_diagnostics=x_task_diagnostics,
790
+ _request_auth=_request_auth,
791
+ _content_type=_content_type,
792
+ _headers=_headers,
793
+ _host_index=_host_index
794
+ )
795
+
796
+ _response_types_map: Dict[str, Optional[str]] = {
797
+ '204': None,
798
+ }
799
+ response_data = self.api_client.call_api(
800
+ *_param,
801
+ _request_timeout=_request_timeout
802
+ )
803
+ response_data.read()
804
+ return self.api_client.response_deserialize(
805
+ response_data=response_data,
806
+ response_types_map=_response_types_map,
807
+ )
808
+
809
+
810
+ @validate_call
811
+ def delete_without_preload_content(
812
+ self,
813
+ group_href: StrictStr,
814
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
815
+ _request_timeout: Union[
816
+ None,
817
+ Annotated[StrictFloat, Field(gt=0)],
818
+ Tuple[
819
+ Annotated[StrictFloat, Field(gt=0)],
820
+ Annotated[StrictFloat, Field(gt=0)]
821
+ ]
822
+ ] = None,
823
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
824
+ _content_type: Optional[StrictStr] = None,
825
+ _headers: Optional[Dict[StrictStr, Any]] = None,
826
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
827
+ ) -> RESTResponseType:
828
+ """Delete a group
829
+
830
+ ViewSet for Group.
831
+
832
+ :param group_href: (required)
833
+ :type group_href: str
834
+ :param x_task_diagnostics: List of profilers to use on tasks.
835
+ :type x_task_diagnostics: List[str]
836
+ :param _request_timeout: timeout setting for this request. If one
837
+ number provided, it will be total request
838
+ timeout. It can also be a pair (tuple) of
839
+ (connection, read) timeouts.
840
+ :type _request_timeout: int, tuple(int, int), optional
841
+ :param _request_auth: set to override the auth_settings for an a single
842
+ request; this effectively ignores the
843
+ authentication in the spec for a single request.
844
+ :type _request_auth: dict, optional
845
+ :param _content_type: force content-type for the request.
846
+ :type _content_type: str, Optional
847
+ :param _headers: set to override the headers for a single
848
+ request; this effectively ignores the headers
849
+ in the spec for a single request.
850
+ :type _headers: dict, optional
851
+ :param _host_index: set to override the host_index for a single
852
+ request; this effectively ignores the host_index
853
+ in the spec for a single request.
854
+ :type _host_index: int, optional
855
+ :return: Returns the result object.
856
+ """ # noqa: E501
857
+
858
+ _param = self._delete_serialize(
859
+ group_href=group_href,
860
+ x_task_diagnostics=x_task_diagnostics,
861
+ _request_auth=_request_auth,
862
+ _content_type=_content_type,
863
+ _headers=_headers,
864
+ _host_index=_host_index
865
+ )
866
+
867
+ _response_types_map: Dict[str, Optional[str]] = {
868
+ '204': None,
869
+ }
870
+ response_data = self.api_client.call_api(
871
+ *_param,
872
+ _request_timeout=_request_timeout
873
+ )
874
+ return response_data.response
875
+
876
+
877
+ def _delete_serialize(
878
+ self,
879
+ group_href,
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 group_href is not None:
904
+ _path_params['group_href'] = group_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
+
912
+
913
+
914
+
915
+ # authentication setting
916
+ _auth_settings: List[str] = [
917
+ 'json_header_remote_authentication',
918
+ 'basicAuth',
919
+ 'cookieAuth'
920
+ ]
921
+
922
+ return self.api_client.param_serialize(
923
+ method='DELETE',
924
+ resource_path='{group_href}',
925
+ path_params=_path_params,
926
+ query_params=_query_params,
927
+ header_params=_header_params,
928
+ body=_body_params,
929
+ post_params=_form_params,
930
+ files=_files,
931
+ auth_settings=_auth_settings,
932
+ collection_formats=_collection_formats,
933
+ _host=_host,
934
+ _request_auth=_request_auth
935
+ )
936
+
937
+
938
+
939
+
940
+ @validate_call
941
+ def list(
942
+ self,
943
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
944
+ id: Annotated[Optional[StrictInt], Field(description="Filter results where id matches value")] = None,
945
+ id__in: Annotated[Optional[List[StrictInt]], Field(description="Filter results where id is in a comma-separated list of values")] = None,
946
+ limit: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None,
947
+ name: Annotated[Optional[StrictStr], Field(description="Filter results where name matches value")] = None,
948
+ name__contains: Annotated[Optional[StrictStr], Field(description="Filter results where name contains value")] = None,
949
+ name__icontains: Annotated[Optional[StrictStr], Field(description="Filter results where name contains value")] = None,
950
+ name__iexact: Annotated[Optional[StrictStr], Field(description="Filter results where name matches value")] = None,
951
+ name__in: Annotated[Optional[List[StrictStr]], Field(description="Filter results where name is in a comma-separated list of values")] = None,
952
+ offset: Annotated[Optional[StrictInt], Field(description="The initial index from which to return the results.")] = None,
953
+ ordering: Annotated[Optional[List[StrictStr]], Field(description="Ordering * `id` - Id * `-id` - Id (descending) * `name` - Name * `-name` - Name (descending) * `pk` - Pk * `-pk` - Pk (descending)")] = None,
954
+ prn__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
955
+ pulp_href__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
956
+ pulp_id__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
957
+ q: Annotated[Optional[StrictStr], Field(description="Filter results by using NOT, AND and OR operations on other filters")] = None,
958
+ fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
959
+ exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
960
+ pulp_domain: StrictStr = "default",
961
+ _request_timeout: Union[
962
+ None,
963
+ Annotated[StrictFloat, Field(gt=0)],
964
+ Tuple[
965
+ Annotated[StrictFloat, Field(gt=0)],
966
+ Annotated[StrictFloat, Field(gt=0)]
967
+ ]
968
+ ] = None,
969
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
970
+ _content_type: Optional[StrictStr] = None,
971
+ _headers: Optional[Dict[StrictStr, Any]] = None,
972
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
973
+ ) -> PaginatedGroupResponseList:
974
+ """List groups
975
+
976
+ ViewSet for Group.
977
+
978
+ :param pulp_domain: (required)
979
+ :type pulp_domain: str
980
+ :param x_task_diagnostics: List of profilers to use on tasks.
981
+ :type x_task_diagnostics: List[str]
982
+ :param id: Filter results where id matches value
983
+ :type id: int
984
+ :param id__in: Filter results where id is in a comma-separated list of values
985
+ :type id__in: List[int]
986
+ :param limit: Number of results to return per page.
987
+ :type limit: int
988
+ :param name: Filter results where name matches value
989
+ :type name: str
990
+ :param name__contains: Filter results where name contains value
991
+ :type name__contains: str
992
+ :param name__icontains: Filter results where name contains value
993
+ :type name__icontains: str
994
+ :param name__iexact: Filter results where name matches value
995
+ :type name__iexact: str
996
+ :param name__in: Filter results where name is in a comma-separated list of values
997
+ :type name__in: List[str]
998
+ :param offset: The initial index from which to return the results.
999
+ :type offset: int
1000
+ :param ordering: Ordering * `id` - Id * `-id` - Id (descending) * `name` - Name * `-name` - Name (descending) * `pk` - Pk * `-pk` - Pk (descending)
1001
+ :type ordering: List[str]
1002
+ :param prn__in: Multiple values may be separated by commas.
1003
+ :type prn__in: List[str]
1004
+ :param pulp_href__in: Multiple values may be separated by commas.
1005
+ :type pulp_href__in: List[str]
1006
+ :param pulp_id__in: Multiple values may be separated by commas.
1007
+ :type pulp_id__in: List[str]
1008
+ :param q: Filter results by using NOT, AND and OR operations on other filters
1009
+ :type q: str
1010
+ :param fields: A list of fields to include in the response.
1011
+ :type fields: List[str]
1012
+ :param exclude_fields: A list of fields to exclude from the response.
1013
+ :type exclude_fields: List[str]
1014
+ :param _request_timeout: timeout setting for this request. If one
1015
+ number provided, it will be total request
1016
+ timeout. It can also be a pair (tuple) of
1017
+ (connection, read) timeouts.
1018
+ :type _request_timeout: int, tuple(int, int), optional
1019
+ :param _request_auth: set to override the auth_settings for an a single
1020
+ request; this effectively ignores the
1021
+ authentication in the spec for a single request.
1022
+ :type _request_auth: dict, optional
1023
+ :param _content_type: force content-type for the request.
1024
+ :type _content_type: str, Optional
1025
+ :param _headers: set to override the headers for a single
1026
+ request; this effectively ignores the headers
1027
+ in the spec for a single request.
1028
+ :type _headers: dict, optional
1029
+ :param _host_index: set to override the host_index for a single
1030
+ request; this effectively ignores the host_index
1031
+ in the spec for a single request.
1032
+ :type _host_index: int, optional
1033
+ :return: Returns the result object.
1034
+ """ # noqa: E501
1035
+
1036
+ _param = self._list_serialize(
1037
+ pulp_domain=pulp_domain,
1038
+ x_task_diagnostics=x_task_diagnostics,
1039
+ id=id,
1040
+ id__in=id__in,
1041
+ limit=limit,
1042
+ name=name,
1043
+ name__contains=name__contains,
1044
+ name__icontains=name__icontains,
1045
+ name__iexact=name__iexact,
1046
+ name__in=name__in,
1047
+ offset=offset,
1048
+ ordering=ordering,
1049
+ prn__in=prn__in,
1050
+ pulp_href__in=pulp_href__in,
1051
+ pulp_id__in=pulp_id__in,
1052
+ q=q,
1053
+ fields=fields,
1054
+ exclude_fields=exclude_fields,
1055
+ _request_auth=_request_auth,
1056
+ _content_type=_content_type,
1057
+ _headers=_headers,
1058
+ _host_index=_host_index
1059
+ )
1060
+
1061
+ _response_types_map: Dict[str, Optional[str]] = {
1062
+ '200': "PaginatedGroupResponseList",
1063
+ }
1064
+ response_data = self.api_client.call_api(
1065
+ *_param,
1066
+ _request_timeout=_request_timeout
1067
+ )
1068
+ response_data.read()
1069
+ return self.api_client.response_deserialize(
1070
+ response_data=response_data,
1071
+ response_types_map=_response_types_map,
1072
+ ).data
1073
+
1074
+
1075
+ @validate_call
1076
+ def list_with_http_info(
1077
+ self,
1078
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
1079
+ id: Annotated[Optional[StrictInt], Field(description="Filter results where id matches value")] = None,
1080
+ id__in: Annotated[Optional[List[StrictInt]], Field(description="Filter results where id is in a comma-separated list of values")] = None,
1081
+ limit: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None,
1082
+ name: Annotated[Optional[StrictStr], Field(description="Filter results where name matches value")] = None,
1083
+ name__contains: Annotated[Optional[StrictStr], Field(description="Filter results where name contains value")] = None,
1084
+ name__icontains: Annotated[Optional[StrictStr], Field(description="Filter results where name contains value")] = None,
1085
+ name__iexact: Annotated[Optional[StrictStr], Field(description="Filter results where name matches value")] = None,
1086
+ name__in: Annotated[Optional[List[StrictStr]], Field(description="Filter results where name is in a comma-separated list of values")] = None,
1087
+ offset: Annotated[Optional[StrictInt], Field(description="The initial index from which to return the results.")] = None,
1088
+ ordering: Annotated[Optional[List[StrictStr]], Field(description="Ordering * `id` - Id * `-id` - Id (descending) * `name` - Name * `-name` - Name (descending) * `pk` - Pk * `-pk` - Pk (descending)")] = None,
1089
+ prn__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
1090
+ pulp_href__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
1091
+ pulp_id__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
1092
+ q: Annotated[Optional[StrictStr], Field(description="Filter results by using NOT, AND and OR operations on other filters")] = None,
1093
+ fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
1094
+ exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
1095
+ pulp_domain: StrictStr = "default",
1096
+ _request_timeout: Union[
1097
+ None,
1098
+ Annotated[StrictFloat, Field(gt=0)],
1099
+ Tuple[
1100
+ Annotated[StrictFloat, Field(gt=0)],
1101
+ Annotated[StrictFloat, Field(gt=0)]
1102
+ ]
1103
+ ] = None,
1104
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1105
+ _content_type: Optional[StrictStr] = None,
1106
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1107
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1108
+ ) -> ApiResponse[PaginatedGroupResponseList]:
1109
+ """List groups
1110
+
1111
+ ViewSet for Group.
1112
+
1113
+ :param pulp_domain: (required)
1114
+ :type pulp_domain: str
1115
+ :param x_task_diagnostics: List of profilers to use on tasks.
1116
+ :type x_task_diagnostics: List[str]
1117
+ :param id: Filter results where id matches value
1118
+ :type id: int
1119
+ :param id__in: Filter results where id is in a comma-separated list of values
1120
+ :type id__in: List[int]
1121
+ :param limit: Number of results to return per page.
1122
+ :type limit: int
1123
+ :param name: Filter results where name matches value
1124
+ :type name: str
1125
+ :param name__contains: Filter results where name contains value
1126
+ :type name__contains: str
1127
+ :param name__icontains: Filter results where name contains value
1128
+ :type name__icontains: str
1129
+ :param name__iexact: Filter results where name matches value
1130
+ :type name__iexact: str
1131
+ :param name__in: Filter results where name is in a comma-separated list of values
1132
+ :type name__in: List[str]
1133
+ :param offset: The initial index from which to return the results.
1134
+ :type offset: int
1135
+ :param ordering: Ordering * `id` - Id * `-id` - Id (descending) * `name` - Name * `-name` - Name (descending) * `pk` - Pk * `-pk` - Pk (descending)
1136
+ :type ordering: List[str]
1137
+ :param prn__in: Multiple values may be separated by commas.
1138
+ :type prn__in: List[str]
1139
+ :param pulp_href__in: Multiple values may be separated by commas.
1140
+ :type pulp_href__in: List[str]
1141
+ :param pulp_id__in: Multiple values may be separated by commas.
1142
+ :type pulp_id__in: List[str]
1143
+ :param q: Filter results by using NOT, AND and OR operations on other filters
1144
+ :type q: str
1145
+ :param fields: A list of fields to include in the response.
1146
+ :type fields: List[str]
1147
+ :param exclude_fields: A list of fields to exclude from the response.
1148
+ :type exclude_fields: List[str]
1149
+ :param _request_timeout: timeout setting for this request. If one
1150
+ number provided, it will be total request
1151
+ timeout. It can also be a pair (tuple) of
1152
+ (connection, read) timeouts.
1153
+ :type _request_timeout: int, tuple(int, int), optional
1154
+ :param _request_auth: set to override the auth_settings for an a single
1155
+ request; this effectively ignores the
1156
+ authentication in the spec for a single request.
1157
+ :type _request_auth: dict, optional
1158
+ :param _content_type: force content-type for the request.
1159
+ :type _content_type: str, Optional
1160
+ :param _headers: set to override the headers for a single
1161
+ request; this effectively ignores the headers
1162
+ in the spec for a single request.
1163
+ :type _headers: dict, optional
1164
+ :param _host_index: set to override the host_index for a single
1165
+ request; this effectively ignores the host_index
1166
+ in the spec for a single request.
1167
+ :type _host_index: int, optional
1168
+ :return: Returns the result object.
1169
+ """ # noqa: E501
1170
+
1171
+ _param = self._list_serialize(
1172
+ pulp_domain=pulp_domain,
1173
+ x_task_diagnostics=x_task_diagnostics,
1174
+ id=id,
1175
+ id__in=id__in,
1176
+ limit=limit,
1177
+ name=name,
1178
+ name__contains=name__contains,
1179
+ name__icontains=name__icontains,
1180
+ name__iexact=name__iexact,
1181
+ name__in=name__in,
1182
+ offset=offset,
1183
+ ordering=ordering,
1184
+ prn__in=prn__in,
1185
+ pulp_href__in=pulp_href__in,
1186
+ pulp_id__in=pulp_id__in,
1187
+ q=q,
1188
+ fields=fields,
1189
+ exclude_fields=exclude_fields,
1190
+ _request_auth=_request_auth,
1191
+ _content_type=_content_type,
1192
+ _headers=_headers,
1193
+ _host_index=_host_index
1194
+ )
1195
+
1196
+ _response_types_map: Dict[str, Optional[str]] = {
1197
+ '200': "PaginatedGroupResponseList",
1198
+ }
1199
+ response_data = self.api_client.call_api(
1200
+ *_param,
1201
+ _request_timeout=_request_timeout
1202
+ )
1203
+ response_data.read()
1204
+ return self.api_client.response_deserialize(
1205
+ response_data=response_data,
1206
+ response_types_map=_response_types_map,
1207
+ )
1208
+
1209
+
1210
+ @validate_call
1211
+ def list_without_preload_content(
1212
+ self,
1213
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
1214
+ id: Annotated[Optional[StrictInt], Field(description="Filter results where id matches value")] = None,
1215
+ id__in: Annotated[Optional[List[StrictInt]], Field(description="Filter results where id is in a comma-separated list of values")] = None,
1216
+ limit: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None,
1217
+ name: Annotated[Optional[StrictStr], Field(description="Filter results where name matches value")] = None,
1218
+ name__contains: Annotated[Optional[StrictStr], Field(description="Filter results where name contains value")] = None,
1219
+ name__icontains: Annotated[Optional[StrictStr], Field(description="Filter results where name contains value")] = None,
1220
+ name__iexact: Annotated[Optional[StrictStr], Field(description="Filter results where name matches value")] = None,
1221
+ name__in: Annotated[Optional[List[StrictStr]], Field(description="Filter results where name is in a comma-separated list of values")] = None,
1222
+ offset: Annotated[Optional[StrictInt], Field(description="The initial index from which to return the results.")] = None,
1223
+ ordering: Annotated[Optional[List[StrictStr]], Field(description="Ordering * `id` - Id * `-id` - Id (descending) * `name` - Name * `-name` - Name (descending) * `pk` - Pk * `-pk` - Pk (descending)")] = None,
1224
+ prn__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
1225
+ pulp_href__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
1226
+ pulp_id__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
1227
+ q: Annotated[Optional[StrictStr], Field(description="Filter results by using NOT, AND and OR operations on other filters")] = None,
1228
+ fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
1229
+ exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
1230
+ pulp_domain: StrictStr = "default",
1231
+ _request_timeout: Union[
1232
+ None,
1233
+ Annotated[StrictFloat, Field(gt=0)],
1234
+ Tuple[
1235
+ Annotated[StrictFloat, Field(gt=0)],
1236
+ Annotated[StrictFloat, Field(gt=0)]
1237
+ ]
1238
+ ] = None,
1239
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1240
+ _content_type: Optional[StrictStr] = None,
1241
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1242
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1243
+ ) -> RESTResponseType:
1244
+ """List groups
1245
+
1246
+ ViewSet for Group.
1247
+
1248
+ :param pulp_domain: (required)
1249
+ :type pulp_domain: str
1250
+ :param x_task_diagnostics: List of profilers to use on tasks.
1251
+ :type x_task_diagnostics: List[str]
1252
+ :param id: Filter results where id matches value
1253
+ :type id: int
1254
+ :param id__in: Filter results where id is in a comma-separated list of values
1255
+ :type id__in: List[int]
1256
+ :param limit: Number of results to return per page.
1257
+ :type limit: int
1258
+ :param name: Filter results where name matches value
1259
+ :type name: str
1260
+ :param name__contains: Filter results where name contains value
1261
+ :type name__contains: str
1262
+ :param name__icontains: Filter results where name contains value
1263
+ :type name__icontains: str
1264
+ :param name__iexact: Filter results where name matches value
1265
+ :type name__iexact: str
1266
+ :param name__in: Filter results where name is in a comma-separated list of values
1267
+ :type name__in: List[str]
1268
+ :param offset: The initial index from which to return the results.
1269
+ :type offset: int
1270
+ :param ordering: Ordering * `id` - Id * `-id` - Id (descending) * `name` - Name * `-name` - Name (descending) * `pk` - Pk * `-pk` - Pk (descending)
1271
+ :type ordering: List[str]
1272
+ :param prn__in: Multiple values may be separated by commas.
1273
+ :type prn__in: List[str]
1274
+ :param pulp_href__in: Multiple values may be separated by commas.
1275
+ :type pulp_href__in: List[str]
1276
+ :param pulp_id__in: Multiple values may be separated by commas.
1277
+ :type pulp_id__in: List[str]
1278
+ :param q: Filter results by using NOT, AND and OR operations on other filters
1279
+ :type q: str
1280
+ :param fields: A list of fields to include in the response.
1281
+ :type fields: List[str]
1282
+ :param exclude_fields: A list of fields to exclude from the response.
1283
+ :type exclude_fields: List[str]
1284
+ :param _request_timeout: timeout setting for this request. If one
1285
+ number provided, it will be total request
1286
+ timeout. It can also be a pair (tuple) of
1287
+ (connection, read) timeouts.
1288
+ :type _request_timeout: int, tuple(int, int), optional
1289
+ :param _request_auth: set to override the auth_settings for an a single
1290
+ request; this effectively ignores the
1291
+ authentication in the spec for a single request.
1292
+ :type _request_auth: dict, optional
1293
+ :param _content_type: force content-type for the request.
1294
+ :type _content_type: str, Optional
1295
+ :param _headers: set to override the headers for a single
1296
+ request; this effectively ignores the headers
1297
+ in the spec for a single request.
1298
+ :type _headers: dict, optional
1299
+ :param _host_index: set to override the host_index for a single
1300
+ request; this effectively ignores the host_index
1301
+ in the spec for a single request.
1302
+ :type _host_index: int, optional
1303
+ :return: Returns the result object.
1304
+ """ # noqa: E501
1305
+
1306
+ _param = self._list_serialize(
1307
+ pulp_domain=pulp_domain,
1308
+ x_task_diagnostics=x_task_diagnostics,
1309
+ id=id,
1310
+ id__in=id__in,
1311
+ limit=limit,
1312
+ name=name,
1313
+ name__contains=name__contains,
1314
+ name__icontains=name__icontains,
1315
+ name__iexact=name__iexact,
1316
+ name__in=name__in,
1317
+ offset=offset,
1318
+ ordering=ordering,
1319
+ prn__in=prn__in,
1320
+ pulp_href__in=pulp_href__in,
1321
+ pulp_id__in=pulp_id__in,
1322
+ q=q,
1323
+ fields=fields,
1324
+ exclude_fields=exclude_fields,
1325
+ _request_auth=_request_auth,
1326
+ _content_type=_content_type,
1327
+ _headers=_headers,
1328
+ _host_index=_host_index
1329
+ )
1330
+
1331
+ _response_types_map: Dict[str, Optional[str]] = {
1332
+ '200': "PaginatedGroupResponseList",
1333
+ }
1334
+ response_data = self.api_client.call_api(
1335
+ *_param,
1336
+ _request_timeout=_request_timeout
1337
+ )
1338
+ return response_data.response
1339
+
1340
+
1341
+ def _list_serialize(
1342
+ self,
1343
+ pulp_domain,
1344
+ x_task_diagnostics,
1345
+ id,
1346
+ id__in,
1347
+ limit,
1348
+ name,
1349
+ name__contains,
1350
+ name__icontains,
1351
+ name__iexact,
1352
+ name__in,
1353
+ offset,
1354
+ ordering,
1355
+ prn__in,
1356
+ pulp_href__in,
1357
+ pulp_id__in,
1358
+ q,
1359
+ fields,
1360
+ exclude_fields,
1361
+ _request_auth,
1362
+ _content_type,
1363
+ _headers,
1364
+ _host_index,
1365
+ ) -> RequestSerialized:
1366
+
1367
+ _host = None
1368
+
1369
+ _collection_formats: Dict[str, str] = {
1370
+ 'X-Task-Diagnostics': 'csv',
1371
+ 'id__in': 'csv',
1372
+ 'name__in': 'csv',
1373
+ 'ordering': 'csv',
1374
+ 'prn__in': 'csv',
1375
+ 'pulp_href__in': 'csv',
1376
+ 'pulp_id__in': 'csv',
1377
+ 'fields': 'multi',
1378
+ 'exclude_fields': 'multi',
1379
+ }
1380
+
1381
+ _path_params: Dict[str, str] = {}
1382
+ _query_params: List[Tuple[str, str]] = []
1383
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1384
+ _form_params: List[Tuple[str, str]] = []
1385
+ _files: Dict[
1386
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1387
+ ] = {}
1388
+ _body_params: Optional[bytes] = None
1389
+
1390
+ # process the path parameters
1391
+ if pulp_domain is not None:
1392
+ _path_params['pulp_domain'] = pulp_domain
1393
+ # process the query parameters
1394
+ if id is not None:
1395
+
1396
+ _query_params.append(('id', id))
1397
+
1398
+ if id__in is not None:
1399
+
1400
+ _query_params.append(('id__in', id__in))
1401
+
1402
+ if limit is not None:
1403
+
1404
+ _query_params.append(('limit', limit))
1405
+
1406
+ if name is not None:
1407
+
1408
+ _query_params.append(('name', name))
1409
+
1410
+ if name__contains is not None:
1411
+
1412
+ _query_params.append(('name__contains', name__contains))
1413
+
1414
+ if name__icontains is not None:
1415
+
1416
+ _query_params.append(('name__icontains', name__icontains))
1417
+
1418
+ if name__iexact is not None:
1419
+
1420
+ _query_params.append(('name__iexact', name__iexact))
1421
+
1422
+ if name__in is not None:
1423
+
1424
+ _query_params.append(('name__in', name__in))
1425
+
1426
+ if offset is not None:
1427
+
1428
+ _query_params.append(('offset', offset))
1429
+
1430
+ if ordering is not None:
1431
+
1432
+ _query_params.append(('ordering', ordering))
1433
+
1434
+ if prn__in is not None:
1435
+
1436
+ _query_params.append(('prn__in', prn__in))
1437
+
1438
+ if pulp_href__in is not None:
1439
+
1440
+ _query_params.append(('pulp_href__in', pulp_href__in))
1441
+
1442
+ if pulp_id__in is not None:
1443
+
1444
+ _query_params.append(('pulp_id__in', pulp_id__in))
1445
+
1446
+ if q is not None:
1447
+
1448
+ _query_params.append(('q', q))
1449
+
1450
+ if fields is not None:
1451
+
1452
+ _query_params.append(('fields', fields))
1453
+
1454
+ if exclude_fields is not None:
1455
+
1456
+ _query_params.append(('exclude_fields', exclude_fields))
1457
+
1458
+ # process the header parameters
1459
+ if x_task_diagnostics is not None:
1460
+ _header_params['X-Task-Diagnostics'] = x_task_diagnostics
1461
+ # process the form parameters
1462
+ # process the body parameter
1463
+
1464
+
1465
+ # set the HTTP header `Accept`
1466
+ if 'Accept' not in _header_params:
1467
+ _header_params['Accept'] = self.api_client.select_header_accept(
1468
+ [
1469
+ 'application/json'
1470
+ ]
1471
+ )
1472
+
1473
+
1474
+ # authentication setting
1475
+ _auth_settings: List[str] = [
1476
+ 'json_header_remote_authentication',
1477
+ 'basicAuth',
1478
+ 'cookieAuth'
1479
+ ]
1480
+
1481
+ return self.api_client.param_serialize(
1482
+ method='GET',
1483
+ resource_path='/api/pulp/{pulp_domain}/api/v3/groups/',
1484
+ path_params=_path_params,
1485
+ query_params=_query_params,
1486
+ header_params=_header_params,
1487
+ body=_body_params,
1488
+ post_params=_form_params,
1489
+ files=_files,
1490
+ auth_settings=_auth_settings,
1491
+ collection_formats=_collection_formats,
1492
+ _host=_host,
1493
+ _request_auth=_request_auth
1494
+ )
1495
+
1496
+
1497
+
1498
+
1499
+ @validate_call
1500
+ def list_roles(
1501
+ self,
1502
+ group_href: StrictStr,
1503
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
1504
+ fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
1505
+ exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
1506
+ _request_timeout: Union[
1507
+ None,
1508
+ Annotated[StrictFloat, Field(gt=0)],
1509
+ Tuple[
1510
+ Annotated[StrictFloat, Field(gt=0)],
1511
+ Annotated[StrictFloat, Field(gt=0)]
1512
+ ]
1513
+ ] = None,
1514
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1515
+ _content_type: Optional[StrictStr] = None,
1516
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1517
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1518
+ ) -> ObjectRolesResponse:
1519
+ """List roles
1520
+
1521
+ List roles assigned to this object.
1522
+
1523
+ :param group_href: (required)
1524
+ :type group_href: str
1525
+ :param x_task_diagnostics: List of profilers to use on tasks.
1526
+ :type x_task_diagnostics: List[str]
1527
+ :param fields: A list of fields to include in the response.
1528
+ :type fields: List[str]
1529
+ :param exclude_fields: A list of fields to exclude from the response.
1530
+ :type exclude_fields: List[str]
1531
+ :param _request_timeout: timeout setting for this request. If one
1532
+ number provided, it will be total request
1533
+ timeout. It can also be a pair (tuple) of
1534
+ (connection, read) timeouts.
1535
+ :type _request_timeout: int, tuple(int, int), optional
1536
+ :param _request_auth: set to override the auth_settings for an a single
1537
+ request; this effectively ignores the
1538
+ authentication in the spec for a single request.
1539
+ :type _request_auth: dict, optional
1540
+ :param _content_type: force content-type for the request.
1541
+ :type _content_type: str, Optional
1542
+ :param _headers: set to override the headers for a single
1543
+ request; this effectively ignores the headers
1544
+ in the spec for a single request.
1545
+ :type _headers: dict, optional
1546
+ :param _host_index: set to override the host_index for a single
1547
+ request; this effectively ignores the host_index
1548
+ in the spec for a single request.
1549
+ :type _host_index: int, optional
1550
+ :return: Returns the result object.
1551
+ """ # noqa: E501
1552
+
1553
+ _param = self._list_roles_serialize(
1554
+ group_href=group_href,
1555
+ x_task_diagnostics=x_task_diagnostics,
1556
+ fields=fields,
1557
+ exclude_fields=exclude_fields,
1558
+ _request_auth=_request_auth,
1559
+ _content_type=_content_type,
1560
+ _headers=_headers,
1561
+ _host_index=_host_index
1562
+ )
1563
+
1564
+ _response_types_map: Dict[str, Optional[str]] = {
1565
+ '200': "ObjectRolesResponse",
1566
+ }
1567
+ response_data = self.api_client.call_api(
1568
+ *_param,
1569
+ _request_timeout=_request_timeout
1570
+ )
1571
+ response_data.read()
1572
+ return self.api_client.response_deserialize(
1573
+ response_data=response_data,
1574
+ response_types_map=_response_types_map,
1575
+ ).data
1576
+
1577
+
1578
+ @validate_call
1579
+ def list_roles_with_http_info(
1580
+ self,
1581
+ group_href: StrictStr,
1582
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
1583
+ fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
1584
+ exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
1585
+ _request_timeout: Union[
1586
+ None,
1587
+ Annotated[StrictFloat, Field(gt=0)],
1588
+ Tuple[
1589
+ Annotated[StrictFloat, Field(gt=0)],
1590
+ Annotated[StrictFloat, Field(gt=0)]
1591
+ ]
1592
+ ] = None,
1593
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1594
+ _content_type: Optional[StrictStr] = None,
1595
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1596
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1597
+ ) -> ApiResponse[ObjectRolesResponse]:
1598
+ """List roles
1599
+
1600
+ List roles assigned to this object.
1601
+
1602
+ :param group_href: (required)
1603
+ :type group_href: str
1604
+ :param x_task_diagnostics: List of profilers to use on tasks.
1605
+ :type x_task_diagnostics: List[str]
1606
+ :param fields: A list of fields to include in the response.
1607
+ :type fields: List[str]
1608
+ :param exclude_fields: A list of fields to exclude from the response.
1609
+ :type exclude_fields: List[str]
1610
+ :param _request_timeout: timeout setting for this request. If one
1611
+ number provided, it will be total request
1612
+ timeout. It can also be a pair (tuple) of
1613
+ (connection, read) timeouts.
1614
+ :type _request_timeout: int, tuple(int, int), optional
1615
+ :param _request_auth: set to override the auth_settings for an a single
1616
+ request; this effectively ignores the
1617
+ authentication in the spec for a single request.
1618
+ :type _request_auth: dict, optional
1619
+ :param _content_type: force content-type for the request.
1620
+ :type _content_type: str, Optional
1621
+ :param _headers: set to override the headers for a single
1622
+ request; this effectively ignores the headers
1623
+ in the spec for a single request.
1624
+ :type _headers: dict, optional
1625
+ :param _host_index: set to override the host_index for a single
1626
+ request; this effectively ignores the host_index
1627
+ in the spec for a single request.
1628
+ :type _host_index: int, optional
1629
+ :return: Returns the result object.
1630
+ """ # noqa: E501
1631
+
1632
+ _param = self._list_roles_serialize(
1633
+ group_href=group_href,
1634
+ x_task_diagnostics=x_task_diagnostics,
1635
+ fields=fields,
1636
+ exclude_fields=exclude_fields,
1637
+ _request_auth=_request_auth,
1638
+ _content_type=_content_type,
1639
+ _headers=_headers,
1640
+ _host_index=_host_index
1641
+ )
1642
+
1643
+ _response_types_map: Dict[str, Optional[str]] = {
1644
+ '200': "ObjectRolesResponse",
1645
+ }
1646
+ response_data = self.api_client.call_api(
1647
+ *_param,
1648
+ _request_timeout=_request_timeout
1649
+ )
1650
+ response_data.read()
1651
+ return self.api_client.response_deserialize(
1652
+ response_data=response_data,
1653
+ response_types_map=_response_types_map,
1654
+ )
1655
+
1656
+
1657
+ @validate_call
1658
+ def list_roles_without_preload_content(
1659
+ self,
1660
+ group_href: StrictStr,
1661
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
1662
+ fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
1663
+ exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
1664
+ _request_timeout: Union[
1665
+ None,
1666
+ Annotated[StrictFloat, Field(gt=0)],
1667
+ Tuple[
1668
+ Annotated[StrictFloat, Field(gt=0)],
1669
+ Annotated[StrictFloat, Field(gt=0)]
1670
+ ]
1671
+ ] = None,
1672
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1673
+ _content_type: Optional[StrictStr] = None,
1674
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1675
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1676
+ ) -> RESTResponseType:
1677
+ """List roles
1678
+
1679
+ List roles assigned to this object.
1680
+
1681
+ :param group_href: (required)
1682
+ :type group_href: str
1683
+ :param x_task_diagnostics: List of profilers to use on tasks.
1684
+ :type x_task_diagnostics: List[str]
1685
+ :param fields: A list of fields to include in the response.
1686
+ :type fields: List[str]
1687
+ :param exclude_fields: A list of fields to exclude from the response.
1688
+ :type exclude_fields: List[str]
1689
+ :param _request_timeout: timeout setting for this request. If one
1690
+ number provided, it will be total request
1691
+ timeout. It can also be a pair (tuple) of
1692
+ (connection, read) timeouts.
1693
+ :type _request_timeout: int, tuple(int, int), optional
1694
+ :param _request_auth: set to override the auth_settings for an a single
1695
+ request; this effectively ignores the
1696
+ authentication in the spec for a single request.
1697
+ :type _request_auth: dict, optional
1698
+ :param _content_type: force content-type for the request.
1699
+ :type _content_type: str, Optional
1700
+ :param _headers: set to override the headers for a single
1701
+ request; this effectively ignores the headers
1702
+ in the spec for a single request.
1703
+ :type _headers: dict, optional
1704
+ :param _host_index: set to override the host_index for a single
1705
+ request; this effectively ignores the host_index
1706
+ in the spec for a single request.
1707
+ :type _host_index: int, optional
1708
+ :return: Returns the result object.
1709
+ """ # noqa: E501
1710
+
1711
+ _param = self._list_roles_serialize(
1712
+ group_href=group_href,
1713
+ x_task_diagnostics=x_task_diagnostics,
1714
+ fields=fields,
1715
+ exclude_fields=exclude_fields,
1716
+ _request_auth=_request_auth,
1717
+ _content_type=_content_type,
1718
+ _headers=_headers,
1719
+ _host_index=_host_index
1720
+ )
1721
+
1722
+ _response_types_map: Dict[str, Optional[str]] = {
1723
+ '200': "ObjectRolesResponse",
1724
+ }
1725
+ response_data = self.api_client.call_api(
1726
+ *_param,
1727
+ _request_timeout=_request_timeout
1728
+ )
1729
+ return response_data.response
1730
+
1731
+
1732
+ def _list_roles_serialize(
1733
+ self,
1734
+ group_href,
1735
+ x_task_diagnostics,
1736
+ fields,
1737
+ exclude_fields,
1738
+ _request_auth,
1739
+ _content_type,
1740
+ _headers,
1741
+ _host_index,
1742
+ ) -> RequestSerialized:
1743
+
1744
+ _host = None
1745
+
1746
+ _collection_formats: Dict[str, str] = {
1747
+ 'X-Task-Diagnostics': 'csv',
1748
+ 'fields': 'multi',
1749
+ 'exclude_fields': 'multi',
1750
+ }
1751
+
1752
+ _path_params: Dict[str, str] = {}
1753
+ _query_params: List[Tuple[str, str]] = []
1754
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1755
+ _form_params: List[Tuple[str, str]] = []
1756
+ _files: Dict[
1757
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1758
+ ] = {}
1759
+ _body_params: Optional[bytes] = None
1760
+
1761
+ # process the path parameters
1762
+ if group_href is not None:
1763
+ _path_params['group_href'] = group_href
1764
+ # process the query parameters
1765
+ if fields is not None:
1766
+
1767
+ _query_params.append(('fields', fields))
1768
+
1769
+ if exclude_fields is not None:
1770
+
1771
+ _query_params.append(('exclude_fields', exclude_fields))
1772
+
1773
+ # process the header parameters
1774
+ if x_task_diagnostics is not None:
1775
+ _header_params['X-Task-Diagnostics'] = x_task_diagnostics
1776
+ # process the form parameters
1777
+ # process the body parameter
1778
+
1779
+
1780
+ # set the HTTP header `Accept`
1781
+ if 'Accept' not in _header_params:
1782
+ _header_params['Accept'] = self.api_client.select_header_accept(
1783
+ [
1784
+ 'application/json'
1785
+ ]
1786
+ )
1787
+
1788
+
1789
+ # authentication setting
1790
+ _auth_settings: List[str] = [
1791
+ 'json_header_remote_authentication',
1792
+ 'basicAuth',
1793
+ 'cookieAuth'
1794
+ ]
1795
+
1796
+ return self.api_client.param_serialize(
1797
+ method='GET',
1798
+ resource_path='{group_href}list_roles/',
1799
+ path_params=_path_params,
1800
+ query_params=_query_params,
1801
+ header_params=_header_params,
1802
+ body=_body_params,
1803
+ post_params=_form_params,
1804
+ files=_files,
1805
+ auth_settings=_auth_settings,
1806
+ collection_formats=_collection_formats,
1807
+ _host=_host,
1808
+ _request_auth=_request_auth
1809
+ )
1810
+
1811
+
1812
+
1813
+
1814
+ @validate_call
1815
+ def my_permissions(
1816
+ self,
1817
+ group_href: StrictStr,
1818
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
1819
+ fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
1820
+ exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
1821
+ _request_timeout: Union[
1822
+ None,
1823
+ Annotated[StrictFloat, Field(gt=0)],
1824
+ Tuple[
1825
+ Annotated[StrictFloat, Field(gt=0)],
1826
+ Annotated[StrictFloat, Field(gt=0)]
1827
+ ]
1828
+ ] = None,
1829
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1830
+ _content_type: Optional[StrictStr] = None,
1831
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1832
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1833
+ ) -> MyPermissionsResponse:
1834
+ """List user permissions
1835
+
1836
+ List permissions available to the current user on this object.
1837
+
1838
+ :param group_href: (required)
1839
+ :type group_href: str
1840
+ :param x_task_diagnostics: List of profilers to use on tasks.
1841
+ :type x_task_diagnostics: List[str]
1842
+ :param fields: A list of fields to include in the response.
1843
+ :type fields: List[str]
1844
+ :param exclude_fields: A list of fields to exclude from the response.
1845
+ :type exclude_fields: List[str]
1846
+ :param _request_timeout: timeout setting for this request. If one
1847
+ number provided, it will be total request
1848
+ timeout. It can also be a pair (tuple) of
1849
+ (connection, read) timeouts.
1850
+ :type _request_timeout: int, tuple(int, int), optional
1851
+ :param _request_auth: set to override the auth_settings for an a single
1852
+ request; this effectively ignores the
1853
+ authentication in the spec for a single request.
1854
+ :type _request_auth: dict, optional
1855
+ :param _content_type: force content-type for the request.
1856
+ :type _content_type: str, Optional
1857
+ :param _headers: set to override the headers for a single
1858
+ request; this effectively ignores the headers
1859
+ in the spec for a single request.
1860
+ :type _headers: dict, optional
1861
+ :param _host_index: set to override the host_index for a single
1862
+ request; this effectively ignores the host_index
1863
+ in the spec for a single request.
1864
+ :type _host_index: int, optional
1865
+ :return: Returns the result object.
1866
+ """ # noqa: E501
1867
+
1868
+ _param = self._my_permissions_serialize(
1869
+ group_href=group_href,
1870
+ x_task_diagnostics=x_task_diagnostics,
1871
+ fields=fields,
1872
+ exclude_fields=exclude_fields,
1873
+ _request_auth=_request_auth,
1874
+ _content_type=_content_type,
1875
+ _headers=_headers,
1876
+ _host_index=_host_index
1877
+ )
1878
+
1879
+ _response_types_map: Dict[str, Optional[str]] = {
1880
+ '200': "MyPermissionsResponse",
1881
+ }
1882
+ response_data = self.api_client.call_api(
1883
+ *_param,
1884
+ _request_timeout=_request_timeout
1885
+ )
1886
+ response_data.read()
1887
+ return self.api_client.response_deserialize(
1888
+ response_data=response_data,
1889
+ response_types_map=_response_types_map,
1890
+ ).data
1891
+
1892
+
1893
+ @validate_call
1894
+ def my_permissions_with_http_info(
1895
+ self,
1896
+ group_href: StrictStr,
1897
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
1898
+ fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
1899
+ exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
1900
+ _request_timeout: Union[
1901
+ None,
1902
+ Annotated[StrictFloat, Field(gt=0)],
1903
+ Tuple[
1904
+ Annotated[StrictFloat, Field(gt=0)],
1905
+ Annotated[StrictFloat, Field(gt=0)]
1906
+ ]
1907
+ ] = None,
1908
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1909
+ _content_type: Optional[StrictStr] = None,
1910
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1911
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1912
+ ) -> ApiResponse[MyPermissionsResponse]:
1913
+ """List user permissions
1914
+
1915
+ List permissions available to the current user on this object.
1916
+
1917
+ :param group_href: (required)
1918
+ :type group_href: str
1919
+ :param x_task_diagnostics: List of profilers to use on tasks.
1920
+ :type x_task_diagnostics: List[str]
1921
+ :param fields: A list of fields to include in the response.
1922
+ :type fields: List[str]
1923
+ :param exclude_fields: A list of fields to exclude from the response.
1924
+ :type exclude_fields: List[str]
1925
+ :param _request_timeout: timeout setting for this request. If one
1926
+ number provided, it will be total request
1927
+ timeout. It can also be a pair (tuple) of
1928
+ (connection, read) timeouts.
1929
+ :type _request_timeout: int, tuple(int, int), optional
1930
+ :param _request_auth: set to override the auth_settings for an a single
1931
+ request; this effectively ignores the
1932
+ authentication in the spec for a single request.
1933
+ :type _request_auth: dict, optional
1934
+ :param _content_type: force content-type for the request.
1935
+ :type _content_type: str, Optional
1936
+ :param _headers: set to override the headers for a single
1937
+ request; this effectively ignores the headers
1938
+ in the spec for a single request.
1939
+ :type _headers: dict, optional
1940
+ :param _host_index: set to override the host_index for a single
1941
+ request; this effectively ignores the host_index
1942
+ in the spec for a single request.
1943
+ :type _host_index: int, optional
1944
+ :return: Returns the result object.
1945
+ """ # noqa: E501
1946
+
1947
+ _param = self._my_permissions_serialize(
1948
+ group_href=group_href,
1949
+ x_task_diagnostics=x_task_diagnostics,
1950
+ fields=fields,
1951
+ exclude_fields=exclude_fields,
1952
+ _request_auth=_request_auth,
1953
+ _content_type=_content_type,
1954
+ _headers=_headers,
1955
+ _host_index=_host_index
1956
+ )
1957
+
1958
+ _response_types_map: Dict[str, Optional[str]] = {
1959
+ '200': "MyPermissionsResponse",
1960
+ }
1961
+ response_data = self.api_client.call_api(
1962
+ *_param,
1963
+ _request_timeout=_request_timeout
1964
+ )
1965
+ response_data.read()
1966
+ return self.api_client.response_deserialize(
1967
+ response_data=response_data,
1968
+ response_types_map=_response_types_map,
1969
+ )
1970
+
1971
+
1972
+ @validate_call
1973
+ def my_permissions_without_preload_content(
1974
+ self,
1975
+ group_href: StrictStr,
1976
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
1977
+ fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
1978
+ exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
1979
+ _request_timeout: Union[
1980
+ None,
1981
+ Annotated[StrictFloat, Field(gt=0)],
1982
+ Tuple[
1983
+ Annotated[StrictFloat, Field(gt=0)],
1984
+ Annotated[StrictFloat, Field(gt=0)]
1985
+ ]
1986
+ ] = None,
1987
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1988
+ _content_type: Optional[StrictStr] = None,
1989
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1990
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1991
+ ) -> RESTResponseType:
1992
+ """List user permissions
1993
+
1994
+ List permissions available to the current user on this object.
1995
+
1996
+ :param group_href: (required)
1997
+ :type group_href: str
1998
+ :param x_task_diagnostics: List of profilers to use on tasks.
1999
+ :type x_task_diagnostics: List[str]
2000
+ :param fields: A list of fields to include in the response.
2001
+ :type fields: List[str]
2002
+ :param exclude_fields: A list of fields to exclude from the response.
2003
+ :type exclude_fields: List[str]
2004
+ :param _request_timeout: timeout setting for this request. If one
2005
+ number provided, it will be total request
2006
+ timeout. It can also be a pair (tuple) of
2007
+ (connection, read) timeouts.
2008
+ :type _request_timeout: int, tuple(int, int), optional
2009
+ :param _request_auth: set to override the auth_settings for an a single
2010
+ request; this effectively ignores the
2011
+ authentication in the spec for a single request.
2012
+ :type _request_auth: dict, optional
2013
+ :param _content_type: force content-type for the request.
2014
+ :type _content_type: str, Optional
2015
+ :param _headers: set to override the headers for a single
2016
+ request; this effectively ignores the headers
2017
+ in the spec for a single request.
2018
+ :type _headers: dict, optional
2019
+ :param _host_index: set to override the host_index for a single
2020
+ request; this effectively ignores the host_index
2021
+ in the spec for a single request.
2022
+ :type _host_index: int, optional
2023
+ :return: Returns the result object.
2024
+ """ # noqa: E501
2025
+
2026
+ _param = self._my_permissions_serialize(
2027
+ group_href=group_href,
2028
+ x_task_diagnostics=x_task_diagnostics,
2029
+ fields=fields,
2030
+ exclude_fields=exclude_fields,
2031
+ _request_auth=_request_auth,
2032
+ _content_type=_content_type,
2033
+ _headers=_headers,
2034
+ _host_index=_host_index
2035
+ )
2036
+
2037
+ _response_types_map: Dict[str, Optional[str]] = {
2038
+ '200': "MyPermissionsResponse",
2039
+ }
2040
+ response_data = self.api_client.call_api(
2041
+ *_param,
2042
+ _request_timeout=_request_timeout
2043
+ )
2044
+ return response_data.response
2045
+
2046
+
2047
+ def _my_permissions_serialize(
2048
+ self,
2049
+ group_href,
2050
+ x_task_diagnostics,
2051
+ fields,
2052
+ exclude_fields,
2053
+ _request_auth,
2054
+ _content_type,
2055
+ _headers,
2056
+ _host_index,
2057
+ ) -> RequestSerialized:
2058
+
2059
+ _host = None
2060
+
2061
+ _collection_formats: Dict[str, str] = {
2062
+ 'X-Task-Diagnostics': 'csv',
2063
+ 'fields': 'multi',
2064
+ 'exclude_fields': 'multi',
2065
+ }
2066
+
2067
+ _path_params: Dict[str, str] = {}
2068
+ _query_params: List[Tuple[str, str]] = []
2069
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2070
+ _form_params: List[Tuple[str, str]] = []
2071
+ _files: Dict[
2072
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2073
+ ] = {}
2074
+ _body_params: Optional[bytes] = None
2075
+
2076
+ # process the path parameters
2077
+ if group_href is not None:
2078
+ _path_params['group_href'] = group_href
2079
+ # process the query parameters
2080
+ if fields is not None:
2081
+
2082
+ _query_params.append(('fields', fields))
2083
+
2084
+ if exclude_fields is not None:
2085
+
2086
+ _query_params.append(('exclude_fields', exclude_fields))
2087
+
2088
+ # process the header parameters
2089
+ if x_task_diagnostics is not None:
2090
+ _header_params['X-Task-Diagnostics'] = x_task_diagnostics
2091
+ # process the form parameters
2092
+ # process the body parameter
2093
+
2094
+
2095
+ # set the HTTP header `Accept`
2096
+ if 'Accept' not in _header_params:
2097
+ _header_params['Accept'] = self.api_client.select_header_accept(
2098
+ [
2099
+ 'application/json'
2100
+ ]
2101
+ )
2102
+
2103
+
2104
+ # authentication setting
2105
+ _auth_settings: List[str] = [
2106
+ 'json_header_remote_authentication',
2107
+ 'basicAuth',
2108
+ 'cookieAuth'
2109
+ ]
2110
+
2111
+ return self.api_client.param_serialize(
2112
+ method='GET',
2113
+ resource_path='{group_href}my_permissions/',
2114
+ path_params=_path_params,
2115
+ query_params=_query_params,
2116
+ header_params=_header_params,
2117
+ body=_body_params,
2118
+ post_params=_form_params,
2119
+ files=_files,
2120
+ auth_settings=_auth_settings,
2121
+ collection_formats=_collection_formats,
2122
+ _host=_host,
2123
+ _request_auth=_request_auth
2124
+ )
2125
+
2126
+
2127
+
2128
+
2129
+ @validate_call
2130
+ def partial_update(
2131
+ self,
2132
+ group_href: StrictStr,
2133
+ patched_group: PatchedGroup,
2134
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
2135
+ _request_timeout: Union[
2136
+ None,
2137
+ Annotated[StrictFloat, Field(gt=0)],
2138
+ Tuple[
2139
+ Annotated[StrictFloat, Field(gt=0)],
2140
+ Annotated[StrictFloat, Field(gt=0)]
2141
+ ]
2142
+ ] = None,
2143
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2144
+ _content_type: Optional[StrictStr] = None,
2145
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2146
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2147
+ ) -> GroupResponse:
2148
+ """Update a group
2149
+
2150
+ ViewSet for Group.
2151
+
2152
+ :param group_href: (required)
2153
+ :type group_href: str
2154
+ :param patched_group: (required)
2155
+ :type patched_group: PatchedGroup
2156
+ :param x_task_diagnostics: List of profilers to use on tasks.
2157
+ :type x_task_diagnostics: List[str]
2158
+ :param _request_timeout: timeout setting for this request. If one
2159
+ number provided, it will be total request
2160
+ timeout. It can also be a pair (tuple) of
2161
+ (connection, read) timeouts.
2162
+ :type _request_timeout: int, tuple(int, int), optional
2163
+ :param _request_auth: set to override the auth_settings for an a single
2164
+ request; this effectively ignores the
2165
+ authentication in the spec for a single request.
2166
+ :type _request_auth: dict, optional
2167
+ :param _content_type: force content-type for the request.
2168
+ :type _content_type: str, Optional
2169
+ :param _headers: set to override the headers for a single
2170
+ request; this effectively ignores the headers
2171
+ in the spec for a single request.
2172
+ :type _headers: dict, optional
2173
+ :param _host_index: set to override the host_index for a single
2174
+ request; this effectively ignores the host_index
2175
+ in the spec for a single request.
2176
+ :type _host_index: int, optional
2177
+ :return: Returns the result object.
2178
+ """ # noqa: E501
2179
+
2180
+ _param = self._partial_update_serialize(
2181
+ group_href=group_href,
2182
+ patched_group=patched_group,
2183
+ x_task_diagnostics=x_task_diagnostics,
2184
+ _request_auth=_request_auth,
2185
+ _content_type=_content_type,
2186
+ _headers=_headers,
2187
+ _host_index=_host_index
2188
+ )
2189
+
2190
+ _response_types_map: Dict[str, Optional[str]] = {
2191
+ '200': "GroupResponse",
2192
+ }
2193
+ response_data = self.api_client.call_api(
2194
+ *_param,
2195
+ _request_timeout=_request_timeout
2196
+ )
2197
+ response_data.read()
2198
+ return self.api_client.response_deserialize(
2199
+ response_data=response_data,
2200
+ response_types_map=_response_types_map,
2201
+ ).data
2202
+
2203
+
2204
+ @validate_call
2205
+ def partial_update_with_http_info(
2206
+ self,
2207
+ group_href: StrictStr,
2208
+ patched_group: PatchedGroup,
2209
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
2210
+ _request_timeout: Union[
2211
+ None,
2212
+ Annotated[StrictFloat, Field(gt=0)],
2213
+ Tuple[
2214
+ Annotated[StrictFloat, Field(gt=0)],
2215
+ Annotated[StrictFloat, Field(gt=0)]
2216
+ ]
2217
+ ] = None,
2218
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2219
+ _content_type: Optional[StrictStr] = None,
2220
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2221
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2222
+ ) -> ApiResponse[GroupResponse]:
2223
+ """Update a group
2224
+
2225
+ ViewSet for Group.
2226
+
2227
+ :param group_href: (required)
2228
+ :type group_href: str
2229
+ :param patched_group: (required)
2230
+ :type patched_group: PatchedGroup
2231
+ :param x_task_diagnostics: List of profilers to use on tasks.
2232
+ :type x_task_diagnostics: List[str]
2233
+ :param _request_timeout: timeout setting for this request. If one
2234
+ number provided, it will be total request
2235
+ timeout. It can also be a pair (tuple) of
2236
+ (connection, read) timeouts.
2237
+ :type _request_timeout: int, tuple(int, int), optional
2238
+ :param _request_auth: set to override the auth_settings for an a single
2239
+ request; this effectively ignores the
2240
+ authentication in the spec for a single request.
2241
+ :type _request_auth: dict, optional
2242
+ :param _content_type: force content-type for the request.
2243
+ :type _content_type: str, Optional
2244
+ :param _headers: set to override the headers for a single
2245
+ request; this effectively ignores the headers
2246
+ in the spec for a single request.
2247
+ :type _headers: dict, optional
2248
+ :param _host_index: set to override the host_index for a single
2249
+ request; this effectively ignores the host_index
2250
+ in the spec for a single request.
2251
+ :type _host_index: int, optional
2252
+ :return: Returns the result object.
2253
+ """ # noqa: E501
2254
+
2255
+ _param = self._partial_update_serialize(
2256
+ group_href=group_href,
2257
+ patched_group=patched_group,
2258
+ x_task_diagnostics=x_task_diagnostics,
2259
+ _request_auth=_request_auth,
2260
+ _content_type=_content_type,
2261
+ _headers=_headers,
2262
+ _host_index=_host_index
2263
+ )
2264
+
2265
+ _response_types_map: Dict[str, Optional[str]] = {
2266
+ '200': "GroupResponse",
2267
+ }
2268
+ response_data = self.api_client.call_api(
2269
+ *_param,
2270
+ _request_timeout=_request_timeout
2271
+ )
2272
+ response_data.read()
2273
+ return self.api_client.response_deserialize(
2274
+ response_data=response_data,
2275
+ response_types_map=_response_types_map,
2276
+ )
2277
+
2278
+
2279
+ @validate_call
2280
+ def partial_update_without_preload_content(
2281
+ self,
2282
+ group_href: StrictStr,
2283
+ patched_group: PatchedGroup,
2284
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
2285
+ _request_timeout: Union[
2286
+ None,
2287
+ Annotated[StrictFloat, Field(gt=0)],
2288
+ Tuple[
2289
+ Annotated[StrictFloat, Field(gt=0)],
2290
+ Annotated[StrictFloat, Field(gt=0)]
2291
+ ]
2292
+ ] = None,
2293
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2294
+ _content_type: Optional[StrictStr] = None,
2295
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2296
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2297
+ ) -> RESTResponseType:
2298
+ """Update a group
2299
+
2300
+ ViewSet for Group.
2301
+
2302
+ :param group_href: (required)
2303
+ :type group_href: str
2304
+ :param patched_group: (required)
2305
+ :type patched_group: PatchedGroup
2306
+ :param x_task_diagnostics: List of profilers to use on tasks.
2307
+ :type x_task_diagnostics: List[str]
2308
+ :param _request_timeout: timeout setting for this request. If one
2309
+ number provided, it will be total request
2310
+ timeout. It can also be a pair (tuple) of
2311
+ (connection, read) timeouts.
2312
+ :type _request_timeout: int, tuple(int, int), optional
2313
+ :param _request_auth: set to override the auth_settings for an a single
2314
+ request; this effectively ignores the
2315
+ authentication in the spec for a single request.
2316
+ :type _request_auth: dict, optional
2317
+ :param _content_type: force content-type for the request.
2318
+ :type _content_type: str, Optional
2319
+ :param _headers: set to override the headers for a single
2320
+ request; this effectively ignores the headers
2321
+ in the spec for a single request.
2322
+ :type _headers: dict, optional
2323
+ :param _host_index: set to override the host_index for a single
2324
+ request; this effectively ignores the host_index
2325
+ in the spec for a single request.
2326
+ :type _host_index: int, optional
2327
+ :return: Returns the result object.
2328
+ """ # noqa: E501
2329
+
2330
+ _param = self._partial_update_serialize(
2331
+ group_href=group_href,
2332
+ patched_group=patched_group,
2333
+ x_task_diagnostics=x_task_diagnostics,
2334
+ _request_auth=_request_auth,
2335
+ _content_type=_content_type,
2336
+ _headers=_headers,
2337
+ _host_index=_host_index
2338
+ )
2339
+
2340
+ _response_types_map: Dict[str, Optional[str]] = {
2341
+ '200': "GroupResponse",
2342
+ }
2343
+ response_data = self.api_client.call_api(
2344
+ *_param,
2345
+ _request_timeout=_request_timeout
2346
+ )
2347
+ return response_data.response
2348
+
2349
+
2350
+ def _partial_update_serialize(
2351
+ self,
2352
+ group_href,
2353
+ patched_group,
2354
+ x_task_diagnostics,
2355
+ _request_auth,
2356
+ _content_type,
2357
+ _headers,
2358
+ _host_index,
2359
+ ) -> RequestSerialized:
2360
+
2361
+ _host = None
2362
+
2363
+ _collection_formats: Dict[str, str] = {
2364
+ 'X-Task-Diagnostics': 'csv',
2365
+ }
2366
+
2367
+ _path_params: Dict[str, str] = {}
2368
+ _query_params: List[Tuple[str, str]] = []
2369
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2370
+ _form_params: List[Tuple[str, str]] = []
2371
+ _files: Dict[
2372
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2373
+ ] = {}
2374
+ _body_params: Optional[bytes] = None
2375
+
2376
+ # process the path parameters
2377
+ if group_href is not None:
2378
+ _path_params['group_href'] = group_href
2379
+ # process the query parameters
2380
+ # process the header parameters
2381
+ if x_task_diagnostics is not None:
2382
+ _header_params['X-Task-Diagnostics'] = x_task_diagnostics
2383
+ # process the form parameters
2384
+ # process the body parameter
2385
+ if patched_group is not None:
2386
+ _body_params = patched_group
2387
+
2388
+
2389
+ # set the HTTP header `Accept`
2390
+ if 'Accept' not in _header_params:
2391
+ _header_params['Accept'] = self.api_client.select_header_accept(
2392
+ [
2393
+ 'application/json'
2394
+ ]
2395
+ )
2396
+
2397
+ # set the HTTP header `Content-Type`
2398
+ if _content_type:
2399
+ _header_params['Content-Type'] = _content_type
2400
+ else:
2401
+ _default_content_type = (
2402
+ self.api_client.select_header_content_type(
2403
+ [
2404
+ 'application/json',
2405
+ 'application/x-www-form-urlencoded',
2406
+ 'multipart/form-data'
2407
+ ]
2408
+ )
2409
+ )
2410
+ if _default_content_type is not None:
2411
+ _header_params['Content-Type'] = _default_content_type
2412
+
2413
+ # authentication setting
2414
+ _auth_settings: List[str] = [
2415
+ 'json_header_remote_authentication',
2416
+ 'basicAuth',
2417
+ 'cookieAuth'
2418
+ ]
2419
+
2420
+ return self.api_client.param_serialize(
2421
+ method='PATCH',
2422
+ resource_path='{group_href}',
2423
+ path_params=_path_params,
2424
+ query_params=_query_params,
2425
+ header_params=_header_params,
2426
+ body=_body_params,
2427
+ post_params=_form_params,
2428
+ files=_files,
2429
+ auth_settings=_auth_settings,
2430
+ collection_formats=_collection_formats,
2431
+ _host=_host,
2432
+ _request_auth=_request_auth
2433
+ )
2434
+
2435
+
2436
+
2437
+
2438
+ @validate_call
2439
+ def read(
2440
+ self,
2441
+ group_href: StrictStr,
2442
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
2443
+ fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
2444
+ exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
2445
+ _request_timeout: Union[
2446
+ None,
2447
+ Annotated[StrictFloat, Field(gt=0)],
2448
+ Tuple[
2449
+ Annotated[StrictFloat, Field(gt=0)],
2450
+ Annotated[StrictFloat, Field(gt=0)]
2451
+ ]
2452
+ ] = None,
2453
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2454
+ _content_type: Optional[StrictStr] = None,
2455
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2456
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2457
+ ) -> GroupResponse:
2458
+ """Inspect a group
2459
+
2460
+ ViewSet for Group.
2461
+
2462
+ :param group_href: (required)
2463
+ :type group_href: str
2464
+ :param x_task_diagnostics: List of profilers to use on tasks.
2465
+ :type x_task_diagnostics: List[str]
2466
+ :param fields: A list of fields to include in the response.
2467
+ :type fields: List[str]
2468
+ :param exclude_fields: A list of fields to exclude from the response.
2469
+ :type exclude_fields: List[str]
2470
+ :param _request_timeout: timeout setting for this request. If one
2471
+ number provided, it will be total request
2472
+ timeout. It can also be a pair (tuple) of
2473
+ (connection, read) timeouts.
2474
+ :type _request_timeout: int, tuple(int, int), optional
2475
+ :param _request_auth: set to override the auth_settings for an a single
2476
+ request; this effectively ignores the
2477
+ authentication in the spec for a single request.
2478
+ :type _request_auth: dict, optional
2479
+ :param _content_type: force content-type for the request.
2480
+ :type _content_type: str, Optional
2481
+ :param _headers: set to override the headers for a single
2482
+ request; this effectively ignores the headers
2483
+ in the spec for a single request.
2484
+ :type _headers: dict, optional
2485
+ :param _host_index: set to override the host_index for a single
2486
+ request; this effectively ignores the host_index
2487
+ in the spec for a single request.
2488
+ :type _host_index: int, optional
2489
+ :return: Returns the result object.
2490
+ """ # noqa: E501
2491
+
2492
+ _param = self._read_serialize(
2493
+ group_href=group_href,
2494
+ x_task_diagnostics=x_task_diagnostics,
2495
+ fields=fields,
2496
+ exclude_fields=exclude_fields,
2497
+ _request_auth=_request_auth,
2498
+ _content_type=_content_type,
2499
+ _headers=_headers,
2500
+ _host_index=_host_index
2501
+ )
2502
+
2503
+ _response_types_map: Dict[str, Optional[str]] = {
2504
+ '200': "GroupResponse",
2505
+ }
2506
+ response_data = self.api_client.call_api(
2507
+ *_param,
2508
+ _request_timeout=_request_timeout
2509
+ )
2510
+ response_data.read()
2511
+ return self.api_client.response_deserialize(
2512
+ response_data=response_data,
2513
+ response_types_map=_response_types_map,
2514
+ ).data
2515
+
2516
+
2517
+ @validate_call
2518
+ def read_with_http_info(
2519
+ self,
2520
+ group_href: StrictStr,
2521
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
2522
+ fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
2523
+ exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
2524
+ _request_timeout: Union[
2525
+ None,
2526
+ Annotated[StrictFloat, Field(gt=0)],
2527
+ Tuple[
2528
+ Annotated[StrictFloat, Field(gt=0)],
2529
+ Annotated[StrictFloat, Field(gt=0)]
2530
+ ]
2531
+ ] = None,
2532
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2533
+ _content_type: Optional[StrictStr] = None,
2534
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2535
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2536
+ ) -> ApiResponse[GroupResponse]:
2537
+ """Inspect a group
2538
+
2539
+ ViewSet for Group.
2540
+
2541
+ :param group_href: (required)
2542
+ :type group_href: str
2543
+ :param x_task_diagnostics: List of profilers to use on tasks.
2544
+ :type x_task_diagnostics: List[str]
2545
+ :param fields: A list of fields to include in the response.
2546
+ :type fields: List[str]
2547
+ :param exclude_fields: A list of fields to exclude from the response.
2548
+ :type exclude_fields: List[str]
2549
+ :param _request_timeout: timeout setting for this request. If one
2550
+ number provided, it will be total request
2551
+ timeout. It can also be a pair (tuple) of
2552
+ (connection, read) timeouts.
2553
+ :type _request_timeout: int, tuple(int, int), optional
2554
+ :param _request_auth: set to override the auth_settings for an a single
2555
+ request; this effectively ignores the
2556
+ authentication in the spec for a single request.
2557
+ :type _request_auth: dict, optional
2558
+ :param _content_type: force content-type for the request.
2559
+ :type _content_type: str, Optional
2560
+ :param _headers: set to override the headers for a single
2561
+ request; this effectively ignores the headers
2562
+ in the spec for a single request.
2563
+ :type _headers: dict, optional
2564
+ :param _host_index: set to override the host_index for a single
2565
+ request; this effectively ignores the host_index
2566
+ in the spec for a single request.
2567
+ :type _host_index: int, optional
2568
+ :return: Returns the result object.
2569
+ """ # noqa: E501
2570
+
2571
+ _param = self._read_serialize(
2572
+ group_href=group_href,
2573
+ x_task_diagnostics=x_task_diagnostics,
2574
+ fields=fields,
2575
+ exclude_fields=exclude_fields,
2576
+ _request_auth=_request_auth,
2577
+ _content_type=_content_type,
2578
+ _headers=_headers,
2579
+ _host_index=_host_index
2580
+ )
2581
+
2582
+ _response_types_map: Dict[str, Optional[str]] = {
2583
+ '200': "GroupResponse",
2584
+ }
2585
+ response_data = self.api_client.call_api(
2586
+ *_param,
2587
+ _request_timeout=_request_timeout
2588
+ )
2589
+ response_data.read()
2590
+ return self.api_client.response_deserialize(
2591
+ response_data=response_data,
2592
+ response_types_map=_response_types_map,
2593
+ )
2594
+
2595
+
2596
+ @validate_call
2597
+ def read_without_preload_content(
2598
+ self,
2599
+ group_href: StrictStr,
2600
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
2601
+ fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
2602
+ exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
2603
+ _request_timeout: Union[
2604
+ None,
2605
+ Annotated[StrictFloat, Field(gt=0)],
2606
+ Tuple[
2607
+ Annotated[StrictFloat, Field(gt=0)],
2608
+ Annotated[StrictFloat, Field(gt=0)]
2609
+ ]
2610
+ ] = None,
2611
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2612
+ _content_type: Optional[StrictStr] = None,
2613
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2614
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2615
+ ) -> RESTResponseType:
2616
+ """Inspect a group
2617
+
2618
+ ViewSet for Group.
2619
+
2620
+ :param group_href: (required)
2621
+ :type group_href: str
2622
+ :param x_task_diagnostics: List of profilers to use on tasks.
2623
+ :type x_task_diagnostics: List[str]
2624
+ :param fields: A list of fields to include in the response.
2625
+ :type fields: List[str]
2626
+ :param exclude_fields: A list of fields to exclude from the response.
2627
+ :type exclude_fields: List[str]
2628
+ :param _request_timeout: timeout setting for this request. If one
2629
+ number provided, it will be total request
2630
+ timeout. It can also be a pair (tuple) of
2631
+ (connection, read) timeouts.
2632
+ :type _request_timeout: int, tuple(int, int), optional
2633
+ :param _request_auth: set to override the auth_settings for an a single
2634
+ request; this effectively ignores the
2635
+ authentication in the spec for a single request.
2636
+ :type _request_auth: dict, optional
2637
+ :param _content_type: force content-type for the request.
2638
+ :type _content_type: str, Optional
2639
+ :param _headers: set to override the headers for a single
2640
+ request; this effectively ignores the headers
2641
+ in the spec for a single request.
2642
+ :type _headers: dict, optional
2643
+ :param _host_index: set to override the host_index for a single
2644
+ request; this effectively ignores the host_index
2645
+ in the spec for a single request.
2646
+ :type _host_index: int, optional
2647
+ :return: Returns the result object.
2648
+ """ # noqa: E501
2649
+
2650
+ _param = self._read_serialize(
2651
+ group_href=group_href,
2652
+ x_task_diagnostics=x_task_diagnostics,
2653
+ fields=fields,
2654
+ exclude_fields=exclude_fields,
2655
+ _request_auth=_request_auth,
2656
+ _content_type=_content_type,
2657
+ _headers=_headers,
2658
+ _host_index=_host_index
2659
+ )
2660
+
2661
+ _response_types_map: Dict[str, Optional[str]] = {
2662
+ '200': "GroupResponse",
2663
+ }
2664
+ response_data = self.api_client.call_api(
2665
+ *_param,
2666
+ _request_timeout=_request_timeout
2667
+ )
2668
+ return response_data.response
2669
+
2670
+
2671
+ def _read_serialize(
2672
+ self,
2673
+ group_href,
2674
+ x_task_diagnostics,
2675
+ fields,
2676
+ exclude_fields,
2677
+ _request_auth,
2678
+ _content_type,
2679
+ _headers,
2680
+ _host_index,
2681
+ ) -> RequestSerialized:
2682
+
2683
+ _host = None
2684
+
2685
+ _collection_formats: Dict[str, str] = {
2686
+ 'X-Task-Diagnostics': 'csv',
2687
+ 'fields': 'multi',
2688
+ 'exclude_fields': 'multi',
2689
+ }
2690
+
2691
+ _path_params: Dict[str, str] = {}
2692
+ _query_params: List[Tuple[str, str]] = []
2693
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2694
+ _form_params: List[Tuple[str, str]] = []
2695
+ _files: Dict[
2696
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2697
+ ] = {}
2698
+ _body_params: Optional[bytes] = None
2699
+
2700
+ # process the path parameters
2701
+ if group_href is not None:
2702
+ _path_params['group_href'] = group_href
2703
+ # process the query parameters
2704
+ if fields is not None:
2705
+
2706
+ _query_params.append(('fields', fields))
2707
+
2708
+ if exclude_fields is not None:
2709
+
2710
+ _query_params.append(('exclude_fields', exclude_fields))
2711
+
2712
+ # process the header parameters
2713
+ if x_task_diagnostics is not None:
2714
+ _header_params['X-Task-Diagnostics'] = x_task_diagnostics
2715
+ # process the form parameters
2716
+ # process the body parameter
2717
+
2718
+
2719
+ # set the HTTP header `Accept`
2720
+ if 'Accept' not in _header_params:
2721
+ _header_params['Accept'] = self.api_client.select_header_accept(
2722
+ [
2723
+ 'application/json'
2724
+ ]
2725
+ )
2726
+
2727
+
2728
+ # authentication setting
2729
+ _auth_settings: List[str] = [
2730
+ 'json_header_remote_authentication',
2731
+ 'basicAuth',
2732
+ 'cookieAuth'
2733
+ ]
2734
+
2735
+ return self.api_client.param_serialize(
2736
+ method='GET',
2737
+ resource_path='{group_href}',
2738
+ path_params=_path_params,
2739
+ query_params=_query_params,
2740
+ header_params=_header_params,
2741
+ body=_body_params,
2742
+ post_params=_form_params,
2743
+ files=_files,
2744
+ auth_settings=_auth_settings,
2745
+ collection_formats=_collection_formats,
2746
+ _host=_host,
2747
+ _request_auth=_request_auth
2748
+ )
2749
+
2750
+
2751
+
2752
+
2753
+ @validate_call
2754
+ def remove_role(
2755
+ self,
2756
+ group_href: StrictStr,
2757
+ nested_role: NestedRole,
2758
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
2759
+ _request_timeout: Union[
2760
+ None,
2761
+ Annotated[StrictFloat, Field(gt=0)],
2762
+ Tuple[
2763
+ Annotated[StrictFloat, Field(gt=0)],
2764
+ Annotated[StrictFloat, Field(gt=0)]
2765
+ ]
2766
+ ] = None,
2767
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2768
+ _content_type: Optional[StrictStr] = None,
2769
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2770
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2771
+ ) -> NestedRoleResponse:
2772
+ """Remove a role
2773
+
2774
+ Remove a role for this object from users/groups.
2775
+
2776
+ :param group_href: (required)
2777
+ :type group_href: str
2778
+ :param nested_role: (required)
2779
+ :type nested_role: NestedRole
2780
+ :param x_task_diagnostics: List of profilers to use on tasks.
2781
+ :type x_task_diagnostics: List[str]
2782
+ :param _request_timeout: timeout setting for this request. If one
2783
+ number provided, it will be total request
2784
+ timeout. It can also be a pair (tuple) of
2785
+ (connection, read) timeouts.
2786
+ :type _request_timeout: int, tuple(int, int), optional
2787
+ :param _request_auth: set to override the auth_settings for an a single
2788
+ request; this effectively ignores the
2789
+ authentication in the spec for a single request.
2790
+ :type _request_auth: dict, optional
2791
+ :param _content_type: force content-type for the request.
2792
+ :type _content_type: str, Optional
2793
+ :param _headers: set to override the headers for a single
2794
+ request; this effectively ignores the headers
2795
+ in the spec for a single request.
2796
+ :type _headers: dict, optional
2797
+ :param _host_index: set to override the host_index for a single
2798
+ request; this effectively ignores the host_index
2799
+ in the spec for a single request.
2800
+ :type _host_index: int, optional
2801
+ :return: Returns the result object.
2802
+ """ # noqa: E501
2803
+
2804
+ _param = self._remove_role_serialize(
2805
+ group_href=group_href,
2806
+ nested_role=nested_role,
2807
+ x_task_diagnostics=x_task_diagnostics,
2808
+ _request_auth=_request_auth,
2809
+ _content_type=_content_type,
2810
+ _headers=_headers,
2811
+ _host_index=_host_index
2812
+ )
2813
+
2814
+ _response_types_map: Dict[str, Optional[str]] = {
2815
+ '201': "NestedRoleResponse",
2816
+ }
2817
+ response_data = self.api_client.call_api(
2818
+ *_param,
2819
+ _request_timeout=_request_timeout
2820
+ )
2821
+ response_data.read()
2822
+ return self.api_client.response_deserialize(
2823
+ response_data=response_data,
2824
+ response_types_map=_response_types_map,
2825
+ ).data
2826
+
2827
+
2828
+ @validate_call
2829
+ def remove_role_with_http_info(
2830
+ self,
2831
+ group_href: StrictStr,
2832
+ nested_role: NestedRole,
2833
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
2834
+ _request_timeout: Union[
2835
+ None,
2836
+ Annotated[StrictFloat, Field(gt=0)],
2837
+ Tuple[
2838
+ Annotated[StrictFloat, Field(gt=0)],
2839
+ Annotated[StrictFloat, Field(gt=0)]
2840
+ ]
2841
+ ] = None,
2842
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2843
+ _content_type: Optional[StrictStr] = None,
2844
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2845
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2846
+ ) -> ApiResponse[NestedRoleResponse]:
2847
+ """Remove a role
2848
+
2849
+ Remove a role for this object from users/groups.
2850
+
2851
+ :param group_href: (required)
2852
+ :type group_href: str
2853
+ :param nested_role: (required)
2854
+ :type nested_role: NestedRole
2855
+ :param x_task_diagnostics: List of profilers to use on tasks.
2856
+ :type x_task_diagnostics: List[str]
2857
+ :param _request_timeout: timeout setting for this request. If one
2858
+ number provided, it will be total request
2859
+ timeout. It can also be a pair (tuple) of
2860
+ (connection, read) timeouts.
2861
+ :type _request_timeout: int, tuple(int, int), optional
2862
+ :param _request_auth: set to override the auth_settings for an a single
2863
+ request; this effectively ignores the
2864
+ authentication in the spec for a single request.
2865
+ :type _request_auth: dict, optional
2866
+ :param _content_type: force content-type for the request.
2867
+ :type _content_type: str, Optional
2868
+ :param _headers: set to override the headers for a single
2869
+ request; this effectively ignores the headers
2870
+ in the spec for a single request.
2871
+ :type _headers: dict, optional
2872
+ :param _host_index: set to override the host_index for a single
2873
+ request; this effectively ignores the host_index
2874
+ in the spec for a single request.
2875
+ :type _host_index: int, optional
2876
+ :return: Returns the result object.
2877
+ """ # noqa: E501
2878
+
2879
+ _param = self._remove_role_serialize(
2880
+ group_href=group_href,
2881
+ nested_role=nested_role,
2882
+ x_task_diagnostics=x_task_diagnostics,
2883
+ _request_auth=_request_auth,
2884
+ _content_type=_content_type,
2885
+ _headers=_headers,
2886
+ _host_index=_host_index
2887
+ )
2888
+
2889
+ _response_types_map: Dict[str, Optional[str]] = {
2890
+ '201': "NestedRoleResponse",
2891
+ }
2892
+ response_data = self.api_client.call_api(
2893
+ *_param,
2894
+ _request_timeout=_request_timeout
2895
+ )
2896
+ response_data.read()
2897
+ return self.api_client.response_deserialize(
2898
+ response_data=response_data,
2899
+ response_types_map=_response_types_map,
2900
+ )
2901
+
2902
+
2903
+ @validate_call
2904
+ def remove_role_without_preload_content(
2905
+ self,
2906
+ group_href: StrictStr,
2907
+ nested_role: NestedRole,
2908
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
2909
+ _request_timeout: Union[
2910
+ None,
2911
+ Annotated[StrictFloat, Field(gt=0)],
2912
+ Tuple[
2913
+ Annotated[StrictFloat, Field(gt=0)],
2914
+ Annotated[StrictFloat, Field(gt=0)]
2915
+ ]
2916
+ ] = None,
2917
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2918
+ _content_type: Optional[StrictStr] = None,
2919
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2920
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2921
+ ) -> RESTResponseType:
2922
+ """Remove a role
2923
+
2924
+ Remove a role for this object from users/groups.
2925
+
2926
+ :param group_href: (required)
2927
+ :type group_href: str
2928
+ :param nested_role: (required)
2929
+ :type nested_role: NestedRole
2930
+ :param x_task_diagnostics: List of profilers to use on tasks.
2931
+ :type x_task_diagnostics: List[str]
2932
+ :param _request_timeout: timeout setting for this request. If one
2933
+ number provided, it will be total request
2934
+ timeout. It can also be a pair (tuple) of
2935
+ (connection, read) timeouts.
2936
+ :type _request_timeout: int, tuple(int, int), optional
2937
+ :param _request_auth: set to override the auth_settings for an a single
2938
+ request; this effectively ignores the
2939
+ authentication in the spec for a single request.
2940
+ :type _request_auth: dict, optional
2941
+ :param _content_type: force content-type for the request.
2942
+ :type _content_type: str, Optional
2943
+ :param _headers: set to override the headers for a single
2944
+ request; this effectively ignores the headers
2945
+ in the spec for a single request.
2946
+ :type _headers: dict, optional
2947
+ :param _host_index: set to override the host_index for a single
2948
+ request; this effectively ignores the host_index
2949
+ in the spec for a single request.
2950
+ :type _host_index: int, optional
2951
+ :return: Returns the result object.
2952
+ """ # noqa: E501
2953
+
2954
+ _param = self._remove_role_serialize(
2955
+ group_href=group_href,
2956
+ nested_role=nested_role,
2957
+ x_task_diagnostics=x_task_diagnostics,
2958
+ _request_auth=_request_auth,
2959
+ _content_type=_content_type,
2960
+ _headers=_headers,
2961
+ _host_index=_host_index
2962
+ )
2963
+
2964
+ _response_types_map: Dict[str, Optional[str]] = {
2965
+ '201': "NestedRoleResponse",
2966
+ }
2967
+ response_data = self.api_client.call_api(
2968
+ *_param,
2969
+ _request_timeout=_request_timeout
2970
+ )
2971
+ return response_data.response
2972
+
2973
+
2974
+ def _remove_role_serialize(
2975
+ self,
2976
+ group_href,
2977
+ nested_role,
2978
+ x_task_diagnostics,
2979
+ _request_auth,
2980
+ _content_type,
2981
+ _headers,
2982
+ _host_index,
2983
+ ) -> RequestSerialized:
2984
+
2985
+ _host = None
2986
+
2987
+ _collection_formats: Dict[str, str] = {
2988
+ 'X-Task-Diagnostics': 'csv',
2989
+ }
2990
+
2991
+ _path_params: Dict[str, str] = {}
2992
+ _query_params: List[Tuple[str, str]] = []
2993
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2994
+ _form_params: List[Tuple[str, str]] = []
2995
+ _files: Dict[
2996
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2997
+ ] = {}
2998
+ _body_params: Optional[bytes] = None
2999
+
3000
+ # process the path parameters
3001
+ if group_href is not None:
3002
+ _path_params['group_href'] = group_href
3003
+ # process the query parameters
3004
+ # process the header parameters
3005
+ if x_task_diagnostics is not None:
3006
+ _header_params['X-Task-Diagnostics'] = x_task_diagnostics
3007
+ # process the form parameters
3008
+ # process the body parameter
3009
+ if nested_role is not None:
3010
+ _body_params = nested_role
3011
+
3012
+
3013
+ # set the HTTP header `Accept`
3014
+ if 'Accept' not in _header_params:
3015
+ _header_params['Accept'] = self.api_client.select_header_accept(
3016
+ [
3017
+ 'application/json'
3018
+ ]
3019
+ )
3020
+
3021
+ # set the HTTP header `Content-Type`
3022
+ if _content_type:
3023
+ _header_params['Content-Type'] = _content_type
3024
+ else:
3025
+ _default_content_type = (
3026
+ self.api_client.select_header_content_type(
3027
+ [
3028
+ 'application/json',
3029
+ 'application/x-www-form-urlencoded',
3030
+ 'multipart/form-data'
3031
+ ]
3032
+ )
3033
+ )
3034
+ if _default_content_type is not None:
3035
+ _header_params['Content-Type'] = _default_content_type
3036
+
3037
+ # authentication setting
3038
+ _auth_settings: List[str] = [
3039
+ 'json_header_remote_authentication',
3040
+ 'basicAuth',
3041
+ 'cookieAuth'
3042
+ ]
3043
+
3044
+ return self.api_client.param_serialize(
3045
+ method='POST',
3046
+ resource_path='{group_href}remove_role/',
3047
+ path_params=_path_params,
3048
+ query_params=_query_params,
3049
+ header_params=_header_params,
3050
+ body=_body_params,
3051
+ post_params=_form_params,
3052
+ files=_files,
3053
+ auth_settings=_auth_settings,
3054
+ collection_formats=_collection_formats,
3055
+ _host=_host,
3056
+ _request_auth=_request_auth
3057
+ )
3058
+
3059
+
3060
+
3061
+
3062
+ @validate_call
3063
+ def update(
3064
+ self,
3065
+ group_href: StrictStr,
3066
+ group: Group,
3067
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
3068
+ _request_timeout: Union[
3069
+ None,
3070
+ Annotated[StrictFloat, Field(gt=0)],
3071
+ Tuple[
3072
+ Annotated[StrictFloat, Field(gt=0)],
3073
+ Annotated[StrictFloat, Field(gt=0)]
3074
+ ]
3075
+ ] = None,
3076
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3077
+ _content_type: Optional[StrictStr] = None,
3078
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3079
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3080
+ ) -> GroupResponse:
3081
+ """Update a group
3082
+
3083
+ ViewSet for Group.
3084
+
3085
+ :param group_href: (required)
3086
+ :type group_href: str
3087
+ :param group: (required)
3088
+ :type group: Group
3089
+ :param x_task_diagnostics: List of profilers to use on tasks.
3090
+ :type x_task_diagnostics: List[str]
3091
+ :param _request_timeout: timeout setting for this request. If one
3092
+ number provided, it will be total request
3093
+ timeout. It can also be a pair (tuple) of
3094
+ (connection, read) timeouts.
3095
+ :type _request_timeout: int, tuple(int, int), optional
3096
+ :param _request_auth: set to override the auth_settings for an a single
3097
+ request; this effectively ignores the
3098
+ authentication in the spec for a single request.
3099
+ :type _request_auth: dict, optional
3100
+ :param _content_type: force content-type for the request.
3101
+ :type _content_type: str, Optional
3102
+ :param _headers: set to override the headers for a single
3103
+ request; this effectively ignores the headers
3104
+ in the spec for a single request.
3105
+ :type _headers: dict, optional
3106
+ :param _host_index: set to override the host_index for a single
3107
+ request; this effectively ignores the host_index
3108
+ in the spec for a single request.
3109
+ :type _host_index: int, optional
3110
+ :return: Returns the result object.
3111
+ """ # noqa: E501
3112
+
3113
+ _param = self._update_serialize(
3114
+ group_href=group_href,
3115
+ group=group,
3116
+ x_task_diagnostics=x_task_diagnostics,
3117
+ _request_auth=_request_auth,
3118
+ _content_type=_content_type,
3119
+ _headers=_headers,
3120
+ _host_index=_host_index
3121
+ )
3122
+
3123
+ _response_types_map: Dict[str, Optional[str]] = {
3124
+ '200': "GroupResponse",
3125
+ }
3126
+ response_data = self.api_client.call_api(
3127
+ *_param,
3128
+ _request_timeout=_request_timeout
3129
+ )
3130
+ response_data.read()
3131
+ return self.api_client.response_deserialize(
3132
+ response_data=response_data,
3133
+ response_types_map=_response_types_map,
3134
+ ).data
3135
+
3136
+
3137
+ @validate_call
3138
+ def update_with_http_info(
3139
+ self,
3140
+ group_href: StrictStr,
3141
+ group: Group,
3142
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
3143
+ _request_timeout: Union[
3144
+ None,
3145
+ Annotated[StrictFloat, Field(gt=0)],
3146
+ Tuple[
3147
+ Annotated[StrictFloat, Field(gt=0)],
3148
+ Annotated[StrictFloat, Field(gt=0)]
3149
+ ]
3150
+ ] = None,
3151
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3152
+ _content_type: Optional[StrictStr] = None,
3153
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3154
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3155
+ ) -> ApiResponse[GroupResponse]:
3156
+ """Update a group
3157
+
3158
+ ViewSet for Group.
3159
+
3160
+ :param group_href: (required)
3161
+ :type group_href: str
3162
+ :param group: (required)
3163
+ :type group: Group
3164
+ :param x_task_diagnostics: List of profilers to use on tasks.
3165
+ :type x_task_diagnostics: List[str]
3166
+ :param _request_timeout: timeout setting for this request. If one
3167
+ number provided, it will be total request
3168
+ timeout. It can also be a pair (tuple) of
3169
+ (connection, read) timeouts.
3170
+ :type _request_timeout: int, tuple(int, int), optional
3171
+ :param _request_auth: set to override the auth_settings for an a single
3172
+ request; this effectively ignores the
3173
+ authentication in the spec for a single request.
3174
+ :type _request_auth: dict, optional
3175
+ :param _content_type: force content-type for the request.
3176
+ :type _content_type: str, Optional
3177
+ :param _headers: set to override the headers for a single
3178
+ request; this effectively ignores the headers
3179
+ in the spec for a single request.
3180
+ :type _headers: dict, optional
3181
+ :param _host_index: set to override the host_index for a single
3182
+ request; this effectively ignores the host_index
3183
+ in the spec for a single request.
3184
+ :type _host_index: int, optional
3185
+ :return: Returns the result object.
3186
+ """ # noqa: E501
3187
+
3188
+ _param = self._update_serialize(
3189
+ group_href=group_href,
3190
+ group=group,
3191
+ x_task_diagnostics=x_task_diagnostics,
3192
+ _request_auth=_request_auth,
3193
+ _content_type=_content_type,
3194
+ _headers=_headers,
3195
+ _host_index=_host_index
3196
+ )
3197
+
3198
+ _response_types_map: Dict[str, Optional[str]] = {
3199
+ '200': "GroupResponse",
3200
+ }
3201
+ response_data = self.api_client.call_api(
3202
+ *_param,
3203
+ _request_timeout=_request_timeout
3204
+ )
3205
+ response_data.read()
3206
+ return self.api_client.response_deserialize(
3207
+ response_data=response_data,
3208
+ response_types_map=_response_types_map,
3209
+ )
3210
+
3211
+
3212
+ @validate_call
3213
+ def update_without_preload_content(
3214
+ self,
3215
+ group_href: StrictStr,
3216
+ group: Group,
3217
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
3218
+ _request_timeout: Union[
3219
+ None,
3220
+ Annotated[StrictFloat, Field(gt=0)],
3221
+ Tuple[
3222
+ Annotated[StrictFloat, Field(gt=0)],
3223
+ Annotated[StrictFloat, Field(gt=0)]
3224
+ ]
3225
+ ] = None,
3226
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3227
+ _content_type: Optional[StrictStr] = None,
3228
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3229
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3230
+ ) -> RESTResponseType:
3231
+ """Update a group
3232
+
3233
+ ViewSet for Group.
3234
+
3235
+ :param group_href: (required)
3236
+ :type group_href: str
3237
+ :param group: (required)
3238
+ :type group: Group
3239
+ :param x_task_diagnostics: List of profilers to use on tasks.
3240
+ :type x_task_diagnostics: List[str]
3241
+ :param _request_timeout: timeout setting for this request. If one
3242
+ number provided, it will be total request
3243
+ timeout. It can also be a pair (tuple) of
3244
+ (connection, read) timeouts.
3245
+ :type _request_timeout: int, tuple(int, int), optional
3246
+ :param _request_auth: set to override the auth_settings for an a single
3247
+ request; this effectively ignores the
3248
+ authentication in the spec for a single request.
3249
+ :type _request_auth: dict, optional
3250
+ :param _content_type: force content-type for the request.
3251
+ :type _content_type: str, Optional
3252
+ :param _headers: set to override the headers for a single
3253
+ request; this effectively ignores the headers
3254
+ in the spec for a single request.
3255
+ :type _headers: dict, optional
3256
+ :param _host_index: set to override the host_index for a single
3257
+ request; this effectively ignores the host_index
3258
+ in the spec for a single request.
3259
+ :type _host_index: int, optional
3260
+ :return: Returns the result object.
3261
+ """ # noqa: E501
3262
+
3263
+ _param = self._update_serialize(
3264
+ group_href=group_href,
3265
+ group=group,
3266
+ x_task_diagnostics=x_task_diagnostics,
3267
+ _request_auth=_request_auth,
3268
+ _content_type=_content_type,
3269
+ _headers=_headers,
3270
+ _host_index=_host_index
3271
+ )
3272
+
3273
+ _response_types_map: Dict[str, Optional[str]] = {
3274
+ '200': "GroupResponse",
3275
+ }
3276
+ response_data = self.api_client.call_api(
3277
+ *_param,
3278
+ _request_timeout=_request_timeout
3279
+ )
3280
+ return response_data.response
3281
+
3282
+
3283
+ def _update_serialize(
3284
+ self,
3285
+ group_href,
3286
+ group,
3287
+ x_task_diagnostics,
3288
+ _request_auth,
3289
+ _content_type,
3290
+ _headers,
3291
+ _host_index,
3292
+ ) -> RequestSerialized:
3293
+
3294
+ _host = None
3295
+
3296
+ _collection_formats: Dict[str, str] = {
3297
+ 'X-Task-Diagnostics': 'csv',
3298
+ }
3299
+
3300
+ _path_params: Dict[str, str] = {}
3301
+ _query_params: List[Tuple[str, str]] = []
3302
+ _header_params: Dict[str, Optional[str]] = _headers or {}
3303
+ _form_params: List[Tuple[str, str]] = []
3304
+ _files: Dict[
3305
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
3306
+ ] = {}
3307
+ _body_params: Optional[bytes] = None
3308
+
3309
+ # process the path parameters
3310
+ if group_href is not None:
3311
+ _path_params['group_href'] = group_href
3312
+ # process the query parameters
3313
+ # process the header parameters
3314
+ if x_task_diagnostics is not None:
3315
+ _header_params['X-Task-Diagnostics'] = x_task_diagnostics
3316
+ # process the form parameters
3317
+ # process the body parameter
3318
+ if group is not None:
3319
+ _body_params = group
3320
+
3321
+
3322
+ # set the HTTP header `Accept`
3323
+ if 'Accept' not in _header_params:
3324
+ _header_params['Accept'] = self.api_client.select_header_accept(
3325
+ [
3326
+ 'application/json'
3327
+ ]
3328
+ )
3329
+
3330
+ # set the HTTP header `Content-Type`
3331
+ if _content_type:
3332
+ _header_params['Content-Type'] = _content_type
3333
+ else:
3334
+ _default_content_type = (
3335
+ self.api_client.select_header_content_type(
3336
+ [
3337
+ 'application/json',
3338
+ 'application/x-www-form-urlencoded',
3339
+ 'multipart/form-data'
3340
+ ]
3341
+ )
3342
+ )
3343
+ if _default_content_type is not None:
3344
+ _header_params['Content-Type'] = _default_content_type
3345
+
3346
+ # authentication setting
3347
+ _auth_settings: List[str] = [
3348
+ 'json_header_remote_authentication',
3349
+ 'basicAuth',
3350
+ 'cookieAuth'
3351
+ ]
3352
+
3353
+ return self.api_client.param_serialize(
3354
+ method='PUT',
3355
+ resource_path='{group_href}',
3356
+ path_params=_path_params,
3357
+ query_params=_query_params,
3358
+ header_params=_header_params,
3359
+ body=_body_params,
3360
+ post_params=_form_params,
3361
+ files=_files,
3362
+ auth_settings=_auth_settings,
3363
+ collection_formats=_collection_formats,
3364
+ _host=_host,
3365
+ _request_auth=_request_auth
3366
+ )
3367
+
3368
+