Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
2 changes: 2 additions & 0 deletions specification/ai/Azure.AI.Projects/common/models.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,11 @@ alias AssetBase = {
version: string;

@doc("The asset description text.")
@visibility(Lifecycle.Create, Lifecycle.Update)
description?: string;

@doc("Tag dictionary. Tags can be added, removed, and updated.")
@visibility(Lifecycle.Create, Lifecycle.Update)
tags?: Record<string>;
};

Expand Down
9 changes: 9 additions & 0 deletions specification/ai/Azure.AI.Projects/indexes/models.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,11 @@ model AzureAISearchIndex extends Index {
type: IndexType.azureSearch;

@doc("Name of connection to Azure AI Search")
@visibility(Lifecycle.Create)
connectionName: string;

@doc("Name of index in Azure AI Search resource to attach")
@visibility(Lifecycle.Create)
indexName: string;
}

Expand All @@ -40,6 +42,7 @@ model ManagedAzureAISearchIndex extends Index {
type: IndexType.managedAzureSearch;

@doc("Vector store id of managed index")
@visibility(Lifecycle.Create)
vectorStoreId: string;
}

Expand All @@ -50,25 +53,31 @@ model CosmosDBIndex extends Index {
type: IndexType.cosmosDB;

@doc("Name of connection to CosmosDB")
@visibility(Lifecycle.Create)
connectionName: string;

@doc("Name of the CosmosDB Database")
@visibility(Lifecycle.Create)
databaseName: string;

@doc("Name of CosmosDB Container")
@visibility(Lifecycle.Create)
containerName: string;

@doc("Embedding model configuration")
@visibility(Lifecycle.Create)
embeddingConfiguration: EmbeddingConfiguration;
}

@doc("Embedding configuration class")
@added(Versions.v2025_05_01)
model EmbeddingConfiguration {
@doc("Deployment name of embedding model. It can point to a model deployment either in the parent AIServices or a connection.")
@visibility(Lifecycle.Create)
modelDeploymentName: string;

@doc("Embedding field")
@visibility(Lifecycle.Create)
embeddingField: string;
}

Expand Down
23 changes: 23 additions & 0 deletions specification/ai/Azure.AI.Projects/servicepatterns.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,29 @@ namespace Azure.AI.Projects.ServicePatterns {
},
Azure.Core.Foundations.ResourceCreatedOrOkResponse<TEntityType>
>;

@doc(
"Create a new or update an existing {name} with the given version id",
TEntityType
)
@Http.patch
createOrUpdateVersion 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>
>;
}

@Rest.action
Expand Down
Loading
Loading