list_curation_proposals
¶
list_curation_proposals(
agent_context_id: AgentContextIdentifier,
status: CurationProposalStatus,
*,
config_overrides: Optional[ContextClientConfig] = None,
access_control: Optional[AccessControl] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[PaginationToken] = None,
) -> ListCurationProposalsResponse
Lists an agent context's curation proposals, newest first. A curation proposal holds a change to the agent context for review.
Parameters:
-
agent_context_id(AgentContextIdentifier) –The agent context whose proposals you want to list, by its ID or ARN.
-
status(CurationProposalStatus) –The status to scope the queue to, for example, PENDING_REVIEW for the review queue. Required: a request lists one status, so list each status you want in its own request.
Valid values:
-
PENDING_REVIEW- Waiting for a curator's decision. The only status Accept and Reject act on. -
APPROVED- A curator accepted it. Its change set is published or publishing. -
REJECTED- Closed without applying its change set: a curator rejected it, or the service did when a holding policy's review window passed with no decision (statusReasonCodeREQUEST_EXPIRED). -
SUPERSEDED- A newer proposal for the same document replaced it. -
FAILED- The proposal was accepted, but publishing its change set failed. This status is final. To apply the change, submit it again. -
PUBLISHING- Accepted and publishing asynchronously (an ontology-schema publish). The status then changes to APPROVED or FAILED. -
ARCHIVED- The connection that produced it was removed from the agent context.statusReason.codeis CONNECTION_REMOVED.
-
-
access_control(Optional[AccessControl], default:None) –The
accessControlvalue to list proposals for. If you omit it, every proposal in the status is listed, each with itsaccessControl. If you specify a value that isn't listed, the request fails withValidationException.Valid values:
-
ACL_RESTRICTED- Only an allowed end user can read the content (its operations), and the change set can't be edited. Every caller can read its metadata, and its proposal'stitlenames no nodes or edges. -
NO_ACL- Every caller can read the content.
-
-
max_results(Optional[MaxResults], default:None) –Maximum number of results per page (upper bound, not a target). The service might return fewer. Defaults to 50. A value outside 1–100 fails with
ValidationException. -
next_token(Optional[PaginationToken], default:None) –Opaque pagination cursor from a prior response. Omit for the first page.
Raises:
-
AccessDeniedException–You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
-
InternalServerException–The request failed because of an internal error. Retry the request.
-
ThrottlingException–The request was denied because it exceeded a request rate quota. Wait, then retry the request.
-
ValidationException–The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
-
ResourceNotFoundException–The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
List the curation proposals waiting for review The following example lists the curation proposals of an agent context that are waiting for a curator's decision, newest first.
>>> client.list_curation_proposals(agent_context_id='ac-4f2a9c1e7b3d4a6f8e0c2b5d7a9f1e3c', status='PENDING_REVIEW', max_results=25)
Source code in docs_src/capo_context/_services/context.py
2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 | |