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
3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 | |