authentik-api 2026.2.2 → 2026.5.0.rc1

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 (218) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -3
  3. data/README_API.md +67 -15
  4. data/lib/authentik/api/api/admin_api.rb +5 -13
  5. data/lib/authentik/api/api/authenticators_api.rb +60 -60
  6. data/lib/authentik/api/api/core_api.rb +188 -63
  7. data/lib/authentik/api/api/crypto_api.rb +9 -13
  8. data/lib/authentik/api/api/endpoints_api.rb +1600 -679
  9. data/lib/authentik/api/api/enterprise_api.rb +5 -5
  10. data/lib/authentik/api/api/events_api.rb +141 -58
  11. data/lib/authentik/api/api/flows_api.rb +24 -106
  12. data/lib/authentik/api/api/lifecycle_api.rb +27 -18
  13. data/lib/authentik/api/api/managed_api.rb +79 -6
  14. data/lib/authentik/api/api/oauth2_api.rb +9 -9
  15. data/lib/authentik/api/api/outposts_api.rb +22 -22
  16. data/lib/authentik/api/api/policies_api.rb +57 -58
  17. data/lib/authentik/api/api/propertymappings_api.rb +79 -79
  18. data/lib/authentik/api/api/providers_api.rb +134 -196
  19. data/lib/authentik/api/api/rac_api.rb +10 -10
  20. data/lib/authentik/api/api/rbac_api.rb +15 -20
  21. data/lib/authentik/api/api/reports_api.rb +2 -2
  22. data/lib/authentik/api/api/schema_api.rb +4 -12
  23. data/lib/authentik/api/api/sources_api.rb +158 -219
  24. data/lib/authentik/api/api/ssf_api.rb +64 -7
  25. data/lib/authentik/api/api/stages_api.rb +723 -244
  26. data/lib/authentik/api/api/tasks_api.rb +11 -19
  27. data/lib/authentik/api/api/tenants_api.rb +10 -10
  28. data/lib/authentik/api/models/account_lockdown_stage.rb +372 -0
  29. data/lib/authentik/api/models/account_lockdown_stage_request.rb +219 -0
  30. data/lib/authentik/api/models/app_enum.rb +3 -2
  31. data/lib/authentik/api/models/apple_independent_secure_enclave.rb +246 -0
  32. data/lib/authentik/api/models/apple_independent_secure_enclave_request.rb +273 -0
  33. data/lib/authentik/api/models/application.rb +14 -4
  34. data/lib/authentik/api/models/application_request.rb +14 -4
  35. data/lib/authentik/api/models/authenticated_session_user_agent_device.rb +2 -30
  36. data/lib/authentik/api/models/authenticated_session_user_agent_os.rb +4 -60
  37. data/lib/authentik/api/models/authentication_enum.rb +2 -1
  38. data/lib/authentik/api/models/authenticator_validate_stage.rb +51 -4
  39. data/lib/authentik/api/models/authenticator_validate_stage_request.rb +51 -4
  40. data/lib/authentik/api/models/authenticator_web_authn_stage.rb +23 -2
  41. data/lib/authentik/api/models/authenticator_web_authn_stage_request.rb +23 -2
  42. data/lib/authentik/api/models/{flow_import_result.rb → blueprint_import_result.rb} +4 -4
  43. data/lib/authentik/api/models/brand.rb +11 -1
  44. data/lib/authentik/api/models/brand_request.rb +11 -1
  45. data/lib/authentik/api/models/certificate_key_pair.rb +1 -1
  46. data/lib/authentik/api/models/certificate_key_pair_key_type_enum.rb +37 -0
  47. data/lib/authentik/api/models/compatibility_mode_enum.rb +3 -1
  48. data/lib/authentik/api/models/{consent_stage_mode_enum.rb → consent_mode_enum.rb} +3 -3
  49. data/lib/authentik/api/models/consent_stage.rb +1 -1
  50. data/lib/authentik/api/models/consent_stage_request.rb +1 -1
  51. data/lib/authentik/api/models/country_code_enum.rb +3 -3
  52. data/lib/authentik/api/models/current_brand.rb +10 -1
  53. data/lib/authentik/api/models/current_brand_flags.rb +31 -27
  54. data/lib/authentik/api/models/delivery_method_enum.rb +3 -1
  55. data/lib/authentik/api/models/device_user_binding.rb +3 -45
  56. data/lib/authentik/api/models/event_matcher_policy.rb +15 -5
  57. data/lib/authentik/api/models/event_matcher_policy_request.rb +30 -5
  58. data/lib/authentik/api/models/event_stats.rb +187 -0
  59. data/lib/authentik/api/models/event_volume.rb +1 -1
  60. data/lib/authentik/api/models/events_requested_enum.rb +7 -1
  61. data/lib/authentik/api/models/force_binding_enum.rb +34 -0
  62. data/lib/authentik/api/models/{resident_key_requirement_enum.rb → format_enum.rb} +6 -7
  63. data/lib/authentik/api/models/geo_ip_policy.rb +1 -1
  64. data/lib/authentik/api/models/{detailed_country_field.rb → geo_ip_policy_countries_obj_inner.rb} +22 -26
  65. data/lib/authentik/api/models/google_chrome_connector.rb +326 -0
  66. data/lib/authentik/api/models/google_chrome_connector_request.rb +214 -0
  67. data/lib/authentik/api/models/grant_types_enum.rb +39 -0
  68. data/lib/authentik/api/models/group_ldap_source_connection.rb +30 -4
  69. data/lib/authentik/api/models/iframe_logout_challenge.rb +1 -1
  70. data/lib/authentik/api/models/invitation_send_email_request.rb +213 -0
  71. data/lib/authentik/api/models/key_type_enum.rb +3 -3
  72. data/lib/authentik/api/models/lang_enum.rb +131 -0
  73. data/lib/authentik/api/models/lifecycle_iteration.rb +30 -86
  74. data/lib/authentik/api/models/logout_url.rb +209 -0
  75. data/lib/authentik/api/models/model_enum.rb +3 -1
  76. data/lib/authentik/api/models/native_logout_challenge.rb +68 -37
  77. data/lib/authentik/api/models/notification_rule.rb +1 -15
  78. data/lib/authentik/api/models/notification_transport.rb +13 -2
  79. data/lib/authentik/api/models/notification_transport_request.rb +13 -2
  80. data/lib/authentik/api/models/o_auth2_provider.rb +12 -1
  81. data/lib/authentik/api/models/o_auth2_provider_request.rb +12 -1
  82. data/lib/authentik/api/models/operating_system.rb +0 -17
  83. data/lib/authentik/api/models/operating_system_request.rb +2 -9
  84. data/lib/authentik/api/models/paginated_account_lockdown_stage_list.rb +214 -0
  85. data/lib/authentik/api/models/paginated_apple_independent_secure_enclave_list.rb +214 -0
  86. data/lib/authentik/api/models/paginated_extra_role_object_permission_list.rb +32 -4
  87. data/lib/authentik/api/models/paginated_google_chrome_connector_list.rb +214 -0
  88. data/lib/authentik/api/models/patched_account_lockdown_stage_request.rb +212 -0
  89. data/lib/authentik/api/models/patched_apple_independent_secure_enclave_request.rb +235 -0
  90. data/lib/authentik/api/models/patched_application_request.rb +14 -4
  91. data/lib/authentik/api/models/patched_authenticator_validate_stage_request.rb +51 -4
  92. data/lib/authentik/api/models/patched_authenticator_web_authn_stage_request.rb +23 -2
  93. data/lib/authentik/api/models/patched_brand_request.rb +11 -1
  94. data/lib/authentik/api/models/patched_consent_stage_request.rb +1 -1
  95. data/lib/authentik/api/models/patched_event_matcher_policy_request.rb +30 -5
  96. data/lib/authentik/api/models/patched_google_chrome_connector_request.rb +190 -0
  97. data/lib/authentik/api/models/patched_notification_transport_request.rb +13 -2
  98. data/lib/authentik/api/models/patched_o_auth2_provider_request.rb +12 -1
  99. data/lib/authentik/api/models/patched_saml_provider_request.rb +17 -27
  100. data/lib/authentik/api/models/patched_saml_source_request.rb +11 -1
  101. data/lib/authentik/api/models/patched_settings_request_flags.rb +31 -27
  102. data/lib/authentik/api/models/patched_ssf_provider_request.rb +13 -4
  103. data/lib/authentik/api/models/policy_binding.rb +3 -45
  104. data/lib/authentik/api/models/prompt_type_enum.rb +4 -1
  105. data/lib/authentik/api/models/redirect_uri.rb +13 -4
  106. data/lib/authentik/api/models/redirect_uri_request.rb +13 -4
  107. data/lib/authentik/api/models/redirect_uri_type_enum.rb +34 -0
  108. data/lib/authentik/api/models/related_rule.rb +250 -0
  109. data/lib/authentik/api/models/saml_metadata.rb +0 -2
  110. data/lib/authentik/api/models/saml_provider.rb +98 -8
  111. data/lib/authentik/api/models/saml_provider_request.rb +17 -27
  112. data/lib/authentik/api/models/saml_source.rb +11 -1
  113. data/lib/authentik/api/models/saml_source_request.rb +11 -1
  114. data/lib/authentik/api/models/ssf_provider.rb +41 -4
  115. data/lib/authentik/api/models/ssf_provider_request.rb +13 -4
  116. data/lib/authentik/api/models/ssf_stream.rb +10 -1
  117. data/lib/authentik/api/models/ssf_stream_status_enum.rb +36 -0
  118. data/lib/authentik/api/models/task.rb +1 -1
  119. data/lib/authentik/api/models/{task_state_enum.rb → task_status_enum.rb} +3 -3
  120. data/lib/authentik/api/models/{notification_transport_mode_enum.rb → transport_mode_enum.rb} +3 -3
  121. data/lib/authentik/api/models/usage_enum.rb +33 -0
  122. data/lib/authentik/api/models/user_account_lockdown_request.rb +144 -0
  123. data/lib/authentik/api/models/user_ldap_source_connection.rb +30 -4
  124. data/lib/authentik/api/models/user_password_hash_set_request.rb +168 -0
  125. data/lib/authentik/api/models/vendor_enum.rb +2 -1
  126. data/lib/authentik/api/models/web_authn_hint_enum.rb +35 -0
  127. data/lib/authentik/api/version.rb +1 -1
  128. data/spec/api/admin_api_spec.rb +2 -2
  129. data/spec/api/core_api_spec.rb +27 -3
  130. data/spec/api/crypto_api_spec.rb +1 -1
  131. data/spec/api/endpoints_api_spec.rb +167 -0
  132. data/spec/api/events_api_spec.rb +33 -7
  133. data/spec/api/flows_api_spec.rb +4 -16
  134. data/spec/api/lifecycle_api_spec.rb +6 -3
  135. data/spec/api/managed_api_spec.rb +13 -0
  136. data/spec/api/policies_api_spec.rb +2 -1
  137. data/spec/api/providers_api_spec.rb +21 -19
  138. data/spec/api/schema_api_spec.rb +2 -2
  139. data/spec/api/sources_api_spec.rb +17 -16
  140. data/spec/api/ssf_api_spec.rb +12 -1
  141. data/spec/api/stages_api_spec.rb +117 -18
  142. data/spec/api/tasks_api_spec.rb +2 -2
  143. data/spec/models/account_lockdown_stage_request_spec.rb +60 -0
  144. data/spec/models/account_lockdown_stage_spec.rb +96 -0
  145. data/spec/models/apple_independent_secure_enclave_request_spec.rb +54 -0
  146. data/spec/models/apple_independent_secure_enclave_spec.rb +54 -0
  147. data/spec/models/application_request_spec.rb +6 -0
  148. data/spec/models/application_spec.rb +6 -0
  149. data/spec/models/authenticator_validate_stage_request_spec.rb +30 -0
  150. data/spec/models/authenticator_validate_stage_spec.rb +30 -0
  151. data/spec/models/authenticator_web_authn_stage_request_spec.rb +12 -0
  152. data/spec/models/authenticator_web_authn_stage_spec.rb +12 -0
  153. data/spec/models/{flow_import_result_spec.rb → blueprint_import_result_spec.rb} +6 -6
  154. data/spec/models/brand_request_spec.rb +6 -0
  155. data/spec/models/brand_spec.rb +6 -0
  156. data/spec/models/{notification_transport_mode_enum_spec.rb → certificate_key_pair_key_type_enum_spec.rb} +6 -6
  157. data/spec/models/{consent_stage_mode_enum_spec.rb → consent_mode_enum_spec.rb} +6 -6
  158. data/spec/models/current_brand_flags_spec.rb +2 -2
  159. data/spec/models/current_brand_spec.rb +6 -0
  160. data/spec/models/event_matcher_policy_request_spec.rb +6 -0
  161. data/spec/models/event_matcher_policy_spec.rb +6 -0
  162. data/spec/models/event_stats_spec.rb +36 -0
  163. data/spec/models/force_binding_enum_spec.rb +24 -0
  164. data/spec/models/format_enum_spec.rb +24 -0
  165. data/spec/models/{detailed_country_field_spec.rb → geo_ip_policy_countries_obj_inner_spec.rb} +6 -6
  166. data/spec/models/google_chrome_connector_request_spec.rb +48 -0
  167. data/spec/models/google_chrome_connector_spec.rb +78 -0
  168. data/spec/models/grant_types_enum_spec.rb +24 -0
  169. data/spec/models/group_ldap_source_connection_spec.rb +6 -0
  170. data/spec/models/invitation_send_email_request_spec.rb +48 -0
  171. data/spec/models/lang_enum_spec.rb +24 -0
  172. data/spec/models/lifecycle_iteration_spec.rb +2 -14
  173. data/spec/models/logout_url_spec.rb +60 -0
  174. data/spec/models/native_logout_challenge_spec.rb +13 -7
  175. data/spec/models/notification_transport_request_spec.rb +6 -0
  176. data/spec/models/notification_transport_spec.rb +6 -0
  177. data/spec/models/o_auth2_provider_request_spec.rb +6 -0
  178. data/spec/models/o_auth2_provider_spec.rb +6 -0
  179. data/spec/models/paginated_account_lockdown_stage_list_spec.rb +42 -0
  180. data/spec/models/paginated_apple_independent_secure_enclave_list_spec.rb +42 -0
  181. data/spec/models/paginated_extra_role_object_permission_list_spec.rb +6 -0
  182. data/spec/models/paginated_google_chrome_connector_list_spec.rb +42 -0
  183. data/spec/models/patched_account_lockdown_stage_request_spec.rb +60 -0
  184. data/spec/models/patched_apple_independent_secure_enclave_request_spec.rb +54 -0
  185. data/spec/models/patched_application_request_spec.rb +6 -0
  186. data/spec/models/patched_authenticator_validate_stage_request_spec.rb +30 -0
  187. data/spec/models/patched_authenticator_web_authn_stage_request_spec.rb +12 -0
  188. data/spec/models/patched_brand_request_spec.rb +6 -0
  189. data/spec/models/patched_event_matcher_policy_request_spec.rb +6 -0
  190. data/spec/models/patched_google_chrome_connector_request_spec.rb +48 -0
  191. data/spec/models/patched_notification_transport_request_spec.rb +6 -0
  192. data/spec/models/patched_o_auth2_provider_request_spec.rb +6 -0
  193. data/spec/models/patched_saml_provider_request_spec.rb +7 -1
  194. data/spec/models/patched_saml_source_request_spec.rb +6 -0
  195. data/spec/models/patched_settings_request_flags_spec.rb +2 -2
  196. data/spec/models/patched_ssf_provider_request_spec.rb +6 -0
  197. data/spec/models/redirect_uri_request_spec.rb +6 -0
  198. data/spec/models/redirect_uri_spec.rb +6 -0
  199. data/spec/models/redirect_uri_type_enum_spec.rb +24 -0
  200. data/spec/models/related_rule_spec.rb +54 -0
  201. data/spec/models/saml_provider_request_spec.rb +7 -1
  202. data/spec/models/saml_provider_spec.rb +25 -1
  203. data/spec/models/saml_source_request_spec.rb +6 -0
  204. data/spec/models/saml_source_spec.rb +6 -0
  205. data/spec/models/ssf_provider_request_spec.rb +6 -0
  206. data/spec/models/ssf_provider_spec.rb +12 -0
  207. data/spec/models/ssf_stream_spec.rb +6 -0
  208. data/spec/models/ssf_stream_status_enum_spec.rb +24 -0
  209. data/spec/models/{task_state_enum_spec.rb → task_status_enum_spec.rb} +6 -6
  210. data/spec/models/transport_mode_enum_spec.rb +24 -0
  211. data/spec/models/usage_enum_spec.rb +24 -0
  212. data/spec/models/user_account_lockdown_request_spec.rb +30 -0
  213. data/spec/models/user_ldap_source_connection_spec.rb +6 -0
  214. data/spec/models/user_password_hash_set_request_spec.rb +30 -0
  215. data/spec/models/web_authn_hint_enum_spec.rb +24 -0
  216. data/spec/zeitwerk_spec.rb +34 -0
  217. metadata +113 -32
  218. data/spec/models/resident_key_requirement_enum_spec.rb +0 -24
@@ -335,7 +335,7 @@ module Authentik::Api
335
335
  fail ArgumentError, "Missing the required parameter 'connector_uuid' when calling EndpointsApi.endpoints_agents_connectors_destroy"
336
336
  end
337
337
  # resource path
338
- local_var_path = '/endpoints/agents/connectors/{connector_uuid}/'.sub('{' + 'connector_uuid' + '}', CGI.escape(connector_uuid.to_s))
338
+ local_var_path = '/endpoints/agents/connectors/{connector_uuid}/'.sub('{connector_uuid}', CGI.escape(connector_uuid.to_s))
339
339
 
340
340
  # query parameters
341
341
  query_params = opts[:query_params] || {}
@@ -541,7 +541,7 @@ module Authentik::Api
541
541
  fail ArgumentError, "Missing the required parameter 'mdm_config_request' when calling EndpointsApi.endpoints_agents_connectors_mdm_config_create"
542
542
  end
543
543
  # resource path
544
- local_var_path = '/endpoints/agents/connectors/{connector_uuid}/mdm_config/'.sub('{' + 'connector_uuid' + '}', CGI.escape(connector_uuid.to_s))
544
+ local_var_path = '/endpoints/agents/connectors/{connector_uuid}/mdm_config/'.sub('{connector_uuid}', CGI.escape(connector_uuid.to_s))
545
545
 
546
546
  # query parameters
547
547
  query_params = opts[:query_params] || {}
@@ -609,7 +609,7 @@ module Authentik::Api
609
609
  fail ArgumentError, "Missing the required parameter 'connector_uuid' when calling EndpointsApi.endpoints_agents_connectors_partial_update"
610
610
  end
611
611
  # resource path
612
- local_var_path = '/endpoints/agents/connectors/{connector_uuid}/'.sub('{' + 'connector_uuid' + '}', CGI.escape(connector_uuid.to_s))
612
+ local_var_path = '/endpoints/agents/connectors/{connector_uuid}/'.sub('{connector_uuid}', CGI.escape(connector_uuid.to_s))
613
613
 
614
614
  # query parameters
615
615
  query_params = opts[:query_params] || {}
@@ -675,7 +675,7 @@ module Authentik::Api
675
675
  fail ArgumentError, "Missing the required parameter 'connector_uuid' when calling EndpointsApi.endpoints_agents_connectors_retrieve"
676
676
  end
677
677
  # resource path
678
- local_var_path = '/endpoints/agents/connectors/{connector_uuid}/'.sub('{' + 'connector_uuid' + '}', CGI.escape(connector_uuid.to_s))
678
+ local_var_path = '/endpoints/agents/connectors/{connector_uuid}/'.sub('{connector_uuid}', CGI.escape(connector_uuid.to_s))
679
679
 
680
680
  # query parameters
681
681
  query_params = opts[:query_params] || {}
@@ -742,7 +742,7 @@ module Authentik::Api
742
742
  fail ArgumentError, "Missing the required parameter 'agent_connector_request' when calling EndpointsApi.endpoints_agents_connectors_update"
743
743
  end
744
744
  # resource path
745
- local_var_path = '/endpoints/agents/connectors/{connector_uuid}/'.sub('{' + 'connector_uuid' + '}', CGI.escape(connector_uuid.to_s))
745
+ local_var_path = '/endpoints/agents/connectors/{connector_uuid}/'.sub('{connector_uuid}', CGI.escape(connector_uuid.to_s))
746
746
 
747
747
  # query parameters
748
748
  query_params = opts[:query_params] || {}
@@ -808,7 +808,7 @@ module Authentik::Api
808
808
  fail ArgumentError, "Missing the required parameter 'connector_uuid' when calling EndpointsApi.endpoints_agents_connectors_used_by_list"
809
809
  end
810
810
  # resource path
811
- local_var_path = '/endpoints/agents/connectors/{connector_uuid}/used_by/'.sub('{' + 'connector_uuid' + '}', CGI.escape(connector_uuid.to_s))
811
+ local_var_path = '/endpoints/agents/connectors/{connector_uuid}/used_by/'.sub('{connector_uuid}', CGI.escape(connector_uuid.to_s))
812
812
 
813
813
  # query parameters
814
814
  query_params = opts[:query_params] || {}
@@ -935,7 +935,7 @@ module Authentik::Api
935
935
  fail ArgumentError, "Missing the required parameter 'token_uuid' when calling EndpointsApi.endpoints_agents_enrollment_tokens_destroy"
936
936
  end
937
937
  # resource path
938
- local_var_path = '/endpoints/agents/enrollment_tokens/{token_uuid}/'.sub('{' + 'token_uuid' + '}', CGI.escape(token_uuid.to_s))
938
+ local_var_path = '/endpoints/agents/enrollment_tokens/{token_uuid}/'.sub('{token_uuid}', CGI.escape(token_uuid.to_s))
939
939
 
940
940
  # query parameters
941
941
  query_params = opts[:query_params] || {}
@@ -1071,7 +1071,7 @@ module Authentik::Api
1071
1071
  fail ArgumentError, "Missing the required parameter 'token_uuid' when calling EndpointsApi.endpoints_agents_enrollment_tokens_partial_update"
1072
1072
  end
1073
1073
  # resource path
1074
- local_var_path = '/endpoints/agents/enrollment_tokens/{token_uuid}/'.sub('{' + 'token_uuid' + '}', CGI.escape(token_uuid.to_s))
1074
+ local_var_path = '/endpoints/agents/enrollment_tokens/{token_uuid}/'.sub('{token_uuid}', CGI.escape(token_uuid.to_s))
1075
1075
 
1076
1076
  # query parameters
1077
1077
  query_params = opts[:query_params] || {}
@@ -1137,7 +1137,7 @@ module Authentik::Api
1137
1137
  fail ArgumentError, "Missing the required parameter 'token_uuid' when calling EndpointsApi.endpoints_agents_enrollment_tokens_retrieve"
1138
1138
  end
1139
1139
  # resource path
1140
- local_var_path = '/endpoints/agents/enrollment_tokens/{token_uuid}/'.sub('{' + 'token_uuid' + '}', CGI.escape(token_uuid.to_s))
1140
+ local_var_path = '/endpoints/agents/enrollment_tokens/{token_uuid}/'.sub('{token_uuid}', CGI.escape(token_uuid.to_s))
1141
1141
 
1142
1142
  # query parameters
1143
1143
  query_params = opts[:query_params] || {}
@@ -1204,7 +1204,7 @@ module Authentik::Api
1204
1204
  fail ArgumentError, "Missing the required parameter 'enrollment_token_request' when calling EndpointsApi.endpoints_agents_enrollment_tokens_update"
1205
1205
  end
1206
1206
  # resource path
1207
- local_var_path = '/endpoints/agents/enrollment_tokens/{token_uuid}/'.sub('{' + 'token_uuid' + '}', CGI.escape(token_uuid.to_s))
1207
+ local_var_path = '/endpoints/agents/enrollment_tokens/{token_uuid}/'.sub('{token_uuid}', CGI.escape(token_uuid.to_s))
1208
1208
 
1209
1209
  # query parameters
1210
1210
  query_params = opts[:query_params] || {}
@@ -1270,7 +1270,7 @@ module Authentik::Api
1270
1270
  fail ArgumentError, "Missing the required parameter 'token_uuid' when calling EndpointsApi.endpoints_agents_enrollment_tokens_used_by_list"
1271
1271
  end
1272
1272
  # resource path
1273
- local_var_path = '/endpoints/agents/enrollment_tokens/{token_uuid}/used_by/'.sub('{' + 'token_uuid' + '}', CGI.escape(token_uuid.to_s))
1273
+ local_var_path = '/endpoints/agents/enrollment_tokens/{token_uuid}/used_by/'.sub('{token_uuid}', CGI.escape(token_uuid.to_s))
1274
1274
 
1275
1275
  # query parameters
1276
1276
  query_params = opts[:query_params] || {}
@@ -1331,7 +1331,7 @@ module Authentik::Api
1331
1331
  fail ArgumentError, "Missing the required parameter 'token_uuid' when calling EndpointsApi.endpoints_agents_enrollment_tokens_view_key_retrieve"
1332
1332
  end
1333
1333
  # resource path
1334
- local_var_path = '/endpoints/agents/enrollment_tokens/{token_uuid}/view_key/'.sub('{' + 'token_uuid' + '}', CGI.escape(token_uuid.to_s))
1334
+ local_var_path = '/endpoints/agents/enrollment_tokens/{token_uuid}/view_key/'.sub('{token_uuid}', CGI.escape(token_uuid.to_s))
1335
1335
 
1336
1336
  # query parameters
1337
1337
  query_params = opts[:query_params] || {}
@@ -1370,27 +1370,29 @@ module Authentik::Api
1370
1370
  return data, status_code, headers
1371
1371
  end
1372
1372
 
1373
- # @param agent_psso_device_registration_request [AgentPSSODeviceRegistrationRequest]
1373
+ # Mixin to add a used_by endpoint to return a list of all objects using this object
1374
+ # @param apple_independent_secure_enclave_request [AppleIndependentSecureEnclaveRequest]
1374
1375
  # @param [Hash] opts the optional parameters
1375
- # @return [AgentPSSODeviceRegistrationResponse]
1376
- def endpoints_agents_psso_register_device_create(agent_psso_device_registration_request, opts = {})
1377
- data, _status_code, _headers = endpoints_agents_psso_register_device_create_with_http_info(agent_psso_device_registration_request, opts)
1376
+ # @return [AppleIndependentSecureEnclave]
1377
+ def endpoints_agents_psso_ise_create(apple_independent_secure_enclave_request, opts = {})
1378
+ data, _status_code, _headers = endpoints_agents_psso_ise_create_with_http_info(apple_independent_secure_enclave_request, opts)
1378
1379
  data
1379
1380
  end
1380
1381
 
1381
- # @param agent_psso_device_registration_request [AgentPSSODeviceRegistrationRequest]
1382
+ # Mixin to add a used_by endpoint to return a list of all objects using this object
1383
+ # @param apple_independent_secure_enclave_request [AppleIndependentSecureEnclaveRequest]
1382
1384
  # @param [Hash] opts the optional parameters
1383
- # @return [Array<(AgentPSSODeviceRegistrationResponse, Integer, Hash)>] AgentPSSODeviceRegistrationResponse data, response status code and response headers
1384
- def endpoints_agents_psso_register_device_create_with_http_info(agent_psso_device_registration_request, opts = {})
1385
+ # @return [Array<(AppleIndependentSecureEnclave, Integer, Hash)>] AppleIndependentSecureEnclave data, response status code and response headers
1386
+ def endpoints_agents_psso_ise_create_with_http_info(apple_independent_secure_enclave_request, opts = {})
1385
1387
  if @api_client.config.debugging
1386
- @api_client.config.logger.debug 'Calling API: EndpointsApi.endpoints_agents_psso_register_device_create ...'
1388
+ @api_client.config.logger.debug 'Calling API: EndpointsApi.endpoints_agents_psso_ise_create ...'
1387
1389
  end
