stackit-serviceenablement 1.0.0__tar.gz → 1.0.2__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 (25) hide show
  1. {stackit_serviceenablement-1.0.0 → stackit_serviceenablement-1.0.2}/PKG-INFO +1 -1
  2. {stackit_serviceenablement-1.0.0 → stackit_serviceenablement-1.0.2}/pyproject.toml +1 -1
  3. stackit_serviceenablement-1.0.2/src/stackit/serviceenablement/__init__.py +75 -0
  4. {stackit_serviceenablement-1.0.0 → stackit_serviceenablement-1.0.2}/src/stackit/serviceenablement/api/default_api.py +17 -17
  5. {stackit_serviceenablement-1.0.0 → stackit_serviceenablement-1.0.2}/src/stackit/serviceenablement/api_client.py +19 -6
  6. {stackit_serviceenablement-1.0.0 → stackit_serviceenablement-1.0.2}/src/stackit/serviceenablement/configuration.py +32 -6
  7. {stackit_serviceenablement-1.0.0 → stackit_serviceenablement-1.0.2}/src/stackit/serviceenablement/exceptions.py +20 -1
  8. {stackit_serviceenablement-1.0.0 → stackit_serviceenablement-1.0.2}/src/stackit/serviceenablement/models/__init__.py +1 -1
  9. {stackit_serviceenablement-1.0.0 → stackit_serviceenablement-1.0.2}/src/stackit/serviceenablement/models/action_error.py +2 -2
  10. {stackit_serviceenablement-1.0.0 → stackit_serviceenablement-1.0.2}/src/stackit/serviceenablement/models/check_service.py +3 -3
  11. {stackit_serviceenablement-1.0.0 → stackit_serviceenablement-1.0.2}/src/stackit/serviceenablement/models/cloud_service.py +3 -3
  12. {stackit_serviceenablement-1.0.0 → stackit_serviceenablement-1.0.2}/src/stackit/serviceenablement/models/dependencies.py +2 -2
  13. {stackit_serviceenablement-1.0.0 → stackit_serviceenablement-1.0.2}/src/stackit/serviceenablement/models/error_response.py +2 -2
  14. {stackit_serviceenablement-1.0.0 → stackit_serviceenablement-1.0.2}/src/stackit/serviceenablement/models/list_service_status_regional200_response.py +2 -2
  15. {stackit_serviceenablement-1.0.0 → stackit_serviceenablement-1.0.2}/src/stackit/serviceenablement/models/parameters.py +2 -2
  16. {stackit_serviceenablement-1.0.0 → stackit_serviceenablement-1.0.2}/src/stackit/serviceenablement/models/parameters_general.py +2 -2
  17. {stackit_serviceenablement-1.0.0 → stackit_serviceenablement-1.0.2}/src/stackit/serviceenablement/models/service_status.py +3 -3
  18. {stackit_serviceenablement-1.0.0 → stackit_serviceenablement-1.0.2}/src/stackit/serviceenablement/rest.py +2 -2
  19. stackit_serviceenablement-1.0.0/src/stackit/serviceenablement/__init__.py +0 -46
  20. {stackit_serviceenablement-1.0.0 → stackit_serviceenablement-1.0.2}/LICENSE.md +0 -0
  21. {stackit_serviceenablement-1.0.0 → stackit_serviceenablement-1.0.2}/NOTICE.txt +0 -0
  22. {stackit_serviceenablement-1.0.0 → stackit_serviceenablement-1.0.2}/README.md +0 -0
  23. {stackit_serviceenablement-1.0.0 → stackit_serviceenablement-1.0.2}/src/stackit/serviceenablement/api/__init__.py +0 -0
  24. {stackit_serviceenablement-1.0.0 → stackit_serviceenablement-1.0.2}/src/stackit/serviceenablement/api_response.py +0 -0
  25. {stackit_serviceenablement-1.0.0 → stackit_serviceenablement-1.0.2}/src/stackit/serviceenablement/py.typed +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: stackit-serviceenablement
3
- Version: 1.0.0
3
+ Version: 1.0.2
4
4
  Summary: STACKIT Service Enablement API
5
5
  Author: STACKIT Developer Tools
6
6
  Author-email: developer-tools@stackit.cloud
@@ -3,7 +3,7 @@ name = "stackit-serviceenablement"
3
3
 
4
4
  [tool.poetry]
