Skip to content

Commit ba11ea7

Browse files
committed
Undo changes to the api and models directories
1 parent 1a16ddf commit ba11ea7

284 files changed

Lines changed: 2981 additions & 3554 deletions

File tree

Some content is hidden

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

zitadel_client/api/feature_service_api.py

Lines changed: 214 additions & 238 deletions
Large diffs are not rendered by default.

zitadel_client/api/identity_provider_service_api.py

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,16 @@
1111
Do not edit the class manually.
1212
""" # noqa: E501
1313

14+
import warnings
15+
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
1416
from typing import Any, Dict, List, Optional, Tuple, Union
15-
16-
from pydantic import Field, StrictFloat, StrictInt, StrictStr, validate_call
1717
from typing_extensions import Annotated
1818

19+
from pydantic import StrictStr
20+
from zitadel_client.models.v2_get_idpby_id_response import V2GetIDPByIDResponse
21+
1922
from zitadel_client.api_client import ApiClient, RequestSerialized
2023
from zitadel_client.api_response import ApiResponse
21-
from zitadel_client.models.v2_get_idpby_id_response import V2GetIDPByIDResponse
2224
from zitadel_client.rest import RESTResponseType
2325

2426

@@ -89,9 +91,9 @@ def get_idpby_id(
8991
)
9092

9193
_response_types_map: Dict[str, Optional[str]] = {
92-
"200": "V2GetIDPByIDResponse",
93-
"403": "RpcStatus",
94-
"404": "RpcStatus",
94+
'200': "V2GetIDPByIDResponse",
95+
'403': "RpcStatus",
96+
'404': "RpcStatus",
9597
}
9698
response_data = self.api_client.call_api(
9799
*_param,
@@ -158,9 +160,9 @@ def get_idpby_id_with_http_info(
158160
)
159161

160162
_response_types_map: Dict[str, Optional[str]] = {
161-
"200": "V2GetIDPByIDResponse",
162-
"403": "RpcStatus",
163-
"404": "RpcStatus",
163+
'200': "V2GetIDPByIDResponse",
164+
'403': "RpcStatus",
165+
'404': "RpcStatus",
164166
}
165167
response_data = self.api_client.call_api(
166168
*_param,
@@ -227,9 +229,9 @@ def get_idpby_id_without_preload_content(
227229
)
228230

229231
_response_types_map: Dict[str, Optional[str]] = {
230-
"200": "V2GetIDPByIDResponse",
231-
"403": "RpcStatus",
232-
"404": "RpcStatus",
232+
'200': "V2GetIDPByIDResponse",
233+
'403': "RpcStatus",
234+
'404': "RpcStatus",
233235
}
234236
response_data = self.api_client.call_api(
235237
*_param,
@@ -263,30 +265,30 @@ def _get_idpby_id_serialize(
263265

264266
# process the path parameters
265267
if id is not None:
266-
_path_params["id"] = id
268+
_path_params['id'] = id
267269
# process the query parameters
268270
# process the header parameters
269271
# process the form parameters
270272
# process the body parameter
271273

272274

273275
# set the HTTP header `Accept`
274-
if "Accept" not in _header_params:
275-
_header_params["Accept"] = self.api_client.select_header_accept(
276+
if 'Accept' not in _header_params:
277+
_header_params['Accept'] = self.api_client.select_header_accept(
276278
[
277-
"application/json"
279+
'application/json'
278280
]
279281
)
280282

281283

282284
# authentication setting
283285
_auth_settings: List[str] = [
284-
"zitadelAccessToken"
286+
'zitadelAccessToken'
285287
]
286288

287289
return self.api_client.param_serialize(
288-
method="GET",
289-
resource_path="/v2/idps/{id}",
290+
method='GET',
291+
resource_path='/v2/idps/{id}',
290292
path_params=_path_params,
291293
query_params=_query_params,
292294
header_params=_header_params,

zitadel_client/api/oidc_service_api.py

Lines changed: 38 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,13 @@
1313

1414
from typing import Any, Dict, List, Optional, Tuple, Union
1515

16-
from pydantic import Field, StrictFloat, StrictInt, StrictStr, validate_call
16+
from pydantic import Field, StrictStr
17+
from pydantic import validate_call, StrictFloat, StrictInt
1718
from typing_extensions import Annotated
1819

1920
from zitadel_client.api_client import ApiClient, RequestSerialized
2021
from zitadel_client.api_response import ApiResponse
21-
from zitadel_client.models.oidc_service_create_callback_body import (
22-
OIDCServiceCreateCallbackBody,
23-
)
22+
from zitadel_client.models.oidc_service_create_callback_body import OIDCServiceCreateCallbackBody
2423
from zitadel_client.models.v2_create_callback_response import V2CreateCallbackResponse
2524
from zitadel_client.models.v2_get_auth_request_response import V2GetAuthRequestResponse
2625
from zitadel_client.rest import RESTResponseType
@@ -97,9 +96,9 @@ def create_callback(
9796
)
9897

9998
_response_types_map: Dict[str, Optional[str]] = {
100-
"200": "V2CreateCallbackResponse",
101-
"403": "RpcStatus",
102-
"404": "RpcStatus",
99+
'200': "V2CreateCallbackResponse",
100+
'403': "RpcStatus",
101+
'404': "RpcStatus",
103102
}
104103
response_data = self.api_client.call_api(
105104
*_param,
@@ -170,9 +169,9 @@ def create_callback_with_http_info(
170169
)
171170

172171
_response_types_map: Dict[str, Optional[str]] = {
173-
"200": "V2CreateCallbackResponse",
174-
"403": "RpcStatus",
175-
"404": "RpcStatus",
172+
'200': "V2CreateCallbackResponse",
173+
'403': "RpcStatus",
174+
'404': "RpcStatus",
176175
}
177176
response_data = self.api_client.call_api(
178177
*_param,
@@ -243,9 +242,9 @@ def create_callback_without_preload_content(
243242
)
244243

245244
_response_types_map: Dict[str, Optional[str]] = {
246-
"200": "V2CreateCallbackResponse",
247-
"403": "RpcStatus",
248-
"404": "RpcStatus",
245+
'200': "V2CreateCallbackResponse",
246+
'403': "RpcStatus",
247+
'404': "RpcStatus",
249248
}
250249
response_data = self.api_client.call_api(
251250
*_param,
@@ -280,7 +279,7 @@ def _create_callback_serialize(
280279

281280
# process the path parameters
282281
if auth_request_id is not None:
283-
_path_params["authRequestId"] = auth_request_id
282+
_path_params['authRequestId'] = auth_request_id
284283
# process the query parameters
285284
# process the header parameters
286285
# process the form parameters
@@ -290,35 +289,35 @@ def _create_callback_serialize(
290289

291290

292291
# set the HTTP header `Accept`
293-
if "Accept" not in _header_params:
294-
_header_params["Accept"] = self.api_client.select_header_accept(
292+
if 'Accept' not in _header_params:
293+
_header_params['Accept'] = self.api_client.select_header_accept(
295294
[
296-
"application/json"
295+
'application/json'
297296
]
298297
)
299298

300299
# set the HTTP header `Content-Type`
301300
if _content_type:
302-
_header_params["Content-Type"] = _content_type
301+
_header_params['Content-Type'] = _content_type
303302
else:
304303
_default_content_type = (
305304
self.api_client.select_header_content_type(
306305
[
307-
"application/json"
306+
'application/json'
308307
]
309308
)
310309
)
311310
if _default_content_type is not None:
312-
_header_params["Content-Type"] = _default_content_type
311+
_header_params['Content-Type'] = _default_content_type
313312

314313
# authentication setting
315314
_auth_settings: List[str] = [
316-
"zitadelAccessToken"
315+
'zitadelAccessToken'
317316
]
318317

319318
return self.api_client.param_serialize(
320-
method="POST",
321-
resource_path="/v2/oidc/auth_requests/{authRequestId}",
319+
method='POST',
320+
resource_path='/v2/oidc/auth_requests/{authRequestId}',
322321
path_params=_path_params,
323322
query_params=_query_params,
324323
header_params=_header_params,
@@ -388,9 +387,9 @@ def get_auth_request(
388387
)
389388

390389
_response_types_map: Dict[str, Optional[str]] = {
391-
"200": "V2GetAuthRequestResponse",
392-
"403": "RpcStatus",
393-
"404": "RpcStatus",
390+
'200': "V2GetAuthRequestResponse",
391+
'403': "RpcStatus",
392+
'404': "RpcStatus",
394393
}
395394
response_data = self.api_client.call_api(
396395
*_param,
@@ -457,9 +456,9 @@ def get_auth_request_with_http_info(
457456
)
458457

459458
_response_types_map: Dict[str, Optional[str]] = {
460-
"200": "V2GetAuthRequestResponse",
461-
"403": "RpcStatus",
462-
"404": "RpcStatus",
459+
'200': "V2GetAuthRequestResponse",
460+
'403': "RpcStatus",
461+
'404': "RpcStatus",
463462
}
464463
response_data = self.api_client.call_api(
465464
*_param,
@@ -526,9 +525,9 @@ def get_auth_request_without_preload_content(
526525
)
527526

528527
_response_types_map: Dict[str, Optional[str]] = {
529-
"200": "V2GetAuthRequestResponse",
530-
"403": "RpcStatus",
531-
"404": "RpcStatus",
528+
'200': "V2GetAuthRequestResponse",
529+
'403': "RpcStatus",
530+
'404': "RpcStatus",
532531
}
533532
response_data = self.api_client.call_api(
534533
*_param,
@@ -562,30 +561,30 @@ def _get_auth_request_serialize(
562561

563562
# process the path parameters
564563
if auth_request_id is not None:
565-
_path_params["authRequestId"] = auth_request_id
564+
_path_params['authRequestId'] = auth_request_id
566565
# process the query parameters
567566
# process the header parameters
568567
# process the form parameters
569568
# process the body parameter
570569

571570

572571
# set the HTTP header `Accept`
573-
if "Accept" not in _header_params:
574-
_header_params["Accept"] = self.api_client.select_header_accept(
572+
if 'Accept' not in _header_params:
573+
_header_params['Accept'] = self.api_client.select_header_accept(
575574
[
576-
"application/json"
575+
'application/json'
577576
]
578577
)
579578

580579

581580
# authentication setting
582581
_auth_settings: List[str] = [
583-
"zitadelAccessToken"
582+
'zitadelAccessToken'
584583
]
585584

586585
return self.api_client.param_serialize(
587-
method="GET",
588-
resource_path="/v2/oidc/auth_requests/{authRequestId}",
586+
method='GET',
587+
resource_path='/v2/oidc/auth_requests/{authRequestId}',
589588
path_params=_path_params,
590589
query_params=_query_params,
591590
header_params=_header_params,

0 commit comments

Comments
 (0)