1388
- # verify the required parameter 'agent_psso_device_registration_request' is set
1389
- if @api_client.config.client_side_validation && agent_psso_device_registration_request.nil?
1390
- fail ArgumentError, "Missing the required parameter 'agent_psso_device_registration_request' when calling EndpointsApi.endpoints_agents_psso_register_device_create"
1390
+ # verify the required parameter 'apple_independent_secure_enclave_request' is set
1391
+ if @api_client.config.client_side_validation && apple_independent_secure_enclave_request.nil?
1392
+ fail ArgumentError, "Missing the required parameter 'apple_independent_secure_enclave_request' when calling EndpointsApi.endpoints_agents_psso_ise_create"
1391
1393
  end
1392
1394
  # resource path
1393
- local_var_path = '/endpoints/agents/psso/register/device/'
1395
+ local_var_path = '/endpoints/agents/psso/ise/'
1394
1396
 
1395
1397
  # query parameters
1396
1398
  query_params = opts[:query_params] || {}
@@ -1409,16 +1411,16 @@ module Authentik::Api
1409
1411
  form_params = opts[:form_params] || {}
1410
1412
 
1411
1413
  # http body (model)
1412
- post_body = opts[:debug_body] || @api_client.object_to_http_body(agent_psso_device_registration_request)
1414
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(apple_independent_secure_enclave_request)
1413
1415
 
1414
1416
  # return_type
1415
- return_type = opts[:debug_return_type] || 'AgentPSSODeviceRegistrationResponse'
1417
+ return_type = opts[:debug_return_type] || 'AppleIndependentSecureEnclave'
1416
1418
 
1417
1419
  # auth_names
1418
- auth_names = opts[:debug_auth_names] || []
1420
+ auth_names = opts[:debug_auth_names] || ['authentik']
1419
1421
 
1420
1422
  new_options = opts.merge(
1421
- :operation => :"EndpointsApi.endpoints_agents_psso_register_device_create",
1423
+ :operation => :"EndpointsApi.endpoints_agents_psso_ise_create",
1422
1424
  :header_params => header_params,
1423
1425
  :query_params => query_params,
1424
1426
  :form_params => form_params,
@@ -1429,32 +1431,34 @@ module Authentik::Api
1429
1431
 
1430
1432
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1431
1433
  if @api_client.config.debugging
1432
- @api_client.config.logger.debug "API called: EndpointsApi#endpoints_agents_psso_register_device_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1434
+ @api_client.config.logger.debug "API called: EndpointsApi#endpoints_agents_psso_ise_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1433
1435
  end
1434
1436
  return data, status_code, headers
1435
1437
  end
1436
1438
 
1437
- # @param agent_psso_user_registration_request [AgentPSSOUserRegistrationRequest]
1439
+ # Mixin to add a used_by endpoint to return a list of all objects using this object
1440
+ # @param uuid [String] A UUID string identifying this Apple Independent Secure Enclave.
1438
1441
  # @param [Hash] opts the optional parameters
1439
- # @return [UserSelf]
1440
- def endpoints_agents_psso_register_user_create(agent_psso_user_registration_request, opts = {})
1441
- data, _status_code, _headers = endpoints_agents_psso_register_user_create_with_http_info(agent_psso_user_registration_request, opts)
1442
- data
1442
+ # @return [nil]
1443
+ def endpoints_agents_psso_ise_destroy(uuid, opts = {})
1444
+ endpoints_agents_psso_ise_destroy_with_http_info(uuid, opts)
1445
+ nil
1443
1446
  end
1444
1447
 
1445
- # @param agent_psso_user_registration_request [AgentPSSOUserRegistrationRequest]
1448
+ # Mixin to add a used_by endpoint to return a list of all objects using this object
1449
+ # @param uuid [String] A UUID string identifying this Apple Independent Secure Enclave.
1446
1450
  # @param [Hash] opts the optional parameters
1447
- # @return [Array<(UserSelf, Integer, Hash)>] UserSelf data, response status code and response headers
1448
- def endpoints_agents_psso_register_user_create_with_http_info(agent_psso_user_registration_request, opts = {})
1451
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
1452
+ def endpoints_agents_psso_ise_destroy_with_http_info(uuid, opts = {})
1449
1453
  if @api_client.config.debugging
1450
- @api_client.config.logger.debug 'Calling API: EndpointsApi.endpoints_agents_psso_register_user_create ...'
1454
+ @api_client.config.logger.debug 'Calling API: EndpointsApi.endpoints_agents_psso_ise_destroy ...'
1451
1455
  end
1452
- # verify the required parameter 'agent_psso_user_registration_request' is set
1453
- if @api_client.config.client_side_validation && agent_psso_user_registration_request.nil?
1454
- fail ArgumentError, "Missing the required parameter 'agent_psso_user_registration_request' when calling EndpointsApi.endpoints_agents_psso_register_user_create"
1456
+ # verify the required parameter 'uuid' is set
1457
+ if @api_client.config.client_side_validation && uuid.nil?
1458
+ fail ArgumentError, "Missing the required parameter 'uuid' when calling EndpointsApi.endpoints_agents_psso_ise_destroy"
1455
1459
  end
1456
1460
  # resource path
1457
- local_var_path = '/endpoints/agents/psso/register/user/'
1461
+ local_var_path = '/endpoints/agents/psso/ise/{uuid}/'.sub('{uuid}', CGI.escape(uuid.to_s))
1458
1462
 
1459
1463
  # query parameters
1460
1464
  query_params = opts[:query_params] || {}
@@ -1463,26 +1467,21 @@ module Authentik::Api
1463
1467
  header_params = opts[:header_params] || {}
1464
1468
  # HTTP header 'Accept' (if needed)
1465
1469
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1466
- # HTTP header 'Content-Type'
1467
- content_type = @api_client.select_header_content_type(['application/json'])
1468
- if !content_type.nil?
1469
- header_params['Content-Type'] = content_type
1470
- end
1471
1470
 
1472
1471
  # form parameters
1473
1472
  form_params = opts[:form_params] || {}
1474
1473
 
1475
1474
  # http body (model)
1476
- post_body = opts[:debug_body] || @api_client.object_to_http_body(agent_psso_user_registration_request)
1475
+ post_body = opts[:debug_body]
1477
1476
 
1478
1477
  # return_type
1479
- return_type = opts[:debug_return_type] || 'UserSelf'
1478
+ return_type = opts[:debug_return_type]
1480
1479
 
1481
1480
  # auth_names
1482
- auth_names = opts[:debug_auth_names] || []
1481
+ auth_names = opts[:debug_auth_names] || ['authentik']
1483
1482
 
1484
1483
  new_options = opts.merge(
1485
- :operation => :"EndpointsApi.endpoints_agents_psso_register_user_create",
1484
+ :operation => :"EndpointsApi.endpoints_agents_psso_ise_destroy",
1486
1485
  :header_params => header_params,
1487
1486
  :query_params => query_params,
1488
1487
  :form_params => form_params,
@@ -1491,39 +1490,51 @@ module Authentik::Api
1491
1490
  :return_type => return_type
1492
1491
  )
1493
1492
 
1494
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1493
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
1495
1494
  if @api_client.config.debugging
1496
- @api_client.config.logger.debug "API called: EndpointsApi#endpoints_agents_psso_register_user_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1495
+ @api_client.config.logger.debug "API called: EndpointsApi#endpoints_agents_psso_ise_destroy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1497
1496
  end
1498
1497
  return data, status_code, headers
1499
1498
  end
1500
1499
 
1501
- # Connector Viewset
1502
- # @param connector_uuid [String] A UUID string identifying this connector.
1500
+ # Mixin to add a used_by endpoint to return a list of all objects using this object
1503
1501
  # @param [Hash] opts the optional parameters
1504
- # @return [nil]
1505
- def endpoints_connectors_destroy(connector_uuid, opts = {})
1506
- endpoints_connectors_destroy_with_http_info(connector_uuid, opts)
1507
- nil
1502
+ # @option opts [String] :apple_enclave_key_id
1503
+ # @option opts [String] :ordering Which field to use when ordering the results.
1504
+ # @option opts [Integer] :page A page number within the paginated result set.
1505
+ # @option opts [Integer] :page_size Number of results to return per page.
1506
+ # @option opts [String] :search A search term.
1507
+ # @option opts [Integer] :user
1508
+ # @return [PaginatedAppleIndependentSecureEnclaveList]
1509
+ def endpoints_agents_psso_ise_list(opts = {})
1510
+ data, _status_code, _headers = endpoints_agents_psso_ise_list_with_http_info(opts)
1511
+ data
1508
1512
  end
1509
1513
 
1510
- # Connector Viewset
1511
- # @param connector_uuid [String] A UUID string identifying this connector.
1514
+ # Mixin to add a used_by endpoint to return a list of all objects using this object
1512
1515
  # @param [Hash] opts the optional parameters
1513
- # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
1514
- def endpoints_connectors_destroy_with_http_info(connector_uuid, opts = {})
1516
+ # @option opts [String] :apple_enclave_key_id
1517
+ # @option opts [String] :ordering Which field to use when ordering the results.
1518
+ # @option opts [Integer] :page A page number within the paginated result set.
1519
+ # @option opts [Integer] :page_size Number of results to return per page.
1520
+ # @option opts [String] :search A search term.
1521
+ # @option opts [Integer] :user
1522
+ # @return [Array<(PaginatedAppleIndependentSecureEnclaveList, Integer, Hash)>] PaginatedAppleIndependentSecureEnclaveList data, response status code and response headers
1523
+ def endpoints_agents_psso_ise_list_with_http_info(opts = {})
1515
1524
  if @api_client.config.debugging
1516
- @api_client.config.logger.debug 'Calling API: EndpointsApi.endpoints_connectors_destroy ...'
1517
- end
1518
- # verify the required parameter 'connector_uuid' is set
1519
- if @api_client.config.client_side_validation && connector_uuid.nil?
1520
- fail ArgumentError, "Missing the required parameter 'connector_uuid' when calling EndpointsApi.endpoints_connectors_destroy"
1525
+ @api_client.config.logger.debug 'Calling API: EndpointsApi.endpoints_agents_psso_ise_list ...'
1521
1526
  end
1522
1527
  # resource path
1523
- local_var_path = '/endpoints/connectors/{connector_uuid}/'.sub('{' + 'connector_uuid' + '}', CGI.escape(connector_uuid.to_s))
1528
+ local_var_path = '/endpoints/agents/psso/ise/'
1524
1529
 
1525
1530
  # query parameters
1526
1531
  query_params = opts[:query_params] || {}
1532
+ query_params[:'apple_enclave_key_id'] = opts[:'apple_enclave_key_id'] if !opts[:'apple_enclave_key_id'].nil?
1533
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
1534
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
1535
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
1536
+ query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
1537
+ query_params[:'user'] = opts[:'user'] if !opts[:'user'].nil?
1527
1538
 
1528
1539
  # header parameters
1529
1540
  header_params = opts[:header_params] || {}
@@ -1537,13 +1548,13 @@ module Authentik::Api
1537
1548
  post_body = opts[:debug_body]
1538
1549
 
1539
1550
  # return_type
1540
- return_type = opts[:debug_return_type]
1551
+ return_type = opts[:debug_return_type] || 'PaginatedAppleIndependentSecureEnclaveList'
1541
1552
 
1542
1553
  # auth_names
1543
1554
  auth_names = opts[:debug_auth_names] || ['authentik']
1544
1555
 
1545
1556
  new_options = opts.merge(
1546
- :operation => :"EndpointsApi.endpoints_connectors_destroy",
1557
+ :operation => :"EndpointsApi.endpoints_agents_psso_ise_list",
1547
1558
  :header_params => header_params,
1548
1559
  :query_params => query_params,
1549
1560
  :form_params => form_params,
@@ -1552,65 +1563,66 @@ module Authentik::Api
1552
1563
  :return_type => return_type
1553
1564
  )
1554
1565
 
1555
- data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
1566
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1556
1567
  if @api_client.config.debugging
1557
- @api_client.config.logger.debug "API called: EndpointsApi#endpoints_connectors_destroy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1568
+ @api_client.config.logger.debug "API called: EndpointsApi#endpoints_agents_psso_ise_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1558
1569
  end
1559
1570
  return data, status_code, headers
1560
1571
  end
1561
1572
 
1562
- # Connector Viewset
1573
+ # Mixin to add a used_by endpoint to return a list of all objects using this object
1574
+ # @param uuid [String] A UUID string identifying this Apple Independent Secure Enclave.
1563
1575
  # @param [Hash] opts the optional parameters
1564
- # @option opts [String] :ordering Which field to use when ordering the results.
1565
- # @option opts [Integer] :page A page number within the paginated result set.
1566
- # @option opts [Integer] :page_size Number of results to return per page.
1567
- # @option opts [String] :search A search term.
1568
- # @return [PaginatedConnectorList]
1569
- def endpoints_connectors_list(opts = {})
1570
- data, _status_code, _headers = endpoints_connectors_list_with_http_info(opts)
1576
+ # @option opts [PatchedAppleIndependentSecureEnclaveRequest] :patched_apple_independent_secure_enclave_request
1577
+ # @return [AppleIndependentSecureEnclave]
1578
+ def endpoints_agents_psso_ise_partial_update(uuid, opts = {})
1579
+ data, _status_code, _headers = endpoints_agents_psso_ise_partial_update_with_http_info(uuid, opts)
1571
1580
  data
1572
1581
  end
1573
1582
 
1574
- # Connector Viewset
1583
+ # Mixin to add a used_by endpoint to return a list of all objects using this object
1584
+ # @param uuid [String] A UUID string identifying this Apple Independent Secure Enclave.
1575
1585
  # @param [Hash] opts the optional parameters
1576
- # @option opts [String] :ordering Which field to use when ordering the results.
1577
- # @option opts [Integer] :page A page number within the paginated result set.
1578
- # @option opts [Integer] :page_size Number of results to return per page.
1579
- # @option opts [String] :search A search term.
1580
- # @return [Array<(PaginatedConnectorList, Integer, Hash)>] PaginatedConnectorList data, response status code and response headers
1581
- def endpoints_connectors_list_with_http_info(opts = {})
1586
+ # @option opts [PatchedAppleIndependentSecureEnclaveRequest] :patched_apple_independent_secure_enclave_request
1587
+ # @return [Array<(AppleIndependentSecureEnclave, Integer, Hash)>] AppleIndependentSecureEnclave data, response status code and response headers
1588
+ def endpoints_agents_psso_ise_partial_update_with_http_info(uuid, opts = {})
1582
1589
  if @api_client.config.debugging
1583
- @api_client.config.logger.debug 'Calling API: EndpointsApi.endpoints_connectors_list ...'
1590
+ @api_client.config.logger.debug 'Calling API: EndpointsApi.endpoints_agents_psso_ise_partial_update ...'
1591
+ end
1592
+ # verify the required parameter 'uuid' is set
1593
+ if @api_client.config.client_side_validation && uuid.nil?
1594
+ fail ArgumentError, "Missing the required parameter 'uuid' when calling EndpointsApi.endpoints_agents_psso_ise_partial_update"
1584
1595
  end
1585
1596
  # resource path
1586
- local_var_path = '/endpoints/connectors/'
1597
+ local_var_path = '/endpoints/agents/psso/ise/{uuid}/'.sub('{uuid}', CGI.escape(uuid.to_s))
1587
1598
 
1588
1599
  # query parameters
1589
1600
  query_params = opts[:query_params] || {}
1590
- query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
1591
- query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
1592
- query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
1593
- query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
1594
1601
 
1595
1602
  # header parameters
1596
1603
  header_params = opts[:header_params] || {}
1597
1604
  # HTTP header 'Accept' (if needed)
1598
1605
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1606
+ # HTTP header 'Content-Type'
1607
+ content_type = @api_client.select_header_content_type(['application/json'])
1608
+ if !content_type.nil?
1609
+ header_params['Content-Type'] = content_type
1610
+ end
1599
1611
 
1600
1612
  # form parameters
1601
1613
  form_params = opts[:form_params] || {}
1602
1614
 
1603
1615
  # http body (model)
1604
- post_body = opts[:debug_body]
1616
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'patched_apple_independent_secure_enclave_request'])
1605
1617
 
1606
1618
  # return_type
1607
- return_type = opts[:debug_return_type] || 'PaginatedConnectorList'
1619
+ return_type = opts[:debug_return_type] || 'AppleIndependentSecureEnclave'
1608
1620
 
1609
1621
  # auth_names
1610
1622
  auth_names = opts[:debug_auth_names] || ['authentik']
1611
1623
 
1612
1624
  new_options = opts.merge(
1613
- :operation => :"EndpointsApi.endpoints_connectors_list",
1625
+ :operation => :"EndpointsApi.endpoints_agents_psso_ise_partial_update",
1614
1626
  :header_params => header_params,
1615
1627
  :query_params => query_params,
1616
1628
  :form_params => form_params,
@@ -1619,36 +1631,36 @@ module Authentik::Api
1619
1631
  :return_type => return_type
1620
1632
  )
1621
1633
 
1622
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1634
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
1623
1635
  if @api_client.config.debugging
1624
- @api_client.config.logger.debug "API called: EndpointsApi#endpoints_connectors_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1636
+ @api_client.config.logger.debug "API called: EndpointsApi#endpoints_agents_psso_ise_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1625
1637
  end
1626
1638
  return data, status_code, headers
1627
1639
  end
1628
1640
 
1629
- # Connector Viewset
1630
- # @param connector_uuid [String] A UUID string identifying this connector.
1641
+ # Mixin to add a used_by endpoint to return a list of all objects using this object
1642
+ # @param uuid [String] A UUID string identifying this Apple Independent Secure Enclave.
1631
1643
  # @param [Hash] opts the optional parameters
1632
- # @return [Connector]
1633
- def endpoints_connectors_retrieve(connector_uuid, opts = {})
1634
- data, _status_code, _headers = endpoints_connectors_retrieve_with_http_info(connector_uuid, opts)
1644
+ # @return [AppleIndependentSecureEnclave]
1645
+ def endpoints_agents_psso_ise_retrieve(uuid, opts = {})
1646
+ data, _status_code, _headers = endpoints_agents_psso_ise_retrieve_with_http_info(uuid, opts)
1635
1647
  data
1636
1648
  end
1637
1649
 
1638
- # Connector Viewset
1639
- # @param connector_uuid [String] A UUID string identifying this connector.
1650
+ # Mixin to add a used_by endpoint to return a list of all objects using this object
1651
+ # @param uuid [String] A UUID string identifying this Apple Independent Secure Enclave.
1640
1652
  # @param [Hash] opts the optional parameters
1641
- # @return [Array<(Connector, Integer, Hash)>] Connector data, response status code and response headers
1642
- def endpoints_connectors_retrieve_with_http_info(connector_uuid, opts = {})
1653
+ # @return [Array<(AppleIndependentSecureEnclave, Integer, Hash)>] AppleIndependentSecureEnclave data, response status code and response headers
1654
+ def endpoints_agents_psso_ise_retrieve_with_http_info(uuid, opts = {})
1643
1655
  if @api_client.config.debugging
1644
- @api_client.config.logger.debug 'Calling API: EndpointsApi.endpoints_connectors_retrieve ...'
1656
+ @api_client.config.logger.debug 'Calling API: EndpointsApi.endpoints_agents_psso_ise_retrieve ...'
1645
1657
  end
1646
- # verify the required parameter 'connector_uuid' is set
1647
- if @api_client.config.client_side_validation && connector_uuid.nil?
1648
- fail ArgumentError, "Missing the required parameter 'connector_uuid' when calling EndpointsApi.endpoints_connectors_retrieve"
1658
+ # verify the required parameter 'uuid' is set
1659
+ if @api_client.config.client_side_validation && uuid.nil?
1660
+ fail ArgumentError, "Missing the required parameter 'uuid' when calling EndpointsApi.endpoints_agents_psso_ise_retrieve"
1649
1661
  end
1650
1662
  # resource path
1651
- local_var_path = '/endpoints/connectors/{connector_uuid}/'.sub('{' + 'connector_uuid' + '}', CGI.escape(connector_uuid.to_s))
1663
+ local_var_path = '/endpoints/agents/psso/ise/{uuid}/'.sub('{uuid}', CGI.escape(uuid.to_s))
1652
1664
 
1653
1665
  # query parameters
1654
1666
  query_params = opts[:query_params] || {}
@@ -1665,13 +1677,13 @@ module Authentik::Api
1665
1677
  post_body = opts[:debug_body]
1666
1678
 
1667
1679
  # return_type
1668
- return_type = opts[:debug_return_type] || 'Connector'
1680
+ return_type = opts[:debug_return_type] || 'AppleIndependentSecureEnclave'
1669
1681
 
1670
1682
  # auth_names
1671
1683
  auth_names = opts[:debug_auth_names] || ['authentik']
1672
1684
 
