Skip to content

Commit aff1341

Browse files
authored
Merge pull request #95 from onelogin/PORTAL-4741_sdk_upgrade
PORTAL-4741: test & upgrade python sdk
2 parents 033bea4 + 0495735 commit aff1341

File tree

183 files changed

+1487
-1038
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

183 files changed

+1487
-1038
lines changed

onelogin/api/api_auth_claims_api.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
import io
1717
import warnings
1818

19-
from pydantic import validate_arguments, ValidationError
19+
from pydantic import validate_call, ValidationError
2020
from typing_extensions import Annotated
2121

2222
from pydantic import StrictInt, StrictStr
@@ -47,7 +47,7 @@ def __init__(self, api_client=None):
4747
api_client = ApiClient.get_default()
4848
self.api_client = api_client
4949

50-
@validate_arguments
50+
@validate_call
5151
def create_auth_claim(self, api_auth_id : StrictStr, content_type : Optional[StrictStr] = None, auth_claim : Optional[AuthClaim] = None, **kwargs) -> int: # noqa: E501
5252
"""Create Api Auth Server Claim # noqa: E501
5353
@@ -80,7 +80,7 @@ def create_auth_claim(self, api_auth_id : StrictStr, content_type : Optional[Str
8080
raise ValueError("Error! Please call the create_auth_claim_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data")
8181
return self.create_auth_claim_with_http_info(api_auth_id, content_type, auth_claim, **kwargs) # noqa: E501
8282

83-
@validate_arguments
83+
@validate_call
8484
def create_auth_claim_with_http_info(self, api_auth_id : StrictStr, content_type : Optional[StrictStr] = None, auth_claim : Optional[AuthClaim] = None, **kwargs) -> ApiResponse: # noqa: E501
8585
"""Create Api Auth Server Claim # noqa: E501
8686
@@ -212,7 +212,7 @@ def create_auth_claim_with_http_info(self, api_auth_id : StrictStr, content_type
212212
collection_formats=_collection_formats,
213213
_request_auth=_params.get('_request_auth'))
214214

215-
@validate_arguments
215+
@validate_call
216216
def delete_auth_claim(self, api_auth_id : StrictStr, claim_id : StrictInt, content_type : Optional[StrictStr] = None, **kwargs) -> None: # noqa: E501
217217
"""Delete Api Auth Server Claim # noqa: E501
218218
@@ -245,7 +245,7 @@ def delete_auth_claim(self, api_auth_id : StrictStr, claim_id : StrictInt, conte
245245
raise ValueError("Error! Please call the delete_auth_claim_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data")
246246
return self.delete_auth_claim_with_http_info(api_auth_id, claim_id, content_type, **kwargs) # noqa: E501
247247

248-
@validate_arguments
248+
@validate_call
249249
def delete_auth_claim_with_http_info(self, api_auth_id : StrictStr, claim_id : StrictInt, content_type : Optional[StrictStr] = None, **kwargs) -> ApiResponse: # noqa: E501
250250
"""Delete Api Auth Server Claim # noqa: E501
251251
@@ -365,7 +365,7 @@ def delete_auth_claim_with_http_info(self, api_auth_id : StrictStr, claim_id : S
365365
collection_formats=_collection_formats,
366366
_request_auth=_params.get('_request_auth'))
367367

368-
@validate_arguments
368+
@validate_call
369369
def get_authclaims(self, api_auth_id : StrictStr, content_type : Optional[StrictStr] = None, **kwargs) -> List[TokenClaim]: # noqa: E501
370370
"""Get Api Auth Server claims # noqa: E501
371371
@@ -396,7 +396,7 @@ def get_authclaims(self, api_auth_id : StrictStr, content_type : Optional[Strict
396396
raise ValueError("Error! Please call the get_authclaims_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data")
397397
return self.get_authclaims_with_http_info(api_auth_id, content_type, **kwargs) # noqa: E501
398398

399-
@validate_arguments
399+
@validate_call
400400
def get_authclaims_with_http_info(self, api_auth_id : StrictStr, content_type : Optional[StrictStr] = None, **kwargs) -> ApiResponse: # noqa: E501
401401
"""Get Api Auth Server claims # noqa: E501
402402
@@ -514,7 +514,7 @@ def get_authclaims_with_http_info(self, api_auth_id : StrictStr, content_type :
514514
collection_formats=_collection_formats,
515515
_request_auth=_params.get('_request_auth'))
516516

