update_recommendation
async
¶
update_recommendation(
agent_space_id: AgentSpaceIdentifier,
recommendation_id: ResourceId,
*,
config_overrides: Optional[AsyncDevOpsAgentClientConfig] = None,
status: Optional[RecommendationStatus] = None,
additional_context: Optional[str] = None,
client_token: Optional[str] = None,
) -> UpdateRecommendationResponse
Updates an existing recommendation with new content, status, or metadata
Parameters:
-
agent_space_id(AgentSpaceIdentifier) –The unique identifier for the agent space containing the recommendation
-
recommendation_id(ResourceId) –The unique identifier for the recommendation to update
-
status(Optional[RecommendationStatus], default:None) –Current status of the recommendation
-
additional_context(Optional[str], default:None) –Additional context for recommendation
-
client_token(Optional[str], default:None) –A unique token that ensures idempotency of the request
Raises:
-
AccessDeniedException–Access to the requested resource is denied due to insufficient permissions.
-
ConflictException–The request conflicts with the current state of the resource.
-
ContentSizeExceededException–This exception is thrown when the content size exceeds the allowed limit.
-
InternalServerException–This exception is thrown when an unexpected error occurs in the processing of a request.
-
InvalidParameterException–One or more parameters provided in the request are invalid.
-
ResourceNotFoundException–The requested resource could not be found.
-
ServiceQuotaExceededException–The request would exceed the service quota limit.
-
ThrottlingException–The request was throttled due to too many requests. Please slow down and try again.
-
ValidationException–The input fails to satisfy the constraints specified by the service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_devops_agent/_services/async_dev_ops_agent.py
2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 | |