Skip to content

Commit 476e7e8

Browse files
authored
[TA] Enable multiversion (Azure#21353)
1 parent 632b4d8 commit 476e7e8

19 files changed

+205
-43
lines changed

sdk/textanalytics/Azure.AI.TextAnalytics/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## 5.1.0-beta.8 (Unreleased)
44
### New features
5+
- Added support for service version `3.0`. This can be specified in the `TextAnalyticsClientOptions` object under the `ServiceVersion` enum. By default the SDK targets latest supported service version.
56
- Added value `None` to enum `PiiEntityDomainType` to allow user to specify no domain.
67

78
### Breaking changes

sdk/textanalytics/Azure.AI.TextAnalytics/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,15 @@ Install the Azure Text Analytics client library for .NET with [NuGet][nuget]:
1919
```PowerShell
2020
dotnet add package Azure.AI.TextAnalytics
2121
```
22+
> Note: This version of the client library defaults to the `v3.1-preview.5` version of the service.
23+
24+
This table shows the relationship between SDK versions and supported API versions of the service:
25+
26+
|SDK version|Supported API version of service
27+
|-|- |
28+
|5.1.0-beta.7 (latest Beta) | 3.0, 3.1-preview.5
29+
|5.0.0 (latest GA) | 3.0
30+
|1.0.0, 1.0.1 | 3.0
2231

2332
### Prerequisites
2433
* An [Azure subscription][azure_sub].

sdk/textanalytics/Azure.AI.TextAnalytics/src/AnalyzeSentimentOptions.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ internal AnalyzeSentimentOptions(TextAnalyticsRequestOptions options)
3232
/// will contain the result of this analysis.
3333
/// <para>Only available for service version v3.1-preview and up.</para>
3434
/// </summary>
35+
/// <remarks>
36+
/// This property only has value for <see cref="TextAnalyticsClientOptions.ServiceVersion.V3_1_Preview_5"/> and up.
37+
/// </remarks>
3538
public bool? IncludeOpinionMining { get; set; }
3639
}
3740
}

sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/TextAnalyticsRestClient.cs

Lines changed: 39 additions & 17 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/LinkedEntity.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,10 @@ internal LinkedEntity(string name, IEnumerable<LinkedEntityMatch> matches, strin
6262

6363
/// <summary> Bing Entity Search API unique identifier of the recognized entity.
6464
/// Use in conjunction with the Bing Entity Search API to fetch additional relevant information.
65-
/// This property is only available for service v3.1-preview and up.
6665
/// </summary>
66+
/// <remarks>
67+
/// This property only has value for <see cref="TextAnalyticsClientOptions.ServiceVersion.V3_1_Preview_5"/> and up.
68+
/// </remarks>
6769
[CodeGenMember("BingId")]
6870
public string BingEntitySearchApiId { get; }
6971
}

0 commit comments

Comments
 (0)