get_documentation_parts
async
¶
get_documentation_parts(
rest_api_id: String,
*,
config_overrides: Optional[AsyncAPIGatewayClientConfig] = None,
type: Optional[DocumentationPartType] = None,
name_query: Optional[String] = None,
path: Optional[String] = None,
position: Optional[String] = None,
limit: Optional[NullableInteger] = None,
location_status: Optional[LocationStatusType] = None,
) -> DocumentationParts
Gets documentation parts.
Parameters:
-
rest_api_id(String) –The string identifier of the associated RestApi.
-
type(Optional[DocumentationPartType], default:None) –The type of API entities of the to-be-retrieved documentation parts.
-
name_query(Optional[String], default:None) –The name of API entities of the to-be-retrieved documentation parts.
-
path(Optional[String], default:None) –The path of API entities of the to-be-retrieved documentation parts.
-
position(Optional[String], default:None) –The current pagination position in the paged result set.
-
limit(Optional[NullableInteger], default:None) –The maximum number of returned results per page. The default value is 25 and the maximum value is 500.
-
location_status(Optional[LocationStatusType], default:None) –The status of the API documentation parts to retrieve. Valid values are
DOCUMENTEDfor retrieving DocumentationPart resources with content andUNDOCUMENTEDfor DocumentationPart resources without content.
Raises:
-
BadRequestException–The submitted request is not valid, for example, the input is incomplete or incorrect. See the accompanying error message for details.
-
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
3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 | |