517-
@validate_arguments
517+
@validate_call
518518
def update_claim(self, api_auth_id : StrictStr, claim_id : StrictInt, content_type : Optional[StrictStr] = None, auth_claim : Optional[AuthClaim] = None, **kwargs) -> AuthId: # noqa: E501
519519
"""Update Api Auth Server Claim # noqa: E501
520520
@@ -549,7 +549,7 @@ def update_claim(self, api_auth_id : StrictStr, claim_id : StrictInt, content_ty
549549
raise ValueError("Error! Please call the update_claim_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data")
550550
return self.update_claim_with_http_info(api_auth_id, claim_id, content_type, auth_claim, **kwargs) # noqa: E501
551551

552-
@validate_arguments
552+
@validate_call
553553
def update_claim_with_http_info(self, api_auth_id : StrictStr, claim_id : StrictInt, content_type : Optional[StrictStr] = None, auth_claim : Optional[AuthClaim] = None, **kwargs) -> ApiResponse: # noqa: E501
554554
"""Update Api Auth Server Claim # noqa: E501
555555

onelogin/api/api_auth_client_apps_api.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
import io
1717
import warnings
1818

19-
from pydantic import validate_arguments, ValidationError
19+
from pydantic import validate_call, ValidationError
2020
from typing_extensions import Annotated
2121

2222
from pydantic import StrictInt, StrictStr
@@ -48,7 +48,7 @@ def __init__(self, api_client=None):
4848
api_client = ApiClient.get_default()
4949
self.api_client = api_client
5050

51-
@validate_arguments
51+
@validate_call
5252
def add_client_app(self, api_auth_id : StrictStr, content_type : Optional[StrictStr] = None, add_client_app_request : Optional[AddClientAppRequest] = None, **kwargs) -> AddClientApp201Response: # noqa: E501
5353
"""Add Client App # noqa: E501
5454
@@ -81,7 +81,7 @@ def add_client_app(self, api_auth_id : StrictStr, content_type : Optional[Strict
8181
raise ValueError("Error! Please call the add_client_app_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data")
8282
return self.add_client_app_with_http_info(api_auth_id, content_type, add_client_app_request, **kwargs) # noqa: E501
8383

84-
@validate_arguments
84+
@validate_call
8585
def add_client_app_with_http_info(self, api_auth_id : StrictStr, content_type : Optional[StrictStr] = None, add_client_app_request : Optional[AddClientAppRequest] = None, **kwargs) -> ApiResponse: # noqa: E501
8686
"""Add Client App # noqa: E501
8787
@@ -213,7 +213,7 @@ def add_client_app_with_http_info(self, api_auth_id : StrictStr, content_type :
213213
collection_formats=_collection_formats,
214214
_request_auth=_params.get('_request_auth'))
215215

216-
@validate_arguments
216+
@validate_call
217217
def delete_client_app(self, api_auth_id : StrictStr, client_app_id : StrictInt, content_type : Optional[StrictStr] = None, **kwargs) -> AddClientApp201Response: # noqa: E501
218218
"""Remove Client App # noqa: E501
219219
@@ -246,7 +246,7 @@ def delete_client_app(self, api_auth_id : StrictStr, client_app_id : StrictInt,
246246
raise ValueError("Error! Please call the delete_client_app_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data")
247247
return self.delete_client_app_with_http_info(api_auth_id, client_app_id, content_type, **kwargs) # noqa: E501
248248

249-
@validate_arguments
249+
@validate_call
250250
def delete_client_app_with_http_info(self, api_auth_id : StrictStr, client_app_id : StrictInt, content_type : Optional[StrictStr] = None, **kwargs) -> ApiResponse: # noqa: E501
251251
"""Remove Client App # noqa: E501
252252
@@ -371,7 +371,7 @@ def delete_client_app_with_http_info(self, api_auth_id : StrictStr, client_app_i
371371
collection_formats=_collection_formats,
372372
_request_auth=_params.get('_request_auth'))
373373

