Skip to content

Commit 149814c

Browse files
Generate git
1 parent 06bdc2a commit 149814c

15 files changed

+206
-143
lines changed

services/git/src/stackit/git/__init__.py

Lines changed: 47 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -12,35 +12,61 @@
1212
Generated by OpenAPI Generator (https://openapi-generator.tech)
1313
1414
Do not edit the class manually.
15-
""" # noqa: E501 docstring might be too long
15+
""" # noqa: E501
1616

1717

1818
__version__ = "1.0.0"
1919

20+
# Define package exports
21+
__all__ = [
22+
"DefaultApi",
23+
"ApiResponse",
24+
"ApiClient",
25+
"HostConfiguration",
26+
"OpenApiException",
27+
"ApiTypeError",
28+
"ApiValueError",
29+
"ApiKeyError",
30+
"ApiAttributeError",
31+
"ApiException",
32+
"CreateInstancePayload",
33+
"Flavor",
34+
"GenericErrorResponse",
35+
"Instance",
36+
"InternalServerErrorResponse",
37+
"ListFlavors",
38+
"ListInstances",
39+
"UnauthorizedResponse",
40+
]
41+
2042
# import apis into sdk package
21-
from stackit.git.api.default_api import DefaultApi
22-
from stackit.git.api_client import ApiClient
43+
from stackit.git.api.default_api import DefaultApi as DefaultApi
44+
from stackit.git.api_client import ApiClient as ApiClient
2345

2446
# import ApiClient
25-
from stackit.git.api_response import ApiResponse
26-
from stackit.git.configuration import HostConfiguration
27-
from stackit.git.exceptions import (
28-
ApiAttributeError,
29-
ApiException,
30-
ApiKeyError,
31-
ApiTypeError,
32-
ApiValueError,
33-
OpenApiException,
34-
)
47+
from stackit.git.api_response import ApiResponse as ApiResponse
48+
from stackit.git.configuration import HostConfiguration as HostConfiguration
49+
from stackit.git.exceptions import ApiAttributeError as ApiAttributeError
50+
from stackit.git.exceptions import ApiException as ApiException
51+
from stackit.git.exceptions import ApiKeyError as ApiKeyError
52+
from stackit.git.exceptions import ApiTypeError as ApiTypeError
53+
from stackit.git.exceptions import ApiValueError as ApiValueError
54+
from stackit.git.exceptions import OpenApiException as OpenApiException
3555

3656
# import models into sdk package
37-
from stackit.git.models.create_instance_payload import CreateInstancePayload
38-
from stackit.git.models.flavor import Flavor
39-
from stackit.git.models.generic_error_response import GenericErrorResponse
40-
from stackit.git.models.instance import Instance
57+
from stackit.git.models.create_instance_payload import (
58+
CreateInstancePayload as CreateInstancePayload,
59+
)
60+
from stackit.git.models.flavor import Flavor as Flavor
61+
from stackit.git.models.generic_error_response import (
62+
GenericErrorResponse as GenericErrorResponse,
63+
)
64+
from stackit.git.models.instance import Instance as Instance
4165
from stackit.git.models.internal_server_error_response import (
42-
InternalServerErrorResponse,
66+
InternalServerErrorResponse as InternalServerErrorResponse,
67+
)
68+
from stackit.git.models.list_flavors import ListFlavors as ListFlavors
69+
from stackit.git.models.list_instances import ListInstances as ListInstances
70+
from stackit.git.models.unauthorized_response import (
71+
UnauthorizedResponse as UnauthorizedResponse,
4372
)
44-
from stackit.git.models.list_flavors import ListFlavors
45-
from stackit.git.models.list_instances import ListInstances
46-
from stackit.git.models.unauthorized_response import UnauthorizedResponse

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

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

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

@@ -89,7 +89,7 @@ def create_instance(
8989
in the spec for a single request.
9090
:type _host_index: int, optional
9191
:return: Returns the result object.
92-
""" # noqa: E501 docstring might be too long
92+
""" # noqa: E501
9393

9494
_param = self._create_instance_serialize(
9595
project_id=project_id,
@@ -157,7 +157,7 @@ def create_instance_with_http_info(
157157
in the spec for a single request.
158158
:type _host_index: int, optional
159159
:return: Returns the result object.
160-
""" # noqa: E501 docstring might be too long
160+
""" # noqa: E501
161161

162162
_param = self._create_instance_serialize(
163163
project_id=project_id,
@@ -225,7 +225,7 @@ def create_instance_without_preload_content(
225225
in the spec for a single request.
226226
:type _host_index: int, optional
227227
:return: Returns the result object.
228-
""" # noqa: E501 docstring might be too long
228+
""" # noqa: E501
229229

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

270270
# process the path parameters
@@ -352,7 +352,7 @@ def delete_instance(
352352
in the spec for a single request.
353353
:type _host_index: int, optional
354354
:return: Returns the result object.
355-
""" # noqa: E501 docstring might be too long
355+
""" # noqa: E501
356356

357357
_param = self._delete_instance_serialize(
358358
project_id=project_id,
@@ -423,7 +423,7 @@ def delete_instance_with_http_info(
423423
in the spec for a single request.
424424
:type _host_index: int, optional
425425
:return: Returns the result object.
426-
""" # noqa: E501 docstring might be too long
426+
""" # noqa: E501
427427

428428
_param = self._delete_instance_serialize(
429429
project_id=project_id,
@@ -494,7 +494,7 @@ def delete_instance_without_preload_content(
494494
in the spec for a single request.
495495
:type _host_index: int, optional
496496
:return: Returns the result object.
497-
""" # noqa: E501 docstring might be too long
497+
""" # noqa: E501
498498

499499
_param = self._delete_instance_serialize(
500500
project_id=project_id,
@@ -534,7 +534,7 @@ def _delete_instance_serialize(
534534
_query_params: List[Tuple[str, str]] = []
535535
_header_params: Dict[str, Optional[str]] = _headers or {}
536536
_form_params: List[Tuple[str, str]] = []
537-
_files: Dict[str, Union[str, bytes]] = {}
537+
_files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
538538
_body_params: Optional[bytes] = None
539539

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

619619
_param = self._get_instance_serialize(
620620
project_id=project_id,
@@ -684,7 +684,7 @@ def get_instance_with_http_info(
684684
in the spec for a single request.
685685
:type _host_index: int, optional
686686
:return: Returns the result object.
687-
""" # noqa: E501 docstring might be too long
687+
""" # noqa: E501
688688

689689
_param = self._get_instance_serialize(
690690
project_id=project_id,
@@ -754,7 +754,7 @@ def get_instance_without_preload_content(
754754
in the spec for a single request.
755755
:type _host_index: int, optional
756756
:return: Returns the result object.
757-
""" # noqa: E501 docstring might be too long
757+
""" # noqa: E501
758758

759759
_param = self._get_instance_serialize(
760760
project_id=project_id,
@@ -793,7 +793,7 @@ def _get_instance_serialize(
793793
_query_params: List[Tuple[str, str]] = []
794794
_header_params: Dict[str, Optional[str]] = _headers or {}
795795
_form_params: List[Tuple[str, str]] = []
796-
_files: Dict[str, Union[str, bytes]] = {}
796+
_files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
797797
_body_params: Optional[bytes] = None
798798

799799
# process the path parameters
@@ -831,14 +831,7 @@ def _get_instance_serialize(
831831
@validate_call
832832
def list_flavors(
833833
self,
834-
project_id: Annotated[
835-
str,
836-
Field(
837-
strict=True,
838-
max_length=36,
839-
description="The STACKIT portal project UUID the STACKIT Git instance is part of.",
840-
),
841-
],
834+
project_id: Annotated[str, Field(min_length=36, strict=True, max_length=36, description="Project identifier.")],
842835
_request_timeout: Union[
843836
None,
844837
Annotated[StrictFloat, Field(gt=0)],
@@ -853,7 +846,7 @@ def list_flavors(
853846
854847
Provides detailed information about possible Git Flavors.
855848
856-
:param project_id: The STACKIT portal project UUID the STACKIT Git instance is part of. (required)
849+
:param project_id: Project identifier. (required)
857850
:type project_id: str
858851
:param _request_timeout: timeout setting for this request. If one
859852
number provided, it will be total request
@@ -875,7 +868,7 @@ def list_flavors(
875868
in the spec for a single request.
876869
:type _host_index: int, optional
877870
:return: Returns the result object.
878-
""" # noqa: E501 docstring might be too long
871+
""" # noqa: E501
879872

880873
_param = self._list_flavors_serialize(
881874
project_id=project_id,
@@ -887,10 +880,10 @@ def list_flavors(
887880

888881
_response_types_map: Dict[str, Optional[str]] = {
889882
"200": "ListFlavors",
890-
"400": None,
883+
"400": "GenericErrorResponse",
891884
"401": "UnauthorizedResponse",
892885
"404": None,
893-
"500": "InternalServerErrorResponse",
886+
"500": "GenericErrorResponse",
894887
}
895888
response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
896889
response_data.read()
@@ -902,14 +895,7 @@ def list_flavors(
902895
@validate_call
903896
def list_flavors_with_http_info(
904897
self,
905-
project_id: Annotated[
906-
str,
907-
Field(
908-
strict=True,
909-
max_length=36,
910-
description="The STACKIT portal project UUID the STACKIT Git instance is part of.",
911-
),
912-
],
898+
project_id: Annotated[str, Field(min_length=36, strict=True, max_length=36, description="Project identifier.")],
913899
_request_timeout: Union[
914900
None,
915901
Annotated[StrictFloat, Field(gt=0)],
@@ -924,7 +910,7 @@ def list_flavors_with_http_info(
924910
925911
Provides detailed information about possible Git Flavors.
926912
927-
:param project_id: The STACKIT portal project UUID the STACKIT Git instance is part of. (required)
913+
:param project_id: Project identifier. (required)
928914
:type project_id: str
929915
:param _request_timeout: timeout setting for this request. If one
930916
number provided, it will be total request
@@ -946,7 +932,7 @@ def list_flavors_with_http_info(
946932
in the spec for a single request.
947933
:type _host_index: int, optional
948934
:return: Returns the result object.
949-
""" # noqa: E501 docstring might be too long
935+
""" # noqa: E501
950936

951937
_param = self._list_flavors_serialize(
952938
project_id=project_id,
@@ -958,10 +944,10 @@ def list_flavors_with_http_info(
958944

959945
_response_types_map: Dict[str, Optional[str]] = {
960946
"200": "ListFlavors",
961-
"400": None,
947+
"400": "GenericErrorResponse",
962948
"401": "UnauthorizedResponse",
963949
"404": None,
964-
"500": "InternalServerErrorResponse",
950+
"500": "GenericErrorResponse",
965951
}
966952
response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
967953
response_data.read()
@@ -973,14 +959,7 @@ def list_flavors_with_http_info(
973959
@validate_call
974960
def list_flavors_without_preload_content(
975961
self,
976-
project_id: Annotated[
977-
str,
978-
Field(
979-
strict=True,
980-
max_length=36,
981-
description="The STACKIT portal project UUID the STACKIT Git instance is part of.",
982-
),
983-
],
962+
project_id: Annotated[str, Field(min_length=36, strict=True, max_length=36, description="Project identifier.")],
984963
_request_timeout: Union[
985964
None,
986965
Annotated[StrictFloat, Field(gt=0)],
@@ -995,7 +974,7 @@ def list_flavors_without_preload_content(
995974
996975
Provides detailed information about possible Git Flavors.
997976
998-
:param project_id: The STACKIT portal project UUID the STACKIT Git instance is part of. (required)
977+
:param project_id: Project identifier. (required)
999978
:type project_id: str
1000979
:param _request_timeout: timeout setting for this request. If one
1001980
number provided, it will be total request
@@ -1017,7 +996,7 @@ def list_flavors_without_preload_content(
1017996
in the spec for a single request.
1018997
:type _host_index: int, optional
1019998
:return: Returns the result object.
1020-
""" # noqa: E501 docstring might be too long
999+
""" # noqa: E501
10211000

10221001
_param = self._list_flavors_serialize(
10231002
project_id=project_id,
@@ -1029,10 +1008,10 @@ def list_flavors_without_preload_content(
10291008

10301009
_response_types_map: Dict[str, Optional[str]] = {
10311010
"200": "ListFlavors",
1032-
"400": None,
1011+
"400": "GenericErrorResponse",
10331012
"401": "UnauthorizedResponse",
10341013
"404": None,
1035-
"500": "InternalServerErrorResponse",
1014+
"500": "GenericErrorResponse",
10361015
}
10371016
response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
10381017
return response_data.response
@@ -1054,7 +1033,7 @@ def _list_flavors_serialize(
10541033
_query_params: List[Tuple[str, str]] = []
10551034
_header_params: Dict[str, Optional[str]] = _headers or {}
10561035
_form_params: List[Tuple[str, str]] = []
1057-
_files: Dict[str, Union[str, bytes]] = {}
1036+
_files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
10581037
_body_params: Optional[bytes] = None
10591038

10601039
# process the path parameters
@@ -1127,7 +1106,7 @@ def list_instances(
11271106
in the spec for a single request.
11281107
:type _host_index: int, optional
11291108
:return: Returns the result object.
1130-
""" # noqa: E501 docstring might be too long
1109+
""" # noqa: E501
11311110

11321111
_param = self._list_instances_serialize(
11331112
project_id=project_id,
@@ -1190,7 +1169,7 @@ def list_instances_with_http_info(
11901169
in the spec for a single request.
11911170
:type _host_index: int, optional
11921171
:return: Returns the result object.
1193-
""" # noqa: E501 docstring might be too long
1172+
""" # noqa: E501
11941173

11951174
_param = self._list_instances_serialize(
11961175
project_id=project_id,
@@ -1253,7 +1232,7 @@ def list_instances_without_preload_content(
12531232
in the spec for a single request.
12541233
:type _host_index: int, optional
12551234
:return: Returns the result object.
1256-
""" # noqa: E501 docstring might be too long
1235+
""" # noqa: E501
12571236

12581237
_param = self._list_instances_serialize(
12591238
project_id=project_id,
@@ -1289,7 +1268,7 @@ def _list_instances_serialize(
12891268
_query_params: List[Tuple[str, str]] = []
12901269
_header_params: Dict[str, Optional[str]] = _headers or {}
12911270
_form_params: List[Tuple[str, str]] = []
1292-
_files: Dict[str, Union[str, bytes]] = {}
1271+
_files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
12931272
_body_params: Optional[bytes] = None
12941273

12951274
# process the path parameters

0 commit comments

Comments
 (0)