Skip to content

Commit 8abd9b9

Browse files
authored
[AI Projects] dotnet naming changes (#36993)
* GA version Signed-off-by: trangevi <[email protected]> * SasCredentials naming change Signed-off-by: trangevi <[email protected]> * Prepend AIProject to make less generic names for dotnet Signed-off-by: trangevi <[email protected]> * PR feedback Signed-off-by: trangevi <[email protected]> * One more update Signed-off-by: trangevi <[email protected]> * More naming changes based on arch review Signed-off-by: trangevi <[email protected]> * Drop Version Signed-off-by: trangevi <[email protected]> --------- Signed-off-by: trangevi <[email protected]>
1 parent 39b2bb6 commit 8abd9b9

File tree

2 files changed

+56
-8
lines changed

2 files changed

+56
-8
lines changed

specification/ai/Azure.AI.Projects/client.tsp

Lines changed: 55 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,48 @@ using Azure.ClientGenerator.Core;
3030
@@clientName(Azure.AI.Projects.AssetCredentialResponse, "DatasetCredential");
3131

3232
// Less generic names for C# SDK (avoid one-word class names)
33-
@@clientName(Azure.AI.Projects.Connection, "ConnectionProperties", "csharp");
34-
@@clientName(Azure.AI.Projects.Deployment, "AssetDeployment", "csharp");
35-
@@clientName(Azure.AI.Projects.Index, "SearchIndex", "csharp");
33+
@@clientName(Azure.AI.Projects.BlobReference,
34+
"AIProjectBlobReference",
35+
"csharp"
36+
);
37+
@@clientName(Azure.AI.Projects.Connection, "AIProjectConnection", "csharp");
38+
@@clientName(Azure.AI.Projects.Deployment, "AIProjectDeployment", "csharp");
39+
@@clientName(Azure.AI.Projects.DeploymentType,
40+
"AIProjectDeploymentType",
41+
"csharp"
42+
);
43+
@@clientName(Azure.AI.Projects.FieldMapping,
44+
"AIProjectIndexFieldMapping",
45+
"csharp"
46+
);
47+
@@clientName(Azure.AI.Projects.Index, "AIProjectIndex", "csharp");
48+
@@clientName(Azure.AI.Projects.CosmosDBIndex,
49+
"AIProjectCosmosDBIndex",
50+
"csharp"
51+
);
52+
@@clientName(Azure.AI.Projects.BaseCredentials,
53+
"AIProjectConnectionBaseCredential",
54+
"csharp"
55+
);
56+
@@clientName(Azure.AI.Projects.ApiKeyCredentials,
57+
"AIProjectConnectionApiKeyCredential",
58+
"csharp"
59+
);
60+
@@clientName(Azure.AI.Projects.CustomCredential,
61+
"AIProjectConnectionCustomCredential",
62+
"csharp"
63+
);
64+
@@clientName(Azure.AI.Projects.EntraIDCredentials,
65+
"AIProjectConnectionEntraIdCredential",
66+
"csharp"
67+
);
68+
@@clientName(Azure.AI.Projects.SASCredentials,
69+
"AIProjectConnectionSasCredential",
70+
"csharp"
71+
);
72+
@@clientName(Azure.AI.Projects.DatasetVersion, "AIProjectDataset", "csharp");
73+
@@clientName(Azure.AI.Projects.FileDatasetVersion, "FileDataset", "csharp");
74+
@@clientName(Azure.AI.Projects.FolderDatasetVersion, "FolderDataset", "csharp");
3675

3776
// Do not use terms "request" or "response" in C# class names as these are REST API terms
3877
@@clientName(Azure.AI.Projects.PendingUploadRequest,
@@ -45,10 +84,19 @@ using Azure.ClientGenerator.Core;
4584
);
4685

4786
// Less generic names for C# subclients
48-
@@clientName(Azure.AI.Projects.Connections, "ConnectionsOperations", "csharp");
49-
@@clientName(Azure.AI.Projects.Datasets, "DatasetsOperations", "csharp");
50-
@@clientName(Azure.AI.Projects.Deployments, "DeploymentsOperations", "csharp");
51-
@@clientName(Azure.AI.Projects.Indexes, "IndexesOperations", "csharp");
87+
@@clientName(Azure.AI.Projects.Connections,
88+
"AIProjectConnectionsOperations",
89+
"csharp"
90+
);
91+
@@clientName(Azure.AI.Projects.Datasets,
92+
"AIProjectDatasetsOperations",
93+
"csharp"
94+
);
95+
@@clientName(Azure.AI.Projects.Deployments,
96+
"AIProjectDeploymentsOperations",
97+
"csharp"
98+
);
99+
@@clientName(Azure.AI.Projects.Indexes, "AIProjectIndexesOperations", "csharp");
52100

53101
// Need to explicitly make all get and list methods include the object name for C#
54102
@@clientName(Azure.AI.Projects.Connections.get, "getConnection", "csharp");

specification/ai/Azure.AI.Projects/tspconfig.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ options:
2121
"@typespec/http-client-csharp":
2222
emitter-output-dir: "{output-dir}/{service-dir}/{package-name}"
2323
package-name: Azure.AI.Projects
24-
api-version: "2025-05-15-preview"
24+
api-version: "v1"
2525
"@azure-tools/typespec-ts":
2626
emitter-output-dir: "{output-dir}/{service-dir}/ai-projects"
2727
api-version: "v1"

0 commit comments

Comments
 (0)