CheckmarxPythonSDK 1.7.7__py3-none-any.whl → 1.7.8__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. CheckmarxPythonSDK/CxOne/KeycloakAPI/AttackDetectionApi.py +29 -9
  2. CheckmarxPythonSDK/CxOne/KeycloakAPI/AuthenticationManagementApi.py +334 -102
  3. CheckmarxPythonSDK/CxOne/KeycloakAPI/ClientAttributeCertificateApi.py +70 -15
  4. CheckmarxPythonSDK/CxOne/KeycloakAPI/ClientInitialAccessApi.py +35 -13
  5. CheckmarxPythonSDK/CxOne/KeycloakAPI/ClientRegistrationPolicyApi.py +12 -4
  6. CheckmarxPythonSDK/CxOne/KeycloakAPI/ClientRoleMappingsApi.py +141 -44
  7. CheckmarxPythonSDK/CxOne/KeycloakAPI/ClientRolesApi.py +414 -158
  8. CheckmarxPythonSDK/CxOne/KeycloakAPI/ClientScopesApi.py +96 -34
  9. CheckmarxPythonSDK/CxOne/KeycloakAPI/ClientsApi.py +404 -122
  10. CheckmarxPythonSDK/CxOne/KeycloakAPI/ComponentApi.py +61 -17
  11. CheckmarxPythonSDK/CxOne/KeycloakAPI/GroupsApi.py +175 -49
  12. CheckmarxPythonSDK/CxOne/KeycloakAPI/IdentityProvidersApi.py +133 -40
  13. CheckmarxPythonSDK/CxOne/KeycloakAPI/KeyApi.py +7 -2
  14. CheckmarxPythonSDK/CxOne/KeycloakAPI/ProtocolMappersApi.py +234 -88
  15. CheckmarxPythonSDK/CxOne/KeycloakAPI/RealmsAdminApi.py +365 -230
  16. CheckmarxPythonSDK/CxOne/KeycloakAPI/RoleMapperApi.py +42 -18
  17. CheckmarxPythonSDK/CxOne/KeycloakAPI/RolesApi.py +297 -153
  18. CheckmarxPythonSDK/CxOne/KeycloakAPI/RolesByIdApi.py +58 -24
  19. CheckmarxPythonSDK/CxOne/KeycloakAPI/ScopeMappingsApi.py +317 -209
  20. CheckmarxPythonSDK/CxOne/KeycloakAPI/UsersApi.py +309 -176
  21. CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/__init__.py +91 -0
  22. CheckmarxPythonSDK/CxOne/dto/Project.py +2 -0
  23. CheckmarxPythonSDK/__version__.py +1 -1
  24. {checkmarxpythonsdk-1.7.7.dist-info → checkmarxpythonsdk-1.7.8.dist-info}/METADATA +1 -1
  25. {checkmarxpythonsdk-1.7.7.dist-info → checkmarxpythonsdk-1.7.8.dist-info}/RECORD +28 -28
  26. {checkmarxpythonsdk-1.7.7.dist-info → checkmarxpythonsdk-1.7.8.dist-info}/WHEEL +0 -0
  27. {checkmarxpythonsdk-1.7.7.dist-info → checkmarxpythonsdk-1.7.8.dist-info}/licenses/LICENSE +0 -0
  28. {checkmarxpythonsdk-1.7.7.dist-info → checkmarxpythonsdk-1.7.8.dist-info}/top_level.txt +0 -0
@@ -17,7 +17,10 @@ class AuthenticationManagementApi:
17
17
  api_client = ApiClient(configuration=configuration)
18
18
  self.api_client = api_client
19
19
 
20
- def get_authenticator_providers(self, realm: str) -> List[Dict[str, Any]]:
20
+ def get_authenticator_providers(
21
+ self,
22
+ realm: str
23
+ ) -> List[Dict[str, Any]]:
21
24
  """
22
25
  Get authenticator providers Returns a stream of authenticator providers.
23
26
 
@@ -30,11 +33,17 @@ class AuthenticationManagementApi:
30
33
  URL:
31
34
  Relative path: /{realm}/authentication/authenticator-providers
32
35
  """
33
- relative_url = f"{api_url}/{realm}/authentication/authenticator_providers"
34
- response = self.api_client.get_request(relative_url=relative_url, is_iam=True)
36
+ relative_url = f"{api_url}/{realm}/authentication/authenticator-providers"
37
+ response = self.api_client.get_request(
38
+ relative_url=relative_url,
39
+ is_iam=True
40
+ )
35
41
  return response.json()
