update_model
async
¶
update_model(
api_id: __string,
model_id: __string,
*,
config_overrides: Optional[AsyncApiGatewayV2ClientConfig] = None,
content_type: Optional[StringWithLengthBetween1And256] = None,
description: Optional[StringWithLengthBetween0And1024] = None,
name: Optional[StringWithLengthBetween1And128] = None,
schema: Optional[StringWithLengthBetween0And32K] = None,
) -> UpdateModelResponse
Updates a Model.
Parameters:
-
api_id(__string) –The API identifier.
-
content_type(Optional[StringWithLengthBetween1And256], default:None) –The content-type for the model, for example, "application/json".
-
description(Optional[StringWithLengthBetween0And1024], default:None) –The description of the model.
-
model_id(__string) –The model ID.
-
name(Optional[StringWithLengthBetween1And128], default:None) –The name of the model.
-
schema(Optional[StringWithLengthBetween0And32K], default:None) –The schema for the model. For application/json models, this should be JSON schema draft 4 model.
Raises:
-
BadRequestException–The request is not valid, for example, the input is incomplete or incorrect. See the accompanying error message for details.
-
ConflictException–The requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request. See the accompanying error message for details.
-
NotFoundException–The resource specified in the request was not found. See the message field for more information.
-
TooManyRequestsException–A limit has been exceeded. See the accompanying error message for details.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_apigatewayv2/_services/async_api_gateway_v2.py
6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 | |