Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TextAnalytics] Generating code from 3.2-preview.1 swagger #22774

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

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.

Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

using Azure.Core;

namespace Azure.AI.TextAnalytics.Models
{
/// <summary>
/// ExtractiveSummarizationTaskParameters.
/// </summary>
[CodeGenModel("ExtractiveSummarizationTaskParameters")]
internal partial class ExtractiveSummarizationTaskParameters { }
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

namespace Azure.AI.TextAnalytics.Models
{
internal readonly partial struct ExtractiveSummarizationTaskParametersSortBy
{
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,10 @@ internal partial class JobManifestTasks
/// SentimentAnalysisTasks
/// </summary>
internal IList<SentimentAnalysisTask> SentimentAnalysisTasks { get; set; }

/// <summary>
/// ExtractiveSummarizationTasks
/// </summary>
public IList<ExtractiveSummarizationTask> ExtractiveSummarizationTasks { get; set; }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not that it really matters, but to go with the flow, u can make this type internal

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You mean the ExtractiveSummarizationTask type? It is generated as an internal type by default.

}
}
7 changes: 3 additions & 4 deletions sdk/textanalytics/Azure.AI.TextAnalytics/src/autorest.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ Run `dotnet build /t:GenerateCode` to generate code.
> see https://aka.ms/autorest

``` yaml
tag: release_3_1
require:
- https://github.com/Azure/azure-rest-api-specs/blob/9820e5b189076cb9b329b6968a8d2fc405eef2f6/specification/cognitiveservices/data-plane/TextAnalytics/readme.md
input-file:
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/efc91f3c90a462a33bb57ef5b22d70633c8b4121/specification/cognitiveservices/data-plane/TextAnalytics/preview/v3.2-preview.1/TextAnalytics.json
```

### Make generated models internal by default
Expand Down Expand Up @@ -208,4 +207,4 @@ directive:
"deprecated": false
}
}
```
```