36
42
 
37
- def get_client_authenticator_providers(self, realm: str) -> List[Dict[str, Any]]:
43
+ def get_client_authenticator_providers(
44
+ self,
45
+ realm: str
46
+ ) -> List[Dict[str, Any]]:
38
47
  """
39
48
  Get client authenticator providers Returns a stream of client authenticator providers.
40
49
 
@@ -47,12 +56,18 @@ class AuthenticationManagementApi:
47
56
  URL:
48
57
  Relative path: /{realm}/authentication/client-authenticator-providers
49
58
  """
50
- relative_url = f"{api_url}/{realm}/authentication/client_authenticator_providers"
51
- response = self.api_client.get_request(relative_url=relative_url, is_iam=True)
59
+ relative_url = f"{api_url}/{realm}/authentication/client-authenticator-providers"
60
+ response = self.api_client.get_request(
61
+ relative_url=relative_url,
62
+ is_iam=True
63
+ )
52
64
  return response.json()
53
65
 
54
- def post_authentication_config(self, realm: str,
55
- authenticator_config_representation: AuthenticatorConfigRepresentation) -> bool:
66
+ def post_authentication_config(
67
+ self,
68
+ realm: str,
69
+ authenticator_config_representation: AuthenticatorConfigRepresentation
70
+ ) -> bool:
56
71
  """
57
72
  Create new authenticator configuration
58
73
 
@@ -67,11 +82,18 @@ class AuthenticationManagementApi:
67
82
  Relative path: /{realm}/authentication/config
68
83
  """
69
84
  relative_url = f"{api_url}/{realm}/authentication/config"
70
- response = self.api_client.post_request(relative_url=relative_url,
71
- json=authenticator_config_representation.to_dict(), is_iam=True)
85
+ response = self.api_client.post_request(
86
+ relative_url=relative_url,
87
+ json=authenticator_config_representation.to_dict(),
88
+ is_iam=True
89
+ )
72
90
  return response.status_code == 200
73
91
 
74
- def get_config_description(self, realm: str, provider_id: str) -> AuthenticatorConfigInfoRepresentation:
92
+ def get_config_description(
93
+ self,
94
+ realm: str,
95
+ provider_id: str
96
+ ) -> AuthenticatorConfigInfoRepresentation:
75
97
  """
76
98
  Get authenticator provider’s configuration description
77
99
 
@@ -85,11 +107,18 @@ class AuthenticationManagementApi:
85
107
  URL:
86
108
  Relative path: /{realm}/authentication/config-description/{providerId}
87
109
  """
88
- relative_url = f"{api_url}/{realm}/authentication/config_description/{provider_id}"
89
- response = self.api_client.get_request(relative_url=relative_url, is_iam=True)
110
+ relative_url = f"{api_url}/{realm}/authentication/config-description/{provider_id}"
111
+ response = self.api_client.get_request(
112
+ relative_url=relative_url,
113
+ is_iam=True
114
+ )
90
115
  return AuthenticatorConfigInfoRepresentation.from_dict(response.json())
91
116
 
92
- def get_authentication_config(self, realm: str, id: str) -> AuthenticatorConfigRepresentation:
117
+ def get_authentication_config(
118
+ self,
119
+ realm: str,
120
+ id: str
121
+ ) -> AuthenticatorConfigRepresentation:
93
122
  """
94
123
  Get authenticator configuration
95
124
 
@@ -104,11 +133,18 @@ class AuthenticationManagementApi:
104
133
  Relative path: /{realm}/authentication/config/{id}
105
134
  """
106
135
  relative_url = f"{api_url}/{realm}/authentication/config/{id}"
107
- response = self.api_client.get_request(relative_url=relative_url, is_iam=True)
136
+ response = self.api_client.get_request(
137
+ relative_url=relative_url,
138
+ is_iam=True
139
+ )
108
140
  return AuthenticatorConfigRepresentation.from_dict(response.json())
109
141
 
110
- def put_authentication_config(self, realm: str, id: str,
111
- authenticator_config_representation: AuthenticatorConfigRepresentation) -> bool:
142
+ def put_authentication_config(
143
+ self,
144
+ realm: str,
145
+ id: str,
146
+ authenticator_config_representation: AuthenticatorConfigRepresentation
147
+ ) -> bool:
112
148
  """
113
149
  Update authenticator configuration
114
150
 
@@ -124,11 +160,18 @@ class AuthenticationManagementApi:
124
160
  Relative path: /{realm}/authentication/config/{id}
125
161
  """