5
5
  name = "stackit-serviceenablement"
6
- version = "v1.0.0"
6
+ version = "v1.0.2"
7
7
  authors = [
8
8
  "STACKIT Developer Tools <developer-tools@stackit.cloud>",
9
9
  ]
@@ -0,0 +1,75 @@
1
+ # coding: utf-8
2
+
3
+ # flake8: noqa
4
+
5
+ """
6
+ STACKIT Service Enablement API
7
+
8
+ STACKIT Service Enablement API
9
+
10
+ The version of the OpenAPI document: 2.0
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
+ "ActionError",
32
+ "CheckService",
33
+ "CloudService",
34
+ "Dependencies",
35
+ "ErrorResponse",
36
+ "ListServiceStatusRegional200Response",
37
+ "Parameters",
38
+ "ParametersGeneral",
39
+ "ServiceStatus",
40
+ ]
41
+
42
+ # import apis into sdk package
43
+ from stackit.serviceenablement.api.default_api import DefaultApi as DefaultApi
44
+ from stackit.serviceenablement.api_client import ApiClient as ApiClient
45
+
46
+ # import ApiClient
47
+ from stackit.serviceenablement.api_response import ApiResponse as ApiResponse
48
+ from stackit.serviceenablement.configuration import (
49
+ HostConfiguration as HostConfiguration,
50
+ )
51
+ from stackit.serviceenablement.exceptions import ApiAttributeError as ApiAttributeError
52
+ from stackit.serviceenablement.exceptions import ApiException as ApiException
53
+ from stackit.serviceenablement.exceptions import ApiKeyError as ApiKeyError
54
+ from stackit.serviceenablement.exceptions import ApiTypeError as ApiTypeError
55
+ from stackit.serviceenablement.exceptions import ApiValueError as ApiValueError
56
+ from stackit.serviceenablement.exceptions import OpenApiException as OpenApiException
57
+
58
+ # import models into sdk package
59
+ from stackit.serviceenablement.models.action_error import ActionError as ActionError
60
+ from stackit.serviceenablement.models.check_service import CheckService as CheckService
61
+ from stackit.serviceenablement.models.cloud_service import CloudService as CloudService
62
+ from stackit.serviceenablement.models.dependencies import Dependencies as Dependencies
63
+ from stackit.serviceenablement.models.error_response import (
64
+ ErrorResponse as ErrorResponse,
65
+ )
66
+ from stackit.serviceenablement.models.list_service_status_regional200_response import (
67
+ ListServiceStatusRegional200Response as ListServiceStatusRegional200Response,
68
+ )
69
+ from stackit.serviceenablement.models.parameters import Parameters as Parameters
70
+ from stackit.serviceenablement.models.parameters_general import (
71
+ ParametersGeneral as ParametersGeneral,
72
+ )
73
+ from stackit.serviceenablement.models.service_status import (
74
+ ServiceStatus as ServiceStatus,
75
+ )
@@ -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
 
@@ -85,7 +85,7 @@ class DefaultApi:
85
85
  in the spec for a single request.
86
86
  :type _host_index: int, optional
87
87
  :return: Returns the result object.
88
- """ # noqa: E501 docstring might be too long
88
+ """ # noqa: E501
89
89
 
90
90
  _param = self._disable_service_regional_serialize(
91
91
  region=region,
@@ -157,7 +157,7 @@ class DefaultApi:
157
157
  in the spec for a single request.
158
158
  :type _host_index: int, optional
159
159
  :return: Returns the result object.
160
- """ # noqa: E501 docstring might be too long
160
+ """ # noqa: E501
161
161
 
162
162
  _param = self._disable_service_regional_serialize(
163
163
  region=region,
@@ -229,7 +229,7 @@ class DefaultApi:
229
229
  in the spec for a single request.
230
230
  :type _host_index: int, optional
231
231
  :return: Returns the result object.
232
- """ # noqa: E501 docstring might be too long
232
+ """ # noqa: E501
233
233
 
234
234
  _param = self._disable_service_regional_serialize(
235
235
  region=region,
@@ -270,7 +270,7 @@ class DefaultApi:
270
270
  _query_params: List[Tuple[str, str]] = []
271
271
  _header_params: Dict[str, Optional[str]] = _headers or {}
272
272
  _form_params: List[Tuple[str, str]] = []
273
- _files: Dict[str, Union[str, bytes]] = {}
273
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
274
274
  _body_params: Optional[bytes] = None
275
275
 
276
276
  # process the path parameters
@@ -353,7 +353,7 @@ class DefaultApi:
353
353
  in the spec for a single request.
354
354
  :type _host_index: int, optional
355
355
  :return: Returns the result object.
356
- """ # noqa: E501 docstring might be too long
356
+ """ # noqa: E501
357
357
 
358
358
  _param = self._enable_service_regional_serialize(
359
359
  region=region,
@@ -425,7 +425,7 @@ class DefaultApi:
425
425
  in the spec for a single request.
426
426
  :type _host_index: int, optional
427
427
  :return: Returns the result object.
428
- """ # noqa: E501 docstring might be too long
428
+ """ # noqa: E501
429
429
 
430
430
  _param = self._enable_service_regional_serialize(
431
431
  region=region,
@@ -497,7 +497,7 @@ class DefaultApi:
497
497
  in the spec for a single request.
498
498
  :type _host_index: int, optional
499
499
  :return: Returns the result object.
500
- """ # noqa: E501 docstring might be too long
500
+ """ # noqa: E501
501
501
 
502
502
  _param = self._enable_service_regional_serialize(
503
503
  region=region,
@@ -538,7 +538,7 @@ class DefaultApi:
538
538
  _query_params: List[Tuple[str, str]] = []
539
539
  _header_params: Dict[str, Optional[str]] = _headers or {}
540
540
  _form_params: List[Tuple[str, str]] = []
541
- _files: Dict[str, Union[str, bytes]] = {}
541
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
542
542
  _body_params: Optional[bytes] = None
543
543
 
544
544
  # process the path parameters
@@ -621,7 +621,7 @@ class DefaultApi:
621
621
  in the spec for a single request.
622
622
  :type _host_index: int, optional
623
623
  :return: Returns the result object.
624
- """ # noqa: E501 docstring might be too long
624
+ """ # noqa: E501
625
625
 
626
626
  _param = self._get_service_status_regional_serialize(
627
627
  region=region,
@@ -693,7 +693,7 @@ class DefaultApi:
693
693
  in the spec for a single request.
694
694
  :type _host_index: int, optional
695
695
  :return: Returns the result object.
696
- """ # noqa: E501 docstring might be too long
696
+ """ # noqa: E501
697
697
 
698
698
  _param = self._get_service_status_regional_serialize(
699
699
  region=region,
@@ -765,7 +765,7 @@ class DefaultApi:
765
765
  in the spec for a single request.
766
766
  :type _host_index: int, optional
767
767
  :return: Returns the result object.
768
- """ # noqa: E501 docstring might be too long
768
+ """ # noqa: E501
769
769
 
770
770
  _param = self._get_service_status_regional_serialize(
771
771
  region=region,
@@ -806,7 +806,7 @@ class DefaultApi:
806
806
  _query_params: List[Tuple[str, str]] = []
807
807
  _header_params: Dict[str, Optional[str]] = _headers or {}
808
808
  _form_params: List[Tuple[str, str]] = []
809
- _files: Dict[str, Union[str, bytes]] = {}
809
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
810
810
  _body_params: Optional[bytes] = None
811
811
 
812
812
  # process the path parameters
@@ -889,7 +889,7 @@ class DefaultApi:
889
889
  in the spec for a single request.
890
890
  :type _host_index: int, optional
891
891
  :return: Returns the result object.
892
- """ # noqa: E501 docstring might be too long
892
+ """ # noqa: E501
893
893
 
894
894
  _param = self._list_service_status_regional_serialize(
895
895
  region=region,
@@ -960,7 +960,7 @@ class DefaultApi:
960
960
  in the spec for a single request.
961
961
  :type _host_index: int, optional
962
962
  :return: Returns the result object.
963
- """ # noqa: E501 docstring might be too long
963
+ """ # noqa: E501
964
964
 
965
965
  _param = self._list_service_status_regional_serialize(
966
966
  region=region,
@@ -1031,7 +1031,7 @@ class DefaultApi:
1031
1031
  in the spec for a single request.
1032
1032
  :type _host_index: int, optional
1033
1033
  :return: Returns the result object.
1034
- """ # noqa: E501 docstring might be too long
1034
+ """ # noqa: E501
1035
1035
 
1036
1036
  _param = self._list_service_status_regional_serialize(
1037
1037
  region=region,
@@ -1071,7 +1071,7 @@ class DefaultApi:
1071
1071
  _query_params: List[Tuple[str, str]] = []
1072
1072
  _header_params: Dict[str, Optional[str]] = _headers or {}
1073
1073
  _form_params: List[Tuple[str, str]] = []
1074
- _files: Dict[str, Union[str, bytes]] = {}
1074
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
1075
1075
  _body_params: Optional[bytes] = None
1076
1076
 
1077
1077
  # 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/serviceenablement"
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"
@@ -9,11 +9,31 @@
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
+
14
+ import sys
15
+ from typing import Dict, List, Optional, TypedDict
16
+
17
+ from typing_extensions import NotRequired
13
18
 
14
19
  import os
15
20
 
16
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]]
35
+
36
+
17
37
  class HostConfiguration:
18
38
  def __init__(
19
39
  self,
@@ -29,6 +49,7 @@ class HostConfiguration:
29
49
  "as a function argument instead of being set in the client configuration.\n"
30
50
  "Once all services have migrated, the methods to specify the region in the client configuration "
31
51
  "will be removed.",
52
+ file=sys.stderr,
32
53
  )
33
54
  """Constructor
