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
from typing import Any , Dict , List , Optional , Tuple , Union
16
16
@@ -89,7 +89,7 @@ def create_instance(
89
89
in the spec for a single request.
90
90
:type _host_index: int, optional
91
91
:return: Returns the result object.
92
- """ # noqa: E501 docstring might be too long
92
+ """ # noqa: E501
93
93
94
94
_param = self ._create_instance_serialize (
95
95
project_id = project_id ,
@@ -157,7 +157,7 @@ def create_instance_with_http_info(
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 ._create_instance_serialize (
163
163
project_id = project_id ,
@@ -225,7 +225,7 @@ def create_instance_without_preload_content(
225
225
in the spec for a single request.
226
226
:type _host_index: int, optional
227
227
:return: Returns the result object.
228
- """ # noqa: E501 docstring might be too long
228
+ """ # noqa: E501
229
229
230
230
_param = self ._create_instance_serialize (
231
231
project_id = project_id ,
@@ -264,7 +264,7 @@ def _create_instance_serialize(
264
264
_query_params : List [Tuple [str , str ]] = []
265
265
_header_params : Dict [str , Optional [str ]] = _headers or {}
266
266
_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 ]] ]] = {}
268
268
_body_params : Optional [bytes ] = None
269
269
270
270
# process the path parameters
@@ -352,7 +352,7 @@ def delete_instance(
352
352
in the spec for a single request.
353
353
:type _host_index: int, optional
354
354
:return: Returns the result object.
355
- """ # noqa: E501 docstring might be too long
355
+ """ # noqa: E501
356
356
357
357
_param = self ._delete_instance_serialize (
358
358
project_id = project_id ,
@@ -423,7 +423,7 @@ def delete_instance_with_http_info(
423
423
in the spec for a single request.
424
424
:type _host_index: int, optional
425
425
:return: Returns the result object.
426
- """ # noqa: E501 docstring might be too long
426
+ """ # noqa: E501
427
427
428
428
_param = self ._delete_instance_serialize (
429
429
project_id = project_id ,
@@ -494,7 +494,7 @@ def delete_instance_without_preload_content(
494
494
in the spec for a single request.
495
495
:type _host_index: int, optional
496
496
:return: Returns the result object.
497
- """ # noqa: E501 docstring might be too long
497
+ """ # noqa: E501
498
498
499
499
_param = self ._delete_instance_serialize (
500
500
project_id = project_id ,
@@ -534,7 +534,7 @@ def _delete_instance_serialize(
534
534
_query_params : List [Tuple [str , str ]] = []
535
535
_header_params : Dict [str , Optional [str ]] = _headers or {}
536
536
_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 ]] ]] = {}
538
538
_body_params : Optional [bytes ] = None
539
539
540
540
# process the path parameters
@@ -614,7 +614,7 @@ def get_instance(
614
614
in the spec for a single request.
615
615
:type _host_index: int, optional
616
616
:return: Returns the result object.
617
- """ # noqa: E501 docstring might be too long
617
+ """ # noqa: E501
618
618
619
619
_param = self ._get_instance_serialize (
620
620
project_id = project_id ,
@@ -684,7 +684,7 @@ def get_instance_with_http_info(
684
684
in the spec for a single request.
685
685
:type _host_index: int, optional
686
686
:return: Returns the result object.
687
- """ # noqa: E501 docstring might be too long
687
+ """ # noqa: E501
688
688
689
689
_param = self ._get_instance_serialize (
690
690
project_id = project_id ,
@@ -754,7 +754,7 @@ def get_instance_without_preload_content(
754
754
in the spec for a single request.
755
755
:type _host_index: int, optional
756
756
:return: Returns the result object.
757
- """ # noqa: E501 docstring might be too long
757
+ """ # noqa: E501
758
758
759
759
_param = self ._get_instance_serialize (
760
760
project_id = project_id ,
@@ -793,7 +793,7 @@ def _get_instance_serialize(
793
793
_query_params : List [Tuple [str , str ]] = []
794
794
_header_params : Dict [str , Optional [str ]] = _headers or {}
795
795
_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 ]] ]] = {}
797
797
_body_params : Optional [bytes ] = None
798
798
799
799
# process the path parameters
@@ -831,14 +831,7 @@ def _get_instance_serialize(
831
831
@validate_call
832
832
def list_flavors (
833
833
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." )],
842
835
_request_timeout : Union [
843
836
None ,
844
837
Annotated [StrictFloat , Field (gt = 0 )],
@@ -853,7 +846,7 @@ def list_flavors(
853
846
854
847
Provides detailed information about possible Git Flavors.
855
848
856
- :param project_id: The STACKIT portal project UUID the STACKIT Git instance is part of . (required)
849
+ :param project_id: Project identifier . (required)
857
850
:type project_id: str
858
851
:param _request_timeout: timeout setting for this request. If one
859
852
number provided, it will be total request
@@ -875,7 +868,7 @@ def list_flavors(
875
868
in the spec for a single request.
876
869
:type _host_index: int, optional
877
870
:return: Returns the result object.
878
- """ # noqa: E501 docstring might be too long
871
+ """ # noqa: E501
879
872
880
873
_param = self ._list_flavors_serialize (
881
874
project_id = project_id ,
@@ -887,10 +880,10 @@ def list_flavors(
887
880
888
881
_response_types_map : Dict [str , Optional [str ]] = {
889
882
"200" : "ListFlavors" ,
890
- "400" : None ,
883
+ "400" : "GenericErrorResponse" ,
891
884
"401" : "UnauthorizedResponse" ,
892
885
"404" : None ,
893
- "500" : "InternalServerErrorResponse " ,
886
+ "500" : "GenericErrorResponse " ,
894
887
}
895
888
response_data = self .api_client .call_api (* _param , _request_timeout = _request_timeout )
896
889
response_data .read ()
@@ -902,14 +895,7 @@ def list_flavors(
902
895
@validate_call
903
896
def list_flavors_with_http_info (
904
897
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." )],
913
899
_request_timeout : Union [
914
900
None ,
915
901
Annotated [StrictFloat , Field (gt = 0 )],
@@ -924,7 +910,7 @@ def list_flavors_with_http_info(
924
910
925
911
Provides detailed information about possible Git Flavors.
926
912
927
- :param project_id: The STACKIT portal project UUID the STACKIT Git instance is part of . (required)
913
+ :param project_id: Project identifier . (required)
928
914
:type project_id: str
929
915
:param _request_timeout: timeout setting for this request. If one
930
916
number provided, it will be total request
@@ -946,7 +932,7 @@ def list_flavors_with_http_info(
946
932
in the spec for a single request.
947
933
:type _host_index: int, optional
948
934
:return: Returns the result object.
949
- """ # noqa: E501 docstring might be too long
935
+ """ # noqa: E501
950
936
951
937
_param = self ._list_flavors_serialize (
952
938
project_id = project_id ,
@@ -958,10 +944,10 @@ def list_flavors_with_http_info(
958
944
959
945
_response_types_map : Dict [str , Optional [str ]] = {
960
946
"200" : "ListFlavors" ,
961
- "400" : None ,
947
+ "400" : "GenericErrorResponse" ,
962
948
"401" : "UnauthorizedResponse" ,
963
949
"404" : None ,
964
- "500" : "InternalServerErrorResponse " ,
950
+ "500" : "GenericErrorResponse " ,
965
951
}
966
952
response_data = self .api_client .call_api (* _param , _request_timeout = _request_timeout )
967
953
response_data .read ()
@@ -973,14 +959,7 @@ def list_flavors_with_http_info(
973
959
@validate_call
974
960
def list_flavors_without_preload_content (
975
961
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." )],
984
963
_request_timeout : Union [
985
964
None ,
986
965
Annotated [StrictFloat , Field (gt = 0 )],
@@ -995,7 +974,7 @@ def list_flavors_without_preload_content(
995
974
996
975
Provides detailed information about possible Git Flavors.
997
976
998
- :param project_id: The STACKIT portal project UUID the STACKIT Git instance is part of . (required)
977
+ :param project_id: Project identifier . (required)
999
978
:type project_id: str
1000
979
:param _request_timeout: timeout setting for this request. If one
1001
980
number provided, it will be total request
@@ -1017,7 +996,7 @@ def list_flavors_without_preload_content(
1017
996
in the spec for a single request.
1018
997
:type _host_index: int, optional
1019
998
:return: Returns the result object.
1020
- """ # noqa: E501 docstring might be too long
999
+ """ # noqa: E501
1021
1000
1022
1001
_param = self ._list_flavors_serialize (
1023
1002
project_id = project_id ,
@@ -1029,10 +1008,10 @@ def list_flavors_without_preload_content(
1029
1008
1030
1009
_response_types_map : Dict [str , Optional [str ]] = {
1031
1010
"200" : "ListFlavors" ,
1032
- "400" : None ,
1011
+ "400" : "GenericErrorResponse" ,
1033
1012
"401" : "UnauthorizedResponse" ,
1034
1013
"404" : None ,
1035
- "500" : "InternalServerErrorResponse " ,
1014
+ "500" : "GenericErrorResponse " ,
1036
1015
}
1037
1016
response_data = self .api_client .call_api (* _param , _request_timeout = _request_timeout )
1038
1017
return response_data .response
@@ -1054,7 +1033,7 @@ def _list_flavors_serialize(
1054
1033
_query_params : List [Tuple [str , str ]] = []
1055
1034
_header_params : Dict [str , Optional [str ]] = _headers or {}
1056
1035
_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 ]] ]] = {}
1058
1037
_body_params : Optional [bytes ] = None
1059
1038
1060
1039
# process the path parameters
@@ -1127,7 +1106,7 @@ def list_instances(
1127
1106
in the spec for a single request.
1128
1107
:type _host_index: int, optional
1129
1108
:return: Returns the result object.
1130
- """ # noqa: E501 docstring might be too long
1109
+ """ # noqa: E501
1131
1110
1132
1111
_param = self ._list_instances_serialize (
1133
1112
project_id = project_id ,
@@ -1190,7 +1169,7 @@ def list_instances_with_http_info(
1190
1169
in the spec for a single request.
1191
1170
:type _host_index: int, optional
1192
1171
:return: Returns the result object.
1193
- """ # noqa: E501 docstring might be too long
1172
+ """ # noqa: E501
1194
1173
1195
1174
_param = self ._list_instances_serialize (
1196
1175
project_id = project_id ,
@@ -1253,7 +1232,7 @@ def list_instances_without_preload_content(
1253
1232
in the spec for a single request.
1254
1233
:type _host_index: int, optional
1255
1234
:return: Returns the result object.
1256
- """ # noqa: E501 docstring might be too long
1235
+ """ # noqa: E501
1257
1236
1258
1237
_param = self ._list_instances_serialize (
1259
1238
project_id = project_id ,
@@ -1289,7 +1268,7 @@ def _list_instances_serialize(
1289
1268
_query_params : List [Tuple [str , str ]] = []
1290
1269
_header_params : Dict [str , Optional [str ]] = _headers or {}
1291
1270
_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 ]] ]] = {}
1293
1272
_body_params : Optional [bytes ] = None
1294
1273
1295
1274
# process the path parameters
0 commit comments