126
162
  relative_url = f"{api_url}/{realm}/authentication/config/{id}"
127
- response = self.api_client.put_request(relative_url=relative_url,
128
- json=authenticator_config_representation.to_dict(), is_iam=True)
163
+ response = self.api_client.put_request(
164
+ relative_url=relative_url,
165
+ json=authenticator_config_representation.to_dict(),
166
+ is_iam=True
167
+ )
129
168
  return response.status_code == 204
130
169
 
131
- def delete_config(self, realm: str, id: str) -> bool:
170
+ def delete_config(
171
+ self,
172
+ realm: str,
173
+ id: str
174
+ ) -> bool:
132
175
  """
133
176
  Delete authenticator configuration
134
177
 
@@ -143,11 +186,17 @@ class AuthenticationManagementApi:
143
186
  Relative path: /{realm}/authentication/config/{id}
144
187
  """
145
188
  relative_url = f"{api_url}/{realm}/authentication/config/{id}"
146
- response = self.api_client.delete_request(relative_url=relative_url, is_iam=True)
189
+ response = self.api_client.delete_request(
190
+ relative_url=relative_url,
191
+ is_iam=True
192
+ )
147
193
  return response.status_code == 204
148
194
 
149
- def post_executions(self, realm: str,
150
- authentication_execution_representation: AuthenticationExecutionRepresentation) -> bool:
195
+ def post_executions(
196
+ self,
197
+ realm: str,
198
+ authentication_execution_representation: AuthenticationExecutionRepresentation
199
+ ) -> bool:
151
200
  """
152
201
  Add new authentication execution
153
202
 
@@ -162,11 +211,18 @@ class AuthenticationManagementApi:
162
211
  Relative path: /{realm}/authentication/executions
163
212
  """
164
213
  relative_url = f"{api_url}/{realm}/authentication/executions"
165
- response = self.api_client.post_request(relative_url=relative_url,
166
- json=authentication_execution_representation.to_dict(), is_iam=True)
214
+ response = self.api_client.post_request(
215
+ relative_url=relative_url,
216
+ json=authentication_execution_representation.to_dict(),
217
+ is_iam=True
218
+ )
167
219
  return response.status_code == 200
168
220
 
169
- def get_execution(self, realm: str, execution_id: str) -> bool:
221
+ def get_execution(
222
+ self,
223
+ realm: str,
224
+ execution_id: str
225
+ ) -> bool:
170
226
  """
171
227
  Get Single Execution
172
228
 
@@ -181,10 +237,17 @@ class AuthenticationManagementApi:
181
237
  Relative path: /{realm}/authentication/executions/{executionId}
182
238
  """
183
239
  relative_url = f"{api_url}/{realm}/authentication/executions/{execution_id}"
184
- response = self.api_client.get_request(relative_url=relative_url, is_iam=True)
240
+ response = self.api_client.get_request(
241
+ relative_url=relative_url,
242
+ is_iam=True
243
+ )
185
244
  return response.status_code == 200
186
245
 
187
- def delete_execution(self, realm: str, execution_id: str) -> bool:
246
+ def delete_execution(
247
+ self,
248
+ realm: str,
249
+ execution_id: str
250
+ ) -> bool:
188
251
  """
189
252
  Delete execution
190
253
 
@@ -199,11 +262,18 @@ class AuthenticationManagementApi:
199
262
  Relative path: /{realm}/authentication/executions/{executionId}
200
263
  """
201
264
  relative_url = f"{api_url}/{realm}/authentication/executions/{execution_id}"
202
- response = self.api_client.delete_request(relative_url=relative_url, is_iam=True)
265
+ response = self.api_client.delete_request(
266
+ relative_url=relative_url,
267
+ is_iam=True
268
+ )
203
269
  return response.status_code == 204
204
270
 
205
- def post_execution_config(self, realm: str, execution_id: str,
206
- authenticator_config_representation: AuthenticatorConfigRepresentation) -> bool:
271
+ def post_execution_config(
272
+ self,
273
+ realm: str,
274
+ execution_id: str,
275
+ authenticator_config_representation: AuthenticatorConfigRepresentation
276
+ ) -> bool:
207
277
  """
208
278
  Update execution with new configuration
209
279
 
@@ -219,11 +289,19 @@ class AuthenticationManagementApi:
219
289
  Relative path: /{realm}/authentication/executions/{executionId}/config
220
290
  """
221
291
  relative_url = f"{api_url}/{realm}/authentication/executions/{execution_id}/config"