34
55
  """
@@ -49,7 +70,7 @@ class HostConfiguration:
49
70
  """Ignore operation servers
50
71
  """
51
72
 
52
- def get_host_settings(self):
73
+ def get_host_settings(self) -> List[HostSetting]:
53
74
  """Gets an array of host settings
54
75
 
55
76
  :return: An array of host settings
@@ -67,7 +88,12 @@ class HostConfiguration:
67
88
  }
68
89
  ]
69
90
 
70
- def get_host_from_settings(self, index, variables=None, servers=None):
91
+ def get_host_from_settings(
92
+ self,
93
+ index: Optional[int],
94
+ variables: Optional[ServerVariablesT] = None,
95
+ servers: Optional[List[HostSetting]] = None,
96
+ ) -> str:
71
97
  """Gets host URL based on the index and variables
72
98
  :param index: array index of the host settings
73
99
  :param variables: hash of variable and the corresponding value
@@ -107,7 +133,7 @@ class HostConfiguration:
107
133
  and variables.get(variable_name) is not None
108
134
  ):
109
135
  raise ValueError(
110
- "this API does not support setting a region in the the client configuration, "
136
+ "this API does not support setting a region in the client configuration, "
111
137
  "please check if the region can be specified as a function parameter"
112
138
  )
113
139
  used_value = variables.get(variable_name, variable["default_value"])
@@ -126,12 +152,12 @@ class HostConfiguration:
126
152
  return url
127
153
 
128
154
  @property
129
- def host(self):
155
+ def host(self) -> str:
130
156
  """Return generated host."""
131
157
  return self.get_host_from_settings(self.server_index, variables=self.server_variables)
132
158
 
133
159
  @host.setter
134
- def host(self, value):
160
+ def host(self, value: str) -> None:
135
161
  """Fix base path."""
136
162
  self._base_path = value
137
163
  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 ActionError(BaseModel):
25
25
  """
