import_documentation_parts
async
¶
import_documentation_parts(
rest_api_id: String,
body: Blob,
*,
config_overrides: Optional[AsyncAPIGatewayClientConfig] = None,
mode: Optional[PutMode] = None,
fail_on_warnings: Optional[Boolean] = None,
) -> DocumentationPartIds
Imports documentation parts
Parameters:
-
rest_api_id(String) –The string identifier of the associated RestApi.
-
mode(Optional[PutMode], default:None) –A query parameter to indicate whether to overwrite (
overwrite) any existing DocumentationParts definition or to merge (merge) the new definition into the existing one. The default value ismerge. -
fail_on_warnings(Optional[Boolean], default:None) –A query parameter to specify whether to rollback the documentation importation (
true) or not (false) when a warning is encountered. The default value isfalse. -
body(Blob) –Raw byte array representing the to-be-imported documentation parts. To import from an OpenAPI file, this is a JSON object.
Raises:
-
BadRequestException–The submitted request is not valid, for example, the input is incomplete or incorrect. See the accompanying error message for details.
-
ConflictException–The request configuration has conflicts. For details, see the accompanying error message.
-
LimitExceededException–The request exceeded the rate limit. Retry after the specified time period.
-
NotFoundException–The requested resource is not found. Make sure that the request URI is correct.
-
TooManyRequestsException–The request has reached its throttling limit. Retry after the specified time period.
-
UnauthorizedException–The request is denied because the caller has insufficient permissions.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_api_gateway/_services/async_api_gateway.py
5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 | |