authentik-api 2025.12.4

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.
Files changed (1727) hide show
  1. checksums.yaml +7 -0
  2. data/CODE_OF_CONDUCT.md +10 -0
  3. data/LICENSE.md +27 -0
  4. data/README.md +90 -0
  5. data/README_API.md +2016 -0
  6. data/Rakefile +10 -0
  7. data/lib/authentik/api/api/admin_api.rb +876 -0
  8. data/lib/authentik/api/api/authenticators_api.rb +5465 -0
  9. data/lib/authentik/api/api/core_api.rb +4576 -0
  10. data/lib/authentik/api/api/crypto_api.rb +685 -0
  11. data/lib/authentik/api/api/endpoints_api.rb +3196 -0
  12. data/lib/authentik/api/api/enterprise_api.rb +643 -0
  13. data/lib/authentik/api/api/events_api.rb +2210 -0
  14. data/lib/authentik/api/api/flows_api.rb +1552 -0
  15. data/lib/authentik/api/api/managed_api.rb +594 -0
  16. data/lib/authentik/api/api/oauth2_api.rb +784 -0
  17. data/lib/authentik/api/api/outposts_api.rb +2282 -0
  18. data/lib/authentik/api/api/policies_api.rb +5147 -0
  19. data/lib/authentik/api/api/propertymappings_api.rb +7382 -0
  20. data/lib/authentik/api/api/providers_api.rb +7879 -0
  21. data/lib/authentik/api/api/rac_api.rb +880 -0
  22. data/lib/authentik/api/api/rbac_api.rb +1528 -0
  23. data/lib/authentik/api/api/reports_api.rb +199 -0
  24. data/lib/authentik/api/api/root_api.rb +71 -0
  25. data/lib/authentik/api/api/schema_api.rb +85 -0
  26. data/lib/authentik/api/api/sources_api.rb +11729 -0
  27. data/lib/authentik/api/api/ssf_api.rb +157 -0
  28. data/lib/authentik/api/api/stages_api.rb +13639 -0
  29. data/lib/authentik/api/api/tasks_api.rb +682 -0
  30. data/lib/authentik/api/api/tenants_api.rb +950 -0
  31. data/lib/authentik/api/api_client.rb +391 -0
  32. data/lib/authentik/api/api_error.rb +52 -0
  33. data/lib/authentik/api/api_model_base.rb +82 -0
  34. data/lib/authentik/api/configuration.rb +302 -0
  35. data/lib/authentik/api/inflector.rb +31 -0
  36. data/lib/authentik/api/models/access_denied_challenge.rb +225 -0
  37. data/lib/authentik/api/models/agent_authentication_response.rb +159 -0
  38. data/lib/authentik/api/models/agent_config.rb +377 -0
  39. data/lib/authentik/api/models/agent_connector.rb +443 -0
  40. data/lib/authentik/api/models/agent_connector_request.rb +420 -0
  41. data/lib/authentik/api/models/agent_psso_device_registration_request.rb +273 -0
  42. data/lib/authentik/api/models/agent_psso_device_registration_response.rb +289 -0
  43. data/lib/authentik/api/models/agent_psso_user_registration_request.rb +238 -0
  44. data/lib/authentik/api/models/agent_token_response.rb +168 -0
  45. data/lib/authentik/api/models/alg_enum.rb +34 -0
  46. data/lib/authentik/api/models/app.rb +185 -0
  47. data/lib/authentik/api/models/app_enum.rb +108 -0
  48. data/lib/authentik/api/models/apple_challenge_response_request.rb +163 -0
  49. data/lib/authentik/api/models/apple_login_challenge.rb +268 -0
  50. data/lib/authentik/api/models/application.rb +423 -0
  51. data/lib/authentik/api/models/application_entitlement.rb +222 -0
  52. data/lib/authentik/api/models/application_entitlement_request.rb +205 -0
  53. data/lib/authentik/api/models/application_request.rb +323 -0
  54. data/lib/authentik/api/models/auth_type_enum.rb +34 -0
  55. data/lib/authentik/api/models/authenticated_session.rb +349 -0
  56. data/lib/authentik/api/models/authenticated_session_asn.rb +169 -0
  57. data/lib/authentik/api/models/authenticated_session_geo_ip.rb +207 -0
  58. data/lib/authentik/api/models/authenticated_session_user_agent.rb +237 -0
  59. data/lib/authentik/api/models/authenticated_session_user_agent_device.rb +211 -0
  60. data/lib/authentik/api/models/authenticated_session_user_agent_os.rb +263 -0
  61. data/lib/authentik/api/models/authenticated_session_user_agent_user_agent.rb +237 -0
  62. data/lib/authentik/api/models/authentication_enum.rb +38 -0
  63. data/lib/authentik/api/models/authenticator_attachment_enum.rb +34 -0
  64. data/lib/authentik/api/models/authenticator_duo_challenge.rb +294 -0
  65. data/lib/authentik/api/models/authenticator_duo_challenge_response_request.rb +163 -0
  66. data/lib/authentik/api/models/authenticator_duo_stage.rb +402 -0
  67. data/lib/authentik/api/models/authenticator_duo_stage_device_import_response.rb +184 -0
  68. data/lib/authentik/api/models/authenticator_duo_stage_manual_device_import_request.rb +202 -0
  69. data/lib/authentik/api/models/authenticator_duo_stage_request.rb +311 -0
  70. data/lib/authentik/api/models/authenticator_email_challenge.rb +237 -0
  71. data/lib/authentik/api/models/authenticator_email_challenge_response_request.rb +219 -0
  72. data/lib/authentik/api/models/authenticator_email_stage.rb +526 -0
  73. data/lib/authentik/api/models/authenticator_email_stage_request.rb +458 -0
  74. data/lib/authentik/api/models/authenticator_endpoint_gdtc_stage.rb +369 -0
  75. data/lib/authentik/api/models/authenticator_endpoint_gdtc_stage_request.rb +216 -0
  76. data/lib/authentik/api/models/authenticator_sms_challenge.rb +227 -0
  77. data/lib/authentik/api/models/authenticator_sms_challenge_response_request.rb +219 -0
  78. data/lib/authentik/api/models/authenticator_sms_stage.rb +506 -0
  79. data/lib/authentik/api/models/authenticator_sms_stage_request.rb +380 -0
  80. data/lib/authentik/api/models/authenticator_static_challenge.rb +244 -0
  81. data/lib/authentik/api/models/authenticator_static_challenge_response_request.rb +163 -0
  82. data/lib/authentik/api/models/authenticator_static_stage.rb +415 -0
  83. data/lib/authentik/api/models/authenticator_static_stage_request.rb +262 -0
  84. data/lib/authentik/api/models/authenticator_totp_challenge.rb +242 -0
  85. data/lib/authentik/api/models/authenticator_totp_challenge_response_request.rb +198 -0
  86. data/lib/authentik/api/models/authenticator_totp_stage.rb +389 -0
  87. data/lib/authentik/api/models/authenticator_totp_stage_request.rb +236 -0
  88. data/lib/authentik/api/models/authenticator_validate_stage.rb +435 -0
  89. data/lib/authentik/api/models/authenticator_validate_stage_request.rb +273 -0
  90. data/lib/authentik/api/models/authenticator_validation_challenge.rb +272 -0
  91. data/lib/authentik/api/models/authenticator_validation_challenge_response_request.rb +248 -0
  92. data/lib/authentik/api/models/authenticator_web_authn_challenge.rb +244 -0
  93. data/lib/authentik/api/models/authenticator_web_authn_challenge_response_request.rb +191 -0
  94. data/lib/authentik/api/models/authenticator_web_authn_stage.rb +467 -0
  95. data/lib/authentik/api/models/authenticator_web_authn_stage_request.rb +286 -0
  96. data/lib/authentik/api/models/authorization_code_auth_method_enum.rb +34 -0
  97. data/lib/authentik/api/models/auto_submit_challenge_response_request.rb +163 -0
  98. data/lib/authentik/api/models/autosubmit_challenge.rb +227 -0
  99. data/lib/authentik/api/models/backends_enum.rb +36 -0
  100. data/lib/authentik/api/models/binding_type_enum.rb +35 -0
  101. data/lib/authentik/api/models/blueprint_file.rb +236 -0
  102. data/lib/authentik/api/models/blueprint_instance.rb +381 -0
  103. data/lib/authentik/api/models/blueprint_instance_request.rb +208 -0
  104. data/lib/authentik/api/models/blueprint_instance_status_enum.rb +37 -0
  105. data/lib/authentik/api/models/brand.rb +345 -0
  106. data/lib/authentik/api/models/brand_request.rb +404 -0
  107. data/lib/authentik/api/models/cache.rb +159 -0
  108. data/lib/authentik/api/models/capabilities_enum.rb +39 -0
  109. data/lib/authentik/api/models/captcha_challenge.rb +294 -0
  110. data/lib/authentik/api/models/captcha_challenge_response_request.rb +198 -0
  111. data/lib/authentik/api/models/captcha_stage.rb +403 -0
  112. data/lib/authentik/api/models/captcha_stage_request.rb +333 -0
  113. data/lib/authentik/api/models/cert_attribute_enum.rb +35 -0
  114. data/lib/authentik/api/models/certificate_data.rb +159 -0
  115. data/lib/authentik/api/models/certificate_generation_request.rb +234 -0
  116. data/lib/authentik/api/models/certificate_key_pair.rb +365 -0
  117. data/lib/authentik/api/models/certificate_key_pair_request.rb +214 -0
  118. data/lib/authentik/api/models/challenge_types.rb +105 -0
  119. data/lib/authentik/api/models/client_type_enum.rb +34 -0
  120. data/lib/authentik/api/models/compatibility_mode_enum.rb +36 -0
  121. data/lib/authentik/api/models/config.rb +265 -0
  122. data/lib/authentik/api/models/connection_token.rb +272 -0
  123. data/lib/authentik/api/models/connection_token_request.rb +194 -0
  124. data/lib/authentik/api/models/connector.rb +284 -0
  125. data/lib/authentik/api/models/consent_challenge.rb +307 -0
  126. data/lib/authentik/api/models/consent_challenge_response_request.rb +198 -0
  127. data/lib/authentik/api/models/consent_permission.rb +185 -0
  128. data/lib/authentik/api/models/consent_stage.rb +362 -0
  129. data/lib/authentik/api/models/consent_stage_mode_enum.rb +35 -0
  130. data/lib/authentik/api/models/consent_stage_request.rb +228 -0
  131. data/lib/authentik/api/models/content_type.rb +236 -0
  132. data/lib/authentik/api/models/contextual_flow_info.rb +235 -0
  133. data/lib/authentik/api/models/contextual_flow_info_layout_enum.rb +37 -0
  134. data/lib/authentik/api/models/country_code_enum.rb +281 -0
  135. data/lib/authentik/api/models/current_brand.rb +469 -0
  136. data/lib/authentik/api/models/current_brand_flags.rb +184 -0
  137. data/lib/authentik/api/models/data_export.rb +317 -0
  138. data/lib/authentik/api/models/delivery_method_enum.rb +34 -0
  139. data/lib/authentik/api/models/denied_action_enum.rb +35 -0
  140. data/lib/authentik/api/models/deny_stage.rb +330 -0
  141. data/lib/authentik/api/models/deny_stage_request.rb +177 -0
  142. data/lib/authentik/api/models/detailed_country.rb +206 -0
  143. data/lib/authentik/api/models/detailed_country_field.rb +206 -0
  144. data/lib/authentik/api/models/device.rb +409 -0
  145. data/lib/authentik/api/models/device_access_group.rb +184 -0
  146. data/lib/authentik/api/models/device_access_group_request.rb +167 -0
  147. data/lib/authentik/api/models/device_challenge.rb +247 -0
  148. data/lib/authentik/api/models/device_challenge_request.rb +256 -0
  149. data/lib/authentik/api/models/device_classes_enum.rb +38 -0
  150. data/lib/authentik/api/models/device_connection.rb +222 -0
  151. data/lib/authentik/api/models/device_fact_snapshot.rb +222 -0
  152. data/lib/authentik/api/models/device_facts.rb +233 -0
  153. data/lib/authentik/api/models/device_facts_os_family.rb +40 -0
  154. data/lib/authentik/api/models/device_facts_request.rb +233 -0
  155. data/lib/authentik/api/models/device_group.rb +167 -0
  156. data/lib/authentik/api/models/device_group_request.rb +195 -0
  157. data/lib/authentik/api/models/device_summary.rb +211 -0
  158. data/lib/authentik/api/models/device_user.rb +185 -0
  159. data/lib/authentik/api/models/device_user_binding.rb +451 -0
  160. data/lib/authentik/api/models/device_user_binding_request.rb +309 -0
  161. data/lib/authentik/api/models/device_user_request.rb +251 -0
  162. data/lib/authentik/api/models/digest_algorithm_enum.rb +36 -0
  163. data/lib/authentik/api/models/digits_enum.rb +34 -0
  164. data/lib/authentik/api/models/disk.rb +222 -0
  165. data/lib/authentik/api/models/disk_request.rb +240 -0
  166. data/lib/authentik/api/models/docker_service_connection.rb +351 -0
  167. data/lib/authentik/api/models/docker_service_connection_request.rb +236 -0
  168. data/lib/authentik/api/models/domain.rb +229 -0
  169. data/lib/authentik/api/models/domain_request.rb +212 -0
  170. data/lib/authentik/api/models/dummy_challenge.rb +190 -0
  171. data/lib/authentik/api/models/dummy_challenge_response_request.rb +163 -0
  172. data/lib/authentik/api/models/dummy_policy.rb +413 -0
  173. data/lib/authentik/api/models/dummy_policy_request.rb +261 -0
  174. data/lib/authentik/api/models/dummy_stage.rb +330 -0
  175. data/lib/authentik/api/models/dummy_stage_request.rb +177 -0
  176. data/lib/authentik/api/models/duo_device.rb +221 -0
  177. data/lib/authentik/api/models/duo_device_enrollment_status.rb +180 -0
  178. data/lib/authentik/api/models/duo_device_request.rb +178 -0
  179. data/lib/authentik/api/models/duo_response_enum.rb +35 -0
  180. data/lib/authentik/api/models/email_challenge.rb +164 -0
  181. data/lib/authentik/api/models/email_challenge_response_request.rb +163 -0
  182. data/lib/authentik/api/models/email_device.rb +247 -0
  183. data/lib/authentik/api/models/email_device_request.rb +178 -0
  184. data/lib/authentik/api/models/email_stage.rb +554 -0
  185. data/lib/authentik/api/models/email_stage_request.rb +514 -0
  186. data/lib/authentik/api/models/endpoint.rb +409 -0
  187. data/lib/authentik/api/models/endpoint_agent_challenge.rb +216 -0
  188. data/lib/authentik/api/models/endpoint_agent_challenge_response_request.rb +188 -0
  189. data/lib/authentik/api/models/endpoint_auth_mode_enum.rb +34 -0
  190. data/lib/authentik/api/models/endpoint_device.rb +268 -0
  191. data/lib/authentik/api/models/endpoint_device_details.rb +352 -0
  192. data/lib/authentik/api/models/endpoint_device_request.rb +225 -0
  193. data/lib/authentik/api/models/endpoint_request.rb +362 -0
  194. data/lib/authentik/api/models/endpoint_stage.rb +404 -0
  195. data/lib/authentik/api/models/endpoint_stage_request.rb +225 -0
  196. data/lib/authentik/api/models/enroll_request.rb +203 -0
  197. data/lib/authentik/api/models/enrollment_token.rb +265 -0
  198. data/lib/authentik/api/models/enrollment_token_request.rb +222 -0
  199. data/lib/authentik/api/models/error_detail.rb +185 -0
  200. data/lib/authentik/api/models/error_reporting_config.rb +263 -0
  201. data/lib/authentik/api/models/event.rb +311 -0
  202. data/lib/authentik/api/models/event_actions.rb +60 -0
  203. data/lib/authentik/api/models/event_matcher_policy.rb +396 -0
  204. data/lib/authentik/api/models/event_matcher_policy_request.rb +259 -0
  205. data/lib/authentik/api/models/event_request.rb +283 -0
  206. data/lib/authentik/api/models/event_top_per_user.rb +213 -0
  207. data/lib/authentik/api/models/event_volume.rb +233 -0
  208. data/lib/authentik/api/models/events_requested_enum.rb +35 -0
  209. data/lib/authentik/api/models/expiring_base_grant_model.rb +276 -0
  210. data/lib/authentik/api/models/expression_policy.rb +356 -0
  211. data/lib/authentik/api/models/expression_policy_request.rb +213 -0
  212. data/lib/authentik/api/models/extra_role_object_permission.rb +356 -0
  213. data/lib/authentik/api/models/file_list.rb +221 -0
  214. data/lib/authentik/api/models/flow.rb +532 -0
  215. data/lib/authentik/api/models/flow_challenge_response_request.rb +97 -0
  216. data/lib/authentik/api/models/flow_designation_enum.rb +39 -0
  217. data/lib/authentik/api/models/flow_diagram.rb +159 -0
  218. data/lib/authentik/api/models/flow_error_challenge.rb +208 -0
  219. data/lib/authentik/api/models/flow_import_result.rb +187 -0
  220. data/lib/authentik/api/models/flow_inspection.rb +196 -0
  221. data/lib/authentik/api/models/flow_inspector_plan.rb +241 -0
  222. data/lib/authentik/api/models/flow_layout_enum.rb +37 -0
  223. data/lib/authentik/api/models/flow_request.rb +358 -0
  224. data/lib/authentik/api/models/flow_set.rb +417 -0
  225. data/lib/authentik/api/models/flow_stage_binding.rb +368 -0
  226. data/lib/authentik/api/models/flow_stage_binding_request.rb +290 -0
  227. data/lib/authentik/api/models/footer_link.rb +171 -0
  228. data/lib/authentik/api/models/frame_challenge.rb +227 -0
  229. data/lib/authentik/api/models/frame_challenge_response_request.rb +163 -0
  230. data/lib/authentik/api/models/generic_error.rb +168 -0
  231. data/lib/authentik/api/models/geo_ip_policy.rb +572 -0
  232. data/lib/authentik/api/models/geo_ip_policy_request.rb +392 -0
  233. data/lib/authentik/api/models/geoip_binding_enum.rb +36 -0
  234. data/lib/authentik/api/models/global_task_status.rb +392 -0
  235. data/lib/authentik/api/models/google_endpoint_device.rb +178 -0
  236. data/lib/authentik/api/models/google_endpoint_device_request.rb +187 -0
  237. data/lib/authentik/api/models/google_workspace_provider.rb +557 -0
  238. data/lib/authentik/api/models/google_workspace_provider_group.rb +291 -0
  239. data/lib/authentik/api/models/google_workspace_provider_group_request.rb +220 -0
  240. data/lib/authentik/api/models/google_workspace_provider_mapping.rb +330 -0
  241. data/lib/authentik/api/models/google_workspace_provider_mapping_request.rb +229 -0
  242. data/lib/authentik/api/models/google_workspace_provider_request.rb +462 -0
  243. data/lib/authentik/api/models/google_workspace_provider_user.rb +291 -0
  244. data/lib/authentik/api/models/google_workspace_provider_user_request.rb +220 -0
  245. data/lib/authentik/api/models/group.rb +377 -0
  246. data/lib/authentik/api/models/group_kerberos_source_connection.rb +315 -0
  247. data/lib/authentik/api/models/group_kerberos_source_connection_request.rb +220 -0
  248. data/lib/authentik/api/models/group_ldap_source_connection.rb +315 -0
  249. data/lib/authentik/api/models/group_ldap_source_connection_request.rb +220 -0
  250. data/lib/authentik/api/models/group_matching_mode_enum.rb +35 -0
  251. data/lib/authentik/api/models/group_o_auth_source_connection.rb +315 -0
  252. data/lib/authentik/api/models/group_o_auth_source_connection_request.rb +220 -0
  253. data/lib/authentik/api/models/group_plex_source_connection.rb +315 -0
  254. data/lib/authentik/api/models/group_plex_source_connection_request.rb +220 -0
  255. data/lib/authentik/api/models/group_request.rb +222 -0
  256. data/lib/authentik/api/models/group_saml_source_connection.rb +315 -0
  257. data/lib/authentik/api/models/group_saml_source_connection_request.rb +220 -0
  258. data/lib/authentik/api/models/group_source_connection.rb +315 -0
  259. data/lib/authentik/api/models/group_source_connection_request.rb +220 -0
  260. data/lib/authentik/api/models/group_telegram_source_connection.rb +315 -0
  261. data/lib/authentik/api/models/group_telegram_source_connection_request.rb +220 -0
  262. data/lib/authentik/api/models/hardware.rb +203 -0
  263. data/lib/authentik/api/models/hardware_request.rb +269 -0
  264. data/lib/authentik/api/models/identification_challenge.rb +395 -0
  265. data/lib/authentik/api/models/identification_challenge_response_request.rb +205 -0
  266. data/lib/authentik/api/models/identification_stage.rb +460 -0
  267. data/lib/authentik/api/models/identification_stage_request.rb +307 -0
  268. data/lib/authentik/api/models/iframe_logout_challenge.rb +175 -0
  269. data/lib/authentik/api/models/iframe_logout_challenge_response_request.rb +163 -0
  270. data/lib/authentik/api/models/impersonation_request.rb +167 -0
  271. data/lib/authentik/api/models/initial_permissions.rb +259 -0
  272. data/lib/authentik/api/models/initial_permissions_request.rb +214 -0
  273. data/lib/authentik/api/models/install_id.rb +158 -0
  274. data/lib/authentik/api/models/intent_enum.rb +36 -0
  275. data/lib/authentik/api/models/invalid_response_action_enum.rb +35 -0
  276. data/lib/authentik/api/models/invitation.rb +290 -0
  277. data/lib/authentik/api/models/invitation_request.rb +221 -0
  278. data/lib/authentik/api/models/invitation_stage.rb +331 -0
  279. data/lib/authentik/api/models/invitation_stage_request.rb +178 -0
  280. data/lib/authentik/api/models/issuer_mode_enum.rb +34 -0
  281. data/lib/authentik/api/models/kadmin_type_enum.rb +34 -0
  282. data/lib/authentik/api/models/kerberos_source.rb +657 -0
  283. data/lib/authentik/api/models/kerberos_source_property_mapping.rb +330 -0
  284. data/lib/authentik/api/models/kerberos_source_property_mapping_request.rb +229 -0
  285. data/lib/authentik/api/models/kerberos_source_request.rb +533 -0
  286. data/lib/authentik/api/models/key_type_enum.rb +37 -0
  287. data/lib/authentik/api/models/kubernetes_service_connection.rb +324 -0
  288. data/lib/authentik/api/models/kubernetes_service_connection_request.rb +200 -0
  289. data/lib/authentik/api/models/last_task_status_enum.rb +42 -0
  290. data/lib/authentik/api/models/ldap_check_access.rb +168 -0
  291. data/lib/authentik/api/models/ldap_debug.rb +216 -0
  292. data/lib/authentik/api/models/ldap_outpost_config.rb +406 -0
  293. data/lib/authentik/api/models/ldap_provider.rb +604 -0
  294. data/lib/authentik/api/models/ldap_provider_request.rb +418 -0
  295. data/lib/authentik/api/models/ldap_source.rb +769 -0
  296. data/lib/authentik/api/models/ldap_source_property_mapping.rb +330 -0
  297. data/lib/authentik/api/models/ldap_source_property_mapping_request.rb +229 -0
  298. data/lib/authentik/api/models/ldap_source_request.rb +728 -0
  299. data/lib/authentik/api/models/ldapapi_access_mode.rb +34 -0
  300. data/lib/authentik/api/models/license.rb +289 -0
  301. data/lib/authentik/api/models/license_flags_enum.rb +34 -0
  302. data/lib/authentik/api/models/license_forecast.rb +237 -0
  303. data/lib/authentik/api/models/license_request.rb +168 -0
  304. data/lib/authentik/api/models/license_status_enum.rb +39 -0
  305. data/lib/authentik/api/models/license_summary.rb +287 -0
  306. data/lib/authentik/api/models/license_summary_status_enum.rb +39 -0
  307. data/lib/authentik/api/models/link.rb +159 -0
  308. data/lib/authentik/api/models/log_event.rb +287 -0
  309. data/lib/authentik/api/models/log_level_enum.rb +40 -0
  310. data/lib/authentik/api/models/login_challenge_types.rb +53 -0
  311. data/lib/authentik/api/models/login_source.rb +206 -0
  312. data/lib/authentik/api/models/matching_mode_enum.rb +34 -0
  313. data/lib/authentik/api/models/mdm_config_request.rb +207 -0
  314. data/lib/authentik/api/models/mdm_config_response.rb +211 -0
  315. data/lib/authentik/api/models/metadata.rb +187 -0
  316. data/lib/authentik/api/models/microsoft_entra_provider.rb +537 -0
  317. data/lib/authentik/api/models/microsoft_entra_provider_group.rb +291 -0
  318. data/lib/authentik/api/models/microsoft_entra_provider_group_request.rb +220 -0
  319. data/lib/authentik/api/models/microsoft_entra_provider_mapping.rb +330 -0
  320. data/lib/authentik/api/models/microsoft_entra_provider_mapping_request.rb +229 -0
  321. data/lib/authentik/api/models/microsoft_entra_provider_request.rb +432 -0
  322. data/lib/authentik/api/models/microsoft_entra_provider_user.rb +291 -0
  323. data/lib/authentik/api/models/microsoft_entra_provider_user_request.rb +220 -0
  324. data/lib/authentik/api/models/model_enum.rb +147 -0
  325. data/lib/authentik/api/models/model_request.rb +65 -0
  326. data/lib/authentik/api/models/mutual_tls_stage.rb +433 -0
  327. data/lib/authentik/api/models/mutual_tls_stage_request.rb +280 -0
  328. data/lib/authentik/api/models/native_logout_challenge.rb +229 -0
  329. data/lib/authentik/api/models/native_logout_challenge_response_request.rb +163 -0
  330. data/lib/authentik/api/models/network.rb +204 -0
  331. data/lib/authentik/api/models/network_binding_enum.rb +36 -0
  332. data/lib/authentik/api/models/network_interface.rb +206 -0
  333. data/lib/authentik/api/models/network_interface_request.rb +224 -0
  334. data/lib/authentik/api/models/network_request.rb +232 -0
  335. data/lib/authentik/api/models/not_configured_action_enum.rb +35 -0
  336. data/lib/authentik/api/models/notification.rb +312 -0
  337. data/lib/authentik/api/models/notification_request.rb +186 -0
  338. data/lib/authentik/api/models/notification_rule.rb +276 -0
  339. data/lib/authentik/api/models/notification_rule_request.rb +233 -0
  340. data/lib/authentik/api/models/notification_transport.rb +302 -0
  341. data/lib/authentik/api/models/notification_transport_mode_enum.rb +36 -0
  342. data/lib/authentik/api/models/notification_transport_request.rb +277 -0
  343. data/lib/authentik/api/models/notification_transport_test.rb +161 -0
  344. data/lib/authentik/api/models/notification_webhook_mapping.rb +211 -0
  345. data/lib/authentik/api/models/notification_webhook_mapping_request.rb +203 -0
  346. data/lib/authentik/api/models/o_auth2_provider.rb +670 -0
  347. data/lib/authentik/api/models/o_auth2_provider_logout_method_enum.rb +34 -0
  348. data/lib/authentik/api/models/o_auth2_provider_request.rb +578 -0
  349. data/lib/authentik/api/models/o_auth2_provider_setup_urls.rb +315 -0
  350. data/lib/authentik/api/models/o_auth_device_code_challenge.rb +164 -0
  351. data/lib/authentik/api/models/o_auth_device_code_challenge_response_request.rb +198 -0
  352. data/lib/authentik/api/models/o_auth_device_code_finish_challenge.rb +164 -0
  353. data/lib/authentik/api/models/o_auth_device_code_finish_challenge_response_request.rb +163 -0
  354. data/lib/authentik/api/models/o_auth_source.rb +767 -0
  355. data/lib/authentik/api/models/o_auth_source_property_mapping.rb +330 -0
  356. data/lib/authentik/api/models/o_auth_source_property_mapping_request.rb +229 -0
  357. data/lib/authentik/api/models/o_auth_source_request.rb +624 -0
  358. data/lib/authentik/api/models/open_id_connect_configuration.rb +427 -0
  359. data/lib/authentik/api/models/operating_system.rb +224 -0
  360. data/lib/authentik/api/models/operating_system_request.rb +271 -0
  361. data/lib/authentik/api/models/outgoing_sync_delete_action.rb +35 -0
  362. data/lib/authentik/api/models/outpost.rb +404 -0
  363. data/lib/authentik/api/models/outpost_default_config.rb +161 -0
  364. data/lib/authentik/api/models/outpost_health.rb +432 -0
  365. data/lib/authentik/api/models/outpost_request.rb +309 -0
  366. data/lib/authentik/api/models/outpost_type_enum.rb +36 -0
  367. data/lib/authentik/api/models/paginated_agent_connector_list.rb +214 -0
  368. data/lib/authentik/api/models/paginated_application_entitlement_list.rb +214 -0
  369. data/lib/authentik/api/models/paginated_application_list.rb +214 -0
  370. data/lib/authentik/api/models/paginated_authenticated_session_list.rb +214 -0
  371. data/lib/authentik/api/models/paginated_authenticator_duo_stage_list.rb +214 -0
  372. data/lib/authentik/api/models/paginated_authenticator_email_stage_list.rb +214 -0
  373. data/lib/authentik/api/models/paginated_authenticator_endpoint_gdtc_stage_list.rb +214 -0
  374. data/lib/authentik/api/models/paginated_authenticator_sms_stage_list.rb +214 -0
  375. data/lib/authentik/api/models/paginated_authenticator_static_stage_list.rb +214 -0
  376. data/lib/authentik/api/models/paginated_authenticator_totp_stage_list.rb +214 -0
  377. data/lib/authentik/api/models/paginated_authenticator_validate_stage_list.rb +214 -0
  378. data/lib/authentik/api/models/paginated_authenticator_web_authn_stage_list.rb +214 -0
  379. data/lib/authentik/api/models/paginated_blueprint_instance_list.rb +214 -0
  380. data/lib/authentik/api/models/paginated_brand_list.rb +214 -0
  381. data/lib/authentik/api/models/paginated_captcha_stage_list.rb +214 -0
  382. data/lib/authentik/api/models/paginated_certificate_key_pair_list.rb +214 -0
  383. data/lib/authentik/api/models/paginated_connection_token_list.rb +214 -0
  384. data/lib/authentik/api/models/paginated_connector_list.rb +214 -0
  385. data/lib/authentik/api/models/paginated_consent_stage_list.rb +214 -0
  386. data/lib/authentik/api/models/paginated_data_export_list.rb +214 -0
  387. data/lib/authentik/api/models/paginated_deny_stage_list.rb +214 -0
  388. data/lib/authentik/api/models/paginated_device_access_group_list.rb +214 -0
  389. data/lib/authentik/api/models/paginated_device_user_binding_list.rb +214 -0
  390. data/lib/authentik/api/models/paginated_docker_service_connection_list.rb +214 -0
  391. data/lib/authentik/api/models/paginated_domain_list.rb +214 -0
  392. data/lib/authentik/api/models/paginated_dummy_policy_list.rb +214 -0
  393. data/lib/authentik/api/models/paginated_dummy_stage_list.rb +214 -0
  394. data/lib/authentik/api/models/paginated_duo_device_list.rb +214 -0
  395. data/lib/authentik/api/models/paginated_email_device_list.rb +214 -0
  396. data/lib/authentik/api/models/paginated_email_stage_list.rb +214 -0
  397. data/lib/authentik/api/models/paginated_endpoint_device_list.rb +214 -0
  398. data/lib/authentik/api/models/paginated_endpoint_list.rb +214 -0
  399. data/lib/authentik/api/models/paginated_endpoint_stage_list.rb +214 -0
  400. data/lib/authentik/api/models/paginated_enrollment_token_list.rb +214 -0
  401. data/lib/authentik/api/models/paginated_event_list.rb +214 -0
  402. data/lib/authentik/api/models/paginated_event_matcher_policy_list.rb +214 -0
  403. data/lib/authentik/api/models/paginated_expiring_base_grant_model_list.rb +214 -0
  404. data/lib/authentik/api/models/paginated_expression_policy_list.rb +214 -0
  405. data/lib/authentik/api/models/paginated_extra_role_object_permission_list.rb +186 -0
  406. data/lib/authentik/api/models/paginated_flow_list.rb +214 -0
  407. data/lib/authentik/api/models/paginated_flow_stage_binding_list.rb +214 -0
  408. data/lib/authentik/api/models/paginated_geo_ip_policy_list.rb +214 -0
  409. data/lib/authentik/api/models/paginated_google_endpoint_device_list.rb +214 -0
  410. data/lib/authentik/api/models/paginated_google_workspace_provider_group_list.rb +214 -0
  411. data/lib/authentik/api/models/paginated_google_workspace_provider_list.rb +214 -0
  412. data/lib/authentik/api/models/paginated_google_workspace_provider_mapping_list.rb +214 -0
  413. data/lib/authentik/api/models/paginated_google_workspace_provider_user_list.rb +214 -0
  414. data/lib/authentik/api/models/paginated_group_kerberos_source_connection_list.rb +214 -0
  415. data/lib/authentik/api/models/paginated_group_ldap_source_connection_list.rb +214 -0
  416. data/lib/authentik/api/models/paginated_group_list.rb +214 -0
  417. data/lib/authentik/api/models/paginated_group_o_auth_source_connection_list.rb +214 -0
  418. data/lib/authentik/api/models/paginated_group_plex_source_connection_list.rb +214 -0
  419. data/lib/authentik/api/models/paginated_group_saml_source_connection_list.rb +214 -0
  420. data/lib/authentik/api/models/paginated_group_source_connection_list.rb +214 -0
  421. data/lib/authentik/api/models/paginated_group_telegram_source_connection_list.rb +214 -0
  422. data/lib/authentik/api/models/paginated_identification_stage_list.rb +214 -0
  423. data/lib/authentik/api/models/paginated_initial_permissions_list.rb +214 -0
  424. data/lib/authentik/api/models/paginated_invitation_list.rb +214 -0
  425. data/lib/authentik/api/models/paginated_invitation_stage_list.rb +214 -0
  426. data/lib/authentik/api/models/paginated_kerberos_source_list.rb +214 -0
  427. data/lib/authentik/api/models/paginated_kerberos_source_property_mapping_list.rb +214 -0
  428. data/lib/authentik/api/models/paginated_kubernetes_service_connection_list.rb +214 -0
  429. data/lib/authentik/api/models/paginated_ldap_outpost_config_list.rb +214 -0
  430. data/lib/authentik/api/models/paginated_ldap_provider_list.rb +214 -0
  431. data/lib/authentik/api/models/paginated_ldap_source_list.rb +214 -0
  432. data/lib/authentik/api/models/paginated_ldap_source_property_mapping_list.rb +214 -0
  433. data/lib/authentik/api/models/paginated_license_list.rb +214 -0
  434. data/lib/authentik/api/models/paginated_microsoft_entra_provider_group_list.rb +214 -0
  435. data/lib/authentik/api/models/paginated_microsoft_entra_provider_list.rb +214 -0
  436. data/lib/authentik/api/models/paginated_microsoft_entra_provider_mapping_list.rb +214 -0
  437. data/lib/authentik/api/models/paginated_microsoft_entra_provider_user_list.rb +214 -0
  438. data/lib/authentik/api/models/paginated_mutual_tls_stage_list.rb +214 -0
  439. data/lib/authentik/api/models/paginated_notification_list.rb +214 -0
  440. data/lib/authentik/api/models/paginated_notification_rule_list.rb +214 -0
  441. data/lib/authentik/api/models/paginated_notification_transport_list.rb +214 -0
  442. data/lib/authentik/api/models/paginated_notification_webhook_mapping_list.rb +214 -0
  443. data/lib/authentik/api/models/paginated_o_auth2_provider_list.rb +214 -0
  444. data/lib/authentik/api/models/paginated_o_auth_source_list.rb +214 -0
  445. data/lib/authentik/api/models/paginated_o_auth_source_property_mapping_list.rb +214 -0
  446. data/lib/authentik/api/models/paginated_outpost_list.rb +214 -0
  447. data/lib/authentik/api/models/paginated_password_expiry_policy_list.rb +214 -0
  448. data/lib/authentik/api/models/paginated_password_policy_list.rb +214 -0
  449. data/lib/authentik/api/models/paginated_password_stage_list.rb +214 -0
  450. data/lib/authentik/api/models/paginated_permission_list.rb +214 -0
  451. data/lib/authentik/api/models/paginated_plex_source_list.rb +214 -0
  452. data/lib/authentik/api/models/paginated_plex_source_property_mapping_list.rb +214 -0
  453. data/lib/authentik/api/models/paginated_policy_binding_list.rb +214 -0
  454. data/lib/authentik/api/models/paginated_policy_list.rb +214 -0
  455. data/lib/authentik/api/models/paginated_prompt_list.rb +214 -0
  456. data/lib/authentik/api/models/paginated_prompt_stage_list.rb +214 -0
  457. data/lib/authentik/api/models/paginated_property_mapping_list.rb +214 -0
  458. data/lib/authentik/api/models/paginated_provider_list.rb +214 -0
  459. data/lib/authentik/api/models/paginated_proxy_outpost_config_list.rb +214 -0
  460. data/lib/authentik/api/models/paginated_proxy_provider_list.rb +214 -0
  461. data/lib/authentik/api/models/paginated_rac_property_mapping_list.rb +214 -0
  462. data/lib/authentik/api/models/paginated_rac_provider_list.rb +214 -0
  463. data/lib/authentik/api/models/paginated_radius_outpost_config_list.rb +214 -0
  464. data/lib/authentik/api/models/paginated_radius_provider_list.rb +214 -0
  465. data/lib/authentik/api/models/paginated_radius_provider_property_mapping_list.rb +214 -0
  466. data/lib/authentik/api/models/paginated_redirect_stage_list.rb +214 -0
  467. data/lib/authentik/api/models/paginated_reputation_list.rb +214 -0
  468. data/lib/authentik/api/models/paginated_reputation_policy_list.rb +214 -0
  469. data/lib/authentik/api/models/paginated_role_assigned_object_permission_list.rb +214 -0
  470. data/lib/authentik/api/models/paginated_role_list.rb +214 -0
  471. data/lib/authentik/api/models/paginated_saml_property_mapping_list.rb +214 -0
  472. data/lib/authentik/api/models/paginated_saml_provider_list.rb +214 -0
  473. data/lib/authentik/api/models/paginated_saml_source_list.rb +214 -0
  474. data/lib/authentik/api/models/paginated_saml_source_property_mapping_list.rb +214 -0
  475. data/lib/authentik/api/models/paginated_schedule_list.rb +214 -0
  476. data/lib/authentik/api/models/paginated_scim_mapping_list.rb +214 -0
  477. data/lib/authentik/api/models/paginated_scim_provider_group_list.rb +214 -0
  478. data/lib/authentik/api/models/paginated_scim_provider_list.rb +214 -0
  479. data/lib/authentik/api/models/paginated_scim_provider_user_list.rb +214 -0
  480. data/lib/authentik/api/models/paginated_scim_source_group_list.rb +214 -0
  481. data/lib/authentik/api/models/paginated_scim_source_list.rb +214 -0
  482. data/lib/authentik/api/models/paginated_scim_source_property_mapping_list.rb +214 -0
  483. data/lib/authentik/api/models/paginated_scim_source_user_list.rb +214 -0
  484. data/lib/authentik/api/models/paginated_scope_mapping_list.rb +214 -0
  485. data/lib/authentik/api/models/paginated_service_connection_list.rb +214 -0
  486. data/lib/authentik/api/models/paginated_sms_device_list.rb +214 -0
  487. data/lib/authentik/api/models/paginated_source_list.rb +214 -0
  488. data/lib/authentik/api/models/paginated_source_stage_list.rb +214 -0
  489. data/lib/authentik/api/models/paginated_ssf_provider_list.rb +214 -0
  490. data/lib/authentik/api/models/paginated_ssf_stream_list.rb +214 -0
  491. data/lib/authentik/api/models/paginated_stage_list.rb +214 -0
  492. data/lib/authentik/api/models/paginated_static_device_list.rb +214 -0
  493. data/lib/authentik/api/models/paginated_task_list.rb +214 -0
  494. data/lib/authentik/api/models/paginated_telegram_source_list.rb +214 -0
  495. data/lib/authentik/api/models/paginated_telegram_source_property_mapping_list.rb +214 -0
  496. data/lib/authentik/api/models/paginated_tenant_list.rb +214 -0
  497. data/lib/authentik/api/models/paginated_token_list.rb +214 -0
  498. data/lib/authentik/api/models/paginated_token_model_list.rb +214 -0
  499. data/lib/authentik/api/models/paginated_totp_device_list.rb +214 -0
  500. data/lib/authentik/api/models/paginated_unique_password_policy_list.rb +214 -0
  501. data/lib/authentik/api/models/paginated_user_consent_list.rb +214 -0
  502. data/lib/authentik/api/models/paginated_user_delete_stage_list.rb +214 -0
  503. data/lib/authentik/api/models/paginated_user_kerberos_source_connection_list.rb +214 -0
  504. data/lib/authentik/api/models/paginated_user_ldap_source_connection_list.rb +214 -0
  505. data/lib/authentik/api/models/paginated_user_list.rb +214 -0
  506. data/lib/authentik/api/models/paginated_user_login_stage_list.rb +214 -0
  507. data/lib/authentik/api/models/paginated_user_logout_stage_list.rb +214 -0
  508. data/lib/authentik/api/models/paginated_user_o_auth_source_connection_list.rb +214 -0
  509. data/lib/authentik/api/models/paginated_user_plex_source_connection_list.rb +214 -0
  510. data/lib/authentik/api/models/paginated_user_saml_source_connection_list.rb +214 -0
  511. data/lib/authentik/api/models/paginated_user_source_connection_list.rb +214 -0
  512. data/lib/authentik/api/models/paginated_user_telegram_source_connection_list.rb +214 -0
  513. data/lib/authentik/api/models/paginated_user_write_stage_list.rb +214 -0
  514. data/lib/authentik/api/models/paginated_web_authn_device_list.rb +214 -0
  515. data/lib/authentik/api/models/paginated_web_authn_device_type_list.rb +214 -0
  516. data/lib/authentik/api/models/pagination.rb +314 -0
  517. data/lib/authentik/api/models/partial_group.rb +233 -0
  518. data/lib/authentik/api/models/partial_user.rb +318 -0
  519. data/lib/authentik/api/models/password_challenge.rb +236 -0
  520. data/lib/authentik/api/models/password_challenge_response_request.rb +198 -0
  521. data/lib/authentik/api/models/password_expiry_policy.rb +383 -0
  522. data/lib/authentik/api/models/password_expiry_policy_request.rb +231 -0
  523. data/lib/authentik/api/models/password_policy.rb +646 -0
  524. data/lib/authentik/api/models/password_policy_request.rb +532 -0
  525. data/lib/authentik/api/models/password_stage.rb +409 -0
  526. data/lib/authentik/api/models/password_stage_request.rb +256 -0
  527. data/lib/authentik/api/models/patched_agent_connector_request.rb +413 -0
  528. data/lib/authentik/api/models/patched_application_entitlement_request.rb +181 -0
  529. data/lib/authentik/api/models/patched_application_request.rb +309 -0
  530. data/lib/authentik/api/models/patched_authenticator_duo_stage_request.rb +283 -0
  531. data/lib/authentik/api/models/patched_authenticator_email_stage_request.rb +451 -0
  532. data/lib/authentik/api/models/patched_authenticator_endpoint_gdtc_stage_request.rb +192 -0
  533. data/lib/authentik/api/models/patched_authenticator_sms_stage_request.rb +335 -0
  534. data/lib/authentik/api/models/patched_authenticator_static_stage_request.rb +255 -0
  535. data/lib/authentik/api/models/patched_authenticator_totp_stage_request.rb +212 -0
  536. data/lib/authentik/api/models/patched_authenticator_validate_stage_request.rb +266 -0
  537. data/lib/authentik/api/models/patched_authenticator_web_authn_stage_request.rb +279 -0
  538. data/lib/authentik/api/models/patched_blueprint_instance_request.rb +201 -0
  539. data/lib/authentik/api/models/patched_brand_request.rb +397 -0
  540. data/lib/authentik/api/models/patched_captcha_stage_request.rb +312 -0
  541. data/lib/authentik/api/models/patched_certificate_key_pair_request.rb +200 -0
  542. data/lib/authentik/api/models/patched_connection_token_request.rb +160 -0
  543. data/lib/authentik/api/models/patched_consent_stage_request.rb +221 -0
  544. data/lib/authentik/api/models/patched_deny_stage_request.rb +170 -0
  545. data/lib/authentik/api/models/patched_device_access_group_request.rb +160 -0
  546. data/lib/authentik/api/models/patched_device_user_binding_request.rb +285 -0
  547. data/lib/authentik/api/models/patched_docker_service_connection_request.rb +222 -0
  548. data/lib/authentik/api/models/patched_domain_request.rb +188 -0
  549. data/lib/authentik/api/models/patched_dummy_policy_request.rb +254 -0
  550. data/lib/authentik/api/models/patched_dummy_stage_request.rb +170 -0
  551. data/lib/authentik/api/models/patched_duo_device_request.rb +171 -0
  552. data/lib/authentik/api/models/patched_email_device_request.rb +171 -0
  553. data/lib/authentik/api/models/patched_email_stage_request.rb +507 -0
  554. data/lib/authentik/api/models/patched_endpoint_device_request.rb +218 -0
  555. data/lib/authentik/api/models/patched_endpoint_request.rb +297 -0
  556. data/lib/authentik/api/models/patched_endpoint_stage_request.rb +201 -0
  557. data/lib/authentik/api/models/patched_enrollment_token_request.rb +198 -0
  558. data/lib/authentik/api/models/patched_event_matcher_policy_request.rb +252 -0
  559. data/lib/authentik/api/models/patched_event_request.rb +259 -0
  560. data/lib/authentik/api/models/patched_expression_policy_request.rb +199 -0
  561. data/lib/authentik/api/models/patched_flow_request.rb +320 -0
  562. data/lib/authentik/api/models/patched_flow_stage_binding_request.rb +249 -0
  563. data/lib/authentik/api/models/patched_geo_ip_policy_request.rb +378 -0
  564. data/lib/authentik/api/models/patched_google_endpoint_device_request.rb +180 -0
  565. data/lib/authentik/api/models/patched_google_workspace_provider_mapping_request.rb +215 -0
  566. data/lib/authentik/api/models/patched_google_workspace_provider_request.rb +424 -0
  567. data/lib/authentik/api/models/patched_group_kerberos_source_connection_request.rb +179 -0
  568. data/lib/authentik/api/models/patched_group_ldap_source_connection_request.rb +179 -0
  569. data/lib/authentik/api/models/patched_group_o_auth_source_connection_request.rb +179 -0
  570. data/lib/authentik/api/models/patched_group_plex_source_connection_request.rb +179 -0
  571. data/lib/authentik/api/models/patched_group_request.rb +215 -0
  572. data/lib/authentik/api/models/patched_group_saml_source_connection_request.rb +179 -0
  573. data/lib/authentik/api/models/patched_group_source_connection_request.rb +179 -0
  574. data/lib/authentik/api/models/patched_group_telegram_source_connection_request.rb +179 -0
  575. data/lib/authentik/api/models/patched_identification_stage_request.rb +300 -0
  576. data/lib/authentik/api/models/patched_initial_permissions_request.rb +190 -0
  577. data/lib/authentik/api/models/patched_invitation_request.rb +214 -0
  578. data/lib/authentik/api/models/patched_invitation_stage_request.rb +171 -0
  579. data/lib/authentik/api/models/patched_kerberos_source_property_mapping_request.rb +215 -0
  580. data/lib/authentik/api/models/patched_kerberos_source_request.rb +512 -0
  581. data/lib/authentik/api/models/patched_kubernetes_service_connection_request.rb +193 -0
  582. data/lib/authentik/api/models/patched_ldap_provider_request.rb +377 -0
  583. data/lib/authentik/api/models/patched_ldap_source_property_mapping_request.rb +215 -0
  584. data/lib/authentik/api/models/patched_ldap_source_request.rb +700 -0
  585. data/lib/authentik/api/models/patched_license_request.rb +161 -0
  586. data/lib/authentik/api/models/patched_microsoft_entra_provider_mapping_request.rb +215 -0
  587. data/lib/authentik/api/models/patched_microsoft_entra_provider_request.rb +404 -0
  588. data/lib/authentik/api/models/patched_mutual_tls_stage_request.rb +222 -0
  589. data/lib/authentik/api/models/patched_notification_request.rb +186 -0
  590. data/lib/authentik/api/models/patched_notification_rule_request.rb +226 -0
  591. data/lib/authentik/api/models/patched_notification_transport_request.rb +270 -0
  592. data/lib/authentik/api/models/patched_notification_webhook_mapping_request.rb +189 -0
  593. data/lib/authentik/api/models/patched_o_auth2_provider_request.rb +520 -0
  594. data/lib/authentik/api/models/patched_o_auth_source_property_mapping_request.rb +215 -0
  595. data/lib/authentik/api/models/patched_o_auth_source_request.rb +579 -0
  596. data/lib/authentik/api/models/patched_outpost_request.rb +251 -0
  597. data/lib/authentik/api/models/patched_password_expiry_policy_request.rb +217 -0
  598. data/lib/authentik/api/models/patched_password_policy_request.rb +525 -0
  599. data/lib/authentik/api/models/patched_password_stage_request.rb +232 -0
  600. data/lib/authentik/api/models/patched_permission_assign_request.rb +203 -0
  601. data/lib/authentik/api/models/patched_plex_source_property_mapping_request.rb +215 -0
  602. data/lib/authentik/api/models/patched_plex_source_request.rb +433 -0
  603. data/lib/authentik/api/models/patched_policy_binding_request.rb +276 -0
  604. data/lib/authentik/api/models/patched_prompt_request.rb +342 -0
  605. data/lib/authentik/api/models/patched_prompt_stage_request.rb +183 -0
  606. data/lib/authentik/api/models/patched_proxy_provider_request.rb +431 -0
  607. data/lib/authentik/api/models/patched_rac_property_mapping_request.rb +207 -0
  608. data/lib/authentik/api/models/patched_rac_provider_request.rb +243 -0
  609. data/lib/authentik/api/models/patched_radius_provider_property_mapping_request.rb +215 -0
  610. data/lib/authentik/api/models/patched_radius_provider_request.rb +281 -0
  611. data/lib/authentik/api/models/patched_redirect_stage_request.rb +220 -0
  612. data/lib/authentik/api/models/patched_reputation_policy_request.rb +226 -0
  613. data/lib/authentik/api/models/patched_role_request.rb +170 -0
  614. data/lib/authentik/api/models/patched_saml_property_mapping_request.rb +253 -0
  615. data/lib/authentik/api/models/patched_saml_provider_request.rb +538 -0
  616. data/lib/authentik/api/models/patched_saml_source_property_mapping_request.rb +215 -0
  617. data/lib/authentik/api/models/patched_saml_source_request.rb +540 -0
  618. data/lib/authentik/api/models/patched_schedule_request.rb +196 -0
  619. data/lib/authentik/api/models/patched_scim_mapping_request.rb +215 -0
  620. data/lib/authentik/api/models/patched_scim_provider_request.rb +421 -0
  621. data/lib/authentik/api/models/patched_scim_source_group_request.rb +218 -0
  622. data/lib/authentik/api/models/patched_scim_source_property_mapping_request.rb +215 -0
  623. data/lib/authentik/api/models/patched_scim_source_request.rb +261 -0
  624. data/lib/authentik/api/models/patched_scim_source_user_request.rb +218 -0
  625. data/lib/authentik/api/models/patched_scope_mapping_request.rb +254 -0
  626. data/lib/authentik/api/models/patched_settings_request.rb +489 -0
  627. data/lib/authentik/api/models/patched_settings_request_flags.rb +184 -0
  628. data/lib/authentik/api/models/patched_sms_device_request.rb +171 -0
  629. data/lib/authentik/api/models/patched_source_stage_request.rb +199 -0
  630. data/lib/authentik/api/models/patched_ssf_provider_request.rb +210 -0
  631. data/lib/authentik/api/models/patched_static_device_request.rb +171 -0
  632. data/lib/authentik/api/models/patched_telegram_source_property_mapping_request.rb +215 -0
  633. data/lib/authentik/api/models/patched_telegram_source_request.rb +421 -0
  634. data/lib/authentik/api/models/patched_tenant_request.rb +207 -0
  635. data/lib/authentik/api/models/patched_token_request.rb +275 -0
  636. data/lib/authentik/api/models/patched_totp_device_request.rb +171 -0
  637. data/lib/authentik/api/models/patched_unique_password_policy_request.rb +238 -0
  638. data/lib/authentik/api/models/patched_user_delete_stage_request.rb +161 -0
  639. data/lib/authentik/api/models/patched_user_kerberos_source_connection_request.rb +179 -0
  640. data/lib/authentik/api/models/patched_user_ldap_source_connection_request.rb +179 -0
  641. data/lib/authentik/api/models/patched_user_login_stage_request.rb +300 -0
  642. data/lib/authentik/api/models/patched_user_logout_stage_request.rb +161 -0
  643. data/lib/authentik/api/models/patched_user_o_auth_source_connection_request.rb +198 -0
  644. data/lib/authentik/api/models/patched_user_plex_source_connection_request.rb +207 -0
  645. data/lib/authentik/api/models/patched_user_request.rb +320 -0
  646. data/lib/authentik/api/models/patched_user_saml_source_connection_request.rb +179 -0
  647. data/lib/authentik/api/models/patched_user_source_connection_request.rb +179 -0
  648. data/lib/authentik/api/models/patched_user_telegram_source_connection_request.rb +179 -0
  649. data/lib/authentik/api/models/patched_user_write_stage_request.rb +231 -0
  650. data/lib/authentik/api/models/patched_web_authn_device_request.rb +170 -0
  651. data/lib/authentik/api/models/permission.rb +335 -0
  652. data/lib/authentik/api/models/permission_assign_request.rb +220 -0
  653. data/lib/authentik/api/models/permission_assign_result.rb +159 -0
  654. data/lib/authentik/api/models/pkce_method_enum.rb +35 -0
  655. data/lib/authentik/api/models/plex_authentication_challenge.rb +216 -0
  656. data/lib/authentik/api/models/plex_authentication_challenge_response_request.rb +163 -0
  657. data/lib/authentik/api/models/plex_source.rb +574 -0
  658. data/lib/authentik/api/models/plex_source_property_mapping.rb +330 -0
  659. data/lib/authentik/api/models/plex_source_property_mapping_request.rb +229 -0
  660. data/lib/authentik/api/models/plex_source_request.rb +454 -0
  661. data/lib/authentik/api/models/plex_token_redeem_request.rb +168 -0
  662. data/lib/authentik/api/models/policy.rb +330 -0
  663. data/lib/authentik/api/models/policy_binding.rb +404 -0
  664. data/lib/authentik/api/models/policy_binding_request.rb +300 -0
  665. data/lib/authentik/api/models/policy_engine_mode.rb +34 -0
  666. data/lib/authentik/api/models/policy_test_request.rb +170 -0
  667. data/lib/authentik/api/models/policy_test_result.rb +215 -0
  668. data/lib/authentik/api/models/process.rb +193 -0
  669. data/lib/authentik/api/models/process_request.rb +221 -0
  670. data/lib/authentik/api/models/prompt.rb +407 -0
  671. data/lib/authentik/api/models/prompt_challenge.rb +192 -0
  672. data/lib/authentik/api/models/prompt_challenge_response_request.rb +163 -0
  673. data/lib/authentik/api/models/prompt_choice.rb +185 -0
  674. data/lib/authentik/api/models/prompt_request.rb +380 -0
  675. data/lib/authentik/api/models/prompt_stage.rb +360 -0
  676. data/lib/authentik/api/models/prompt_stage_request.rb +207 -0
  677. data/lib/authentik/api/models/prompt_type_enum.rb +50 -0
  678. data/lib/authentik/api/models/property_mapping.rb +330 -0
  679. data/lib/authentik/api/models/property_mapping_preview.rb +161 -0
  680. data/lib/authentik/api/models/property_mapping_test_request.rb +164 -0
  681. data/lib/authentik/api/models/property_mapping_test_result.rb +185 -0
  682. data/lib/authentik/api/models/protocol_enum.rb +35 -0
  683. data/lib/authentik/api/models/provider.rb +421 -0
  684. data/lib/authentik/api/models/provider_enum.rb +34 -0
  685. data/lib/authentik/api/models/provider_model_enum.rb +42 -0
  686. data/lib/authentik/api/models/provider_type_enum.rb +49 -0
  687. data/lib/authentik/api/models/proxy_mode.rb +35 -0
  688. data/lib/authentik/api/models/proxy_outpost_config.rb +518 -0
  689. data/lib/authentik/api/models/proxy_provider.rb +691 -0
  690. data/lib/authentik/api/models/proxy_provider_request.rb +479 -0
  691. data/lib/authentik/api/models/rac_property_mapping.rb +341 -0
  692. data/lib/authentik/api/models/rac_property_mapping_request.rb +231 -0
  693. data/lib/authentik/api/models/rac_provider.rb +453 -0
  694. data/lib/authentik/api/models/rac_provider_request.rb +267 -0
  695. data/lib/authentik/api/models/radius_check_access.rb +168 -0
  696. data/lib/authentik/api/models/radius_outpost_config.rb +277 -0
  697. data/lib/authentik/api/models/radius_provider.rb +489 -0
  698. data/lib/authentik/api/models/radius_provider_property_mapping.rb +330 -0
  699. data/lib/authentik/api/models/radius_provider_property_mapping_request.rb +229 -0
  700. data/lib/authentik/api/models/radius_provider_request.rb +322 -0
  701. data/lib/authentik/api/models/redirect_challenge.rb +190 -0
  702. data/lib/authentik/api/models/redirect_challenge_response_request.rb +198 -0
  703. data/lib/authentik/api/models/redirect_stage.rb +397 -0
  704. data/lib/authentik/api/models/redirect_stage_mode_enum.rb +34 -0
  705. data/lib/authentik/api/models/redirect_stage_request.rb +244 -0
  706. data/lib/authentik/api/models/redirect_uri.rb +207 -0
  707. data/lib/authentik/api/models/redirect_uri_request.rb +216 -0
  708. data/lib/authentik/api/models/related_group.rb +232 -0
  709. data/lib/authentik/api/models/reputation.rb +279 -0
  710. data/lib/authentik/api/models/reputation_policy.rb +385 -0
  711. data/lib/authentik/api/models/reputation_policy_request.rb +233 -0
  712. data/lib/authentik/api/models/resident_key_requirement_enum.rb +35 -0
  713. data/lib/authentik/api/models/role.rb +194 -0
  714. data/lib/authentik/api/models/role_assigned_object_permission.rb +241 -0
  715. data/lib/authentik/api/models/role_model_permission.rb +263 -0
  716. data/lib/authentik/api/models/role_object_permission.rb +289 -0
  717. data/lib/authentik/api/models/role_request.rb +177 -0
  718. data/lib/authentik/api/models/saml_bindings_enum.rb +34 -0
  719. data/lib/authentik/api/models/saml_metadata.rb +185 -0
  720. data/lib/authentik/api/models/saml_name_id_policy_enum.rb +38 -0
  721. data/lib/authentik/api/models/saml_property_mapping.rb +366 -0
  722. data/lib/authentik/api/models/saml_property_mapping_request.rb +274 -0
  723. data/lib/authentik/api/models/saml_provider.rb +840 -0
  724. data/lib/authentik/api/models/saml_provider_logout_method_enum.rb +35 -0
  725. data/lib/authentik/api/models/saml_provider_request.rb +586 -0
  726. data/lib/authentik/api/models/saml_source.rb +698 -0
  727. data/lib/authentik/api/models/saml_source_property_mapping.rb +330 -0
  728. data/lib/authentik/api/models/saml_source_property_mapping_request.rb +229 -0
  729. data/lib/authentik/api/models/saml_source_request.rb +578 -0
  730. data/lib/authentik/api/models/schedule.rb +395 -0
  731. data/lib/authentik/api/models/schedule_request.rb +203 -0
  732. data/lib/authentik/api/models/scim_authentication_mode_enum.rb +34 -0
  733. data/lib/authentik/api/models/scim_mapping.rb +330 -0
  734. data/lib/authentik/api/models/scim_mapping_request.rb +229 -0
  735. data/lib/authentik/api/models/scim_provider.rb +539 -0
  736. data/lib/authentik/api/models/scim_provider_group.rb +291 -0
  737. data/lib/authentik/api/models/scim_provider_group_request.rb +220 -0
  738. data/lib/authentik/api/models/scim_provider_request.rb +435 -0
  739. data/lib/authentik/api/models/scim_provider_user.rb +291 -0
  740. data/lib/authentik/api/models/scim_provider_user_request.rb +220 -0
  741. data/lib/authentik/api/models/scim_source.rb +438 -0
  742. data/lib/authentik/api/models/scim_source_group.rb +257 -0
  743. data/lib/authentik/api/models/scim_source_group_request.rb +259 -0
  744. data/lib/authentik/api/models/scim_source_property_mapping.rb +330 -0
  745. data/lib/authentik/api/models/scim_source_property_mapping_request.rb +229 -0
  746. data/lib/authentik/api/models/scim_source_request.rb +275 -0
  747. data/lib/authentik/api/models/scim_source_user.rb +257 -0
  748. data/lib/authentik/api/models/scim_source_user_request.rb +259 -0
  749. data/lib/authentik/api/models/scope_mapping.rb +367 -0
  750. data/lib/authentik/api/models/scope_mapping_request.rb +275 -0
  751. data/lib/authentik/api/models/selectable_stage.rb +237 -0
  752. data/lib/authentik/api/models/service_connection.rb +303 -0
  753. data/lib/authentik/api/models/service_connection_state.rb +185 -0
  754. data/lib/authentik/api/models/session_end_challenge.rb +269 -0
  755. data/lib/authentik/api/models/session_user.rb +168 -0
  756. data/lib/authentik/api/models/settings.rb +449 -0
  757. data/lib/authentik/api/models/settings_request.rb +506 -0
  758. data/lib/authentik/api/models/severity_enum.rb +35 -0
  759. data/lib/authentik/api/models/shell_challenge.rb +190 -0
  760. data/lib/authentik/api/models/signature_algorithm_enum.rb +41 -0
  761. data/lib/authentik/api/models/sms_device.rb +247 -0
  762. data/lib/authentik/api/models/sms_device_request.rb +178 -0
  763. data/lib/authentik/api/models/software.rb +202 -0
  764. data/lib/authentik/api/models/software_request.rb +239 -0
  765. data/lib/authentik/api/models/source.rb +492 -0
  766. data/lib/authentik/api/models/source_stage.rb +357 -0
  767. data/lib/authentik/api/models/source_stage_request.rb +223 -0
  768. data/lib/authentik/api/models/source_type.rb +283 -0
  769. data/lib/authentik/api/models/ssf_provider.rb +378 -0
  770. data/lib/authentik/api/models/ssf_provider_request.rb +234 -0
  771. data/lib/authentik/api/models/ssf_stream.rb +343 -0
  772. data/lib/authentik/api/models/stage.rb +321 -0
  773. data/lib/authentik/api/models/stage_mode_enum.rb +34 -0
  774. data/lib/authentik/api/models/stage_prompt.rb +377 -0
  775. data/lib/authentik/api/models/state_enum.rb +39 -0
  776. data/lib/authentik/api/models/static_device.rb +249 -0
  777. data/lib/authentik/api/models/static_device_request.rb +178 -0
  778. data/lib/authentik/api/models/static_device_token.rb +168 -0
  779. data/lib/authentik/api/models/sub_mode_enum.rb +38 -0
  780. data/lib/authentik/api/models/sync_object_model_enum.rb +34 -0
  781. data/lib/authentik/api/models/sync_object_request.rb +227 -0
  782. data/lib/authentik/api/models/sync_object_result.rb +161 -0
  783. data/lib/authentik/api/models/sync_outgoing_trigger_mode_enum.rb +35 -0
  784. data/lib/authentik/api/models/sync_status.rb +199 -0
  785. data/lib/authentik/api/models/system_info.rb +350 -0
  786. data/lib/authentik/api/models/system_info_runtime.rb +327 -0
  787. data/lib/authentik/api/models/task.rb +451 -0
  788. data/lib/authentik/api/models/task_aggregated_status_enum.rb +42 -0
  789. data/lib/authentik/api/models/telegram_auth_request.rb +367 -0
  790. data/lib/authentik/api/models/telegram_challenge_response_request.rb +398 -0
  791. data/lib/authentik/api/models/telegram_login_challenge.rb +217 -0
  792. data/lib/authentik/api/models/telegram_source.rb +555 -0
  793. data/lib/authentik/api/models/telegram_source_property_mapping.rb +330 -0
  794. data/lib/authentik/api/models/telegram_source_property_mapping_request.rb +229 -0
  795. data/lib/authentik/api/models/telegram_source_request.rb +466 -0
  796. data/lib/authentik/api/models/tenant.rb +229 -0
  797. data/lib/authentik/api/models/tenant_admin_group_request_request.rb +168 -0
  798. data/lib/authentik/api/models/tenant_recovery_key_request_request.rb +194 -0
  799. data/lib/authentik/api/models/tenant_recovery_key_response.rb +185 -0
  800. data/lib/authentik/api/models/tenant_request.rb +221 -0
  801. data/lib/authentik/api/models/themed_urls.rb +153 -0
  802. data/lib/authentik/api/models/token.rb +310 -0
  803. data/lib/authentik/api/models/token_model.rb +312 -0
  804. data/lib/authentik/api/models/token_request.rb +282 -0
  805. data/lib/authentik/api/models/token_set_key_request.rb +168 -0
  806. data/lib/authentik/api/models/token_view.rb +159 -0
  807. data/lib/authentik/api/models/totp_device.rb +221 -0
  808. data/lib/authentik/api/models/totp_device_request.rb +178 -0
  809. data/lib/authentik/api/models/transaction_application_request.rb +244 -0
  810. data/lib/authentik/api/models/transaction_application_response.rb +187 -0
  811. data/lib/authentik/api/models/transaction_policy_binding_request.rb +274 -0
  812. data/lib/authentik/api/models/type_create.rb +268 -0
  813. data/lib/authentik/api/models/ui_theme_enum.rb +35 -0
  814. data/lib/authentik/api/models/unique_password_policy.rb +378 -0
  815. data/lib/authentik/api/models/unique_password_policy_request.rb +245 -0
  816. data/lib/authentik/api/models/used_by.rb +285 -0
  817. data/lib/authentik/api/models/used_by_action_enum.rb +37 -0
  818. data/lib/authentik/api/models/user.rb +553 -0
  819. data/lib/authentik/api/models/user_account_request.rb +159 -0
  820. data/lib/authentik/api/models/user_account_serializer_for_role_request.rb +159 -0
  821. data/lib/authentik/api/models/user_attribute_enum.rb +34 -0
  822. data/lib/authentik/api/models/user_consent.rb +241 -0
  823. data/lib/authentik/api/models/user_creation_mode_enum.rb +35 -0
  824. data/lib/authentik/api/models/user_delete_stage.rb +321 -0
  825. data/lib/authentik/api/models/user_delete_stage_request.rb +168 -0
  826. data/lib/authentik/api/models/user_fields_enum.rb +35 -0
  827. data/lib/authentik/api/models/user_kerberos_source_connection.rb +315 -0
  828. data/lib/authentik/api/models/user_kerberos_source_connection_request.rb +220 -0
  829. data/lib/authentik/api/models/user_ldap_source_connection.rb +315 -0
  830. data/lib/authentik/api/models/user_ldap_source_connection_request.rb +220 -0
  831. data/lib/authentik/api/models/user_login_challenge.rb +216 -0
  832. data/lib/authentik/api/models/user_login_challenge_response_request.rb +189 -0
  833. data/lib/authentik/api/models/user_login_stage.rb +403 -0
  834. data/lib/authentik/api/models/user_login_stage_request.rb +307 -0
  835. data/lib/authentik/api/models/user_logout_stage.rb +321 -0
  836. data/lib/authentik/api/models/user_logout_stage_request.rb +168 -0
  837. data/lib/authentik/api/models/user_matching_mode_enum.rb +37 -0
  838. data/lib/authentik/api/models/user_o_auth_source_connection.rb +324 -0
  839. data/lib/authentik/api/models/user_o_auth_source_connection_request.rb +239 -0
  840. data/lib/authentik/api/models/user_password_set_request.rb +168 -0
  841. data/lib/authentik/api/models/user_path.rb +160 -0
  842. data/lib/authentik/api/models/user_plex_source_connection.rb +315 -0
  843. data/lib/authentik/api/models/user_plex_source_connection_request.rb +255 -0
  844. data/lib/authentik/api/models/user_request.rb +344 -0
  845. data/lib/authentik/api/models/user_saml_source_connection.rb +315 -0
  846. data/lib/authentik/api/models/user_saml_source_connection_request.rb +220 -0
  847. data/lib/authentik/api/models/user_self.rb +512 -0
  848. data/lib/authentik/api/models/user_self_groups.rb +184 -0
  849. data/lib/authentik/api/models/user_self_roles.rb +184 -0
  850. data/lib/authentik/api/models/user_service_account_request.rb +200 -0
  851. data/lib/authentik/api/models/user_service_account_response.rb +245 -0
  852. data/lib/authentik/api/models/user_setting.rb +229 -0
  853. data/lib/authentik/api/models/user_source_connection.rb +315 -0
  854. data/lib/authentik/api/models/user_source_connection_request.rb +220 -0
  855. data/lib/authentik/api/models/user_telegram_source_connection.rb +315 -0
  856. data/lib/authentik/api/models/user_telegram_source_connection_request.rb +220 -0
  857. data/lib/authentik/api/models/user_type_enum.rb +36 -0
  858. data/lib/authentik/api/models/user_verification_enum.rb +35 -0
  859. data/lib/authentik/api/models/user_write_stage.rb +391 -0
  860. data/lib/authentik/api/models/user_write_stage_request.rb +238 -0
  861. data/lib/authentik/api/models/validation_error.rb +153 -0
  862. data/lib/authentik/api/models/version.rb +295 -0
  863. data/lib/authentik/api/models/version_history.rb +237 -0
  864. data/lib/authentik/api/models/web_authn_device.rb +284 -0
  865. data/lib/authentik/api/models/web_authn_device_request.rb +177 -0
  866. data/lib/authentik/api/models/web_authn_device_type.rb +185 -0
  867. data/lib/authentik/api/models/worker.rb +210 -0
  868. data/lib/authentik/api/version.rb +11 -0
  869. data/lib/authentik/api.rb +33 -0
  870. data/spec/api/admin_api_spec.rb +184 -0
  871. data/spec/api/authenticators_api_spec.rb +1023 -0
  872. data/spec/api/core_api_spec.rb +890 -0
  873. data/spec/api/crypto_api_spec.rb +151 -0
  874. data/spec/api/endpoints_api_spec.rb +606 -0
  875. data/spec/api/enterprise_api_spec.rb +143 -0
  876. data/spec/api/events_api_spec.rb +443 -0
  877. data/spec/api/flows_api_spec.rb +309 -0
  878. data/spec/api/managed_api_spec.rb +134 -0
  879. data/spec/api/oauth2_api_spec.rb +176 -0
  880. data/spec/api/outposts_api_spec.rb +459 -0
  881. data/spec/api/policies_api_spec.rb +990 -0
  882. data/spec/api/propertymappings_api_spec.rb +1379 -0
  883. data/spec/api/providers_api_spec.rb +1490 -0
  884. data/spec/api/rac_api_spec.rb +188 -0
  885. data/spec/api/rbac_api_spec.rb +309 -0
  886. data/spec/api/reports_api_spec.rb +62 -0
  887. data/spec/api/root_api_spec.rb +39 -0
  888. data/spec/api/schema_api_spec.rb +41 -0
  889. data/spec/api/sources_api_spec.rb +2192 -0
  890. data/spec/api/ssf_api_spec.rb +57 -0
  891. data/spec/api/stages_api_spec.rb +2538 -0
  892. data/spec/api/tasks_api_spec.rb +153 -0
  893. data/spec/api/tenants_api_spec.rb +195 -0
  894. data/spec/models/access_denied_challenge_spec.rb +60 -0
  895. data/spec/models/agent_authentication_response_spec.rb +30 -0
  896. data/spec/models/agent_config_spec.rb +84 -0
  897. data/spec/models/agent_connector_request_spec.rb +108 -0
  898. data/spec/models/agent_connector_spec.rb +132 -0
  899. data/spec/models/agent_psso_device_registration_request_spec.rb +48 -0
  900. data/spec/models/agent_psso_device_registration_response_spec.rb +60 -0
  901. data/spec/models/agent_psso_user_registration_request_spec.rb +42 -0
  902. data/spec/models/agent_token_response_spec.rb +36 -0
  903. data/spec/models/alg_enum_spec.rb +24 -0
  904. data/spec/models/app_enum_spec.rb +24 -0
  905. data/spec/models/app_spec.rb +36 -0
  906. data/spec/models/apple_challenge_response_request_spec.rb +30 -0
  907. data/spec/models/apple_login_challenge_spec.rb +66 -0
  908. data/spec/models/application_entitlement_request_spec.rb +42 -0
  909. data/spec/models/application_entitlement_spec.rb +48 -0
  910. data/spec/models/application_request_spec.rb +90 -0
  911. data/spec/models/application_spec.rb +126 -0
  912. data/spec/models/auth_type_enum_spec.rb +24 -0
  913. data/spec/models/authenticated_session_asn_spec.rb +42 -0
  914. data/spec/models/authenticated_session_geo_ip_spec.rb +54 -0
  915. data/spec/models/authenticated_session_spec.rb +84 -0
  916. data/spec/models/authenticated_session_user_agent_device_spec.rb +42 -0
  917. data/spec/models/authenticated_session_user_agent_os_spec.rb +54 -0
  918. data/spec/models/authenticated_session_user_agent_spec.rb +48 -0
  919. data/spec/models/authenticated_session_user_agent_user_agent_spec.rb +48 -0
  920. data/spec/models/authentication_enum_spec.rb +24 -0
  921. data/spec/models/authenticator_attachment_enum_spec.rb +24 -0
  922. data/spec/models/authenticator_duo_challenge_response_request_spec.rb +30 -0
  923. data/spec/models/authenticator_duo_challenge_spec.rb +72 -0
  924. data/spec/models/authenticator_duo_stage_device_import_response_spec.rb +36 -0
  925. data/spec/models/authenticator_duo_stage_manual_device_import_request_spec.rb +36 -0
  926. data/spec/models/authenticator_duo_stage_request_spec.rb +72 -0
  927. data/spec/models/authenticator_duo_stage_spec.rb +96 -0
  928. data/spec/models/authenticator_email_challenge_response_request_spec.rb +42 -0
  929. data/spec/models/authenticator_email_challenge_spec.rb +66 -0
  930. data/spec/models/authenticator_email_stage_request_spec.rb +114 -0
  931. data/spec/models/authenticator_email_stage_spec.rb +150 -0
  932. data/spec/models/authenticator_endpoint_gdtc_stage_request_spec.rb +48 -0
  933. data/spec/models/authenticator_endpoint_gdtc_stage_spec.rb +84 -0
  934. data/spec/models/authenticator_sms_challenge_response_request_spec.rb +42 -0
  935. data/spec/models/authenticator_sms_challenge_spec.rb +60 -0
  936. data/spec/models/authenticator_sms_stage_request_spec.rb +90 -0
  937. data/spec/models/authenticator_sms_stage_spec.rb +126 -0
  938. data/spec/models/authenticator_static_challenge_response_request_spec.rb +30 -0
  939. data/spec/models/authenticator_static_challenge_spec.rb +60 -0
  940. data/spec/models/authenticator_static_stage_request_spec.rb +54 -0
  941. data/spec/models/authenticator_static_stage_spec.rb +90 -0
  942. data/spec/models/authenticator_totp_challenge_response_request_spec.rb +36 -0
  943. data/spec/models/authenticator_totp_challenge_spec.rb +60 -0
  944. data/spec/models/authenticator_totp_stage_request_spec.rb +48 -0
  945. data/spec/models/authenticator_totp_stage_spec.rb +84 -0
  946. data/spec/models/authenticator_validate_stage_request_spec.rb +66 -0
  947. data/spec/models/authenticator_validate_stage_spec.rb +108 -0
  948. data/spec/models/authenticator_validation_challenge_response_request_spec.rb +60 -0
  949. data/spec/models/authenticator_validation_challenge_spec.rb +66 -0
  950. data/spec/models/authenticator_web_authn_challenge_response_request_spec.rb +36 -0
  951. data/spec/models/authenticator_web_authn_challenge_spec.rb +60 -0
  952. data/spec/models/authenticator_web_authn_stage_request_spec.rb +72 -0
  953. data/spec/models/authenticator_web_authn_stage_spec.rb +114 -0
  954. data/spec/models/authorization_code_auth_method_enum_spec.rb +24 -0
  955. data/spec/models/auto_submit_challenge_response_request_spec.rb +30 -0
  956. data/spec/models/autosubmit_challenge_spec.rb +60 -0
  957. data/spec/models/backends_enum_spec.rb +24 -0
  958. data/spec/models/binding_type_enum_spec.rb +24 -0
  959. data/spec/models/blueprint_file_spec.rb +48 -0
  960. data/spec/models/blueprint_instance_request_spec.rb +54 -0
  961. data/spec/models/blueprint_instance_spec.rb +90 -0
  962. data/spec/models/blueprint_instance_status_enum_spec.rb +24 -0
  963. data/spec/models/brand_request_spec.rb +126 -0
  964. data/spec/models/brand_spec.rb +132 -0
  965. data/spec/models/cache_spec.rb +30 -0
  966. data/spec/models/capabilities_enum_spec.rb +24 -0
  967. data/spec/models/captcha_challenge_response_request_spec.rb +36 -0
  968. data/spec/models/captcha_challenge_spec.rb +72 -0
  969. data/spec/models/captcha_stage_request_spec.rb +78 -0
  970. data/spec/models/captcha_stage_spec.rb +108 -0
  971. data/spec/models/cert_attribute_enum_spec.rb +24 -0
  972. data/spec/models/certificate_data_spec.rb +30 -0
  973. data/spec/models/certificate_generation_request_spec.rb +48 -0
  974. data/spec/models/certificate_key_pair_request_spec.rb +42 -0
  975. data/spec/models/certificate_key_pair_spec.rb +90 -0
  976. data/spec/models/challenge_types_spec.rb +38 -0
  977. data/spec/models/client_type_enum_spec.rb +24 -0
  978. data/spec/models/compatibility_mode_enum_spec.rb +24 -0
  979. data/spec/models/config_spec.rb +54 -0
  980. data/spec/models/connection_token_request_spec.rb +42 -0
  981. data/spec/models/connection_token_spec.rb +60 -0
  982. data/spec/models/connector_spec.rb +66 -0
  983. data/spec/models/consent_challenge_response_request_spec.rb +36 -0
  984. data/spec/models/consent_challenge_spec.rb +78 -0
  985. data/spec/models/consent_permission_spec.rb +36 -0
  986. data/spec/models/consent_stage_mode_enum_spec.rb +24 -0
  987. data/spec/models/consent_stage_request_spec.rb +42 -0
  988. data/spec/models/consent_stage_spec.rb +78 -0
  989. data/spec/models/content_type_spec.rb +48 -0
  990. data/spec/models/contextual_flow_info_layout_enum_spec.rb +24 -0
  991. data/spec/models/contextual_flow_info_spec.rb +54 -0
  992. data/spec/models/country_code_enum_spec.rb +24 -0
  993. data/spec/models/current_brand_flags_spec.rb +36 -0
  994. data/spec/models/current_brand_spec.rb +126 -0
  995. data/spec/models/data_export_spec.rb +66 -0
  996. data/spec/models/delivery_method_enum_spec.rb +24 -0
  997. data/spec/models/denied_action_enum_spec.rb +24 -0
  998. data/spec/models/deny_stage_request_spec.rb +36 -0
  999. data/spec/models/deny_stage_spec.rb +72 -0
  1000. data/spec/models/detailed_country_field_spec.rb +36 -0
  1001. data/spec/models/detailed_country_spec.rb +36 -0
  1002. data/spec/models/device_access_group_request_spec.rb +30 -0
  1003. data/spec/models/device_access_group_spec.rb +36 -0
  1004. data/spec/models/device_challenge_request_spec.rb +48 -0
  1005. data/spec/models/device_challenge_spec.rb +48 -0
  1006. data/spec/models/device_classes_enum_spec.rb +24 -0
  1007. data/spec/models/device_connection_spec.rb +48 -0
  1008. data/spec/models/device_fact_snapshot_spec.rb +48 -0
  1009. data/spec/models/device_facts_os_family_spec.rb +24 -0
  1010. data/spec/models/device_facts_request_spec.rb +78 -0
  1011. data/spec/models/device_facts_spec.rb +78 -0
  1012. data/spec/models/device_group_request_spec.rb +36 -0
  1013. data/spec/models/device_group_spec.rb +36 -0
  1014. data/spec/models/device_spec.rb +96 -0
  1015. data/spec/models/device_summary_spec.rb +42 -0
  1016. data/spec/models/device_user_binding_request_spec.rb +84 -0
  1017. data/spec/models/device_user_binding_spec.rb +120 -0
  1018. data/spec/models/device_user_request_spec.rb +48 -0
  1019. data/spec/models/device_user_spec.rb +48 -0
  1020. data/spec/models/digest_algorithm_enum_spec.rb +24 -0
  1021. data/spec/models/digits_enum_spec.rb +24 -0
  1022. data/spec/models/disk_request_spec.rb +60 -0
  1023. data/spec/models/disk_spec.rb +60 -0
  1024. data/spec/models/docker_service_connection_request_spec.rb +54 -0
  1025. data/spec/models/docker_service_connection_spec.rb +84 -0
  1026. data/spec/models/domain_request_spec.rb +42 -0
  1027. data/spec/models/domain_spec.rb +48 -0
  1028. data/spec/models/dummy_challenge_response_request_spec.rb +30 -0
  1029. data/spec/models/dummy_challenge_spec.rb +48 -0
  1030. data/spec/models/dummy_policy_request_spec.rb +54 -0
  1031. data/spec/models/dummy_policy_spec.rb +90 -0
  1032. data/spec/models/dummy_stage_request_spec.rb +36 -0
  1033. data/spec/models/dummy_stage_spec.rb +72 -0
  1034. data/spec/models/duo_device_enrollment_status_spec.rb +30 -0
  1035. data/spec/models/duo_device_request_spec.rb +30 -0
  1036. data/spec/models/duo_device_spec.rb +42 -0
  1037. data/spec/models/duo_response_enum_spec.rb +24 -0
  1038. data/spec/models/email_challenge_response_request_spec.rb +30 -0
  1039. data/spec/models/email_challenge_spec.rb +42 -0
  1040. data/spec/models/email_device_request_spec.rb +30 -0
  1041. data/spec/models/email_device_spec.rb +48 -0
  1042. data/spec/models/email_stage_request_spec.rb +120 -0
  1043. data/spec/models/email_stage_spec.rb +150 -0
  1044. data/spec/models/endpoint_agent_challenge_response_request_spec.rb +36 -0
  1045. data/spec/models/endpoint_agent_challenge_spec.rb +54 -0
  1046. data/spec/models/endpoint_auth_mode_enum_spec.rb +24 -0
  1047. data/spec/models/endpoint_device_details_spec.rb +96 -0
  1048. data/spec/models/endpoint_device_request_spec.rb +66 -0
  1049. data/spec/models/endpoint_device_spec.rb +78 -0
  1050. data/spec/models/endpoint_request_spec.rb +72 -0
  1051. data/spec/models/endpoint_spec.rb +90 -0
  1052. data/spec/models/endpoint_stage_request_spec.rb +42 -0
  1053. data/spec/models/endpoint_stage_spec.rb +84 -0
  1054. data/spec/models/enroll_request_spec.rb +36 -0
  1055. data/spec/models/enrollment_token_request_spec.rb +54 -0
  1056. data/spec/models/enrollment_token_spec.rb +66 -0
  1057. data/spec/models/error_detail_spec.rb +36 -0
  1058. data/spec/models/error_reporting_config_spec.rb +54 -0
  1059. data/spec/models/event_actions_spec.rb +24 -0
  1060. data/spec/models/event_matcher_policy_request_spec.rb +60 -0
  1061. data/spec/models/event_matcher_policy_spec.rb +96 -0
  1062. data/spec/models/event_request_spec.rb +66 -0
  1063. data/spec/models/event_spec.rb +78 -0
  1064. data/spec/models/event_top_per_user_spec.rb +42 -0
  1065. data/spec/models/event_volume_spec.rb +42 -0
  1066. data/spec/models/events_requested_enum_spec.rb +24 -0
  1067. data/spec/models/expiring_base_grant_model_spec.rb +60 -0
  1068. data/spec/models/expression_policy_request_spec.rb +42 -0
  1069. data/spec/models/expression_policy_spec.rb +78 -0
  1070. data/spec/models/extra_role_object_permission_spec.rb +78 -0
  1071. data/spec/models/file_list_spec.rb +48 -0
  1072. data/spec/models/flow_challenge_response_request_spec.rb +38 -0
  1073. data/spec/models/flow_designation_enum_spec.rb +24 -0
  1074. data/spec/models/flow_diagram_spec.rb +30 -0
  1075. data/spec/models/flow_error_challenge_spec.rb +60 -0
  1076. data/spec/models/flow_import_result_spec.rb +36 -0
  1077. data/spec/models/flow_inspection_spec.rb +42 -0
  1078. data/spec/models/flow_inspector_plan_spec.rb +48 -0
  1079. data/spec/models/flow_layout_enum_spec.rb +24 -0
  1080. data/spec/models/flow_request_spec.rb +84 -0
  1081. data/spec/models/flow_set_spec.rb +96 -0
  1082. data/spec/models/flow_spec.rb +132 -0
  1083. data/spec/models/flow_stage_binding_request_spec.rb +66 -0
  1084. data/spec/models/flow_stage_binding_spec.rb +84 -0
  1085. data/spec/models/footer_link_spec.rb +36 -0
  1086. data/spec/models/frame_challenge_response_request_spec.rb +30 -0
  1087. data/spec/models/frame_challenge_spec.rb +60 -0
  1088. data/spec/models/generic_error_spec.rb +36 -0
  1089. data/spec/models/geo_ip_policy_request_spec.rb +84 -0
  1090. data/spec/models/geo_ip_policy_spec.rb +126 -0
  1091. data/spec/models/geoip_binding_enum_spec.rb +24 -0
  1092. data/spec/models/global_task_status_spec.rb +84 -0
  1093. data/spec/models/google_endpoint_device_request_spec.rb +36 -0
  1094. data/spec/models/google_endpoint_device_spec.rb +36 -0
  1095. data/spec/models/google_workspace_provider_group_request_spec.rb +42 -0
  1096. data/spec/models/google_workspace_provider_group_spec.rb +60 -0
  1097. data/spec/models/google_workspace_provider_mapping_request_spec.rb +42 -0
  1098. data/spec/models/google_workspace_provider_mapping_spec.rb +72 -0
  1099. data/spec/models/google_workspace_provider_request_spec.rb +108 -0
  1100. data/spec/models/google_workspace_provider_spec.rb +150 -0
  1101. data/spec/models/google_workspace_provider_user_request_spec.rb +42 -0
  1102. data/spec/models/google_workspace_provider_user_spec.rb +60 -0
  1103. data/spec/models/group_kerberos_source_connection_request_spec.rb +42 -0
  1104. data/spec/models/group_kerberos_source_connection_spec.rb +66 -0
  1105. data/spec/models/group_ldap_source_connection_request_spec.rb +42 -0
  1106. data/spec/models/group_ldap_source_connection_spec.rb +66 -0
  1107. data/spec/models/group_matching_mode_enum_spec.rb +24 -0
  1108. data/spec/models/group_o_auth_source_connection_request_spec.rb +42 -0
  1109. data/spec/models/group_o_auth_source_connection_spec.rb +66 -0
  1110. data/spec/models/group_plex_source_connection_request_spec.rb +42 -0
  1111. data/spec/models/group_plex_source_connection_spec.rb +66 -0
  1112. data/spec/models/group_request_spec.rb +60 -0
  1113. data/spec/models/group_saml_source_connection_request_spec.rb +42 -0
  1114. data/spec/models/group_saml_source_connection_spec.rb +66 -0
  1115. data/spec/models/group_source_connection_request_spec.rb +42 -0
  1116. data/spec/models/group_source_connection_spec.rb +66 -0
  1117. data/spec/models/group_spec.rb +108 -0
  1118. data/spec/models/group_telegram_source_connection_request_spec.rb +42 -0
  1119. data/spec/models/group_telegram_source_connection_spec.rb +66 -0
  1120. data/spec/models/hardware_request_spec.rb +60 -0
  1121. data/spec/models/hardware_spec.rb +60 -0
  1122. data/spec/models/identification_challenge_response_request_spec.rb +54 -0
  1123. data/spec/models/identification_challenge_spec.rb +126 -0
  1124. data/spec/models/identification_stage_request_spec.rb +108 -0
  1125. data/spec/models/identification_stage_spec.rb +144 -0
  1126. data/spec/models/iframe_logout_challenge_response_request_spec.rb +30 -0
  1127. data/spec/models/iframe_logout_challenge_spec.rb +48 -0
  1128. data/spec/models/impersonation_request_spec.rb +30 -0
  1129. data/spec/models/initial_permissions_request_spec.rb +42 -0
  1130. data/spec/models/initial_permissions_spec.rb +54 -0
  1131. data/spec/models/install_id_spec.rb +30 -0
  1132. data/spec/models/intent_enum_spec.rb +24 -0
  1133. data/spec/models/invalid_response_action_enum_spec.rb +24 -0
  1134. data/spec/models/invitation_request_spec.rb +54 -0
  1135. data/spec/models/invitation_spec.rb +72 -0
  1136. data/spec/models/invitation_stage_request_spec.rb +36 -0
  1137. data/spec/models/invitation_stage_spec.rb +72 -0
  1138. data/spec/models/issuer_mode_enum_spec.rb +24 -0
  1139. data/spec/models/kadmin_type_enum_spec.rb +24 -0
  1140. data/spec/models/kerberos_source_property_mapping_request_spec.rb +42 -0
  1141. data/spec/models/kerberos_source_property_mapping_spec.rb +72 -0
  1142. data/spec/models/kerberos_source_request_spec.rb +186 -0
  1143. data/spec/models/kerberos_source_spec.rb +222 -0
  1144. data/spec/models/key_type_enum_spec.rb +24 -0
  1145. data/spec/models/kubernetes_service_connection_request_spec.rb +48 -0
  1146. data/spec/models/kubernetes_service_connection_spec.rb +78 -0
  1147. data/spec/models/last_task_status_enum_spec.rb +24 -0
  1148. data/spec/models/ldap_check_access_spec.rb +36 -0
  1149. data/spec/models/ldap_debug_spec.rb +42 -0
  1150. data/spec/models/ldap_outpost_config_spec.rb +102 -0
  1151. data/spec/models/ldap_provider_request_spec.rb +102 -0
  1152. data/spec/models/ldap_provider_spec.rb +162 -0
  1153. data/spec/models/ldap_source_property_mapping_request_spec.rb +42 -0
  1154. data/spec/models/ldap_source_property_mapping_spec.rb +72 -0
  1155. data/spec/models/ldap_source_request_spec.rb +234 -0
  1156. data/spec/models/ldap_source_spec.rb +282 -0
  1157. data/spec/models/ldapapi_access_mode_spec.rb +24 -0
  1158. data/spec/models/license_flags_enum_spec.rb +24 -0
  1159. data/spec/models/license_forecast_spec.rb +48 -0
  1160. data/spec/models/license_request_spec.rb +30 -0
  1161. data/spec/models/license_spec.rb +60 -0
  1162. data/spec/models/license_status_enum_spec.rb +24 -0
  1163. data/spec/models/license_summary_spec.rb +54 -0
  1164. data/spec/models/license_summary_status_enum_spec.rb +24 -0
  1165. data/spec/models/link_spec.rb +30 -0
  1166. data/spec/models/log_event_spec.rb +54 -0
  1167. data/spec/models/log_level_enum_spec.rb +24 -0
  1168. data/spec/models/login_challenge_types_spec.rb +38 -0
  1169. data/spec/models/login_source_spec.rb +48 -0
  1170. data/spec/models/matching_mode_enum_spec.rb +24 -0
  1171. data/spec/models/mdm_config_request_spec.rb +36 -0
  1172. data/spec/models/mdm_config_response_spec.rb +42 -0
  1173. data/spec/models/metadata_spec.rb +36 -0
  1174. data/spec/models/microsoft_entra_provider_group_request_spec.rb +42 -0
  1175. data/spec/models/microsoft_entra_provider_group_spec.rb +60 -0
  1176. data/spec/models/microsoft_entra_provider_mapping_request_spec.rb +42 -0
  1177. data/spec/models/microsoft_entra_provider_mapping_spec.rb +72 -0
  1178. data/spec/models/microsoft_entra_provider_request_spec.rb +102 -0
  1179. data/spec/models/microsoft_entra_provider_spec.rb +144 -0
  1180. data/spec/models/microsoft_entra_provider_user_request_spec.rb +42 -0
  1181. data/spec/models/microsoft_entra_provider_user_spec.rb +60 -0
  1182. data/spec/models/model_enum_spec.rb +24 -0
  1183. data/spec/models/model_request_spec.rb +38 -0
  1184. data/spec/models/mutual_tls_stage_request_spec.rb +54 -0
  1185. data/spec/models/mutual_tls_stage_spec.rb +90 -0
  1186. data/spec/models/native_logout_challenge_response_request_spec.rb +30 -0
  1187. data/spec/models/native_logout_challenge_spec.rb +84 -0
  1188. data/spec/models/network_binding_enum_spec.rb +24 -0
  1189. data/spec/models/network_interface_request_spec.rb +48 -0
  1190. data/spec/models/network_interface_spec.rb +48 -0
  1191. data/spec/models/network_request_spec.rb +48 -0
  1192. data/spec/models/network_spec.rb +48 -0
  1193. data/spec/models/not_configured_action_enum_spec.rb +24 -0
  1194. data/spec/models/notification_request_spec.rb +48 -0
  1195. data/spec/models/notification_rule_request_spec.rb +54 -0
  1196. data/spec/models/notification_rule_spec.rb +66 -0
  1197. data/spec/models/notification_spec.rb +72 -0
  1198. data/spec/models/notification_transport_mode_enum_spec.rb +24 -0
  1199. data/spec/models/notification_transport_request_spec.rb +72 -0
  1200. data/spec/models/notification_transport_spec.rb +84 -0
  1201. data/spec/models/notification_transport_test_spec.rb +30 -0
  1202. data/spec/models/notification_webhook_mapping_request_spec.rb +36 -0
  1203. data/spec/models/notification_webhook_mapping_spec.rb +42 -0
  1204. data/spec/models/o_auth2_provider_logout_method_enum_spec.rb +24 -0
  1205. data/spec/models/o_auth2_provider_request_spec.rb +156 -0
  1206. data/spec/models/o_auth2_provider_setup_urls_spec.rb +66 -0
  1207. data/spec/models/o_auth2_provider_spec.rb +210 -0
  1208. data/spec/models/o_auth_device_code_challenge_response_request_spec.rb +36 -0
  1209. data/spec/models/o_auth_device_code_challenge_spec.rb +42 -0
  1210. data/spec/models/o_auth_device_code_finish_challenge_response_request_spec.rb +30 -0
  1211. data/spec/models/o_auth_device_code_finish_challenge_spec.rb +42 -0
  1212. data/spec/models/o_auth_source_property_mapping_request_spec.rb +42 -0
  1213. data/spec/models/o_auth_source_property_mapping_spec.rb +72 -0
  1214. data/spec/models/o_auth_source_request_spec.rb +180 -0
  1215. data/spec/models/o_auth_source_spec.rb +234 -0
  1216. data/spec/models/open_id_connect_configuration_spec.rb +90 -0
  1217. data/spec/models/operating_system_request_spec.rb +48 -0
  1218. data/spec/models/operating_system_spec.rb +48 -0
  1219. data/spec/models/outgoing_sync_delete_action_spec.rb +24 -0
  1220. data/spec/models/outpost_default_config_spec.rb +30 -0
  1221. data/spec/models/outpost_health_spec.rb +96 -0
  1222. data/spec/models/outpost_request_spec.rb +60 -0
  1223. data/spec/models/outpost_spec.rb +90 -0
  1224. data/spec/models/outpost_type_enum_spec.rb +24 -0
  1225. data/spec/models/paginated_agent_connector_list_spec.rb +42 -0
  1226. data/spec/models/paginated_application_entitlement_list_spec.rb +42 -0
  1227. data/spec/models/paginated_application_list_spec.rb +42 -0
  1228. data/spec/models/paginated_authenticated_session_list_spec.rb +42 -0
  1229. data/spec/models/paginated_authenticator_duo_stage_list_spec.rb +42 -0
  1230. data/spec/models/paginated_authenticator_email_stage_list_spec.rb +42 -0
  1231. data/spec/models/paginated_authenticator_endpoint_gdtc_stage_list_spec.rb +42 -0
  1232. data/spec/models/paginated_authenticator_sms_stage_list_spec.rb +42 -0
  1233. data/spec/models/paginated_authenticator_static_stage_list_spec.rb +42 -0
  1234. data/spec/models/paginated_authenticator_totp_stage_list_spec.rb +42 -0
  1235. data/spec/models/paginated_authenticator_validate_stage_list_spec.rb +42 -0
  1236. data/spec/models/paginated_authenticator_web_authn_stage_list_spec.rb +42 -0
  1237. data/spec/models/paginated_blueprint_instance_list_spec.rb +42 -0
  1238. data/spec/models/paginated_brand_list_spec.rb +42 -0
  1239. data/spec/models/paginated_captcha_stage_list_spec.rb +42 -0
  1240. data/spec/models/paginated_certificate_key_pair_list_spec.rb +42 -0
  1241. data/spec/models/paginated_connection_token_list_spec.rb +42 -0
  1242. data/spec/models/paginated_connector_list_spec.rb +42 -0
  1243. data/spec/models/paginated_consent_stage_list_spec.rb +42 -0
  1244. data/spec/models/paginated_data_export_list_spec.rb +42 -0
  1245. data/spec/models/paginated_deny_stage_list_spec.rb +42 -0
  1246. data/spec/models/paginated_device_access_group_list_spec.rb +42 -0
  1247. data/spec/models/paginated_device_user_binding_list_spec.rb +42 -0
  1248. data/spec/models/paginated_docker_service_connection_list_spec.rb +42 -0
  1249. data/spec/models/paginated_domain_list_spec.rb +42 -0
  1250. data/spec/models/paginated_dummy_policy_list_spec.rb +42 -0
  1251. data/spec/models/paginated_dummy_stage_list_spec.rb +42 -0
  1252. data/spec/models/paginated_duo_device_list_spec.rb +42 -0
  1253. data/spec/models/paginated_email_device_list_spec.rb +42 -0
  1254. data/spec/models/paginated_email_stage_list_spec.rb +42 -0
  1255. data/spec/models/paginated_endpoint_device_list_spec.rb +42 -0
  1256. data/spec/models/paginated_endpoint_list_spec.rb +42 -0
  1257. data/spec/models/paginated_endpoint_stage_list_spec.rb +42 -0
  1258. data/spec/models/paginated_enrollment_token_list_spec.rb +42 -0
  1259. data/spec/models/paginated_event_list_spec.rb +42 -0
  1260. data/spec/models/paginated_event_matcher_policy_list_spec.rb +42 -0
  1261. data/spec/models/paginated_expiring_base_grant_model_list_spec.rb +42 -0
  1262. data/spec/models/paginated_expression_policy_list_spec.rb +42 -0
  1263. data/spec/models/paginated_extra_role_object_permission_list_spec.rb +36 -0
  1264. data/spec/models/paginated_flow_list_spec.rb +42 -0
  1265. data/spec/models/paginated_flow_stage_binding_list_spec.rb +42 -0
  1266. data/spec/models/paginated_geo_ip_policy_list_spec.rb +42 -0
  1267. data/spec/models/paginated_google_endpoint_device_list_spec.rb +42 -0
  1268. data/spec/models/paginated_google_workspace_provider_group_list_spec.rb +42 -0
  1269. data/spec/models/paginated_google_workspace_provider_list_spec.rb +42 -0
  1270. data/spec/models/paginated_google_workspace_provider_mapping_list_spec.rb +42 -0
  1271. data/spec/models/paginated_google_workspace_provider_user_list_spec.rb +42 -0
  1272. data/spec/models/paginated_group_kerberos_source_connection_list_spec.rb +42 -0
  1273. data/spec/models/paginated_group_ldap_source_connection_list_spec.rb +42 -0
  1274. data/spec/models/paginated_group_list_spec.rb +42 -0
  1275. data/spec/models/paginated_group_o_auth_source_connection_list_spec.rb +42 -0
  1276. data/spec/models/paginated_group_plex_source_connection_list_spec.rb +42 -0
  1277. data/spec/models/paginated_group_saml_source_connection_list_spec.rb +42 -0
  1278. data/spec/models/paginated_group_source_connection_list_spec.rb +42 -0
  1279. data/spec/models/paginated_group_telegram_source_connection_list_spec.rb +42 -0
  1280. data/spec/models/paginated_identification_stage_list_spec.rb +42 -0
  1281. data/spec/models/paginated_initial_permissions_list_spec.rb +42 -0
  1282. data/spec/models/paginated_invitation_list_spec.rb +42 -0
  1283. data/spec/models/paginated_invitation_stage_list_spec.rb +42 -0
  1284. data/spec/models/paginated_kerberos_source_list_spec.rb +42 -0
  1285. data/spec/models/paginated_kerberos_source_property_mapping_list_spec.rb +42 -0
  1286. data/spec/models/paginated_kubernetes_service_connection_list_spec.rb +42 -0
  1287. data/spec/models/paginated_ldap_outpost_config_list_spec.rb +42 -0
  1288. data/spec/models/paginated_ldap_provider_list_spec.rb +42 -0
  1289. data/spec/models/paginated_ldap_source_list_spec.rb +42 -0
  1290. data/spec/models/paginated_ldap_source_property_mapping_list_spec.rb +42 -0
  1291. data/spec/models/paginated_license_list_spec.rb +42 -0
  1292. data/spec/models/paginated_microsoft_entra_provider_group_list_spec.rb +42 -0
  1293. data/spec/models/paginated_microsoft_entra_provider_list_spec.rb +42 -0
  1294. data/spec/models/paginated_microsoft_entra_provider_mapping_list_spec.rb +42 -0
  1295. data/spec/models/paginated_microsoft_entra_provider_user_list_spec.rb +42 -0
  1296. data/spec/models/paginated_mutual_tls_stage_list_spec.rb +42 -0
  1297. data/spec/models/paginated_notification_list_spec.rb +42 -0
  1298. data/spec/models/paginated_notification_rule_list_spec.rb +42 -0
  1299. data/spec/models/paginated_notification_transport_list_spec.rb +42 -0
  1300. data/spec/models/paginated_notification_webhook_mapping_list_spec.rb +42 -0
  1301. data/spec/models/paginated_o_auth2_provider_list_spec.rb +42 -0
  1302. data/spec/models/paginated_o_auth_source_list_spec.rb +42 -0
  1303. data/spec/models/paginated_o_auth_source_property_mapping_list_spec.rb +42 -0
  1304. data/spec/models/paginated_outpost_list_spec.rb +42 -0
  1305. data/spec/models/paginated_password_expiry_policy_list_spec.rb +42 -0
  1306. data/spec/models/paginated_password_policy_list_spec.rb +42 -0
  1307. data/spec/models/paginated_password_stage_list_spec.rb +42 -0
  1308. data/spec/models/paginated_permission_list_spec.rb +42 -0
  1309. data/spec/models/paginated_plex_source_list_spec.rb +42 -0
  1310. data/spec/models/paginated_plex_source_property_mapping_list_spec.rb +42 -0
  1311. data/spec/models/paginated_policy_binding_list_spec.rb +42 -0
  1312. data/spec/models/paginated_policy_list_spec.rb +42 -0
  1313. data/spec/models/paginated_prompt_list_spec.rb +42 -0
  1314. data/spec/models/paginated_prompt_stage_list_spec.rb +42 -0
  1315. data/spec/models/paginated_property_mapping_list_spec.rb +42 -0
  1316. data/spec/models/paginated_provider_list_spec.rb +42 -0
  1317. data/spec/models/paginated_proxy_outpost_config_list_spec.rb +42 -0
  1318. data/spec/models/paginated_proxy_provider_list_spec.rb +42 -0
  1319. data/spec/models/paginated_rac_property_mapping_list_spec.rb +42 -0
  1320. data/spec/models/paginated_rac_provider_list_spec.rb +42 -0
  1321. data/spec/models/paginated_radius_outpost_config_list_spec.rb +42 -0
  1322. data/spec/models/paginated_radius_provider_list_spec.rb +42 -0
  1323. data/spec/models/paginated_radius_provider_property_mapping_list_spec.rb +42 -0
  1324. data/spec/models/paginated_redirect_stage_list_spec.rb +42 -0
  1325. data/spec/models/paginated_reputation_list_spec.rb +42 -0
  1326. data/spec/models/paginated_reputation_policy_list_spec.rb +42 -0
  1327. data/spec/models/paginated_role_assigned_object_permission_list_spec.rb +42 -0
  1328. data/spec/models/paginated_role_list_spec.rb +42 -0
  1329. data/spec/models/paginated_saml_property_mapping_list_spec.rb +42 -0
  1330. data/spec/models/paginated_saml_provider_list_spec.rb +42 -0
  1331. data/spec/models/paginated_saml_source_list_spec.rb +42 -0
  1332. data/spec/models/paginated_saml_source_property_mapping_list_spec.rb +42 -0
  1333. data/spec/models/paginated_schedule_list_spec.rb +42 -0
  1334. data/spec/models/paginated_scim_mapping_list_spec.rb +42 -0
  1335. data/spec/models/paginated_scim_provider_group_list_spec.rb +42 -0
  1336. data/spec/models/paginated_scim_provider_list_spec.rb +42 -0
  1337. data/spec/models/paginated_scim_provider_user_list_spec.rb +42 -0
  1338. data/spec/models/paginated_scim_source_group_list_spec.rb +42 -0
  1339. data/spec/models/paginated_scim_source_list_spec.rb +42 -0
  1340. data/spec/models/paginated_scim_source_property_mapping_list_spec.rb +42 -0
  1341. data/spec/models/paginated_scim_source_user_list_spec.rb +42 -0
  1342. data/spec/models/paginated_scope_mapping_list_spec.rb +42 -0
  1343. data/spec/models/paginated_service_connection_list_spec.rb +42 -0
  1344. data/spec/models/paginated_sms_device_list_spec.rb +42 -0
  1345. data/spec/models/paginated_source_list_spec.rb +42 -0
  1346. data/spec/models/paginated_source_stage_list_spec.rb +42 -0
  1347. data/spec/models/paginated_ssf_provider_list_spec.rb +42 -0
  1348. data/spec/models/paginated_ssf_stream_list_spec.rb +42 -0
  1349. data/spec/models/paginated_stage_list_spec.rb +42 -0
  1350. data/spec/models/paginated_static_device_list_spec.rb +42 -0
  1351. data/spec/models/paginated_task_list_spec.rb +42 -0
  1352. data/spec/models/paginated_telegram_source_list_spec.rb +42 -0
  1353. data/spec/models/paginated_telegram_source_property_mapping_list_spec.rb +42 -0
  1354. data/spec/models/paginated_tenant_list_spec.rb +42 -0
  1355. data/spec/models/paginated_token_list_spec.rb +42 -0
  1356. data/spec/models/paginated_token_model_list_spec.rb +42 -0
  1357. data/spec/models/paginated_totp_device_list_spec.rb +42 -0
  1358. data/spec/models/paginated_unique_password_policy_list_spec.rb +42 -0
  1359. data/spec/models/paginated_user_consent_list_spec.rb +42 -0
  1360. data/spec/models/paginated_user_delete_stage_list_spec.rb +42 -0
  1361. data/spec/models/paginated_user_kerberos_source_connection_list_spec.rb +42 -0
  1362. data/spec/models/paginated_user_ldap_source_connection_list_spec.rb +42 -0
  1363. data/spec/models/paginated_user_list_spec.rb +42 -0
  1364. data/spec/models/paginated_user_login_stage_list_spec.rb +42 -0
  1365. data/spec/models/paginated_user_logout_stage_list_spec.rb +42 -0
  1366. data/spec/models/paginated_user_o_auth_source_connection_list_spec.rb +42 -0
  1367. data/spec/models/paginated_user_plex_source_connection_list_spec.rb +42 -0
  1368. data/spec/models/paginated_user_saml_source_connection_list_spec.rb +42 -0
  1369. data/spec/models/paginated_user_source_connection_list_spec.rb +42 -0
  1370. data/spec/models/paginated_user_telegram_source_connection_list_spec.rb +42 -0
  1371. data/spec/models/paginated_user_write_stage_list_spec.rb +42 -0
  1372. data/spec/models/paginated_web_authn_device_list_spec.rb +42 -0
  1373. data/spec/models/paginated_web_authn_device_type_list_spec.rb +42 -0
  1374. data/spec/models/pagination_spec.rb +66 -0
  1375. data/spec/models/partial_group_spec.rb +54 -0
  1376. data/spec/models/partial_user_spec.rb +72 -0
  1377. data/spec/models/password_challenge_response_request_spec.rb +36 -0
  1378. data/spec/models/password_challenge_spec.rb +66 -0
  1379. data/spec/models/password_expiry_policy_request_spec.rb +48 -0
  1380. data/spec/models/password_expiry_policy_spec.rb +84 -0
  1381. data/spec/models/password_policy_request_spec.rb +114 -0
  1382. data/spec/models/password_policy_spec.rb +150 -0
  1383. data/spec/models/password_stage_request_spec.rb +54 -0
  1384. data/spec/models/password_stage_spec.rb +90 -0
  1385. data/spec/models/patched_agent_connector_request_spec.rb +108 -0
  1386. data/spec/models/patched_application_entitlement_request_spec.rb +42 -0
  1387. data/spec/models/patched_application_request_spec.rb +90 -0
  1388. data/spec/models/patched_authenticator_duo_stage_request_spec.rb +72 -0
  1389. data/spec/models/patched_authenticator_email_stage_request_spec.rb +114 -0
  1390. data/spec/models/patched_authenticator_endpoint_gdtc_stage_request_spec.rb +48 -0
  1391. data/spec/models/patched_authenticator_sms_stage_request_spec.rb +90 -0
  1392. data/spec/models/patched_authenticator_static_stage_request_spec.rb +54 -0
  1393. data/spec/models/patched_authenticator_totp_stage_request_spec.rb +48 -0
  1394. data/spec/models/patched_authenticator_validate_stage_request_spec.rb +66 -0
  1395. data/spec/models/patched_authenticator_web_authn_stage_request_spec.rb +72 -0
  1396. data/spec/models/patched_blueprint_instance_request_spec.rb +54 -0
  1397. data/spec/models/patched_brand_request_spec.rb +126 -0
  1398. data/spec/models/patched_captcha_stage_request_spec.rb +78 -0
  1399. data/spec/models/patched_certificate_key_pair_request_spec.rb +42 -0
  1400. data/spec/models/patched_connection_token_request_spec.rb +42 -0
  1401. data/spec/models/patched_consent_stage_request_spec.rb +42 -0
  1402. data/spec/models/patched_deny_stage_request_spec.rb +36 -0
  1403. data/spec/models/patched_device_access_group_request_spec.rb +30 -0
  1404. data/spec/models/patched_device_user_binding_request_spec.rb +84 -0
  1405. data/spec/models/patched_docker_service_connection_request_spec.rb +54 -0
  1406. data/spec/models/patched_domain_request_spec.rb +42 -0
  1407. data/spec/models/patched_dummy_policy_request_spec.rb +54 -0
  1408. data/spec/models/patched_dummy_stage_request_spec.rb +36 -0
  1409. data/spec/models/patched_duo_device_request_spec.rb +30 -0
  1410. data/spec/models/patched_email_device_request_spec.rb +30 -0
  1411. data/spec/models/patched_email_stage_request_spec.rb +120 -0
  1412. data/spec/models/patched_endpoint_device_request_spec.rb +66 -0
  1413. data/spec/models/patched_endpoint_request_spec.rb +72 -0
  1414. data/spec/models/patched_endpoint_stage_request_spec.rb +42 -0
  1415. data/spec/models/patched_enrollment_token_request_spec.rb +54 -0
  1416. data/spec/models/patched_event_matcher_policy_request_spec.rb +60 -0
  1417. data/spec/models/patched_event_request_spec.rb +66 -0
  1418. data/spec/models/patched_expression_policy_request_spec.rb +42 -0
  1419. data/spec/models/patched_flow_request_spec.rb +84 -0
  1420. data/spec/models/patched_flow_stage_binding_request_spec.rb +66 -0
  1421. data/spec/models/patched_geo_ip_policy_request_spec.rb +84 -0
  1422. data/spec/models/patched_google_endpoint_device_request_spec.rb +36 -0
  1423. data/spec/models/patched_google_workspace_provider_mapping_request_spec.rb +42 -0
  1424. data/spec/models/patched_google_workspace_provider_request_spec.rb +108 -0
  1425. data/spec/models/patched_group_kerberos_source_connection_request_spec.rb +42 -0
  1426. data/spec/models/patched_group_ldap_source_connection_request_spec.rb +42 -0
  1427. data/spec/models/patched_group_o_auth_source_connection_request_spec.rb +42 -0
  1428. data/spec/models/patched_group_plex_source_connection_request_spec.rb +42 -0
  1429. data/spec/models/patched_group_request_spec.rb +60 -0
  1430. data/spec/models/patched_group_saml_source_connection_request_spec.rb +42 -0
  1431. data/spec/models/patched_group_source_connection_request_spec.rb +42 -0
  1432. data/spec/models/patched_group_telegram_source_connection_request_spec.rb +42 -0
  1433. data/spec/models/patched_identification_stage_request_spec.rb +108 -0
  1434. data/spec/models/patched_initial_permissions_request_spec.rb +42 -0
  1435. data/spec/models/patched_invitation_request_spec.rb +54 -0
  1436. data/spec/models/patched_invitation_stage_request_spec.rb +36 -0
  1437. data/spec/models/patched_kerberos_source_property_mapping_request_spec.rb +42 -0
  1438. data/spec/models/patched_kerberos_source_request_spec.rb +186 -0
  1439. data/spec/models/patched_kubernetes_service_connection_request_spec.rb +48 -0
  1440. data/spec/models/patched_ldap_provider_request_spec.rb +102 -0
  1441. data/spec/models/patched_ldap_source_property_mapping_request_spec.rb +42 -0
  1442. data/spec/models/patched_ldap_source_request_spec.rb +234 -0
  1443. data/spec/models/patched_license_request_spec.rb +30 -0
  1444. data/spec/models/patched_microsoft_entra_provider_mapping_request_spec.rb +42 -0
  1445. data/spec/models/patched_microsoft_entra_provider_request_spec.rb +102 -0
  1446. data/spec/models/patched_mutual_tls_stage_request_spec.rb +54 -0
  1447. data/spec/models/patched_notification_request_spec.rb +48 -0
  1448. data/spec/models/patched_notification_rule_request_spec.rb +54 -0
  1449. data/spec/models/patched_notification_transport_request_spec.rb +72 -0
  1450. data/spec/models/patched_notification_webhook_mapping_request_spec.rb +36 -0
  1451. data/spec/models/patched_o_auth2_provider_request_spec.rb +156 -0
  1452. data/spec/models/patched_o_auth_source_property_mapping_request_spec.rb +42 -0
  1453. data/spec/models/patched_o_auth_source_request_spec.rb +180 -0
  1454. data/spec/models/patched_outpost_request_spec.rb +60 -0
  1455. data/spec/models/patched_password_expiry_policy_request_spec.rb +48 -0
  1456. data/spec/models/patched_password_policy_request_spec.rb +114 -0
  1457. data/spec/models/patched_password_stage_request_spec.rb +54 -0
  1458. data/spec/models/patched_permission_assign_request_spec.rb +42 -0
  1459. data/spec/models/patched_plex_source_property_mapping_request_spec.rb +42 -0
  1460. data/spec/models/patched_plex_source_request_spec.rb +126 -0
  1461. data/spec/models/patched_policy_binding_request_spec.rb +78 -0
  1462. data/spec/models/patched_prompt_request_spec.rb +90 -0
  1463. data/spec/models/patched_prompt_stage_request_spec.rb +42 -0
  1464. data/spec/models/patched_proxy_provider_request_spec.rb +144 -0
  1465. data/spec/models/patched_rac_property_mapping_request_spec.rb +48 -0
  1466. data/spec/models/patched_rac_provider_request_spec.rb +66 -0
  1467. data/spec/models/patched_radius_provider_property_mapping_request_spec.rb +42 -0
  1468. data/spec/models/patched_radius_provider_request_spec.rb +78 -0
  1469. data/spec/models/patched_redirect_stage_request_spec.rb +54 -0
  1470. data/spec/models/patched_reputation_policy_request_spec.rb +54 -0
  1471. data/spec/models/patched_role_request_spec.rb +30 -0
  1472. data/spec/models/patched_saml_property_mapping_request_spec.rb +54 -0
  1473. data/spec/models/patched_saml_provider_request_spec.rb +186 -0
  1474. data/spec/models/patched_saml_source_property_mapping_request_spec.rb +42 -0
  1475. data/spec/models/patched_saml_source_request_spec.rb +192 -0
  1476. data/spec/models/patched_schedule_request_spec.rb +42 -0
  1477. data/spec/models/patched_scim_mapping_request_spec.rb +42 -0
  1478. data/spec/models/patched_scim_provider_request_spec.rb +120 -0
  1479. data/spec/models/patched_scim_source_group_request_spec.rb +54 -0
  1480. data/spec/models/patched_scim_source_property_mapping_request_spec.rb +42 -0
  1481. data/spec/models/patched_scim_source_request_spec.rb +60 -0
  1482. data/spec/models/patched_scim_source_user_request_spec.rb +54 -0
  1483. data/spec/models/patched_scope_mapping_request_spec.rb +54 -0
  1484. data/spec/models/patched_settings_request_flags_spec.rb +36 -0
  1485. data/spec/models/patched_settings_request_spec.rb +120 -0
  1486. data/spec/models/patched_sms_device_request_spec.rb +30 -0
  1487. data/spec/models/patched_source_stage_request_spec.rb +42 -0
  1488. data/spec/models/patched_ssf_provider_request_spec.rb +48 -0
  1489. data/spec/models/patched_static_device_request_spec.rb +30 -0
  1490. data/spec/models/patched_telegram_source_property_mapping_request_spec.rb +42 -0
  1491. data/spec/models/patched_telegram_source_request_spec.rb +120 -0
  1492. data/spec/models/patched_tenant_request_spec.rb +42 -0
  1493. data/spec/models/patched_token_request_spec.rb +66 -0
  1494. data/spec/models/patched_totp_device_request_spec.rb +30 -0
  1495. data/spec/models/patched_unique_password_policy_request_spec.rb +48 -0
  1496. data/spec/models/patched_user_delete_stage_request_spec.rb +30 -0
  1497. data/spec/models/patched_user_kerberos_source_connection_request_spec.rb +42 -0
  1498. data/spec/models/patched_user_ldap_source_connection_request_spec.rb +42 -0
  1499. data/spec/models/patched_user_login_stage_request_spec.rb +66 -0
  1500. data/spec/models/patched_user_logout_stage_request_spec.rb +30 -0
  1501. data/spec/models/patched_user_o_auth_source_connection_request_spec.rb +54 -0
  1502. data/spec/models/patched_user_plex_source_connection_request_spec.rb +48 -0
  1503. data/spec/models/patched_user_request_spec.rb +84 -0
  1504. data/spec/models/patched_user_saml_source_connection_request_spec.rb +42 -0
  1505. data/spec/models/patched_user_source_connection_request_spec.rb +42 -0
  1506. data/spec/models/patched_user_telegram_source_connection_request_spec.rb +42 -0
  1507. data/spec/models/patched_user_write_stage_request_spec.rb +60 -0
  1508. data/spec/models/patched_web_authn_device_request_spec.rb +30 -0
  1509. data/spec/models/permission_assign_request_spec.rb +42 -0
  1510. data/spec/models/permission_assign_result_spec.rb +30 -0
  1511. data/spec/models/permission_spec.rb +66 -0
  1512. data/spec/models/pkce_method_enum_spec.rb +24 -0
  1513. data/spec/models/plex_authentication_challenge_response_request_spec.rb +30 -0
  1514. data/spec/models/plex_authentication_challenge_spec.rb +54 -0
  1515. data/spec/models/plex_source_property_mapping_request_spec.rb +42 -0
  1516. data/spec/models/plex_source_property_mapping_spec.rb +72 -0
  1517. data/spec/models/plex_source_request_spec.rb +126 -0
  1518. data/spec/models/plex_source_spec.rb +174 -0
  1519. data/spec/models/plex_token_redeem_request_spec.rb +30 -0
  1520. data/spec/models/policy_binding_request_spec.rb +78 -0
  1521. data/spec/models/policy_binding_spec.rb +102 -0
  1522. data/spec/models/policy_engine_mode_spec.rb +24 -0
  1523. data/spec/models/policy_spec.rb +72 -0
  1524. data/spec/models/policy_test_request_spec.rb +36 -0
  1525. data/spec/models/policy_test_result_spec.rb +42 -0
  1526. data/spec/models/process_request_spec.rb +42 -0
  1527. data/spec/models/process_spec.rb +42 -0
  1528. data/spec/models/prompt_challenge_response_request_spec.rb +30 -0
  1529. data/spec/models/prompt_challenge_spec.rb +48 -0
  1530. data/spec/models/prompt_choice_spec.rb +36 -0
  1531. data/spec/models/prompt_request_spec.rb +90 -0
  1532. data/spec/models/prompt_spec.rb +102 -0
  1533. data/spec/models/prompt_stage_request_spec.rb +42 -0
  1534. data/spec/models/prompt_stage_spec.rb +78 -0
  1535. data/spec/models/prompt_type_enum_spec.rb +24 -0
  1536. data/spec/models/property_mapping_preview_spec.rb +30 -0
  1537. data/spec/models/property_mapping_spec.rb +72 -0
  1538. data/spec/models/property_mapping_test_request_spec.rb +42 -0
  1539. data/spec/models/property_mapping_test_result_spec.rb +36 -0
  1540. data/spec/models/protocol_enum_spec.rb +24 -0
  1541. data/spec/models/provider_enum_spec.rb +24 -0
  1542. data/spec/models/provider_model_enum_spec.rb +24 -0
  1543. data/spec/models/provider_spec.rb +108 -0
  1544. data/spec/models/provider_type_enum_spec.rb +24 -0
  1545. data/spec/models/proxy_mode_spec.rb +24 -0
  1546. data/spec/models/proxy_outpost_config_spec.rb +150 -0
  1547. data/spec/models/proxy_provider_request_spec.rb +144 -0
  1548. data/spec/models/proxy_provider_spec.rb +216 -0
  1549. data/spec/models/rac_property_mapping_request_spec.rb +48 -0
  1550. data/spec/models/rac_property_mapping_spec.rb +78 -0
  1551. data/spec/models/rac_provider_request_spec.rb +66 -0
  1552. data/spec/models/rac_provider_spec.rb +126 -0
  1553. data/spec/models/radius_check_access_spec.rb +36 -0
  1554. data/spec/models/radius_outpost_config_spec.rb +72 -0
  1555. data/spec/models/radius_provider_property_mapping_request_spec.rb +42 -0
  1556. data/spec/models/radius_provider_property_mapping_spec.rb +72 -0
  1557. data/spec/models/radius_provider_request_spec.rb +78 -0
  1558. data/spec/models/radius_provider_spec.rb +138 -0
  1559. data/spec/models/redirect_challenge_response_request_spec.rb +36 -0
  1560. data/spec/models/redirect_challenge_spec.rb +48 -0
  1561. data/spec/models/redirect_stage_mode_enum_spec.rb +24 -0
  1562. data/spec/models/redirect_stage_request_spec.rb +54 -0
  1563. data/spec/models/redirect_stage_spec.rb +90 -0
  1564. data/spec/models/redirect_uri_request_spec.rb +36 -0
  1565. data/spec/models/redirect_uri_spec.rb +36 -0
  1566. data/spec/models/related_group_spec.rb +54 -0
  1567. data/spec/models/reputation_policy_request_spec.rb +54 -0
  1568. data/spec/models/reputation_policy_spec.rb +90 -0
  1569. data/spec/models/reputation_spec.rb +66 -0
  1570. data/spec/models/resident_key_requirement_enum_spec.rb +24 -0
  1571. data/spec/models/role_assigned_object_permission_spec.rb +48 -0
  1572. data/spec/models/role_model_permission_spec.rb +54 -0
  1573. data/spec/models/role_object_permission_spec.rb +60 -0
  1574. data/spec/models/role_request_spec.rb +30 -0
  1575. data/spec/models/role_spec.rb +36 -0
  1576. data/spec/models/saml_bindings_enum_spec.rb +24 -0
  1577. data/spec/models/saml_metadata_spec.rb +36 -0
  1578. data/spec/models/saml_name_id_policy_enum_spec.rb +24 -0
  1579. data/spec/models/saml_property_mapping_request_spec.rb +54 -0
  1580. data/spec/models/saml_property_mapping_spec.rb +84 -0
  1581. data/spec/models/saml_provider_logout_method_enum_spec.rb +24 -0
  1582. data/spec/models/saml_provider_request_spec.rb +186 -0
  1583. data/spec/models/saml_provider_spec.rb +276 -0
  1584. data/spec/models/saml_source_property_mapping_request_spec.rb +42 -0
  1585. data/spec/models/saml_source_property_mapping_spec.rb +72 -0
  1586. data/spec/models/saml_source_request_spec.rb +192 -0
  1587. data/spec/models/saml_source_spec.rb +240 -0
  1588. data/spec/models/schedule_request_spec.rb +42 -0
  1589. data/spec/models/schedule_spec.rb +96 -0
  1590. data/spec/models/scim_authentication_mode_enum_spec.rb +24 -0
  1591. data/spec/models/scim_mapping_request_spec.rb +42 -0
  1592. data/spec/models/scim_mapping_spec.rb +72 -0
  1593. data/spec/models/scim_provider_group_request_spec.rb +42 -0
  1594. data/spec/models/scim_provider_group_spec.rb +60 -0
  1595. data/spec/models/scim_provider_request_spec.rb +120 -0
  1596. data/spec/models/scim_provider_spec.rb +162 -0
  1597. data/spec/models/scim_provider_user_request_spec.rb +42 -0
  1598. data/spec/models/scim_provider_user_spec.rb +60 -0
  1599. data/spec/models/scim_source_group_request_spec.rb +54 -0
  1600. data/spec/models/scim_source_group_spec.rb +60 -0
  1601. data/spec/models/scim_source_property_mapping_request_spec.rb +42 -0
  1602. data/spec/models/scim_source_property_mapping_spec.rb +72 -0
  1603. data/spec/models/scim_source_request_spec.rb +60 -0
  1604. data/spec/models/scim_source_spec.rb +108 -0
  1605. data/spec/models/scim_source_user_request_spec.rb +54 -0
  1606. data/spec/models/scim_source_user_spec.rb +60 -0
  1607. data/spec/models/scope_mapping_request_spec.rb +54 -0
  1608. data/spec/models/scope_mapping_spec.rb +84 -0
  1609. data/spec/models/selectable_stage_spec.rb +48 -0
  1610. data/spec/models/service_connection_spec.rb +66 -0
  1611. data/spec/models/service_connection_state_spec.rb +36 -0
  1612. data/spec/models/session_end_challenge_spec.rb +78 -0
  1613. data/spec/models/session_user_spec.rb +36 -0
  1614. data/spec/models/settings_request_spec.rb +120 -0
  1615. data/spec/models/settings_spec.rb +120 -0
  1616. data/spec/models/severity_enum_spec.rb +24 -0
  1617. data/spec/models/shell_challenge_spec.rb +48 -0
  1618. data/spec/models/signature_algorithm_enum_spec.rb +24 -0
  1619. data/spec/models/sms_device_request_spec.rb +30 -0
  1620. data/spec/models/sms_device_spec.rb +48 -0
  1621. data/spec/models/software_request_spec.rb +48 -0
  1622. data/spec/models/software_spec.rb +48 -0
  1623. data/spec/models/source_spec.rb +144 -0
  1624. data/spec/models/source_stage_request_spec.rb +42 -0
  1625. data/spec/models/source_stage_spec.rb +78 -0
  1626. data/spec/models/source_type_spec.rb +78 -0
  1627. data/spec/models/ssf_provider_request_spec.rb +48 -0
  1628. data/spec/models/ssf_provider_spec.rb +90 -0
  1629. data/spec/models/ssf_stream_spec.rb +78 -0
  1630. data/spec/models/stage_mode_enum_spec.rb +24 -0
  1631. data/spec/models/stage_prompt_spec.rb +78 -0
  1632. data/spec/models/stage_spec.rb +66 -0
  1633. data/spec/models/state_enum_spec.rb +24 -0
  1634. data/spec/models/static_device_request_spec.rb +30 -0
  1635. data/spec/models/static_device_spec.rb +48 -0
  1636. data/spec/models/static_device_token_spec.rb +30 -0
  1637. data/spec/models/sub_mode_enum_spec.rb +24 -0
  1638. data/spec/models/sync_object_model_enum_spec.rb +24 -0
  1639. data/spec/models/sync_object_request_spec.rb +42 -0
  1640. data/spec/models/sync_object_result_spec.rb +30 -0
  1641. data/spec/models/sync_outgoing_trigger_mode_enum_spec.rb +24 -0
  1642. data/spec/models/sync_status_spec.rb +42 -0
  1643. data/spec/models/system_info_runtime_spec.rb +72 -0
  1644. data/spec/models/system_info_spec.rb +72 -0
  1645. data/spec/models/task_aggregated_status_enum_spec.rb +24 -0
  1646. data/spec/models/task_spec.rb +114 -0
  1647. data/spec/models/telegram_auth_request_spec.rb +66 -0
  1648. data/spec/models/telegram_challenge_response_request_spec.rb +72 -0
  1649. data/spec/models/telegram_login_challenge_spec.rb +54 -0
  1650. data/spec/models/telegram_source_property_mapping_request_spec.rb +42 -0
  1651. data/spec/models/telegram_source_property_mapping_spec.rb +72 -0
  1652. data/spec/models/telegram_source_request_spec.rb +120 -0
  1653. data/spec/models/telegram_source_spec.rb +162 -0
  1654. data/spec/models/tenant_admin_group_request_request_spec.rb +30 -0
  1655. data/spec/models/tenant_recovery_key_request_request_spec.rb +36 -0
  1656. data/spec/models/tenant_recovery_key_response_spec.rb +36 -0
  1657. data/spec/models/tenant_request_spec.rb +42 -0
  1658. data/spec/models/tenant_spec.rb +48 -0
  1659. data/spec/models/themed_urls_spec.rb +36 -0
  1660. data/spec/models/token_model_spec.rb +72 -0
  1661. data/spec/models/token_request_spec.rb +66 -0
  1662. data/spec/models/token_set_key_request_spec.rb +30 -0
  1663. data/spec/models/token_spec.rb +78 -0
  1664. data/spec/models/token_view_spec.rb +30 -0
  1665. data/spec/models/totp_device_request_spec.rb +30 -0
  1666. data/spec/models/totp_device_spec.rb +42 -0
  1667. data/spec/models/transaction_application_request_spec.rb +48 -0
  1668. data/spec/models/transaction_application_response_spec.rb +36 -0
  1669. data/spec/models/transaction_policy_binding_request_spec.rb +72 -0
  1670. data/spec/models/type_create_spec.rb +66 -0
  1671. data/spec/models/ui_theme_enum_spec.rb +24 -0
  1672. data/spec/models/unique_password_policy_request_spec.rb +48 -0
  1673. data/spec/models/unique_password_policy_spec.rb +84 -0
  1674. data/spec/models/used_by_action_enum_spec.rb +24 -0
  1675. data/spec/models/used_by_spec.rb +54 -0
  1676. data/spec/models/user_account_request_spec.rb +30 -0
  1677. data/spec/models/user_account_serializer_for_role_request_spec.rb +30 -0
  1678. data/spec/models/user_attribute_enum_spec.rb +24 -0
  1679. data/spec/models/user_consent_spec.rb +60 -0
  1680. data/spec/models/user_creation_mode_enum_spec.rb +24 -0
  1681. data/spec/models/user_delete_stage_request_spec.rb +30 -0
  1682. data/spec/models/user_delete_stage_spec.rb +66 -0
  1683. data/spec/models/user_fields_enum_spec.rb +24 -0
  1684. data/spec/models/user_kerberos_source_connection_request_spec.rb +42 -0
  1685. data/spec/models/user_kerberos_source_connection_spec.rb +66 -0
  1686. data/spec/models/user_ldap_source_connection_request_spec.rb +42 -0
  1687. data/spec/models/user_ldap_source_connection_spec.rb +66 -0
  1688. data/spec/models/user_login_challenge_response_request_spec.rb +36 -0
  1689. data/spec/models/user_login_challenge_spec.rb +54 -0
  1690. data/spec/models/user_login_stage_request_spec.rb +66 -0
  1691. data/spec/models/user_login_stage_spec.rb +102 -0
  1692. data/spec/models/user_logout_stage_request_spec.rb +30 -0
  1693. data/spec/models/user_logout_stage_spec.rb +66 -0
  1694. data/spec/models/user_matching_mode_enum_spec.rb +24 -0
  1695. data/spec/models/user_o_auth_source_connection_request_spec.rb +54 -0
  1696. data/spec/models/user_o_auth_source_connection_spec.rb +72 -0
  1697. data/spec/models/user_password_set_request_spec.rb +30 -0
  1698. data/spec/models/user_path_spec.rb +30 -0
  1699. data/spec/models/user_plex_source_connection_request_spec.rb +48 -0
  1700. data/spec/models/user_plex_source_connection_spec.rb +66 -0
  1701. data/spec/models/user_request_spec.rb +84 -0
  1702. data/spec/models/user_saml_source_connection_request_spec.rb +42 -0
  1703. data/spec/models/user_saml_source_connection_spec.rb +66 -0
  1704. data/spec/models/user_self_groups_spec.rb +36 -0
  1705. data/spec/models/user_self_roles_spec.rb +36 -0
  1706. data/spec/models/user_self_spec.rb +102 -0
  1707. data/spec/models/user_service_account_request_spec.rb +48 -0
  1708. data/spec/models/user_service_account_response_spec.rb +54 -0
  1709. data/spec/models/user_setting_spec.rb +54 -0
  1710. data/spec/models/user_source_connection_request_spec.rb +42 -0
  1711. data/spec/models/user_source_connection_spec.rb +66 -0
  1712. data/spec/models/user_spec.rb +144 -0
  1713. data/spec/models/user_telegram_source_connection_request_spec.rb +42 -0
  1714. data/spec/models/user_telegram_source_connection_spec.rb +66 -0
  1715. data/spec/models/user_type_enum_spec.rb +24 -0
  1716. data/spec/models/user_verification_enum_spec.rb +24 -0
  1717. data/spec/models/user_write_stage_request_spec.rb +60 -0
  1718. data/spec/models/user_write_stage_spec.rb +96 -0
  1719. data/spec/models/validation_error_spec.rb +36 -0
  1720. data/spec/models/version_history_spec.rb +48 -0
  1721. data/spec/models/version_spec.rb +60 -0
  1722. data/spec/models/web_authn_device_request_spec.rb +30 -0
  1723. data/spec/models/web_authn_device_spec.rb +60 -0
  1724. data/spec/models/web_authn_device_type_spec.rb +36 -0
  1725. data/spec/models/worker_spec.rb +42 -0
  1726. data/spec/spec_helper.rb +105 -0
  1727. metadata +2705 -0
@@ -0,0 +1,4576 @@
1
+ =begin
2
+ This file is automatically generated by: https://openapi-generator.tech.
3
+ Any manual changes will be lost when the OpenAPI scheme changes.
4
+
5
+ =end
6
+
7
+ require 'cgi'
8
+
9
+ module Authentik::Api
10
+ class CoreApi
11
+ attr_accessor :api_client
12
+
13
+ def initialize(api_client = ApiClient.default)
14
+ @api_client = api_client
15
+ end
16
+ # ApplicationEntitlement Viewset
17
+ # @param application_entitlement_request [ApplicationEntitlementRequest]
18
+ # @param [Hash] opts the optional parameters
19
+ # @return [ApplicationEntitlement]
20
+ def core_application_entitlements_create(application_entitlement_request, opts = {})
21
+ data, _status_code, _headers = core_application_entitlements_create_with_http_info(application_entitlement_request, opts)
22
+ data
23
+ end
24
+
25
+ # ApplicationEntitlement Viewset
26
+ # @param application_entitlement_request [ApplicationEntitlementRequest]
27
+ # @param [Hash] opts the optional parameters
28
+ # @return [Array<(ApplicationEntitlement, Integer, Hash)>] ApplicationEntitlement data, response status code and response headers
29
+ def core_application_entitlements_create_with_http_info(application_entitlement_request, opts = {})
30
+ if @api_client.config.debugging
31
+ @api_client.config.logger.debug 'Calling API: CoreApi.core_application_entitlements_create ...'
32
+ end
33
+ # verify the required parameter 'application_entitlement_request' is set
34
+ if @api_client.config.client_side_validation && application_entitlement_request.nil?
35
+ fail ArgumentError, "Missing the required parameter 'application_entitlement_request' when calling CoreApi.core_application_entitlements_create"
36
+ end
37
+ # resource path
38
+ local_var_path = '/core/application_entitlements/'
39
+
40
+ # query parameters
41
+ query_params = opts[:query_params] || {}
42
+
43
+ # header parameters
44
+ header_params = opts[:header_params] || {}
45
+ # HTTP header 'Accept' (if needed)
46
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
47
+ # HTTP header 'Content-Type'
48
+ content_type = @api_client.select_header_content_type(['application/json'])
49
+ if !content_type.nil?
50
+ header_params['Content-Type'] = content_type
51
+ end
52
+
53
+ # form parameters
54
+ form_params = opts[:form_params] || {}
55
+
56
+ # http body (model)
57
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(application_entitlement_request)
58
+
59
+ # return_type
60
+ return_type = opts[:debug_return_type] || 'ApplicationEntitlement'
61
+
62
+ # auth_names
63
+ auth_names = opts[:debug_auth_names] || ['authentik']
64
+
65
+ new_options = opts.merge(
66
+ :operation => :"CoreApi.core_application_entitlements_create",
67
+ :header_params => header_params,
68
+ :query_params => query_params,
69
+ :form_params => form_params,
70
+ :body => post_body,
71
+ :auth_names => auth_names,
72
+ :return_type => return_type
73
+ )
74
+
75
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
76
+ if @api_client.config.debugging
77
+ @api_client.config.logger.debug "API called: CoreApi#core_application_entitlements_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
78
+ end
79
+ return data, status_code, headers
80
+ end
81
+
82
+ # ApplicationEntitlement Viewset
83
+ # @param pbm_uuid [String] A UUID string identifying this Application Entitlement.
84
+ # @param [Hash] opts the optional parameters
85
+ # @return [nil]
86
+ def core_application_entitlements_destroy(pbm_uuid, opts = {})
87
+ core_application_entitlements_destroy_with_http_info(pbm_uuid, opts)
88
+ nil
89
+ end
90
+
91
+ # ApplicationEntitlement Viewset
92
+ # @param pbm_uuid [String] A UUID string identifying this Application Entitlement.
93
+ # @param [Hash] opts the optional parameters
94
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
95
+ def core_application_entitlements_destroy_with_http_info(pbm_uuid, opts = {})
96
+ if @api_client.config.debugging
97
+ @api_client.config.logger.debug 'Calling API: CoreApi.core_application_entitlements_destroy ...'
98
+ end
99
+ # verify the required parameter 'pbm_uuid' is set
100
+ if @api_client.config.client_side_validation && pbm_uuid.nil?
101
+ fail ArgumentError, "Missing the required parameter 'pbm_uuid' when calling CoreApi.core_application_entitlements_destroy"
102
+ end
103
+ # resource path
104
+ local_var_path = '/core/application_entitlements/{pbm_uuid}/'.sub('{' + 'pbm_uuid' + '}', CGI.escape(pbm_uuid.to_s))
105
+
106
+ # query parameters
107
+ query_params = opts[:query_params] || {}
108
+
109
+ # header parameters
110
+ header_params = opts[:header_params] || {}
111
+ # HTTP header 'Accept' (if needed)
112
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
113
+
114
+ # form parameters
115
+ form_params = opts[:form_params] || {}
116
+
117
+ # http body (model)
118
+ post_body = opts[:debug_body]
119
+
120
+ # return_type
121
+ return_type = opts[:debug_return_type]
122
+
123
+ # auth_names
124
+ auth_names = opts[:debug_auth_names] || ['authentik']
125
+
126
+ new_options = opts.merge(
127
+ :operation => :"CoreApi.core_application_entitlements_destroy",
128
+ :header_params => header_params,
129
+ :query_params => query_params,
130
+ :form_params => form_params,
131
+ :body => post_body,
132
+ :auth_names => auth_names,
133
+ :return_type => return_type
134
+ )
135
+
136
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
137
+ if @api_client.config.debugging
138
+ @api_client.config.logger.debug "API called: CoreApi#core_application_entitlements_destroy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
139
+ end
140
+ return data, status_code, headers
141
+ end
142
+
143
+ # ApplicationEntitlement Viewset
144
+ # @param [Hash] opts the optional parameters
145
+ # @option opts [String] :app
146
+ # @option opts [String] :name
147
+ # @option opts [String] :ordering Which field to use when ordering the results.
148
+ # @option opts [Integer] :page A page number within the paginated result set.
149
+ # @option opts [Integer] :page_size Number of results to return per page.
150
+ # @option opts [String] :pbm_uuid
151
+ # @option opts [String] :search A search term.
152
+ # @return [PaginatedApplicationEntitlementList]
153
+ def core_application_entitlements_list(opts = {})
154
+ data, _status_code, _headers = core_application_entitlements_list_with_http_info(opts)
155
+ data
156
+ end
157
+
158
+ # ApplicationEntitlement Viewset
159
+ # @param [Hash] opts the optional parameters
160
+ # @option opts [String] :app
161
+ # @option opts [String] :name
162
+ # @option opts [String] :ordering Which field to use when ordering the results.
163
+ # @option opts [Integer] :page A page number within the paginated result set.
164
+ # @option opts [Integer] :page_size Number of results to return per page.
165
+ # @option opts [String] :pbm_uuid
166
+ # @option opts [String] :search A search term.
167
+ # @return [Array<(PaginatedApplicationEntitlementList, Integer, Hash)>] PaginatedApplicationEntitlementList data, response status code and response headers
168
+ def core_application_entitlements_list_with_http_info(opts = {})
169
+ if @api_client.config.debugging
170
+ @api_client.config.logger.debug 'Calling API: CoreApi.core_application_entitlements_list ...'
171
+ end
172
+ # resource path
173
+ local_var_path = '/core/application_entitlements/'
174
+
175
+ # query parameters
176
+ query_params = opts[:query_params] || {}
177
+ query_params[:'app'] = opts[:'app'] if !opts[:'app'].nil?
178
+ query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
179
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
180
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
181
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
182
+ query_params[:'pbm_uuid'] = opts[:'pbm_uuid'] if !opts[:'pbm_uuid'].nil?
183
+ query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
184
+
185
+ # header parameters
186
+ header_params = opts[:header_params] || {}
187
+ # HTTP header 'Accept' (if needed)
188
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
189
+
190
+ # form parameters
191
+ form_params = opts[:form_params] || {}
192
+
193
+ # http body (model)
194
+ post_body = opts[:debug_body]
195
+
196
+ # return_type
197
+ return_type = opts[:debug_return_type] || 'PaginatedApplicationEntitlementList'
198
+
199
+ # auth_names
200
+ auth_names = opts[:debug_auth_names] || ['authentik']
201
+
202
+ new_options = opts.merge(
203
+ :operation => :"CoreApi.core_application_entitlements_list",
204
+ :header_params => header_params,
205
+ :query_params => query_params,
206
+ :form_params => form_params,
207
+ :body => post_body,
208
+ :auth_names => auth_names,
209
+ :return_type => return_type
210
+ )
211
+
212
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
213
+ if @api_client.config.debugging
214
+ @api_client.config.logger.debug "API called: CoreApi#core_application_entitlements_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
215
+ end
216
+ return data, status_code, headers
217
+ end
218
+
219
+ # ApplicationEntitlement Viewset
220
+ # @param pbm_uuid [String] A UUID string identifying this Application Entitlement.
221
+ # @param [Hash] opts the optional parameters
222
+ # @option opts [PatchedApplicationEntitlementRequest] :patched_application_entitlement_request
223
+ # @return [ApplicationEntitlement]
224
+ def core_application_entitlements_partial_update(pbm_uuid, opts = {})
225
+ data, _status_code, _headers = core_application_entitlements_partial_update_with_http_info(pbm_uuid, opts)
226
+ data
227
+ end
228
+
229
+ # ApplicationEntitlement Viewset
230
+ # @param pbm_uuid [String] A UUID string identifying this Application Entitlement.
231
+ # @param [Hash] opts the optional parameters
232
+ # @option opts [PatchedApplicationEntitlementRequest] :patched_application_entitlement_request
233
+ # @return [Array<(ApplicationEntitlement, Integer, Hash)>] ApplicationEntitlement data, response status code and response headers
234
+ def core_application_entitlements_partial_update_with_http_info(pbm_uuid, opts = {})
235
+ if @api_client.config.debugging
236
+ @api_client.config.logger.debug 'Calling API: CoreApi.core_application_entitlements_partial_update ...'
237
+ end
238
+ # verify the required parameter 'pbm_uuid' is set
239
+ if @api_client.config.client_side_validation && pbm_uuid.nil?
240
+ fail ArgumentError, "Missing the required parameter 'pbm_uuid' when calling CoreApi.core_application_entitlements_partial_update"
241
+ end
242
+ # resource path
243
+ local_var_path = '/core/application_entitlements/{pbm_uuid}/'.sub('{' + 'pbm_uuid' + '}', CGI.escape(pbm_uuid.to_s))
244
+
245
+ # query parameters
246
+ query_params = opts[:query_params] || {}
247
+
248
+ # header parameters
249
+ header_params = opts[:header_params] || {}
250
+ # HTTP header 'Accept' (if needed)
251
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
252
+ # HTTP header 'Content-Type'
253
+ content_type = @api_client.select_header_content_type(['application/json'])
254
+ if !content_type.nil?
255
+ header_params['Content-Type'] = content_type
256
+ end
257
+
258
+ # form parameters
259
+ form_params = opts[:form_params] || {}
260
+
261
+ # http body (model)
262
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'patched_application_entitlement_request'])
263
+
264
+ # return_type
265
+ return_type = opts[:debug_return_type] || 'ApplicationEntitlement'
266
+
267
+ # auth_names
268
+ auth_names = opts[:debug_auth_names] || ['authentik']
269
+
270
+ new_options = opts.merge(
271
+ :operation => :"CoreApi.core_application_entitlements_partial_update",
272
+ :header_params => header_params,
273
+ :query_params => query_params,
274
+ :form_params => form_params,
275
+ :body => post_body,
276
+ :auth_names => auth_names,
277
+ :return_type => return_type
278
+ )
279
+
280
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
281
+ if @api_client.config.debugging
282
+ @api_client.config.logger.debug "API called: CoreApi#core_application_entitlements_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
283
+ end
284
+ return data, status_code, headers
285
+ end
286
+
287
+ # ApplicationEntitlement Viewset
288
+ # @param pbm_uuid [String] A UUID string identifying this Application Entitlement.
289
+ # @param [Hash] opts the optional parameters
290
+ # @return [ApplicationEntitlement]
291
+ def core_application_entitlements_retrieve(pbm_uuid, opts = {})
292
+ data, _status_code, _headers = core_application_entitlements_retrieve_with_http_info(pbm_uuid, opts)
293
+ data
294
+ end
295
+
296
+ # ApplicationEntitlement Viewset
297
+ # @param pbm_uuid [String] A UUID string identifying this Application Entitlement.
298
+ # @param [Hash] opts the optional parameters
299
+ # @return [Array<(ApplicationEntitlement, Integer, Hash)>] ApplicationEntitlement data, response status code and response headers
300
+ def core_application_entitlements_retrieve_with_http_info(pbm_uuid, opts = {})
301
+ if @api_client.config.debugging
302
+ @api_client.config.logger.debug 'Calling API: CoreApi.core_application_entitlements_retrieve ...'
303
+ end
304
+ # verify the required parameter 'pbm_uuid' is set
305
+ if @api_client.config.client_side_validation && pbm_uuid.nil?
306
+ fail ArgumentError, "Missing the required parameter 'pbm_uuid' when calling CoreApi.core_application_entitlements_retrieve"
307
+ end
308
+ # resource path
309
+ local_var_path = '/core/application_entitlements/{pbm_uuid}/'.sub('{' + 'pbm_uuid' + '}', CGI.escape(pbm_uuid.to_s))
310
+
311
+ # query parameters
312
+ query_params = opts[:query_params] || {}
313
+
314
+ # header parameters
315
+ header_params = opts[:header_params] || {}
316
+ # HTTP header 'Accept' (if needed)
317
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
318
+
319
+ # form parameters
320
+ form_params = opts[:form_params] || {}
321
+
322
+ # http body (model)
323
+ post_body = opts[:debug_body]
324
+
325
+ # return_type
326
+ return_type = opts[:debug_return_type] || 'ApplicationEntitlement'
327
+
328
+ # auth_names
329
+ auth_names = opts[:debug_auth_names] || ['authentik']
330
+
331
+ new_options = opts.merge(
332
+ :operation => :"CoreApi.core_application_entitlements_retrieve",
333
+ :header_params => header_params,
334
+ :query_params => query_params,
335
+ :form_params => form_params,
336
+ :body => post_body,
337
+ :auth_names => auth_names,
338
+ :return_type => return_type
339
+ )
340
+
341
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
342
+ if @api_client.config.debugging
343
+ @api_client.config.logger.debug "API called: CoreApi#core_application_entitlements_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
344
+ end
345
+ return data, status_code, headers
346
+ end
347
+
348
+ # ApplicationEntitlement Viewset
349
+ # @param pbm_uuid [String] A UUID string identifying this Application Entitlement.
350
+ # @param application_entitlement_request [ApplicationEntitlementRequest]
351
+ # @param [Hash] opts the optional parameters
352
+ # @return [ApplicationEntitlement]
353
+ def core_application_entitlements_update(pbm_uuid, application_entitlement_request, opts = {})
354
+ data, _status_code, _headers = core_application_entitlements_update_with_http_info(pbm_uuid, application_entitlement_request, opts)
355
+ data
356
+ end
357
+
358
+ # ApplicationEntitlement Viewset
359
+ # @param pbm_uuid [String] A UUID string identifying this Application Entitlement.
360
+ # @param application_entitlement_request [ApplicationEntitlementRequest]
361
+ # @param [Hash] opts the optional parameters
362
+ # @return [Array<(ApplicationEntitlement, Integer, Hash)>] ApplicationEntitlement data, response status code and response headers
363
+ def core_application_entitlements_update_with_http_info(pbm_uuid, application_entitlement_request, opts = {})
364
+ if @api_client.config.debugging
365
+ @api_client.config.logger.debug 'Calling API: CoreApi.core_application_entitlements_update ...'
366
+ end
367
+ # verify the required parameter 'pbm_uuid' is set
368
+ if @api_client.config.client_side_validation && pbm_uuid.nil?
369
+ fail ArgumentError, "Missing the required parameter 'pbm_uuid' when calling CoreApi.core_application_entitlements_update"
370
+ end
371
+ # verify the required parameter 'application_entitlement_request' is set
372
+ if @api_client.config.client_side_validation && application_entitlement_request.nil?
373
+ fail ArgumentError, "Missing the required parameter 'application_entitlement_request' when calling CoreApi.core_application_entitlements_update"
374
+ end
375
+ # resource path
376
+ local_var_path = '/core/application_entitlements/{pbm_uuid}/'.sub('{' + 'pbm_uuid' + '}', CGI.escape(pbm_uuid.to_s))
377
+
378
+ # query parameters
379
+ query_params = opts[:query_params] || {}
380
+
381
+ # header parameters
382
+ header_params = opts[:header_params] || {}
383
+ # HTTP header 'Accept' (if needed)
384
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
385
+ # HTTP header 'Content-Type'
386
+ content_type = @api_client.select_header_content_type(['application/json'])
387
+ if !content_type.nil?
388
+ header_params['Content-Type'] = content_type
389
+ end
390
+
391
+ # form parameters
392
+ form_params = opts[:form_params] || {}
393
+
394
+ # http body (model)
395
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(application_entitlement_request)
396
+
397
+ # return_type
398
+ return_type = opts[:debug_return_type] || 'ApplicationEntitlement'
399
+
400
+ # auth_names
401
+ auth_names = opts[:debug_auth_names] || ['authentik']
402
+
403
+ new_options = opts.merge(
404
+ :operation => :"CoreApi.core_application_entitlements_update",
405
+ :header_params => header_params,
406
+ :query_params => query_params,
407
+ :form_params => form_params,
408
+ :body => post_body,
409
+ :auth_names => auth_names,
410
+ :return_type => return_type
411
+ )
412
+
413
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
414
+ if @api_client.config.debugging
415
+ @api_client.config.logger.debug "API called: CoreApi#core_application_entitlements_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
416
+ end
417
+ return data, status_code, headers
418
+ end
419
+
420
+ # Get a list of all objects that use this object
421
+ # @param pbm_uuid [String] A UUID string identifying this Application Entitlement.
422
+ # @param [Hash] opts the optional parameters
423
+ # @return [Array<UsedBy>]
424
+ def core_application_entitlements_used_by_list(pbm_uuid, opts = {})
425
+ data, _status_code, _headers = core_application_entitlements_used_by_list_with_http_info(pbm_uuid, opts)
426
+ data
427
+ end
428
+
429
+ # Get a list of all objects that use this object
430
+ # @param pbm_uuid [String] A UUID string identifying this Application Entitlement.
431
+ # @param [Hash] opts the optional parameters
432
+ # @return [Array<(Array<UsedBy>, Integer, Hash)>] Array<UsedBy> data, response status code and response headers
433
+ def core_application_entitlements_used_by_list_with_http_info(pbm_uuid, opts = {})
434
+ if @api_client.config.debugging
435
+ @api_client.config.logger.debug 'Calling API: CoreApi.core_application_entitlements_used_by_list ...'
436
+ end
437
+ # verify the required parameter 'pbm_uuid' is set
438
+ if @api_client.config.client_side_validation && pbm_uuid.nil?
439
+ fail ArgumentError, "Missing the required parameter 'pbm_uuid' when calling CoreApi.core_application_entitlements_used_by_list"
440
+ end
441
+ # resource path
442
+ local_var_path = '/core/application_entitlements/{pbm_uuid}/used_by/'.sub('{' + 'pbm_uuid' + '}', CGI.escape(pbm_uuid.to_s))
443
+
444
+ # query parameters
445
+ query_params = opts[:query_params] || {}
446
+
447
+ # header parameters
448
+ header_params = opts[:header_params] || {}
449
+ # HTTP header 'Accept' (if needed)
450
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
451
+
452
+ # form parameters
453
+ form_params = opts[:form_params] || {}
454
+
455
+ # http body (model)
456
+ post_body = opts[:debug_body]
457
+
458
+ # return_type
459
+ return_type = opts[:debug_return_type] || 'Array<UsedBy>'
460
+
461
+ # auth_names
462
+ auth_names = opts[:debug_auth_names] || ['authentik']
463
+
464
+ new_options = opts.merge(
465
+ :operation => :"CoreApi.core_application_entitlements_used_by_list",
466
+ :header_params => header_params,
467
+ :query_params => query_params,
468
+ :form_params => form_params,
469
+ :body => post_body,
470
+ :auth_names => auth_names,
471
+ :return_type => return_type
472
+ )
473
+
474
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
475
+ if @api_client.config.debugging
476
+ @api_client.config.logger.debug "API called: CoreApi#core_application_entitlements_used_by_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
477
+ end
478
+ return data, status_code, headers
479
+ end
480
+
481
+ # Check access to a single application by slug
482
+ # @param slug [String]
483
+ # @param [Hash] opts the optional parameters
484
+ # @option opts [Integer] :for_user
485
+ # @return [PolicyTestResult]
486
+ def core_applications_check_access_retrieve(slug, opts = {})
487
+ data, _status_code, _headers = core_applications_check_access_retrieve_with_http_info(slug, opts)
488
+ data
489
+ end
490
+
491
+ # Check access to a single application by slug
492
+ # @param slug [String]
493
+ # @param [Hash] opts the optional parameters
494
+ # @option opts [Integer] :for_user
495
+ # @return [Array<(PolicyTestResult, Integer, Hash)>] PolicyTestResult data, response status code and response headers
496
+ def core_applications_check_access_retrieve_with_http_info(slug, opts = {})
497
+ if @api_client.config.debugging
498
+ @api_client.config.logger.debug 'Calling API: CoreApi.core_applications_check_access_retrieve ...'
499
+ end
500
+ # verify the required parameter 'slug' is set
501
+ if @api_client.config.client_side_validation && slug.nil?
502
+ fail ArgumentError, "Missing the required parameter 'slug' when calling CoreApi.core_applications_check_access_retrieve"
503
+ end
504
+ # resource path
505
+ local_var_path = '/core/applications/{slug}/check_access/'.sub('{' + 'slug' + '}', CGI.escape(slug.to_s))
506
+
507
+ # query parameters
508
+ query_params = opts[:query_params] || {}
509
+ query_params[:'for_user'] = opts[:'for_user'] if !opts[:'for_user'].nil?
510
+
511
+ # header parameters
512
+ header_params = opts[:header_params] || {}
513
+ # HTTP header 'Accept' (if needed)
514
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
515
+
516
+ # form parameters
517
+ form_params = opts[:form_params] || {}
518
+
519
+ # http body (model)
520
+ post_body = opts[:debug_body]
521
+
522
+ # return_type
523
+ return_type = opts[:debug_return_type] || 'PolicyTestResult'
524
+
525
+ # auth_names
526
+ auth_names = opts[:debug_auth_names] || ['authentik']
527
+
528
+ new_options = opts.merge(
529
+ :operation => :"CoreApi.core_applications_check_access_retrieve",
530
+ :header_params => header_params,
531
+ :query_params => query_params,
532
+ :form_params => form_params,
533
+ :body => post_body,
534
+ :auth_names => auth_names,
535
+ :return_type => return_type
536
+ )
537
+
538
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
539
+ if @api_client.config.debugging
540
+ @api_client.config.logger.debug "API called: CoreApi#core_applications_check_access_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
541
+ end
542
+ return data, status_code, headers
543
+ end
544
+
545
+ # Application Viewset
546
+ # @param application_request [ApplicationRequest]
547
+ # @param [Hash] opts the optional parameters
548
+ # @return [Application]
549
+ def core_applications_create(application_request, opts = {})
550
+ data, _status_code, _headers = core_applications_create_with_http_info(application_request, opts)
551
+ data
552
+ end
553
+
554
+ # Application Viewset
555
+ # @param application_request [ApplicationRequest]
556
+ # @param [Hash] opts the optional parameters
557
+ # @return [Array<(Application, Integer, Hash)>] Application data, response status code and response headers
558
+ def core_applications_create_with_http_info(application_request, opts = {})
559
+ if @api_client.config.debugging
560
+ @api_client.config.logger.debug 'Calling API: CoreApi.core_applications_create ...'
561
+ end
562
+ # verify the required parameter 'application_request' is set
563
+ if @api_client.config.client_side_validation && application_request.nil?
564
+ fail ArgumentError, "Missing the required parameter 'application_request' when calling CoreApi.core_applications_create"
565
+ end
566
+ # resource path
567
+ local_var_path = '/core/applications/'
568
+
569
+ # query parameters
570
+ query_params = opts[:query_params] || {}
571
+
572
+ # header parameters
573
+ header_params = opts[:header_params] || {}
574
+ # HTTP header 'Accept' (if needed)
575
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
576
+ # HTTP header 'Content-Type'
577
+ content_type = @api_client.select_header_content_type(['application/json'])
578
+ if !content_type.nil?
579
+ header_params['Content-Type'] = content_type
580
+ end
581
+
582
+ # form parameters
583
+ form_params = opts[:form_params] || {}
584
+
585
+ # http body (model)
586
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(application_request)
587
+
588
+ # return_type
589
+ return_type = opts[:debug_return_type] || 'Application'
590
+
591
+ # auth_names
592
+ auth_names = opts[:debug_auth_names] || ['authentik']
593
+
594
+ new_options = opts.merge(
595
+ :operation => :"CoreApi.core_applications_create",
596
+ :header_params => header_params,
597
+ :query_params => query_params,
598
+ :form_params => form_params,
599
+ :body => post_body,
600
+ :auth_names => auth_names,
601
+ :return_type => return_type
602
+ )
603
+
604
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
605
+ if @api_client.config.debugging
606
+ @api_client.config.logger.debug "API called: CoreApi#core_applications_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
607
+ end
608
+ return data, status_code, headers
609
+ end
610
+
611
+ # Application Viewset
612
+ # @param slug [String]
613
+ # @param [Hash] opts the optional parameters
614
+ # @return [nil]
615
+ def core_applications_destroy(slug, opts = {})
616
+ core_applications_destroy_with_http_info(slug, opts)
617
+ nil
618
+ end
619
+
620
+ # Application Viewset
621
+ # @param slug [String]
622
+ # @param [Hash] opts the optional parameters
623
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
624
+ def core_applications_destroy_with_http_info(slug, opts = {})
625
+ if @api_client.config.debugging
626
+ @api_client.config.logger.debug 'Calling API: CoreApi.core_applications_destroy ...'
627
+ end
628
+ # verify the required parameter 'slug' is set
629
+ if @api_client.config.client_side_validation && slug.nil?
630
+ fail ArgumentError, "Missing the required parameter 'slug' when calling CoreApi.core_applications_destroy"
631
+ end
632
+ # resource path
633
+ local_var_path = '/core/applications/{slug}/'.sub('{' + 'slug' + '}', CGI.escape(slug.to_s))
634
+
635
+ # query parameters
636
+ query_params = opts[:query_params] || {}
637
+
638
+ # header parameters
639
+ header_params = opts[:header_params] || {}
640
+ # HTTP header 'Accept' (if needed)
641
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
642
+
643
+ # form parameters
644
+ form_params = opts[:form_params] || {}
645
+
646
+ # http body (model)
647
+ post_body = opts[:debug_body]
648
+
649
+ # return_type
650
+ return_type = opts[:debug_return_type]
651
+
652
+ # auth_names
653
+ auth_names = opts[:debug_auth_names] || ['authentik']
654
+
655
+ new_options = opts.merge(
656
+ :operation => :"CoreApi.core_applications_destroy",
657
+ :header_params => header_params,
658
+ :query_params => query_params,
659
+ :form_params => form_params,
660
+ :body => post_body,
661
+ :auth_names => auth_names,
662
+ :return_type => return_type
663
+ )
664
+
665
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
666
+ if @api_client.config.debugging
667
+ @api_client.config.logger.debug "API called: CoreApi#core_applications_destroy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
668
+ end
669
+ return data, status_code, headers
670
+ end
671
+
672
+ # Custom list method that checks Policy based access instead of guardian
673
+ # @param [Hash] opts the optional parameters
674
+ # @option opts [Integer] :for_user
675
+ # @option opts [String] :group
676
+ # @option opts [String] :meta_description
677
+ # @option opts [String] :meta_launch_url
678
+ # @option opts [String] :meta_publisher
679
+ # @option opts [String] :name
680
+ # @option opts [Boolean] :only_with_launch_url
681
+ # @option opts [String] :ordering Which field to use when ordering the results.
682
+ # @option opts [Integer] :page A page number within the paginated result set.
683
+ # @option opts [Integer] :page_size Number of results to return per page.
684
+ # @option opts [String] :search A search term.
685
+ # @option opts [String] :slug
686
+ # @option opts [Boolean] :superuser_full_list
687
+ # @return [PaginatedApplicationList]
688
+ def core_applications_list(opts = {})
689
+ data, _status_code, _headers = core_applications_list_with_http_info(opts)
690
+ data
691
+ end
692
+
693
+ # Custom list method that checks Policy based access instead of guardian
694
+ # @param [Hash] opts the optional parameters
695
+ # @option opts [Integer] :for_user
696
+ # @option opts [String] :group
697
+ # @option opts [String] :meta_description
698
+ # @option opts [String] :meta_launch_url
699
+ # @option opts [String] :meta_publisher
700
+ # @option opts [String] :name
701
+ # @option opts [Boolean] :only_with_launch_url
702
+ # @option opts [String] :ordering Which field to use when ordering the results.
703
+ # @option opts [Integer] :page A page number within the paginated result set.
704
+ # @option opts [Integer] :page_size Number of results to return per page.
705
+ # @option opts [String] :search A search term.
706
+ # @option opts [String] :slug
707
+ # @option opts [Boolean] :superuser_full_list
708
+ # @return [Array<(PaginatedApplicationList, Integer, Hash)>] PaginatedApplicationList data, response status code and response headers
709
+ def core_applications_list_with_http_info(opts = {})
710
+ if @api_client.config.debugging
711
+ @api_client.config.logger.debug 'Calling API: CoreApi.core_applications_list ...'
712
+ end
713
+ # resource path
714
+ local_var_path = '/core/applications/'
715
+
716
+ # query parameters
717
+ query_params = opts[:query_params] || {}
718
+ query_params[:'for_user'] = opts[:'for_user'] if !opts[:'for_user'].nil?
719
+ query_params[:'group'] = opts[:'group'] if !opts[:'group'].nil?
720
+ query_params[:'meta_description'] = opts[:'meta_description'] if !opts[:'meta_description'].nil?
721
+ query_params[:'meta_launch_url'] = opts[:'meta_launch_url'] if !opts[:'meta_launch_url'].nil?
722
+ query_params[:'meta_publisher'] = opts[:'meta_publisher'] if !opts[:'meta_publisher'].nil?
723
+ query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
724
+ query_params[:'only_with_launch_url'] = opts[:'only_with_launch_url'] if !opts[:'only_with_launch_url'].nil?
725
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
726
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
727
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
728
+ query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
729
+ query_params[:'slug'] = opts[:'slug'] if !opts[:'slug'].nil?
730
+ query_params[:'superuser_full_list'] = opts[:'superuser_full_list'] if !opts[:'superuser_full_list'].nil?
731
+
732
+ # header parameters
733
+ header_params = opts[:header_params] || {}
734
+ # HTTP header 'Accept' (if needed)
735
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
736
+
737
+ # form parameters
738
+ form_params = opts[:form_params] || {}
739
+
740
+ # http body (model)
741
+ post_body = opts[:debug_body]
742
+
743
+ # return_type
744
+ return_type = opts[:debug_return_type] || 'PaginatedApplicationList'
745
+
746
+ # auth_names
747
+ auth_names = opts[:debug_auth_names] || ['authentik']
748
+
749
+ new_options = opts.merge(
750
+ :operation => :"CoreApi.core_applications_list",
751
+ :header_params => header_params,
752
+ :query_params => query_params,
753
+ :form_params => form_params,
754
+ :body => post_body,
755
+ :auth_names => auth_names,
756
+ :return_type => return_type
757
+ )
758
+
759
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
760
+ if @api_client.config.debugging
761
+ @api_client.config.logger.debug "API called: CoreApi#core_applications_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
762
+ end
763
+ return data, status_code, headers
764
+ end
765
+
766
+ # Application Viewset
767
+ # @param slug [String]
768
+ # @param [Hash] opts the optional parameters
769
+ # @option opts [PatchedApplicationRequest] :patched_application_request
770
+ # @return [Application]
771
+ def core_applications_partial_update(slug, opts = {})
772
+ data, _status_code, _headers = core_applications_partial_update_with_http_info(slug, opts)
773
+ data
774
+ end
775
+
776
+ # Application Viewset
777
+ # @param slug [String]
778
+ # @param [Hash] opts the optional parameters
779
+ # @option opts [PatchedApplicationRequest] :patched_application_request
780
+ # @return [Array<(Application, Integer, Hash)>] Application data, response status code and response headers
781
+ def core_applications_partial_update_with_http_info(slug, opts = {})
782
+ if @api_client.config.debugging
783
+ @api_client.config.logger.debug 'Calling API: CoreApi.core_applications_partial_update ...'
784
+ end
785
+ # verify the required parameter 'slug' is set
786
+ if @api_client.config.client_side_validation && slug.nil?
787
+ fail ArgumentError, "Missing the required parameter 'slug' when calling CoreApi.core_applications_partial_update"
788
+ end
789
+ # resource path
790
+ local_var_path = '/core/applications/{slug}/'.sub('{' + 'slug' + '}', CGI.escape(slug.to_s))
791
+
792
+ # query parameters
793
+ query_params = opts[:query_params] || {}
794
+
795
+ # header parameters
796
+ header_params = opts[:header_params] || {}
797
+ # HTTP header 'Accept' (if needed)
798
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
799
+ # HTTP header 'Content-Type'
800
+ content_type = @api_client.select_header_content_type(['application/json'])
801
+ if !content_type.nil?
802
+ header_params['Content-Type'] = content_type
803
+ end
804
+
805
+ # form parameters
806
+ form_params = opts[:form_params] || {}
807
+
808
+ # http body (model)
809
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'patched_application_request'])
810
+
811
+ # return_type
812
+ return_type = opts[:debug_return_type] || 'Application'
813
+
814
+ # auth_names
815
+ auth_names = opts[:debug_auth_names] || ['authentik']
816
+
817
+ new_options = opts.merge(
818
+ :operation => :"CoreApi.core_applications_partial_update",
819
+ :header_params => header_params,
820
+ :query_params => query_params,
821
+ :form_params => form_params,
822
+ :body => post_body,
823
+ :auth_names => auth_names,
824
+ :return_type => return_type
825
+ )
826
+
827
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
828
+ if @api_client.config.debugging
829
+ @api_client.config.logger.debug "API called: CoreApi#core_applications_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
830
+ end
831
+ return data, status_code, headers
832
+ end
833
+
834
+ # Application Viewset
835
+ # @param slug [String]
836
+ # @param [Hash] opts the optional parameters
837
+ # @return [Application]
838
+ def core_applications_retrieve(slug, opts = {})
839
+ data, _status_code, _headers = core_applications_retrieve_with_http_info(slug, opts)
840
+ data
841
+ end
842
+
843
+ # Application Viewset
844
+ # @param slug [String]
845
+ # @param [Hash] opts the optional parameters
846
+ # @return [Array<(Application, Integer, Hash)>] Application data, response status code and response headers
847
+ def core_applications_retrieve_with_http_info(slug, opts = {})
848
+ if @api_client.config.debugging
849
+ @api_client.config.logger.debug 'Calling API: CoreApi.core_applications_retrieve ...'
850
+ end
851
+ # verify the required parameter 'slug' is set
852
+ if @api_client.config.client_side_validation && slug.nil?
853
+ fail ArgumentError, "Missing the required parameter 'slug' when calling CoreApi.core_applications_retrieve"
854
+ end
855
+ # resource path
856
+ local_var_path = '/core/applications/{slug}/'.sub('{' + 'slug' + '}', CGI.escape(slug.to_s))
857
+
858
+ # query parameters
859
+ query_params = opts[:query_params] || {}
860
+
861
+ # header parameters
862
+ header_params = opts[:header_params] || {}
863
+ # HTTP header 'Accept' (if needed)
864
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
865
+
866
+ # form parameters
867
+ form_params = opts[:form_params] || {}
868
+
869
+ # http body (model)
870
+ post_body = opts[:debug_body]
871
+
872
+ # return_type
873
+ return_type = opts[:debug_return_type] || 'Application'
874
+
875
+ # auth_names
876
+ auth_names = opts[:debug_auth_names] || ['authentik']
877
+
878
+ new_options = opts.merge(
879
+ :operation => :"CoreApi.core_applications_retrieve",
880
+ :header_params => header_params,
881
+ :query_params => query_params,
882
+ :form_params => form_params,
883
+ :body => post_body,
884
+ :auth_names => auth_names,
885
+ :return_type => return_type
886
+ )
887
+
888
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
889
+ if @api_client.config.debugging
890
+ @api_client.config.logger.debug "API called: CoreApi#core_applications_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
891
+ end
892
+ return data, status_code, headers
893
+ end
894
+
895
+ # Application Viewset
896
+ # @param slug [String]
897
+ # @param application_request [ApplicationRequest]
898
+ # @param [Hash] opts the optional parameters
899
+ # @return [Application]
900
+ def core_applications_update(slug, application_request, opts = {})
901
+ data, _status_code, _headers = core_applications_update_with_http_info(slug, application_request, opts)
902
+ data
903
+ end
904
+
905
+ # Application Viewset
906
+ # @param slug [String]
907
+ # @param application_request [ApplicationRequest]
908
+ # @param [Hash] opts the optional parameters
909
+ # @return [Array<(Application, Integer, Hash)>] Application data, response status code and response headers
910
+ def core_applications_update_with_http_info(slug, application_request, opts = {})
911
+ if @api_client.config.debugging
912
+ @api_client.config.logger.debug 'Calling API: CoreApi.core_applications_update ...'
913
+ end
914
+ # verify the required parameter 'slug' is set
915
+ if @api_client.config.client_side_validation && slug.nil?
916
+ fail ArgumentError, "Missing the required parameter 'slug' when calling CoreApi.core_applications_update"
917
+ end
918
+ # verify the required parameter 'application_request' is set
919
+ if @api_client.config.client_side_validation && application_request.nil?
920
+ fail ArgumentError, "Missing the required parameter 'application_request' when calling CoreApi.core_applications_update"
921
+ end
922
+ # resource path
923
+ local_var_path = '/core/applications/{slug}/'.sub('{' + 'slug' + '}', CGI.escape(slug.to_s))
924
+
925
+ # query parameters
926
+ query_params = opts[:query_params] || {}
927
+
928
+ # header parameters
929
+ header_params = opts[:header_params] || {}
930
+ # HTTP header 'Accept' (if needed)
931
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
932
+ # HTTP header 'Content-Type'
933
+ content_type = @api_client.select_header_content_type(['application/json'])
934
+ if !content_type.nil?
935
+ header_params['Content-Type'] = content_type
936
+ end
937
+
938
+ # form parameters
939
+ form_params = opts[:form_params] || {}
940
+
941
+ # http body (model)
942
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(application_request)
943
+
944
+ # return_type
945
+ return_type = opts[:debug_return_type] || 'Application'
946
+
947
+ # auth_names
948
+ auth_names = opts[:debug_auth_names] || ['authentik']
949
+
950
+ new_options = opts.merge(
951
+ :operation => :"CoreApi.core_applications_update",
952
+ :header_params => header_params,
953
+ :query_params => query_params,
954
+ :form_params => form_params,
955
+ :body => post_body,
956
+ :auth_names => auth_names,
957
+ :return_type => return_type
958
+ )
959
+
960
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
961
+ if @api_client.config.debugging
962
+ @api_client.config.logger.debug "API called: CoreApi#core_applications_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
963
+ end
964
+ return data, status_code, headers
965
+ end
966
+
967
+ # Get a list of all objects that use this object
968
+ # @param slug [String]
969
+ # @param [Hash] opts the optional parameters
970
+ # @return [Array<UsedBy>]
971
+ def core_applications_used_by_list(slug, opts = {})
972
+ data, _status_code, _headers = core_applications_used_by_list_with_http_info(slug, opts)
973
+ data
974
+ end
975
+
976
+ # Get a list of all objects that use this object
977
+ # @param slug [String]
978
+ # @param [Hash] opts the optional parameters
979
+ # @return [Array<(Array<UsedBy>, Integer, Hash)>] Array<UsedBy> data, response status code and response headers
980
+ def core_applications_used_by_list_with_http_info(slug, opts = {})
981
+ if @api_client.config.debugging
982
+ @api_client.config.logger.debug 'Calling API: CoreApi.core_applications_used_by_list ...'
983
+ end
984
+ # verify the required parameter 'slug' is set
985
+ if @api_client.config.client_side_validation && slug.nil?
986
+ fail ArgumentError, "Missing the required parameter 'slug' when calling CoreApi.core_applications_used_by_list"
987
+ end
988
+ # resource path
989
+ local_var_path = '/core/applications/{slug}/used_by/'.sub('{' + 'slug' + '}', CGI.escape(slug.to_s))
990
+
991
+ # query parameters
992
+ query_params = opts[:query_params] || {}
993
+
994
+ # header parameters
995
+ header_params = opts[:header_params] || {}
996
+ # HTTP header 'Accept' (if needed)
997
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
998
+
999
+ # form parameters
1000
+ form_params = opts[:form_params] || {}
1001
+
1002
+ # http body (model)
1003
+ post_body = opts[:debug_body]
1004
+
1005
+ # return_type
1006
+ return_type = opts[:debug_return_type] || 'Array<UsedBy>'
1007
+
1008
+ # auth_names
1009
+ auth_names = opts[:debug_auth_names] || ['authentik']
1010
+
1011
+ new_options = opts.merge(
1012
+ :operation => :"CoreApi.core_applications_used_by_list",
1013
+ :header_params => header_params,
1014
+ :query_params => query_params,
1015
+ :form_params => form_params,
1016
+ :body => post_body,
1017
+ :auth_names => auth_names,
1018
+ :return_type => return_type
1019
+ )
1020
+
1021
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1022
+ if @api_client.config.debugging
1023
+ @api_client.config.logger.debug "API called: CoreApi#core_applications_used_by_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1024
+ end
1025
+ return data, status_code, headers
1026
+ end
1027
+
1028
+ # AuthenticatedSession Viewset
1029
+ # @param uuid [String]
1030
+ # @param [Hash] opts the optional parameters
1031
+ # @return [nil]
1032
+ def core_authenticated_sessions_destroy(uuid, opts = {})
1033
+ core_authenticated_sessions_destroy_with_http_info(uuid, opts)
1034
+ nil
1035
+ end
1036
+
1037
+ # AuthenticatedSession Viewset
1038
+ # @param uuid [String]
1039
+ # @param [Hash] opts the optional parameters
1040
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
1041
+ def core_authenticated_sessions_destroy_with_http_info(uuid, opts = {})
1042
+ if @api_client.config.debugging
1043
+ @api_client.config.logger.debug 'Calling API: CoreApi.core_authenticated_sessions_destroy ...'
1044
+ end
1045
+ # verify the required parameter 'uuid' is set
1046
+ if @api_client.config.client_side_validation && uuid.nil?
1047
+ fail ArgumentError, "Missing the required parameter 'uuid' when calling CoreApi.core_authenticated_sessions_destroy"
1048
+ end
1049
+ # resource path
1050
+ local_var_path = '/core/authenticated_sessions/{uuid}/'.sub('{' + 'uuid' + '}', CGI.escape(uuid.to_s))
1051
+
1052
+ # query parameters
1053
+ query_params = opts[:query_params] || {}
1054
+
1055
+ # header parameters
1056
+ header_params = opts[:header_params] || {}
1057
+ # HTTP header 'Accept' (if needed)
1058
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1059
+
1060
+ # form parameters
1061
+ form_params = opts[:form_params] || {}
1062
+
1063
+ # http body (model)
1064
+ post_body = opts[:debug_body]
1065
+
1066
+ # return_type
1067
+ return_type = opts[:debug_return_type]
1068
+
1069
+ # auth_names
1070
+ auth_names = opts[:debug_auth_names] || ['authentik']
1071
+
1072
+ new_options = opts.merge(
1073
+ :operation => :"CoreApi.core_authenticated_sessions_destroy",
1074
+ :header_params => header_params,
1075
+ :query_params => query_params,
1076
+ :form_params => form_params,
1077
+ :body => post_body,
1078
+ :auth_names => auth_names,
1079
+ :return_type => return_type
1080
+ )
1081
+
1082
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
1083
+ if @api_client.config.debugging
1084
+ @api_client.config.logger.debug "API called: CoreApi#core_authenticated_sessions_destroy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1085
+ end
1086
+ return data, status_code, headers
1087
+ end
1088
+
1089
+ # AuthenticatedSession Viewset
1090
+ # @param [Hash] opts the optional parameters
1091
+ # @option opts [String] :ordering Which field to use when ordering the results.
1092
+ # @option opts [Integer] :page A page number within the paginated result set.
1093
+ # @option opts [Integer] :page_size Number of results to return per page.
1094
+ # @option opts [String] :search A search term.
1095
+ # @option opts [String] :session__last_ip
1096
+ # @option opts [String] :session__last_user_agent
1097
+ # @option opts [String] :user__username
1098
+ # @return [PaginatedAuthenticatedSessionList]
1099
+ def core_authenticated_sessions_list(opts = {})
1100
+ data, _status_code, _headers = core_authenticated_sessions_list_with_http_info(opts)
1101
+ data
1102
+ end
1103
+
1104
+ # AuthenticatedSession Viewset
1105
+ # @param [Hash] opts the optional parameters
1106
+ # @option opts [String] :ordering Which field to use when ordering the results.
1107
+ # @option opts [Integer] :page A page number within the paginated result set.
1108
+ # @option opts [Integer] :page_size Number of results to return per page.
1109
+ # @option opts [String] :search A search term.
1110
+ # @option opts [String] :session__last_ip
1111
+ # @option opts [String] :session__last_user_agent
1112
+ # @option opts [String] :user__username
1113
+ # @return [Array<(PaginatedAuthenticatedSessionList, Integer, Hash)>] PaginatedAuthenticatedSessionList data, response status code and response headers
1114
+ def core_authenticated_sessions_list_with_http_info(opts = {})
1115
+ if @api_client.config.debugging
1116
+ @api_client.config.logger.debug 'Calling API: CoreApi.core_authenticated_sessions_list ...'
1117
+ end
1118
+ # resource path
1119
+ local_var_path = '/core/authenticated_sessions/'
1120
+
1121
+ # query parameters
1122
+ query_params = opts[:query_params] || {}
1123
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
1124
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
1125
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
1126
+ query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
1127
+ query_params[:'session__last_ip'] = opts[:'session__last_ip'] if !opts[:'session__last_ip'].nil?
1128
+ query_params[:'session__last_user_agent'] = opts[:'session__last_user_agent'] if !opts[:'session__last_user_agent'].nil?
1129
+ query_params[:'user__username'] = opts[:'user__username'] if !opts[:'user__username'].nil?
1130
+
1131
+ # header parameters
1132
+ header_params = opts[:header_params] || {}
1133
+ # HTTP header 'Accept' (if needed)
1134
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1135
+
1136
+ # form parameters
1137
+ form_params = opts[:form_params] || {}
1138
+
1139
+ # http body (model)
1140
+ post_body = opts[:debug_body]
1141
+
1142
+ # return_type
1143
+ return_type = opts[:debug_return_type] || 'PaginatedAuthenticatedSessionList'
1144
+
1145
+ # auth_names
1146
+ auth_names = opts[:debug_auth_names] || ['authentik']
1147
+
1148
+ new_options = opts.merge(
1149
+ :operation => :"CoreApi.core_authenticated_sessions_list",
1150
+ :header_params => header_params,
1151
+ :query_params => query_params,
1152
+ :form_params => form_params,
1153
+ :body => post_body,
1154
+ :auth_names => auth_names,
1155
+ :return_type => return_type
1156
+ )
1157
+
1158
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1159
+ if @api_client.config.debugging
1160
+ @api_client.config.logger.debug "API called: CoreApi#core_authenticated_sessions_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1161
+ end
1162
+ return data, status_code, headers
1163
+ end
1164
+
1165
+ # AuthenticatedSession Viewset
1166
+ # @param uuid [String]
1167
+ # @param [Hash] opts the optional parameters
1168
+ # @return [AuthenticatedSession]
1169
+ def core_authenticated_sessions_retrieve(uuid, opts = {})
1170
+ data, _status_code, _headers = core_authenticated_sessions_retrieve_with_http_info(uuid, opts)
1171
+ data
1172
+ end
1173
+
1174
+ # AuthenticatedSession Viewset
1175
+ # @param uuid [String]
1176
+ # @param [Hash] opts the optional parameters
1177
+ # @return [Array<(AuthenticatedSession, Integer, Hash)>] AuthenticatedSession data, response status code and response headers
1178
+ def core_authenticated_sessions_retrieve_with_http_info(uuid, opts = {})
1179
+ if @api_client.config.debugging
1180
+ @api_client.config.logger.debug 'Calling API: CoreApi.core_authenticated_sessions_retrieve ...'
1181
+ end
1182
+ # verify the required parameter 'uuid' is set
1183
+ if @api_client.config.client_side_validation && uuid.nil?
1184
+ fail ArgumentError, "Missing the required parameter 'uuid' when calling CoreApi.core_authenticated_sessions_retrieve"
1185
+ end
1186
+ # resource path
1187
+ local_var_path = '/core/authenticated_sessions/{uuid}/'.sub('{' + 'uuid' + '}', CGI.escape(uuid.to_s))
1188
+
1189
+ # query parameters
1190
+ query_params = opts[:query_params] || {}
1191
+
1192
+ # header parameters
1193
+ header_params = opts[:header_params] || {}
1194
+ # HTTP header 'Accept' (if needed)
1195
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1196
+
1197
+ # form parameters
1198
+ form_params = opts[:form_params] || {}
1199
+
1200
+ # http body (model)
1201
+ post_body = opts[:debug_body]
1202
+
1203
+ # return_type
1204
+ return_type = opts[:debug_return_type] || 'AuthenticatedSession'
1205
+
1206
+ # auth_names
1207
+ auth_names = opts[:debug_auth_names] || ['authentik']
1208
+
1209
+ new_options = opts.merge(
1210
+ :operation => :"CoreApi.core_authenticated_sessions_retrieve",
1211
+ :header_params => header_params,
1212
+ :query_params => query_params,
1213
+ :form_params => form_params,
1214
+ :body => post_body,
1215
+ :auth_names => auth_names,
1216
+ :return_type => return_type
1217
+ )
1218
+
1219
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1220
+ if @api_client.config.debugging
1221
+ @api_client.config.logger.debug "API called: CoreApi#core_authenticated_sessions_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1222
+ end
1223
+ return data, status_code, headers
1224
+ end
1225
+
1226
+ # Get a list of all objects that use this object
1227
+ # @param uuid [String]
1228
+ # @param [Hash] opts the optional parameters
1229
+ # @return [Array<UsedBy>]
1230
+ def core_authenticated_sessions_used_by_list(uuid, opts = {})
1231
+ data, _status_code, _headers = core_authenticated_sessions_used_by_list_with_http_info(uuid, opts)
1232
+ data
1233
+ end
1234
+
1235
+ # Get a list of all objects that use this object
1236
+ # @param uuid [String]
1237
+ # @param [Hash] opts the optional parameters
1238
+ # @return [Array<(Array<UsedBy>, Integer, Hash)>] Array<UsedBy> data, response status code and response headers
1239
+ def core_authenticated_sessions_used_by_list_with_http_info(uuid, opts = {})
1240
+ if @api_client.config.debugging
1241
+ @api_client.config.logger.debug 'Calling API: CoreApi.core_authenticated_sessions_used_by_list ...'
1242
+ end
1243
+ # verify the required parameter 'uuid' is set
1244
+ if @api_client.config.client_side_validation && uuid.nil?
1245
+ fail ArgumentError, "Missing the required parameter 'uuid' when calling CoreApi.core_authenticated_sessions_used_by_list"
1246
+ end
1247
+ # resource path
1248
+ local_var_path = '/core/authenticated_sessions/{uuid}/used_by/'.sub('{' + 'uuid' + '}', CGI.escape(uuid.to_s))
1249
+
1250
+ # query parameters
1251
+ query_params = opts[:query_params] || {}
1252
+
1253
+ # header parameters
1254
+ header_params = opts[:header_params] || {}
1255
+ # HTTP header 'Accept' (if needed)
1256
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1257
+
1258
+ # form parameters
1259
+ form_params = opts[:form_params] || {}
1260
+
1261
+ # http body (model)
1262
+ post_body = opts[:debug_body]
1263
+
1264
+ # return_type
1265
+ return_type = opts[:debug_return_type] || 'Array<UsedBy>'
1266
+
1267
+ # auth_names
1268
+ auth_names = opts[:debug_auth_names] || ['authentik']
1269
+
1270
+ new_options = opts.merge(
1271
+ :operation => :"CoreApi.core_authenticated_sessions_used_by_list",
1272
+ :header_params => header_params,
1273
+ :query_params => query_params,
1274
+ :form_params => form_params,
1275
+ :body => post_body,
1276
+ :auth_names => auth_names,
1277
+ :return_type => return_type
1278
+ )
1279
+
1280
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1281
+ if @api_client.config.debugging
1282
+ @api_client.config.logger.debug "API called: CoreApi#core_authenticated_sessions_used_by_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1283
+ end
1284
+ return data, status_code, headers
1285
+ end
1286
+
1287
+ # Brand Viewset
1288
+ # @param brand_request [BrandRequest]
1289
+ # @param [Hash] opts the optional parameters
1290
+ # @return [Brand]
1291
+ def core_brands_create(brand_request, opts = {})
1292
+ data, _status_code, _headers = core_brands_create_with_http_info(brand_request, opts)
1293
+ data
1294
+ end
1295
+
1296
+ # Brand Viewset
1297
+ # @param brand_request [BrandRequest]
1298
+ # @param [Hash] opts the optional parameters
1299
+ # @return [Array<(Brand, Integer, Hash)>] Brand data, response status code and response headers
1300
+ def core_brands_create_with_http_info(brand_request, opts = {})
1301
+ if @api_client.config.debugging
1302
+ @api_client.config.logger.debug 'Calling API: CoreApi.core_brands_create ...'
1303
+ end
1304
+ # verify the required parameter 'brand_request' is set
1305
+ if @api_client.config.client_side_validation && brand_request.nil?
1306
+ fail ArgumentError, "Missing the required parameter 'brand_request' when calling CoreApi.core_brands_create"
1307
+ end
1308
+ # resource path
1309
+ local_var_path = '/core/brands/'
1310
+
1311
+ # query parameters
1312
+ query_params = opts[:query_params] || {}
1313
+
1314
+ # header parameters
1315
+ header_params = opts[:header_params] || {}
1316
+ # HTTP header 'Accept' (if needed)
1317
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1318
+ # HTTP header 'Content-Type'
1319
+ content_type = @api_client.select_header_content_type(['application/json'])
1320
+ if !content_type.nil?
1321
+ header_params['Content-Type'] = content_type
1322
+ end
1323
+
1324
+ # form parameters
1325
+ form_params = opts[:form_params] || {}
1326
+
1327
+ # http body (model)
1328
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(brand_request)
1329
+
1330
+ # return_type
1331
+ return_type = opts[:debug_return_type] || 'Brand'
1332
+
1333
+ # auth_names
1334
+ auth_names = opts[:debug_auth_names] || ['authentik']
1335
+
1336
+ new_options = opts.merge(
1337
+ :operation => :"CoreApi.core_brands_create",
1338
+ :header_params => header_params,
1339
+ :query_params => query_params,
1340
+ :form_params => form_params,
1341
+ :body => post_body,
1342
+ :auth_names => auth_names,
1343
+ :return_type => return_type
1344
+ )
1345
+
1346
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1347
+ if @api_client.config.debugging
1348
+ @api_client.config.logger.debug "API called: CoreApi#core_brands_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1349
+ end
1350
+ return data, status_code, headers
1351
+ end
1352
+
1353
+ # Get current brand
1354
+ # @param [Hash] opts the optional parameters
1355
+ # @return [CurrentBrand]
1356
+ def core_brands_current_retrieve(opts = {})
1357
+ data, _status_code, _headers = core_brands_current_retrieve_with_http_info(opts)
1358
+ data
1359
+ end
1360
+
1361
+ # Get current brand
1362
+ # @param [Hash] opts the optional parameters
1363
+ # @return [Array<(CurrentBrand, Integer, Hash)>] CurrentBrand data, response status code and response headers
1364
+ def core_brands_current_retrieve_with_http_info(opts = {})
1365
+ if @api_client.config.debugging
1366
+ @api_client.config.logger.debug 'Calling API: CoreApi.core_brands_current_retrieve ...'
1367
+ end
1368
+ # resource path
1369
+ local_var_path = '/core/brands/current/'
1370
+
1371
+ # query parameters
1372
+ query_params = opts[:query_params] || {}
1373
+
1374
+ # header parameters
1375
+ header_params = opts[:header_params] || {}
1376
+ # HTTP header 'Accept' (if needed)
1377
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1378
+
1379
+ # form parameters
1380
+ form_params = opts[:form_params] || {}
1381
+
1382
+ # http body (model)
1383
+ post_body = opts[:debug_body]
1384
+
1385
+ # return_type
1386
+ return_type = opts[:debug_return_type] || 'CurrentBrand'
1387
+
1388
+ # auth_names
1389
+ auth_names = opts[:debug_auth_names] || ['authentik']
1390
+
1391
+ new_options = opts.merge(
1392
+ :operation => :"CoreApi.core_brands_current_retrieve",
1393
+ :header_params => header_params,
1394
+ :query_params => query_params,
1395
+ :form_params => form_params,
1396
+ :body => post_body,
1397
+ :auth_names => auth_names,
1398
+ :return_type => return_type
1399
+ )
1400
+
1401
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1402
+ if @api_client.config.debugging
1403
+ @api_client.config.logger.debug "API called: CoreApi#core_brands_current_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1404
+ end
1405
+ return data, status_code, headers
1406
+ end
1407
+
1408
+ # Brand Viewset
1409
+ # @param brand_uuid [String] A UUID string identifying this Brand.
1410
+ # @param [Hash] opts the optional parameters
1411
+ # @return [nil]
1412
+ def core_brands_destroy(brand_uuid, opts = {})
1413
+ core_brands_destroy_with_http_info(brand_uuid, opts)
1414
+ nil
1415
+ end
1416
+
1417
+ # Brand Viewset
1418
+ # @param brand_uuid [String] A UUID string identifying this Brand.
1419
+ # @param [Hash] opts the optional parameters
1420
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
1421
+ def core_brands_destroy_with_http_info(brand_uuid, opts = {})
1422
+ if @api_client.config.debugging
1423
+ @api_client.config.logger.debug 'Calling API: CoreApi.core_brands_destroy ...'
1424
+ end
1425
+ # verify the required parameter 'brand_uuid' is set
1426
+ if @api_client.config.client_side_validation && brand_uuid.nil?
1427
+ fail ArgumentError, "Missing the required parameter 'brand_uuid' when calling CoreApi.core_brands_destroy"
1428
+ end
1429
+ # resource path
1430
+ local_var_path = '/core/brands/{brand_uuid}/'.sub('{' + 'brand_uuid' + '}', CGI.escape(brand_uuid.to_s))
1431
+
1432
+ # query parameters
1433
+ query_params = opts[:query_params] || {}
1434
+
1435
+ # header parameters
1436
+ header_params = opts[:header_params] || {}
1437
+ # HTTP header 'Accept' (if needed)
1438
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1439
+
1440
+ # form parameters
1441
+ form_params = opts[:form_params] || {}
1442
+
1443
+ # http body (model)
1444
+ post_body = opts[:debug_body]
1445
+
1446
+ # return_type
1447
+ return_type = opts[:debug_return_type]
1448
+
1449
+ # auth_names
1450
+ auth_names = opts[:debug_auth_names] || ['authentik']
1451
+
1452
+ new_options = opts.merge(
1453
+ :operation => :"CoreApi.core_brands_destroy",
1454
+ :header_params => header_params,
1455
+ :query_params => query_params,
1456
+ :form_params => form_params,
1457
+ :body => post_body,
1458
+ :auth_names => auth_names,
1459
+ :return_type => return_type
1460
+ )
1461
+
1462
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
1463
+ if @api_client.config.debugging
1464
+ @api_client.config.logger.debug "API called: CoreApi#core_brands_destroy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1465
+ end
1466
+ return data, status_code, headers
1467
+ end
1468
+
1469
+ # Brand Viewset
1470
+ # @param [Hash] opts the optional parameters
1471
+ # @option opts [String] :brand_uuid
1472
+ # @option opts [String] :branding_default_flow_background
1473
+ # @option opts [String] :branding_favicon
1474
+ # @option opts [String] :branding_logo
1475
+ # @option opts [String] :branding_title
1476
+ # @option opts [Array<String>] :client_certificates
1477
+ # @option opts [Boolean] :default
1478
+ # @option opts [String] :domain
1479
+ # @option opts [String] :flow_authentication
1480
+ # @option opts [String] :flow_device_code
1481
+ # @option opts [String] :flow_invalidation
1482
+ # @option opts [String] :flow_recovery
1483
+ # @option opts [String] :flow_unenrollment
1484
+ # @option opts [String] :flow_user_settings
1485
+ # @option opts [String] :ordering Which field to use when ordering the results.
1486
+ # @option opts [Integer] :page A page number within the paginated result set.
1487
+ # @option opts [Integer] :page_size Number of results to return per page.
1488
+ # @option opts [String] :search A search term.
1489
+ # @option opts [String] :web_certificate
1490
+ # @return [PaginatedBrandList]
1491
+ def core_brands_list(opts = {})
1492
+ data, _status_code, _headers = core_brands_list_with_http_info(opts)
1493
+ data
1494
+ end
1495
+
1496
+ # Brand Viewset
1497
+ # @param [Hash] opts the optional parameters
1498
+ # @option opts [String] :brand_uuid
1499
+ # @option opts [String] :branding_default_flow_background
1500
+ # @option opts [String] :branding_favicon
1501
+ # @option opts [String] :branding_logo
1502
+ # @option opts [String] :branding_title
1503
+ # @option opts [Array<String>] :client_certificates
1504
+ # @option opts [Boolean] :default
1505
+ # @option opts [String] :domain
1506
+ # @option opts [String] :flow_authentication
1507
+ # @option opts [String] :flow_device_code
1508
+ # @option opts [String] :flow_invalidation
1509
+ # @option opts [String] :flow_recovery
1510
+ # @option opts [String] :flow_unenrollment
1511
+ # @option opts [String] :flow_user_settings
1512
+ # @option opts [String] :ordering Which field to use when ordering the results.
1513
+ # @option opts [Integer] :page A page number within the paginated result set.
1514
+ # @option opts [Integer] :page_size Number of results to return per page.
1515
+ # @option opts [String] :search A search term.
1516
+ # @option opts [String] :web_certificate
1517
+ # @return [Array<(PaginatedBrandList, Integer, Hash)>] PaginatedBrandList data, response status code and response headers
1518
+ def core_brands_list_with_http_info(opts = {})
1519
+ if @api_client.config.debugging
1520
+ @api_client.config.logger.debug 'Calling API: CoreApi.core_brands_list ...'
1521
+ end
1522
+ # resource path
1523
+ local_var_path = '/core/brands/'
1524
+
1525
+ # query parameters
1526
+ query_params = opts[:query_params] || {}
1527
+ query_params[:'brand_uuid'] = opts[:'brand_uuid'] if !opts[:'brand_uuid'].nil?
1528
+ query_params[:'branding_default_flow_background'] = opts[:'branding_default_flow_background'] if !opts[:'branding_default_flow_background'].nil?
1529
+ query_params[:'branding_favicon'] = opts[:'branding_favicon'] if !opts[:'branding_favicon'].nil?
1530
+ query_params[:'branding_logo'] = opts[:'branding_logo'] if !opts[:'branding_logo'].nil?
1531
+ query_params[:'branding_title'] = opts[:'branding_title'] if !opts[:'branding_title'].nil?
1532
+ query_params[:'client_certificates'] = @api_client.build_collection_param(opts[:'client_certificates'], :multi) if !opts[:'client_certificates'].nil?
1533
+ query_params[:'default'] = opts[:'default'] if !opts[:'default'].nil?
1534
+ query_params[:'domain'] = opts[:'domain'] if !opts[:'domain'].nil?
1535
+ query_params[:'flow_authentication'] = opts[:'flow_authentication'] if !opts[:'flow_authentication'].nil?
1536
+ query_params[:'flow_device_code'] = opts[:'flow_device_code'] if !opts[:'flow_device_code'].nil?
1537
+ query_params[:'flow_invalidation'] = opts[:'flow_invalidation'] if !opts[:'flow_invalidation'].nil?
1538
+ query_params[:'flow_recovery'] = opts[:'flow_recovery'] if !opts[:'flow_recovery'].nil?
1539
+ query_params[:'flow_unenrollment'] = opts[:'flow_unenrollment'] if !opts[:'flow_unenrollment'].nil?
1540
+ query_params[:'flow_user_settings'] = opts[:'flow_user_settings'] if !opts[:'flow_user_settings'].nil?
1541
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
1542
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
1543
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
1544
+ query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
1545
+ query_params[:'web_certificate'] = opts[:'web_certificate'] if !opts[:'web_certificate'].nil?
1546
+
1547
+ # header parameters
1548
+ header_params = opts[:header_params] || {}
1549
+ # HTTP header 'Accept' (if needed)
1550
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1551
+
1552
+ # form parameters
1553
+ form_params = opts[:form_params] || {}
1554
+
1555
+ # http body (model)
1556
+ post_body = opts[:debug_body]
1557
+
1558
+ # return_type
1559
+ return_type = opts[:debug_return_type] || 'PaginatedBrandList'
1560
+
1561
+ # auth_names
1562
+ auth_names = opts[:debug_auth_names] || ['authentik']
1563
+
1564
+ new_options = opts.merge(
1565
+ :operation => :"CoreApi.core_brands_list",
1566
+ :header_params => header_params,
1567
+ :query_params => query_params,
1568
+ :form_params => form_params,
1569
+ :body => post_body,
1570
+ :auth_names => auth_names,
1571
+ :return_type => return_type
1572
+ )
1573
+
1574
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1575
+ if @api_client.config.debugging
1576
+ @api_client.config.logger.debug "API called: CoreApi#core_brands_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1577
+ end
1578
+ return data, status_code, headers
1579
+ end
1580
+
1581
+ # Brand Viewset
1582
+ # @param brand_uuid [String] A UUID string identifying this Brand.
1583
+ # @param [Hash] opts the optional parameters
1584
+ # @option opts [PatchedBrandRequest] :patched_brand_request
1585
+ # @return [Brand]
1586
+ def core_brands_partial_update(brand_uuid, opts = {})
1587
+ data, _status_code, _headers = core_brands_partial_update_with_http_info(brand_uuid, opts)
1588
+ data
1589
+ end
1590
+
1591
+ # Brand Viewset
1592
+ # @param brand_uuid [String] A UUID string identifying this Brand.
1593
+ # @param [Hash] opts the optional parameters
1594
+ # @option opts [PatchedBrandRequest] :patched_brand_request
1595
+ # @return [Array<(Brand, Integer, Hash)>] Brand data, response status code and response headers
1596
+ def core_brands_partial_update_with_http_info(brand_uuid, opts = {})
1597
+ if @api_client.config.debugging
1598
+ @api_client.config.logger.debug 'Calling API: CoreApi.core_brands_partial_update ...'
1599
+ end
1600
+ # verify the required parameter 'brand_uuid' is set
1601
+ if @api_client.config.client_side_validation && brand_uuid.nil?
1602
+ fail ArgumentError, "Missing the required parameter 'brand_uuid' when calling CoreApi.core_brands_partial_update"
1603
+ end
1604
+ # resource path
1605
+ local_var_path = '/core/brands/{brand_uuid}/'.sub('{' + 'brand_uuid' + '}', CGI.escape(brand_uuid.to_s))
1606
+
1607
+ # query parameters
1608
+ query_params = opts[:query_params] || {}
1609
+
1610
+ # header parameters
1611
+ header_params = opts[:header_params] || {}
1612
+ # HTTP header 'Accept' (if needed)
1613
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1614
+ # HTTP header 'Content-Type'
1615
+ content_type = @api_client.select_header_content_type(['application/json'])
1616
+ if !content_type.nil?
1617
+ header_params['Content-Type'] = content_type
1618
+ end
1619
+
1620
+ # form parameters
1621
+ form_params = opts[:form_params] || {}
1622
+
1623
+ # http body (model)
1624
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'patched_brand_request'])
1625
+
1626
+ # return_type
1627
+ return_type = opts[:debug_return_type] || 'Brand'
1628
+
1629
+ # auth_names
1630
+ auth_names = opts[:debug_auth_names] || ['authentik']
1631
+
1632
+ new_options = opts.merge(
1633
+ :operation => :"CoreApi.core_brands_partial_update",
1634
+ :header_params => header_params,
1635
+ :query_params => query_params,
1636
+ :form_params => form_params,
1637
+ :body => post_body,
1638
+ :auth_names => auth_names,
1639
+ :return_type => return_type
1640
+ )
1641
+
1642
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
1643
+ if @api_client.config.debugging
1644
+ @api_client.config.logger.debug "API called: CoreApi#core_brands_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1645
+ end
1646
+ return data, status_code, headers
1647
+ end
1648
+
1649
+ # Brand Viewset
1650
+ # @param brand_uuid [String] A UUID string identifying this Brand.
1651
+ # @param [Hash] opts the optional parameters
1652
+ # @return [Brand]
1653
+ def core_brands_retrieve(brand_uuid, opts = {})
1654
+ data, _status_code, _headers = core_brands_retrieve_with_http_info(brand_uuid, opts)
1655
+ data
1656
+ end
1657
+
1658
+ # Brand Viewset
1659
+ # @param brand_uuid [String] A UUID string identifying this Brand.
1660
+ # @param [Hash] opts the optional parameters
1661
+ # @return [Array<(Brand, Integer, Hash)>] Brand data, response status code and response headers
1662
+ def core_brands_retrieve_with_http_info(brand_uuid, opts = {})
1663
+ if @api_client.config.debugging
1664
+ @api_client.config.logger.debug 'Calling API: CoreApi.core_brands_retrieve ...'
1665
+ end
1666
+ # verify the required parameter 'brand_uuid' is set
1667
+ if @api_client.config.client_side_validation && brand_uuid.nil?
1668
+ fail ArgumentError, "Missing the required parameter 'brand_uuid' when calling CoreApi.core_brands_retrieve"
1669
+ end
1670
+ # resource path
1671
+ local_var_path = '/core/brands/{brand_uuid}/'.sub('{' + 'brand_uuid' + '}', CGI.escape(brand_uuid.to_s))
1672
+
1673
+ # query parameters
1674
+ query_params = opts[:query_params] || {}
1675
+
1676
+ # header parameters
1677
+ header_params = opts[:header_params] || {}
1678
+ # HTTP header 'Accept' (if needed)
1679
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1680
+
1681
+ # form parameters
1682
+ form_params = opts[:form_params] || {}
1683
+
1684
+ # http body (model)
1685
+ post_body = opts[:debug_body]
1686
+
1687
+ # return_type
1688
+ return_type = opts[:debug_return_type] || 'Brand'
1689
+
1690
+ # auth_names
1691
+ auth_names = opts[:debug_auth_names] || ['authentik']
1692
+
1693
+ new_options = opts.merge(
1694
+ :operation => :"CoreApi.core_brands_retrieve",
1695
+ :header_params => header_params,
1696
+ :query_params => query_params,
1697
+ :form_params => form_params,
1698
+ :body => post_body,
1699
+ :auth_names => auth_names,
1700
+ :return_type => return_type
1701
+ )
1702
+
1703
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1704
+ if @api_client.config.debugging
1705
+ @api_client.config.logger.debug "API called: CoreApi#core_brands_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1706
+ end
1707
+ return data, status_code, headers
1708
+ end
1709
+
1710
+ # Brand Viewset
1711
+ # @param brand_uuid [String] A UUID string identifying this Brand.
1712
+ # @param brand_request [BrandRequest]
1713
+ # @param [Hash] opts the optional parameters
1714
+ # @return [Brand]
1715
+ def core_brands_update(brand_uuid, brand_request, opts = {})
1716
+ data, _status_code, _headers = core_brands_update_with_http_info(brand_uuid, brand_request, opts)
1717
+ data
1718
+ end
1719
+
1720
+ # Brand Viewset
1721
+ # @param brand_uuid [String] A UUID string identifying this Brand.
1722
+ # @param brand_request [BrandRequest]
1723
+ # @param [Hash] opts the optional parameters
1724
+ # @return [Array<(Brand, Integer, Hash)>] Brand data, response status code and response headers
1725
+ def core_brands_update_with_http_info(brand_uuid, brand_request, opts = {})
1726
+ if @api_client.config.debugging
1727
+ @api_client.config.logger.debug 'Calling API: CoreApi.core_brands_update ...'
1728
+ end
1729
+ # verify the required parameter 'brand_uuid' is set
1730
+ if @api_client.config.client_side_validation && brand_uuid.nil?
1731
+ fail ArgumentError, "Missing the required parameter 'brand_uuid' when calling CoreApi.core_brands_update"
1732
+ end
1733
+ # verify the required parameter 'brand_request' is set
1734
+ if @api_client.config.client_side_validation && brand_request.nil?
1735
+ fail ArgumentError, "Missing the required parameter 'brand_request' when calling CoreApi.core_brands_update"
1736
+ end
1737
+ # resource path
1738
+ local_var_path = '/core/brands/{brand_uuid}/'.sub('{' + 'brand_uuid' + '}', CGI.escape(brand_uuid.to_s))
1739
+
1740
+ # query parameters
1741
+ query_params = opts[:query_params] || {}
1742
+
1743
+ # header parameters
1744
+ header_params = opts[:header_params] || {}
1745
+ # HTTP header 'Accept' (if needed)
1746
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1747
+ # HTTP header 'Content-Type'
1748
+ content_type = @api_client.select_header_content_type(['application/json'])
1749
+ if !content_type.nil?
1750
+ header_params['Content-Type'] = content_type
1751
+ end
1752
+
1753
+ # form parameters
1754
+ form_params = opts[:form_params] || {}
1755
+
1756
+ # http body (model)
1757
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(brand_request)
1758
+
1759
+ # return_type
1760
+ return_type = opts[:debug_return_type] || 'Brand'
1761
+
1762
+ # auth_names
1763
+ auth_names = opts[:debug_auth_names] || ['authentik']
1764
+
1765
+ new_options = opts.merge(
1766
+ :operation => :"CoreApi.core_brands_update",
1767
+ :header_params => header_params,
1768
+ :query_params => query_params,
1769
+ :form_params => form_params,
1770
+ :body => post_body,
1771
+ :auth_names => auth_names,
1772
+ :return_type => return_type
1773
+ )
1774
+
1775
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
1776
+ if @api_client.config.debugging
1777
+ @api_client.config.logger.debug "API called: CoreApi#core_brands_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1778
+ end
1779
+ return data, status_code, headers
1780
+ end
1781
+
1782
+ # Get a list of all objects that use this object
1783
+ # @param brand_uuid [String] A UUID string identifying this Brand.
1784
+ # @param [Hash] opts the optional parameters
1785
+ # @return [Array<UsedBy>]
1786
+ def core_brands_used_by_list(brand_uuid, opts = {})
1787
+ data, _status_code, _headers = core_brands_used_by_list_with_http_info(brand_uuid, opts)
1788
+ data
1789
+ end
1790
+
1791
+ # Get a list of all objects that use this object
1792
+ # @param brand_uuid [String] A UUID string identifying this Brand.
1793
+ # @param [Hash] opts the optional parameters
1794
+ # @return [Array<(Array<UsedBy>, Integer, Hash)>] Array<UsedBy> data, response status code and response headers
1795
+ def core_brands_used_by_list_with_http_info(brand_uuid, opts = {})
1796
+ if @api_client.config.debugging
1797
+ @api_client.config.logger.debug 'Calling API: CoreApi.core_brands_used_by_list ...'
1798
+ end
1799
+ # verify the required parameter 'brand_uuid' is set
1800
+ if @api_client.config.client_side_validation && brand_uuid.nil?
1801
+ fail ArgumentError, "Missing the required parameter 'brand_uuid' when calling CoreApi.core_brands_used_by_list"
1802
+ end
1803
+ # resource path
1804
+ local_var_path = '/core/brands/{brand_uuid}/used_by/'.sub('{' + 'brand_uuid' + '}', CGI.escape(brand_uuid.to_s))
1805
+
1806
+ # query parameters
1807
+ query_params = opts[:query_params] || {}
1808
+
1809
+ # header parameters
1810
+ header_params = opts[:header_params] || {}
1811
+ # HTTP header 'Accept' (if needed)
1812
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1813
+
1814
+ # form parameters
1815
+ form_params = opts[:form_params] || {}
1816
+
1817
+ # http body (model)
1818
+ post_body = opts[:debug_body]
1819
+
1820
+ # return_type
1821
+ return_type = opts[:debug_return_type] || 'Array<UsedBy>'
1822
+
1823
+ # auth_names
1824
+ auth_names = opts[:debug_auth_names] || ['authentik']
1825
+
1826
+ new_options = opts.merge(
1827
+ :operation => :"CoreApi.core_brands_used_by_list",
1828
+ :header_params => header_params,
1829
+ :query_params => query_params,
1830
+ :form_params => form_params,
1831
+ :body => post_body,
1832
+ :auth_names => auth_names,
1833
+ :return_type => return_type
1834
+ )
1835
+
1836
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1837
+ if @api_client.config.debugging
1838
+ @api_client.config.logger.debug "API called: CoreApi#core_brands_used_by_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1839
+ end
1840
+ return data, status_code, headers
1841
+ end
1842
+
1843
+ # Add user to group
1844
+ # @param group_uuid [String] A UUID string identifying this Group.
1845
+ # @param user_account_request [UserAccountRequest]
1846
+ # @param [Hash] opts the optional parameters
1847
+ # @return [nil]
1848
+ def core_groups_add_user_create(group_uuid, user_account_request, opts = {})
1849
+ core_groups_add_user_create_with_http_info(group_uuid, user_account_request, opts)
1850
+ nil
1851
+ end
1852
+
1853
+ # Add user to group
1854
+ # @param group_uuid [String] A UUID string identifying this Group.
1855
+ # @param user_account_request [UserAccountRequest]
1856
+ # @param [Hash] opts the optional parameters
1857
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
1858
+ def core_groups_add_user_create_with_http_info(group_uuid, user_account_request, opts = {})
1859
+ if @api_client.config.debugging
1860
+ @api_client.config.logger.debug 'Calling API: CoreApi.core_groups_add_user_create ...'
1861
+ end
1862
+ # verify the required parameter 'group_uuid' is set
1863
+ if @api_client.config.client_side_validation && group_uuid.nil?
1864
+ fail ArgumentError, "Missing the required parameter 'group_uuid' when calling CoreApi.core_groups_add_user_create"
1865
+ end
1866
+ # verify the required parameter 'user_account_request' is set
1867
+ if @api_client.config.client_side_validation && user_account_request.nil?
1868
+ fail ArgumentError, "Missing the required parameter 'user_account_request' when calling CoreApi.core_groups_add_user_create"
1869
+ end
1870
+ # resource path
1871
+ local_var_path = '/core/groups/{group_uuid}/add_user/'.sub('{' + 'group_uuid' + '}', CGI.escape(group_uuid.to_s))
1872
+
1873
+ # query parameters
1874
+ query_params = opts[:query_params] || {}
1875
+
1876
+ # header parameters
1877
+ header_params = opts[:header_params] || {}
1878
+ # HTTP header 'Accept' (if needed)
1879
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1880
+ # HTTP header 'Content-Type'
1881
+ content_type = @api_client.select_header_content_type(['application/json'])
1882
+ if !content_type.nil?
1883
+ header_params['Content-Type'] = content_type
1884
+ end
1885
+
1886
+ # form parameters
1887
+ form_params = opts[:form_params] || {}
1888
+
1889
+ # http body (model)
1890
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(user_account_request)
1891
+
1892
+ # return_type
1893
+ return_type = opts[:debug_return_type]
1894
+
1895
+ # auth_names
1896
+ auth_names = opts[:debug_auth_names] || ['authentik']
1897
+
1898
+ new_options = opts.merge(
1899
+ :operation => :"CoreApi.core_groups_add_user_create",
1900
+ :header_params => header_params,
1901
+ :query_params => query_params,
1902
+ :form_params => form_params,
1903
+ :body => post_body,
1904
+ :auth_names => auth_names,
1905
+ :return_type => return_type
1906
+ )
1907
+
1908
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1909
+ if @api_client.config.debugging
1910
+ @api_client.config.logger.debug "API called: CoreApi#core_groups_add_user_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1911
+ end
1912
+ return data, status_code, headers
1913
+ end
1914
+
1915
+ # Group Viewset
1916
+ # @param group_request [GroupRequest]
1917
+ # @param [Hash] opts the optional parameters
1918
+ # @return [Group]
1919
+ def core_groups_create(group_request, opts = {})
1920
+ data, _status_code, _headers = core_groups_create_with_http_info(group_request, opts)
1921
+ data
1922
+ end
1923
+
1924
+ # Group Viewset
1925
+ # @param group_request [GroupRequest]
1926
+ # @param [Hash] opts the optional parameters
1927
+ # @return [Array<(Group, Integer, Hash)>] Group data, response status code and response headers
1928
+ def core_groups_create_with_http_info(group_request, opts = {})
1929
+ if @api_client.config.debugging
1930
+ @api_client.config.logger.debug 'Calling API: CoreApi.core_groups_create ...'
1931
+ end
1932
+ # verify the required parameter 'group_request' is set
1933
+ if @api_client.config.client_side_validation && group_request.nil?
1934
+ fail ArgumentError, "Missing the required parameter 'group_request' when calling CoreApi.core_groups_create"
1935
+ end
1936
+ # resource path
1937
+ local_var_path = '/core/groups/'
1938
+
1939
+ # query parameters
1940
+ query_params = opts[:query_params] || {}
1941
+
1942
+ # header parameters
1943
+ header_params = opts[:header_params] || {}
1944
+ # HTTP header 'Accept' (if needed)
1945
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1946
+ # HTTP header 'Content-Type'
1947
+ content_type = @api_client.select_header_content_type(['application/json'])
1948
+ if !content_type.nil?
1949
+ header_params['Content-Type'] = content_type
1950
+ end
1951
+
1952
+ # form parameters
1953
+ form_params = opts[:form_params] || {}
1954
+
1955
+ # http body (model)
1956
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(group_request)
1957
+
1958
+ # return_type
1959
+ return_type = opts[:debug_return_type] || 'Group'
1960
+
1961
+ # auth_names
1962
+ auth_names = opts[:debug_auth_names] || ['authentik']
1963
+
1964
+ new_options = opts.merge(
1965
+ :operation => :"CoreApi.core_groups_create",
1966
+ :header_params => header_params,
1967
+ :query_params => query_params,
1968
+ :form_params => form_params,
1969
+ :body => post_body,
1970
+ :auth_names => auth_names,
1971
+ :return_type => return_type
1972
+ )
1973
+
1974
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1975
+ if @api_client.config.debugging
1976
+ @api_client.config.logger.debug "API called: CoreApi#core_groups_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1977
+ end
1978
+ return data, status_code, headers
1979
+ end
1980
+
1981
+ # Group Viewset
1982
+ # @param group_uuid [String] A UUID string identifying this Group.
1983
+ # @param [Hash] opts the optional parameters
1984
+ # @return [nil]
1985
+ def core_groups_destroy(group_uuid, opts = {})
1986
+ core_groups_destroy_with_http_info(group_uuid, opts)
1987
+ nil
1988
+ end
1989
+
1990
+ # Group Viewset
1991
+ # @param group_uuid [String] A UUID string identifying this Group.
1992
+ # @param [Hash] opts the optional parameters
1993
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
1994
+ def core_groups_destroy_with_http_info(group_uuid, opts = {})
1995
+ if @api_client.config.debugging
1996
+ @api_client.config.logger.debug 'Calling API: CoreApi.core_groups_destroy ...'
1997
+ end
1998
+ # verify the required parameter 'group_uuid' is set
1999
+ if @api_client.config.client_side_validation && group_uuid.nil?
2000
+ fail ArgumentError, "Missing the required parameter 'group_uuid' when calling CoreApi.core_groups_destroy"
2001
+ end
2002
+ # resource path
2003
+ local_var_path = '/core/groups/{group_uuid}/'.sub('{' + 'group_uuid' + '}', CGI.escape(group_uuid.to_s))
2004
+
2005
+ # query parameters
2006
+ query_params = opts[:query_params] || {}
2007
+
2008
+ # header parameters
2009
+ header_params = opts[:header_params] || {}
2010
+ # HTTP header 'Accept' (if needed)
2011
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2012
+
2013
+ # form parameters
2014
+ form_params = opts[:form_params] || {}
2015
+
2016
+ # http body (model)
2017
+ post_body = opts[:debug_body]
2018
+
2019
+ # return_type
2020
+ return_type = opts[:debug_return_type]
2021
+
2022
+ # auth_names
2023
+ auth_names = opts[:debug_auth_names] || ['authentik']
2024
+
2025
+ new_options = opts.merge(
2026
+ :operation => :"CoreApi.core_groups_destroy",
2027
+ :header_params => header_params,
2028
+ :query_params => query_params,
2029
+ :form_params => form_params,
2030
+ :body => post_body,
2031
+ :auth_names => auth_names,
2032
+ :return_type => return_type
2033
+ )
2034
+
2035
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
2036
+ if @api_client.config.debugging
2037
+ @api_client.config.logger.debug "API called: CoreApi#core_groups_destroy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2038
+ end
2039
+ return data, status_code, headers
2040
+ end
2041
+
2042
+ # Group Viewset
2043
+ # @param [Hash] opts the optional parameters
2044
+ # @option opts [String] :attributes Attributes
2045
+ # @option opts [Boolean] :include_children (default to false)
2046
+ # @option opts [Boolean] :include_inherited_roles (default to false)
2047
+ # @option opts [Boolean] :include_parents (default to false)
2048
+ # @option opts [Boolean] :include_users (default to true)
2049
+ # @option opts [Boolean] :is_superuser
2050
+ # @option opts [Array<Integer>] :members_by_pk
2051
+ # @option opts [Array<String>] :members_by_username Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.
2052
+ # @option opts [String] :name
2053
+ # @option opts [String] :ordering Which field to use when ordering the results.
2054
+ # @option opts [Integer] :page A page number within the paginated result set.
2055
+ # @option opts [Integer] :page_size Number of results to return per page.
2056
+ # @option opts [String] :search A search term.
2057
+ # @return [PaginatedGroupList]
2058
+ def core_groups_list(opts = {})
2059
+ data, _status_code, _headers = core_groups_list_with_http_info(opts)
2060
+ data
2061
+ end
2062
+
2063
+ # Group Viewset
2064
+ # @param [Hash] opts the optional parameters
2065
+ # @option opts [String] :attributes Attributes
2066
+ # @option opts [Boolean] :include_children (default to false)
2067
+ # @option opts [Boolean] :include_inherited_roles (default to false)
2068
+ # @option opts [Boolean] :include_parents (default to false)
2069
+ # @option opts [Boolean] :include_users (default to true)
2070
+ # @option opts [Boolean] :is_superuser
2071
+ # @option opts [Array<Integer>] :members_by_pk
2072
+ # @option opts [Array<String>] :members_by_username Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.
2073
+ # @option opts [String] :name
2074
+ # @option opts [String] :ordering Which field to use when ordering the results.
2075
+ # @option opts [Integer] :page A page number within the paginated result set.
2076
+ # @option opts [Integer] :page_size Number of results to return per page.
2077
+ # @option opts [String] :search A search term.
2078
+ # @return [Array<(PaginatedGroupList, Integer, Hash)>] PaginatedGroupList data, response status code and response headers
2079
+ def core_groups_list_with_http_info(opts = {})
2080
+ if @api_client.config.debugging
2081
+ @api_client.config.logger.debug 'Calling API: CoreApi.core_groups_list ...'
2082
+ end
2083
+ # resource path
2084
+ local_var_path = '/core/groups/'
2085
+
2086
+ # query parameters
2087
+ query_params = opts[:query_params] || {}
2088
+ query_params[:'attributes'] = opts[:'attributes'] if !opts[:'attributes'].nil?
2089
+ query_params[:'include_children'] = opts[:'include_children'] if !opts[:'include_children'].nil?
2090
+ query_params[:'include_inherited_roles'] = opts[:'include_inherited_roles'] if !opts[:'include_inherited_roles'].nil?
2091
+ query_params[:'include_parents'] = opts[:'include_parents'] if !opts[:'include_parents'].nil?
2092
+ query_params[:'include_users'] = opts[:'include_users'] if !opts[:'include_users'].nil?
2093
+ query_params[:'is_superuser'] = opts[:'is_superuser'] if !opts[:'is_superuser'].nil?
2094
+ query_params[:'members_by_pk'] = @api_client.build_collection_param(opts[:'members_by_pk'], :multi) if !opts[:'members_by_pk'].nil?
2095
+ query_params[:'members_by_username'] = @api_client.build_collection_param(opts[:'members_by_username'], :multi) if !opts[:'members_by_username'].nil?
2096
+ query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
2097
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
2098
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
2099
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
2100
+ query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
2101
+
2102
+ # header parameters
2103
+ header_params = opts[:header_params] || {}
2104
+ # HTTP header 'Accept' (if needed)
2105
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2106
+
2107
+ # form parameters
2108
+ form_params = opts[:form_params] || {}
2109
+
2110
+ # http body (model)
2111
+ post_body = opts[:debug_body]
2112
+
2113
+ # return_type
2114
+ return_type = opts[:debug_return_type] || 'PaginatedGroupList'
2115
+
2116
+ # auth_names
2117
+ auth_names = opts[:debug_auth_names] || ['authentik']
2118
+
2119
+ new_options = opts.merge(
2120
+ :operation => :"CoreApi.core_groups_list",
2121
+ :header_params => header_params,
2122
+ :query_params => query_params,
2123
+ :form_params => form_params,
2124
+ :body => post_body,
2125
+ :auth_names => auth_names,
2126
+ :return_type => return_type
2127
+ )
2128
+
2129
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2130
+ if @api_client.config.debugging
2131
+ @api_client.config.logger.debug "API called: CoreApi#core_groups_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2132
+ end
2133
+ return data, status_code, headers
2134
+ end
2135
+
2136
+ # Group Viewset
2137
+ # @param group_uuid [String] A UUID string identifying this Group.
2138
+ # @param [Hash] opts the optional parameters
2139
+ # @option opts [PatchedGroupRequest] :patched_group_request
2140
+ # @return [Group]
2141
+ def core_groups_partial_update(group_uuid, opts = {})
2142
+ data, _status_code, _headers = core_groups_partial_update_with_http_info(group_uuid, opts)
2143
+ data
2144
+ end
2145
+
2146
+ # Group Viewset
2147
+ # @param group_uuid [String] A UUID string identifying this Group.
2148
+ # @param [Hash] opts the optional parameters
2149
+ # @option opts [PatchedGroupRequest] :patched_group_request
2150
+ # @return [Array<(Group, Integer, Hash)>] Group data, response status code and response headers
2151
+ def core_groups_partial_update_with_http_info(group_uuid, opts = {})
2152
+ if @api_client.config.debugging
2153
+ @api_client.config.logger.debug 'Calling API: CoreApi.core_groups_partial_update ...'
2154
+ end
2155
+ # verify the required parameter 'group_uuid' is set
2156
+ if @api_client.config.client_side_validation && group_uuid.nil?
2157
+ fail ArgumentError, "Missing the required parameter 'group_uuid' when calling CoreApi.core_groups_partial_update"
2158
+ end
2159
+ # resource path
2160
+ local_var_path = '/core/groups/{group_uuid}/'.sub('{' + 'group_uuid' + '}', CGI.escape(group_uuid.to_s))
2161
+
2162
+ # query parameters
2163
+ query_params = opts[:query_params] || {}
2164
+
2165
+ # header parameters
2166
+ header_params = opts[:header_params] || {}
2167
+ # HTTP header 'Accept' (if needed)
2168
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2169
+ # HTTP header 'Content-Type'
2170
+ content_type = @api_client.select_header_content_type(['application/json'])
2171
+ if !content_type.nil?
2172
+ header_params['Content-Type'] = content_type
2173
+ end
2174
+
2175
+ # form parameters
2176
+ form_params = opts[:form_params] || {}
2177
+
2178
+ # http body (model)
2179
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'patched_group_request'])
2180
+
2181
+ # return_type
2182
+ return_type = opts[:debug_return_type] || 'Group'
2183
+
2184
+ # auth_names
2185
+ auth_names = opts[:debug_auth_names] || ['authentik']
2186
+
2187
+ new_options = opts.merge(
2188
+ :operation => :"CoreApi.core_groups_partial_update",
2189
+ :header_params => header_params,
2190
+ :query_params => query_params,
2191
+ :form_params => form_params,
2192
+ :body => post_body,
2193
+ :auth_names => auth_names,
2194
+ :return_type => return_type
2195
+ )
2196
+
2197
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
2198
+ if @api_client.config.debugging
2199
+ @api_client.config.logger.debug "API called: CoreApi#core_groups_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2200
+ end
2201
+ return data, status_code, headers
2202
+ end
2203
+
2204
+ # Remove user from group
2205
+ # @param group_uuid [String] A UUID string identifying this Group.
2206
+ # @param user_account_request [UserAccountRequest]
2207
+ # @param [Hash] opts the optional parameters
2208
+ # @return [nil]
2209
+ def core_groups_remove_user_create(group_uuid, user_account_request, opts = {})
2210
+ core_groups_remove_user_create_with_http_info(group_uuid, user_account_request, opts)
2211
+ nil
2212
+ end
2213
+
2214
+ # Remove user from group
2215
+ # @param group_uuid [String] A UUID string identifying this Group.
2216
+ # @param user_account_request [UserAccountRequest]
2217
+ # @param [Hash] opts the optional parameters
2218
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
2219
+ def core_groups_remove_user_create_with_http_info(group_uuid, user_account_request, opts = {})
2220
+ if @api_client.config.debugging
2221
+ @api_client.config.logger.debug 'Calling API: CoreApi.core_groups_remove_user_create ...'
2222
+ end
2223
+ # verify the required parameter 'group_uuid' is set
2224
+ if @api_client.config.client_side_validation && group_uuid.nil?
2225
+ fail ArgumentError, "Missing the required parameter 'group_uuid' when calling CoreApi.core_groups_remove_user_create"
2226
+ end
2227
+ # verify the required parameter 'user_account_request' is set
2228
+ if @api_client.config.client_side_validation && user_account_request.nil?
2229
+ fail ArgumentError, "Missing the required parameter 'user_account_request' when calling CoreApi.core_groups_remove_user_create"
2230
+ end
2231
+ # resource path
2232
+ local_var_path = '/core/groups/{group_uuid}/remove_user/'.sub('{' + 'group_uuid' + '}', CGI.escape(group_uuid.to_s))
2233
+
2234
+ # query parameters
2235
+ query_params = opts[:query_params] || {}
2236
+
2237
+ # header parameters
2238
+ header_params = opts[:header_params] || {}
2239
+ # HTTP header 'Accept' (if needed)
2240
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2241
+ # HTTP header 'Content-Type'
2242
+ content_type = @api_client.select_header_content_type(['application/json'])
2243
+ if !content_type.nil?
2244
+ header_params['Content-Type'] = content_type
2245
+ end
2246
+
2247
+ # form parameters
2248
+ form_params = opts[:form_params] || {}
2249
+
2250
+ # http body (model)
2251
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(user_account_request)
2252
+
2253
+ # return_type
2254
+ return_type = opts[:debug_return_type]
2255
+
2256
+ # auth_names
2257
+ auth_names = opts[:debug_auth_names] || ['authentik']
2258
+
2259
+ new_options = opts.merge(
2260
+ :operation => :"CoreApi.core_groups_remove_user_create",
2261
+ :header_params => header_params,
2262
+ :query_params => query_params,
2263
+ :form_params => form_params,
2264
+ :body => post_body,
2265
+ :auth_names => auth_names,
2266
+ :return_type => return_type
2267
+ )
2268
+
2269
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2270
+ if @api_client.config.debugging
2271
+ @api_client.config.logger.debug "API called: CoreApi#core_groups_remove_user_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2272
+ end
2273
+ return data, status_code, headers
2274
+ end
2275
+
2276
+ # Group Viewset
2277
+ # @param group_uuid [String] A UUID string identifying this Group.
2278
+ # @param [Hash] opts the optional parameters
2279
+ # @option opts [Boolean] :include_children (default to false)
2280
+ # @option opts [Boolean] :include_inherited_roles (default to false)
2281
+ # @option opts [Boolean] :include_parents (default to false)
2282
+ # @option opts [Boolean] :include_users (default to true)
2283
+ # @return [Group]
2284
+ def core_groups_retrieve(group_uuid, opts = {})
2285
+ data, _status_code, _headers = core_groups_retrieve_with_http_info(group_uuid, opts)
2286
+ data
2287
+ end
2288
+
2289
+ # Group Viewset
2290
+ # @param group_uuid [String] A UUID string identifying this Group.
2291
+ # @param [Hash] opts the optional parameters
2292
+ # @option opts [Boolean] :include_children (default to false)
2293
+ # @option opts [Boolean] :include_inherited_roles (default to false)
2294
+ # @option opts [Boolean] :include_parents (default to false)
2295
+ # @option opts [Boolean] :include_users (default to true)
2296
+ # @return [Array<(Group, Integer, Hash)>] Group data, response status code and response headers
2297
+ def core_groups_retrieve_with_http_info(group_uuid, opts = {})
2298
+ if @api_client.config.debugging
2299
+ @api_client.config.logger.debug 'Calling API: CoreApi.core_groups_retrieve ...'
2300
+ end
2301
+ # verify the required parameter 'group_uuid' is set
2302
+ if @api_client.config.client_side_validation && group_uuid.nil?
2303
+ fail ArgumentError, "Missing the required parameter 'group_uuid' when calling CoreApi.core_groups_retrieve"
2304
+ end
2305
+ # resource path
2306
+ local_var_path = '/core/groups/{group_uuid}/'.sub('{' + 'group_uuid' + '}', CGI.escape(group_uuid.to_s))
2307
+
2308
+ # query parameters
2309
+ query_params = opts[:query_params] || {}
2310
+ query_params[:'include_children'] = opts[:'include_children'] if !opts[:'include_children'].nil?
2311
+ query_params[:'include_inherited_roles'] = opts[:'include_inherited_roles'] if !opts[:'include_inherited_roles'].nil?
2312
+ query_params[:'include_parents'] = opts[:'include_parents'] if !opts[:'include_parents'].nil?
2313
+ query_params[:'include_users'] = opts[:'include_users'] if !opts[:'include_users'].nil?
2314
+
2315
+ # header parameters
2316
+ header_params = opts[:header_params] || {}
2317
+ # HTTP header 'Accept' (if needed)
2318
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2319
+
2320
+ # form parameters
2321
+ form_params = opts[:form_params] || {}
2322
+
2323
+ # http body (model)
2324
+ post_body = opts[:debug_body]
2325
+
2326
+ # return_type
2327
+ return_type = opts[:debug_return_type] || 'Group'
2328
+
2329
+ # auth_names
2330
+ auth_names = opts[:debug_auth_names] || ['authentik']
2331
+
2332
+ new_options = opts.merge(
2333
+ :operation => :"CoreApi.core_groups_retrieve",
2334
+ :header_params => header_params,
2335
+ :query_params => query_params,
2336
+ :form_params => form_params,
2337
+ :body => post_body,
2338
+ :auth_names => auth_names,
2339
+ :return_type => return_type
2340
+ )
2341
+
2342
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2343
+ if @api_client.config.debugging
2344
+ @api_client.config.logger.debug "API called: CoreApi#core_groups_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2345
+ end
2346
+ return data, status_code, headers
2347
+ end
2348
+
2349
+ # Group Viewset
2350
+ # @param group_uuid [String] A UUID string identifying this Group.
2351
+ # @param group_request [GroupRequest]
2352
+ # @param [Hash] opts the optional parameters
2353
+ # @return [Group]
2354
+ def core_groups_update(group_uuid, group_request, opts = {})
2355
+ data, _status_code, _headers = core_groups_update_with_http_info(group_uuid, group_request, opts)
2356
+ data
2357
+ end
2358
+
2359
+ # Group Viewset
2360
+ # @param group_uuid [String] A UUID string identifying this Group.
2361
+ # @param group_request [GroupRequest]
2362
+ # @param [Hash] opts the optional parameters
2363
+ # @return [Array<(Group, Integer, Hash)>] Group data, response status code and response headers
2364
+ def core_groups_update_with_http_info(group_uuid, group_request, opts = {})
2365
+ if @api_client.config.debugging
2366
+ @api_client.config.logger.debug 'Calling API: CoreApi.core_groups_update ...'
2367
+ end
2368
+ # verify the required parameter 'group_uuid' is set
2369
+ if @api_client.config.client_side_validation && group_uuid.nil?
2370
+ fail ArgumentError, "Missing the required parameter 'group_uuid' when calling CoreApi.core_groups_update"
2371
+ end
2372
+ # verify the required parameter 'group_request' is set
2373
+ if @api_client.config.client_side_validation && group_request.nil?
2374
+ fail ArgumentError, "Missing the required parameter 'group_request' when calling CoreApi.core_groups_update"
2375
+ end
2376
+ # resource path
2377
+ local_var_path = '/core/groups/{group_uuid}/'.sub('{' + 'group_uuid' + '}', CGI.escape(group_uuid.to_s))
2378
+
2379
+ # query parameters
2380
+ query_params = opts[:query_params] || {}
2381
+
2382
+ # header parameters
2383
+ header_params = opts[:header_params] || {}
2384
+ # HTTP header 'Accept' (if needed)
2385
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2386
+ # HTTP header 'Content-Type'
2387
+ content_type = @api_client.select_header_content_type(['application/json'])
2388
+ if !content_type.nil?
2389
+ header_params['Content-Type'] = content_type
2390
+ end
2391
+
2392
+ # form parameters
2393
+ form_params = opts[:form_params] || {}
2394
+
2395
+ # http body (model)
2396
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(group_request)
2397
+
2398
+ # return_type
2399
+ return_type = opts[:debug_return_type] || 'Group'
2400
+
2401
+ # auth_names
2402
+ auth_names = opts[:debug_auth_names] || ['authentik']
2403
+
2404
+ new_options = opts.merge(
2405
+ :operation => :"CoreApi.core_groups_update",
2406
+ :header_params => header_params,
2407
+ :query_params => query_params,
2408
+ :form_params => form_params,
2409
+ :body => post_body,
2410
+ :auth_names => auth_names,
2411
+ :return_type => return_type
2412
+ )
2413
+
2414
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
2415
+ if @api_client.config.debugging
2416
+ @api_client.config.logger.debug "API called: CoreApi#core_groups_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2417
+ end
2418
+ return data, status_code, headers
2419
+ end
2420
+
2421
+ # Get a list of all objects that use this object
2422
+ # @param group_uuid [String] A UUID string identifying this Group.
2423
+ # @param [Hash] opts the optional parameters
2424
+ # @return [Array<UsedBy>]
2425
+ def core_groups_used_by_list(group_uuid, opts = {})
2426
+ data, _status_code, _headers = core_groups_used_by_list_with_http_info(group_uuid, opts)
2427
+ data
2428
+ end
2429
+
2430
+ # Get a list of all objects that use this object
2431
+ # @param group_uuid [String] A UUID string identifying this Group.
2432
+ # @param [Hash] opts the optional parameters
2433
+ # @return [Array<(Array<UsedBy>, Integer, Hash)>] Array<UsedBy> data, response status code and response headers
2434
+ def core_groups_used_by_list_with_http_info(group_uuid, opts = {})
2435
+ if @api_client.config.debugging
2436
+ @api_client.config.logger.debug 'Calling API: CoreApi.core_groups_used_by_list ...'
2437
+ end
2438
+ # verify the required parameter 'group_uuid' is set
2439
+ if @api_client.config.client_side_validation && group_uuid.nil?
2440
+ fail ArgumentError, "Missing the required parameter 'group_uuid' when calling CoreApi.core_groups_used_by_list"
2441
+ end
2442
+ # resource path
2443
+ local_var_path = '/core/groups/{group_uuid}/used_by/'.sub('{' + 'group_uuid' + '}', CGI.escape(group_uuid.to_s))
2444
+
2445
+ # query parameters
2446
+ query_params = opts[:query_params] || {}
2447
+
2448
+ # header parameters
2449
+ header_params = opts[:header_params] || {}
2450
+ # HTTP header 'Accept' (if needed)
2451
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2452
+
2453
+ # form parameters
2454
+ form_params = opts[:form_params] || {}
2455
+
2456
+ # http body (model)
2457
+ post_body = opts[:debug_body]
2458
+
2459
+ # return_type
2460
+ return_type = opts[:debug_return_type] || 'Array<UsedBy>'
2461
+
2462
+ # auth_names
2463
+ auth_names = opts[:debug_auth_names] || ['authentik']
2464
+
2465
+ new_options = opts.merge(
2466
+ :operation => :"CoreApi.core_groups_used_by_list",
2467
+ :header_params => header_params,
2468
+ :query_params => query_params,
2469
+ :form_params => form_params,
2470
+ :body => post_body,
2471
+ :auth_names => auth_names,
2472
+ :return_type => return_type
2473
+ )
2474
+
2475
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2476
+ if @api_client.config.debugging
2477
+ @api_client.config.logger.debug "API called: CoreApi#core_groups_used_by_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2478
+ end
2479
+ return data, status_code, headers
2480
+ end
2481
+
2482
+ # Token Viewset
2483
+ # @param token_request [TokenRequest]
2484
+ # @param [Hash] opts the optional parameters
2485
+ # @return [Token]
2486
+ def core_tokens_create(token_request, opts = {})
2487
+ data, _status_code, _headers = core_tokens_create_with_http_info(token_request, opts)
2488
+ data
2489
+ end
2490
+
2491
+ # Token Viewset
2492
+ # @param token_request [TokenRequest]
2493
+ # @param [Hash] opts the optional parameters
2494
+ # @return [Array<(Token, Integer, Hash)>] Token data, response status code and response headers
2495
+ def core_tokens_create_with_http_info(token_request, opts = {})
2496
+ if @api_client.config.debugging
2497
+ @api_client.config.logger.debug 'Calling API: CoreApi.core_tokens_create ...'
2498
+ end
2499
+ # verify the required parameter 'token_request' is set
2500
+ if @api_client.config.client_side_validation && token_request.nil?
2501
+ fail ArgumentError, "Missing the required parameter 'token_request' when calling CoreApi.core_tokens_create"
2502
+ end
2503
+ # resource path
2504
+ local_var_path = '/core/tokens/'
2505
+
2506
+ # query parameters
2507
+ query_params = opts[:query_params] || {}
2508
+
2509
+ # header parameters
2510
+ header_params = opts[:header_params] || {}
2511
+ # HTTP header 'Accept' (if needed)
2512
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2513
+ # HTTP header 'Content-Type'
2514
+ content_type = @api_client.select_header_content_type(['application/json'])
2515
+ if !content_type.nil?
2516
+ header_params['Content-Type'] = content_type
2517
+ end
2518
+
2519
+ # form parameters
2520
+ form_params = opts[:form_params] || {}
2521
+
2522
+ # http body (model)
2523
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(token_request)
2524
+
2525
+ # return_type
2526
+ return_type = opts[:debug_return_type] || 'Token'
2527
+
2528
+ # auth_names
2529
+ auth_names = opts[:debug_auth_names] || ['authentik']
2530
+
2531
+ new_options = opts.merge(
2532
+ :operation => :"CoreApi.core_tokens_create",
2533
+ :header_params => header_params,
2534
+ :query_params => query_params,
2535
+ :form_params => form_params,
2536
+ :body => post_body,
2537
+ :auth_names => auth_names,
2538
+ :return_type => return_type
2539
+ )
2540
+
2541
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2542
+ if @api_client.config.debugging
2543
+ @api_client.config.logger.debug "API called: CoreApi#core_tokens_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2544
+ end
2545
+ return data, status_code, headers
2546
+ end
2547
+
2548
+ # Token Viewset
2549
+ # @param identifier [String]
2550
+ # @param [Hash] opts the optional parameters
2551
+ # @return [nil]
2552
+ def core_tokens_destroy(identifier, opts = {})
2553
+ core_tokens_destroy_with_http_info(identifier, opts)
2554
+ nil
2555
+ end
2556
+
2557
+ # Token Viewset
2558
+ # @param identifier [String]
2559
+ # @param [Hash] opts the optional parameters
2560
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
2561
+ def core_tokens_destroy_with_http_info(identifier, opts = {})
2562
+ if @api_client.config.debugging
2563
+ @api_client.config.logger.debug 'Calling API: CoreApi.core_tokens_destroy ...'
2564
+ end
2565
+ # verify the required parameter 'identifier' is set
2566
+ if @api_client.config.client_side_validation && identifier.nil?
2567
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling CoreApi.core_tokens_destroy"
2568
+ end
2569
+ # resource path
2570
+ local_var_path = '/core/tokens/{identifier}/'.sub('{' + 'identifier' + '}', CGI.escape(identifier.to_s))
2571
+
2572
+ # query parameters
2573
+ query_params = opts[:query_params] || {}
2574
+
2575
+ # header parameters
2576
+ header_params = opts[:header_params] || {}
2577
+ # HTTP header 'Accept' (if needed)
2578
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2579
+
2580
+ # form parameters
2581
+ form_params = opts[:form_params] || {}
2582
+
2583
+ # http body (model)
2584
+ post_body = opts[:debug_body]
2585
+
2586
+ # return_type
2587
+ return_type = opts[:debug_return_type]
2588
+
2589
+ # auth_names
2590
+ auth_names = opts[:debug_auth_names] || ['authentik']
2591
+
2592
+ new_options = opts.merge(
2593
+ :operation => :"CoreApi.core_tokens_destroy",
2594
+ :header_params => header_params,
2595
+ :query_params => query_params,
2596
+ :form_params => form_params,
2597
+ :body => post_body,
2598
+ :auth_names => auth_names,
2599
+ :return_type => return_type
2600
+ )
2601
+
2602
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
2603
+ if @api_client.config.debugging
2604
+ @api_client.config.logger.debug "API called: CoreApi#core_tokens_destroy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2605
+ end
2606
+ return data, status_code, headers
2607
+ end
2608
+
2609
+ # Token Viewset
2610
+ # @param [Hash] opts the optional parameters
2611
+ # @option opts [String] :description
2612
+ # @option opts [Time] :expires
2613
+ # @option opts [Boolean] :expiring
2614
+ # @option opts [String] :identifier
2615
+ # @option opts [String] :intent
2616
+ # @option opts [String] :managed
2617
+ # @option opts [String] :ordering Which field to use when ordering the results.
2618
+ # @option opts [Integer] :page A page number within the paginated result set.
2619
+ # @option opts [Integer] :page_size Number of results to return per page.
2620
+ # @option opts [String] :search A search term.
2621
+ # @option opts [String] :user__username
2622
+ # @return [PaginatedTokenList]
2623
+ def core_tokens_list(opts = {})
2624
+ data, _status_code, _headers = core_tokens_list_with_http_info(opts)
2625
+ data
2626
+ end
2627
+
2628
+ # Token Viewset
2629
+ # @param [Hash] opts the optional parameters
2630
+ # @option opts [String] :description
2631
+ # @option opts [Time] :expires
2632
+ # @option opts [Boolean] :expiring
2633
+ # @option opts [String] :identifier
2634
+ # @option opts [String] :intent
2635
+ # @option opts [String] :managed
2636
+ # @option opts [String] :ordering Which field to use when ordering the results.
2637
+ # @option opts [Integer] :page A page number within the paginated result set.
2638
+ # @option opts [Integer] :page_size Number of results to return per page.
2639
+ # @option opts [String] :search A search term.
2640
+ # @option opts [String] :user__username
2641
+ # @return [Array<(PaginatedTokenList, Integer, Hash)>] PaginatedTokenList data, response status code and response headers
2642
+ def core_tokens_list_with_http_info(opts = {})
2643
+ if @api_client.config.debugging
2644
+ @api_client.config.logger.debug 'Calling API: CoreApi.core_tokens_list ...'
2645
+ end
2646
+ allowable_values = ["api", "app_password", "recovery", "verification"]
2647
+ if @api_client.config.client_side_validation && opts[:'intent'] && !allowable_values.include?(opts[:'intent'])
2648
+ fail ArgumentError, "invalid value for \"intent\", must be one of #{allowable_values}"
2649
+ end
2650
+ # resource path
2651
+ local_var_path = '/core/tokens/'
2652
+
2653
+ # query parameters
2654
+ query_params = opts[:query_params] || {}
2655
+ query_params[:'description'] = opts[:'description'] if !opts[:'description'].nil?
2656
+ query_params[:'expires'] = opts[:'expires'] if !opts[:'expires'].nil?
2657
+ query_params[:'expiring'] = opts[:'expiring'] if !opts[:'expiring'].nil?
2658
+ query_params[:'identifier'] = opts[:'identifier'] if !opts[:'identifier'].nil?
2659
+ query_params[:'intent'] = opts[:'intent'] if !opts[:'intent'].nil?
2660
+ query_params[:'managed'] = opts[:'managed'] if !opts[:'managed'].nil?
2661
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
2662
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
2663
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
2664
+ query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
2665
+ query_params[:'user__username'] = opts[:'user__username'] if !opts[:'user__username'].nil?
2666
+
2667
+ # header parameters
2668
+ header_params = opts[:header_params] || {}
2669
+ # HTTP header 'Accept' (if needed)
2670
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2671
+
2672
+ # form parameters
2673
+ form_params = opts[:form_params] || {}
2674
+
2675
+ # http body (model)
2676
+ post_body = opts[:debug_body]
2677
+
2678
+ # return_type
2679
+ return_type = opts[:debug_return_type] || 'PaginatedTokenList'
2680
+
2681
+ # auth_names
2682
+ auth_names = opts[:debug_auth_names] || ['authentik']
2683
+
2684
+ new_options = opts.merge(
2685
+ :operation => :"CoreApi.core_tokens_list",
2686
+ :header_params => header_params,
2687
+ :query_params => query_params,
2688
+ :form_params => form_params,
2689
+ :body => post_body,
2690
+ :auth_names => auth_names,
2691
+ :return_type => return_type
2692
+ )
2693
+
2694
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2695
+ if @api_client.config.debugging
2696
+ @api_client.config.logger.debug "API called: CoreApi#core_tokens_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2697
+ end
2698
+ return data, status_code, headers
2699
+ end
2700
+
2701
+ # Token Viewset
2702
+ # @param identifier [String]
2703
+ # @param [Hash] opts the optional parameters
2704
+ # @option opts [PatchedTokenRequest] :patched_token_request
2705
+ # @return [Token]
2706
+ def core_tokens_partial_update(identifier, opts = {})
2707
+ data, _status_code, _headers = core_tokens_partial_update_with_http_info(identifier, opts)
2708
+ data
2709
+ end
2710
+
2711
+ # Token Viewset
2712
+ # @param identifier [String]
2713
+ # @param [Hash] opts the optional parameters
2714
+ # @option opts [PatchedTokenRequest] :patched_token_request
2715
+ # @return [Array<(Token, Integer, Hash)>] Token data, response status code and response headers
2716
+ def core_tokens_partial_update_with_http_info(identifier, opts = {})
2717
+ if @api_client.config.debugging
2718
+ @api_client.config.logger.debug 'Calling API: CoreApi.core_tokens_partial_update ...'
2719
+ end
2720
+ # verify the required parameter 'identifier' is set
2721
+ if @api_client.config.client_side_validation && identifier.nil?
2722
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling CoreApi.core_tokens_partial_update"
2723
+ end
2724
+ # resource path
2725
+ local_var_path = '/core/tokens/{identifier}/'.sub('{' + 'identifier' + '}', CGI.escape(identifier.to_s))
2726
+
2727
+ # query parameters
2728
+ query_params = opts[:query_params] || {}
2729
+
2730
+ # header parameters
2731
+ header_params = opts[:header_params] || {}
2732
+ # HTTP header 'Accept' (if needed)
2733
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2734
+ # HTTP header 'Content-Type'
2735
+ content_type = @api_client.select_header_content_type(['application/json'])
2736
+ if !content_type.nil?
2737
+ header_params['Content-Type'] = content_type
2738
+ end
2739
+
2740
+ # form parameters
2741
+ form_params = opts[:form_params] || {}
2742
+
2743
+ # http body (model)
2744
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'patched_token_request'])
2745
+
2746
+ # return_type
2747
+ return_type = opts[:debug_return_type] || 'Token'
2748
+
2749
+ # auth_names
2750
+ auth_names = opts[:debug_auth_names] || ['authentik']
2751
+
2752
+ new_options = opts.merge(
2753
+ :operation => :"CoreApi.core_tokens_partial_update",
2754
+ :header_params => header_params,
2755
+ :query_params => query_params,
2756
+ :form_params => form_params,
2757
+ :body => post_body,
2758
+ :auth_names => auth_names,
2759
+ :return_type => return_type
2760
+ )
2761
+
2762
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
2763
+ if @api_client.config.debugging
2764
+ @api_client.config.logger.debug "API called: CoreApi#core_tokens_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2765
+ end
2766
+ return data, status_code, headers
2767
+ end
2768
+
2769
+ # Token Viewset
2770
+ # @param identifier [String]
2771
+ # @param [Hash] opts the optional parameters
2772
+ # @return [Token]
2773
+ def core_tokens_retrieve(identifier, opts = {})
2774
+ data, _status_code, _headers = core_tokens_retrieve_with_http_info(identifier, opts)
2775
+ data
2776
+ end
2777
+
2778
+ # Token Viewset
2779
+ # @param identifier [String]
2780
+ # @param [Hash] opts the optional parameters
2781
+ # @return [Array<(Token, Integer, Hash)>] Token data, response status code and response headers
2782
+ def core_tokens_retrieve_with_http_info(identifier, opts = {})
2783
+ if @api_client.config.debugging
2784
+ @api_client.config.logger.debug 'Calling API: CoreApi.core_tokens_retrieve ...'
2785
+ end
2786
+ # verify the required parameter 'identifier' is set
2787
+ if @api_client.config.client_side_validation && identifier.nil?
2788
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling CoreApi.core_tokens_retrieve"
2789
+ end
2790
+ # resource path
2791
+ local_var_path = '/core/tokens/{identifier}/'.sub('{' + 'identifier' + '}', CGI.escape(identifier.to_s))
2792
+
2793
+ # query parameters
2794
+ query_params = opts[:query_params] || {}
2795
+
2796
+ # header parameters
2797
+ header_params = opts[:header_params] || {}
2798
+ # HTTP header 'Accept' (if needed)
2799
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2800
+
2801
+ # form parameters
2802
+ form_params = opts[:form_params] || {}
2803
+
2804
+ # http body (model)
2805
+ post_body = opts[:debug_body]
2806
+
2807
+ # return_type
2808
+ return_type = opts[:debug_return_type] || 'Token'
2809
+
2810
+ # auth_names
2811
+ auth_names = opts[:debug_auth_names] || ['authentik']
2812
+
2813
+ new_options = opts.merge(
2814
+ :operation => :"CoreApi.core_tokens_retrieve",
2815
+ :header_params => header_params,
2816
+ :query_params => query_params,
2817
+ :form_params => form_params,
2818
+ :body => post_body,
2819
+ :auth_names => auth_names,
2820
+ :return_type => return_type
2821
+ )
2822
+
2823
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2824
+ if @api_client.config.debugging
2825
+ @api_client.config.logger.debug "API called: CoreApi#core_tokens_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2826
+ end
2827
+ return data, status_code, headers
2828
+ end
2829
+
2830
+ # Set token key. Action is logged as event. `authentik_core.set_token_key` permission is required.
2831
+ # @param identifier [String]
2832
+ # @param token_set_key_request [TokenSetKeyRequest]
2833
+ # @param [Hash] opts the optional parameters
2834
+ # @return [nil]
2835
+ def core_tokens_set_key_create(identifier, token_set_key_request, opts = {})
2836
+ core_tokens_set_key_create_with_http_info(identifier, token_set_key_request, opts)
2837
+ nil
2838
+ end
2839
+
2840
+ # Set token key. Action is logged as event. &#x60;authentik_core.set_token_key&#x60; permission is required.
2841
+ # @param identifier [String]
2842
+ # @param token_set_key_request [TokenSetKeyRequest]
2843
+ # @param [Hash] opts the optional parameters
2844
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
2845
+ def core_tokens_set_key_create_with_http_info(identifier, token_set_key_request, opts = {})
2846
+ if @api_client.config.debugging
2847
+ @api_client.config.logger.debug 'Calling API: CoreApi.core_tokens_set_key_create ...'
2848
+ end
2849
+ # verify the required parameter 'identifier' is set
2850
+ if @api_client.config.client_side_validation && identifier.nil?
2851
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling CoreApi.core_tokens_set_key_create"
2852
+ end
2853
+ # verify the required parameter 'token_set_key_request' is set
2854
+ if @api_client.config.client_side_validation && token_set_key_request.nil?
2855
+ fail ArgumentError, "Missing the required parameter 'token_set_key_request' when calling CoreApi.core_tokens_set_key_create"
2856
+ end
2857
+ # resource path
2858
+ local_var_path = '/core/tokens/{identifier}/set_key/'.sub('{' + 'identifier' + '}', CGI.escape(identifier.to_s))
2859
+
2860
+ # query parameters
2861
+ query_params = opts[:query_params] || {}
2862
+
2863
+ # header parameters
2864
+ header_params = opts[:header_params] || {}
2865
+ # HTTP header 'Accept' (if needed)
2866
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2867
+ # HTTP header 'Content-Type'
2868
+ content_type = @api_client.select_header_content_type(['application/json'])
2869
+ if !content_type.nil?
2870
+ header_params['Content-Type'] = content_type
2871
+ end
2872
+
2873
+ # form parameters
2874
+ form_params = opts[:form_params] || {}
2875
+
2876
+ # http body (model)
2877
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(token_set_key_request)
2878
+
2879
+ # return_type
2880
+ return_type = opts[:debug_return_type]
2881
+
2882
+ # auth_names
2883
+ auth_names = opts[:debug_auth_names] || ['authentik']
2884
+
2885
+ new_options = opts.merge(
2886
+ :operation => :"CoreApi.core_tokens_set_key_create",
2887
+ :header_params => header_params,
2888
+ :query_params => query_params,
2889
+ :form_params => form_params,
2890
+ :body => post_body,
2891
+ :auth_names => auth_names,
2892
+ :return_type => return_type
2893
+ )
2894
+
2895
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2896
+ if @api_client.config.debugging
2897
+ @api_client.config.logger.debug "API called: CoreApi#core_tokens_set_key_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2898
+ end
2899
+ return data, status_code, headers
2900
+ end
2901
+
2902
+ # Token Viewset
2903
+ # @param identifier [String]
2904
+ # @param token_request [TokenRequest]
2905
+ # @param [Hash] opts the optional parameters
2906
+ # @return [Token]
2907
+ def core_tokens_update(identifier, token_request, opts = {})
2908
+ data, _status_code, _headers = core_tokens_update_with_http_info(identifier, token_request, opts)
2909
+ data
2910
+ end
2911
+
2912
+ # Token Viewset
2913
+ # @param identifier [String]
2914
+ # @param token_request [TokenRequest]
2915
+ # @param [Hash] opts the optional parameters
2916
+ # @return [Array<(Token, Integer, Hash)>] Token data, response status code and response headers
2917
+ def core_tokens_update_with_http_info(identifier, token_request, opts = {})
2918
+ if @api_client.config.debugging
2919
+ @api_client.config.logger.debug 'Calling API: CoreApi.core_tokens_update ...'
2920
+ end
2921
+ # verify the required parameter 'identifier' is set
2922
+ if @api_client.config.client_side_validation && identifier.nil?
2923
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling CoreApi.core_tokens_update"
2924
+ end
2925
+ # verify the required parameter 'token_request' is set
2926
+ if @api_client.config.client_side_validation && token_request.nil?
2927
+ fail ArgumentError, "Missing the required parameter 'token_request' when calling CoreApi.core_tokens_update"
2928
+ end
2929
+ # resource path
2930
+ local_var_path = '/core/tokens/{identifier}/'.sub('{' + 'identifier' + '}', CGI.escape(identifier.to_s))
2931
+
2932
+ # query parameters
2933
+ query_params = opts[:query_params] || {}
2934
+
2935
+ # header parameters
2936
+ header_params = opts[:header_params] || {}
2937
+ # HTTP header 'Accept' (if needed)
2938
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2939
+ # HTTP header 'Content-Type'
2940
+ content_type = @api_client.select_header_content_type(['application/json'])
2941
+ if !content_type.nil?
2942
+ header_params['Content-Type'] = content_type
2943
+ end
2944
+
2945
+ # form parameters
2946
+ form_params = opts[:form_params] || {}
2947
+
2948
+ # http body (model)
2949
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(token_request)
2950
+
2951
+ # return_type
2952
+ return_type = opts[:debug_return_type] || 'Token'
2953
+
2954
+ # auth_names
2955
+ auth_names = opts[:debug_auth_names] || ['authentik']
2956
+
2957
+ new_options = opts.merge(
2958
+ :operation => :"CoreApi.core_tokens_update",
2959
+ :header_params => header_params,
2960
+ :query_params => query_params,
2961
+ :form_params => form_params,
2962
+ :body => post_body,
2963
+ :auth_names => auth_names,
2964
+ :return_type => return_type
2965
+ )
2966
+
2967
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
2968
+ if @api_client.config.debugging
2969
+ @api_client.config.logger.debug "API called: CoreApi#core_tokens_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2970
+ end
2971
+ return data, status_code, headers
2972
+ end
2973
+
2974
+ # Get a list of all objects that use this object
2975
+ # @param identifier [String]
2976
+ # @param [Hash] opts the optional parameters
2977
+ # @return [Array<UsedBy>]
2978
+ def core_tokens_used_by_list(identifier, opts = {})
2979
+ data, _status_code, _headers = core_tokens_used_by_list_with_http_info(identifier, opts)
2980
+ data
2981
+ end
2982
+
2983
+ # Get a list of all objects that use this object
2984
+ # @param identifier [String]
2985
+ # @param [Hash] opts the optional parameters
2986
+ # @return [Array<(Array<UsedBy>, Integer, Hash)>] Array<UsedBy> data, response status code and response headers
2987
+ def core_tokens_used_by_list_with_http_info(identifier, opts = {})
2988
+ if @api_client.config.debugging
2989
+ @api_client.config.logger.debug 'Calling API: CoreApi.core_tokens_used_by_list ...'
2990
+ end
2991
+ # verify the required parameter 'identifier' is set
2992
+ if @api_client.config.client_side_validation && identifier.nil?
2993
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling CoreApi.core_tokens_used_by_list"
2994
+ end
2995
+ # resource path
2996
+ local_var_path = '/core/tokens/{identifier}/used_by/'.sub('{' + 'identifier' + '}', CGI.escape(identifier.to_s))
2997
+
2998
+ # query parameters
2999
+ query_params = opts[:query_params] || {}
3000
+
3001
+ # header parameters
3002
+ header_params = opts[:header_params] || {}
3003
+ # HTTP header 'Accept' (if needed)
3004
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
3005
+
3006
+ # form parameters
3007
+ form_params = opts[:form_params] || {}
3008
+
3009
+ # http body (model)
3010
+ post_body = opts[:debug_body]
3011
+
3012
+ # return_type
3013
+ return_type = opts[:debug_return_type] || 'Array<UsedBy>'
3014
+
3015
+ # auth_names
3016
+ auth_names = opts[:debug_auth_names] || ['authentik']
3017
+
3018
+ new_options = opts.merge(
3019
+ :operation => :"CoreApi.core_tokens_used_by_list",
3020
+ :header_params => header_params,
3021
+ :query_params => query_params,
3022
+ :form_params => form_params,
3023
+ :body => post_body,
3024
+ :auth_names => auth_names,
3025
+ :return_type => return_type
3026
+ )
3027
+
3028
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
3029
+ if @api_client.config.debugging
3030
+ @api_client.config.logger.debug "API called: CoreApi#core_tokens_used_by_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3031
+ end
3032
+ return data, status_code, headers
3033
+ end
3034
+
3035
+ # Return token key and log access
3036
+ # @param identifier [String]
3037
+ # @param [Hash] opts the optional parameters
3038
+ # @return [TokenView]
3039
+ def core_tokens_view_key_retrieve(identifier, opts = {})
3040
+ data, _status_code, _headers = core_tokens_view_key_retrieve_with_http_info(identifier, opts)
3041
+ data
3042
+ end
3043
+
3044
+ # Return token key and log access
3045
+ # @param identifier [String]
3046
+ # @param [Hash] opts the optional parameters
3047
+ # @return [Array<(TokenView, Integer, Hash)>] TokenView data, response status code and response headers
3048
+ def core_tokens_view_key_retrieve_with_http_info(identifier, opts = {})
3049
+ if @api_client.config.debugging
3050
+ @api_client.config.logger.debug 'Calling API: CoreApi.core_tokens_view_key_retrieve ...'
3051
+ end
3052
+ # verify the required parameter 'identifier' is set
3053
+ if @api_client.config.client_side_validation && identifier.nil?
3054
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling CoreApi.core_tokens_view_key_retrieve"
3055
+ end
3056
+ # resource path
3057
+ local_var_path = '/core/tokens/{identifier}/view_key/'.sub('{' + 'identifier' + '}', CGI.escape(identifier.to_s))
3058
+
3059
+ # query parameters
3060
+ query_params = opts[:query_params] || {}
3061
+
3062
+ # header parameters
3063
+ header_params = opts[:header_params] || {}
3064
+ # HTTP header 'Accept' (if needed)
3065
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
3066
+
3067
+ # form parameters
3068
+ form_params = opts[:form_params] || {}
3069
+
3070
+ # http body (model)
3071
+ post_body = opts[:debug_body]
3072
+
3073
+ # return_type
3074
+ return_type = opts[:debug_return_type] || 'TokenView'
3075
+
3076
+ # auth_names
3077
+ auth_names = opts[:debug_auth_names] || ['authentik']
3078
+
3079
+ new_options = opts.merge(
3080
+ :operation => :"CoreApi.core_tokens_view_key_retrieve",
3081
+ :header_params => header_params,
3082
+ :query_params => query_params,
3083
+ :form_params => form_params,
3084
+ :body => post_body,
3085
+ :auth_names => auth_names,
3086
+ :return_type => return_type
3087
+ )
3088
+
3089
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
3090
+ if @api_client.config.debugging
3091
+ @api_client.config.logger.debug "API called: CoreApi#core_tokens_view_key_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3092
+ end
3093
+ return data, status_code, headers
3094
+ end
3095
+
3096
+ # Convert data into a blueprint, validate it and apply it
3097
+ # @param transaction_application_request [TransactionApplicationRequest]
3098
+ # @param [Hash] opts the optional parameters
3099
+ # @return [TransactionApplicationResponse]
3100
+ def core_transactional_applications_update(transaction_application_request, opts = {})
3101
+ data, _status_code, _headers = core_transactional_applications_update_with_http_info(transaction_application_request, opts)
3102
+ data
3103
+ end
3104
+
3105
+ # Convert data into a blueprint, validate it and apply it
3106
+ # @param transaction_application_request [TransactionApplicationRequest]
3107
+ # @param [Hash] opts the optional parameters
3108
+ # @return [Array<(TransactionApplicationResponse, Integer, Hash)>] TransactionApplicationResponse data, response status code and response headers
3109
+ def core_transactional_applications_update_with_http_info(transaction_application_request, opts = {})
3110
+ if @api_client.config.debugging
3111
+ @api_client.config.logger.debug 'Calling API: CoreApi.core_transactional_applications_update ...'
3112
+ end
3113
+ # verify the required parameter 'transaction_application_request' is set
3114
+ if @api_client.config.client_side_validation && transaction_application_request.nil?
3115
+ fail ArgumentError, "Missing the required parameter 'transaction_application_request' when calling CoreApi.core_transactional_applications_update"
3116
+ end
3117
+ # resource path
3118
+ local_var_path = '/core/transactional/applications/'
3119
+
3120
+ # query parameters
3121
+ query_params = opts[:query_params] || {}
3122
+
3123
+ # header parameters
3124
+ header_params = opts[:header_params] || {}
3125
+ # HTTP header 'Accept' (if needed)
3126
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
3127
+ # HTTP header 'Content-Type'
3128
+ content_type = @api_client.select_header_content_type(['application/json'])
3129
+ if !content_type.nil?
3130
+ header_params['Content-Type'] = content_type
3131
+ end
3132
+
3133
+ # form parameters
3134
+ form_params = opts[:form_params] || {}
3135
+
3136
+ # http body (model)
3137
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(transaction_application_request)
3138
+
3139
+ # return_type
3140
+ return_type = opts[:debug_return_type] || 'TransactionApplicationResponse'
3141
+
3142
+ # auth_names
3143
+ auth_names = opts[:debug_auth_names] || ['authentik']
3144
+
3145
+ new_options = opts.merge(
3146
+ :operation => :"CoreApi.core_transactional_applications_update",
3147
+ :header_params => header_params,
3148
+ :query_params => query_params,
3149
+ :form_params => form_params,
3150
+ :body => post_body,
3151
+ :auth_names => auth_names,
3152
+ :return_type => return_type
3153
+ )
3154
+
3155
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
3156
+ if @api_client.config.debugging
3157
+ @api_client.config.logger.debug "API called: CoreApi#core_transactional_applications_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3158
+ end
3159
+ return data, status_code, headers
3160
+ end
3161
+
3162
+ # UserConsent Viewset
3163
+ # @param id [Integer] A unique integer value identifying this User Consent.
3164
+ # @param [Hash] opts the optional parameters
3165
+ # @return [nil]
3166
+ def core_user_consent_destroy(id, opts = {})
3167
+ core_user_consent_destroy_with_http_info(id, opts)
3168
+ nil
3169
+ end
3170
+
3171
+ # UserConsent Viewset
3172
+ # @param id [Integer] A unique integer value identifying this User Consent.
3173
+ # @param [Hash] opts the optional parameters
3174
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
3175
+ def core_user_consent_destroy_with_http_info(id, opts = {})
3176
+ if @api_client.config.debugging
3177
+ @api_client.config.logger.debug 'Calling API: CoreApi.core_user_consent_destroy ...'
3178
+ end
3179
+ # verify the required parameter 'id' is set
3180
+ if @api_client.config.client_side_validation && id.nil?
3181
+ fail ArgumentError, "Missing the required parameter 'id' when calling CoreApi.core_user_consent_destroy"
3182
+ end
3183
+ # resource path
3184
+ local_var_path = '/core/user_consent/{id}/'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
3185
+
3186
+ # query parameters
3187
+ query_params = opts[:query_params] || {}
3188
+
3189
+ # header parameters
3190
+ header_params = opts[:header_params] || {}
3191
+ # HTTP header 'Accept' (if needed)
3192
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
3193
+
3194
+ # form parameters
3195
+ form_params = opts[:form_params] || {}
3196
+
3197
+ # http body (model)
3198
+ post_body = opts[:debug_body]
3199
+
3200
+ # return_type
3201
+ return_type = opts[:debug_return_type]
3202
+
3203
+ # auth_names
3204
+ auth_names = opts[:debug_auth_names] || ['authentik']
3205
+
3206
+ new_options = opts.merge(
3207
+ :operation => :"CoreApi.core_user_consent_destroy",
3208
+ :header_params => header_params,
3209
+ :query_params => query_params,
3210
+ :form_params => form_params,
3211
+ :body => post_body,
3212
+ :auth_names => auth_names,
3213
+ :return_type => return_type
3214
+ )
3215
+
3216
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
3217
+ if @api_client.config.debugging
3218
+ @api_client.config.logger.debug "API called: CoreApi#core_user_consent_destroy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3219
+ end
3220
+ return data, status_code, headers
3221
+ end
3222
+
3223
+ # UserConsent Viewset
3224
+ # @param [Hash] opts the optional parameters
3225
+ # @option opts [String] :application
3226
+ # @option opts [String] :ordering Which field to use when ordering the results.
3227
+ # @option opts [Integer] :page A page number within the paginated result set.
3228
+ # @option opts [Integer] :page_size Number of results to return per page.
3229
+ # @option opts [String] :search A search term.
3230
+ # @option opts [Integer] :user
3231
+ # @return [PaginatedUserConsentList]
3232
+ def core_user_consent_list(opts = {})
3233
+ data, _status_code, _headers = core_user_consent_list_with_http_info(opts)
3234
+ data
3235
+ end
3236
+
3237
+ # UserConsent Viewset
3238
+ # @param [Hash] opts the optional parameters
3239
+ # @option opts [String] :application
3240
+ # @option opts [String] :ordering Which field to use when ordering the results.
3241
+ # @option opts [Integer] :page A page number within the paginated result set.
3242
+ # @option opts [Integer] :page_size Number of results to return per page.
3243
+ # @option opts [String] :search A search term.
3244
+ # @option opts [Integer] :user
3245
+ # @return [Array<(PaginatedUserConsentList, Integer, Hash)>] PaginatedUserConsentList data, response status code and response headers
3246
+ def core_user_consent_list_with_http_info(opts = {})
3247
+ if @api_client.config.debugging
3248
+ @api_client.config.logger.debug 'Calling API: CoreApi.core_user_consent_list ...'
3249
+ end
3250
+ # resource path
3251
+ local_var_path = '/core/user_consent/'
3252
+
3253
+ # query parameters
3254
+ query_params = opts[:query_params] || {}
3255
+ query_params[:'application'] = opts[:'application'] if !opts[:'application'].nil?
3256
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
3257
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
3258
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
3259
+ query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
3260
+ query_params[:'user'] = opts[:'user'] if !opts[:'user'].nil?
3261
+
3262
+ # header parameters
3263
+ header_params = opts[:header_params] || {}
3264
+ # HTTP header 'Accept' (if needed)
3265
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
3266
+
3267
+ # form parameters
3268
+ form_params = opts[:form_params] || {}
3269
+
3270
+ # http body (model)
3271
+ post_body = opts[:debug_body]
3272
+
3273
+ # return_type
3274
+ return_type = opts[:debug_return_type] || 'PaginatedUserConsentList'
3275
+
3276
+ # auth_names
3277
+ auth_names = opts[:debug_auth_names] || ['authentik']
3278
+
3279
+ new_options = opts.merge(
3280
+ :operation => :"CoreApi.core_user_consent_list",
3281
+ :header_params => header_params,
3282
+ :query_params => query_params,
3283
+ :form_params => form_params,
3284
+ :body => post_body,
3285
+ :auth_names => auth_names,
3286
+ :return_type => return_type
3287
+ )
3288
+
3289
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
3290
+ if @api_client.config.debugging
3291
+ @api_client.config.logger.debug "API called: CoreApi#core_user_consent_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3292
+ end
3293
+ return data, status_code, headers
3294
+ end
3295
+
3296
+ # UserConsent Viewset
3297
+ # @param id [Integer] A unique integer value identifying this User Consent.
3298
+ # @param [Hash] opts the optional parameters
3299
+ # @return [UserConsent]
3300
+ def core_user_consent_retrieve(id, opts = {})
3301
+ data, _status_code, _headers = core_user_consent_retrieve_with_http_info(id, opts)
3302
+ data
3303
+ end
3304
+
3305
+ # UserConsent Viewset
3306
+ # @param id [Integer] A unique integer value identifying this User Consent.
3307
+ # @param [Hash] opts the optional parameters
3308
+ # @return [Array<(UserConsent, Integer, Hash)>] UserConsent data, response status code and response headers
3309
+ def core_user_consent_retrieve_with_http_info(id, opts = {})
3310
+ if @api_client.config.debugging
3311
+ @api_client.config.logger.debug 'Calling API: CoreApi.core_user_consent_retrieve ...'
3312
+ end
3313
+ # verify the required parameter 'id' is set
3314
+ if @api_client.config.client_side_validation && id.nil?
3315
+ fail ArgumentError, "Missing the required parameter 'id' when calling CoreApi.core_user_consent_retrieve"
3316
+ end
3317
+ # resource path
3318
+ local_var_path = '/core/user_consent/{id}/'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
3319
+
3320
+ # query parameters
3321
+ query_params = opts[:query_params] || {}
3322
+
3323
+ # header parameters
3324
+ header_params = opts[:header_params] || {}
3325
+ # HTTP header 'Accept' (if needed)
3326
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
3327
+
3328
+ # form parameters
3329
+ form_params = opts[:form_params] || {}
3330
+
3331
+ # http body (model)
3332
+ post_body = opts[:debug_body]
3333
+
3334
+ # return_type
3335
+ return_type = opts[:debug_return_type] || 'UserConsent'
3336
+
3337
+ # auth_names
3338
+ auth_names = opts[:debug_auth_names] || ['authentik']
3339
+
3340
+ new_options = opts.merge(
3341
+ :operation => :"CoreApi.core_user_consent_retrieve",
3342
+ :header_params => header_params,
3343
+ :query_params => query_params,
3344
+ :form_params => form_params,
3345
+ :body => post_body,
3346
+ :auth_names => auth_names,
3347
+ :return_type => return_type
3348
+ )
3349
+
3350
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
3351
+ if @api_client.config.debugging
3352
+ @api_client.config.logger.debug "API called: CoreApi#core_user_consent_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3353
+ end
3354
+ return data, status_code, headers
3355
+ end
3356
+
3357
+ # Get a list of all objects that use this object
3358
+ # @param id [Integer] A unique integer value identifying this User Consent.
3359
+ # @param [Hash] opts the optional parameters
3360
+ # @return [Array<UsedBy>]
3361
+ def core_user_consent_used_by_list(id, opts = {})
3362
+ data, _status_code, _headers = core_user_consent_used_by_list_with_http_info(id, opts)
3363
+ data
3364
+ end
3365
+
3366
+ # Get a list of all objects that use this object
3367
+ # @param id [Integer] A unique integer value identifying this User Consent.
3368
+ # @param [Hash] opts the optional parameters
3369
+ # @return [Array<(Array<UsedBy>, Integer, Hash)>] Array<UsedBy> data, response status code and response headers
3370
+ def core_user_consent_used_by_list_with_http_info(id, opts = {})
3371
+ if @api_client.config.debugging
3372
+ @api_client.config.logger.debug 'Calling API: CoreApi.core_user_consent_used_by_list ...'
3373
+ end
3374
+ # verify the required parameter 'id' is set
3375
+ if @api_client.config.client_side_validation && id.nil?
3376
+ fail ArgumentError, "Missing the required parameter 'id' when calling CoreApi.core_user_consent_used_by_list"
3377
+ end
3378
+ # resource path
3379
+ local_var_path = '/core/user_consent/{id}/used_by/'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
3380
+
3381
+ # query parameters
3382
+ query_params = opts[:query_params] || {}
3383
+
3384
+ # header parameters
3385
+ header_params = opts[:header_params] || {}
3386
+ # HTTP header 'Accept' (if needed)
3387
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
3388
+
3389
+ # form parameters
3390
+ form_params = opts[:form_params] || {}
3391
+
3392
+ # http body (model)
3393
+ post_body = opts[:debug_body]
3394
+
3395
+ # return_type
3396
+ return_type = opts[:debug_return_type] || 'Array<UsedBy>'
3397
+
3398
+ # auth_names
3399
+ auth_names = opts[:debug_auth_names] || ['authentik']
3400
+
3401
+ new_options = opts.merge(
3402
+ :operation => :"CoreApi.core_user_consent_used_by_list",
3403
+ :header_params => header_params,
3404
+ :query_params => query_params,
3405
+ :form_params => form_params,
3406
+ :body => post_body,
3407
+ :auth_names => auth_names,
3408
+ :return_type => return_type
3409
+ )
3410
+
3411
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
3412
+ if @api_client.config.debugging
3413
+ @api_client.config.logger.debug "API called: CoreApi#core_user_consent_used_by_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3414
+ end
3415
+ return data, status_code, headers
3416
+ end
3417
+
3418
+ # User Viewset
3419
+ # @param user_request [UserRequest]
3420
+ # @param [Hash] opts the optional parameters
3421
+ # @return [User]
3422
+ def core_users_create(user_request, opts = {})
3423
+ data, _status_code, _headers = core_users_create_with_http_info(user_request, opts)
3424
+ data
3425
+ end
3426
+
3427
+ # User Viewset
3428
+ # @param user_request [UserRequest]
3429
+ # @param [Hash] opts the optional parameters
3430
+ # @return [Array<(User, Integer, Hash)>] User data, response status code and response headers
3431
+ def core_users_create_with_http_info(user_request, opts = {})
3432
+ if @api_client.config.debugging
3433
+ @api_client.config.logger.debug 'Calling API: CoreApi.core_users_create ...'
3434
+ end
3435
+ # verify the required parameter 'user_request' is set
3436
+ if @api_client.config.client_side_validation && user_request.nil?
3437
+ fail ArgumentError, "Missing the required parameter 'user_request' when calling CoreApi.core_users_create"
3438
+ end
3439
+ # resource path
3440
+ local_var_path = '/core/users/'
3441
+
3442
+ # query parameters
3443
+ query_params = opts[:query_params] || {}
3444
+
3445
+ # header parameters
3446
+ header_params = opts[:header_params] || {}
3447
+ # HTTP header 'Accept' (if needed)
3448
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
3449
+ # HTTP header 'Content-Type'
3450
+ content_type = @api_client.select_header_content_type(['application/json'])
3451
+ if !content_type.nil?
3452
+ header_params['Content-Type'] = content_type
3453
+ end
3454
+
3455
+ # form parameters
3456
+ form_params = opts[:form_params] || {}
3457
+
3458
+ # http body (model)
3459
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(user_request)
3460
+
3461
+ # return_type
3462
+ return_type = opts[:debug_return_type] || 'User'
3463
+
3464
+ # auth_names
3465
+ auth_names = opts[:debug_auth_names] || ['authentik']
3466
+
3467
+ new_options = opts.merge(
3468
+ :operation => :"CoreApi.core_users_create",
3469
+ :header_params => header_params,
3470
+ :query_params => query_params,
3471
+ :form_params => form_params,
3472
+ :body => post_body,
3473
+ :auth_names => auth_names,
3474
+ :return_type => return_type
3475
+ )
3476
+
3477
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
3478
+ if @api_client.config.debugging
3479
+ @api_client.config.logger.debug "API called: CoreApi#core_users_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3480
+ end
3481
+ return data, status_code, headers
3482
+ end
3483
+
3484
+ # User Viewset
3485
+ # @param id [Integer] A unique integer value identifying this User.
3486
+ # @param [Hash] opts the optional parameters
3487
+ # @return [nil]
3488
+ def core_users_destroy(id, opts = {})
3489
+ core_users_destroy_with_http_info(id, opts)
3490
+ nil
3491
+ end
3492
+
3493
+ # User Viewset
3494
+ # @param id [Integer] A unique integer value identifying this User.
3495
+ # @param [Hash] opts the optional parameters
3496
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
3497
+ def core_users_destroy_with_http_info(id, opts = {})
3498
+ if @api_client.config.debugging
3499
+ @api_client.config.logger.debug 'Calling API: CoreApi.core_users_destroy ...'
3500
+ end
3501
+ # verify the required parameter 'id' is set
3502
+ if @api_client.config.client_side_validation && id.nil?
3503
+ fail ArgumentError, "Missing the required parameter 'id' when calling CoreApi.core_users_destroy"
3504
+ end
3505
+ # resource path
3506
+ local_var_path = '/core/users/{id}/'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
3507
+
3508
+ # query parameters
3509
+ query_params = opts[:query_params] || {}
3510
+
3511
+ # header parameters
3512
+ header_params = opts[:header_params] || {}
3513
+ # HTTP header 'Accept' (if needed)
3514
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
3515
+
3516
+ # form parameters
3517
+ form_params = opts[:form_params] || {}
3518
+
3519
+ # http body (model)
3520
+ post_body = opts[:debug_body]
3521
+
3522
+ # return_type
3523
+ return_type = opts[:debug_return_type]
3524
+
3525
+ # auth_names
3526
+ auth_names = opts[:debug_auth_names] || ['authentik']
3527
+
3528
+ new_options = opts.merge(
3529
+ :operation => :"CoreApi.core_users_destroy",
3530
+ :header_params => header_params,
3531
+ :query_params => query_params,
3532
+ :form_params => form_params,
3533
+ :body => post_body,
3534
+ :auth_names => auth_names,
3535
+ :return_type => return_type
3536
+ )
3537
+
3538
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
3539
+ if @api_client.config.debugging
3540
+ @api_client.config.logger.debug "API called: CoreApi#core_users_destroy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3541
+ end
3542
+ return data, status_code, headers
3543
+ end
3544
+
3545
+ # Create a data export for this data type. Note that the export is generated asynchronously: this method returns a `DataExport` object that will initially have `completed=false` as well as the permanent URL to that object in the `Location` header. You can poll that URL until `completed=true`, at which point the `file_url` property will contain a URL to download
3546
+ # @param [Hash] opts the optional parameters
3547
+ # @option opts [String] :attributes Attributes
3548
+ # @option opts [Time] :date_joined
3549
+ # @option opts [Time] :date_joined__gt
3550
+ # @option opts [Time] :date_joined__lt
3551
+ # @option opts [String] :email
3552
+ # @option opts [Array<String>] :groups_by_name
3553
+ # @option opts [Array<String>] :groups_by_pk
3554
+ # @option opts [Boolean] :is_active
3555
+ # @option opts [Boolean] :is_superuser
3556
+ # @option opts [Time] :last_updated
3557
+ # @option opts [Time] :last_updated__gt
3558
+ # @option opts [Time] :last_updated__lt
3559
+ # @option opts [String] :name
3560
+ # @option opts [String] :ordering Which field to use when ordering the results.
3561
+ # @option opts [String] :path
3562
+ # @option opts [String] :path_startswith
3563
+ # @option opts [Array<String>] :roles_by_name
3564
+ # @option opts [Array<String>] :roles_by_pk
3565
+ # @option opts [String] :search A search term.
3566
+ # @option opts [Array<String>] :type
3567
+ # @option opts [String] :username
3568
+ # @option opts [String] :uuid
3569
+ # @return [DataExport]
3570
+ def core_users_export_create(opts = {})
3571
+ data, _status_code, _headers = core_users_export_create_with_http_info(opts)
3572
+ data
3573
+ end
3574
+
3575
+ # Create a data export for this data type. Note that the export is generated asynchronously: this method returns a &#x60;DataExport&#x60; object that will initially have &#x60;completed&#x3D;false&#x60; as well as the permanent URL to that object in the &#x60;Location&#x60; header. You can poll that URL until &#x60;completed&#x3D;true&#x60;, at which point the &#x60;file_url&#x60; property will contain a URL to download
3576
+ # @param [Hash] opts the optional parameters
3577
+ # @option opts [String] :attributes Attributes
3578
+ # @option opts [Time] :date_joined
3579
+ # @option opts [Time] :date_joined__gt
3580
+ # @option opts [Time] :date_joined__lt
3581
+ # @option opts [String] :email
3582
+ # @option opts [Array<String>] :groups_by_name
3583
+ # @option opts [Array<String>] :groups_by_pk
3584
+ # @option opts [Boolean] :is_active
3585
+ # @option opts [Boolean] :is_superuser
3586
+ # @option opts [Time] :last_updated
3587
+ # @option opts [Time] :last_updated__gt
3588
+ # @option opts [Time] :last_updated__lt
3589
+ # @option opts [String] :name
3590
+ # @option opts [String] :ordering Which field to use when ordering the results.
3591
+ # @option opts [String] :path
3592
+ # @option opts [String] :path_startswith
3593
+ # @option opts [Array<String>] :roles_by_name
3594
+ # @option opts [Array<String>] :roles_by_pk
3595
+ # @option opts [String] :search A search term.
3596
+ # @option opts [Array<String>] :type
3597
+ # @option opts [String] :username
3598
+ # @option opts [String] :uuid
3599
+ # @return [Array<(DataExport, Integer, Hash)>] DataExport data, response status code and response headers
3600
+ def core_users_export_create_with_http_info(opts = {})
3601
+ if @api_client.config.debugging
3602
+ @api_client.config.logger.debug 'Calling API: CoreApi.core_users_export_create ...'
3603
+ end
3604
+ allowable_values = ["external", "internal", "internal_service_account", "service_account"]
3605
+ if @api_client.config.client_side_validation && opts[:'type'] && !opts[:'type'].all? { |item| allowable_values.include?(item) }
3606
+ fail ArgumentError, "invalid value for \"type\", must include one of #{allowable_values}"
3607
+ end
3608
+ # resource path
3609
+ local_var_path = '/core/users/export/'
3610
+
3611
+ # query parameters
3612
+ query_params = opts[:query_params] || {}
3613
+ query_params[:'attributes'] = opts[:'attributes'] if !opts[:'attributes'].nil?
3614
+ query_params[:'date_joined'] = opts[:'date_joined'] if !opts[:'date_joined'].nil?
3615
+ query_params[:'date_joined__gt'] = opts[:'date_joined__gt'] if !opts[:'date_joined__gt'].nil?
3616
+ query_params[:'date_joined__lt'] = opts[:'date_joined__lt'] if !opts[:'date_joined__lt'].nil?
3617
+ query_params[:'email'] = opts[:'email'] if !opts[:'email'].nil?
3618
+ query_params[:'groups_by_name'] = @api_client.build_collection_param(opts[:'groups_by_name'], :multi) if !opts[:'groups_by_name'].nil?
3619
+ query_params[:'groups_by_pk'] = @api_client.build_collection_param(opts[:'groups_by_pk'], :multi) if !opts[:'groups_by_pk'].nil?
3620
+ query_params[:'is_active'] = opts[:'is_active'] if !opts[:'is_active'].nil?
3621
+ query_params[:'is_superuser'] = opts[:'is_superuser'] if !opts[:'is_superuser'].nil?
3622
+ query_params[:'last_updated'] = opts[:'last_updated'] if !opts[:'last_updated'].nil?
3623
+ query_params[:'last_updated__gt'] = opts[:'last_updated__gt'] if !opts[:'last_updated__gt'].nil?
3624
+ query_params[:'last_updated__lt'] = opts[:'last_updated__lt'] if !opts[:'last_updated__lt'].nil?
3625
+ query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
3626
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
3627
+ query_params[:'path'] = opts[:'path'] if !opts[:'path'].nil?
3628
+ query_params[:'path_startswith'] = opts[:'path_startswith'] if !opts[:'path_startswith'].nil?
3629
+ query_params[:'roles_by_name'] = @api_client.build_collection_param(opts[:'roles_by_name'], :multi) if !opts[:'roles_by_name'].nil?
3630
+ query_params[:'roles_by_pk'] = @api_client.build_collection_param(opts[:'roles_by_pk'], :multi) if !opts[:'roles_by_pk'].nil?
3631
+ query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
3632
+ query_params[:'type'] = @api_client.build_collection_param(opts[:'type'], :multi) if !opts[:'type'].nil?
3633
+ query_params[:'username'] = opts[:'username'] if !opts[:'username'].nil?
3634
+ query_params[:'uuid'] = opts[:'uuid'] if !opts[:'uuid'].nil?
3635
+
3636
+ # header parameters
3637
+ header_params = opts[:header_params] || {}
3638
+ # HTTP header 'Accept' (if needed)
3639
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
3640
+
3641
+ # form parameters
3642
+ form_params = opts[:form_params] || {}
3643
+
3644
+ # http body (model)
3645
+ post_body = opts[:debug_body]
3646
+
3647
+ # return_type
3648
+ return_type = opts[:debug_return_type] || 'DataExport'
3649
+
3650
+ # auth_names
3651
+ auth_names = opts[:debug_auth_names] || ['authentik']
3652
+
3653
+ new_options = opts.merge(
3654
+ :operation => :"CoreApi.core_users_export_create",
3655
+ :header_params => header_params,
3656
+ :query_params => query_params,
3657
+ :form_params => form_params,
3658
+ :body => post_body,
3659
+ :auth_names => auth_names,
3660
+ :return_type => return_type
3661
+ )
3662
+
3663
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
3664
+ if @api_client.config.debugging
3665
+ @api_client.config.logger.debug "API called: CoreApi#core_users_export_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3666
+ end
3667
+ return data, status_code, headers
3668
+ end
3669
+
3670
+ # Impersonate a user
3671
+ # @param id [Integer] A unique integer value identifying this User.
3672
+ # @param impersonation_request [ImpersonationRequest]
3673
+ # @param [Hash] opts the optional parameters
3674
+ # @return [nil]
3675
+ def core_users_impersonate_create(id, impersonation_request, opts = {})
3676
+ core_users_impersonate_create_with_http_info(id, impersonation_request, opts)
3677
+ nil
3678
+ end
3679
+
3680
+ # Impersonate a user
3681
+ # @param id [Integer] A unique integer value identifying this User.
3682
+ # @param impersonation_request [ImpersonationRequest]
3683
+ # @param [Hash] opts the optional parameters
3684
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
3685
+ def core_users_impersonate_create_with_http_info(id, impersonation_request, opts = {})
3686
+ if @api_client.config.debugging
3687
+ @api_client.config.logger.debug 'Calling API: CoreApi.core_users_impersonate_create ...'
3688
+ end
3689
+ # verify the required parameter 'id' is set
3690
+ if @api_client.config.client_side_validation && id.nil?
3691
+ fail ArgumentError, "Missing the required parameter 'id' when calling CoreApi.core_users_impersonate_create"
3692
+ end
3693
+ # verify the required parameter 'impersonation_request' is set
3694
+ if @api_client.config.client_side_validation && impersonation_request.nil?
3695
+ fail ArgumentError, "Missing the required parameter 'impersonation_request' when calling CoreApi.core_users_impersonate_create"
3696
+ end
3697
+ # resource path
3698
+ local_var_path = '/core/users/{id}/impersonate/'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
3699
+
3700
+ # query parameters
3701
+ query_params = opts[:query_params] || {}
3702
+
3703
+ # header parameters
3704
+ header_params = opts[:header_params] || {}
3705
+ # HTTP header 'Accept' (if needed)
3706
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
3707
+ # HTTP header 'Content-Type'
3708
+ content_type = @api_client.select_header_content_type(['application/json'])
3709
+ if !content_type.nil?
3710
+ header_params['Content-Type'] = content_type
3711
+ end
3712
+
3713
+ # form parameters
3714
+ form_params = opts[:form_params] || {}
3715
+
3716
+ # http body (model)
3717
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(impersonation_request)
3718
+
3719
+ # return_type
3720
+ return_type = opts[:debug_return_type]
3721
+
3722
+ # auth_names
3723
+ auth_names = opts[:debug_auth_names] || ['authentik']
3724
+
3725
+ new_options = opts.merge(
3726
+ :operation => :"CoreApi.core_users_impersonate_create",
3727
+ :header_params => header_params,
3728
+ :query_params => query_params,
3729
+ :form_params => form_params,
3730
+ :body => post_body,
3731
+ :auth_names => auth_names,
3732
+ :return_type => return_type
3733
+ )
3734
+
3735
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
3736
+ if @api_client.config.debugging
3737
+ @api_client.config.logger.debug "API called: CoreApi#core_users_impersonate_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3738
+ end
3739
+ return data, status_code, headers
3740
+ end
3741
+
3742
+ # End Impersonation a user
3743
+ # @param [Hash] opts the optional parameters
3744
+ # @return [nil]
3745
+ def core_users_impersonate_end_retrieve(opts = {})
3746
+ core_users_impersonate_end_retrieve_with_http_info(opts)
3747
+ nil
3748
+ end
3749
+
3750
+ # End Impersonation a user
3751
+ # @param [Hash] opts the optional parameters
3752
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
3753
+ def core_users_impersonate_end_retrieve_with_http_info(opts = {})
3754
+ if @api_client.config.debugging
3755
+ @api_client.config.logger.debug 'Calling API: CoreApi.core_users_impersonate_end_retrieve ...'
3756
+ end
3757
+ # resource path
3758
+ local_var_path = '/core/users/impersonate_end/'
3759
+
3760
+ # query parameters
3761
+ query_params = opts[:query_params] || {}
3762
+
3763
+ # header parameters
3764
+ header_params = opts[:header_params] || {}
3765
+ # HTTP header 'Accept' (if needed)
3766
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
3767
+
3768
+ # form parameters
3769
+ form_params = opts[:form_params] || {}
3770
+
3771
+ # http body (model)
3772
+ post_body = opts[:debug_body]
3773
+
3774
+ # return_type
3775
+ return_type = opts[:debug_return_type]
3776
+
3777
+ # auth_names
3778
+ auth_names = opts[:debug_auth_names] || ['authentik']
3779
+
3780
+ new_options = opts.merge(
3781
+ :operation => :"CoreApi.core_users_impersonate_end_retrieve",
3782
+ :header_params => header_params,
3783
+ :query_params => query_params,
3784
+ :form_params => form_params,
3785
+ :body => post_body,
3786
+ :auth_names => auth_names,
3787
+ :return_type => return_type
3788
+ )
3789
+
3790
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
3791
+ if @api_client.config.debugging
3792
+ @api_client.config.logger.debug "API called: CoreApi#core_users_impersonate_end_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3793
+ end
3794
+ return data, status_code, headers
3795
+ end
3796
+
3797
+ # User Viewset
3798
+ # @param [Hash] opts the optional parameters
3799
+ # @option opts [String] :attributes Attributes
3800
+ # @option opts [Time] :date_joined
3801
+ # @option opts [Time] :date_joined__gt
3802
+ # @option opts [Time] :date_joined__lt
3803
+ # @option opts [String] :email
3804
+ # @option opts [Array<String>] :groups_by_name
3805
+ # @option opts [Array<String>] :groups_by_pk
3806
+ # @option opts [Boolean] :include_groups (default to true)
3807
+ # @option opts [Boolean] :include_roles (default to true)
3808
+ # @option opts [Boolean] :is_active
3809
+ # @option opts [Boolean] :is_superuser
3810
+ # @option opts [Time] :last_updated
3811
+ # @option opts [Time] :last_updated__gt
3812
+ # @option opts [Time] :last_updated__lt
3813
+ # @option opts [String] :name
3814
+ # @option opts [String] :ordering Which field to use when ordering the results.
3815
+ # @option opts [Integer] :page A page number within the paginated result set.
3816
+ # @option opts [Integer] :page_size Number of results to return per page.
3817
+ # @option opts [String] :path
3818
+ # @option opts [String] :path_startswith
3819
+ # @option opts [Array<String>] :roles_by_name
3820
+ # @option opts [Array<String>] :roles_by_pk
3821
+ # @option opts [String] :search A search term.
3822
+ # @option opts [Array<String>] :type
3823
+ # @option opts [String] :username
3824
+ # @option opts [String] :uuid
3825
+ # @return [PaginatedUserList]
3826
+ def core_users_list(opts = {})
3827
+ data, _status_code, _headers = core_users_list_with_http_info(opts)
3828
+ data
3829
+ end
3830
+
3831
+ # User Viewset
3832
+ # @param [Hash] opts the optional parameters
3833
+ # @option opts [String] :attributes Attributes
3834
+ # @option opts [Time] :date_joined
3835
+ # @option opts [Time] :date_joined__gt
3836
+ # @option opts [Time] :date_joined__lt
3837
+ # @option opts [String] :email
3838
+ # @option opts [Array<String>] :groups_by_name
3839
+ # @option opts [Array<String>] :groups_by_pk
3840
+ # @option opts [Boolean] :include_groups (default to true)
3841
+ # @option opts [Boolean] :include_roles (default to true)
3842
+ # @option opts [Boolean] :is_active
3843
+ # @option opts [Boolean] :is_superuser
3844
+ # @option opts [Time] :last_updated
3845
+ # @option opts [Time] :last_updated__gt
3846
+ # @option opts [Time] :last_updated__lt
3847
+ # @option opts [String] :name
3848
+ # @option opts [String] :ordering Which field to use when ordering the results.
3849
+ # @option opts [Integer] :page A page number within the paginated result set.
3850
+ # @option opts [Integer] :page_size Number of results to return per page.
3851
+ # @option opts [String] :path
3852
+ # @option opts [String] :path_startswith
3853
+ # @option opts [Array<String>] :roles_by_name
3854
+ # @option opts [Array<String>] :roles_by_pk
3855
+ # @option opts [String] :search A search term.
3856
+ # @option opts [Array<String>] :type
3857
+ # @option opts [String] :username
3858
+ # @option opts [String] :uuid
3859
+ # @return [Array<(PaginatedUserList, Integer, Hash)>] PaginatedUserList data, response status code and response headers
3860
+ def core_users_list_with_http_info(opts = {})
3861
+ if @api_client.config.debugging
3862
+ @api_client.config.logger.debug 'Calling API: CoreApi.core_users_list ...'
3863
+ end
3864
+ allowable_values = ["external", "internal", "internal_service_account", "service_account"]
3865
+ if @api_client.config.client_side_validation && opts[:'type'] && !opts[:'type'].all? { |item| allowable_values.include?(item) }
3866
+ fail ArgumentError, "invalid value for \"type\", must include one of #{allowable_values}"
3867
+ end
3868
+ # resource path
3869
+ local_var_path = '/core/users/'
3870
+
3871
+ # query parameters
3872
+ query_params = opts[:query_params] || {}
3873
+ query_params[:'attributes'] = opts[:'attributes'] if !opts[:'attributes'].nil?
3874
+ query_params[:'date_joined'] = opts[:'date_joined'] if !opts[:'date_joined'].nil?
3875
+ query_params[:'date_joined__gt'] = opts[:'date_joined__gt'] if !opts[:'date_joined__gt'].nil?
3876
+ query_params[:'date_joined__lt'] = opts[:'date_joined__lt'] if !opts[:'date_joined__lt'].nil?
3877
+ query_params[:'email'] = opts[:'email'] if !opts[:'email'].nil?
3878
+ query_params[:'groups_by_name'] = @api_client.build_collection_param(opts[:'groups_by_name'], :multi) if !opts[:'groups_by_name'].nil?
3879
+ query_params[:'groups_by_pk'] = @api_client.build_collection_param(opts[:'groups_by_pk'], :multi) if !opts[:'groups_by_pk'].nil?
3880
+ query_params[:'include_groups'] = opts[:'include_groups'] if !opts[:'include_groups'].nil?
3881
+ query_params[:'include_roles'] = opts[:'include_roles'] if !opts[:'include_roles'].nil?
3882
+ query_params[:'is_active'] = opts[:'is_active'] if !opts[:'is_active'].nil?
3883
+ query_params[:'is_superuser'] = opts[:'is_superuser'] if !opts[:'is_superuser'].nil?
3884
+ query_params[:'last_updated'] = opts[:'last_updated'] if !opts[:'last_updated'].nil?
3885
+ query_params[:'last_updated__gt'] = opts[:'last_updated__gt'] if !opts[:'last_updated__gt'].nil?
3886
+ query_params[:'last_updated__lt'] = opts[:'last_updated__lt'] if !opts[:'last_updated__lt'].nil?
3887
+ query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
3888
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
3889
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
3890
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
3891
+ query_params[:'path'] = opts[:'path'] if !opts[:'path'].nil?
3892
+ query_params[:'path_startswith'] = opts[:'path_startswith'] if !opts[:'path_startswith'].nil?
3893
+ query_params[:'roles_by_name'] = @api_client.build_collection_param(opts[:'roles_by_name'], :multi) if !opts[:'roles_by_name'].nil?
3894
+ query_params[:'roles_by_pk'] = @api_client.build_collection_param(opts[:'roles_by_pk'], :multi) if !opts[:'roles_by_pk'].nil?
3895
+ query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
3896
+ query_params[:'type'] = @api_client.build_collection_param(opts[:'type'], :multi) if !opts[:'type'].nil?
3897
+ query_params[:'username'] = opts[:'username'] if !opts[:'username'].nil?
3898
+ query_params[:'uuid'] = opts[:'uuid'] if !opts[:'uuid'].nil?
3899
+
3900
+ # header parameters
3901
+ header_params = opts[:header_params] || {}
3902
+ # HTTP header 'Accept' (if needed)
3903
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
3904
+
3905
+ # form parameters
3906
+ form_params = opts[:form_params] || {}
3907
+
3908
+ # http body (model)
3909
+ post_body = opts[:debug_body]
3910
+
3911
+ # return_type
3912
+ return_type = opts[:debug_return_type] || 'PaginatedUserList'
3913
+
3914
+ # auth_names
3915
+ auth_names = opts[:debug_auth_names] || ['authentik']
3916
+
3917
+ new_options = opts.merge(
3918
+ :operation => :"CoreApi.core_users_list",
3919
+ :header_params => header_params,
3920
+ :query_params => query_params,
3921
+ :form_params => form_params,
3922
+ :body => post_body,
3923
+ :auth_names => auth_names,
3924
+ :return_type => return_type
3925
+ )
3926
+
3927
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
3928
+ if @api_client.config.debugging
3929
+ @api_client.config.logger.debug "API called: CoreApi#core_users_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3930
+ end
3931
+ return data, status_code, headers
3932
+ end
3933
+
3934
+ # Get information about current user
3935
+ # @param [Hash] opts the optional parameters
3936
+ # @return [SessionUser]
3937
+ def core_users_me_retrieve(opts = {})
3938
+ data, _status_code, _headers = core_users_me_retrieve_with_http_info(opts)
3939
+ data
3940
+ end
3941
+
3942
+ # Get information about current user
3943
+ # @param [Hash] opts the optional parameters
3944
+ # @return [Array<(SessionUser, Integer, Hash)>] SessionUser data, response status code and response headers
3945
+ def core_users_me_retrieve_with_http_info(opts = {})
3946
+ if @api_client.config.debugging
3947
+ @api_client.config.logger.debug 'Calling API: CoreApi.core_users_me_retrieve ...'
3948
+ end
3949
+ # resource path
3950
+ local_var_path = '/core/users/me/'
3951
+
3952
+ # query parameters
3953
+ query_params = opts[:query_params] || {}
3954
+
3955
+ # header parameters
3956
+ header_params = opts[:header_params] || {}
3957
+ # HTTP header 'Accept' (if needed)
3958
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
3959
+
3960
+ # form parameters
3961
+ form_params = opts[:form_params] || {}
3962
+
3963
+ # http body (model)
3964
+ post_body = opts[:debug_body]
3965
+
3966
+ # return_type
3967
+ return_type = opts[:debug_return_type] || 'SessionUser'
3968
+
3969
+ # auth_names
3970
+ auth_names = opts[:debug_auth_names] || ['authentik']
3971
+
3972
+ new_options = opts.merge(
3973
+ :operation => :"CoreApi.core_users_me_retrieve",
3974
+ :header_params => header_params,
3975
+ :query_params => query_params,
3976
+ :form_params => form_params,
3977
+ :body => post_body,
3978
+ :auth_names => auth_names,
3979
+ :return_type => return_type
3980
+ )
3981
+
3982
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
3983
+ if @api_client.config.debugging
3984
+ @api_client.config.logger.debug "API called: CoreApi#core_users_me_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3985
+ end
3986
+ return data, status_code, headers
3987
+ end
3988
+
3989
+ # User Viewset
3990
+ # @param id [Integer] A unique integer value identifying this User.
3991
+ # @param [Hash] opts the optional parameters
3992
+ # @option opts [PatchedUserRequest] :patched_user_request
3993
+ # @return [User]
3994
+ def core_users_partial_update(id, opts = {})
3995
+ data, _status_code, _headers = core_users_partial_update_with_http_info(id, opts)
3996
+ data
3997
+ end
3998
+
3999
+ # User Viewset
4000
+ # @param id [Integer] A unique integer value identifying this User.
4001
+ # @param [Hash] opts the optional parameters
4002
+ # @option opts [PatchedUserRequest] :patched_user_request
4003
+ # @return [Array<(User, Integer, Hash)>] User data, response status code and response headers
4004
+ def core_users_partial_update_with_http_info(id, opts = {})
4005
+ if @api_client.config.debugging
4006
+ @api_client.config.logger.debug 'Calling API: CoreApi.core_users_partial_update ...'
4007
+ end
4008
+ # verify the required parameter 'id' is set
4009
+ if @api_client.config.client_side_validation && id.nil?
4010
+ fail ArgumentError, "Missing the required parameter 'id' when calling CoreApi.core_users_partial_update"
4011
+ end
4012
+ # resource path
4013
+ local_var_path = '/core/users/{id}/'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
4014
+
4015
+ # query parameters
4016
+ query_params = opts[:query_params] || {}
4017
+
4018
+ # header parameters
4019
+ header_params = opts[:header_params] || {}
4020
+ # HTTP header 'Accept' (if needed)
4021
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
4022
+ # HTTP header 'Content-Type'
4023
+ content_type = @api_client.select_header_content_type(['application/json'])
4024
+ if !content_type.nil?
4025
+ header_params['Content-Type'] = content_type
4026
+ end
4027
+
4028
+ # form parameters
4029
+ form_params = opts[:form_params] || {}
4030
+
4031
+ # http body (model)
4032
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'patched_user_request'])
4033
+
4034
+ # return_type
4035
+ return_type = opts[:debug_return_type] || 'User'
4036
+
4037
+ # auth_names
4038
+ auth_names = opts[:debug_auth_names] || ['authentik']
4039
+
4040
+ new_options = opts.merge(
4041
+ :operation => :"CoreApi.core_users_partial_update",
4042
+ :header_params => header_params,
4043
+ :query_params => query_params,
4044
+ :form_params => form_params,
4045
+ :body => post_body,
4046
+ :auth_names => auth_names,
4047
+ :return_type => return_type
4048
+ )
4049
+
4050
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
4051
+ if @api_client.config.debugging
4052
+ @api_client.config.logger.debug "API called: CoreApi#core_users_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4053
+ end
4054
+ return data, status_code, headers
4055
+ end
4056
+
4057
+ # Get all user paths
4058
+ # @param [Hash] opts the optional parameters
4059
+ # @option opts [String] :search A search term.
4060
+ # @return [UserPath]
4061
+ def core_users_paths_retrieve(opts = {})
4062
+ data, _status_code, _headers = core_users_paths_retrieve_with_http_info(opts)
4063
+ data
4064
+ end
4065
+
4066
+ # Get all user paths
4067
+ # @param [Hash] opts the optional parameters
4068
+ # @option opts [String] :search A search term.
4069
+ # @return [Array<(UserPath, Integer, Hash)>] UserPath data, response status code and response headers
4070
+ def core_users_paths_retrieve_with_http_info(opts = {})
4071
+ if @api_client.config.debugging
4072
+ @api_client.config.logger.debug 'Calling API: CoreApi.core_users_paths_retrieve ...'
4073
+ end
4074
+ # resource path
4075
+ local_var_path = '/core/users/paths/'
4076
+
4077
+ # query parameters
4078
+ query_params = opts[:query_params] || {}
4079
+ query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
4080
+
4081
+ # header parameters
4082
+ header_params = opts[:header_params] || {}
4083
+ # HTTP header 'Accept' (if needed)
4084
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
4085
+
4086
+ # form parameters
4087
+ form_params = opts[:form_params] || {}
4088
+
4089
+ # http body (model)
4090
+ post_body = opts[:debug_body]
4091
+
4092
+ # return_type
4093
+ return_type = opts[:debug_return_type] || 'UserPath'
4094
+
4095
+ # auth_names
4096
+ auth_names = opts[:debug_auth_names] || ['authentik']
4097
+
4098
+ new_options = opts.merge(
4099
+ :operation => :"CoreApi.core_users_paths_retrieve",
4100
+ :header_params => header_params,
4101
+ :query_params => query_params,
4102
+ :form_params => form_params,
4103
+ :body => post_body,
4104
+ :auth_names => auth_names,
4105
+ :return_type => return_type
4106
+ )
4107
+
4108
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
4109
+ if @api_client.config.debugging
4110
+ @api_client.config.logger.debug "API called: CoreApi#core_users_paths_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4111
+ end
4112
+ return data, status_code, headers
4113
+ end
4114
+
4115
+ # Create a temporary link that a user can use to recover their account
4116
+ # @param id [Integer] A unique integer value identifying this User.
4117
+ # @param [Hash] opts the optional parameters
4118
+ # @return [Link]
4119
+ def core_users_recovery_create(id, opts = {})
4120
+ data, _status_code, _headers = core_users_recovery_create_with_http_info(id, opts)
4121
+ data
4122
+ end
4123
+
4124
+ # Create a temporary link that a user can use to recover their account
4125
+ # @param id [Integer] A unique integer value identifying this User.
4126
+ # @param [Hash] opts the optional parameters
4127
+ # @return [Array<(Link, Integer, Hash)>] Link data, response status code and response headers
4128
+ def core_users_recovery_create_with_http_info(id, opts = {})
4129
+ if @api_client.config.debugging
4130
+ @api_client.config.logger.debug 'Calling API: CoreApi.core_users_recovery_create ...'
4131
+ end
4132
+ # verify the required parameter 'id' is set
4133
+ if @api_client.config.client_side_validation && id.nil?
4134
+ fail ArgumentError, "Missing the required parameter 'id' when calling CoreApi.core_users_recovery_create"
4135
+ end
4136
+ # resource path
4137
+ local_var_path = '/core/users/{id}/recovery/'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
4138
+
4139
+ # query parameters
4140
+ query_params = opts[:query_params] || {}
4141
+
4142
+ # header parameters
4143
+ header_params = opts[:header_params] || {}
4144
+ # HTTP header 'Accept' (if needed)
4145
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
4146
+
4147
+ # form parameters
4148
+ form_params = opts[:form_params] || {}
4149
+
4150
+ # http body (model)
4151
+ post_body = opts[:debug_body]
4152
+
4153
+ # return_type
4154
+ return_type = opts[:debug_return_type] || 'Link'
4155
+
4156
+ # auth_names
4157
+ auth_names = opts[:debug_auth_names] || ['authentik']
4158
+
4159
+ new_options = opts.merge(
4160
+ :operation => :"CoreApi.core_users_recovery_create",
4161
+ :header_params => header_params,
4162
+ :query_params => query_params,
4163
+ :form_params => form_params,
4164
+ :body => post_body,
4165
+ :auth_names => auth_names,
4166
+ :return_type => return_type
4167
+ )
4168
+
4169
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
4170
+ if @api_client.config.debugging
4171
+ @api_client.config.logger.debug "API called: CoreApi#core_users_recovery_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4172
+ end
4173
+ return data, status_code, headers
4174
+ end
4175
+
4176
+ # Send an email with a temporary link that a user can use to recover their account
4177
+ # @param email_stage [String]
4178
+ # @param id [Integer] A unique integer value identifying this User.
4179
+ # @param [Hash] opts the optional parameters
4180
+ # @return [nil]
4181
+ def core_users_recovery_email_create(email_stage, id, opts = {})
4182
+ core_users_recovery_email_create_with_http_info(email_stage, id, opts)
4183
+ nil
4184
+ end
4185
+
4186
+ # Send an email with a temporary link that a user can use to recover their account
4187
+ # @param email_stage [String]
4188
+ # @param id [Integer] A unique integer value identifying this User.
4189
+ # @param [Hash] opts the optional parameters
4190
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
4191
+ def core_users_recovery_email_create_with_http_info(email_stage, id, opts = {})
4192
+ if @api_client.config.debugging
4193
+ @api_client.config.logger.debug 'Calling API: CoreApi.core_users_recovery_email_create ...'
4194
+ end
4195
+ # verify the required parameter 'email_stage' is set
4196
+ if @api_client.config.client_side_validation && email_stage.nil?
4197
+ fail ArgumentError, "Missing the required parameter 'email_stage' when calling CoreApi.core_users_recovery_email_create"
4198
+ end
4199
+ # verify the required parameter 'id' is set
4200
+ if @api_client.config.client_side_validation && id.nil?
4201
+ fail ArgumentError, "Missing the required parameter 'id' when calling CoreApi.core_users_recovery_email_create"
4202
+ end
4203
+ # resource path
4204
+ local_var_path = '/core/users/{id}/recovery_email/'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
4205
+
4206
+ # query parameters
4207
+ query_params = opts[:query_params] || {}
4208
+ query_params[:'email_stage'] = email_stage
4209
+
4210
+ # header parameters
4211
+ header_params = opts[:header_params] || {}
4212
+ # HTTP header 'Accept' (if needed)
4213
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
4214
+
4215
+ # form parameters
4216
+ form_params = opts[:form_params] || {}
4217
+
4218
+ # http body (model)
4219
+ post_body = opts[:debug_body]
4220
+
4221
+ # return_type
4222
+ return_type = opts[:debug_return_type]
4223
+
4224
+ # auth_names
4225
+ auth_names = opts[:debug_auth_names] || ['authentik']
4226
+
4227
+ new_options = opts.merge(
4228
+ :operation => :"CoreApi.core_users_recovery_email_create",
4229
+ :header_params => header_params,
4230
+ :query_params => query_params,
4231
+ :form_params => form_params,
4232
+ :body => post_body,
4233
+ :auth_names => auth_names,
4234
+ :return_type => return_type
4235
+ )
4236
+
4237
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
4238
+ if @api_client.config.debugging
4239
+ @api_client.config.logger.debug "API called: CoreApi#core_users_recovery_email_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4240
+ end
4241
+ return data, status_code, headers
4242
+ end
4243
+
4244
+ # User Viewset
4245
+ # @param id [Integer] A unique integer value identifying this User.
4246
+ # @param [Hash] opts the optional parameters
4247
+ # @return [User]
4248
+ def core_users_retrieve(id, opts = {})
4249
+ data, _status_code, _headers = core_users_retrieve_with_http_info(id, opts)
4250
+ data
4251
+ end
4252
+
4253
+ # User Viewset
4254
+ # @param id [Integer] A unique integer value identifying this User.
4255
+ # @param [Hash] opts the optional parameters
4256
+ # @return [Array<(User, Integer, Hash)>] User data, response status code and response headers
4257
+ def core_users_retrieve_with_http_info(id, opts = {})
4258
+ if @api_client.config.debugging
4259
+ @api_client.config.logger.debug 'Calling API: CoreApi.core_users_retrieve ...'
4260
+ end
4261
+ # verify the required parameter 'id' is set
4262
+ if @api_client.config.client_side_validation && id.nil?
4263
+ fail ArgumentError, "Missing the required parameter 'id' when calling CoreApi.core_users_retrieve"
4264
+ end
4265
+ # resource path
4266
+ local_var_path = '/core/users/{id}/'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
4267
+
4268
+ # query parameters
4269
+ query_params = opts[:query_params] || {}
4270
+
4271
+ # header parameters
4272
+ header_params = opts[:header_params] || {}
4273
+ # HTTP header 'Accept' (if needed)
4274
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
4275
+
4276
+ # form parameters
4277
+ form_params = opts[:form_params] || {}
4278
+
4279
+ # http body (model)
4280
+ post_body = opts[:debug_body]
4281
+
4282
+ # return_type
4283
+ return_type = opts[:debug_return_type] || 'User'
4284
+
4285
+ # auth_names
4286
+ auth_names = opts[:debug_auth_names] || ['authentik']
4287
+
4288
+ new_options = opts.merge(
4289
+ :operation => :"CoreApi.core_users_retrieve",
4290
+ :header_params => header_params,
4291
+ :query_params => query_params,
4292
+ :form_params => form_params,
4293
+ :body => post_body,
4294
+ :auth_names => auth_names,
4295
+ :return_type => return_type
4296
+ )
4297
+
4298
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
4299
+ if @api_client.config.debugging
4300
+ @api_client.config.logger.debug "API called: CoreApi#core_users_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4301
+ end
4302
+ return data, status_code, headers
4303
+ end
4304
+
4305
+ # Create a new user account that is marked as a service account
4306
+ # @param user_service_account_request [UserServiceAccountRequest]
4307
+ # @param [Hash] opts the optional parameters
4308
+ # @return [UserServiceAccountResponse]
4309
+ def core_users_service_account_create(user_service_account_request, opts = {})
4310
+ data, _status_code, _headers = core_users_service_account_create_with_http_info(user_service_account_request, opts)
4311
+ data
4312
+ end
4313
+
4314
+ # Create a new user account that is marked as a service account
4315
+ # @param user_service_account_request [UserServiceAccountRequest]
4316
+ # @param [Hash] opts the optional parameters
4317
+ # @return [Array<(UserServiceAccountResponse, Integer, Hash)>] UserServiceAccountResponse data, response status code and response headers
4318
+ def core_users_service_account_create_with_http_info(user_service_account_request, opts = {})
4319
+ if @api_client.config.debugging
4320
+ @api_client.config.logger.debug 'Calling API: CoreApi.core_users_service_account_create ...'
4321
+ end
4322
+ # verify the required parameter 'user_service_account_request' is set
4323
+ if @api_client.config.client_side_validation && user_service_account_request.nil?
4324
+ fail ArgumentError, "Missing the required parameter 'user_service_account_request' when calling CoreApi.core_users_service_account_create"
4325
+ end
4326
+ # resource path
4327
+ local_var_path = '/core/users/service_account/'
4328
+
4329
+ # query parameters
4330
+ query_params = opts[:query_params] || {}
4331
+
4332
+ # header parameters
4333
+ header_params = opts[:header_params] || {}
4334
+ # HTTP header 'Accept' (if needed)
4335
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
4336
+ # HTTP header 'Content-Type'
4337
+ content_type = @api_client.select_header_content_type(['application/json'])
4338
+ if !content_type.nil?
4339
+ header_params['Content-Type'] = content_type
4340
+ end
4341
+
4342
+ # form parameters
4343
+ form_params = opts[:form_params] || {}
4344
+
4345
+ # http body (model)
4346
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(user_service_account_request)
4347
+
4348
+ # return_type
4349
+ return_type = opts[:debug_return_type] || 'UserServiceAccountResponse'
4350
+
4351
+ # auth_names
4352
+ auth_names = opts[:debug_auth_names] || ['authentik']
4353
+
4354
+ new_options = opts.merge(
4355
+ :operation => :"CoreApi.core_users_service_account_create",
4356
+ :header_params => header_params,
4357
+ :query_params => query_params,
4358
+ :form_params => form_params,
4359
+ :body => post_body,
4360
+ :auth_names => auth_names,
4361
+ :return_type => return_type
4362
+ )
4363
+
4364
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
4365
+ if @api_client.config.debugging
4366
+ @api_client.config.logger.debug "API called: CoreApi#core_users_service_account_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4367
+ end
4368
+ return data, status_code, headers
4369
+ end
4370
+
4371
+ # Set password for user
4372
+ # @param id [Integer] A unique integer value identifying this User.
4373
+ # @param user_password_set_request [UserPasswordSetRequest]
4374
+ # @param [Hash] opts the optional parameters
4375
+ # @return [nil]
4376
+ def core_users_set_password_create(id, user_password_set_request, opts = {})
4377
+ core_users_set_password_create_with_http_info(id, user_password_set_request, opts)
4378
+ nil
4379
+ end
4380
+
4381
+ # Set password for user
4382
+ # @param id [Integer] A unique integer value identifying this User.
4383
+ # @param user_password_set_request [UserPasswordSetRequest]
4384
+ # @param [Hash] opts the optional parameters
4385
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
4386
+ def core_users_set_password_create_with_http_info(id, user_password_set_request, opts = {})
4387
+ if @api_client.config.debugging
4388
+ @api_client.config.logger.debug 'Calling API: CoreApi.core_users_set_password_create ...'
4389
+ end
4390
+ # verify the required parameter 'id' is set
4391
+ if @api_client.config.client_side_validation && id.nil?
4392
+ fail ArgumentError, "Missing the required parameter 'id' when calling CoreApi.core_users_set_password_create"
4393
+ end
4394
+ # verify the required parameter 'user_password_set_request' is set
4395
+ if @api_client.config.client_side_validation && user_password_set_request.nil?
4396
+ fail ArgumentError, "Missing the required parameter 'user_password_set_request' when calling CoreApi.core_users_set_password_create"
4397
+ end
4398
+ # resource path
4399
+ local_var_path = '/core/users/{id}/set_password/'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
4400
+
4401
+ # query parameters
4402
+ query_params = opts[:query_params] || {}
4403
+
4404
+ # header parameters
4405
+ header_params = opts[:header_params] || {}
4406
+ # HTTP header 'Accept' (if needed)
4407
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
4408
+ # HTTP header 'Content-Type'
4409
+ content_type = @api_client.select_header_content_type(['application/json'])
4410
+ if !content_type.nil?
4411
+ header_params['Content-Type'] = content_type
4412
+ end
4413
+
4414
+ # form parameters
4415
+ form_params = opts[:form_params] || {}
4416
+
4417
+ # http body (model)
4418
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(user_password_set_request)
4419
+
4420
+ # return_type
4421
+ return_type = opts[:debug_return_type]
4422
+
4423
+ # auth_names
4424
+ auth_names = opts[:debug_auth_names] || ['authentik']
4425
+
4426
+ new_options = opts.merge(
4427
+ :operation => :"CoreApi.core_users_set_password_create",
4428
+ :header_params => header_params,
4429
+ :query_params => query_params,
4430
+ :form_params => form_params,
4431
+ :body => post_body,
4432
+ :auth_names => auth_names,
4433
+ :return_type => return_type
4434
+ )
4435
+
4436
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
4437
+ if @api_client.config.debugging
4438
+ @api_client.config.logger.debug "API called: CoreApi#core_users_set_password_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4439
+ end
4440
+ return data, status_code, headers
4441
+ end
4442
+
4443
+ # User Viewset
4444
+ # @param id [Integer] A unique integer value identifying this User.
4445
+ # @param user_request [UserRequest]
4446
+ # @param [Hash] opts the optional parameters
4447
+ # @return [User]
4448
+ def core_users_update(id, user_request, opts = {})
4449
+ data, _status_code, _headers = core_users_update_with_http_info(id, user_request, opts)
4450
+ data
4451
+ end
4452
+
4453
+ # User Viewset
4454
+ # @param id [Integer] A unique integer value identifying this User.
4455
+ # @param user_request [UserRequest]
4456
+ # @param [Hash] opts the optional parameters
4457
+ # @return [Array<(User, Integer, Hash)>] User data, response status code and response headers
4458
+ def core_users_update_with_http_info(id, user_request, opts = {})
4459
+ if @api_client.config.debugging
4460
+ @api_client.config.logger.debug 'Calling API: CoreApi.core_users_update ...'
4461
+ end
4462
+ # verify the required parameter 'id' is set
4463
+ if @api_client.config.client_side_validation && id.nil?
4464
+ fail ArgumentError, "Missing the required parameter 'id' when calling CoreApi.core_users_update"
4465
+ end
4466
+ # verify the required parameter 'user_request' is set
4467
+ if @api_client.config.client_side_validation && user_request.nil?
4468
+ fail ArgumentError, "Missing the required parameter 'user_request' when calling CoreApi.core_users_update"
4469
+ end
4470
+ # resource path
4471
+ local_var_path = '/core/users/{id}/'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
4472
+
4473
+ # query parameters
4474
+ query_params = opts[:query_params] || {}
4475
+
4476
+ # header parameters
4477
+ header_params = opts[:header_params] || {}
4478
+ # HTTP header 'Accept' (if needed)
4479
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
4480
+ # HTTP header 'Content-Type'
4481
+ content_type = @api_client.select_header_content_type(['application/json'])
4482
+ if !content_type.nil?
4483
+ header_params['Content-Type'] = content_type
4484
+ end
4485
+
4486
+ # form parameters
4487
+ form_params = opts[:form_params] || {}
4488
+
4489
+ # http body (model)
4490
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(user_request)
4491
+
4492
+ # return_type
4493
+ return_type = opts[:debug_return_type] || 'User'
4494
+
4495
+ # auth_names
4496
+ auth_names = opts[:debug_auth_names] || ['authentik']
4497
+
4498
+ new_options = opts.merge(
4499
+ :operation => :"CoreApi.core_users_update",
4500
+ :header_params => header_params,
4501
+ :query_params => query_params,
4502
+ :form_params => form_params,
4503
+ :body => post_body,
4504
+ :auth_names => auth_names,
4505
+ :return_type => return_type
4506
+ )
4507
+
4508
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
4509
+ if @api_client.config.debugging
4510
+ @api_client.config.logger.debug "API called: CoreApi#core_users_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4511
+ end
4512
+ return data, status_code, headers
4513
+ end
4514
+
4515
+ # Get a list of all objects that use this object
4516
+ # @param id [Integer] A unique integer value identifying this User.
4517
+ # @param [Hash] opts the optional parameters
4518
+ # @return [Array<UsedBy>]
4519
+ def core_users_used_by_list(id, opts = {})
4520
+ data, _status_code, _headers = core_users_used_by_list_with_http_info(id, opts)
4521
+ data
4522
+ end
4523
+
4524
+ # Get a list of all objects that use this object
4525
+ # @param id [Integer] A unique integer value identifying this User.
4526
+ # @param [Hash] opts the optional parameters
4527
+ # @return [Array<(Array<UsedBy>, Integer, Hash)>] Array<UsedBy> data, response status code and response headers
4528
+ def core_users_used_by_list_with_http_info(id, opts = {})
4529
+ if @api_client.config.debugging
4530
+ @api_client.config.logger.debug 'Calling API: CoreApi.core_users_used_by_list ...'
4531
+ end
4532
+ # verify the required parameter 'id' is set
4533
+ if @api_client.config.client_side_validation && id.nil?
4534
+ fail ArgumentError, "Missing the required parameter 'id' when calling CoreApi.core_users_used_by_list"
4535
+ end
4536
+ # resource path
4537
+ local_var_path = '/core/users/{id}/used_by/'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
4538
+
4539
+ # query parameters
4540
+ query_params = opts[:query_params] || {}
4541
+
4542
+ # header parameters
4543
+ header_params = opts[:header_params] || {}
4544
+ # HTTP header 'Accept' (if needed)
4545
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
4546
+
4547
+ # form parameters
4548
+ form_params = opts[:form_params] || {}
4549
+
4550
+ # http body (model)
4551
+ post_body = opts[:debug_body]
4552
+
4553
+ # return_type
4554
+ return_type = opts[:debug_return_type] || 'Array<UsedBy>'
4555
+
4556
+ # auth_names
4557
+ auth_names = opts[:debug_auth_names] || ['authentik']
4558
+
4559
+ new_options = opts.merge(
4560
+ :operation => :"CoreApi.core_users_used_by_list",
4561
+ :header_params => header_params,
4562
+ :query_params => query_params,
4563
+ :form_params => form_params,
4564
+ :body => post_body,
4565
+ :auth_names => auth_names,
4566
+ :return_type => return_type
4567
+ )
4568
+
4569
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
4570
+ if @api_client.config.debugging
4571
+ @api_client.config.logger.debug "API called: CoreApi#core_users_used_by_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4572
+ end
4573
+ return data, status_code, headers
4574
+ end
4575
+ end
4576
+ end