stackit-secretsmanager 0.2.2__tar.gz → 0.2.3__tar.gz

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 (32) hide show
  1. {stackit_secretsmanager-0.2.2 → stackit_secretsmanager-0.2.3}/PKG-INFO +1 -1
  2. {stackit_secretsmanager-0.2.2 → stackit_secretsmanager-0.2.3}/pyproject.toml +1 -1
  3. stackit_secretsmanager-0.2.3/src/stackit/secretsmanager/__init__.py +99 -0
  4. {stackit_secretsmanager-0.2.2 → stackit_secretsmanager-0.2.3}/src/stackit/secretsmanager/api/default_api.py +65 -65
  5. {stackit_secretsmanager-0.2.2 → stackit_secretsmanager-0.2.3}/src/stackit/secretsmanager/api_client.py +18 -5
  6. {stackit_secretsmanager-0.2.2 → stackit_secretsmanager-0.2.3}/src/stackit/secretsmanager/configuration.py +33 -11
  7. {stackit_secretsmanager-0.2.2 → stackit_secretsmanager-0.2.3}/src/stackit/secretsmanager/exceptions.py +20 -1
  8. {stackit_secretsmanager-0.2.2 → stackit_secretsmanager-0.2.3}/src/stackit/secretsmanager/models/__init__.py +1 -1
  9. {stackit_secretsmanager-0.2.2 → stackit_secretsmanager-0.2.3}/src/stackit/secretsmanager/models/acl.py +2 -2
  10. {stackit_secretsmanager-0.2.2 → stackit_secretsmanager-0.2.3}/src/stackit/secretsmanager/models/bad_request.py +2 -2
  11. {stackit_secretsmanager-0.2.2 → stackit_secretsmanager-0.2.3}/src/stackit/secretsmanager/models/conflict.py +2 -2
  12. {stackit_secretsmanager-0.2.2 → stackit_secretsmanager-0.2.3}/src/stackit/secretsmanager/models/create_acl_payload.py +2 -2
  13. {stackit_secretsmanager-0.2.2 → stackit_secretsmanager-0.2.3}/src/stackit/secretsmanager/models/create_instance_payload.py +2 -2
  14. {stackit_secretsmanager-0.2.2 → stackit_secretsmanager-0.2.3}/src/stackit/secretsmanager/models/create_user_payload.py +2 -2
  15. {stackit_secretsmanager-0.2.2 → stackit_secretsmanager-0.2.3}/src/stackit/secretsmanager/models/instance.py +2 -2
  16. {stackit_secretsmanager-0.2.2 → stackit_secretsmanager-0.2.3}/src/stackit/secretsmanager/models/list_acls_response.py +2 -2
  17. {stackit_secretsmanager-0.2.2 → stackit_secretsmanager-0.2.3}/src/stackit/secretsmanager/models/list_instances_response.py +2 -2
  18. {stackit_secretsmanager-0.2.2 → stackit_secretsmanager-0.2.3}/src/stackit/secretsmanager/models/list_users_response.py +2 -2
  19. {stackit_secretsmanager-0.2.2 → stackit_secretsmanager-0.2.3}/src/stackit/secretsmanager/models/not_found.py +2 -2
  20. {stackit_secretsmanager-0.2.2 → stackit_secretsmanager-0.2.3}/src/stackit/secretsmanager/models/update_acl_payload.py +2 -2
  21. {stackit_secretsmanager-0.2.2 → stackit_secretsmanager-0.2.3}/src/stackit/secretsmanager/models/update_acls_payload.py +2 -2
  22. {stackit_secretsmanager-0.2.2 → stackit_secretsmanager-0.2.3}/src/stackit/secretsmanager/models/update_instance_payload.py +2 -2
  23. {stackit_secretsmanager-0.2.2 → stackit_secretsmanager-0.2.3}/src/stackit/secretsmanager/models/update_user_payload.py +2 -2
  24. {stackit_secretsmanager-0.2.2 → stackit_secretsmanager-0.2.3}/src/stackit/secretsmanager/models/user.py +2 -2
  25. {stackit_secretsmanager-0.2.2 → stackit_secretsmanager-0.2.3}/src/stackit/secretsmanager/rest.py +2 -2
  26. stackit_secretsmanager-0.2.2/src/stackit/secretsmanager/__init__.py +0 -51
  27. {stackit_secretsmanager-0.2.2 → stackit_secretsmanager-0.2.3}/LICENSE.md +0 -0
  28. {stackit_secretsmanager-0.2.2 → stackit_secretsmanager-0.2.3}/NOTICE.txt +0 -0
  29. {stackit_secretsmanager-0.2.2 → stackit_secretsmanager-0.2.3}/README.md +0 -0
  30. {stackit_secretsmanager-0.2.2 → stackit_secretsmanager-0.2.3}/src/stackit/secretsmanager/api/__init__.py +0 -0
  31. {stackit_secretsmanager-0.2.2 → stackit_secretsmanager-0.2.3}/src/stackit/secretsmanager/api_response.py +0 -0
  32. {stackit_secretsmanager-0.2.2 → stackit_secretsmanager-0.2.3}/src/stackit/secretsmanager/py.typed +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: stackit-secretsmanager
3
- Version: 0.2.2
3
+ Version: 0.2.3
4
4
  Summary: STACKIT Secrets Manager API
5
5
  Author: STACKIT Developer Tools
6
6
  Author-email: developer-tools@stackit.cloud
@@ -3,7 +3,7 @@ name = "stackit-secretsmanager"
3
3
 
4
4
  [tool.poetry]
5
5
  name = "stackit-secretsmanager"
6
- version = "v0.2.2"
6
+ version = "v0.2.3"
7
7
  authors = [
8
8
  "STACKIT Developer Tools <developer-tools@stackit.cloud>",
9
9
  ]
