Skip to content

Commit

Permalink
[TA] Targets service version 3.1-preview.5 (#20994)
Browse files Browse the repository at this point in the history
* generation + build + tests + disable healthcare

* update public api with new version
  • Loading branch information
maririos authored May 12, 2021
1 parent d9b1026 commit fb1f8a2
Show file tree
Hide file tree
Showing 266 changed files with 12,862 additions and 54,682 deletions.
4 changes: 3 additions & 1 deletion sdk/textanalytics/Azure.AI.TextAnalytics/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# Release History

## 5.1.0-beta.7 (Unreleased)

### Breaking changes
- The client defaults to the latest supported service version, which currently is `3.1-preview.5`.
- Renamed type `TextElementsV8` to `TextElementV8` in model `StringIndexType`.

## 5.1.0-beta.6 (2021-04-06)
### New features
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ internal SentimentConfidenceScores() { }
private readonly object _dummy;
private readonly int _dummyPrimitive;
public StringIndexType(string value) { throw null; }
public static Azure.AI.TextAnalytics.StringIndexType TextElementsV8 { get { throw null; } }
public static Azure.AI.TextAnalytics.StringIndexType TextElementV8 { get { throw null; } }
public static Azure.AI.TextAnalytics.StringIndexType UnicodeCodePoint { get { throw null; } }
public static Azure.AI.TextAnalytics.StringIndexType Utf16CodeUnit { get { throw null; } }
public bool Equals(Azure.AI.TextAnalytics.StringIndexType other) { throw null; }
Expand Down Expand Up @@ -795,13 +795,13 @@ public TextAnalyticsClient(System.Uri endpoint, Azure.Core.TokenCredential crede
}
public partial class TextAnalyticsClientOptions : Azure.Core.ClientOptions
{
public TextAnalyticsClientOptions(Azure.AI.TextAnalytics.TextAnalyticsClientOptions.ServiceVersion version = Azure.AI.TextAnalytics.TextAnalyticsClientOptions.ServiceVersion.V3_1_Preview_4) { }
public TextAnalyticsClientOptions(Azure.AI.TextAnalytics.TextAnalyticsClientOptions.ServiceVersion version = Azure.AI.TextAnalytics.TextAnalyticsClientOptions.ServiceVersion.V3_1_Preview_5) { }
public string DefaultCountryHint { get { throw null; } set { } }
public string DefaultLanguage { get { throw null; } set { } }
public enum ServiceVersion
{
V3_0 = 1,
V3_1_Preview_4 = 2,
V3_1_Preview_5 = 2,
}
}
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ async Task<Page<AnalyzeBatchActionsResult>> NextPageFunc(string nextLink, int? p
//diagnostics scope?
try
{
Response<AnalyzeJobState> jobState = await _serviceClient.AnalyzeStatusNextPageAsync(nextLink, _showStats).ConfigureAwait(false);
Response<AnalyzeJobState> jobState = await _serviceClient.AnalyzeStatusNextPageAsync(RemoveExtraInformationFromNextLink(nextLink)).ConfigureAwait(false);
AnalyzeBatchActionsResult result = Transforms.ConvertToAnalyzeOperationResult(jobState.Value, _idToIndexMap);
return Page.FromValues(new List<AnalyzeBatchActionsResult>() { result }, jobState.Value.NextLink, jobState.GetRawResponse());
Expand Down Expand Up @@ -325,7 +325,7 @@ Page<AnalyzeBatchActionsResult> NextPageFunc(string nextLink, int? pageSizeHint)
//diagnostics scope?
try
{
Response<AnalyzeJobState> jobState = _serviceClient.AnalyzeStatusNextPage(nextLink, _showStats);
Response<AnalyzeJobState> jobState = _serviceClient.AnalyzeStatusNextPage(RemoveExtraInformationFromNextLink(nextLink));
AnalyzeBatchActionsResult result = Transforms.ConvertToAnalyzeOperationResult(jobState.Value, _idToIndexMap);
return Page.FromValues(new List<AnalyzeBatchActionsResult>() { result }, jobState.Value.NextLink, jobState.GetRawResponse());
Expand All @@ -344,5 +344,8 @@ private void ValidateOperationStatus()
if (!HasCompleted)
throw new InvalidOperationException("The operation has not completed yet.");
}

// Service bug https://github.com/Azure/azure-sdk-for-net/issues/20991
private static string RemoveExtraInformationFromNextLink(string nextlink) => nextlink.Split('/').Last();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ async Task<Page<AnalyzeHealthcareEntitiesResultCollection>> NextPageFunc(string
//diagnostics scope?
try
{
Response<HealthcareJobState> jobState = await _serviceClient.HealthStatusNextPageAsync(nextLink, _showStats).ConfigureAwait(false);
Response<HealthcareJobState> jobState = await _serviceClient.HealthStatusNextPageAsync(RemoveExtraInformationFromNextLink(nextLink)).ConfigureAwait(false);

AnalyzeHealthcareEntitiesResultCollection result = Transforms.ConvertToAnalyzeHealthcareEntitiesResultCollection(jobState.Value.Results, _idToIndexMap);
return Page.FromValues(new List<AnalyzeHealthcareEntitiesResultCollection>() { result }, jobState.Value.NextLink, jobState.GetRawResponse());
Expand Down Expand Up @@ -363,7 +363,7 @@ Page<AnalyzeHealthcareEntitiesResultCollection> NextPageFunc(string nextLink, in
//diagnostics scope?
try
{
Response<HealthcareJobState> jobState = _serviceClient.HealthStatusNextPage(nextLink, _showStats);
Response<HealthcareJobState> jobState = _serviceClient.HealthStatusNextPage(RemoveExtraInformationFromNextLink(nextLink));

AnalyzeHealthcareEntitiesResultCollection result = Transforms.ConvertToAnalyzeHealthcareEntitiesResultCollection(jobState.Value.Results, _idToIndexMap);
return Page.FromValues(new List<AnalyzeHealthcareEntitiesResultCollection>() { result }, jobState.Value.NextLink, jobState.GetRawResponse());
Expand All @@ -384,5 +384,8 @@ private void ValidateOperationStatus()
if (!HasValue)
throw _requestFailedException;
}

// Service bug https://github.com/Azure/azure-sdk-for-net/issues/20991
private static string RemoveExtraInformationFromNextLink(string nextlink) => nextlink.Split('/').Last();
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit fb1f8a2

Please sign in to comment.