Skip to content

Commit 03af557

Browse files
authored
Update TA autorest.md to correct swaggers (Azure#30327)
The reference commits were incorrect.
1 parent a9eaa7b commit 03af557

7 files changed

+21
-21
lines changed

sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/autorest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Run `dotnet build /t:GenerateCode` to generate code.
99

1010
``` yaml
1111
input-file:
12-
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/0de25e2a040e1257b3a90faea868ad93c3435e48/specification/cognitiveservices/data-plane/TextAnalytics/stable/v3.1/TextAnalytics.json
12+
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/6f0c7d58c0a923917c2b3467ee756f21dbd2f8e2/specification/cognitiveservices/data-plane/TextAnalytics/stable/v3.1/TextAnalytics.json
1313
generation1-convenience-client: true
1414
namespace: Azure.AI.TextAnalytics.Legacy
1515
title: TextAnalyticsClient
Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/MicrosoftCognitiveLanguageServiceRestClient.cs renamed to sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/MicrosoftCognitiveLanguageServiceTextAnalysisRestClient.cs

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/textanalytics/Azure.AI.TextAnalytics/src/Internal/MicrosoftCognitiveLanguageServiceRestClient.cs renamed to sdk/textanalytics/Azure.AI.TextAnalytics/src/Internal/MicrosoftCognitiveLanguageServiceTextAnalysisRestClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
namespace Azure.AI.TextAnalytics
1212
{
13-
internal partial class MicrosoftCognitiveLanguageServiceRestClient
13+
internal partial class MicrosoftCognitiveLanguageServiceTextAnalysisRestClient
1414
{
1515
internal HttpMessage CreateAnalyzeBatchNextPageRequest(string nextLink)
1616
{

sdk/textanalytics/Azure.AI.TextAnalytics/src/ServiceClients/LanguageServiceClient.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ internal class LanguageServiceClient : ServiceClient
2626
private static readonly AnalyzeSentimentOptions s_analyzeSentimentOptions = new();
2727
private static readonly AnalyzeHealthcareEntitiesOptions s_analyzeHealthcareEntitiesOptions = new();
2828

29-
private readonly MicrosoftCognitiveLanguageServiceRestClient _languageRestClient;
29+
private readonly MicrosoftCognitiveLanguageServiceTextAnalysisRestClient _languageRestClient;
3030
private readonly TextAnalyticsClientOptions _options;
3131
private readonly ClientDiagnostics _clientDiagnostics;
3232
private readonly Uri _baseUri;
@@ -47,7 +47,7 @@ public LanguageServiceClient(Uri endpoint, TokenCredential credential, string au
4747
_options = options;
4848

4949
var pipeline = HttpPipelineBuilder.Build(options, new BearerTokenAuthenticationPolicy(credential, authorizationScope));
50-
_languageRestClient = new MicrosoftCognitiveLanguageServiceRestClient(_clientDiagnostics, pipeline, endpoint.AbsoluteUri, serviceVersion);
50+
_languageRestClient = new MicrosoftCognitiveLanguageServiceTextAnalysisRestClient(_clientDiagnostics, pipeline, endpoint.AbsoluteUri, serviceVersion);
5151
}
5252

5353
public LanguageServiceClient(Uri endpoint, AzureKeyCredential credential, string serviceVersion, TextAnalyticsClientOptions options)
@@ -63,7 +63,7 @@ public LanguageServiceClient(Uri endpoint, AzureKeyCredential credential, string
6363
_options = options;
6464

6565
var pipeline = HttpPipelineBuilder.Build(options, new AzureKeyCredentialPolicy(credential, Constants.AuthorizationHeader));
66-
_languageRestClient = new MicrosoftCognitiveLanguageServiceRestClient(_clientDiagnostics, pipeline, endpoint.AbsoluteUri, serviceVersion);
66+
_languageRestClient = new MicrosoftCognitiveLanguageServiceTextAnalysisRestClient(_clientDiagnostics, pipeline, endpoint.AbsoluteUri, serviceVersion);
6767
}
6868

6969
#region Detect Language

sdk/textanalytics/Azure.AI.TextAnalytics/src/autorest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Run `dotnet build /t:GenerateCode` to generate code.
77
88
``` yaml
99
input-file:
10-
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/e59b6449e6613c0e4ecb73daacacdff320d65f67/specification/cognitiveservices/data-plane/Language/stable/2022-05-01/textanalytics.json
10+
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/f705a46c74af9e4c096556e914d9a45c01c47b5e/specification/cognitiveservices/data-plane/Language/stable/2022-05-01/analyzetext.json
1111
generation1-convenience-client: true
1212
```
1313

0 commit comments

Comments
 (0)