Skip to content

Commit 609065d

Browse files
tsp, fix on missing test/sample (after projection) (#2736)
1 parent ef472c0 commit 609065d

File tree

54 files changed

+6016
-5123
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+6016
-5123
lines changed

azure-dataplane-tests/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
<dependency>
5050
<groupId>com.azure</groupId>
5151
<artifactId>azure-core-http-netty</artifactId>
52-
<version>1.14.2</version>
52+
<version>1.15.0</version>
5353
<scope>test</scope>
5454
</dependency>
5555
<dependency>
Lines changed: 22 additions & 154 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
package com.azure.ai.formrecognizer.documentanalysis.dpg;
66

7-
import com.azure.ai.formrecognizer.documentanalysis.dpg.implementation.FormRecognizerClientImpl;
7+
import com.azure.ai.formrecognizer.documentanalysis.dpg.implementation.DocumentModelsImpl;
88
import com.azure.core.annotation.Generated;
99
import com.azure.core.annotation.ReturnType;
1010
import com.azure.core.annotation.ServiceClient;
@@ -23,24 +23,22 @@
2323
/**
2424
* Initializes a new instance of the asynchronous FormRecognizerClient type.
2525
*/
26-
@ServiceClient(builder = FormRecognizerClientBuilder.class, isAsync = true)
27-
public final class FormRecognizerAsyncClient {
26+
@ServiceClient(builder = DocumentModelsClientBuilder.class, isAsync = true)
27+
public final class DocumentModelsAsyncClient {
2828
@Generated
29-
private final FormRecognizerClientImpl serviceClient;
29+
private final DocumentModelsImpl serviceClient;
3030

3131
/**
32-
* Initializes an instance of FormRecognizerAsyncClient class.
32+
* Initializes an instance of DocumentModelsAsyncClient class.
3333
*
3434
* @param serviceClient the service client implementation.
3535
*/
3636
@Generated
37-
FormRecognizerAsyncClient(FormRecognizerClientImpl serviceClient) {
37+
DocumentModelsAsyncClient(DocumentModelsImpl serviceClient) {
3838
this.serviceClient = serviceClient;
3939
}
4040

4141
/**
42-
* Analyze document
43-
*
4442
* Analyzes document with document model.
4543
* <p><strong>Query Parameters</strong></p>
4644
* <table border="1">
@@ -78,8 +76,6 @@ public PollerFlux<BinaryData, BinaryData> beginAnalyzeDocument(String modelId, S
7876
}
7977

8078
/**
81-
* Get analyze result
82-
*
8379
* Gets the result of document analysis.
8480
* <p><strong>Response Body Schema</strong></p>
8581
*
@@ -299,14 +295,12 @@ public PollerFlux<BinaryData, BinaryData> beginAnalyzeDocument(String modelId, S
299295
*/
300296
@Generated
301297
@ServiceMethod(returns = ReturnType.SINGLE)
302-
public Mono<Response<BinaryData>> getAnalyzeDocumentResultWithResponse(String modelId, String resultId,
298+
public Mono<Response<BinaryData>> getAnalyzeResultWithResponse(String modelId, String resultId,
303299
RequestOptions requestOptions) {
304-
return this.serviceClient.getAnalyzeDocumentResultWithResponseAsync(modelId, resultId, requestOptions);
300+
return this.serviceClient.getAnalyzeResultWithResponseAsync(modelId, resultId, requestOptions);
305301
}
306302

307303
/**
308-
* Build document model
309-
*
310304
* Builds a custom document analysis model.
311305
* <p><strong>Request Body Schema</strong></p>
312306
*
@@ -335,14 +329,11 @@ public Mono<Response<BinaryData>> getAnalyzeDocumentResultWithResponse(String mo
335329
*/
336330
@Generated
337331
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
338-
public PollerFlux<BinaryData, BinaryData> beginBuildDocumentModel(BinaryData buildRequest,
339-
RequestOptions requestOptions) {
340-
return this.serviceClient.beginBuildDocumentModelAsync(buildRequest, requestOptions);
332+
public PollerFlux<BinaryData, BinaryData> beginBuildModel(BinaryData buildRequest, RequestOptions requestOptions) {
333+
return this.serviceClient.beginBuildModelAsync(buildRequest, requestOptions);
341334
}
342335

343336
/**
344-
* Compose document model
345-
*
346337
* Creates a new document model from document types of existing document models.
347338
* <p><strong>Request Body Schema</strong></p>
348339
*
@@ -371,14 +362,12 @@ public PollerFlux<BinaryData, BinaryData> beginBuildDocumentModel(BinaryData bui
371362
*/
372363
@Generated
373364
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
374-
public PollerFlux<BinaryData, BinaryData> beginComposeDocumentModel(BinaryData composeRequest,
365+
public PollerFlux<BinaryData, BinaryData> beginComposeModel(BinaryData composeRequest,
375366
RequestOptions requestOptions) {
376-
return this.serviceClient.beginComposeDocumentModelAsync(composeRequest, requestOptions);
367+
return this.serviceClient.beginComposeModelAsync(composeRequest, requestOptions);
377368
}
378369

379370
/**
380-
* Generate copy authorization
381-
*
382371
* Generates authorization to copy a document model to this location with specified modelId and optional
383372
* description.
384373
* <p><strong>Request Body Schema</strong></p>
@@ -417,14 +406,12 @@ public PollerFlux<BinaryData, BinaryData> beginComposeDocumentModel(BinaryData c
417406
*/
418407
@Generated
419408
@ServiceMethod(returns = ReturnType.SINGLE)
420-
public Mono<Response<BinaryData>> authorizeCopyDocumentModelWithResponse(BinaryData authorizeCopyRequest,
409+
public Mono<Response<BinaryData>> authorizeModelCopyWithResponse(BinaryData authorizeCopyRequest,
421410
RequestOptions requestOptions) {
422-
return this.serviceClient.authorizeCopyDocumentModelWithResponseAsync(authorizeCopyRequest, requestOptions);
411+
return this.serviceClient.authorizeModelCopyWithResponseAsync(authorizeCopyRequest, requestOptions);
423412
}
424413

425414
/**
426-
* Copy document model
427-
*
428415
* Copies document model to the target resource, region, and modelId.
429416
* <p><strong>Request Body Schema</strong></p>
430417
*
@@ -450,98 +437,12 @@ public Mono<Response<BinaryData>> authorizeCopyDocumentModelWithResponse(BinaryD
450437
*/
451438
@Generated
452439
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
453-
public PollerFlux<BinaryData, BinaryData> beginCopyDocumentModelTo(String modelId, BinaryData copyToRequest,
440+
public PollerFlux<BinaryData, BinaryData> beginCopyModelTo(String modelId, BinaryData copyToRequest,
454441
RequestOptions requestOptions) {
455-
return this.serviceClient.beginCopyDocumentModelToAsync(modelId, copyToRequest, requestOptions);
442+
return this.serviceClient.beginCopyModelToAsync(modelId, copyToRequest, requestOptions);
456443
}
457444

458445
/**
459-
* List operations
460-
*
461-
* Lists all operations.
462-
* <p><strong>Response Body Schema</strong></p>
463-
*
464-
* <pre>{@code
465-
* {
466-
* operationId: String (Required)
467-
* status: String(notStarted/running/failed/succeeded/canceled) (Required)
468-
* percentCompleted: Integer (Optional)
469-
* createdDateTime: OffsetDateTime (Required)
470-
* lastUpdatedDateTime: OffsetDateTime (Required)
471-
* kind: String(documentModelBuild/documentModelCompose/documentModelCopyTo) (Required)
472-
* resourceLocation: String (Required)
473-
* apiVersion: String (Optional)
474-
* tags (Optional): {
475-
* String: String (Required)
476-
* }
477-
* }
478-
* }</pre>
479-
*
480-
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
481-
* @throws HttpResponseException thrown if the request is rejected by server.
482-
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
483-
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
484-
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
485-
* @return list Operations response object as paginated response with {@link PagedFlux}.
486-
*/
487-
@Generated
488-
@ServiceMethod(returns = ReturnType.COLLECTION)
489-
public PagedFlux<BinaryData> getOperations(RequestOptions requestOptions) {
490-
return this.serviceClient.getOperationsAsync(requestOptions);
491-
}
492-
493-
/**
494-
* Get operation
495-
*
496-
* Gets operation info.
497-
* <p><strong>Response Body Schema</strong></p>
498-
*
499-
* <pre>{@code
500-
* {
501-
* kind: String (Required)
502-
* operationId: String (Required)
503-
* status: String(notStarted/running/failed/succeeded/canceled) (Required)
504-
* percentCompleted: Integer (Optional)
505-
* createdDateTime: OffsetDateTime (Required)
506-
* lastUpdatedDateTime: OffsetDateTime (Required)
507-
* resourceLocation: String (Required)
508-
* apiVersion: String (Optional)
509-
* tags (Optional): {
510-
* String: String (Required)
511-
* }
512-
* error (Optional): {
513-
* code: String (Required)
514-
* message: String (Required)
515-
* target: String (Optional)
516-
* details (Optional): [
517-
* (recursive schema, see above)
518-
* ]
519-
* innererror (Optional): {
520-
* code: String (Required)
521-
* message: String (Optional)
522-
* innererror (Optional): (recursive schema, see innererror above)
523-
* }
524-
* }
525-
* }
526-
* }</pre>
527-
*
528-
* @param operationId Unique operation ID.
529-
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
530-
* @throws HttpResponseException thrown if the request is rejected by server.
531-
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
532-
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
533-
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
534-
* @return operation info along with {@link Response} on successful completion of {@link Mono}.
535-
*/
536-
@Generated
537-
@ServiceMethod(returns = ReturnType.SINGLE)
538-
public Mono<Response<BinaryData>> getOperationWithResponse(String operationId, RequestOptions requestOptions) {
539-
return this.serviceClient.getOperationWithResponseAsync(operationId, requestOptions);
540-
}
541-
542-
/**
543-
* List document models
544-
*
545446
* List all document models.
546447
* <p><strong>Response Body Schema</strong></p>
547448
*
@@ -566,13 +467,11 @@ public Mono<Response<BinaryData>> getOperationWithResponse(String operationId, R
566467
*/
567468
@Generated
568469
@ServiceMethod(returns = ReturnType.COLLECTION)
569-
public PagedFlux<BinaryData> getDocumentModels(RequestOptions requestOptions) {
570-
return this.serviceClient.getDocumentModelsAsync(requestOptions);
470+
public PagedFlux<BinaryData> listModels(RequestOptions requestOptions) {
471+
return this.serviceClient.listModelsAsync(requestOptions);
571472
}
572473

573474
/**
574-
* Get document model
575-
*
576475
* Gets detailed document model information.
577476
* <p><strong>Response Body Schema</strong></p>
578477
*
@@ -618,13 +517,11 @@ public PagedFlux<BinaryData> getDocumentModels(RequestOptions requestOptions) {
618517
*/
619518
@Generated
620519
@ServiceMethod(returns = ReturnType.SINGLE)
621-
public Mono<Response<BinaryData>> getDocumentModelWithResponse(String modelId, RequestOptions requestOptions) {
622-
return this.serviceClient.getDocumentModelWithResponseAsync(modelId, requestOptions);
520+
public Mono<Response<BinaryData>> getModelWithResponse(String modelId, RequestOptions requestOptions) {
521+
return this.serviceClient.getModelWithResponseAsync(modelId, requestOptions);
623522
}
624523

625524
/**
626-
* Delete document model
627-
*
628525
* Deletes document model.
629526
*
630527
* @param modelId Unique document model name.
@@ -637,36 +534,7 @@ public Mono<Response<BinaryData>> getDocumentModelWithResponse(String modelId, R
637534
*/
638535
@Generated
639536
@ServiceMethod(returns = ReturnType.SINGLE)
640-
public Mono<Response<Void>> deleteDocumentModelWithResponse(String modelId, RequestOptions requestOptions) {
641-
return this.serviceClient.deleteDocumentModelWithResponseAsync(modelId, requestOptions);
642-
}
643-
644-
/**
645-
* Get resource info
646-
*
647-
* Return information about the current resource.
648-
* <p><strong>Response Body Schema</strong></p>
649-
*
650-
* <pre>{@code
651-
* {
652-
* customDocumentModels (Required): {
653-
* count: int (Required)
654-
* limit: int (Required)
655-
* }
656-
* }
657-
* }</pre>
658-
*
659-
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
660-
* @throws HttpResponseException thrown if the request is rejected by server.
661-
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
662-
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
663-
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
664-
* @return general information regarding the current resource along with {@link Response} on successful completion
665-
* of {@link Mono}.
666-
*/
667-
@Generated
668-
@ServiceMethod(returns = ReturnType.SINGLE)
669-
public Mono<Response<BinaryData>> getResourceDetailsWithResponse(RequestOptions requestOptions) {
670-
return this.serviceClient.getResourceDetailsWithResponseAsync(requestOptions);
537+
public Mono<Response<Void>> deleteModelWithResponse(String modelId, RequestOptions requestOptions) {
538+
return this.serviceClient.deleteModelWithResponseAsync(modelId, requestOptions);
671539
}
672540
}

0 commit comments

Comments
 (0)