1673
1685
  new_options = opts.merge(
1674
- :operation => :"EndpointsApi.endpoints_connectors_retrieve",
1686
+ :operation => :"EndpointsApi.endpoints_agents_psso_ise_retrieve",
1675
1687
  :header_params => header_params,
1676
1688
  :query_params => query_params,
1677
1689
  :form_params => form_params,
@@ -1682,28 +1694,40 @@ module Authentik::Api
1682
1694
 
1683
1695
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1684
1696
  if @api_client.config.debugging
1685
- @api_client.config.logger.debug "API called: EndpointsApi#endpoints_connectors_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1697
+ @api_client.config.logger.debug "API called: EndpointsApi#endpoints_agents_psso_ise_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1686
1698
  end
1687
1699
  return data, status_code, headers
1688
1700
  end
1689
1701
 
1690
- # Get all creatable types
1702
+ # Mixin to add a used_by endpoint to return a list of all objects using this object
1703
+ # @param uuid [String] A UUID string identifying this Apple Independent Secure Enclave.
1704
+ # @param apple_independent_secure_enclave_request [AppleIndependentSecureEnclaveRequest]
1691
1705
  # @param [Hash] opts the optional parameters
1692
- # @return [Array<TypeCreate>]
1693
- def endpoints_connectors_types_list(opts = {})
1694
- data, _status_code, _headers = endpoints_connectors_types_list_with_http_info(opts)
1706
+ # @return [AppleIndependentSecureEnclave]
1707
+ def endpoints_agents_psso_ise_update(uuid, apple_independent_secure_enclave_request, opts = {})
1708
+ data, _status_code, _headers = endpoints_agents_psso_ise_update_with_http_info(uuid, apple_independent_secure_enclave_request, opts)
1695
1709
  data
1696
1710
  end
1697
1711
 
1698
- # Get all creatable types
1712
+ # Mixin to add a used_by endpoint to return a list of all objects using this object
1713
+ # @param uuid [String] A UUID string identifying this Apple Independent Secure Enclave.
1714
+ # @param apple_independent_secure_enclave_request [AppleIndependentSecureEnclaveRequest]
1699
1715
  # @param [Hash] opts the optional parameters
1700
- # @return [Array<(Array<TypeCreate>, Integer, Hash)>] Array<TypeCreate> data, response status code and response headers
1701
- def endpoints_connectors_types_list_with_http_info(opts = {})
1716
+ # @return [Array<(AppleIndependentSecureEnclave, Integer, Hash)>] AppleIndependentSecureEnclave data, response status code and response headers
1717
+ def endpoints_agents_psso_ise_update_with_http_info(uuid, apple_independent_secure_enclave_request, opts = {})
1702
1718
  if @api_client.config.debugging
1703
- @api_client.config.logger.debug 'Calling API: EndpointsApi.endpoints_connectors_types_list ...'
1719
+ @api_client.config.logger.debug 'Calling API: EndpointsApi.endpoints_agents_psso_ise_update ...'
1720
+ end
1721
+ # verify the required parameter 'uuid' is set
1722
+ if @api_client.config.client_side_validation && uuid.nil?
1723
+ fail ArgumentError, "Missing the required parameter 'uuid' when calling EndpointsApi.endpoints_agents_psso_ise_update"
1724
+ end
1725
+ # verify the required parameter 'apple_independent_secure_enclave_request' is set
1726
+ if @api_client.config.client_side_validation && apple_independent_secure_enclave_request.nil?
1727
+ fail ArgumentError, "Missing the required parameter 'apple_independent_secure_enclave_request' when calling EndpointsApi.endpoints_agents_psso_ise_update"
1704
1728
  end
1705
1729
  # resource path
1706
- local_var_path = '/endpoints/connectors/types/'
1730
+ local_var_path = '/endpoints/agents/psso/ise/{uuid}/'.sub('{uuid}', CGI.escape(uuid.to_s))
1707
1731
 
1708
1732
  # query parameters
1709
1733
  query_params = opts[:query_params] || {}
@@ -1712,21 +1736,26 @@ module Authentik::Api
1712
1736
  header_params = opts[:header_params] || {}
1713
1737
  # HTTP header 'Accept' (if needed)
1714
1738
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1739
+ # HTTP header 'Content-Type'
1740
+ content_type = @api_client.select_header_content_type(['application/json'])
1741
+ if !content_type.nil?
1742
+ header_params['Content-Type'] = content_type
1743
+ end
1715
1744
 
1716
1745
  # form parameters
1717
1746
  form_params = opts[:form_params] || {}
1718
1747
 
1719
1748
  # http body (model)
1720
- post_body = opts[:debug_body]
1749
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(apple_independent_secure_enclave_request)
1721
1750
 
1722
1751
  # return_type
1723
- return_type = opts[:debug_return_type] || 'Array<TypeCreate>'
1752
+ return_type = opts[:debug_return_type] || 'AppleIndependentSecureEnclave'
1724
1753
 
1725
1754
  # auth_names
1726
1755
  auth_names = opts[:debug_auth_names] || ['authentik']
1727
1756
 
1728
1757
  new_options = opts.merge(
1729
- :operation => :"EndpointsApi.endpoints_connectors_types_list",
1758
+ :operation => :"EndpointsApi.endpoints_agents_psso_ise_update",
1730
1759
  :header_params => header_params,
1731
1760
  :query_params => query_params,
1732
1761
  :form_params => form_params,
@@ -1735,36 +1764,36 @@ module Authentik::Api
1735
1764
  :return_type => return_type
1736
1765
  )
1737
1766
 
1738
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1767
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
1739
1768
  if @api_client.config.debugging
1740
- @api_client.config.logger.debug "API called: EndpointsApi#endpoints_connectors_types_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1769
+ @api_client.config.logger.debug "API called: EndpointsApi#endpoints_agents_psso_ise_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1741
1770
  end
1742
1771
  return data, status_code, headers
1743
1772
  end
1744
1773
 
1745
1774
  # Get a list of all objects that use this object
1746
- # @param connector_uuid [String] A UUID string identifying this connector.
1775
+ # @param uuid [String] A UUID string identifying this Apple Independent Secure Enclave.
1747
1776
  # @param [Hash] opts the optional parameters
1748
1777
  # @return [Array<UsedBy>]
1749
- def endpoints_connectors_used_by_list(connector_uuid, opts = {})
1750
- data, _status_code, _headers = endpoints_connectors_used_by_list_with_http_info(connector_uuid, opts)
1778
+ def endpoints_agents_psso_ise_used_by_list(uuid, opts = {})
1779
+ data, _status_code, _headers = endpoints_agents_psso_ise_used_by_list_with_http_info(uuid, opts)
1751
1780
  data
1752
1781
  end
1753
1782
 
1754
1783
  # Get a list of all objects that use this object
1755
- # @param connector_uuid [String] A UUID string identifying this connector.
1784
+ # @param uuid [String] A UUID string identifying this Apple Independent Secure Enclave.
1756
1785
  # @param [Hash] opts the optional parameters
1757
1786
  # @return [Array<(Array<UsedBy>, Integer, Hash)>] Array<UsedBy> data, response status code and response headers
1758
- def endpoints_connectors_used_by_list_with_http_info(connector_uuid, opts = {})
1787
+ def endpoints_agents_psso_ise_used_by_list_with_http_info(uuid, opts = {})
1759
1788
  if @api_client.config.debugging
1760
- @api_client.config.logger.debug 'Calling API: EndpointsApi.endpoints_connectors_used_by_list ...'
1789
+ @api_client.config.logger.debug 'Calling API: EndpointsApi.endpoints_agents_psso_ise_used_by_list ...'
1761
1790
  end
1762
- # verify the required parameter 'connector_uuid' is set
1763
- if @api_client.config.client_side_validation && connector_uuid.nil?
1764
- fail ArgumentError, "Missing the required parameter 'connector_uuid' when calling EndpointsApi.endpoints_connectors_used_by_list"
1791
+ # verify the required parameter 'uuid' is set
1792
+ if @api_client.config.client_side_validation && uuid.nil?
1793
+ fail ArgumentError, "Missing the required parameter 'uuid' when calling EndpointsApi.endpoints_agents_psso_ise_used_by_list"
1765
1794
  end
1766
1795
  # resource path
1767
- local_var_path = '/endpoints/connectors/{connector_uuid}/used_by/'.sub('{' + 'connector_uuid' + '}', CGI.escape(connector_uuid.to_s))
1796
+ local_var_path = '/endpoints/agents/psso/ise/{uuid}/used_by/'.sub('{uuid}', CGI.escape(uuid.to_s))
1768
1797
 
1769
1798
  # query parameters
1770
1799
  query_params = opts[:query_params] || {}
@@ -1787,7 +1816,7 @@ module Authentik::Api
1787
1816
  auth_names = opts[:debug_auth_names] || ['authentik']
1788
1817
 
1789
1818
  new_options = opts.merge(
1790
- :operation => :"EndpointsApi.endpoints_connectors_used_by_list",
1819
+ :operation => :"EndpointsApi.endpoints_agents_psso_ise_used_by_list",
1791
1820
  :header_params => header_params,
1792
1821
  :query_params => query_params,
1793
1822
  :form_params => form_params,
@@ -1798,34 +1827,32 @@ module Authentik::Api
1798
1827
 
1799
1828
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1800
1829
  if @api_client.config.debugging
1801
- @api_client.config.logger.debug "API called: EndpointsApi#endpoints_connectors_used_by_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1830
+ @api_client.config.logger.debug "API called: EndpointsApi#endpoints_agents_psso_ise_used_by_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1802
1831
  end
1803
1832
  return data, status_code, headers
1804
1833
  end
1805
1834
 
1806
- # DeviceAccessGroup Viewset
1807
- # @param device_access_group_request [DeviceAccessGroupRequest]
1835
+ # @param agent_psso_device_registration_request [AgentPSSODeviceRegistrationRequest]
1808
1836
  # @param [Hash] opts the optional parameters
1809
- # @return [DeviceAccessGroup]
1810
- def endpoints_device_access_groups_create(device_access_group_request, opts = {})
1811
- data, _status_code, _headers = endpoints_device_access_groups_create_with_http_info(device_access_group_request, opts)
1837
+ # @return [AgentPSSODeviceRegistrationResponse]
1838
+ def endpoints_agents_psso_register_device_create(agent_psso_device_registration_request, opts = {})
1839
+ data, _status_code, _headers = endpoints_agents_psso_register_device_create_with_http_info(agent_psso_device_registration_request, opts)
1812
1840
  data
1813
1841
  end
1814
1842
 
1815
- # DeviceAccessGroup Viewset
1816
- # @param device_access_group_request [DeviceAccessGroupRequest]
1843
+ # @param agent_psso_device_registration_request [AgentPSSODeviceRegistrationRequest]
1817
1844
  # @param [Hash] opts the optional parameters
1818
- # @return [Array<(DeviceAccessGroup, Integer, Hash)>] DeviceAccessGroup data, response status code and response headers
1819
- def endpoints_device_access_groups_create_with_http_info(device_access_group_request, opts = {})
1845
+ # @return [Array<(AgentPSSODeviceRegistrationResponse, Integer, Hash)>] AgentPSSODeviceRegistrationResponse data, response status code and response headers
1846
+ def endpoints_agents_psso_register_device_create_with_http_info(agent_psso_device_registration_request, opts = {})
1820
1847
  if @api_client.config.debugging
1821
- @api_client.config.logger.debug 'Calling API: EndpointsApi.endpoints_device_access_groups_create ...'
1848
+ @api_client.config.logger.debug 'Calling API: EndpointsApi.endpoints_agents_psso_register_device_create ...'
1822
1849
  end
1823
- # verify the required parameter 'device_access_group_request' is set
1824
- if @api_client.config.client_side_validation && device_access_group_request.nil?
1825
- fail ArgumentError, "Missing the required parameter 'device_access_group_request' when calling EndpointsApi.endpoints_device_access_groups_create"
1850
+ # verify the required parameter 'agent_psso_device_registration_request' is set
1851
+ if @api_client.config.client_side_validation && agent_psso_device_registration_request.nil?
1852
+ fail ArgumentError, "Missing the required parameter 'agent_psso_device_registration_request' when calling EndpointsApi.endpoints_agents_psso_register_device_create"
1826
1853
  end
1827
1854
  # resource path
1828
- local_var_path = '/endpoints/device_access_groups/'
1855
+ local_var_path = '/endpoints/agents/psso/register/device/'
1829
1856
 
1830
1857
  # query parameters
1831
1858
  query_params = opts[:query_params] || {}
@@ -1844,16 +1871,16 @@ module Authentik::Api
1844
1871
  form_params = opts[:form_params] || {}
1845
1872
 
1846
1873
  # http body (model)
1847
- post_body = opts[:debug_body] || @api_client.object_to_http_body(device_access_group_request)
1874
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(agent_psso_device_registration_request)
1848
1875
 
1849
1876
  # return_type
1850
- return_type = opts[:debug_return_type] || 'DeviceAccessGroup'
1877
+ return_type = opts[:debug_return_type] || 'AgentPSSODeviceRegistrationResponse'
1851
1878
 
1852
1879
  # auth_names
1853
- auth_names = opts[:debug_auth_names] || ['authentik']
1880
+ auth_names = opts[:debug_auth_names] || []
1854
1881
 
1855
1882
  new_options = opts.merge(
1856
- :operation => :"EndpointsApi.endpoints_device_access_groups_create",
1883
+ :operation => :"EndpointsApi.endpoints_agents_psso_register_device_create",
1857
1884
  :header_params => header_params,
1858
1885
  :query_params => query_params,
1859
1886
  :form_params => form_params,
@@ -1864,34 +1891,32 @@ module Authentik::Api
1864
1891
 
1865
1892
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1866
1893
  if @api_client.config.debugging
1867
- @api_client.config.logger.debug "API called: EndpointsApi#endpoints_device_access_groups_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1894
+ @api_client.config.logger.debug "API called: EndpointsApi#endpoints_agents_psso_register_device_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1868
1895
  end
1869
1896
  return data, status_code, headers
1870
1897
  end
1871
1898
 
1872
- # DeviceAccessGroup Viewset
1873
- # @param pbm_uuid [String] A UUID string identifying this Device access group.
1899
+ # @param agent_psso_user_registration_request [AgentPSSOUserRegistrationRequest]
1874
1900
  # @param [Hash] opts the optional parameters
1875
- # @return [nil]
1876
- def endpoints_device_access_groups_destroy(pbm_uuid, opts = {})
1877
- endpoints_device_access_groups_destroy_with_http_info(pbm_uuid, opts)
1878
- nil
1901
+ # @return [UserSelf]
1902
+ def endpoints_agents_psso_register_user_create(agent_psso_user_registration_request, opts = {})
1903
+ data, _status_code, _headers = endpoints_agents_psso_register_user_create_with_http_info(agent_psso_user_registration_request, opts)
1904
+ data
1879
1905
  end
1880
1906
 
1881
- # DeviceAccessGroup Viewset
1882
- # @param pbm_uuid [String] A UUID string identifying this Device access group.
1907
+ # @param agent_psso_user_registration_request [AgentPSSOUserRegistrationRequest]
1883
1908
  # @param [Hash] opts the optional parameters
1884
- # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
1885
- def endpoints_device_access_groups_destroy_with_http_info(pbm_uuid, opts = {})
1909
+ # @return [Array<(UserSelf, Integer, Hash)>] UserSelf data, response status code and response headers
1910
+ def endpoints_agents_psso_register_user_create_with_http_info(agent_psso_user_registration_request, opts = {})
1886
1911
  if @api_client.config.debugging
1887
- @api_client.config.logger.debug 'Calling API: EndpointsApi.endpoints_device_access_groups_destroy ...'
1912
+ @api_client.config.logger.debug 'Calling API: EndpointsApi.endpoints_agents_psso_register_user_create ...'
1888
1913
  end
1889
- # verify the required parameter 'pbm_uuid' is set
1890
- if @api_client.config.client_side_validation && pbm_uuid.nil?
1891
- fail ArgumentError, "Missing the required parameter 'pbm_uuid' when calling EndpointsApi.endpoints_device_access_groups_destroy"
1914
+ # verify the required parameter 'agent_psso_user_registration_request' is set
1915
+ if @api_client.config.client_side_validation && agent_psso_user_registration_request.nil?
1916
+ fail ArgumentError, "Missing the required parameter 'agent_psso_user_registration_request' when calling EndpointsApi.endpoints_agents_psso_register_user_create"
1892
1917
  end
1893
1918
  # resource path
1894
- local_var_path = '/endpoints/device_access_groups/{pbm_uuid}/'.sub('{' + 'pbm_uuid' + '}', CGI.escape(pbm_uuid.to_s))
1919
+ local_var_path = '/endpoints/agents/psso/register/user/'
1895
1920
 
1896
1921
  # query parameters
1897
1922
  query_params = opts[:query_params] || {}
@@ -1900,21 +1925,26 @@ module Authentik::Api
1900
1925
  header_params = opts[:header_params] || {}
1901
1926
  # HTTP header 'Accept' (if needed)
1902
1927
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1928
+ # HTTP header 'Content-Type'
1929
+ content_type = @api_client.select_header_content_type(['application/json'])
1930
+ if !content_type.nil?
1931
+ header_params['Content-Type'] = content_type
1932
+ end
1903
1933
 
1904
1934
  # form parameters
1905
1935
  form_params = opts[:form_params] || {}
1906
1936
 
1907
1937
  # http body (model)
1908
- post_body = opts[:debug_body]
1938
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(agent_psso_user_registration_request)
1909
1939
 
1910
1940
  # return_type
1911
- return_type = opts[:debug_return_type]
1941
+ return_type = opts[:debug_return_type] || 'UserSelf'
1912
1942
 
1913
1943
  # auth_names
1914
- auth_names = opts[:debug_auth_names] || ['authentik']
1944
+ auth_names = opts[:debug_auth_names] || []
1915
1945
 
1916
1946
  new_options = opts.merge(
1917
- :operation => :"EndpointsApi.endpoints_device_access_groups_destroy",
1947
+ :operation => :"EndpointsApi.endpoints_agents_psso_register_user_create",
1918
1948
  :header_params => header_params,
1919
1949
  :query_params => query_params,
1920
1950
  :form_params => form_params,
@@ -1923,51 +1953,39 @@ module Authentik::Api
1923
1953
  :return_type => return_type
1924
1954
  )
1925
1955
 
1926
- data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
1956
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1927
1957
  if @api_client.config.debugging
1928
- @api_client.config.logger.debug "API called: EndpointsApi#endpoints_device_access_groups_destroy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1958
+ @api_client.config.logger.debug "API called: EndpointsApi#endpoints_agents_psso_register_user_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1929
1959
  end
1930
1960
  return data, status_code, headers
1931
1961
  end
1932
1962
 
1933
- # DeviceAccessGroup Viewset
1963
+ # Connector Viewset
1964
+ # @param connector_uuid [String] A UUID string identifying this connector.
1934
1965
  # @param [Hash] opts the optional parameters
1935
- # @option opts [String] :name
1936
- # @option opts [String] :ordering Which field to use when ordering the results.
1937
- # @option opts [Integer] :page A page number within the paginated result set.
1938
- # @option opts [Integer] :page_size Number of results to return per page.
1939
- # @option opts [String] :pbm_uuid
1940
- # @option opts [String] :search A search term.
1941
- # @return [PaginatedDeviceAccessGroupList]
1942
- def endpoints_device_access_groups_list(opts = {})
1943
- data, _status_code, _headers = endpoints_device_access_groups_list_with_http_info(opts)
1944
- data
1966
+ # @return [nil]
1967
+ def endpoints_connectors_destroy(connector_uuid, opts = {})
1968
+ endpoints_connectors_destroy_with_http_info(connector_uuid, opts)
1969
+ nil
1945
1970
  end
1946
1971
 
1947
- # DeviceAccessGroup Viewset
1972
+ # Connector Viewset
1973
+ # @param connector_uuid [String] A UUID string identifying this connector.
1948
1974
  # @param [Hash] opts the optional parameters
1949
- # @option opts [String] :name
1950
- # @option opts [String] :ordering Which field to use when ordering the results.
1951
- # @option opts [Integer] :page A page number within the paginated result set.
1952
- # @option opts [Integer] :page_size Number of results to return per page.
1953
- # @option opts [String] :pbm_uuid
1954
- # @option opts [String] :search A search term.
1955
- # @return [Array<(PaginatedDeviceAccessGroupList, Integer, Hash)>] PaginatedDeviceAccessGroupList data, response status code and response headers
1956
- def endpoints_device_access_groups_list_with_http_info(opts = {})
1975
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
1976
+ def endpoints_connectors_destroy_with_http_info(connector_uuid, opts = {})
1957
1977
  if @api_client.config.debugging
1958
- @api_client.config.logger.debug 'Calling API: EndpointsApi.endpoints_device_access_groups_list ...'
1978
+ @api_client.config.logger.debug 'Calling API: EndpointsApi.endpoints_connectors_destroy ...'
1979
+ end
1980
+ # verify the required parameter 'connector_uuid' is set
1981
+ if @api_client.config.client_side_validation && connector_uuid.nil?
1982
+ fail ArgumentError, "Missing the required parameter 'connector_uuid' when calling EndpointsApi.endpoints_connectors_destroy"
1959
1983
  end
1960
1984
  # resource path
1961
- local_var_path = '/endpoints/device_access_groups/'
1985
+ local_var_path = '/endpoints/connectors/{connector_uuid}/'.sub('{connector_uuid}', CGI.escape(connector_uuid.to_s))
1962
1986
 
1963
1987
  # query parameters
1964
1988
  query_params = opts[:query_params] || {}
1965
- query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
1966
- query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
1967
- query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
1968
- query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
1969
- query_params[:'pbm_uuid'] = opts[:'pbm_uuid'] if !opts[:'pbm_uuid'].nil?
1970
- query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
1971
1989
 
1972
1990
  # header parameters
1973
1991
  header_params = opts[:header_params] || {}
@@ -1981,13 +1999,13 @@ module Authentik::Api
1981
1999
  post_body = opts[:debug_body]
1982
2000
 
1983
2001
  # return_type
1984
- return_type = opts[:debug_return_type] || 'PaginatedDeviceAccessGroupList'
2002
+ return_type = opts[:debug_return_type]
1985
2003
 
1986
2004
  # auth_names
1987
2005
  auth_names = opts[:debug_auth_names] || ['authentik']
1988
2006
 
1989
2007
  new_options = opts.merge(
1990
- :operation => :"EndpointsApi.endpoints_device_access_groups_list",
2008
+ :operation => :"EndpointsApi.endpoints_connectors_destroy",
1991
2009
  :header_params => header_params,
1992
2010
  :query_params => query_params,
1993
2011
  :form_params => form_params,
@@ -1996,66 +2014,65 @@ module Authentik::Api
1996
2014
  :return_type => return_type
1997
2015
  )
1998
2016
 
1999
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2017
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
2000
2018
  if @api_client.config.debugging
2001
- @api_client.config.logger.debug "API called: EndpointsApi#endpoints_device_access_groups_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2019
+ @api_client.config.logger.debug "API called: EndpointsApi#endpoints_connectors_destroy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2002
2020
  end
2003
2021
  return data, status_code, headers
2004
2022
  end
2005
2023
 
2006
- # DeviceAccessGroup Viewset
2007
- # @param pbm_uuid [String] A UUID string identifying this Device access group.
2024
+ # Connector Viewset
2008
2025
  # @param [Hash] opts the optional parameters
2009
- # @option opts [PatchedDeviceAccessGroupRequest] :patched_device_access_group_request
2010
- # @return [DeviceAccessGroup]
2011
- def endpoints_device_access_groups_partial_update(pbm_uuid, opts = {})
2012
- data, _status_code, _headers = endpoints_device_access_groups_partial_update_with_http_info(pbm_uuid, opts)
2026
+ # @option opts [String] :ordering Which field to use when ordering the results.
2027
+ # @option opts [Integer] :page A page number within the paginated result set.
2028
+ # @option opts [Integer] :page_size Number of results to return per page.
2029
+ # @option opts [String] :search A search term.
2030
+ # @return [PaginatedConnectorList]
2031
+ def endpoints_connectors_list(opts = {})
2032
+ data, _status_code, _headers = endpoints_connectors_list_with_http_info(opts)
2013
2033
  data
2014
2034
  end
2015
2035
 
2016
- # DeviceAccessGroup Viewset
2017
- # @param pbm_uuid [String] A UUID string identifying this Device access group.
2036
+ # Connector Viewset
2018
2037
  # @param [Hash] opts the optional parameters
2019
- # @option opts [PatchedDeviceAccessGroupRequest] :patched_device_access_group_request
2020
- # @return [Array<(DeviceAccessGroup, Integer, Hash)>] DeviceAccessGroup data, response status code and response headers
2021
- def endpoints_device_access_groups_partial_update_with_http_info(pbm_uuid, opts = {})
2038
+ # @option opts [String] :ordering Which field to use when ordering the results.
2039
+ # @option opts [Integer] :page A page number within the paginated result set.
2040
+ # @option opts [Integer] :page_size Number of results to return per page.
2041
+ # @option opts [String] :search A search term.
2042
+ # @return [Array<(PaginatedConnectorList, Integer, Hash)>] PaginatedConnectorList data, response status code and response headers
2043
+ def endpoints_connectors_list_with_http_info(opts = {})
2022
2044
  if @api_client.config.debugging
2023
- @api_client.config.logger.debug 'Calling API: EndpointsApi.endpoints_device_access_groups_partial_update ...'
2024
- end
2025
- # verify the required parameter 'pbm_uuid' is set
2026
- if @api_client.config.client_side_validation && pbm_uuid.nil?
2027
- fail ArgumentError, "Missing the required parameter 'pbm_uuid' when calling EndpointsApi.endpoints_device_access_groups_partial_update"
2045
+ @api_client.config.logger.debug 'Calling API: EndpointsApi.endpoints_connectors_list ...'
2028
2046
  end
2029
2047
  # resource path
2030
- local_var_path = '/endpoints/device_access_groups/{pbm_uuid}/'.sub('{' + 'pbm_uuid' + '}', CGI.escape(pbm_uuid.to_s))
2048
+ local_var_path = '/endpoints/connectors/'
2031
2049
 
2032
2050
  # query parameters
2033
2051
  query_params = opts[:query_params] || {}
2052
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
2053
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
2054
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
2055
+ query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
2034
2056
 
2035
2057
  # header parameters
2036
2058
  header_params = opts[:header_params] || {}
2037
2059
  # HTTP header 'Accept' (if needed)
2038
2060
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2039
- # HTTP header 'Content-Type'
2040
- content_type = @api_client.select_header_content_type(['application/json'])
2041
- if !content_type.nil?
2042
- header_params['Content-Type'] = content_type
2043
- end
2044
2061
 
2045
2062
  # form parameters
2046
2063
  form_params = opts[:form_params] || {}
2047
2064
 
2048
2065
  # http body (model)
2049
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'patched_device_access_group_request'])
2066
+ post_body = opts[:debug_body]
2050
2067
 
2051
2068
  # return_type
2052
- return_type = opts[:debug_return_type] || 'DeviceAccessGroup'
2069
+ return_type = opts[:debug_return_type] || 'PaginatedConnectorList'
2053
2070
 
2054
2071
  # auth_names
2055
2072
  auth_names = opts[:debug_auth_names] || ['authentik']
2056
2073
 
2057
2074
  new_options = opts.merge(
2058
- :operation => :"EndpointsApi.endpoints_device_access_groups_partial_update",
2075
+ :operation => :"EndpointsApi.endpoints_connectors_list",
2059
2076
  :header_params => header_params,
2060
2077
  :query_params => query_params,
2061
2078
  :form_params => form_params,
@@ -2064,36 +2081,36 @@ module Authentik::Api
2064
2081
  :return_type => return_type
2065
2082
  )
2066
2083
 
2067
- data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
2084
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2068
2085
  if @api_client.config.debugging
2069
- @api_client.config.logger.debug "API called: EndpointsApi#endpoints_device_access_groups_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2086
+ @api_client.config.logger.debug "API called: EndpointsApi#endpoints_connectors_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2070
2087
  end
2071
2088
  return data, status_code, headers
2072
2089
  end
2073
2090
 
2074
- # DeviceAccessGroup Viewset
2075
- # @param pbm_uuid [String] A UUID string identifying this Device access group.
2091
+ # Connector Viewset
2092
+ # @param connector_uuid [String] A UUID string identifying this connector.
2076
2093
  # @param [Hash] opts the optional parameters
2077
- # @return [DeviceAccessGroup]
2078
- def endpoints_device_access_groups_retrieve(pbm_uuid, opts = {})
2079
- data, _status_code, _headers = endpoints_device_access_groups_retrieve_with_http_info(pbm_uuid, opts)
2094
+ # @return [Connector]
2095
+ def endpoints_connectors_retrieve(connector_uuid, opts = {})
2096
+ data, _status_code, _headers = endpoints_connectors_retrieve_with_http_info(connector_uuid, opts)
2080
2097
  data
2081
2098
  end
2082
2099
 
2083
- # DeviceAccessGroup Viewset
2084
- # @param pbm_uuid [String] A UUID string identifying this Device access group.
2100
+ # Connector Viewset
2101
+ # @param connector_uuid [String] A UUID string identifying this connector.
2085
2102
  # @param [Hash] opts the optional parameters
2086
- # @return [Array<(DeviceAccessGroup, Integer, Hash)>] DeviceAccessGroup data, response status code and response headers
2087
- def endpoints_device_access_groups_retrieve_with_http_info(pbm_uuid, opts = {})
2103
+ # @return [Array<(Connector, Integer, Hash)>] Connector data, response status code and response headers
2104
+ def endpoints_connectors_retrieve_with_http_info(connector_uuid, opts = {})
2088
2105
  if @api_client.config.debugging
2089
- @api_client.config.logger.debug 'Calling API: EndpointsApi.endpoints_device_access_groups_retrieve ...'
2106
+ @api_client.config.logger.debug 'Calling API: EndpointsApi.endpoints_connectors_retrieve ...'
2090
2107
  end
2091
- # verify the required parameter 'pbm_uuid' is set
2092
- if @api_client.config.client_side_validation && pbm_uuid.nil?
2093
- fail ArgumentError, "Missing the required parameter 'pbm_uuid' when calling EndpointsApi.endpoints_device_access_groups_retrieve"
2108
+ # verify the required parameter 'connector_uuid' is set
2109
+ if @api_client.config.client_side_validation && connector_uuid.nil?
2110
+ fail ArgumentError, "Missing the required parameter 'connector_uuid' when calling EndpointsApi.endpoints_connectors_retrieve"
2094
2111
  end
2095
2112
  # resource path
2096
- local_var_path = '/endpoints/device_access_groups/{pbm_uuid}/'.sub('{' + 'pbm_uuid' + '}', CGI.escape(pbm_uuid.to_s))
2113
+ local_var_path = '/endpoints/connectors/{connector_uuid}/'.sub('{connector_uuid}', CGI.escape(connector_uuid.to_s))
2097
2114
 
2098
2115
  # query parameters
2099
2116
  query_params = opts[:query_params] || {}
@@ -2110,13 +2127,13 @@ module Authentik::Api
2110
2127
  post_body = opts[:debug_body]
2111
2128
 
2112
2129
  # return_type
2113
- return_type = opts[:debug_return_type] || 'DeviceAccessGroup'
2130
+ return_type = opts[:debug_return_type] || 'Connector'
2114
2131
 
2115
2132
  # auth_names
2116
2133
  auth_names = opts[:debug_auth_names] || ['authentik']
2117
2134
 
2118
2135
  new_options = opts.merge(
2119
- :operation => :"EndpointsApi.endpoints_device_access_groups_retrieve",
2136
+ :operation => :"EndpointsApi.endpoints_connectors_retrieve",
2120
2137
  :header_params => header_params,
2121
2138
  :query_params => query_params,
2122
2139
  :form_params => form_params,
@@ -2127,40 +2144,28 @@ module Authentik::Api
2127
2144
 
2128
2145
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2129
2146
  if @api_client.config.debugging
2130
- @api_client.config.logger.debug "API called: EndpointsApi#endpoints_device_access_groups_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2147
+ @api_client.config.logger.debug "API called: EndpointsApi#endpoints_connectors_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2131
2148
  end
2132
2149
  return data, status_code, headers
2133
2150
  end
2134
2151
 
2135
- # DeviceAccessGroup Viewset
2136
- # @param pbm_uuid [String] A UUID string identifying this Device access group.
2137
- # @param device_access_group_request [DeviceAccessGroupRequest]
2152
+ # Get all creatable types
2138
2153
  # @param [Hash] opts the optional parameters
2139
- # @return [DeviceAccessGroup]
2140
- def endpoints_device_access_groups_update(pbm_uuid, device_access_group_request, opts = {})
2141
- data, _status_code, _headers = endpoints_device_access_groups_update_with_http_info(pbm_uuid, device_access_group_request, opts)
2154
+ # @return [Array<TypeCreate>]
2155
+ def endpoints_connectors_types_list(opts = {})
2156
+ data, _status_code, _headers = endpoints_connectors_types_list_with_http_info(opts)
2142
2157
  data
2143
2158
  end
2144
2159
 
2145
- # DeviceAccessGroup Viewset
2146
- # @param pbm_uuid [String] A UUID string identifying this Device access group.
2147
- # @param device_access_group_request [DeviceAccessGroupRequest]
2160
+ # Get all creatable types
2148
2161
  # @param [Hash] opts the optional parameters
2149
- # @return [Array<(DeviceAccessGroup, Integer, Hash)>] DeviceAccessGroup data, response status code and response headers
2150
- def endpoints_device_access_groups_update_with_http_info(pbm_uuid, device_access_group_request, opts = {})
2162
+ # @return [Array<(Array<TypeCreate>, Integer, Hash)>] Array<TypeCreate> data, response status code and response headers
2163
+ def endpoints_connectors_types_list_with_http_info(opts = {})
2151
2164
  if @api_client.config.debugging
2152
- @api_client.config.logger.debug 'Calling API: EndpointsApi.endpoints_device_access_groups_update ...'
2153
- end
2154
- # verify the required parameter 'pbm_uuid' is set
2155
- if @api_client.config.client_side_validation && pbm_uuid.nil?
2156
- fail ArgumentError, "Missing the required parameter 'pbm_uuid' when calling EndpointsApi.endpoints_device_access_groups_update"
2157
- end
2158
- # verify the required parameter 'device_access_group_request' is set
2159
- if @api_client.config.client_side_validation && device_access_group_request.nil?
2160
- fail ArgumentError, "Missing the required parameter 'device_access_group_request' when calling EndpointsApi.endpoints_device_access_groups_update"
2165
+ @api_client.config.logger.debug 'Calling API: EndpointsApi.endpoints_connectors_types_list ...'
2161
2166
  end
2162
2167
  # resource path
2163
- local_var_path = '/endpoints/device_access_groups/{pbm_uuid}/'.sub('{' + 'pbm_uuid' + '}', CGI.escape(pbm_uuid.to_s))
2168
+ local_var_path = '/endpoints/connectors/types/'
2164
2169
 
2165
2170
  # query parameters
2166
2171
  query_params = opts[:query_params] || {}
@@ -2169,26 +2174,21 @@ module Authentik::Api
2169
2174
  header_params = opts[:header_params] || {}
2170
2175
  # HTTP header 'Accept' (if needed)
2171
2176
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2172
- # HTTP header 'Content-Type'
2173
- content_type = @api_client.select_header_content_type(['application/json'])
2174
- if !content_type.nil?
2175
- header_params['Content-Type'] = content_type
2176
- end
2177
2177
 
2178
2178
  # form parameters
2179
2179
  form_params = opts[:form_params] || {}
2180
2180
 
2181
2181
  # http body (model)
2182
- post_body = opts[:debug_body] || @api_client.object_to_http_body(device_access_group_request)
2182
+ post_body = opts[:debug_body]
2183
2183
 
2184
2184
  # return_type
2185
- return_type = opts[:debug_return_type] || 'DeviceAccessGroup'
2185
+ return_type = opts[:debug_return_type] || 'Array<TypeCreate>'
2186
2186
 
2187
2187
  # auth_names
2188
2188
  auth_names = opts[:debug_auth_names] || ['authentik']
2189
2189
 
2190
2190
  new_options = opts.merge(
2191
- :operation => :"EndpointsApi.endpoints_device_access_groups_update",
2191
+ :operation => :"EndpointsApi.endpoints_connectors_types_list",
2192
2192
  :header_params => header_params,
2193
2193
  :query_params => query_params,
2194
2194
  :form_params => form_params,
@@ -2197,36 +2197,36 @@ module Authentik::Api
2197
2197
  :return_type => return_type
2198
2198
  )
2199
2199
 
2200
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
2200
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2201
2201
  if @api_client.config.debugging
2202
- @api_client.config.logger.debug "API called: EndpointsApi#endpoints_device_access_groups_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2202
+ @api_client.config.logger.debug "API called: EndpointsApi#endpoints_connectors_types_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2203
2203
  end
2204
2204
  return data, status_code, headers
2205
2205
  end
2206
2206
 
2207
2207
  # Get a list of all objects that use this object
2208
- # @param pbm_uuid [String] A UUID string identifying this Device access group.
2208
+ # @param connector_uuid [String] A UUID string identifying this connector.
2209
2209
  # @param [Hash] opts the optional parameters
2210
2210
  # @return [Array<UsedBy>]
2211
- def endpoints_device_access_groups_used_by_list(pbm_uuid, opts = {})
2212
- data, _status_code, _headers = endpoints_device_access_groups_used_by_list_with_http_info(pbm_uuid, opts)
2211
+ def endpoints_connectors_used_by_list(connector_uuid, opts = {})
2212
+ data, _status_code, _headers = endpoints_connectors_used_by_list_with_http_info(connector_uuid, opts)
2213
2213
  data
2214
2214
  end
2215
2215
 
2216
2216
  # Get a list of all objects that use this object
2217
- # @param pbm_uuid [String] A UUID string identifying this Device access group.
2217
+ # @param connector_uuid [String] A UUID string identifying this connector.
2218
2218
  # @param [Hash] opts the optional parameters
2219
2219
  # @return [Array<(Array<UsedBy>, Integer, Hash)>] Array<UsedBy> data, response status code and response headers
2220
- def endpoints_device_access_groups_used_by_list_with_http_info(pbm_uuid, opts = {})
2220
+ def endpoints_connectors_used_by_list_with_http_info(connector_uuid, opts = {})
2221
2221
  if @api_client.config.debugging
2222
- @api_client.config.logger.debug 'Calling API: EndpointsApi.endpoints_device_access_groups_used_by_list ...'
2222
+ @api_client.config.logger.debug 'Calling API: EndpointsApi.endpoints_connectors_used_by_list ...'
2223
2223
  end
2224
- # verify the required parameter 'pbm_uuid' is set
2225
- if @api_client.config.client_side_validation && pbm_uuid.nil?
2226
- fail ArgumentError, "Missing the required parameter 'pbm_uuid' when calling EndpointsApi.endpoints_device_access_groups_used_by_list"
2224
+ # verify the required parameter 'connector_uuid' is set
2225
+ if @api_client.config.client_side_validation && connector_uuid.nil?
2226
+ fail ArgumentError, "Missing the required parameter 'connector_uuid' when calling EndpointsApi.endpoints_connectors_used_by_list"
2227
2227
  end
2228
2228
  # resource path
2229
- local_var_path = '/endpoints/device_access_groups/{pbm_uuid}/used_by/'.sub('{' + 'pbm_uuid' + '}', CGI.escape(pbm_uuid.to_s))
2229
+ local_var_path = '/endpoints/connectors/{connector_uuid}/used_by/'.sub('{connector_uuid}', CGI.escape(connector_uuid.to_s))
2230
2230
 
2231
2231
  # query parameters
2232
2232
  query_params = opts[:query_params] || {}
@@ -2249,7 +2249,7 @@ module Authentik::Api
2249
2249
  auth_names = opts[:debug_auth_names] || ['authentik']
2250
2250
 
2251
2251
  new_options = opts.merge(
2252
- :operation => :"EndpointsApi.endpoints_device_access_groups_used_by_list",
2252
+ :operation => :"EndpointsApi.endpoints_connectors_used_by_list",
2253
2253
  :header_params => header_params,
2254
2254
  :query_params => query_params,
2255
2255
  :form_params => form_params,
@@ -2260,34 +2260,34 @@ module Authentik::Api
2260
2260
 
2261
2261
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2262
2262
  if @api_client.config.debugging
2263
- @api_client.config.logger.debug "API called: EndpointsApi#endpoints_device_access_groups_used_by_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2263
+ @api_client.config.logger.debug "API called: EndpointsApi#endpoints_connectors_used_by_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2264
2264
  end
2265
2265
  return data, status_code, headers
2266
2266
  end
2267
2267
 
2268
- # PolicyBinding Viewset
2269
- # @param device_user_binding_request [DeviceUserBindingRequest]
2268
+ # DeviceAccessGroup Viewset
2269
+ # @param device_access_group_request [DeviceAccessGroupRequest]
2270
2270
  # @param [Hash] opts the optional parameters
2271
- # @return [DeviceUserBinding]
2272
- def endpoints_device_bindings_create(device_user_binding_request, opts = {})
2273
- data, _status_code, _headers = endpoints_device_bindings_create_with_http_info(device_user_binding_request, opts)
2271
+ # @return [DeviceAccessGroup]
2272
+ def endpoints_device_access_groups_create(device_access_group_request, opts = {})
2273
+ data, _status_code, _headers = endpoints_device_access_groups_create_with_http_info(device_access_group_request, opts)
2274
2274
  data
2275
2275
  end
2276
2276
 
2277
- # PolicyBinding Viewset
2278
- # @param device_user_binding_request [DeviceUserBindingRequest]
2277
+ # DeviceAccessGroup Viewset
2278
+ # @param device_access_group_request [DeviceAccessGroupRequest]
2279
2279
  # @param [Hash] opts the optional parameters
2280
- # @return [Array<(DeviceUserBinding, Integer, Hash)>] DeviceUserBinding data, response status code and response headers
2281
- def endpoints_device_bindings_create_with_http_info(device_user_binding_request, opts = {})
2280
+ # @return [Array<(DeviceAccessGroup, Integer, Hash)>] DeviceAccessGroup data, response status code and response headers
2281
+ def endpoints_device_access_groups_create_with_http_info(device_access_group_request, opts = {})
2282
2282
  if @api_client.config.debugging
2283
- @api_client.config.logger.debug 'Calling API: EndpointsApi.endpoints_device_bindings_create ...'
2283
+ @api_client.config.logger.debug 'Calling API: EndpointsApi.endpoints_device_access_groups_create ...'
2284
2284
  end
2285
- # verify the required parameter 'device_user_binding_request' is set
2286
- if @api_client.config.client_side_validation && device_user_binding_request.nil?
2287
- fail ArgumentError, "Missing the required parameter 'device_user_binding_request' when calling EndpointsApi.endpoints_device_bindings_create"
2285
+ # verify the required parameter 'device_access_group_request' is set
2286
+ if @api_client.config.client_side_validation && device_access_group_request.nil?
2287
+ fail ArgumentError, "Missing the required parameter 'device_access_group_request' when calling EndpointsApi.endpoints_device_access_groups_create"
2288
2288
  end
2289
2289
  # resource path
2290
- local_var_path = '/endpoints/device_bindings/'
2290
+ local_var_path = '/endpoints/device_access_groups/'
2291
2291
 
2292
2292
  # query parameters
2293
2293
  query_params = opts[:query_params] || {}
@@ -2306,16 +2306,16 @@ module Authentik::Api
2306
2306
  form_params = opts[:form_params] || {}
2307
2307
 
2308
2308
  # http body (model)
2309
- post_body = opts[:debug_body] || @api_client.object_to_http_body(device_user_binding_request)
2309
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(device_access_group_request)
2310
2310
 
2311
2311
  # return_type
2312
- return_type = opts[:debug_return_type] || 'DeviceUserBinding'
2312
+ return_type = opts[:debug_return_type] || 'DeviceAccessGroup'
2313
2313
 
2314
2314
  # auth_names
2315
2315
  auth_names = opts[:debug_auth_names] || ['authentik']
2316
2316
 
2317
2317
  new_options = opts.merge(
2318
- :operation => :"EndpointsApi.endpoints_device_bindings_create",
2318
+ :operation => :"EndpointsApi.endpoints_device_access_groups_create",
2319
2319
  :header_params => header_params,
2320
2320
  :query_params => query_params,
2321
2321
  :form_params => form_params,
@@ -2326,34 +2326,34 @@ module Authentik::Api
2326
2326
 
2327
2327
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2328
2328
  if @api_client.config.debugging
2329
- @api_client.config.logger.debug "API called: EndpointsApi#endpoints_device_bindings_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2329
+ @api_client.config.logger.debug "API called: EndpointsApi#endpoints_device_access_groups_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2330
2330
  end
2331
2331
  return data, status_code, headers
2332
2332
  end
2333
2333
 
2334
- # PolicyBinding Viewset
2335
- # @param policy_binding_uuid [String] A UUID string identifying this Device User binding.
2334
+ # DeviceAccessGroup Viewset
2335
+ # @param pbm_uuid [String] A UUID string identifying this Device access group.
2336
2336
  # @param [Hash] opts the optional parameters
2337
2337
  # @return [nil]
2338
- def endpoints_device_bindings_destroy(policy_binding_uuid, opts = {})
2339
- endpoints_device_bindings_destroy_with_http_info(policy_binding_uuid, opts)
2338
+ def endpoints_device_access_groups_destroy(pbm_uuid, opts = {})
2339
+ endpoints_device_access_groups_destroy_with_http_info(pbm_uuid, opts)
2340
2340
  nil
2341
2341
  end
2342
2342
 
2343
- # PolicyBinding Viewset
2344
- # @param policy_binding_uuid [String] A UUID string identifying this Device User binding.
2343
+ # DeviceAccessGroup Viewset
2344
+ # @param pbm_uuid [String] A UUID string identifying this Device access group.
2345
2345
  # @param [Hash] opts the optional parameters
2346
2346
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
2347
- def endpoints_device_bindings_destroy_with_http_info(policy_binding_uuid, opts = {})
2347
+ def endpoints_device_access_groups_destroy_with_http_info(pbm_uuid, opts = {})
2348
2348
  if @api_client.config.debugging
2349
- @api_client.config.logger.debug 'Calling API: EndpointsApi.endpoints_device_bindings_destroy ...'
2349
+ @api_client.config.logger.debug 'Calling API: EndpointsApi.endpoints_device_access_groups_destroy ...'
2350
2350
  end
2351
- # verify the required parameter 'policy_binding_uuid' is set
2352
- if @api_client.config.client_side_validation && policy_binding_uuid.nil?
2353
- fail ArgumentError, "Missing the required parameter 'policy_binding_uuid' when calling EndpointsApi.endpoints_device_bindings_destroy"
2351
+ # verify the required parameter 'pbm_uuid' is set
2352
+ if @api_client.config.client_side_validation && pbm_uuid.nil?
2353
+ fail ArgumentError, "Missing the required parameter 'pbm_uuid' when calling EndpointsApi.endpoints_device_access_groups_destroy"
2354
2354
  end
2355
2355
  # resource path
2356
- local_var_path = '/endpoints/device_bindings/{policy_binding_uuid}/'.sub('{' + 'policy_binding_uuid' + '}', CGI.escape(policy_binding_uuid.to_s))
2356
+ local_var_path = '/endpoints/device_access_groups/{pbm_uuid}/'.sub('{pbm_uuid}', CGI.escape(pbm_uuid.to_s))
2357
2357
 
2358
2358
  # query parameters
2359
2359
  query_params = opts[:query_params] || {}
@@ -2376,7 +2376,7 @@ module Authentik::Api
2376
2376
  auth_names = opts[:debug_auth_names] || ['authentik']
2377
2377
 
2378
2378
  new_options = opts.merge(
2379
- :operation => :"EndpointsApi.endpoints_device_bindings_destroy",
2379
+ :operation => :"EndpointsApi.endpoints_device_access_groups_destroy",
2380
2380
  :header_params => header_params,
2381
2381
  :query_params => query_params,
2382
2382
  :form_params => form_params,
@@ -2387,64 +2387,49 @@ module Authentik::Api
2387
2387
 
2388
2388
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
2389
2389
  if @api_client.config.debugging
2390
- @api_client.config.logger.debug "API called: EndpointsApi#endpoints_device_bindings_destroy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2390
+ @api_client.config.logger.debug "API called: EndpointsApi#endpoints_device_access_groups_destroy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2391
2391
  end
2392
2392
  return data, status_code, headers
2393
2393
  end
2394
2394
 
2395
- # PolicyBinding Viewset
2395
+ # DeviceAccessGroup Viewset
2396
2396
  # @param [Hash] opts the optional parameters
2397
- # @option opts [Boolean] :enabled
2398
- # @option opts [Integer] :order
2397
+ # @option opts [String] :name
2399
2398
  # @option opts [String] :ordering Which field to use when ordering the results.
2400
2399
  # @option opts [Integer] :page A page number within the paginated result set.
2401
2400
  # @option opts [Integer] :page_size Number of results to return per page.
2402
- # @option opts [String] :policy
2403
- # @option opts [Boolean] :policy__isnull
2401
+ # @option opts [String] :pbm_uuid
2404
2402
  # @option opts [String] :search A search term.
2405
- # @option opts [String] :target
2406
- # @option opts [Array<String>] :target_in
2407
- # @option opts [Integer] :timeout
2408
- # @return [PaginatedDeviceUserBindingList]
2409
- def endpoints_device_bindings_list(opts = {})
2410
- data, _status_code, _headers = endpoints_device_bindings_list_with_http_info(opts)
2403
+ # @return [PaginatedDeviceAccessGroupList]
2404
+ def endpoints_device_access_groups_list(opts = {})
2405
+ data, _status_code, _headers = endpoints_device_access_groups_list_with_http_info(opts)
2411
2406
  data
2412
2407
  end
2413
2408
 
2414
- # PolicyBinding Viewset
2409
+ # DeviceAccessGroup Viewset
2415
2410
  # @param [Hash] opts the optional parameters
2416
- # @option opts [Boolean] :enabled
2417
- # @option opts [Integer] :order
2411
+ # @option opts [String] :name
2418
2412
  # @option opts [String] :ordering Which field to use when ordering the results.
2419
2413
  # @option opts [Integer] :page A page number within the paginated result set.
2420
2414
  # @option opts [Integer] :page_size Number of results to return per page.
2421
- # @option opts [String] :policy
2422
- # @option opts [Boolean] :policy__isnull
2415
+ # @option opts [String] :pbm_uuid
2423
2416
  # @option opts [String] :search A search term.
2424
- # @option opts [String] :target
2425
- # @option opts [Array<String>] :target_in
2426
- # @option opts [Integer] :timeout
2427
- # @return [Array<(PaginatedDeviceUserBindingList, Integer, Hash)>] PaginatedDeviceUserBindingList data, response status code and response headers
2428
- def endpoints_device_bindings_list_with_http_info(opts = {})
2417
+ # @return [Array<(PaginatedDeviceAccessGroupList, Integer, Hash)>] PaginatedDeviceAccessGroupList data, response status code and response headers
2418
+ def endpoints_device_access_groups_list_with_http_info(opts = {})
2429
2419
  if @api_client.config.debugging
2430
- @api_client.config.logger.debug 'Calling API: EndpointsApi.endpoints_device_bindings_list ...'
2420
+ @api_client.config.logger.debug 'Calling API: EndpointsApi.endpoints_device_access_groups_list ...'
2431
2421
  end
2432
2422
  # resource path
2433
- local_var_path = '/endpoints/device_bindings/'
2423
+ local_var_path = '/endpoints/device_access_groups/'
2434
2424
 
2435
2425
  # query parameters
2436
2426
  query_params = opts[:query_params] || {}
2437
- query_params[:'enabled'] = opts[:'enabled'] if !opts[:'enabled'].nil?
2438
- query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
2427
+ query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
2439
2428
  query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
2440
2429
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
2441
2430
  query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
2442
- query_params[:'policy'] = opts[:'policy'] if !opts[:'policy'].nil?
2443
- query_params[:'policy__isnull'] = opts[:'policy__isnull'] if !opts[:'policy__isnull'].nil?
2431
+ query_params[:'pbm_uuid'] = opts[:'pbm_uuid'] if !opts[:'pbm_uuid'].nil?
2444
2432
  query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
2445
- query_params[:'target'] = opts[:'target'] if !opts[:'target'].nil?
2446
- query_params[:'target_in'] = @api_client.build_collection_param(opts[:'target_in'], :multi) if !opts[:'target_in'].nil?
2447
- query_params[:'timeout'] = opts[:'timeout'] if !opts[:'timeout'].nil?
2448
2433
 
2449
2434
  # header parameters
2450
2435
  header_params = opts[:header_params] || {}
@@ -2458,13 +2443,13 @@ module Authentik::Api
2458
2443
  post_body = opts[:debug_body]
2459
2444
 
2460
2445
  # return_type
2461
- return_type = opts[:debug_return_type] || 'PaginatedDeviceUserBindingList'
2446
+ return_type = opts[:debug_return_type] || 'PaginatedDeviceAccessGroupList'
2462
2447
 
2463
2448
  # auth_names
2464
2449
  auth_names = opts[:debug_auth_names] || ['authentik']
2465
2450
 
2466
2451
  new_options = opts.merge(
2467
- :operation => :"EndpointsApi.endpoints_device_bindings_list",
2452
+ :operation => :"EndpointsApi.endpoints_device_access_groups_list",
2468
2453
  :header_params => header_params,
2469
2454
  :query_params => query_params,
2470
2455
  :form_params => form_params,
@@ -2475,36 +2460,36 @@ module Authentik::Api
2475
2460
 
2476
2461
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2477
2462
  if @api_client.config.debugging
2478
- @api_client.config.logger.debug "API called: EndpointsApi#endpoints_device_bindings_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2463
+ @api_client.config.logger.debug "API called: EndpointsApi#endpoints_device_access_groups_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2479
2464
  end
2480
2465
  return data, status_code, headers
2481
2466
  end
2482
2467
 
2483
- # PolicyBinding Viewset
2484
- # @param policy_binding_uuid [String] A UUID string identifying this Device User binding.
2468
+ # DeviceAccessGroup Viewset
2469
+ # @param pbm_uuid [String] A UUID string identifying this Device access group.
2485
2470
  # @param [Hash] opts the optional parameters
2486
- # @option opts [PatchedDeviceUserBindingRequest] :patched_device_user_binding_request
2487
- # @return [DeviceUserBinding]
2488
- def endpoints_device_bindings_partial_update(policy_binding_uuid, opts = {})
2489
- data, _status_code, _headers = endpoints_device_bindings_partial_update_with_http_info(policy_binding_uuid, opts)
2471
+ # @option opts [PatchedDeviceAccessGroupRequest] :patched_device_access_group_request
2472
+ # @return [DeviceAccessGroup]
2473
+ def endpoints_device_access_groups_partial_update(pbm_uuid, opts = {})
2474
+ data, _status_code, _headers = endpoints_device_access_groups_partial_update_with_http_info(pbm_uuid, opts)
2490
2475
  data
2491
2476
  end
2492
2477
 
2493
- # PolicyBinding Viewset
2494
- # @param policy_binding_uuid [String] A UUID string identifying this Device User binding.
2478
+ # DeviceAccessGroup Viewset
2479
+ # @param pbm_uuid [String] A UUID string identifying this Device access group.
2495
2480
  # @param [Hash] opts the optional parameters
2496
- # @option opts [PatchedDeviceUserBindingRequest] :patched_device_user_binding_request
2497
- # @return [Array<(DeviceUserBinding, Integer, Hash)>] DeviceUserBinding data, response status code and response headers
2498
- def endpoints_device_bindings_partial_update_with_http_info(policy_binding_uuid, opts = {})
2481
+ # @option opts [PatchedDeviceAccessGroupRequest] :patched_device_access_group_request
2482
+ # @return [Array<(DeviceAccessGroup, Integer, Hash)>] DeviceAccessGroup data, response status code and response headers
2483
+ def endpoints_device_access_groups_partial_update_with_http_info(pbm_uuid, opts = {})
2499
2484
  if @api_client.config.debugging
2500
- @api_client.config.logger.debug 'Calling API: EndpointsApi.endpoints_device_bindings_partial_update ...'
2485
+ @api_client.config.logger.debug 'Calling API: EndpointsApi.endpoints_device_access_groups_partial_update ...'
2501
2486
  end
2502
- # verify the required parameter 'policy_binding_uuid' is set
2503
- if @api_client.config.client_side_validation && policy_binding_uuid.nil?
2504
- fail ArgumentError, "Missing the required parameter 'policy_binding_uuid' when calling EndpointsApi.endpoints_device_bindings_partial_update"
2487
+ # verify the required parameter 'pbm_uuid' is set
2488
+ if @api_client.config.client_side_validation && pbm_uuid.nil?
2489
+ fail ArgumentError, "Missing the required parameter 'pbm_uuid' when calling EndpointsApi.endpoints_device_access_groups_partial_update"
2505
2490
  end
2506
2491
  # resource path
2507
- local_var_path = '/endpoints/device_bindings/{policy_binding_uuid}/'.sub('{' + 'policy_binding_uuid' + '}', CGI.escape(policy_binding_uuid.to_s))
2492
+ local_var_path = '/endpoints/device_access_groups/{pbm_uuid}/'.sub('{pbm_uuid}', CGI.escape(pbm_uuid.to_s))
2508
2493
 
2509
2494
  # query parameters
2510
2495
  query_params = opts[:query_params] || {}
@@ -2523,16 +2508,16 @@ module Authentik::Api
2523
2508
  form_params = opts[:form_params] || {}
2524
2509
 
2525
2510
  # http body (model)
2526
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'patched_device_user_binding_request'])
2511
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'patched_device_access_group_request'])
2527
2512
 
2528
2513
  # return_type
2529
- return_type = opts[:debug_return_type] || 'DeviceUserBinding'
2514
+ return_type = opts[:debug_return_type] || 'DeviceAccessGroup'
2530
2515
 
2531
2516
  # auth_names
2532
2517
  auth_names = opts[:debug_auth_names] || ['authentik']
2533
2518
 
2534
2519
  new_options = opts.merge(
2535
- :operation => :"EndpointsApi.endpoints_device_bindings_partial_update",
2520
+ :operation => :"EndpointsApi.endpoints_device_access_groups_partial_update",
2536
2521
  :header_params => header_params,
2537
2522
  :query_params => query_params,
2538
2523
  :form_params => form_params,
@@ -2543,34 +2528,34 @@ module Authentik::Api
2543
2528
 
2544
2529
  data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
2545
2530
  if @api_client.config.debugging
2546
- @api_client.config.logger.debug "API called: EndpointsApi#endpoints_device_bindings_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2531
+ @api_client.config.logger.debug "API called: EndpointsApi#endpoints_device_access_groups_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2547
2532
  end
2548
2533
  return data, status_code, headers
2549
2534
  end
2550
2535
 
2551
- # PolicyBinding Viewset
2552
- # @param policy_binding_uuid [String] A UUID string identifying this Device User binding.
2536
+ # DeviceAccessGroup Viewset
2537
+ # @param pbm_uuid [String] A UUID string identifying this Device access group.
2553
2538
  # @param [Hash] opts the optional parameters
2554
- # @return [DeviceUserBinding]
2555
- def endpoints_device_bindings_retrieve(policy_binding_uuid, opts = {})
2556
- data, _status_code, _headers = endpoints_device_bindings_retrieve_with_http_info(policy_binding_uuid, opts)
2539
+ # @return [DeviceAccessGroup]
2540
+ def endpoints_device_access_groups_retrieve(pbm_uuid, opts = {})
2541
+ data, _status_code, _headers = endpoints_device_access_groups_retrieve_with_http_info(pbm_uuid, opts)
2557
2542
  data
2558
2543
  end
2559
2544
 
2560
- # PolicyBinding Viewset
2561
- # @param policy_binding_uuid [String] A UUID string identifying this Device User binding.
2545
+ # DeviceAccessGroup Viewset
2546
+ # @param pbm_uuid [String] A UUID string identifying this Device access group.
2562
2547
  # @param [Hash] opts the optional parameters
2563
- # @return [Array<(DeviceUserBinding, Integer, Hash)>] DeviceUserBinding data, response status code and response headers
2564
- def endpoints_device_bindings_retrieve_with_http_info(policy_binding_uuid, opts = {})
2548
+ # @return [Array<(DeviceAccessGroup, Integer, Hash)>] DeviceAccessGroup data, response status code and response headers
2549
+ def endpoints_device_access_groups_retrieve_with_http_info(pbm_uuid, opts = {})
2565
2550
  if @api_client.config.debugging
2566
- @api_client.config.logger.debug 'Calling API: EndpointsApi.endpoints_device_bindings_retrieve ...'
2551
+ @api_client.config.logger.debug 'Calling API: EndpointsApi.endpoints_device_access_groups_retrieve ...'
2567
2552
  end
2568
- # verify the required parameter 'policy_binding_uuid' is set
2569
- if @api_client.config.client_side_validation && policy_binding_uuid.nil?
2570
- fail ArgumentError, "Missing the required parameter 'policy_binding_uuid' when calling EndpointsApi.endpoints_device_bindings_retrieve"
2553
+ # verify the required parameter 'pbm_uuid' is set
2554
+ if @api_client.config.client_side_validation && pbm_uuid.nil?
2555
+ fail ArgumentError, "Missing the required parameter 'pbm_uuid' when calling EndpointsApi.endpoints_device_access_groups_retrieve"
2571
2556
  end
2572
2557
  # resource path
2573
- local_var_path = '/endpoints/device_bindings/{policy_binding_uuid}/'.sub('{' + 'policy_binding_uuid' + '}', CGI.escape(policy_binding_uuid.to_s))
2558
+ local_var_path = '/endpoints/device_access_groups/{pbm_uuid}/'.sub('{pbm_uuid}', CGI.escape(pbm_uuid.to_s))
2574
2559
 
2575
2560
  # query parameters
2576
2561
  query_params = opts[:query_params] || {}
@@ -2587,13 +2572,13 @@ module Authentik::Api
2587
2572
  post_body = opts[:debug_body]
2588
2573
 
2589
2574
  # return_type
2590
- return_type = opts[:debug_return_type] || 'DeviceUserBinding'
2575
+ return_type = opts[:debug_return_type] || 'DeviceAccessGroup'
2591
2576
 
2592
2577
  # auth_names
2593
2578
  auth_names = opts[:debug_auth_names] || ['authentik']
2594
2579
 
2595
2580
  new_options = opts.merge(
2596
- :operation => :"EndpointsApi.endpoints_device_bindings_retrieve",
2581
+ :operation => :"EndpointsApi.endpoints_device_access_groups_retrieve",
2597
2582
  :header_params => header_params,
2598
2583
  :query_params => query_params,
2599
2584
  :form_params => form_params,
@@ -2604,40 +2589,40 @@ module Authentik::Api
2604
2589
 
2605
2590
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2606
2591
  if @api_client.config.debugging
2607
- @api_client.config.logger.debug "API called: EndpointsApi#endpoints_device_bindings_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2592
+ @api_client.config.logger.debug "API called: EndpointsApi#endpoints_device_access_groups_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2608
2593
  end
2609
2594
  return data, status_code, headers
2610
2595
  end
2611
2596
 
2612
- # PolicyBinding Viewset
2613
- # @param policy_binding_uuid [String] A UUID string identifying this Device User binding.
2614
- # @param device_user_binding_request [DeviceUserBindingRequest]
2597
+ # DeviceAccessGroup Viewset
2598
+ # @param pbm_uuid [String] A UUID string identifying this Device access group.
2599
+ # @param device_access_group_request [DeviceAccessGroupRequest]
2615
2600
  # @param [Hash] opts the optional parameters
2616
- # @return [DeviceUserBinding]
2617
- def endpoints_device_bindings_update(policy_binding_uuid, device_user_binding_request, opts = {})
2618
- data, _status_code, _headers = endpoints_device_bindings_update_with_http_info(policy_binding_uuid, device_user_binding_request, opts)
2601
+ # @return [DeviceAccessGroup]
2602
+ def endpoints_device_access_groups_update(pbm_uuid, device_access_group_request, opts = {})
2603
+ data, _status_code, _headers = endpoints_device_access_groups_update_with_http_info(pbm_uuid, device_access_group_request, opts)
2619
2604
  data
2620
2605
  end
2621
2606
 
2622
- # PolicyBinding Viewset
2623
- # @param policy_binding_uuid [String] A UUID string identifying this Device User binding.
2624
- # @param device_user_binding_request [DeviceUserBindingRequest]
2607
+ # DeviceAccessGroup Viewset
2608
+ # @param pbm_uuid [String] A UUID string identifying this Device access group.
2609
+ # @param device_access_group_request [DeviceAccessGroupRequest]
2625
2610
  # @param [Hash] opts the optional parameters
2626
- # @return [Array<(DeviceUserBinding, Integer, Hash)>] DeviceUserBinding data, response status code and response headers
2627
- def endpoints_device_bindings_update_with_http_info(policy_binding_uuid, device_user_binding_request, opts = {})
2611
+ # @return [Array<(DeviceAccessGroup, Integer, Hash)>] DeviceAccessGroup data, response status code and response headers
2612
+ def endpoints_device_access_groups_update_with_http_info(pbm_uuid, device_access_group_request, opts = {})
2628
2613
  if @api_client.config.debugging
2629
- @api_client.config.logger.debug 'Calling API: EndpointsApi.endpoints_device_bindings_update ...'
2614
+ @api_client.config.logger.debug 'Calling API: EndpointsApi.endpoints_device_access_groups_update ...'
2630
2615
  end
2631
- # verify the required parameter 'policy_binding_uuid' is set
2632
- if @api_client.config.client_side_validation && policy_binding_uuid.nil?
2633
- fail ArgumentError, "Missing the required parameter 'policy_binding_uuid' when calling EndpointsApi.endpoints_device_bindings_update"
2616
+ # verify the required parameter 'pbm_uuid' is set
2617
+ if @api_client.config.client_side_validation && pbm_uuid.nil?
2618
+ fail ArgumentError, "Missing the required parameter 'pbm_uuid' when calling EndpointsApi.endpoints_device_access_groups_update"
2634
2619
  end
2635
- # verify the required parameter 'device_user_binding_request' is set
2636
- if @api_client.config.client_side_validation && device_user_binding_request.nil?
2637
- fail ArgumentError, "Missing the required parameter 'device_user_binding_request' when calling EndpointsApi.endpoints_device_bindings_update"
2620
+ # verify the required parameter 'device_access_group_request' is set
2621
+ if @api_client.config.client_side_validation && device_access_group_request.nil?
2622
+ fail ArgumentError, "Missing the required parameter 'device_access_group_request' when calling EndpointsApi.endpoints_device_access_groups_update"
2638
2623
  end
2639
2624
  # resource path
2640
- local_var_path = '/endpoints/device_bindings/{policy_binding_uuid}/'.sub('{' + 'policy_binding_uuid' + '}', CGI.escape(policy_binding_uuid.to_s))
2625
+ local_var_path = '/endpoints/device_access_groups/{pbm_uuid}/'.sub('{pbm_uuid}', CGI.escape(pbm_uuid.to_s))
2641
2626
 
2642
2627
  # query parameters
2643
2628
  query_params = opts[:query_params] || {}
@@ -2656,16 +2641,16 @@ module Authentik::Api
2656
2641
  form_params = opts[:form_params] || {}
2657
2642
 
2658
2643
  # http body (model)
2659
- post_body = opts[:debug_body] || @api_client.object_to_http_body(device_user_binding_request)
2644
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(device_access_group_request)
2660
2645
 
2661
2646
  # return_type
2662
- return_type = opts[:debug_return_type] || 'DeviceUserBinding'
2647
+ return_type = opts[:debug_return_type] || 'DeviceAccessGroup'
2663
2648
 
2664
2649
  # auth_names
2665
2650
  auth_names = opts[:debug_auth_names] || ['authentik']
2666
2651
 
2667
2652
  new_options = opts.merge(
2668
- :operation => :"EndpointsApi.endpoints_device_bindings_update",
2653
+ :operation => :"EndpointsApi.endpoints_device_access_groups_update",
2669
2654
  :header_params => header_params,
2670
2655
  :query_params => query_params,
2671
2656
  :form_params => form_params,
@@ -2676,34 +2661,34 @@ module Authentik::Api
2676
2661
 
2677
2662
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
2678
2663
  if @api_client.config.debugging
2679
- @api_client.config.logger.debug "API called: EndpointsApi#endpoints_device_bindings_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2664
+ @api_client.config.logger.debug "API called: EndpointsApi#endpoints_device_access_groups_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2680
2665
  end
2681
2666
  return data, status_code, headers
2682
2667
  end
2683
2668
 
2684
2669
  # Get a list of all objects that use this object
2685
- # @param policy_binding_uuid [String] A UUID string identifying this Device User binding.
2670
+ # @param pbm_uuid [String] A UUID string identifying this Device access group.
2686
2671
  # @param [Hash] opts the optional parameters
2687
2672
  # @return [Array<UsedBy>]
2688
- def endpoints_device_bindings_used_by_list(policy_binding_uuid, opts = {})
2689
- data, _status_code, _headers = endpoints_device_bindings_used_by_list_with_http_info(policy_binding_uuid, opts)
2673
+ def endpoints_device_access_groups_used_by_list(pbm_uuid, opts = {})
2674
+ data, _status_code, _headers = endpoints_device_access_groups_used_by_list_with_http_info(pbm_uuid, opts)
2690
2675
  data
2691
2676
  end
2692
2677
 
2693
2678
  # Get a list of all objects that use this object
2694
- # @param policy_binding_uuid [String] A UUID string identifying this Device User binding.
2679
+ # @param pbm_uuid [String] A UUID string identifying this Device access group.
2695
2680
  # @param [Hash] opts the optional parameters
2696
2681
  # @return [Array<(Array<UsedBy>, Integer, Hash)>] Array<UsedBy> data, response status code and response headers
2697
- def endpoints_device_bindings_used_by_list_with_http_info(policy_binding_uuid, opts = {})
2682
+ def endpoints_device_access_groups_used_by_list_with_http_info(pbm_uuid, opts = {})
2698
2683
  if @api_client.config.debugging
2699
- @api_client.config.logger.debug 'Calling API: EndpointsApi.endpoints_device_bindings_used_by_list ...'
2684
+ @api_client.config.logger.debug 'Calling API: EndpointsApi.endpoints_device_access_groups_used_by_list ...'
2700
2685
  end
2701
- # verify the required parameter 'policy_binding_uuid' is set
2702
- if @api_client.config.client_side_validation && policy_binding_uuid.nil?
2703
- fail ArgumentError, "Missing the required parameter 'policy_binding_uuid' when calling EndpointsApi.endpoints_device_bindings_used_by_list"
2686
+ # verify the required parameter 'pbm_uuid' is set
2687
+ if @api_client.config.client_side_validation && pbm_uuid.nil?
2688
+ fail ArgumentError, "Missing the required parameter 'pbm_uuid' when calling EndpointsApi.endpoints_device_access_groups_used_by_list"
2704
2689
  end
2705
2690
  # resource path
2706
- local_var_path = '/endpoints/device_bindings/{policy_binding_uuid}/used_by/'.sub('{' + 'policy_binding_uuid' + '}', CGI.escape(policy_binding_uuid.to_s))
2691
+ local_var_path = '/endpoints/device_access_groups/{pbm_uuid}/used_by/'.sub('{pbm_uuid}', CGI.escape(pbm_uuid.to_s))
2707
2692
 
2708
2693
  # query parameters
2709
2694
  query_params = opts[:query_params] || {}
@@ -2726,7 +2711,7 @@ module Authentik::Api
2726
2711
  auth_names = opts[:debug_auth_names] || ['authentik']
2727
2712
 
2728
2713
  new_options = opts.merge(
2729
- :operation => :"EndpointsApi.endpoints_device_bindings_used_by_list",
2714
+ :operation => :"EndpointsApi.endpoints_device_access_groups_used_by_list",
2730
2715
  :header_params => header_params,
2731
2716
  :query_params => query_params,
2732
2717
  :form_params => form_params,
@@ -2737,34 +2722,34 @@ module Authentik::Api
2737
2722
 
2738
2723
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2739
2724
  if @api_client.config.debugging
2740
- @api_client.config.logger.debug "API called: EndpointsApi#endpoints_device_bindings_used_by_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2725
+ @api_client.config.logger.debug "API called: EndpointsApi#endpoints_device_access_groups_used_by_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2741
2726
  end
2742
2727
  return data, status_code, headers
2743
2728
  end
2744
2729
 
2745
- # Mixin to add a used_by endpoint to return a list of all objects using this object
2746
- # @param device_uuid [String] A UUID string identifying this Device.
2730
+ # PolicyBinding Viewset
2731
+ # @param device_user_binding_request [DeviceUserBindingRequest]
2747
2732
  # @param [Hash] opts the optional parameters
2748
- # @return [nil]
2749
- def endpoints_devices_destroy(device_uuid, opts = {})
2750
- endpoints_devices_destroy_with_http_info(device_uuid, opts)
2751
- nil
2733
+ # @return [DeviceUserBinding]
2734
+ def endpoints_device_bindings_create(device_user_binding_request, opts = {})
2735
+ data, _status_code, _headers = endpoints_device_bindings_create_with_http_info(device_user_binding_request, opts)
2736
+ data
2752
2737
  end
2753
2738
 
2754
- # Mixin to add a used_by endpoint to return a list of all objects using this object
2755
- # @param device_uuid [String] A UUID string identifying this Device.
2739
+ # PolicyBinding Viewset
2740
+ # @param device_user_binding_request [DeviceUserBindingRequest]
2756
2741
  # @param [Hash] opts the optional parameters
2757
- # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
2758
- def endpoints_devices_destroy_with_http_info(device_uuid, opts = {})
2742
+ # @return [Array<(DeviceUserBinding, Integer, Hash)>] DeviceUserBinding data, response status code and response headers
2743
+ def endpoints_device_bindings_create_with_http_info(device_user_binding_request, opts = {})
2759
2744
  if @api_client.config.debugging
2760
- @api_client.config.logger.debug 'Calling API: EndpointsApi.endpoints_devices_destroy ...'
2745
+ @api_client.config.logger.debug 'Calling API: EndpointsApi.endpoints_device_bindings_create ...'
2761
2746
  end
2762
- # verify the required parameter 'device_uuid' is set
2763
- if @api_client.config.client_side_validation && device_uuid.nil?
2764
- fail ArgumentError, "Missing the required parameter 'device_uuid' when calling EndpointsApi.endpoints_devices_destroy"
2747
+ # verify the required parameter 'device_user_binding_request' is set
2748
+ if @api_client.config.client_side_validation && device_user_binding_request.nil?
2749
+ fail ArgumentError, "Missing the required parameter 'device_user_binding_request' when calling EndpointsApi.endpoints_device_bindings_create"
2765
2750
  end
2766
2751
  # resource path
2767
- local_var_path = '/endpoints/devices/{device_uuid}/'.sub('{' + 'device_uuid' + '}', CGI.escape(device_uuid.to_s))
2752
+ local_var_path = '/endpoints/device_bindings/'
2768
2753
 
2769
2754
  # query parameters
2770
2755
  query_params = opts[:query_params] || {}
@@ -2773,21 +2758,26 @@ module Authentik::Api
2773
2758
  header_params = opts[:header_params] || {}
2774
2759
  # HTTP header 'Accept' (if needed)
2775
2760
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2761
+ # HTTP header 'Content-Type'
2762
+ content_type = @api_client.select_header_content_type(['application/json'])
2763
+ if !content_type.nil?
2764
+ header_params['Content-Type'] = content_type
2765
+ end
2776
2766
 
2777
2767
  # form parameters
2778
2768
  form_params = opts[:form_params] || {}
2779
2769
 
2780
2770
  # http body (model)
2781
- post_body = opts[:debug_body]
2771
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(device_user_binding_request)
2782
2772
 
2783
2773
  # return_type
2784
- return_type = opts[:debug_return_type]
2774
+ return_type = opts[:debug_return_type] || 'DeviceUserBinding'
2785
2775
 
2786
2776
  # auth_names
2787
2777
  auth_names = opts[:debug_auth_names] || ['authentik']
2788
2778
 
2789
2779
  new_options = opts.merge(
2790
- :operation => :"EndpointsApi.endpoints_devices_destroy",
2780
+ :operation => :"EndpointsApi.endpoints_device_bindings_create",
2791
2781
  :header_params => header_params,
2792
2782
  :query_params => query_params,
2793
2783
  :form_params => form_params,
@@ -2796,51 +2786,127 @@ module Authentik::Api
2796
2786
  :return_type => return_type
2797
2787
  )
2798
2788
 
2799
- data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
2789
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2800
2790
  if @api_client.config.debugging
2801
- @api_client.config.logger.debug "API called: EndpointsApi#endpoints_devices_destroy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2791
+ @api_client.config.logger.debug "API called: EndpointsApi#endpoints_device_bindings_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2802
2792
  end
2803
2793
  return data, status_code, headers
2804
2794
  end
2805
2795
 
2806
- # Mixin to add a used_by endpoint to return a list of all objects using this object
2796
+ # PolicyBinding Viewset
2797
+ # @param policy_binding_uuid [String] A UUID string identifying this Device User binding.
2807
2798
  # @param [Hash] opts the optional parameters
2808
- # @option opts [String] :identifier
2809
- # @option opts [String] :name
2810
- # @option opts [String] :ordering Which field to use when ordering the results.
2811
- # @option opts [Integer] :page A page number within the paginated result set.
2812
- # @option opts [Integer] :page_size Number of results to return per page.
2813
- # @option opts [String] :search A search term.
2814
- # @return [PaginatedEndpointDeviceList]
2815
- def endpoints_devices_list(opts = {})
2816
- data, _status_code, _headers = endpoints_devices_list_with_http_info(opts)
2817
- data
2799
+ # @return [nil]
2800
+ def endpoints_device_bindings_destroy(policy_binding_uuid, opts = {})
2801
+ endpoints_device_bindings_destroy_with_http_info(policy_binding_uuid, opts)
2802
+ nil
2818
2803
  end
2819
2804
 
2820
- # Mixin to add a used_by endpoint to return a list of all objects using this object
2805
+ # PolicyBinding Viewset
2806
+ # @param policy_binding_uuid [String] A UUID string identifying this Device User binding.
2821
2807
  # @param [Hash] opts the optional parameters
2822
- # @option opts [String] :identifier
2823
- # @option opts [String] :name
2808
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
2809
+ def endpoints_device_bindings_destroy_with_http_info(policy_binding_uuid, opts = {})
2810
+ if @api_client.config.debugging
2811
+ @api_client.config.logger.debug 'Calling API: EndpointsApi.endpoints_device_bindings_destroy ...'
2812
+ end
2813
+ # verify the required parameter 'policy_binding_uuid' is set
2814
+ if @api_client.config.client_side_validation && policy_binding_uuid.nil?
2815
+ fail ArgumentError, "Missing the required parameter 'policy_binding_uuid' when calling EndpointsApi.endpoints_device_bindings_destroy"
2816
+ end
2817
+ # resource path
2818
+ local_var_path = '/endpoints/device_bindings/{policy_binding_uuid}/'.sub('{policy_binding_uuid}', CGI.escape(policy_binding_uuid.to_s))
2819
+
2820
+ # query parameters
2821
+ query_params = opts[:query_params] || {}
2822
+
2823
+ # header parameters
2824
+ header_params = opts[:header_params] || {}
2825
+ # HTTP header 'Accept' (if needed)
2826
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2827
+
2828
+ # form parameters
2829
+ form_params = opts[:form_params] || {}
2830
+
2831
+ # http body (model)
2832
+ post_body = opts[:debug_body]
2833
+
2834
+ # return_type
2835
+ return_type = opts[:debug_return_type]
2836
+
2837
+ # auth_names
2838
+ auth_names = opts[:debug_auth_names] || ['authentik']
2839
+
2840
+ new_options = opts.merge(
2841
+ :operation => :"EndpointsApi.endpoints_device_bindings_destroy",
2842
+ :header_params => header_params,
2843
+ :query_params => query_params,
2844
+ :form_params => form_params,
2845
+ :body => post_body,
2846
+ :auth_names => auth_names,
2847
+ :return_type => return_type
2848
+ )
2849
+
2850
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
2851
+ if @api_client.config.debugging
2852
+ @api_client.config.logger.debug "API called: EndpointsApi#endpoints_device_bindings_destroy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2853
+ end
2854
+ return data, status_code, headers
2855
+ end
2856
+
2857
+ # PolicyBinding Viewset
2858
+ # @param [Hash] opts the optional parameters
2859
+ # @option opts [Boolean] :enabled
2860
+ # @option opts [Integer] :order
2824
2861
  # @option opts [String] :ordering Which field to use when ordering the results.
2825
2862
  # @option opts [Integer] :page A page number within the paginated result set.
2826
2863
  # @option opts [Integer] :page_size Number of results to return per page.
2864
+ # @option opts [String] :policy
2865
+ # @option opts [Boolean] :policy__isnull
2827
2866
  # @option opts [String] :search A search term.
2828
- # @return [Array<(PaginatedEndpointDeviceList, Integer, Hash)>] PaginatedEndpointDeviceList data, response status code and response headers
2829
- def endpoints_devices_list_with_http_info(opts = {})
2867
+ # @option opts [String] :target
2868
+ # @option opts [Array<String>] :target_in
2869
+ # @option opts [Integer] :timeout
2870
+ # @return [PaginatedDeviceUserBindingList]
2871
+ def endpoints_device_bindings_list(opts = {})
2872
+ data, _status_code, _headers = endpoints_device_bindings_list_with_http_info(opts)
2873
+ data
2874
+ end
2875
+
2876
+ # PolicyBinding Viewset
2877
+ # @param [Hash] opts the optional parameters
2878
+ # @option opts [Boolean] :enabled
2879
+ # @option opts [Integer] :order
2880
+ # @option opts [String] :ordering Which field to use when ordering the results.
2881
+ # @option opts [Integer] :page A page number within the paginated result set.
2882
+ # @option opts [Integer] :page_size Number of results to return per page.
2883
+ # @option opts [String] :policy
2884
+ # @option opts [Boolean] :policy__isnull
2885
+ # @option opts [String] :search A search term.
2886
+ # @option opts [String] :target
2887
+ # @option opts [Array<String>] :target_in
2888
+ # @option opts [Integer] :timeout
2889
+ # @return [Array<(PaginatedDeviceUserBindingList, Integer, Hash)>] PaginatedDeviceUserBindingList data, response status code and response headers
2890
+ def endpoints_device_bindings_list_with_http_info(opts = {})
2830
2891
  if @api_client.config.debugging
2831
- @api_client.config.logger.debug 'Calling API: EndpointsApi.endpoints_devices_list ...'
2892
+ @api_client.config.logger.debug 'Calling API: EndpointsApi.endpoints_device_bindings_list ...'
2832
2893
  end
2833
2894
  # resource path
2834
- local_var_path = '/endpoints/devices/'
2895
+ local_var_path = '/endpoints/device_bindings/'
2835
2896
 
2836
2897
  # query parameters
2837
2898
  query_params = opts[:query_params] || {}
2838
- query_params[:'identifier'] = opts[:'identifier'] if !opts[:'identifier'].nil?
2839
- query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
2899
+ query_params[:'enabled'] = opts[:'enabled'] if !opts[:'enabled'].nil?
2900
+ query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
2840
2901
  query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
2841
2902
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
2842
2903
  query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
2904
+ query_params[:'policy'] = opts[:'policy'] if !opts[:'policy'].nil?
2905
+ query_params[:'policy__isnull'] = opts[:'policy__isnull'] if !opts[:'policy__isnull'].nil?
2843
2906
  query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
2907
+ query_params[:'target'] = opts[:'target'] if !opts[:'target'].nil?
2908
+ query_params[:'target_in'] = @api_client.build_collection_param(opts[:'target_in'], :multi) if !opts[:'target_in'].nil?
2909
+ query_params[:'timeout'] = opts[:'timeout'] if !opts[:'timeout'].nil?
2844
2910
 
2845
2911
  # header parameters
2846
2912
  header_params = opts[:header_params] || {}
@@ -2854,13 +2920,13 @@ module Authentik::Api
2854
2920
  post_body = opts[:debug_body]
2855
2921
 
2856
2922
  # return_type
2857
- return_type = opts[:debug_return_type] || 'PaginatedEndpointDeviceList'
2923
+ return_type = opts[:debug_return_type] || 'PaginatedDeviceUserBindingList'
2858
2924
 
2859
2925
  # auth_names
2860
2926
  auth_names = opts[:debug_auth_names] || ['authentik']
2861
2927
 
2862
2928
  new_options = opts.merge(
2863
- :operation => :"EndpointsApi.endpoints_devices_list",
2929
+ :operation => :"EndpointsApi.endpoints_device_bindings_list",
2864
2930
  :header_params => header_params,
2865
2931
  :query_params => query_params,
2866
2932
  :form_params => form_params,
@@ -2871,36 +2937,102 @@ module Authentik::Api
2871
2937
 
2872
2938
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2873
2939
  if @api_client.config.debugging
2874
- @api_client.config.logger.debug "API called: EndpointsApi#endpoints_devices_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2940
+ @api_client.config.logger.debug "API called: EndpointsApi#endpoints_device_bindings_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2875
2941
  end
2876
2942
  return data, status_code, headers
2877
2943
  end
2878
2944
 
2879
- # Mixin to add a used_by endpoint to return a list of all objects using this object
2880
- # @param device_uuid [String] A UUID string identifying this Device.
2945
+ # PolicyBinding Viewset
2946
+ # @param policy_binding_uuid [String] A UUID string identifying this Device User binding.
2881
2947
  # @param [Hash] opts the optional parameters
2882
- # @option opts [PatchedEndpointDeviceRequest] :patched_endpoint_device_request
2883
- # @return [EndpointDevice]
2884
- def endpoints_devices_partial_update(device_uuid, opts = {})
2885
- data, _status_code, _headers = endpoints_devices_partial_update_with_http_info(device_uuid, opts)
2948
+ # @option opts [PatchedDeviceUserBindingRequest] :patched_device_user_binding_request
2949
+ # @return [DeviceUserBinding]
2950
+ def endpoints_device_bindings_partial_update(policy_binding_uuid, opts = {})
2951
+ data, _status_code, _headers = endpoints_device_bindings_partial_update_with_http_info(policy_binding_uuid, opts)
2886
2952
  data
2887
2953
  end
2888
2954
 
2889
- # Mixin to add a used_by endpoint to return a list of all objects using this object
2890
- # @param device_uuid [String] A UUID string identifying this Device.
2955
+ # PolicyBinding Viewset
2956
+ # @param policy_binding_uuid [String] A UUID string identifying this Device User binding.
2891
2957
  # @param [Hash] opts the optional parameters
2892
- # @option opts [PatchedEndpointDeviceRequest] :patched_endpoint_device_request
2893
- # @return [Array<(EndpointDevice, Integer, Hash)>] EndpointDevice data, response status code and response headers
2894
- def endpoints_devices_partial_update_with_http_info(device_uuid, opts = {})
2958
+ # @option opts [PatchedDeviceUserBindingRequest] :patched_device_user_binding_request
2959
+ # @return [Array<(DeviceUserBinding, Integer, Hash)>] DeviceUserBinding data, response status code and response headers
2960
+ def endpoints_device_bindings_partial_update_with_http_info(policy_binding_uuid, opts = {})
2895
2961
  if @api_client.config.debugging
2896
- @api_client.config.logger.debug 'Calling API: EndpointsApi.endpoints_devices_partial_update ...'
2962
+ @api_client.config.logger.debug 'Calling API: EndpointsApi.endpoints_device_bindings_partial_update ...'
2897
2963
  end
2898
- # verify the required parameter 'device_uuid' is set
2899
- if @api_client.config.client_side_validation && device_uuid.nil?
2900
- fail ArgumentError, "Missing the required parameter 'device_uuid' when calling EndpointsApi.endpoints_devices_partial_update"
2964
+ # verify the required parameter 'policy_binding_uuid' is set
2965
+ if @api_client.config.client_side_validation && policy_binding_uuid.nil?
2966
+ fail ArgumentError, "Missing the required parameter 'policy_binding_uuid' when calling EndpointsApi.endpoints_device_bindings_partial_update"
2967
+ end
2968
+ # resource path
2969
+ local_var_path = '/endpoints/device_bindings/{policy_binding_uuid}/'.sub('{policy_binding_uuid}', CGI.escape(policy_binding_uuid.to_s))
2970
+
2971
+ # query parameters
2972
+ query_params = opts[:query_params] || {}
2973
+
2974
+ # header parameters
2975
+ header_params = opts[:header_params] || {}
2976
+ # HTTP header 'Accept' (if needed)
2977
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2978
+ # HTTP header 'Content-Type'
2979
+ content_type = @api_client.select_header_content_type(['application/json'])
2980
+ if !content_type.nil?
2981
+ header_params['Content-Type'] = content_type
2982
+ end
2983
+
2984
+ # form parameters
2985
+ form_params = opts[:form_params] || {}
2986
+
2987
+ # http body (model)
2988
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'patched_device_user_binding_request'])
2989
+
2990
+ # return_type
2991
+ return_type = opts[:debug_return_type] || 'DeviceUserBinding'
2992
+
2993
+ # auth_names
2994
+ auth_names = opts[:debug_auth_names] || ['authentik']
2995
+
2996
+ new_options = opts.merge(
2997
+ :operation => :"EndpointsApi.endpoints_device_bindings_partial_update",
2998
+ :header_params => header_params,
2999
+ :query_params => query_params,
3000
+ :form_params => form_params,
3001
+ :body => post_body,
3002
+ :auth_names => auth_names,
3003
+ :return_type => return_type
3004
+ )
3005
+
3006
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
3007
+ if @api_client.config.debugging
3008
+ @api_client.config.logger.debug "API called: EndpointsApi#endpoints_device_bindings_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3009
+ end
3010
+ return data, status_code, headers
3011
+ end
3012
+
3013
+ # PolicyBinding Viewset
3014
+ # @param policy_binding_uuid [String] A UUID string identifying this Device User binding.
3015
+ # @param [Hash] opts the optional parameters
3016
+ # @return [DeviceUserBinding]
3017
+ def endpoints_device_bindings_retrieve(policy_binding_uuid, opts = {})
3018
+ data, _status_code, _headers = endpoints_device_bindings_retrieve_with_http_info(policy_binding_uuid, opts)
3019
+ data
3020
+ end
3021
+
3022
+ # PolicyBinding Viewset
3023
+ # @param policy_binding_uuid [String] A UUID string identifying this Device User binding.
3024
+ # @param [Hash] opts the optional parameters
3025
+ # @return [Array<(DeviceUserBinding, Integer, Hash)>] DeviceUserBinding data, response status code and response headers
3026
+ def endpoints_device_bindings_retrieve_with_http_info(policy_binding_uuid, opts = {})
3027
+ if @api_client.config.debugging
3028
+ @api_client.config.logger.debug 'Calling API: EndpointsApi.endpoints_device_bindings_retrieve ...'
3029
+ end
3030
+ # verify the required parameter 'policy_binding_uuid' is set
3031
+ if @api_client.config.client_side_validation && policy_binding_uuid.nil?
3032
+ fail ArgumentError, "Missing the required parameter 'policy_binding_uuid' when calling EndpointsApi.endpoints_device_bindings_retrieve"
2901
3033
  end
2902
3034
  # resource path
2903
- local_var_path = '/endpoints/devices/{device_uuid}/'.sub('{' + 'device_uuid' + '}', CGI.escape(device_uuid.to_s))
3035
+ local_var_path = '/endpoints/device_bindings/{policy_binding_uuid}/'.sub('{policy_binding_uuid}', CGI.escape(policy_binding_uuid.to_s))
2904
3036
 
2905
3037
  # query parameters
2906
3038
  query_params = opts[:query_params] || {}
@@ -2909,26 +3041,802 @@ module Authentik::Api
2909
3041
  header_params = opts[:header_params] || {}
2910
3042
  # HTTP header 'Accept' (if needed)
2911
3043
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2912
- # HTTP header 'Content-Type'
2913
- content_type = @api_client.select_header_content_type(['application/json'])
2914
- if !content_type.nil?
2915
- header_params['Content-Type'] = content_type
2916
- end
2917
3044
 
2918
3045
  # form parameters
2919
3046
  form_params = opts[:form_params] || {}
2920
3047
 
2921
3048
  # http body (model)
2922
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'patched_endpoint_device_request'])
3049
+ post_body = opts[:debug_body]
3050
+
3051
+ # return_type
3052
+ return_type = opts[:debug_return_type] || 'DeviceUserBinding'
3053
+
3054
+ # auth_names
3055
+ auth_names = opts[:debug_auth_names] || ['authentik']
3056
+
3057
+ new_options = opts.merge(
3058
+ :operation => :"EndpointsApi.endpoints_device_bindings_retrieve",
3059
+ :header_params => header_params,
3060
+ :query_params => query_params,
3061
+ :form_params => form_params,
3062
+ :body => post_body,
3063
+ :auth_names => auth_names,
3064
+ :return_type => return_type
3065
+ )
3066
+
3067
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
3068
+ if @api_client.config.debugging
3069
+ @api_client.config.logger.debug "API called: EndpointsApi#endpoints_device_bindings_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3070
+ end
3071
+ return data, status_code, headers
3072
+ end
3073
+
3074
+ # PolicyBinding Viewset
3075
+ # @param policy_binding_uuid [String] A UUID string identifying this Device User binding.
3076
+ # @param device_user_binding_request [DeviceUserBindingRequest]
3077
+ # @param [Hash] opts the optional parameters
3078
+ # @return [DeviceUserBinding]
3079
+ def endpoints_device_bindings_update(policy_binding_uuid, device_user_binding_request, opts = {})
3080
+ data, _status_code, _headers = endpoints_device_bindings_update_with_http_info(policy_binding_uuid, device_user_binding_request, opts)
3081
+ data
3082
+ end
3083
+
3084
+ # PolicyBinding Viewset
3085
+ # @param policy_binding_uuid [String] A UUID string identifying this Device User binding.
3086
+ # @param device_user_binding_request [DeviceUserBindingRequest]
3087
+ # @param [Hash] opts the optional parameters
3088
+ # @return [Array<(DeviceUserBinding, Integer, Hash)>] DeviceUserBinding data, response status code and response headers
3089
+ def endpoints_device_bindings_update_with_http_info(policy_binding_uuid, device_user_binding_request, opts = {})
3090
+ if @api_client.config.debugging
3091
+ @api_client.config.logger.debug 'Calling API: EndpointsApi.endpoints_device_bindings_update ...'
3092
+ end
3093
+ # verify the required parameter 'policy_binding_uuid' is set
3094
+ if @api_client.config.client_side_validation && policy_binding_uuid.nil?
3095
+ fail ArgumentError, "Missing the required parameter 'policy_binding_uuid' when calling EndpointsApi.endpoints_device_bindings_update"
3096
+ end
3097
+ # verify the required parameter 'device_user_binding_request' is set
3098
+ if @api_client.config.client_side_validation && device_user_binding_request.nil?
3099
+ fail ArgumentError, "Missing the required parameter 'device_user_binding_request' when calling EndpointsApi.endpoints_device_bindings_update"
3100
+ end
3101
+ # resource path
3102
+ local_var_path = '/endpoints/device_bindings/{policy_binding_uuid}/'.sub('{policy_binding_uuid}', CGI.escape(policy_binding_uuid.to_s))
3103
+
3104
+ # query parameters
3105
+ query_params = opts[:query_params] || {}
3106
+
3107
+ # header parameters
3108
+ header_params = opts[:header_params] || {}
3109
+ # HTTP header 'Accept' (if needed)
3110
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
3111
+ # HTTP header 'Content-Type'
3112
+ content_type = @api_client.select_header_content_type(['application/json'])
3113
+ if !content_type.nil?
3114
+ header_params['Content-Type'] = content_type
3115
+ end
3116
+
3117
+ # form parameters
3118
+ form_params = opts[:form_params] || {}
3119
+
3120
+ # http body (model)
3121
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(device_user_binding_request)
3122
+
3123
+ # return_type
3124
+ return_type = opts[:debug_return_type] || 'DeviceUserBinding'
3125
+
3126
+ # auth_names
3127
+ auth_names = opts[:debug_auth_names] || ['authentik']
3128
+
3129
+ new_options = opts.merge(
3130
+ :operation => :"EndpointsApi.endpoints_device_bindings_update",
3131
+ :header_params => header_params,
3132
+ :query_params => query_params,
3133
+ :form_params => form_params,
3134
+ :body => post_body,
3135
+ :auth_names => auth_names,
3136
+ :return_type => return_type
3137
+ )
3138
+
3139
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
3140
+ if @api_client.config.debugging
3141
+ @api_client.config.logger.debug "API called: EndpointsApi#endpoints_device_bindings_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3142
+ end
3143
+ return data, status_code, headers
3144
+ end
3145
+
3146
+ # Get a list of all objects that use this object
3147
+ # @param policy_binding_uuid [String] A UUID string identifying this Device User binding.
3148
+ # @param [Hash] opts the optional parameters
3149
+ # @return [Array<UsedBy>]
3150
+ def endpoints_device_bindings_used_by_list(policy_binding_uuid, opts = {})
3151
+ data, _status_code, _headers = endpoints_device_bindings_used_by_list_with_http_info(policy_binding_uuid, opts)
3152
+ data
3153
+ end
3154
+
3155
+ # Get a list of all objects that use this object
3156
+ # @param policy_binding_uuid [String] A UUID string identifying this Device User binding.
3157
+ # @param [Hash] opts the optional parameters
3158
+ # @return [Array<(Array<UsedBy>, Integer, Hash)>] Array<UsedBy> data, response status code and response headers
3159
+ def endpoints_device_bindings_used_by_list_with_http_info(policy_binding_uuid, opts = {})
3160
+ if @api_client.config.debugging
3161
+ @api_client.config.logger.debug 'Calling API: EndpointsApi.endpoints_device_bindings_used_by_list ...'
3162
+ end
3163
+ # verify the required parameter 'policy_binding_uuid' is set
3164
+ if @api_client.config.client_side_validation && policy_binding_uuid.nil?
3165
+ fail ArgumentError, "Missing the required parameter 'policy_binding_uuid' when calling EndpointsApi.endpoints_device_bindings_used_by_list"
3166
+ end
3167
+ # resource path
3168
+ local_var_path = '/endpoints/device_bindings/{policy_binding_uuid}/used_by/'.sub('{policy_binding_uuid}', CGI.escape(policy_binding_uuid.to_s))
3169
+
3170
+ # query parameters
3171
+ query_params = opts[:query_params] || {}
3172
+
3173
+ # header parameters
3174
+ header_params = opts[:header_params] || {}
3175
+ # HTTP header 'Accept' (if needed)
3176
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
3177
+
3178
+ # form parameters
3179
+ form_params = opts[:form_params] || {}
3180
+
3181
+ # http body (model)
3182
+ post_body = opts[:debug_body]
3183
+
3184
+ # return_type
3185
+ return_type = opts[:debug_return_type] || 'Array<UsedBy>'
3186
+
3187
+ # auth_names
3188
+ auth_names = opts[:debug_auth_names] || ['authentik']
3189
+
3190
+ new_options = opts.merge(
3191
+ :operation => :"EndpointsApi.endpoints_device_bindings_used_by_list",
3192
+ :header_params => header_params,
3193
+ :query_params => query_params,
3194
+ :form_params => form_params,
3195
+ :body => post_body,
3196
+ :auth_names => auth_names,
3197
+ :return_type => return_type
3198
+ )
3199
+
3200
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
3201
+ if @api_client.config.debugging
3202
+ @api_client.config.logger.debug "API called: EndpointsApi#endpoints_device_bindings_used_by_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3203
+ end
3204
+ return data, status_code, headers
3205
+ end
3206
+
3207
+ # Mixin to add a used_by endpoint to return a list of all objects using this object
3208
+ # @param device_uuid [String] A UUID string identifying this Device.
3209
+ # @param [Hash] opts the optional parameters
3210
+ # @return [nil]
3211
+ def endpoints_devices_destroy(device_uuid, opts = {})
3212
+ endpoints_devices_destroy_with_http_info(device_uuid, opts)
3213
+ nil
3214
+ end
3215
+
3216
+ # Mixin to add a used_by endpoint to return a list of all objects using this object
3217
+ # @param device_uuid [String] A UUID string identifying this Device.
3218
+ # @param [Hash] opts the optional parameters
3219
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
3220
+ def endpoints_devices_destroy_with_http_info(device_uuid, opts = {})
3221
+ if @api_client.config.debugging
3222
+ @api_client.config.logger.debug 'Calling API: EndpointsApi.endpoints_devices_destroy ...'
3223
+ end
3224
+ # verify the required parameter 'device_uuid' is set
3225
+ if @api_client.config.client_side_validation && device_uuid.nil?
3226
+ fail ArgumentError, "Missing the required parameter 'device_uuid' when calling EndpointsApi.endpoints_devices_destroy"
3227
+ end
3228
+ # resource path
3229
+ local_var_path = '/endpoints/devices/{device_uuid}/'.sub('{device_uuid}', CGI.escape(device_uuid.to_s))
3230
+
3231
+ # query parameters
3232
+ query_params = opts[:query_params] || {}
3233
+
3234
+ # header parameters
3235
+ header_params = opts[:header_params] || {}
3236
+ # HTTP header 'Accept' (if needed)
3237
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
3238
+
3239
+ # form parameters
3240
+ form_params = opts[:form_params] || {}
3241
+
3242
+ # http body (model)
3243
+ post_body = opts[:debug_body]
3244
+
3245
+ # return_type
3246
+ return_type = opts[:debug_return_type]
3247
+
3248
+ # auth_names
3249
+ auth_names = opts[:debug_auth_names] || ['authentik']
3250
+
3251
+ new_options = opts.merge(
3252
+ :operation => :"EndpointsApi.endpoints_devices_destroy",
3253
+ :header_params => header_params,
3254
+ :query_params => query_params,
3255
+ :form_params => form_params,
3256
+ :body => post_body,
3257
+ :auth_names => auth_names,
3258
+ :return_type => return_type
3259
+ )
3260
+
3261
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
3262
+ if @api_client.config.debugging
3263
+ @api_client.config.logger.debug "API called: EndpointsApi#endpoints_devices_destroy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3264
+ end
3265
+ return data, status_code, headers
3266
+ end
3267
+
3268
+ # Mixin to add a used_by endpoint to return a list of all objects using this object
3269
+ # @param [Hash] opts the optional parameters
3270
+ # @option opts [String] :identifier
3271
+ # @option opts [String] :name
3272
+ # @option opts [String] :ordering Which field to use when ordering the results.
3273
+ # @option opts [Integer] :page A page number within the paginated result set.
3274
+ # @option opts [Integer] :page_size Number of results to return per page.
3275
+ # @option opts [String] :search A search term.
3276
+ # @return [PaginatedEndpointDeviceList]
3277
+ def endpoints_devices_list(opts = {})
3278
+ data, _status_code, _headers = endpoints_devices_list_with_http_info(opts)
3279
+ data
3280
+ end
3281
+
3282
+ # Mixin to add a used_by endpoint to return a list of all objects using this object
3283
+ # @param [Hash] opts the optional parameters
3284
+ # @option opts [String] :identifier
3285
+ # @option opts [String] :name
3286
+ # @option opts [String] :ordering Which field to use when ordering the results.
3287
+ # @option opts [Integer] :page A page number within the paginated result set.
3288
+ # @option opts [Integer] :page_size Number of results to return per page.
3289
+ # @option opts [String] :search A search term.
3290
+ # @return [Array<(PaginatedEndpointDeviceList, Integer, Hash)>] PaginatedEndpointDeviceList data, response status code and response headers
3291
+ def endpoints_devices_list_with_http_info(opts = {})
3292
+ if @api_client.config.debugging
3293
+ @api_client.config.logger.debug 'Calling API: EndpointsApi.endpoints_devices_list ...'
3294
+ end
3295
+ # resource path
3296
+ local_var_path = '/endpoints/devices/'
3297
+
3298
+ # query parameters
3299
+ query_params = opts[:query_params] || {}
3300
+ query_params[:'identifier'] = opts[:'identifier'] if !opts[:'identifier'].nil?
3301
+ query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
3302
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
3303
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
3304
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
3305
+ query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
3306
+
3307
+ # header parameters
3308
+ header_params = opts[:header_params] || {}
3309
+ # HTTP header 'Accept' (if needed)
3310
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
3311
+
3312
+ # form parameters
3313
+ form_params = opts[:form_params] || {}
3314
+
3315
+ # http body (model)
3316
+ post_body = opts[:debug_body]
3317
+
3318
+ # return_type
3319
+ return_type = opts[:debug_return_type] || 'PaginatedEndpointDeviceList'
3320
+
3321
+ # auth_names
3322
+ auth_names = opts[:debug_auth_names] || ['authentik']
3323
+
3324
+ new_options = opts.merge(
3325
+ :operation => :"EndpointsApi.endpoints_devices_list",
3326
+ :header_params => header_params,
3327
+ :query_params => query_params,
3328
+ :form_params => form_params,
3329
+ :body => post_body,
3330
+ :auth_names => auth_names,
3331
+ :return_type => return_type
3332
+ )
3333
+
3334
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
3335
+ if @api_client.config.debugging
3336
+ @api_client.config.logger.debug "API called: EndpointsApi#endpoints_devices_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3337
+ end
3338
+ return data, status_code, headers
3339
+ end
3340
+
3341
+ # Mixin to add a used_by endpoint to return a list of all objects using this object
3342
+ # @param device_uuid [String] A UUID string identifying this Device.
3343
+ # @param [Hash] opts the optional parameters
3344
+ # @option opts [PatchedEndpointDeviceRequest] :patched_endpoint_device_request
3345
+ # @return [EndpointDevice]
3346
+ def endpoints_devices_partial_update(device_uuid, opts = {})
3347
+ data, _status_code, _headers = endpoints_devices_partial_update_with_http_info(device_uuid, opts)
3348
+ data
3349
+ end
3350
+
3351
+ # Mixin to add a used_by endpoint to return a list of all objects using this object
3352
+ # @param device_uuid [String] A UUID string identifying this Device.
3353
+ # @param [Hash] opts the optional parameters
3354
+ # @option opts [PatchedEndpointDeviceRequest] :patched_endpoint_device_request
3355
+ # @return [Array<(EndpointDevice, Integer, Hash)>] EndpointDevice data, response status code and response headers
3356
+ def endpoints_devices_partial_update_with_http_info(device_uuid, opts = {})
3357
+ if @api_client.config.debugging
3358
+ @api_client.config.logger.debug 'Calling API: EndpointsApi.endpoints_devices_partial_update ...'
3359
+ end
3360
+ # verify the required parameter 'device_uuid' is set
3361
+ if @api_client.config.client_side_validation && device_uuid.nil?
3362
+ fail ArgumentError, "Missing the required parameter 'device_uuid' when calling EndpointsApi.endpoints_devices_partial_update"
3363
+ end
3364
+ # resource path
3365
+ local_var_path = '/endpoints/devices/{device_uuid}/'.sub('{device_uuid}', CGI.escape(device_uuid.to_s))
3366
+
3367
+ # query parameters
3368
+ query_params = opts[:query_params] || {}
3369
+
3370
+ # header parameters
3371
+ header_params = opts[:header_params] || {}
3372
+ # HTTP header 'Accept' (if needed)
3373
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
3374
+ # HTTP header 'Content-Type'
3375
+ content_type = @api_client.select_header_content_type(['application/json'])
3376
+ if !content_type.nil?
3377
+ header_params['Content-Type'] = content_type
3378
+ end
3379
+
3380
+ # form parameters
3381
+ form_params = opts[:form_params] || {}
3382
+
3383
+ # http body (model)
3384
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'patched_endpoint_device_request'])
3385
+
3386
+ # return_type
3387
+ return_type = opts[:debug_return_type] || 'EndpointDevice'
3388
+
3389
+ # auth_names
3390
+ auth_names = opts[:debug_auth_names] || ['authentik']
3391
+
3392
+ new_options = opts.merge(
3393
+ :operation => :"EndpointsApi.endpoints_devices_partial_update",
3394
+ :header_params => header_params,
3395
+ :query_params => query_params,
3396
+ :form_params => form_params,
3397
+ :body => post_body,
3398
+ :auth_names => auth_names,
3399
+ :return_type => return_type
3400
+ )
3401
+
3402
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
3403
+ if @api_client.config.debugging
3404
+ @api_client.config.logger.debug "API called: EndpointsApi#endpoints_devices_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3405
+ end
3406
+ return data, status_code, headers
3407
+ end
3408
+
3409
+ # Mixin to add a used_by endpoint to return a list of all objects using this object
3410
+ # @param device_uuid [String] A UUID string identifying this Device.
3411
+ # @param [Hash] opts the optional parameters
3412
+ # @return [EndpointDeviceDetails]
3413
+ def endpoints_devices_retrieve(device_uuid, opts = {})
3414
+ data, _status_code, _headers = endpoints_devices_retrieve_with_http_info(device_uuid, opts)
3415
+ data
3416
+ end
3417
+
3418
+ # Mixin to add a used_by endpoint to return a list of all objects using this object
3419
+ # @param device_uuid [String] A UUID string identifying this Device.
3420
+ # @param [Hash] opts the optional parameters
3421
+ # @return [Array<(EndpointDeviceDetails, Integer, Hash)>] EndpointDeviceDetails data, response status code and response headers
3422
+ def endpoints_devices_retrieve_with_http_info(device_uuid, opts = {})
3423
+ if @api_client.config.debugging
3424
+ @api_client.config.logger.debug 'Calling API: EndpointsApi.endpoints_devices_retrieve ...'
3425
+ end
3426
+ # verify the required parameter 'device_uuid' is set
3427
+ if @api_client.config.client_side_validation && device_uuid.nil?
3428
+ fail ArgumentError, "Missing the required parameter 'device_uuid' when calling EndpointsApi.endpoints_devices_retrieve"
3429
+ end
3430
+ # resource path
3431
+ local_var_path = '/endpoints/devices/{device_uuid}/'.sub('{device_uuid}', CGI.escape(device_uuid.to_s))
3432
+
3433
+ # query parameters
3434
+ query_params = opts[:query_params] || {}
3435
+
3436
+ # header parameters
3437
+ header_params = opts[:header_params] || {}
3438
+ # HTTP header 'Accept' (if needed)
3439
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
3440
+
3441
+ # form parameters
3442
+ form_params = opts[:form_params] || {}
3443
+
3444
+ # http body (model)
3445
+ post_body = opts[:debug_body]
3446
+
3447
+ # return_type
3448
+ return_type = opts[:debug_return_type] || 'EndpointDeviceDetails'
3449
+
3450
+ # auth_names
3451
+ auth_names = opts[:debug_auth_names] || ['authentik']
3452
+
3453
+ new_options = opts.merge(
3454
+ :operation => :"EndpointsApi.endpoints_devices_retrieve",
3455
+ :header_params => header_params,
3456
+ :query_params => query_params,
3457
+ :form_params => form_params,
3458
+ :body => post_body,
3459
+ :auth_names => auth_names,
3460
+ :return_type => return_type
3461
+ )
3462
+
3463
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
3464
+ if @api_client.config.debugging
3465
+ @api_client.config.logger.debug "API called: EndpointsApi#endpoints_devices_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3466
+ end
3467
+ return data, status_code, headers
3468
+ end
3469
+
3470
+ # Mixin to add a used_by endpoint to return a list of all objects using this object
3471
+ # @param [Hash] opts the optional parameters
3472
+ # @return [DeviceSummary]
3473
+ def endpoints_devices_summary_retrieve(opts = {})
3474
+ data, _status_code, _headers = endpoints_devices_summary_retrieve_with_http_info(opts)
3475
+ data
3476
+ end
3477
+
3478
+ # Mixin to add a used_by endpoint to return a list of all objects using this object
3479
+ # @param [Hash] opts the optional parameters
3480
+ # @return [Array<(DeviceSummary, Integer, Hash)>] DeviceSummary data, response status code and response headers
3481
+ def endpoints_devices_summary_retrieve_with_http_info(opts = {})
3482
+ if @api_client.config.debugging
3483
+ @api_client.config.logger.debug 'Calling API: EndpointsApi.endpoints_devices_summary_retrieve ...'
3484
+ end
3485
+ # resource path
3486
+ local_var_path = '/endpoints/devices/summary/'
3487
+
3488
+ # query parameters
3489
+ query_params = opts[:query_params] || {}
3490
+
3491
+ # header parameters
3492
+ header_params = opts[:header_params] || {}
3493
+ # HTTP header 'Accept' (if needed)
3494
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
3495
+
3496
+ # form parameters
3497
+ form_params = opts[:form_params] || {}
3498
+
3499
+ # http body (model)
3500
+ post_body = opts[:debug_body]
3501
+
3502
+ # return_type
3503
+ return_type = opts[:debug_return_type] || 'DeviceSummary'
3504
+
3505
+ # auth_names
3506
+ auth_names = opts[:debug_auth_names] || ['authentik']
3507
+
3508
+ new_options = opts.merge(
3509
+ :operation => :"EndpointsApi.endpoints_devices_summary_retrieve",
3510
+ :header_params => header_params,
3511
+ :query_params => query_params,
3512
+ :form_params => form_params,
3513
+ :body => post_body,
3514
+ :auth_names => auth_names,
3515
+ :return_type => return_type
3516
+ )
3517
+
3518
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
3519
+ if @api_client.config.debugging
3520
+ @api_client.config.logger.debug "API called: EndpointsApi#endpoints_devices_summary_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3521
+ end
3522
+ return data, status_code, headers
3523
+ end
3524
+
3525
+ # Mixin to add a used_by endpoint to return a list of all objects using this object
3526
+ # @param device_uuid [String] A UUID string identifying this Device.
3527
+ # @param endpoint_device_request [EndpointDeviceRequest]
3528
+ # @param [Hash] opts the optional parameters
3529
+ # @return [EndpointDevice]
3530
+ def endpoints_devices_update(device_uuid, endpoint_device_request, opts = {})
3531
+ data, _status_code, _headers = endpoints_devices_update_with_http_info(device_uuid, endpoint_device_request, opts)
3532
+ data
3533
+ end
3534
+
3535
+ # Mixin to add a used_by endpoint to return a list of all objects using this object
3536
+ # @param device_uuid [String] A UUID string identifying this Device.
3537
+ # @param endpoint_device_request [EndpointDeviceRequest]
3538
+ # @param [Hash] opts the optional parameters
3539
+ # @return [Array<(EndpointDevice, Integer, Hash)>] EndpointDevice data, response status code and response headers
3540
+ def endpoints_devices_update_with_http_info(device_uuid, endpoint_device_request, opts = {})
3541
+ if @api_client.config.debugging
3542
+ @api_client.config.logger.debug 'Calling API: EndpointsApi.endpoints_devices_update ...'
3543
+ end
3544
+ # verify the required parameter 'device_uuid' is set
3545
+ if @api_client.config.client_side_validation && device_uuid.nil?
3546
+ fail ArgumentError, "Missing the required parameter 'device_uuid' when calling EndpointsApi.endpoints_devices_update"
3547
+ end
3548
+ # verify the required parameter 'endpoint_device_request' is set
3549
+ if @api_client.config.client_side_validation && endpoint_device_request.nil?
3550
+ fail ArgumentError, "Missing the required parameter 'endpoint_device_request' when calling EndpointsApi.endpoints_devices_update"
3551
+ end
3552
+ # resource path
3553
+ local_var_path = '/endpoints/devices/{device_uuid}/'.sub('{device_uuid}', CGI.escape(device_uuid.to_s))
3554
+
3555
+ # query parameters
3556
+ query_params = opts[:query_params] || {}
3557
+
3558
+ # header parameters
3559
+ header_params = opts[:header_params] || {}
3560
+ # HTTP header 'Accept' (if needed)
3561
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
3562
+ # HTTP header 'Content-Type'
3563
+ content_type = @api_client.select_header_content_type(['application/json'])
3564
+ if !content_type.nil?
3565
+ header_params['Content-Type'] = content_type
3566
+ end
3567
+
3568
+ # form parameters
3569
+ form_params = opts[:form_params] || {}
3570
+
3571
+ # http body (model)
3572
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(endpoint_device_request)
3573
+
3574
+ # return_type
3575
+ return_type = opts[:debug_return_type] || 'EndpointDevice'
3576
+
3577
+ # auth_names
3578
+ auth_names = opts[:debug_auth_names] || ['authentik']
3579
+
3580
+ new_options = opts.merge(
3581
+ :operation => :"EndpointsApi.endpoints_devices_update",
3582
+ :header_params => header_params,
3583
+ :query_params => query_params,
3584
+ :form_params => form_params,
3585
+ :body => post_body,
3586
+ :auth_names => auth_names,
3587
+ :return_type => return_type
3588
+ )
3589
+
3590
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
3591
+ if @api_client.config.debugging
3592
+ @api_client.config.logger.debug "API called: EndpointsApi#endpoints_devices_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3593
+ end
3594
+ return data, status_code, headers
3595
+ end
3596
+
3597
+ # Get a list of all objects that use this object
3598
+ # @param device_uuid [String] A UUID string identifying this Device.
3599
+ # @param [Hash] opts the optional parameters
3600
+ # @return [Array<UsedBy>]
3601
+ def endpoints_devices_used_by_list(device_uuid, opts = {})
3602
+ data, _status_code, _headers = endpoints_devices_used_by_list_with_http_info(device_uuid, opts)
3603
+ data
3604
+ end
3605
+
3606
+ # Get a list of all objects that use this object
3607
+ # @param device_uuid [String] A UUID string identifying this Device.
3608
+ # @param [Hash] opts the optional parameters
3609
+ # @return [Array<(Array<UsedBy>, Integer, Hash)>] Array<UsedBy> data, response status code and response headers
3610
+ def endpoints_devices_used_by_list_with_http_info(device_uuid, opts = {})
3611
+ if @api_client.config.debugging
3612
+ @api_client.config.logger.debug 'Calling API: EndpointsApi.endpoints_devices_used_by_list ...'
3613
+ end
3614
+ # verify the required parameter 'device_uuid' is set
3615
+ if @api_client.config.client_side_validation && device_uuid.nil?
3616
+ fail ArgumentError, "Missing the required parameter 'device_uuid' when calling EndpointsApi.endpoints_devices_used_by_list"
3617
+ end
3618
+ # resource path
3619
+ local_var_path = '/endpoints/devices/{device_uuid}/used_by/'.sub('{device_uuid}', CGI.escape(device_uuid.to_s))
3620
+
3621
+ # query parameters
3622
+ query_params = opts[:query_params] || {}
3623
+
3624
+ # header parameters
3625
+ header_params = opts[:header_params] || {}
3626
+ # HTTP header 'Accept' (if needed)
3627
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
3628
+
3629
+ # form parameters
3630
+ form_params = opts[:form_params] || {}
3631
+
3632
+ # http body (model)
3633
+ post_body = opts[:debug_body]
3634
+
3635
+ # return_type
3636
+ return_type = opts[:debug_return_type] || 'Array<UsedBy>'
3637
+
3638
+ # auth_names
3639
+ auth_names = opts[:debug_auth_names] || ['authentik']
3640
+
3641
+ new_options = opts.merge(
3642
+ :operation => :"EndpointsApi.endpoints_devices_used_by_list",
3643
+ :header_params => header_params,
3644
+ :query_params => query_params,
3645
+ :form_params => form_params,
3646
+ :body => post_body,
3647
+ :auth_names => auth_names,
3648
+ :return_type => return_type
3649
+ )
3650
+
3651
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
3652
+ if @api_client.config.debugging
3653
+ @api_client.config.logger.debug "API called: EndpointsApi#endpoints_devices_used_by_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3654
+ end
3655
+ return data, status_code, headers
3656
+ end
3657
+
3658
+ # FleetConnector Viewset
3659
+ # @param fleet_connector_request [FleetConnectorRequest]
3660
+ # @param [Hash] opts the optional parameters
3661
+ # @return [FleetConnector]
3662
+ def endpoints_fleet_connectors_create(fleet_connector_request, opts = {})
3663
+ data, _status_code, _headers = endpoints_fleet_connectors_create_with_http_info(fleet_connector_request, opts)
3664
+ data
3665
+ end
3666
+
3667
+ # FleetConnector Viewset
3668
+ # @param fleet_connector_request [FleetConnectorRequest]
3669
+ # @param [Hash] opts the optional parameters
3670
+ # @return [Array<(FleetConnector, Integer, Hash)>] FleetConnector data, response status code and response headers
3671
+ def endpoints_fleet_connectors_create_with_http_info(fleet_connector_request, opts = {})
3672
+ if @api_client.config.debugging
3673
+ @api_client.config.logger.debug 'Calling API: EndpointsApi.endpoints_fleet_connectors_create ...'
3674
+ end
3675
+ # verify the required parameter 'fleet_connector_request' is set
3676
+ if @api_client.config.client_side_validation && fleet_connector_request.nil?
3677
+ fail ArgumentError, "Missing the required parameter 'fleet_connector_request' when calling EndpointsApi.endpoints_fleet_connectors_create"
3678
+ end
3679
+ # resource path
3680
+ local_var_path = '/endpoints/fleet/connectors/'
3681
+
3682
+ # query parameters
3683
+ query_params = opts[:query_params] || {}
3684
+
3685
+ # header parameters
3686
+ header_params = opts[:header_params] || {}
3687
+ # HTTP header 'Accept' (if needed)
3688
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
3689
+ # HTTP header 'Content-Type'
3690
+ content_type = @api_client.select_header_content_type(['application/json'])
3691
+ if !content_type.nil?
3692
+ header_params['Content-Type'] = content_type
3693
+ end
3694
+
3695
+ # form parameters
3696
+ form_params = opts[:form_params] || {}
3697
+
3698
+ # http body (model)
3699
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(fleet_connector_request)
3700
+
3701
+ # return_type
3702
+ return_type = opts[:debug_return_type] || 'FleetConnector'
3703
+
3704
+ # auth_names
3705
+ auth_names = opts[:debug_auth_names] || ['authentik']
3706
+
3707
+ new_options = opts.merge(
3708
+ :operation => :"EndpointsApi.endpoints_fleet_connectors_create",
3709
+ :header_params => header_params,
3710
+ :query_params => query_params,
3711
+ :form_params => form_params,
3712
+ :body => post_body,
3713
+ :auth_names => auth_names,
3714
+ :return_type => return_type
3715
+ )
3716
+
3717
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
3718
+ if @api_client.config.debugging
3719
+ @api_client.config.logger.debug "API called: EndpointsApi#endpoints_fleet_connectors_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3720
+ end
3721
+ return data, status_code, headers
3722
+ end
3723
+
3724
+ # FleetConnector Viewset
3725
+ # @param connector_uuid [String] A UUID string identifying this Fleet Connector.
3726
+ # @param [Hash] opts the optional parameters
3727
+ # @return [nil]
3728
+ def endpoints_fleet_connectors_destroy(connector_uuid, opts = {})
3729
+ endpoints_fleet_connectors_destroy_with_http_info(connector_uuid, opts)
3730
+ nil
3731
+ end
3732
+
3733
+ # FleetConnector Viewset
3734
+ # @param connector_uuid [String] A UUID string identifying this Fleet Connector.
3735
+ # @param [Hash] opts the optional parameters
3736
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
3737
+ def endpoints_fleet_connectors_destroy_with_http_info(connector_uuid, opts = {})
3738
+ if @api_client.config.debugging
3739
+ @api_client.config.logger.debug 'Calling API: EndpointsApi.endpoints_fleet_connectors_destroy ...'
3740
+ end
3741
+ # verify the required parameter 'connector_uuid' is set
3742
+ if @api_client.config.client_side_validation && connector_uuid.nil?
3743
+ fail ArgumentError, "Missing the required parameter 'connector_uuid' when calling EndpointsApi.endpoints_fleet_connectors_destroy"
3744
+ end
3745
+ # resource path
3746
+ local_var_path = '/endpoints/fleet/connectors/{connector_uuid}/'.sub('{connector_uuid}', CGI.escape(connector_uuid.to_s))
3747
+
3748
+ # query parameters
3749
+ query_params = opts[:query_params] || {}
3750
+
3751
+ # header parameters
3752
+ header_params = opts[:header_params] || {}
3753
+ # HTTP header 'Accept' (if needed)
3754
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
3755
+
3756
+ # form parameters
3757
+ form_params = opts[:form_params] || {}
3758
+
3759
+ # http body (model)
3760
+ post_body = opts[:debug_body]
3761
+
3762
+ # return_type
3763
+ return_type = opts[:debug_return_type]
3764
+
3765
+ # auth_names
3766
+ auth_names = opts[:debug_auth_names] || ['authentik']
3767
+
3768
+ new_options = opts.merge(
3769
+ :operation => :"EndpointsApi.endpoints_fleet_connectors_destroy",
3770
+ :header_params => header_params,
3771
+ :query_params => query_params,
3772
+ :form_params => form_params,
3773
+ :body => post_body,
3774
+ :auth_names => auth_names,
3775
+ :return_type => return_type
3776
+ )
3777
+
3778
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
3779
+ if @api_client.config.debugging
3780
+ @api_client.config.logger.debug "API called: EndpointsApi#endpoints_fleet_connectors_destroy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3781
+ end
3782
+ return data, status_code, headers
3783
+ end
3784
+
3785
+ # FleetConnector Viewset
3786
+ # @param [Hash] opts the optional parameters
3787
+ # @option opts [String] :name
3788
+ # @option opts [String] :ordering Which field to use when ordering the results.
3789
+ # @option opts [Integer] :page A page number within the paginated result set.
3790
+ # @option opts [Integer] :page_size Number of results to return per page.
3791
+ # @option opts [String] :search A search term.
3792
+ # @return [PaginatedFleetConnectorList]
3793
+ def endpoints_fleet_connectors_list(opts = {})
3794
+ data, _status_code, _headers = endpoints_fleet_connectors_list_with_http_info(opts)
3795
+ data
3796
+ end
3797
+
3798
+ # FleetConnector Viewset
3799
+ # @param [Hash] opts the optional parameters
3800
+ # @option opts [String] :name
3801
+ # @option opts [String] :ordering Which field to use when ordering the results.
3802
+ # @option opts [Integer] :page A page number within the paginated result set.
3803
+ # @option opts [Integer] :page_size Number of results to return per page.
3804
+ # @option opts [String] :search A search term.
3805
+ # @return [Array<(PaginatedFleetConnectorList, Integer, Hash)>] PaginatedFleetConnectorList data, response status code and response headers
3806
+ def endpoints_fleet_connectors_list_with_http_info(opts = {})
3807
+ if @api_client.config.debugging
3808
+ @api_client.config.logger.debug 'Calling API: EndpointsApi.endpoints_fleet_connectors_list ...'
3809
+ end
3810
+ # resource path
3811
+ local_var_path = '/endpoints/fleet/connectors/'
3812
+
3813
+ # query parameters
3814
+ query_params = opts[:query_params] || {}
3815
+ query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
3816
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
3817
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
3818
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
3819
+ query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
3820
+
3821
+ # header parameters
3822
+ header_params = opts[:header_params] || {}
3823
+ # HTTP header 'Accept' (if needed)
3824
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
3825
+
3826
+ # form parameters
3827
+ form_params = opts[:form_params] || {}
3828
+
3829
+ # http body (model)
3830
+ post_body = opts[:debug_body]
2923
3831
 
2924
3832
  # return_type
2925
- return_type = opts[:debug_return_type] || 'EndpointDevice'
3833
+ return_type = opts[:debug_return_type] || 'PaginatedFleetConnectorList'
2926
3834
 
2927
3835
  # auth_names
2928
3836
  auth_names = opts[:debug_auth_names] || ['authentik']
2929
3837
 
2930
3838
  new_options = opts.merge(
2931
- :operation => :"EndpointsApi.endpoints_devices_partial_update",
3839
+ :operation => :"EndpointsApi.endpoints_fleet_connectors_list",
2932
3840
  :header_params => header_params,
2933
3841
  :query_params => query_params,
2934
3842
  :form_params => form_params,
@@ -2937,36 +3845,38 @@ module Authentik::Api
2937
3845
  :return_type => return_type
2938
3846
  )
2939
3847
 
2940
- data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
3848
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2941
3849
  if @api_client.config.debugging
2942
- @api_client.config.logger.debug "API called: EndpointsApi#endpoints_devices_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3850
+ @api_client.config.logger.debug "API called: EndpointsApi#endpoints_fleet_connectors_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2943
3851
  end
2944
3852
  return data, status_code, headers
2945
3853
  end
2946
3854
 
2947
- # Mixin to add a used_by endpoint to return a list of all objects using this object
2948
- # @param device_uuid [String] A UUID string identifying this Device.
3855
+ # FleetConnector Viewset
3856
+ # @param connector_uuid [String] A UUID string identifying this Fleet Connector.
2949
3857
  # @param [Hash] opts the optional parameters
2950
- # @return [EndpointDeviceDetails]
2951
- def endpoints_devices_retrieve(device_uuid, opts = {})
2952
- data, _status_code, _headers = endpoints_devices_retrieve_with_http_info(device_uuid, opts)
3858
+ # @option opts [PatchedFleetConnectorRequest] :patched_fleet_connector_request
3859
+ # @return [FleetConnector]
3860
+ def endpoints_fleet_connectors_partial_update(connector_uuid, opts = {})
3861
+ data, _status_code, _headers = endpoints_fleet_connectors_partial_update_with_http_info(connector_uuid, opts)
2953
3862
  data
2954
3863
  end
2955
3864
 
2956
- # Mixin to add a used_by endpoint to return a list of all objects using this object
2957
- # @param device_uuid [String] A UUID string identifying this Device.
3865
+ # FleetConnector Viewset
3866
+ # @param connector_uuid [String] A UUID string identifying this Fleet Connector.
2958
3867
  # @param [Hash] opts the optional parameters
2959
- # @return [Array<(EndpointDeviceDetails, Integer, Hash)>] EndpointDeviceDetails data, response status code and response headers
2960
- def endpoints_devices_retrieve_with_http_info(device_uuid, opts = {})
3868
+ # @option opts [PatchedFleetConnectorRequest] :patched_fleet_connector_request
3869
+ # @return [Array<(FleetConnector, Integer, Hash)>] FleetConnector data, response status code and response headers
3870
+ def endpoints_fleet_connectors_partial_update_with_http_info(connector_uuid, opts = {})
2961
3871
  if @api_client.config.debugging
2962
- @api_client.config.logger.debug 'Calling API: EndpointsApi.endpoints_devices_retrieve ...'
3872
+ @api_client.config.logger.debug 'Calling API: EndpointsApi.endpoints_fleet_connectors_partial_update ...'
2963
3873
  end
2964
- # verify the required parameter 'device_uuid' is set
2965
- if @api_client.config.client_side_validation && device_uuid.nil?
2966
- fail ArgumentError, "Missing the required parameter 'device_uuid' when calling EndpointsApi.endpoints_devices_retrieve"
3874
+ # verify the required parameter 'connector_uuid' is set
3875
+ if @api_client.config.client_side_validation && connector_uuid.nil?
3876
+ fail ArgumentError, "Missing the required parameter 'connector_uuid' when calling EndpointsApi.endpoints_fleet_connectors_partial_update"
2967
3877
  end
2968
3878
  # resource path
2969
- local_var_path = '/endpoints/devices/{device_uuid}/'.sub('{' + 'device_uuid' + '}', CGI.escape(device_uuid.to_s))
3879
+ local_var_path = '/endpoints/fleet/connectors/{connector_uuid}/'.sub('{connector_uuid}', CGI.escape(connector_uuid.to_s))
2970
3880
 
2971
3881
  # query parameters
2972
3882
  query_params = opts[:query_params] || {}
@@ -2975,21 +3885,26 @@ module Authentik::Api
2975
3885
  header_params = opts[:header_params] || {}
2976
3886
  # HTTP header 'Accept' (if needed)
2977
3887
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
3888
+ # HTTP header 'Content-Type'
3889
+ content_type = @api_client.select_header_content_type(['application/json'])
3890
+ if !content_type.nil?
3891
+ header_params['Content-Type'] = content_type
3892
+ end
2978
3893
 
2979
3894
  # form parameters
2980
3895
  form_params = opts[:form_params] || {}
2981
3896
 
2982
3897
  # http body (model)
2983
- post_body = opts[:debug_body]
3898
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'patched_fleet_connector_request'])
2984
3899
 
