Skip to content

Commit 0e9b0b6

Browse files
Generate authorization
1 parent 06bdc2a commit 0e9b0b6

23 files changed

+218
-122
lines changed

services/authorization/src/stackit/authorization/__init__.py

Lines changed: 72 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -11,47 +11,89 @@
1111
Generated by OpenAPI Generator (https://openapi-generator.tech)
1212
1313
Do not edit the class manually.
14-
""" # noqa: E501 docstring might be too long
14+
""" # noqa: E501
1515

1616

1717
__version__ = "1.0.0"
1818

19+
# Define package exports
20+
__all__ = [
21+
"DefaultApi",
22+
"ApiResponse",
23+
"ApiClient",
24+
"HostConfiguration",
25+
"OpenApiException",
26+
"ApiTypeError",
27+
"ApiValueError",
28+
"ApiKeyError",
29+
"ApiAttributeError",
30+
"ApiException",
31+
"AddMembersPayload",
32+
"ErrorResponse",
33+
"ExistingPermission",
34+
"ListMembersResponse",
35+
"ListPermissionsResponse",
36+
"ListUserMembershipsResponse",
37+
"ListUserPermissionsResponse",
38+
"Member",
39+
"MembersResponse",
40+
"Permission",
41+
"RemoveMembersPayload",
42+
"Role",
43+
"RolesResponse",
44+
"UserMembership",
45+
"UserPermission",
46+
"Zookie",
47+
]
48+
1949
# import apis into sdk package
20-
from stackit.authorization.api.default_api import DefaultApi
21-
from stackit.authorization.api_client import ApiClient
50+
from stackit.authorization.api.default_api import DefaultApi as DefaultApi
51+
from stackit.authorization.api_client import ApiClient as ApiClient
2252

2353
# import ApiClient
24-
from stackit.authorization.api_response import ApiResponse
25-
from stackit.authorization.configuration import HostConfiguration
26-
from stackit.authorization.exceptions import (
27-
ApiAttributeError,
28-
ApiException,
29-
ApiKeyError,
30-
ApiTypeError,
31-
ApiValueError,
32-
OpenApiException,
33-
)
54+
from stackit.authorization.api_response import ApiResponse as ApiResponse
55+
from stackit.authorization.configuration import HostConfiguration as HostConfiguration
56+
from stackit.authorization.exceptions import ApiAttributeError as ApiAttributeError
57+
from stackit.authorization.exceptions import ApiException as ApiException
58+
from stackit.authorization.exceptions import ApiKeyError as ApiKeyError
59+
from stackit.authorization.exceptions import ApiTypeError as ApiTypeError
60+
from stackit.authorization.exceptions import ApiValueError as ApiValueError
61+
from stackit.authorization.exceptions import OpenApiException as OpenApiException
3462

3563
# import models into sdk package
36-
from stackit.authorization.models.add_members_payload import AddMembersPayload
37-
from stackit.authorization.models.error_response import ErrorResponse
38-
from stackit.authorization.models.existing_permission import ExistingPermission
39-
from stackit.authorization.models.list_members_response import ListMembersResponse
64+
from stackit.authorization.models.add_members_payload import (
65+
AddMembersPayload as AddMembersPayload,
66+
)
67+
from stackit.authorization.models.error_response import ErrorResponse as ErrorResponse
68+
from stackit.authorization.models.existing_permission import (
69+
ExistingPermission as ExistingPermission,
70+
)
71+
from stackit.authorization.models.list_members_response import (
72+
ListMembersResponse as ListMembersResponse,
73+
)
4074
from stackit.authorization.models.list_permissions_response import (
41-
ListPermissionsResponse,
75+
ListPermissionsResponse as ListPermissionsResponse,
4276
)
4377
from stackit.authorization.models.list_user_memberships_response import (
44-
ListUserMembershipsResponse,
78+
ListUserMembershipsResponse as ListUserMembershipsResponse,
4579
)
4680
from stackit.authorization.models.list_user_permissions_response import (
47-
ListUserPermissionsResponse,
48-
)
49-
from stackit.authorization.models.member import Member
50-
from stackit.authorization.models.members_response import MembersResponse
51-
from stackit.authorization.models.permission import Permission
52-
from stackit.authorization.models.remove_members_payload import RemoveMembersPayload
53-
from stackit.authorization.models.role import Role
54-
from stackit.authorization.models.roles_response import RolesResponse
55-
from stackit.authorization.models.user_membership import UserMembership
56-
from stackit.authorization.models.user_permission import UserPermission
57-
from stackit.authorization.models.zookie import Zookie
81+
ListUserPermissionsResponse as ListUserPermissionsResponse,
82+
)
83+
from stackit.authorization.models.member import Member as Member
84+
from stackit.authorization.models.members_response import (
85+
MembersResponse as MembersResponse,
86+
)
87+
from stackit.authorization.models.permission import Permission as Permission
88+
from stackit.authorization.models.remove_members_payload import (
89+
RemoveMembersPayload as RemoveMembersPayload,
90+
)
91+
from stackit.authorization.models.role import Role as Role
92+
from stackit.authorization.models.roles_response import RolesResponse as RolesResponse
93+
from stackit.authorization.models.user_membership import (
94+
UserMembership as UserMembership,
95+
)
96+
from stackit.authorization.models.user_permission import (
97+
UserPermission as UserPermission,
98+
)
99+
from stackit.authorization.models.zookie import Zookie as Zookie