@@ -0,0 +1,99 @@
1
+ # coding: utf-8
2
+
3
+ # flake8: noqa
4
+
5
+ """
6
+ STACKIT Secrets Manager API
7
+
8
+ This API provides endpoints for managing the Secrets-Manager.
9
+
10
+ The version of the OpenAPI document: 1.4.1
11
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
12
+
13
+ Do not edit the class manually.
14
+ """ # noqa: E501
15
+
16
+
17
+ __version__ = "1.0.0"
18
+
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
+ "ACL",
32
+ "BadRequest",
33
+ "Conflict",
34
+ "CreateACLPayload",
35
+ "CreateInstancePayload",
36
+ "CreateUserPayload",
37
+ "Instance",
38
+ "ListACLsResponse",
39
+ "ListInstancesResponse",
40
+ "ListUsersResponse",
41
+ "NotFound",
42
+ "UpdateACLPayload",
43
+ "UpdateACLsPayload",
44
+ "UpdateInstancePayload",
45
+ "UpdateUserPayload",
46
+ "User",
47
+ ]
48
+
49
+ # import apis into sdk package
50
+ from stackit.secretsmanager.api.default_api import DefaultApi as DefaultApi
51
+ from stackit.secretsmanager.api_client import ApiClient as ApiClient
52
+
53
+ # import ApiClient
54
+ from stackit.secretsmanager.api_response import ApiResponse as ApiResponse
55
+ from stackit.secretsmanager.configuration import HostConfiguration as HostConfiguration
56
+ from stackit.secretsmanager.exceptions import ApiAttributeError as ApiAttributeError
57
+ from stackit.secretsmanager.exceptions import ApiException as ApiException
58
+ from stackit.secretsmanager.exceptions import ApiKeyError as ApiKeyError
59
+ from stackit.secretsmanager.exceptions import ApiTypeError as ApiTypeError
60
+ from stackit.secretsmanager.exceptions import ApiValueError as ApiValueError
61
+ from stackit.secretsmanager.exceptions import OpenApiException as OpenApiException
62
+
63
+ # import models into sdk package
64
+ from stackit.secretsmanager.models.acl import ACL as ACL
65
+ from stackit.secretsmanager.models.bad_request import BadRequest as BadRequest
66
+ from stackit.secretsmanager.models.conflict import Conflict as Conflict
67
+ from stackit.secretsmanager.models.create_acl_payload import (
68
+ CreateACLPayload as CreateACLPayload,
69
+ )
70
+ from stackit.secretsmanager.models.create_instance_payload import (
71
+ CreateInstancePayload as CreateInstancePayload,
72
+ )
73
+ from stackit.secretsmanager.models.create_user_payload import (
74
+ CreateUserPayload as CreateUserPayload,
75
+ )
76
+ from stackit.secretsmanager.models.instance import Instance as Instance
77
+ from stackit.secretsmanager.models.list_acls_response import (
78
+ ListACLsResponse as ListACLsResponse,
79
+ )
80
+ from stackit.secretsmanager.models.list_instances_response import (
81
+ ListInstancesResponse as ListInstancesResponse,
82
+ )
83
+ from stackit.secretsmanager.models.list_users_response import (
84
+ ListUsersResponse as ListUsersResponse,
85
+ )
86
+ from stackit.secretsmanager.models.not_found import NotFound as NotFound
87
+ from stackit.secretsmanager.models.update_acl_payload import (
88
+ UpdateACLPayload as UpdateACLPayload,
89
+ )
90
+ from stackit.secretsmanager.models.update_acls_payload import (
91
+ UpdateACLsPayload as UpdateACLsPayload,
92
+ )
93
+ from stackit.secretsmanager.models.update_instance_payload import (
94
+ UpdateInstancePayload as UpdateInstancePayload,
95
+ )
96
+ from stackit.secretsmanager.models.update_user_payload import (
97
+ UpdateUserPayload as UpdateUserPayload,
98
+ )
99
+ from stackit.secretsmanager.models.user import User as User
@@ -9,7 +9,7 @@
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
12
- """ # noqa: E501 docstring might be too long
12
+ """ # noqa: E501
13
13
 
14
14
  from typing import Any, Dict, List, Optional, Tuple, Union
15
15
 
@@ -96,7 +96,7 @@ class DefaultApi:
96
96
  in the spec for a single request.
97
97
  :type _host_index: int, optional
98
98
  :return: Returns the result object.
99
- """ # noqa: E501 docstring might be too long
99
+ """ # noqa: E501
100
100
 
