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
Next Next commit
Remove unnecessary deployments contracts
  • Loading branch information
needuv committed Mar 17, 2025
commit 6fa81254d1ec50c8a4a9f533d221256abd0ab24f
26 changes: 9 additions & 17 deletions specification/ai/Azure.AI.Projects/deployments/models.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -18,42 +18,34 @@ namespace Azure.AI.Projects;
@doc("Model Deployment Definition")
@resource("deployments")
model Deployment {
@doc("Name of the deployment for the model")
@doc("Name of the deployment")
@visibility("read")
@key("deploymentName")
deploymentName: string;
@key("name")
name: string;

@doc("Publisher-specific name of the model")
@doc("Publisher-specific name of the deployed model")
@visibility("read")
modelName: string;

@doc("Publisher-specific version of the model")
@doc("Publisher-specific version of the deployed model")
@visibility("read")
modelVersion: string;

@doc("Name of the model publisher")
@doc("Name of the deployed model's publisher")
@visibility("read")
publisher: string;
modelPublisher: string;

@doc("Capabilities of model")
@doc("Capabilities of deployed model")
@visibility("read")
capabilities: Record<string>;

@doc("RAI policy enabled for model")
@visibility("read")
raiPolicyName: string;

@doc("Sku of the model deployment")
@visibility("read")
sku: Sku;

@doc("Name of the connection the model comes from")
@doc("Name of the connection the deployment comes from")
@visibility("read")
connectionName?: string;

@doc("System data of the resource")
@visibility("read")
systemData: SystemData;
}

#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance"
Expand Down
4 changes: 1 addition & 3 deletions specification/ai/Azure.AI.Projects/deployments/routes.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ using Azure.Core.Foundations;

namespace Azure.AI.Projects;

alias DeploymentServiceTraits = SupportsClientRequestId &
SupportsRepeatableRequests &
SupportsConditionalRequests;
alias DeploymentServiceTraits = SupportsClientRequestId;

alias DeploymentOperations = Azure.Core.ResourceOperations<DeploymentServiceTraits>;

Expand Down