222
- response = self.api_client.post_request(relative_url=relative_url,
223
- json=authenticator_config_representation.to_dict(), is_iam=True)
292
+ response = self.api_client.post_request(
293
+ relative_url=relative_url,
294
+ json=authenticator_config_representation.to_dict(),
295
+ is_iam=True
296
+ )
224
297
  return response.status_code == 200
225
298
 
226
- def get_execution_config(self, realm: str, execution_id: str, id: str) -> AuthenticatorConfigRepresentation:
299
+ def get_execution_config(
300
+ self,
301
+ realm: str,
302
+ execution_id: str,
303
+ id: str
304
+ ) -> AuthenticatorConfigRepresentation:
227
305
  """
228
306
  Get execution’s configuration
229
307
 
@@ -239,10 +317,17 @@ class AuthenticationManagementApi:
239
317
  Relative path: /{realm}/authentication/executions/{executionId}/config/{id}
240
318
  """
241
319
  relative_url = f"{api_url}/{realm}/authentication/executions/{execution_id}/config/{id}"
242
- response = self.api_client.get_request(relative_url=relative_url, is_iam=True)
320
+ response = self.api_client.get_request(
321
+ relative_url=relative_url,
322
+ is_iam=True
323
+ )
243
324
  return AuthenticatorConfigRepresentation.from_dict(response.json())
244
325
 
245
- def post_execution_lower_priority(self, realm: str, execution_id: str) -> bool:
326
+ def post_execution_lower_priority(
327
+ self,
328
+ realm: str,
329
+ execution_id: str
330
+ ) -> bool:
246
331
  """
247
332
  Lower execution’s priority
248
333
 
@@ -256,11 +341,18 @@ class AuthenticationManagementApi:
256
341
  URL:
257
342
  Relative path: /{realm}/authentication/executions/{executionId}/lower-priority
258
343
  """
259
- relative_url = f"{api_url}/{realm}/authentication/executions/{execution_id}/lower_priority"
260
- response = self.api_client.post_request(relative_url=relative_url, is_iam=True)
344
+ relative_url = f"{api_url}/{realm}/authentication/executions/{execution_id}/lower-priority"
345
+ response = self.api_client.post_request(
346
+ relative_url=relative_url,
347
+ is_iam=True
348
+ )
261
349
  return response.status_code == 201
262
350
 
263
- def post_execution_raise_priority(self, realm: str, execution_id: str) -> bool:
351
+ def post_execution_raise_priority(
352
+ self,
353
+ realm: str,
354
+ execution_id: str
355
+ ) -> bool:
264
356
  """
265
357
  Raise execution’s priority
266
358
 
@@ -274,11 +366,17 @@ class AuthenticationManagementApi:
274
366
  URL:
275
367
  Relative path: /{realm}/authentication/executions/{executionId}/raise-priority
276
368
  """
277
- relative_url = f"{api_url}/{realm}/authentication/executions/{execution_id}/raise_priority"
278
- response = self.api_client.post_request(relative_url=relative_url, is_iam=True)
369
+ relative_url = f"{api_url}/{realm}/authentication/executions/{execution_id}/raise-priority"
370
+ response = self.api_client.post_request(
371
+ relative_url=relative_url,
372
+ is_iam=True
373
+ )
279
374
  return response.status_code == 201
280
375
 
281
- def get_flows(self, realm: str) -> List[AuthenticationFlowRepresentation]:
376
+ def get_flows(
377
+ self,
378
+ realm: str
379
+ ) -> List[AuthenticationFlowRepresentation]:
282
380
  """
283
381
  Get authentication flows Returns a stream of authentication flows.
284
382
 
@@ -292,10 +390,17 @@ class AuthenticationManagementApi:
292
390
  Relative path: /{realm}/authentication/flows
293
391
  """
294
392
  relative_url = f"{api_url}/{realm}/authentication/flows"
295
- response = self.api_client.get_request(relative_url=relative_url, is_iam=True)
393
+ response = self.api_client.get_request(
394
+ relative_url=relative_url,
395
+ is_iam=True
396
+ )
296
397
  return [AuthenticationFlowRepresentation.from_dict(item) for item in response.json()]
297
398
 
298
- def post_flows(self, realm: str, authentication_flow_representation: AuthenticationFlowRepresentation) -> bool:
399
+ def post_flows(
400
+ self,
401
+ realm: str,
402
+ authentication_flow_representation: AuthenticationFlowRepresentation
403
+ ) -> bool:
299
404
  """
300
405
  Create a new authentication flow
301
406
 
@@ -310,13 +415,21 @@ class AuthenticationManagementApi:
310
415
  Relative path: /{realm}/authentication/flows
311
416
  """