26
26
  the last error for this service.
27
- """
27
+ """ # noqa: E501
28
28
 
29
29
  action: Optional[StrictStr] = Field(default=None, description="the last action which was triggered on this service")
30
30
  code: Optional[StrictStr] = Field(default=None, description="the error code if provided by the service")
@@ -9,13 +9,13 @@
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
 
16
16
  import json
17
17
  import pprint
18
- import re
18
+ import re # noqa: F401
19
19
  from typing import Any, ClassVar, Dict, List, Optional, Set
20
20
 
21
21
  from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
@@ -25,7 +25,7 @@ from typing_extensions import Annotated, Self
25
25
  class CheckService(BaseModel):
26
26
  """
27
27
  CheckService
28
- """
28
+ """ # noqa: E501
29
29
 
30
30
  resource: Optional[StrictStr] = Field(default=None, description="the identifier of the resource e.g. projectID")
31
31
  resource_type: Optional[StrictStr] = Field(default="project", alias="resourceType")
@@ -9,13 +9,13 @@
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
 
16
16
  import json
17
17
  import pprint
18
- import re
18
+ import re # noqa: F401
19
19
  from typing import Any, ClassVar, Dict, List, Optional, Set
20
20
 
21
21
  from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
@@ -27,7 +27,7 @@ from stackit.serviceenablement.models.dependencies import Dependencies
27
27
  class CloudService(BaseModel):
28
28
  """
