update_recommendation
¶
update_recommendation(
agent_space_id: AgentSpaceIdentifier,
recommendation_id: ResourceId,
*,
config_overrides: Optional[DevOpsAgentClientConfig] = 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/dev_ops_agent.py
2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 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 | |