2985
3900
  # return_type
2986
- return_type = opts[:debug_return_type] || 'EndpointDeviceDetails'
3901
+ return_type = opts[:debug_return_type] || 'FleetConnector'
2987
3902
 
2988
3903
  # auth_names
2989
3904
  auth_names = opts[:debug_auth_names] || ['authentik']
2990
3905
 
2991
3906
  new_options = opts.merge(
2992
- :operation => :"EndpointsApi.endpoints_devices_retrieve",
3907
+ :operation => :"EndpointsApi.endpoints_fleet_connectors_partial_update",
2993
3908
  :header_params => header_params,
2994
3909
  :query_params => query_params,
2995
3910
  :form_params => form_params,
@@ -2998,30 +3913,36 @@ module Authentik::Api
2998
3913
  :return_type => return_type
2999
3914
  )
3000
3915
 
3001
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
3916
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
3002
3917
  if @api_client.config.debugging
3003
- @api_client.config.logger.debug "API called: EndpointsApi#endpoints_devices_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3918
+ @api_client.config.logger.debug "API called: EndpointsApi#endpoints_fleet_connectors_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3004
3919
  end
3005
3920
  return data, status_code, headers
3006
3921
  end
3007
3922
 
3008
- # Mixin to add a used_by endpoint to return a list of all objects using this object
3923
+ # FleetConnector Viewset
3924
+ # @param connector_uuid [String] A UUID string identifying this Fleet Connector.
3009
3925
  # @param [Hash] opts the optional parameters
