Skip to content
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
23 changes: 0 additions & 23 deletions specification/ai/Azure.AI.Projects/servicepatterns.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -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<TEntityType>
>;

@doc(
"Create a new or update an existing {name} with the given version id",
TEntityType
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
Loading
Loading