312
417
  relative_url = f"{api_url}/{realm}/authentication/flows"
313
- response = self.api_client.post_request(relative_url=relative_url,
314
- json=authentication_flow_representation.to_dict(), is_iam=True)
418
+ response = self.api_client.post_request(
419
+ relative_url=relative_url,
420
+ json=authentication_flow_representation.to_dict(),
421
+ is_iam=True
422
+ )
315
423
  return response.status_code == 200
316
424
 
317
- def post_copy(self, realm: str, flow_alias: str) -> bool:
425
+ def post_copy(
426
+ self,
427
+ realm: str,
428
+ flow_alias: str
429
+ ) -> bool:
318
430
  """
319
- Copy existing authentication flow under a new name The new name is given as 'newName' attribute of the passed JSON object
431
+ Copy existing authentication flow under a new name The new name is
432
+ given as 'newName' attribute of the passed JSON object
320
433
 
321
434
  Args:
322
435
  realm (str): [required]
@@ -329,10 +442,17 @@ class AuthenticationManagementApi:
329
442
  Relative path: /{realm}/authentication/flows/{flowAlias}/copy
330
443
  """
331
444
  relative_url = f"{api_url}/{realm}/authentication/flows/{flow_alias}/copy"
332
- response = self.api_client.post_request(relative_url=relative_url, is_iam=True)
445
+ response = self.api_client.post_request(
446
+ relative_url=relative_url,
447
+ is_iam=True
448
+ )
333
449
  return response.status_code == 200
334
450
 
335
- def get_executions(self, realm: str, flow_alias: str) -> bool:
451
+ def get_executions(
452
+ self,
453
+ realm: str,
454
+ flow_alias: str
455
+ ) -> bool:
336
456
  """
337
457
  Get authentication executions for a flow
338
458
 
@@ -350,8 +470,12 @@ class AuthenticationManagementApi:
350
470
  response = self.api_client.get_request(relative_url=relative_url, is_iam=True)
351
471
  return response.status_code == 200
352
472
 
353
- def put_executions(self, realm: str, flow_alias: str,
354
- authentication_execution_info_representation: AuthenticationExecutionInfoRepresentation) -> bool:
473
+ def put_executions(
474
+ self,
475
+ realm: str,
476
+ flow_alias: str,
477
+ authentication_execution_info_representation: AuthenticationExecutionInfoRepresentation
478
+ ) -> bool:
355
479
  """
356
480
  Update authentication executions of a Flow
357
481
 
@@ -367,11 +491,18 @@ class AuthenticationManagementApi:
367
491
  Relative path: /{realm}/authentication/flows/{flowAlias}/executions
368
492
  """
369
493
  relative_url = f"{api_url}/{realm}/authentication/flows/{flow_alias}/executions"
370
- response = self.api_client.put_request(relative_url=relative_url,
371
- json=authentication_execution_info_representation.to_dict(), is_iam=True)
494
+ response = self.api_client.put_request(
495
+ relative_url=relative_url,
496
+ json=authentication_execution_info_representation.to_dict(),
497
+ is_iam=True
498
+ )
372
499
  return response.status_code == 200
373
500
 
374
- def post_execution(self, realm: str, flow_alias: str) -> bool:
501
+ def post_execution(
502
+ self,
503
+ realm: str,
504
+ flow_alias: str
505
+ ) -> bool:
375
506
  """
376
507
  Add new authentication execution to a flow
377
508
 
@@ -386,10 +517,17 @@ class AuthenticationManagementApi:
386
517
  Relative path: /{realm}/authentication/flows/{flowAlias}/executions/execution
387
518
  """
388
519
  relative_url = f"{api_url}/{realm}/authentication/flows/{flow_alias}/executions/execution"
389
- response = self.api_client.post_request(relative_url=relative_url, is_iam=True)
520
+ response = self.api_client.post_request(
521
+ relative_url=relative_url,
522
+ is_iam=True
523
+ )
390
524
  return response.status_code == 200
391
525
 
392
- def post_flow(self, realm: str, flow_alias: str) -> bool:
526
+ def post_flow(
527
+ self,
528
+ realm: str,
529
+ flow_alias: str
530
+ ) -> bool:
393
531
  """
394
532
  Add new flow with new execution to existing flow
395
533
 
