reimport_api
async
¶
reimport_api(
api_id: __string,
*,
config_overrides: Optional[AsyncApiGatewayV2ClientConfig] = None,
basepath: Optional[__string] = None,
body: Optional[__string] = None,
fail_on_warnings: Optional[__boolean] = None,
) -> ReimportApiResponse
Puts an Api resource.
Parameters:
-
api_id(__string) –The API identifier.
-
basepath(Optional[__string], default:None) –Specifies how to interpret the base path of the API during import. Valid values are ignore, prepend, and split. The default value is ignore. To learn more, see Set the OpenAPI basePath Property. Supported only for HTTP APIs.
-
body(Optional[__string], default:None) –The OpenAPI definition. Supported only for HTTP APIs.
-
fail_on_warnings(Optional[__boolean], default:None) –Specifies whether to rollback the API creation when a warning is encountered. By default, API creation continues if a warning is encountered.
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
5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 | |