101
101
  _param = self._create_acl_serialize(
102
102
  project_id=project_id,
@@ -170,7 +170,7 @@ class DefaultApi:
170
170
  in the spec for a single request.
171
171
  :type _host_index: int, optional
172
172
  :return: Returns the result object.
173
- """ # noqa: E501 docstring might be too long
173
+ """ # noqa: E501
174
174
 
175
175
  _param = self._create_acl_serialize(
176
176
  project_id=project_id,
@@ -244,7 +244,7 @@ class DefaultApi:
244
244
  in the spec for a single request.
245
245
  :type _host_index: int, optional
246
246
  :return: Returns the result object.
247
- """ # noqa: E501 docstring might be too long
247
+ """ # noqa: E501
248
248
 
249
249
  _param = self._create_acl_serialize(
250
250
  project_id=project_id,
@@ -285,7 +285,7 @@ class DefaultApi:
285
285
  _query_params: List[Tuple[str, str]] = []
286
286
  _header_params: Dict[str, Optional[str]] = _headers or {}
287
287
  _form_params: List[Tuple[str, str]] = []
288
- _files: Dict[str, Union[str, bytes]] = {}
288
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
289
289
  _body_params: Optional[bytes] = None
290
290
 
291
291
  # process the path parameters
@@ -375,7 +375,7 @@ class DefaultApi:
375
375
  in the spec for a single request.
376
376
  :type _host_index: int, optional
377
377
  :return: Returns the result object.
378
- """ # noqa: E501 docstring might be too long
378
+ """ # noqa: E501
379
379
 
380
380
  _param = self._create_instance_serialize(
381
381
  project_id=project_id,
@@ -444,7 +444,7 @@ class DefaultApi:
444
444
  in the spec for a single request.
445
445
  :type _host_index: int, optional
446
446
  :return: Returns the result object.
447
- """ # noqa: E501 docstring might be too long
447
+ """ # noqa: E501
448
448
 
449
449
  _param = self._create_instance_serialize(
450
450
  project_id=project_id,
@@ -513,7 +513,7 @@ class DefaultApi:
513
513
  in the spec for a single request.
514
514
  :type _host_index: int, optional
515
515
  :return: Returns the result object.
516
- """ # noqa: E501 docstring might be too long
516
+ """ # noqa: E501
517
517
 
518
518
  _param = self._create_instance_serialize(
519
519
  project_id=project_id,
@@ -551,7 +551,7 @@ class DefaultApi:
551
551
  _query_params: List[Tuple[str, str]] = []
552
552
  _header_params: Dict[str, Optional[str]] = _headers or {}
553
553
  _form_params: List[Tuple[str, str]] = []
554
- _files: Dict[str, Union[str, bytes]] = {}
554
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
555
555
  _body_params: Optional[bytes] = None
556
556
 
557
557
  # process the path parameters
@@ -642,7 +642,7 @@ class DefaultApi:
642
642
  in the spec for a single request.
643
643
  :type _host_index: int, optional
644
644
  :return: Returns the result object.
645
- """ # noqa: E501 docstring might be too long
645
+ """ # noqa: E501
646
646
 
647
647
  _param = self._create_user_serialize(
648
648
  project_id=project_id,
@@ -717,7 +717,7 @@ class DefaultApi:
717
717
  in the spec for a single request.
718
718
  :type _host_index: int, optional
719
719
  :return: Returns the result object.
720
- """ # noqa: E501 docstring might be too long
720
+ """ # noqa: E501
721
721
 
722
722
  _param = self._create_user_serialize(
723
723
  project_id=project_id,
@@ -792,7 +792,7 @@ class DefaultApi:
792
792
  in the spec for a single request.
793
793
  :type _host_index: int, optional
794
794
  :return: Returns the result object.
795
- """ # noqa: E501 docstring might be too long
795
+ """ # noqa: E501
796
796
 
797
797
  _param = self._create_user_serialize(
798
798
  project_id=project_id,
@@ -834,7 +834,7 @@ class DefaultApi:
834
834
  _query_params: List[Tuple[str, str]] = []
835
835
  _header_params: Dict[str, Optional[str]] = _headers or {}
836
836
  _form_params: List[Tuple[str, str]] = []
837
- _files: Dict[str, Union[str, bytes]] = {}
837
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
838
838
  _body_params: Optional[bytes] = None
839
839
 
840
840
  # process the path parameters
@@ -927,7 +927,7 @@ class DefaultApi:
927
927
  in the spec for a single request.
928
928
  :type _host_index: int, optional
929
929
  :return: Returns the result object.
930
- """ # noqa: E501 docstring might be too long
930
+ """ # noqa: E501
931
931
 
932
932
  _param = self._delete_acl_serialize(
933
933
  project_id=project_id,
@@ -1001,7 +1001,7 @@ class DefaultApi:
1001
1001
  in the spec for a single request.
1002
1002
  :type _host_index: int, optional
1003
1003
  :return: Returns the result object.
1004
- """ # noqa: E501 docstring might be too long
1004
+ """ # noqa: E501
1005
1005
 
1006
1006
  _param = self._delete_acl_serialize(
1007
1007
  project_id=project_id,
@@ -1075,7 +1075,7 @@ class DefaultApi:
1075
1075
  in the spec for a single request.
1076
1076
  :type _host_index: int, optional
1077
1077
  :return: Returns the result object.
1078
- """ # noqa: E501 docstring might be too long
1078
+ """ # noqa: E501
1079
1079
 
1080
1080
  _param = self._delete_acl_serialize(
1081
1081
  project_id=project_id,
@@ -1116,7 +1116,7 @@ class DefaultApi:
1116
1116
  _query_params: List[Tuple[str, str]] = []
1117
1117
  _header_params: Dict[str, Optional[str]] = _headers or {}
1118
1118
  _form_params: List[Tuple[str, str]] = []
1119
- _files: Dict[str, Union[str, bytes]] = {}
1119
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
1120
1120
  _body_params: Optional[bytes] = None
1121
1121
 
1122
1122
  # process the path parameters
@@ -1198,7 +1198,7 @@ class DefaultApi:
1198
1198
  in the spec for a single request.
1199
1199
  :type _host_index: int, optional
1200
1200
  :return: Returns the result object.
1201
- """ # noqa: E501 docstring might be too long
1201
+ """ # noqa: E501
1202
1202
 
1203
1203
  _param = self._delete_instance_serialize(
1204
1204
  project_id=project_id,
@@ -1268,7 +1268,7 @@ class DefaultApi:
1268
1268
  in the spec for a single request.
1269
1269
  :type _host_index: int, optional
1270
1270
  :return: Returns the result object.
1271
- """ # noqa: E501 docstring might be too long
1271
+ """ # noqa: E501
1272
1272
 
1273
1273
  _param = self._delete_instance_serialize(
1274
1274
  project_id=project_id,
@@ -1338,7 +1338,7 @@ class DefaultApi:
1338
1338
  in the spec for a single request.
1339
1339
  :type _host_index: int, optional
1340
1340
  :return: Returns the result object.
1341
- """ # noqa: E501 docstring might be too long
1341
+ """ # noqa: E501
1342
1342
 
1343
1343
  _param = self._delete_instance_serialize(
1344
1344
  project_id=project_id,
@@ -1377,7 +1377,7 @@ class DefaultApi:
1377
1377
  _query_params: List[Tuple[str, str]] = []
1378
1378
  _header_params: Dict[str, Optional[str]] = _headers or {}
1379
1379
  _form_params: List[Tuple[str, str]] = []
1380
- _files: Dict[str, Union[str, bytes]] = {}
1380
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
1381
1381
  _body_params: Optional[bytes] = None
1382
1382
 
1383
1383
  # process the path parameters
@@ -1462,7 +1462,7 @@ class DefaultApi:
1462
1462
  in the spec for a single request.
1463
1463
  :type _host_index: int, optional
1464
1464
  :return: Returns the result object.
1465
- """ # noqa: E501 docstring might be too long
1465
+ """ # noqa: E501
1466
1466
 
1467
1467
  _param = self._delete_user_serialize(
1468
1468
  project_id=project_id,
@@ -1538,7 +1538,7 @@ class DefaultApi:
1538
1538
  in the spec for a single request.
1539
1539
  :type _host_index: int, optional
1540
1540
  :return: Returns the result object.
1541
- """ # noqa: E501 docstring might be too long
1541
+ """ # noqa: E501
1542
1542
 
1543
1543
  _param = self._delete_user_serialize(
1544
1544
  project_id=project_id,
@@ -1614,7 +1614,7 @@ class DefaultApi:
1614
1614
  in the spec for a single request.
1615
1615
  :type _host_index: int, optional
1616
1616
  :return: Returns the result object.
1617
- """ # noqa: E501 docstring might be too long
1617
+ """ # noqa: E501
1618
1618
 
1619
1619
  _param = self._delete_user_serialize(
1620
1620
  project_id=project_id,
@@ -1655,7 +1655,7 @@ class DefaultApi:
1655
1655
  _query_params: List[Tuple[str, str]] = []
1656
1656
  _header_params: Dict[str, Optional[str]] = _headers or {}
1657
1657
  _form_params: List[Tuple[str, str]] = []
1658
- _files: Dict[str, Union[str, bytes]] = {}
1658
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
1659
1659
  _body_params: Optional[bytes] = None
1660
1660
 
1661
1661
  # process the path parameters
@@ -1740,7 +1740,7 @@ class DefaultApi:
1740
1740
  in the spec for a single request.
1741
1741
  :type _host_index: int, optional
1742
1742
  :return: Returns the result object.
1743
- """ # noqa: E501 docstring might be too long
1743
+ """ # noqa: E501
1744
1744
 
1745
1745
  _param = self._get_acl_serialize(
1746
1746
  project_id=project_id,
@@ -1814,7 +1814,7 @@ class DefaultApi:
1814
1814
  in the spec for a single request.
1815
1815
  :type _host_index: int, optional
1816
1816
  :return: Returns the result object.
1817
- """ # noqa: E501 docstring might be too long
1817
+ """ # noqa: E501
1818
1818
 
1819
1819
  _param = self._get_acl_serialize(
1820
1820
  project_id=project_id,
@@ -1888,7 +1888,7 @@ class DefaultApi:
1888
1888
  in the spec for a single request.
1889
1889
  :type _host_index: int, optional
1890
1890
  :return: Returns the result object.
1891
- """ # noqa: E501 docstring might be too long
1891
+ """ # noqa: E501
1892
1892
 
1893
1893
  _param = self._get_acl_serialize(
1894
1894
  project_id=project_id,
@@ -1929,7 +1929,7 @@ class DefaultApi:
1929
1929
  _query_params: List[Tuple[str, str]] = []
1930
1930
  _header_params: Dict[str, Optional[str]] = _headers or {}
1931
1931
  _form_params: List[Tuple[str, str]] = []
1932
- _files: Dict[str, Union[str, bytes]] = {}
1932
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
1933
1933
  _body_params: Optional[bytes] = None
1934
1934
 
1935
1935
  # process the path parameters
@@ -2011,7 +2011,7 @@ class DefaultApi:
2011
2011
  in the spec for a single request.
2012
2012
  :type _host_index: int, optional
2013
2013
  :return: Returns the result object.
2014
- """ # noqa: E501 docstring might be too long
2014
+ """ # noqa: E501
2015
2015
 
2016
2016
  _param = self._get_instance_serialize(
2017
2017
  project_id=project_id,
@@ -2081,7 +2081,7 @@ class DefaultApi:
2081
2081
  in the spec for a single request.
2082
2082
  :type _host_index: int, optional
2083
2083
  :return: Returns the result object.
2084
- """ # noqa: E501 docstring might be too long
2084
+ """ # noqa: E501
2085
2085
 
2086
2086
  _param = self._get_instance_serialize(
2087
2087
  project_id=project_id,
@@ -2151,7 +2151,7 @@ class DefaultApi:
2151
2151
  in the spec for a single request.
2152
2152
  :type _host_index: int, optional
2153
2153
  :return: Returns the result object.
2154
- """ # noqa: E501 docstring might be too long
2154
+ """ # noqa: E501
2155
2155
 
2156
2156
  _param = self._get_instance_serialize(
2157
2157
  project_id=project_id,
@@ -2190,7 +2190,7 @@ class DefaultApi:
2190
2190
  _query_params: List[Tuple[str, str]] = []
2191
2191
  _header_params: Dict[str, Optional[str]] = _headers or {}
2192
2192
  _form_params: List[Tuple[str, str]] = []
2193
- _files: Dict[str, Union[str, bytes]] = {}
2193
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
2194
2194
  _body_params: Optional[bytes] = None
2195
2195
 
2196
2196
  # process the path parameters
@@ -2275,7 +2275,7 @@ class DefaultApi:
2275
2275
  in the spec for a single request.
2276
2276
  :type _host_index: int, optional
2277
2277
  :return: Returns the result object.
2278
- """ # noqa: E501 docstring might be too long
2278
+ """ # noqa: E501
2279
2279
 
2280
2280
  _param = self._get_user_serialize(
2281
2281
  project_id=project_id,
@@ -2351,7 +2351,7 @@ class DefaultApi:
2351
2351
  in the spec for a single request.
2352
2352
  :type _host_index: int, optional
2353
2353
  :return: Returns the result object.
2354
- """ # noqa: E501 docstring might be too long
2354
+ """ # noqa: E501
2355
2355
 
2356
2356
  _param = self._get_user_serialize(
2357
2357
  project_id=project_id,
@@ -2427,7 +2427,7 @@ class DefaultApi:
2427
2427
  in the spec for a single request.
2428
2428
  :type _host_index: int, optional
2429
2429
  :return: Returns the result object.
2430
- """ # noqa: E501 docstring might be too long
2430
+ """ # noqa: E501
2431
2431
 
2432
2432
  _param = self._get_user_serialize(
2433
2433
  project_id=project_id,
@@ -2468,7 +2468,7 @@ class DefaultApi:
2468
2468
  _query_params: List[Tuple[str, str]] = []
2469
2469
  _header_params: Dict[str, Optional[str]] = _headers or {}
2470
2470
  _form_params: List[Tuple[str, str]] = []
2471
- _files: Dict[str, Union[str, bytes]] = {}
2471
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
2472
2472
  _body_params: Optional[bytes] = None
2473
2473
 
2474
2474
  # process the path parameters
@@ -2550,7 +2550,7 @@ class DefaultApi:
2550
2550
  in the spec for a single request.
2551
2551
  :type _host_index: int, optional
2552
2552
  :return: Returns the result object.
2553
- """ # noqa: E501 docstring might be too long
2553
+ """ # noqa: E501
2554
2554
 
2555
2555
  _param = self._list_acls_serialize(
2556
2556
  project_id=project_id,
@@ -2620,7 +2620,7 @@ class DefaultApi:
2620
2620
  in the spec for a single request.
2621
2621
  :type _host_index: int, optional
2622
2622
  :return: Returns the result object.
2623
- """ # noqa: E501 docstring might be too long
2623
+ """ # noqa: E501
2624
2624
 
2625
2625
  _param = self._list_acls_serialize(
2626
2626
  project_id=project_id,
@@ -2690,7 +2690,7 @@ class DefaultApi:
2690
2690
  in the spec for a single request.
2691
2691
  :type _host_index: int, optional
2692
2692
  :return: Returns the result object.
2693
- """ # noqa: E501 docstring might be too long
2693
+ """ # noqa: E501
2694
2694
 
2695
2695
  _param = self._list_acls_serialize(
2696
2696
  project_id=project_id,
@@ -2729,7 +2729,7 @@ class DefaultApi:
2729
2729
  _query_params: List[Tuple[str, str]] = []
2730
2730
  _header_params: Dict[str, Optional[str]] = _headers or {}
2731
2731
  _form_params: List[Tuple[str, str]] = []
2732
- _files: Dict[str, Union[str, bytes]] = {}
2732
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
2733
2733
  _body_params: Optional[bytes] = None
2734
2734
 
2735
2735
  # process the path parameters
@@ -2806,7 +2806,7 @@ class DefaultApi:
2806
2806
  in the spec for a single request.
2807
2807
  :type _host_index: int, optional
2808
2808
  :return: Returns the result object.
2809
- """ # noqa: E501 docstring might be too long
2809
+ """ # noqa: E501
2810
2810
 
2811
2811
  _param = self._list_instances_serialize(
2812
2812
  project_id=project_id,
@@ -2871,7 +2871,7 @@ class DefaultApi:
2871
2871
  in the spec for a single request.
2872
2872
  :type _host_index: int, optional
2873
2873
  :return: Returns the result object.
2874
- """ # noqa: E501 docstring might be too long
2874
+ """ # noqa: E501
2875
2875
 
2876
2876
  _param = self._list_instances_serialize(
2877
2877
  project_id=project_id,
@@ -2936,7 +2936,7 @@ class DefaultApi:
2936
2936
  in the spec for a single request.
2937
2937
  :type _host_index: int, optional
2938
2938
  :return: Returns the result object.
2939
- """ # noqa: E501 docstring might be too long
2939
+ """ # noqa: E501
2940
2940
 
2941
2941
  _param = self._list_instances_serialize(
2942
2942
  project_id=project_id,
@@ -2972,7 +2972,7 @@ class DefaultApi:
2972
2972
  _query_params: List[Tuple[str, str]] = []
2973
2973
  _header_params: Dict[str, Optional[str]] = _headers or {}
2974
2974
  _form_params: List[Tuple[str, str]] = []
2975
- _files: Dict[str, Union[str, bytes]] = {}
2975
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
2976
2976
  _body_params: Optional[bytes] = None
2977
2977
 
2978
2978
  # process the path parameters
@@ -3050,7 +3050,7 @@ class DefaultApi:
3050
3050
  in the spec for a single request.
3051
3051
  :type _host_index: int, optional
3052
3052
  :return: Returns the result object.
3053
- """ # noqa: E501 docstring might be too long
3053
+ """ # noqa: E501
3054
3054
 
3055
3055
  _param = self._list_users_serialize(
3056
3056
  project_id=project_id,
@@ -3120,7 +3120,7 @@ class DefaultApi:
3120
3120
  in the spec for a single request.
3121
3121
  :type _host_index: int, optional
3122
3122
  :return: Returns the result object.
3123
- """ # noqa: E501 docstring might be too long
3123
+ """ # noqa: E501
3124
3124
 
3125
3125
  _param = self._list_users_serialize(
3126
3126
  project_id=project_id,
@@ -3190,7 +3190,7 @@ class DefaultApi:
3190
3190
  in the spec for a single request.
3191
3191
  :type _host_index: int, optional
3192
3192
  :return: Returns the result object.
3193
- """ # noqa: E501 docstring might be too long
3193
+ """ # noqa: E501
3194
3194
 
3195
3195
  _param = self._list_users_serialize(
3196
3196
  project_id=project_id,
@@ -3229,7 +3229,7 @@ class DefaultApi:
3229
3229
  _query_params: List[Tuple[str, str]] = []
3230
3230
  _header_params: Dict[str, Optional[str]] = _headers or {}
3231
3231
  _form_params: List[Tuple[str, str]] = []
3232
- _files: Dict[str, Union[str, bytes]] = {}
3232
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
3233
3233
  _body_params: Optional[bytes] = None
3234
3234
 
3235
3235
  # process the path parameters
@@ -3315,7 +3315,7 @@ class DefaultApi:
3315
3315
  in the spec for a single request.
3316
3316
  :type _host_index: int, optional
3317
3317
  :return: Returns the result object.
3318
- """ # noqa: E501 docstring might be too long
3318
+ """ # noqa: E501
3319
3319
 
3320
3320
  _param = self._update_acl_serialize(
3321
3321
  project_id=project_id,
@@ -3393,7 +3393,7 @@ class DefaultApi:
3393
3393
  in the spec for a single request.
3394
3394
  :type _host_index: int, optional
3395
3395
  :return: Returns the result object.
3396
- """ # noqa: E501 docstring might be too long
3396
+ """ # noqa: E501
3397
3397
 
3398
3398
  _param = self._update_acl_serialize(
3399
3399
  project_id=project_id,
@@ -3471,7 +3471,7 @@ class DefaultApi:
3471
3471
  in the spec for a single request.
3472
3472
  :type _host_index: int, optional
3473
3473
  :return: Returns the result object.
3474
- """ # noqa: E501 docstring might be too long
3474
+ """ # noqa: E501
3475
3475
 
3476
3476
  _param = self._update_acl_serialize(
3477
3477
  project_id=project_id,
@@ -3514,7 +3514,7 @@ class DefaultApi:
3514
3514
  _query_params: List[Tuple[str, str]] = []
3515
3515
  _header_params: Dict[str, Optional[str]] = _headers or {}
3516
3516
  _form_params: List[Tuple[str, str]] = []
3517
- _files: Dict[str, Union[str, bytes]] = {}
3517
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
3518
3518
  _body_params: Optional[bytes] = None
3519
3519
 
3520
3520
  # process the path parameters
@@ -3609,7 +3609,7 @@ class DefaultApi:
3609
3609
  in the spec for a single request.
3610
3610
  :type _host_index: int, optional
3611
3611
  :return: Returns the result object.
3612
- """ # noqa: E501 docstring might be too long
3612
+ """ # noqa: E501
3613
3613
 
3614
3614
  _param = self._update_acls_serialize(
3615
3615
  project_id=project_id,
@@ -3683,7 +3683,7 @@ class DefaultApi:
3683
3683
  in the spec for a single request.
3684
3684
  :type _host_index: int, optional
3685
3685
  :return: Returns the result object.
3686
- """ # noqa: E501 docstring might be too long
3686
+ """ # noqa: E501
3687
3687
 
3688
3688
  _param = self._update_acls_serialize(
3689
3689
  project_id=project_id,
@@ -3757,7 +3757,7 @@ class DefaultApi:
3757
3757
  in the spec for a single request.
3758
3758
  :type _host_index: int, optional
3759
3759
  :return: Returns the result object.
3760
- """ # noqa: E501 docstring might be too long
3760
+ """ # noqa: E501
3761
3761
 
3762
3762
  _param = self._update_acls_serialize(
3763
3763
  project_id=project_id,
@@ -3798,7 +3798,7 @@ class DefaultApi:
3798
3798
  _query_params: List[Tuple[str, str]] = []
3799
3799
  _header_params: Dict[str, Optional[str]] = _headers or {}
3800
3800
  _form_params: List[Tuple[str, str]] = []
3801
- _files: Dict[str, Union[str, bytes]] = {}
3801
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
3802
3802
  _body_params: Optional[bytes] = None
3803
3803
 
3804
3804
  # process the path parameters
@@ -3891,7 +3891,7 @@ class DefaultApi:
3891
3891
  in the spec for a single request.
3892
3892
  :type _host_index: int, optional
3893
3893
  :return: Returns the result object.
3894
- """ # noqa: E501 docstring might be too long
3894
+ """ # noqa: E501
3895
3895
 
3896
3896
  _param = self._update_instance_serialize(
3897
3897
  project_id=project_id,
@@ -3965,7 +3965,7 @@ class DefaultApi:
3965
3965
  in the spec for a single request.
3966
3966
  :type _host_index: int, optional
3967
3967
  :return: Returns the result object.
3968
- """ # noqa: E501 docstring might be too long
3968
+ """ # noqa: E501
3969
3969
 
3970
3970
  _param = self._update_instance_serialize(
3971
3971
  project_id=project_id,
@@ -4039,7 +4039,7 @@ class DefaultApi:
4039
4039
  in the spec for a single request.
4040
4040
  :type _host_index: int, optional
4041
4041
  :return: Returns the result object.
4042
- """ # noqa: E501 docstring might be too long
4042
+ """ # noqa: E501
4043
4043
 
4044
4044
  _param = self._update_instance_serialize(
4045
4045
  project_id=project_id,
@@ -4080,7 +4080,7 @@ class DefaultApi:
4080
4080
  _query_params: List[Tuple[str, str]] = []
4081
4081
  _header_params: Dict[str, Optional[str]] = _headers or {}
4082
4082
  _form_params: List[Tuple[str, str]] = []
4083
- _files: Dict[str, Union[str, bytes]] = {}
4083
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
4084
4084
  _body_params: Optional[bytes] = None
4085
4085
 
4086
4086
  # process the path parameters
@@ -4178,7 +4178,7 @@ class DefaultApi:
4178
4178
  in the spec for a single request.
4179
4179
  :type _host_index: int, optional
4180
4180
  :return: Returns the result object.
4181
- """ # noqa: E501 docstring might be too long
4181
+ """ # noqa: E501
4182
4182
 
4183
4183
  _param = self._update_user_serialize(
4184
4184
  project_id=project_id,
@@ -4258,7 +4258,7 @@ class DefaultApi:
4258
4258
  in the spec for a single request.
4259
4259
  :type _host_index: int, optional
4260
4260
  :return: Returns the result object.
4261
- """ # noqa: E501 docstring might be too long
4261
+ """ # noqa: E501
4262
4262
 
4263
4263
  _param = self._update_user_serialize(
4264
4264
  project_id=project_id,
@@ -4338,7 +4338,7 @@ class DefaultApi:
4338
4338
  in the spec for a single request.
4339
4339
  :type _host_index: int, optional
4340
4340
  :return: Returns the result object.
4341
- """ # noqa: E501 docstring might be too long
4341
+ """ # noqa: E501
4342
4342
 
4343
4343
  _param = self._update_user_serialize(
4344
4344
  project_id=project_id,
@@ -4381,7 +4381,7 @@ class DefaultApi:
4381
4381
  _query_params: List[Tuple[str, str]] = []
4382
4382
  _header_params: Dict[str, Optional[str]] = _headers or {}
4383
4383
  _form_params: List[Tuple[str, str]] = []
4384
- _files: Dict[str, Union[str, bytes]] = {}
4384
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
4385
4385
  _body_params: Optional[bytes] = None
4386
4386
 
4387
4387
  # process the path parameters
@@ -9,7 +9,7 @@
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
12
- """ # noqa: E501 docstring might be too long
12
+ """ # noqa: E501
13
13
 
14
14
  import datetime
15
15
  import json
@@ -331,6 +331,10 @@ class ApiClient:
331
331
  else:
332
332
  obj_dict = obj.__dict__
333
333
 
334
+ if isinstance(obj_dict, list):
335
+ # here we handle instances that can either be a list or something else, and only became a real list by calling to_dict() # noqa: E501
336
+ return self.sanitize_for_serialization(obj_dict)
337
+
334
338
  return {key: self.sanitize_for_serialization(val) for key, val in obj_dict.items()}
335
339
 
336
340
  def deserialize(self, response_text: str, response_type: str, content_type: Optional[str]):
@@ -350,12 +354,12 @@ class ApiClient:
350
354
  data = json.loads(response_text)
351
355
  except ValueError:
352
356
  data = response_text
353
- elif content_type.startswith("application/json"):
357
+ elif re.match(r"^application/(json|[\w!#$&.+-^_]+\+json)\s*(;|$)", content_type, re.IGNORECASE):
354
358
  if response_text == "":
355
359
  data = ""
356
360
  else:
357
361
  data = json.loads(response_text)
358
- elif content_type.startswith("text/plain"):
362
+ elif re.match(r"^text\/[a-z.+-]+\s*(;|$)", content_type, re.IGNORECASE):
359
363
  data = response_text
360
364
  else:
361
365
  raise ApiException(status=0, reason="Unsupported content type: {0}".format(content_type))
@@ -457,7 +461,7 @@ class ApiClient:
457
461
  if k in collection_formats:
458
462
  collection_format = collection_formats[k]
459
463
  if collection_format == "multi":
460
- new_params.extend((k, str(value)) for value in v)
464
+ new_params.extend((k, quote(str(value))) for value in v)
461
465
  else:
462
466
  if collection_format == "ssv":
463
467
  delimiter = " "
@@ -473,7 +477,10 @@ class ApiClient:
473
477
 
474
478
  return "&".join(["=".join(map(str, item)) for item in new_params])
475
479
 
476
- def files_parameters(self, files: Dict[str, Union[str, bytes]]):
480
+ def files_parameters(
481
+ self,
482
+ files: Dict[str, Union[str, bytes, List[str], List[bytes], Tuple[str, bytes]]],
483
+ ):
477
484
  """Builds form parameters.
478
485
 
479
486
  :param files: File parameters.
@@ -488,6 +495,12 @@ class ApiClient:
488
495
  elif isinstance(v, bytes):
489
496
  filename = k
490
497
  filedata = v
498
+ elif isinstance(v, tuple):
499
+ filename, filedata = v
500
+ elif isinstance(v, list):
501
+ for file_param in v:
502
+ params.extend(self.files_parameters({k: file_param}))
503
+ continue
491
504
  else:
492
505
  raise ValueError("Unsupported file value")
493
506
  mimetype = mimetypes.guess_type(filename)[0] or "application/octet-stream"
@@ -1,10 +1,5 @@
1
1
  # coding: utf-8
2
2
 
3
- import sys
4
-
5
- import os
6
-
7
-
8
3
  """
9
4
  STACKIT Secrets Manager API
10
5
 
@@ -14,7 +9,29 @@ import os
14
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
15
10
 
16
11
  Do not edit the class manually.
17
- """ # noqa: E501 docstring might be too long
12
+ """ # noqa: E501
13
+
14
+ import sys
15
+ from typing import Dict, List, Optional, TypedDict
16
+
17
+ from typing_extensions import NotRequired
18
+
19
+ import os
20
+
21
+
22
+ ServerVariablesT = Dict[str, str]
23
+
24
+
25
+ class HostSettingVariable(TypedDict):
26
+ description: str
27
+ default_value: str
28
+ enum_values: List[str]
29
+
30
+
31
+ class HostSetting(TypedDict):
32
+ url: str
33
+ description: str
34
+ variables: NotRequired[Dict[str, HostSettingVariable]]
18
35
 
19
36
 
20
37
  class HostConfiguration:
@@ -53,7 +70,7 @@ class HostConfiguration:
53
70
  """Ignore operation servers
54
71
  """
55
72
 
56
- def get_host_settings(self):
73
+ def get_host_settings(self) -> List[HostSetting]:
57
74
  """Gets an array of host settings
58
75
 
59
76
  :return: An array of host settings
@@ -72,7 +89,12 @@ class HostConfiguration:
72
89
  }
73
90
  ]
74
91
 
75
- def get_host_from_settings(self, index, variables=None, servers=None):
92
+ def get_host_from_settings(
93
+ self,
94
+ index: Optional[int],
95
+ variables: Optional[ServerVariablesT] = None,
96
+ servers: Optional[List[HostSetting]] = None,
97
+ ) -> str:
76
98
  """Gets host URL based on the index and variables
77
99
  :param index: array index of the host settings
78
100
  :param variables: hash of variable and the corresponding value
@@ -112,7 +134,7 @@ class HostConfiguration:
112
134
  and variables.get(variable_name) is not None
113
135
  ):
114
136
  raise ValueError(
115
- "this API does not support setting a region in the the client configuration, "
137
+ "this API does not support setting a region in the client configuration, "
116
138
  "please check if the region can be specified as a function parameter"
117
139
  )
118
140
  used_value = variables.get(variable_name, variable["default_value"])
@@ -131,12 +153,12 @@ class HostConfiguration:
131
153
  return url
132
154
 
133
155
  @property
134
- def host(self):
156
+ def host(self) -> str:
135
157
  """Return generated host."""
136
158
  return self.get_host_from_settings(self.server_index, variables=self.server_variables)
137
159
 
138
160
  @host.setter
139
- def host(self, value):
161
+ def host(self, value: str) -> None:
140
162
  """Fix base path."""
141
163
  self._base_path = value
142
164
  self.server_index = None
@@ -9,7 +9,7 @@
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
12
- """ # noqa: E501 docstring might be too long
12
+ """ # noqa: E501
13
13
 
14
14
  from typing import Any, Optional
15
15
 
@@ -151,6 +151,13 @@ class ApiException(OpenApiException):
151
151
  if http_resp.status == 404:
152
152
  raise NotFoundException(http_resp=http_resp, body=body, data=data)
153
153
 
154
+ # Added new conditions for 409 and 422
155
+ if http_resp.status == 409:
156
+ raise ConflictException(http_resp=http_resp, body=body, data=data)
157
+
158
+ if http_resp.status == 422:
159
+ raise UnprocessableEntityException(http_resp=http_resp, body=body, data=data)
160
+
154
161
  if 500 <= http_resp.status <= 599:
155
162
  raise ServiceException(http_resp=http_resp, body=body, data=data)
156
163
  raise ApiException(http_resp=http_resp, body=body, data=data)
@@ -187,6 +194,18 @@ class ServiceException(ApiException):
187
194
  pass
188
195
 
189
196
 
197
+ class ConflictException(ApiException):
198
+ """Exception for HTTP 409 Conflict."""
199
+
200
+ pass
201
+
202
+
203
+ class UnprocessableEntityException(ApiException):
204
+ """Exception for HTTP 422 Unprocessable Entity."""
205
+
206
+ pass
207
+
208
+
190
209
  def render_path(path_to_item):
191
210
  """Returns a string representation of a path"""
192
211
  result = ""
@@ -10,7 +10,7 @@
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
12
  Do not edit the class manually.
13
- """ # noqa: E501 docstring might be too long
13
+ """ # noqa: E501
14
14
 
15
15
 
16
16
  # import models into model package
@@ -9,7 +9,7 @@
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
12
- """ # noqa: E501 docstring might be too long
12
+ """ # noqa: E501
13
13
 
14
14
  from __future__ import annotations
15
15
 
@@ -24,7 +24,7 @@ from typing_extensions import Self
24
24
  class ACL(BaseModel):
25
25
  """
26
26
  ACL
27
- """
27
+ """ # noqa: E501
28
28
 
29
29
  cidr: StrictStr = Field(description="The given IP/IP Range that is permitted to access.")
30
30
  id: StrictStr = Field(description="A auto generated unique id which identifies the acl.")
@@ -9,7 +9,7 @@
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
12
- """ # noqa: E501 docstring might be too long
12
+ """ # noqa: E501
13
13
 
14
14
  from __future__ import annotations
15
15
 
@@ -24,7 +24,7 @@ from typing_extensions import Self
24
24
  class BadRequest(BaseModel):
25
25
  """
26
26
  BadRequest
27
- """
27
+ """ # noqa: E501
28
28
 
29
29
  message: StrictStr = Field(description="The error message for bad requests")
30
30
  __properties: ClassVar[List[str]] = ["message"]
@@ -9,7 +9,7 @@
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
12
- """ # noqa: E501 docstring might be too long
12
+ """ # noqa: E501
13
13
 
14
14
  from __future__ import annotations
15
15
 
@@ -24,7 +24,7 @@ from typing_extensions import Self
24
24
  class Conflict(BaseModel):
25
25
  """
26
26
  Conflict
27
- """
27
+ """ # noqa: E501
28
28
 
29
29
  message: StrictStr = Field(description="The error message for conflicts")
30
30
  __properties: ClassVar[List[str]] = ["message"]
@@ -9,7 +9,7 @@
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
12
- """ # noqa: E501 docstring might be too long
12
+ """ # noqa: E501
13
13
 
14
14
  from __future__ import annotations
15
15
 
@@ -24,7 +24,7 @@ from typing_extensions import Self
24
24
  class CreateACLPayload(BaseModel):
25
25
  """
26
26
  CreateACLPayload
27
- """
27
+ """ # noqa: E501
28
28
 
29
29
  cidr: StrictStr = Field(description="The given IP/IP Range that is permitted to access.")
30
30
  __properties: ClassVar[List[str]] = ["cidr"]
@@ -9,7 +9,7 @@
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
12
- """ # noqa: E501 docstring might be too long
12
+ """ # noqa: E501
13
13
 
14
14
  from __future__ import annotations
15
15
 
@@ -24,7 +24,7 @@ from typing_extensions import Self
24
24
  class CreateInstancePayload(BaseModel):
25
25
  """
26
26
  CreateInstancePayload
27
- """
27
+ """ # noqa: E501
28
28
 
29
29
  name: StrictStr = Field(description="A user chosen name to distinguish multiple secrets manager instances.")
30
30
  __properties: ClassVar[List[str]] = ["name"]
@@ -9,7 +9,7 @@
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
12
- """ # noqa: E501 docstring might be too long
12
+ """ # noqa: E501
13
13
 
14
14
  from __future__ import annotations
15
15
 
@@ -24,7 +24,7 @@ from typing_extensions import Self
24
24
  class CreateUserPayload(BaseModel):
25
25
  """
26
26
  CreateUserPayload
27
- """
27
+ """ # noqa: E501
28
28
 
29
29
  description: StrictStr = Field(description="A user chosen description to differentiate between multiple users.")
30
30
  write: StrictBool = Field(
@@ -9,7 +9,7 @@
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
12
- """ # noqa: E501 docstring might be too long
12
+ """ # noqa: E501
13
13
 
14
14
  from __future__ import annotations
15
15
 
@@ -24,7 +24,7 @@ from typing_extensions import Self
24
24
  class Instance(BaseModel):
25
25
  """
26
26
  Instance
27
- """
27
+ """ # noqa: E501
28
28
 
29
29
  api_url: StrictStr = Field(description="The API endpoint for connecting to the secrets engine.", alias="apiUrl")
30
30
  creation_finished_date: Optional[StrictStr] = Field(
@@ -9,7 +9,7 @@
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
12
- """ # noqa: E501 docstring might be too long
12
+ """ # noqa: E501
13
13
 
14
14
  from __future__ import annotations
15
15
 
@@ -26,7 +26,7 @@ from stackit.secretsmanager.models.acl import ACL
26
26
  class ListACLsResponse(BaseModel):
27
27
  """
28
28
  ListACLsResponse
29
- """
29
+ """ # noqa: E501
30
30
 
31
31
  acls: List[ACL]
32
32
  __properties: ClassVar[List[str]] = ["acls"]
@@ -9,7 +9,7 @@
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
12
- """ # noqa: E501 docstring might be too long
12
+ """ # noqa: E501
13
13
 
14
14
  from __future__ import annotations
15
15
 
@@ -26,7 +26,7 @@ from stackit.secretsmanager.models.instance import Instance
26
26
  class ListInstancesResponse(BaseModel):
27
27
  """
28
28
  ListInstancesResponse
29
- """
29
+ """ # noqa: E501
30
30
 
31
31
  instances: List[Instance]
32
32
  __properties: ClassVar[List[str]] = ["instances"]
@@ -9,7 +9,7 @@
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
12
- """ # noqa: E501 docstring might be too long
12
+ """ # noqa: E501
13
13
 
14
14
  from __future__ import annotations
15
15
 
@@ -26,7 +26,7 @@ from stackit.secretsmanager.models.user import User
26
26
  class ListUsersResponse(BaseModel):
27
27
  """
28
28
  ListUsersResponse
29
- """
29
+ """ # noqa: E501
30
30
 
31
31
  users: List[User]
32
32
  __properties: ClassVar[List[str]] = ["users"]
@@ -9,7 +9,7 @@
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
12
- """ # noqa: E501 docstring might be too long
12
+ """ # noqa: E501
13
13
 
14
14
  from __future__ import annotations
15
15
 
@@ -24,7 +24,7 @@ from typing_extensions import Self
24
24
  class NotFound(BaseModel):
25
25
  """
26
26
  NotFound
27
- """
27
+ """ # noqa: E501
28
28
 
29
29
  message: StrictStr = Field(description="The error message for not found resources")
30
30
  __properties: ClassVar[List[str]] = ["message"]
@@ -9,7 +9,7 @@
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
12
- """ # noqa: E501 docstring might be too long
12
+ """ # noqa: E501
13
13
 
14
14
  from __future__ import annotations
15
15
 
@@ -24,7 +24,7 @@ from typing_extensions import Self
24
24
  class UpdateACLPayload(BaseModel):
25
25
  """
26
26
  UpdateACLPayload
27
- """
27
+ """ # noqa: E501
28
28
 
29
29
  cidr: StrictStr = Field(description="The given IP/IP Range that is permitted to access.")
30
30
  __properties: ClassVar[List[str]] = ["cidr"]
@@ -9,7 +9,7 @@
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
12
- """ # noqa: E501 docstring might be too long
12
+ """ # noqa: E501
13
13
 
14
14
  from __future__ import annotations
15
15
 
@@ -26,7 +26,7 @@ from stackit.secretsmanager.models.update_acl_payload import UpdateACLPayload
26
26
  class UpdateACLsPayload(BaseModel):
27
27
  """
28
28
  UpdateACLsPayload
29
- """
29
+ """ # noqa: E501
30
30
 
31
31
  cidrs: Optional[List[UpdateACLPayload]] = None
32
32
  __properties: ClassVar[List[str]] = ["cidrs"]
@@ -9,7 +9,7 @@
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
12
- """ # noqa: E501 docstring might be too long
12
+ """ # noqa: E501
13
13
 
14
14
  from __future__ import annotations
15
15
 
@@ -24,7 +24,7 @@ from typing_extensions import Self
24
24
  class UpdateInstancePayload(BaseModel):
25
25
  """
26
26
  UpdateInstancePayload
27
- """
27
+ """ # noqa: E501
28
28
 
29
29
  name: StrictStr = Field(description="A user chosen name to distinguish multiple secrets manager instances.")
30
30
  __properties: ClassVar[List[str]] = ["name"]
@@ -9,7 +9,7 @@
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
12
- """ # noqa: E501 docstring might be too long
12
+ """ # noqa: E501
13
13
 
14
14
  from __future__ import annotations
15
15
 
@@ -24,7 +24,7 @@ from typing_extensions import Self
24
24
  class UpdateUserPayload(BaseModel):
25
25
  """
26
26
  UpdateUserPayload
27
- """
27
+ """ # noqa: E501
28
28
 
29
29
  description: Optional[StrictStr] = Field(
30
30
  default=None, description="A user chosen description to differentiate between multiple users."
@@ -9,7 +9,7 @@
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
12
- """ # noqa: E501 docstring might be too long
12
+ """ # noqa: E501
13
13
 
14
14
  from __future__ import annotations
15
15
 
@@ -24,7 +24,7 @@ from typing_extensions import Self
24
24
  class User(BaseModel):
25
25
  """
26
26
  User
27
- """
27
+ """ # noqa: E501
28
28
 
29
29
  description: StrictStr = Field(description="A user chosen description to differentiate between multiple users.")
30
30
  id: StrictStr = Field(description="A auto generated unique id which identifies the users.")
@@ -9,7 +9,7 @@
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
12
- """ # noqa: E501 docstring might be too long
12
+ """ # noqa: E501
13
13
 
14
14
  import io
15
15
  import json
@@ -124,7 +124,7 @@ class RESTClientObject:
124
124
  data=body,
125
125
  headers=headers,
126
126
  )
127
- elif headers["Content-Type"] == "text/plain" and isinstance(body, bool):
127
+ elif headers["Content-Type"].startswith("text/") and isinstance(body, bool):
128
128
  request_body = "true" if body else "false"
129
129
  r = self.session.request(method, url, data=request_body, headers=headers)
130
130
  else:
@@ -1,51 +0,0 @@
1
- # coding: utf-8
2
-
3
- # flake8: noqa
4
-
5
- """
6
- STACKIT Secrets Manager API
7
-
8
- This API provides endpoints for managing the Secrets-Manager.
9
-
10
- The version of the OpenAPI document: 1.4.1
11
- Generated by OpenAPI Generator (https://openapi-generator.tech)
12
-
13
- Do not edit the class manually.
14
- """ # noqa: E501 docstring might be too long
15
-
16
-
17
- __version__ = "1.0.0"
18
-
19
- # import apis into sdk package
20
- from stackit.secretsmanager.api.default_api import DefaultApi
21
- from stackit.secretsmanager.api_client import ApiClient
22
-
23
- # import ApiClient
24
- from stackit.secretsmanager.api_response import ApiResponse
25
- from stackit.secretsmanager.configuration import HostConfiguration
26
- from stackit.secretsmanager.exceptions import (
27
- ApiAttributeError,
28
- ApiException,
29
- ApiKeyError,
30
- ApiTypeError,
31
- ApiValueError,
32
- OpenApiException,
33
- )
34
-
35
- # import models into sdk package
36
- from stackit.secretsmanager.models.acl import ACL
37
- from stackit.secretsmanager.models.bad_request import BadRequest
38
- from stackit.secretsmanager.models.conflict import Conflict
39
- from stackit.secretsmanager.models.create_acl_payload import CreateACLPayload
40
- from stackit.secretsmanager.models.create_instance_payload import CreateInstancePayload
41
- from stackit.secretsmanager.models.create_user_payload import CreateUserPayload
42
- from stackit.secretsmanager.models.instance import Instance
43
- from stackit.secretsmanager.models.list_acls_response import ListACLsResponse
44
- from stackit.secretsmanager.models.list_instances_response import ListInstancesResponse
45
- from stackit.secretsmanager.models.list_users_response import ListUsersResponse
46
- from stackit.secretsmanager.models.not_found import NotFound
47
- from stackit.secretsmanager.models.update_acl_payload import UpdateACLPayload
48
- from stackit.secretsmanager.models.update_acls_payload import UpdateACLsPayload
49
- from stackit.secretsmanager.models.update_instance_payload import UpdateInstancePayload
50
- from stackit.secretsmanager.models.update_user_payload import UpdateUserPayload
51
- from stackit.secretsmanager.models.user import User