@@ -404,10 +542,17 @@ class AuthenticationManagementApi:
404
542
  Relative path: /{realm}/authentication/flows/{flowAlias}/executions/flow
405
543
  """
406
544
  relative_url = f"{api_url}/{realm}/authentication/flows/{flow_alias}/executions/flow"
407
- response = self.api_client.post_request(relative_url=relative_url, is_iam=True)
545
+ response = self.api_client.post_request(
546
+ relative_url=relative_url,
547
+ is_iam=True
548
+ )
408
549
  return response.status_code == 200
409
550
 
410
- def get_flow(self, realm: str, id: str) -> AuthenticationFlowRepresentation:
551
+ def get_flow(
552
+ self,
553
+ realm: str,
554
+ id: str
555
+ ) -> AuthenticationFlowRepresentation:
411
556
  """
412
557
  Get authentication flow for id
413
558
 
@@ -425,8 +570,12 @@ class AuthenticationManagementApi:
425
570
  response = self.api_client.get_request(relative_url=relative_url, is_iam=True)
426
571
  return AuthenticationFlowRepresentation.from_dict(response.json())
427
572
 
428
- def put_flow(self, realm: str, id: str,
429
- authentication_flow_representation: AuthenticationFlowRepresentation) -> bool:
573
+ def put_flow(
574
+ self,
575
+ realm: str,
576
+ id: str,
577
+ authentication_flow_representation: AuthenticationFlowRepresentation
578
+ ) -> bool:
430
579
  """
431
580
  Update an authentication flow
432
581
 
@@ -442,11 +591,18 @@ class AuthenticationManagementApi:
442
591
  Relative path: /{realm}/authentication/flows/{id}
443
592
  """
444
593
  relative_url = f"{api_url}/{realm}/authentication/flows/{id}"
445
- response = self.api_client.put_request(relative_url=relative_url,
446
- json=authentication_flow_representation.to_dict(), is_iam=True)
594
+ response = self.api_client.put_request(
595
+ relative_url=relative_url,
596
+ json=authentication_flow_representation.to_dict(),
597
+ is_iam=True
598
+ )
447
599
  return response.status_code == 200
448
600
 
449
- def delete_flow(self, realm: str, id: str) -> bool:
601
+ def delete_flow(
602
+ self,
603
+ realm: str,
604
+ id: str
605
+ ) -> bool:
450
606
  """
451
607
  Delete an authentication flow
452
608
 
@@ -461,10 +617,16 @@ class AuthenticationManagementApi:
461
617
  Relative path: /{realm}/authentication/flows/{id}
462
618
  """
463
619
  relative_url = f"{api_url}/{realm}/authentication/flows/{id}"
464
- response = self.api_client.delete_request(relative_url=relative_url, is_iam=True)
620
+ response = self.api_client.delete_request(
621
+ relative_url=relative_url,
622
+ is_iam=True
623
+ )
465
624
  return response.status_code == 204
466
625
 
467
- def get_form_action_providers(self, realm: str) -> List[Dict[str, Any]]:
626
+ def get_form_action_providers(
627
+ self,
628
+ realm: str
629
+ ) -> List[Dict[str, Any]]:
468
630
  """
469
631
  Get form action providers Returns a stream of form action providers.
470
632
 
@@ -477,11 +639,17 @@ class AuthenticationManagementApi:
477
639
  URL:
478
640
  Relative path: /{realm}/authentication/form-action-providers
479
641
  """
480
- relative_url = f"{api_url}/{realm}/authentication/form_action_providers"
481
- response = self.api_client.get_request(relative_url=relative_url, is_iam=True)
642
+ relative_url = f"{api_url}/{realm}/authentication/form-action-providers"
643
+ response = self.api_client.get_request(
644
+ relative_url=relative_url,
645
+ is_iam=True
646
+ )
482
647
  return response.json()
483
648
 
484
- def get_form_providers(self, realm: str) -> List[Dict[str, Any]]:
649
+ def get_form_providers(
650
+ self,
651
+ realm: str
652
+ ) -> List[Dict[str, Any]]:
485
653
  """
486
654
  Get form providers Returns a stream of form providers.
487
655
 
@@ -494,11 +662,17 @@ class AuthenticationManagementApi:
494
662
  URL:
495
663
  Relative path: /{realm}/authentication/form-providers
496
664
  """
