From 0eb244fbc9e7c33ee7945fdd360ce127dd19f27a Mon Sep 17 00:00:00 2001 From: Neehar Duvvuri Date: Thu, 20 Mar 2025 12:56:08 -0400 Subject: [PATCH 1/2] Change name of versions post to create --- specification/ai/Azure.AI.Projects/servicepatterns.tsp | 1 + 1 file changed, 1 insertion(+) diff --git a/specification/ai/Azure.AI.Projects/servicepatterns.tsp b/specification/ai/Azure.AI.Projects/servicepatterns.tsp index a873b0f9d3c2..f0a72c91b991 100644 --- a/specification/ai/Azure.AI.Projects/servicepatterns.tsp +++ b/specification/ai/Azure.AI.Projects/servicepatterns.tsp @@ -58,6 +58,7 @@ namespace Azure.AI.Projects.ServicePatterns { TEntityType ) @Rest.actionSeparator("/") + @Rest.action("versions") versions is BuildingBlocks.RepeatableCoreOps.ResourceAction< TEntityType, { From 42eeb8e710f3fcb4c2dc11579818c7f293965cf6 Mon Sep 17 00:00:00 2001 From: Neehar Duvvuri Date: Thu, 20 Mar 2025 13:02:47 -0400 Subject: [PATCH 2/2] properly hit save this time --- specification/ai/Azure.AI.Projects/servicepatterns.tsp | 3 ++- .../preview/2025-05-01-preview/azure-ai-projects-1dp.json | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/specification/ai/Azure.AI.Projects/servicepatterns.tsp b/specification/ai/Azure.AI.Projects/servicepatterns.tsp index f0a72c91b991..e0b0373d594d 100644 --- a/specification/ai/Azure.AI.Projects/servicepatterns.tsp +++ b/specification/ai/Azure.AI.Projects/servicepatterns.tsp @@ -59,7 +59,8 @@ namespace Azure.AI.Projects.ServicePatterns { ) @Rest.actionSeparator("/") @Rest.action("versions") - versions is BuildingBlocks.RepeatableCoreOps.ResourceAction< + @Http.post + create is BuildingBlocks.RepeatableCoreOps.ResourceAction< TEntityType, { @doc("The definition of the {name} to create", TEntityType) diff --git a/specification/ai/data-plane/Azure.AI.Projects/preview/2025-05-01-preview/azure-ai-projects-1dp.json b/specification/ai/data-plane/Azure.AI.Projects/preview/2025-05-01-preview/azure-ai-projects-1dp.json index 3bf232f14dc2..ffbd0747b3b6 100644 --- a/specification/ai/data-plane/Azure.AI.Projects/preview/2025-05-01-preview/azure-ai-projects-1dp.json +++ b/specification/ai/data-plane/Azure.AI.Projects/preview/2025-05-01-preview/azure-ai-projects-1dp.json @@ -656,7 +656,7 @@ } }, "post": { - "operationId": "Datasets_Versions", + "operationId": "Datasets_Create", "description": "Create a new DatasetVersion. The version id will be generated by the service.", "parameters": [ { @@ -1654,7 +1654,7 @@ } }, "post": { - "operationId": "Indexes_Versions", + "operationId": "Indexes_Create", "description": "Create a new Index. The version id will be generated by the service.", "parameters": [ {