Skip to content

Commit 5ca356b

Browse files
Migrate vision library to new generator (Azure#53330)
* Migrate vision library to new generator * regen
1 parent ad715de commit 5ca356b

File tree

68 files changed

+2172
-2471
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+2172
-2471
lines changed

doc/GeneratorMigration/Library_Inventory.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22

33
## Summary
44

5-
- Total libraries: 416
5+
- Total libraries: 417
66
- Management Plane (Swagger): 164
77
- Management Plane (TSP-Old): 46
88
- Management Plane (TypeSpec - @azure-typespec/http-client-csharp): 0
99
- Management Plane (TypeSpec - @azure-typespec/http-client-csharp-mgmt): 14
1010
- Management Plane (TypeSpec - @typespec/http-client-csharp): 0
1111
- Management Plane (TypeSpec - Unknown TypeSpec Generator: eng/emitter-package.json): 0
12-
- Data Plane (Swagger): 119
13-
- Data Plane (TSP-Old): 22
14-
- Data Plane (TypeSpec - @azure-typespec/http-client-csharp): 10
12+
- Data Plane (Swagger): 120
13+
- Data Plane (TSP-Old): 21
14+
- Data Plane (TypeSpec - @azure-typespec/http-client-csharp): 11
1515
- Data Plane (TypeSpec - @azure-typespec/http-client-csharp-mgmt): 0
1616
- Data Plane (TypeSpec - @typespec/http-client-csharp): 2
1717
- Data Plane (TypeSpec - Unknown TypeSpec Generator: eng/emitter-package.json): 1
@@ -20,7 +20,7 @@
2020

2121
## Data Plane Libraries using TypeSpec (@azure-typespec/http-client-csharp)
2222

23-
TypeSpec with @azure-typespec/http-client-csharp generator is detected by the presence of a tsp-location.yaml file with an emitterPackageJsonPath value referencing @azure-typespec/http-client-csharp, or through special handling for specific libraries. Total: 10
23+
TypeSpec with @azure-typespec/http-client-csharp generator is detected by the presence of a tsp-location.yaml file with an emitterPackageJsonPath value referencing @azure-typespec/http-client-csharp, or through special handling for specific libraries. Total: 11
2424

2525
| Service | Library | Path |
2626
| ------- | ------- | ---- |
@@ -34,6 +34,7 @@ TypeSpec with @azure-typespec/http-client-csharp generator is detected by the pr
3434
| monitor | Azure.Monitor.Query.Logs | sdk/monitor/Azure.Monitor.Query.Logs |
3535
| monitor | Azure.Monitor.Query.Metrics | sdk/monitor/Azure.Monitor.Query.Metrics |
3636
| schemaregistry | Azure.Data.SchemaRegistry | sdk/schemaregistry/Azure.Data.SchemaRegistry |
37+
| vision | Azure.AI.Vision.ImageAnalysis | sdk/vision/Azure.AI.Vision.ImageAnalysis |
3738

3839

3940
## Data Plane Libraries using TypeSpec (@typespec/http-client-csharp)
@@ -57,7 +58,7 @@ TypeSpec with Unknown TypeSpec Generator: eng/emitter-package.json generator is
5758

5859
## Data Plane Libraries using TypeSpec (Old Generator)
5960

60-
TypeSpec with old generator is detected by the presence of a tsp-location.yaml file without an emitterPackageJsonPath value, tspconfig.yaml file, tsp directory, or *.tsp files. Total: 22
61+
TypeSpec with old generator is detected by the presence of a tsp-location.yaml file without an emitterPackageJsonPath value, tspconfig.yaml file, tsp directory, or *.tsp files. Total: 21
6162

6263
| Service | Library | Path |
6364
| ------- | ------- | ---- |
@@ -82,12 +83,11 @@ TypeSpec with old generator is detected by the presence of a tsp-location.yaml f
8283
| purview | Azure.Analytics.Purview.DataMap | sdk/purview/Azure.Analytics.Purview.DataMap |
8384
| translation | Azure.AI.Translation.Document | sdk/translation/Azure.AI.Translation.Document |
8485
| translation | Azure.AI.Translation.Text | sdk/translation/Azure.AI.Translation.Text |
85-
| vision | Azure.AI.Vision.ImageAnalysis | sdk/vision/Azure.AI.Vision.ImageAnalysis |
8686

8787

8888
## Data Plane Libraries using Swagger
8989

90-
Total: 119
90+
Total: 120
9191

9292
| Service | Library | Path |
9393
| ------- | ------- | ---- |
@@ -167,6 +167,7 @@ Total: 119
167167
| provisioning | Azure.Provisioning.CosmosDB | sdk/provisioning/Azure.Provisioning.CosmosDB |
168168
| provisioning | Azure.Provisioning.EventGrid | sdk/provisioning/Azure.Provisioning.EventGrid |
169169
| provisioning | Azure.Provisioning.EventHubs | sdk/provisioning/Azure.Provisioning.EventHubs |
170+
| provisioning | Azure.Provisioning.FrontDoor | sdk/provisioning/Azure.Provisioning.FrontDoor |
170171
| provisioning | Azure.Provisioning.KeyVault | sdk/provisioning/Azure.Provisioning.KeyVault |
171172
| provisioning | Azure.Provisioning.Kubernetes | sdk/provisioning/Azure.Provisioning.Kubernetes |
172173
| provisioning | Azure.Provisioning.KubernetesConfiguration | sdk/provisioning/Azure.Provisioning.KubernetesConfiguration |

sdk/vision/Azure.AI.Vision.ImageAnalysis/api/Azure.AI.Vision.ImageAnalysis.net8.0.cs

Lines changed: 58 additions & 0 deletions
Large diffs are not rendered by default.

sdk/vision/Azure.AI.Vision.ImageAnalysis/api/Azure.AI.Vision.ImageAnalysis.netstandard2.0.cs

Lines changed: 58 additions & 0 deletions
Large diffs are not rendered by default.

sdk/vision/Azure.AI.Vision.ImageAnalysis/src/Azure.AI.Vision.ImageAnalysis.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
<PackageTags>Azure.AI.Vision.ImageAnalysis</PackageTags>
99
<TargetFrameworks>$(RequiredTargetFrameworks)</TargetFrameworks>
1010
<IncludeOperationsSharedSource>true</IncludeOperationsSharedSource>
11+
<IncludeAutorestDependency>false</IncludeAutorestDependency>
1112
</PropertyGroup>
1213

1314
<ItemGroup>
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
4+
using Azure.AI.Vision.ImageAnalysis;
5+
6+
namespace Microsoft.Extensions.Azure
7+
{
8+
[CodeGenType("VisionImageAnalysisClientBuilderExtensions")]
9+
public partial class AIVisionImageAnalysisClientBuilderExtensions
10+
{
11+
}
12+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
4+
namespace Azure.AI.Vision.ImageAnalysis
5+
{
6+
[CodeGenType("VisionImageAnalysisModelFactory")]
7+
public partial class AIVisionImageAnalysisModelFactory
8+
{
9+
}
10+
}

sdk/vision/Azure.AI.Vision.ImageAnalysis/src/Generated/AIVisionImageAnalysisClientBuilderExtensions.cs

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

0 commit comments

Comments
 (0)