374-
@validate_arguments
374+
@validate_call
375375
def list_client_apps(self, api_auth_id : StrictStr, content_type : Optional[StrictStr] = None, **kwargs) -> ClientAppFull: # noqa: E501
376376
"""List Clients Apps # noqa: E501
377377
@@ -402,7 +402,7 @@ def list_client_apps(self, api_auth_id : StrictStr, content_type : Optional[Stri
402402
raise ValueError("Error! Please call the list_client_apps_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data")
403403
return self.list_client_apps_with_http_info(api_auth_id, content_type, **kwargs) # noqa: E501
404404

405-
@validate_arguments
405+
@validate_call
406406
def list_client_apps_with_http_info(self, api_auth_id : StrictStr, content_type : Optional[StrictStr] = None, **kwargs) -> ApiResponse: # noqa: E501
407407
"""List Clients Apps # noqa: E501
408408
@@ -520,7 +520,7 @@ def list_client_apps_with_http_info(self, api_auth_id : StrictStr, content_type
520520
collection_formats=_collection_formats,
521521
_request_auth=_params.get('_request_auth'))
522522

523-
@validate_arguments
523+
@validate_call
524524
def update_client_app(self, api_auth_id : StrictStr, client_app_id : StrictInt, content_type : Optional[StrictStr] = None, update_client_app_request : Optional[UpdateClientAppRequest] = None, **kwargs) -> AddClientApp201Response: # noqa: E501
525525
"""Update Client App # noqa: E501
526526
@@ -555,7 +555,7 @@ def update_client_app(self, api_auth_id : StrictStr, client_app_id : StrictInt,
555555
raise ValueError("Error! Please call the update_client_app_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data")
556556
return self.update_client_app_with_http_info(api_auth_id, client_app_id, content_type, update_client_app_request, **kwargs) # noqa: E501
557557

558-
@validate_arguments
558+
@validate_call
559559
def update_client_app_with_http_info(self, api_auth_id : StrictStr, client_app_id : StrictInt, content_type : Optional[StrictStr] = None, update_client_app_request : Optional[UpdateClientAppRequest] = None, **kwargs) -> ApiResponse: # noqa: E501
560560
"""Update Client App # noqa: E501
561561

onelogin/api/api_auth_scopes_api.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
import io
1717
import warnings
1818

19-
from pydantic import validate_arguments, ValidationError
19+
from pydantic import validate_call, ValidationError
2020
from typing_extensions import Annotated
2121

2222
from pydantic import StrictInt, StrictStr
@@ -46,7 +46,7 @@ def __init__(self, api_client=None):
4646
api_client = ApiClient.get_default()
4747
self.api_client = api_client
4848

49-
@validate_arguments
49+
@validate_call
5050
def create_scope(self, api_auth_id : StrictStr, content_type : Optional[StrictStr] = None, auth_scope : Optional[AuthScope] = None, **kwargs) -> AuthScope: # noqa: E501
5151
"""Create Api Auth Server Scope # noqa: E501
5252
@@ -79,7 +79,7 @@ def create_scope(self, api_auth_id : StrictStr, content_type : Optional[StrictSt
7979
raise ValueError("Error! Please call the create_scope_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data")
8080
return self.create_scope_with_http_info(api_auth_id, content_type, auth_scope, **kwargs) # noqa: E501
8181

82-
@validate_arguments
82+
@validate_call
8383
def create_scope_with_http_info(self, api_auth_id : StrictStr, content_type : Optional[StrictStr] = None, auth_scope : Optional[AuthScope] = None, **kwargs) -> ApiResponse: # noqa: E501
8484
"""Create Api Auth Server Scope # noqa: E501
8585
@@ -211,7 +211,7 @@ def create_scope_with_http_info(self, api_auth_id : StrictStr, content_type : Op
211211
collection_formats=_collection_formats,
212212
_request_auth=_params.get('_request_auth'))
213213

214-
@validate_arguments
214+
@validate_call
215215
def delete_scope(self, api_auth_id : StrictStr, scope_id : StrictInt, content_type : Optional[StrictStr] = None, **kwargs) -> None: # noqa: E501
216216
"""Delete Api Auth Server Scope # noqa: E501
217217
@@ -244,7 +244,7 @@ def delete_scope(self, api_auth_id : StrictStr, scope_id : StrictInt, content_ty
244244
raise ValueError("Error! Please call the delete_scope_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data")
245245
return self.delete_scope_with_http_info(api_auth_id, scope_id, content_type, **kwargs) # noqa: E501
246246

247-
@validate_arguments
247+
@validate_call
248248
def delete_scope_with_http_info(self, api_auth_id : StrictStr, scope_id : StrictInt, content_type : Optional[StrictStr] = None, **kwargs) -> ApiResponse: # noqa: E501
249249
"""Delete Api Auth Server Scope # noqa: E501
250250
@@ -364,7 +364,7 @@ def delete_scope_with_http_info(self, api_auth_id : StrictStr, scope_id : Strict
364364
collection_formats=_collection_formats,
365365
_request_auth=_params.get('_request_auth'))
366366

