stackit-objectstorage 1.0.2__tar.gz → 1.0.4__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 (38) hide show
  1. {stackit_objectstorage-1.0.2 → stackit_objectstorage-1.0.4}/PKG-INFO +1 -1
  2. {stackit_objectstorage-1.0.2 → stackit_objectstorage-1.0.4}/pyproject.toml +1 -1
  3. stackit_objectstorage-1.0.4/src/stackit/objectstorage/__init__.py +121 -0
  4. {stackit_objectstorage-1.0.2 → stackit_objectstorage-1.0.4}/src/stackit/objectstorage/api/default_api.py +53 -53
  5. {stackit_objectstorage-1.0.2 → stackit_objectstorage-1.0.4}/src/stackit/objectstorage/api_client.py +19 -6
  6. {stackit_objectstorage-1.0.2 → stackit_objectstorage-1.0.4}/src/stackit/objectstorage/configuration.py +32 -6
  7. {stackit_objectstorage-1.0.2 → stackit_objectstorage-1.0.4}/src/stackit/objectstorage/exceptions.py +20 -1
  8. {stackit_objectstorage-1.0.2 → stackit_objectstorage-1.0.4}/src/stackit/objectstorage/models/__init__.py +1 -1
  9. {stackit_objectstorage-1.0.2 → stackit_objectstorage-1.0.4}/src/stackit/objectstorage/models/access_key.py +2 -2
  10. {stackit_objectstorage-1.0.2 → stackit_objectstorage-1.0.4}/src/stackit/objectstorage/models/bucket.py +2 -2
  11. {stackit_objectstorage-1.0.2 → stackit_objectstorage-1.0.4}/src/stackit/objectstorage/models/create_access_key_payload.py +2 -2
  12. {stackit_objectstorage-1.0.2 → stackit_objectstorage-1.0.4}/src/stackit/objectstorage/models/create_access_key_response.py +2 -2
  13. {stackit_objectstorage-1.0.2 → stackit_objectstorage-1.0.4}/src/stackit/objectstorage/models/create_bucket_response.py +2 -2
  14. {stackit_objectstorage-1.0.2 → stackit_objectstorage-1.0.4}/src/stackit/objectstorage/models/create_credentials_group_payload.py +2 -2
  15. {stackit_objectstorage-1.0.2 → stackit_objectstorage-1.0.4}/src/stackit/objectstorage/models/create_credentials_group_response.py +2 -2
  16. {stackit_objectstorage-1.0.2 → stackit_objectstorage-1.0.4}/src/stackit/objectstorage/models/credentials_group.py +2 -2
  17. {stackit_objectstorage-1.0.2 → stackit_objectstorage-1.0.4}/src/stackit/objectstorage/models/delete_access_key_response.py +2 -2
  18. {stackit_objectstorage-1.0.2 → stackit_objectstorage-1.0.4}/src/stackit/objectstorage/models/delete_bucket_response.py +2 -2
  19. {stackit_objectstorage-1.0.2 → stackit_objectstorage-1.0.4}/src/stackit/objectstorage/models/delete_credentials_group_response.py +2 -2
  20. {stackit_objectstorage-1.0.2 → stackit_objectstorage-1.0.4}/src/stackit/objectstorage/models/detailed_error.py +2 -2
  21. {stackit_objectstorage-1.0.2 → stackit_objectstorage-1.0.4}/src/stackit/objectstorage/models/error_message.py +2 -2
  22. {stackit_objectstorage-1.0.2 → stackit_objectstorage-1.0.4}/src/stackit/objectstorage/models/get_bucket_response.py +2 -2
  23. {stackit_objectstorage-1.0.2 → stackit_objectstorage-1.0.4}/src/stackit/objectstorage/models/http_validation_error.py +2 -2
  24. {stackit_objectstorage-1.0.2 → stackit_objectstorage-1.0.4}/src/stackit/objectstorage/models/list_access_keys_response.py +2 -2
  25. {stackit_objectstorage-1.0.2 → stackit_objectstorage-1.0.4}/src/stackit/objectstorage/models/list_buckets_response.py +2 -2
  26. {stackit_objectstorage-1.0.2 → stackit_objectstorage-1.0.4}/src/stackit/objectstorage/models/list_credentials_groups_response.py +2 -2
  27. {stackit_objectstorage-1.0.2 → stackit_objectstorage-1.0.4}/src/stackit/objectstorage/models/location_inner.py +1 -1
  28. {stackit_objectstorage-1.0.2 → stackit_objectstorage-1.0.4}/src/stackit/objectstorage/models/project_scope.py +1 -1
  29. {stackit_objectstorage-1.0.2 → stackit_objectstorage-1.0.4}/src/stackit/objectstorage/models/project_status.py +2 -2
  30. {stackit_objectstorage-1.0.2 → stackit_objectstorage-1.0.4}/src/stackit/objectstorage/models/validation_error.py +2 -2
  31. {stackit_objectstorage-1.0.2 → stackit_objectstorage-1.0.4}/src/stackit/objectstorage/rest.py +2 -2
  32. stackit_objectstorage-1.0.2/src/stackit/objectstorage/__init__.py +0 -73
  33. {stackit_objectstorage-1.0.2 → stackit_objectstorage-1.0.4}/LICENSE.md +0 -0
  34. {stackit_objectstorage-1.0.2 → stackit_objectstorage-1.0.4}/NOTICE.txt +0 -0
  35. {stackit_objectstorage-1.0.2 → stackit_objectstorage-1.0.4}/README.md +0 -0
  36. {stackit_objectstorage-1.0.2 → stackit_objectstorage-1.0.4}/src/stackit/objectstorage/api/__init__.py +0 -0
  37. {stackit_objectstorage-1.0.2 → stackit_objectstorage-1.0.4}/src/stackit/objectstorage/api_response.py +0 -0
  38. {stackit_objectstorage-1.0.2 → stackit_objectstorage-1.0.4}/src/stackit/objectstorage/py.typed +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: stackit-objectstorage
