diff --git a/specification/ai/Azure.AI.Projects/servicepatterns.tsp b/specification/ai/Azure.AI.Projects/servicepatterns.tsp index 8f7aeda4a975..376184787b32 100644 --- a/specification/ai/Azure.AI.Projects/servicepatterns.tsp +++ b/specification/ai/Azure.AI.Projects/servicepatterns.tsp @@ -72,29 +72,6 @@ namespace Azure.AI.Projects.ServicePatterns { >; */ - @doc( - "Create a new or replace an existing {name} with the given version id", - TEntityType - ) - @Http.put - createVersion is Azure.Core.Foundations.ResourceOperation< - TEntityType, - { - @doc( - "The specific version id of the {name} to create or replace.", - TEntityType - ) - @Rest.segment("versions") - @Http.path - version: string; - - @doc("The definition of the {name} to create", TEntityType) - @Http.bodyRoot - body: TEntityType; - }, - Azure.Core.Foundations.ResourceCreatedOrOkResponse - >; - @doc( "Create a new or update an existing {name} with the given version id", TEntityType diff --git a/specification/ai/data-plane/Azure.AI.Projects/preview/2025-05-15-preview/azure-ai-projects-1dp.json b/specification/ai/data-plane/Azure.AI.Projects/preview/2025-05-15-preview/azure-ai-projects-1dp.json index cebe7d9b3a1c..ff30baadfe99 100644 --- a/specification/ai/data-plane/Azure.AI.Projects/preview/2025-05-15-preview/azure-ai-projects-1dp.json +++ b/specification/ai/data-plane/Azure.AI.Projects/preview/2025-05-15-preview/azure-ai-projects-1dp.json @@ -635,64 +635,6 @@ } } }, - "put": { - "operationId": "Datasets_CreateVersion", - "description": "Create a new or replace an existing DatasetVersion with the given version id", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "name", - "in": "path", - "description": "The name of the resource", - "required": true, - "type": "string" - }, - { - "name": "version", - "in": "path", - "description": "The specific version id of the DatasetVersion to create or replace.", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "description": "The definition of the DatasetVersion to create", - "required": true, - "schema": { - "$ref": "#/definitions/DatasetVersion" - } - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/DatasetVersion" - } - }, - "201": { - "description": "The request has succeeded and a new resource has been created as a result.", - "schema": { - "$ref": "#/definitions/DatasetVersion" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" - }, - "headers": { - "x-ms-error-code": { - "type": "string", - "description": "String error code indicating what went wrong." - } - } - } - } - }, "patch": { "operationId": "Datasets_CreateOrUpdateVersion", "description": "Create a new or update an existing DatasetVersion with the given version id", @@ -1385,64 +1327,6 @@ } } }, - "put": { - "operationId": "Indexes_CreateVersion", - "description": "Create a new or replace an existing Index with the given version id", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "name", - "in": "path", - "description": "The name of the resource", - "required": true, - "type": "string" - }, - { - "name": "version", - "in": "path", - "description": "The specific version id of the Index to create or replace.", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "description": "The definition of the Index to create", - "required": true, - "schema": { - "$ref": "#/definitions/Index" - } - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/Index" - } - }, - "201": { - "description": "The request has succeeded and a new resource has been created as a result.", - "schema": { - "$ref": "#/definitions/Index" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" - }, - "headers": { - "x-ms-error-code": { - "type": "string", - "description": "String error code indicating what went wrong." - } - } - } - } - }, "patch": { "operationId": "Indexes_CreateOrUpdateVersion", "description": "Create a new or update an existing Index with the given version id", diff --git a/specification/ai/data-plane/Azure.AI.Projects/stable/2025-05-01/azure-ai-projects-1dp.json b/specification/ai/data-plane/Azure.AI.Projects/stable/2025-05-01/azure-ai-projects-1dp.json index b8954a9c94bb..67542569e819 100644 --- a/specification/ai/data-plane/Azure.AI.Projects/stable/2025-05-01/azure-ai-projects-1dp.json +++ b/specification/ai/data-plane/Azure.AI.Projects/stable/2025-05-01/azure-ai-projects-1dp.json @@ -635,64 +635,6 @@ } } }, - "put": { - "operationId": "Datasets_CreateVersion", - "description": "Create a new or replace an existing DatasetVersion with the given version id", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "name", - "in": "path", - "description": "The name of the resource", - "required": true, - "type": "string" - }, - { - "name": "version", - "in": "path", - "description": "The specific version id of the DatasetVersion to create or replace.", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "description": "The definition of the DatasetVersion to create", - "required": true, - "schema": { - "$ref": "#/definitions/DatasetVersion" - } - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/DatasetVersion" - } - }, - "201": { - "description": "The request has succeeded and a new resource has been created as a result.", - "schema": { - "$ref": "#/definitions/DatasetVersion" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" - }, - "headers": { - "x-ms-error-code": { - "type": "string", - "description": "String error code indicating what went wrong." - } - } - } - } - }, "patch": { "operationId": "Datasets_CreateOrUpdateVersion", "description": "Create a new or update an existing DatasetVersion with the given version id", @@ -1244,64 +1186,6 @@ } } }, - "put": { - "operationId": "Indexes_CreateVersion", - "description": "Create a new or replace an existing Index with the given version id", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "name", - "in": "path", - "description": "The name of the resource", - "required": true, - "type": "string" - }, - { - "name": "version", - "in": "path", - "description": "The specific version id of the Index to create or replace.", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "description": "The definition of the Index to create", - "required": true, - "schema": { - "$ref": "#/definitions/Index" - } - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/Index" - } - }, - "201": { - "description": "The request has succeeded and a new resource has been created as a result.", - "schema": { - "$ref": "#/definitions/Index" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" - }, - "headers": { - "x-ms-error-code": { - "type": "string", - "description": "String error code indicating what went wrong." - } - } - } - } - }, "patch": { "operationId": "Indexes_CreateOrUpdateVersion", "description": "Create a new or update an existing Index with the given version id", diff --git a/specification/ai/data-plane/Azure.AI.Projects/stable/latest/azure-ai-projects-1dp.json b/specification/ai/data-plane/Azure.AI.Projects/stable/latest/azure-ai-projects-1dp.json index 55c422f287e0..afa57194016c 100644 --- a/specification/ai/data-plane/Azure.AI.Projects/stable/latest/azure-ai-projects-1dp.json +++ b/specification/ai/data-plane/Azure.AI.Projects/stable/latest/azure-ai-projects-1dp.json @@ -635,64 +635,6 @@ } } }, - "put": { - "operationId": "Datasets_CreateVersion", - "description": "Create a new or replace an existing DatasetVersion with the given version id", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "name", - "in": "path", - "description": "The name of the resource", - "required": true, - "type": "string" - }, - { - "name": "version", - "in": "path", - "description": "The specific version id of the DatasetVersion to create or replace.", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "description": "The definition of the DatasetVersion to create", - "required": true, - "schema": { - "$ref": "#/definitions/DatasetVersion" - } - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/DatasetVersion" - } - }, - "201": { - "description": "The request has succeeded and a new resource has been created as a result.", - "schema": { - "$ref": "#/definitions/DatasetVersion" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" - }, - "headers": { - "x-ms-error-code": { - "type": "string", - "description": "String error code indicating what went wrong." - } - } - } - } - }, "patch": { "operationId": "Datasets_CreateOrUpdateVersion", "description": "Create a new or update an existing DatasetVersion with the given version id", @@ -1244,64 +1186,6 @@ } } }, - "put": { - "operationId": "Indexes_CreateVersion", - "description": "Create a new or replace an existing Index with the given version id", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "name", - "in": "path", - "description": "The name of the resource", - "required": true, - "type": "string" - }, - { - "name": "version", - "in": "path", - "description": "The specific version id of the Index to create or replace.", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "description": "The definition of the Index to create", - "required": true, - "schema": { - "$ref": "#/definitions/Index" - } - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/Index" - } - }, - "201": { - "description": "The request has succeeded and a new resource has been created as a result.", - "schema": { - "$ref": "#/definitions/Index" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" - }, - "headers": { - "x-ms-error-code": { - "type": "string", - "description": "String error code indicating what went wrong." - } - } - } - } - }, "patch": { "operationId": "Indexes_CreateOrUpdateVersion", "description": "Create a new or update an existing Index with the given version id",