3010
- # @return [DeviceSummary]
3011
- def endpoints_devices_summary_retrieve(opts = {})
3012
- data, _status_code, _headers = endpoints_devices_summary_retrieve_with_http_info(opts)
3926
+ # @return [FleetConnector]
3927
+ def endpoints_fleet_connectors_retrieve(connector_uuid, opts = {})
3928
+ data, _status_code, _headers = endpoints_fleet_connectors_retrieve_with_http_info(connector_uuid, opts)
3013
3929
  data
3014
3930
  end
3015
3931
 
3016
- # Mixin to add a used_by endpoint to return a list of all objects using this object
3932
+ # FleetConnector Viewset
3933
+ # @param connector_uuid [String] A UUID string identifying this Fleet Connector.
3017
3934
  # @param [Hash] opts the optional parameters
3018
- # @return [Array<(DeviceSummary, Integer, Hash)>] DeviceSummary data, response status code and response headers
3019
- def endpoints_devices_summary_retrieve_with_http_info(opts = {})
3935
+ # @return [Array<(FleetConnector, Integer, Hash)>] FleetConnector data, response status code and response headers
3936
+ def endpoints_fleet_connectors_retrieve_with_http_info(connector_uuid, opts = {})
3020
3937
  if @api_client.config.debugging
3021
- @api_client.config.logger.debug 'Calling API: EndpointsApi.endpoints_devices_summary_retrieve ...'
3938
+ @api_client.config.logger.debug 'Calling API: EndpointsApi.endpoints_fleet_connectors_retrieve ...'
3939
+ end
3940
+ # verify the required parameter 'connector_uuid' is set
3941
+ if @api_client.config.client_side_validation && connector_uuid.nil?
3942
+ fail ArgumentError, "Missing the required parameter 'connector_uuid' when calling EndpointsApi.endpoints_fleet_connectors_retrieve"
3022
3943
  end
