From f2624aa708ed98c4c6495aa681da22572d6325c7 Mon Sep 17 00:00:00 2001 From: Alexander Sher Date: Tue, 7 Dec 2021 18:10:00 -0600 Subject: [PATCH 1/5] Update Autorest version to 20211207.1 --- eng/Packages.Data.props | 2 +- ...DocumentAnalysisAnalyzeDocumentHeaders.cs} | 4 +- ...umentAnalysisBuildDocumentModelHeaders.cs} | 4 +- ...entAnalysisComposeDocumentModelHeaders.cs} | 4 +- ...mentAnalysisCopyDocumentModelToHeaders.cs} | 4 +- .../Generated/DocumentAnalysisRestClient.cs | 170 +++++++++--------- 6 files changed, 94 insertions(+), 94 deletions(-) rename sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/{DocumentAnalysisDocumentAnalysisAnalyzeDocumentHeaders.cs => DocumentAnalysisAnalyzeDocumentHeaders.cs} (76%) rename sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/{DocumentAnalysisDocumentAnalysisBuildDocumentModelHeaders.cs => DocumentAnalysisBuildDocumentModelHeaders.cs} (73%) rename sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/{DocumentAnalysisDocumentAnalysisCopyDocumentModelToHeaders.cs => DocumentAnalysisComposeDocumentModelHeaders.cs} (73%) rename sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/{DocumentAnalysisDocumentAnalysisComposeDocumentModelHeaders.cs => DocumentAnalysisCopyDocumentModelToHeaders.cs} (73%) diff --git a/eng/Packages.Data.props b/eng/Packages.Data.props index 63f87b1c99eff..0c864f0df0efb 100644 --- a/eng/Packages.Data.props +++ b/eng/Packages.Data.props @@ -146,7 +146,7 @@ All should have PrivateAssets="All" set so they don't become package dependencies --> - + diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/DocumentAnalysisDocumentAnalysisAnalyzeDocumentHeaders.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/DocumentAnalysisAnalyzeDocumentHeaders.cs similarity index 76% rename from sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/DocumentAnalysisDocumentAnalysisAnalyzeDocumentHeaders.cs rename to sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/DocumentAnalysisAnalyzeDocumentHeaders.cs index 5b8c2aba5968b..e0a6d6ca2a7e9 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/DocumentAnalysisDocumentAnalysisAnalyzeDocumentHeaders.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/DocumentAnalysisAnalyzeDocumentHeaders.cs @@ -10,10 +10,10 @@ namespace Azure.AI.FormRecognizer { - internal partial class DocumentAnalysisDocumentAnalysisAnalyzeDocumentHeaders + internal partial class DocumentAnalysisAnalyzeDocumentHeaders { private readonly Response _response; - public DocumentAnalysisDocumentAnalysisAnalyzeDocumentHeaders(Response response) + public DocumentAnalysisAnalyzeDocumentHeaders(Response response) { _response = response; } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/DocumentAnalysisDocumentAnalysisBuildDocumentModelHeaders.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/DocumentAnalysisBuildDocumentModelHeaders.cs similarity index 73% rename from sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/DocumentAnalysisDocumentAnalysisBuildDocumentModelHeaders.cs rename to sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/DocumentAnalysisBuildDocumentModelHeaders.cs index 232bf994ef4f9..78d109ef6a651 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/DocumentAnalysisDocumentAnalysisBuildDocumentModelHeaders.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/DocumentAnalysisBuildDocumentModelHeaders.cs @@ -10,10 +10,10 @@ namespace Azure.AI.FormRecognizer { - internal partial class DocumentAnalysisDocumentAnalysisBuildDocumentModelHeaders + internal partial class DocumentAnalysisBuildDocumentModelHeaders { private readonly Response _response; - public DocumentAnalysisDocumentAnalysisBuildDocumentModelHeaders(Response response) + public DocumentAnalysisBuildDocumentModelHeaders(Response response) { _response = response; } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/DocumentAnalysisDocumentAnalysisCopyDocumentModelToHeaders.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/DocumentAnalysisComposeDocumentModelHeaders.cs similarity index 73% rename from sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/DocumentAnalysisDocumentAnalysisCopyDocumentModelToHeaders.cs rename to sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/DocumentAnalysisComposeDocumentModelHeaders.cs index df96b23cd6384..c4f1b451b1eb8 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/DocumentAnalysisDocumentAnalysisCopyDocumentModelToHeaders.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/DocumentAnalysisComposeDocumentModelHeaders.cs @@ -10,10 +10,10 @@ namespace Azure.AI.FormRecognizer { - internal partial class DocumentAnalysisDocumentAnalysisCopyDocumentModelToHeaders + internal partial class DocumentAnalysisComposeDocumentModelHeaders { private readonly Response _response; - public DocumentAnalysisDocumentAnalysisCopyDocumentModelToHeaders(Response response) + public DocumentAnalysisComposeDocumentModelHeaders(Response response) { _response = response; } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/DocumentAnalysisDocumentAnalysisComposeDocumentModelHeaders.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/DocumentAnalysisCopyDocumentModelToHeaders.cs similarity index 73% rename from sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/DocumentAnalysisDocumentAnalysisComposeDocumentModelHeaders.cs rename to sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/DocumentAnalysisCopyDocumentModelToHeaders.cs index 8a5b6eddf91ea..888034be1c2e1 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/DocumentAnalysisDocumentAnalysisComposeDocumentModelHeaders.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/DocumentAnalysisCopyDocumentModelToHeaders.cs @@ -10,10 +10,10 @@ namespace Azure.AI.FormRecognizer { - internal partial class DocumentAnalysisDocumentAnalysisComposeDocumentModelHeaders + internal partial class DocumentAnalysisCopyDocumentModelToHeaders { private readonly Response _response; - public DocumentAnalysisDocumentAnalysisComposeDocumentModelHeaders(Response response) + public DocumentAnalysisCopyDocumentModelToHeaders(Response response) { _response = response; } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/DocumentAnalysisRestClient.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/DocumentAnalysisRestClient.cs index 59beedbad8f06..e036bd5253138 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/DocumentAnalysisRestClient.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/DocumentAnalysisRestClient.cs @@ -35,7 +35,7 @@ public DocumentAnalysisRestClient(ClientDiagnostics clientDiagnostics, HttpPipel _pipeline = pipeline; } - internal HttpMessage CreateDocumentAnalysisAnalyzeDocumentRequest(string modelId, ContentType1 contentType, string pages, string locale, StringIndexType? stringIndexType, Stream analyzeRequest) + internal HttpMessage CreateAnalyzeDocumentRequest(string modelId, ContentType1 contentType, string pages, string locale, StringIndexType? stringIndexType, Stream analyzeRequest) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -78,16 +78,16 @@ internal HttpMessage CreateDocumentAnalysisAnalyzeDocumentRequest(string modelId /// Analyze request parameters. /// The cancellation token to use. /// is null. - public async Task> DocumentAnalysisAnalyzeDocumentAsync(string modelId, ContentType1 contentType, string pages = null, string locale = null, StringIndexType? stringIndexType = null, Stream analyzeRequest = null, CancellationToken cancellationToken = default) + public async Task> AnalyzeDocumentAsync(string modelId, ContentType1 contentType, string pages = null, string locale = null, StringIndexType? stringIndexType = null, Stream analyzeRequest = null, CancellationToken cancellationToken = default) { if (modelId == null) { throw new ArgumentNullException(nameof(modelId)); } - using var message = CreateDocumentAnalysisAnalyzeDocumentRequest(modelId, contentType, pages, locale, stringIndexType, analyzeRequest); + using var message = CreateAnalyzeDocumentRequest(modelId, contentType, pages, locale, stringIndexType, analyzeRequest); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - var headers = new DocumentAnalysisDocumentAnalysisAnalyzeDocumentHeaders(message.Response); + var headers = new DocumentAnalysisAnalyzeDocumentHeaders(message.Response); switch (message.Response.Status) { case 202: @@ -106,16 +106,16 @@ public async Task Analyze request parameters. /// The cancellation token to use. /// is null. - public ResponseWithHeaders DocumentAnalysisAnalyzeDocument(string modelId, ContentType1 contentType, string pages = null, string locale = null, StringIndexType? stringIndexType = null, Stream analyzeRequest = null, CancellationToken cancellationToken = default) + public ResponseWithHeaders AnalyzeDocument(string modelId, ContentType1 contentType, string pages = null, string locale = null, StringIndexType? stringIndexType = null, Stream analyzeRequest = null, CancellationToken cancellationToken = default) { if (modelId == null) { throw new ArgumentNullException(nameof(modelId)); } - using var message = CreateDocumentAnalysisAnalyzeDocumentRequest(modelId, contentType, pages, locale, stringIndexType, analyzeRequest); + using var message = CreateAnalyzeDocumentRequest(modelId, contentType, pages, locale, stringIndexType, analyzeRequest); _pipeline.Send(message, cancellationToken); - var headers = new DocumentAnalysisDocumentAnalysisAnalyzeDocumentHeaders(message.Response); + var headers = new DocumentAnalysisAnalyzeDocumentHeaders(message.Response); switch (message.Response.Status) { case 202: @@ -125,7 +125,7 @@ public ResponseWithHeaders Analyze request parameters. /// The cancellation token to use. /// is null. - public async Task> DocumentAnalysisAnalyzeDocumentAsync(string modelId, string pages = null, string locale = null, StringIndexType? stringIndexType = null, AnalyzeDocumentRequest analyzeRequest = null, CancellationToken cancellationToken = default) + public async Task> AnalyzeDocumentAsync(string modelId, string pages = null, string locale = null, StringIndexType? stringIndexType = null, AnalyzeDocumentRequest analyzeRequest = null, CancellationToken cancellationToken = default) { if (modelId == null) { throw new ArgumentNullException(nameof(modelId)); } - using var message = CreateDocumentAnalysisAnalyzeDocumentRequest(modelId, pages, locale, stringIndexType, analyzeRequest); + using var message = CreateAnalyzeDocumentRequest(modelId, pages, locale, stringIndexType, analyzeRequest); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - var headers = new DocumentAnalysisDocumentAnalysisAnalyzeDocumentHeaders(message.Response); + var headers = new DocumentAnalysisAnalyzeDocumentHeaders(message.Response); switch (message.Response.Status) { case 202: @@ -196,16 +196,16 @@ public async Task Analyze request parameters. /// The cancellation token to use. /// is null. - public ResponseWithHeaders DocumentAnalysisAnalyzeDocument(string modelId, string pages = null, string locale = null, StringIndexType? stringIndexType = null, AnalyzeDocumentRequest analyzeRequest = null, CancellationToken cancellationToken = default) + public ResponseWithHeaders AnalyzeDocument(string modelId, string pages = null, string locale = null, StringIndexType? stringIndexType = null, AnalyzeDocumentRequest analyzeRequest = null, CancellationToken cancellationToken = default) { if (modelId == null) { throw new ArgumentNullException(nameof(modelId)); } - using var message = CreateDocumentAnalysisAnalyzeDocumentRequest(modelId, pages, locale, stringIndexType, analyzeRequest); + using var message = CreateAnalyzeDocumentRequest(modelId, pages, locale, stringIndexType, analyzeRequest); _pipeline.Send(message, cancellationToken); - var headers = new DocumentAnalysisDocumentAnalysisAnalyzeDocumentHeaders(message.Response); + var headers = new DocumentAnalysisAnalyzeDocumentHeaders(message.Response); switch (message.Response.Status) { case 202: @@ -215,7 +215,7 @@ public ResponseWithHeaders Analyze operation result ID. /// The cancellation token to use. /// or is null. - public async Task> DocumentAnalysisGetAnalyzeDocumentResultAsync(string modelId, string resultId, CancellationToken cancellationToken = default) + public async Task> GetAnalyzeDocumentResultAsync(string modelId, string resultId, CancellationToken cancellationToken = default) { if (modelId == null) { @@ -249,7 +249,7 @@ public async Task> DocumentAnalysisGetAnalyzeDo throw new ArgumentNullException(nameof(resultId)); } - using var message = CreateDocumentAnalysisGetAnalyzeDocumentResultRequest(modelId, resultId); + using var message = CreateGetAnalyzeDocumentResultRequest(modelId, resultId); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -270,7 +270,7 @@ public async Task> DocumentAnalysisGetAnalyzeDo /// Analyze operation result ID. /// The cancellation token to use. /// or is null. - public Response DocumentAnalysisGetAnalyzeDocumentResult(string modelId, string resultId, CancellationToken cancellationToken = default) + public Response GetAnalyzeDocumentResult(string modelId, string resultId, CancellationToken cancellationToken = default) { if (modelId == null) { @@ -281,7 +281,7 @@ public Response DocumentAnalysisGetAnalyzeDocumentResult throw new ArgumentNullException(nameof(resultId)); } - using var message = CreateDocumentAnalysisGetAnalyzeDocumentResultRequest(modelId, resultId); + using var message = CreateGetAnalyzeDocumentResultRequest(modelId, resultId); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -297,7 +297,7 @@ public Response DocumentAnalysisGetAnalyzeDocumentResult } } - internal HttpMessage CreateDocumentAnalysisBuildDocumentModelRequest(BuildDocumentModelRequest buildRequest) + internal HttpMessage CreateBuildDocumentModelRequest(BuildDocumentModelRequest buildRequest) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -320,16 +320,16 @@ internal HttpMessage CreateDocumentAnalysisBuildDocumentModelRequest(BuildDocume /// Building request parameters. /// The cancellation token to use. /// is null. - public async Task> DocumentAnalysisBuildDocumentModelAsync(BuildDocumentModelRequest buildRequest, CancellationToken cancellationToken = default) + public async Task> BuildDocumentModelAsync(BuildDocumentModelRequest buildRequest, CancellationToken cancellationToken = default) { if (buildRequest == null) { throw new ArgumentNullException(nameof(buildRequest)); } - using var message = CreateDocumentAnalysisBuildDocumentModelRequest(buildRequest); + using var message = CreateBuildDocumentModelRequest(buildRequest); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - var headers = new DocumentAnalysisDocumentAnalysisBuildDocumentModelHeaders(message.Response); + var headers = new DocumentAnalysisBuildDocumentModelHeaders(message.Response); switch (message.Response.Status) { case 202: @@ -343,16 +343,16 @@ public async Task Building request parameters. /// The cancellation token to use. /// is null. - public ResponseWithHeaders DocumentAnalysisBuildDocumentModel(BuildDocumentModelRequest buildRequest, CancellationToken cancellationToken = default) + public ResponseWithHeaders BuildDocumentModel(BuildDocumentModelRequest buildRequest, CancellationToken cancellationToken = default) { if (buildRequest == null) { throw new ArgumentNullException(nameof(buildRequest)); } - using var message = CreateDocumentAnalysisBuildDocumentModelRequest(buildRequest); + using var message = CreateBuildDocumentModelRequest(buildRequest); _pipeline.Send(message, cancellationToken); - var headers = new DocumentAnalysisDocumentAnalysisBuildDocumentModelHeaders(message.Response); + var headers = new DocumentAnalysisBuildDocumentModelHeaders(message.Response); switch (message.Response.Status) { case 202: @@ -362,7 +362,7 @@ public ResponseWithHeaders Compose request parameters. /// The cancellation token to use. /// is null. - public async Task> DocumentAnalysisComposeDocumentModelAsync(ComposeDocumentModelRequest composeRequest, CancellationToken cancellationToken = default) + public async Task> ComposeDocumentModelAsync(ComposeDocumentModelRequest composeRequest, CancellationToken cancellationToken = default) { if (composeRequest == null) { throw new ArgumentNullException(nameof(composeRequest)); } - using var message = CreateDocumentAnalysisComposeDocumentModelRequest(composeRequest); + using var message = CreateComposeDocumentModelRequest(composeRequest); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - var headers = new DocumentAnalysisDocumentAnalysisComposeDocumentModelHeaders(message.Response); + var headers = new DocumentAnalysisComposeDocumentModelHeaders(message.Response); switch (message.Response.Status) { case 202: @@ -408,16 +408,16 @@ public async Task Compose request parameters. /// The cancellation token to use. /// is null. - public ResponseWithHeaders DocumentAnalysisComposeDocumentModel(ComposeDocumentModelRequest composeRequest, CancellationToken cancellationToken = default) + public ResponseWithHeaders ComposeDocumentModel(ComposeDocumentModelRequest composeRequest, CancellationToken cancellationToken = default) { if (composeRequest == null) { throw new ArgumentNullException(nameof(composeRequest)); } - using var message = CreateDocumentAnalysisComposeDocumentModelRequest(composeRequest); + using var message = CreateComposeDocumentModelRequest(composeRequest); _pipeline.Send(message, cancellationToken); - var headers = new DocumentAnalysisDocumentAnalysisComposeDocumentModelHeaders(message.Response); + var headers = new DocumentAnalysisComposeDocumentModelHeaders(message.Response); switch (message.Response.Status) { case 202: @@ -427,7 +427,7 @@ public ResponseWithHeaders Authorize copy request parameters. /// The cancellation token to use. /// is null. - public async Task> DocumentAnalysisAuthorizeCopyDocumentModelAsync(AuthorizeCopyRequest authorizeCopyRequest, CancellationToken cancellationToken = default) + public async Task> AuthorizeCopyDocumentModelAsync(AuthorizeCopyRequest authorizeCopyRequest, CancellationToken cancellationToken = default) { if (authorizeCopyRequest == null) { throw new ArgumentNullException(nameof(authorizeCopyRequest)); } - using var message = CreateDocumentAnalysisAuthorizeCopyDocumentModelRequest(authorizeCopyRequest); + using var message = CreateAuthorizeCopyDocumentModelRequest(authorizeCopyRequest); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -477,14 +477,14 @@ public async Task> DocumentAnalysisAuthorizeCopyDocu /// Authorize copy request parameters. /// The cancellation token to use. /// is null. - public Response DocumentAnalysisAuthorizeCopyDocumentModel(AuthorizeCopyRequest authorizeCopyRequest, CancellationToken cancellationToken = default) + public Response AuthorizeCopyDocumentModel(AuthorizeCopyRequest authorizeCopyRequest, CancellationToken cancellationToken = default) { if (authorizeCopyRequest == null) { throw new ArgumentNullException(nameof(authorizeCopyRequest)); } - using var message = CreateDocumentAnalysisAuthorizeCopyDocumentModelRequest(authorizeCopyRequest); + using var message = CreateAuthorizeCopyDocumentModelRequest(authorizeCopyRequest); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -500,7 +500,7 @@ public Response DocumentAnalysisAuthorizeCopyDocumentModel(Au } } - internal HttpMessage CreateDocumentAnalysisCopyDocumentModelToRequest(string modelId, CopyAuthorization copyToRequest) + internal HttpMessage CreateCopyDocumentModelToRequest(string modelId, CopyAuthorization copyToRequest) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -526,7 +526,7 @@ internal HttpMessage CreateDocumentAnalysisCopyDocumentModelToRequest(string mod /// Copy to request parameters. /// The cancellation token to use. /// or is null. - public async Task> DocumentAnalysisCopyDocumentModelToAsync(string modelId, CopyAuthorization copyToRequest, CancellationToken cancellationToken = default) + public async Task> CopyDocumentModelToAsync(string modelId, CopyAuthorization copyToRequest, CancellationToken cancellationToken = default) { if (modelId == null) { @@ -537,9 +537,9 @@ public async Task Copy to request parameters. /// The cancellation token to use. /// or is null. - public ResponseWithHeaders DocumentAnalysisCopyDocumentModelTo(string modelId, CopyAuthorization copyToRequest, CancellationToken cancellationToken = default) + public ResponseWithHeaders CopyDocumentModelTo(string modelId, CopyAuthorization copyToRequest, CancellationToken cancellationToken = default) { if (modelId == null) { @@ -565,9 +565,9 @@ public ResponseWithHeaders Lists all operations. /// The cancellation token to use. - public async Task> DocumentAnalysisGetOperationsAsync(CancellationToken cancellationToken = default) + public async Task> GetOperationsAsync(CancellationToken cancellationToken = default) { - using var message = CreateDocumentAnalysisGetOperationsRequest(); + using var message = CreateGetOperationsRequest(); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -614,9 +614,9 @@ public async Task> DocumentAnalysisGetOperations /// Lists all operations. /// The cancellation token to use. - public Response DocumentAnalysisGetOperations(CancellationToken cancellationToken = default) + public Response GetOperations(CancellationToken cancellationToken = default) { - using var message = CreateDocumentAnalysisGetOperationsRequest(); + using var message = CreateGetOperationsRequest(); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -632,7 +632,7 @@ public Response DocumentAnalysisGetOperations(Cancellatio } } - internal HttpMessage CreateDocumentAnalysisGetOperationRequest(string operationId) + internal HttpMessage CreateGetOperationRequest(string operationId) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -652,14 +652,14 @@ internal HttpMessage CreateDocumentAnalysisGetOperationRequest(string operationI /// Unique operation ID. /// The cancellation token to use. /// is null. - public async Task> DocumentAnalysisGetOperationAsync(string operationId, CancellationToken cancellationToken = default) + public async Task> GetOperationAsync(string operationId, CancellationToken cancellationToken = default) { if (operationId == null) { throw new ArgumentNullException(nameof(operationId)); } - using var message = CreateDocumentAnalysisGetOperationRequest(operationId); + using var message = CreateGetOperationRequest(operationId); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -679,14 +679,14 @@ public async Task> DocumentAnalysisGetOperationAsync(st /// Unique operation ID. /// The cancellation token to use. /// is null. - public Response DocumentAnalysisGetOperation(string operationId, CancellationToken cancellationToken = default) + public Response GetOperation(string operationId, CancellationToken cancellationToken = default) { if (operationId == null) { throw new ArgumentNullException(nameof(operationId)); } - using var message = CreateDocumentAnalysisGetOperationRequest(operationId); + using var message = CreateGetOperationRequest(operationId); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -702,7 +702,7 @@ public Response DocumentAnalysisGetOperation(string operationId, } } - internal HttpMessage CreateDocumentAnalysisGetModelsRequest() + internal HttpMessage CreateGetModelsRequest() { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -719,9 +719,9 @@ internal HttpMessage CreateDocumentAnalysisGetModelsRequest() /// List all models. /// The cancellation token to use. - public async Task> DocumentAnalysisGetModelsAsync(CancellationToken cancellationToken = default) + public async Task> GetModelsAsync(CancellationToken cancellationToken = default) { - using var message = CreateDocumentAnalysisGetModelsRequest(); + using var message = CreateGetModelsRequest(); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -739,9 +739,9 @@ public async Task> DocumentAnalysisGetModelsAsync(Ca /// List all models. /// The cancellation token to use. - public Response DocumentAnalysisGetModels(CancellationToken cancellationToken = default) + public Response GetModels(CancellationToken cancellationToken = default) { - using var message = CreateDocumentAnalysisGetModelsRequest(); + using var message = CreateGetModelsRequest(); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -757,7 +757,7 @@ public Response DocumentAnalysisGetModels(CancellationToken c } } - internal HttpMessage CreateDocumentAnalysisGetModelRequest(string modelId) + internal HttpMessage CreateGetModelRequest(string modelId) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -777,14 +777,14 @@ internal HttpMessage CreateDocumentAnalysisGetModelRequest(string modelId) /// Unique model name. /// The cancellation token to use. /// is null. - public async Task> DocumentAnalysisGetModelAsync(string modelId, CancellationToken cancellationToken = default) + public async Task> GetModelAsync(string modelId, CancellationToken cancellationToken = default) { if (modelId == null) { throw new ArgumentNullException(nameof(modelId)); } - using var message = CreateDocumentAnalysisGetModelRequest(modelId); + using var message = CreateGetModelRequest(modelId); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -804,14 +804,14 @@ public async Task> DocumentAnalysisGetModelAsync(string /// Unique model name. /// The cancellation token to use. /// is null. - public Response DocumentAnalysisGetModel(string modelId, CancellationToken cancellationToken = default) + public Response GetModel(string modelId, CancellationToken cancellationToken = default) { if (modelId == null) { throw new ArgumentNullException(nameof(modelId)); } - using var message = CreateDocumentAnalysisGetModelRequest(modelId); + using var message = CreateGetModelRequest(modelId); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -827,7 +827,7 @@ public Response DocumentAnalysisGetModel(string modelId, Cancella } } - internal HttpMessage CreateDocumentAnalysisDeleteModelRequest(string modelId) + internal HttpMessage CreateDeleteModelRequest(string modelId) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -847,14 +847,14 @@ internal HttpMessage CreateDocumentAnalysisDeleteModelRequest(string modelId) /// Unique model name. /// The cancellation token to use. /// is null. - public async Task DocumentAnalysisDeleteModelAsync(string modelId, CancellationToken cancellationToken = default) + public async Task DeleteModelAsync(string modelId, CancellationToken cancellationToken = default) { if (modelId == null) { throw new ArgumentNullException(nameof(modelId)); } - using var message = CreateDocumentAnalysisDeleteModelRequest(modelId); + using var message = CreateDeleteModelRequest(modelId); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -869,14 +869,14 @@ public async Task DocumentAnalysisDeleteModelAsync(string modelId, Can /// Unique model name. /// The cancellation token to use. /// is null. - public Response DocumentAnalysisDeleteModel(string modelId, CancellationToken cancellationToken = default) + public Response DeleteModel(string modelId, CancellationToken cancellationToken = default) { if (modelId == null) { throw new ArgumentNullException(nameof(modelId)); } - using var message = CreateDocumentAnalysisDeleteModelRequest(modelId); + using var message = CreateDeleteModelRequest(modelId); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -887,7 +887,7 @@ public Response DocumentAnalysisDeleteModel(string modelId, CancellationToken ca } } - internal HttpMessage CreateDocumentAnalysisGetInfoRequest() + internal HttpMessage CreateGetInfoRequest() { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -904,9 +904,9 @@ internal HttpMessage CreateDocumentAnalysisGetInfoRequest() /// Return basic info about the current resource. /// The cancellation token to use. - public async Task> DocumentAnalysisGetInfoAsync(CancellationToken cancellationToken = default) + public async Task> GetInfoAsync(CancellationToken cancellationToken = default) { - using var message = CreateDocumentAnalysisGetInfoRequest(); + using var message = CreateGetInfoRequest(); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -924,9 +924,9 @@ public async Task> DocumentAnalysisGetInfoAsync(Cancel /// Return basic info about the current resource. /// The cancellation token to use. - public Response DocumentAnalysisGetInfo(CancellationToken cancellationToken = default) + public Response GetInfo(CancellationToken cancellationToken = default) { - using var message = CreateDocumentAnalysisGetInfoRequest(); + using var message = CreateGetInfoRequest(); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -942,7 +942,7 @@ public Response DocumentAnalysisGetInfo(CancellationToken cance } } - internal HttpMessage CreateDocumentAnalysisGetOperationsNextPageRequest(string nextLink) + internal HttpMessage CreateGetOperationsNextPageRequest(string nextLink) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -960,14 +960,14 @@ internal HttpMessage CreateDocumentAnalysisGetOperationsNextPageRequest(string n /// The URL to the next page of results. /// The cancellation token to use. /// is null. - public async Task> DocumentAnalysisGetOperationsNextPageAsync(string nextLink, CancellationToken cancellationToken = default) + public async Task> GetOperationsNextPageAsync(string nextLink, CancellationToken cancellationToken = default) { if (nextLink == null) { throw new ArgumentNullException(nameof(nextLink)); } - using var message = CreateDocumentAnalysisGetOperationsNextPageRequest(nextLink); + using var message = CreateGetOperationsNextPageRequest(nextLink); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -987,14 +987,14 @@ public async Task> DocumentAnalysisGetOperations /// The URL to the next page of results. /// The cancellation token to use. /// is null. - public Response DocumentAnalysisGetOperationsNextPage(string nextLink, CancellationToken cancellationToken = default) + public Response GetOperationsNextPage(string nextLink, CancellationToken cancellationToken = default) { if (nextLink == null) { throw new ArgumentNullException(nameof(nextLink)); } - using var message = CreateDocumentAnalysisGetOperationsNextPageRequest(nextLink); + using var message = CreateGetOperationsNextPageRequest(nextLink); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -1010,7 +1010,7 @@ public Response DocumentAnalysisGetOperationsNextPage(str } } - internal HttpMessage CreateDocumentAnalysisGetModelsNextPageRequest(string nextLink) + internal HttpMessage CreateGetModelsNextPageRequest(string nextLink) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -1028,14 +1028,14 @@ internal HttpMessage CreateDocumentAnalysisGetModelsNextPageRequest(string nextL /// The URL to the next page of results. /// The cancellation token to use. /// is null. - public async Task> DocumentAnalysisGetModelsNextPageAsync(string nextLink, CancellationToken cancellationToken = default) + public async Task> GetModelsNextPageAsync(string nextLink, CancellationToken cancellationToken = default) { if (nextLink == null) { throw new ArgumentNullException(nameof(nextLink)); } - using var message = CreateDocumentAnalysisGetModelsNextPageRequest(nextLink); + using var message = CreateGetModelsNextPageRequest(nextLink); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -1055,14 +1055,14 @@ public async Task> DocumentAnalysisGetModelsNextPage /// The URL to the next page of results. /// The cancellation token to use. /// is null. - public Response DocumentAnalysisGetModelsNextPage(string nextLink, CancellationToken cancellationToken = default) + public Response GetModelsNextPage(string nextLink, CancellationToken cancellationToken = default) { if (nextLink == null) { throw new ArgumentNullException(nameof(nextLink)); } - using var message = CreateDocumentAnalysisGetModelsNextPageRequest(nextLink); + using var message = CreateGetModelsNextPageRequest(nextLink); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { From cfa868ab246a0b4f5d4d800ebbdd77f89a3e4db7 Mon Sep 17 00:00:00 2001 From: Alexander Sher Date: Tue, 7 Dec 2021 18:57:57 -0600 Subject: [PATCH 2/5] Build fix --- .../src/AnalyzeDocumentOperation.cs | 4 +- .../src/BuildModelOperation.cs | 4 +- .../src/CopyModelOperation.cs | 4 +- .../src/DocumentAnalysisClient.cs | 8 ++-- .../src/DocumentModelAdministrationClient.cs | 48 +++++++++---------- 5 files changed, 34 insertions(+), 34 deletions(-) diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/AnalyzeDocumentOperation.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/AnalyzeDocumentOperation.cs index 43ef86a6bc2b4..879c6d165feee 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/AnalyzeDocumentOperation.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/AnalyzeDocumentOperation.cs @@ -185,8 +185,8 @@ public override async ValueTask UpdateStatusAsync(CancellationToken ca async ValueTask> IOperation.UpdateStateAsync(bool async, CancellationToken cancellationToken) { Response response = async - ? await _serviceClient.DocumentAnalysisGetAnalyzeDocumentResultAsync(_modelId, _resultId, cancellationToken).ConfigureAwait(false) - : _serviceClient.DocumentAnalysisGetAnalyzeDocumentResult(_modelId, _resultId, cancellationToken); + ? await _serviceClient.GetAnalyzeDocumentResultAsync(_modelId, _resultId, cancellationToken).ConfigureAwait(false) + : _serviceClient.GetAnalyzeDocumentResult(_modelId, _resultId, cancellationToken); AnalyzeResultOperationStatus status = response.Value.Status; Response rawResponse = response.GetRawResponse(); diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/BuildModelOperation.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/BuildModelOperation.cs index 9101e2a5b625e..89b1c919cbb98 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/BuildModelOperation.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/BuildModelOperation.cs @@ -155,8 +155,8 @@ public override async ValueTask UpdateStatusAsync(CancellationToken ca async ValueTask> IOperation.UpdateStateAsync(bool async, CancellationToken cancellationToken) { Response response = async - ? await _serviceClient.DocumentAnalysisGetOperationAsync(Id, cancellationToken).ConfigureAwait(false) - : _serviceClient.DocumentAnalysisGetOperation(Id, cancellationToken); + ? await _serviceClient.GetOperationAsync(Id, cancellationToken).ConfigureAwait(false) + : _serviceClient.GetOperation(Id, cancellationToken); DocumentOperationStatus status = response.Value.Status; Response rawResponse = response.GetRawResponse(); diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/CopyModelOperation.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/CopyModelOperation.cs index a0f6814d951dc..fceb14c4b57a4 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/CopyModelOperation.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/CopyModelOperation.cs @@ -160,8 +160,8 @@ public override async ValueTask UpdateStatusAsync(CancellationToken ca async ValueTask> IOperation.UpdateStateAsync(bool async, CancellationToken cancellationToken) { Response response = async - ? await _serviceClient.DocumentAnalysisGetOperationAsync(Id, cancellationToken).ConfigureAwait(false) - : _serviceClient.DocumentAnalysisGetOperation(Id, cancellationToken); + ? await _serviceClient.GetOperationAsync(Id, cancellationToken).ConfigureAwait(false) + : _serviceClient.GetOperation(Id, cancellationToken); DocumentOperationStatus status = response.Value.Status; Response rawResponse = response.GetRawResponse(); diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/DocumentAnalysisClient.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/DocumentAnalysisClient.cs index 3cc125dfed6d0..cc7f0c6cdc2ec 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/DocumentAnalysisClient.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/DocumentAnalysisClient.cs @@ -141,7 +141,7 @@ public virtual async Task StartAnalyzeDocumentAsync(st try { - var response = await ServiceClient.DocumentAnalysisAnalyzeDocumentAsync( + var response = await ServiceClient.AnalyzeDocumentAsync( modelId, ContentType1.ApplicationOctetStream, analyzeDocumentOptions.Pages.Count == 0 ? null : string.Join(",", analyzeDocumentOptions.Pages), @@ -191,7 +191,7 @@ public virtual AnalyzeDocumentOperation StartAnalyzeDocument(string modelId, Str try { - var response = ServiceClient.DocumentAnalysisAnalyzeDocument( + var response = ServiceClient.AnalyzeDocument( modelId, ContentType1.ApplicationOctetStream, analyzeDocumentOptions.Pages.Count == 0 ? null : string.Join(",", analyzeDocumentOptions.Pages), @@ -242,7 +242,7 @@ public virtual async Task StartAnalyzeDocumentFromUriA try { var request = new AnalyzeDocumentRequest() { UrlSource = documentUri.AbsoluteUri }; - var response = await ServiceClient.DocumentAnalysisAnalyzeDocumentAsync( + var response = await ServiceClient.AnalyzeDocumentAsync( modelId, analyzeDocumentOptions.Pages.Count == 0 ? null : string.Join(",", analyzeDocumentOptions.Pages), analyzeDocumentOptions.Locale, @@ -292,7 +292,7 @@ public virtual AnalyzeDocumentOperation StartAnalyzeDocumentFromUri(string model try { var request = new AnalyzeDocumentRequest() { UrlSource = documentUri.AbsoluteUri }; - var response = ServiceClient.DocumentAnalysisAnalyzeDocument( + var response = ServiceClient.AnalyzeDocument( modelId, analyzeDocumentOptions.Pages.Count == 0 ? null : string.Join(",", analyzeDocumentOptions.Pages), analyzeDocumentOptions.Locale, diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/DocumentModelAdministrationClient.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/DocumentModelAdministrationClient.cs index c0e92d464892d..d7c4ea5ae6e86 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/DocumentModelAdministrationClient.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/DocumentModelAdministrationClient.cs @@ -147,7 +147,7 @@ public virtual BuildModelOperation StartBuildModel(Uri trainingFilesUri, string Description = buildModelOptions.ModelDescription }; - var response = ServiceClient.DocumentAnalysisBuildDocumentModel(request, cancellationToken); + var response = ServiceClient.BuildDocumentModel(request, cancellationToken); return new BuildModelOperation(response.Headers.OperationLocation, response.GetRawResponse(), ServiceClient, Diagnostics); } catch (Exception e) @@ -193,7 +193,7 @@ public virtual async Task StartBuildModelAsync(Uri training Description = buildModelOptions.ModelDescription }; - var response = await ServiceClient.DocumentAnalysisBuildDocumentModelAsync(request, cancellationToken).ConfigureAwait(false); + var response = await ServiceClient.BuildDocumentModelAsync(request, cancellationToken).ConfigureAwait(false); return new BuildModelOperation(response.Headers.OperationLocation, response.GetRawResponse(), ServiceClient, Diagnostics); } catch (Exception e) @@ -222,7 +222,7 @@ public virtual Response GetModel(string modelId, CancellationToke try { - Response response = ServiceClient.DocumentAnalysisGetModel(modelId, cancellationToken); + Response response = ServiceClient.GetModel(modelId, cancellationToken); return Response.FromValue(response.Value, response.GetRawResponse()); } catch (Exception e) @@ -248,7 +248,7 @@ public virtual async Task> GetModelAsync(string modelId, try { - Response response = await ServiceClient.DocumentAnalysisGetModelAsync(modelId, cancellationToken).ConfigureAwait(false); + Response response = await ServiceClient.GetModelAsync(modelId, cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value, response.GetRawResponse()); } catch (Exception e) @@ -273,7 +273,7 @@ public virtual Response DeleteModel(string modelId, CancellationToken cancellati try { - return ServiceClient.DocumentAnalysisDeleteModel(modelId, cancellationToken); + return ServiceClient.DeleteModel(modelId, cancellationToken); } catch (Exception e) { @@ -297,7 +297,7 @@ public virtual async Task DeleteModelAsync(string modelId, Cancellatio try { - return await ServiceClient.DocumentAnalysisDeleteModelAsync(modelId, cancellationToken).ConfigureAwait(false); + return await ServiceClient.DeleteModelAsync(modelId, cancellationToken).ConfigureAwait(false); } catch (Exception e) { @@ -320,7 +320,7 @@ Page FirstPageFunc(int? pageSizeHint) try { - Response response = ServiceClient.DocumentAnalysisGetModels(cancellationToken); + Response response = ServiceClient.GetModels(cancellationToken); return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) @@ -337,7 +337,7 @@ Page NextPageFunc(string nextLink, int? pageSizeHint) try { - Response response = ServiceClient.DocumentAnalysisGetModelsNextPage(nextLink, cancellationToken); + Response response = ServiceClient.GetModelsNextPage(nextLink, cancellationToken); return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) @@ -364,7 +364,7 @@ async Task> FirstPageFunc(int? pageSizeHint) try { - Response response = await ServiceClient.DocumentAnalysisGetModelsAsync(cancellationToken).ConfigureAwait(false); + Response response = await ServiceClient.GetModelsAsync(cancellationToken).ConfigureAwait(false); return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) @@ -381,7 +381,7 @@ async Task> NextPageFunc(string nextLink, int? pageSizeH try { - Response response = await ServiceClient.DocumentAnalysisGetModelsNextPageAsync(nextLink, cancellationToken).ConfigureAwait(false); + Response response = await ServiceClient.GetModelsNextPageAsync(nextLink, cancellationToken).ConfigureAwait(false); return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) @@ -407,7 +407,7 @@ public virtual Response GetAccountProperties(CancellationToke try { - Response response = ServiceClient.DocumentAnalysisGetInfo(cancellationToken); + Response response = ServiceClient.GetInfo(cancellationToken); return Response.FromValue(response.Value.CustomDocumentModels, response.GetRawResponse()); } catch (Exception e) @@ -430,7 +430,7 @@ public virtual async Task> GetAccountPropertiesAsync try { - Response response = await ServiceClient.DocumentAnalysisGetInfoAsync(cancellationToken).ConfigureAwait(false); + Response response = await ServiceClient.GetInfoAsync(cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value.CustomDocumentModels, response.GetRawResponse()); } catch (Exception e) @@ -456,7 +456,7 @@ public virtual Response GetOperation(string operationId, Cancell try { - var response = ServiceClient.DocumentAnalysisGetOperation(operationId, cancellationToken); + var response = ServiceClient.GetOperation(operationId, cancellationToken); return Response.FromValue(response.Value, response.GetRawResponse()); } catch (Exception e) @@ -482,7 +482,7 @@ public virtual async Task> GetOperationAsync(string ope try { - var response = await ServiceClient.DocumentAnalysisGetOperationAsync(operationId, cancellationToken).ConfigureAwait(false); + var response = await ServiceClient.GetOperationAsync(operationId, cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value, response.GetRawResponse()); } catch (Exception e) @@ -506,7 +506,7 @@ Page FirstPageFunc(int? pageSizeHint) try { - var response = ServiceClient.DocumentAnalysisGetOperations(cancellationToken); + var response = ServiceClient.GetOperations(cancellationToken); return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) @@ -523,7 +523,7 @@ Page NextPageFunc(string nextLink, int? pageSizeHint) try { - var response = ServiceClient.DocumentAnalysisGetOperationsNextPage(nextLink, cancellationToken); + var response = ServiceClient.GetOperationsNextPage(nextLink, cancellationToken); return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) @@ -550,7 +550,7 @@ async Task> FirstPageFunc(int? pageSizeHint) try { - var response = await ServiceClient.DocumentAnalysisGetOperationsAsync(cancellationToken).ConfigureAwait(false); + var response = await ServiceClient.GetOperationsAsync(cancellationToken).ConfigureAwait(false); return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) @@ -567,7 +567,7 @@ async Task> NextPageFunc(string nextLink, int? pageSize try { - var response = await ServiceClient.DocumentAnalysisGetOperationsNextPageAsync(nextLink, cancellationToken).ConfigureAwait(false); + var response = await ServiceClient.GetOperationsNextPageAsync(nextLink, cancellationToken).ConfigureAwait(false); return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) @@ -602,7 +602,7 @@ public virtual CopyModelOperation StartCopyModel(string modelId, CopyAuthorizati try { - var response = ServiceClient.DocumentAnalysisCopyDocumentModelTo(modelId, target, cancellationToken); + var response = ServiceClient.CopyDocumentModelTo(modelId, target, cancellationToken); return new CopyModelOperation(ServiceClient, Diagnostics, response.Headers.OperationLocation, response.GetRawResponse()); } catch (Exception e) @@ -631,7 +631,7 @@ public virtual async Task StartCopyModelAsync(string modelId try { - var response = await ServiceClient.DocumentAnalysisCopyDocumentModelToAsync(modelId, target, cancellationToken).ConfigureAwait(false); + var response = await ServiceClient.CopyDocumentModelToAsync(modelId, target, cancellationToken).ConfigureAwait(false); return new CopyModelOperation(ServiceClient, Diagnostics, response.Headers.OperationLocation, response.GetRawResponse()); } catch (Exception e) @@ -663,7 +663,7 @@ public virtual Response GetCopyAuthorization(string modelId = try { - var response = ServiceClient.DocumentAnalysisAuthorizeCopyDocumentModel(request, cancellationToken); + var response = ServiceClient.AuthorizeCopyDocumentModel(request, cancellationToken); return Response.FromValue(response.Value, response.GetRawResponse()); } catch (Exception e) @@ -695,7 +695,7 @@ public virtual async Task> GetCopyAuthorizationAsync try { - var response = await ServiceClient.DocumentAnalysisAuthorizeCopyDocumentModelAsync(request, cancellationToken).ConfigureAwait(false); + var response = await ServiceClient.AuthorizeCopyDocumentModelAsync(request, cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value, response.GetRawResponse()); } catch (Exception e) @@ -738,7 +738,7 @@ public virtual BuildModelOperation StartCreateComposedModel(IEnumerable Description = modelDescription }; - var response = ServiceClient.DocumentAnalysisComposeDocumentModel(composeRequest, cancellationToken); + var response = ServiceClient.ComposeDocumentModel(composeRequest, cancellationToken); return new BuildModelOperation(response.Headers.OperationLocation, response.GetRawResponse(), ServiceClient, Diagnostics); } catch (Exception e) @@ -777,7 +777,7 @@ public virtual async Task StartCreateComposedModelAsync(IEn Description = modelDescription }; - var response = await ServiceClient.DocumentAnalysisComposeDocumentModelAsync(composeRequest, cancellationToken).ConfigureAwait(false); + var response = await ServiceClient.ComposeDocumentModelAsync(composeRequest, cancellationToken).ConfigureAwait(false); return new BuildModelOperation(response.Headers.OperationLocation, response.GetRawResponse(), ServiceClient, Diagnostics); } catch (Exception e) From dc732b70bb4a07a0b50c4ba03a281617c6ed656b Mon Sep 17 00:00:00 2001 From: Alexander Sher Date: Wed, 8 Dec 2021 23:31:11 -0600 Subject: [PATCH 3/5] Update package version --- eng/Packages.Data.props | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/Packages.Data.props b/eng/Packages.Data.props index 0c864f0df0efb..9ba582bdf33a4 100644 --- a/eng/Packages.Data.props +++ b/eng/Packages.Data.props @@ -146,7 +146,7 @@ All should have PrivateAssets="All" set so they don't become package dependencies --> - + From a50f0a475b7151bde67c412f103cd776a4b1dbef Mon Sep 17 00:00:00 2001 From: Alexander Sher Date: Thu, 9 Dec 2021 06:34:50 -0600 Subject: [PATCH 4/5] Build fix --- .../src/Generated/Extensions/SubscriptionExtensions.cs | 2 +- .../src/Generated/DeploymentCollection.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Extensions/SubscriptionExtensions.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Extensions/SubscriptionExtensions.cs index f98defa60beb3..d29104ced0418 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Extensions/SubscriptionExtensions.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Extensions/SubscriptionExtensions.cs @@ -29,7 +29,7 @@ public static partial class SubscriptionExtensions /// Returns a object. public static ApplicationGatewayAvailableSslOptions GetApplicationGatewayAvailableSslOptions(this Subscription subscription) { - return new ApplicationGatewayAvailableSslOptions(subscription, subscription.Id + "/providers/Microsoft.Network/applicationGatewayAvailableSslOptions/default"); + return new ApplicationGatewayAvailableSslOptions(subscription, new ResourceIdentifier(subscription.Id + "/providers/Microsoft.Network/applicationGatewayAvailableSslOptions/default")); } #endregion diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/DeploymentCollection.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/DeploymentCollection.cs index 457fe32804682..29389f7a600b2 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/DeploymentCollection.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/DeploymentCollection.cs @@ -41,7 +41,7 @@ internal DeploymentCollection(ArmResource parent) : base(parent) } /// Gets the valid resource type for this object. - protected override ResourceType ValidResourceType => ResourceIdentifier.RootResourceIdentifier.ResourceType; + protected override ResourceType ValidResourceType => ResourceIdentifier.Root.ResourceType; /// Verify that the input resource Id is a valid collection for this type. /// The input resource Id to check. From bc09414ce201356e478e97b5032bf05ff84fae78 Mon Sep 17 00:00:00 2001 From: Alexander Sher Date: Thu, 9 Dec 2021 10:08:32 -0600 Subject: [PATCH 5/5] Build fix --- eng/Packages.Data.props | 2 +- .../src/Generated/Extensions/SubscriptionExtensions.cs | 2 +- .../src/Generated/DeploymentCollection.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/eng/Packages.Data.props b/eng/Packages.Data.props index deaf1136e1cbf..e243f852ce787 100644 --- a/eng/Packages.Data.props +++ b/eng/Packages.Data.props @@ -146,7 +146,7 @@ All should have PrivateAssets="All" set so they don't become package dependencies --> - + diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Extensions/SubscriptionExtensions.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Extensions/SubscriptionExtensions.cs index d29104ced0418..f98defa60beb3 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Extensions/SubscriptionExtensions.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Extensions/SubscriptionExtensions.cs @@ -29,7 +29,7 @@ public static partial class SubscriptionExtensions /// Returns a object. public static ApplicationGatewayAvailableSslOptions GetApplicationGatewayAvailableSslOptions(this Subscription subscription) { - return new ApplicationGatewayAvailableSslOptions(subscription, new ResourceIdentifier(subscription.Id + "/providers/Microsoft.Network/applicationGatewayAvailableSslOptions/default")); + return new ApplicationGatewayAvailableSslOptions(subscription, subscription.Id + "/providers/Microsoft.Network/applicationGatewayAvailableSslOptions/default"); } #endregion diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/DeploymentCollection.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/DeploymentCollection.cs index 29389f7a600b2..457fe32804682 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/DeploymentCollection.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/DeploymentCollection.cs @@ -41,7 +41,7 @@ internal DeploymentCollection(ArmResource parent) : base(parent) } /// Gets the valid resource type for this object. - protected override ResourceType ValidResourceType => ResourceIdentifier.Root.ResourceType; + protected override ResourceType ValidResourceType => ResourceIdentifier.RootResourceIdentifier.ResourceType; /// Verify that the input resource Id is a valid collection for this type. /// The input resource Id to check.