367-
@validate_arguments
367+
@validate_call
368368
def get_scopes(self, api_auth_id : StrictStr, content_type : Optional[StrictStr] = None, **kwargs) -> List[AuthScope]: # noqa: E501
369369
"""Get Api Auth Server Scopes # noqa: E501
370370
@@ -395,7 +395,7 @@ def get_scopes(self, api_auth_id : StrictStr, content_type : Optional[StrictStr]
395395
raise ValueError("Error! Please call the get_scopes_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data")
396396
return self.get_scopes_with_http_info(api_auth_id, content_type, **kwargs) # noqa: E501
397397

398-
@validate_arguments
398+
@validate_call
399399
def get_scopes_with_http_info(self, api_auth_id : StrictStr, content_type : Optional[StrictStr] = None, **kwargs) -> ApiResponse: # noqa: E501
400400
"""Get Api Auth Server Scopes # noqa: E501
401401
@@ -512,7 +512,7 @@ def get_scopes_with_http_info(self, api_auth_id : StrictStr, content_type : Opti
512512
collection_formats=_collection_formats,
513513
_request_auth=_params.get('_request_auth'))
514514

515-
@validate_arguments
515+
@validate_call
516516
def update_scope(self, api_auth_id : StrictStr, scope_id : StrictInt, content_type : Optional[StrictStr] = None, auth_scope : Optional[AuthScope] = None, **kwargs) -> AuthId: # noqa: E501
517517
"""Update Api Auth Server Scope # noqa: E501
518518
@@ -547,7 +547,7 @@ def update_scope(self, api_auth_id : StrictStr, scope_id : StrictInt, content_ty
547547
raise ValueError("Error! Please call the update_scope_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data")
548548
return self.update_scope_with_http_info(api_auth_id, scope_id, content_type, auth_scope, **kwargs) # noqa: E501
549549

550-
@validate_arguments
550+
@validate_call
551551
def update_scope_with_http_info(self, api_auth_id : StrictStr, scope_id : StrictInt, content_type : Optional[StrictStr] = None, auth_scope : Optional[AuthScope] = None, **kwargs) -> ApiResponse: # noqa: E501
552552
"""Update Api Auth Server Scope # noqa: E501
553553

onelogin/api/api_authorization_server_api.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
import io
1717
import warnings
1818

19-
from pydantic import validate_arguments, ValidationError
19+
from pydantic import validate_call, ValidationError
2020
from typing_extensions import Annotated
2121

2222
from pydantic import StrictStr
@@ -45,7 +45,7 @@ def __init__(self, api_client=None):
4545
api_client = ApiClient.get_default()
4646
self.api_client = api_client
4747

48-
@validate_arguments
48+
@validate_call
4949
def create_auth_server(self, content_type : Optional[StrictStr] = None, auth_server : Optional[AuthServer] = None, **kwargs) -> AuthServer: # noqa: E501
5050
"""Create Api Auth Server # noqa: E501
5151
@@ -76,7 +76,7 @@ def create_auth_server(self, content_type : Optional[StrictStr] = None, auth_ser
7676
raise ValueError("Error! Please call the create_auth_server_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data")
7777
return self.create_auth_server_with_http_info(content_type, auth_server, **kwargs) # noqa: E501
7878

79-
@validate_arguments
79+
@validate_call
8080
def create_auth_server_with_http_info(self, content_type : Optional[StrictStr] = None, auth_server : Optional[AuthServer] = None, **kwargs) -> ApiResponse: # noqa: E501
8181
"""Create Api Auth Server # noqa: E501
8282
@@ -201,7 +201,7 @@ def create_auth_server_with_http_info(self, content_type : Optional[StrictStr] =
201201
collection_formats=_collection_formats,
202202
_request_auth=_params.get('_request_auth'))
203203

