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
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ op uploadFile is Azure.Core.Foundations.Operation<
@doc("The file data, in bytes.")
@clientName("Data", "csharp")
file: HttpPart<File>;

@doc("The intended purpose of the uploaded file. Use `assistants` for Agents and Message files, `vision` for Agents image file inputs, `batch` for Batch API, and `fine-tune` for Fine-tuning.")
purpose: HttpPart<FilePurpose>;

/*
* Spec note: filename is not documented as a distinct option but functionally should be one. The value is encoded
* in the multipart Content-Disposition header for the data section and can be provided independently of
Expand Down
3 changes: 0 additions & 3 deletions specification/ai/Azure.AI.Projects/common/models.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ import "@azure-tools/typespec-azure-resource-manager";
import "../credentials/models.tsp";

using TypeSpec.Http;
using TypeSpec.Versioning;
using Azure.ResourceManager;
using Azure.ResourceManager.Foundations;

namespace Azure.AI.Projects;

Expand Down
5 changes: 0 additions & 5 deletions specification/ai/Azure.AI.Projects/connections/models.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,7 @@ import "@typespec/openapi";
import "@typespec/versioning";
import "../credentials/models.tsp";

using TypeSpec.OpenAPI;
using TypeSpec.Http;
using TypeSpec.Rest;
using TypeSpec.Versioning;
using Azure.Core;
using Azure.Core.Traits;

namespace Azure.AI.Projects;

Expand Down
3 changes: 0 additions & 3 deletions specification/ai/Azure.AI.Projects/connections/routes.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,8 @@ import "@azure-tools/typespec-azure-core";
import "./models.tsp";

using TypeSpec.Http;
using TypeSpec.Rest;
using TypeSpec.Versioning;
using Azure.Core;
using Azure.Core.Traits;
using Azure.Core.Foundations;

namespace Azure.AI.Projects;

Expand Down
7 changes: 0 additions & 7 deletions specification/ai/Azure.AI.Projects/credentials/models.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,6 @@ import "@typespec/versioning";
import "@azure-tools/typespec-azure-core";
import "@typespec/openapi";

using TypeSpec.OpenAPI;
using TypeSpec.Http;
using TypeSpec.Rest;
using TypeSpec.Versioning;
using Azure.Core;
using Azure.Core.Traits;

namespace Azure.AI.Projects;

@doc("The different Credential types")
Expand Down
7 changes: 0 additions & 7 deletions specification/ai/Azure.AI.Projects/datasets/models.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,6 @@ import "../main.tsp";
import "@typespec/openapi";
import "@typespec/versioning";

using TypeSpec.OpenAPI;
using TypeSpec.Http;
using TypeSpec.Rest;
using TypeSpec.Versioning;
using Azure.Core;
using Azure.Core.Traits;

namespace Azure.AI.Projects;

@doc("Enum to determine the type of data.")
Expand Down
5 changes: 0 additions & 5 deletions specification/ai/Azure.AI.Projects/datasets/routes.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@ import "./models.tsp";
import "../servicepatterns.tsp";

using TypeSpec.Http;
using TypeSpec.Rest;
using TypeSpec.Versioning;
using Azure.Core;
using Azure.Core.Traits;
using Azure.Core.Foundations;

namespace Azure.AI.Projects;

Expand Down
5 changes: 0 additions & 5 deletions specification/ai/Azure.AI.Projects/deployments/models.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,7 @@ import "../main.tsp";
import "../common/models.tsp";
import "@typespec/openapi";

using TypeSpec.OpenAPI;
using TypeSpec.Http;
using TypeSpec.Rest;
using TypeSpec.Versioning;
using Azure.Core;
using Azure.Core.Traits;

namespace Azure.AI.Projects;

Expand Down
3 changes: 0 additions & 3 deletions specification/ai/Azure.AI.Projects/deployments/routes.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,8 @@ import "@azure-tools/typespec-azure-core";
import "./models.tsp";

using TypeSpec.Http;
using TypeSpec.Rest;
using TypeSpec.Versioning;
using Azure.Core;
using Azure.Core.Traits;
using Azure.Core.Foundations;

namespace Azure.AI.Projects;

Expand Down
5 changes: 0 additions & 5 deletions specification/ai/Azure.AI.Projects/evaluations/models.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,7 @@ import "../common/models.tsp";
import "../main.tsp";
import "@typespec/openapi";

using TypeSpec.OpenAPI;
using TypeSpec.Http;
using TypeSpec.Rest;
using TypeSpec.Versioning;
using Azure.Core;
using Azure.Core.Traits;

namespace Azure.AI.Projects;

Expand Down
3 changes: 0 additions & 3 deletions specification/ai/Azure.AI.Projects/evaluations/routes.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,8 @@ import "@azure-tools/typespec-azure-core";
import "./models.tsp";

using TypeSpec.Http;
using TypeSpec.Rest;
using TypeSpec.Versioning;
using Azure.Core;
using Azure.Core.Traits;
using Azure.Core.Foundations;

namespace Azure.AI.Projects;

Expand Down
7 changes: 0 additions & 7 deletions specification/ai/Azure.AI.Projects/indexes/models.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,6 @@ import "@azure-tools/typespec-azure-core";
import "../common/models.tsp";
import "../main.tsp";

using TypeSpec.OpenAPI;
using TypeSpec.Http;
using TypeSpec.Rest;
using TypeSpec.Versioning;
using Azure.Core;
using Azure.Core.Traits;

namespace Azure.AI.Projects;

@doc("Index resource Definition")
Expand Down
5 changes: 0 additions & 5 deletions specification/ai/Azure.AI.Projects/indexes/routes.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@ import "../servicepatterns.tsp";
import "../common/models.tsp";

using TypeSpec.Http;
using TypeSpec.Rest;
using TypeSpec.Versioning;
using Azure.Core;
using Azure.Core.Traits;
using Azure.Core.Foundations;

namespace Azure.AI.Projects;

Expand Down
8 changes: 2 additions & 6 deletions specification/ai/Azure.AI.Projects/main.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,16 @@ import "./indexes/routes.tsp";
import "./deployments/routes.tsp";

using TypeSpec.Http;
using TypeSpec.Rest;
using Azure.ResourceManager;
using Azure.ResourceManager.Foundations;
using TypeSpec.Versioning;
using Azure.Core;
using Azure.Core.Traits;

#suppress "@azure-tools/typespec-azure-core/casing-style"
namespace Azure.AI {

}

#suppress "@azure-tools/typespec-autorest/unsupported-http-auth-scheme"
@useAuth(
OAuth2Auth<[
BearerAuth | OAuth2Auth<[
{
type: OAuth2FlowType.implicit,
authorizationUrl: "https://login.microsoftonline.com/common/oauth2/v2.0/authorize",
Expand Down
Loading
Loading