Skip to content

Commit 24a9ff7

Browse files
author
Changjian Wang
committed
Update analyzer copy endpoint to use simplified path and expand expected responses
1 parent 984b4df commit 24a9ff7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sdk/contentunderstanding/azure-ai-contentunderstanding/src/main/java/com/azure/ai/contentunderstanding/implementation/ContentUnderstandingClientImpl.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,8 @@ Response<BinaryData> analyzeBinarySync(@HostParam("endpoint") String endpoint,
212212
@HeaderParam("content-type") String contentType, @HeaderParam("Accept") String accept,
213213
@BodyParam("*/*") BinaryData binaryInput, RequestOptions requestOptions, Context context);
214214

215-
@Post("/analyzers/{analyzerId}:copyAnalyzer")
216-
@ExpectedResponses({ 202 })
215+
@Post("/analyzers/{analyzerId}:copy")
216+
@ExpectedResponses({ 200, 201, 202 })
217217
@UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
218218
@UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
219219
@UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
@@ -224,8 +224,8 @@ Mono<Response<BinaryData>> copyAnalyzer(@HostParam("endpoint") String endpoint,
224224
@BodyParam("application/json") BinaryData copyAnalyzerRequest, RequestOptions requestOptions,
225225
Context context);
226226

227-
@Post("/analyzers/{analyzerId}:copyAnalyzer")
228-
@ExpectedResponses({ 202 })
227+
@Post("/analyzers/{analyzerId}:copy")
228+
@ExpectedResponses({ 200, 201, 202 })
229229
@UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
230230
@UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
231231
@UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })

0 commit comments

Comments
 (0)