204-
@validate_arguments
204+
@validate_call
205205
def delete_auth_server(self, api_auth_id : StrictStr, content_type : Optional[StrictStr] = None, **kwargs) -> None: # noqa: E501
206206
"""Delete Api Auth Server # noqa: E501
207207
@@ -232,7 +232,7 @@ def delete_auth_server(self, api_auth_id : StrictStr, content_type : Optional[St
232232
raise ValueError("Error! Please call the delete_auth_server_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data")
233233
return self.delete_auth_server_with_http_info(api_auth_id, content_type, **kwargs) # noqa: E501
234234

235-
@validate_arguments
235+
@validate_call
236236
def delete_auth_server_with_http_info(self, api_auth_id : StrictStr, content_type : Optional[StrictStr] = None, **kwargs) -> ApiResponse: # noqa: E501
237237
"""Delete Api Auth Server # noqa: E501
238238
@@ -346,7 +346,7 @@ def delete_auth_server_with_http_info(self, api_auth_id : StrictStr, content_typ
346346
collection_formats=_collection_formats,
347347
_request_auth=_params.get('_request_auth'))
348348

349-
@validate_arguments
349+
@validate_call
350350
def get_auth_server(self, api_auth_id : StrictStr, content_type : Optional[StrictStr] = None, **kwargs) -> AuthServer: # noqa: E501
351351
"""Get Api Auth Server # noqa: E501
352352
@@ -377,7 +377,7 @@ def get_auth_server(self, api_auth_id : StrictStr, content_type : Optional[Stric
377377
raise ValueError("Error! Please call the get_auth_server_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data")
378378
return self.get_auth_server_with_http_info(api_auth_id, content_type, **kwargs) # noqa: E501
379379

380-
@validate_arguments
380+
@validate_call
381381
def get_auth_server_with_http_info(self, api_auth_id : StrictStr, content_type : Optional[StrictStr] = None, **kwargs) -> ApiResponse: # noqa: E501
382382
"""Get Api Auth Server # noqa: E501
383383
@@ -494,7 +494,7 @@ def get_auth_server_with_http_info(self, api_auth_id : StrictStr, content_type :
494494
collection_formats=_collection_formats,
495495
_request_auth=_params.get('_request_auth'))
496496

497-
@validate_arguments
497+
@validate_call
498498
def list_auth_servers(self, **kwargs) -> List[AuthServer]: # noqa: E501
499499
"""List Api Auth Servers # noqa: E501
500500
@@ -521,7 +521,7 @@ def list_auth_servers(self, **kwargs) -> List[AuthServer]: # noqa: E501
521521
raise ValueError("Error! Please call the list_auth_servers_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data")
522522
return self.list_auth_servers_with_http_info(**kwargs) # noqa: E501
523523

524-
@validate_arguments
524+
@validate_call
525525
def list_auth_servers_with_http_info(self, **kwargs) -> ApiResponse: # noqa: E501
526526
"""List Api Auth Servers # noqa: E501
527527
@@ -626,7 +626,7 @@ def list_auth_servers_with_http_info(self, **kwargs) -> ApiResponse: # noqa: E5
626626
collection_formats=_collection_formats,
627627
_request_auth=_params.get('_request_auth'))
628628

629-
@validate_arguments
629+
@validate_call
630630
def update_auth_server(self, api_auth_id : StrictStr, content_type : Optional[StrictStr] = None, auth_server : Optional[AuthServer] = None, **kwargs) -> AuthServer: # noqa: E501
631631
"""Update Api Auth Server # noqa: E501
632632
@@ -659,7 +659,7 @@ def update_auth_server(self, api_auth_id : StrictStr, content_type : Optional[St
659659
raise ValueError("Error! Please call the update_auth_server_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data")
660660
return self.update_auth_server_with_http_info(api_auth_id, content_type, auth_server, **kwargs) # noqa: E501
661661

662-
@validate_arguments
662+
@validate_call
663663
def update_auth_server_with_http_info(self, api_auth_id : StrictStr, content_type : Optional[StrictStr] = None, auth_server : Optional[AuthServer] = None, **kwargs) -> ApiResponse: # noqa: E501
664664
"""Update Api Auth Server # noqa: E501
665665

0 commit comments

Comments
 (0)