services/authorization/src/stackit/authorization/api/default_api.py

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
Generated by OpenAPI Generator (https://openapi-generator.tech)
1010
1111
Do not edit the class manually.
12-
""" # noqa: E501 docstring might be too long
12+
""" # noqa: E501
1313

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

@@ -92,7 +92,7 @@ def add_members(
9292
in the spec for a single request.
9393
:type _host_index: int, optional
9494
:return: Returns the result object.
95-
""" # noqa: E501 docstring might be too long
95+
""" # noqa: E501
9696

9797
_param = self._add_members_serialize(
9898
resource_id=resource_id,
@@ -159,7 +159,7 @@ def add_members_with_http_info(
159159
in the spec for a single request.
160160
:type _host_index: int, optional
161161
:return: Returns the result object.
162-
""" # noqa: E501 docstring might be too long
162+
""" # noqa: E501
163163

164164
_param = self._add_members_serialize(
165165
resource_id=resource_id,
@@ -226,7 +226,7 @@ def add_members_without_preload_content(
226226
in the spec for a single request.
227227
:type _host_index: int, optional
228228
:return: Returns the result object.
229-
""" # noqa: E501 docstring might be too long
229+
""" # noqa: E501
230230

231231
_param = self._add_members_serialize(
232232
resource_id=resource_id,
@@ -264,7 +264,7 @@ def _add_members_serialize(
264264
_query_params: List[Tuple[str, str]] = []
265265
_header_params: Dict[str, Optional[str]] = _headers or {}
266266
_form_params: List[Tuple[str, str]] = []
267-
_files: Dict[str, Union[str, bytes]] = {}
267+
_files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
268268
_body_params: Optional[bytes] = None
269269

270270
# process the path parameters
@@ -353,7 +353,7 @@ def list_members(
353353
in the spec for a single request.
354354
:type _host_index: int, optional
355355
:return: Returns the result object.
356-
""" # noqa: E501 docstring might be too long
356+
""" # noqa: E501
357357

358358
_param = self._list_members_serialize(
359359
resource_type=resource_type,
@@ -424,7 +424,7 @@ def list_members_with_http_info(
424424
in the spec for a single request.
425425
:type _host_index: int, optional
426426
:return: Returns the result object.
427-
""" # noqa: E501 docstring might be too long
427+
""" # noqa: E501
428428

429429
_param = self._list_members_serialize(
430430
resource_type=resource_type,
@@ -495,7 +495,7 @@ def list_members_without_preload_content(
495495
in the spec for a single request.
496496
:type _host_index: int, optional
497497
:return: Returns the result object.
498-
""" # noqa: E501 docstring might be too long
498+
""" # noqa: E501
499499

500500
_param = self._list_members_serialize(
501501
resource_type=resource_type,
@@ -535,7 +535,7 @@ def _list_members_serialize(
535535
_query_params: List[Tuple[str, str]] = []
536536
_header_params: Dict[str, Optional[str]] = _headers or {}
537537
_form_params: List[Tuple[str, str]] = []
538-
_files: Dict[str, Union[str, bytes]] = {}
538+
_files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
539539
_body_params: Optional[bytes] = None
540540

541541
# process the path parameters
@@ -614,7 +614,7 @@ def list_permissions(
614614
in the spec for a single request.
615615
:type _host_index: int, optional
616616
:return: Returns the result object.
617-
""" # noqa: E501 docstring might be too long
617+
""" # noqa: E501
618618

619619
_param = self._list_permissions_serialize(
620620
resource_type=resource_type,
@@ -677,7 +677,7 @@ def list_permissions_with_http_info(
677677
in the spec for a single request.
678678
:type _host_index: int, optional
679679
:return: Returns the result object.
680-
""" # noqa: E501 docstring might be too long
680+
""" # noqa: E501
681681

682682
_param = self._list_permissions_serialize(
683683
resource_type=resource_type,
@@ -740,7 +740,7 @@ def list_permissions_without_preload_content(
740740
in the spec for a single request.
741741
:type _host_index: int, optional
742742
:return: Returns the result object.
743-
""" # noqa: E501 docstring might be too long
743+
""" # noqa: E501
744744

745745
_param = self._list_permissions_serialize(
746746
resource_type=resource_type,
@@ -776,7 +776,7 @@ def _list_permissions_serialize(
776776
_query_params: List[Tuple[str, str]] = []
777777
_header_params: Dict[str, Optional[str]] = _headers or {}
778778
_form_params: List[Tuple[str, str]] = []
779-
_files: Dict[str, Union[str, bytes]] = {}
779+
_files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
780780
_body_params: Optional[bytes] = None
781781

782782
# process the path parameters
@@ -854,7 +854,7 @@ def list_roles(
854854
in the spec for a single request.
855855
:type _host_index: int, optional
856856
:return: Returns the result object.
857-
""" # noqa: E501 docstring might be too long
857+
""" # noqa: E501
858858

859859
_param = self._list_roles_serialize(
860860
resource_type=resource_type,
@@ -921,7 +921,7 @@ def list_roles_with_http_info(
921921
in the spec for a single request.
922922
:type _host_index: int, optional
923923
:return: Returns the result object.
924-
""" # noqa: E501 docstring might be too long
924+
""" # noqa: E501
925925

926926
_param = self._list_roles_serialize(
927927
resource_type=resource_type,
@@ -988,7 +988,7 @@ def list_roles_without_preload_content(
988988
in the spec for a single request.
989989
:type _host_index: int, optional
990990
:return: Returns the result object.
991-
""" # noqa: E501 docstring might be too long
991+
""" # noqa: E501
992992

993993
_param = self._list_roles_serialize(
994994
resource_type=resource_type,
@@ -1026,7 +1026,7 @@ def _list_roles_serialize(
10261026
_query_params: List[Tuple[str, str]] = []
10271027
_header_params: Dict[str, Optional[str]] = _headers or {}
10281028
_form_params: List[Tuple[str, str]] = []
1029-
_files: Dict[str, Union[str, bytes]] = {}
1029+
_files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
10301030
_body_params: Optional[bytes] = None
10311031

10321032
# process the path parameters
@@ -1110,7 +1110,7 @@ def list_user_memberships(
11101110
in the spec for a single request.
11111111
:type _host_index: int, optional
11121112
:return: Returns the result object.
1113-
""" # noqa: E501 docstring might be too long
1113+
""" # noqa: E501
11141114

11151115
_param = self._list_user_memberships_serialize(
11161116
email=email,
@@ -1185,7 +1185,7 @@ def list_user_memberships_with_http_info(
11851185
in the spec for a single request.
11861186
:type _host_index: int, optional
11871187
:return: Returns the result object.
1188-
""" # noqa: E501 docstring might be too long
1188+
""" # noqa: E501
11891189

11901190
_param = self._list_user_memberships_serialize(
11911191
email=email,
@@ -1260,7 +1260,7 @@ def list_user_memberships_without_preload_content(
12601260
in the spec for a single request.
12611261
:type _host_index: int, optional
12621262
:return: Returns the result object.
1263-
""" # noqa: E501 docstring might be too long
1263+
""" # noqa: E501
12641264

12651265
_param = self._list_user_memberships_serialize(
12661266
email=email,
@@ -1302,7 +1302,7 @@ def _list_user_memberships_serialize(
13021302
_query_params: List[Tuple[str, str]] = []
13031303
_header_params: Dict[str, Optional[str]] = _headers or {}
13041304
_form_params: List[Tuple[str, str]] = []
1305-
_files: Dict[str, Union[str, bytes]] = {}
1305+
_files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
13061306
_body_params: Optional[bytes] = None
13071307

13081308
# process the path parameters
@@ -1396,7 +1396,7 @@ def list_user_permissions(
13961396
in the spec for a single request.
13971397
:type _host_index: int, optional
13981398
:return: Returns the result object.
1399-
""" # noqa: E501 docstring might be too long
1399+
""" # noqa: E501
14001400

14011401
_param = self._list_user_permissions_serialize(
14021402
email=email,
@@ -1471,7 +1471,7 @@ def list_user_permissions_with_http_info(
14711471
in the spec for a single request.
14721472
:type _host_index: int, optional
14731473
:return: Returns the result object.
1474-
""" # noqa: E501 docstring might be too long
1474+
""" # noqa: E501
14751475

14761476
_param = self._list_user_permissions_serialize(
14771477
email=email,
@@ -1546,7 +1546,7 @@ def list_user_permissions_without_preload_content(
15461546
in the spec for a single request.
15471547
:type _host_index: int, optional
15481548
:return: Returns the result object.
1549-
""" # noqa: E501 docstring might be too long
1549+
""" # noqa: E501
15501550

15511551
_param = self._list_user_permissions_serialize(
15521552
email=email,
@@ -1590,7 +1590,7 @@ def _list_user_permissions_serialize(
15901590
_query_params: List[Tuple[str, str]] = []
15911591
_header_params: Dict[str, Optional[str]] = _headers or {}
15921592
_form_params: List[Tuple[str, str]] = []
1593-
_files: Dict[str, Union[str, bytes]] = {}
1593+
_files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
15941594
_body_params: Optional[bytes] = None
15951595

15961596
# process the path parameters
@@ -1678,7 +1678,7 @@ def remove_members(
16781678
in the spec for a single request.
16791679
:type _host_index: int, optional
16801680
:return: Returns the result object.
1681-
""" # noqa: E501 docstring might be too long
1681+
""" # noqa: E501
16821682

16831683
_param = self._remove_members_serialize(
16841684
resource_id=resource_id,
@@ -1745,7 +1745,7 @@ def remove_members_with_http_info(
17451745
in the spec for a single request.
17461746
:type _host_index: int, optional
17471747
:return: Returns the result object.
1748-
""" # noqa: E501 docstring might be too long
1748+
""" # noqa: E501
17491749

17501750
_param = self._remove_members_serialize(
17511751
resource_id=resource_id,
@@ -1812,7 +1812,7 @@ def remove_members_without_preload_content(
18121812
in the spec for a single request.
18131813
:type _host_index: int, optional
18141814
:return: Returns the result object.
1815-
""" # noqa: E501 docstring might be too long
1815+
""" # noqa: E501
18161816

18171817
_param = self._remove_members_serialize(
18181818
resource_id=resource_id,
@@ -1850,7 +1850,7 @@ def _remove_members_serialize(
18501850
_query_params: List[Tuple[str, str]] = []
18511851
_header_params: Dict[str, Optional[str]] = _headers or {}
18521852
_form_params: List[Tuple[str, str]] = []
1853-
_files: Dict[str, Union[str, bytes]] = {}
1853+
_files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
18541854
_body_params: Optional[bytes] = None
18551855

18561856
# process the path parameters

0 commit comments

Comments
 (0)