497
- relative_url = f"{api_url}/{realm}/authentication/form_providers"
498
- response = self.api_client.get_request(relative_url=relative_url, is_iam=True)
665
+ relative_url = f"{api_url}/{realm}/authentication/form-providers"
666
+ response = self.api_client.get_request(
667
+ relative_url=relative_url,
668
+ is_iam=True
669
+ )
499
670
  return response.json()
500
671
 
501
- def get_per_client_config_description(self, realm: str) -> Dict[str, Any]:
672
+ def get_per_client_config_description(
673
+ self,
674
+ realm: str
675
+ ) -> Dict[str, Any]:
502
676
  """
503
677
  Get configuration descriptions for all clients
504
678
 
@@ -511,11 +685,17 @@ class AuthenticationManagementApi:
511
685
  URL:
512
686
  Relative path: /{realm}/authentication/per-client-config-description
513
687
  """
514
- relative_url = f"{api_url}/{realm}/authentication/per_client_config_description"
515
- response = self.api_client.get_request(relative_url=relative_url, is_iam=True)
688
+ relative_url = f"{api_url}/{realm}/authentication/per-client-config-description"
689
+ response = self.api_client.get_request(
690
+ relative_url=relative_url,
691
+ is_iam=True
692
+ )
516
693
  return response.json()
517
694
 
518
- def post_register_required_action(self, realm: str) -> bool:
695
+ def post_register_required_action(
696
+ self,
697
+ realm: str
698
+ ) -> bool:
519
699
  """
520
700
  Register a new required actions
521
701
 
@@ -528,11 +708,17 @@ class AuthenticationManagementApi:
528
708
  URL:
529
709
  Relative path: /{realm}/authentication/register-required-action
530
710
  """
531
- relative_url = f"{api_url}/{realm}/authentication/register_required_action"
532
- response = self.api_client.post_request(relative_url=relative_url, is_iam=True)
711
+ relative_url = f"{api_url}/{realm}/authentication/register-required-action"
712
+ response = self.api_client.post_request(
713
+ relative_url=relative_url,
714
+ is_iam=True
715
+ )
533
716
  return response.status_code == 201
534
717
 
535
- def get_required_actions(self, realm: str) -> List[RequiredActionProviderRepresentation]:
718
+ def get_required_actions(
719
+ self,
720
+ realm: str
721
+ ) -> List[RequiredActionProviderRepresentation]:
536
722
  """
537
723
  Get required actions Returns a stream of required actions.
538
724
 
@@ -545,11 +731,20 @@ class AuthenticationManagementApi:
545
731
  URL:
546
732
  Relative path: /{realm}/authentication/required-actions
547
733
  """
548
- relative_url = f"{api_url}/{realm}/authentication/required_actions"
549
- response = self.api_client.get_request(relative_url=relative_url, is_iam=True)
550
- return [RequiredActionProviderRepresentation.from_dict(item) for item in response.json()]
551
-
552
- def get_required_action(self, realm: str, alias: str) -> RequiredActionProviderRepresentation:
734
+ relative_url = f"{api_url}/{realm}/authentication/required-actions"
735
+ response = self.api_client.get_request(
736
+ relative_url=relative_url,
737
+ is_iam=True
738
+ )
739
+ return [
740
+ RequiredActionProviderRepresentation.from_dict(item) for item in response.json()
741
+ ]
742
+
743
+ def get_required_action(
744
+ self,
745
+ realm: str,
746
+ alias: str
747
+ ) -> RequiredActionProviderRepresentation:
553
748
  """
554
749
  Get required action for alias
555
750
 
@@ -563,12 +758,19 @@ class AuthenticationManagementApi:
563
758
  URL:
564
759
  Relative path: /{realm}/authentication/required-actions/{alias}
565
760
  """
566
- relative_url = f"{api_url}/{realm}/authentication/required_actions/{alias}"
567
- response = self.api_client.get_request(relative_url=relative_url, is_iam=True)
761
+ relative_url = f"{api_url}/{realm}/authentication/required-actions/{alias}"
762
+ response = self.api_client.get_request(
763
+ relative_url=relative_url,
764
+ is_iam=True
765
+ )
568
766
  return RequiredActionProviderRepresentation.from_dict(response.json())
569
767
 
570
- def put_required_action(self, realm: str, alias: str,
571
- required_action_provider_representation: RequiredActionProviderRepresentation) -> bool:
768
+ def put_required_action(
769
+ self,
770
+ realm: str,
771
+ alias: str,
772
+ required_action_provider_representation: RequiredActionProviderRepresentation
773
+ ) -> bool:
572
774
  """
573
775
  Update required action
574
776
 
@@ -583,12 +785,19 @@ class AuthenticationManagementApi:
583
785
  URL:
584
786
  Relative path: /{realm}/authentication/required-actions/{alias}
585
787
  """
