Skip to content

Commit

Permalink
rename TextAnalyticsActionDetails to TextAnalyticsActionResult (#21207)
Browse files Browse the repository at this point in the history
  • Loading branch information
maririos authored May 19, 2021
1 parent 9322654 commit 4334368
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 19 deletions.
1 change: 1 addition & 0 deletions sdk/textanalytics/Azure.AI.TextAnalytics/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
- `RecognizePiiEntitiesOptions` changed to new type `RecognizePiiEntitiesActions`.
- `RecognizeLinkedEntitiesOptions` changed to new type `RecognizeLinkedEntitiesActions`.
- `AnalyzeSentimentOptions` changed to new type `AnalyzeSentimentActions`.
- Renamed type `TextAnalyticsActionDetails` to `TextAnalyticsActionResult`.

## 5.1.0-beta.7 (2021-05-18)
### New features
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public partial class AnalyzeSentimentAction : Azure.AI.TextAnalytics.AnalyzeSent
{
public AnalyzeSentimentAction() { }
}
public partial class AnalyzeSentimentActionResult : Azure.AI.TextAnalytics.TextAnalyticsActionDetails
public partial class AnalyzeSentimentActionResult : Azure.AI.TextAnalytics.TextAnalyticsActionResult
{
internal AnalyzeSentimentActionResult() { }
public Azure.AI.TextAnalytics.AnalyzeSentimentResultCollection Result { get { throw null; } }
Expand Down Expand Up @@ -226,7 +226,7 @@ public partial class ExtractKeyPhrasesAction : Azure.AI.TextAnalytics.ExtractKey
{
public ExtractKeyPhrasesAction() { }
}
public partial class ExtractKeyPhrasesActionResult : Azure.AI.TextAnalytics.TextAnalyticsActionDetails
public partial class ExtractKeyPhrasesActionResult : Azure.AI.TextAnalytics.TextAnalyticsActionResult
{
internal ExtractKeyPhrasesActionResult() { }
public Azure.AI.TextAnalytics.ExtractKeyPhrasesResultCollection Result { get { throw null; } }
Expand Down Expand Up @@ -570,7 +570,7 @@ public partial class RecognizeEntitiesAction : Azure.AI.TextAnalytics.RecognizeE
{
public RecognizeEntitiesAction() { }
}
public partial class RecognizeEntitiesActionResult : Azure.AI.TextAnalytics.TextAnalyticsActionDetails
public partial class RecognizeEntitiesActionResult : Azure.AI.TextAnalytics.TextAnalyticsActionResult
{
internal RecognizeEntitiesActionResult() { }
public Azure.AI.TextAnalytics.RecognizeEntitiesResultCollection Result { get { throw null; } }
Expand All @@ -594,7 +594,7 @@ public partial class RecognizeLinkedEntitiesAction : Azure.AI.TextAnalytics.Reco
{
public RecognizeLinkedEntitiesAction() { }
}
public partial class RecognizeLinkedEntitiesActionResult : Azure.AI.TextAnalytics.TextAnalyticsActionDetails
public partial class RecognizeLinkedEntitiesActionResult : Azure.AI.TextAnalytics.TextAnalyticsActionResult
{
internal RecognizeLinkedEntitiesActionResult() { }
public Azure.AI.TextAnalytics.RecognizeLinkedEntitiesResultCollection Result { get { throw null; } }
Expand All @@ -618,7 +618,7 @@ public partial class RecognizePiiEntitiesAction : Azure.AI.TextAnalytics.Recogni
{
public RecognizePiiEntitiesAction() { }
}
public partial class RecognizePiiEntitiesActionResult : Azure.AI.TextAnalytics.TextAnalyticsActionDetails
public partial class RecognizePiiEntitiesActionResult : Azure.AI.TextAnalytics.TextAnalyticsActionResult
{
internal RecognizePiiEntitiesActionResult() { }
public Azure.AI.TextAnalytics.RecognizePiiEntitiesResultCollection Result { get { throw null; } }
Expand Down Expand Up @@ -697,9 +697,9 @@ public readonly partial struct TargetSentiment
public Azure.AI.TextAnalytics.TextSentiment Sentiment { get { throw null; } }
public string Text { get { throw null; } }
}
public partial class TextAnalyticsActionDetails
public partial class TextAnalyticsActionResult
{
internal TextAnalyticsActionDetails() { }
internal TextAnalyticsActionResult() { }
public System.DateTimeOffset CompletedOn { get { throw null; } }
public Azure.AI.TextAnalytics.TextAnalyticsError Error { get { throw null; } }
public bool HasError { get { throw null; } }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace Azure.AI.TextAnalytics
/// <summary>
/// Action result class for analyze sentiment result.
/// </summary>
public class AnalyzeSentimentActionResult : TextAnalyticsActionDetails
public class AnalyzeSentimentActionResult : TextAnalyticsActionResult
{
internal AnalyzeSentimentActionResult(AnalyzeSentimentResultCollection result, DateTimeOffset completedOn, TextAnalyticsErrorInternal error) : base(completedOn, error)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace Azure.AI.TextAnalytics
/// <summary>
/// ExtractKeyPhrasesActionResult
/// </summary>
public class ExtractKeyPhrasesActionResult : TextAnalyticsActionDetails
public class ExtractKeyPhrasesActionResult : TextAnalyticsActionResult
{
internal ExtractKeyPhrasesActionResult(ExtractKeyPhrasesResultCollection result, DateTimeOffset completedOn, TextAnalyticsErrorInternal error) : base(completedOn, error)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace Azure.AI.TextAnalytics
/// <summary>
/// RecognizeEntitiesActionResult
/// </summary>
public class RecognizeEntitiesActionResult : TextAnalyticsActionDetails
public class RecognizeEntitiesActionResult : TextAnalyticsActionResult
{
internal RecognizeEntitiesActionResult(RecognizeEntitiesResultCollection result, DateTimeOffset completedOn, TextAnalyticsErrorInternal error) : base(completedOn, error)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace Azure.AI.TextAnalytics
/// <summary>
/// Action result class for linked entities
/// </summary>
public class RecognizeLinkedEntitiesActionResult : TextAnalyticsActionDetails
public class RecognizeLinkedEntitiesActionResult : TextAnalyticsActionResult
{
internal RecognizeLinkedEntitiesActionResult(RecognizeLinkedEntitiesResultCollection result, DateTimeOffset completedOn, TextAnalyticsErrorInternal error) : base(completedOn, error)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace Azure.AI.TextAnalytics
/// <summary>
/// RecognizePiiEntitiesActionResults
/// </summary>
public class RecognizePiiEntitiesActionResult : TextAnalyticsActionDetails
public class RecognizePiiEntitiesActionResult : TextAnalyticsActionResult
{
internal RecognizePiiEntitiesActionResult(RecognizePiiEntitiesResultCollection result, DateTimeOffset completedOn, TextAnalyticsErrorInternal error) : base(completedOn, error)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,16 @@
// Licensed under the MIT License.

using System;
using System.Collections.Generic;
using Azure.AI.TextAnalytics.Models;

namespace Azure.AI.TextAnalytics
{
/// <summary>
/// Stores the details for the AnalyzeBatchActionsOperation class.
/// Base type for results of Text Analytics Actions executed in a set of documents.
/// </summary>
public class TextAnalyticsActionDetails
public class TextAnalyticsActionResult
{
/// <summary>
/// Initializes the TextAnalyticsActionDetails class by initializing CompletedOn, Error and HasError properties.
/// </summary>
internal TextAnalyticsActionDetails (DateTimeOffset completedOn, TextAnalyticsErrorInternal error)
internal TextAnalyticsActionResult (DateTimeOffset completedOn, TextAnalyticsErrorInternal error)
{
CompletedOn = completedOn;
Error = error != null ? Transforms.ConvertToError(error) : default;
Expand Down

0 comments on commit 4334368

Please sign in to comment.