29
29
  CloudService
30
- """
30
+ """ # noqa: E501
31
31
 
32
32
  dependencies: Optional[Dependencies] = None
33
33
  labels: Optional[Dict[str, StrictStr]] = 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 __future__ import annotations
15
15
 
@@ -24,7 +24,7 @@ from typing_extensions import Annotated, Self
24
24
  class Dependencies(BaseModel):
25
25
  """
26
26
  Dependencies
27
- """
27
+ """ # noqa: E501
28
28
 
29
29
  hard: Optional[List[Annotated[str, Field(min_length=10, strict=True, max_length=255)]]] = Field(
30
30
  default=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 __future__ import annotations
15
15
 
@@ -25,7 +25,7 @@ from typing_extensions import Self
25
25
  class ErrorResponse(BaseModel):
26
26
  """
27
27
  ErrorResponse
28
- """
28
+ """ # noqa: E501
29
29
 
30
30
  error: Optional[StrictStr] = None
31
31
  message: Optional[StrictStr] = 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 __future__ import annotations
15
15
 
@@ -26,7 +26,7 @@ from stackit.serviceenablement.models.service_status import ServiceStatus
26
26
  class ListServiceStatusRegional200Response(BaseModel):
27
27
  """
28
28
  ListServiceStatusRegional200Response
29
- """
29
+ """ # noqa: E501
30
30
 
31
31
  items: Optional[List[ServiceStatus]] = None
32
32
  next_cursor: Optional[StrictStr] = Field(default=None, alias="nextCursor")
@@ -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.serviceenablement.models.parameters_general import ParametersGenera
26
26
  class Parameters(BaseModel):
27
27
  """
28
28
  service parameters
29
- """
29
+ """ # noqa: E501
30
30
 
31
31
  general: Optional[ParametersGeneral] = None
32
32
  additional_properties: Dict[str, Any] = {}
@@ -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 ParametersGeneral(BaseModel):
25
25
  """
26
26
  ParametersGeneral
27
- """
27
+ """ # noqa: E501
28
28
 
29
29
  organization_id: Optional[StrictStr] = Field(default=None, alias="organizationId")
30
30
  project_name: Optional[StrictStr] = Field(default=None, alias="projectName")
@@ -9,13 +9,13 @@
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
 
16
16
  import json
17
17
  import pprint
18
- import re
18
+ import re # noqa: F401
19
19
  from typing import Any, ClassVar, Dict, List, Optional, Set
20
20
 
21
21
  from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
@@ -29,7 +29,7 @@ from stackit.serviceenablement.models.parameters import Parameters
29
29
  class ServiceStatus(BaseModel):
30
30
  """
31
31
  ServiceStatus
32
- """
32
+ """ # noqa: E501
33
33
 
34
34
  dependencies: Optional[Dependencies] = None
35
35
  enablement: Optional[StrictStr] = "REQUEST"
@@ -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,46 +0,0 @@
1
- # coding: utf-8
2
-
3
- # flake8: noqa
4
-
5
- """
6
- STACKIT Service Enablement API
7
-
8
- STACKIT Service Enablement API
9
-
10
- The version of the OpenAPI document: 2.0
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.serviceenablement.api.default_api import DefaultApi
21
- from stackit.serviceenablement.api_client import ApiClient
22
-
23
- # import ApiClient
24
- from stackit.serviceenablement.api_response import ApiResponse
25
- from stackit.serviceenablement.configuration import HostConfiguration
26
- from stackit.serviceenablement.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.serviceenablement.models.action_error import ActionError
37
- from stackit.serviceenablement.models.check_service import CheckService
38
- from stackit.serviceenablement.models.cloud_service import CloudService
39
- from stackit.serviceenablement.models.dependencies import Dependencies
40
- from stackit.serviceenablement.models.error_response import ErrorResponse
41
- from stackit.serviceenablement.models.list_service_status_regional200_response import (
42
- ListServiceStatusRegional200Response,
43
- )
44
- from stackit.serviceenablement.models.parameters import Parameters
45
- from stackit.serviceenablement.models.parameters_general import ParametersGeneral
46
- from stackit.serviceenablement.models.service_status import ServiceStatus