586
- relative_url = f"{api_url}/{realm}/authentication/required_actions/{alias}"
587
- response = self.api_client.put_request(relative_url=relative_url,
588
- json=required_action_provider_representation.to_dict(), is_iam=True)
788
+ relative_url = f"{api_url}/{realm}/authentication/required-actions/{alias}"
789
+ response = self.api_client.put_request(
790
+ relative_url=relative_url,
791
+ json=required_action_provider_representation.to_dict(),
792
+ is_iam=True
793
+ )
589
794
  return response.status_code == 204
590
795
 
591
- def delete_required_action(self, realm: str, alias: str) -> bool:
796
+ def delete_required_action(
797
+ self,
798
+ realm: str,
799
+ alias: str
800
+ ) -> bool:
592
801
  """
593
802
  Delete required action
594
803
 
@@ -602,11 +811,18 @@ class AuthenticationManagementApi:
602
811
  URL:
603
812
  Relative path: /{realm}/authentication/required-actions/{alias}
604
813
  """
605
- relative_url = f"{api_url}/{realm}/authentication/required_actions/{alias}"
606
- response = self.api_client.delete_request(relative_url=relative_url, is_iam=True)
814
+ relative_url = f"{api_url}/{realm}/authentication/required-actions/{alias}"
815
+ response = self.api_client.delete_request(
816
+ relative_url=relative_url,
817
+ is_iam=True
818
+ )
607
819
  return response.status_code == 204
608
820
 
609
- def post_required_action_lower_priority(self, realm: str, alias: str) -> bool:
821
+ def post_required_action_lower_priority(
822
+ self,
823
+ realm: str,
824
+ alias: str
825
+ ) -> bool:
610
826
  """
611
827
  Lower required action’s priority
612
828
 
@@ -620,11 +836,18 @@ class AuthenticationManagementApi:
620
836
  URL:
621
837
  Relative path: /{realm}/authentication/required-actions/{alias}/lower-priority
622
838
  """
623
- relative_url = f"{api_url}/{realm}/authentication/required_actions/{alias}/lower_priority"
624
- response = self.api_client.post_request(relative_url=relative_url, is_iam=True)
839
+ relative_url = f"{api_url}/{realm}/authentication/required-actions/{alias}/lower-priority"
840
+ response = self.api_client.post_request(
841
+ relative_url=relative_url,
842
+ is_iam=True
843
+ )
625
844
  return response.status_code == 201
626
845
 
627
- def post_required_action_raise_priority(self, realm: str, alias: str) -> bool:
846
+ def post_required_action_raise_priority(
847
+ self,
848
+ realm: str,
849
+ alias: str
850
+ ) -> bool:
628
851
  """
629
852
  Raise required action’s priority
630
853
 
@@ -638,11 +861,17 @@ class AuthenticationManagementApi:
638
861
  URL:
639
862
  Relative path: /{realm}/authentication/required-actions/{alias}/raise-priority
640
863
  """
641
- relative_url = f"{api_url}/{realm}/authentication/required_actions/{alias}/raise_priority"
642
- response = self.api_client.post_request(relative_url=relative_url, is_iam=True)
864
+ relative_url = f"{api_url}/{realm}/authentication/required-actions/{alias}/raise-priority"
865
+ response = self.api_client.post_request(
866
+ relative_url=relative_url,
867
+ is_iam=True
868
+ )
643
869
  return response.status_code == 201
644
870
 
645
- def get_unregistered_required_actions(self, realm: str) -> List[str]:
871
+ def get_unregistered_required_actions(
872
+ self,
873
+ realm: str
874
+ ) -> List[str]:
646
875
  """
647
876
  Get unregistered required actions Returns a stream of unregistered required actions.
648
877
 
@@ -655,6 +884,9 @@ class AuthenticationManagementApi:
655
884
  URL:
656
885
  Relative path: /{realm}/authentication/unregistered-required-actions
657
886
  """
658
- relative_url = f"{api_url}/{realm}/authentication/unregistered_required_actions"
659
- response = self.api_client.get_request(relative_url=relative_url, is_iam=True)
887
+ relative_url = f"{api_url}/{realm}/authentication/unregistered-required-actions"
888
+ response = self.api_client.get_request(
889
+ relative_url=relative_url,
890
+ is_iam=True
891
+ )
660
892
  return response.json()