3023
3944
  # resource path
3024
- local_var_path = '/endpoints/devices/summary/'
3945
+ local_var_path = '/endpoints/fleet/connectors/{connector_uuid}/'.sub('{connector_uuid}', CGI.escape(connector_uuid.to_s))
3025
3946
 
3026
3947
  # query parameters
3027
3948
  query_params = opts[:query_params] || {}
@@ -3038,13 +3959,13 @@ module Authentik::Api
3038
3959
  post_body = opts[:debug_body]
3039
3960
 
3040
3961
  # return_type
3041
- return_type = opts[:debug_return_type] || 'DeviceSummary'
3962
+ return_type = opts[:debug_return_type] || 'FleetConnector'
3042
3963
 
3043
3964
  # auth_names
3044
3965
  auth_names = opts[:debug_auth_names] || ['authentik']
3045
3966
 
3046
3967
  new_options = opts.merge(
3047
- :operation => :"EndpointsApi.endpoints_devices_summary_retrieve",
3968
+ :operation => :"EndpointsApi.endpoints_fleet_connectors_retrieve",
3048
3969
  :header_params => header_params,
3049
3970
  :query_params => query_params,
3050
3971
  :form_params => form_params,
@@ -3055,40 +3976,40 @@ module Authentik::Api
3055
3976
 
3056
3977
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
3057
3978
  if @api_client.config.debugging
3058
- @api_client.config.logger.debug "API called: EndpointsApi#endpoints_devices_summary_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3979
+ @api_client.config.logger.debug "API called: EndpointsApi#endpoints_fleet_connectors_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3059
3980
  end
3060
3981
  return data, status_code, headers
3061
3982
  end
3062
3983
 
3063
- # Mixin to add a used_by endpoint to return a list of all objects using this object
3064
- # @param device_uuid [String] A UUID string identifying this Device.
3065
- # @param endpoint_device_request [EndpointDeviceRequest]
3984
+ # FleetConnector Viewset
3985
+ # @param connector_uuid [String] A UUID string identifying this Fleet Connector.
3986
+ # @param fleet_connector_request [FleetConnectorRequest]
3066
3987
  # @param [Hash] opts the optional parameters
3067
- # @return [EndpointDevice]
3068
- def endpoints_devices_update(device_uuid, endpoint_device_request, opts = {})
3069
- data, _status_code, _headers = endpoints_devices_update_with_http_info(device_uuid, endpoint_device_request, opts)
3988
+ # @return [FleetConnector]
3989
+ def endpoints_fleet_connectors_update(connector_uuid, fleet_connector_request, opts = {})
3990
+ data, _status_code, _headers = endpoints_fleet_connectors_update_with_http_info(connector_uuid, fleet_connector_request, opts)
3070
3991
  data
3071
3992
  end
3072
3993
 
3073
- # Mixin to add a used_by endpoint to return a list of all objects using this object
3074
- # @param device_uuid [String] A UUID string identifying this Device.
3075
- # @param endpoint_device_request [EndpointDeviceRequest]
3994
+ # FleetConnector Viewset
3995
+ # @param connector_uuid [String] A UUID string identifying this Fleet Connector.
3996
+ # @param fleet_connector_request [FleetConnectorRequest]
3076
3997
  # @param [Hash] opts the optional parameters
3077
- # @return [Array<(EndpointDevice, Integer, Hash)>] EndpointDevice data, response status code and response headers
3078
- def endpoints_devices_update_with_http_info(device_uuid, endpoint_device_request, opts = {})
3998
+ # @return [Array<(FleetConnector, Integer, Hash)>] FleetConnector data, response status code and response headers
3999
+ def endpoints_fleet_connectors_update_with_http_info(connector_uuid, fleet_connector_request, opts = {})
3079
4000
  if @api_client.config.debugging
3080
- @api_client.config.logger.debug 'Calling API: EndpointsApi.endpoints_devices_update ...'
4001
+ @api_client.config.logger.debug 'Calling API: EndpointsApi.endpoints_fleet_connectors_update ...'
3081
4002
  end
3082
- # verify the required parameter 'device_uuid' is set
3083
- if @api_client.config.client_side_validation && device_uuid.nil?
3084
- fail ArgumentError, "Missing the required parameter 'device_uuid' when calling EndpointsApi.endpoints_devices_update"
4003
+ # verify the required parameter 'connector_uuid' is set
4004
+ if @api_client.config.client_side_validation && connector_uuid.nil?
4005
+ fail ArgumentError, "Missing the required parameter 'connector_uuid' when calling EndpointsApi.endpoints_fleet_connectors_update"
3085
4006
  end
3086
- # verify the required parameter 'endpoint_device_request' is set
3087
- if @api_client.config.client_side_validation && endpoint_device_request.nil?
3088
- fail ArgumentError, "Missing the required parameter 'endpoint_device_request' when calling EndpointsApi.endpoints_devices_update"
4007
+ # verify the required parameter 'fleet_connector_request' is set
4008
+ if @api_client.config.client_side_validation && fleet_connector_request.nil?
4009
+ fail ArgumentError, "Missing the required parameter 'fleet_connector_request' when calling EndpointsApi.endpoints_fleet_connectors_update"
3089
4010
  end
3090
4011
  # resource path
3091
- local_var_path = '/endpoints/devices/{device_uuid}/'.sub('{' + 'device_uuid' + '}', CGI.escape(device_uuid.to_s))
4012
+ local_var_path = '/endpoints/fleet/connectors/{connector_uuid}/'.sub('{connector_uuid}', CGI.escape(connector_uuid.to_s))
3092
4013
 
3093
4014
  # query parameters
3094
4015
  query_params = opts[:query_params] || {}
@@ -3107,16 +4028,16 @@ module Authentik::Api
3107
4028
  form_params = opts[:form_params] || {}
3108
4029
 
3109
4030
  # http body (model)
3110
- post_body = opts[:debug_body] || @api_client.object_to_http_body(endpoint_device_request)
4031
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(fleet_connector_request)
3111
4032
 
3112
4033
  # return_type
3113
- return_type = opts[:debug_return_type] || 'EndpointDevice'
4034
+ return_type = opts[:debug_return_type] || 'FleetConnector'
3114
4035
 
3115
4036
  # auth_names
3116
4037
  auth_names = opts[:debug_auth_names] || ['authentik']
3117
4038
 
3118
4039
  new_options = opts.merge(
3119
- :operation => :"EndpointsApi.endpoints_devices_update",
4040
+ :operation => :"EndpointsApi.endpoints_fleet_connectors_update",
3120
4041
  :header_params => header_params,
3121
4042
  :query_params => query_params,
3122
4043
  :form_params => form_params,
@@ -3127,34 +4048,34 @@ module Authentik::Api
3127
4048
 
3128
4049
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
3129
4050
  if @api_client.config.debugging
3130
- @api_client.config.logger.debug "API called: EndpointsApi#endpoints_devices_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4051
+ @api_client.config.logger.debug "API called: EndpointsApi#endpoints_fleet_connectors_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3131
4052
  end
3132
4053
  return data, status_code, headers
3133
4054
  end
3134
4055
 
3135
4056
  # Get a list of all objects that use this object
3136
- # @param device_uuid [String] A UUID string identifying this Device.
4057
+ # @param connector_uuid [String] A UUID string identifying this Fleet Connector.
3137
4058
  # @param [Hash] opts the optional parameters
3138
4059
  # @return [Array<UsedBy>]
3139
- def endpoints_devices_used_by_list(device_uuid, opts = {})
3140
- data, _status_code, _headers = endpoints_devices_used_by_list_with_http_info(device_uuid, opts)
4060
+ def endpoints_fleet_connectors_used_by_list(connector_uuid, opts = {})
4061
+ data, _status_code, _headers = endpoints_fleet_connectors_used_by_list_with_http_info(connector_uuid, opts)
3141
4062
  data
3142
4063
  end
3143
4064
 
3144
4065
  # Get a list of all objects that use this object
3145
- # @param device_uuid [String] A UUID string identifying this Device.
4066
+ # @param connector_uuid [String] A UUID string identifying this Fleet Connector.
3146
4067
  # @param [Hash] opts the optional parameters
3147
4068
  # @return [Array<(Array<UsedBy>, Integer, Hash)>] Array<UsedBy> data, response status code and response headers
3148
- def endpoints_devices_used_by_list_with_http_info(device_uuid, opts = {})
4069
+ def endpoints_fleet_connectors_used_by_list_with_http_info(connector_uuid, opts = {})
3149
4070
  if @api_client.config.debugging
3150
- @api_client.config.logger.debug 'Calling API: EndpointsApi.endpoints_devices_used_by_list ...'
4071
+ @api_client.config.logger.debug 'Calling API: EndpointsApi.endpoints_fleet_connectors_used_by_list ...'
3151
4072
  end
3152
- # verify the required parameter 'device_uuid' is set
3153
- if @api_client.config.client_side_validation && device_uuid.nil?
3154
- fail ArgumentError, "Missing the required parameter 'device_uuid' when calling EndpointsApi.endpoints_devices_used_by_list"
4073
+ # verify the required parameter 'connector_uuid' is set
4074
+ if @api_client.config.client_side_validation && connector_uuid.nil?
4075
+ fail ArgumentError, "Missing the required parameter 'connector_uuid' when calling EndpointsApi.endpoints_fleet_connectors_used_by_list"
3155
4076
  end
3156
4077
  # resource path
3157
- local_var_path = '/endpoints/devices/{device_uuid}/used_by/'.sub('{' + 'device_uuid' + '}', CGI.escape(device_uuid.to_s))
4078
+ local_var_path = '/endpoints/fleet/connectors/{connector_uuid}/used_by/'.sub('{connector_uuid}', CGI.escape(connector_uuid.to_s))
3158
4079
 
3159
4080
  # query parameters
3160
4081
  query_params = opts[:query_params] || {}
@@ -3177,7 +4098,7 @@ module Authentik::Api
3177
4098
  auth_names = opts[:debug_auth_names] || ['authentik']
3178
4099
 
3179
4100
  new_options = opts.merge(
3180
- :operation => :"EndpointsApi.endpoints_devices_used_by_list",
4101
+ :operation => :"EndpointsApi.endpoints_fleet_connectors_used_by_list",
3181
4102
  :header_params => header_params,
3182
4103
  :query_params => query_params,
3183
4104
  :form_params => form_params,
@@ -3188,34 +4109,34 @@ module Authentik::Api
3188
4109
 
3189
4110
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
3190
4111
  if @api_client.config.debugging
3191
- @api_client.config.logger.debug "API called: EndpointsApi#endpoints_devices_used_by_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4112
+ @api_client.config.logger.debug "API called: EndpointsApi#endpoints_fleet_connectors_used_by_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3192
4113
  end
3193
4114
  return data, status_code, headers
3194
4115
  end
3195
4116
 
3196
- # FleetConnector Viewset
3197
- # @param fleet_connector_request [FleetConnectorRequest]
4117
+ # GoogleChromeConnector Viewset
4118
+ # @param google_chrome_connector_request [GoogleChromeConnectorRequest]
3198
4119
  # @param [Hash] opts the optional parameters
3199
- # @return [FleetConnector]
3200
- def endpoints_fleet_connectors_create(fleet_connector_request, opts = {})
3201
- data, _status_code, _headers = endpoints_fleet_connectors_create_with_http_info(fleet_connector_request, opts)
4120
+ # @return [GoogleChromeConnector]
4121
+ def endpoints_google_chrome_connectors_create(google_chrome_connector_request, opts = {})
4122
+ data, _status_code, _headers = endpoints_google_chrome_connectors_create_with_http_info(google_chrome_connector_request, opts)
3202
4123
  data
3203
4124
  end
3204
4125
 
3205
- # FleetConnector Viewset
3206
- # @param fleet_connector_request [FleetConnectorRequest]
4126
+ # GoogleChromeConnector Viewset
4127
+ # @param google_chrome_connector_request [GoogleChromeConnectorRequest]
3207
4128
  # @param [Hash] opts the optional parameters
3208
- # @return [Array<(FleetConnector, Integer, Hash)>] FleetConnector data, response status code and response headers
3209
- def endpoints_fleet_connectors_create_with_http_info(fleet_connector_request, opts = {})
4129
+ # @return [Array<(GoogleChromeConnector, Integer, Hash)>] GoogleChromeConnector data, response status code and response headers
4130
+ def endpoints_google_chrome_connectors_create_with_http_info(google_chrome_connector_request, opts = {})
3210
4131
  if @api_client.config.debugging
3211
- @api_client.config.logger.debug 'Calling API: EndpointsApi.endpoints_fleet_connectors_create ...'
4132
+ @api_client.config.logger.debug 'Calling API: EndpointsApi.endpoints_google_chrome_connectors_create ...'
3212
4133
  end
3213
- # verify the required parameter 'fleet_connector_request' is set
3214
- if @api_client.config.client_side_validation && fleet_connector_request.nil?
3215
- fail ArgumentError, "Missing the required parameter 'fleet_connector_request' when calling EndpointsApi.endpoints_fleet_connectors_create"
4134
+ # verify the required parameter 'google_chrome_connector_request' is set
4135
+ if @api_client.config.client_side_validation && google_chrome_connector_request.nil?
4136
+ fail ArgumentError, "Missing the required parameter 'google_chrome_connector_request' when calling EndpointsApi.endpoints_google_chrome_connectors_create"
3216
4137
  end
3217
4138
  # resource path
3218
- local_var_path = '/endpoints/fleet/connectors/'
4139
+ local_var_path = '/endpoints/google_chrome/connectors/'
3219
4140
 
3220
4141
  # query parameters
3221
4142
  query_params = opts[:query_params] || {}
@@ -3234,16 +4155,16 @@ module Authentik::Api
3234
4155
  form_params = opts[:form_params] || {}
3235
4156
 
3236
4157
  # http body (model)
3237
- post_body = opts[:debug_body] || @api_client.object_to_http_body(fleet_connector_request)
4158
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(google_chrome_connector_request)
3238
4159
 
3239
4160
  # return_type
3240
- return_type = opts[:debug_return_type] || 'FleetConnector'
4161
+ return_type = opts[:debug_return_type] || 'GoogleChromeConnector'
3241
4162
 
3242
4163
  # auth_names
3243
4164
  auth_names = opts[:debug_auth_names] || ['authentik']
3244
4165
 
3245
4166
  new_options = opts.merge(
3246
- :operation => :"EndpointsApi.endpoints_fleet_connectors_create",
4167
+ :operation => :"EndpointsApi.endpoints_google_chrome_connectors_create",
3247
4168
  :header_params => header_params,
3248
4169
  :query_params => query_params,
3249
4170
  :form_params => form_params,
@@ -3254,34 +4175,34 @@ module Authentik::Api
3254
4175
 
3255
4176
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
3256
4177
  if @api_client.config.debugging
3257
- @api_client.config.logger.debug "API called: EndpointsApi#endpoints_fleet_connectors_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4178
+ @api_client.config.logger.debug "API called: EndpointsApi#endpoints_google_chrome_connectors_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3258
4179
  end
3259
4180
  return data, status_code, headers
3260
4181
  end
3261
4182
 
3262
- # FleetConnector Viewset
3263
- # @param connector_uuid [String] A UUID string identifying this Fleet Connector.
4183
+ # GoogleChromeConnector Viewset
4184
+ # @param connector_uuid [String] A UUID string identifying this Google Device Trust Connector.
3264
4185
  # @param [Hash] opts the optional parameters
3265
4186
  # @return [nil]
3266
- def endpoints_fleet_connectors_destroy(connector_uuid, opts = {})
3267
- endpoints_fleet_connectors_destroy_with_http_info(connector_uuid, opts)
4187
+ def endpoints_google_chrome_connectors_destroy(connector_uuid, opts = {})
4188
+ endpoints_google_chrome_connectors_destroy_with_http_info(connector_uuid, opts)
3268
4189
  nil
3269
4190
  end
3270
4191
 
3271
- # FleetConnector Viewset
3272
- # @param connector_uuid [String] A UUID string identifying this Fleet Connector.
4192
+ # GoogleChromeConnector Viewset
4193
+ # @param connector_uuid [String] A UUID string identifying this Google Device Trust Connector.
3273
4194
  # @param [Hash] opts the optional parameters
3274
4195
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
3275
- def endpoints_fleet_connectors_destroy_with_http_info(connector_uuid, opts = {})
4196
+ def endpoints_google_chrome_connectors_destroy_with_http_info(connector_uuid, opts = {})
3276
4197
  if @api_client.config.debugging
3277
- @api_client.config.logger.debug 'Calling API: EndpointsApi.endpoints_fleet_connectors_destroy ...'
4198
+ @api_client.config.logger.debug 'Calling API: EndpointsApi.endpoints_google_chrome_connectors_destroy ...'
3278
4199
  end
3279
4200
  # verify the required parameter 'connector_uuid' is set
3280
4201
  if @api_client.config.client_side_validation && connector_uuid.nil?
3281
- fail ArgumentError, "Missing the required parameter 'connector_uuid' when calling EndpointsApi.endpoints_fleet_connectors_destroy"
4202
+ fail ArgumentError, "Missing the required parameter 'connector_uuid' when calling EndpointsApi.endpoints_google_chrome_connectors_destroy"
3282
4203
  end
3283
4204
  # resource path
3284
- local_var_path = '/endpoints/fleet/connectors/{connector_uuid}/'.sub('{' + 'connector_uuid' + '}', CGI.escape(connector_uuid.to_s))
4205
+ local_var_path = '/endpoints/google_chrome/connectors/{connector_uuid}/'.sub('{connector_uuid}', CGI.escape(connector_uuid.to_s))
3285
4206
 
3286
4207
  # query parameters
3287
4208
  query_params = opts[:query_params] || {}
@@ -3304,7 +4225,7 @@ module Authentik::Api
3304
4225
  auth_names = opts[:debug_auth_names] || ['authentik']
3305
4226
 
3306
4227
  new_options = opts.merge(
3307
- :operation => :"EndpointsApi.endpoints_fleet_connectors_destroy",
4228
+ :operation => :"EndpointsApi.endpoints_google_chrome_connectors_destroy",
3308
4229
  :header_params => header_params,
3309
4230
  :query_params => query_params,
3310
4231
  :form_params => form_params,
@@ -3315,38 +4236,38 @@ module Authentik::Api
3315
4236
 
3316
4237
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
3317
4238
  if @api_client.config.debugging
3318
- @api_client.config.logger.debug "API called: EndpointsApi#endpoints_fleet_connectors_destroy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4239
+ @api_client.config.logger.debug "API called: EndpointsApi#endpoints_google_chrome_connectors_destroy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3319
4240
  end
3320
4241
  return data, status_code, headers
3321
4242
  end
3322
4243
 
3323
- # FleetConnector Viewset
4244
+ # GoogleChromeConnector Viewset
3324
4245
  # @param [Hash] opts the optional parameters
3325
4246
  # @option opts [String] :name
3326
4247
  # @option opts [String] :ordering Which field to use when ordering the results.
3327
4248
  # @option opts [Integer] :page A page number within the paginated result set.
3328
4249
  # @option opts [Integer] :page_size Number of results to return per page.
3329
4250
  # @option opts [String] :search A search term.
3330
- # @return [PaginatedFleetConnectorList]
3331
- def endpoints_fleet_connectors_list(opts = {})
3332
- data, _status_code, _headers = endpoints_fleet_connectors_list_with_http_info(opts)
4251
+ # @return [PaginatedGoogleChromeConnectorList]
4252
+ def endpoints_google_chrome_connectors_list(opts = {})
4253
+ data, _status_code, _headers = endpoints_google_chrome_connectors_list_with_http_info(opts)
3333
4254
  data
3334
4255
  end
3335
4256
 
3336
- # FleetConnector Viewset
4257
+ # GoogleChromeConnector Viewset
3337
4258
  # @param [Hash] opts the optional parameters
3338
4259
  # @option opts [String] :name
3339
4260
  # @option opts [String] :ordering Which field to use when ordering the results.
3340
4261
  # @option opts [Integer] :page A page number within the paginated result set.
3341
4262
  # @option opts [Integer] :page_size Number of results to return per page.
3342
4263
  # @option opts [String] :search A search term.
3343
- # @return [Array<(PaginatedFleetConnectorList, Integer, Hash)>] PaginatedFleetConnectorList data, response status code and response headers
3344
- def endpoints_fleet_connectors_list_with_http_info(opts = {})
4264
+ # @return [Array<(PaginatedGoogleChromeConnectorList, Integer, Hash)>] PaginatedGoogleChromeConnectorList data, response status code and response headers
4265
+ def endpoints_google_chrome_connectors_list_with_http_info(opts = {})
3345
4266
  if @api_client.config.debugging
3346
- @api_client.config.logger.debug 'Calling API: EndpointsApi.endpoints_fleet_connectors_list ...'
4267
+ @api_client.config.logger.debug 'Calling API: EndpointsApi.endpoints_google_chrome_connectors_list ...'
3347
4268
  end
3348
4269
  # resource path
3349
- local_var_path = '/endpoints/fleet/connectors/'
4270
+ local_var_path = '/endpoints/google_chrome/connectors/'
3350
4271
 
3351
4272
  # query parameters
3352
4273
  query_params = opts[:query_params] || {}
@@ -3368,13 +4289,13 @@ module Authentik::Api
3368
4289
  post_body = opts[:debug_body]
3369
4290
 
3370
4291
  # return_type
3371
- return_type = opts[:debug_return_type] || 'PaginatedFleetConnectorList'
4292
+ return_type = opts[:debug_return_type] || 'PaginatedGoogleChromeConnectorList'
3372
4293
 
3373
4294
  # auth_names
3374
4295
  auth_names = opts[:debug_auth_names] || ['authentik']
3375
4296
 
3376
4297
  new_options = opts.merge(
3377
- :operation => :"EndpointsApi.endpoints_fleet_connectors_list",
4298
+ :operation => :"EndpointsApi.endpoints_google_chrome_connectors_list",
3378
4299
  :header_params => header_params,
3379
4300
  :query_params => query_params,
3380
4301
  :form_params => form_params,
@@ -3385,36 +4306,36 @@ module Authentik::Api
3385
4306
 
3386
4307
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
3387
4308
  if @api_client.config.debugging
3388
- @api_client.config.logger.debug "API called: EndpointsApi#endpoints_fleet_connectors_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4309
+ @api_client.config.logger.debug "API called: EndpointsApi#endpoints_google_chrome_connectors_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3389
4310
  end
3390
4311
  return data, status_code, headers
3391
4312
  end
3392
4313
 
3393
- # FleetConnector Viewset
3394
- # @param connector_uuid [String] A UUID string identifying this Fleet Connector.
4314
+ # GoogleChromeConnector Viewset
4315
+ # @param connector_uuid [String] A UUID string identifying this Google Device Trust Connector.
3395
4316
  # @param [Hash] opts the optional parameters
3396
- # @option opts [PatchedFleetConnectorRequest] :patched_fleet_connector_request
3397
- # @return [FleetConnector]
3398
- def endpoints_fleet_connectors_partial_update(connector_uuid, opts = {})
3399
- data, _status_code, _headers = endpoints_fleet_connectors_partial_update_with_http_info(connector_uuid, opts)
4317
+ # @option opts [PatchedGoogleChromeConnectorRequest] :patched_google_chrome_connector_request
4318
+ # @return [GoogleChromeConnector]
4319
+ def endpoints_google_chrome_connectors_partial_update(connector_uuid, opts = {})
4320
+ data, _status_code, _headers = endpoints_google_chrome_connectors_partial_update_with_http_info(connector_uuid, opts)
3400
4321
  data
3401
4322
  end
3402
4323
 
3403
- # FleetConnector Viewset
3404
- # @param connector_uuid [String] A UUID string identifying this Fleet Connector.
4324
+ # GoogleChromeConnector Viewset
4325
+ # @param connector_uuid [String] A UUID string identifying this Google Device Trust Connector.
3405
4326
  # @param [Hash] opts the optional parameters
3406
- # @option opts [PatchedFleetConnectorRequest] :patched_fleet_connector_request
3407
- # @return [Array<(FleetConnector, Integer, Hash)>] FleetConnector data, response status code and response headers
3408
- def endpoints_fleet_connectors_partial_update_with_http_info(connector_uuid, opts = {})
4327
+ # @option opts [PatchedGoogleChromeConnectorRequest] :patched_google_chrome_connector_request
4328
+ # @return [Array<(GoogleChromeConnector, Integer, Hash)>] GoogleChromeConnector data, response status code and response headers
4329
+ def endpoints_google_chrome_connectors_partial_update_with_http_info(connector_uuid, opts = {})
3409
4330
  if @api_client.config.debugging
3410
- @api_client.config.logger.debug 'Calling API: EndpointsApi.endpoints_fleet_connectors_partial_update ...'
4331
+ @api_client.config.logger.debug 'Calling API: EndpointsApi.endpoints_google_chrome_connectors_partial_update ...'
3411
4332
  end
3412
4333
  # verify the required parameter 'connector_uuid' is set
3413
4334
  if @api_client.config.client_side_validation && connector_uuid.nil?
3414
- fail ArgumentError, "Missing the required parameter 'connector_uuid' when calling EndpointsApi.endpoints_fleet_connectors_partial_update"
4335
+ fail ArgumentError, "Missing the required parameter 'connector_uuid' when calling EndpointsApi.endpoints_google_chrome_connectors_partial_update"
3415
4336
  end
3416
4337
  # resource path
3417
- local_var_path = '/endpoints/fleet/connectors/{connector_uuid}/'.sub('{' + 'connector_uuid' + '}', CGI.escape(connector_uuid.to_s))
4338
+ local_var_path = '/endpoints/google_chrome/connectors/{connector_uuid}/'.sub('{connector_uuid}', CGI.escape(connector_uuid.to_s))
3418
4339
 
3419
4340
  # query parameters
3420
4341
  query_params = opts[:query_params] || {}
@@ -3433,16 +4354,16 @@ module Authentik::Api
3433
4354
  form_params = opts[:form_params] || {}
3434
4355
 
3435
4356
  # http body (model)
3436
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'patched_fleet_connector_request'])
4357
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'patched_google_chrome_connector_request'])
3437
4358
 
3438
4359
  # return_type
3439
- return_type = opts[:debug_return_type] || 'FleetConnector'
4360
+ return_type = opts[:debug_return_type] || 'GoogleChromeConnector'
3440
4361
 
3441
4362
  # auth_names
3442
4363
  auth_names = opts[:debug_auth_names] || ['authentik']
3443
4364
 
3444
4365
  new_options = opts.merge(
3445
- :operation => :"EndpointsApi.endpoints_fleet_connectors_partial_update",
4366
+ :operation => :"EndpointsApi.endpoints_google_chrome_connectors_partial_update",
3446
4367
  :header_params => header_params,
3447
4368
  :query_params => query_params,
3448
4369
  :form_params => form_params,
@@ -3453,34 +4374,34 @@ module Authentik::Api
3453
4374
 
3454
4375
  data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
3455
4376
  if @api_client.config.debugging
3456
- @api_client.config.logger.debug "API called: EndpointsApi#endpoints_fleet_connectors_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4377
+ @api_client.config.logger.debug "API called: EndpointsApi#endpoints_google_chrome_connectors_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3457
4378
  end
3458
4379
  return data, status_code, headers
3459
4380
  end
3460
4381
 
3461
- # FleetConnector Viewset
3462
- # @param connector_uuid [String] A UUID string identifying this Fleet Connector.
4382
+ # GoogleChromeConnector Viewset
4383
+ # @param connector_uuid [String] A UUID string identifying this Google Device Trust Connector.
3463
4384
  # @param [Hash] opts the optional parameters
3464
- # @return [FleetConnector]
3465
- def endpoints_fleet_connectors_retrieve(connector_uuid, opts = {})
3466
- data, _status_code, _headers = endpoints_fleet_connectors_retrieve_with_http_info(connector_uuid, opts)
4385
+ # @return [GoogleChromeConnector]
4386
+ def endpoints_google_chrome_connectors_retrieve(connector_uuid, opts = {})
4387
+ data, _status_code, _headers = endpoints_google_chrome_connectors_retrieve_with_http_info(connector_uuid, opts)
3467
4388
  data
3468
4389
  end
3469
4390
 
3470
- # FleetConnector Viewset
3471
- # @param connector_uuid [String] A UUID string identifying this Fleet Connector.
4391
+ # GoogleChromeConnector Viewset
4392
+ # @param connector_uuid [String] A UUID string identifying this Google Device Trust Connector.
3472
4393
  # @param [Hash] opts the optional parameters
3473
- # @return [Array<(FleetConnector, Integer, Hash)>] FleetConnector data, response status code and response headers
3474
- def endpoints_fleet_connectors_retrieve_with_http_info(connector_uuid, opts = {})
4394
+ # @return [Array<(GoogleChromeConnector, Integer, Hash)>] GoogleChromeConnector data, response status code and response headers
4395
+ def endpoints_google_chrome_connectors_retrieve_with_http_info(connector_uuid, opts = {})
3475
4396
  if @api_client.config.debugging
3476
- @api_client.config.logger.debug 'Calling API: EndpointsApi.endpoints_fleet_connectors_retrieve ...'
4397
+ @api_client.config.logger.debug 'Calling API: EndpointsApi.endpoints_google_chrome_connectors_retrieve ...'
3477
4398
  end
3478
4399
  # verify the required parameter 'connector_uuid' is set
3479
4400
  if @api_client.config.client_side_validation && connector_uuid.nil?
3480
- fail ArgumentError, "Missing the required parameter 'connector_uuid' when calling EndpointsApi.endpoints_fleet_connectors_retrieve"
4401
+ fail ArgumentError, "Missing the required parameter 'connector_uuid' when calling EndpointsApi.endpoints_google_chrome_connectors_retrieve"
3481
4402
  end
3482
4403
  # resource path
3483
- local_var_path = '/endpoints/fleet/connectors/{connector_uuid}/'.sub('{' + 'connector_uuid' + '}', CGI.escape(connector_uuid.to_s))
4404
+ local_var_path = '/endpoints/google_chrome/connectors/{connector_uuid}/'.sub('{connector_uuid}', CGI.escape(connector_uuid.to_s))
3484
4405
 
3485
4406
  # query parameters
3486
4407
  query_params = opts[:query_params] || {}
@@ -3497,13 +4418,13 @@ module Authentik::Api
3497
4418
  post_body = opts[:debug_body]
3498
4419
 
3499
4420
  # return_type
3500
- return_type = opts[:debug_return_type] || 'FleetConnector'
4421
+ return_type = opts[:debug_return_type] || 'GoogleChromeConnector'
3501
4422
 
3502
4423
  # auth_names
3503
4424
  auth_names = opts[:debug_auth_names] || ['authentik']
3504
4425
 
3505
4426
  new_options = opts.merge(
3506
- :operation => :"EndpointsApi.endpoints_fleet_connectors_retrieve",
4427
+ :operation => :"EndpointsApi.endpoints_google_chrome_connectors_retrieve",
3507
4428
  :header_params => header_params,
3508
4429
  :query_params => query_params,
3509
4430
  :form_params => form_params,
@@ -3514,40 +4435,40 @@ module Authentik::Api
3514
4435
 
3515
4436
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
3516
4437
  if @api_client.config.debugging
3517
- @api_client.config.logger.debug "API called: EndpointsApi#endpoints_fleet_connectors_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4438
+ @api_client.config.logger.debug "API called: EndpointsApi#endpoints_google_chrome_connectors_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3518
4439
  end
3519
4440
  return data, status_code, headers
3520
4441
  end
3521
4442
 
3522
- # FleetConnector Viewset
3523
- # @param connector_uuid [String] A UUID string identifying this Fleet Connector.
3524
- # @param fleet_connector_request [FleetConnectorRequest]
4443
+ # GoogleChromeConnector Viewset
4444
+ # @param connector_uuid [String] A UUID string identifying this Google Device Trust Connector.
4445
+ # @param google_chrome_connector_request [GoogleChromeConnectorRequest]
3525
4446
  # @param [Hash] opts the optional parameters
3526
- # @return [FleetConnector]
3527
- def endpoints_fleet_connectors_update(connector_uuid, fleet_connector_request, opts = {})
3528
- data, _status_code, _headers = endpoints_fleet_connectors_update_with_http_info(connector_uuid, fleet_connector_request, opts)
4447
+ # @return [GoogleChromeConnector]
4448
+ def endpoints_google_chrome_connectors_update(connector_uuid, google_chrome_connector_request, opts = {})
4449
+ data, _status_code, _headers = endpoints_google_chrome_connectors_update_with_http_info(connector_uuid, google_chrome_connector_request, opts)
3529
4450
  data
3530
4451
  end
3531
4452
 
3532
- # FleetConnector Viewset
3533
- # @param connector_uuid [String] A UUID string identifying this Fleet Connector.
3534
- # @param fleet_connector_request [FleetConnectorRequest]
4453
+ # GoogleChromeConnector Viewset
4454
+ # @param connector_uuid [String] A UUID string identifying this Google Device Trust Connector.
4455
+ # @param google_chrome_connector_request [GoogleChromeConnectorRequest]
3535
4456
  # @param [Hash] opts the optional parameters
3536
- # @return [Array<(FleetConnector, Integer, Hash)>] FleetConnector data, response status code and response headers
3537
- def endpoints_fleet_connectors_update_with_http_info(connector_uuid, fleet_connector_request, opts = {})
4457
+ # @return [Array<(GoogleChromeConnector, Integer, Hash)>] GoogleChromeConnector data, response status code and response headers
4458
+ def endpoints_google_chrome_connectors_update_with_http_info(connector_uuid, google_chrome_connector_request, opts = {})
3538
4459
  if @api_client.config.debugging
3539
- @api_client.config.logger.debug 'Calling API: EndpointsApi.endpoints_fleet_connectors_update ...'
4460
+ @api_client.config.logger.debug 'Calling API: EndpointsApi.endpoints_google_chrome_connectors_update ...'
3540
4461
  end
3541
4462
  # verify the required parameter 'connector_uuid' is set
3542
4463
  if @api_client.config.client_side_validation && connector_uuid.nil?
3543
- fail ArgumentError, "Missing the required parameter 'connector_uuid' when calling EndpointsApi.endpoints_fleet_connectors_update"
4464
+ fail ArgumentError, "Missing the required parameter 'connector_uuid' when calling EndpointsApi.endpoints_google_chrome_connectors_update"
3544
4465
  end
3545
- # verify the required parameter 'fleet_connector_request' is set
3546
- if @api_client.config.client_side_validation && fleet_connector_request.nil?
3547
- fail ArgumentError, "Missing the required parameter 'fleet_connector_request' when calling EndpointsApi.endpoints_fleet_connectors_update"
4466
+ # verify the required parameter 'google_chrome_connector_request' is set
4467
+ if @api_client.config.client_side_validation && google_chrome_connector_request.nil?
4468
+ fail ArgumentError, "Missing the required parameter 'google_chrome_connector_request' when calling EndpointsApi.endpoints_google_chrome_connectors_update"
3548
4469
  end
3549
4470
  # resource path
3550
- local_var_path = '/endpoints/fleet/connectors/{connector_uuid}/'.sub('{' + 'connector_uuid' + '}', CGI.escape(connector_uuid.to_s))
4471
+ local_var_path = '/endpoints/google_chrome/connectors/{connector_uuid}/'.sub('{connector_uuid}', CGI.escape(connector_uuid.to_s))
3551
4472
 
3552
4473
  # query parameters
3553
4474
  query_params = opts[:query_params] || {}
@@ -3566,16 +4487,16 @@ module Authentik::Api
3566
4487
  form_params = opts[:form_params] || {}
3567
4488
 
3568
4489
  # http body (model)
3569
- post_body = opts[:debug_body] || @api_client.object_to_http_body(fleet_connector_request)
4490
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(google_chrome_connector_request)
3570
4491
 
3571
4492
  # return_type
3572
- return_type = opts[:debug_return_type] || 'FleetConnector'
4493
+ return_type = opts[:debug_return_type] || 'GoogleChromeConnector'
3573
4494
 
3574
4495
  # auth_names
3575
4496
  auth_names = opts[:debug_auth_names] || ['authentik']
3576
4497
 
3577
4498
  new_options = opts.merge(
3578
- :operation => :"EndpointsApi.endpoints_fleet_connectors_update",
4499
+ :operation => :"EndpointsApi.endpoints_google_chrome_connectors_update",
3579
4500
  :header_params => header_params,
3580
4501
  :query_params => query_params,
3581
4502
  :form_params => form_params,
@@ -3586,34 +4507,34 @@ module Authentik::Api
3586
4507
 
3587
4508
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
3588
4509
  if @api_client.config.debugging
3589
- @api_client.config.logger.debug "API called: EndpointsApi#endpoints_fleet_connectors_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4510
+ @api_client.config.logger.debug "API called: EndpointsApi#endpoints_google_chrome_connectors_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3590
4511
  end
3591
4512
  return data, status_code, headers
3592
4513
  end
3593
4514
 
3594
4515
  # Get a list of all objects that use this object
3595
- # @param connector_uuid [String] A UUID string identifying this Fleet Connector.
4516
+ # @param connector_uuid [String] A UUID string identifying this Google Device Trust Connector.
3596
4517
  # @param [Hash] opts the optional parameters
3597
4518
  # @return [Array<UsedBy>]
3598
- def endpoints_fleet_connectors_used_by_list(connector_uuid, opts = {})
3599
- data, _status_code, _headers = endpoints_fleet_connectors_used_by_list_with_http_info(connector_uuid, opts)
4519
+ def endpoints_google_chrome_connectors_used_by_list(connector_uuid, opts = {})
4520
+ data, _status_code, _headers = endpoints_google_chrome_connectors_used_by_list_with_http_info(connector_uuid, opts)
3600
4521
  data
3601
4522
  end
3602
4523
 
3603
4524
  # Get a list of all objects that use this object
3604
- # @param connector_uuid [String] A UUID string identifying this Fleet Connector.
4525
+ # @param connector_uuid [String] A UUID string identifying this Google Device Trust Connector.
3605
4526
  # @param [Hash] opts the optional parameters
3606
4527
  # @return [Array<(Array<UsedBy>, Integer, Hash)>] Array<UsedBy> data, response status code and response headers
3607
- def endpoints_fleet_connectors_used_by_list_with_http_info(connector_uuid, opts = {})
4528
+ def endpoints_google_chrome_connectors_used_by_list_with_http_info(connector_uuid, opts = {})
3608
4529
  if @api_client.config.debugging
3609
- @api_client.config.logger.debug 'Calling API: EndpointsApi.endpoints_fleet_connectors_used_by_list ...'
4530
+ @api_client.config.logger.debug 'Calling API: EndpointsApi.endpoints_google_chrome_connectors_used_by_list ...'
3610
4531
  end
3611
4532
  # verify the required parameter 'connector_uuid' is set
3612
4533
  if @api_client.config.client_side_validation && connector_uuid.nil?
3613
- fail ArgumentError, "Missing the required parameter 'connector_uuid' when calling EndpointsApi.endpoints_fleet_connectors_used_by_list"
4534
+ fail ArgumentError, "Missing the required parameter 'connector_uuid' when calling EndpointsApi.endpoints_google_chrome_connectors_used_by_list"
3614
4535
  end
3615
4536
  # resource path
3616
- local_var_path = '/endpoints/fleet/connectors/{connector_uuid}/used_by/'.sub('{' + 'connector_uuid' + '}', CGI.escape(connector_uuid.to_s))
4537
+ local_var_path = '/endpoints/google_chrome/connectors/{connector_uuid}/used_by/'.sub('{connector_uuid}', CGI.escape(connector_uuid.to_s))
3617
4538
 
3618
4539
  # query parameters
3619
4540
  query_params = opts[:query_params] || {}
@@ -3636,7 +4557,7 @@ module Authentik::Api
3636
4557
  auth_names = opts[:debug_auth_names] || ['authentik']
3637
4558
 
3638
4559
  new_options = opts.merge(
3639
- :operation => :"EndpointsApi.endpoints_fleet_connectors_used_by_list",
4560
+ :operation => :"EndpointsApi.endpoints_google_chrome_connectors_used_by_list",
3640
4561
  :header_params => header_params,
3641
4562
  :query_params => query_params,
3642
4563
  :form_params => form_params,
@@ -3647,7 +4568,7 @@ module Authentik::Api
3647
4568
 
3648
4569
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
3649
4570
  if @api_client.config.debugging
3650
- @api_client.config.logger.debug "API called: EndpointsApi#endpoints_fleet_connectors_used_by_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4571
+ @api_client.config.logger.debug "API called: EndpointsApi#endpoints_google_chrome_connectors_used_by_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3651
4572
  end
3652
4573
  return data, status_code, headers
3653
4574
  end