platform-api-python-client 4.20.0__py3-none-any.whl → 4.23.1__py3-none-any.whl
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.
- platform_api_python_client/__init__.py +7 -1
- platform_api_python_client/api/external_api.py +1777 -653
- platform_api_python_client/api_client.py +1 -1
- platform_api_python_client/configuration.py +1 -1
- platform_api_python_client/models/__init__.py +6 -0
- platform_api_python_client/models/create_block_volume_request.py +19 -2
- platform_api_python_client/models/create_dynamo_deployment_request.py +186 -0
- platform_api_python_client/models/create_dynamo_deployment_response.py +92 -0
- platform_api_python_client/models/deployment_component_type.py +40 -0
- platform_api_python_client/models/deployment_response.py +25 -10
- platform_api_python_client/models/deployment_type.py +1 -0
- platform_api_python_client/models/get_block_volume_response.py +4 -2
- platform_api_python_client/models/get_dynamo_deployment_response.py +179 -0
- platform_api_python_client/models/pod_details.py +9 -1
- platform_api_python_client/models/volume_backend.py +37 -0
- platform_api_python_client/models/volume_status_response.py +108 -0
- {platform_api_python_client-4.20.0.dist-info → platform_api_python_client-4.23.1.dist-info}/METADATA +1 -1
- {platform_api_python_client-4.20.0.dist-info → platform_api_python_client-4.23.1.dist-info}/RECORD +20 -14
- {platform_api_python_client-4.20.0.dist-info → platform_api_python_client-4.23.1.dist-info}/WHEEL +0 -0
- {platform_api_python_client-4.20.0.dist-info → platform_api_python_client-4.23.1.dist-info}/top_level.txt +0 -0
|
@@ -17,8 +17,9 @@ from typing import Any, Dict, List, Optional, Tuple, Union
|
|
|
17
17
|
from typing_extensions import Annotated
|
|
18
18
|
|
|
19
19
|
from datetime import date
|
|
20
|
-
from pydantic import StrictBool, StrictInt, StrictStr
|
|
20
|
+
from pydantic import Field, StrictBool, StrictInt, StrictStr
|
|
21
21
|
from typing import Any, Optional
|
|
22
|
+
from typing_extensions import Annotated
|
|
22
23
|
from platform_api_python_client.models.cluster_config import ClusterConfig
|
|
23
24
|
from platform_api_python_client.models.cluster_registration_request import ClusterRegistrationRequest
|
|
24
25
|
from platform_api_python_client.models.cluster_registration_response import ClusterRegistrationResponse
|
|
@@ -27,6 +28,8 @@ from platform_api_python_client.models.create_c_serve_v3_deployment_request impo
|
|
|
27
28
|
from platform_api_python_client.models.create_c_serve_v3_deployment_response import CreateCServeV3DeploymentResponse
|
|
28
29
|
from platform_api_python_client.models.create_compute_deployment_request import CreateComputeDeploymentRequest
|
|
29
30
|
from platform_api_python_client.models.create_compute_deployment_response import CreateComputeDeploymentResponse
|
|
31
|
+
from platform_api_python_client.models.create_dynamo_deployment_request import CreateDynamoDeploymentRequest
|
|
32
|
+
from platform_api_python_client.models.create_dynamo_deployment_response import CreateDynamoDeploymentResponse
|
|
30
33
|
from platform_api_python_client.models.create_hardware_instance_request import CreateHardwareInstanceRequest
|
|
31
34
|
from platform_api_python_client.models.create_inference_deployment_response import CreateInferenceDeploymentResponse
|
|
32
35
|
from platform_api_python_client.models.create_inference_v3_deployment_request import CreateInferenceV3DeploymentRequest
|
|
@@ -49,6 +52,7 @@ from platform_api_python_client.models.get_compute_deployment_response import Ge
|
|
|
49
52
|
from platform_api_python_client.models.get_deployment_log_response import GetDeploymentLogResponse
|
|
50
53
|
from platform_api_python_client.models.get_deployment_revision_response import GetDeploymentRevisionResponse
|
|
51
54
|
from platform_api_python_client.models.get_deployment_usage_response import GetDeploymentUsageResponse
|
|
55
|
+
from platform_api_python_client.models.get_dynamo_deployment_response import GetDynamoDeploymentResponse
|
|
52
56
|
from platform_api_python_client.models.get_inference_deployment_response import GetInferenceDeploymentResponse
|
|
53
57
|
from platform_api_python_client.models.get_inference_v3_deployment_response import GetInferenceV3DeploymentResponse
|
|
54
58
|
from platform_api_python_client.models.get_job_deployment_response import GetJobDeploymentResponse
|
|
@@ -74,6 +78,7 @@ from platform_api_python_client.models.update_deployment_status_v3_request impor
|
|
|
74
78
|
from platform_api_python_client.models.update_service_account_request import UpdateServiceAccountRequest
|
|
75
79
|
from platform_api_python_client.models.user_vault_item import UserVaultItem
|
|
76
80
|
from platform_api_python_client.models.user_vault_type import UserVaultType
|
|
81
|
+
from platform_api_python_client.models.volume_status_response import VolumeStatusResponse
|
|
77
82
|
|
|
78
83
|
from platform_api_python_client.api_client import ApiClient, RequestSerialized
|
|
79
84
|
from platform_api_python_client.api_response import ApiResponse
|
|
@@ -889,6 +894,7 @@ class EXTERNALApi:
|
|
|
889
894
|
@validate_call
|
|
890
895
|
def create_cserve_v3_deployment_deployments_cserve_v3_post(
|
|
891
896
|
self,
|
|
897
|
+
create_c_serve_v3_deployment_request: CreateCServeV3DeploymentRequest,
|
|
892
898
|
_request_timeout: Union[
|
|
893
899
|
None,
|
|
894
900
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -902,9 +908,11 @@ class EXTERNALApi:
|
|
|
902
908
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
903
909
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
904
910
|
) -> CreateCServeV3DeploymentResponse:
|
|
905
|
-
"""
|
|
911
|
+
"""Create Cserve V3 Deployment
|
|
906
912
|
|
|
907
913
|
|
|
914
|
+
:param create_c_serve_v3_deployment_request: (required)
|
|
915
|
+
:type create_c_serve_v3_deployment_request: CreateCServeV3DeploymentRequest
|
|
908
916
|
:param _request_timeout: timeout setting for this request. If one
|
|
909
917
|
number provided, it will be total request
|
|
910
918
|
timeout. It can also be a pair (tuple) of
|
|
@@ -926,9 +934,9 @@ class EXTERNALApi:
|
|
|
926
934
|
:type _host_index: int, optional
|
|
927
935
|
:return: Returns the result object.
|
|
928
936
|
""" # noqa: E501
|
|
929
|
-
warnings.warn("POST /deployments/cserve_v3 is deprecated.", DeprecationWarning)
|
|
930
937
|
|
|
931
938
|
_param = self._create_cserve_v3_deployment_deployments_cserve_v3_post_serialize(
|
|
939
|
+
create_c_serve_v3_deployment_request=create_c_serve_v3_deployment_request,
|
|
932
940
|
_request_auth=_request_auth,
|
|
933
941
|
_content_type=_content_type,
|
|
934
942
|
_headers=_headers,
|
|
@@ -937,6 +945,7 @@ class EXTERNALApi:
|
|
|
937
945
|
|
|
938
946
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
939
947
|
'200': "CreateCServeV3DeploymentResponse",
|
|
948
|
+
'422': "HTTPValidationError",
|
|
940
949
|
}
|
|
941
950
|
response_data = self.api_client.call_api(
|
|
942
951
|
*_param,
|
|
@@ -952,6 +961,7 @@ class EXTERNALApi:
|
|
|
952
961
|
@validate_call
|
|
953
962
|
def create_cserve_v3_deployment_deployments_cserve_v3_post_with_http_info(
|
|
954
963
|
self,
|
|
964
|
+
create_c_serve_v3_deployment_request: CreateCServeV3DeploymentRequest,
|
|
955
965
|
_request_timeout: Union[
|
|
956
966
|
None,
|
|
957
967
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -965,9 +975,11 @@ class EXTERNALApi:
|
|
|
965
975
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
966
976
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
967
977
|
) -> ApiResponse[CreateCServeV3DeploymentResponse]:
|
|
968
|
-
"""
|
|
978
|
+
"""Create Cserve V3 Deployment
|
|
969
979
|
|
|
970
980
|
|
|
981
|
+
:param create_c_serve_v3_deployment_request: (required)
|
|
982
|
+
:type create_c_serve_v3_deployment_request: CreateCServeV3DeploymentRequest
|
|
971
983
|
:param _request_timeout: timeout setting for this request. If one
|
|
972
984
|
number provided, it will be total request
|
|
973
985
|
timeout. It can also be a pair (tuple) of
|
|
@@ -989,9 +1001,9 @@ class EXTERNALApi:
|
|
|
989
1001
|
:type _host_index: int, optional
|
|
990
1002
|
:return: Returns the result object.
|
|
991
1003
|
""" # noqa: E501
|
|
992
|
-
warnings.warn("POST /deployments/cserve_v3 is deprecated.", DeprecationWarning)
|
|
993
1004
|
|
|
994
1005
|
_param = self._create_cserve_v3_deployment_deployments_cserve_v3_post_serialize(
|
|
1006
|
+
create_c_serve_v3_deployment_request=create_c_serve_v3_deployment_request,
|
|
995
1007
|
_request_auth=_request_auth,
|
|
996
1008
|
_content_type=_content_type,
|
|
997
1009
|
_headers=_headers,
|
|
@@ -1000,6 +1012,7 @@ class EXTERNALApi:
|
|
|
1000
1012
|
|
|
1001
1013
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1002
1014
|
'200': "CreateCServeV3DeploymentResponse",
|
|
1015
|
+
'422': "HTTPValidationError",
|
|
1003
1016
|
}
|
|
1004
1017
|
response_data = self.api_client.call_api(
|
|
1005
1018
|
*_param,
|
|
@@ -1015,6 +1028,7 @@ class EXTERNALApi:
|
|
|
1015
1028
|
@validate_call
|
|
1016
1029
|
def create_cserve_v3_deployment_deployments_cserve_v3_post_without_preload_content(
|
|
1017
1030
|
self,
|
|
1031
|
+
create_c_serve_v3_deployment_request: CreateCServeV3DeploymentRequest,
|
|
1018
1032
|
_request_timeout: Union[
|
|
1019
1033
|
None,
|
|
1020
1034
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1028,9 +1042,11 @@ class EXTERNALApi:
|
|
|
1028
1042
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1029
1043
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1030
1044
|
) -> RESTResponseType:
|
|
1031
|
-
"""
|
|
1045
|
+
"""Create Cserve V3 Deployment
|
|
1032
1046
|
|
|
1033
1047
|
|
|
1048
|
+
:param create_c_serve_v3_deployment_request: (required)
|
|
1049
|
+
:type create_c_serve_v3_deployment_request: CreateCServeV3DeploymentRequest
|
|
1034
1050
|
:param _request_timeout: timeout setting for this request. If one
|
|
1035
1051
|
number provided, it will be total request
|
|
1036
1052
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1052,9 +1068,9 @@ class EXTERNALApi:
|
|
|
1052
1068
|
:type _host_index: int, optional
|
|
1053
1069
|
:return: Returns the result object.
|
|
1054
1070
|
""" # noqa: E501
|
|
1055
|
-
warnings.warn("POST /deployments/cserve_v3 is deprecated.", DeprecationWarning)
|
|
1056
1071
|
|
|
1057
1072
|
_param = self._create_cserve_v3_deployment_deployments_cserve_v3_post_serialize(
|
|
1073
|
+
create_c_serve_v3_deployment_request=create_c_serve_v3_deployment_request,
|
|
1058
1074
|
_request_auth=_request_auth,
|
|
1059
1075
|
_content_type=_content_type,
|
|
1060
1076
|
_headers=_headers,
|
|
@@ -1063,6 +1079,7 @@ class EXTERNALApi:
|
|
|
1063
1079
|
|
|
1064
1080
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1065
1081
|
'200': "CreateCServeV3DeploymentResponse",
|
|
1082
|
+
'422': "HTTPValidationError",
|
|
1066
1083
|
}
|
|
1067
1084
|
response_data = self.api_client.call_api(
|
|
1068
1085
|
*_param,
|
|
@@ -1073,6 +1090,7 @@ class EXTERNALApi:
|
|
|
1073
1090
|
|
|
1074
1091
|
def _create_cserve_v3_deployment_deployments_cserve_v3_post_serialize(
|
|
1075
1092
|
self,
|
|
1093
|
+
create_c_serve_v3_deployment_request,
|
|
1076
1094
|
_request_auth,
|
|
1077
1095
|
_content_type,
|
|
1078
1096
|
_headers,
|
|
@@ -1098,6 +1116,8 @@ class EXTERNALApi:
|
|
|
1098
1116
|
# process the header parameters
|
|
1099
1117
|
# process the form parameters
|
|
1100
1118
|
# process the body parameter
|
|
1119
|
+
if create_c_serve_v3_deployment_request is not None:
|
|
1120
|
+
_body_params = create_c_serve_v3_deployment_request
|
|
1101
1121
|
|
|
1102
1122
|
|
|
1103
1123
|
# set the HTTP header `Accept`
|
|
@@ -1108,9 +1128,23 @@ class EXTERNALApi:
|
|
|
1108
1128
|
]
|
|
1109
1129
|
)
|
|
1110
1130
|
|
|
1131
|
+
# set the HTTP header `Content-Type`
|
|
1132
|
+
if _content_type:
|
|
1133
|
+
_header_params['Content-Type'] = _content_type
|
|
1134
|
+
else:
|
|
1135
|
+
_default_content_type = (
|
|
1136
|
+
self.api_client.select_header_content_type(
|
|
1137
|
+
[
|
|
1138
|
+
'application/json'
|
|
1139
|
+
]
|
|
1140
|
+
)
|
|
1141
|
+
)
|
|
1142
|
+
if _default_content_type is not None:
|
|
1143
|
+
_header_params['Content-Type'] = _default_content_type
|
|
1111
1144
|
|
|
1112
1145
|
# authentication setting
|
|
1113
1146
|
_auth_settings: List[str] = [
|
|
1147
|
+
'HTTPBearer'
|
|
1114
1148
|
]
|
|
1115
1149
|
|
|
1116
1150
|
return self.api_client.param_serialize(
|
|
@@ -1132,9 +1166,9 @@ class EXTERNALApi:
|
|
|
1132
1166
|
|
|
1133
1167
|
|
|
1134
1168
|
@validate_call
|
|
1135
|
-
def
|
|
1169
|
+
def create_dynamo_deployment_deployments_dynamo_post(
|
|
1136
1170
|
self,
|
|
1137
|
-
|
|
1171
|
+
create_dynamo_deployment_request: CreateDynamoDeploymentRequest,
|
|
1138
1172
|
_request_timeout: Union[
|
|
1139
1173
|
None,
|
|
1140
1174
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1147,12 +1181,12 @@ class EXTERNALApi:
|
|
|
1147
1181
|
_content_type: Optional[StrictStr] = None,
|
|
1148
1182
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1149
1183
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1150
|
-
) ->
|
|
1151
|
-
"""Create
|
|
1184
|
+
) -> CreateDynamoDeploymentResponse:
|
|
1185
|
+
"""Create Dynamo Deployment
|
|
1152
1186
|
|
|
1153
1187
|
|
|
1154
|
-
:param
|
|
1155
|
-
:type
|
|
1188
|
+
:param create_dynamo_deployment_request: (required)
|
|
1189
|
+
:type create_dynamo_deployment_request: CreateDynamoDeploymentRequest
|
|
1156
1190
|
:param _request_timeout: timeout setting for this request. If one
|
|
1157
1191
|
number provided, it will be total request
|
|
1158
1192
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1175,8 +1209,8 @@ class EXTERNALApi:
|
|
|
1175
1209
|
:return: Returns the result object.
|
|
1176
1210
|
""" # noqa: E501
|
|
1177
1211
|
|
|
1178
|
-
_param = self.
|
|
1179
|
-
|
|
1212
|
+
_param = self._create_dynamo_deployment_deployments_dynamo_post_serialize(
|
|
1213
|
+
create_dynamo_deployment_request=create_dynamo_deployment_request,
|
|
1180
1214
|
_request_auth=_request_auth,
|
|
1181
1215
|
_content_type=_content_type,
|
|
1182
1216
|
_headers=_headers,
|
|
@@ -1184,7 +1218,7 @@ class EXTERNALApi:
|
|
|
1184
1218
|
)
|
|
1185
1219
|
|
|
1186
1220
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1187
|
-
'
|
|
1221
|
+
'200': "CreateDynamoDeploymentResponse",
|
|
1188
1222
|
'422': "HTTPValidationError",
|
|
1189
1223
|
}
|
|
1190
1224
|
response_data = self.api_client.call_api(
|
|
@@ -1199,9 +1233,9 @@ class EXTERNALApi:
|
|
|
1199
1233
|
|
|
1200
1234
|
|
|
1201
1235
|
@validate_call
|
|
1202
|
-
def
|
|
1236
|
+
def create_dynamo_deployment_deployments_dynamo_post_with_http_info(
|
|
1203
1237
|
self,
|
|
1204
|
-
|
|
1238
|
+
create_dynamo_deployment_request: CreateDynamoDeploymentRequest,
|
|
1205
1239
|
_request_timeout: Union[
|
|
1206
1240
|
None,
|
|
1207
1241
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1214,12 +1248,12 @@ class EXTERNALApi:
|
|
|
1214
1248
|
_content_type: Optional[StrictStr] = None,
|
|
1215
1249
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1216
1250
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1217
|
-
) -> ApiResponse[
|
|
1218
|
-
"""Create
|
|
1251
|
+
) -> ApiResponse[CreateDynamoDeploymentResponse]:
|
|
1252
|
+
"""Create Dynamo Deployment
|
|
1219
1253
|
|
|
1220
1254
|
|
|
1221
|
-
:param
|
|
1222
|
-
:type
|
|
1255
|
+
:param create_dynamo_deployment_request: (required)
|
|
1256
|
+
:type create_dynamo_deployment_request: CreateDynamoDeploymentRequest
|
|
1223
1257
|
:param _request_timeout: timeout setting for this request. If one
|
|
1224
1258
|
number provided, it will be total request
|
|
1225
1259
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1242,8 +1276,8 @@ class EXTERNALApi:
|
|
|
1242
1276
|
:return: Returns the result object.
|
|
1243
1277
|
""" # noqa: E501
|
|
1244
1278
|
|
|
1245
|
-
_param = self.
|
|
1246
|
-
|
|
1279
|
+
_param = self._create_dynamo_deployment_deployments_dynamo_post_serialize(
|
|
1280
|
+
create_dynamo_deployment_request=create_dynamo_deployment_request,
|
|
1247
1281
|
_request_auth=_request_auth,
|
|
1248
1282
|
_content_type=_content_type,
|
|
1249
1283
|
_headers=_headers,
|
|
@@ -1251,7 +1285,7 @@ class EXTERNALApi:
|
|
|
1251
1285
|
)
|
|
1252
1286
|
|
|
1253
1287
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1254
|
-
'
|
|
1288
|
+
'200': "CreateDynamoDeploymentResponse",
|
|
1255
1289
|
'422': "HTTPValidationError",
|
|
1256
1290
|
}
|
|
1257
1291
|
response_data = self.api_client.call_api(
|
|
@@ -1266,9 +1300,9 @@ class EXTERNALApi:
|
|
|
1266
1300
|
|
|
1267
1301
|
|
|
1268
1302
|
@validate_call
|
|
1269
|
-
def
|
|
1303
|
+
def create_dynamo_deployment_deployments_dynamo_post_without_preload_content(
|
|
1270
1304
|
self,
|
|
1271
|
-
|
|
1305
|
+
create_dynamo_deployment_request: CreateDynamoDeploymentRequest,
|
|
1272
1306
|
_request_timeout: Union[
|
|
1273
1307
|
None,
|
|
1274
1308
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1282,11 +1316,11 @@ class EXTERNALApi:
|
|
|
1282
1316
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1283
1317
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1284
1318
|
) -> RESTResponseType:
|
|
1285
|
-
"""Create
|
|
1319
|
+
"""Create Dynamo Deployment
|
|
1286
1320
|
|
|
1287
1321
|
|
|
1288
|
-
:param
|
|
1289
|
-
:type
|
|
1322
|
+
:param create_dynamo_deployment_request: (required)
|
|
1323
|
+
:type create_dynamo_deployment_request: CreateDynamoDeploymentRequest
|
|
1290
1324
|
:param _request_timeout: timeout setting for this request. If one
|
|
1291
1325
|
number provided, it will be total request
|
|
1292
1326
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1309,8 +1343,8 @@ class EXTERNALApi:
|
|
|
1309
1343
|
:return: Returns the result object.
|
|
1310
1344
|
""" # noqa: E501
|
|
1311
1345
|
|
|
1312
|
-
_param = self.
|
|
1313
|
-
|
|
1346
|
+
_param = self._create_dynamo_deployment_deployments_dynamo_post_serialize(
|
|
1347
|
+
create_dynamo_deployment_request=create_dynamo_deployment_request,
|
|
1314
1348
|
_request_auth=_request_auth,
|
|
1315
1349
|
_content_type=_content_type,
|
|
1316
1350
|
_headers=_headers,
|
|
@@ -1318,7 +1352,7 @@ class EXTERNALApi:
|
|
|
1318
1352
|
)
|
|
1319
1353
|
|
|
1320
1354
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1321
|
-
'
|
|
1355
|
+
'200': "CreateDynamoDeploymentResponse",
|
|
1322
1356
|
'422': "HTTPValidationError",
|
|
1323
1357
|
}
|
|
1324
1358
|
response_data = self.api_client.call_api(
|
|
@@ -1328,9 +1362,9 @@ class EXTERNALApi:
|
|
|
1328
1362
|
return response_data.response
|
|
1329
1363
|
|
|
1330
1364
|
|
|
1331
|
-
def
|
|
1365
|
+
def _create_dynamo_deployment_deployments_dynamo_post_serialize(
|
|
1332
1366
|
self,
|
|
1333
|
-
|
|
1367
|
+
create_dynamo_deployment_request,
|
|
1334
1368
|
_request_auth,
|
|
1335
1369
|
_content_type,
|
|
1336
1370
|
_headers,
|
|
@@ -1356,8 +1390,8 @@ class EXTERNALApi:
|
|
|
1356
1390
|
# process the header parameters
|
|
1357
1391
|
# process the form parameters
|
|
1358
1392
|
# process the body parameter
|
|
1359
|
-
if
|
|
1360
|
-
_body_params =
|
|
1393
|
+
if create_dynamo_deployment_request is not None:
|
|
1394
|
+
_body_params = create_dynamo_deployment_request
|
|
1361
1395
|
|
|
1362
1396
|
|
|
1363
1397
|
# set the HTTP header `Accept`
|
|
@@ -1389,7 +1423,7 @@ class EXTERNALApi:
|
|
|
1389
1423
|
|
|
1390
1424
|
return self.api_client.param_serialize(
|
|
1391
1425
|
method='POST',
|
|
1392
|
-
resource_path='/
|
|
1426
|
+
resource_path='/deployments/dynamo',
|
|
1393
1427
|
path_params=_path_params,
|
|
1394
1428
|
query_params=_query_params,
|
|
1395
1429
|
header_params=_header_params,
|
|
@@ -1406,8 +1440,9 @@ class EXTERNALApi:
|
|
|
1406
1440
|
|
|
1407
1441
|
|
|
1408
1442
|
@validate_call
|
|
1409
|
-
def
|
|
1443
|
+
def create_hardware_instance_hardware_instances_post(
|
|
1410
1444
|
self,
|
|
1445
|
+
create_hardware_instance_request: CreateHardwareInstanceRequest,
|
|
1411
1446
|
_request_timeout: Union[
|
|
1412
1447
|
None,
|
|
1413
1448
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1420,10 +1455,12 @@ class EXTERNALApi:
|
|
|
1420
1455
|
_content_type: Optional[StrictStr] = None,
|
|
1421
1456
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1422
1457
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1423
|
-
) ->
|
|
1424
|
-
"""
|
|
1458
|
+
) -> HardwareInstanceResponse:
|
|
1459
|
+
"""Create Hardware Instance
|
|
1425
1460
|
|
|
1426
1461
|
|
|
1462
|
+
:param create_hardware_instance_request: (required)
|
|
1463
|
+
:type create_hardware_instance_request: CreateHardwareInstanceRequest
|
|
1427
1464
|
:param _request_timeout: timeout setting for this request. If one
|
|
1428
1465
|
number provided, it will be total request
|
|
1429
1466
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1445,9 +1482,9 @@ class EXTERNALApi:
|
|
|
1445
1482
|
:type _host_index: int, optional
|
|
1446
1483
|
:return: Returns the result object.
|
|
1447
1484
|
""" # noqa: E501
|
|
1448
|
-
warnings.warn("POST /deployments/inference is deprecated.", DeprecationWarning)
|
|
1449
1485
|
|
|
1450
|
-
_param = self.
|
|
1486
|
+
_param = self._create_hardware_instance_hardware_instances_post_serialize(
|
|
1487
|
+
create_hardware_instance_request=create_hardware_instance_request,
|
|
1451
1488
|
_request_auth=_request_auth,
|
|
1452
1489
|
_content_type=_content_type,
|
|
1453
1490
|
_headers=_headers,
|
|
@@ -1455,7 +1492,8 @@ class EXTERNALApi:
|
|
|
1455
1492
|
)
|
|
1456
1493
|
|
|
1457
1494
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1458
|
-
'
|
|
1495
|
+
'201': "HardwareInstanceResponse",
|
|
1496
|
+
'422': "HTTPValidationError",
|
|
1459
1497
|
}
|
|
1460
1498
|
response_data = self.api_client.call_api(
|
|
1461
1499
|
*_param,
|
|
@@ -1469,8 +1507,9 @@ class EXTERNALApi:
|
|
|
1469
1507
|
|
|
1470
1508
|
|
|
1471
1509
|
@validate_call
|
|
1472
|
-
def
|
|
1510
|
+
def create_hardware_instance_hardware_instances_post_with_http_info(
|
|
1473
1511
|
self,
|
|
1512
|
+
create_hardware_instance_request: CreateHardwareInstanceRequest,
|
|
1474
1513
|
_request_timeout: Union[
|
|
1475
1514
|
None,
|
|
1476
1515
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1483,10 +1522,12 @@ class EXTERNALApi:
|
|
|
1483
1522
|
_content_type: Optional[StrictStr] = None,
|
|
1484
1523
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1485
1524
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1486
|
-
) -> ApiResponse[
|
|
1487
|
-
"""
|
|
1525
|
+
) -> ApiResponse[HardwareInstanceResponse]:
|
|
1526
|
+
"""Create Hardware Instance
|
|
1488
1527
|
|
|
1489
1528
|
|
|
1529
|
+
:param create_hardware_instance_request: (required)
|
|
1530
|
+
:type create_hardware_instance_request: CreateHardwareInstanceRequest
|
|
1490
1531
|
:param _request_timeout: timeout setting for this request. If one
|
|
1491
1532
|
number provided, it will be total request
|
|
1492
1533
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1508,9 +1549,9 @@ class EXTERNALApi:
|
|
|
1508
1549
|
:type _host_index: int, optional
|
|
1509
1550
|
:return: Returns the result object.
|
|
1510
1551
|
""" # noqa: E501
|
|
1511
|
-
warnings.warn("POST /deployments/inference is deprecated.", DeprecationWarning)
|
|
1512
1552
|
|
|
1513
|
-
_param = self.
|
|
1553
|
+
_param = self._create_hardware_instance_hardware_instances_post_serialize(
|
|
1554
|
+
create_hardware_instance_request=create_hardware_instance_request,
|
|
1514
1555
|
_request_auth=_request_auth,
|
|
1515
1556
|
_content_type=_content_type,
|
|
1516
1557
|
_headers=_headers,
|
|
@@ -1518,7 +1559,8 @@ class EXTERNALApi:
|
|
|
1518
1559
|
)
|
|
1519
1560
|
|
|
1520
1561
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1521
|
-
'
|
|
1562
|
+
'201': "HardwareInstanceResponse",
|
|
1563
|
+
'422': "HTTPValidationError",
|
|
1522
1564
|
}
|
|
1523
1565
|
response_data = self.api_client.call_api(
|
|
1524
1566
|
*_param,
|
|
@@ -1532,8 +1574,9 @@ class EXTERNALApi:
|
|
|
1532
1574
|
|
|
1533
1575
|
|
|
1534
1576
|
@validate_call
|
|
1535
|
-
def
|
|
1577
|
+
def create_hardware_instance_hardware_instances_post_without_preload_content(
|
|
1536
1578
|
self,
|
|
1579
|
+
create_hardware_instance_request: CreateHardwareInstanceRequest,
|
|
1537
1580
|
_request_timeout: Union[
|
|
1538
1581
|
None,
|
|
1539
1582
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1547,9 +1590,11 @@ class EXTERNALApi:
|
|
|
1547
1590
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1548
1591
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1549
1592
|
) -> RESTResponseType:
|
|
1550
|
-
"""
|
|
1593
|
+
"""Create Hardware Instance
|
|
1551
1594
|
|
|
1552
1595
|
|
|
1596
|
+
:param create_hardware_instance_request: (required)
|
|
1597
|
+
:type create_hardware_instance_request: CreateHardwareInstanceRequest
|
|
1553
1598
|
:param _request_timeout: timeout setting for this request. If one
|
|
1554
1599
|
number provided, it will be total request
|
|
1555
1600
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1571,9 +1616,9 @@ class EXTERNALApi:
|
|
|
1571
1616
|
:type _host_index: int, optional
|
|
1572
1617
|
:return: Returns the result object.
|
|
1573
1618
|
""" # noqa: E501
|
|
1574
|
-
warnings.warn("POST /deployments/inference is deprecated.", DeprecationWarning)
|
|
1575
1619
|
|
|
1576
|
-
_param = self.
|
|
1620
|
+
_param = self._create_hardware_instance_hardware_instances_post_serialize(
|
|
1621
|
+
create_hardware_instance_request=create_hardware_instance_request,
|
|
1577
1622
|
_request_auth=_request_auth,
|
|
1578
1623
|
_content_type=_content_type,
|
|
1579
1624
|
_headers=_headers,
|
|
@@ -1581,7 +1626,8 @@ class EXTERNALApi:
|
|
|
1581
1626
|
)
|
|
1582
1627
|
|
|
1583
1628
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1584
|
-
'
|
|
1629
|
+
'201': "HardwareInstanceResponse",
|
|
1630
|
+
'422': "HTTPValidationError",
|
|
1585
1631
|
}
|
|
1586
1632
|
response_data = self.api_client.call_api(
|
|
1587
1633
|
*_param,
|
|
@@ -1590,8 +1636,9 @@ class EXTERNALApi:
|
|
|
1590
1636
|
return response_data.response
|
|
1591
1637
|
|
|
1592
1638
|
|
|
1593
|
-
def
|
|
1639
|
+
def _create_hardware_instance_hardware_instances_post_serialize(
|
|
1594
1640
|
self,
|
|
1641
|
+
create_hardware_instance_request,
|
|
1595
1642
|
_request_auth,
|
|
1596
1643
|
_content_type,
|
|
1597
1644
|
_headers,
|
|
@@ -1617,6 +1664,8 @@ class EXTERNALApi:
|
|
|
1617
1664
|
# process the header parameters
|
|
1618
1665
|
# process the form parameters
|
|
1619
1666
|
# process the body parameter
|
|
1667
|
+
if create_hardware_instance_request is not None:
|
|
1668
|
+
_body_params = create_hardware_instance_request
|
|
1620
1669
|
|
|
1621
1670
|
|
|
1622
1671
|
# set the HTTP header `Accept`
|
|
@@ -1627,14 +1676,28 @@ class EXTERNALApi:
|
|
|
1627
1676
|
]
|
|
1628
1677
|
)
|
|
1629
1678
|
|
|
1679
|
+
# set the HTTP header `Content-Type`
|
|
1680
|
+
if _content_type:
|
|
1681
|
+
_header_params['Content-Type'] = _content_type
|
|
1682
|
+
else:
|
|
1683
|
+
_default_content_type = (
|
|
1684
|
+
self.api_client.select_header_content_type(
|
|
1685
|
+
[
|
|
1686
|
+
'application/json'
|
|
1687
|
+
]
|
|
1688
|
+
)
|
|
1689
|
+
)
|
|
1690
|
+
if _default_content_type is not None:
|
|
1691
|
+
_header_params['Content-Type'] = _default_content_type
|
|
1630
1692
|
|
|
1631
1693
|
# authentication setting
|
|
1632
1694
|
_auth_settings: List[str] = [
|
|
1695
|
+
'HTTPBearer'
|
|
1633
1696
|
]
|
|
1634
1697
|
|
|
1635
1698
|
return self.api_client.param_serialize(
|
|
1636
1699
|
method='POST',
|
|
1637
|
-
resource_path='/
|
|
1700
|
+
resource_path='/hardware-instances',
|
|
1638
1701
|
path_params=_path_params,
|
|
1639
1702
|
query_params=_query_params,
|
|
1640
1703
|
header_params=_header_params,
|
|
@@ -1651,9 +1714,8 @@ class EXTERNALApi:
|
|
|
1651
1714
|
|
|
1652
1715
|
|
|
1653
1716
|
@validate_call
|
|
1654
|
-
def
|
|
1717
|
+
def create_inference_deployment_deployments_inference_post(
|
|
1655
1718
|
self,
|
|
1656
|
-
create_inference_v3_deployment_request: CreateInferenceV3DeploymentRequest,
|
|
1657
1719
|
_request_timeout: Union[
|
|
1658
1720
|
None,
|
|
1659
1721
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1667,11 +1729,9 @@ class EXTERNALApi:
|
|
|
1667
1729
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1668
1730
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1669
1731
|
) -> CreateInferenceDeploymentResponse:
|
|
1670
|
-
"""Create Inference
|
|
1732
|
+
"""(Deprecated) Create Inference Deployment
|
|
1671
1733
|
|
|
1672
1734
|
|
|
1673
|
-
:param create_inference_v3_deployment_request: (required)
|
|
1674
|
-
:type create_inference_v3_deployment_request: CreateInferenceV3DeploymentRequest
|
|
1675
1735
|
:param _request_timeout: timeout setting for this request. If one
|
|
1676
1736
|
number provided, it will be total request
|
|
1677
1737
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1693,9 +1753,9 @@ class EXTERNALApi:
|
|
|
1693
1753
|
:type _host_index: int, optional
|
|
1694
1754
|
:return: Returns the result object.
|
|
1695
1755
|
""" # noqa: E501
|
|
1756
|
+
warnings.warn("POST /deployments/inference is deprecated.", DeprecationWarning)
|
|
1696
1757
|
|
|
1697
|
-
_param = self.
|
|
1698
|
-
create_inference_v3_deployment_request=create_inference_v3_deployment_request,
|
|
1758
|
+
_param = self._create_inference_deployment_deployments_inference_post_serialize(
|
|
1699
1759
|
_request_auth=_request_auth,
|
|
1700
1760
|
_content_type=_content_type,
|
|
1701
1761
|
_headers=_headers,
|
|
@@ -1704,7 +1764,6 @@ class EXTERNALApi:
|
|
|
1704
1764
|
|
|
1705
1765
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1706
1766
|
'200': "CreateInferenceDeploymentResponse",
|
|
1707
|
-
'422': "HTTPValidationError",
|
|
1708
1767
|
}
|
|
1709
1768
|
response_data = self.api_client.call_api(
|
|
1710
1769
|
*_param,
|
|
@@ -1718,9 +1777,8 @@ class EXTERNALApi:
|
|
|
1718
1777
|
|
|
1719
1778
|
|
|
1720
1779
|
@validate_call
|
|
1721
|
-
def
|
|
1780
|
+
def create_inference_deployment_deployments_inference_post_with_http_info(
|
|
1722
1781
|
self,
|
|
1723
|
-
create_inference_v3_deployment_request: CreateInferenceV3DeploymentRequest,
|
|
1724
1782
|
_request_timeout: Union[
|
|
1725
1783
|
None,
|
|
1726
1784
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1734,11 +1792,9 @@ class EXTERNALApi:
|
|
|
1734
1792
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1735
1793
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1736
1794
|
) -> ApiResponse[CreateInferenceDeploymentResponse]:
|
|
1737
|
-
"""Create Inference
|
|
1795
|
+
"""(Deprecated) Create Inference Deployment
|
|
1738
1796
|
|
|
1739
1797
|
|
|
1740
|
-
:param create_inference_v3_deployment_request: (required)
|
|
1741
|
-
:type create_inference_v3_deployment_request: CreateInferenceV3DeploymentRequest
|
|
1742
1798
|
:param _request_timeout: timeout setting for this request. If one
|
|
1743
1799
|
number provided, it will be total request
|
|
1744
1800
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1760,9 +1816,9 @@ class EXTERNALApi:
|
|
|
1760
1816
|
:type _host_index: int, optional
|
|
1761
1817
|
:return: Returns the result object.
|
|
1762
1818
|
""" # noqa: E501
|
|
1819
|
+
warnings.warn("POST /deployments/inference is deprecated.", DeprecationWarning)
|
|
1763
1820
|
|
|
1764
|
-
_param = self.
|
|
1765
|
-
create_inference_v3_deployment_request=create_inference_v3_deployment_request,
|
|
1821
|
+
_param = self._create_inference_deployment_deployments_inference_post_serialize(
|
|
1766
1822
|
_request_auth=_request_auth,
|
|
1767
1823
|
_content_type=_content_type,
|
|
1768
1824
|
_headers=_headers,
|
|
@@ -1771,7 +1827,6 @@ class EXTERNALApi:
|
|
|
1771
1827
|
|
|
1772
1828
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1773
1829
|
'200': "CreateInferenceDeploymentResponse",
|
|
1774
|
-
'422': "HTTPValidationError",
|
|
1775
1830
|
}
|
|
1776
1831
|
response_data = self.api_client.call_api(
|
|
1777
1832
|
*_param,
|
|
@@ -1785,9 +1840,8 @@ class EXTERNALApi:
|
|
|
1785
1840
|
|
|
1786
1841
|
|
|
1787
1842
|
@validate_call
|
|
1788
|
-
def
|
|
1843
|
+
def create_inference_deployment_deployments_inference_post_without_preload_content(
|
|
1789
1844
|
self,
|
|
1790
|
-
create_inference_v3_deployment_request: CreateInferenceV3DeploymentRequest,
|
|
1791
1845
|
_request_timeout: Union[
|
|
1792
1846
|
None,
|
|
1793
1847
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1801,11 +1855,9 @@ class EXTERNALApi:
|
|
|
1801
1855
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1802
1856
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1803
1857
|
) -> RESTResponseType:
|
|
1804
|
-
"""Create Inference
|
|
1858
|
+
"""(Deprecated) Create Inference Deployment
|
|
1805
1859
|
|
|
1806
1860
|
|
|
1807
|
-
:param create_inference_v3_deployment_request: (required)
|
|
1808
|
-
:type create_inference_v3_deployment_request: CreateInferenceV3DeploymentRequest
|
|
1809
1861
|
:param _request_timeout: timeout setting for this request. If one
|
|
1810
1862
|
number provided, it will be total request
|
|
1811
1863
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1827,9 +1879,9 @@ class EXTERNALApi:
|
|
|
1827
1879
|
:type _host_index: int, optional
|
|
1828
1880
|
:return: Returns the result object.
|
|
1829
1881
|
""" # noqa: E501
|
|
1882
|
+
warnings.warn("POST /deployments/inference is deprecated.", DeprecationWarning)
|
|
1830
1883
|
|
|
1831
|
-
_param = self.
|
|
1832
|
-
create_inference_v3_deployment_request=create_inference_v3_deployment_request,
|
|
1884
|
+
_param = self._create_inference_deployment_deployments_inference_post_serialize(
|
|
1833
1885
|
_request_auth=_request_auth,
|
|
1834
1886
|
_content_type=_content_type,
|
|
1835
1887
|
_headers=_headers,
|
|
@@ -1838,7 +1890,6 @@ class EXTERNALApi:
|
|
|
1838
1890
|
|
|
1839
1891
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1840
1892
|
'200': "CreateInferenceDeploymentResponse",
|
|
1841
|
-
'422': "HTTPValidationError",
|
|
1842
1893
|
}
|
|
1843
1894
|
response_data = self.api_client.call_api(
|
|
1844
1895
|
*_param,
|
|
@@ -1847,9 +1898,8 @@ class EXTERNALApi:
|
|
|
1847
1898
|
return response_data.response
|
|
1848
1899
|
|
|
1849
1900
|
|
|
1850
|
-
def
|
|
1901
|
+
def _create_inference_deployment_deployments_inference_post_serialize(
|
|
1851
1902
|
self,
|
|
1852
|
-
create_inference_v3_deployment_request,
|
|
1853
1903
|
_request_auth,
|
|
1854
1904
|
_content_type,
|
|
1855
1905
|
_headers,
|
|
@@ -1875,8 +1925,6 @@ class EXTERNALApi:
|
|
|
1875
1925
|
# process the header parameters
|
|
1876
1926
|
# process the form parameters
|
|
1877
1927
|
# process the body parameter
|
|
1878
|
-
if create_inference_v3_deployment_request is not None:
|
|
1879
|
-
_body_params = create_inference_v3_deployment_request
|
|
1880
1928
|
|
|
1881
1929
|
|
|
1882
1930
|
# set the HTTP header `Accept`
|
|
@@ -1887,28 +1935,14 @@ class EXTERNALApi:
|
|
|
1887
1935
|
]
|
|
1888
1936
|
)
|
|
1889
1937
|
|
|
1890
|
-
# set the HTTP header `Content-Type`
|
|
1891
|
-
if _content_type:
|
|
1892
|
-
_header_params['Content-Type'] = _content_type
|
|
1893
|
-
else:
|
|
1894
|
-
_default_content_type = (
|
|
1895
|
-
self.api_client.select_header_content_type(
|
|
1896
|
-
[
|
|
1897
|
-
'application/json'
|
|
1898
|
-
]
|
|
1899
|
-
)
|
|
1900
|
-
)
|
|
1901
|
-
if _default_content_type is not None:
|
|
1902
|
-
_header_params['Content-Type'] = _default_content_type
|
|
1903
1938
|
|
|
1904
1939
|
# authentication setting
|
|
1905
1940
|
_auth_settings: List[str] = [
|
|
1906
|
-
'HTTPBearer'
|
|
1907
1941
|
]
|
|
1908
1942
|
|
|
1909
1943
|
return self.api_client.param_serialize(
|
|
1910
1944
|
method='POST',
|
|
1911
|
-
resource_path='/deployments/
|
|
1945
|
+
resource_path='/deployments/inference',
|
|
1912
1946
|
path_params=_path_params,
|
|
1913
1947
|
query_params=_query_params,
|
|
1914
1948
|
header_params=_header_params,
|
|
@@ -1925,9 +1959,9 @@ class EXTERNALApi:
|
|
|
1925
1959
|
|
|
1926
1960
|
|
|
1927
1961
|
@validate_call
|
|
1928
|
-
def
|
|
1962
|
+
def create_inference_v3_deployment_deployments_inference_v3_post(
|
|
1929
1963
|
self,
|
|
1930
|
-
|
|
1964
|
+
create_inference_v3_deployment_request: CreateInferenceV3DeploymentRequest,
|
|
1931
1965
|
_request_timeout: Union[
|
|
1932
1966
|
None,
|
|
1933
1967
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1940,12 +1974,12 @@ class EXTERNALApi:
|
|
|
1940
1974
|
_content_type: Optional[StrictStr] = None,
|
|
1941
1975
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1942
1976
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1943
|
-
) ->
|
|
1944
|
-
"""Create
|
|
1977
|
+
) -> CreateInferenceDeploymentResponse:
|
|
1978
|
+
"""Create Inference V3 Deployment
|
|
1945
1979
|
|
|
1946
1980
|
|
|
1947
|
-
:param
|
|
1948
|
-
:type
|
|
1981
|
+
:param create_inference_v3_deployment_request: (required)
|
|
1982
|
+
:type create_inference_v3_deployment_request: CreateInferenceV3DeploymentRequest
|
|
1949
1983
|
:param _request_timeout: timeout setting for this request. If one
|
|
1950
1984
|
number provided, it will be total request
|
|
1951
1985
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1968,8 +2002,8 @@ class EXTERNALApi:
|
|
|
1968
2002
|
:return: Returns the result object.
|
|
1969
2003
|
""" # noqa: E501
|
|
1970
2004
|
|
|
1971
|
-
_param = self.
|
|
1972
|
-
|
|
2005
|
+
_param = self._create_inference_v3_deployment_deployments_inference_v3_post_serialize(
|
|
2006
|
+
create_inference_v3_deployment_request=create_inference_v3_deployment_request,
|
|
1973
2007
|
_request_auth=_request_auth,
|
|
1974
2008
|
_content_type=_content_type,
|
|
1975
2009
|
_headers=_headers,
|
|
@@ -1977,7 +2011,7 @@ class EXTERNALApi:
|
|
|
1977
2011
|
)
|
|
1978
2012
|
|
|
1979
2013
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1980
|
-
'200': "
|
|
2014
|
+
'200': "CreateInferenceDeploymentResponse",
|
|
1981
2015
|
'422': "HTTPValidationError",
|
|
1982
2016
|
}
|
|
1983
2017
|
response_data = self.api_client.call_api(
|
|
@@ -1992,9 +2026,9 @@ class EXTERNALApi:
|
|
|
1992
2026
|
|
|
1993
2027
|
|
|
1994
2028
|
@validate_call
|
|
1995
|
-
def
|
|
2029
|
+
def create_inference_v3_deployment_deployments_inference_v3_post_with_http_info(
|
|
1996
2030
|
self,
|
|
1997
|
-
|
|
2031
|
+
create_inference_v3_deployment_request: CreateInferenceV3DeploymentRequest,
|
|
1998
2032
|
_request_timeout: Union[
|
|
1999
2033
|
None,
|
|
2000
2034
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2007,12 +2041,12 @@ class EXTERNALApi:
|
|
|
2007
2041
|
_content_type: Optional[StrictStr] = None,
|
|
2008
2042
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2009
2043
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2010
|
-
) -> ApiResponse[
|
|
2011
|
-
"""Create
|
|
2044
|
+
) -> ApiResponse[CreateInferenceDeploymentResponse]:
|
|
2045
|
+
"""Create Inference V3 Deployment
|
|
2012
2046
|
|
|
2013
2047
|
|
|
2014
|
-
:param
|
|
2015
|
-
:type
|
|
2048
|
+
:param create_inference_v3_deployment_request: (required)
|
|
2049
|
+
:type create_inference_v3_deployment_request: CreateInferenceV3DeploymentRequest
|
|
2016
2050
|
:param _request_timeout: timeout setting for this request. If one
|
|
2017
2051
|
number provided, it will be total request
|
|
2018
2052
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2035,8 +2069,8 @@ class EXTERNALApi:
|
|
|
2035
2069
|
:return: Returns the result object.
|
|
2036
2070
|
""" # noqa: E501
|
|
2037
2071
|
|
|
2038
|
-
_param = self.
|
|
2039
|
-
|
|
2072
|
+
_param = self._create_inference_v3_deployment_deployments_inference_v3_post_serialize(
|
|
2073
|
+
create_inference_v3_deployment_request=create_inference_v3_deployment_request,
|
|
2040
2074
|
_request_auth=_request_auth,
|
|
2041
2075
|
_content_type=_content_type,
|
|
2042
2076
|
_headers=_headers,
|
|
@@ -2044,7 +2078,7 @@ class EXTERNALApi:
|
|
|
2044
2078
|
)
|
|
2045
2079
|
|
|
2046
2080
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2047
|
-
'200': "
|
|
2081
|
+
'200': "CreateInferenceDeploymentResponse",
|
|
2048
2082
|
'422': "HTTPValidationError",
|
|
2049
2083
|
}
|
|
2050
2084
|
response_data = self.api_client.call_api(
|
|
@@ -2059,9 +2093,9 @@ class EXTERNALApi:
|
|
|
2059
2093
|
|
|
2060
2094
|
|
|
2061
2095
|
@validate_call
|
|
2062
|
-
def
|
|
2096
|
+
def create_inference_v3_deployment_deployments_inference_v3_post_without_preload_content(
|
|
2063
2097
|
self,
|
|
2064
|
-
|
|
2098
|
+
create_inference_v3_deployment_request: CreateInferenceV3DeploymentRequest,
|
|
2065
2099
|
_request_timeout: Union[
|
|
2066
2100
|
None,
|
|
2067
2101
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2075,11 +2109,11 @@ class EXTERNALApi:
|
|
|
2075
2109
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2076
2110
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2077
2111
|
) -> RESTResponseType:
|
|
2078
|
-
"""Create
|
|
2112
|
+
"""Create Inference V3 Deployment
|
|
2079
2113
|
|
|
2080
2114
|
|
|
2081
|
-
:param
|
|
2082
|
-
:type
|
|
2115
|
+
:param create_inference_v3_deployment_request: (required)
|
|
2116
|
+
:type create_inference_v3_deployment_request: CreateInferenceV3DeploymentRequest
|
|
2083
2117
|
:param _request_timeout: timeout setting for this request. If one
|
|
2084
2118
|
number provided, it will be total request
|
|
2085
2119
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2102,8 +2136,8 @@ class EXTERNALApi:
|
|
|
2102
2136
|
:return: Returns the result object.
|
|
2103
2137
|
""" # noqa: E501
|
|
2104
2138
|
|
|
2105
|
-
_param = self.
|
|
2106
|
-
|
|
2139
|
+
_param = self._create_inference_v3_deployment_deployments_inference_v3_post_serialize(
|
|
2140
|
+
create_inference_v3_deployment_request=create_inference_v3_deployment_request,
|
|
2107
2141
|
_request_auth=_request_auth,
|
|
2108
2142
|
_content_type=_content_type,
|
|
2109
2143
|
_headers=_headers,
|
|
@@ -2111,7 +2145,7 @@ class EXTERNALApi:
|
|
|
2111
2145
|
)
|
|
2112
2146
|
|
|
2113
2147
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2114
|
-
'200': "
|
|
2148
|
+
'200': "CreateInferenceDeploymentResponse",
|
|
2115
2149
|
'422': "HTTPValidationError",
|
|
2116
2150
|
}
|
|
2117
2151
|
response_data = self.api_client.call_api(
|
|
@@ -2121,9 +2155,9 @@ class EXTERNALApi:
|
|
|
2121
2155
|
return response_data.response
|
|
2122
2156
|
|
|
2123
2157
|
|
|
2124
|
-
def
|
|
2158
|
+
def _create_inference_v3_deployment_deployments_inference_v3_post_serialize(
|
|
2125
2159
|
self,
|
|
2126
|
-
|
|
2160
|
+
create_inference_v3_deployment_request,
|
|
2127
2161
|
_request_auth,
|
|
2128
2162
|
_content_type,
|
|
2129
2163
|
_headers,
|
|
@@ -2149,8 +2183,8 @@ class EXTERNALApi:
|
|
|
2149
2183
|
# process the header parameters
|
|
2150
2184
|
# process the form parameters
|
|
2151
2185
|
# process the body parameter
|
|
2152
|
-
if
|
|
2153
|
-
_body_params =
|
|
2186
|
+
if create_inference_v3_deployment_request is not None:
|
|
2187
|
+
_body_params = create_inference_v3_deployment_request
|
|
2154
2188
|
|
|
2155
2189
|
|
|
2156
2190
|
# set the HTTP header `Accept`
|
|
@@ -2182,7 +2216,7 @@ class EXTERNALApi:
|
|
|
2182
2216
|
|
|
2183
2217
|
return self.api_client.param_serialize(
|
|
2184
2218
|
method='POST',
|
|
2185
|
-
resource_path='/deployments/
|
|
2219
|
+
resource_path='/deployments/inference_v3',
|
|
2186
2220
|
path_params=_path_params,
|
|
2187
2221
|
query_params=_query_params,
|
|
2188
2222
|
header_params=_header_params,
|
|
@@ -2199,9 +2233,9 @@ class EXTERNALApi:
|
|
|
2199
2233
|
|
|
2200
2234
|
|
|
2201
2235
|
@validate_call
|
|
2202
|
-
def
|
|
2236
|
+
def create_job_deployment_deployments_job_post(
|
|
2203
2237
|
self,
|
|
2204
|
-
|
|
2238
|
+
create_job_deployment_request: CreateJobDeploymentRequest,
|
|
2205
2239
|
_request_timeout: Union[
|
|
2206
2240
|
None,
|
|
2207
2241
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2214,12 +2248,12 @@ class EXTERNALApi:
|
|
|
2214
2248
|
_content_type: Optional[StrictStr] = None,
|
|
2215
2249
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2216
2250
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2217
|
-
) ->
|
|
2218
|
-
"""Create
|
|
2251
|
+
) -> CreateJobDeploymentResponse:
|
|
2252
|
+
"""Create Job Deployment
|
|
2219
2253
|
|
|
2220
2254
|
|
|
2221
|
-
:param
|
|
2222
|
-
:type
|
|
2255
|
+
:param create_job_deployment_request: (required)
|
|
2256
|
+
:type create_job_deployment_request: CreateJobDeploymentRequest
|
|
2223
2257
|
:param _request_timeout: timeout setting for this request. If one
|
|
2224
2258
|
number provided, it will be total request
|
|
2225
2259
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2242,8 +2276,8 @@ class EXTERNALApi:
|
|
|
2242
2276
|
:return: Returns the result object.
|
|
2243
2277
|
""" # noqa: E501
|
|
2244
2278
|
|
|
2245
|
-
_param = self.
|
|
2246
|
-
|
|
2279
|
+
_param = self._create_job_deployment_deployments_job_post_serialize(
|
|
2280
|
+
create_job_deployment_request=create_job_deployment_request,
|
|
2247
2281
|
_request_auth=_request_auth,
|
|
2248
2282
|
_content_type=_content_type,
|
|
2249
2283
|
_headers=_headers,
|
|
@@ -2251,7 +2285,7 @@ class EXTERNALApi:
|
|
|
2251
2285
|
)
|
|
2252
2286
|
|
|
2253
2287
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2254
|
-
'200': "
|
|
2288
|
+
'200': "CreateJobDeploymentResponse",
|
|
2255
2289
|
'422': "HTTPValidationError",
|
|
2256
2290
|
}
|
|
2257
2291
|
response_data = self.api_client.call_api(
|
|
@@ -2266,9 +2300,9 @@ class EXTERNALApi:
|
|
|
2266
2300
|
|
|
2267
2301
|
|
|
2268
2302
|
@validate_call
|
|
2269
|
-
def
|
|
2303
|
+
def create_job_deployment_deployments_job_post_with_http_info(
|
|
2270
2304
|
self,
|
|
2271
|
-
|
|
2305
|
+
create_job_deployment_request: CreateJobDeploymentRequest,
|
|
2272
2306
|
_request_timeout: Union[
|
|
2273
2307
|
None,
|
|
2274
2308
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2281,12 +2315,12 @@ class EXTERNALApi:
|
|
|
2281
2315
|
_content_type: Optional[StrictStr] = None,
|
|
2282
2316
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2283
2317
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2284
|
-
) -> ApiResponse[
|
|
2285
|
-
"""Create
|
|
2318
|
+
) -> ApiResponse[CreateJobDeploymentResponse]:
|
|
2319
|
+
"""Create Job Deployment
|
|
2286
2320
|
|
|
2287
2321
|
|
|
2288
|
-
:param
|
|
2289
|
-
:type
|
|
2322
|
+
:param create_job_deployment_request: (required)
|
|
2323
|
+
:type create_job_deployment_request: CreateJobDeploymentRequest
|
|
2290
2324
|
:param _request_timeout: timeout setting for this request. If one
|
|
2291
2325
|
number provided, it will be total request
|
|
2292
2326
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2309,8 +2343,8 @@ class EXTERNALApi:
|
|
|
2309
2343
|
:return: Returns the result object.
|
|
2310
2344
|
""" # noqa: E501
|
|
2311
2345
|
|
|
2312
|
-
_param = self.
|
|
2313
|
-
|
|
2346
|
+
_param = self._create_job_deployment_deployments_job_post_serialize(
|
|
2347
|
+
create_job_deployment_request=create_job_deployment_request,
|
|
2314
2348
|
_request_auth=_request_auth,
|
|
2315
2349
|
_content_type=_content_type,
|
|
2316
2350
|
_headers=_headers,
|
|
@@ -2318,7 +2352,7 @@ class EXTERNALApi:
|
|
|
2318
2352
|
)
|
|
2319
2353
|
|
|
2320
2354
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2321
|
-
'200': "
|
|
2355
|
+
'200': "CreateJobDeploymentResponse",
|
|
2322
2356
|
'422': "HTTPValidationError",
|
|
2323
2357
|
}
|
|
2324
2358
|
response_data = self.api_client.call_api(
|
|
@@ -2333,9 +2367,9 @@ class EXTERNALApi:
|
|
|
2333
2367
|
|
|
2334
2368
|
|
|
2335
2369
|
@validate_call
|
|
2336
|
-
def
|
|
2370
|
+
def create_job_deployment_deployments_job_post_without_preload_content(
|
|
2337
2371
|
self,
|
|
2338
|
-
|
|
2372
|
+
create_job_deployment_request: CreateJobDeploymentRequest,
|
|
2339
2373
|
_request_timeout: Union[
|
|
2340
2374
|
None,
|
|
2341
2375
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2349,11 +2383,11 @@ class EXTERNALApi:
|
|
|
2349
2383
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2350
2384
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2351
2385
|
) -> RESTResponseType:
|
|
2352
|
-
"""Create
|
|
2386
|
+
"""Create Job Deployment
|
|
2353
2387
|
|
|
2354
2388
|
|
|
2355
|
-
:param
|
|
2356
|
-
:type
|
|
2389
|
+
:param create_job_deployment_request: (required)
|
|
2390
|
+
:type create_job_deployment_request: CreateJobDeploymentRequest
|
|
2357
2391
|
:param _request_timeout: timeout setting for this request. If one
|
|
2358
2392
|
number provided, it will be total request
|
|
2359
2393
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2376,8 +2410,8 @@ class EXTERNALApi:
|
|
|
2376
2410
|
:return: Returns the result object.
|
|
2377
2411
|
""" # noqa: E501
|
|
2378
2412
|
|
|
2379
|
-
_param = self.
|
|
2380
|
-
|
|
2413
|
+
_param = self._create_job_deployment_deployments_job_post_serialize(
|
|
2414
|
+
create_job_deployment_request=create_job_deployment_request,
|
|
2381
2415
|
_request_auth=_request_auth,
|
|
2382
2416
|
_content_type=_content_type,
|
|
2383
2417
|
_headers=_headers,
|
|
@@ -2385,7 +2419,7 @@ class EXTERNALApi:
|
|
|
2385
2419
|
)
|
|
2386
2420
|
|
|
2387
2421
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2388
|
-
'200': "
|
|
2422
|
+
'200': "CreateJobDeploymentResponse",
|
|
2389
2423
|
'422': "HTTPValidationError",
|
|
2390
2424
|
}
|
|
2391
2425
|
response_data = self.api_client.call_api(
|
|
@@ -2395,9 +2429,9 @@ class EXTERNALApi:
|
|
|
2395
2429
|
return response_data.response
|
|
2396
2430
|
|
|
2397
2431
|
|
|
2398
|
-
def
|
|
2432
|
+
def _create_job_deployment_deployments_job_post_serialize(
|
|
2399
2433
|
self,
|
|
2400
|
-
|
|
2434
|
+
create_job_deployment_request,
|
|
2401
2435
|
_request_auth,
|
|
2402
2436
|
_content_type,
|
|
2403
2437
|
_headers,
|
|
@@ -2423,8 +2457,8 @@ class EXTERNALApi:
|
|
|
2423
2457
|
# process the header parameters
|
|
2424
2458
|
# process the form parameters
|
|
2425
2459
|
# process the body parameter
|
|
2426
|
-
if
|
|
2427
|
-
_body_params =
|
|
2460
|
+
if create_job_deployment_request is not None:
|
|
2461
|
+
_body_params = create_job_deployment_request
|
|
2428
2462
|
|
|
2429
2463
|
|
|
2430
2464
|
# set the HTTP header `Accept`
|
|
@@ -2456,7 +2490,7 @@ class EXTERNALApi:
|
|
|
2456
2490
|
|
|
2457
2491
|
return self.api_client.param_serialize(
|
|
2458
2492
|
method='POST',
|
|
2459
|
-
resource_path='/
|
|
2493
|
+
resource_path='/deployments/job',
|
|
2460
2494
|
path_params=_path_params,
|
|
2461
2495
|
query_params=_query_params,
|
|
2462
2496
|
header_params=_header_params,
|
|
@@ -2473,9 +2507,9 @@ class EXTERNALApi:
|
|
|
2473
2507
|
|
|
2474
2508
|
|
|
2475
2509
|
@validate_call
|
|
2476
|
-
def
|
|
2510
|
+
def create_new_organization_organizations_post(
|
|
2477
2511
|
self,
|
|
2478
|
-
|
|
2512
|
+
create_organization_request: CreateOrganizationRequest,
|
|
2479
2513
|
_request_timeout: Union[
|
|
2480
2514
|
None,
|
|
2481
2515
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2488,12 +2522,12 @@ class EXTERNALApi:
|
|
|
2488
2522
|
_content_type: Optional[StrictStr] = None,
|
|
2489
2523
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2490
2524
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2491
|
-
) ->
|
|
2492
|
-
"""Create
|
|
2525
|
+
) -> CreateOrganizationResponse:
|
|
2526
|
+
"""Create New Organization
|
|
2493
2527
|
|
|
2494
2528
|
|
|
2495
|
-
:param
|
|
2496
|
-
:type
|
|
2529
|
+
:param create_organization_request: (required)
|
|
2530
|
+
:type create_organization_request: CreateOrganizationRequest
|
|
2497
2531
|
:param _request_timeout: timeout setting for this request. If one
|
|
2498
2532
|
number provided, it will be total request
|
|
2499
2533
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2516,8 +2550,8 @@ class EXTERNALApi:
|
|
|
2516
2550
|
:return: Returns the result object.
|
|
2517
2551
|
""" # noqa: E501
|
|
2518
2552
|
|
|
2519
|
-
_param = self.
|
|
2520
|
-
|
|
2553
|
+
_param = self._create_new_organization_organizations_post_serialize(
|
|
2554
|
+
create_organization_request=create_organization_request,
|
|
2521
2555
|
_request_auth=_request_auth,
|
|
2522
2556
|
_content_type=_content_type,
|
|
2523
2557
|
_headers=_headers,
|
|
@@ -2525,7 +2559,7 @@ class EXTERNALApi:
|
|
|
2525
2559
|
)
|
|
2526
2560
|
|
|
2527
2561
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2528
|
-
'
|
|
2562
|
+
'200': "CreateOrganizationResponse",
|
|
2529
2563
|
'422': "HTTPValidationError",
|
|
2530
2564
|
}
|
|
2531
2565
|
response_data = self.api_client.call_api(
|
|
@@ -2540,9 +2574,9 @@ class EXTERNALApi:
|
|
|
2540
2574
|
|
|
2541
2575
|
|
|
2542
2576
|
@validate_call
|
|
2543
|
-
def
|
|
2577
|
+
def create_new_organization_organizations_post_with_http_info(
|
|
2544
2578
|
self,
|
|
2545
|
-
|
|
2579
|
+
create_organization_request: CreateOrganizationRequest,
|
|
2546
2580
|
_request_timeout: Union[
|
|
2547
2581
|
None,
|
|
2548
2582
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2555,12 +2589,12 @@ class EXTERNALApi:
|
|
|
2555
2589
|
_content_type: Optional[StrictStr] = None,
|
|
2556
2590
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2557
2591
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2558
|
-
) -> ApiResponse[
|
|
2559
|
-
"""Create
|
|
2592
|
+
) -> ApiResponse[CreateOrganizationResponse]:
|
|
2593
|
+
"""Create New Organization
|
|
2560
2594
|
|
|
2561
2595
|
|
|
2562
|
-
:param
|
|
2563
|
-
:type
|
|
2596
|
+
:param create_organization_request: (required)
|
|
2597
|
+
:type create_organization_request: CreateOrganizationRequest
|
|
2564
2598
|
:param _request_timeout: timeout setting for this request. If one
|
|
2565
2599
|
number provided, it will be total request
|
|
2566
2600
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2583,8 +2617,8 @@ class EXTERNALApi:
|
|
|
2583
2617
|
:return: Returns the result object.
|
|
2584
2618
|
""" # noqa: E501
|
|
2585
2619
|
|
|
2586
|
-
_param = self.
|
|
2587
|
-
|
|
2620
|
+
_param = self._create_new_organization_organizations_post_serialize(
|
|
2621
|
+
create_organization_request=create_organization_request,
|
|
2588
2622
|
_request_auth=_request_auth,
|
|
2589
2623
|
_content_type=_content_type,
|
|
2590
2624
|
_headers=_headers,
|
|
@@ -2592,7 +2626,7 @@ class EXTERNALApi:
|
|
|
2592
2626
|
)
|
|
2593
2627
|
|
|
2594
2628
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2595
|
-
'
|
|
2629
|
+
'200': "CreateOrganizationResponse",
|
|
2596
2630
|
'422': "HTTPValidationError",
|
|
2597
2631
|
}
|
|
2598
2632
|
response_data = self.api_client.call_api(
|
|
@@ -2607,9 +2641,9 @@ class EXTERNALApi:
|
|
|
2607
2641
|
|
|
2608
2642
|
|
|
2609
2643
|
@validate_call
|
|
2610
|
-
def
|
|
2644
|
+
def create_new_organization_organizations_post_without_preload_content(
|
|
2611
2645
|
self,
|
|
2612
|
-
|
|
2646
|
+
create_organization_request: CreateOrganizationRequest,
|
|
2613
2647
|
_request_timeout: Union[
|
|
2614
2648
|
None,
|
|
2615
2649
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2623,11 +2657,11 @@ class EXTERNALApi:
|
|
|
2623
2657
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2624
2658
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2625
2659
|
) -> RESTResponseType:
|
|
2626
|
-
"""Create
|
|
2660
|
+
"""Create New Organization
|
|
2627
2661
|
|
|
2628
2662
|
|
|
2629
|
-
:param
|
|
2630
|
-
:type
|
|
2663
|
+
:param create_organization_request: (required)
|
|
2664
|
+
:type create_organization_request: CreateOrganizationRequest
|
|
2631
2665
|
:param _request_timeout: timeout setting for this request. If one
|
|
2632
2666
|
number provided, it will be total request
|
|
2633
2667
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2650,8 +2684,8 @@ class EXTERNALApi:
|
|
|
2650
2684
|
:return: Returns the result object.
|
|
2651
2685
|
""" # noqa: E501
|
|
2652
2686
|
|
|
2653
|
-
_param = self.
|
|
2654
|
-
|
|
2687
|
+
_param = self._create_new_organization_organizations_post_serialize(
|
|
2688
|
+
create_organization_request=create_organization_request,
|
|
2655
2689
|
_request_auth=_request_auth,
|
|
2656
2690
|
_content_type=_content_type,
|
|
2657
2691
|
_headers=_headers,
|
|
@@ -2659,7 +2693,7 @@ class EXTERNALApi:
|
|
|
2659
2693
|
)
|
|
2660
2694
|
|
|
2661
2695
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2662
|
-
'
|
|
2696
|
+
'200': "CreateOrganizationResponse",
|
|
2663
2697
|
'422': "HTTPValidationError",
|
|
2664
2698
|
}
|
|
2665
2699
|
response_data = self.api_client.call_api(
|
|
@@ -2669,9 +2703,9 @@ class EXTERNALApi:
|
|
|
2669
2703
|
return response_data.response
|
|
2670
2704
|
|
|
2671
2705
|
|
|
2672
|
-
def
|
|
2706
|
+
def _create_new_organization_organizations_post_serialize(
|
|
2673
2707
|
self,
|
|
2674
|
-
|
|
2708
|
+
create_organization_request,
|
|
2675
2709
|
_request_auth,
|
|
2676
2710
|
_content_type,
|
|
2677
2711
|
_headers,
|
|
@@ -2697,8 +2731,8 @@ class EXTERNALApi:
|
|
|
2697
2731
|
# process the header parameters
|
|
2698
2732
|
# process the form parameters
|
|
2699
2733
|
# process the body parameter
|
|
2700
|
-
if
|
|
2701
|
-
_body_params =
|
|
2734
|
+
if create_organization_request is not None:
|
|
2735
|
+
_body_params = create_organization_request
|
|
2702
2736
|
|
|
2703
2737
|
|
|
2704
2738
|
# set the HTTP header `Accept`
|
|
@@ -2730,7 +2764,7 @@ class EXTERNALApi:
|
|
|
2730
2764
|
|
|
2731
2765
|
return self.api_client.param_serialize(
|
|
2732
2766
|
method='POST',
|
|
2733
|
-
resource_path='/
|
|
2767
|
+
resource_path='/organizations',
|
|
2734
2768
|
path_params=_path_params,
|
|
2735
2769
|
query_params=_query_params,
|
|
2736
2770
|
header_params=_header_params,
|
|
@@ -2747,9 +2781,9 @@ class EXTERNALApi:
|
|
|
2747
2781
|
|
|
2748
2782
|
|
|
2749
2783
|
@validate_call
|
|
2750
|
-
def
|
|
2784
|
+
def create_service_account_service_accounts_post(
|
|
2751
2785
|
self,
|
|
2752
|
-
|
|
2786
|
+
create_service_account_request: CreateServiceAccountRequest,
|
|
2753
2787
|
_request_timeout: Union[
|
|
2754
2788
|
None,
|
|
2755
2789
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2762,13 +2796,12 @@ class EXTERNALApi:
|
|
|
2762
2796
|
_content_type: Optional[StrictStr] = None,
|
|
2763
2797
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2764
2798
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2765
|
-
) ->
|
|
2766
|
-
"""Create
|
|
2799
|
+
) -> CreateServiceAccountResponse:
|
|
2800
|
+
"""Create Service Account
|
|
2767
2801
|
|
|
2768
|
-
Create a volume. The backend field selects block (RWO) or object (RWX) storage.
|
|
2769
2802
|
|
|
2770
|
-
:param
|
|
2771
|
-
:type
|
|
2803
|
+
:param create_service_account_request: (required)
|
|
2804
|
+
:type create_service_account_request: CreateServiceAccountRequest
|
|
2772
2805
|
:param _request_timeout: timeout setting for this request. If one
|
|
2773
2806
|
number provided, it will be total request
|
|
2774
2807
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2791,8 +2824,8 @@ class EXTERNALApi:
|
|
|
2791
2824
|
:return: Returns the result object.
|
|
2792
2825
|
""" # noqa: E501
|
|
2793
2826
|
|
|
2794
|
-
_param = self.
|
|
2795
|
-
|
|
2827
|
+
_param = self._create_service_account_service_accounts_post_serialize(
|
|
2828
|
+
create_service_account_request=create_service_account_request,
|
|
2796
2829
|
_request_auth=_request_auth,
|
|
2797
2830
|
_content_type=_content_type,
|
|
2798
2831
|
_headers=_headers,
|
|
@@ -2800,7 +2833,7 @@ class EXTERNALApi:
|
|
|
2800
2833
|
)
|
|
2801
2834
|
|
|
2802
2835
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2803
|
-
'
|
|
2836
|
+
'201': "CreateServiceAccountResponse",
|
|
2804
2837
|
'422': "HTTPValidationError",
|
|
2805
2838
|
}
|
|
2806
2839
|
response_data = self.api_client.call_api(
|
|
@@ -2815,9 +2848,9 @@ class EXTERNALApi:
|
|
|
2815
2848
|
|
|
2816
2849
|
|
|
2817
2850
|
@validate_call
|
|
2818
|
-
def
|
|
2851
|
+
def create_service_account_service_accounts_post_with_http_info(
|
|
2819
2852
|
self,
|
|
2820
|
-
|
|
2853
|
+
create_service_account_request: CreateServiceAccountRequest,
|
|
2821
2854
|
_request_timeout: Union[
|
|
2822
2855
|
None,
|
|
2823
2856
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2830,13 +2863,12 @@ class EXTERNALApi:
|
|
|
2830
2863
|
_content_type: Optional[StrictStr] = None,
|
|
2831
2864
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2832
2865
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2833
|
-
) -> ApiResponse[
|
|
2834
|
-
"""Create
|
|
2866
|
+
) -> ApiResponse[CreateServiceAccountResponse]:
|
|
2867
|
+
"""Create Service Account
|
|
2835
2868
|
|
|
2836
|
-
Create a volume. The backend field selects block (RWO) or object (RWX) storage.
|
|
2837
2869
|
|
|
2838
|
-
:param
|
|
2839
|
-
:type
|
|
2870
|
+
:param create_service_account_request: (required)
|
|
2871
|
+
:type create_service_account_request: CreateServiceAccountRequest
|
|
2840
2872
|
:param _request_timeout: timeout setting for this request. If one
|
|
2841
2873
|
number provided, it will be total request
|
|
2842
2874
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2859,8 +2891,8 @@ class EXTERNALApi:
|
|
|
2859
2891
|
:return: Returns the result object.
|
|
2860
2892
|
""" # noqa: E501
|
|
2861
2893
|
|
|
2862
|
-
_param = self.
|
|
2863
|
-
|
|
2894
|
+
_param = self._create_service_account_service_accounts_post_serialize(
|
|
2895
|
+
create_service_account_request=create_service_account_request,
|
|
2864
2896
|
_request_auth=_request_auth,
|
|
2865
2897
|
_content_type=_content_type,
|
|
2866
2898
|
_headers=_headers,
|
|
@@ -2868,7 +2900,7 @@ class EXTERNALApi:
|
|
|
2868
2900
|
)
|
|
2869
2901
|
|
|
2870
2902
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2871
|
-
'
|
|
2903
|
+
'201': "CreateServiceAccountResponse",
|
|
2872
2904
|
'422': "HTTPValidationError",
|
|
2873
2905
|
}
|
|
2874
2906
|
response_data = self.api_client.call_api(
|
|
@@ -2883,9 +2915,9 @@ class EXTERNALApi:
|
|
|
2883
2915
|
|
|
2884
2916
|
|
|
2885
2917
|
@validate_call
|
|
2886
|
-
def
|
|
2918
|
+
def create_service_account_service_accounts_post_without_preload_content(
|
|
2887
2919
|
self,
|
|
2888
|
-
|
|
2920
|
+
create_service_account_request: CreateServiceAccountRequest,
|
|
2889
2921
|
_request_timeout: Union[
|
|
2890
2922
|
None,
|
|
2891
2923
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2899,12 +2931,11 @@ class EXTERNALApi:
|
|
|
2899
2931
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2900
2932
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2901
2933
|
) -> RESTResponseType:
|
|
2902
|
-
"""Create
|
|
2934
|
+
"""Create Service Account
|
|
2903
2935
|
|
|
2904
|
-
Create a volume. The backend field selects block (RWO) or object (RWX) storage.
|
|
2905
2936
|
|
|
2906
|
-
:param
|
|
2907
|
-
:type
|
|
2937
|
+
:param create_service_account_request: (required)
|
|
2938
|
+
:type create_service_account_request: CreateServiceAccountRequest
|
|
2908
2939
|
:param _request_timeout: timeout setting for this request. If one
|
|
2909
2940
|
number provided, it will be total request
|
|
2910
2941
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2927,8 +2958,8 @@ class EXTERNALApi:
|
|
|
2927
2958
|
:return: Returns the result object.
|
|
2928
2959
|
""" # noqa: E501
|
|
2929
2960
|
|
|
2930
|
-
_param = self.
|
|
2931
|
-
|
|
2961
|
+
_param = self._create_service_account_service_accounts_post_serialize(
|
|
2962
|
+
create_service_account_request=create_service_account_request,
|
|
2932
2963
|
_request_auth=_request_auth,
|
|
2933
2964
|
_content_type=_content_type,
|
|
2934
2965
|
_headers=_headers,
|
|
@@ -2936,7 +2967,7 @@ class EXTERNALApi:
|
|
|
2936
2967
|
)
|
|
2937
2968
|
|
|
2938
2969
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2939
|
-
'
|
|
2970
|
+
'201': "CreateServiceAccountResponse",
|
|
2940
2971
|
'422': "HTTPValidationError",
|
|
2941
2972
|
}
|
|
2942
2973
|
response_data = self.api_client.call_api(
|
|
@@ -2946,9 +2977,9 @@ class EXTERNALApi:
|
|
|
2946
2977
|
return response_data.response
|
|
2947
2978
|
|
|
2948
2979
|
|
|
2949
|
-
def
|
|
2980
|
+
def _create_service_account_service_accounts_post_serialize(
|
|
2950
2981
|
self,
|
|
2951
|
-
|
|
2982
|
+
create_service_account_request,
|
|
2952
2983
|
_request_auth,
|
|
2953
2984
|
_content_type,
|
|
2954
2985
|
_headers,
|
|
@@ -2974,8 +3005,8 @@ class EXTERNALApi:
|
|
|
2974
3005
|
# process the header parameters
|
|
2975
3006
|
# process the form parameters
|
|
2976
3007
|
# process the body parameter
|
|
2977
|
-
if
|
|
2978
|
-
_body_params =
|
|
3008
|
+
if create_service_account_request is not None:
|
|
3009
|
+
_body_params = create_service_account_request
|
|
2979
3010
|
|
|
2980
3011
|
|
|
2981
3012
|
# set the HTTP header `Accept`
|
|
@@ -3007,7 +3038,7 @@ class EXTERNALApi:
|
|
|
3007
3038
|
|
|
3008
3039
|
return self.api_client.param_serialize(
|
|
3009
3040
|
method='POST',
|
|
3010
|
-
resource_path='/
|
|
3041
|
+
resource_path='/service-accounts',
|
|
3011
3042
|
path_params=_path_params,
|
|
3012
3043
|
query_params=_query_params,
|
|
3013
3044
|
header_params=_header_params,
|
|
@@ -3024,9 +3055,9 @@ class EXTERNALApi:
|
|
|
3024
3055
|
|
|
3025
3056
|
|
|
3026
3057
|
@validate_call
|
|
3027
|
-
def
|
|
3058
|
+
def create_volume_endpoint_volumes_post(
|
|
3028
3059
|
self,
|
|
3029
|
-
|
|
3060
|
+
create_volume_request: CreateVolumeRequest,
|
|
3030
3061
|
_request_timeout: Union[
|
|
3031
3062
|
None,
|
|
3032
3063
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3039,12 +3070,13 @@ class EXTERNALApi:
|
|
|
3039
3070
|
_content_type: Optional[StrictStr] = None,
|
|
3040
3071
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3041
3072
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3042
|
-
) ->
|
|
3043
|
-
"""
|
|
3073
|
+
) -> GetVolumeResponse:
|
|
3074
|
+
"""Create Volume Endpoint
|
|
3044
3075
|
|
|
3076
|
+
Create a volume. Only the block backend is provisioned; object lands in CCL-147.
|
|
3045
3077
|
|
|
3046
|
-
:param
|
|
3047
|
-
:type
|
|
3078
|
+
:param create_volume_request: (required)
|
|
3079
|
+
:type create_volume_request: CreateVolumeRequest
|
|
3048
3080
|
:param _request_timeout: timeout setting for this request. If one
|
|
3049
3081
|
number provided, it will be total request
|
|
3050
3082
|
timeout. It can also be a pair (tuple) of
|
|
@@ -3067,8 +3099,8 @@ class EXTERNALApi:
|
|
|
3067
3099
|
:return: Returns the result object.
|
|
3068
3100
|
""" # noqa: E501
|
|
3069
3101
|
|
|
3070
|
-
_param = self.
|
|
3071
|
-
|
|
3102
|
+
_param = self._create_volume_endpoint_volumes_post_serialize(
|
|
3103
|
+
create_volume_request=create_volume_request,
|
|
3072
3104
|
_request_auth=_request_auth,
|
|
3073
3105
|
_content_type=_content_type,
|
|
3074
3106
|
_headers=_headers,
|
|
@@ -3076,7 +3108,7 @@ class EXTERNALApi:
|
|
|
3076
3108
|
)
|
|
3077
3109
|
|
|
3078
3110
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3079
|
-
'200': "
|
|
3111
|
+
'200': "GetVolumeResponse",
|
|
3080
3112
|
'422': "HTTPValidationError",
|
|
3081
3113
|
}
|
|
3082
3114
|
response_data = self.api_client.call_api(
|
|
@@ -3091,9 +3123,9 @@ class EXTERNALApi:
|
|
|
3091
3123
|
|
|
3092
3124
|
|
|
3093
3125
|
@validate_call
|
|
3094
|
-
def
|
|
3126
|
+
def create_volume_endpoint_volumes_post_with_http_info(
|
|
3095
3127
|
self,
|
|
3096
|
-
|
|
3128
|
+
create_volume_request: CreateVolumeRequest,
|
|
3097
3129
|
_request_timeout: Union[
|
|
3098
3130
|
None,
|
|
3099
3131
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3106,12 +3138,13 @@ class EXTERNALApi:
|
|
|
3106
3138
|
_content_type: Optional[StrictStr] = None,
|
|
3107
3139
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3108
3140
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3109
|
-
) -> ApiResponse[
|
|
3110
|
-
"""
|
|
3141
|
+
) -> ApiResponse[GetVolumeResponse]:
|
|
3142
|
+
"""Create Volume Endpoint
|
|
3111
3143
|
|
|
3144
|
+
Create a volume. Only the block backend is provisioned; object lands in CCL-147.
|
|
3112
3145
|
|
|
3113
|
-
:param
|
|
3114
|
-
:type
|
|
3146
|
+
:param create_volume_request: (required)
|
|
3147
|
+
:type create_volume_request: CreateVolumeRequest
|
|
3115
3148
|
:param _request_timeout: timeout setting for this request. If one
|
|
3116
3149
|
number provided, it will be total request
|
|
3117
3150
|
timeout. It can also be a pair (tuple) of
|
|
@@ -3134,8 +3167,8 @@ class EXTERNALApi:
|
|
|
3134
3167
|
:return: Returns the result object.
|
|
3135
3168
|
""" # noqa: E501
|
|
3136
3169
|
|
|
3137
|
-
_param = self.
|
|
3138
|
-
|
|
3170
|
+
_param = self._create_volume_endpoint_volumes_post_serialize(
|
|
3171
|
+
create_volume_request=create_volume_request,
|
|
3139
3172
|
_request_auth=_request_auth,
|
|
3140
3173
|
_content_type=_content_type,
|
|
3141
3174
|
_headers=_headers,
|
|
@@ -3143,7 +3176,7 @@ class EXTERNALApi:
|
|
|
3143
3176
|
)
|
|
3144
3177
|
|
|
3145
3178
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3146
|
-
'200': "
|
|
3179
|
+
'200': "GetVolumeResponse",
|
|
3147
3180
|
'422': "HTTPValidationError",
|
|
3148
3181
|
}
|
|
3149
3182
|
response_data = self.api_client.call_api(
|
|
@@ -3158,9 +3191,9 @@ class EXTERNALApi:
|
|
|
3158
3191
|
|
|
3159
3192
|
|
|
3160
3193
|
@validate_call
|
|
3161
|
-
def
|
|
3194
|
+
def create_volume_endpoint_volumes_post_without_preload_content(
|
|
3162
3195
|
self,
|
|
3163
|
-
|
|
3196
|
+
create_volume_request: CreateVolumeRequest,
|
|
3164
3197
|
_request_timeout: Union[
|
|
3165
3198
|
None,
|
|
3166
3199
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3174,11 +3207,12 @@ class EXTERNALApi:
|
|
|
3174
3207
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3175
3208
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3176
3209
|
) -> RESTResponseType:
|
|
3177
|
-
"""
|
|
3210
|
+
"""Create Volume Endpoint
|
|
3178
3211
|
|
|
3212
|
+
Create a volume. Only the block backend is provisioned; object lands in CCL-147.
|
|
3179
3213
|
|
|
3180
|
-
:param
|
|
3181
|
-
:type
|
|
3214
|
+
:param create_volume_request: (required)
|
|
3215
|
+
:type create_volume_request: CreateVolumeRequest
|
|
3182
3216
|
:param _request_timeout: timeout setting for this request. If one
|
|
3183
3217
|
number provided, it will be total request
|
|
3184
3218
|
timeout. It can also be a pair (tuple) of
|
|
@@ -3201,8 +3235,8 @@ class EXTERNALApi:
|
|
|
3201
3235
|
:return: Returns the result object.
|
|
3202
3236
|
""" # noqa: E501
|
|
3203
3237
|
|
|
3204
|
-
_param = self.
|
|
3205
|
-
|
|
3238
|
+
_param = self._create_volume_endpoint_volumes_post_serialize(
|
|
3239
|
+
create_volume_request=create_volume_request,
|
|
3206
3240
|
_request_auth=_request_auth,
|
|
3207
3241
|
_content_type=_content_type,
|
|
3208
3242
|
_headers=_headers,
|
|
@@ -3210,7 +3244,7 @@ class EXTERNALApi:
|
|
|
3210
3244
|
)
|
|
3211
3245
|
|
|
3212
3246
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3213
|
-
'200': "
|
|
3247
|
+
'200': "GetVolumeResponse",
|
|
3214
3248
|
'422': "HTTPValidationError",
|
|
3215
3249
|
}
|
|
3216
3250
|
response_data = self.api_client.call_api(
|
|
@@ -3220,9 +3254,9 @@ class EXTERNALApi:
|
|
|
3220
3254
|
return response_data.response
|
|
3221
3255
|
|
|
3222
3256
|
|
|
3223
|
-
def
|
|
3257
|
+
def _create_volume_endpoint_volumes_post_serialize(
|
|
3224
3258
|
self,
|
|
3225
|
-
|
|
3259
|
+
create_volume_request,
|
|
3226
3260
|
_request_auth,
|
|
3227
3261
|
_content_type,
|
|
3228
3262
|
_headers,
|
|
@@ -3244,12 +3278,12 @@ class EXTERNALApi:
|
|
|
3244
3278
|
_body_params: Optional[bytes] = None
|
|
3245
3279
|
|
|
3246
3280
|
# process the path parameters
|
|
3247
|
-
if cluster_id is not None:
|
|
3248
|
-
_path_params['cluster_id'] = cluster_id
|
|
3249
3281
|
# process the query parameters
|
|
3250
3282
|
# process the header parameters
|
|
3251
3283
|
# process the form parameters
|
|
3252
3284
|
# process the body parameter
|
|
3285
|
+
if create_volume_request is not None:
|
|
3286
|
+
_body_params = create_volume_request
|
|
3253
3287
|
|
|
3254
3288
|
|
|
3255
3289
|
# set the HTTP header `Accept`
|
|
@@ -3260,6 +3294,19 @@ class EXTERNALApi:
|
|
|
3260
3294
|
]
|
|
3261
3295
|
)
|
|
3262
3296
|
|
|
3297
|
+
# set the HTTP header `Content-Type`
|
|
3298
|
+
if _content_type:
|
|
3299
|
+
_header_params['Content-Type'] = _content_type
|
|
3300
|
+
else:
|
|
3301
|
+
_default_content_type = (
|
|
3302
|
+
self.api_client.select_header_content_type(
|
|
3303
|
+
[
|
|
3304
|
+
'application/json'
|
|
3305
|
+
]
|
|
3306
|
+
)
|
|
3307
|
+
)
|
|
3308
|
+
if _default_content_type is not None:
|
|
3309
|
+
_header_params['Content-Type'] = _default_content_type
|
|
3263
3310
|
|
|
3264
3311
|
# authentication setting
|
|
3265
3312
|
_auth_settings: List[str] = [
|
|
@@ -3267,9 +3314,9 @@ class EXTERNALApi:
|
|
|
3267
3314
|
]
|
|
3268
3315
|
|
|
3269
3316
|
return self.api_client.param_serialize(
|
|
3270
|
-
method='
|
|
3271
|
-
resource_path='/
|
|
3272
|
-
path_params=_path_params,
|
|
3317
|
+
method='POST',
|
|
3318
|
+
resource_path='/volumes',
|
|
3319
|
+
path_params=_path_params,
|
|
3273
3320
|
query_params=_query_params,
|
|
3274
3321
|
header_params=_header_params,
|
|
3275
3322
|
body=_body_params,
|
|
@@ -3285,9 +3332,9 @@ class EXTERNALApi:
|
|
|
3285
3332
|
|
|
3286
3333
|
|
|
3287
3334
|
@validate_call
|
|
3288
|
-
def
|
|
3335
|
+
def delete_cluster_clusters_cluster_id_delete(
|
|
3289
3336
|
self,
|
|
3290
|
-
|
|
3337
|
+
cluster_id: StrictInt,
|
|
3291
3338
|
_request_timeout: Union[
|
|
3292
3339
|
None,
|
|
3293
3340
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3300,12 +3347,12 @@ class EXTERNALApi:
|
|
|
3300
3347
|
_content_type: Optional[StrictStr] = None,
|
|
3301
3348
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3302
3349
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3303
|
-
) ->
|
|
3304
|
-
"""Delete
|
|
3350
|
+
) -> object:
|
|
3351
|
+
"""Delete Cluster
|
|
3305
3352
|
|
|
3306
3353
|
|
|
3307
|
-
:param
|
|
3308
|
-
:type
|
|
3354
|
+
:param cluster_id: (required)
|
|
3355
|
+
:type cluster_id: int
|
|
3309
3356
|
:param _request_timeout: timeout setting for this request. If one
|
|
3310
3357
|
number provided, it will be total request
|
|
3311
3358
|
timeout. It can also be a pair (tuple) of
|
|
@@ -3328,8 +3375,8 @@ class EXTERNALApi:
|
|
|
3328
3375
|
:return: Returns the result object.
|
|
3329
3376
|
""" # noqa: E501
|
|
3330
3377
|
|
|
3331
|
-
_param = self.
|
|
3332
|
-
|
|
3378
|
+
_param = self._delete_cluster_clusters_cluster_id_delete_serialize(
|
|
3379
|
+
cluster_id=cluster_id,
|
|
3333
3380
|
_request_auth=_request_auth,
|
|
3334
3381
|
_content_type=_content_type,
|
|
3335
3382
|
_headers=_headers,
|
|
@@ -3337,7 +3384,7 @@ class EXTERNALApi:
|
|
|
3337
3384
|
)
|
|
3338
3385
|
|
|
3339
3386
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3340
|
-
'
|
|
3387
|
+
'200': "object",
|
|
3341
3388
|
'422': "HTTPValidationError",
|
|
3342
3389
|
}
|
|
3343
3390
|
response_data = self.api_client.call_api(
|
|
@@ -3352,9 +3399,9 @@ class EXTERNALApi:
|
|
|
3352
3399
|
|
|
3353
3400
|
|
|
3354
3401
|
@validate_call
|
|
3355
|
-
def
|
|
3402
|
+
def delete_cluster_clusters_cluster_id_delete_with_http_info(
|
|
3356
3403
|
self,
|
|
3357
|
-
|
|
3404
|
+
cluster_id: StrictInt,
|
|
3358
3405
|
_request_timeout: Union[
|
|
3359
3406
|
None,
|
|
3360
3407
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3367,12 +3414,12 @@ class EXTERNALApi:
|
|
|
3367
3414
|
_content_type: Optional[StrictStr] = None,
|
|
3368
3415
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3369
3416
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3370
|
-
) -> ApiResponse[
|
|
3371
|
-
"""Delete
|
|
3417
|
+
) -> ApiResponse[object]:
|
|
3418
|
+
"""Delete Cluster
|
|
3372
3419
|
|
|
3373
3420
|
|
|
3374
|
-
:param
|
|
3375
|
-
:type
|
|
3421
|
+
:param cluster_id: (required)
|
|
3422
|
+
:type cluster_id: int
|
|
3376
3423
|
:param _request_timeout: timeout setting for this request. If one
|
|
3377
3424
|
number provided, it will be total request
|
|
3378
3425
|
timeout. It can also be a pair (tuple) of
|
|
@@ -3395,8 +3442,8 @@ class EXTERNALApi:
|
|
|
3395
3442
|
:return: Returns the result object.
|
|
3396
3443
|
""" # noqa: E501
|
|
3397
3444
|
|
|
3398
|
-
_param = self.
|
|
3399
|
-
|
|
3445
|
+
_param = self._delete_cluster_clusters_cluster_id_delete_serialize(
|
|
3446
|
+
cluster_id=cluster_id,
|
|
3400
3447
|
_request_auth=_request_auth,
|
|
3401
3448
|
_content_type=_content_type,
|
|
3402
3449
|
_headers=_headers,
|
|
@@ -3404,7 +3451,7 @@ class EXTERNALApi:
|
|
|
3404
3451
|
)
|
|
3405
3452
|
|
|
3406
3453
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3407
|
-
'
|
|
3454
|
+
'200': "object",
|
|
3408
3455
|
'422': "HTTPValidationError",
|
|
3409
3456
|
}
|
|
3410
3457
|
response_data = self.api_client.call_api(
|
|
@@ -3419,9 +3466,9 @@ class EXTERNALApi:
|
|
|
3419
3466
|
|
|
3420
3467
|
|
|
3421
3468
|
@validate_call
|
|
3422
|
-
def
|
|
3469
|
+
def delete_cluster_clusters_cluster_id_delete_without_preload_content(
|
|
3423
3470
|
self,
|
|
3424
|
-
|
|
3471
|
+
cluster_id: StrictInt,
|
|
3425
3472
|
_request_timeout: Union[
|
|
3426
3473
|
None,
|
|
3427
3474
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3435,11 +3482,11 @@ class EXTERNALApi:
|
|
|
3435
3482
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3436
3483
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3437
3484
|
) -> RESTResponseType:
|
|
3438
|
-
"""Delete
|
|
3485
|
+
"""Delete Cluster
|
|
3439
3486
|
|
|
3440
3487
|
|
|
3441
|
-
:param
|
|
3442
|
-
:type
|
|
3488
|
+
:param cluster_id: (required)
|
|
3489
|
+
:type cluster_id: int
|
|
3443
3490
|
:param _request_timeout: timeout setting for this request. If one
|
|
3444
3491
|
number provided, it will be total request
|
|
3445
3492
|
timeout. It can also be a pair (tuple) of
|
|
@@ -3462,8 +3509,8 @@ class EXTERNALApi:
|
|
|
3462
3509
|
:return: Returns the result object.
|
|
3463
3510
|
""" # noqa: E501
|
|
3464
3511
|
|
|
3465
|
-
_param = self.
|
|
3466
|
-
|
|
3512
|
+
_param = self._delete_cluster_clusters_cluster_id_delete_serialize(
|
|
3513
|
+
cluster_id=cluster_id,
|
|
3467
3514
|
_request_auth=_request_auth,
|
|
3468
3515
|
_content_type=_content_type,
|
|
3469
3516
|
_headers=_headers,
|
|
@@ -3471,7 +3518,7 @@ class EXTERNALApi:
|
|
|
3471
3518
|
)
|
|
3472
3519
|
|
|
3473
3520
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3474
|
-
'
|
|
3521
|
+
'200': "object",
|
|
3475
3522
|
'422': "HTTPValidationError",
|
|
3476
3523
|
}
|
|
3477
3524
|
response_data = self.api_client.call_api(
|
|
@@ -3481,9 +3528,9 @@ class EXTERNALApi:
|
|
|
3481
3528
|
return response_data.response
|
|
3482
3529
|
|
|
3483
3530
|
|
|
3484
|
-
def
|
|
3531
|
+
def _delete_cluster_clusters_cluster_id_delete_serialize(
|
|
3485
3532
|
self,
|
|
3486
|
-
|
|
3533
|
+
cluster_id,
|
|
3487
3534
|
_request_auth,
|
|
3488
3535
|
_content_type,
|
|
3489
3536
|
_headers,
|
|
@@ -3505,8 +3552,8 @@ class EXTERNALApi:
|
|
|
3505
3552
|
_body_params: Optional[bytes] = None
|
|
3506
3553
|
|
|
3507
3554
|
# process the path parameters
|
|
3508
|
-
if
|
|
3509
|
-
_path_params['
|
|
3555
|
+
if cluster_id is not None:
|
|
3556
|
+
_path_params['cluster_id'] = cluster_id
|
|
3510
3557
|
# process the query parameters
|
|
3511
3558
|
# process the header parameters
|
|
3512
3559
|
# process the form parameters
|
|
@@ -3529,7 +3576,7 @@ class EXTERNALApi:
|
|
|
3529
3576
|
|
|
3530
3577
|
return self.api_client.param_serialize(
|
|
3531
3578
|
method='DELETE',
|
|
3532
|
-
resource_path='/
|
|
3579
|
+
resource_path='/clusters/{cluster_id}',
|
|
3533
3580
|
path_params=_path_params,
|
|
3534
3581
|
query_params=_query_params,
|
|
3535
3582
|
header_params=_header_params,
|
|
@@ -3546,9 +3593,9 @@ class EXTERNALApi:
|
|
|
3546
3593
|
|
|
3547
3594
|
|
|
3548
3595
|
@validate_call
|
|
3549
|
-
def
|
|
3596
|
+
def delete_hardware_instance_hardware_instances_hardware_instance_id_delete(
|
|
3550
3597
|
self,
|
|
3551
|
-
|
|
3598
|
+
hardware_instance_id: StrictInt,
|
|
3552
3599
|
_request_timeout: Union[
|
|
3553
3600
|
None,
|
|
3554
3601
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3562,11 +3609,11 @@ class EXTERNALApi:
|
|
|
3562
3609
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3563
3610
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3564
3611
|
) -> None:
|
|
3565
|
-
"""Delete
|
|
3612
|
+
"""Delete Hardware Instance
|
|
3566
3613
|
|
|
3567
3614
|
|
|
3568
|
-
:param
|
|
3569
|
-
:type
|
|
3615
|
+
:param hardware_instance_id: (required)
|
|
3616
|
+
:type hardware_instance_id: int
|
|
3570
3617
|
:param _request_timeout: timeout setting for this request. If one
|
|
3571
3618
|
number provided, it will be total request
|
|
3572
3619
|
timeout. It can also be a pair (tuple) of
|
|
@@ -3589,8 +3636,8 @@ class EXTERNALApi:
|
|
|
3589
3636
|
:return: Returns the result object.
|
|
3590
3637
|
""" # noqa: E501
|
|
3591
3638
|
|
|
3592
|
-
_param = self.
|
|
3593
|
-
|
|
3639
|
+
_param = self._delete_hardware_instance_hardware_instances_hardware_instance_id_delete_serialize(
|
|
3640
|
+
hardware_instance_id=hardware_instance_id,
|
|
3594
3641
|
_request_auth=_request_auth,
|
|
3595
3642
|
_content_type=_content_type,
|
|
3596
3643
|
_headers=_headers,
|
|
@@ -3613,9 +3660,9 @@ class EXTERNALApi:
|
|
|
3613
3660
|
|
|
3614
3661
|
|
|
3615
3662
|
@validate_call
|
|
3616
|
-
def
|
|
3663
|
+
def delete_hardware_instance_hardware_instances_hardware_instance_id_delete_with_http_info(
|
|
3617
3664
|
self,
|
|
3618
|
-
|
|
3665
|
+
hardware_instance_id: StrictInt,
|
|
3619
3666
|
_request_timeout: Union[
|
|
3620
3667
|
None,
|
|
3621
3668
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3629,11 +3676,11 @@ class EXTERNALApi:
|
|
|
3629
3676
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3630
3677
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3631
3678
|
) -> ApiResponse[None]:
|
|
3632
|
-
"""Delete
|
|
3679
|
+
"""Delete Hardware Instance
|
|
3633
3680
|
|
|
3634
3681
|
|
|
3635
|
-
:param
|
|
3636
|
-
:type
|
|
3682
|
+
:param hardware_instance_id: (required)
|
|
3683
|
+
:type hardware_instance_id: int
|
|
3637
3684
|
:param _request_timeout: timeout setting for this request. If one
|
|
3638
3685
|
number provided, it will be total request
|
|
3639
3686
|
timeout. It can also be a pair (tuple) of
|
|
@@ -3656,8 +3703,8 @@ class EXTERNALApi:
|
|
|
3656
3703
|
:return: Returns the result object.
|
|
3657
3704
|
""" # noqa: E501
|
|
3658
3705
|
|
|
3659
|
-
_param = self.
|
|
3660
|
-
|
|
3706
|
+
_param = self._delete_hardware_instance_hardware_instances_hardware_instance_id_delete_serialize(
|
|
3707
|
+
hardware_instance_id=hardware_instance_id,
|
|
3661
3708
|
_request_auth=_request_auth,
|
|
3662
3709
|
_content_type=_content_type,
|
|
3663
3710
|
_headers=_headers,
|
|
@@ -3680,9 +3727,9 @@ class EXTERNALApi:
|
|
|
3680
3727
|
|
|
3681
3728
|
|
|
3682
3729
|
@validate_call
|
|
3683
|
-
def
|
|
3730
|
+
def delete_hardware_instance_hardware_instances_hardware_instance_id_delete_without_preload_content(
|
|
3684
3731
|
self,
|
|
3685
|
-
|
|
3732
|
+
hardware_instance_id: StrictInt,
|
|
3686
3733
|
_request_timeout: Union[
|
|
3687
3734
|
None,
|
|
3688
3735
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3696,11 +3743,11 @@ class EXTERNALApi:
|
|
|
3696
3743
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3697
3744
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3698
3745
|
) -> RESTResponseType:
|
|
3699
|
-
"""Delete
|
|
3746
|
+
"""Delete Hardware Instance
|
|
3700
3747
|
|
|
3701
3748
|
|
|
3702
|
-
:param
|
|
3703
|
-
:type
|
|
3749
|
+
:param hardware_instance_id: (required)
|
|
3750
|
+
:type hardware_instance_id: int
|
|
3704
3751
|
:param _request_timeout: timeout setting for this request. If one
|
|
3705
3752
|
number provided, it will be total request
|
|
3706
3753
|
timeout. It can also be a pair (tuple) of
|
|
@@ -3723,8 +3770,8 @@ class EXTERNALApi:
|
|
|
3723
3770
|
:return: Returns the result object.
|
|
3724
3771
|
""" # noqa: E501
|
|
3725
3772
|
|
|
3726
|
-
_param = self.
|
|
3727
|
-
|
|
3773
|
+
_param = self._delete_hardware_instance_hardware_instances_hardware_instance_id_delete_serialize(
|
|
3774
|
+
hardware_instance_id=hardware_instance_id,
|
|
3728
3775
|
_request_auth=_request_auth,
|
|
3729
3776
|
_content_type=_content_type,
|
|
3730
3777
|
_headers=_headers,
|
|
@@ -3742,9 +3789,9 @@ class EXTERNALApi:
|
|
|
3742
3789
|
return response_data.response
|
|
3743
3790
|
|
|
3744
3791
|
|
|
3745
|
-
def
|
|
3792
|
+
def _delete_hardware_instance_hardware_instances_hardware_instance_id_delete_serialize(
|
|
3746
3793
|
self,
|
|
3747
|
-
|
|
3794
|
+
hardware_instance_id,
|
|
3748
3795
|
_request_auth,
|
|
3749
3796
|
_content_type,
|
|
3750
3797
|
_headers,
|
|
@@ -3766,8 +3813,8 @@ class EXTERNALApi:
|
|
|
3766
3813
|
_body_params: Optional[bytes] = None
|
|
3767
3814
|
|
|
3768
3815
|
# process the path parameters
|
|
3769
|
-
if
|
|
3770
|
-
_path_params['
|
|
3816
|
+
if hardware_instance_id is not None:
|
|
3817
|
+
_path_params['hardware_instance_id'] = hardware_instance_id
|
|
3771
3818
|
# process the query parameters
|
|
3772
3819
|
# process the header parameters
|
|
3773
3820
|
# process the form parameters
|
|
@@ -3790,7 +3837,7 @@ class EXTERNALApi:
|
|
|
3790
3837
|
|
|
3791
3838
|
return self.api_client.param_serialize(
|
|
3792
3839
|
method='DELETE',
|
|
3793
|
-
resource_path='/
|
|
3840
|
+
resource_path='/hardware-instances/{hardware_instance_id}',
|
|
3794
3841
|
path_params=_path_params,
|
|
3795
3842
|
query_params=_query_params,
|
|
3796
3843
|
header_params=_header_params,
|
|
@@ -3807,9 +3854,9 @@ class EXTERNALApi:
|
|
|
3807
3854
|
|
|
3808
3855
|
|
|
3809
3856
|
@validate_call
|
|
3810
|
-
def
|
|
3857
|
+
def delete_service_account_service_accounts_workos_id_delete(
|
|
3811
3858
|
self,
|
|
3812
|
-
|
|
3859
|
+
workos_id: StrictStr,
|
|
3813
3860
|
_request_timeout: Union[
|
|
3814
3861
|
None,
|
|
3815
3862
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3822,13 +3869,12 @@ class EXTERNALApi:
|
|
|
3822
3869
|
_content_type: Optional[StrictStr] = None,
|
|
3823
3870
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3824
3871
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3825
|
-
) ->
|
|
3826
|
-
"""Delete
|
|
3872
|
+
) -> None:
|
|
3873
|
+
"""Delete Service Account
|
|
3827
3874
|
|
|
3828
|
-
Delete an item of a specific type for the user.
|
|
3829
3875
|
|
|
3830
|
-
:param
|
|
3831
|
-
:type
|
|
3876
|
+
:param workos_id: (required)
|
|
3877
|
+
:type workos_id: str
|
|
3832
3878
|
:param _request_timeout: timeout setting for this request. If one
|
|
3833
3879
|
number provided, it will be total request
|
|
3834
3880
|
timeout. It can also be a pair (tuple) of
|
|
@@ -3851,8 +3897,8 @@ class EXTERNALApi:
|
|
|
3851
3897
|
:return: Returns the result object.
|
|
3852
3898
|
""" # noqa: E501
|
|
3853
3899
|
|
|
3854
|
-
_param = self.
|
|
3855
|
-
|
|
3900
|
+
_param = self._delete_service_account_service_accounts_workos_id_delete_serialize(
|
|
3901
|
+
workos_id=workos_id,
|
|
3856
3902
|
_request_auth=_request_auth,
|
|
3857
3903
|
_content_type=_content_type,
|
|
3858
3904
|
_headers=_headers,
|
|
@@ -3860,7 +3906,7 @@ class EXTERNALApi:
|
|
|
3860
3906
|
)
|
|
3861
3907
|
|
|
3862
3908
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3863
|
-
'
|
|
3909
|
+
'204': None,
|
|
3864
3910
|
'422': "HTTPValidationError",
|
|
3865
3911
|
}
|
|
3866
3912
|
response_data = self.api_client.call_api(
|
|
@@ -3875,9 +3921,9 @@ class EXTERNALApi:
|
|
|
3875
3921
|
|
|
3876
3922
|
|
|
3877
3923
|
@validate_call
|
|
3878
|
-
def
|
|
3924
|
+
def delete_service_account_service_accounts_workos_id_delete_with_http_info(
|
|
3879
3925
|
self,
|
|
3880
|
-
|
|
3926
|
+
workos_id: StrictStr,
|
|
3881
3927
|
_request_timeout: Union[
|
|
3882
3928
|
None,
|
|
3883
3929
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3890,13 +3936,12 @@ class EXTERNALApi:
|
|
|
3890
3936
|
_content_type: Optional[StrictStr] = None,
|
|
3891
3937
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3892
3938
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3893
|
-
) -> ApiResponse[
|
|
3894
|
-
"""Delete
|
|
3939
|
+
) -> ApiResponse[None]:
|
|
3940
|
+
"""Delete Service Account
|
|
3895
3941
|
|
|
3896
|
-
Delete an item of a specific type for the user.
|
|
3897
3942
|
|
|
3898
|
-
:param
|
|
3899
|
-
:type
|
|
3943
|
+
:param workos_id: (required)
|
|
3944
|
+
:type workos_id: str
|
|
3900
3945
|
:param _request_timeout: timeout setting for this request. If one
|
|
3901
3946
|
number provided, it will be total request
|
|
3902
3947
|
timeout. It can also be a pair (tuple) of
|
|
@@ -3919,8 +3964,8 @@ class EXTERNALApi:
|
|
|
3919
3964
|
:return: Returns the result object.
|
|
3920
3965
|
""" # noqa: E501
|
|
3921
3966
|
|
|
3922
|
-
_param = self.
|
|
3923
|
-
|
|
3967
|
+
_param = self._delete_service_account_service_accounts_workos_id_delete_serialize(
|
|
3968
|
+
workos_id=workos_id,
|
|
3924
3969
|
_request_auth=_request_auth,
|
|
3925
3970
|
_content_type=_content_type,
|
|
3926
3971
|
_headers=_headers,
|
|
@@ -3928,7 +3973,7 @@ class EXTERNALApi:
|
|
|
3928
3973
|
)
|
|
3929
3974
|
|
|
3930
3975
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3931
|
-
'
|
|
3976
|
+
'204': None,
|
|
3932
3977
|
'422': "HTTPValidationError",
|
|
3933
3978
|
}
|
|
3934
3979
|
response_data = self.api_client.call_api(
|
|
@@ -3943,9 +3988,9 @@ class EXTERNALApi:
|
|
|
3943
3988
|
|
|
3944
3989
|
|
|
3945
3990
|
@validate_call
|
|
3946
|
-
def
|
|
3991
|
+
def delete_service_account_service_accounts_workos_id_delete_without_preload_content(
|
|
3947
3992
|
self,
|
|
3948
|
-
|
|
3993
|
+
workos_id: StrictStr,
|
|
3949
3994
|
_request_timeout: Union[
|
|
3950
3995
|
None,
|
|
3951
3996
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3959,12 +4004,11 @@ class EXTERNALApi:
|
|
|
3959
4004
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3960
4005
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3961
4006
|
) -> RESTResponseType:
|
|
3962
|
-
"""Delete
|
|
4007
|
+
"""Delete Service Account
|
|
3963
4008
|
|
|
3964
|
-
Delete an item of a specific type for the user.
|
|
3965
4009
|
|
|
3966
|
-
:param
|
|
3967
|
-
:type
|
|
4010
|
+
:param workos_id: (required)
|
|
4011
|
+
:type workos_id: str
|
|
3968
4012
|
:param _request_timeout: timeout setting for this request. If one
|
|
3969
4013
|
number provided, it will be total request
|
|
3970
4014
|
timeout. It can also be a pair (tuple) of
|
|
@@ -3987,8 +4031,8 @@ class EXTERNALApi:
|
|
|
3987
4031
|
:return: Returns the result object.
|
|
3988
4032
|
""" # noqa: E501
|
|
3989
4033
|
|
|
3990
|
-
_param = self.
|
|
3991
|
-
|
|
4034
|
+
_param = self._delete_service_account_service_accounts_workos_id_delete_serialize(
|
|
4035
|
+
workos_id=workos_id,
|
|
3992
4036
|
_request_auth=_request_auth,
|
|
3993
4037
|
_content_type=_content_type,
|
|
3994
4038
|
_headers=_headers,
|
|
@@ -3996,7 +4040,7 @@ class EXTERNALApi:
|
|
|
3996
4040
|
)
|
|
3997
4041
|
|
|
3998
4042
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3999
|
-
'
|
|
4043
|
+
'204': None,
|
|
4000
4044
|
'422': "HTTPValidationError",
|
|
4001
4045
|
}
|
|
4002
4046
|
response_data = self.api_client.call_api(
|
|
@@ -4006,9 +4050,9 @@ class EXTERNALApi:
|
|
|
4006
4050
|
return response_data.response
|
|
4007
4051
|
|
|
4008
4052
|
|
|
4009
|
-
def
|
|
4053
|
+
def _delete_service_account_service_accounts_workos_id_delete_serialize(
|
|
4010
4054
|
self,
|
|
4011
|
-
|
|
4055
|
+
workos_id,
|
|
4012
4056
|
_request_auth,
|
|
4013
4057
|
_content_type,
|
|
4014
4058
|
_headers,
|
|
@@ -4030,12 +4074,12 @@ class EXTERNALApi:
|
|
|
4030
4074
|
_body_params: Optional[bytes] = None
|
|
4031
4075
|
|
|
4032
4076
|
# process the path parameters
|
|
4077
|
+
if workos_id is not None:
|
|
4078
|
+
_path_params['workos_id'] = workos_id
|
|
4033
4079
|
# process the query parameters
|
|
4034
4080
|
# process the header parameters
|
|
4035
4081
|
# process the form parameters
|
|
4036
4082
|
# process the body parameter
|
|
4037
|
-
if user_vault_item is not None:
|
|
4038
|
-
_body_params = user_vault_item
|
|
4039
4083
|
|
|
4040
4084
|
|
|
4041
4085
|
# set the HTTP header `Accept`
|
|
@@ -4046,19 +4090,6 @@ class EXTERNALApi:
|
|
|
4046
4090
|
]
|
|
4047
4091
|
)
|
|
4048
4092
|
|
|
4049
|
-
# set the HTTP header `Content-Type`
|
|
4050
|
-
if _content_type:
|
|
4051
|
-
_header_params['Content-Type'] = _content_type
|
|
4052
|
-
else:
|
|
4053
|
-
_default_content_type = (
|
|
4054
|
-
self.api_client.select_header_content_type(
|
|
4055
|
-
[
|
|
4056
|
-
'application/json'
|
|
4057
|
-
]
|
|
4058
|
-
)
|
|
4059
|
-
)
|
|
4060
|
-
if _default_content_type is not None:
|
|
4061
|
-
_header_params['Content-Type'] = _default_content_type
|
|
4062
4093
|
|
|
4063
4094
|
# authentication setting
|
|
4064
4095
|
_auth_settings: List[str] = [
|
|
@@ -4067,7 +4098,7 @@ class EXTERNALApi:
|
|
|
4067
4098
|
|
|
4068
4099
|
return self.api_client.param_serialize(
|
|
4069
4100
|
method='DELETE',
|
|
4070
|
-
resource_path='/
|
|
4101
|
+
resource_path='/service-accounts/{workos_id}',
|
|
4071
4102
|
path_params=_path_params,
|
|
4072
4103
|
query_params=_query_params,
|
|
4073
4104
|
header_params=_header_params,
|
|
@@ -4084,9 +4115,9 @@ class EXTERNALApi:
|
|
|
4084
4115
|
|
|
4085
4116
|
|
|
4086
4117
|
@validate_call
|
|
4087
|
-
def
|
|
4118
|
+
def delete_user_vault_item_endpoint_user_vault_delete(
|
|
4088
4119
|
self,
|
|
4089
|
-
|
|
4120
|
+
user_vault_item: UserVaultItem,
|
|
4090
4121
|
_request_timeout: Union[
|
|
4091
4122
|
None,
|
|
4092
4123
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -4100,12 +4131,12 @@ class EXTERNALApi:
|
|
|
4100
4131
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4101
4132
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4102
4133
|
) -> object:
|
|
4103
|
-
"""Delete
|
|
4134
|
+
"""Delete User Vault Item Endpoint
|
|
4104
4135
|
|
|
4105
|
-
Delete
|
|
4136
|
+
Delete an item of a specific type for the user.
|
|
4106
4137
|
|
|
4107
|
-
:param
|
|
4108
|
-
:type
|
|
4138
|
+
:param user_vault_item: (required)
|
|
4139
|
+
:type user_vault_item: UserVaultItem
|
|
4109
4140
|
:param _request_timeout: timeout setting for this request. If one
|
|
4110
4141
|
number provided, it will be total request
|
|
4111
4142
|
timeout. It can also be a pair (tuple) of
|
|
@@ -4128,8 +4159,8 @@ class EXTERNALApi:
|
|
|
4128
4159
|
:return: Returns the result object.
|
|
4129
4160
|
""" # noqa: E501
|
|
4130
4161
|
|
|
4131
|
-
_param = self.
|
|
4132
|
-
|
|
4162
|
+
_param = self._delete_user_vault_item_endpoint_user_vault_delete_serialize(
|
|
4163
|
+
user_vault_item=user_vault_item,
|
|
4133
4164
|
_request_auth=_request_auth,
|
|
4134
4165
|
_content_type=_content_type,
|
|
4135
4166
|
_headers=_headers,
|
|
@@ -4152,9 +4183,9 @@ class EXTERNALApi:
|
|
|
4152
4183
|
|
|
4153
4184
|
|
|
4154
4185
|
@validate_call
|
|
4155
|
-
def
|
|
4186
|
+
def delete_user_vault_item_endpoint_user_vault_delete_with_http_info(
|
|
4156
4187
|
self,
|
|
4157
|
-
|
|
4188
|
+
user_vault_item: UserVaultItem,
|
|
4158
4189
|
_request_timeout: Union[
|
|
4159
4190
|
None,
|
|
4160
4191
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -4168,12 +4199,12 @@ class EXTERNALApi:
|
|
|
4168
4199
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4169
4200
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4170
4201
|
) -> ApiResponse[object]:
|
|
4171
|
-
"""Delete
|
|
4202
|
+
"""Delete User Vault Item Endpoint
|
|
4172
4203
|
|
|
4173
|
-
Delete
|
|
4204
|
+
Delete an item of a specific type for the user.
|
|
4174
4205
|
|
|
4175
|
-
:param
|
|
4176
|
-
:type
|
|
4206
|
+
:param user_vault_item: (required)
|
|
4207
|
+
:type user_vault_item: UserVaultItem
|
|
4177
4208
|
:param _request_timeout: timeout setting for this request. If one
|
|
4178
4209
|
number provided, it will be total request
|
|
4179
4210
|
timeout. It can also be a pair (tuple) of
|
|
@@ -4196,8 +4227,8 @@ class EXTERNALApi:
|
|
|
4196
4227
|
:return: Returns the result object.
|
|
4197
4228
|
""" # noqa: E501
|
|
4198
4229
|
|
|
4199
|
-
_param = self.
|
|
4200
|
-
|
|
4230
|
+
_param = self._delete_user_vault_item_endpoint_user_vault_delete_serialize(
|
|
4231
|
+
user_vault_item=user_vault_item,
|
|
4201
4232
|
_request_auth=_request_auth,
|
|
4202
4233
|
_content_type=_content_type,
|
|
4203
4234
|
_headers=_headers,
|
|
@@ -4220,9 +4251,9 @@ class EXTERNALApi:
|
|
|
4220
4251
|
|
|
4221
4252
|
|
|
4222
4253
|
@validate_call
|
|
4223
|
-
def
|
|
4254
|
+
def delete_user_vault_item_endpoint_user_vault_delete_without_preload_content(
|
|
4224
4255
|
self,
|
|
4225
|
-
|
|
4256
|
+
user_vault_item: UserVaultItem,
|
|
4226
4257
|
_request_timeout: Union[
|
|
4227
4258
|
None,
|
|
4228
4259
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -4236,12 +4267,12 @@ class EXTERNALApi:
|
|
|
4236
4267
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4237
4268
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4238
4269
|
) -> RESTResponseType:
|
|
4239
|
-
"""Delete
|
|
4270
|
+
"""Delete User Vault Item Endpoint
|
|
4240
4271
|
|
|
4241
|
-
Delete
|
|
4272
|
+
Delete an item of a specific type for the user.
|
|
4242
4273
|
|
|
4243
|
-
:param
|
|
4244
|
-
:type
|
|
4274
|
+
:param user_vault_item: (required)
|
|
4275
|
+
:type user_vault_item: UserVaultItem
|
|
4245
4276
|
:param _request_timeout: timeout setting for this request. If one
|
|
4246
4277
|
number provided, it will be total request
|
|
4247
4278
|
timeout. It can also be a pair (tuple) of
|
|
@@ -4264,8 +4295,8 @@ class EXTERNALApi:
|
|
|
4264
4295
|
:return: Returns the result object.
|
|
4265
4296
|
""" # noqa: E501
|
|
4266
4297
|
|
|
4267
|
-
_param = self.
|
|
4268
|
-
|
|
4298
|
+
_param = self._delete_user_vault_item_endpoint_user_vault_delete_serialize(
|
|
4299
|
+
user_vault_item=user_vault_item,
|
|
4269
4300
|
_request_auth=_request_auth,
|
|
4270
4301
|
_content_type=_content_type,
|
|
4271
4302
|
_headers=_headers,
|
|
@@ -4283,9 +4314,9 @@ class EXTERNALApi:
|
|
|
4283
4314
|
return response_data.response
|
|
4284
4315
|
|
|
4285
4316
|
|
|
4286
|
-
def
|
|
4317
|
+
def _delete_user_vault_item_endpoint_user_vault_delete_serialize(
|
|
4287
4318
|
self,
|
|
4288
|
-
|
|
4319
|
+
user_vault_item,
|
|
4289
4320
|
_request_auth,
|
|
4290
4321
|
_content_type,
|
|
4291
4322
|
_headers,
|
|
@@ -4307,12 +4338,12 @@ class EXTERNALApi:
|
|
|
4307
4338
|
_body_params: Optional[bytes] = None
|
|
4308
4339
|
|
|
4309
4340
|
# process the path parameters
|
|
4310
|
-
if volume_id is not None:
|
|
4311
|
-
_path_params['volume_id'] = volume_id
|
|
4312
4341
|
# process the query parameters
|
|
4313
4342
|
# process the header parameters
|
|
4314
4343
|
# process the form parameters
|
|
4315
4344
|
# process the body parameter
|
|
4345
|
+
if user_vault_item is not None:
|
|
4346
|
+
_body_params = user_vault_item
|
|
4316
4347
|
|
|
4317
4348
|
|
|
4318
4349
|
# set the HTTP header `Accept`
|
|
@@ -4323,15 +4354,28 @@ class EXTERNALApi:
|
|
|
4323
4354
|
]
|
|
4324
4355
|
)
|
|
4325
4356
|
|
|
4326
|
-
|
|
4327
|
-
|
|
4328
|
-
|
|
4329
|
-
|
|
4330
|
-
|
|
4331
|
-
|
|
4332
|
-
|
|
4333
|
-
|
|
4334
|
-
|
|
4357
|
+
# set the HTTP header `Content-Type`
|
|
4358
|
+
if _content_type:
|
|
4359
|
+
_header_params['Content-Type'] = _content_type
|
|
4360
|
+
else:
|
|
4361
|
+
_default_content_type = (
|
|
4362
|
+
self.api_client.select_header_content_type(
|
|
4363
|
+
[
|
|
4364
|
+
'application/json'
|
|
4365
|
+
]
|
|
4366
|
+
)
|
|
4367
|
+
)
|
|
4368
|
+
if _default_content_type is not None:
|
|
4369
|
+
_header_params['Content-Type'] = _default_content_type
|
|
4370
|
+
|
|
4371
|
+
# authentication setting
|
|
4372
|
+
_auth_settings: List[str] = [
|
|
4373
|
+
'HTTPBearer'
|
|
4374
|
+
]
|
|
4375
|
+
|
|
4376
|
+
return self.api_client.param_serialize(
|
|
4377
|
+
method='DELETE',
|
|
4378
|
+
resource_path='/user_vault',
|
|
4335
4379
|
path_params=_path_params,
|
|
4336
4380
|
query_params=_query_params,
|
|
4337
4381
|
header_params=_header_params,
|
|
@@ -4348,9 +4392,9 @@ class EXTERNALApi:
|
|
|
4348
4392
|
|
|
4349
4393
|
|
|
4350
4394
|
@validate_call
|
|
4351
|
-
def
|
|
4395
|
+
def delete_volume_endpoint_volumes_volume_id_delete(
|
|
4352
4396
|
self,
|
|
4353
|
-
|
|
4397
|
+
volume_id: StrictInt,
|
|
4354
4398
|
_request_timeout: Union[
|
|
4355
4399
|
None,
|
|
4356
4400
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -4363,12 +4407,13 @@ class EXTERNALApi:
|
|
|
4363
4407
|
_content_type: Optional[StrictStr] = None,
|
|
4364
4408
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4365
4409
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4366
|
-
) ->
|
|
4367
|
-
"""
|
|
4410
|
+
) -> object:
|
|
4411
|
+
"""Delete Volume Endpoint
|
|
4368
4412
|
|
|
4413
|
+
Delete a volume: tear down its ArgoCD app (and PVC) if reachable, then soft-delete the row. Only the owner or an admin with admin:manage_volumes may delete.
|
|
4369
4414
|
|
|
4370
|
-
:param
|
|
4371
|
-
:type
|
|
4415
|
+
:param volume_id: (required)
|
|
4416
|
+
:type volume_id: int
|
|
4372
4417
|
:param _request_timeout: timeout setting for this request. If one
|
|
4373
4418
|
number provided, it will be total request
|
|
4374
4419
|
timeout. It can also be a pair (tuple) of
|
|
@@ -4391,8 +4436,8 @@ class EXTERNALApi:
|
|
|
4391
4436
|
:return: Returns the result object.
|
|
4392
4437
|
""" # noqa: E501
|
|
4393
4438
|
|
|
4394
|
-
_param = self.
|
|
4395
|
-
|
|
4439
|
+
_param = self._delete_volume_endpoint_volumes_volume_id_delete_serialize(
|
|
4440
|
+
volume_id=volume_id,
|
|
4396
4441
|
_request_auth=_request_auth,
|
|
4397
4442
|
_content_type=_content_type,
|
|
4398
4443
|
_headers=_headers,
|
|
@@ -4400,7 +4445,7 @@ class EXTERNALApi:
|
|
|
4400
4445
|
)
|
|
4401
4446
|
|
|
4402
4447
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
4403
|
-
'200': "
|
|
4448
|
+
'200': "object",
|
|
4404
4449
|
'422': "HTTPValidationError",
|
|
4405
4450
|
}
|
|
4406
4451
|
response_data = self.api_client.call_api(
|
|
@@ -4415,9 +4460,9 @@ class EXTERNALApi:
|
|
|
4415
4460
|
|
|
4416
4461
|
|
|
4417
4462
|
@validate_call
|
|
4418
|
-
def
|
|
4463
|
+
def delete_volume_endpoint_volumes_volume_id_delete_with_http_info(
|
|
4419
4464
|
self,
|
|
4420
|
-
|
|
4465
|
+
volume_id: StrictInt,
|
|
4421
4466
|
_request_timeout: Union[
|
|
4422
4467
|
None,
|
|
4423
4468
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -4430,12 +4475,13 @@ class EXTERNALApi:
|
|
|
4430
4475
|
_content_type: Optional[StrictStr] = None,
|
|
4431
4476
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4432
4477
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4433
|
-
) -> ApiResponse[
|
|
4434
|
-
"""
|
|
4478
|
+
) -> ApiResponse[object]:
|
|
4479
|
+
"""Delete Volume Endpoint
|
|
4435
4480
|
|
|
4481
|
+
Delete a volume: tear down its ArgoCD app (and PVC) if reachable, then soft-delete the row. Only the owner or an admin with admin:manage_volumes may delete.
|
|
4436
4482
|
|
|
4437
|
-
:param
|
|
4438
|
-
:type
|
|
4483
|
+
:param volume_id: (required)
|
|
4484
|
+
:type volume_id: int
|
|
4439
4485
|
:param _request_timeout: timeout setting for this request. If one
|
|
4440
4486
|
number provided, it will be total request
|
|
4441
4487
|
timeout. It can also be a pair (tuple) of
|
|
@@ -4458,8 +4504,8 @@ class EXTERNALApi:
|
|
|
4458
4504
|
:return: Returns the result object.
|
|
4459
4505
|
""" # noqa: E501
|
|
4460
4506
|
|
|
4461
|
-
_param = self.
|
|
4462
|
-
|
|
4507
|
+
_param = self._delete_volume_endpoint_volumes_volume_id_delete_serialize(
|
|
4508
|
+
volume_id=volume_id,
|
|
4463
4509
|
_request_auth=_request_auth,
|
|
4464
4510
|
_content_type=_content_type,
|
|
4465
4511
|
_headers=_headers,
|
|
@@ -4467,7 +4513,7 @@ class EXTERNALApi:
|
|
|
4467
4513
|
)
|
|
4468
4514
|
|
|
4469
4515
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
4470
|
-
'200': "
|
|
4516
|
+
'200': "object",
|
|
4471
4517
|
'422': "HTTPValidationError",
|
|
4472
4518
|
}
|
|
4473
4519
|
response_data = self.api_client.call_api(
|
|
@@ -4482,9 +4528,9 @@ class EXTERNALApi:
|
|
|
4482
4528
|
|
|
4483
4529
|
|
|
4484
4530
|
@validate_call
|
|
4485
|
-
def
|
|
4531
|
+
def delete_volume_endpoint_volumes_volume_id_delete_without_preload_content(
|
|
4486
4532
|
self,
|
|
4487
|
-
|
|
4533
|
+
volume_id: StrictInt,
|
|
4488
4534
|
_request_timeout: Union[
|
|
4489
4535
|
None,
|
|
4490
4536
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -4498,11 +4544,12 @@ class EXTERNALApi:
|
|
|
4498
4544
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4499
4545
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4500
4546
|
) -> RESTResponseType:
|
|
4501
|
-
"""
|
|
4547
|
+
"""Delete Volume Endpoint
|
|
4502
4548
|
|
|
4549
|
+
Delete a volume: tear down its ArgoCD app (and PVC) if reachable, then soft-delete the row. Only the owner or an admin with admin:manage_volumes may delete.
|
|
4503
4550
|
|
|
4504
|
-
:param
|
|
4505
|
-
:type
|
|
4551
|
+
:param volume_id: (required)
|
|
4552
|
+
:type volume_id: int
|
|
4506
4553
|
:param _request_timeout: timeout setting for this request. If one
|
|
4507
4554
|
number provided, it will be total request
|
|
4508
4555
|
timeout. It can also be a pair (tuple) of
|
|
@@ -4525,8 +4572,8 @@ class EXTERNALApi:
|
|
|
4525
4572
|
:return: Returns the result object.
|
|
4526
4573
|
""" # noqa: E501
|
|
4527
4574
|
|
|
4528
|
-
_param = self.
|
|
4529
|
-
|
|
4575
|
+
_param = self._delete_volume_endpoint_volumes_volume_id_delete_serialize(
|
|
4576
|
+
volume_id=volume_id,
|
|
4530
4577
|
_request_auth=_request_auth,
|
|
4531
4578
|
_content_type=_content_type,
|
|
4532
4579
|
_headers=_headers,
|
|
@@ -4534,7 +4581,7 @@ class EXTERNALApi:
|
|
|
4534
4581
|
)
|
|
4535
4582
|
|
|
4536
4583
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
4537
|
-
'200': "
|
|
4584
|
+
'200': "object",
|
|
4538
4585
|
'422': "HTTPValidationError",
|
|
4539
4586
|
}
|
|
4540
4587
|
response_data = self.api_client.call_api(
|
|
@@ -4544,9 +4591,9 @@ class EXTERNALApi:
|
|
|
4544
4591
|
return response_data.response
|
|
4545
4592
|
|
|
4546
4593
|
|
|
4547
|
-
def
|
|
4594
|
+
def _delete_volume_endpoint_volumes_volume_id_delete_serialize(
|
|
4548
4595
|
self,
|
|
4549
|
-
|
|
4596
|
+
volume_id,
|
|
4550
4597
|
_request_auth,
|
|
4551
4598
|
_content_type,
|
|
4552
4599
|
_headers,
|
|
@@ -4568,8 +4615,8 @@ class EXTERNALApi:
|
|
|
4568
4615
|
_body_params: Optional[bytes] = None
|
|
4569
4616
|
|
|
4570
4617
|
# process the path parameters
|
|
4571
|
-
if
|
|
4572
|
-
_path_params['
|
|
4618
|
+
if volume_id is not None:
|
|
4619
|
+
_path_params['volume_id'] = volume_id
|
|
4573
4620
|
# process the query parameters
|
|
4574
4621
|
# process the header parameters
|
|
4575
4622
|
# process the form parameters
|
|
@@ -4591,8 +4638,8 @@ class EXTERNALApi:
|
|
|
4591
4638
|
]
|
|
4592
4639
|
|
|
4593
4640
|
return self.api_client.param_serialize(
|
|
4594
|
-
method='
|
|
4595
|
-
resource_path='/
|
|
4641
|
+
method='DELETE',
|
|
4642
|
+
resource_path='/volumes/{volume_id}',
|
|
4596
4643
|
path_params=_path_params,
|
|
4597
4644
|
query_params=_query_params,
|
|
4598
4645
|
header_params=_header_params,
|
|
@@ -4609,10 +4656,9 @@ class EXTERNALApi:
|
|
|
4609
4656
|
|
|
4610
4657
|
|
|
4611
4658
|
@validate_call
|
|
4612
|
-
def
|
|
4659
|
+
def generate_service_account_secret_service_accounts_workos_id_secrets_post(
|
|
4613
4660
|
self,
|
|
4614
|
-
|
|
4615
|
-
search_query: Optional[StrictStr] = None,
|
|
4661
|
+
workos_id: StrictStr,
|
|
4616
4662
|
_request_timeout: Union[
|
|
4617
4663
|
None,
|
|
4618
4664
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -4625,15 +4671,12 @@ class EXTERNALApi:
|
|
|
4625
4671
|
_content_type: Optional[StrictStr] = None,
|
|
4626
4672
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4627
4673
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4628
|
-
) ->
|
|
4629
|
-
"""
|
|
4674
|
+
) -> GenerateServiceAccountSecretResponse:
|
|
4675
|
+
"""Generate Service Account Secret
|
|
4630
4676
|
|
|
4631
|
-
Retrieve all items the user has access to (both USER and ORG scoped).
|
|
4632
4677
|
|
|
4633
|
-
:param
|
|
4634
|
-
:type
|
|
4635
|
-
:param search_query:
|
|
4636
|
-
:type search_query: str
|
|
4678
|
+
:param workos_id: (required)
|
|
4679
|
+
:type workos_id: str
|
|
4637
4680
|
:param _request_timeout: timeout setting for this request. If one
|
|
4638
4681
|
number provided, it will be total request
|
|
4639
4682
|
timeout. It can also be a pair (tuple) of
|
|
@@ -4656,9 +4699,8 @@ class EXTERNALApi:
|
|
|
4656
4699
|
:return: Returns the result object.
|
|
4657
4700
|
""" # noqa: E501
|
|
4658
4701
|
|
|
4659
|
-
_param = self.
|
|
4660
|
-
|
|
4661
|
-
search_query=search_query,
|
|
4702
|
+
_param = self._generate_service_account_secret_service_accounts_workos_id_secrets_post_serialize(
|
|
4703
|
+
workos_id=workos_id,
|
|
4662
4704
|
_request_auth=_request_auth,
|
|
4663
4705
|
_content_type=_content_type,
|
|
4664
4706
|
_headers=_headers,
|
|
@@ -4666,7 +4708,7 @@ class EXTERNALApi:
|
|
|
4666
4708
|
)
|
|
4667
4709
|
|
|
4668
4710
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
4669
|
-
'200': "
|
|
4711
|
+
'200': "GenerateServiceAccountSecretResponse",
|
|
4670
4712
|
'422': "HTTPValidationError",
|
|
4671
4713
|
}
|
|
4672
4714
|
response_data = self.api_client.call_api(
|
|
@@ -4681,10 +4723,9 @@ class EXTERNALApi:
|
|
|
4681
4723
|
|
|
4682
4724
|
|
|
4683
4725
|
@validate_call
|
|
4684
|
-
def
|
|
4726
|
+
def generate_service_account_secret_service_accounts_workos_id_secrets_post_with_http_info(
|
|
4685
4727
|
self,
|
|
4686
|
-
|
|
4687
|
-
search_query: Optional[StrictStr] = None,
|
|
4728
|
+
workos_id: StrictStr,
|
|
4688
4729
|
_request_timeout: Union[
|
|
4689
4730
|
None,
|
|
4690
4731
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -4697,15 +4738,12 @@ class EXTERNALApi:
|
|
|
4697
4738
|
_content_type: Optional[StrictStr] = None,
|
|
4698
4739
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4699
4740
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4700
|
-
) -> ApiResponse[
|
|
4701
|
-
"""
|
|
4741
|
+
) -> ApiResponse[GenerateServiceAccountSecretResponse]:
|
|
4742
|
+
"""Generate Service Account Secret
|
|
4702
4743
|
|
|
4703
|
-
Retrieve all items the user has access to (both USER and ORG scoped).
|
|
4704
4744
|
|
|
4705
|
-
:param
|
|
4706
|
-
:type
|
|
4707
|
-
:param search_query:
|
|
4708
|
-
:type search_query: str
|
|
4745
|
+
:param workos_id: (required)
|
|
4746
|
+
:type workos_id: str
|
|
4709
4747
|
:param _request_timeout: timeout setting for this request. If one
|
|
4710
4748
|
number provided, it will be total request
|
|
4711
4749
|
timeout. It can also be a pair (tuple) of
|
|
@@ -4728,9 +4766,8 @@ class EXTERNALApi:
|
|
|
4728
4766
|
:return: Returns the result object.
|
|
4729
4767
|
""" # noqa: E501
|
|
4730
4768
|
|
|
4731
|
-
_param = self.
|
|
4732
|
-
|
|
4733
|
-
search_query=search_query,
|
|
4769
|
+
_param = self._generate_service_account_secret_service_accounts_workos_id_secrets_post_serialize(
|
|
4770
|
+
workos_id=workos_id,
|
|
4734
4771
|
_request_auth=_request_auth,
|
|
4735
4772
|
_content_type=_content_type,
|
|
4736
4773
|
_headers=_headers,
|
|
@@ -4738,7 +4775,7 @@ class EXTERNALApi:
|
|
|
4738
4775
|
)
|
|
4739
4776
|
|
|
4740
4777
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
4741
|
-
'200': "
|
|
4778
|
+
'200': "GenerateServiceAccountSecretResponse",
|
|
4742
4779
|
'422': "HTTPValidationError",
|
|
4743
4780
|
}
|
|
4744
4781
|
response_data = self.api_client.call_api(
|
|
@@ -4753,10 +4790,9 @@ class EXTERNALApi:
|
|
|
4753
4790
|
|
|
4754
4791
|
|
|
4755
4792
|
@validate_call
|
|
4756
|
-
def
|
|
4793
|
+
def generate_service_account_secret_service_accounts_workos_id_secrets_post_without_preload_content(
|
|
4757
4794
|
self,
|
|
4758
|
-
|
|
4759
|
-
search_query: Optional[StrictStr] = None,
|
|
4795
|
+
workos_id: StrictStr,
|
|
4760
4796
|
_request_timeout: Union[
|
|
4761
4797
|
None,
|
|
4762
4798
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -4770,14 +4806,11 @@ class EXTERNALApi:
|
|
|
4770
4806
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4771
4807
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4772
4808
|
) -> RESTResponseType:
|
|
4773
|
-
"""
|
|
4809
|
+
"""Generate Service Account Secret
|
|
4774
4810
|
|
|
4775
|
-
Retrieve all items the user has access to (both USER and ORG scoped).
|
|
4776
4811
|
|
|
4777
|
-
:param
|
|
4778
|
-
:type
|
|
4779
|
-
:param search_query:
|
|
4780
|
-
:type search_query: str
|
|
4812
|
+
:param workos_id: (required)
|
|
4813
|
+
:type workos_id: str
|
|
4781
4814
|
:param _request_timeout: timeout setting for this request. If one
|
|
4782
4815
|
number provided, it will be total request
|
|
4783
4816
|
timeout. It can also be a pair (tuple) of
|
|
@@ -4800,9 +4833,8 @@ class EXTERNALApi:
|
|
|
4800
4833
|
:return: Returns the result object.
|
|
4801
4834
|
""" # noqa: E501
|
|
4802
4835
|
|
|
4803
|
-
_param = self.
|
|
4804
|
-
|
|
4805
|
-
search_query=search_query,
|
|
4836
|
+
_param = self._generate_service_account_secret_service_accounts_workos_id_secrets_post_serialize(
|
|
4837
|
+
workos_id=workos_id,
|
|
4806
4838
|
_request_auth=_request_auth,
|
|
4807
4839
|
_content_type=_content_type,
|
|
4808
4840
|
_headers=_headers,
|
|
@@ -4810,7 +4842,7 @@ class EXTERNALApi:
|
|
|
4810
4842
|
)
|
|
4811
4843
|
|
|
4812
4844
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
4813
|
-
'200': "
|
|
4845
|
+
'200': "GenerateServiceAccountSecretResponse",
|
|
4814
4846
|
'422': "HTTPValidationError",
|
|
4815
4847
|
}
|
|
4816
4848
|
response_data = self.api_client.call_api(
|
|
@@ -4820,10 +4852,9 @@ class EXTERNALApi:
|
|
|
4820
4852
|
return response_data.response
|
|
4821
4853
|
|
|
4822
4854
|
|
|
4823
|
-
def
|
|
4855
|
+
def _generate_service_account_secret_service_accounts_workos_id_secrets_post_serialize(
|
|
4824
4856
|
self,
|
|
4825
|
-
|
|
4826
|
-
search_query,
|
|
4857
|
+
workos_id,
|
|
4827
4858
|
_request_auth,
|
|
4828
4859
|
_content_type,
|
|
4829
4860
|
_headers,
|
|
@@ -4845,15 +4876,9 @@ class EXTERNALApi:
|
|
|
4845
4876
|
_body_params: Optional[bytes] = None
|
|
4846
4877
|
|
|
4847
4878
|
# process the path parameters
|
|
4879
|
+
if workos_id is not None:
|
|
4880
|
+
_path_params['workos_id'] = workos_id
|
|
4848
4881
|
# process the query parameters
|
|
4849
|
-
if type is not None:
|
|
4850
|
-
|
|
4851
|
-
_query_params.append(('type', type.value))
|
|
4852
|
-
|
|
4853
|
-
if search_query is not None:
|
|
4854
|
-
|
|
4855
|
-
_query_params.append(('search_query', search_query))
|
|
4856
|
-
|
|
4857
4882
|
# process the header parameters
|
|
4858
4883
|
# process the form parameters
|
|
4859
4884
|
# process the body parameter
|
|
@@ -4874,8 +4899,8 @@ class EXTERNALApi:
|
|
|
4874
4899
|
]
|
|
4875
4900
|
|
|
4876
4901
|
return self.api_client.param_serialize(
|
|
4877
|
-
method='
|
|
4878
|
-
resource_path='/
|
|
4902
|
+
method='POST',
|
|
4903
|
+
resource_path='/service-accounts/{workos_id}/secrets',
|
|
4879
4904
|
path_params=_path_params,
|
|
4880
4905
|
query_params=_query_params,
|
|
4881
4906
|
header_params=_header_params,
|
|
@@ -4892,8 +4917,10 @@ class EXTERNALApi:
|
|
|
4892
4917
|
|
|
4893
4918
|
|
|
4894
4919
|
@validate_call
|
|
4895
|
-
def
|
|
4920
|
+
def get_all_user_vault_items_endpoint_user_vault_get(
|
|
4896
4921
|
self,
|
|
4922
|
+
type: Optional[UserVaultType] = None,
|
|
4923
|
+
search_query: Optional[StrictStr] = None,
|
|
4897
4924
|
_request_timeout: Union[
|
|
4898
4925
|
None,
|
|
4899
4926
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -4906,11 +4933,15 @@ class EXTERNALApi:
|
|
|
4906
4933
|
_content_type: Optional[StrictStr] = None,
|
|
4907
4934
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4908
4935
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4909
|
-
) ->
|
|
4910
|
-
"""Get All
|
|
4936
|
+
) -> ListUserVaultItemsResponse:
|
|
4937
|
+
"""Get All User Vault Items Endpoint
|
|
4911
4938
|
|
|
4912
|
-
Retrieve all
|
|
4939
|
+
Retrieve all items the user has access to (both USER and ORG scoped).
|
|
4913
4940
|
|
|
4941
|
+
:param type:
|
|
4942
|
+
:type type: UserVaultType
|
|
4943
|
+
:param search_query:
|
|
4944
|
+
:type search_query: str
|
|
4914
4945
|
:param _request_timeout: timeout setting for this request. If one
|
|
4915
4946
|
number provided, it will be total request
|
|
4916
4947
|
timeout. It can also be a pair (tuple) of
|
|
@@ -4933,7 +4964,9 @@ class EXTERNALApi:
|
|
|
4933
4964
|
:return: Returns the result object.
|
|
4934
4965
|
""" # noqa: E501
|
|
4935
4966
|
|
|
4936
|
-
_param = self.
|
|
4967
|
+
_param = self._get_all_user_vault_items_endpoint_user_vault_get_serialize(
|
|
4968
|
+
type=type,
|
|
4969
|
+
search_query=search_query,
|
|
4937
4970
|
_request_auth=_request_auth,
|
|
4938
4971
|
_content_type=_content_type,
|
|
4939
4972
|
_headers=_headers,
|
|
@@ -4941,7 +4974,8 @@ class EXTERNALApi:
|
|
|
4941
4974
|
)
|
|
4942
4975
|
|
|
4943
4976
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
4944
|
-
'200': "
|
|
4977
|
+
'200': "ListUserVaultItemsResponse",
|
|
4978
|
+
'422': "HTTPValidationError",
|
|
4945
4979
|
}
|
|
4946
4980
|
response_data = self.api_client.call_api(
|
|
4947
4981
|
*_param,
|
|
@@ -4955,8 +4989,10 @@ class EXTERNALApi:
|
|
|
4955
4989
|
|
|
4956
4990
|
|
|
4957
4991
|
@validate_call
|
|
4958
|
-
def
|
|
4992
|
+
def get_all_user_vault_items_endpoint_user_vault_get_with_http_info(
|
|
4959
4993
|
self,
|
|
4994
|
+
type: Optional[UserVaultType] = None,
|
|
4995
|
+
search_query: Optional[StrictStr] = None,
|
|
4960
4996
|
_request_timeout: Union[
|
|
4961
4997
|
None,
|
|
4962
4998
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -4969,11 +5005,15 @@ class EXTERNALApi:
|
|
|
4969
5005
|
_content_type: Optional[StrictStr] = None,
|
|
4970
5006
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4971
5007
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4972
|
-
) -> ApiResponse[
|
|
4973
|
-
"""Get All
|
|
5008
|
+
) -> ApiResponse[ListUserVaultItemsResponse]:
|
|
5009
|
+
"""Get All User Vault Items Endpoint
|
|
4974
5010
|
|
|
4975
|
-
Retrieve all
|
|
5011
|
+
Retrieve all items the user has access to (both USER and ORG scoped).
|
|
4976
5012
|
|
|
5013
|
+
:param type:
|
|
5014
|
+
:type type: UserVaultType
|
|
5015
|
+
:param search_query:
|
|
5016
|
+
:type search_query: str
|
|
4977
5017
|
:param _request_timeout: timeout setting for this request. If one
|
|
4978
5018
|
number provided, it will be total request
|
|
4979
5019
|
timeout. It can also be a pair (tuple) of
|
|
@@ -4996,7 +5036,9 @@ class EXTERNALApi:
|
|
|
4996
5036
|
:return: Returns the result object.
|
|
4997
5037
|
""" # noqa: E501
|
|
4998
5038
|
|
|
4999
|
-
_param = self.
|
|
5039
|
+
_param = self._get_all_user_vault_items_endpoint_user_vault_get_serialize(
|
|
5040
|
+
type=type,
|
|
5041
|
+
search_query=search_query,
|
|
5000
5042
|
_request_auth=_request_auth,
|
|
5001
5043
|
_content_type=_content_type,
|
|
5002
5044
|
_headers=_headers,
|
|
@@ -5004,7 +5046,8 @@ class EXTERNALApi:
|
|
|
5004
5046
|
)
|
|
5005
5047
|
|
|
5006
5048
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
5007
|
-
'200': "
|
|
5049
|
+
'200': "ListUserVaultItemsResponse",
|
|
5050
|
+
'422': "HTTPValidationError",
|
|
5008
5051
|
}
|
|
5009
5052
|
response_data = self.api_client.call_api(
|
|
5010
5053
|
*_param,
|
|
@@ -5018,8 +5061,10 @@ class EXTERNALApi:
|
|
|
5018
5061
|
|
|
5019
5062
|
|
|
5020
5063
|
@validate_call
|
|
5021
|
-
def
|
|
5064
|
+
def get_all_user_vault_items_endpoint_user_vault_get_without_preload_content(
|
|
5022
5065
|
self,
|
|
5066
|
+
type: Optional[UserVaultType] = None,
|
|
5067
|
+
search_query: Optional[StrictStr] = None,
|
|
5023
5068
|
_request_timeout: Union[
|
|
5024
5069
|
None,
|
|
5025
5070
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -5033,10 +5078,14 @@ class EXTERNALApi:
|
|
|
5033
5078
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
5034
5079
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
5035
5080
|
) -> RESTResponseType:
|
|
5036
|
-
"""Get All
|
|
5081
|
+
"""Get All User Vault Items Endpoint
|
|
5037
5082
|
|
|
5038
|
-
Retrieve all
|
|
5083
|
+
Retrieve all items the user has access to (both USER and ORG scoped).
|
|
5039
5084
|
|
|
5085
|
+
:param type:
|
|
5086
|
+
:type type: UserVaultType
|
|
5087
|
+
:param search_query:
|
|
5088
|
+
:type search_query: str
|
|
5040
5089
|
:param _request_timeout: timeout setting for this request. If one
|
|
5041
5090
|
number provided, it will be total request
|
|
5042
5091
|
timeout. It can also be a pair (tuple) of
|
|
@@ -5059,7 +5108,9 @@ class EXTERNALApi:
|
|
|
5059
5108
|
:return: Returns the result object.
|
|
5060
5109
|
""" # noqa: E501
|
|
5061
5110
|
|
|
5062
|
-
_param = self.
|
|
5111
|
+
_param = self._get_all_user_vault_items_endpoint_user_vault_get_serialize(
|
|
5112
|
+
type=type,
|
|
5113
|
+
search_query=search_query,
|
|
5063
5114
|
_request_auth=_request_auth,
|
|
5064
5115
|
_content_type=_content_type,
|
|
5065
5116
|
_headers=_headers,
|
|
@@ -5067,7 +5118,8 @@ class EXTERNALApi:
|
|
|
5067
5118
|
)
|
|
5068
5119
|
|
|
5069
5120
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
5070
|
-
'200': "
|
|
5121
|
+
'200': "ListUserVaultItemsResponse",
|
|
5122
|
+
'422': "HTTPValidationError",
|
|
5071
5123
|
}
|
|
5072
5124
|
response_data = self.api_client.call_api(
|
|
5073
5125
|
*_param,
|
|
@@ -5076,8 +5128,10 @@ class EXTERNALApi:
|
|
|
5076
5128
|
return response_data.response
|
|
5077
5129
|
|
|
5078
5130
|
|
|
5079
|
-
def
|
|
5131
|
+
def _get_all_user_vault_items_endpoint_user_vault_get_serialize(
|
|
5080
5132
|
self,
|
|
5133
|
+
type,
|
|
5134
|
+
search_query,
|
|
5081
5135
|
_request_auth,
|
|
5082
5136
|
_content_type,
|
|
5083
5137
|
_headers,
|
|
@@ -5100,6 +5154,14 @@ class EXTERNALApi:
|
|
|
5100
5154
|
|
|
5101
5155
|
# process the path parameters
|
|
5102
5156
|
# process the query parameters
|
|
5157
|
+
if type is not None:
|
|
5158
|
+
|
|
5159
|
+
_query_params.append(('type', type.value))
|
|
5160
|
+
|
|
5161
|
+
if search_query is not None:
|
|
5162
|
+
|
|
5163
|
+
_query_params.append(('search_query', search_query))
|
|
5164
|
+
|
|
5103
5165
|
# process the header parameters
|
|
5104
5166
|
# process the form parameters
|
|
5105
5167
|
# process the body parameter
|
|
@@ -5121,7 +5183,7 @@ class EXTERNALApi:
|
|
|
5121
5183
|
|
|
5122
5184
|
return self.api_client.param_serialize(
|
|
5123
5185
|
method='GET',
|
|
5124
|
-
resource_path='/
|
|
5186
|
+
resource_path='/user_vault',
|
|
5125
5187
|
path_params=_path_params,
|
|
5126
5188
|
query_params=_query_params,
|
|
5127
5189
|
header_params=_header_params,
|
|
@@ -5138,7 +5200,7 @@ class EXTERNALApi:
|
|
|
5138
5200
|
|
|
5139
5201
|
|
|
5140
5202
|
@validate_call
|
|
5141
|
-
def
|
|
5203
|
+
def get_all_volumes_endpoint_volumes_get(
|
|
5142
5204
|
self,
|
|
5143
5205
|
_request_timeout: Union[
|
|
5144
5206
|
None,
|
|
@@ -5152,9 +5214,10 @@ class EXTERNALApi:
|
|
|
5152
5214
|
_content_type: Optional[StrictStr] = None,
|
|
5153
5215
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
5154
5216
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
5155
|
-
) ->
|
|
5156
|
-
"""Get
|
|
5217
|
+
) -> ListVolumesResponse:
|
|
5218
|
+
"""Get All Volumes Endpoint
|
|
5157
5219
|
|
|
5220
|
+
Retrieve all of the organization's volumes.
|
|
5158
5221
|
|
|
5159
5222
|
:param _request_timeout: timeout setting for this request. If one
|
|
5160
5223
|
number provided, it will be total request
|
|
@@ -5178,7 +5241,252 @@ class EXTERNALApi:
|
|
|
5178
5241
|
:return: Returns the result object.
|
|
5179
5242
|
""" # noqa: E501
|
|
5180
5243
|
|
|
5181
|
-
_param = self.
|
|
5244
|
+
_param = self._get_all_volumes_endpoint_volumes_get_serialize(
|
|
5245
|
+
_request_auth=_request_auth,
|
|
5246
|
+
_content_type=_content_type,
|
|
5247
|
+
_headers=_headers,
|
|
5248
|
+
_host_index=_host_index
|
|
5249
|
+
)
|
|
5250
|
+
|
|
5251
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
5252
|
+
'200': "ListVolumesResponse",
|
|
5253
|
+
}
|
|
5254
|
+
response_data = self.api_client.call_api(
|
|
5255
|
+
*_param,
|
|
5256
|
+
_request_timeout=_request_timeout
|
|
5257
|
+
)
|
|
5258
|
+
response_data.read()
|
|
5259
|
+
return self.api_client.response_deserialize(
|
|
5260
|
+
response_data=response_data,
|
|
5261
|
+
response_types_map=_response_types_map,
|
|
5262
|
+
).data
|
|
5263
|
+
|
|
5264
|
+
|
|
5265
|
+
@validate_call
|
|
5266
|
+
def get_all_volumes_endpoint_volumes_get_with_http_info(
|
|
5267
|
+
self,
|
|
5268
|
+
_request_timeout: Union[
|
|
5269
|
+
None,
|
|
5270
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
5271
|
+
Tuple[
|
|
5272
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
5273
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
5274
|
+
]
|
|
5275
|
+
] = None,
|
|
5276
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
5277
|
+
_content_type: Optional[StrictStr] = None,
|
|
5278
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
5279
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
5280
|
+
) -> ApiResponse[ListVolumesResponse]:
|
|
5281
|
+
"""Get All Volumes Endpoint
|
|
5282
|
+
|
|
5283
|
+
Retrieve all of the organization's volumes.
|
|
5284
|
+
|
|
5285
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
5286
|
+
number provided, it will be total request
|
|
5287
|
+
timeout. It can also be a pair (tuple) of
|
|
5288
|
+
(connection, read) timeouts.
|
|
5289
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
5290
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
5291
|
+
request; this effectively ignores the
|
|
5292
|
+
authentication in the spec for a single request.
|
|
5293
|
+
:type _request_auth: dict, optional
|
|
5294
|
+
:param _content_type: force content-type for the request.
|
|
5295
|
+
:type _content_type: str, Optional
|
|
5296
|
+
:param _headers: set to override the headers for a single
|
|
5297
|
+
request; this effectively ignores the headers
|
|
5298
|
+
in the spec for a single request.
|
|
5299
|
+
:type _headers: dict, optional
|
|
5300
|
+
:param _host_index: set to override the host_index for a single
|
|
5301
|
+
request; this effectively ignores the host_index
|
|
5302
|
+
in the spec for a single request.
|
|
5303
|
+
:type _host_index: int, optional
|
|
5304
|
+
:return: Returns the result object.
|
|
5305
|
+
""" # noqa: E501
|
|
5306
|
+
|
|
5307
|
+
_param = self._get_all_volumes_endpoint_volumes_get_serialize(
|
|
5308
|
+
_request_auth=_request_auth,
|
|
5309
|
+
_content_type=_content_type,
|
|
5310
|
+
_headers=_headers,
|
|
5311
|
+
_host_index=_host_index
|
|
5312
|
+
)
|
|
5313
|
+
|
|
5314
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
5315
|
+
'200': "ListVolumesResponse",
|
|
5316
|
+
}
|
|
5317
|
+
response_data = self.api_client.call_api(
|
|
5318
|
+
*_param,
|
|
5319
|
+
_request_timeout=_request_timeout
|
|
5320
|
+
)
|
|
5321
|
+
response_data.read()
|
|
5322
|
+
return self.api_client.response_deserialize(
|
|
5323
|
+
response_data=response_data,
|
|
5324
|
+
response_types_map=_response_types_map,
|
|
5325
|
+
)
|
|
5326
|
+
|
|
5327
|
+
|
|
5328
|
+
@validate_call
|
|
5329
|
+
def get_all_volumes_endpoint_volumes_get_without_preload_content(
|
|
5330
|
+
self,
|
|
5331
|
+
_request_timeout: Union[
|
|
5332
|
+
None,
|
|
5333
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
5334
|
+
Tuple[
|
|
5335
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
5336
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
5337
|
+
]
|
|
5338
|
+
] = None,
|
|
5339
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
5340
|
+
_content_type: Optional[StrictStr] = None,
|
|
5341
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
5342
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
5343
|
+
) -> RESTResponseType:
|
|
5344
|
+
"""Get All Volumes Endpoint
|
|
5345
|
+
|
|
5346
|
+
Retrieve all of the organization's volumes.
|
|
5347
|
+
|
|
5348
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
5349
|
+
number provided, it will be total request
|
|
5350
|
+
timeout. It can also be a pair (tuple) of
|
|
5351
|
+
(connection, read) timeouts.
|
|
5352
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
5353
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
5354
|
+
request; this effectively ignores the
|
|
5355
|
+
authentication in the spec for a single request.
|
|
5356
|
+
:type _request_auth: dict, optional
|
|
5357
|
+
:param _content_type: force content-type for the request.
|
|
5358
|
+
:type _content_type: str, Optional
|
|
5359
|
+
:param _headers: set to override the headers for a single
|
|
5360
|
+
request; this effectively ignores the headers
|
|
5361
|
+
in the spec for a single request.
|
|
5362
|
+
:type _headers: dict, optional
|
|
5363
|
+
:param _host_index: set to override the host_index for a single
|
|
5364
|
+
request; this effectively ignores the host_index
|
|
5365
|
+
in the spec for a single request.
|
|
5366
|
+
:type _host_index: int, optional
|
|
5367
|
+
:return: Returns the result object.
|
|
5368
|
+
""" # noqa: E501
|
|
5369
|
+
|
|
5370
|
+
_param = self._get_all_volumes_endpoint_volumes_get_serialize(
|
|
5371
|
+
_request_auth=_request_auth,
|
|
5372
|
+
_content_type=_content_type,
|
|
5373
|
+
_headers=_headers,
|
|
5374
|
+
_host_index=_host_index
|
|
5375
|
+
)
|
|
5376
|
+
|
|
5377
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
5378
|
+
'200': "ListVolumesResponse",
|
|
5379
|
+
}
|
|
5380
|
+
response_data = self.api_client.call_api(
|
|
5381
|
+
*_param,
|
|
5382
|
+
_request_timeout=_request_timeout
|
|
5383
|
+
)
|
|
5384
|
+
return response_data.response
|
|
5385
|
+
|
|
5386
|
+
|
|
5387
|
+
def _get_all_volumes_endpoint_volumes_get_serialize(
|
|
5388
|
+
self,
|
|
5389
|
+
_request_auth,
|
|
5390
|
+
_content_type,
|
|
5391
|
+
_headers,
|
|
5392
|
+
_host_index,
|
|
5393
|
+
) -> RequestSerialized:
|
|
5394
|
+
|
|
5395
|
+
_host = None
|
|
5396
|
+
|
|
5397
|
+
_collection_formats: Dict[str, str] = {
|
|
5398
|
+
}
|
|
5399
|
+
|
|
5400
|
+
_path_params: Dict[str, str] = {}
|
|
5401
|
+
_query_params: List[Tuple[str, str]] = []
|
|
5402
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
5403
|
+
_form_params: List[Tuple[str, str]] = []
|
|
5404
|
+
_files: Dict[
|
|
5405
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
5406
|
+
] = {}
|
|
5407
|
+
_body_params: Optional[bytes] = None
|
|
5408
|
+
|
|
5409
|
+
# process the path parameters
|
|
5410
|
+
# process the query parameters
|
|
5411
|
+
# process the header parameters
|
|
5412
|
+
# process the form parameters
|
|
5413
|
+
# process the body parameter
|
|
5414
|
+
|
|
5415
|
+
|
|
5416
|
+
# set the HTTP header `Accept`
|
|
5417
|
+
if 'Accept' not in _header_params:
|
|
5418
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
5419
|
+
[
|
|
5420
|
+
'application/json'
|
|
5421
|
+
]
|
|
5422
|
+
)
|
|
5423
|
+
|
|
5424
|
+
|
|
5425
|
+
# authentication setting
|
|
5426
|
+
_auth_settings: List[str] = [
|
|
5427
|
+
'HTTPBearer'
|
|
5428
|
+
]
|
|
5429
|
+
|
|
5430
|
+
return self.api_client.param_serialize(
|
|
5431
|
+
method='GET',
|
|
5432
|
+
resource_path='/volumes',
|
|
5433
|
+
path_params=_path_params,
|
|
5434
|
+
query_params=_query_params,
|
|
5435
|
+
header_params=_header_params,
|
|
5436
|
+
body=_body_params,
|
|
5437
|
+
post_params=_form_params,
|
|
5438
|
+
files=_files,
|
|
5439
|
+
auth_settings=_auth_settings,
|
|
5440
|
+
collection_formats=_collection_formats,
|
|
5441
|
+
_host=_host,
|
|
5442
|
+
_request_auth=_request_auth
|
|
5443
|
+
)
|
|
5444
|
+
|
|
5445
|
+
|
|
5446
|
+
|
|
5447
|
+
|
|
5448
|
+
@validate_call
|
|
5449
|
+
def get_clusters_clusters_get(
|
|
5450
|
+
self,
|
|
5451
|
+
_request_timeout: Union[
|
|
5452
|
+
None,
|
|
5453
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
5454
|
+
Tuple[
|
|
5455
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
5456
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
5457
|
+
]
|
|
5458
|
+
] = None,
|
|
5459
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
5460
|
+
_content_type: Optional[StrictStr] = None,
|
|
5461
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
5462
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
5463
|
+
) -> ListGetClusterResponse:
|
|
5464
|
+
"""Get Clusters
|
|
5465
|
+
|
|
5466
|
+
|
|
5467
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
5468
|
+
number provided, it will be total request
|
|
5469
|
+
timeout. It can also be a pair (tuple) of
|
|
5470
|
+
(connection, read) timeouts.
|
|
5471
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
5472
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
5473
|
+
request; this effectively ignores the
|
|
5474
|
+
authentication in the spec for a single request.
|
|
5475
|
+
:type _request_auth: dict, optional
|
|
5476
|
+
:param _content_type: force content-type for the request.
|
|
5477
|
+
:type _content_type: str, Optional
|
|
5478
|
+
:param _headers: set to override the headers for a single
|
|
5479
|
+
request; this effectively ignores the headers
|
|
5480
|
+
in the spec for a single request.
|
|
5481
|
+
:type _headers: dict, optional
|
|
5482
|
+
:param _host_index: set to override the host_index for a single
|
|
5483
|
+
request; this effectively ignores the host_index
|
|
5484
|
+
in the spec for a single request.
|
|
5485
|
+
:type _host_index: int, optional
|
|
5486
|
+
:return: Returns the result object.
|
|
5487
|
+
""" # noqa: E501
|
|
5488
|
+
|
|
5489
|
+
_param = self._get_clusters_clusters_get_serialize(
|
|
5182
5490
|
_request_auth=_request_auth,
|
|
5183
5491
|
_content_type=_content_type,
|
|
5184
5492
|
_headers=_headers,
|
|
@@ -8461,8 +8769,8 @@ class EXTERNALApi:
|
|
|
8461
8769
|
@validate_call
|
|
8462
8770
|
def get_deployments_deployments_get(
|
|
8463
8771
|
self,
|
|
8464
|
-
offset: Optional[
|
|
8465
|
-
limit: Optional[
|
|
8772
|
+
offset: Optional[Annotated[int, Field(strict=True, ge=0)]] = None,
|
|
8773
|
+
limit: Optional[Annotated[int, Field(strict=True, ge=0)]] = None,
|
|
8466
8774
|
type: Optional[DeploymentType] = None,
|
|
8467
8775
|
search_query: Optional[StrictStr] = None,
|
|
8468
8776
|
_request_timeout: Union[
|
|
@@ -8540,8 +8848,8 @@ class EXTERNALApi:
|
|
|
8540
8848
|
@validate_call
|
|
8541
8849
|
def get_deployments_deployments_get_with_http_info(
|
|
8542
8850
|
self,
|
|
8543
|
-
offset: Optional[
|
|
8544
|
-
limit: Optional[
|
|
8851
|
+
offset: Optional[Annotated[int, Field(strict=True, ge=0)]] = None,
|
|
8852
|
+
limit: Optional[Annotated[int, Field(strict=True, ge=0)]] = None,
|
|
8545
8853
|
type: Optional[DeploymentType] = None,
|
|
8546
8854
|
search_query: Optional[StrictStr] = None,
|
|
8547
8855
|
_request_timeout: Union[
|
|
@@ -8619,8 +8927,8 @@ class EXTERNALApi:
|
|
|
8619
8927
|
@validate_call
|
|
8620
8928
|
def get_deployments_deployments_get_without_preload_content(
|
|
8621
8929
|
self,
|
|
8622
|
-
offset: Optional[
|
|
8623
|
-
limit: Optional[
|
|
8930
|
+
offset: Optional[Annotated[int, Field(strict=True, ge=0)]] = None,
|
|
8931
|
+
limit: Optional[Annotated[int, Field(strict=True, ge=0)]] = None,
|
|
8624
8932
|
type: Optional[DeploymentType] = None,
|
|
8625
8933
|
search_query: Optional[StrictStr] = None,
|
|
8626
8934
|
_request_timeout: Union[
|
|
@@ -8773,9 +9081,9 @@ class EXTERNALApi:
|
|
|
8773
9081
|
|
|
8774
9082
|
|
|
8775
9083
|
@validate_call
|
|
8776
|
-
def
|
|
9084
|
+
def get_dynamo_deployment_deployments_dynamo_deployment_id_get(
|
|
8777
9085
|
self,
|
|
8778
|
-
|
|
9086
|
+
deployment_id: StrictInt,
|
|
8779
9087
|
_request_timeout: Union[
|
|
8780
9088
|
None,
|
|
8781
9089
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -8788,12 +9096,12 @@ class EXTERNALApi:
|
|
|
8788
9096
|
_content_type: Optional[StrictStr] = None,
|
|
8789
9097
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
8790
9098
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
8791
|
-
) ->
|
|
8792
|
-
"""Get
|
|
9099
|
+
) -> GetDynamoDeploymentResponse:
|
|
9100
|
+
"""Get Dynamo Deployment
|
|
8793
9101
|
|
|
8794
9102
|
|
|
8795
|
-
:param
|
|
8796
|
-
:type
|
|
9103
|
+
:param deployment_id: (required)
|
|
9104
|
+
:type deployment_id: int
|
|
8797
9105
|
:param _request_timeout: timeout setting for this request. If one
|
|
8798
9106
|
number provided, it will be total request
|
|
8799
9107
|
timeout. It can also be a pair (tuple) of
|
|
@@ -8816,7 +9124,268 @@ class EXTERNALApi:
|
|
|
8816
9124
|
:return: Returns the result object.
|
|
8817
9125
|
""" # noqa: E501
|
|
8818
9126
|
|
|
8819
|
-
_param = self.
|
|
9127
|
+
_param = self._get_dynamo_deployment_deployments_dynamo_deployment_id_get_serialize(
|
|
9128
|
+
deployment_id=deployment_id,
|
|
9129
|
+
_request_auth=_request_auth,
|
|
9130
|
+
_content_type=_content_type,
|
|
9131
|
+
_headers=_headers,
|
|
9132
|
+
_host_index=_host_index
|
|
9133
|
+
)
|
|
9134
|
+
|
|
9135
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
9136
|
+
'200': "GetDynamoDeploymentResponse",
|
|
9137
|
+
'422': "HTTPValidationError",
|
|
9138
|
+
}
|
|
9139
|
+
response_data = self.api_client.call_api(
|
|
9140
|
+
*_param,
|
|
9141
|
+
_request_timeout=_request_timeout
|
|
9142
|
+
)
|
|
9143
|
+
response_data.read()
|
|
9144
|
+
return self.api_client.response_deserialize(
|
|
9145
|
+
response_data=response_data,
|
|
9146
|
+
response_types_map=_response_types_map,
|
|
9147
|
+
).data
|
|
9148
|
+
|
|
9149
|
+
|
|
9150
|
+
@validate_call
|
|
9151
|
+
def get_dynamo_deployment_deployments_dynamo_deployment_id_get_with_http_info(
|
|
9152
|
+
self,
|
|
9153
|
+
deployment_id: StrictInt,
|
|
9154
|
+
_request_timeout: Union[
|
|
9155
|
+
None,
|
|
9156
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
9157
|
+
Tuple[
|
|
9158
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
9159
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
9160
|
+
]
|
|
9161
|
+
] = None,
|
|
9162
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
9163
|
+
_content_type: Optional[StrictStr] = None,
|
|
9164
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
9165
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
9166
|
+
) -> ApiResponse[GetDynamoDeploymentResponse]:
|
|
9167
|
+
"""Get Dynamo Deployment
|
|
9168
|
+
|
|
9169
|
+
|
|
9170
|
+
:param deployment_id: (required)
|
|
9171
|
+
:type deployment_id: int
|
|
9172
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
9173
|
+
number provided, it will be total request
|
|
9174
|
+
timeout. It can also be a pair (tuple) of
|
|
9175
|
+
(connection, read) timeouts.
|
|
9176
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
9177
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
9178
|
+
request; this effectively ignores the
|
|
9179
|
+
authentication in the spec for a single request.
|
|
9180
|
+
:type _request_auth: dict, optional
|
|
9181
|
+
:param _content_type: force content-type for the request.
|
|
9182
|
+
:type _content_type: str, Optional
|
|
9183
|
+
:param _headers: set to override the headers for a single
|
|
9184
|
+
request; this effectively ignores the headers
|
|
9185
|
+
in the spec for a single request.
|
|
9186
|
+
:type _headers: dict, optional
|
|
9187
|
+
:param _host_index: set to override the host_index for a single
|
|
9188
|
+
request; this effectively ignores the host_index
|
|
9189
|
+
in the spec for a single request.
|
|
9190
|
+
:type _host_index: int, optional
|
|
9191
|
+
:return: Returns the result object.
|
|
9192
|
+
""" # noqa: E501
|
|
9193
|
+
|
|
9194
|
+
_param = self._get_dynamo_deployment_deployments_dynamo_deployment_id_get_serialize(
|
|
9195
|
+
deployment_id=deployment_id,
|
|
9196
|
+
_request_auth=_request_auth,
|
|
9197
|
+
_content_type=_content_type,
|
|
9198
|
+
_headers=_headers,
|
|
9199
|
+
_host_index=_host_index
|
|
9200
|
+
)
|
|
9201
|
+
|
|
9202
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
9203
|
+
'200': "GetDynamoDeploymentResponse",
|
|
9204
|
+
'422': "HTTPValidationError",
|
|
9205
|
+
}
|
|
9206
|
+
response_data = self.api_client.call_api(
|
|
9207
|
+
*_param,
|
|
9208
|
+
_request_timeout=_request_timeout
|
|
9209
|
+
)
|
|
9210
|
+
response_data.read()
|
|
9211
|
+
return self.api_client.response_deserialize(
|
|
9212
|
+
response_data=response_data,
|
|
9213
|
+
response_types_map=_response_types_map,
|
|
9214
|
+
)
|
|
9215
|
+
|
|
9216
|
+
|
|
9217
|
+
@validate_call
|
|
9218
|
+
def get_dynamo_deployment_deployments_dynamo_deployment_id_get_without_preload_content(
|
|
9219
|
+
self,
|
|
9220
|
+
deployment_id: StrictInt,
|
|
9221
|
+
_request_timeout: Union[
|
|
9222
|
+
None,
|
|
9223
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
9224
|
+
Tuple[
|
|
9225
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
9226
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
9227
|
+
]
|
|
9228
|
+
] = None,
|
|
9229
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
9230
|
+
_content_type: Optional[StrictStr] = None,
|
|
9231
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
9232
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
9233
|
+
) -> RESTResponseType:
|
|
9234
|
+
"""Get Dynamo Deployment
|
|
9235
|
+
|
|
9236
|
+
|
|
9237
|
+
:param deployment_id: (required)
|
|
9238
|
+
:type deployment_id: int
|
|
9239
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
9240
|
+
number provided, it will be total request
|
|
9241
|
+
timeout. It can also be a pair (tuple) of
|
|
9242
|
+
(connection, read) timeouts.
|
|
9243
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
9244
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
9245
|
+
request; this effectively ignores the
|
|
9246
|
+
authentication in the spec for a single request.
|
|
9247
|
+
:type _request_auth: dict, optional
|
|
9248
|
+
:param _content_type: force content-type for the request.
|
|
9249
|
+
:type _content_type: str, Optional
|
|
9250
|
+
:param _headers: set to override the headers for a single
|
|
9251
|
+
request; this effectively ignores the headers
|
|
9252
|
+
in the spec for a single request.
|
|
9253
|
+
:type _headers: dict, optional
|
|
9254
|
+
:param _host_index: set to override the host_index for a single
|
|
9255
|
+
request; this effectively ignores the host_index
|
|
9256
|
+
in the spec for a single request.
|
|
9257
|
+
:type _host_index: int, optional
|
|
9258
|
+
:return: Returns the result object.
|
|
9259
|
+
""" # noqa: E501
|
|
9260
|
+
|
|
9261
|
+
_param = self._get_dynamo_deployment_deployments_dynamo_deployment_id_get_serialize(
|
|
9262
|
+
deployment_id=deployment_id,
|
|
9263
|
+
_request_auth=_request_auth,
|
|
9264
|
+
_content_type=_content_type,
|
|
9265
|
+
_headers=_headers,
|
|
9266
|
+
_host_index=_host_index
|
|
9267
|
+
)
|
|
9268
|
+
|
|
9269
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
9270
|
+
'200': "GetDynamoDeploymentResponse",
|
|
9271
|
+
'422': "HTTPValidationError",
|
|
9272
|
+
}
|
|
9273
|
+
response_data = self.api_client.call_api(
|
|
9274
|
+
*_param,
|
|
9275
|
+
_request_timeout=_request_timeout
|
|
9276
|
+
)
|
|
9277
|
+
return response_data.response
|
|
9278
|
+
|
|
9279
|
+
|
|
9280
|
+
def _get_dynamo_deployment_deployments_dynamo_deployment_id_get_serialize(
|
|
9281
|
+
self,
|
|
9282
|
+
deployment_id,
|
|
9283
|
+
_request_auth,
|
|
9284
|
+
_content_type,
|
|
9285
|
+
_headers,
|
|
9286
|
+
_host_index,
|
|
9287
|
+
) -> RequestSerialized:
|
|
9288
|
+
|
|
9289
|
+
_host = None
|
|
9290
|
+
|
|
9291
|
+
_collection_formats: Dict[str, str] = {
|
|
9292
|
+
}
|
|
9293
|
+
|
|
9294
|
+
_path_params: Dict[str, str] = {}
|
|
9295
|
+
_query_params: List[Tuple[str, str]] = []
|
|
9296
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
9297
|
+
_form_params: List[Tuple[str, str]] = []
|
|
9298
|
+
_files: Dict[
|
|
9299
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
9300
|
+
] = {}
|
|
9301
|
+
_body_params: Optional[bytes] = None
|
|
9302
|
+
|
|
9303
|
+
# process the path parameters
|
|
9304
|
+
if deployment_id is not None:
|
|
9305
|
+
_path_params['deployment_id'] = deployment_id
|
|
9306
|
+
# process the query parameters
|
|
9307
|
+
# process the header parameters
|
|
9308
|
+
# process the form parameters
|
|
9309
|
+
# process the body parameter
|
|
9310
|
+
|
|
9311
|
+
|
|
9312
|
+
# set the HTTP header `Accept`
|
|
9313
|
+
if 'Accept' not in _header_params:
|
|
9314
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
9315
|
+
[
|
|
9316
|
+
'application/json'
|
|
9317
|
+
]
|
|
9318
|
+
)
|
|
9319
|
+
|
|
9320
|
+
|
|
9321
|
+
# authentication setting
|
|
9322
|
+
_auth_settings: List[str] = [
|
|
9323
|
+
'HTTPBearer'
|
|
9324
|
+
]
|
|
9325
|
+
|
|
9326
|
+
return self.api_client.param_serialize(
|
|
9327
|
+
method='GET',
|
|
9328
|
+
resource_path='/deployments/dynamo/{deployment_id}',
|
|
9329
|
+
path_params=_path_params,
|
|
9330
|
+
query_params=_query_params,
|
|
9331
|
+
header_params=_header_params,
|
|
9332
|
+
body=_body_params,
|
|
9333
|
+
post_params=_form_params,
|
|
9334
|
+
files=_files,
|
|
9335
|
+
auth_settings=_auth_settings,
|
|
9336
|
+
collection_formats=_collection_formats,
|
|
9337
|
+
_host=_host,
|
|
9338
|
+
_request_auth=_request_auth
|
|
9339
|
+
)
|
|
9340
|
+
|
|
9341
|
+
|
|
9342
|
+
|
|
9343
|
+
|
|
9344
|
+
@validate_call
|
|
9345
|
+
def get_hardware_instances_hardware_instances_get(
|
|
9346
|
+
self,
|
|
9347
|
+
cluster_id: Optional[StrictInt] = None,
|
|
9348
|
+
_request_timeout: Union[
|
|
9349
|
+
None,
|
|
9350
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
9351
|
+
Tuple[
|
|
9352
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
9353
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
9354
|
+
]
|
|
9355
|
+
] = None,
|
|
9356
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
9357
|
+
_content_type: Optional[StrictStr] = None,
|
|
9358
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
9359
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
9360
|
+
) -> ListHardwareInstanceResponse:
|
|
9361
|
+
"""Get Hardware Instances
|
|
9362
|
+
|
|
9363
|
+
|
|
9364
|
+
:param cluster_id:
|
|
9365
|
+
:type cluster_id: int
|
|
9366
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
9367
|
+
number provided, it will be total request
|
|
9368
|
+
timeout. It can also be a pair (tuple) of
|
|
9369
|
+
(connection, read) timeouts.
|
|
9370
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
9371
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
9372
|
+
request; this effectively ignores the
|
|
9373
|
+
authentication in the spec for a single request.
|
|
9374
|
+
:type _request_auth: dict, optional
|
|
9375
|
+
:param _content_type: force content-type for the request.
|
|
9376
|
+
:type _content_type: str, Optional
|
|
9377
|
+
:param _headers: set to override the headers for a single
|
|
9378
|
+
request; this effectively ignores the headers
|
|
9379
|
+
in the spec for a single request.
|
|
9380
|
+
:type _headers: dict, optional
|
|
9381
|
+
:param _host_index: set to override the host_index for a single
|
|
9382
|
+
request; this effectively ignores the host_index
|
|
9383
|
+
in the spec for a single request.
|
|
9384
|
+
:type _host_index: int, optional
|
|
9385
|
+
:return: Returns the result object.
|
|
9386
|
+
""" # noqa: E501
|
|
9387
|
+
|
|
9388
|
+
_param = self._get_hardware_instances_hardware_instances_get_serialize(
|
|
8820
9389
|
cluster_id=cluster_id,
|
|
8821
9390
|
_request_auth=_request_auth,
|
|
8822
9391
|
_content_type=_content_type,
|
|
@@ -10777,7 +11346,271 @@ class EXTERNALApi:
|
|
|
10777
11346
|
|
|
10778
11347
|
|
|
10779
11348
|
@validate_call
|
|
10780
|
-
def get_volume_endpoint_volumes_volume_id_get_with_http_info(
|
|
11349
|
+
def get_volume_endpoint_volumes_volume_id_get_with_http_info(
|
|
11350
|
+
self,
|
|
11351
|
+
volume_id: StrictInt,
|
|
11352
|
+
_request_timeout: Union[
|
|
11353
|
+
None,
|
|
11354
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
11355
|
+
Tuple[
|
|
11356
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
11357
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
11358
|
+
]
|
|
11359
|
+
] = None,
|
|
11360
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
11361
|
+
_content_type: Optional[StrictStr] = None,
|
|
11362
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
11363
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
11364
|
+
) -> ApiResponse[GetVolumeResponse]:
|
|
11365
|
+
"""Get Volume Endpoint
|
|
11366
|
+
|
|
11367
|
+
Retrieve a single volume by id.
|
|
11368
|
+
|
|
11369
|
+
:param volume_id: (required)
|
|
11370
|
+
:type volume_id: int
|
|
11371
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
11372
|
+
number provided, it will be total request
|
|
11373
|
+
timeout. It can also be a pair (tuple) of
|
|
11374
|
+
(connection, read) timeouts.
|
|
11375
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
11376
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
11377
|
+
request; this effectively ignores the
|
|
11378
|
+
authentication in the spec for a single request.
|
|
11379
|
+
:type _request_auth: dict, optional
|
|
11380
|
+
:param _content_type: force content-type for the request.
|
|
11381
|
+
:type _content_type: str, Optional
|
|
11382
|
+
:param _headers: set to override the headers for a single
|
|
11383
|
+
request; this effectively ignores the headers
|
|
11384
|
+
in the spec for a single request.
|
|
11385
|
+
:type _headers: dict, optional
|
|
11386
|
+
:param _host_index: set to override the host_index for a single
|
|
11387
|
+
request; this effectively ignores the host_index
|
|
11388
|
+
in the spec for a single request.
|
|
11389
|
+
:type _host_index: int, optional
|
|
11390
|
+
:return: Returns the result object.
|
|
11391
|
+
""" # noqa: E501
|
|
11392
|
+
|
|
11393
|
+
_param = self._get_volume_endpoint_volumes_volume_id_get_serialize(
|
|
11394
|
+
volume_id=volume_id,
|
|
11395
|
+
_request_auth=_request_auth,
|
|
11396
|
+
_content_type=_content_type,
|
|
11397
|
+
_headers=_headers,
|
|
11398
|
+
_host_index=_host_index
|
|
11399
|
+
)
|
|
11400
|
+
|
|
11401
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
11402
|
+
'200': "GetVolumeResponse",
|
|
11403
|
+
'422': "HTTPValidationError",
|
|
11404
|
+
}
|
|
11405
|
+
response_data = self.api_client.call_api(
|
|
11406
|
+
*_param,
|
|
11407
|
+
_request_timeout=_request_timeout
|
|
11408
|
+
)
|
|
11409
|
+
response_data.read()
|
|
11410
|
+
return self.api_client.response_deserialize(
|
|
11411
|
+
response_data=response_data,
|
|
11412
|
+
response_types_map=_response_types_map,
|
|
11413
|
+
)
|
|
11414
|
+
|
|
11415
|
+
|
|
11416
|
+
@validate_call
|
|
11417
|
+
def get_volume_endpoint_volumes_volume_id_get_without_preload_content(
|
|
11418
|
+
self,
|
|
11419
|
+
volume_id: StrictInt,
|
|
11420
|
+
_request_timeout: Union[
|
|
11421
|
+
None,
|
|
11422
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
11423
|
+
Tuple[
|
|
11424
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
11425
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
11426
|
+
]
|
|
11427
|
+
] = None,
|
|
11428
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
11429
|
+
_content_type: Optional[StrictStr] = None,
|
|
11430
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
11431
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
11432
|
+
) -> RESTResponseType:
|
|
11433
|
+
"""Get Volume Endpoint
|
|
11434
|
+
|
|
11435
|
+
Retrieve a single volume by id.
|
|
11436
|
+
|
|
11437
|
+
:param volume_id: (required)
|
|
11438
|
+
:type volume_id: int
|
|
11439
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
11440
|
+
number provided, it will be total request
|
|
11441
|
+
timeout. It can also be a pair (tuple) of
|
|
11442
|
+
(connection, read) timeouts.
|
|
11443
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
11444
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
11445
|
+
request; this effectively ignores the
|
|
11446
|
+
authentication in the spec for a single request.
|
|
11447
|
+
:type _request_auth: dict, optional
|
|
11448
|
+
:param _content_type: force content-type for the request.
|
|
11449
|
+
:type _content_type: str, Optional
|
|
11450
|
+
:param _headers: set to override the headers for a single
|
|
11451
|
+
request; this effectively ignores the headers
|
|
11452
|
+
in the spec for a single request.
|
|
11453
|
+
:type _headers: dict, optional
|
|
11454
|
+
:param _host_index: set to override the host_index for a single
|
|
11455
|
+
request; this effectively ignores the host_index
|
|
11456
|
+
in the spec for a single request.
|
|
11457
|
+
:type _host_index: int, optional
|
|
11458
|
+
:return: Returns the result object.
|
|
11459
|
+
""" # noqa: E501
|
|
11460
|
+
|
|
11461
|
+
_param = self._get_volume_endpoint_volumes_volume_id_get_serialize(
|
|
11462
|
+
volume_id=volume_id,
|
|
11463
|
+
_request_auth=_request_auth,
|
|
11464
|
+
_content_type=_content_type,
|
|
11465
|
+
_headers=_headers,
|
|
11466
|
+
_host_index=_host_index
|
|
11467
|
+
)
|
|
11468
|
+
|
|
11469
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
11470
|
+
'200': "GetVolumeResponse",
|
|
11471
|
+
'422': "HTTPValidationError",
|
|
11472
|
+
}
|
|
11473
|
+
response_data = self.api_client.call_api(
|
|
11474
|
+
*_param,
|
|
11475
|
+
_request_timeout=_request_timeout
|
|
11476
|
+
)
|
|
11477
|
+
return response_data.response
|
|
11478
|
+
|
|
11479
|
+
|
|
11480
|
+
def _get_volume_endpoint_volumes_volume_id_get_serialize(
|
|
11481
|
+
self,
|
|
11482
|
+
volume_id,
|
|
11483
|
+
_request_auth,
|
|
11484
|
+
_content_type,
|
|
11485
|
+
_headers,
|
|
11486
|
+
_host_index,
|
|
11487
|
+
) -> RequestSerialized:
|
|
11488
|
+
|
|
11489
|
+
_host = None
|
|
11490
|
+
|
|
11491
|
+
_collection_formats: Dict[str, str] = {
|
|
11492
|
+
}
|
|
11493
|
+
|
|
11494
|
+
_path_params: Dict[str, str] = {}
|
|
11495
|
+
_query_params: List[Tuple[str, str]] = []
|
|
11496
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
11497
|
+
_form_params: List[Tuple[str, str]] = []
|
|
11498
|
+
_files: Dict[
|
|
11499
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
11500
|
+
] = {}
|
|
11501
|
+
_body_params: Optional[bytes] = None
|
|
11502
|
+
|
|
11503
|
+
# process the path parameters
|
|
11504
|
+
if volume_id is not None:
|
|
11505
|
+
_path_params['volume_id'] = volume_id
|
|
11506
|
+
# process the query parameters
|
|
11507
|
+
# process the header parameters
|
|
11508
|
+
# process the form parameters
|
|
11509
|
+
# process the body parameter
|
|
11510
|
+
|
|
11511
|
+
|
|
11512
|
+
# set the HTTP header `Accept`
|
|
11513
|
+
if 'Accept' not in _header_params:
|
|
11514
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
11515
|
+
[
|
|
11516
|
+
'application/json'
|
|
11517
|
+
]
|
|
11518
|
+
)
|
|
11519
|
+
|
|
11520
|
+
|
|
11521
|
+
# authentication setting
|
|
11522
|
+
_auth_settings: List[str] = [
|
|
11523
|
+
'HTTPBearer'
|
|
11524
|
+
]
|
|
11525
|
+
|
|
11526
|
+
return self.api_client.param_serialize(
|
|
11527
|
+
method='GET',
|
|
11528
|
+
resource_path='/volumes/{volume_id}',
|
|
11529
|
+
path_params=_path_params,
|
|
11530
|
+
query_params=_query_params,
|
|
11531
|
+
header_params=_header_params,
|
|
11532
|
+
body=_body_params,
|
|
11533
|
+
post_params=_form_params,
|
|
11534
|
+
files=_files,
|
|
11535
|
+
auth_settings=_auth_settings,
|
|
11536
|
+
collection_formats=_collection_formats,
|
|
11537
|
+
_host=_host,
|
|
11538
|
+
_request_auth=_request_auth
|
|
11539
|
+
)
|
|
11540
|
+
|
|
11541
|
+
|
|
11542
|
+
|
|
11543
|
+
|
|
11544
|
+
@validate_call
|
|
11545
|
+
def get_volume_status_endpoint_volumes_status_volume_id_get(
|
|
11546
|
+
self,
|
|
11547
|
+
volume_id: StrictInt,
|
|
11548
|
+
_request_timeout: Union[
|
|
11549
|
+
None,
|
|
11550
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
11551
|
+
Tuple[
|
|
11552
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
11553
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
11554
|
+
]
|
|
11555
|
+
] = None,
|
|
11556
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
11557
|
+
_content_type: Optional[StrictStr] = None,
|
|
11558
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
11559
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
11560
|
+
) -> VolumeStatusResponse:
|
|
11561
|
+
"""Get Volume Status Endpoint
|
|
11562
|
+
|
|
11563
|
+
Live volume status: status is the stored intent, service_status is computed from the volume app's health and PVC phase.
|
|
11564
|
+
|
|
11565
|
+
:param volume_id: (required)
|
|
11566
|
+
:type volume_id: int
|
|
11567
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
11568
|
+
number provided, it will be total request
|
|
11569
|
+
timeout. It can also be a pair (tuple) of
|
|
11570
|
+
(connection, read) timeouts.
|
|
11571
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
11572
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
11573
|
+
request; this effectively ignores the
|
|
11574
|
+
authentication in the spec for a single request.
|
|
11575
|
+
:type _request_auth: dict, optional
|
|
11576
|
+
:param _content_type: force content-type for the request.
|
|
11577
|
+
:type _content_type: str, Optional
|
|
11578
|
+
:param _headers: set to override the headers for a single
|
|
11579
|
+
request; this effectively ignores the headers
|
|
11580
|
+
in the spec for a single request.
|
|
11581
|
+
:type _headers: dict, optional
|
|
11582
|
+
:param _host_index: set to override the host_index for a single
|
|
11583
|
+
request; this effectively ignores the host_index
|
|
11584
|
+
in the spec for a single request.
|
|
11585
|
+
:type _host_index: int, optional
|
|
11586
|
+
:return: Returns the result object.
|
|
11587
|
+
""" # noqa: E501
|
|
11588
|
+
|
|
11589
|
+
_param = self._get_volume_status_endpoint_volumes_status_volume_id_get_serialize(
|
|
11590
|
+
volume_id=volume_id,
|
|
11591
|
+
_request_auth=_request_auth,
|
|
11592
|
+
_content_type=_content_type,
|
|
11593
|
+
_headers=_headers,
|
|
11594
|
+
_host_index=_host_index
|
|
11595
|
+
)
|
|
11596
|
+
|
|
11597
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
11598
|
+
'200': "VolumeStatusResponse",
|
|
11599
|
+
'422': "HTTPValidationError",
|
|
11600
|
+
}
|
|
11601
|
+
response_data = self.api_client.call_api(
|
|
11602
|
+
*_param,
|
|
11603
|
+
_request_timeout=_request_timeout
|
|
11604
|
+
)
|
|
11605
|
+
response_data.read()
|
|
11606
|
+
return self.api_client.response_deserialize(
|
|
11607
|
+
response_data=response_data,
|
|
11608
|
+
response_types_map=_response_types_map,
|
|
11609
|
+
).data
|
|
11610
|
+
|
|
11611
|
+
|
|
11612
|
+
@validate_call
|
|
11613
|
+
def get_volume_status_endpoint_volumes_status_volume_id_get_with_http_info(
|
|
10781
11614
|
self,
|
|
10782
11615
|
volume_id: StrictInt,
|
|
10783
11616
|
_request_timeout: Union[
|
|
@@ -10792,10 +11625,10 @@ class EXTERNALApi:
|
|
|
10792
11625
|
_content_type: Optional[StrictStr] = None,
|
|
10793
11626
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
10794
11627
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
10795
|
-
) -> ApiResponse[
|
|
10796
|
-
"""Get Volume Endpoint
|
|
11628
|
+
) -> ApiResponse[VolumeStatusResponse]:
|
|
11629
|
+
"""Get Volume Status Endpoint
|
|
10797
11630
|
|
|
10798
|
-
|
|
11631
|
+
Live volume status: status is the stored intent, service_status is computed from the volume app's health and PVC phase.
|
|
10799
11632
|
|
|
10800
11633
|
:param volume_id: (required)
|
|
10801
11634
|
:type volume_id: int
|
|
@@ -10821,7 +11654,7 @@ class EXTERNALApi:
|
|
|
10821
11654
|
:return: Returns the result object.
|
|
10822
11655
|
""" # noqa: E501
|
|
10823
11656
|
|
|
10824
|
-
_param = self.
|
|
11657
|
+
_param = self._get_volume_status_endpoint_volumes_status_volume_id_get_serialize(
|
|
10825
11658
|
volume_id=volume_id,
|
|
10826
11659
|
_request_auth=_request_auth,
|
|
10827
11660
|
_content_type=_content_type,
|
|
@@ -10830,7 +11663,7 @@ class EXTERNALApi:
|
|
|
10830
11663
|
)
|
|
10831
11664
|
|
|
10832
11665
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
10833
|
-
'200': "
|
|
11666
|
+
'200': "VolumeStatusResponse",
|
|
10834
11667
|
'422': "HTTPValidationError",
|
|
10835
11668
|
}
|
|
10836
11669
|
response_data = self.api_client.call_api(
|
|
@@ -10845,7 +11678,7 @@ class EXTERNALApi:
|
|
|
10845
11678
|
|
|
10846
11679
|
|
|
10847
11680
|
@validate_call
|
|
10848
|
-
def
|
|
11681
|
+
def get_volume_status_endpoint_volumes_status_volume_id_get_without_preload_content(
|
|
10849
11682
|
self,
|
|
10850
11683
|
volume_id: StrictInt,
|
|
10851
11684
|
_request_timeout: Union[
|
|
@@ -10861,9 +11694,9 @@ class EXTERNALApi:
|
|
|
10861
11694
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
10862
11695
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
10863
11696
|
) -> RESTResponseType:
|
|
10864
|
-
"""Get Volume Endpoint
|
|
11697
|
+
"""Get Volume Status Endpoint
|
|
10865
11698
|
|
|
10866
|
-
|
|
11699
|
+
Live volume status: status is the stored intent, service_status is computed from the volume app's health and PVC phase.
|
|
10867
11700
|
|
|
10868
11701
|
:param volume_id: (required)
|
|
10869
11702
|
:type volume_id: int
|
|
@@ -10889,7 +11722,7 @@ class EXTERNALApi:
|
|
|
10889
11722
|
:return: Returns the result object.
|
|
10890
11723
|
""" # noqa: E501
|
|
10891
11724
|
|
|
10892
|
-
_param = self.
|
|
11725
|
+
_param = self._get_volume_status_endpoint_volumes_status_volume_id_get_serialize(
|
|
10893
11726
|
volume_id=volume_id,
|
|
10894
11727
|
_request_auth=_request_auth,
|
|
10895
11728
|
_content_type=_content_type,
|
|
@@ -10898,7 +11731,7 @@ class EXTERNALApi:
|
|
|
10898
11731
|
)
|
|
10899
11732
|
|
|
10900
11733
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
10901
|
-
'200': "
|
|
11734
|
+
'200': "VolumeStatusResponse",
|
|
10902
11735
|
'422': "HTTPValidationError",
|
|
10903
11736
|
}
|
|
10904
11737
|
response_data = self.api_client.call_api(
|
|
@@ -10908,7 +11741,7 @@ class EXTERNALApi:
|
|
|
10908
11741
|
return response_data.response
|
|
10909
11742
|
|
|
10910
11743
|
|
|
10911
|
-
def
|
|
11744
|
+
def _get_volume_status_endpoint_volumes_status_volume_id_get_serialize(
|
|
10912
11745
|
self,
|
|
10913
11746
|
volume_id,
|
|
10914
11747
|
_request_auth,
|
|
@@ -10956,7 +11789,7 @@ class EXTERNALApi:
|
|
|
10956
11789
|
|
|
10957
11790
|
return self.api_client.param_serialize(
|
|
10958
11791
|
method='GET',
|
|
10959
|
-
resource_path='/volumes/{volume_id}',
|
|
11792
|
+
resource_path='/volumes/status/{volume_id}',
|
|
10960
11793
|
path_params=_path_params,
|
|
10961
11794
|
query_params=_query_params,
|
|
10962
11795
|
header_params=_header_params,
|
|
@@ -12859,17 +13692,262 @@ class EXTERNALApi:
|
|
|
12859
13692
|
]
|
|
12860
13693
|
)
|
|
12861
13694
|
)
|
|
12862
|
-
if _default_content_type is not None:
|
|
12863
|
-
_header_params['Content-Type'] = _default_content_type
|
|
13695
|
+
if _default_content_type is not None:
|
|
13696
|
+
_header_params['Content-Type'] = _default_content_type
|
|
13697
|
+
|
|
13698
|
+
# authentication setting
|
|
13699
|
+
_auth_settings: List[str] = [
|
|
13700
|
+
'HTTPBearer'
|
|
13701
|
+
]
|
|
13702
|
+
|
|
13703
|
+
return self.api_client.param_serialize(
|
|
13704
|
+
method='PUT',
|
|
13705
|
+
resource_path='/deployments/compute',
|
|
13706
|
+
path_params=_path_params,
|
|
13707
|
+
query_params=_query_params,
|
|
13708
|
+
header_params=_header_params,
|
|
13709
|
+
body=_body_params,
|
|
13710
|
+
post_params=_form_params,
|
|
13711
|
+
files=_files,
|
|
13712
|
+
auth_settings=_auth_settings,
|
|
13713
|
+
collection_formats=_collection_formats,
|
|
13714
|
+
_host=_host,
|
|
13715
|
+
_request_auth=_request_auth
|
|
13716
|
+
)
|
|
13717
|
+
|
|
13718
|
+
|
|
13719
|
+
|
|
13720
|
+
|
|
13721
|
+
@validate_call
|
|
13722
|
+
def update_cserve_v2_deployment_deployments_cserve_v2_put(
|
|
13723
|
+
self,
|
|
13724
|
+
_request_timeout: Union[
|
|
13725
|
+
None,
|
|
13726
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
13727
|
+
Tuple[
|
|
13728
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
13729
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
13730
|
+
]
|
|
13731
|
+
] = None,
|
|
13732
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
13733
|
+
_content_type: Optional[StrictStr] = None,
|
|
13734
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
13735
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
13736
|
+
) -> UpdateDeploymentResponse:
|
|
13737
|
+
"""(Deprecated) Update Cserve V2 Deployment
|
|
13738
|
+
|
|
13739
|
+
|
|
13740
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
13741
|
+
number provided, it will be total request
|
|
13742
|
+
timeout. It can also be a pair (tuple) of
|
|
13743
|
+
(connection, read) timeouts.
|
|
13744
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
13745
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
13746
|
+
request; this effectively ignores the
|
|
13747
|
+
authentication in the spec for a single request.
|
|
13748
|
+
:type _request_auth: dict, optional
|
|
13749
|
+
:param _content_type: force content-type for the request.
|
|
13750
|
+
:type _content_type: str, Optional
|
|
13751
|
+
:param _headers: set to override the headers for a single
|
|
13752
|
+
request; this effectively ignores the headers
|
|
13753
|
+
in the spec for a single request.
|
|
13754
|
+
:type _headers: dict, optional
|
|
13755
|
+
:param _host_index: set to override the host_index for a single
|
|
13756
|
+
request; this effectively ignores the host_index
|
|
13757
|
+
in the spec for a single request.
|
|
13758
|
+
:type _host_index: int, optional
|
|
13759
|
+
:return: Returns the result object.
|
|
13760
|
+
""" # noqa: E501
|
|
13761
|
+
warnings.warn("PUT /deployments/cserve_v2 is deprecated.", DeprecationWarning)
|
|
13762
|
+
|
|
13763
|
+
_param = self._update_cserve_v2_deployment_deployments_cserve_v2_put_serialize(
|
|
13764
|
+
_request_auth=_request_auth,
|
|
13765
|
+
_content_type=_content_type,
|
|
13766
|
+
_headers=_headers,
|
|
13767
|
+
_host_index=_host_index
|
|
13768
|
+
)
|
|
13769
|
+
|
|
13770
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
13771
|
+
'200': "UpdateDeploymentResponse",
|
|
13772
|
+
}
|
|
13773
|
+
response_data = self.api_client.call_api(
|
|
13774
|
+
*_param,
|
|
13775
|
+
_request_timeout=_request_timeout
|
|
13776
|
+
)
|
|
13777
|
+
response_data.read()
|
|
13778
|
+
return self.api_client.response_deserialize(
|
|
13779
|
+
response_data=response_data,
|
|
13780
|
+
response_types_map=_response_types_map,
|
|
13781
|
+
).data
|
|
13782
|
+
|
|
13783
|
+
|
|
13784
|
+
@validate_call
|
|
13785
|
+
def update_cserve_v2_deployment_deployments_cserve_v2_put_with_http_info(
|
|
13786
|
+
self,
|
|
13787
|
+
_request_timeout: Union[
|
|
13788
|
+
None,
|
|
13789
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
13790
|
+
Tuple[
|
|
13791
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
13792
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
13793
|
+
]
|
|
13794
|
+
] = None,
|
|
13795
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
13796
|
+
_content_type: Optional[StrictStr] = None,
|
|
13797
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
13798
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
13799
|
+
) -> ApiResponse[UpdateDeploymentResponse]:
|
|
13800
|
+
"""(Deprecated) Update Cserve V2 Deployment
|
|
13801
|
+
|
|
13802
|
+
|
|
13803
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
13804
|
+
number provided, it will be total request
|
|
13805
|
+
timeout. It can also be a pair (tuple) of
|
|
13806
|
+
(connection, read) timeouts.
|
|
13807
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
13808
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
13809
|
+
request; this effectively ignores the
|
|
13810
|
+
authentication in the spec for a single request.
|
|
13811
|
+
:type _request_auth: dict, optional
|
|
13812
|
+
:param _content_type: force content-type for the request.
|
|
13813
|
+
:type _content_type: str, Optional
|
|
13814
|
+
:param _headers: set to override the headers for a single
|
|
13815
|
+
request; this effectively ignores the headers
|
|
13816
|
+
in the spec for a single request.
|
|
13817
|
+
:type _headers: dict, optional
|
|
13818
|
+
:param _host_index: set to override the host_index for a single
|
|
13819
|
+
request; this effectively ignores the host_index
|
|
13820
|
+
in the spec for a single request.
|
|
13821
|
+
:type _host_index: int, optional
|
|
13822
|
+
:return: Returns the result object.
|
|
13823
|
+
""" # noqa: E501
|
|
13824
|
+
warnings.warn("PUT /deployments/cserve_v2 is deprecated.", DeprecationWarning)
|
|
13825
|
+
|
|
13826
|
+
_param = self._update_cserve_v2_deployment_deployments_cserve_v2_put_serialize(
|
|
13827
|
+
_request_auth=_request_auth,
|
|
13828
|
+
_content_type=_content_type,
|
|
13829
|
+
_headers=_headers,
|
|
13830
|
+
_host_index=_host_index
|
|
13831
|
+
)
|
|
13832
|
+
|
|
13833
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
13834
|
+
'200': "UpdateDeploymentResponse",
|
|
13835
|
+
}
|
|
13836
|
+
response_data = self.api_client.call_api(
|
|
13837
|
+
*_param,
|
|
13838
|
+
_request_timeout=_request_timeout
|
|
13839
|
+
)
|
|
13840
|
+
response_data.read()
|
|
13841
|
+
return self.api_client.response_deserialize(
|
|
13842
|
+
response_data=response_data,
|
|
13843
|
+
response_types_map=_response_types_map,
|
|
13844
|
+
)
|
|
13845
|
+
|
|
13846
|
+
|
|
13847
|
+
@validate_call
|
|
13848
|
+
def update_cserve_v2_deployment_deployments_cserve_v2_put_without_preload_content(
|
|
13849
|
+
self,
|
|
13850
|
+
_request_timeout: Union[
|
|
13851
|
+
None,
|
|
13852
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
13853
|
+
Tuple[
|
|
13854
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
13855
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
13856
|
+
]
|
|
13857
|
+
] = None,
|
|
13858
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
13859
|
+
_content_type: Optional[StrictStr] = None,
|
|
13860
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
13861
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
13862
|
+
) -> RESTResponseType:
|
|
13863
|
+
"""(Deprecated) Update Cserve V2 Deployment
|
|
13864
|
+
|
|
13865
|
+
|
|
13866
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
13867
|
+
number provided, it will be total request
|
|
13868
|
+
timeout. It can also be a pair (tuple) of
|
|
13869
|
+
(connection, read) timeouts.
|
|
13870
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
13871
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
13872
|
+
request; this effectively ignores the
|
|
13873
|
+
authentication in the spec for a single request.
|
|
13874
|
+
:type _request_auth: dict, optional
|
|
13875
|
+
:param _content_type: force content-type for the request.
|
|
13876
|
+
:type _content_type: str, Optional
|
|
13877
|
+
:param _headers: set to override the headers for a single
|
|
13878
|
+
request; this effectively ignores the headers
|
|
13879
|
+
in the spec for a single request.
|
|
13880
|
+
:type _headers: dict, optional
|
|
13881
|
+
:param _host_index: set to override the host_index for a single
|
|
13882
|
+
request; this effectively ignores the host_index
|
|
13883
|
+
in the spec for a single request.
|
|
13884
|
+
:type _host_index: int, optional
|
|
13885
|
+
:return: Returns the result object.
|
|
13886
|
+
""" # noqa: E501
|
|
13887
|
+
warnings.warn("PUT /deployments/cserve_v2 is deprecated.", DeprecationWarning)
|
|
13888
|
+
|
|
13889
|
+
_param = self._update_cserve_v2_deployment_deployments_cserve_v2_put_serialize(
|
|
13890
|
+
_request_auth=_request_auth,
|
|
13891
|
+
_content_type=_content_type,
|
|
13892
|
+
_headers=_headers,
|
|
13893
|
+
_host_index=_host_index
|
|
13894
|
+
)
|
|
13895
|
+
|
|
13896
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
13897
|
+
'200': "UpdateDeploymentResponse",
|
|
13898
|
+
}
|
|
13899
|
+
response_data = self.api_client.call_api(
|
|
13900
|
+
*_param,
|
|
13901
|
+
_request_timeout=_request_timeout
|
|
13902
|
+
)
|
|
13903
|
+
return response_data.response
|
|
13904
|
+
|
|
13905
|
+
|
|
13906
|
+
def _update_cserve_v2_deployment_deployments_cserve_v2_put_serialize(
|
|
13907
|
+
self,
|
|
13908
|
+
_request_auth,
|
|
13909
|
+
_content_type,
|
|
13910
|
+
_headers,
|
|
13911
|
+
_host_index,
|
|
13912
|
+
) -> RequestSerialized:
|
|
13913
|
+
|
|
13914
|
+
_host = None
|
|
13915
|
+
|
|
13916
|
+
_collection_formats: Dict[str, str] = {
|
|
13917
|
+
}
|
|
13918
|
+
|
|
13919
|
+
_path_params: Dict[str, str] = {}
|
|
13920
|
+
_query_params: List[Tuple[str, str]] = []
|
|
13921
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
13922
|
+
_form_params: List[Tuple[str, str]] = []
|
|
13923
|
+
_files: Dict[
|
|
13924
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
13925
|
+
] = {}
|
|
13926
|
+
_body_params: Optional[bytes] = None
|
|
13927
|
+
|
|
13928
|
+
# process the path parameters
|
|
13929
|
+
# process the query parameters
|
|
13930
|
+
# process the header parameters
|
|
13931
|
+
# process the form parameters
|
|
13932
|
+
# process the body parameter
|
|
13933
|
+
|
|
13934
|
+
|
|
13935
|
+
# set the HTTP header `Accept`
|
|
13936
|
+
if 'Accept' not in _header_params:
|
|
13937
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
13938
|
+
[
|
|
13939
|
+
'application/json'
|
|
13940
|
+
]
|
|
13941
|
+
)
|
|
13942
|
+
|
|
12864
13943
|
|
|
12865
13944
|
# authentication setting
|
|
12866
13945
|
_auth_settings: List[str] = [
|
|
12867
|
-
'HTTPBearer'
|
|
12868
13946
|
]
|
|
12869
13947
|
|
|
12870
13948
|
return self.api_client.param_serialize(
|
|
12871
13949
|
method='PUT',
|
|
12872
|
-
resource_path='/deployments/
|
|
13950
|
+
resource_path='/deployments/cserve_v2',
|
|
12873
13951
|
path_params=_path_params,
|
|
12874
13952
|
query_params=_query_params,
|
|
12875
13953
|
header_params=_header_params,
|
|
@@ -12886,8 +13964,10 @@ class EXTERNALApi:
|
|
|
12886
13964
|
|
|
12887
13965
|
|
|
12888
13966
|
@validate_call
|
|
12889
|
-
def
|
|
13967
|
+
def update_cserve_v3_deployment_deployments_cserve_v3_put(
|
|
12890
13968
|
self,
|
|
13969
|
+
deployment_id: StrictInt,
|
|
13970
|
+
create_c_serve_v3_deployment_request: CreateCServeV3DeploymentRequest,
|
|
12891
13971
|
_request_timeout: Union[
|
|
12892
13972
|
None,
|
|
12893
13973
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -12901,9 +13981,13 @@ class EXTERNALApi:
|
|
|
12901
13981
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
12902
13982
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
12903
13983
|
) -> UpdateDeploymentResponse:
|
|
12904
|
-
"""
|
|
13984
|
+
"""Update Cserve V3 Deployment
|
|
12905
13985
|
|
|
12906
13986
|
|
|
13987
|
+
:param deployment_id: (required)
|
|
13988
|
+
:type deployment_id: int
|
|
13989
|
+
:param create_c_serve_v3_deployment_request: (required)
|
|
13990
|
+
:type create_c_serve_v3_deployment_request: CreateCServeV3DeploymentRequest
|
|
12907
13991
|
:param _request_timeout: timeout setting for this request. If one
|
|
12908
13992
|
number provided, it will be total request
|
|
12909
13993
|
timeout. It can also be a pair (tuple) of
|
|
@@ -12925,9 +14009,10 @@ class EXTERNALApi:
|
|
|
12925
14009
|
:type _host_index: int, optional
|
|
12926
14010
|
:return: Returns the result object.
|
|
12927
14011
|
""" # noqa: E501
|
|
12928
|
-
warnings.warn("PUT /deployments/cserve_v2 is deprecated.", DeprecationWarning)
|
|
12929
14012
|
|
|
12930
|
-
_param = self.
|
|
14013
|
+
_param = self._update_cserve_v3_deployment_deployments_cserve_v3_put_serialize(
|
|
14014
|
+
deployment_id=deployment_id,
|
|
14015
|
+
create_c_serve_v3_deployment_request=create_c_serve_v3_deployment_request,
|
|
12931
14016
|
_request_auth=_request_auth,
|
|
12932
14017
|
_content_type=_content_type,
|
|
12933
14018
|
_headers=_headers,
|
|
@@ -12936,6 +14021,7 @@ class EXTERNALApi:
|
|
|
12936
14021
|
|
|
12937
14022
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
12938
14023
|
'200': "UpdateDeploymentResponse",
|
|
14024
|
+
'422': "HTTPValidationError",
|
|
12939
14025
|
}
|
|
12940
14026
|
response_data = self.api_client.call_api(
|
|
12941
14027
|
*_param,
|
|
@@ -12949,8 +14035,10 @@ class EXTERNALApi:
|
|
|
12949
14035
|
|
|
12950
14036
|
|
|
12951
14037
|
@validate_call
|
|
12952
|
-
def
|
|
14038
|
+
def update_cserve_v3_deployment_deployments_cserve_v3_put_with_http_info(
|
|
12953
14039
|
self,
|
|
14040
|
+
deployment_id: StrictInt,
|
|
14041
|
+
create_c_serve_v3_deployment_request: CreateCServeV3DeploymentRequest,
|
|
12954
14042
|
_request_timeout: Union[
|
|
12955
14043
|
None,
|
|
12956
14044
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -12964,9 +14052,13 @@ class EXTERNALApi:
|
|
|
12964
14052
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
12965
14053
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
12966
14054
|
) -> ApiResponse[UpdateDeploymentResponse]:
|
|
12967
|
-
"""
|
|
14055
|
+
"""Update Cserve V3 Deployment
|
|
12968
14056
|
|
|
12969
14057
|
|
|
14058
|
+
:param deployment_id: (required)
|
|
14059
|
+
:type deployment_id: int
|
|
14060
|
+
:param create_c_serve_v3_deployment_request: (required)
|
|
14061
|
+
:type create_c_serve_v3_deployment_request: CreateCServeV3DeploymentRequest
|
|
12970
14062
|
:param _request_timeout: timeout setting for this request. If one
|
|
12971
14063
|
number provided, it will be total request
|
|
12972
14064
|
timeout. It can also be a pair (tuple) of
|
|
@@ -12988,9 +14080,10 @@ class EXTERNALApi:
|
|
|
12988
14080
|
:type _host_index: int, optional
|
|
12989
14081
|
:return: Returns the result object.
|
|
12990
14082
|
""" # noqa: E501
|
|
12991
|
-
warnings.warn("PUT /deployments/cserve_v2 is deprecated.", DeprecationWarning)
|
|
12992
14083
|
|
|
12993
|
-
_param = self.
|
|
14084
|
+
_param = self._update_cserve_v3_deployment_deployments_cserve_v3_put_serialize(
|
|
14085
|
+
deployment_id=deployment_id,
|
|
14086
|
+
create_c_serve_v3_deployment_request=create_c_serve_v3_deployment_request,
|
|
12994
14087
|
_request_auth=_request_auth,
|
|
12995
14088
|
_content_type=_content_type,
|
|
12996
14089
|
_headers=_headers,
|
|
@@ -12999,6 +14092,7 @@ class EXTERNALApi:
|
|
|
12999
14092
|
|
|
13000
14093
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
13001
14094
|
'200': "UpdateDeploymentResponse",
|
|
14095
|
+
'422': "HTTPValidationError",
|
|
13002
14096
|
}
|
|
13003
14097
|
response_data = self.api_client.call_api(
|
|
13004
14098
|
*_param,
|
|
@@ -13012,8 +14106,10 @@ class EXTERNALApi:
|
|
|
13012
14106
|
|
|
13013
14107
|
|
|
13014
14108
|
@validate_call
|
|
13015
|
-
def
|
|
14109
|
+
def update_cserve_v3_deployment_deployments_cserve_v3_put_without_preload_content(
|
|
13016
14110
|
self,
|
|
14111
|
+
deployment_id: StrictInt,
|
|
14112
|
+
create_c_serve_v3_deployment_request: CreateCServeV3DeploymentRequest,
|
|
13017
14113
|
_request_timeout: Union[
|
|
13018
14114
|
None,
|
|
13019
14115
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -13027,9 +14123,13 @@ class EXTERNALApi:
|
|
|
13027
14123
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
13028
14124
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
13029
14125
|
) -> RESTResponseType:
|
|
13030
|
-
"""
|
|
14126
|
+
"""Update Cserve V3 Deployment
|
|
13031
14127
|
|
|
13032
14128
|
|
|
14129
|
+
:param deployment_id: (required)
|
|
14130
|
+
:type deployment_id: int
|
|
14131
|
+
:param create_c_serve_v3_deployment_request: (required)
|
|
14132
|
+
:type create_c_serve_v3_deployment_request: CreateCServeV3DeploymentRequest
|
|
13033
14133
|
:param _request_timeout: timeout setting for this request. If one
|
|
13034
14134
|
number provided, it will be total request
|
|
13035
14135
|
timeout. It can also be a pair (tuple) of
|
|
@@ -13051,9 +14151,10 @@ class EXTERNALApi:
|
|
|
13051
14151
|
:type _host_index: int, optional
|
|
13052
14152
|
:return: Returns the result object.
|
|
13053
14153
|
""" # noqa: E501
|
|
13054
|
-
warnings.warn("PUT /deployments/cserve_v2 is deprecated.", DeprecationWarning)
|
|
13055
14154
|
|
|
13056
|
-
_param = self.
|
|
14155
|
+
_param = self._update_cserve_v3_deployment_deployments_cserve_v3_put_serialize(
|
|
14156
|
+
deployment_id=deployment_id,
|
|
14157
|
+
create_c_serve_v3_deployment_request=create_c_serve_v3_deployment_request,
|
|
13057
14158
|
_request_auth=_request_auth,
|
|
13058
14159
|
_content_type=_content_type,
|
|
13059
14160
|
_headers=_headers,
|
|
@@ -13062,6 +14163,7 @@ class EXTERNALApi:
|
|
|
13062
14163
|
|
|
13063
14164
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
13064
14165
|
'200': "UpdateDeploymentResponse",
|
|
14166
|
+
'422': "HTTPValidationError",
|
|
13065
14167
|
}
|
|
13066
14168
|
response_data = self.api_client.call_api(
|
|
13067
14169
|
*_param,
|
|
@@ -13070,8 +14172,10 @@ class EXTERNALApi:
|
|
|
13070
14172
|
return response_data.response
|
|
13071
14173
|
|
|
13072
14174
|
|
|
13073
|
-
def
|
|
14175
|
+
def _update_cserve_v3_deployment_deployments_cserve_v3_put_serialize(
|
|
13074
14176
|
self,
|
|
14177
|
+
deployment_id,
|
|
14178
|
+
create_c_serve_v3_deployment_request,
|
|
13075
14179
|
_request_auth,
|
|
13076
14180
|
_content_type,
|
|
13077
14181
|
_headers,
|
|
@@ -13094,9 +14198,15 @@ class EXTERNALApi:
|
|
|
13094
14198
|
|
|
13095
14199
|
# process the path parameters
|
|
13096
14200
|
# process the query parameters
|
|
14201
|
+
if deployment_id is not None:
|
|
14202
|
+
|
|
14203
|
+
_query_params.append(('deployment_id', deployment_id))
|
|
14204
|
+
|
|
13097
14205
|
# process the header parameters
|
|
13098
14206
|
# process the form parameters
|
|
13099
14207
|
# process the body parameter
|
|
14208
|
+
if create_c_serve_v3_deployment_request is not None:
|
|
14209
|
+
_body_params = create_c_serve_v3_deployment_request
|
|
13100
14210
|
|
|
13101
14211
|
|
|
13102
14212
|
# set the HTTP header `Accept`
|
|
@@ -13107,14 +14217,28 @@ class EXTERNALApi:
|
|
|
13107
14217
|
]
|
|
13108
14218
|
)
|
|
13109
14219
|
|
|
14220
|
+
# set the HTTP header `Content-Type`
|
|
14221
|
+
if _content_type:
|
|
14222
|
+
_header_params['Content-Type'] = _content_type
|
|
14223
|
+
else:
|
|
14224
|
+
_default_content_type = (
|
|
14225
|
+
self.api_client.select_header_content_type(
|
|
14226
|
+
[
|
|
14227
|
+
'application/json'
|
|
14228
|
+
]
|
|
14229
|
+
)
|
|
14230
|
+
)
|
|
14231
|
+
if _default_content_type is not None:
|
|
14232
|
+
_header_params['Content-Type'] = _default_content_type
|
|
13110
14233
|
|
|
13111
14234
|
# authentication setting
|
|
13112
14235
|
_auth_settings: List[str] = [
|
|
14236
|
+
'HTTPBearer'
|
|
13113
14237
|
]
|
|
13114
14238
|
|
|
13115
14239
|
return self.api_client.param_serialize(
|
|
13116
14240
|
method='PUT',
|
|
13117
|
-
resource_path='/deployments/
|
|
14241
|
+
resource_path='/deployments/cserve_v3',
|
|
13118
14242
|
path_params=_path_params,
|
|
13119
14243
|
query_params=_query_params,
|
|
13120
14244
|
header_params=_header_params,
|
|
@@ -13131,10 +14255,10 @@ class EXTERNALApi:
|
|
|
13131
14255
|
|
|
13132
14256
|
|
|
13133
14257
|
@validate_call
|
|
13134
|
-
def
|
|
14258
|
+
def update_deployment_status_deployments_status_deployment_id_put(
|
|
13135
14259
|
self,
|
|
13136
14260
|
deployment_id: StrictInt,
|
|
13137
|
-
|
|
14261
|
+
deployment_status_request: DeploymentStatusRequest,
|
|
13138
14262
|
_request_timeout: Union[
|
|
13139
14263
|
None,
|
|
13140
14264
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -13147,14 +14271,14 @@ class EXTERNALApi:
|
|
|
13147
14271
|
_content_type: Optional[StrictStr] = None,
|
|
13148
14272
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
13149
14273
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
13150
|
-
) ->
|
|
13151
|
-
"""Update
|
|
14274
|
+
) -> DeploymentStatusResponse:
|
|
14275
|
+
"""Update Deployment Status
|
|
13152
14276
|
|
|
13153
14277
|
|
|
13154
14278
|
:param deployment_id: (required)
|
|
13155
14279
|
:type deployment_id: int
|
|
13156
|
-
:param
|
|
13157
|
-
:type
|
|
14280
|
+
:param deployment_status_request: (required)
|
|
14281
|
+
:type deployment_status_request: DeploymentStatusRequest
|
|
13158
14282
|
:param _request_timeout: timeout setting for this request. If one
|
|
13159
14283
|
number provided, it will be total request
|
|
13160
14284
|
timeout. It can also be a pair (tuple) of
|
|
@@ -13177,9 +14301,9 @@ class EXTERNALApi:
|
|
|
13177
14301
|
:return: Returns the result object.
|
|
13178
14302
|
""" # noqa: E501
|
|
13179
14303
|
|
|
13180
|
-
_param = self.
|
|
14304
|
+
_param = self._update_deployment_status_deployments_status_deployment_id_put_serialize(
|
|
13181
14305
|
deployment_id=deployment_id,
|
|
13182
|
-
|
|
14306
|
+
deployment_status_request=deployment_status_request,
|
|
13183
14307
|
_request_auth=_request_auth,
|
|
13184
14308
|
_content_type=_content_type,
|
|
13185
14309
|
_headers=_headers,
|
|
@@ -13187,7 +14311,7 @@ class EXTERNALApi:
|
|
|
13187
14311
|
)
|
|
13188
14312
|
|
|
13189
14313
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
13190
|
-
'200': "
|
|
14314
|
+
'200': "DeploymentStatusResponse",
|
|
13191
14315
|
'422': "HTTPValidationError",
|
|
13192
14316
|
}
|
|
13193
14317
|
response_data = self.api_client.call_api(
|
|
@@ -13202,10 +14326,10 @@ class EXTERNALApi:
|
|
|
13202
14326
|
|
|
13203
14327
|
|
|
13204
14328
|
@validate_call
|
|
13205
|
-
def
|
|
14329
|
+
def update_deployment_status_deployments_status_deployment_id_put_with_http_info(
|
|
13206
14330
|
self,
|
|
13207
14331
|
deployment_id: StrictInt,
|
|
13208
|
-
|
|
14332
|
+
deployment_status_request: DeploymentStatusRequest,
|
|
13209
14333
|
_request_timeout: Union[
|
|
13210
14334
|
None,
|
|
13211
14335
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -13218,14 +14342,14 @@ class EXTERNALApi:
|
|
|
13218
14342
|
_content_type: Optional[StrictStr] = None,
|
|
13219
14343
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
13220
14344
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
13221
|
-
) -> ApiResponse[
|
|
13222
|
-
"""Update
|
|
14345
|
+
) -> ApiResponse[DeploymentStatusResponse]:
|
|
14346
|
+
"""Update Deployment Status
|
|
13223
14347
|
|
|
13224
14348
|
|
|
13225
14349
|
:param deployment_id: (required)
|
|
13226
14350
|
:type deployment_id: int
|
|
13227
|
-
:param
|
|
13228
|
-
:type
|
|
14351
|
+
:param deployment_status_request: (required)
|
|
14352
|
+
:type deployment_status_request: DeploymentStatusRequest
|
|
13229
14353
|
:param _request_timeout: timeout setting for this request. If one
|
|
13230
14354
|
number provided, it will be total request
|
|
13231
14355
|
timeout. It can also be a pair (tuple) of
|
|
@@ -13248,9 +14372,9 @@ class EXTERNALApi:
|
|
|
13248
14372
|
:return: Returns the result object.
|
|
13249
14373
|
""" # noqa: E501
|
|
13250
14374
|
|
|
13251
|
-
_param = self.
|
|
14375
|
+
_param = self._update_deployment_status_deployments_status_deployment_id_put_serialize(
|
|
13252
14376
|
deployment_id=deployment_id,
|
|
13253
|
-
|
|
14377
|
+
deployment_status_request=deployment_status_request,
|
|
13254
14378
|
_request_auth=_request_auth,
|
|
13255
14379
|
_content_type=_content_type,
|
|
13256
14380
|
_headers=_headers,
|
|
@@ -13258,7 +14382,7 @@ class EXTERNALApi:
|
|
|
13258
14382
|
)
|
|
13259
14383
|
|
|
13260
14384
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
13261
|
-
'200': "
|
|
14385
|
+
'200': "DeploymentStatusResponse",
|
|
13262
14386
|
'422': "HTTPValidationError",
|
|
13263
14387
|
}
|
|
13264
14388
|
response_data = self.api_client.call_api(
|
|
@@ -13273,10 +14397,10 @@ class EXTERNALApi:
|
|
|
13273
14397
|
|
|
13274
14398
|
|
|
13275
14399
|
@validate_call
|
|
13276
|
-
def
|
|
14400
|
+
def update_deployment_status_deployments_status_deployment_id_put_without_preload_content(
|
|
13277
14401
|
self,
|
|
13278
14402
|
deployment_id: StrictInt,
|
|
13279
|
-
|
|
14403
|
+
deployment_status_request: DeploymentStatusRequest,
|
|
13280
14404
|
_request_timeout: Union[
|
|
13281
14405
|
None,
|
|
13282
14406
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -13290,13 +14414,13 @@ class EXTERNALApi:
|
|
|
13290
14414
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
13291
14415
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
13292
14416
|
) -> RESTResponseType:
|
|
13293
|
-
"""Update
|
|
14417
|
+
"""Update Deployment Status
|
|
13294
14418
|
|
|
13295
14419
|
|
|
13296
14420
|
:param deployment_id: (required)
|
|
13297
14421
|
:type deployment_id: int
|
|
13298
|
-
:param
|
|
13299
|
-
:type
|
|
14422
|
+
:param deployment_status_request: (required)
|
|
14423
|
+
:type deployment_status_request: DeploymentStatusRequest
|
|
13300
14424
|
:param _request_timeout: timeout setting for this request. If one
|
|
13301
14425
|
number provided, it will be total request
|
|
13302
14426
|
timeout. It can also be a pair (tuple) of
|
|
@@ -13319,9 +14443,9 @@ class EXTERNALApi:
|
|
|
13319
14443
|
:return: Returns the result object.
|
|
13320
14444
|
""" # noqa: E501
|
|
13321
14445
|
|
|
13322
|
-
_param = self.
|
|
14446
|
+
_param = self._update_deployment_status_deployments_status_deployment_id_put_serialize(
|
|
13323
14447
|
deployment_id=deployment_id,
|
|
13324
|
-
|
|
14448
|
+
deployment_status_request=deployment_status_request,
|
|
13325
14449
|
_request_auth=_request_auth,
|
|
13326
14450
|
_content_type=_content_type,
|
|
13327
14451
|
_headers=_headers,
|
|
@@ -13329,7 +14453,7 @@ class EXTERNALApi:
|
|
|
13329
14453
|
)
|
|
13330
14454
|
|
|
13331
14455
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
13332
|
-
'200': "
|
|
14456
|
+
'200': "DeploymentStatusResponse",
|
|
13333
14457
|
'422': "HTTPValidationError",
|
|
13334
14458
|
}
|
|
13335
14459
|
response_data = self.api_client.call_api(
|
|
@@ -13339,10 +14463,10 @@ class EXTERNALApi:
|
|
|
13339
14463
|
return response_data.response
|
|
13340
14464
|
|
|
13341
14465
|
|
|
13342
|
-
def
|
|
14466
|
+
def _update_deployment_status_deployments_status_deployment_id_put_serialize(
|
|
13343
14467
|
self,
|
|
13344
14468
|
deployment_id,
|
|
13345
|
-
|
|
14469
|
+
deployment_status_request,
|
|
13346
14470
|
_request_auth,
|
|
13347
14471
|
_content_type,
|
|
13348
14472
|
_headers,
|
|
@@ -13364,16 +14488,14 @@ class EXTERNALApi:
|
|
|
13364
14488
|
_body_params: Optional[bytes] = None
|
|
13365
14489
|
|
|
13366
14490
|
# process the path parameters
|
|
13367
|
-
# process the query parameters
|
|
13368
14491
|
if deployment_id is not None:
|
|
13369
|
-
|
|
13370
|
-
|
|
13371
|
-
|
|
14492
|
+
_path_params['deployment_id'] = deployment_id
|
|
14493
|
+
# process the query parameters
|
|
13372
14494
|
# process the header parameters
|
|
13373
14495
|
# process the form parameters
|
|
13374
14496
|
# process the body parameter
|
|
13375
|
-
if
|
|
13376
|
-
_body_params =
|
|
14497
|
+
if deployment_status_request is not None:
|
|
14498
|
+
_body_params = deployment_status_request
|
|
13377
14499
|
|
|
13378
14500
|
|
|
13379
14501
|
# set the HTTP header `Accept`
|
|
@@ -13405,7 +14527,7 @@ class EXTERNALApi:
|
|
|
13405
14527
|
|
|
13406
14528
|
return self.api_client.param_serialize(
|
|
13407
14529
|
method='PUT',
|
|
13408
|
-
resource_path='/deployments/
|
|
14530
|
+
resource_path='/deployments/status/{deployment_id}',
|
|
13409
14531
|
path_params=_path_params,
|
|
13410
14532
|
query_params=_query_params,
|
|
13411
14533
|
header_params=_header_params,
|
|
@@ -13422,10 +14544,10 @@ class EXTERNALApi:
|
|
|
13422
14544
|
|
|
13423
14545
|
|
|
13424
14546
|
@validate_call
|
|
13425
|
-
def
|
|
14547
|
+
def update_deployment_status_v3_deployments_status_v3_deployment_id_put(
|
|
13426
14548
|
self,
|
|
13427
14549
|
deployment_id: StrictInt,
|
|
13428
|
-
|
|
14550
|
+
update_deployment_status_v3_request: UpdateDeploymentStatusV3Request,
|
|
13429
14551
|
_request_timeout: Union[
|
|
13430
14552
|
None,
|
|
13431
14553
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -13438,14 +14560,14 @@ class EXTERNALApi:
|
|
|
13438
14560
|
_content_type: Optional[StrictStr] = None,
|
|
13439
14561
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
13440
14562
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
13441
|
-
) ->
|
|
13442
|
-
"""Update Deployment Status
|
|
14563
|
+
) -> DeploymentStatusV3Response:
|
|
14564
|
+
"""Update Deployment Status V3
|
|
13443
14565
|
|
|
13444
14566
|
|
|
13445
14567
|
:param deployment_id: (required)
|
|
13446
14568
|
:type deployment_id: int
|
|
13447
|
-
:param
|
|
13448
|
-
:type
|
|
14569
|
+
:param update_deployment_status_v3_request: (required)
|
|
14570
|
+
:type update_deployment_status_v3_request: UpdateDeploymentStatusV3Request
|
|
13449
14571
|
:param _request_timeout: timeout setting for this request. If one
|
|
13450
14572
|
number provided, it will be total request
|
|
13451
14573
|
timeout. It can also be a pair (tuple) of
|
|
@@ -13468,9 +14590,9 @@ class EXTERNALApi:
|
|
|
13468
14590
|
:return: Returns the result object.
|
|
13469
14591
|
""" # noqa: E501
|
|
13470
14592
|
|
|
13471
|
-
_param = self.
|
|
14593
|
+
_param = self._update_deployment_status_v3_deployments_status_v3_deployment_id_put_serialize(
|
|
13472
14594
|
deployment_id=deployment_id,
|
|
13473
|
-
|
|
14595
|
+
update_deployment_status_v3_request=update_deployment_status_v3_request,
|
|
13474
14596
|
_request_auth=_request_auth,
|
|
13475
14597
|
_content_type=_content_type,
|
|
13476
14598
|
_headers=_headers,
|
|
@@ -13478,7 +14600,7 @@ class EXTERNALApi:
|
|
|
13478
14600
|
)
|
|
13479
14601
|
|
|
13480
14602
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
13481
|
-
'200': "
|
|
14603
|
+
'200': "DeploymentStatusV3Response",
|
|
13482
14604
|
'422': "HTTPValidationError",
|
|
13483
14605
|
}
|
|
13484
14606
|
response_data = self.api_client.call_api(
|
|
@@ -13493,10 +14615,10 @@ class EXTERNALApi:
|
|
|
13493
14615
|
|
|
13494
14616
|
|
|
13495
14617
|
@validate_call
|
|
13496
|
-
def
|
|
14618
|
+
def update_deployment_status_v3_deployments_status_v3_deployment_id_put_with_http_info(
|
|
13497
14619
|
self,
|
|
13498
14620
|
deployment_id: StrictInt,
|
|
13499
|
-
|
|
14621
|
+
update_deployment_status_v3_request: UpdateDeploymentStatusV3Request,
|
|
13500
14622
|
_request_timeout: Union[
|
|
13501
14623
|
None,
|
|
13502
14624
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -13509,14 +14631,14 @@ class EXTERNALApi:
|
|
|
13509
14631
|
_content_type: Optional[StrictStr] = None,
|
|
13510
14632
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
13511
14633
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
13512
|
-
) -> ApiResponse[
|
|
13513
|
-
"""Update Deployment Status
|
|
14634
|
+
) -> ApiResponse[DeploymentStatusV3Response]:
|
|
14635
|
+
"""Update Deployment Status V3
|
|
13514
14636
|
|
|
13515
14637
|
|
|
13516
14638
|
:param deployment_id: (required)
|
|
13517
14639
|
:type deployment_id: int
|
|
13518
|
-
:param
|
|
13519
|
-
:type
|
|
14640
|
+
:param update_deployment_status_v3_request: (required)
|
|
14641
|
+
:type update_deployment_status_v3_request: UpdateDeploymentStatusV3Request
|
|
13520
14642
|
:param _request_timeout: timeout setting for this request. If one
|
|
13521
14643
|
number provided, it will be total request
|
|
13522
14644
|
timeout. It can also be a pair (tuple) of
|
|
@@ -13539,9 +14661,9 @@ class EXTERNALApi:
|
|
|
13539
14661
|
:return: Returns the result object.
|
|
13540
14662
|
""" # noqa: E501
|
|
13541
14663
|
|
|
13542
|
-
_param = self.
|
|
14664
|
+
_param = self._update_deployment_status_v3_deployments_status_v3_deployment_id_put_serialize(
|
|
13543
14665
|
deployment_id=deployment_id,
|
|
13544
|
-
|
|
14666
|
+
update_deployment_status_v3_request=update_deployment_status_v3_request,
|
|
13545
14667
|
_request_auth=_request_auth,
|
|
13546
14668
|
_content_type=_content_type,
|
|
13547
14669
|
_headers=_headers,
|
|
@@ -13549,7 +14671,7 @@ class EXTERNALApi:
|
|
|
13549
14671
|
)
|
|
13550
14672
|
|
|
13551
14673
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
13552
|
-
'200': "
|
|
14674
|
+
'200': "DeploymentStatusV3Response",
|
|
13553
14675
|
'422': "HTTPValidationError",
|
|
13554
14676
|
}
|
|
13555
14677
|
response_data = self.api_client.call_api(
|
|
@@ -13564,10 +14686,10 @@ class EXTERNALApi:
|
|
|
13564
14686
|
|
|
13565
14687
|
|
|
13566
14688
|
@validate_call
|
|
13567
|
-
def
|
|
14689
|
+
def update_deployment_status_v3_deployments_status_v3_deployment_id_put_without_preload_content(
|
|
13568
14690
|
self,
|
|
13569
14691
|
deployment_id: StrictInt,
|
|
13570
|
-
|
|
14692
|
+
update_deployment_status_v3_request: UpdateDeploymentStatusV3Request,
|
|
13571
14693
|
_request_timeout: Union[
|
|
13572
14694
|
None,
|
|
13573
14695
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -13581,13 +14703,13 @@ class EXTERNALApi:
|
|
|
13581
14703
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
13582
14704
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
13583
14705
|
) -> RESTResponseType:
|
|
13584
|
-
"""Update Deployment Status
|
|
14706
|
+
"""Update Deployment Status V3
|
|
13585
14707
|
|
|
13586
14708
|
|
|
13587
14709
|
:param deployment_id: (required)
|
|
13588
14710
|
:type deployment_id: int
|
|
13589
|
-
:param
|
|
13590
|
-
:type
|
|
14711
|
+
:param update_deployment_status_v3_request: (required)
|
|
14712
|
+
:type update_deployment_status_v3_request: UpdateDeploymentStatusV3Request
|
|
13591
14713
|
:param _request_timeout: timeout setting for this request. If one
|
|
13592
14714
|
number provided, it will be total request
|
|
13593
14715
|
timeout. It can also be a pair (tuple) of
|
|
@@ -13610,9 +14732,9 @@ class EXTERNALApi:
|
|
|
13610
14732
|
:return: Returns the result object.
|
|
13611
14733
|
""" # noqa: E501
|
|
13612
14734
|
|
|
13613
|
-
_param = self.
|
|
14735
|
+
_param = self._update_deployment_status_v3_deployments_status_v3_deployment_id_put_serialize(
|
|
13614
14736
|
deployment_id=deployment_id,
|
|
13615
|
-
|
|
14737
|
+
update_deployment_status_v3_request=update_deployment_status_v3_request,
|
|
13616
14738
|
_request_auth=_request_auth,
|
|
13617
14739
|
_content_type=_content_type,
|
|
13618
14740
|
_headers=_headers,
|
|
@@ -13620,7 +14742,7 @@ class EXTERNALApi:
|
|
|
13620
14742
|
)
|
|
13621
14743
|
|
|
13622
14744
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
13623
|
-
'200': "
|
|
14745
|
+
'200': "DeploymentStatusV3Response",
|
|
13624
14746
|
'422': "HTTPValidationError",
|
|
13625
14747
|
}
|
|
13626
14748
|
response_data = self.api_client.call_api(
|
|
@@ -13630,10 +14752,10 @@ class EXTERNALApi:
|
|
|
13630
14752
|
return response_data.response
|
|
13631
14753
|
|
|
13632
14754
|
|
|
13633
|
-
def
|
|
14755
|
+
def _update_deployment_status_v3_deployments_status_v3_deployment_id_put_serialize(
|
|
13634
14756
|
self,
|
|
13635
14757
|
deployment_id,
|
|
13636
|
-
|
|
14758
|
+
update_deployment_status_v3_request,
|
|
13637
14759
|
_request_auth,
|
|
13638
14760
|
_content_type,
|
|
13639
14761
|
_headers,
|
|
@@ -13661,8 +14783,8 @@ class EXTERNALApi:
|
|
|
13661
14783
|
# process the header parameters
|
|
13662
14784
|
# process the form parameters
|
|
13663
14785
|
# process the body parameter
|
|
13664
|
-
if
|
|
13665
|
-
_body_params =
|
|
14786
|
+
if update_deployment_status_v3_request is not None:
|
|
14787
|
+
_body_params = update_deployment_status_v3_request
|
|
13666
14788
|
|
|
13667
14789
|
|
|
13668
14790
|
# set the HTTP header `Accept`
|
|
@@ -13694,7 +14816,7 @@ class EXTERNALApi:
|
|
|
13694
14816
|
|
|
13695
14817
|
return self.api_client.param_serialize(
|
|
13696
14818
|
method='PUT',
|
|
13697
|
-
resource_path='/deployments/
|
|
14819
|
+
resource_path='/deployments/status_v3/{deployment_id}',
|
|
13698
14820
|
path_params=_path_params,
|
|
13699
14821
|
query_params=_query_params,
|
|
13700
14822
|
header_params=_header_params,
|
|
@@ -13711,10 +14833,10 @@ class EXTERNALApi:
|
|
|
13711
14833
|
|
|
13712
14834
|
|
|
13713
14835
|
@validate_call
|
|
13714
|
-
def
|
|
14836
|
+
def update_dynamo_deployment_deployments_dynamo_put(
|
|
13715
14837
|
self,
|
|
13716
14838
|
deployment_id: StrictInt,
|
|
13717
|
-
|
|
14839
|
+
create_dynamo_deployment_request: CreateDynamoDeploymentRequest,
|
|
13718
14840
|
_request_timeout: Union[
|
|
13719
14841
|
None,
|
|
13720
14842
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -13727,14 +14849,14 @@ class EXTERNALApi:
|
|
|
13727
14849
|
_content_type: Optional[StrictStr] = None,
|
|
13728
14850
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
13729
14851
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
13730
|
-
) ->
|
|
13731
|
-
"""Update Deployment
|
|
14852
|
+
) -> UpdateDeploymentResponse:
|
|
14853
|
+
"""Update Dynamo Deployment
|
|
13732
14854
|
|
|
13733
14855
|
|
|
13734
14856
|
:param deployment_id: (required)
|
|
13735
14857
|
:type deployment_id: int
|
|
13736
|
-
:param
|
|
13737
|
-
:type
|
|
14858
|
+
:param create_dynamo_deployment_request: (required)
|
|
14859
|
+
:type create_dynamo_deployment_request: CreateDynamoDeploymentRequest
|
|
13738
14860
|
:param _request_timeout: timeout setting for this request. If one
|
|
13739
14861
|
number provided, it will be total request
|
|
13740
14862
|
timeout. It can also be a pair (tuple) of
|
|
@@ -13757,9 +14879,9 @@ class EXTERNALApi:
|
|
|
13757
14879
|
:return: Returns the result object.
|
|
13758
14880
|
""" # noqa: E501
|
|
13759
14881
|
|
|
13760
|
-
_param = self.
|
|
14882
|
+
_param = self._update_dynamo_deployment_deployments_dynamo_put_serialize(
|
|
13761
14883
|
deployment_id=deployment_id,
|
|
13762
|
-
|
|
14884
|
+
create_dynamo_deployment_request=create_dynamo_deployment_request,
|
|
13763
14885
|
_request_auth=_request_auth,
|
|
13764
14886
|
_content_type=_content_type,
|
|
13765
14887
|
_headers=_headers,
|
|
@@ -13767,7 +14889,7 @@ class EXTERNALApi:
|
|
|
13767
14889
|
)
|
|
13768
14890
|
|
|
13769
14891
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
13770
|
-
'200': "
|
|
14892
|
+
'200': "UpdateDeploymentResponse",
|
|
13771
14893
|
'422': "HTTPValidationError",
|
|
13772
14894
|
}
|
|
13773
14895
|
response_data = self.api_client.call_api(
|
|
@@ -13782,10 +14904,10 @@ class EXTERNALApi:
|
|
|
13782
14904
|
|
|
13783
14905
|
|
|
13784
14906
|
@validate_call
|
|
13785
|
-
def
|
|
14907
|
+
def update_dynamo_deployment_deployments_dynamo_put_with_http_info(
|
|
13786
14908
|
self,
|
|
13787
14909
|
deployment_id: StrictInt,
|
|
13788
|
-
|
|
14910
|
+
create_dynamo_deployment_request: CreateDynamoDeploymentRequest,
|
|
13789
14911
|
_request_timeout: Union[
|
|
13790
14912
|
None,
|
|
13791
14913
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -13798,14 +14920,14 @@ class EXTERNALApi:
|
|
|
13798
14920
|
_content_type: Optional[StrictStr] = None,
|
|
13799
14921
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
13800
14922
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
13801
|
-
) -> ApiResponse[
|
|
13802
|
-
"""Update Deployment
|
|
14923
|
+
) -> ApiResponse[UpdateDeploymentResponse]:
|
|
14924
|
+
"""Update Dynamo Deployment
|
|
13803
14925
|
|
|
13804
14926
|
|
|
13805
14927
|
:param deployment_id: (required)
|
|
13806
14928
|
:type deployment_id: int
|
|
13807
|
-
:param
|
|
13808
|
-
:type
|
|
14929
|
+
:param create_dynamo_deployment_request: (required)
|
|
14930
|
+
:type create_dynamo_deployment_request: CreateDynamoDeploymentRequest
|
|
13809
14931
|
:param _request_timeout: timeout setting for this request. If one
|
|
13810
14932
|
number provided, it will be total request
|
|
13811
14933
|
timeout. It can also be a pair (tuple) of
|
|
@@ -13828,9 +14950,9 @@ class EXTERNALApi:
|
|
|
13828
14950
|
:return: Returns the result object.
|
|
13829
14951
|
""" # noqa: E501
|
|
13830
14952
|
|
|
13831
|
-
_param = self.
|
|
14953
|
+
_param = self._update_dynamo_deployment_deployments_dynamo_put_serialize(
|
|
13832
14954
|
deployment_id=deployment_id,
|
|
13833
|
-
|
|
14955
|
+
create_dynamo_deployment_request=create_dynamo_deployment_request,
|
|
13834
14956
|
_request_auth=_request_auth,
|
|
13835
14957
|
_content_type=_content_type,
|
|
13836
14958
|
_headers=_headers,
|
|
@@ -13838,7 +14960,7 @@ class EXTERNALApi:
|
|
|
13838
14960
|
)
|
|
13839
14961
|
|
|
13840
14962
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
13841
|
-
'200': "
|
|
14963
|
+
'200': "UpdateDeploymentResponse",
|
|
13842
14964
|
'422': "HTTPValidationError",
|
|
13843
14965
|
}
|
|
13844
14966
|
response_data = self.api_client.call_api(
|
|
@@ -13853,10 +14975,10 @@ class EXTERNALApi:
|
|
|
13853
14975
|
|
|
13854
14976
|
|
|
13855
14977
|
@validate_call
|
|
13856
|
-
def
|
|
14978
|
+
def update_dynamo_deployment_deployments_dynamo_put_without_preload_content(
|
|
13857
14979
|
self,
|
|
13858
14980
|
deployment_id: StrictInt,
|
|
13859
|
-
|
|
14981
|
+
create_dynamo_deployment_request: CreateDynamoDeploymentRequest,
|
|
13860
14982
|
_request_timeout: Union[
|
|
13861
14983
|
None,
|
|
13862
14984
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -13870,13 +14992,13 @@ class EXTERNALApi:
|
|
|
13870
14992
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
13871
14993
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
13872
14994
|
) -> RESTResponseType:
|
|
13873
|
-
"""Update Deployment
|
|
14995
|
+
"""Update Dynamo Deployment
|
|
13874
14996
|
|
|
13875
14997
|
|
|
13876
14998
|
:param deployment_id: (required)
|
|
13877
14999
|
:type deployment_id: int
|
|
13878
|
-
:param
|
|
13879
|
-
:type
|
|
15000
|
+
:param create_dynamo_deployment_request: (required)
|
|
15001
|
+
:type create_dynamo_deployment_request: CreateDynamoDeploymentRequest
|
|
13880
15002
|
:param _request_timeout: timeout setting for this request. If one
|
|
13881
15003
|
number provided, it will be total request
|
|
13882
15004
|
timeout. It can also be a pair (tuple) of
|
|
@@ -13899,9 +15021,9 @@ class EXTERNALApi:
|
|
|
13899
15021
|
:return: Returns the result object.
|
|
13900
15022
|
""" # noqa: E501
|
|
13901
15023
|
|
|
13902
|
-
_param = self.
|
|
15024
|
+
_param = self._update_dynamo_deployment_deployments_dynamo_put_serialize(
|
|
13903
15025
|
deployment_id=deployment_id,
|
|
13904
|
-
|
|
15026
|
+
create_dynamo_deployment_request=create_dynamo_deployment_request,
|
|
13905
15027
|
_request_auth=_request_auth,
|
|
13906
15028
|
_content_type=_content_type,
|
|
13907
15029
|
_headers=_headers,
|
|
@@ -13909,7 +15031,7 @@ class EXTERNALApi:
|
|
|
13909
15031
|
)
|
|
13910
15032
|
|
|
13911
15033
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
13912
|
-
'200': "
|
|
15034
|
+
'200': "UpdateDeploymentResponse",
|
|
13913
15035
|
'422': "HTTPValidationError",
|
|
13914
15036
|
}
|
|
13915
15037
|
response_data = self.api_client.call_api(
|
|
@@ -13919,10 +15041,10 @@ class EXTERNALApi:
|
|
|
13919
15041
|
return response_data.response
|
|
13920
15042
|
|
|
13921
15043
|
|
|
13922
|
-
def
|
|
15044
|
+
def _update_dynamo_deployment_deployments_dynamo_put_serialize(
|
|
13923
15045
|
self,
|
|
13924
15046
|
deployment_id,
|
|
13925
|
-
|
|
15047
|
+
create_dynamo_deployment_request,
|
|
13926
15048
|
_request_auth,
|
|
13927
15049
|
_content_type,
|
|
13928
15050
|
_headers,
|
|
@@ -13944,14 +15066,16 @@ class EXTERNALApi:
|
|
|
13944
15066
|
_body_params: Optional[bytes] = None
|
|
13945
15067
|
|
|
13946
15068
|
# process the path parameters
|
|
13947
|
-
if deployment_id is not None:
|
|
13948
|
-
_path_params['deployment_id'] = deployment_id
|
|
13949
15069
|
# process the query parameters
|
|
15070
|
+
if deployment_id is not None:
|
|
15071
|
+
|
|
15072
|
+
_query_params.append(('deployment_id', deployment_id))
|
|
15073
|
+
|
|
13950
15074
|
# process the header parameters
|
|
13951
15075
|
# process the form parameters
|
|
13952
15076
|
# process the body parameter
|
|
13953
|
-
if
|
|
13954
|
-
_body_params =
|
|
15077
|
+
if create_dynamo_deployment_request is not None:
|
|
15078
|
+
_body_params = create_dynamo_deployment_request
|
|
13955
15079
|
|
|
13956
15080
|
|
|
13957
15081
|
# set the HTTP header `Accept`
|
|
@@ -13983,7 +15107,7 @@ class EXTERNALApi:
|
|
|
13983
15107
|
|
|
13984
15108
|
return self.api_client.param_serialize(
|
|
13985
15109
|
method='PUT',
|
|
13986
|
-
resource_path='/deployments/
|
|
15110
|
+
resource_path='/deployments/dynamo',
|
|
13987
15111
|
path_params=_path_params,
|
|
13988
15112
|
query_params=_query_params,
|
|
13989
15113
|
header_params=_header_params,
|