3
- Version: 1.0.2
3
+ Version: 1.0.4
4
4
  Summary: STACKIT Object Storage API
5
5
  Author: STACKIT Developer Tools
6
6
  Author-email: developer-tools@stackit.cloud
@@ -3,7 +3,7 @@ name = "stackit-objectstorage"
3
3
 
4
4
  [tool.poetry]
5
5
  name = "stackit-objectstorage"
6
- version = "v1.0.2"
6
+ version = "v1.0.4"
7
7
  authors = [
8
8
  "STACKIT Developer Tools <developer-tools@stackit.cloud>",
9
9
  ]
@@ -0,0 +1,121 @@
1
+ # coding: utf-8
2
+
3
+ # flake8: noqa
4
+
5
+ """
6
+ STACKIT Object Storage API
7
+
8
+ STACKIT API to manage the Object Storage
9
+
10
+ The version of the OpenAPI document: 2.0.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
+ "AccessKey",
32
+ "Bucket",
33
+ "CreateAccessKeyPayload",
34
+ "CreateAccessKeyResponse",
35
+ "CreateBucketResponse",
36
+ "CreateCredentialsGroupPayload",
37
+ "CreateCredentialsGroupResponse",
38
+ "CredentialsGroup",
39
+ "DeleteAccessKeyResponse",
40
+ "DeleteBucketResponse",
41
+ "DeleteCredentialsGroupResponse",
42
+ "DetailedError",
43
+ "ErrorMessage",
44
+ "GetBucketResponse",
45
+ "HTTPValidationError",
46
+ "ListAccessKeysResponse",
47
+ "ListBucketsResponse",
48
+ "ListCredentialsGroupsResponse",
49
+ "LocationInner",
50
+ "ProjectScope",
51
+ "ProjectStatus",
52
+ "ValidationError",
53
+ ]
54
+
55
+ # import apis into sdk package
56
+ from stackit.objectstorage.api.default_api import DefaultApi as DefaultApi
57
+ from stackit.objectstorage.api_client import ApiClient as ApiClient
58
+
59
+ # import ApiClient
60
+ from stackit.objectstorage.api_response import ApiResponse as ApiResponse
61
+ from stackit.objectstorage.configuration import HostConfiguration as HostConfiguration
62
+ from stackit.objectstorage.exceptions import ApiAttributeError as ApiAttributeError
63
+ from stackit.objectstorage.exceptions import ApiException as ApiException
64
+ from stackit.objectstorage.exceptions import ApiKeyError as ApiKeyError
65
+ from stackit.objectstorage.exceptions import ApiTypeError as ApiTypeError
66
+ from stackit.objectstorage.exceptions import ApiValueError as ApiValueError
67
+ from stackit.objectstorage.exceptions import OpenApiException as OpenApiException
68
+
69
+ # import models into sdk package
70
+ from stackit.objectstorage.models.access_key import AccessKey as AccessKey
71
+ from stackit.objectstorage.models.bucket import Bucket as Bucket
72
+ from stackit.objectstorage.models.create_access_key_payload import (
73
+ CreateAccessKeyPayload as CreateAccessKeyPayload,
74
+ )
75
+ from stackit.objectstorage.models.create_access_key_response import (
76
+ CreateAccessKeyResponse as CreateAccessKeyResponse,
77
+ )
78
+ from stackit.objectstorage.models.create_bucket_response import (
79
+ CreateBucketResponse as CreateBucketResponse,
80
+ )
81
+ from stackit.objectstorage.models.create_credentials_group_payload import (
82
+ CreateCredentialsGroupPayload as CreateCredentialsGroupPayload,
83
+ )
84
+ from stackit.objectstorage.models.create_credentials_group_response import (
85
+ CreateCredentialsGroupResponse as CreateCredentialsGroupResponse,
86
+ )
87
+ from stackit.objectstorage.models.credentials_group import (
88
+ CredentialsGroup as CredentialsGroup,
89
+ )
90
+ from stackit.objectstorage.models.delete_access_key_response import (
91
+ DeleteAccessKeyResponse as DeleteAccessKeyResponse,
92
+ )
93
+ from stackit.objectstorage.models.delete_bucket_response import (
94
+ DeleteBucketResponse as DeleteBucketResponse,
95
+ )
96
+ from stackit.objectstorage.models.delete_credentials_group_response import (
97
+ DeleteCredentialsGroupResponse as DeleteCredentialsGroupResponse,
98
+ )
99
+ from stackit.objectstorage.models.detailed_error import DetailedError as DetailedError
100
+ from stackit.objectstorage.models.error_message import ErrorMessage as ErrorMessage
101
+ from stackit.objectstorage.models.get_bucket_response import (
102
+ GetBucketResponse as GetBucketResponse,
103
+ )
104
+ from stackit.objectstorage.models.http_validation_error import (
105
+ HTTPValidationError as HTTPValidationError,
106
+ )
107
+ from stackit.objectstorage.models.list_access_keys_response import (
108
+ ListAccessKeysResponse as ListAccessKeysResponse,
109
+ )
110
+ from stackit.objectstorage.models.list_buckets_response import (
111
+ ListBucketsResponse as ListBucketsResponse,
112
+ )
113
+ from stackit.objectstorage.models.list_credentials_groups_response import (
114
+ ListCredentialsGroupsResponse as ListCredentialsGroupsResponse,
115
+ )
116
+ from stackit.objectstorage.models.location_inner import LocationInner as LocationInner
117
+ from stackit.objectstorage.models.project_scope import ProjectScope as ProjectScope
118
+ from stackit.objectstorage.models.project_status import ProjectStatus as ProjectStatus
119
+ from stackit.objectstorage.models.validation_error import (
120
+ ValidationError as ValidationError,
121
+ )
@@ -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
 
@@ -113,7 +113,7 @@ class DefaultApi:
113
113
  in the spec for a single request.
114
114
  :type _host_index: int, optional
115
115
  :return: Returns the result object.
116
- """ # noqa: E501 docstring might be too long
116
+ """ # noqa: E501
117
117
 
118
118
  _param = self._create_access_key_serialize(
119
119
  project_id=project_id,
@@ -190,7 +190,7 @@ class DefaultApi:
190
190
  in the spec for a single request.
191
191
  :type _host_index: int, optional
192
192
  :return: Returns the result object.
193
- """ # noqa: E501 docstring might be too long
193
+ """ # noqa: E501
194
194
 
195
195
  _param = self._create_access_key_serialize(
196
196
  project_id=project_id,
@@ -267,7 +267,7 @@ class DefaultApi:
267
267
  in the spec for a single request.
268
268
  :type _host_index: int, optional
269
269
  :return: Returns the result object.
270
- """ # noqa: E501 docstring might be too long
270
+ """ # noqa: E501
271
271
 
272
272
  _param = self._create_access_key_serialize(
273
273
  project_id=project_id,
@@ -311,7 +311,7 @@ class DefaultApi:
311
311
  _query_params: List[Tuple[str, str]] = []
312
312
  _header_params: Dict[str, Optional[str]] = _headers or {}
313
313
  _form_params: List[Tuple[str, str]] = []
314
- _files: Dict[str, Union[str, bytes]] = {}
314
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
315
315
  _body_params: Optional[bytes] = None
316
316
 
317
317
  # process the path parameters
@@ -408,7 +408,7 @@ class DefaultApi:
408
408
  in the spec for a single request.
409
409
  :type _host_index: int, optional
410
410
  :return: Returns the result object.
411
- """ # noqa: E501 docstring might be too long
411
+ """ # noqa: E501
412
412
 
413
413
  _param = self._create_bucket_serialize(
414
414
  project_id=project_id,
@@ -483,7 +483,7 @@ class DefaultApi:
483
483
  in the spec for a single request.
484
484
  :type _host_index: int, optional
485
485
  :return: Returns the result object.
486
- """ # noqa: E501 docstring might be too long
486
+ """ # noqa: E501
487
487
 
488
488
  _param = self._create_bucket_serialize(
489
489
  project_id=project_id,
@@ -558,7 +558,7 @@ class DefaultApi:
558
558
  in the spec for a single request.
559
559
  :type _host_index: int, optional
560
560
  :return: Returns the result object.
561
- """ # noqa: E501 docstring might be too long
561
+ """ # noqa: E501
562
562
 
563
563
  _param = self._create_bucket_serialize(
564
564
  project_id=project_id,
@@ -600,7 +600,7 @@ class DefaultApi:
600
600
  _query_params: List[Tuple[str, str]] = []
601
601
  _header_params: Dict[str, Optional[str]] = _headers or {}
602
602
  _form_params: List[Tuple[str, str]] = []
603
- _files: Dict[str, Union[str, bytes]] = {}
603
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
604
604
  _body_params: Optional[bytes] = None
605
605
 
606
606
  # process the path parameters
@@ -682,7 +682,7 @@ class DefaultApi:
682
682
  in the spec for a single request.
683
683
  :type _host_index: int, optional
684
684
  :return: Returns the result object.
685
- """ # noqa: E501 docstring might be too long
685
+ """ # noqa: E501
686
686
 
687
687
  _param = self._create_credentials_group_serialize(
688
688
  project_id=project_id,
@@ -755,7 +755,7 @@ class DefaultApi:
755
755
  in the spec for a single request.
756
756
  :type _host_index: int, optional
757
757
  :return: Returns the result object.
758
- """ # noqa: E501 docstring might be too long
758
+ """ # noqa: E501
759
759
 
760
760
  _param = self._create_credentials_group_serialize(
761
761
  project_id=project_id,
@@ -828,7 +828,7 @@ class DefaultApi:
828
828
  in the spec for a single request.
829
829
  :type _host_index: int, optional
830
830
  :return: Returns the result object.
831
- """ # noqa: E501 docstring might be too long
831
+ """ # noqa: E501
832
832
 
833
833
  _param = self._create_credentials_group_serialize(
834
834
  project_id=project_id,
@@ -871,7 +871,7 @@ class DefaultApi:
871
871
  _query_params: List[Tuple[str, str]] = []
872
872
  _header_params: Dict[str, Optional[str]] = _headers or {}
873
873
  _form_params: List[Tuple[str, str]] = []
874
- _files: Dict[str, Union[str, bytes]] = {}
874
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
875
875
  _body_params: Optional[bytes] = None
876
876
 
877
877
  # process the path parameters
@@ -965,7 +965,7 @@ class DefaultApi:
965
965
  in the spec for a single request.
966
966
  :type _host_index: int, optional
967
967
  :return: Returns the result object.
968
- """ # noqa: E501 docstring might be too long
968
+ """ # noqa: E501
969
969
 
970
970
  _param = self._delete_access_key_serialize(
971
971
  project_id=project_id,
@@ -1043,7 +1043,7 @@ class DefaultApi:
1043
1043
  in the spec for a single request.
1044
1044
  :type _host_index: int, optional
1045
1045
  :return: Returns the result object.
1046
- """ # noqa: E501 docstring might be too long
1046
+ """ # noqa: E501
1047
1047
 
1048
1048
  _param = self._delete_access_key_serialize(
1049
1049
  project_id=project_id,
@@ -1121,7 +1121,7 @@ class DefaultApi:
1121
1121
  in the spec for a single request.
1122
1122
  :type _host_index: int, optional
1123
1123
  :return: Returns the result object.
1124
- """ # noqa: E501 docstring might be too long
1124
+ """ # noqa: E501
1125
1125
 
1126
1126
  _param = self._delete_access_key_serialize(
1127
1127
  project_id=project_id,
@@ -1166,7 +1166,7 @@ class DefaultApi:
1166
1166
  _query_params: List[Tuple[str, str]] = []
1167
1167
  _header_params: Dict[str, Optional[str]] = _headers or {}
1168
1168
  _form_params: List[Tuple[str, str]] = []
1169
- _files: Dict[str, Union[str, bytes]] = {}
1169
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
1170
1170
  _body_params: Optional[bytes] = None
1171
1171
 
1172
1172
  # process the path parameters
@@ -1255,7 +1255,7 @@ class DefaultApi:
1255
1255
  in the spec for a single request.
1256
1256
  :type _host_index: int, optional
1257
1257
  :return: Returns the result object.
1258
- """ # noqa: E501 docstring might be too long
1258
+ """ # noqa: E501
1259
1259
 
1260
1260
  _param = self._delete_bucket_serialize(
1261
1261
  project_id=project_id,
@@ -1329,7 +1329,7 @@ class DefaultApi:
1329
1329
  in the spec for a single request.
1330
1330
  :type _host_index: int, optional
1331
1331
  :return: Returns the result object.
1332
- """ # noqa: E501 docstring might be too long
1332
+ """ # noqa: E501
1333
1333
 
1334
1334
  _param = self._delete_bucket_serialize(
1335
1335
  project_id=project_id,
@@ -1403,7 +1403,7 @@ class DefaultApi:
1403
1403
  in the spec for a single request.
1404
1404
  :type _host_index: int, optional
1405
1405
  :return: Returns the result object.
1406
- """ # noqa: E501 docstring might be too long
1406
+ """ # noqa: E501
1407
1407
 
1408
1408
  _param = self._delete_bucket_serialize(
1409
1409
  project_id=project_id,
@@ -1444,7 +1444,7 @@ class DefaultApi:
1444
1444
  _query_params: List[Tuple[str, str]] = []
1445
1445
  _header_params: Dict[str, Optional[str]] = _headers or {}
1446
1446
  _form_params: List[Tuple[str, str]] = []
1447
- _files: Dict[str, Union[str, bytes]] = {}
1447
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
1448
1448
  _body_params: Optional[bytes] = None
1449
1449
 
1450
1450
  # process the path parameters
@@ -1527,7 +1527,7 @@ class DefaultApi:
1527
1527
  in the spec for a single request.
1528
1528
  :type _host_index: int, optional
1529
1529
  :return: Returns the result object.
1530
- """ # noqa: E501 docstring might be too long
1530
+ """ # noqa: E501
1531
1531
 
1532
1532
  _param = self._delete_credentials_group_serialize(
1533
1533
  project_id=project_id,
@@ -1599,7 +1599,7 @@ class DefaultApi:
1599
1599
  in the spec for a single request.
1600
1600
  :type _host_index: int, optional
1601
1601
  :return: Returns the result object.
1602
- """ # noqa: E501 docstring might be too long
1602
+ """ # noqa: E501
1603
1603
 
1604
1604
  _param = self._delete_credentials_group_serialize(
1605
1605
  project_id=project_id,
@@ -1671,7 +1671,7 @@ class DefaultApi:
1671
1671
  in the spec for a single request.
1672
1672
  :type _host_index: int, optional
1673
1673
  :return: Returns the result object.
1674
- """ # noqa: E501 docstring might be too long
1674
+ """ # noqa: E501
1675
1675
 
1676
1676
  _param = self._delete_credentials_group_serialize(
1677
1677
  project_id=project_id,
@@ -1712,7 +1712,7 @@ class DefaultApi:
1712
1712
  _query_params: List[Tuple[str, str]] = []
1713
1713
  _header_params: Dict[str, Optional[str]] = _headers or {}
1714
1714
  _form_params: List[Tuple[str, str]] = []
1715
- _files: Dict[str, Union[str, bytes]] = {}
1715
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
1716
1716
  _body_params: Optional[bytes] = None
1717
1717
 
1718
1718
  # process the path parameters
@@ -1792,7 +1792,7 @@ class DefaultApi:
1792
1792
  in the spec for a single request.
1793
1793
  :type _host_index: int, optional
1794
1794
  :return: Returns the result object.
1795
- """ # noqa: E501 docstring might be too long
1795
+ """ # noqa: E501
1796
1796
 
1797
1797
  _param = self._disable_service_serialize(
1798
1798
  project_id=project_id,
@@ -1862,7 +1862,7 @@ class DefaultApi:
1862
1862
  in the spec for a single request.
1863
1863
  :type _host_index: int, optional
1864
1864
  :return: Returns the result object.
1865
- """ # noqa: E501 docstring might be too long
1865
+ """ # noqa: E501
1866
1866
 
1867
1867
  _param = self._disable_service_serialize(
1868
1868
  project_id=project_id,
@@ -1932,7 +1932,7 @@ class DefaultApi:
1932
1932
  in the spec for a single request.
1933
1933
  :type _host_index: int, optional
1934
1934
  :return: Returns the result object.
1935
- """ # noqa: E501 docstring might be too long
1935
+ """ # noqa: E501
1936
1936
 
1937
1937
  _param = self._disable_service_serialize(
1938
1938
  project_id=project_id,
@@ -1973,7 +1973,7 @@ class DefaultApi:
1973
1973
  _query_params: List[Tuple[str, str]] = []
1974
1974
  _header_params: Dict[str, Optional[str]] = _headers or {}
1975
1975
  _form_params: List[Tuple[str, str]] = []
1976
- _files: Dict[str, Union[str, bytes]] = {}
1976
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
1977
1977
  _body_params: Optional[bytes] = None
1978
1978
 
1979
1979
  # process the path parameters
@@ -2051,7 +2051,7 @@ class DefaultApi:
2051
2051
  in the spec for a single request.
2052
2052
  :type _host_index: int, optional
2053
2053
  :return: Returns the result object.
2054
- """ # noqa: E501 docstring might be too long
2054
+ """ # noqa: E501
2055
2055
 
2056
2056
  _param = self._enable_service_serialize(
2057
2057
  project_id=project_id,
@@ -2121,7 +2121,7 @@ class DefaultApi:
2121
2121
  in the spec for a single request.
2122
2122
  :type _host_index: int, optional
2123
2123
  :return: Returns the result object.
2124
- """ # noqa: E501 docstring might be too long
2124
+ """ # noqa: E501
2125
2125
 
2126
2126
  _param = self._enable_service_serialize(
2127
2127
  project_id=project_id,
@@ -2191,7 +2191,7 @@ class DefaultApi:
2191
2191
  in the spec for a single request.
2192
2192
  :type _host_index: int, optional
2193
2193
  :return: Returns the result object.
2194
- """ # noqa: E501 docstring might be too long
2194
+ """ # noqa: E501
2195
2195
 
2196
2196
  _param = self._enable_service_serialize(
2197
2197
  project_id=project_id,
@@ -2232,7 +2232,7 @@ class DefaultApi:
2232
2232
  _query_params: List[Tuple[str, str]] = []
2233
2233
  _header_params: Dict[str, Optional[str]] = _headers or {}
2234
2234
  _form_params: List[Tuple[str, str]] = []
2235
- _files: Dict[str, Union[str, bytes]] = {}
2235
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
2236
2236
  _body_params: Optional[bytes] = None
2237
2237
 
2238
2238
  # process the path parameters
@@ -2315,7 +2315,7 @@ class DefaultApi:
2315
2315
  in the spec for a single request.
2316
2316
  :type _host_index: int, optional
2317
2317
  :return: Returns the result object.
2318
- """ # noqa: E501 docstring might be too long
2318
+ """ # noqa: E501
2319
2319
 
2320
2320
  _param = self._get_bucket_serialize(
2321
2321
  project_id=project_id,
@@ -2390,7 +2390,7 @@ class DefaultApi:
2390
2390
  in the spec for a single request.
2391
2391
  :type _host_index: int, optional
2392
2392
  :return: Returns the result object.
2393
- """ # noqa: E501 docstring might be too long
2393
+ """ # noqa: E501
2394
2394
 
2395
2395
  _param = self._get_bucket_serialize(
2396
2396
  project_id=project_id,
@@ -2465,7 +2465,7 @@ class DefaultApi:
2465
2465
  in the spec for a single request.
2466
2466
  :type _host_index: int, optional
2467
2467
  :return: Returns the result object.
2468
- """ # noqa: E501 docstring might be too long
2468
+ """ # noqa: E501
2469
2469
 
2470
2470
  _param = self._get_bucket_serialize(
2471
2471
  project_id=project_id,
@@ -2507,7 +2507,7 @@ class DefaultApi:
2507
2507
  _query_params: List[Tuple[str, str]] = []
2508
2508
  _header_params: Dict[str, Optional[str]] = _headers or {}
2509
2509
  _form_params: List[Tuple[str, str]] = []
2510
- _files: Dict[str, Union[str, bytes]] = {}
2510
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
2511
2511
  _body_params: Optional[bytes] = None
2512
2512
 
2513
2513
  # process the path parameters
@@ -2587,7 +2587,7 @@ class DefaultApi:
2587
2587
  in the spec for a single request.
2588
2588
  :type _host_index: int, optional
2589
2589
  :return: Returns the result object.
2590
- """ # noqa: E501 docstring might be too long
2590
+ """ # noqa: E501
2591
2591
 
2592
2592
  _param = self._get_service_status_serialize(
2593
2593
  project_id=project_id,
@@ -2656,7 +2656,7 @@ class DefaultApi:
2656
2656
  in the spec for a single request.
2657
2657
  :type _host_index: int, optional
2658
2658
  :return: Returns the result object.
2659
- """ # noqa: E501 docstring might be too long
2659
+ """ # noqa: E501
2660
2660
 
2661
2661
  _param = self._get_service_status_serialize(
2662
2662
  project_id=project_id,
@@ -2725,7 +2725,7 @@ class DefaultApi:
2725
2725
  in the spec for a single request.
2726
2726
  :type _host_index: int, optional
2727
2727
  :return: Returns the result object.
2728
- """ # noqa: E501 docstring might be too long
2728
+ """ # noqa: E501
2729
2729
 
2730
2730
  _param = self._get_service_status_serialize(
2731
2731
  project_id=project_id,
@@ -2765,7 +2765,7 @@ class DefaultApi:
2765
2765
  _query_params: List[Tuple[str, str]] = []
2766
2766
  _header_params: Dict[str, Optional[str]] = _headers or {}
2767
2767
  _form_params: List[Tuple[str, str]] = []
2768
- _files: Dict[str, Union[str, bytes]] = {}
2768
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
2769
2769
  _body_params: Optional[bytes] = None
2770
2770
 
2771
2771
  # process the path parameters
@@ -2846,7 +2846,7 @@ class DefaultApi:
2846
2846
  in the spec for a single request.
2847
2847
  :type _host_index: int, optional
2848
2848
  :return: Returns the result object.
2849
- """ # noqa: E501 docstring might be too long
2849
+ """ # noqa: E501
2850
2850
 
2851
2851
  _param = self._list_access_keys_serialize(
2852
2852
  project_id=project_id,
@@ -2919,7 +2919,7 @@ class DefaultApi:
2919
2919
  in the spec for a single request.
2920
2920
  :type _host_index: int, optional
2921
2921
  :return: Returns the result object.
2922
- """ # noqa: E501 docstring might be too long
2922
+ """ # noqa: E501
2923
2923
 
2924
2924
  _param = self._list_access_keys_serialize(
2925
2925
  project_id=project_id,
@@ -2992,7 +2992,7 @@ class DefaultApi:
2992
2992
  in the spec for a single request.
2993
2993
  :type _host_index: int, optional
2994
2994
  :return: Returns the result object.
2995
- """ # noqa: E501 docstring might be too long
2995
+ """ # noqa: E501
2996
2996
 
2997
2997
  _param = self._list_access_keys_serialize(
2998
2998
  project_id=project_id,
@@ -3034,7 +3034,7 @@ class DefaultApi:
3034
3034
  _query_params: List[Tuple[str, str]] = []
3035
3035
  _header_params: Dict[str, Optional[str]] = _headers or {}
3036
3036
  _form_params: List[Tuple[str, str]] = []
3037
- _files: Dict[str, Union[str, bytes]] = {}
3037
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
3038
3038
  _body_params: Optional[bytes] = None
3039
3039
 
3040
3040
  # process the path parameters
@@ -3116,7 +3116,7 @@ class DefaultApi:
3116
3116
  in the spec for a single request.
3117
3117
  :type _host_index: int, optional
3118
3118
  :return: Returns the result object.
3119
- """ # noqa: E501 docstring might be too long
3119
+ """ # noqa: E501
3120
3120
 
3121
3121
  _param = self._list_buckets_serialize(
3122
3122
  project_id=project_id,
@@ -3185,7 +3185,7 @@ class DefaultApi:
3185
3185
  in the spec for a single request.
3186
3186
  :type _host_index: int, optional
3187
3187
  :return: Returns the result object.
3188
- """ # noqa: E501 docstring might be too long
3188
+ """ # noqa: E501
3189
3189
 
3190
3190
  _param = self._list_buckets_serialize(
3191
3191
  project_id=project_id,
@@ -3254,7 +3254,7 @@ class DefaultApi:
3254
3254
  in the spec for a single request.
3255
3255
  :type _host_index: int, optional
3256
3256
  :return: Returns the result object.
3257
- """ # noqa: E501 docstring might be too long
3257
+ """ # noqa: E501
3258
3258
 
3259
3259
  _param = self._list_buckets_serialize(
3260
3260
  project_id=project_id,
@@ -3294,7 +3294,7 @@ class DefaultApi:
3294
3294
  _query_params: List[Tuple[str, str]] = []
3295
3295
  _header_params: Dict[str, Optional[str]] = _headers or {}
3296
3296
  _form_params: List[Tuple[str, str]] = []
3297
- _files: Dict[str, Union[str, bytes]] = {}
3297
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
3298
3298
  _body_params: Optional[bytes] = None
3299
3299
 
3300
3300
  # process the path parameters
@@ -3372,7 +3372,7 @@ class DefaultApi:
3372
3372
  in the spec for a single request.
3373
3373
  :type _host_index: int, optional
3374
3374
  :return: Returns the result object.
3375
- """ # noqa: E501 docstring might be too long
3375
+ """ # noqa: E501
3376
3376
 
3377
3377
  _param = self._list_credentials_groups_serialize(
3378
3378
  project_id=project_id,
@@ -3440,7 +3440,7 @@ class DefaultApi:
3440
3440
  in the spec for a single request.
3441
3441
  :type _host_index: int, optional
3442
3442
  :return: Returns the result object.
3443
- """ # noqa: E501 docstring might be too long
3443
+ """ # noqa: E501
3444
3444
 
3445
3445
  _param = self._list_credentials_groups_serialize(
3446
3446
  project_id=project_id,
@@ -3508,7 +3508,7 @@ class DefaultApi:
3508
3508
  in the spec for a single request.
3509
3509
  :type _host_index: int, optional
3510
3510
  :return: Returns the result object.
3511
- """ # noqa: E501 docstring might be too long
3511
+ """ # noqa: E501
3512
3512
 
3513
3513
  _param = self._list_credentials_groups_serialize(
3514
3514
  project_id=project_id,
@@ -3547,7 +3547,7 @@ class DefaultApi:
3547
3547
  _query_params: List[Tuple[str, str]] = []
3548
3548
  _header_params: Dict[str, Optional[str]] = _headers or {}
3549
3549
  _form_params: List[Tuple[str, str]] = []
3550
- _files: Dict[str, Union[str, bytes]] = {}
3550
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
3551
3551
  _body_params: Optional[bytes] = None
3552
3552
 
3553
3553
  # 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
@@ -81,7 +81,7 @@ class ApiClient:
81
81
  self.default_headers[header_name] = header_value
82
82
  self.cookie = cookie
83
83
  # Set default User-Agent.
84
- self.user_agent = "OpenAPI-Generator/1.0.0/python"
84
+ self.user_agent = "stackit-sdk-python/objectstorage"
85
85
 
86
86
  def __enter__(self):
87
87
  return self
@@ -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"