diff --git a/sdk/ai/Azure.AI.Projects.1DP/Azure.AI.Projects.1DP.sln b/sdk/ai/Azure.AI.Projects.1DP/Azure.AI.Projects.1DP.sln
new file mode 100644
index 000000000000..a9b527f621ec
--- /dev/null
+++ b/sdk/ai/Azure.AI.Projects.1DP/Azure.AI.Projects.1DP.sln
@@ -0,0 +1,56 @@
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 16
+VisualStudioVersion = 16.0.29709.97
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azure.Core.TestFramework", "..\..\core\Azure.Core.TestFramework\src\Azure.Core.TestFramework.csproj", "{ECC730C1-4AEA-420C-916A-66B19B79E4DC}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Azure.AI.Projects.1DP", "src\Azure.AI.Projects.1DP.csproj", "{28FF4005-4467-4E36-92E7-DEA27DEB1519}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Azure.AI.Projects.1DP.Tests", "tests\Azure.AI.Projects.1DP.Tests.csproj", "{1F1CD1D4-9932-4B73-99D8-C252A67D4B46}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {B0C276D1-2930-4887-B29A-D1A33E7009A2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {B0C276D1-2930-4887-B29A-D1A33E7009A2}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {B0C276D1-2930-4887-B29A-D1A33E7009A2}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {B0C276D1-2930-4887-B29A-D1A33E7009A2}.Release|Any CPU.Build.0 = Release|Any CPU
+ {8E9A77AC-792A-4432-8320-ACFD46730401}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {8E9A77AC-792A-4432-8320-ACFD46730401}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {8E9A77AC-792A-4432-8320-ACFD46730401}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {8E9A77AC-792A-4432-8320-ACFD46730401}.Release|Any CPU.Build.0 = Release|Any CPU
+ {ECC730C1-4AEA-420C-916A-66B19B79E4DC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {ECC730C1-4AEA-420C-916A-66B19B79E4DC}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {ECC730C1-4AEA-420C-916A-66B19B79E4DC}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {ECC730C1-4AEA-420C-916A-66B19B79E4DC}.Release|Any CPU.Build.0 = Release|Any CPU
+ {A4241C1F-A53D-474C-9E4E-075054407E74}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {A4241C1F-A53D-474C-9E4E-075054407E74}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {A4241C1F-A53D-474C-9E4E-075054407E74}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {A4241C1F-A53D-474C-9E4E-075054407E74}.Release|Any CPU.Build.0 = Release|Any CPU
+ {FA8BD3F1-8616-47B6-974C-7576CDF4717E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {FA8BD3F1-8616-47B6-974C-7576CDF4717E}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {FA8BD3F1-8616-47B6-974C-7576CDF4717E}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {FA8BD3F1-8616-47B6-974C-7576CDF4717E}.Release|Any CPU.Build.0 = Release|Any CPU
+ {85677AD3-C214-42FA-AE6E-49B956CAC8DC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {85677AD3-C214-42FA-AE6E-49B956CAC8DC}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {85677AD3-C214-42FA-AE6E-49B956CAC8DC}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {85677AD3-C214-42FA-AE6E-49B956CAC8DC}.Release|Any CPU.Build.0 = Release|Any CPU
+ {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Release|Any CPU.Build.0 = Release|Any CPU
+ {1F1CD1D4-9932-4B73-99D8-C252A67D4B46}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {1F1CD1D4-9932-4B73-99D8-C252A67D4B46}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {1F1CD1D4-9932-4B73-99D8-C252A67D4B46}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {1F1CD1D4-9932-4B73-99D8-C252A67D4B46}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {A97F4B90-2591-4689-B1F8-5F21FE6D6CAE}
+ EndGlobalSection
+EndGlobal
diff --git a/sdk/ai/Azure.AI.Projects.1DP/CHANGELOG.md b/sdk/ai/Azure.AI.Projects.1DP/CHANGELOG.md
new file mode 100644
index 000000000000..8b33f0fedccc
--- /dev/null
+++ b/sdk/ai/Azure.AI.Projects.1DP/CHANGELOG.md
@@ -0,0 +1,11 @@
+# Release History
+
+## 1.0.0-beta.1 (Unreleased)
+
+### Features Added
+
+### Breaking Changes
+
+### Bugs Fixed
+
+### Other Changes
\ No newline at end of file
diff --git a/sdk/ai/Azure.AI.Projects.1DP/Directory.Build.props b/sdk/ai/Azure.AI.Projects.1DP/Directory.Build.props
new file mode 100644
index 000000000000..63bd836ad44b
--- /dev/null
+++ b/sdk/ai/Azure.AI.Projects.1DP/Directory.Build.props
@@ -0,0 +1,6 @@
+
+
+
+
diff --git a/sdk/ai/Azure.AI.Projects.1DP/README.md b/sdk/ai/Azure.AI.Projects.1DP/README.md
new file mode 100644
index 000000000000..c3654eada7fe
--- /dev/null
+++ b/sdk/ai/Azure.AI.Projects.1DP/README.md
@@ -0,0 +1,107 @@
+# Azure.AI.Projects.1DP client library for .NET
+
+Azure.AI.Projects.1DP is a managed service that helps developers get secret simply and securely.
+
+Use the client library for to:
+
+* [Get secret](https://docs.microsoft.com/azure)
+
+[Source code][source_root] | [Package (NuGet)][package] | [API reference documentation][reference_docs] | [Product documentation][azconfig_docs] | [Samples][source_samples]
+
+ [Source code](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/ai/Azure.AI.Projects.1DP/src) | [Package (NuGet)](https://www.nuget.org/packages) | [API reference documentation](https://azure.github.io/azure-sdk-for-net) | [Product documentation](https://docs.microsoft.com/azure)
+
+## Getting started
+
+This section should include everything a developer needs to do to install and create their first client connection *very quickly*.
+
+### Install the package
+
+First, provide instruction for obtaining and installing the package or library. This section might include only a single line of code, like `dotnet add package package-name`, but should enable a developer to successfully install the package from NuGet, npm, or even cloning a GitHub repository.
+
+Install the client library for .NET with [NuGet](https://www.nuget.org/ ):
+
+```dotnetcli
+dotnet add package Azure.AI.Projects.1DP --prerelease
+```
+
+### Prerequisites
+
+Include a section after the install command that details any requirements that must be satisfied before a developer can [authenticate](#authenticate-the-client) and test all of the snippets in the [Examples](#examples) section. For example, for Cosmos DB:
+
+> You must have an [Azure subscription](https://azure.microsoft.com/free/dotnet/) and [Cosmos DB account](https://docs.microsoft.com/azure/cosmos-db/account-overview) (SQL API). In order to take advantage of the C# 8.0 syntax, it is recommended that you compile using the [.NET Core SDK](https://dotnet.microsoft.com/download) 3.0 or higher with a [language version](https://docs.microsoft.com/dotnet/csharp/language-reference/configure-language-version#override-a-default) of `latest`. It is also possible to compile with the .NET Core SDK 2.1.x using a language version of `preview`.
+
+### Authenticate the client
+
+If your library requires authentication for use, such as for Azure services, include instructions and example code needed for initializing and authenticating.
+
+For example, include details on obtaining an account key and endpoint URI, setting environment variables for each, and initializing the client object.
+
+### Service API versions
+
+The client library targets the latest service API version by default. A client instance accepts an optional service API version parameter from its options to specify which API version service to communicate.
+
+#### Select a service API version
+
+You have the flexibility to explicitly select a supported service API version when instantiating a client by configuring its associated options. This ensures that the client can communicate with services using the specified API version.
+
+For example,
+
+```C# Snippet:CreateClientForSpecificApiVersion
+Uri endpoint = new Uri("");
+DefaultAzureCredential credential = new DefaultAzureCredential();
+ClientOptions options = new ClientOptions(ClientOptions.ServiceVersion.)
+var client = new Client(endpoint, credential, options);
+```
+
+When selecting an API version, it's important to verify that there are no breaking changes compared to the latest API version. If there are significant differences, API calls may fail due to incompatibility.
+
+Always ensure that the chosen API version is fully supported and operational for your specific use case and that it aligns with the service's versioning policy.
+
+## Key concepts
+
+The *Key concepts* section should describe the functionality of the main classes. Point out the most important and useful classes in the package (with links to their reference pages) and explain how those classes work together. Feel free to use bulleted lists, tables, code blocks, or even diagrams for clarity.
+
+Include the *Thread safety* and *Additional concepts* sections below at the end of your *Key concepts* section. You may remove or add links depending on what your library makes use of:
+
+### Thread safety
+
+We guarantee that all client instance methods are thread-safe and independent of each other ([guideline](https://azure.github.io/azure-sdk/dotnet_introduction.html#dotnet-service-methods-thread-safety)). This ensures that the recommendation of reusing client instances is always safe, even across threads.
+
+### Additional concepts
+
+[Client options](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) |
+[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) |
+[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) |
+[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) |
+[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md) |
+[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#mocking) |
+[Client lifetime](https://devblogs.microsoft.com/azure-sdk/lifetime-management-and-thread-safety-guarantees-of-azure-sdk-net-clients/)
+
+
+## Examples
+
+You can familiarize yourself with different APIs using [Samples](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/ai/Azure.AI.Projects.1DP/samples).
+
+## Troubleshooting
+
+Describe common errors and exceptions, how to "unpack" them if necessary, and include guidance for graceful handling and recovery.
+
+Provide information to help developers avoid throttling or other service-enforced errors they might encounter. For example, provide guidance and examples for using retry or connection policies in the API.
+
+If the package or a related package supports it, include tips for logging or enabling instrumentation to help them debug their code.
+
+## Next steps
+
+* Provide a link to additional code examples, ideally to those sitting alongside the README in the package's `/samples` directory.
+* If appropriate, point users to other packages that might be useful.
+* If you think there's a good chance that developers might stumble across your package in error (because they're searching for specific functionality and mistakenly think the package provides that functionality), point them to the packages they might be looking for.
+
+## Contributing
+
+This is a template, but your SDK readme should include details on how to contribute code to the repo/package.
+
+
+[style-guide-msft]: https://docs.microsoft.com/style-guide/capitalization
+[style-guide-cloud]: https://aka.ms/azsdk/cloud-style-guide
+
+
\ No newline at end of file
diff --git a/sdk/ai/Azure.AI.Projects.1DP/src/Azure.AI.Projects.1DP.csproj b/sdk/ai/Azure.AI.Projects.1DP/src/Azure.AI.Projects.1DP.csproj
new file mode 100644
index 000000000000..df108e7e9fd2
--- /dev/null
+++ b/sdk/ai/Azure.AI.Projects.1DP/src/Azure.AI.Projects.1DP.csproj
@@ -0,0 +1,20 @@
+
+
+ This is the Azure.AI.Projects.1DP client library for developing .NET applications with rich experience.
+ Azure SDK Code Generation Azure.AI.Projects.1DP for Azure Data Plane
+ 1.0.0-beta.1
+ Azure.AI.Projects.1DP
+ $(RequiredTargetFrameworks)
+ true
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/sdk/ai/Azure.AI.Projects.1DP/src/Generated/AIProjectClient.cs b/sdk/ai/Azure.AI.Projects.1DP/src/Generated/AIProjectClient.cs
new file mode 100644
index 000000000000..cf086322a50c
--- /dev/null
+++ b/sdk/ai/Azure.AI.Projects.1DP/src/Generated/AIProjectClient.cs
@@ -0,0 +1,156 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Threading;
+using Azure.Core;
+using Azure.Core.Pipeline;
+
+namespace Azure.AI.Projects.1DP
+{
+// Data plane generated client.
+/// The AIProject service client.
+public partial class AIProjectClient
+{
+ private const string AuthorizationHeader = "Authorization";
+ private readonly AzureKeyCredential _keyCredential;
+ private const string AuthorizationApiKeyPrefix = "Bearer";
+ private static readonly string[] AuthorizationScopes = new string[] { "https://cognitiveservices.azure.com/.default" };
+ private readonly TokenCredential _tokenCredential;
+ private readonly HttpPipeline _pipeline;
+ private readonly Uri _endpoint;
+
+ /// The ClientDiagnostics is used to provide tracing support for the client library.
+ internal ClientDiagnostics ClientDiagnostics { get; }
+
+ /// The HTTP pipeline for sending and receiving REST requests and responses.
+ public virtual HttpPipeline Pipeline => _pipeline;
+
+ /// Initializes a new instance of AIProjectClient for mocking.
+ protected AIProjectClient()
+ {
+ }
+
+ /// Initializes a new instance of AIProjectClient.
+ /// Project endpoint in the form of: https://<aiservices-id>.services.ai.azure.com/api/projects/<project-name>.
+ /// A credential used to authenticate to an Azure Service.
+ /// or is null.
+ public AIProjectClient(Uri endpoint, AzureKeyCredential credential) : this(endpoint, credential, new Projects.1DP.AIProjectClientOptions())
+ {
+ }
+
+ /// Initializes a new instance of AIProjectClient.
+ /// Project endpoint in the form of: https://<aiservices-id>.services.ai.azure.com/api/projects/<project-name>.
+ /// A credential used to authenticate to an Azure Service.
+ /// or is null.
+ public AIProjectClient(Uri endpoint, TokenCredential credential) : this(endpoint, credential, new Projects.1DP.AIProjectClientOptions())
+ {
+ }
+
+ /// Initializes a new instance of AIProjectClient.
+ /// Project endpoint in the form of: https://<aiservices-id>.services.ai.azure.com/api/projects/<project-name>.
+ /// A credential used to authenticate to an Azure Service.
+ /// The options for configuring the client.
+ /// or is null.
+ public AIProjectClient(Uri endpoint, AzureKeyCredential credential, Projects.1DP.AIProjectClientOptions options)
+ {
+ AI.Projects.1DP.Argument.AssertNotNull(endpoint, nameof(endpoint));
+ AI.Projects.1DP.Argument.AssertNotNull(credential, nameof(credential));
+ options ??= new Projects.1DP.AIProjectClientOptions();
+
+ ClientDiagnostics = new ClientDiagnostics(options, true);
+ _keyCredential = credential;
+ _pipeline = HttpPipelineBuilder.Build(options, Array.Empty(), new HttpPipelinePolicy[] { new AzureKeyCredentialPolicy(_keyCredential, AuthorizationHeader, AuthorizationApiKeyPrefix) }, new ResponseClassifier());
+ _endpoint = endpoint;
+ }
+
+ /// Initializes a new instance of AIProjectClient.
+ /// Project endpoint in the form of: https://<aiservices-id>.services.ai.azure.com/api/projects/<project-name>.
+ /// A credential used to authenticate to an Azure Service.
+ /// The options for configuring the client.
+ /// or is null.
+ public AIProjectClient(Uri endpoint, TokenCredential credential, Projects.1DP.AIProjectClientOptions options)
+ {
+ AI.Projects.1DP.Argument.AssertNotNull(endpoint, nameof(endpoint));
+ AI.Projects.1DP.Argument.AssertNotNull(credential, nameof(credential));
+ options ??= new Projects.1DP.AIProjectClientOptions();
+
+ ClientDiagnostics = new ClientDiagnostics(options, true);
+ _tokenCredential = credential;
+ _pipeline = HttpPipelineBuilder.Build(options, Array.Empty(), new HttpPipelinePolicy[] { new BearerTokenAuthenticationPolicy(_tokenCredential, AuthorizationScopes) }, new ResponseClassifier());
+ _endpoint = endpoint;
+ }
+
+ private Projects.1DP.ServicePatterns _cachedServicePatterns;
+
+ /// Initializes a new instance of ServicePatterns.
+ public virtual Projects.1DP.ServicePatterns GetServicePatternsClient()
+ {
+ return Volatile.Read(ref _cachedServicePatterns) ?? Interlocked.CompareExchange(ref _cachedServicePatterns, new Projects.1DP.ServicePatterns(ClientDiagnostics, _pipeline, _keyCredential, _tokenCredential, _endpoint), null) ?? _cachedServicePatterns;
+ }
+
+ /// Initializes a new instance of Connections.
+ /// The API version to use for this operation.
+ /// is null.
+ public virtual Projects.1DP.Connections GetConnectionsClient(string apiVersion = "2025-05-15-preview")
+ {
+ AI.Projects.1DP.Argument.AssertNotNull(apiVersion, nameof(apiVersion));
+
+ return new Projects.1DP.Connections(ClientDiagnostics, _pipeline, _keyCredential, _tokenCredential, _endpoint, apiVersion);
+ }
+
+ /// Initializes a new instance of Evaluations.
+ /// The API version to use for this operation.
+ /// is null.
+ public virtual Projects.1DP.Evaluations GetEvaluationsClient(string apiVersion = "2025-05-15-preview")
+ {
+ AI.Projects.1DP.Argument.AssertNotNull(apiVersion, nameof(apiVersion));
+
+ return new Projects.1DP.Evaluations(ClientDiagnostics, _pipeline, _keyCredential, _tokenCredential, _endpoint, apiVersion);
+ }
+
+ /// Initializes a new instance of Datasets.
+ /// The API version to use for this operation.
+ /// is null.
+ public virtual Projects.1DP.Datasets GetDatasetsClient(string apiVersion = "2025-05-15-preview")
+ {
+ AI.Projects.1DP.Argument.AssertNotNull(apiVersion, nameof(apiVersion));
+
+ return new Projects.1DP.Datasets(ClientDiagnostics, _pipeline, _keyCredential, _tokenCredential, _endpoint, apiVersion);
+ }
+
+ /// Initializes a new instance of Indexes.
+ /// The API version to use for this operation.
+ /// is null.
+ public virtual Projects.1DP.Indexes GetIndexesClient(string apiVersion = "2025-05-15-preview")
+ {
+ AI.Projects.1DP.Argument.AssertNotNull(apiVersion, nameof(apiVersion));
+
+ return new Projects.1DP.Indexes(ClientDiagnostics, _pipeline, _keyCredential, _tokenCredential, _endpoint, apiVersion);
+ }
+
+ /// Initializes a new instance of Deployments.
+ /// The API version to use for this operation.
+ /// is null.
+ public virtual Projects.1DP.Deployments GetDeploymentsClient(string apiVersion = "2025-05-15-preview")
+ {
+ AI.Projects.1DP.Argument.AssertNotNull(apiVersion, nameof(apiVersion));
+
+ return new Projects.1DP.Deployments(ClientDiagnostics, _pipeline, _keyCredential, _tokenCredential, _endpoint, apiVersion);
+ }
+
+ /// Initializes a new instance of RedTeams.
+ /// The API version to use for this operation.
+ /// is null.
+ public virtual Projects.1DP.RedTeams GetRedTeamsClient(string apiVersion = "2025-05-15-preview")
+ {
+ AI.Projects.1DP.Argument.AssertNotNull(apiVersion, nameof(apiVersion));
+
+ return new Projects.1DP.RedTeams(ClientDiagnostics, _pipeline, _keyCredential, _tokenCredential, _endpoint, apiVersion);
+ }
+}
+}
diff --git a/sdk/ai/Azure.AI.Projects.1DP/src/Generated/AIProjects1DPClientBuilderExtensions.cs b/sdk/ai/Azure.AI.Projects.1DP/src/Generated/AIProjects1DPClientBuilderExtensions.cs
new file mode 100644
index 000000000000..84f83dd22f2a
--- /dev/null
+++ b/sdk/ai/Azure.AI.Projects.1DP/src/Generated/AIProjects1DPClientBuilderExtensions.cs
@@ -0,0 +1,46 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using Azure;
+using Azure.AI.Projects.1DP;
+using Azure.Core.Extensions;
+
+namespace Microsoft.Extensions.Azure
+{
+ /// Extension methods to add to client builder.
+ public static partial class AIProjects1DPClientBuilderExtensions
+ {
+ /// Registers a instance.
+ /// The builder to register with.
+ /// Project endpoint in the form of: https://<aiservices-id>.services.ai.azure.com/api/projects/<project-name>.
+ /// A credential used to authenticate to an Azure Service.
+ public static global::Azure.Core.Extensions.IAzureClientBuilder AddAIProjectClient(this TBuilder builder, Uri endpoint, AzureKeyCredential credential)
+ where TBuilder : global::Azure.Core.Extensions.IAzureClientFactoryBuilder
+ {
+ return builder.RegisterClientFactory < global::Azure.AI.Projects.1DP.AIProjectClient,global::Azure.AI.Projects.1DP.AIProjectClientOptions > ((options) => new global::Azure.AI.Projects.1DP.AIProjectClient(endpoint, credential, options));
+ }
+
+ /// Registers a instance.
+ /// The builder to register with.
+ /// Project endpoint in the form of: https://<aiservices-id>.services.ai.azure.com/api/projects/<project-name>.
+ public static global::Azure.Core.Extensions.IAzureClientBuilder AddAIProjectClient(this TBuilder builder, Uri endpoint)
+ where TBuilder : global::Azure.Core.Extensions.IAzureClientFactoryBuilderWithCredential
+ {
+ return builder.RegisterClientFactory < global::Azure.AI.Projects.1DP.AIProjectClient,global::Azure.AI.Projects.1DP.AIProjectClientOptions > ((options, cred) => new global::Azure.AI.Projects.1DP.AIProjectClient(endpoint, cred, options));
+ }
+
+ /// Registers a instance.
+ /// The builder to register with.
+ /// The configuration values.
+ public static global::Azure.Core.Extensions.IAzureClientBuilder AddAIProjectClient(this TBuilder builder, TConfiguration configuration)
+ where TBuilder : global::Azure.Core.Extensions.IAzureClientFactoryBuilderWithConfiguration
+ {
+ return builder.RegisterClientFactory < global::Azure.AI.Projects.1DP.AIProjectClient,global::Azure.AI.Projects.1DP.AIProjectClientOptions > configuration;
+ }
+ }
+}
diff --git a/sdk/ai/Azure.AI.Projects.1DP/src/Generated/AIProjects1DPModelFactory.cs b/sdk/ai/Azure.AI.Projects.1DP/src/Generated/AIProjects1DPModelFactory.cs
new file mode 100644
index 000000000000..750ecd63c3e8
--- /dev/null
+++ b/sdk/ai/Azure.AI.Projects.1DP/src/Generated/AIProjects1DPModelFactory.cs
@@ -0,0 +1,428 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+using System.Linq;
+
+namespace Azure.AI.Projects.1DP
+{
+
+/// Initializes a new instance of .
+/// The type of the deployment.
+/// Name of the deployment.
+/// A new instance for mocking.
+public static Projects.1DP.Deployment Deployment(string type = null, string name = null)
+{
+ return new Projects.1DP.UnknownDeployment(type == null ? ((AI.Projects.1DP.DeploymentType)default) : new Projects.1DP.DeploymentType(type), name, serializedAdditionalRawData: null);
+}
+
+/// Initializes a new instance of .
+/// Name of the deployment.
+/// Publisher-specific name of the deployed model.
+/// Publisher-specific version of the deployed model.
+/// Name of the deployed model's publisher.
+/// Capabilities of deployed model.
+/// Sku of the model deployment.
+/// Name of the connection the deployment comes from.
+/// A new instance for mocking.
+public static Projects.1DP.ModelDeployment ModelDeployment(string name = null, string modelName = null, string modelVersion = null, string modelPublisher = null, IReadOnlyDictionary capabilities = null, Projects.1DP.Sku sku = (Projects.1DP.Sku)null,string connectionName = null)
+{
+capabilities ??= new Dictionary();
+
+return new Projects.1DP.ModelDeployment(
+ Projects.1DP.DeploymentType.ModelDeployment,
+ name,
+ serializedAdditionalRawData: null,
+ modelName,
+ modelVersion,
+ modelPublisher,
+ capabilities,
+ sku,
+ connectionName);
+}
+
+/// Initializes a new instance of .
+/// Sku capacity.
+/// Sku family.
+/// Sku name.
+/// Sku size.
+/// Sku tier.
+/// A new instance for mocking.
+public static Azure.AI.Projects .1DP.Sku Sku(long capacity = default, string family = (string)null, string name = (string)null, string size = (string)null, string tier = (string)null)
+{
+ return new Azure.AI.Projects.1DP.Sku(
+ capacity,
+ family,
+ name,
+ size,
+ tier,
+ serializedAdditionalRawData: null);
+}
+
+/// Initializes a new instance of .
+/// Type of index.
+/// Asset stage.
+/// A unique identifier for the asset, assetId probably?.
+/// The name of the resource.
+/// The version of the resource.
+/// The asset description text.
+/// Tag dictionary. Tags can be added, removed, and updated.
+/// A new instance for mocking.
+public static Azure.AI.Projects .1DP.Index Index(string type = (string)null, string stage = (string)null, string id = (string)null, string name = (string)null, string version = (string)null, string description = (string)null, IDictionary tags = (IDictionary)null)
+{
+ tags ??= new Dictionary();
+
+ return new Azure.AI.Projects.1DP.UnknownIndex(
+ type == null ? ((Azure.AI.Projects.1DP.IndexType)default) : new Azure.AI.Projects.1DP.IndexType(type),
+ stage,
+ id,
+ name,
+ version,
+ description,
+ tags,
+ serializedAdditionalRawData: null);
+}
+
+/// Initializes a new instance of .
+/// Asset stage.
+/// A unique identifier for the asset, assetId probably?.
+/// The name of the resource.
+/// The version of the resource.
+/// The asset description text.
+/// Tag dictionary. Tags can be added, removed, and updated.
+/// Name of connection to Azure AI Search.
+/// Name of index in Azure AI Search resource to attach.
+/// A new instance for mocking.
+public static Azure.AI.Projects .1DP.AzureAISearchIndex AzureAISearchIndex(string stage = (string)null, string id = (string)null, string name = (string)null, string version = (string)null, string description = (string)null, IDictionary tags = (IDictionary)null, string connectionName = (string)null, string indexName = (string)null)
+{
+ tags ??= new Dictionary();
+
+ return new Azure.AI.Projects.1DP.AzureAISearchIndex(
+ Azure.AI.Projects.1DP.IndexType.AzureSearch,
+ stage,
+ id,
+ name,
+ version,
+ description,
+ tags,
+ serializedAdditionalRawData: null,
+ connectionName,
+ indexName);
+}
+
+/// Initializes a new instance of .
+/// Asset stage.
+/// A unique identifier for the asset, assetId probably?.
+/// The name of the resource.
+/// The version of the resource.
+/// The asset description text.
+/// Tag dictionary. Tags can be added, removed, and updated.
+/// Vector store id of managed index.
+/// A new instance for mocking.
+public static Azure.AI.Projects .1DP.ManagedAzureAISearchIndex ManagedAzureAISearchIndex(string stage = (string)null, string id = (string)null, string name = (string)null, string version = (string)null, string description = (string)null, IDictionary tags = (IDictionary)null, string vectorStoreId = (string)null)
+{
+ tags ??= new Dictionary();
+
+ return new Azure.AI.Projects.1DP.ManagedAzureAISearchIndex(
+ Azure.AI.Projects.1DP.IndexType.ManagedAzureSearch,
+ stage,
+ id,
+ name,
+ version,
+ description,
+ tags,
+ serializedAdditionalRawData: null,
+ vectorStoreId);
+}
+
+/// Initializes a new instance of .
+/// Asset stage.
+/// A unique identifier for the asset, assetId probably?.
+/// The name of the resource.
+/// The version of the resource.
+/// The asset description text.
+/// Tag dictionary. Tags can be added, removed, and updated.
+/// Name of connection to CosmosDB.
+/// Name of the CosmosDB Database.
+/// Name of CosmosDB Container.
+/// Embedding model configuration.
+/// A new instance for mocking.
+public static Azure.AI.Projects .1DP.CosmosDBIndex CosmosDBIndex(string stage = (string)null, string id = (string)null, string name = (string)null, string version = (string)null, string description = (string)null, IDictionary tags = (IDictionary)null, string connectionName = (string)null, string databaseName = (string)null, string containerName = (string)null, Azure.AI.Projects.1DP.EmbeddingConfiguration embeddingConfiguration = (Azure.AI.Projects.1DP.EmbeddingConfiguration)null)
+{
+ tags ??= new Dictionary();
+
+ return new Azure.AI.Projects.1DP.CosmosDBIndex(
+ Azure.AI.Projects.1DP.IndexType.CosmosDB,
+ stage,
+ id,
+ name,
+ version,
+ description,
+ tags,
+ serializedAdditionalRawData: null,
+ connectionName,
+ databaseName,
+ containerName,
+ embeddingConfiguration);
+}
+
+/// Initializes a new instance of .
+/// [Required] Uri of the data. Example: https://go.microsoft.com/fwlink/?linkid=2202330.
+/// Dataset type.
+/// Indicates if dataset is reference only or managed by dataset service. If true, the underlying data will be deleted when the dataset version is deleted.
+/// Asset stage.
+/// A unique identifier for the asset, assetId probably?.
+/// The name of the resource.
+/// The version of the resource.
+/// The asset description text.
+/// Tag dictionary. Tags can be added, removed, and updated.
+/// A new instance for mocking.
+public static Azure.AI.Projects .1DP.DatasetVersion DatasetVersion(string datasetUri = (string)null, string type = (string)null, bool? isReference = (bool?)null, string stage = (string)null, string id = (string)null, string name = (string)null, string version = (string)null, string description = (string)null, IDictionary tags = (IDictionary)null)
+{
+ tags ??= new Dictionary();
+
+ return new Azure.AI.Projects.1DP.UnknownDatasetVersion(
+ datasetUri,
+ type == null ? ((Azure.AI.Projects.1DP.DatasetType)default) : new Azure.AI.Projects.1DP.DatasetType(type),
+ isReference,
+ stage,
+ id,
+ name,
+ version,
+ description,
+ tags,
+ serializedAdditionalRawData: null);
+}
+
+/// Initializes a new instance of .
+/// [Required] Uri of the data. Example: https://go.microsoft.com/fwlink/?linkid=2202330.
+/// Indicates if dataset is reference only or managed by dataset service. If true, the underlying data will be deleted when the dataset version is deleted.
+/// Asset stage.
+/// A unique identifier for the asset, assetId probably?.
+/// The name of the resource.
+/// The version of the resource.
+/// The asset description text.
+/// Tag dictionary. Tags can be added, removed, and updated.
+/// Indicates OpenAI Purpose. FileDatasets created with this field will be compatible with OpenAI-specific features.
+/// A new instance for mocking.
+public static Azure.AI.Projects .1DP.FileDatasetVersion FileDatasetVersion(string datasetUri = (string)null, bool? isReference = (bool?)null, string stage = (string)null, string id = (string)null, string name = (string)null, string version = (string)null, string description = (string)null, IDictionary tags = (IDictionary)null, string openAIPurpose = (string)null)
+{
+ tags ??= new Dictionary();
+
+ return new Azure.AI.Projects.1DP.FileDatasetVersion(
+ datasetUri,
+ Azure.AI.Projects.1DP.DatasetType.UriFile,
+ isReference,
+ stage,
+ id,
+ name,
+ version,
+ description,
+ tags,
+ serializedAdditionalRawData: null,
+ openAIPurpose);
+}
+
+/// Initializes a new instance of .
+/// [Required] Uri of the data. Example: https://go.microsoft.com/fwlink/?linkid=2202330.
+/// Indicates if dataset is reference only or managed by dataset service. If true, the underlying data will be deleted when the dataset version is deleted.
+/// Asset stage.
+/// A unique identifier for the asset, assetId probably?.
+/// The name of the resource.
+/// The version of the resource.
+/// The asset description text.
+/// Tag dictionary. Tags can be added, removed, and updated.
+/// A new instance for mocking.
+public static Azure.AI.Projects .1DP.FolderDatasetVersion FolderDatasetVersion(string datasetUri = (string)null, bool? isReference = (bool?)null, string stage = (string)null, string id = (string)null, string name = (string)null, string version = (string)null, string description = (string)null, IDictionary tags = (IDictionary)null)
+{
+ tags ??= new Dictionary();
+
+ return new Azure.AI.Projects.1DP.FolderDatasetVersion(
+ datasetUri,
+ Azure.AI.Projects.1DP.DatasetType.UriFolder,
+ isReference,
+ stage,
+ id,
+ name,
+ version,
+ description,
+ tags,
+ serializedAdditionalRawData: null);
+}
+
+/// Initializes a new instance of .
+/// If PendingUploadId is not provided, a random GUID will be used.
+/// Name of Azure blob storage connection to use for generating temporary SAS token.
+/// TemporaryBlobReference is the only supported type.
+/// A new instance for mocking.
+public static Azure.AI.Projects .1DP.PendingUploadRequest PendingUploadRequest(string pendingUploadId = (string)null, string connectionName = (string)null, Azure.AI.Projects.1DP.PendingUploadType pendingUploadType = default)
+{
+ return new Azure.AI.Projects.1DP.PendingUploadRequest(pendingUploadId, connectionName, pendingUploadType, serializedAdditionalRawData: null);
+}
+
+/// Initializes a new instance of .
+/// Container-level read, write, list SAS.
+/// ID for this upload request.
+/// Version of dataset to be created if user did not specify version when initially creating upload.
+/// TemporaryBlobReference is the only supported type.
+/// A new instance for mocking.
+public static Azure.AI.Projects .1DP.PendingUploadResponse PendingUploadResponse(Azure.AI.Projects.1DP.BlobReferenceForConsumption blobReferenceForConsumption = (Azure.AI.Projects.1DP.BlobReferenceForConsumption)null,string pendingUploadId = null,string datasetVersion = (string)null,Azure.AI.Projects.1DP.PendingUploadType pendingUploadType = default)
+{
+ return new Azure.AI.Projects.1DP.PendingUploadResponse(blobReferenceForConsumption, pendingUploadId, datasetVersion, pendingUploadType, serializedAdditionalRawData: null);
+}
+
+/// Initializes a new instance of .
+/// Blob URI path for client to upload data. Example: https://blob.windows.core.net/Container/Path.
+/// ARM ID of the storage account to use.
+/// Credential info to access the storage account.
+/// A new instance for mocking.
+public static Azure.AI.Projects .1DP.BlobReferenceForConsumption BlobReferenceForConsumption(string blobUri = (string)null, string storageAccountArmId = (string)null, Azure.AI.Projects.1DP.SasCredential credential = (Azure.AI.Projects.1DP.SasCredential)null)
+{
+ return new Azure.AI.Projects.1DP.BlobReferenceForConsumption(blobUri, storageAccountArmId, credential, serializedAdditionalRawData: null);
+}
+
+/// Initializes a new instance of .
+/// SAS uri.
+/// Type of credential.
+/// A new instance for mocking.
+public static Azure.AI.Projects .1DP.SasCredential SasCredential(string sasUri = (string)null, Azure.AI.Projects.1DP.SasCredentialType type = default)
+{
+ return new Azure.AI.Projects.1DP.SasCredential(sasUri, type, serializedAdditionalRawData: null);
+}
+
+/// Initializes a new instance of .
+/// Identifier of the evaluation.
+///
+/// Data for evaluation.
+/// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
+/// The available derived classes include .
+///
+/// Display Name for evaluation. It helps to find the evaluation easily in AI Foundry. It does not need to be unique.
+/// Description of the evaluation. It can be used to store additional information about the evaluation and is mutable.
+/// Status of the evaluation. It is set by service and is read-only.
+/// Evaluation's tags. Unlike properties, tags are fully mutable.
+/// Evaluation's properties. Unlike tags, properties are add-only. Once added, a property cannot be removed.
+/// Evaluators to be used for the evaluation.
+/// A new instance for mocking.
+public static Azure.AI.Projects .1DP.Evaluation Evaluation(string id = (string)null, Azure.AI.Projects.1DP.InputData data = (Azure.AI.Projects.1DP.InputData)null,string displayName = null,string description = (string)null,string status = null, global::System.Collections.Generic.IDictionary tags = (global::System.Collections.Generic.IDictionary)null,IDictionary properties = null, global::System.Collections.Generic.IDictionary evaluators = (global::System.Collections.Generic.IDictionary)null)
+{
+ tags ??= new Dictionary();
+ properties ??= new global::System.Collections.Generic.Dictionary();
+ evaluators ??= new Dictionary;
+
+ return new Azure.AI.Projects.1DP.Evaluation(
+ id,
+ data,
+ displayName,
+ description,
+ status,
+ tags,
+ properties,
+ evaluators,
+ serializedAdditionalRawData: null);
+}
+
+/// Initializes a new instance of .
+/// The name of the resource.
+/// Category of the connection.
+/// The connection URL to be used for this service.
+/// The authentication type used by the connection.
+/// Metadata of the connection.
+/// A new instance for mocking.
+public static Azure.AI.Projects .1DP.Connection Connection(string name = (string)null, Azure.AI.Projects.1DP.ConnectionType type = default, string target = (string)null, Azure.AI.Projects.1DP.AuthenticationType authType = default, IReadOnlyDictionary metadata = (IReadOnlyDictionary)null)
+{
+ metadata ??= new Dictionary();
+
+ return new Azure.AI.Projects.1DP.Connection(
+ name,
+ type,
+ target,
+ authType,
+ metadata,
+ serializedAdditionalRawData: null);
+}
+
+/// Initializes a new instance of .
+/// The Connection items on this page.
+/// The link to the next page of items.
+/// A new instance for mocking.
+public static Azure.AI.Projects .1DP.PagedConnection PagedConnection(System.Collections.Generic.IEnumerable value = (System.Collections.Generic.IEnumerable < Azure.AI.Projects.1DP.Connection>)null,Uri nextLink = null)
+{
+ value ??= new List;
+
+ return new Azure.AI.Projects.1DP.PagedConnection(value?.ToList(), nextLink, serializedAdditionalRawData: null);
+}
+
+/// Initializes a new instance of .
+/// The Evaluation items on this page.
+/// The link to the next page of items.
+/// A new instance for mocking.
+public static Azure.AI.Projects .1DP.PagedEvaluation PagedEvaluation(System.Collections.Generic.IEnumerable value = (System.Collections.Generic.IEnumerable < Azure.AI.Projects.1DP.Evaluation>)null,Uri nextLink = null)
+{
+ value ??= new List;
+
+ return new Azure.AI.Projects.1DP.PagedEvaluation(value?.ToList(), nextLink, serializedAdditionalRawData: null);
+}
+
+/// Initializes a new instance of .
+///
+/// The DatasetVersion items on this page
+/// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
+/// The available derived classes include and .
+///
+/// The link to the next page of items.
+/// A new instance for mocking.
+public static Azure.AI.Projects .1DP.PagedDatasetVersion PagedDatasetVersion(System.Collections.Generic.IEnumerable value = (System.Collections.Generic.IEnumerable < Azure.AI.Projects.1DP.DatasetVersion>)null,Uri nextLink = null)
+{
+ value ??= new List;
+
+ return new Azure.AI.Projects.1DP.PagedDatasetVersion(value?.ToList(), nextLink, serializedAdditionalRawData: null);
+}
+
+/// Initializes a new instance of .
+///
+/// The Index items on this page
+/// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
+/// The available derived classes include , and .
+///
+/// The link to the next page of items.
+/// A new instance for mocking.
+public static Azure.AI.Projects .1DP.PagedIndex PagedIndex(System.Collections.Generic.IEnumerable value = (System.Collections.Generic.IEnumerable < Azure.AI.Projects.1DP.Index>)null,Uri nextLink = null)
+{
+ value ??= new List;
+
+ return new Azure.AI.Projects.1DP.PagedIndex(value?.ToList(), nextLink, serializedAdditionalRawData: null);
+}
+
+/// Initializes a new instance of .
+///
+/// The Deployment items on this page
+/// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
+/// The available derived classes include .
+///
+/// The link to the next page of items.
+/// A new instance for mocking.
+public static Azure.AI.Projects .1DP.PagedDeployment PagedDeployment(System.Collections.Generic.IEnumerable value = (System.Collections.Generic.IEnumerable < Azure.AI.Projects.1DP.Deployment>)null,Uri nextLink = null)
+{
+ value ??= new List;
+
+ return new Azure.AI.Projects.1DP.PagedDeployment(value?.ToList(), nextLink, serializedAdditionalRawData: null);
+}
+
+/// Initializes a new instance of .
+/// The RedTeam items on this page.
+/// The link to the next page of items.
+/// A new instance for mocking.
+public static Azure.AI.Projects .1DP.PagedRedTeam PagedRedTeam(System.Collections.Generic.IEnumerable value = (System.Collections.Generic.IEnumerable < Azure.AI.Projects.1DP.RedTeam>)null,Uri nextLink = null)
+{
+ value ??= new List;
+
+ return new Azure.AI.Projects.1DP.PagedRedTeam(value?.ToList(), nextLink, serializedAdditionalRawData: null);
+}
+}
+}
diff --git a/sdk/ai/Azure.AI.Projects.1DP/src/Generated/Connections.cs b/sdk/ai/Azure.AI.Projects.1DP/src/Generated/Connections.cs
new file mode 100644
index 000000000000..0cdf8b8ac174
--- /dev/null
+++ b/sdk/ai/Azure.AI.Projects.1DP/src/Generated/Connections.cs
@@ -0,0 +1,165 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Threading;
+using System.Threading.Tasks;
+using Autorest.CSharp.Core;
+using Azure.Core;
+using Azure.Core.Pipeline;
+
+namespace Azure.AI.Projects.1DP
+{
+
+/// List all connections in the project.
+/// Specific type of connection to return in list.
+/// The number of result items to return.
+/// The number of result items to skip.
+/// The maximum number of result items per page.
+/// The cancellation token to use.
+///
+public virtual Azure.Pageable GetConnections(Projects.1DP.ConnectionType? connectionType = (Projects.1DP.ConnectionType?)null,int? maxCount = null,int? skip = null,int? maxpagesize = null, global::System.Threading.CancellationToken cancellationToken = default)
+{
+RequestContext context = cancellationToken.CanBeCanceled ? new RequestContext { CancellationToken = cancellationToken } : null;
+HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetConnectionsRequest(connectionType?.ToString(), maxCount, skip, pageSizeHint, context);
+HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetConnectionsNextPageRequest(nextLink, connectionType?.ToString(), maxCount, skip, pageSizeHint, context);
+return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => Projects.1DP.Connection.DeserializeConnection(e), ClientDiagnostics, _pipeline, "Connections.GetConnections", "value", "nextLink", maxpagesize, context);
+}
+
+///
+/// [Protocol Method] List all connections in the project
+///
+/// -
+///
+/// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
+///
+///
+/// -
+///
+/// Please try the simpler convenience overload with strongly typed models first.
+///
+///
+///
+///
+/// Specific type of connection to return in list. Allowed values: "AzureOpenAI" | "AzureBlob" | "CognitiveSearch" | "CosmosDB" | "ApiKey" | "AppInsights" | "CustomKeys".
+/// The number of result items to return.
+/// The number of result items to skip.
+/// The maximum number of result items per page.
+/// The request context, which can override default behaviors of the client pipeline on a per-call basis.
+/// Service returned a non-success status code.
+/// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below.
+///
+public virtual Azure.AsyncPageable GetConnectionsAsync(string connectionType, int? maxCount, int? skip, int? maxpagesize, Azure.RequestContext context)
+{
+ HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetConnectionsRequest(connectionType, maxCount, skip, pageSizeHint, context);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetConnectionsNextPageRequest(nextLink, connectionType, maxCount, skip, pageSizeHint, context);
+ return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => BinaryData.FromString(e.GetRawText()), ClientDiagnostics, _pipeline, "Connections.GetConnections", "value", "nextLink", maxpagesize, context);
+}
+
+///
+/// [Protocol Method] List all connections in the project
+///
+/// -
+///
+/// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
+///
+///
+/// -
+///
+/// Please try the simpler convenience overload with strongly typed models first.
+///
+///
+///
+///
+/// Specific type of connection to return in list. Allowed values: "AzureOpenAI" | "AzureBlob" | "CognitiveSearch" | "CosmosDB" | "ApiKey" | "AppInsights" | "CustomKeys".
+/// The number of result items to return.
+/// The number of result items to skip.
+/// The maximum number of result items per page.
+/// The request context, which can override default behaviors of the client pipeline on a per-call basis.
+/// Service returned a non-success status code.
+/// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below.
+///
+public virtual Azure.Pageable GetConnections(string connectionType, int? maxCount, int? skip, int? maxpagesize, Azure.RequestContext context)
+{
+ HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetConnectionsRequest(connectionType, maxCount, skip, pageSizeHint, context);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetConnectionsNextPageRequest(nextLink, connectionType, maxCount, skip, pageSizeHint, context);
+ return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => BinaryData.FromString(e.GetRawText()), ClientDiagnostics, _pipeline, "Connections.GetConnections", "value", "nextLink", maxpagesize, context);
+}
+
+internal HttpMessage CreateGetConnectionRequest(string name, Azure.RequestContext context)
+{
+ var message = _pipeline.CreateMessage(context, ResponseClassifier200);
+ var request = message.Request;
+ request.Method = RequestMethod.Get;
+ var uri = new RawRequestUriBuilder();
+ uri.Reset(_endpoint);
+ uri.AppendPath("/connections/", false);
+ uri.AppendPath(name, true);
+ uri.AppendQuery("api-version", _apiVersion, true);
+ request.Uri = uri;
+ request.Headers.Add("Accept", "application/json");
+ return message;
+}
+
+internal HttpMessage CreateGetConnectionsRequest(string connectionType, int? maxCount, int? skip, int? maxpagesize, Azure.RequestContext context)
+{
+ var message = _pipeline.CreateMessage(context, ResponseClassifier200);
+ var request = message.Request;
+ request.Method = RequestMethod.Get;
+ var uri = new RawRequestUriBuilder();
+ uri.Reset(_endpoint);
+ uri.AppendPath("/connections", false);
+ uri.AppendQuery("api-version", _apiVersion, true);
+ if (connectionType != null)
+ {
+ uri.AppendQuery("connectionType", connectionType, true);
+ }
+ if (maxCount != null)
+ {
+ uri.AppendQuery("top", maxCount.Value, true);
+ }
+ if (skip != null)
+ {
+ uri.AppendQuery("skip", skip.Value, true);
+ }
+ if (maxpagesize != null)
+ {
+ uri.AppendQuery("maxpagesize", maxpagesize.Value, true);
+ }
+ request.Uri = uri;
+ request.Headers.Add("Accept", "application/json");
+ return message;
+}
+
+internal HttpMessage CreateGetConnectionsNextPageRequest(string nextLink, string connectionType, int? maxCount, int? skip, int? maxpagesize, Azure.RequestContext context)
+{
+ var message = _pipeline.CreateMessage(context, ResponseClassifier200);
+ var request = message.Request;
+ request.Method = RequestMethod.Get;
+ var uri = new RawRequestUriBuilder();
+ uri.Reset(_endpoint);
+ uri.AppendRawNextLink(nextLink, false);
+ request.Uri = uri;
+ request.Headers.Add("Accept", "application/json");
+ return message;
+}
+
+private static Azure.RequestContext DefaultRequestContext = new Azure.RequestContext();
+internal static Azure.RequestContext FromCancellationToken(CancellationToken cancellationToken = default)
+{
+ if (!cancellationToken.CanBeCanceled)
+ {
+ return DefaultRequestContext;
+ }
+
+ return new Azure.RequestContext() { CancellationToken = cancellationToken };
+}
+
+private static ResponseClassifier _responseClassifier200;
+private static ResponseClassifier ResponseClassifier200 => _responseClassifier200 ??= new StatusCodeClassifier(stackalloc ushort[] { 200 });
+}
+}
diff --git a/sdk/ai/Azure.AI.Projects.1DP/src/Generated/Datasets.cs b/sdk/ai/Azure.AI.Projects.1DP/src/Generated/Datasets.cs
new file mode 100644
index 000000000000..e4945438e6a7
--- /dev/null
+++ b/sdk/ai/Azure.AI.Projects.1DP/src/Generated/Datasets.cs
@@ -0,0 +1,415 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Threading;
+using System.Threading.Tasks;
+using Autorest.CSharp.Core;
+using Azure.Core;
+using Azure.Core.Pipeline;
+
+namespace Azure.AI.Projects.1DP
+{
+
+/// List all versions of the given DatasetVersion.
+/// The name of the resource.
+/// Top count of results, top count cannot be greater than the page size. If topCount > page size, results with be default page size count will be returned.
+/// Continuation token for pagination.
+/// Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2.
+/// [ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All] View type for including/excluding (for example) archived entities.
+/// The cancellation token to use.
+/// is null.
+/// is an empty string, and was expected to be non-empty.
+///
+public virtual Azure.Pageable GetVersions(string name, int? maxCount = null, string skip = null, string tags = null, Projects.1DP.ListViewType? listViewType = (Projects.1DP.ListViewType?)null,CancellationToken cancellationToken = default)
+{
+Projects.1DP.Argument.AssertNotNullOrEmpty(name, nameof(name));
+
+RequestContext context = cancellationToken.CanBeCanceled ? new RequestContext { CancellationToken = cancellationToken } : null;
+HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetVersionsRequest(name, maxCount, skip, tags, listViewType?.ToString(), context);
+HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetVersionsNextPageRequest(nextLink, name, maxCount, skip, tags, listViewType?.ToString(), context);
+return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => Projects.1DP.DatasetVersion.DeserializeDatasetVersion(e), ClientDiagnostics, _pipeline, "Datasets.GetVersions", "value", "nextLink", context);
+}
+
+///
+/// [Protocol Method] List all versions of the given DatasetVersion
+///
+/// -
+///
+/// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
+///
+///
+/// -
+///
+/// Please try the simpler convenience overload with strongly typed models first.
+///
+///
+///
+///
+/// The name of the resource.
+/// Top count of results, top count cannot be greater than the page size. If topCount > page size, results with be default page size count will be returned.
+/// Continuation token for pagination.
+/// Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2.
+/// [ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All] View type for including/excluding (for example) archived entities. Allowed values: "ActiveOnly" | "ArchivedOnly" | "All".
+/// The request context, which can override default behaviors of the client pipeline on a per-call basis.
+/// is null.
+/// is an empty string, and was expected to be non-empty.
+/// Service returned a non-success status code.
+/// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below.
+///
+public virtual Azure.AsyncPageable GetVersionsAsync(string name, int? maxCount, string skip, string tags, string listViewType, Azure.RequestContext context)
+{
+ Azure.AI.Projects.1DP.Argument.AssertNotNullOrEmpty(name, nameof(name));
+
+ HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetVersionsRequest(name, maxCount, skip, tags, listViewType, context);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetVersionsNextPageRequest(nextLink, name, maxCount, skip, tags, listViewType, context);
+ return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => BinaryData.FromString(e.GetRawText()), ClientDiagnostics, _pipeline, "Datasets.GetVersions", "value", "nextLink", context);
+}
+
+///
+/// [Protocol Method] List all versions of the given DatasetVersion
+///
+/// -
+///
+/// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
+///
+///
+/// -
+///
+/// Please try the simpler convenience overload with strongly typed models first.
+///
+///
+///
+///
+/// The name of the resource.
+/// Top count of results, top count cannot be greater than the page size. If topCount > page size, results with be default page size count will be returned.
+/// Continuation token for pagination.
+/// Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2.
+/// [ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All] View type for including/excluding (for example) archived entities. Allowed values: "ActiveOnly" | "ArchivedOnly" | "All".
+/// The request context, which can override default behaviors of the client pipeline on a per-call basis.
+/// is null.
+/// is an empty string, and was expected to be non-empty.
+/// Service returned a non-success status code.
+/// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below.
+///
+public virtual Azure.Pageable GetVersions(string name, int? maxCount, string skip, string tags, string listViewType, Azure.RequestContext context)
+{
+ Azure.AI.Projects.1DP.Argument.AssertNotNullOrEmpty(name, nameof(name));
+
+ HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetVersionsRequest(name, maxCount, skip, tags, listViewType, context);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetVersionsNextPageRequest(nextLink, name, maxCount, skip, tags, listViewType, context);
+ return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => BinaryData.FromString(e.GetRawText()), ClientDiagnostics, _pipeline, "Datasets.GetVersions", "value", "nextLink", context);
+}
+
+/// List the latest version of each DatasetVersion.
+/// Top count of results, top count cannot be greater than the page size. If topCount > page size, results with be default page size count will be returned.
+/// Continuation token for pagination.
+/// Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2.
+/// [ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All] View type for including/excluding (for example) archived entities.
+/// The cancellation token to use.
+///
+public virtual Azure.AsyncPageable GetLatestsAsync(int? maxCount = null, string skip = null, string tags = null, Azure.AI.Projects.1DP.ListViewType? listViewType = (Azure.AI.Projects.1DP.ListViewType?)null,CancellationToken cancellationToken = default)
+{
+ Azure.RequestContext context = cancellationToken.CanBeCanceled ? new Azure.RequestContext { CancellationToken = cancellationToken } : null;
+ HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetLatestsRequest(maxCount, skip, tags, listViewType?.ToString(), context);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetLatestsNextPageRequest(nextLink, maxCount, skip, tags, listViewType?.ToString(), context);
+ return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => Azure.AI.Projects.1DP.DatasetVersion.DeserializeDatasetVersion(e), ClientDiagnostics, _pipeline, "Datasets.GetLatests", "value", "nextLink", context);
+}
+
+/// List the latest version of each DatasetVersion.
+/// Top count of results, top count cannot be greater than the page size. If topCount > page size, results with be default page size count will be returned.
+/// Continuation token for pagination.
+/// Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2.
+/// [ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All] View type for including/excluding (for example) archived entities.
+/// The cancellation token to use.
+///
+public virtual Azure.Pageable GetLatests(int? maxCount = null, string skip = null, string tags = null, Azure.AI.Projects.1DP.ListViewType? listViewType = (Azure.AI.Projects.1DP.ListViewType?)null,CancellationToken cancellationToken = default)
+{
+ Azure.RequestContext context = cancellationToken.CanBeCanceled ? new Azure.RequestContext { CancellationToken = cancellationToken } : null;
+ HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetLatestsRequest(maxCount, skip, tags, listViewType?.ToString(), context);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetLatestsNextPageRequest(nextLink, maxCount, skip, tags, listViewType?.ToString(), context);
+ return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => Azure.AI.Projects.1DP.DatasetVersion.DeserializeDatasetVersion(e), ClientDiagnostics, _pipeline, "Datasets.GetLatests", "value", "nextLink", context);
+}
+
+///
+/// [Protocol Method] List the latest version of each DatasetVersion
+///
+/// -
+///
+/// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
+///
+///
+/// -
+///
+/// Please try the simpler convenience overload with strongly typed models first.
+///
+///
+///
+///
+/// Top count of results, top count cannot be greater than the page size. If topCount > page size, results with be default page size count will be returned.
+/// Continuation token for pagination.
+/// Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2.
+/// [ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All] View type for including/excluding (for example) archived entities. Allowed values: "ActiveOnly" | "ArchivedOnly" | "All".
+/// The request context, which can override default behaviors of the client pipeline on a per-call basis.
+/// Service returned a non-success status code.
+/// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below.
+///
+public virtual Azure.AsyncPageable GetLatestsAsync(int? maxCount, string skip, string tags, string listViewType, Azure.RequestContext context)
+{
+ HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetLatestsRequest(maxCount, skip, tags, listViewType, context);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetLatestsNextPageRequest(nextLink, maxCount, skip, tags, listViewType, context);
+ return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => BinaryData.FromString(e.GetRawText()), ClientDiagnostics, _pipeline, "Datasets.GetLatests", "value", "nextLink", context);
+}
+
+///
+/// [Protocol Method] List the latest version of each DatasetVersion
+///
+/// -
+///
+/// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
+///
+///
+/// -
+///
+/// Please try the simpler convenience overload with strongly typed models first.
+///
+///
+///
+///
+/// Top count of results, top count cannot be greater than the page size. If topCount > page size, results with be default page size count will be returned.
+/// Continuation token for pagination.
+/// Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2.
+/// [ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All] View type for including/excluding (for example) archived entities. Allowed values: "ActiveOnly" | "ArchivedOnly" | "All".
+/// The request context, which can override default behaviors of the client pipeline on a per-call basis.
+/// Service returned a non-success status code.
+/// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below.
+///
+public virtual Azure.Pageable GetLatests(int? maxCount, string skip, string tags, string listViewType, Azure.RequestContext context)
+{
+ HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetLatestsRequest(maxCount, skip, tags, listViewType, context);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetLatestsNextPageRequest(nextLink, maxCount, skip, tags, listViewType, context);
+ return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => BinaryData.FromString(e.GetRawText()), ClientDiagnostics, _pipeline, "Datasets.GetLatests", "value", "nextLink", context);
+}
+
+internal HttpMessage CreateGetVersionsRequest(string name, int? maxCount, string skip, string tags, string listViewType, Azure.RequestContext context)
+{
+ var message = _pipeline.CreateMessage(context, ResponseClassifier200);
+ var request = message.Request;
+ request.Method = RequestMethod.Get;
+ var uri = new RawRequestUriBuilder();
+ uri.Reset(_endpoint);
+ uri.AppendPath("/datasets/", false);
+ uri.AppendPath(name, true);
+ uri.AppendPath("/versions", false);
+ uri.AppendQuery("api-version", _apiVersion, true);
+ if (maxCount != null)
+ {
+ uri.AppendQuery("top", maxCount.Value, true);
+ }
+ if (skip != null)
+ {
+ uri.AppendQuery("skip", skip, true);
+ }
+ if (tags != null)
+ {
+ uri.AppendQuery("tags", tags, true);
+ }
+ if (listViewType != null)
+ {
+ uri.AppendQuery("listViewType", listViewType, true);
+ }
+ request.Uri = uri;
+ request.Headers.Add("Accept", "application/json");
+ return message;
+}
+
+internal HttpMessage CreateGetLatestsRequest(int? maxCount, string skip, string tags, string listViewType, Azure.RequestContext context)
+{
+ var message = _pipeline.CreateMessage(context, ResponseClassifier200);
+ var request = message.Request;
+ request.Method = RequestMethod.Get;
+ var uri = new RawRequestUriBuilder();
+ uri.Reset(_endpoint);
+ uri.AppendPath("/datasets", false);
+ uri.AppendQuery("api-version", _apiVersion, true);
+ if (maxCount != null)
+ {
+ uri.AppendQuery("top", maxCount.Value, true);
+ }
+ if (skip != null)
+ {
+ uri.AppendQuery("skip", skip, true);
+ }
+ if (tags != null)
+ {
+ uri.AppendQuery("tags", tags, true);
+ }
+ if (listViewType != null)
+ {
+ uri.AppendQuery("listViewType", listViewType, true);
+ }
+ request.Uri = uri;
+ request.Headers.Add("Accept", "application/json");
+ return message;
+}
+
+internal HttpMessage CreateGetVersionRequest(string name, string version, Azure.RequestContext context)
+{
+ var message = _pipeline.CreateMessage(context, ResponseClassifier200);
+ var request = message.Request;
+ request.Method = RequestMethod.Get;
+ var uri = new RawRequestUriBuilder();
+ uri.Reset(_endpoint);
+ uri.AppendPath("/datasets/", false);
+ uri.AppendPath(name, true);
+ uri.AppendPath("/versions/", false);
+ uri.AppendPath(version, true);
+ uri.AppendQuery("api-version", _apiVersion, true);
+ request.Uri = uri;
+ request.Headers.Add("Accept", "application/json");
+ return message;
+}
+
+internal HttpMessage CreateDeleteVersionRequest(string name, string version, Azure.RequestContext context)
+{
+ var message = _pipeline.CreateMessage(context, ResponseClassifier204);
+ var request = message.Request;
+ request.Method = RequestMethod.Delete;
+ var uri = new RawRequestUriBuilder();
+ uri.Reset(_endpoint);
+ uri.AppendPath("/datasets/", false);
+ uri.AppendPath(name, true);
+ uri.AppendPath("/versions/", false);
+ uri.AppendPath(version, true);
+ uri.AppendQuery("api-version", _apiVersion, true);
+ request.Uri = uri;
+ request.Headers.Add("Accept", "application/json");
+ return message;
+}
+
+internal HttpMessage CreateCreateRequest(string name, RequestContent content, Azure.RequestContext context)
+{
+ var message = _pipeline.CreateMessage(context, ResponseClassifier200);
+ var request = message.Request;
+ request.Method = RequestMethod.Post;
+ var uri = new RawRequestUriBuilder();
+ uri.Reset(_endpoint);
+ uri.AppendPath("/datasets/", false);
+ uri.AppendPath(name, true);
+ uri.AppendPath("/versions", false);
+ uri.AppendQuery("api-version", _apiVersion, true);
+ request.Uri = uri;
+ request.Headers.Add("Accept", "application/json");
+ request.Headers.Add("Repeatability-Request-ID", Guid.NewGuid());
+ request.Headers.Add("Repeatability-First-Sent", DateTimeOffset.Now, "R");
+ request.Headers.Add("Content-Type", "application/json");
+ request.Content = content;
+ return message;
+}
+
+internal HttpMessage CreateCreateVersionRequest(string name, string version, RequestContent content, Azure.RequestContext context)
+{
+ var message = _pipeline.CreateMessage(context, ResponseClassifier200201);
+ var request = message.Request;
+ request.Method = RequestMethod.Put;
+ var uri = new RawRequestUriBuilder();
+ uri.Reset(_endpoint);
+ uri.AppendPath("/datasets/", false);
+ uri.AppendPath(name, true);
+ uri.AppendPath("/versions/", false);
+ uri.AppendPath(version, true);
+ uri.AppendQuery("api-version", _apiVersion, true);
+ request.Uri = uri;
+ request.Headers.Add("Accept", "application/json");
+ request.Headers.Add("Content-Type", "application/json");
+ request.Content = content;
+ return message;
+}
+
+internal HttpMessage CreateStartPendingUploadVersionRequest(string name, string version, RequestContent content, Azure.RequestContext context)
+{
+ var message = _pipeline.CreateMessage(context, ResponseClassifier200);
+ var request = message.Request;
+ request.Method = RequestMethod.Post;
+ var uri = new RawRequestUriBuilder();
+ uri.Reset(_endpoint);
+ uri.AppendPath("/datasets/", false);
+ uri.AppendPath(name, true);
+ uri.AppendPath("/versions/", false);
+ uri.AppendPath(version, true);
+ uri.AppendPath("/startPendingUpload", false);
+ uri.AppendQuery("api-version", _apiVersion, true);
+ request.Uri = uri;
+ request.Headers.Add("Accept", "application/json");
+ request.Headers.Add("Content-Type", "application/json");
+ request.Content = content;
+ return message;
+}
+
+internal HttpMessage CreateStartPendingUploadRequest(string name, RequestContent content, Azure.RequestContext context)
+{
+ var message = _pipeline.CreateMessage(context, ResponseClassifier200);
+ var request = message.Request;
+ request.Method = RequestMethod.Post;
+ var uri = new RawRequestUriBuilder();
+ uri.Reset(_endpoint);
+ uri.AppendPath("/datasets/", false);
+ uri.AppendPath(name, true);
+ uri.AppendPath("/startPendingUpload", false);
+ uri.AppendQuery("api-version", _apiVersion, true);
+ request.Uri = uri;
+ request.Headers.Add("Accept", "application/json");
+ request.Headers.Add("Content-Type", "application/json");
+ request.Content = content;
+ return message;
+}
+
+internal HttpMessage CreateGetVersionsNextPageRequest(string nextLink, string name, int? maxCount, string skip, string tags, string listViewType, Azure.RequestContext context)
+{
+ var message = _pipeline.CreateMessage(context, ResponseClassifier200);
+ var request = message.Request;
+ request.Method = RequestMethod.Get;
+ var uri = new RawRequestUriBuilder();
+ uri.Reset(_endpoint);
+ uri.AppendRawNextLink(nextLink, false);
+ request.Uri = uri;
+ request.Headers.Add("Accept", "application/json");
+ return message;
+}
+
+internal HttpMessage CreateGetLatestsNextPageRequest(string nextLink, int? maxCount, string skip, string tags, string listViewType, Azure.RequestContext context)
+{
+ var message = _pipeline.CreateMessage(context, ResponseClassifier200);
+ var request = message.Request;
+ request.Method = RequestMethod.Get;
+ var uri = new RawRequestUriBuilder();
+ uri.Reset(_endpoint);
+ uri.AppendRawNextLink(nextLink, false);
+ request.Uri = uri;
+ request.Headers.Add("Accept", "application/json");
+ return message;
+}
+
+private static Azure.RequestContext DefaultRequestContext = new Azure.RequestContext();
+internal static Azure.RequestContext FromCancellationToken(CancellationToken cancellationToken = default)
+{
+ if (!cancellationToken.CanBeCanceled)
+ {
+ return DefaultRequestContext;
+ }
+
+ return new Azure.RequestContext() { CancellationToken = cancellationToken };
+}
+
+private static ResponseClassifier _responseClassifier200;
+private static ResponseClassifier ResponseClassifier200 => _responseClassifier200 ??= new StatusCodeClassifier(stackalloc ushort[] { 200 });
+private static ResponseClassifier _responseClassifier204;
+private static ResponseClassifier ResponseClassifier204 => _responseClassifier204 ??= new StatusCodeClassifier(stackalloc ushort[] { 204 });
+private static ResponseClassifier _responseClassifier200201;
+private static ResponseClassifier ResponseClassifier200201 => _responseClassifier200201 ??= new StatusCodeClassifier(stackalloc ushort[] { 200, 201 });
+}
+}
diff --git a/sdk/ai/Azure.AI.Projects.1DP/src/Generated/Docs/Connections.xml b/sdk/ai/Azure.AI.Projects.1DP/src/Generated/Docs/Connections.xml
new file mode 100644
index 000000000000..a27f30ed7a64
--- /dev/null
+++ b/sdk/ai/Azure.AI.Projects.1DP/src/Generated/Docs/Connections.xml
@@ -0,0 +1,225 @@
+
+
+
+
+
+This sample shows how to call GetConnectionAsync.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Connections client = new Projects.1DP.AIProjectClient(endpoint, credential).GetConnectionsClient(apiVersion: "2025-05-15-preview");
+
+Azure.Response < AI.Projects.1DP.Connection > response = await client.GetConnectionAsync("");
+]]>
+This sample shows how to call GetConnectionAsync with all parameters.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Connections client = new Projects.1DP.AIProjectClient(endpoint, credential).GetConnectionsClient(apiVersion: "2025-05-15-preview");
+
+Azure.Response < AI.Projects.1DP.Connection > response = await client.GetConnectionAsync("");
+]]>
+
+
+
+This sample shows how to call GetConnection.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Connections client = new Projects.1DP.AIProjectClient(endpoint, credential).GetConnectionsClient(apiVersion: "2025-05-15-preview");
+
+Azure.Response < AI.Projects.1DP.Connection > response = client.GetConnection("");
+]]>
+This sample shows how to call GetConnection with all parameters.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Connections client = new Projects.1DP.AIProjectClient(endpoint, credential).GetConnectionsClient(apiVersion: "2025-05-15-preview");
+
+Azure.Response < AI.Projects.1DP.Connection > response = client.GetConnection("");
+]]>
+
+
+
+This sample shows how to call GetConnectionAsync and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Connections client = new Projects.1DP.AIProjectClient(endpoint, credential).GetConnectionsClient(apiVersion: "2025-05-15-preview");
+
+Response response = await client.GetConnectionAsync("", (RequestContext)null);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("name").ToString());
+Console.WriteLine(result.GetProperty("type").ToString());
+Console.WriteLine(result.GetProperty("target").ToString());
+Console.WriteLine(result.GetProperty("authType").ToString());
+Console.WriteLine(result.GetProperty("metadata").GetProperty("").ToString());
+]]>
+This sample shows how to call GetConnectionAsync with all parameters and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Connections client = new Projects.1DP.AIProjectClient(endpoint, credential).GetConnectionsClient(apiVersion: "2025-05-15-preview");
+
+Response response = await client.GetConnectionAsync("", (RequestContext)null);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("name").ToString());
+Console.WriteLine(result.GetProperty("type").ToString());
+Console.WriteLine(result.GetProperty("target").ToString());
+Console.WriteLine(result.GetProperty("authType").ToString());
+Console.WriteLine(result.GetProperty("metadata").GetProperty("").ToString());
+]]>
+
+
+
+This sample shows how to call GetConnection and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Connections client = new Projects.1DP.AIProjectClient(endpoint, credential).GetConnectionsClient(apiVersion: "2025-05-15-preview");
+
+Response response = client.GetConnection("", (RequestContext)null);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("name").ToString());
+Console.WriteLine(result.GetProperty("type").ToString());
+Console.WriteLine(result.GetProperty("target").ToString());
+Console.WriteLine(result.GetProperty("authType").ToString());
+Console.WriteLine(result.GetProperty("metadata").GetProperty("").ToString());
+]]>
+This sample shows how to call GetConnection with all parameters and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Connections client = new Projects.1DP.AIProjectClient(endpoint, credential).GetConnectionsClient(apiVersion: "2025-05-15-preview");
+
+Response response = client.GetConnection("", (RequestContext)null);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("name").ToString());
+Console.WriteLine(result.GetProperty("type").ToString());
+Console.WriteLine(result.GetProperty("target").ToString());
+Console.WriteLine(result.GetProperty("authType").ToString());
+Console.WriteLine(result.GetProperty("metadata").GetProperty("").ToString());
+]]>
+
+
+
+This sample shows how to call GetConnectionsAsync.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Connections client = new Projects.1DP.AIProjectClient(endpoint, credential).GetConnectionsClient(apiVersion: "2025-05-15-preview");
+
+await foreach (Projects.1DP.Connection item in client.GetConnectionsAsync())
+{
+}
+]]>
+This sample shows how to call GetConnectionsAsync with all parameters.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Connections client = new Projects.1DP.AIProjectClient(endpoint, credential).GetConnectionsClient(apiVersion: "2025-05-15-preview");
+
+await foreach (Projects.1DP.Connection item in client.GetConnectionsAsync(connectionType: AI.Projects.1DP.ConnectionType.AzureOpenAI, maxCount: 1234, skip: 1234, maxpagesize: 1234))
+{
+}
+]]>
+
+
+
+This sample shows how to call GetConnections.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Connections client = new Projects.1DP.AIProjectClient(endpoint, credential).GetConnectionsClient(apiVersion: "2025-05-15-preview");
+
+foreach (Projects.1DP.Connection item in client.GetConnections())
+{
+}
+]]>
+This sample shows how to call GetConnections with all parameters.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Connections client = new Projects.1DP.AIProjectClient(endpoint, credential).GetConnectionsClient(apiVersion: "2025-05-15-preview");
+
+foreach (Projects.1DP.Connection item in client.GetConnections(connectionType: AI.Projects.1DP.ConnectionType.AzureOpenAI, maxCount: 1234, skip: 1234, maxpagesize: 1234))
+{
+}
+]]>
+
+
+
+This sample shows how to call GetConnectionsAsync and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Connections client = new Projects.1DP.AIProjectClient(endpoint, credential).GetConnectionsClient(apiVersion: "2025-05-15-preview");
+
+await foreach (BinaryData item in client.GetConnectionsAsync((string)null, (int?)null, (int?)null, (int?)null, (RequestContext)null))
+{
+ JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement;
+ Console.WriteLine(result.GetProperty("name").ToString());
+ Console.WriteLine(result.GetProperty("type").ToString());
+ Console.WriteLine(result.GetProperty("target").ToString());
+ Console.WriteLine(result.GetProperty("authType").ToString());
+ Console.WriteLine(result.GetProperty("metadata").GetProperty("").ToString());
+}
+]]>
+This sample shows how to call GetConnectionsAsync with all parameters and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Connections client = new Projects.1DP.AIProjectClient(endpoint, credential).GetConnectionsClient(apiVersion: "2025-05-15-preview");
+
+await foreach (BinaryData item in client.GetConnectionsAsync("AzureOpenAI", 1234, 1234, 1234, (RequestContext)null))
+{
+ JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement;
+ Console.WriteLine(result.GetProperty("name").ToString());
+ Console.WriteLine(result.GetProperty("type").ToString());
+ Console.WriteLine(result.GetProperty("target").ToString());
+ Console.WriteLine(result.GetProperty("authType").ToString());
+ Console.WriteLine(result.GetProperty("metadata").GetProperty("").ToString());
+}
+]]>
+
+
+
+This sample shows how to call GetConnections and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Connections client = new Projects.1DP.AIProjectClient(endpoint, credential).GetConnectionsClient(apiVersion: "2025-05-15-preview");
+
+foreach (BinaryData item in client.GetConnections((string)null, (int?)null, (int?)null, (int?)null, (RequestContext)null))
+{
+ JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement;
+ Console.WriteLine(result.GetProperty("name").ToString());
+ Console.WriteLine(result.GetProperty("type").ToString());
+ Console.WriteLine(result.GetProperty("target").ToString());
+ Console.WriteLine(result.GetProperty("authType").ToString());
+ Console.WriteLine(result.GetProperty("metadata").GetProperty("").ToString());
+}
+]]>
+This sample shows how to call GetConnections with all parameters and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Connections client = new Projects.1DP.AIProjectClient(endpoint, credential).GetConnectionsClient(apiVersion: "2025-05-15-preview");
+
+foreach (BinaryData item in client.GetConnections("AzureOpenAI", 1234, 1234, 1234, (RequestContext)null))
+{
+ JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement;
+ Console.WriteLine(result.GetProperty("name").ToString());
+ Console.WriteLine(result.GetProperty("type").ToString());
+ Console.WriteLine(result.GetProperty("target").ToString());
+ Console.WriteLine(result.GetProperty("authType").ToString());
+ Console.WriteLine(result.GetProperty("metadata").GetProperty("").ToString());
+}
+]]>
+
+
+
\ No newline at end of file
diff --git a/sdk/ai/Azure.AI.Projects.1DP/src/Generated/Docs/Datasets.xml b/sdk/ai/Azure.AI.Projects.1DP/src/Generated/Docs/Datasets.xml
new file mode 100644
index 000000000000..5a7326214843
--- /dev/null
+++ b/sdk/ai/Azure.AI.Projects.1DP/src/Generated/Docs/Datasets.xml
@@ -0,0 +1,1021 @@
+
+
+
+
+
+This sample shows how to call GetVersionAsync.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Datasets client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDatasetsClient(apiVersion: "2025-05-15-preview");
+
+Azure.Response < AI.Projects.1DP.DatasetVersion > response = await client.GetVersionAsync("", "");
+]]>
+This sample shows how to call GetVersionAsync with all parameters.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Datasets client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDatasetsClient(apiVersion: "2025-05-15-preview");
+
+Azure.Response < AI.Projects.1DP.DatasetVersion > response = await client.GetVersionAsync("", "");
+]]>
+
+
+
+This sample shows how to call GetVersion.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Datasets client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDatasetsClient(apiVersion: "2025-05-15-preview");
+
+Azure.Response < AI.Projects.1DP.DatasetVersion > response = client.GetVersion("", "");
+]]>
+This sample shows how to call GetVersion with all parameters.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Datasets client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDatasetsClient(apiVersion: "2025-05-15-preview");
+
+Azure.Response < AI.Projects.1DP.DatasetVersion > response = client.GetVersion("", "");
+]]>
+
+
+
+This sample shows how to call GetVersionAsync and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Datasets client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDatasetsClient(apiVersion: "2025-05-15-preview");
+
+Response response = await client.GetVersionAsync("", "", (RequestContext)null);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("datasetUri").ToString());
+Console.WriteLine(result.GetProperty("type").ToString());
+Console.WriteLine(result.GetProperty("name").ToString());
+Console.WriteLine(result.GetProperty("version").ToString());
+]]>
+This sample shows how to call GetVersionAsync with all parameters and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Datasets client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDatasetsClient(apiVersion: "2025-05-15-preview");
+
+Response response = await client.GetVersionAsync("", "", (RequestContext)null);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("datasetUri").ToString());
+Console.WriteLine(result.GetProperty("type").ToString());
+Console.WriteLine(result.GetProperty("isReference").ToString());
+Console.WriteLine(result.GetProperty("stage").ToString());
+Console.WriteLine(result.GetProperty("id").ToString());
+Console.WriteLine(result.GetProperty("name").ToString());
+Console.WriteLine(result.GetProperty("version").ToString());
+Console.WriteLine(result.GetProperty("description").ToString());
+Console.WriteLine(result.GetProperty("tags").GetProperty("").ToString());
+]]>
+
+
+
+This sample shows how to call GetVersion and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Datasets client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDatasetsClient(apiVersion: "2025-05-15-preview");
+
+Response response = client.GetVersion("", "", (RequestContext)null);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("datasetUri").ToString());
+Console.WriteLine(result.GetProperty("type").ToString());
+Console.WriteLine(result.GetProperty("name").ToString());
+Console.WriteLine(result.GetProperty("version").ToString());
+]]>
+This sample shows how to call GetVersion with all parameters and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Datasets client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDatasetsClient(apiVersion: "2025-05-15-preview");
+
+Response response = client.GetVersion("", "", (RequestContext)null);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("datasetUri").ToString());
+Console.WriteLine(result.GetProperty("type").ToString());
+Console.WriteLine(result.GetProperty("isReference").ToString());
+Console.WriteLine(result.GetProperty("stage").ToString());
+Console.WriteLine(result.GetProperty("id").ToString());
+Console.WriteLine(result.GetProperty("name").ToString());
+Console.WriteLine(result.GetProperty("version").ToString());
+Console.WriteLine(result.GetProperty("description").ToString());
+Console.WriteLine(result.GetProperty("tags").GetProperty("").ToString());
+]]>
+
+
+
+This sample shows how to call DeleteVersionAsync.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Datasets client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDatasetsClient(apiVersion: "2025-05-15-preview");
+
+Response response = await client.DeleteVersionAsync("", "");
+
+Console.WriteLine(response.Status);
+]]>
+This sample shows how to call DeleteVersionAsync with all parameters.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Datasets client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDatasetsClient(apiVersion: "2025-05-15-preview");
+
+Response response = await client.DeleteVersionAsync("", "");
+
+Console.WriteLine(response.Status);
+]]>
+
+
+
+This sample shows how to call DeleteVersion.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Datasets client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDatasetsClient(apiVersion: "2025-05-15-preview");
+
+Response response = client.DeleteVersion("", "");
+
+Console.WriteLine(response.Status);
+]]>
+This sample shows how to call DeleteVersion with all parameters.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Datasets client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDatasetsClient(apiVersion: "2025-05-15-preview");
+
+Response response = client.DeleteVersion("", "");
+
+Console.WriteLine(response.Status);
+]]>
+
+
+
+This sample shows how to call CreateAsync.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Datasets client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDatasetsClient(apiVersion: "2025-05-15-preview");
+
+AI.Projects.1DP.DatasetVersion body = new Projects.1DP.FileDatasetVersion("", "");
+Azure.Response < AI.Projects.1DP.DatasetVersion > response = await client.CreateAsync("", body);
+]]>
+This sample shows how to call CreateAsync with all parameters.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Datasets client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDatasetsClient(apiVersion: "2025-05-15-preview");
+
+AI.Projects.1DP.DatasetVersion body = new Projects.1DP.FileDatasetVersion("", "")
+{
+ Stage = "",
+ Description = "",
+ Tags =
+ {
+ ["key"] = ""
+ },
+};
+Azure.Response < AI.Projects.1DP.DatasetVersion > response = await client.CreateAsync("", body);
+]]>
+
+
+
+This sample shows how to call Create.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Datasets client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDatasetsClient(apiVersion: "2025-05-15-preview");
+
+AI.Projects.1DP.DatasetVersion body = new Projects.1DP.FileDatasetVersion("", "");
+Azure.Response < AI.Projects.1DP.DatasetVersion > response = client.Create("", body);
+]]>
+This sample shows how to call Create with all parameters.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Datasets client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDatasetsClient(apiVersion: "2025-05-15-preview");
+
+AI.Projects.1DP.DatasetVersion body = new Projects.1DP.FileDatasetVersion("", "")
+{
+ Stage = "",
+ Description = "",
+ Tags =
+ {
+ ["key"] = ""
+ },
+};
+Azure.Response < AI.Projects.1DP.DatasetVersion > response = client.Create("", body);
+]]>
+
+
+
+This sample shows how to call CreateAsync and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Datasets client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDatasetsClient(apiVersion: "2025-05-15-preview");
+
+using RequestContent content = RequestContent.Create(new
+{
+ type = "uri_file",
+ openAIPurpose = "",
+ datasetUri = "",
+});
+Response response = await client.CreateAsync("", content);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("datasetUri").ToString());
+Console.WriteLine(result.GetProperty("type").ToString());
+Console.WriteLine(result.GetProperty("name").ToString());
+Console.WriteLine(result.GetProperty("version").ToString());
+]]>
+This sample shows how to call CreateAsync with all parameters and request content and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Datasets client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDatasetsClient(apiVersion: "2025-05-15-preview");
+
+using RequestContent content = RequestContent.Create(new
+{
+ type = "uri_file",
+ openAIPurpose = "",
+ datasetUri = "",
+ stage = "",
+ description = "",
+ tags = new
+ {
+ key = "",
+ },
+});
+Response response = await client.CreateAsync("", content);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("datasetUri").ToString());
+Console.WriteLine(result.GetProperty("type").ToString());
+Console.WriteLine(result.GetProperty("isReference").ToString());
+Console.WriteLine(result.GetProperty("stage").ToString());
+Console.WriteLine(result.GetProperty("id").ToString());
+Console.WriteLine(result.GetProperty("name").ToString());
+Console.WriteLine(result.GetProperty("version").ToString());
+Console.WriteLine(result.GetProperty("description").ToString());
+Console.WriteLine(result.GetProperty("tags").GetProperty("").ToString());
+]]>
+
+
+
+This sample shows how to call Create and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Datasets client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDatasetsClient(apiVersion: "2025-05-15-preview");
+
+using RequestContent content = RequestContent.Create(new
+{
+ type = "uri_file",
+ openAIPurpose = "",
+ datasetUri = "",
+});
+Response response = client.Create("", content);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("datasetUri").ToString());
+Console.WriteLine(result.GetProperty("type").ToString());
+Console.WriteLine(result.GetProperty("name").ToString());
+Console.WriteLine(result.GetProperty("version").ToString());
+]]>
+This sample shows how to call Create with all parameters and request content and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Datasets client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDatasetsClient(apiVersion: "2025-05-15-preview");
+
+using RequestContent content = RequestContent.Create(new
+{
+ type = "uri_file",
+ openAIPurpose = "",
+ datasetUri = "",
+ stage = "",
+ description = "",
+ tags = new
+ {
+ key = "",
+ },
+});
+Response response = client.Create("", content);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("datasetUri").ToString());
+Console.WriteLine(result.GetProperty("type").ToString());
+Console.WriteLine(result.GetProperty("isReference").ToString());
+Console.WriteLine(result.GetProperty("stage").ToString());
+Console.WriteLine(result.GetProperty("id").ToString());
+Console.WriteLine(result.GetProperty("name").ToString());
+Console.WriteLine(result.GetProperty("version").ToString());
+Console.WriteLine(result.GetProperty("description").ToString());
+Console.WriteLine(result.GetProperty("tags").GetProperty("").ToString());
+]]>
+
+
+
+This sample shows how to call CreateVersionAsync.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Datasets client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDatasetsClient(apiVersion: "2025-05-15-preview");
+
+AI.Projects.1DP.DatasetVersion body = new Projects.1DP.FileDatasetVersion("", "");
+Azure.Response < AI.Projects.1DP.DatasetVersion > response = await client.CreateVersionAsync("", "", body);
+]]>
+This sample shows how to call CreateVersionAsync with all parameters.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Datasets client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDatasetsClient(apiVersion: "2025-05-15-preview");
+
+AI.Projects.1DP.DatasetVersion body = new Projects.1DP.FileDatasetVersion("", "")
+{
+ Stage = "",
+ Description = "",
+ Tags =
+ {
+ ["key"] = ""
+ },
+};
+Azure.Response < AI.Projects.1DP.DatasetVersion > response = await client.CreateVersionAsync("", "", body);
+]]>
+
+
+
+This sample shows how to call CreateVersion.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Datasets client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDatasetsClient(apiVersion: "2025-05-15-preview");
+
+AI.Projects.1DP.DatasetVersion body = new Projects.1DP.FileDatasetVersion("", "");
+Azure.Response < AI.Projects.1DP.DatasetVersion > response = client.CreateVersion("", "", body);
+]]>
+This sample shows how to call CreateVersion with all parameters.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Datasets client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDatasetsClient(apiVersion: "2025-05-15-preview");
+
+AI.Projects.1DP.DatasetVersion body = new Projects.1DP.FileDatasetVersion("", "")
+{
+ Stage = "",
+ Description = "",
+ Tags =
+ {
+ ["key"] = ""
+ },
+};
+Azure.Response < AI.Projects.1DP.DatasetVersion > response = client.CreateVersion("", "", body);
+]]>
+
+
+
+This sample shows how to call CreateVersionAsync and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Datasets client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDatasetsClient(apiVersion: "2025-05-15-preview");
+
+using RequestContent content = RequestContent.Create(new
+{
+ type = "uri_file",
+ openAIPurpose = "",
+ datasetUri = "",
+});
+Response response = await client.CreateVersionAsync("", "", content);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("datasetUri").ToString());
+Console.WriteLine(result.GetProperty("type").ToString());
+Console.WriteLine(result.GetProperty("name").ToString());
+Console.WriteLine(result.GetProperty("version").ToString());
+]]>
+This sample shows how to call CreateVersionAsync with all parameters and request content and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Datasets client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDatasetsClient(apiVersion: "2025-05-15-preview");
+
+using RequestContent content = RequestContent.Create(new
+{
+ type = "uri_file",
+ openAIPurpose = "",
+ datasetUri = "",
+ stage = "",
+ description = "",
+ tags = new
+ {
+ key = "",
+ },
+});
+Response response = await client.CreateVersionAsync("", "", content);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("datasetUri").ToString());
+Console.WriteLine(result.GetProperty("type").ToString());
+Console.WriteLine(result.GetProperty("isReference").ToString());
+Console.WriteLine(result.GetProperty("stage").ToString());
+Console.WriteLine(result.GetProperty("id").ToString());
+Console.WriteLine(result.GetProperty("name").ToString());
+Console.WriteLine(result.GetProperty("version").ToString());
+Console.WriteLine(result.GetProperty("description").ToString());
+Console.WriteLine(result.GetProperty("tags").GetProperty("").ToString());
+]]>
+
+
+
+This sample shows how to call CreateVersion and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Datasets client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDatasetsClient(apiVersion: "2025-05-15-preview");
+
+using RequestContent content = RequestContent.Create(new
+{
+ type = "uri_file",
+ openAIPurpose = "",
+ datasetUri = "",
+});
+Response response = client.CreateVersion("", "", content);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("datasetUri").ToString());
+Console.WriteLine(result.GetProperty("type").ToString());
+Console.WriteLine(result.GetProperty("name").ToString());
+Console.WriteLine(result.GetProperty("version").ToString());
+]]>
+This sample shows how to call CreateVersion with all parameters and request content and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Datasets client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDatasetsClient(apiVersion: "2025-05-15-preview");
+
+using RequestContent content = RequestContent.Create(new
+{
+ type = "uri_file",
+ openAIPurpose = "",
+ datasetUri = "",
+ stage = "",
+ description = "",
+ tags = new
+ {
+ key = "",
+ },
+});
+Response response = client.CreateVersion("", "", content);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("datasetUri").ToString());
+Console.WriteLine(result.GetProperty("type").ToString());
+Console.WriteLine(result.GetProperty("isReference").ToString());
+Console.WriteLine(result.GetProperty("stage").ToString());
+Console.WriteLine(result.GetProperty("id").ToString());
+Console.WriteLine(result.GetProperty("name").ToString());
+Console.WriteLine(result.GetProperty("version").ToString());
+Console.WriteLine(result.GetProperty("description").ToString());
+Console.WriteLine(result.GetProperty("tags").GetProperty("").ToString());
+]]>
+
+
+
+This sample shows how to call StartPendingUploadVersionAsync.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Datasets client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDatasetsClient(apiVersion: "2025-05-15-preview");
+
+AI.Projects.1DP.PendingUploadRequest body = new Projects.1DP.PendingUploadRequest();
+Azure.Response < AI.Projects.1DP.PendingUploadResponse > response = await client.StartPendingUploadVersionAsync("", "", body);
+]]>
+This sample shows how to call StartPendingUploadVersionAsync with all parameters.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Datasets client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDatasetsClient(apiVersion: "2025-05-15-preview");
+
+AI.Projects.1DP.PendingUploadRequest body = new Projects.1DP.PendingUploadRequest
+{
+ PendingUploadId = "",
+ ConnectionName = "",
+};
+Azure.Response < AI.Projects.1DP.PendingUploadResponse > response = await client.StartPendingUploadVersionAsync("", "", body);
+]]>
+
+
+
+This sample shows how to call StartPendingUploadVersion.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Datasets client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDatasetsClient(apiVersion: "2025-05-15-preview");
+
+AI.Projects.1DP.PendingUploadRequest body = new Projects.1DP.PendingUploadRequest();
+Azure.Response < AI.Projects.1DP.PendingUploadResponse > response = client.StartPendingUploadVersion("", "", body);
+]]>
+This sample shows how to call StartPendingUploadVersion with all parameters.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Datasets client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDatasetsClient(apiVersion: "2025-05-15-preview");
+
+AI.Projects.1DP.PendingUploadRequest body = new Projects.1DP.PendingUploadRequest
+{
+ PendingUploadId = "",
+ ConnectionName = "",
+};
+Azure.Response < AI.Projects.1DP.PendingUploadResponse > response = client.StartPendingUploadVersion("", "", body);
+]]>
+
+
+
+This sample shows how to call StartPendingUploadVersionAsync and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Datasets client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDatasetsClient(apiVersion: "2025-05-15-preview");
+
+using RequestContent content = RequestContent.Create(new
+{
+ pendingUploadType = "TemporaryBlobReference",
+});
+Response response = await client.StartPendingUploadVersionAsync("", "", content);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("blobReferenceForConsumption").GetProperty("blobUri").ToString());
+Console.WriteLine(result.GetProperty("blobReferenceForConsumption").GetProperty("storageAccountArmId").ToString());
+Console.WriteLine(result.GetProperty("blobReferenceForConsumption").GetProperty("credential").GetProperty("sasUri").ToString());
+Console.WriteLine(result.GetProperty("blobReferenceForConsumption").GetProperty("credential").GetProperty("type").ToString());
+Console.WriteLine(result.GetProperty("pendingUploadId").ToString());
+Console.WriteLine(result.GetProperty("pendingUploadType").ToString());
+]]>
+This sample shows how to call StartPendingUploadVersionAsync with all parameters and request content and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Datasets client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDatasetsClient(apiVersion: "2025-05-15-preview");
+
+using RequestContent content = RequestContent.Create(new
+{
+ pendingUploadId = "",
+ connectionName = "",
+ pendingUploadType = "TemporaryBlobReference",
+});
+Response response = await client.StartPendingUploadVersionAsync("", "", content);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("blobReferenceForConsumption").GetProperty("blobUri").ToString());
+Console.WriteLine(result.GetProperty("blobReferenceForConsumption").GetProperty("storageAccountArmId").ToString());
+Console.WriteLine(result.GetProperty("blobReferenceForConsumption").GetProperty("credential").GetProperty("sasUri").ToString());
+Console.WriteLine(result.GetProperty("blobReferenceForConsumption").GetProperty("credential").GetProperty("type").ToString());
+Console.WriteLine(result.GetProperty("pendingUploadId").ToString());
+Console.WriteLine(result.GetProperty("datasetVersion").ToString());
+Console.WriteLine(result.GetProperty("pendingUploadType").ToString());
+]]>
+
+
+
+This sample shows how to call StartPendingUploadVersion and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Datasets client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDatasetsClient(apiVersion: "2025-05-15-preview");
+
+using RequestContent content = RequestContent.Create(new
+{
+ pendingUploadType = "TemporaryBlobReference",
+});
+Response response = client.StartPendingUploadVersion("", "", content);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("blobReferenceForConsumption").GetProperty("blobUri").ToString());
+Console.WriteLine(result.GetProperty("blobReferenceForConsumption").GetProperty("storageAccountArmId").ToString());
+Console.WriteLine(result.GetProperty("blobReferenceForConsumption").GetProperty("credential").GetProperty("sasUri").ToString());
+Console.WriteLine(result.GetProperty("blobReferenceForConsumption").GetProperty("credential").GetProperty("type").ToString());
+Console.WriteLine(result.GetProperty("pendingUploadId").ToString());
+Console.WriteLine(result.GetProperty("pendingUploadType").ToString());
+]]>
+This sample shows how to call StartPendingUploadVersion with all parameters and request content and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Datasets client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDatasetsClient(apiVersion: "2025-05-15-preview");
+
+using RequestContent content = RequestContent.Create(new
+{
+ pendingUploadId = "",
+ connectionName = "",
+ pendingUploadType = "TemporaryBlobReference",
+});
+Response response = client.StartPendingUploadVersion("", "", content);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("blobReferenceForConsumption").GetProperty("blobUri").ToString());
+Console.WriteLine(result.GetProperty("blobReferenceForConsumption").GetProperty("storageAccountArmId").ToString());
+Console.WriteLine(result.GetProperty("blobReferenceForConsumption").GetProperty("credential").GetProperty("sasUri").ToString());
+Console.WriteLine(result.GetProperty("blobReferenceForConsumption").GetProperty("credential").GetProperty("type").ToString());
+Console.WriteLine(result.GetProperty("pendingUploadId").ToString());
+Console.WriteLine(result.GetProperty("datasetVersion").ToString());
+Console.WriteLine(result.GetProperty("pendingUploadType").ToString());
+]]>
+
+
+
+This sample shows how to call StartPendingUploadAsync.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Datasets client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDatasetsClient(apiVersion: "2025-05-15-preview");
+
+AI.Projects.1DP.PendingUploadRequest body = new Projects.1DP.PendingUploadRequest();
+Azure.Response < AI.Projects.1DP.PendingUploadResponse > response = await client.StartPendingUploadAsync("", body);
+]]>
+This sample shows how to call StartPendingUploadAsync with all parameters.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Datasets client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDatasetsClient(apiVersion: "2025-05-15-preview");
+
+AI.Projects.1DP.PendingUploadRequest body = new Projects.1DP.PendingUploadRequest
+{
+ PendingUploadId = "",
+ ConnectionName = "",
+};
+Azure.Response < AI.Projects.1DP.PendingUploadResponse > response = await client.StartPendingUploadAsync("", body);
+]]>
+
+
+
+This sample shows how to call StartPendingUpload.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Datasets client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDatasetsClient(apiVersion: "2025-05-15-preview");
+
+AI.Projects.1DP.PendingUploadRequest body = new Projects.1DP.PendingUploadRequest();
+Azure.Response < AI.Projects.1DP.PendingUploadResponse > response = client.StartPendingUpload("", body);
+]]>
+This sample shows how to call StartPendingUpload with all parameters.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Datasets client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDatasetsClient(apiVersion: "2025-05-15-preview");
+
+AI.Projects.1DP.PendingUploadRequest body = new Projects.1DP.PendingUploadRequest
+{
+ PendingUploadId = "",
+ ConnectionName = "",
+};
+Azure.Response < AI.Projects.1DP.PendingUploadResponse > response = client.StartPendingUpload("", body);
+]]>
+
+
+
+This sample shows how to call StartPendingUploadAsync and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Datasets client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDatasetsClient(apiVersion: "2025-05-15-preview");
+
+using RequestContent content = RequestContent.Create(new
+{
+ pendingUploadType = "TemporaryBlobReference",
+});
+Response response = await client.StartPendingUploadAsync("", content);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("blobReferenceForConsumption").GetProperty("blobUri").ToString());
+Console.WriteLine(result.GetProperty("blobReferenceForConsumption").GetProperty("storageAccountArmId").ToString());
+Console.WriteLine(result.GetProperty("blobReferenceForConsumption").GetProperty("credential").GetProperty("sasUri").ToString());
+Console.WriteLine(result.GetProperty("blobReferenceForConsumption").GetProperty("credential").GetProperty("type").ToString());
+Console.WriteLine(result.GetProperty("pendingUploadId").ToString());
+Console.WriteLine(result.GetProperty("pendingUploadType").ToString());
+]]>
+This sample shows how to call StartPendingUploadAsync with all parameters and request content and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Datasets client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDatasetsClient(apiVersion: "2025-05-15-preview");
+
+using RequestContent content = RequestContent.Create(new
+{
+ pendingUploadId = "",
+ connectionName = "",
+ pendingUploadType = "TemporaryBlobReference",
+});
+Response response = await client.StartPendingUploadAsync("", content);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("blobReferenceForConsumption").GetProperty("blobUri").ToString());
+Console.WriteLine(result.GetProperty("blobReferenceForConsumption").GetProperty("storageAccountArmId").ToString());
+Console.WriteLine(result.GetProperty("blobReferenceForConsumption").GetProperty("credential").GetProperty("sasUri").ToString());
+Console.WriteLine(result.GetProperty("blobReferenceForConsumption").GetProperty("credential").GetProperty("type").ToString());
+Console.WriteLine(result.GetProperty("pendingUploadId").ToString());
+Console.WriteLine(result.GetProperty("datasetVersion").ToString());
+Console.WriteLine(result.GetProperty("pendingUploadType").ToString());
+]]>
+
+
+
+This sample shows how to call StartPendingUpload and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Datasets client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDatasetsClient(apiVersion: "2025-05-15-preview");
+
+using RequestContent content = RequestContent.Create(new
+{
+ pendingUploadType = "TemporaryBlobReference",
+});
+Response response = client.StartPendingUpload("", content);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("blobReferenceForConsumption").GetProperty("blobUri").ToString());
+Console.WriteLine(result.GetProperty("blobReferenceForConsumption").GetProperty("storageAccountArmId").ToString());
+Console.WriteLine(result.GetProperty("blobReferenceForConsumption").GetProperty("credential").GetProperty("sasUri").ToString());
+Console.WriteLine(result.GetProperty("blobReferenceForConsumption").GetProperty("credential").GetProperty("type").ToString());
+Console.WriteLine(result.GetProperty("pendingUploadId").ToString());
+Console.WriteLine(result.GetProperty("pendingUploadType").ToString());
+]]>
+This sample shows how to call StartPendingUpload with all parameters and request content and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Datasets client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDatasetsClient(apiVersion: "2025-05-15-preview");
+
+using RequestContent content = RequestContent.Create(new
+{
+ pendingUploadId = "",
+ connectionName = "",
+ pendingUploadType = "TemporaryBlobReference",
+});
+Response response = client.StartPendingUpload("", content);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("blobReferenceForConsumption").GetProperty("blobUri").ToString());
+Console.WriteLine(result.GetProperty("blobReferenceForConsumption").GetProperty("storageAccountArmId").ToString());
+Console.WriteLine(result.GetProperty("blobReferenceForConsumption").GetProperty("credential").GetProperty("sasUri").ToString());
+Console.WriteLine(result.GetProperty("blobReferenceForConsumption").GetProperty("credential").GetProperty("type").ToString());
+Console.WriteLine(result.GetProperty("pendingUploadId").ToString());
+Console.WriteLine(result.GetProperty("datasetVersion").ToString());
+Console.WriteLine(result.GetProperty("pendingUploadType").ToString());
+]]>
+
+
+
+This sample shows how to call GetVersionsAsync.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Datasets client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDatasetsClient(apiVersion: "2025-05-15-preview");
+
+await foreach (Projects.1DP.DatasetVersion item in client.GetVersionsAsync(""))
+{
+}
+]]>
+This sample shows how to call GetVersionsAsync with all parameters.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Datasets client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDatasetsClient(apiVersion: "2025-05-15-preview");
+
+await foreach (Projects.1DP.DatasetVersion item in client.GetVersionsAsync("", maxCount: 1234, skip: "", tags: "", listViewType: AI.Projects.1DP.ListViewType.ActiveOnly))
+{
+}
+]]>
+
+
+
+This sample shows how to call GetVersions.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Datasets client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDatasetsClient(apiVersion: "2025-05-15-preview");
+
+foreach (Projects.1DP.DatasetVersion item in client.GetVersions(""))
+{
+}
+]]>
+This sample shows how to call GetVersions with all parameters.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Datasets client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDatasetsClient(apiVersion: "2025-05-15-preview");
+
+foreach (Projects.1DP.DatasetVersion item in client.GetVersions("", maxCount: 1234, skip: "", tags: "", listViewType: AI.Projects.1DP.ListViewType.ActiveOnly))
+{
+}
+]]>
+
+
+
+This sample shows how to call GetVersionsAsync and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Datasets client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDatasetsClient(apiVersion: "2025-05-15-preview");
+
+await foreach (BinaryData item in client.GetVersionsAsync("", (int?)null, (string)null, (string)null, (string)null, (RequestContext)null))
+{
+ JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement;
+ Console.WriteLine(result.GetProperty("datasetUri").ToString());
+ Console.WriteLine(result.GetProperty("type").ToString());
+ Console.WriteLine(result.GetProperty("name").ToString());
+ Console.WriteLine(result.GetProperty("version").ToString());
+}
+]]>
+This sample shows how to call GetVersionsAsync with all parameters and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Datasets client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDatasetsClient(apiVersion: "2025-05-15-preview");
+
+await foreach (BinaryData item in client.GetVersionsAsync("", 1234, "", "", "ActiveOnly", (RequestContext)null))
+{
+ JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement;
+ Console.WriteLine(result.GetProperty("datasetUri").ToString());
+ Console.WriteLine(result.GetProperty("type").ToString());
+ Console.WriteLine(result.GetProperty("isReference").ToString());
+ Console.WriteLine(result.GetProperty("stage").ToString());
+ Console.WriteLine(result.GetProperty("id").ToString());
+ Console.WriteLine(result.GetProperty("name").ToString());
+ Console.WriteLine(result.GetProperty("version").ToString());
+ Console.WriteLine(result.GetProperty("description").ToString());
+ Console.WriteLine(result.GetProperty("tags").GetProperty("").ToString());
+}
+]]>
+
+
+
+This sample shows how to call GetVersions and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Datasets client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDatasetsClient(apiVersion: "2025-05-15-preview");
+
+foreach (BinaryData item in client.GetVersions("", (int?)null, (string)null, (string)null, (string)null, (RequestContext)null))
+{
+ JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement;
+ Console.WriteLine(result.GetProperty("datasetUri").ToString());
+ Console.WriteLine(result.GetProperty("type").ToString());
+ Console.WriteLine(result.GetProperty("name").ToString());
+ Console.WriteLine(result.GetProperty("version").ToString());
+}
+]]>
+This sample shows how to call GetVersions with all parameters and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Datasets client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDatasetsClient(apiVersion: "2025-05-15-preview");
+
+foreach (BinaryData item in client.GetVersions("", 1234, "", "", "ActiveOnly", (RequestContext)null))
+{
+ JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement;
+ Console.WriteLine(result.GetProperty("datasetUri").ToString());
+ Console.WriteLine(result.GetProperty("type").ToString());
+ Console.WriteLine(result.GetProperty("isReference").ToString());
+ Console.WriteLine(result.GetProperty("stage").ToString());
+ Console.WriteLine(result.GetProperty("id").ToString());
+ Console.WriteLine(result.GetProperty("name").ToString());
+ Console.WriteLine(result.GetProperty("version").ToString());
+ Console.WriteLine(result.GetProperty("description").ToString());
+ Console.WriteLine(result.GetProperty("tags").GetProperty("").ToString());
+}
+]]>
+
+
+
+This sample shows how to call GetLatestsAsync.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Datasets client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDatasetsClient(apiVersion: "2025-05-15-preview");
+
+await foreach (Projects.1DP.DatasetVersion item in client.GetLatestsAsync())
+{
+}
+]]>
+This sample shows how to call GetLatestsAsync with all parameters.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Datasets client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDatasetsClient(apiVersion: "2025-05-15-preview");
+
+await foreach (Projects.1DP.DatasetVersion item in client.GetLatestsAsync(maxCount: 1234, skip: "", tags: "", listViewType: AI.Projects.1DP.ListViewType.ActiveOnly))
+{
+}
+]]>
+
+
+
+This sample shows how to call GetLatests.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Datasets client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDatasetsClient(apiVersion: "2025-05-15-preview");
+
+foreach (Projects.1DP.DatasetVersion item in client.GetLatests())
+{
+}
+]]>
+This sample shows how to call GetLatests with all parameters.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Datasets client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDatasetsClient(apiVersion: "2025-05-15-preview");
+
+foreach (Projects.1DP.DatasetVersion item in client.GetLatests(maxCount: 1234, skip: "", tags: "", listViewType: AI.Projects.1DP.ListViewType.ActiveOnly))
+{
+}
+]]>
+
+
+
+This sample shows how to call GetLatestsAsync and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Datasets client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDatasetsClient(apiVersion: "2025-05-15-preview");
+
+await foreach (BinaryData item in client.GetLatestsAsync((int?)null, (string)null, (string)null, (string)null, (RequestContext)null))
+{
+ JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement;
+ Console.WriteLine(result.GetProperty("datasetUri").ToString());
+ Console.WriteLine(result.GetProperty("type").ToString());
+ Console.WriteLine(result.GetProperty("name").ToString());
+ Console.WriteLine(result.GetProperty("version").ToString());
+}
+]]>
+This sample shows how to call GetLatestsAsync with all parameters and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Datasets client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDatasetsClient(apiVersion: "2025-05-15-preview");
+
+await foreach (BinaryData item in client.GetLatestsAsync(1234, "", "", "ActiveOnly", (RequestContext)null))
+{
+ JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement;
+ Console.WriteLine(result.GetProperty("datasetUri").ToString());
+ Console.WriteLine(result.GetProperty("type").ToString());
+ Console.WriteLine(result.GetProperty("isReference").ToString());
+ Console.WriteLine(result.GetProperty("stage").ToString());
+ Console.WriteLine(result.GetProperty("id").ToString());
+ Console.WriteLine(result.GetProperty("name").ToString());
+ Console.WriteLine(result.GetProperty("version").ToString());
+ Console.WriteLine(result.GetProperty("description").ToString());
+ Console.WriteLine(result.GetProperty("tags").GetProperty("").ToString());
+}
+]]>
+
+
+
+This sample shows how to call GetLatests and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Datasets client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDatasetsClient(apiVersion: "2025-05-15-preview");
+
+foreach (BinaryData item in client.GetLatests((int?)null, (string)null, (string)null, (string)null, (RequestContext)null))
+{
+ JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement;
+ Console.WriteLine(result.GetProperty("datasetUri").ToString());
+ Console.WriteLine(result.GetProperty("type").ToString());
+ Console.WriteLine(result.GetProperty("name").ToString());
+ Console.WriteLine(result.GetProperty("version").ToString());
+}
+]]>
+This sample shows how to call GetLatests with all parameters and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Datasets client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDatasetsClient(apiVersion: "2025-05-15-preview");
+
+foreach (BinaryData item in client.GetLatests(1234, "", "", "ActiveOnly", (RequestContext)null))
+{
+ JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement;
+ Console.WriteLine(result.GetProperty("datasetUri").ToString());
+ Console.WriteLine(result.GetProperty("type").ToString());
+ Console.WriteLine(result.GetProperty("isReference").ToString());
+ Console.WriteLine(result.GetProperty("stage").ToString());
+ Console.WriteLine(result.GetProperty("id").ToString());
+ Console.WriteLine(result.GetProperty("name").ToString());
+ Console.WriteLine(result.GetProperty("version").ToString());
+ Console.WriteLine(result.GetProperty("description").ToString());
+ Console.WriteLine(result.GetProperty("tags").GetProperty("").ToString());
+}
+]]>
+
+
+
\ No newline at end of file
diff --git a/sdk/ai/Azure.AI.Projects.1DP/src/Generated/Docs/Deployments.xml b/sdk/ai/Azure.AI.Projects.1DP/src/Generated/Docs/Deployments.xml
new file mode 100644
index 000000000000..94c8a4018a79
--- /dev/null
+++ b/sdk/ai/Azure.AI.Projects.1DP/src/Generated/Docs/Deployments.xml
@@ -0,0 +1,201 @@
+
+
+
+
+
+This sample shows how to call GetDeploymentAsync.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Deployments client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDeploymentsClient(apiVersion: "2025-05-15-preview");
+
+Azure.Response < AI.Projects.1DP.Deployment > response = await client.GetDeploymentAsync("");
+]]>
+This sample shows how to call GetDeploymentAsync with all parameters.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Deployments client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDeploymentsClient(apiVersion: "2025-05-15-preview");
+
+Azure.Response < AI.Projects.1DP.Deployment > response = await client.GetDeploymentAsync("");
+]]>
+
+
+
+This sample shows how to call GetDeployment.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Deployments client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDeploymentsClient(apiVersion: "2025-05-15-preview");
+
+Azure.Response < AI.Projects.1DP.Deployment > response = client.GetDeployment("");
+]]>
+This sample shows how to call GetDeployment with all parameters.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Deployments client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDeploymentsClient(apiVersion: "2025-05-15-preview");
+
+Azure.Response < AI.Projects.1DP.Deployment > response = client.GetDeployment("");
+]]>
+
+
+
+This sample shows how to call GetDeploymentAsync and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Deployments client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDeploymentsClient(apiVersion: "2025-05-15-preview");
+
+Response response = await client.GetDeploymentAsync("", (RequestContext)null);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("type").ToString());
+Console.WriteLine(result.GetProperty("name").ToString());
+]]>
+This sample shows how to call GetDeploymentAsync with all parameters and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Deployments client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDeploymentsClient(apiVersion: "2025-05-15-preview");
+
+Response response = await client.GetDeploymentAsync("", (RequestContext)null);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("type").ToString());
+Console.WriteLine(result.GetProperty("name").ToString());
+]]>
+
+
+
+This sample shows how to call GetDeployment and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Deployments client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDeploymentsClient(apiVersion: "2025-05-15-preview");
+
+Response response = client.GetDeployment("", (RequestContext)null);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("type").ToString());
+Console.WriteLine(result.GetProperty("name").ToString());
+]]>
+This sample shows how to call GetDeployment with all parameters and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Deployments client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDeploymentsClient(apiVersion: "2025-05-15-preview");
+
+Response response = client.GetDeployment("", (RequestContext)null);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("type").ToString());
+Console.WriteLine(result.GetProperty("name").ToString());
+]]>
+
+
+
+This sample shows how to call GetDeploymentsAsync.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Deployments client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDeploymentsClient(apiVersion: "2025-05-15-preview");
+
+await foreach (Projects.1DP.Deployment item in client.GetDeploymentsAsync())
+{
+}
+]]>
+This sample shows how to call GetDeploymentsAsync with all parameters.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Deployments client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDeploymentsClient(apiVersion: "2025-05-15-preview");
+
+await foreach (Projects.1DP.Deployment item in client.GetDeploymentsAsync(modelPublisher: "", modelName: "", maxCount: 1234, skip: 1234, maxpagesize: 1234))
+{
+}
+]]>
+
+
+
+This sample shows how to call GetDeployments.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Deployments client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDeploymentsClient(apiVersion: "2025-05-15-preview");
+
+foreach (Projects.1DP.Deployment item in client.GetDeployments())
+{
+}
+]]>
+This sample shows how to call GetDeployments with all parameters.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Deployments client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDeploymentsClient(apiVersion: "2025-05-15-preview");
+
+foreach (Projects.1DP.Deployment item in client.GetDeployments(modelPublisher: "", modelName: "", maxCount: 1234, skip: 1234, maxpagesize: 1234))
+{
+}
+]]>
+
+
+
+This sample shows how to call GetDeploymentsAsync and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Deployments client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDeploymentsClient(apiVersion: "2025-05-15-preview");
+
+await foreach (BinaryData item in client.GetDeploymentsAsync((string)null, (string)null, (int?)null, (int?)null, (int?)null, (RequestContext)null))
+{
+ JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement;
+ Console.WriteLine(result.GetProperty("type").ToString());
+ Console.WriteLine(result.GetProperty("name").ToString());
+}
+]]>
+This sample shows how to call GetDeploymentsAsync with all parameters and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Deployments client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDeploymentsClient(apiVersion: "2025-05-15-preview");
+
+await foreach (BinaryData item in client.GetDeploymentsAsync("", "", 1234, 1234, 1234, (RequestContext)null))
+{
+ JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement;
+ Console.WriteLine(result.GetProperty("type").ToString());
+ Console.WriteLine(result.GetProperty("name").ToString());
+}
+]]>
+
+
+
+This sample shows how to call GetDeployments and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Deployments client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDeploymentsClient(apiVersion: "2025-05-15-preview");
+
+foreach (BinaryData item in client.GetDeployments((string)null, (string)null, (int?)null, (int?)null, (int?)null, (RequestContext)null))
+{
+ JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement;
+ Console.WriteLine(result.GetProperty("type").ToString());
+ Console.WriteLine(result.GetProperty("name").ToString());
+}
+]]>
+This sample shows how to call GetDeployments with all parameters and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Deployments client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDeploymentsClient(apiVersion: "2025-05-15-preview");
+
+foreach (BinaryData item in client.GetDeployments("", "", 1234, 1234, 1234, (RequestContext)null))
+{
+ JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement;
+ Console.WriteLine(result.GetProperty("type").ToString());
+ Console.WriteLine(result.GetProperty("name").ToString());
+}
+]]>
+
+
+
\ No newline at end of file
diff --git a/sdk/ai/Azure.AI.Projects.1DP/src/Generated/Docs/Evaluations.xml b/sdk/ai/Azure.AI.Projects.1DP/src/Generated/Docs/Evaluations.xml
new file mode 100644
index 000000000000..607be267cf23
--- /dev/null
+++ b/sdk/ai/Azure.AI.Projects.1DP/src/Generated/Docs/Evaluations.xml
@@ -0,0 +1,503 @@
+
+
+
+
+
+This sample shows how to call GetEvaluationAsync.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Evaluations client = new Projects.1DP.AIProjectClient(endpoint, credential).GetEvaluationsClient(apiVersion: "2025-05-15-preview");
+
+Azure.Response < AI.Projects.1DP.Evaluation > response = await client.GetEvaluationAsync("");
+]]>
+This sample shows how to call GetEvaluationAsync with all parameters.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Evaluations client = new Projects.1DP.AIProjectClient(endpoint, credential).GetEvaluationsClient(apiVersion: "2025-05-15-preview");
+
+Azure.Response < AI.Projects.1DP.Evaluation > response = await client.GetEvaluationAsync("");
+]]>
+
+
+
+This sample shows how to call GetEvaluation.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Evaluations client = new Projects.1DP.AIProjectClient(endpoint, credential).GetEvaluationsClient(apiVersion: "2025-05-15-preview");
+
+Azure.Response < AI.Projects.1DP.Evaluation > response = client.GetEvaluation("");
+]]>
+This sample shows how to call GetEvaluation with all parameters.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Evaluations client = new Projects.1DP.AIProjectClient(endpoint, credential).GetEvaluationsClient(apiVersion: "2025-05-15-preview");
+
+Azure.Response < AI.Projects.1DP.Evaluation > response = client.GetEvaluation("");
+]]>
+
+
+
+This sample shows how to call GetEvaluationAsync and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Evaluations client = new Projects.1DP.AIProjectClient(endpoint, credential).GetEvaluationsClient(apiVersion: "2025-05-15-preview");
+
+Response response = await client.GetEvaluationAsync("", (RequestContext)null);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("id").ToString());
+Console.WriteLine(result.GetProperty("data").GetProperty("type").ToString());
+Console.WriteLine(result.GetProperty("evaluators").GetProperty("").GetProperty("id").ToString());
+]]>
+This sample shows how to call GetEvaluationAsync with all parameters and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Evaluations client = new Projects.1DP.AIProjectClient(endpoint, credential).GetEvaluationsClient(apiVersion: "2025-05-15-preview");
+
+Response response = await client.GetEvaluationAsync("", (RequestContext)null);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("id").ToString());
+Console.WriteLine(result.GetProperty("data").GetProperty("type").ToString());
+Console.WriteLine(result.GetProperty("displayName").ToString());
+Console.WriteLine(result.GetProperty("description").ToString());
+Console.WriteLine(result.GetProperty("status").ToString());
+Console.WriteLine(result.GetProperty("tags").GetProperty("").ToString());
+Console.WriteLine(result.GetProperty("properties").GetProperty("").ToString());
+Console.WriteLine(result.GetProperty("evaluators").GetProperty("").GetProperty("id").ToString());
+Console.WriteLine(result.GetProperty("evaluators").GetProperty("").GetProperty("initParams").GetProperty("").ToString());
+Console.WriteLine(result.GetProperty("evaluators").GetProperty("").GetProperty("dataMapping").GetProperty("").ToString());
+]]>
+
+
+
+This sample shows how to call GetEvaluation and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Evaluations client = new Projects.1DP.AIProjectClient(endpoint, credential).GetEvaluationsClient(apiVersion: "2025-05-15-preview");
+
+Response response = client.GetEvaluation("", (RequestContext)null);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("id").ToString());
+Console.WriteLine(result.GetProperty("data").GetProperty("type").ToString());
+Console.WriteLine(result.GetProperty("evaluators").GetProperty("").GetProperty("id").ToString());
+]]>
+This sample shows how to call GetEvaluation with all parameters and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Evaluations client = new Projects.1DP.AIProjectClient(endpoint, credential).GetEvaluationsClient(apiVersion: "2025-05-15-preview");
+
+Response response = client.GetEvaluation("", (RequestContext)null);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("id").ToString());
+Console.WriteLine(result.GetProperty("data").GetProperty("type").ToString());
+Console.WriteLine(result.GetProperty("displayName").ToString());
+Console.WriteLine(result.GetProperty("description").ToString());
+Console.WriteLine(result.GetProperty("status").ToString());
+Console.WriteLine(result.GetProperty("tags").GetProperty("").ToString());
+Console.WriteLine(result.GetProperty("properties").GetProperty("").ToString());
+Console.WriteLine(result.GetProperty("evaluators").GetProperty("").GetProperty("id").ToString());
+Console.WriteLine(result.GetProperty("evaluators").GetProperty("").GetProperty("initParams").GetProperty("").ToString());
+Console.WriteLine(result.GetProperty("evaluators").GetProperty("").GetProperty("dataMapping").GetProperty("").ToString());
+]]>
+
+
+
+This sample shows how to call CreateRunAsync.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Evaluations client = new Projects.1DP.AIProjectClient(endpoint, credential).GetEvaluationsClient(apiVersion: "2025-05-15-preview");
+
+AI.Projects.1DP.Evaluation evaluation = new Projects.1DP.Evaluation(new Projects.1DP.InputDataset(""), new Dictionary
+{
+ ["key"] = new Projects.1DP.EvaluatorConfiguration("")
+});
+Azure.Response < AI.Projects.1DP.Evaluation > response = await client.CreateRunAsync(evaluation);
+]]>
+This sample shows how to call CreateRunAsync with all parameters.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Evaluations client = new Projects.1DP.AIProjectClient(endpoint, credential).GetEvaluationsClient(apiVersion: "2025-05-15-preview");
+
+AI.Projects.1DP.Evaluation evaluation = new Projects.1DP.Evaluation(new Projects.1DP.InputDataset(""), new Dictionary
+{
+ ["key"] = new Projects.1DP.EvaluatorConfiguration("")
+ {
+ InitParams =
+ {
+ ["key"] = BinaryData.FromObjectAsJson(new object())
+ },
+ DataMapping =
+ {
+ ["key"] = ""
+ },
+ }
+})
+{
+ DisplayName = "",
+ Description = "",
+ Tags =
+ {
+ ["key"] = ""
+ },
+ Properties =
+ {
+ ["key"] = ""
+ },
+};
+Azure.Response < AI.Projects.1DP.Evaluation > response = await client.CreateRunAsync(evaluation);
+]]>
+
+
+
+This sample shows how to call CreateRun.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Evaluations client = new Projects.1DP.AIProjectClient(endpoint, credential).GetEvaluationsClient(apiVersion: "2025-05-15-preview");
+
+AI.Projects.1DP.Evaluation evaluation = new Projects.1DP.Evaluation(new Projects.1DP.InputDataset(""), new Dictionary
+{
+ ["key"] = new Projects.1DP.EvaluatorConfiguration("")
+});
+Azure.Response < AI.Projects.1DP.Evaluation > response = client.CreateRun(evaluation);
+]]>
+This sample shows how to call CreateRun with all parameters.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Evaluations client = new Projects.1DP.AIProjectClient(endpoint, credential).GetEvaluationsClient(apiVersion: "2025-05-15-preview");
+
+AI.Projects.1DP.Evaluation evaluation = new Projects.1DP.Evaluation(new Projects.1DP.InputDataset(""), new Dictionary
+{
+ ["key"] = new Projects.1DP.EvaluatorConfiguration("")
+ {
+ InitParams =
+ {
+ ["key"] = BinaryData.FromObjectAsJson(new object())
+ },
+ DataMapping =
+ {
+ ["key"] = ""
+ },
+ }
+})
+{
+ DisplayName = "",
+ Description = "",
+ Tags =
+ {
+ ["key"] = ""
+ },
+ Properties =
+ {
+ ["key"] = ""
+ },
+};
+Azure.Response < AI.Projects.1DP.Evaluation > response = client.CreateRun(evaluation);
+]]>
+
+
+
+This sample shows how to call CreateRunAsync and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Evaluations client = new Projects.1DP.AIProjectClient(endpoint, credential).GetEvaluationsClient(apiVersion: "2025-05-15-preview");
+
+using RequestContent content = RequestContent.Create(new
+{
+ data = new
+ {
+ type = "dataset",
+ id = "",
+ },
+ evaluators = new
+ {
+ key = new
+ {
+ id = "",
+ },
+ },
+});
+Response response = await client.CreateRunAsync(content);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("id").ToString());
+Console.WriteLine(result.GetProperty("data").GetProperty("type").ToString());
+Console.WriteLine(result.GetProperty("evaluators").GetProperty("").GetProperty("id").ToString());
+]]>
+This sample shows how to call CreateRunAsync with all request content and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Evaluations client = new Projects.1DP.AIProjectClient(endpoint, credential).GetEvaluationsClient(apiVersion: "2025-05-15-preview");
+
+using RequestContent content = RequestContent.Create(new
+{
+ data = new
+ {
+ type = "dataset",
+ id = "",
+ },
+ displayName = "",
+ description = "",
+ tags = new
+ {
+ key = "",
+ },
+ properties = new
+ {
+ key = "",
+ },
+ evaluators = new
+ {
+ key = new
+ {
+ id = "",
+ initParams = new
+ {
+ key = new object(),
+ },
+ dataMapping = new
+ {
+ key = "",
+ },
+ },
+ },
+});
+Response response = await client.CreateRunAsync(content);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("id").ToString());
+Console.WriteLine(result.GetProperty("data").GetProperty("type").ToString());
+Console.WriteLine(result.GetProperty("displayName").ToString());
+Console.WriteLine(result.GetProperty("description").ToString());
+Console.WriteLine(result.GetProperty("status").ToString());
+Console.WriteLine(result.GetProperty("tags").GetProperty("").ToString());
+Console.WriteLine(result.GetProperty("properties").GetProperty("").ToString());
+Console.WriteLine(result.GetProperty("evaluators").GetProperty("").GetProperty("id").ToString());
+Console.WriteLine(result.GetProperty("evaluators").GetProperty("").GetProperty("initParams").GetProperty("").ToString());
+Console.WriteLine(result.GetProperty("evaluators").GetProperty("").GetProperty("dataMapping").GetProperty("").ToString());
+]]>
+
+
+
+This sample shows how to call CreateRun and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Evaluations client = new Projects.1DP.AIProjectClient(endpoint, credential).GetEvaluationsClient(apiVersion: "2025-05-15-preview");
+
+using RequestContent content = RequestContent.Create(new
+{
+ data = new
+ {
+ type = "dataset",
+ id = "",
+ },
+ evaluators = new
+ {
+ key = new
+ {
+ id = "",
+ },
+ },
+});
+Response response = client.CreateRun(content);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("id").ToString());
+Console.WriteLine(result.GetProperty("data").GetProperty("type").ToString());
+Console.WriteLine(result.GetProperty("evaluators").GetProperty("").GetProperty("id").ToString());
+]]>
+This sample shows how to call CreateRun with all request content and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Evaluations client = new Projects.1DP.AIProjectClient(endpoint, credential).GetEvaluationsClient(apiVersion: "2025-05-15-preview");
+
+using RequestContent content = RequestContent.Create(new
+{
+ data = new
+ {
+ type = "dataset",
+ id = "",
+ },
+ displayName = "",
+ description = "",
+ tags = new
+ {
+ key = "",
+ },
+ properties = new
+ {
+ key = "",
+ },
+ evaluators = new
+ {
+ key = new
+ {
+ id = "",
+ initParams = new
+ {
+ key = new object(),
+ },
+ dataMapping = new
+ {
+ key = "",
+ },
+ },
+ },
+});
+Response response = client.CreateRun(content);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("id").ToString());
+Console.WriteLine(result.GetProperty("data").GetProperty("type").ToString());
+Console.WriteLine(result.GetProperty("displayName").ToString());
+Console.WriteLine(result.GetProperty("description").ToString());
+Console.WriteLine(result.GetProperty("status").ToString());
+Console.WriteLine(result.GetProperty("tags").GetProperty("").ToString());
+Console.WriteLine(result.GetProperty("properties").GetProperty("").ToString());
+Console.WriteLine(result.GetProperty("evaluators").GetProperty("").GetProperty("id").ToString());
+Console.WriteLine(result.GetProperty("evaluators").GetProperty("").GetProperty("initParams").GetProperty("").ToString());
+Console.WriteLine(result.GetProperty("evaluators").GetProperty("").GetProperty("dataMapping").GetProperty("").ToString());
+]]>
+
+
+
+This sample shows how to call GetEvaluationsAsync.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Evaluations client = new Projects.1DP.AIProjectClient(endpoint, credential).GetEvaluationsClient(apiVersion: "2025-05-15-preview");
+
+await foreach (Projects.1DP.Evaluation item in client.GetEvaluationsAsync())
+{
+}
+]]>
+This sample shows how to call GetEvaluationsAsync with all parameters.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Evaluations client = new Projects.1DP.AIProjectClient(endpoint, credential).GetEvaluationsClient(apiVersion: "2025-05-15-preview");
+
+await foreach (Projects.1DP.Evaluation item in client.GetEvaluationsAsync(maxCount: 1234, skip: 1234, maxpagesize: 1234))
+{
+}
+]]>
+
+
+
+This sample shows how to call GetEvaluations.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Evaluations client = new Projects.1DP.AIProjectClient(endpoint, credential).GetEvaluationsClient(apiVersion: "2025-05-15-preview");
+
+foreach (Projects.1DP.Evaluation item in client.GetEvaluations())
+{
+}
+]]>
+This sample shows how to call GetEvaluations with all parameters.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Evaluations client = new Projects.1DP.AIProjectClient(endpoint, credential).GetEvaluationsClient(apiVersion: "2025-05-15-preview");
+
+foreach (Projects.1DP.Evaluation item in client.GetEvaluations(maxCount: 1234, skip: 1234, maxpagesize: 1234))
+{
+}
+]]>
+
+
+
+This sample shows how to call GetEvaluationsAsync and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Evaluations client = new Projects.1DP.AIProjectClient(endpoint, credential).GetEvaluationsClient(apiVersion: "2025-05-15-preview");
+
+await foreach (BinaryData item in client.GetEvaluationsAsync((int?)null, (int?)null, (int?)null, (RequestContext)null))
+{
+ JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement;
+ Console.WriteLine(result.GetProperty("id").ToString());
+ Console.WriteLine(result.GetProperty("data").GetProperty("type").ToString());
+ Console.WriteLine(result.GetProperty("evaluators").GetProperty("").GetProperty("id").ToString());
+}
+]]>
+This sample shows how to call GetEvaluationsAsync with all parameters and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Evaluations client = new Projects.1DP.AIProjectClient(endpoint, credential).GetEvaluationsClient(apiVersion: "2025-05-15-preview");
+
+await foreach (BinaryData item in client.GetEvaluationsAsync(1234, 1234, 1234, (RequestContext)null))
+{
+ JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement;
+ Console.WriteLine(result.GetProperty("id").ToString());
+ Console.WriteLine(result.GetProperty("data").GetProperty("type").ToString());
+ Console.WriteLine(result.GetProperty("displayName").ToString());
+ Console.WriteLine(result.GetProperty("description").ToString());
+ Console.WriteLine(result.GetProperty("status").ToString());
+ Console.WriteLine(result.GetProperty("tags").GetProperty("").ToString());
+ Console.WriteLine(result.GetProperty("properties").GetProperty("").ToString());
+ Console.WriteLine(result.GetProperty("evaluators").GetProperty("").GetProperty("id").ToString());
+ Console.WriteLine(result.GetProperty("evaluators").GetProperty("").GetProperty("initParams").GetProperty("").ToString());
+ Console.WriteLine(result.GetProperty("evaluators").GetProperty("").GetProperty("dataMapping").GetProperty("").ToString());
+}
+]]>
+
+
+
+This sample shows how to call GetEvaluations and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Evaluations client = new Projects.1DP.AIProjectClient(endpoint, credential).GetEvaluationsClient(apiVersion: "2025-05-15-preview");
+
+foreach (BinaryData item in client.GetEvaluations((int?)null, (int?)null, (int?)null, (RequestContext)null))
+{
+ JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement;
+ Console.WriteLine(result.GetProperty("id").ToString());
+ Console.WriteLine(result.GetProperty("data").GetProperty("type").ToString());
+ Console.WriteLine(result.GetProperty("evaluators").GetProperty("").GetProperty("id").ToString());
+}
+]]>
+This sample shows how to call GetEvaluations with all parameters and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Evaluations client = new Projects.1DP.AIProjectClient(endpoint, credential).GetEvaluationsClient(apiVersion: "2025-05-15-preview");
+
+foreach (BinaryData item in client.GetEvaluations(1234, 1234, 1234, (RequestContext)null))
+{
+ JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement;
+ Console.WriteLine(result.GetProperty("id").ToString());
+ Console.WriteLine(result.GetProperty("data").GetProperty("type").ToString());
+ Console.WriteLine(result.GetProperty("displayName").ToString());
+ Console.WriteLine(result.GetProperty("description").ToString());
+ Console.WriteLine(result.GetProperty("status").ToString());
+ Console.WriteLine(result.GetProperty("tags").GetProperty("").ToString());
+ Console.WriteLine(result.GetProperty("properties").GetProperty("").ToString());
+ Console.WriteLine(result.GetProperty("evaluators").GetProperty("").GetProperty("id").ToString());
+ Console.WriteLine(result.GetProperty("evaluators").GetProperty("").GetProperty("initParams").GetProperty("").ToString());
+ Console.WriteLine(result.GetProperty("evaluators").GetProperty("").GetProperty("dataMapping").GetProperty("").ToString());
+}
+]]>
+
+
+
\ No newline at end of file
diff --git a/sdk/ai/Azure.AI.Projects.1DP/src/Generated/Docs/Indexes.xml b/sdk/ai/Azure.AI.Projects.1DP/src/Generated/Docs/Indexes.xml
new file mode 100644
index 000000000000..c5b10446bcb9
--- /dev/null
+++ b/sdk/ai/Azure.AI.Projects.1DP/src/Generated/Docs/Indexes.xml
@@ -0,0 +1,707 @@
+
+
+
+
+
+This sample shows how to call GetVersionAsync.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Indexes client = new Projects.1DP.AIProjectClient(endpoint, credential).GetIndexesClient(apiVersion: "2025-05-15-preview");
+
+Azure.Response < AI.Projects.1DP.Index > response = await client.GetVersionAsync("", "");
+]]>
+This sample shows how to call GetVersionAsync with all parameters.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Indexes client = new Projects.1DP.AIProjectClient(endpoint, credential).GetIndexesClient(apiVersion: "2025-05-15-preview");
+
+Azure.Response < AI.Projects.1DP.Index > response = await client.GetVersionAsync("", "");
+]]>
+
+
+
+This sample shows how to call GetVersion.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Indexes client = new Projects.1DP.AIProjectClient(endpoint, credential).GetIndexesClient(apiVersion: "2025-05-15-preview");
+
+Azure.Response < AI.Projects.1DP.Index > response = client.GetVersion("", "");
+]]>
+This sample shows how to call GetVersion with all parameters.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Indexes client = new Projects.1DP.AIProjectClient(endpoint, credential).GetIndexesClient(apiVersion: "2025-05-15-preview");
+
+Azure.Response < AI.Projects.1DP.Index > response = client.GetVersion("", "");
+]]>
+
+
+
+This sample shows how to call GetVersionAsync and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Indexes client = new Projects.1DP.AIProjectClient(endpoint, credential).GetIndexesClient(apiVersion: "2025-05-15-preview");
+
+Response response = await client.GetVersionAsync("", "", (RequestContext)null);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("type").ToString());
+Console.WriteLine(result.GetProperty("name").ToString());
+Console.WriteLine(result.GetProperty("version").ToString());
+]]>
+This sample shows how to call GetVersionAsync with all parameters and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Indexes client = new Projects.1DP.AIProjectClient(endpoint, credential).GetIndexesClient(apiVersion: "2025-05-15-preview");
+
+Response response = await client.GetVersionAsync("", "", (RequestContext)null);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("type").ToString());
+Console.WriteLine(result.GetProperty("stage").ToString());
+Console.WriteLine(result.GetProperty("id").ToString());
+Console.WriteLine(result.GetProperty("name").ToString());
+Console.WriteLine(result.GetProperty("version").ToString());
+Console.WriteLine(result.GetProperty("description").ToString());
+Console.WriteLine(result.GetProperty("tags").GetProperty("").ToString());
+]]>
+
+
+
+This sample shows how to call GetVersion and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Indexes client = new Projects.1DP.AIProjectClient(endpoint, credential).GetIndexesClient(apiVersion: "2025-05-15-preview");
+
+Response response = client.GetVersion("", "", (RequestContext)null);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("type").ToString());
+Console.WriteLine(result.GetProperty("name").ToString());
+Console.WriteLine(result.GetProperty("version").ToString());
+]]>
+This sample shows how to call GetVersion with all parameters and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Indexes client = new Projects.1DP.AIProjectClient(endpoint, credential).GetIndexesClient(apiVersion: "2025-05-15-preview");
+
+Response response = client.GetVersion("", "", (RequestContext)null);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("type").ToString());
+Console.WriteLine(result.GetProperty("stage").ToString());
+Console.WriteLine(result.GetProperty("id").ToString());
+Console.WriteLine(result.GetProperty("name").ToString());
+Console.WriteLine(result.GetProperty("version").ToString());
+Console.WriteLine(result.GetProperty("description").ToString());
+Console.WriteLine(result.GetProperty("tags").GetProperty("").ToString());
+]]>
+
+
+
+This sample shows how to call DeleteVersionAsync.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Indexes client = new Projects.1DP.AIProjectClient(endpoint, credential).GetIndexesClient(apiVersion: "2025-05-15-preview");
+
+Response response = await client.DeleteVersionAsync("", "");
+
+Console.WriteLine(response.Status);
+]]>
+This sample shows how to call DeleteVersionAsync with all parameters.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Indexes client = new Projects.1DP.AIProjectClient(endpoint, credential).GetIndexesClient(apiVersion: "2025-05-15-preview");
+
+Response response = await client.DeleteVersionAsync("", "");
+
+Console.WriteLine(response.Status);
+]]>
+
+
+
+This sample shows how to call DeleteVersion.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Indexes client = new Projects.1DP.AIProjectClient(endpoint, credential).GetIndexesClient(apiVersion: "2025-05-15-preview");
+
+Response response = client.DeleteVersion("", "");
+
+Console.WriteLine(response.Status);
+]]>
+This sample shows how to call DeleteVersion with all parameters.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Indexes client = new Projects.1DP.AIProjectClient(endpoint, credential).GetIndexesClient(apiVersion: "2025-05-15-preview");
+
+Response response = client.DeleteVersion("", "");
+
+Console.WriteLine(response.Status);
+]]>
+
+
+
+This sample shows how to call CreateAsync.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Indexes client = new Projects.1DP.AIProjectClient(endpoint, credential).GetIndexesClient(apiVersion: "2025-05-15-preview");
+
+AI.Projects.1DP.Index body = new Projects.1DP.AzureAISearchIndex("", "");
+Azure.Response < AI.Projects.1DP.Index > response = await client.CreateAsync("", body);
+]]>
+This sample shows how to call CreateAsync with all parameters.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Indexes client = new Projects.1DP.AIProjectClient(endpoint, credential).GetIndexesClient(apiVersion: "2025-05-15-preview");
+
+AI.Projects.1DP.Index body = new Projects.1DP.AzureAISearchIndex("", "")
+{
+ Stage = "",
+ Description = "",
+ Tags =
+ {
+ ["key"] = ""
+ },
+};
+Azure.Response < AI.Projects.1DP.Index > response = await client.CreateAsync("", body);
+]]>
+
+
+
+This sample shows how to call Create.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Indexes client = new Projects.1DP.AIProjectClient(endpoint, credential).GetIndexesClient(apiVersion: "2025-05-15-preview");
+
+AI.Projects.1DP.Index body = new Projects.1DP.AzureAISearchIndex("", "");
+Azure.Response < AI.Projects.1DP.Index > response = client.Create("", body);
+]]>
+This sample shows how to call Create with all parameters.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Indexes client = new Projects.1DP.AIProjectClient(endpoint, credential).GetIndexesClient(apiVersion: "2025-05-15-preview");
+
+AI.Projects.1DP.Index body = new Projects.1DP.AzureAISearchIndex("", "")
+{
+ Stage = "",
+ Description = "",
+ Tags =
+ {
+ ["key"] = ""
+ },
+};
+Azure.Response < AI.Projects.1DP.Index > response = client.Create("", body);
+]]>
+
+
+
+This sample shows how to call CreateAsync and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Indexes client = new Projects.1DP.AIProjectClient(endpoint, credential).GetIndexesClient(apiVersion: "2025-05-15-preview");
+
+using RequestContent content = RequestContent.Create(new
+{
+ type = "AzureSearch",
+ connectionName = "",
+ indexName = "",
+});
+Response response = await client.CreateAsync("", content);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("type").ToString());
+Console.WriteLine(result.GetProperty("name").ToString());
+Console.WriteLine(result.GetProperty("version").ToString());
+]]>
+This sample shows how to call CreateAsync with all parameters and request content and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Indexes client = new Projects.1DP.AIProjectClient(endpoint, credential).GetIndexesClient(apiVersion: "2025-05-15-preview");
+
+using RequestContent content = RequestContent.Create(new
+{
+ type = "AzureSearch",
+ connectionName = "",
+ indexName = "",
+ stage = "",
+ description = "",
+ tags = new
+ {
+ key = "",
+ },
+});
+Response response = await client.CreateAsync("", content);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("type").ToString());
+Console.WriteLine(result.GetProperty("stage").ToString());
+Console.WriteLine(result.GetProperty("id").ToString());
+Console.WriteLine(result.GetProperty("name").ToString());
+Console.WriteLine(result.GetProperty("version").ToString());
+Console.WriteLine(result.GetProperty("description").ToString());
+Console.WriteLine(result.GetProperty("tags").GetProperty("").ToString());
+]]>
+
+
+
+This sample shows how to call Create and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Indexes client = new Projects.1DP.AIProjectClient(endpoint, credential).GetIndexesClient(apiVersion: "2025-05-15-preview");
+
+using RequestContent content = RequestContent.Create(new
+{
+ type = "AzureSearch",
+ connectionName = "",
+ indexName = "",
+});
+Response response = client.Create("", content);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("type").ToString());
+Console.WriteLine(result.GetProperty("name").ToString());
+Console.WriteLine(result.GetProperty("version").ToString());
+]]>
+This sample shows how to call Create with all parameters and request content and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Indexes client = new Projects.1DP.AIProjectClient(endpoint, credential).GetIndexesClient(apiVersion: "2025-05-15-preview");
+
+using RequestContent content = RequestContent.Create(new
+{
+ type = "AzureSearch",
+ connectionName = "",
+ indexName = "",
+ stage = "",
+ description = "",
+ tags = new
+ {
+ key = "",
+ },
+});
+Response response = client.Create("", content);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("type").ToString());
+Console.WriteLine(result.GetProperty("stage").ToString());
+Console.WriteLine(result.GetProperty("id").ToString());
+Console.WriteLine(result.GetProperty("name").ToString());
+Console.WriteLine(result.GetProperty("version").ToString());
+Console.WriteLine(result.GetProperty("description").ToString());
+Console.WriteLine(result.GetProperty("tags").GetProperty("").ToString());
+]]>
+
+
+
+This sample shows how to call CreateVersionAsync.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Indexes client = new Projects.1DP.AIProjectClient(endpoint, credential).GetIndexesClient(apiVersion: "2025-05-15-preview");
+
+AI.Projects.1DP.Index body = new Projects.1DP.AzureAISearchIndex("", "");
+Azure.Response < AI.Projects.1DP.Index > response = await client.CreateVersionAsync("", "", body);
+]]>
+This sample shows how to call CreateVersionAsync with all parameters.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Indexes client = new Projects.1DP.AIProjectClient(endpoint, credential).GetIndexesClient(apiVersion: "2025-05-15-preview");
+
+AI.Projects.1DP.Index body = new Projects.1DP.AzureAISearchIndex("", "")
+{
+ Stage = "",
+ Description = "",
+ Tags =
+ {
+ ["key"] = ""
+ },
+};
+Azure.Response < AI.Projects.1DP.Index > response = await client.CreateVersionAsync("", "", body);
+]]>
+
+
+
+This sample shows how to call CreateVersion.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Indexes client = new Projects.1DP.AIProjectClient(endpoint, credential).GetIndexesClient(apiVersion: "2025-05-15-preview");
+
+AI.Projects.1DP.Index body = new Projects.1DP.AzureAISearchIndex("", "");
+Azure.Response < AI.Projects.1DP.Index > response = client.CreateVersion("", "", body);
+]]>
+This sample shows how to call CreateVersion with all parameters.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Indexes client = new Projects.1DP.AIProjectClient(endpoint, credential).GetIndexesClient(apiVersion: "2025-05-15-preview");
+
+AI.Projects.1DP.Index body = new Projects.1DP.AzureAISearchIndex("", "")
+{
+ Stage = "",
+ Description = "",
+ Tags =
+ {
+ ["key"] = ""
+ },
+};
+Azure.Response < AI.Projects.1DP.Index > response = client.CreateVersion("", "", body);
+]]>
+
+
+
+This sample shows how to call CreateVersionAsync and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Indexes client = new Projects.1DP.AIProjectClient(endpoint, credential).GetIndexesClient(apiVersion: "2025-05-15-preview");
+
+using RequestContent content = RequestContent.Create(new
+{
+ type = "AzureSearch",
+ connectionName = "",
+ indexName = "",
+});
+Response response = await client.CreateVersionAsync("", "", content);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("type").ToString());
+Console.WriteLine(result.GetProperty("name").ToString());
+Console.WriteLine(result.GetProperty("version").ToString());
+]]>
+This sample shows how to call CreateVersionAsync with all parameters and request content and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Indexes client = new Projects.1DP.AIProjectClient(endpoint, credential).GetIndexesClient(apiVersion: "2025-05-15-preview");
+
+using RequestContent content = RequestContent.Create(new
+{
+ type = "AzureSearch",
+ connectionName = "",
+ indexName = "",
+ stage = "",
+ description = "",
+ tags = new
+ {
+ key = "",
+ },
+});
+Response response = await client.CreateVersionAsync("", "", content);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("type").ToString());
+Console.WriteLine(result.GetProperty("stage").ToString());
+Console.WriteLine(result.GetProperty("id").ToString());
+Console.WriteLine(result.GetProperty("name").ToString());
+Console.WriteLine(result.GetProperty("version").ToString());
+Console.WriteLine(result.GetProperty("description").ToString());
+Console.WriteLine(result.GetProperty("tags").GetProperty("").ToString());
+]]>
+
+
+
+This sample shows how to call CreateVersion and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Indexes client = new Projects.1DP.AIProjectClient(endpoint, credential).GetIndexesClient(apiVersion: "2025-05-15-preview");
+
+using RequestContent content = RequestContent.Create(new
+{
+ type = "AzureSearch",
+ connectionName = "",
+ indexName = "",
+});
+Response response = client.CreateVersion("", "", content);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("type").ToString());
+Console.WriteLine(result.GetProperty("name").ToString());
+Console.WriteLine(result.GetProperty("version").ToString());
+]]>
+This sample shows how to call CreateVersion with all parameters and request content and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Indexes client = new Projects.1DP.AIProjectClient(endpoint, credential).GetIndexesClient(apiVersion: "2025-05-15-preview");
+
+using RequestContent content = RequestContent.Create(new
+{
+ type = "AzureSearch",
+ connectionName = "",
+ indexName = "",
+ stage = "",
+ description = "",
+ tags = new
+ {
+ key = "",
+ },
+});
+Response response = client.CreateVersion("", "", content);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("type").ToString());
+Console.WriteLine(result.GetProperty("stage").ToString());
+Console.WriteLine(result.GetProperty("id").ToString());
+Console.WriteLine(result.GetProperty("name").ToString());
+Console.WriteLine(result.GetProperty("version").ToString());
+Console.WriteLine(result.GetProperty("description").ToString());
+Console.WriteLine(result.GetProperty("tags").GetProperty("").ToString());
+]]>
+
+
+
+This sample shows how to call GetVersionsAsync.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Indexes client = new Projects.1DP.AIProjectClient(endpoint, credential).GetIndexesClient(apiVersion: "2025-05-15-preview");
+
+await foreach (Projects.1DP.Index item in client.GetVersionsAsync(""))
+{
+}
+]]>
+This sample shows how to call GetVersionsAsync with all parameters.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Indexes client = new Projects.1DP.AIProjectClient(endpoint, credential).GetIndexesClient(apiVersion: "2025-05-15-preview");
+
+await foreach (Projects.1DP.Index item in client.GetVersionsAsync("", maxCount: 1234, skip: "", tags: "", listViewType: AI.Projects.1DP.ListViewType.ActiveOnly))
+{
+}
+]]>
+
+
+
+This sample shows how to call GetVersions.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Indexes client = new Projects.1DP.AIProjectClient(endpoint, credential).GetIndexesClient(apiVersion: "2025-05-15-preview");
+
+foreach (Projects.1DP.Index item in client.GetVersions(""))
+{
+}
+]]>
+This sample shows how to call GetVersions with all parameters.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Indexes client = new Projects.1DP.AIProjectClient(endpoint, credential).GetIndexesClient(apiVersion: "2025-05-15-preview");
+
+foreach (Projects.1DP.Index item in client.GetVersions("", maxCount: 1234, skip: "", tags: "", listViewType: AI.Projects.1DP.ListViewType.ActiveOnly))
+{
+}
+]]>
+
+
+
+This sample shows how to call GetVersionsAsync and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Indexes client = new Projects.1DP.AIProjectClient(endpoint, credential).GetIndexesClient(apiVersion: "2025-05-15-preview");
+
+await foreach (BinaryData item in client.GetVersionsAsync("", (int?)null, (string)null, (string)null, (string)null, (RequestContext)null))
+{
+ JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement;
+ Console.WriteLine(result.GetProperty("type").ToString());
+ Console.WriteLine(result.GetProperty("name").ToString());
+ Console.WriteLine(result.GetProperty("version").ToString());
+}
+]]>
+This sample shows how to call GetVersionsAsync with all parameters and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Indexes client = new Projects.1DP.AIProjectClient(endpoint, credential).GetIndexesClient(apiVersion: "2025-05-15-preview");
+
+await foreach (BinaryData item in client.GetVersionsAsync("", 1234, "", "", "ActiveOnly", (RequestContext)null))
+{
+ JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement;
+ Console.WriteLine(result.GetProperty("type").ToString());
+ Console.WriteLine(result.GetProperty("stage").ToString());
+ Console.WriteLine(result.GetProperty("id").ToString());
+ Console.WriteLine(result.GetProperty("name").ToString());
+ Console.WriteLine(result.GetProperty("version").ToString());
+ Console.WriteLine(result.GetProperty("description").ToString());
+ Console.WriteLine(result.GetProperty("tags").GetProperty("").ToString());
+}
+]]>
+
+
+
+This sample shows how to call GetVersions and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Indexes client = new Projects.1DP.AIProjectClient(endpoint, credential).GetIndexesClient(apiVersion: "2025-05-15-preview");
+
+foreach (BinaryData item in client.GetVersions("", (int?)null, (string)null, (string)null, (string)null, (RequestContext)null))
+{
+ JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement;
+ Console.WriteLine(result.GetProperty("type").ToString());
+ Console.WriteLine(result.GetProperty("name").ToString());
+ Console.WriteLine(result.GetProperty("version").ToString());
+}
+]]>
+This sample shows how to call GetVersions with all parameters and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Indexes client = new Projects.1DP.AIProjectClient(endpoint, credential).GetIndexesClient(apiVersion: "2025-05-15-preview");
+
+foreach (BinaryData item in client.GetVersions("", 1234, "", "", "ActiveOnly", (RequestContext)null))
+{
+ JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement;
+ Console.WriteLine(result.GetProperty("type").ToString());
+ Console.WriteLine(result.GetProperty("stage").ToString());
+ Console.WriteLine(result.GetProperty("id").ToString());
+ Console.WriteLine(result.GetProperty("name").ToString());
+ Console.WriteLine(result.GetProperty("version").ToString());
+ Console.WriteLine(result.GetProperty("description").ToString());
+ Console.WriteLine(result.GetProperty("tags").GetProperty("").ToString());
+}
+]]>
+
+
+
+This sample shows how to call GetLatestsAsync.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Indexes client = new Projects.1DP.AIProjectClient(endpoint, credential).GetIndexesClient(apiVersion: "2025-05-15-preview");
+
+await foreach (Projects.1DP.Index item in client.GetLatestsAsync())
+{
+}
+]]>
+This sample shows how to call GetLatestsAsync with all parameters.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Indexes client = new Projects.1DP.AIProjectClient(endpoint, credential).GetIndexesClient(apiVersion: "2025-05-15-preview");
+
+await foreach (Projects.1DP.Index item in client.GetLatestsAsync(maxCount: 1234, skip: "", tags: "", listViewType: AI.Projects.1DP.ListViewType.ActiveOnly))
+{
+}
+]]>
+
+
+
+This sample shows how to call GetLatests.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Indexes client = new Projects.1DP.AIProjectClient(endpoint, credential).GetIndexesClient(apiVersion: "2025-05-15-preview");
+
+foreach (Projects.1DP.Index item in client.GetLatests())
+{
+}
+]]>
+This sample shows how to call GetLatests with all parameters.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Indexes client = new Projects.1DP.AIProjectClient(endpoint, credential).GetIndexesClient(apiVersion: "2025-05-15-preview");
+
+foreach (Projects.1DP.Index item in client.GetLatests(maxCount: 1234, skip: "", tags: "", listViewType: AI.Projects.1DP.ListViewType.ActiveOnly))
+{
+}
+]]>
+
+
+
+This sample shows how to call GetLatestsAsync and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Indexes client = new Projects.1DP.AIProjectClient(endpoint, credential).GetIndexesClient(apiVersion: "2025-05-15-preview");
+
+await foreach (BinaryData item in client.GetLatestsAsync((int?)null, (string)null, (string)null, (string)null, (RequestContext)null))
+{
+ JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement;
+ Console.WriteLine(result.GetProperty("type").ToString());
+ Console.WriteLine(result.GetProperty("name").ToString());
+ Console.WriteLine(result.GetProperty("version").ToString());
+}
+]]>
+This sample shows how to call GetLatestsAsync with all parameters and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Indexes client = new Projects.1DP.AIProjectClient(endpoint, credential).GetIndexesClient(apiVersion: "2025-05-15-preview");
+
+await foreach (BinaryData item in client.GetLatestsAsync(1234, "", "", "ActiveOnly", (RequestContext)null))
+{
+ JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement;
+ Console.WriteLine(result.GetProperty("type").ToString());
+ Console.WriteLine(result.GetProperty("stage").ToString());
+ Console.WriteLine(result.GetProperty("id").ToString());
+ Console.WriteLine(result.GetProperty("name").ToString());
+ Console.WriteLine(result.GetProperty("version").ToString());
+ Console.WriteLine(result.GetProperty("description").ToString());
+ Console.WriteLine(result.GetProperty("tags").GetProperty("").ToString());
+}
+]]>
+
+
+
+This sample shows how to call GetLatests and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Indexes client = new Projects.1DP.AIProjectClient(endpoint, credential).GetIndexesClient(apiVersion: "2025-05-15-preview");
+
+foreach (BinaryData item in client.GetLatests((int?)null, (string)null, (string)null, (string)null, (RequestContext)null))
+{
+ JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement;
+ Console.WriteLine(result.GetProperty("type").ToString());
+ Console.WriteLine(result.GetProperty("name").ToString());
+ Console.WriteLine(result.GetProperty("version").ToString());
+}
+]]>
+This sample shows how to call GetLatests with all parameters and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.Indexes client = new Projects.1DP.AIProjectClient(endpoint, credential).GetIndexesClient(apiVersion: "2025-05-15-preview");
+
+foreach (BinaryData item in client.GetLatests(1234, "", "", "ActiveOnly", (RequestContext)null))
+{
+ JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement;
+ Console.WriteLine(result.GetProperty("type").ToString());
+ Console.WriteLine(result.GetProperty("stage").ToString());
+ Console.WriteLine(result.GetProperty("id").ToString());
+ Console.WriteLine(result.GetProperty("name").ToString());
+ Console.WriteLine(result.GetProperty("version").ToString());
+ Console.WriteLine(result.GetProperty("description").ToString());
+ Console.WriteLine(result.GetProperty("tags").GetProperty("").ToString());
+}
+]]>
+
+
+
\ No newline at end of file
diff --git a/sdk/ai/Azure.AI.Projects.1DP/src/Generated/Docs/RedTeams.xml b/sdk/ai/Azure.AI.Projects.1DP/src/Generated/Docs/RedTeams.xml
new file mode 100644
index 000000000000..183b498cc8b2
--- /dev/null
+++ b/sdk/ai/Azure.AI.Projects.1DP/src/Generated/Docs/RedTeams.xml
@@ -0,0 +1,465 @@
+
+
+
+
+
+This sample shows how to call GetRedTeamAsync.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.RedTeams client = new Projects.1DP.AIProjectClient(endpoint, credential).GetRedTeamsClient(apiVersion: "2025-05-15-preview");
+
+Azure.Response < AI.Projects.1DP.RedTeam > response = await client.GetRedTeamAsync("");
+]]>
+This sample shows how to call GetRedTeamAsync with all parameters.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.RedTeams client = new Projects.1DP.AIProjectClient(endpoint, credential).GetRedTeamsClient(apiVersion: "2025-05-15-preview");
+
+Azure.Response < AI.Projects.1DP.RedTeam > response = await client.GetRedTeamAsync("");
+]]>
+
+
+
+This sample shows how to call GetRedTeam.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.RedTeams client = new Projects.1DP.AIProjectClient(endpoint, credential).GetRedTeamsClient(apiVersion: "2025-05-15-preview");
+
+Azure.Response < AI.Projects.1DP.RedTeam > response = client.GetRedTeam("");
+]]>
+This sample shows how to call GetRedTeam with all parameters.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.RedTeams client = new Projects.1DP.AIProjectClient(endpoint, credential).GetRedTeamsClient(apiVersion: "2025-05-15-preview");
+
+Azure.Response < AI.Projects.1DP.RedTeam > response = client.GetRedTeam("");
+]]>
+
+
+
+This sample shows how to call GetRedTeamAsync and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.RedTeams client = new Projects.1DP.AIProjectClient(endpoint, credential).GetRedTeamsClient(apiVersion: "2025-05-15-preview");
+
+Response response = await client.GetRedTeamAsync("", (RequestContext)null);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("id").ToString());
+Console.WriteLine(result.GetProperty("scanName").ToString());
+Console.WriteLine(result.GetProperty("numTurns").ToString());
+Console.WriteLine(result.GetProperty("attackStrategy")[0].ToString());
+Console.WriteLine(result.GetProperty("simulationOnly").ToString());
+Console.WriteLine(result.GetProperty("riskCategories")[0].ToString());
+]]>
+This sample shows how to call GetRedTeamAsync with all parameters and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.RedTeams client = new Projects.1DP.AIProjectClient(endpoint, credential).GetRedTeamsClient(apiVersion: "2025-05-15-preview");
+
+Response response = await client.GetRedTeamAsync("", (RequestContext)null);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("id").ToString());
+Console.WriteLine(result.GetProperty("scanName").ToString());
+Console.WriteLine(result.GetProperty("numTurns").ToString());
+Console.WriteLine(result.GetProperty("attackStrategy")[0].ToString());
+Console.WriteLine(result.GetProperty("simulationOnly").ToString());
+Console.WriteLine(result.GetProperty("riskCategories")[0].ToString());
+Console.WriteLine(result.GetProperty("applicationScenario").ToString());
+Console.WriteLine(result.GetProperty("tags").GetProperty("").ToString());
+Console.WriteLine(result.GetProperty("properties").GetProperty("").ToString());
+Console.WriteLine(result.GetProperty("status").ToString());
+]]>
+
+
+
+This sample shows how to call GetRedTeam and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.RedTeams client = new Projects.1DP.AIProjectClient(endpoint, credential).GetRedTeamsClient(apiVersion: "2025-05-15-preview");
+
+Response response = client.GetRedTeam("", (RequestContext)null);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("id").ToString());
+Console.WriteLine(result.GetProperty("scanName").ToString());
+Console.WriteLine(result.GetProperty("numTurns").ToString());
+Console.WriteLine(result.GetProperty("attackStrategy")[0].ToString());
+Console.WriteLine(result.GetProperty("simulationOnly").ToString());
+Console.WriteLine(result.GetProperty("riskCategories")[0].ToString());
+]]>
+This sample shows how to call GetRedTeam with all parameters and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.RedTeams client = new Projects.1DP.AIProjectClient(endpoint, credential).GetRedTeamsClient(apiVersion: "2025-05-15-preview");
+
+Response response = client.GetRedTeam("", (RequestContext)null);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("id").ToString());
+Console.WriteLine(result.GetProperty("scanName").ToString());
+Console.WriteLine(result.GetProperty("numTurns").ToString());
+Console.WriteLine(result.GetProperty("attackStrategy")[0].ToString());
+Console.WriteLine(result.GetProperty("simulationOnly").ToString());
+Console.WriteLine(result.GetProperty("riskCategories")[0].ToString());
+Console.WriteLine(result.GetProperty("applicationScenario").ToString());
+Console.WriteLine(result.GetProperty("tags").GetProperty("").ToString());
+Console.WriteLine(result.GetProperty("properties").GetProperty("").ToString());
+Console.WriteLine(result.GetProperty("status").ToString());
+]]>
+
+
+
+This sample shows how to call CreateRunAsync.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.RedTeams client = new Projects.1DP.AIProjectClient(endpoint, credential).GetRedTeamsClient(apiVersion: "2025-05-15-preview");
+
+AI.Projects.1DP.RedTeam redTeam = new Projects.1DP.RedTeam("", 1234, new Projects.1DP.AttackStrategy[]{ AI.Projects.1DP.AttackStrategy.Easy}, true, new Projects.1DP.RiskCategory[]{ AI.Projects.1DP.RiskCategory.HateUnfairness});
+Azure.Response < AI.Projects.1DP.RedTeam > response = await client.CreateRunAsync(redTeam);
+]]>
+This sample shows how to call CreateRunAsync with all parameters.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.RedTeams client = new Projects.1DP.AIProjectClient(endpoint, credential).GetRedTeamsClient(apiVersion: "2025-05-15-preview");
+
+AI.Projects.1DP.RedTeam redTeam = new Projects.1DP.RedTeam("", 1234, new Projects.1DP.AttackStrategy[]{ AI.Projects.1DP.AttackStrategy.Easy}, true, new Projects.1DP.RiskCategory[]{ AI.Projects.1DP.RiskCategory.HateUnfairness})
+{
+ ApplicationScenario = "",
+ Tags =
+ {
+ ["key"] = ""
+ },
+ Properties =
+ {
+ ["key"] = ""
+ },
+};
+Azure.Response < AI.Projects.1DP.RedTeam > response = await client.CreateRunAsync(redTeam);
+]]>
+
+
+
+This sample shows how to call CreateRun.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.RedTeams client = new Projects.1DP.AIProjectClient(endpoint, credential).GetRedTeamsClient(apiVersion: "2025-05-15-preview");
+
+AI.Projects.1DP.RedTeam redTeam = new Projects.1DP.RedTeam("", 1234, new Projects.1DP.AttackStrategy[]{ AI.Projects.1DP.AttackStrategy.Easy}, true, new Projects.1DP.RiskCategory[]{ AI.Projects.1DP.RiskCategory.HateUnfairness});
+Azure.Response < AI.Projects.1DP.RedTeam > response = client.CreateRun(redTeam);
+]]>
+This sample shows how to call CreateRun with all parameters.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.RedTeams client = new Projects.1DP.AIProjectClient(endpoint, credential).GetRedTeamsClient(apiVersion: "2025-05-15-preview");
+
+AI.Projects.1DP.RedTeam redTeam = new Projects.1DP.RedTeam("", 1234, new Projects.1DP.AttackStrategy[]{ AI.Projects.1DP.AttackStrategy.Easy}, true, new Projects.1DP.RiskCategory[]{ AI.Projects.1DP.RiskCategory.HateUnfairness})
+{
+ ApplicationScenario = "",
+ Tags =
+ {
+ ["key"] = ""
+ },
+ Properties =
+ {
+ ["key"] = ""
+ },
+};
+Azure.Response < AI.Projects.1DP.RedTeam > response = client.CreateRun(redTeam);
+]]>
+
+
+
+This sample shows how to call CreateRunAsync and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.RedTeams client = new Projects.1DP.AIProjectClient(endpoint, credential).GetRedTeamsClient(apiVersion: "2025-05-15-preview");
+
+using RequestContent content = RequestContent.Create(new
+{
+ scanName = "",
+ numTurns = 1234,
+ attackStrategy = new object[]
+ {
+ "easy"
+ },
+ simulationOnly = true,
+ riskCategories = new object[]
+ {
+ "HateUnfairness"
+ },
+});
+Response response = await client.CreateRunAsync(content);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("id").ToString());
+Console.WriteLine(result.GetProperty("scanName").ToString());
+Console.WriteLine(result.GetProperty("numTurns").ToString());
+Console.WriteLine(result.GetProperty("attackStrategy")[0].ToString());
+Console.WriteLine(result.GetProperty("simulationOnly").ToString());
+Console.WriteLine(result.GetProperty("riskCategories")[0].ToString());
+]]>
+This sample shows how to call CreateRunAsync with all request content and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.RedTeams client = new Projects.1DP.AIProjectClient(endpoint, credential).GetRedTeamsClient(apiVersion: "2025-05-15-preview");
+
+using RequestContent content = RequestContent.Create(new
+{
+ scanName = "",
+ numTurns = 1234,
+ attackStrategy = new object[]
+ {
+ "easy"
+ },
+ simulationOnly = true,
+ riskCategories = new object[]
+ {
+ "HateUnfairness"
+ },
+ applicationScenario = "",
+ tags = new
+ {
+ key = "",
+ },
+ properties = new
+ {
+ key = "",
+ },
+});
+Response response = await client.CreateRunAsync(content);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("id").ToString());
+Console.WriteLine(result.GetProperty("scanName").ToString());
+Console.WriteLine(result.GetProperty("numTurns").ToString());
+Console.WriteLine(result.GetProperty("attackStrategy")[0].ToString());
+Console.WriteLine(result.GetProperty("simulationOnly").ToString());
+Console.WriteLine(result.GetProperty("riskCategories")[0].ToString());
+Console.WriteLine(result.GetProperty("applicationScenario").ToString());
+Console.WriteLine(result.GetProperty("tags").GetProperty("").ToString());
+Console.WriteLine(result.GetProperty("properties").GetProperty("").ToString());
+Console.WriteLine(result.GetProperty("status").ToString());
+]]>
+
+
+
+This sample shows how to call CreateRun and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.RedTeams client = new Projects.1DP.AIProjectClient(endpoint, credential).GetRedTeamsClient(apiVersion: "2025-05-15-preview");
+
+using RequestContent content = RequestContent.Create(new
+{
+ scanName = "",
+ numTurns = 1234,
+ attackStrategy = new object[]
+ {
+ "easy"
+ },
+ simulationOnly = true,
+ riskCategories = new object[]
+ {
+ "HateUnfairness"
+ },
+});
+Response response = client.CreateRun(content);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("id").ToString());
+Console.WriteLine(result.GetProperty("scanName").ToString());
+Console.WriteLine(result.GetProperty("numTurns").ToString());
+Console.WriteLine(result.GetProperty("attackStrategy")[0].ToString());
+Console.WriteLine(result.GetProperty("simulationOnly").ToString());
+Console.WriteLine(result.GetProperty("riskCategories")[0].ToString());
+]]>
+This sample shows how to call CreateRun with all request content and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.RedTeams client = new Projects.1DP.AIProjectClient(endpoint, credential).GetRedTeamsClient(apiVersion: "2025-05-15-preview");
+
+using RequestContent content = RequestContent.Create(new
+{
+ scanName = "",
+ numTurns = 1234,
+ attackStrategy = new object[]
+ {
+ "easy"
+ },
+ simulationOnly = true,
+ riskCategories = new object[]
+ {
+ "HateUnfairness"
+ },
+ applicationScenario = "",
+ tags = new
+ {
+ key = "",
+ },
+ properties = new
+ {
+ key = "",
+ },
+});
+Response response = client.CreateRun(content);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("id").ToString());
+Console.WriteLine(result.GetProperty("scanName").ToString());
+Console.WriteLine(result.GetProperty("numTurns").ToString());
+Console.WriteLine(result.GetProperty("attackStrategy")[0].ToString());
+Console.WriteLine(result.GetProperty("simulationOnly").ToString());
+Console.WriteLine(result.GetProperty("riskCategories")[0].ToString());
+Console.WriteLine(result.GetProperty("applicationScenario").ToString());
+Console.WriteLine(result.GetProperty("tags").GetProperty("").ToString());
+Console.WriteLine(result.GetProperty("properties").GetProperty("").ToString());
+Console.WriteLine(result.GetProperty("status").ToString());
+]]>
+
+
+
+This sample shows how to call GetRedTeamsAsync.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.RedTeams client = new Projects.1DP.AIProjectClient(endpoint, credential).GetRedTeamsClient(apiVersion: "2025-05-15-preview");
+
+await foreach (Projects.1DP.RedTeam item in client.GetRedTeamsAsync())
+{
+}
+]]>
+This sample shows how to call GetRedTeamsAsync with all parameters.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.RedTeams client = new Projects.1DP.AIProjectClient(endpoint, credential).GetRedTeamsClient(apiVersion: "2025-05-15-preview");
+
+await foreach (Projects.1DP.RedTeam item in client.GetRedTeamsAsync(maxCount: 1234, skip: 1234, maxpagesize: 1234))
+{
+}
+]]>
+
+
+
+This sample shows how to call GetRedTeams.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.RedTeams client = new Projects.1DP.AIProjectClient(endpoint, credential).GetRedTeamsClient(apiVersion: "2025-05-15-preview");
+
+foreach (Projects.1DP.RedTeam item in client.GetRedTeams())
+{
+}
+]]>
+This sample shows how to call GetRedTeams with all parameters.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.RedTeams client = new Projects.1DP.AIProjectClient(endpoint, credential).GetRedTeamsClient(apiVersion: "2025-05-15-preview");
+
+foreach (Projects.1DP.RedTeam item in client.GetRedTeams(maxCount: 1234, skip: 1234, maxpagesize: 1234))
+{
+}
+]]>
+
+
+
+This sample shows how to call GetRedTeamsAsync and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.RedTeams client = new Projects.1DP.AIProjectClient(endpoint, credential).GetRedTeamsClient(apiVersion: "2025-05-15-preview");
+
+await foreach (BinaryData item in client.GetRedTeamsAsync((int?)null, (int?)null, (int?)null, (RequestContext)null))
+{
+ JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement;
+ Console.WriteLine(result.GetProperty("id").ToString());
+ Console.WriteLine(result.GetProperty("scanName").ToString());
+ Console.WriteLine(result.GetProperty("numTurns").ToString());
+ Console.WriteLine(result.GetProperty("attackStrategy")[0].ToString());
+ Console.WriteLine(result.GetProperty("simulationOnly").ToString());
+ Console.WriteLine(result.GetProperty("riskCategories")[0].ToString());
+}
+]]>
+This sample shows how to call GetRedTeamsAsync with all parameters and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.RedTeams client = new Projects.1DP.AIProjectClient(endpoint, credential).GetRedTeamsClient(apiVersion: "2025-05-15-preview");
+
+await foreach (BinaryData item in client.GetRedTeamsAsync(1234, 1234, 1234, (RequestContext)null))
+{
+ JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement;
+ Console.WriteLine(result.GetProperty("id").ToString());
+ Console.WriteLine(result.GetProperty("scanName").ToString());
+ Console.WriteLine(result.GetProperty("numTurns").ToString());
+ Console.WriteLine(result.GetProperty("attackStrategy")[0].ToString());
+ Console.WriteLine(result.GetProperty("simulationOnly").ToString());
+ Console.WriteLine(result.GetProperty("riskCategories")[0].ToString());
+ Console.WriteLine(result.GetProperty("applicationScenario").ToString());
+ Console.WriteLine(result.GetProperty("tags").GetProperty("").ToString());
+ Console.WriteLine(result.GetProperty("properties").GetProperty("").ToString());
+ Console.WriteLine(result.GetProperty("status").ToString());
+}
+]]>
+
+
+
+This sample shows how to call GetRedTeams and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.RedTeams client = new Projects.1DP.AIProjectClient(endpoint, credential).GetRedTeamsClient(apiVersion: "2025-05-15-preview");
+
+foreach (BinaryData item in client.GetRedTeams((int?)null, (int?)null, (int?)null, (RequestContext)null))
+{
+ JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement;
+ Console.WriteLine(result.GetProperty("id").ToString());
+ Console.WriteLine(result.GetProperty("scanName").ToString());
+ Console.WriteLine(result.GetProperty("numTurns").ToString());
+ Console.WriteLine(result.GetProperty("attackStrategy")[0].ToString());
+ Console.WriteLine(result.GetProperty("simulationOnly").ToString());
+ Console.WriteLine(result.GetProperty("riskCategories")[0].ToString());
+}
+]]>
+This sample shows how to call GetRedTeams with all parameters and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+AI.Projects.1DP.RedTeams client = new Projects.1DP.AIProjectClient(endpoint, credential).GetRedTeamsClient(apiVersion: "2025-05-15-preview");
+
+foreach (BinaryData item in client.GetRedTeams(1234, 1234, 1234, (RequestContext)null))
+{
+ JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement;
+ Console.WriteLine(result.GetProperty("id").ToString());
+ Console.WriteLine(result.GetProperty("scanName").ToString());
+ Console.WriteLine(result.GetProperty("numTurns").ToString());
+ Console.WriteLine(result.GetProperty("attackStrategy")[0].ToString());
+ Console.WriteLine(result.GetProperty("simulationOnly").ToString());
+ Console.WriteLine(result.GetProperty("riskCategories")[0].ToString());
+ Console.WriteLine(result.GetProperty("applicationScenario").ToString());
+ Console.WriteLine(result.GetProperty("tags").GetProperty("").ToString());
+ Console.WriteLine(result.GetProperty("properties").GetProperty("").ToString());
+ Console.WriteLine(result.GetProperty("status").ToString());
+}
+]]>
+
+
+
\ No newline at end of file
diff --git a/sdk/ai/Azure.AI.Projects.1DP/src/Generated/Indexes.cs b/sdk/ai/Azure.AI.Projects.1DP/src/Generated/Indexes.cs
new file mode 100644
index 000000000000..78d7f904c51d
--- /dev/null
+++ b/sdk/ai/Azure.AI.Projects.1DP/src/Generated/Indexes.cs
@@ -0,0 +1,377 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Threading;
+using System.Threading.Tasks;
+using Autorest.CSharp.Core;
+using Azure.Core;
+using Azure.Core.Pipeline;
+
+namespace Azure.AI.Projects.1DP
+{
+
+/// List all versions of the given Index.
+/// The name of the resource.
+/// Top count of results, top count cannot be greater than the page size. If topCount > page size, results with be default page size count will be returned.
+/// Continuation token for pagination.
+/// Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2.
+/// [ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All] View type for including/excluding (for example) archived entities.
+/// The cancellation token to use.
+/// is null.
+/// is an empty string, and was expected to be non-empty.
+///
+public virtual Azure.Pageable GetVersions(string name, int? maxCount = null, string skip = null, string tags = null, Projects.1DP.ListViewType? listViewType = (Projects.1DP.ListViewType?)null,CancellationToken cancellationToken = default)
+{
+Projects.1DP.Argument.AssertNotNullOrEmpty(name, nameof(name));
+
+RequestContext context = cancellationToken.CanBeCanceled ? new RequestContext { CancellationToken = cancellationToken } : null;
+HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetVersionsRequest(name, maxCount, skip, tags, listViewType?.ToString(), context);
+HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetVersionsNextPageRequest(nextLink, name, maxCount, skip, tags, listViewType?.ToString(), context);
+return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => Projects.1DP.Index.DeserializeIndex(e), ClientDiagnostics, _pipeline, "Indexes.GetVersions", "value", "nextLink", context);
+}
+
+///
+/// [Protocol Method] List all versions of the given Index
+///
+/// -
+///
+/// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
+///
+///
+/// -
+///
+/// Please try the simpler convenience overload with strongly typed models first.
+///
+///
+///
+///
+/// The name of the resource.
+/// Top count of results, top count cannot be greater than the page size. If topCount > page size, results with be default page size count will be returned.
+/// Continuation token for pagination.
+/// Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2.
+/// [ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All] View type for including/excluding (for example) archived entities. Allowed values: "ActiveOnly" | "ArchivedOnly" | "All".
+/// The request context, which can override default behaviors of the client pipeline on a per-call basis.
+/// is null.
+/// is an empty string, and was expected to be non-empty.
+/// Service returned a non-success status code.
+/// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below.
+///
+public virtual Azure.AsyncPageable GetVersionsAsync(string name, int? maxCount, string skip, string tags, string listViewType, Azure.RequestContext context)
+{
+ Azure.AI.Projects.1DP.Argument.AssertNotNullOrEmpty(name, nameof(name));
+
+ HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetVersionsRequest(name, maxCount, skip, tags, listViewType, context);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetVersionsNextPageRequest(nextLink, name, maxCount, skip, tags, listViewType, context);
+ return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => BinaryData.FromString(e.GetRawText()), ClientDiagnostics, _pipeline, "Indexes.GetVersions", "value", "nextLink", context);
+}
+
+///
+/// [Protocol Method] List all versions of the given Index
+///
+/// -
+///
+/// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
+///
+///
+/// -
+///
+/// Please try the simpler convenience overload with strongly typed models first.
+///
+///
+///
+///
+/// The name of the resource.
+/// Top count of results, top count cannot be greater than the page size. If topCount > page size, results with be default page size count will be returned.
+/// Continuation token for pagination.
+/// Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2.
+/// [ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All] View type for including/excluding (for example) archived entities. Allowed values: "ActiveOnly" | "ArchivedOnly" | "All".
+/// The request context, which can override default behaviors of the client pipeline on a per-call basis.
+/// is null.
+/// is an empty string, and was expected to be non-empty.
+/// Service returned a non-success status code.
+/// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below.
+///
+public virtual Azure.Pageable GetVersions(string name, int? maxCount, string skip, string tags, string listViewType, Azure.RequestContext context)
+{
+ Azure.AI.Projects.1DP.Argument.AssertNotNullOrEmpty(name, nameof(name));
+
+ HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetVersionsRequest(name, maxCount, skip, tags, listViewType, context);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetVersionsNextPageRequest(nextLink, name, maxCount, skip, tags, listViewType, context);
+ return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => BinaryData.FromString(e.GetRawText()), ClientDiagnostics, _pipeline, "Indexes.GetVersions", "value", "nextLink", context);
+}
+
+/// List the latest version of each Index.
+/// Top count of results, top count cannot be greater than the page size. If topCount > page size, results with be default page size count will be returned.
+/// Continuation token for pagination.
+/// Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2.
+/// [ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All] View type for including/excluding (for example) archived entities.
+/// The cancellation token to use.
+///
+public virtual Azure.AsyncPageable GetLatestsAsync(int? maxCount = null, string skip = null, string tags = null, Azure.AI.Projects.1DP.ListViewType? listViewType = (Azure.AI.Projects.1DP.ListViewType?)null,CancellationToken cancellationToken = default)
+{
+ Azure.RequestContext context = cancellationToken.CanBeCanceled ? new Azure.RequestContext { CancellationToken = cancellationToken } : null;
+ HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetLatestsRequest(maxCount, skip, tags, listViewType?.ToString(), context);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetLatestsNextPageRequest(nextLink, maxCount, skip, tags, listViewType?.ToString(), context);
+ return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => Azure.AI.Projects.1DP.Index.DeserializeIndex(e), ClientDiagnostics, _pipeline, "Indexes.GetLatests", "value", "nextLink", context);
+}
+
+/// List the latest version of each Index.
+/// Top count of results, top count cannot be greater than the page size. If topCount > page size, results with be default page size count will be returned.
+/// Continuation token for pagination.
+/// Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2.
+/// [ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All] View type for including/excluding (for example) archived entities.
+/// The cancellation token to use.
+///
+public virtual Azure.Pageable GetLatests(int? maxCount = null, string skip = null, string tags = null, Azure.AI.Projects.1DP.ListViewType? listViewType = (Azure.AI.Projects.1DP.ListViewType?)null,CancellationToken cancellationToken = default)
+{
+ Azure.RequestContext context = cancellationToken.CanBeCanceled ? new Azure.RequestContext { CancellationToken = cancellationToken } : null;
+ HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetLatestsRequest(maxCount, skip, tags, listViewType?.ToString(), context);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetLatestsNextPageRequest(nextLink, maxCount, skip, tags, listViewType?.ToString(), context);
+ return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => Azure.AI.Projects.1DP.Index.DeserializeIndex(e), ClientDiagnostics, _pipeline, "Indexes.GetLatests", "value", "nextLink", context);
+}
+
+///
+/// [Protocol Method] List the latest version of each Index
+///
+/// -
+///
+/// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
+///
+///
+/// -
+///
+/// Please try the simpler convenience overload with strongly typed models first.
+///
+///
+///
+///
+/// Top count of results, top count cannot be greater than the page size. If topCount > page size, results with be default page size count will be returned.
+/// Continuation token for pagination.
+/// Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2.
+/// [ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All] View type for including/excluding (for example) archived entities. Allowed values: "ActiveOnly" | "ArchivedOnly" | "All".
+/// The request context, which can override default behaviors of the client pipeline on a per-call basis.
+/// Service returned a non-success status code.
+/// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below.
+///
+public virtual Azure.AsyncPageable GetLatestsAsync(int? maxCount, string skip, string tags, string listViewType, Azure.RequestContext context)
+{
+ HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetLatestsRequest(maxCount, skip, tags, listViewType, context);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetLatestsNextPageRequest(nextLink, maxCount, skip, tags, listViewType, context);
+ return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => BinaryData.FromString(e.GetRawText()), ClientDiagnostics, _pipeline, "Indexes.GetLatests", "value", "nextLink", context);
+}
+
+///
+/// [Protocol Method] List the latest version of each Index
+///
+/// -
+///
+/// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
+///
+///
+/// -
+///
+/// Please try the simpler convenience overload with strongly typed models first.
+///
+///
+///
+///
+/// Top count of results, top count cannot be greater than the page size. If topCount > page size, results with be default page size count will be returned.
+/// Continuation token for pagination.
+/// Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2.
+/// [ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All] View type for including/excluding (for example) archived entities. Allowed values: "ActiveOnly" | "ArchivedOnly" | "All".
+/// The request context, which can override default behaviors of the client pipeline on a per-call basis.
+/// Service returned a non-success status code.
+/// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below.
+///
+public virtual Azure.Pageable GetLatests(int? maxCount, string skip, string tags, string listViewType, Azure.RequestContext context)
+{
+ HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetLatestsRequest(maxCount, skip, tags, listViewType, context);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetLatestsNextPageRequest(nextLink, maxCount, skip, tags, listViewType, context);
+ return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => BinaryData.FromString(e.GetRawText()), ClientDiagnostics, _pipeline, "Indexes.GetLatests", "value", "nextLink", context);
+}
+
+internal HttpMessage CreateGetVersionsRequest(string name, int? maxCount, string skip, string tags, string listViewType, Azure.RequestContext context)
+{
+ var message = _pipeline.CreateMessage(context, ResponseClassifier200);
+ var request = message.Request;
+ request.Method = RequestMethod.Get;
+ var uri = new RawRequestUriBuilder();
+ uri.Reset(_endpoint);
+ uri.AppendPath("/indexes/", false);
+ uri.AppendPath(name, true);
+ uri.AppendPath("/versions", false);
+ uri.AppendQuery("api-version", _apiVersion, true);
+ if (maxCount != null)
+ {
+ uri.AppendQuery("top", maxCount.Value, true);
+ }
+ if (skip != null)
+ {
+ uri.AppendQuery("skip", skip, true);
+ }
+ if (tags != null)
+ {
+ uri.AppendQuery("tags", tags, true);
+ }
+ if (listViewType != null)
+ {
+ uri.AppendQuery("listViewType", listViewType, true);
+ }
+ request.Uri = uri;
+ request.Headers.Add("Accept", "application/json");
+ return message;
+}
+
+internal HttpMessage CreateGetLatestsRequest(int? maxCount, string skip, string tags, string listViewType, Azure.RequestContext context)
+{
+ var message = _pipeline.CreateMessage(context, ResponseClassifier200);
+ var request = message.Request;
+ request.Method = RequestMethod.Get;
+ var uri = new RawRequestUriBuilder();
+ uri.Reset(_endpoint);
+ uri.AppendPath("/indexes", false);
+ uri.AppendQuery("api-version", _apiVersion, true);
+ if (maxCount != null)
+ {
+ uri.AppendQuery("top", maxCount.Value, true);
+ }
+ if (skip != null)
+ {
+ uri.AppendQuery("skip", skip, true);
+ }
+ if (tags != null)
+ {
+ uri.AppendQuery("tags", tags, true);
+ }
+ if (listViewType != null)
+ {
+ uri.AppendQuery("listViewType", listViewType, true);
+ }
+ request.Uri = uri;
+ request.Headers.Add("Accept", "application/json");
+ return message;
+}
+
+internal HttpMessage CreateGetVersionRequest(string name, string version, Azure.RequestContext context)
+{
+ var message = _pipeline.CreateMessage(context, ResponseClassifier200);
+ var request = message.Request;
+ request.Method = RequestMethod.Get;
+ var uri = new RawRequestUriBuilder();
+ uri.Reset(_endpoint);
+ uri.AppendPath("/indexes/", false);
+ uri.AppendPath(name, true);
+ uri.AppendPath("/versions/", false);
+ uri.AppendPath(version, true);
+ uri.AppendQuery("api-version", _apiVersion, true);
+ request.Uri = uri;
+ request.Headers.Add("Accept", "application/json");
+ return message;
+}
+
+internal HttpMessage CreateDeleteVersionRequest(string name, string version, Azure.RequestContext context)
+{
+ var message = _pipeline.CreateMessage(context, ResponseClassifier204);
+ var request = message.Request;
+ request.Method = RequestMethod.Delete;
+ var uri = new RawRequestUriBuilder();
+ uri.Reset(_endpoint);
+ uri.AppendPath("/indexes/", false);
+ uri.AppendPath(name, true);
+ uri.AppendPath("/versions/", false);
+ uri.AppendPath(version, true);
+ uri.AppendQuery("api-version", _apiVersion, true);
+ request.Uri = uri;
+ request.Headers.Add("Accept", "application/json");
+ return message;
+}
+
+internal HttpMessage CreateCreateRequest(string name, RequestContent content, Azure.RequestContext context)
+{
+ var message = _pipeline.CreateMessage(context, ResponseClassifier200);
+ var request = message.Request;
+ request.Method = RequestMethod.Post;
+ var uri = new RawRequestUriBuilder();
+ uri.Reset(_endpoint);
+ uri.AppendPath("/indexes/", false);
+ uri.AppendPath(name, true);
+ uri.AppendPath("/versions", false);
+ uri.AppendQuery("api-version", _apiVersion, true);
+ request.Uri = uri;
+ request.Headers.Add("Accept", "application/json");
+ request.Headers.Add("Repeatability-Request-ID", Guid.NewGuid());
+ request.Headers.Add("Repeatability-First-Sent", DateTimeOffset.Now, "R");
+ request.Headers.Add("Content-Type", "application/json");
+ request.Content = content;
+ return message;
+}
+
+internal HttpMessage CreateCreateVersionRequest(string name, string version, RequestContent content, Azure.RequestContext context)
+{
+ var message = _pipeline.CreateMessage(context, ResponseClassifier200201);
+ var request = message.Request;
+ request.Method = RequestMethod.Put;
+ var uri = new RawRequestUriBuilder();
+ uri.Reset(_endpoint);
+ uri.AppendPath("/indexes/", false);
+ uri.AppendPath(name, true);
+ uri.AppendPath("/versions/", false);
+ uri.AppendPath(version, true);
+ uri.AppendQuery("api-version", _apiVersion, true);
+ request.Uri = uri;
+ request.Headers.Add("Accept", "application/json");
+ request.Headers.Add("Content-Type", "application/json");
+ request.Content = content;
+ return message;
+}
+
+internal HttpMessage CreateGetVersionsNextPageRequest(string nextLink, string name, int? maxCount, string skip, string tags, string listViewType, Azure.RequestContext context)
+{
+ var message = _pipeline.CreateMessage(context, ResponseClassifier200);
+ var request = message.Request;
+ request.Method = RequestMethod.Get;
+ var uri = new RawRequestUriBuilder();
+ uri.Reset(_endpoint);
+ uri.AppendRawNextLink(nextLink, false);
+ request.Uri = uri;
+ request.Headers.Add("Accept", "application/json");
+ return message;
+}
+
+internal HttpMessage CreateGetLatestsNextPageRequest(string nextLink, int? maxCount, string skip, string tags, string listViewType, Azure.RequestContext context)
+{
+ var message = _pipeline.CreateMessage(context, ResponseClassifier200);
+ var request = message.Request;
+ request.Method = RequestMethod.Get;
+ var uri = new RawRequestUriBuilder();
+ uri.Reset(_endpoint);
+ uri.AppendRawNextLink(nextLink, false);
+ request.Uri = uri;
+ request.Headers.Add("Accept", "application/json");
+ return message;
+}
+
+private static Azure.RequestContext DefaultRequestContext = new Azure.RequestContext();
+internal static Azure.RequestContext FromCancellationToken(CancellationToken cancellationToken = default)
+{
+ if (!cancellationToken.CanBeCanceled)
+ {
+ return DefaultRequestContext;
+ }
+
+ return new Azure.RequestContext() { CancellationToken = cancellationToken };
+}
+
+private static ResponseClassifier _responseClassifier200;
+private static ResponseClassifier ResponseClassifier200 => _responseClassifier200 ??= new StatusCodeClassifier(stackalloc ushort[] { 200 });
+private static ResponseClassifier _responseClassifier204;
+private static ResponseClassifier ResponseClassifier204 => _responseClassifier204 ??= new StatusCodeClassifier(stackalloc ushort[] { 204 });
+private static ResponseClassifier _responseClassifier200201;
+private static ResponseClassifier ResponseClassifier200201 => _responseClassifier200201 ??= new StatusCodeClassifier(stackalloc ushort[] { 200, 201 });
+}
+}
diff --git a/sdk/ai/Azure.AI.Projects.1DP/src/Generated/UnknownDatasetVersion.Serialization.cs b/sdk/ai/Azure.AI.Projects.1DP/src/Generated/UnknownDatasetVersion.Serialization.cs
new file mode 100644
index 000000000000..fb420ac3abf4
--- /dev/null
+++ b/sdk/ai/Azure.AI.Projects.1DP/src/Generated/UnknownDatasetVersion.Serialization.cs
@@ -0,0 +1,197 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ClientModel.Primitives;
+using System.Collections.Generic;
+using System.Text.Json;
+using Azure.Core;
+
+namespace Azure.AI.Projects.1DP
+{
+internal partial class UnknownDatasetVersion : IUtf8JsonSerializable, System.ClientModel.Primitives.IJsonModel
+{
+ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((System.ClientModel.Primitives.IJsonModel < AI.Projects.1DP.DatasetVersion>)this).Write(writer, Projects.1DP.ModelSerializationExtensions.WireOptions);
+
+ void System.ClientModel.Primitives.IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ writer.WriteStartObject();
+ this.JsonModelWriteCore(writer, options);
+ writer.WriteEndObject();
+ }
+
+ /// The JSON writer.
+ /// The client options for reading and writing models.
+ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((System.ClientModel.Primitives.IPersistableModel < AI.Projects.1DP.DatasetVersion >)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(AI.Projects.1DP.DatasetVersion)} does not support writing '{format}' format.");
+ }
+
+ base.JsonModelWriteCore(writer, options);
+ }
+
+ Projects.1DP.DatasetVersion System.ClientModel.Primitives.IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((System.ClientModel.Primitives.IPersistableModel < AI.Projects.1DP.DatasetVersion >)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(AI.Projects.1DP.DatasetVersion)} does not support reading '{format}' format.");
+ }
+
+ using JsonDocument document = JsonDocument.ParseValue(ref reader);
+ return AI.Projects.1DP.DatasetVersion.DeserializeDatasetVersion(document.RootElement, options);
+ }
+
+ internal static Projects.1DP.UnknownDatasetVersion DeserializeUnknownDatasetVersion(JsonElement element, ModelReaderWriterOptions options = null)
+ {
+ options ??= AI.Projects.1DP.ModelSerializationExtensions.WireOptions;
+
+ if (element.ValueKind == JsonValueKind.Null)
+ {
+ return null;
+ }
+ string datasetUri = default;
+ AI.Projects.1DP.DatasetType type = "Unknown";
+ bool? isReference = default;
+ string stage = default;
+ string id = default;
+ string name = default;
+ string version = default;
+ string description = default;
+ IDictionary tags = default;
+ IDictionary serializedAdditionalRawData = default;
+ Dictionary rawDataDictionary = new Dictionary();
+ foreach (var property in element.EnumerateObject())
+ {
+ if (property.NameEquals("datasetUri"u8))
+ {
+ datasetUri = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("type"u8))
+ {
+ type = new Projects.1DP.DatasetType(property.Value.GetString());
+ continue;
+ }
+ if (property.NameEquals("isReference"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ isReference = property.Value.GetBoolean();
+ continue;
+ }
+ if (property.NameEquals("stage"u8))
+ {
+ stage = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("id"u8))
+ {
+ id = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("name"u8))
+ {
+ name = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("version"u8))
+ {
+ version = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("description"u8))
+ {
+ description = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("tags"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ Dictionary dictionary = new Dictionary();
+ foreach (var property0 in property.Value.EnumerateObject())
+ {
+ dictionary.Add(property0.Name, property0.Value.GetString());
+ }
+ tags = dictionary;
+ continue;
+ }
+ if (options.Format != "W")
+ {
+ rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText()));
+ }
+ }
+ serializedAdditionalRawData = rawDataDictionary;
+ return new Projects.1DP.UnknownDatasetVersion(
+ datasetUri,
+ type,
+ isReference,
+ stage,
+ id,
+ name,
+ version,
+ description,
+ (tags ?? new Projects.1DP.ChangeTrackingDictionary()),
+ serializedAdditionalRawData);
+ }
+
+ BinaryData System.ClientModel.Primitives.IPersistableModel.Write(ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((System.ClientModel.Primitives.IPersistableModel < AI.Projects.1DP.DatasetVersion >)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ return ModelReaderWriter.Write(this, options);
+ default:
+ throw new FormatException($"The model {nameof(AI.Projects.1DP.DatasetVersion)} does not support writing '{options.Format}' format.");
+ }
+ }
+
+ Projects.1DP.DatasetVersion System.ClientModel.Primitives.IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((System.ClientModel.Primitives.IPersistableModel < AI.Projects.1DP.DatasetVersion >)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ {
+ using JsonDocument document = JsonDocument.Parse(data, AI.Projects.1DP.ModelSerializationExtensions.JsonDocumentOptions);
+ return AI.Projects.1DP.DatasetVersion.DeserializeDatasetVersion(document.RootElement, options);
+ }
+ default:
+ throw new FormatException($"The model {nameof(AI.Projects.1DP.DatasetVersion)} does not support reading '{options.Format}' format.");
+ }
+ }
+
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
+
+ /// Deserializes the model from a raw response.
+ /// The response to deserialize the model from.
+ internal static new Projects.1DP.UnknownDatasetVersion FromResponse(Response response)
+ {
+ using var document = JsonDocument.Parse(response.Content, AI.Projects.1DP.ModelSerializationExtensions.JsonDocumentOptions);
+ return AI.Projects.1DP.UnknownDatasetVersion.DeserializeUnknownDatasetVersion(document.RootElement);
+ }
+
+ /// Convert into a .
+ internal override RequestContent ToRequestContent()
+ {
+ var content = new Projects.1DP.Utf8JsonRequestContent();
+ content.JsonWriter.WriteObjectValue < AI.Projects.1DP.DatasetVersion > (this, AI.Projects.1DP.ModelSerializationExtensions.WireOptions);
+ return content;
+ }
+}
+}
diff --git a/sdk/ai/Azure.AI.Projects.1DP/src/Generated/UnknownDatasetVersion.cs b/sdk/ai/Azure.AI.Projects.1DP/src/Generated/UnknownDatasetVersion.cs
new file mode 100644
index 000000000000..8fd8d0c3b3fd
--- /dev/null
+++ b/sdk/ai/Azure.AI.Projects.1DP/src/Generated/UnknownDatasetVersion.cs
@@ -0,0 +1,36 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+
+namespace Azure.AI.Projects.1DP
+{
+/// Unknown version of DatasetVersion.
+internal partial class UnknownDatasetVersion : Projects.1DP.DatasetVersion
+{
+ /// Initializes a new instance of .
+ /// [Required] Uri of the data. Example: https://go.microsoft.com/fwlink/?linkid=2202330.
+ /// Dataset type.
+ /// Indicates if dataset is reference only or managed by dataset service. If true, the underlying data will be deleted when the dataset version is deleted.
+ /// Asset stage.
+ /// A unique identifier for the asset, assetId probably?.
+ /// The name of the resource.
+ /// The version of the resource.
+ /// The asset description text.
+ /// Tag dictionary. Tags can be added, removed, and updated.
+ /// Keeps track of any properties unknown to the library.
+ internal UnknownDatasetVersion(string datasetUri, Projects.1DP.DatasetType type, bool? isReference, string stage, string id, string name, string version, string description, IDictionary tags, IDictionary serializedAdditionalRawData) : base(datasetUri, type, isReference, stage, id, name, version, description, tags, serializedAdditionalRawData)
+ {
+ }
+
+ /// Initializes a new instance of for deserialization.
+ internal UnknownDatasetVersion()
+ {
+ }
+}
+}
diff --git a/sdk/ai/Azure.AI.Projects.1DP/src/Generated/UnknownDeployment.Serialization.cs b/sdk/ai/Azure.AI.Projects.1DP/src/Generated/UnknownDeployment.Serialization.cs
new file mode 100644
index 000000000000..c0e745bcabdb
--- /dev/null
+++ b/sdk/ai/Azure.AI.Projects.1DP/src/Generated/UnknownDeployment.Serialization.cs
@@ -0,0 +1,132 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ClientModel.Primitives;
+using System.Collections.Generic;
+using System.Text.Json;
+using Azure.Core;
+
+namespace Azure.AI.Projects.1DP
+{
+internal partial class UnknownDeployment : IUtf8JsonSerializable, System.ClientModel.Primitives.IJsonModel
+{
+ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((System.ClientModel.Primitives.IJsonModel < AI.Projects.1DP.Deployment>)this).Write(writer, Projects.1DP.ModelSerializationExtensions.WireOptions);
+
+ void System.ClientModel.Primitives.IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ writer.WriteStartObject();
+ this.JsonModelWriteCore(writer, options);
+ writer.WriteEndObject();
+ }
+
+ /// The JSON writer.
+ /// The client options for reading and writing models.
+ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((System.ClientModel.Primitives.IPersistableModel < AI.Projects.1DP.Deployment >)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(AI.Projects.1DP.Deployment)} does not support writing '{format}' format.");
+ }
+
+ base.JsonModelWriteCore(writer, options);
+ }
+
+ Projects.1DP.Deployment System.ClientModel.Primitives.IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((System.ClientModel.Primitives.IPersistableModel < AI.Projects.1DP.Deployment >)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(AI.Projects.1DP.Deployment)} does not support reading '{format}' format.");
+ }
+
+ using JsonDocument document = JsonDocument.ParseValue(ref reader);
+ return AI.Projects.1DP.Deployment.DeserializeDeployment(document.RootElement, options);
+ }
+
+ internal static Projects.1DP.UnknownDeployment DeserializeUnknownDeployment(JsonElement element, ModelReaderWriterOptions options = null)
+ {
+ options ??= AI.Projects.1DP.ModelSerializationExtensions.WireOptions;
+
+ if (element.ValueKind == JsonValueKind.Null)
+ {
+ return null;
+ }
+ AI.Projects.1DP.DeploymentType type = "Unknown";
+ string name = default;
+ IDictionary serializedAdditionalRawData = default;
+ Dictionary rawDataDictionary = new Dictionary();
+ foreach (var property in element.EnumerateObject())
+ {
+ if (property.NameEquals("type"u8))
+ {
+ type = new Projects.1DP.DeploymentType(property.Value.GetString());
+ continue;
+ }
+ if (property.NameEquals("name"u8))
+ {
+ name = property.Value.GetString();
+ continue;
+ }
+ if (options.Format != "W")
+ {
+ rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText()));
+ }
+ }
+ serializedAdditionalRawData = rawDataDictionary;
+ return new Projects.1DP.UnknownDeployment(type, name, serializedAdditionalRawData);
+ }
+
+ BinaryData System.ClientModel.Primitives.IPersistableModel.Write(ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((System.ClientModel.Primitives.IPersistableModel < AI.Projects.1DP.Deployment >)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ return ModelReaderWriter.Write(this, options);
+ default:
+ throw new FormatException($"The model {nameof(AI.Projects.1DP.Deployment)} does not support writing '{options.Format}' format.");
+ }
+ }
+
+ Projects.1DP.Deployment System.ClientModel.Primitives.IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((System.ClientModel.Primitives.IPersistableModel < AI.Projects.1DP.Deployment >)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ {
+ using JsonDocument document = JsonDocument.Parse(data, AI.Projects.1DP.ModelSerializationExtensions.JsonDocumentOptions);
+ return AI.Projects.1DP.Deployment.DeserializeDeployment(document.RootElement, options);
+ }
+ default:
+ throw new FormatException($"The model {nameof(AI.Projects.1DP.Deployment)} does not support reading '{options.Format}' format.");
+ }
+ }
+
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
+
+ /// Deserializes the model from a raw response.
+ /// The response to deserialize the model from.
+ internal static new Projects.1DP.UnknownDeployment FromResponse(Response response)
+ {
+ using var document = JsonDocument.Parse(response.Content, AI.Projects.1DP.ModelSerializationExtensions.JsonDocumentOptions);
+ return AI.Projects.1DP.UnknownDeployment.DeserializeUnknownDeployment(document.RootElement);
+ }
+
+ /// Convert into a .
+ internal override RequestContent ToRequestContent()
+ {
+ var content = new Projects.1DP.Utf8JsonRequestContent();
+ content.JsonWriter.WriteObjectValue < AI.Projects.1DP.Deployment > (this, AI.Projects.1DP.ModelSerializationExtensions.WireOptions);
+ return content;
+ }
+}
+}
diff --git a/sdk/ai/Azure.AI.Projects.1DP/src/Generated/UnknownDeployment.cs b/sdk/ai/Azure.AI.Projects.1DP/src/Generated/UnknownDeployment.cs
new file mode 100644
index 000000000000..77d9dbf60a50
--- /dev/null
+++ b/sdk/ai/Azure.AI.Projects.1DP/src/Generated/UnknownDeployment.cs
@@ -0,0 +1,29 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+
+namespace Azure.AI.Projects.1DP
+{
+/// Unknown version of Deployment.
+internal partial class UnknownDeployment : Projects.1DP.Deployment
+{
+ /// Initializes a new instance of .
+ /// The type of the deployment.
+ /// Name of the deployment.
+ /// Keeps track of any properties unknown to the library.
+ internal UnknownDeployment(Projects.1DP.DeploymentType type, string name, IDictionary serializedAdditionalRawData) : base(type, name, serializedAdditionalRawData)
+ {
+ }
+
+ /// Initializes a new instance of for deserialization.
+ internal UnknownDeployment()
+ {
+ }
+}
+}
diff --git a/sdk/ai/Azure.AI.Projects.1DP/src/Generated/UnknownIndex.Serialization.cs b/sdk/ai/Azure.AI.Projects.1DP/src/Generated/UnknownIndex.Serialization.cs
new file mode 100644
index 000000000000..1706c8d5caf1
--- /dev/null
+++ b/sdk/ai/Azure.AI.Projects.1DP/src/Generated/UnknownIndex.Serialization.cs
@@ -0,0 +1,179 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ClientModel.Primitives;
+using System.Collections.Generic;
+using System.Text.Json;
+using Azure.Core;
+
+namespace Azure.AI.Projects.1DP
+{
+internal partial class UnknownIndex : IUtf8JsonSerializable, System.ClientModel.Primitives.IJsonModel
+{
+ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((System.ClientModel.Primitives.IJsonModel < AI.Projects.1DP.Index>)this).Write(writer, Projects.1DP.ModelSerializationExtensions.WireOptions);
+
+ void System.ClientModel.Primitives.IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ writer.WriteStartObject();
+ this.JsonModelWriteCore(writer, options);
+ writer.WriteEndObject();
+ }
+
+ /// The JSON writer.
+ /// The client options for reading and writing models.
+ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((System.ClientModel.Primitives.IPersistableModel < AI.Projects.1DP.Index >)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(AI.Projects.1DP.Index)} does not support writing '{format}' format.");
+ }
+
+ base.JsonModelWriteCore(writer, options);
+ }
+
+ Projects.1DP.Index System.ClientModel.Primitives.IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((System.ClientModel.Primitives.IPersistableModel < AI.Projects.1DP.Index >)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(AI.Projects.1DP.Index)} does not support reading '{format}' format.");
+ }
+
+ using JsonDocument document = JsonDocument.ParseValue(ref reader);
+ return AI.Projects.1DP.Index.DeserializeIndex(document.RootElement, options);
+ }
+
+ internal static Projects.1DP.UnknownIndex DeserializeUnknownIndex(JsonElement element, ModelReaderWriterOptions options = null)
+ {
+ options ??= AI.Projects.1DP.ModelSerializationExtensions.WireOptions;
+
+ if (element.ValueKind == JsonValueKind.Null)
+ {
+ return null;
+ }
+ AI.Projects.1DP.IndexType type = "Unknown";
+ string stage = default;
+ string id = default;
+ string name = default;
+ string version = default;
+ string description = default;
+ IDictionary tags = default;
+ IDictionary serializedAdditionalRawData = default;
+ Dictionary rawDataDictionary = new Dictionary();
+ foreach (var property in element.EnumerateObject())
+ {
+ if (property.NameEquals("type"u8))
+ {
+ type = new Projects.1DP.IndexType(property.Value.GetString());
+ continue;
+ }
+ if (property.NameEquals("stage"u8))
+ {
+ stage = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("id"u8))
+ {
+ id = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("name"u8))
+ {
+ name = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("version"u8))
+ {
+ version = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("description"u8))
+ {
+ description = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("tags"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ Dictionary dictionary = new Dictionary();
+ foreach (var property0 in property.Value.EnumerateObject())
+ {
+ dictionary.Add(property0.Name, property0.Value.GetString());
+ }
+ tags = dictionary;
+ continue;
+ }
+ if (options.Format != "W")
+ {
+ rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText()));
+ }
+ }
+ serializedAdditionalRawData = rawDataDictionary;
+ return new Projects.1DP.UnknownIndex(
+ type,
+ stage,
+ id,
+ name,
+ version,
+ description,
+ (tags ?? new Projects.1DP.ChangeTrackingDictionary()),
+ serializedAdditionalRawData);
+ }
+
+ BinaryData System.ClientModel.Primitives.IPersistableModel.Write(ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((System.ClientModel.Primitives.IPersistableModel < AI.Projects.1DP.Index >)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ return ModelReaderWriter.Write(this, options);
+ default:
+ throw new FormatException($"The model {nameof(AI.Projects.1DP.Index)} does not support writing '{options.Format}' format.");
+ }
+ }
+
+ Projects.1DP.Index System.ClientModel.Primitives.IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((System.ClientModel.Primitives.IPersistableModel < AI.Projects.1DP.Index >)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ {
+ using JsonDocument document = JsonDocument.Parse(data, AI.Projects.1DP.ModelSerializationExtensions.JsonDocumentOptions);
+ return AI.Projects.1DP.Index.DeserializeIndex(document.RootElement, options);
+ }
+ default:
+ throw new FormatException($"The model {nameof(AI.Projects.1DP.Index)} does not support reading '{options.Format}' format.");
+ }
+ }
+
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
+
+ /// Deserializes the model from a raw response.
+ /// The response to deserialize the model from.
+ internal static new Projects.1DP.UnknownIndex FromResponse(Response response)
+ {
+ using var document = JsonDocument.Parse(response.Content, AI.Projects.1DP.ModelSerializationExtensions.JsonDocumentOptions);
+ return AI.Projects.1DP.UnknownIndex.DeserializeUnknownIndex(document.RootElement);
+ }
+
+ /// Convert into a .
+ internal override RequestContent ToRequestContent()
+ {
+ var content = new Projects.1DP.Utf8JsonRequestContent();
+ content.JsonWriter.WriteObjectValue < AI.Projects.1DP.Index > (this, AI.Projects.1DP.ModelSerializationExtensions.WireOptions);
+ return content;
+ }
+}
+}
diff --git a/sdk/ai/Azure.AI.Projects.1DP/src/Generated/UnknownIndex.cs b/sdk/ai/Azure.AI.Projects.1DP/src/Generated/UnknownIndex.cs
new file mode 100644
index 000000000000..d20a830000ea
--- /dev/null
+++ b/sdk/ai/Azure.AI.Projects.1DP/src/Generated/UnknownIndex.cs
@@ -0,0 +1,34 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+
+namespace Azure.AI.Projects.1DP
+{
+/// Unknown version of Index.
+internal partial class UnknownIndex : Projects.1DP.Index
+{
+ /// Initializes a new instance of .
+ /// Type of index.
+ /// Asset stage.
+ /// A unique identifier for the asset, assetId probably?.
+ /// The name of the resource.
+ /// The version of the resource.
+ /// The asset description text.
+ /// Tag dictionary. Tags can be added, removed, and updated.
+ /// Keeps track of any properties unknown to the library.
+ internal UnknownIndex(Projects.1DP.IndexType type, string stage, string id, string name, string version, string description, IDictionary tags, IDictionary serializedAdditionalRawData) : base(type, stage, id, name, version, description, tags, serializedAdditionalRawData)
+ {
+ }
+
+ /// Initializes a new instance of for deserialization.
+ internal UnknownIndex()
+ {
+ }
+}
+}
diff --git a/sdk/ai/Azure.AI.Projects.1DP/src/Generated/UnknownInputData.Serialization.cs b/sdk/ai/Azure.AI.Projects.1DP/src/Generated/UnknownInputData.Serialization.cs
new file mode 100644
index 000000000000..6aa4e290534e
--- /dev/null
+++ b/sdk/ai/Azure.AI.Projects.1DP/src/Generated/UnknownInputData.Serialization.cs
@@ -0,0 +1,126 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ClientModel.Primitives;
+using System.Collections.Generic;
+using System.Text.Json;
+using Azure.Core;
+
+namespace Azure.AI.Projects.1DP
+{
+internal partial class UnknownInputData : IUtf8JsonSerializable, System.ClientModel.Primitives.IJsonModel
+{
+ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((System.ClientModel.Primitives.IJsonModel < AI.Projects.1DP.InputData>)this).Write(writer, Projects.1DP.ModelSerializationExtensions.WireOptions);
+
+ void System.ClientModel.Primitives.IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ writer.WriteStartObject();
+ this.JsonModelWriteCore(writer, options);
+ writer.WriteEndObject();
+ }
+
+ /// The JSON writer.
+ /// The client options for reading and writing models.
+ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((System.ClientModel.Primitives.IPersistableModel < AI.Projects.1DP.InputData >)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(AI.Projects.1DP.InputData)} does not support writing '{format}' format.");
+ }
+
+ base.JsonModelWriteCore(writer, options);
+ }
+
+ Projects.1DP.InputData System.ClientModel.Primitives.IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((System.ClientModel.Primitives.IPersistableModel < AI.Projects.1DP.InputData >)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(AI.Projects.1DP.InputData)} does not support reading '{format}' format.");
+ }
+
+ using JsonDocument document = JsonDocument.ParseValue(ref reader);
+ return AI.Projects.1DP.InputData.DeserializeInputData(document.RootElement, options);
+ }
+
+ internal static Projects.1DP.UnknownInputData DeserializeUnknownInputData(JsonElement element, ModelReaderWriterOptions options = null)
+ {
+ options ??= AI.Projects.1DP.ModelSerializationExtensions.WireOptions;
+
+ if (element.ValueKind == JsonValueKind.Null)
+ {
+ return null;
+ }
+ string type = "Unknown";
+ IDictionary serializedAdditionalRawData = default;
+ Dictionary rawDataDictionary = new Dictionary();
+ foreach (var property in element.EnumerateObject())
+ {
+ if (property.NameEquals("type"u8))
+ {
+ type = property.Value.GetString();
+ continue;
+ }
+ if (options.Format != "W")
+ {
+ rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText()));
+ }
+ }
+ serializedAdditionalRawData = rawDataDictionary;
+ return new Projects.1DP.UnknownInputData(type, serializedAdditionalRawData);
+ }
+
+ BinaryData System.ClientModel.Primitives.IPersistableModel.Write(ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((System.ClientModel.Primitives.IPersistableModel < AI.Projects.1DP.InputData >)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ return ModelReaderWriter.Write(this, options);
+ default:
+ throw new FormatException($"The model {nameof(AI.Projects.1DP.InputData)} does not support writing '{options.Format}' format.");
+ }
+ }
+
+ Projects.1DP.InputData System.ClientModel.Primitives.IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((System.ClientModel.Primitives.IPersistableModel < AI.Projects.1DP.InputData >)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ {
+ using JsonDocument document = JsonDocument.Parse(data, AI.Projects.1DP.ModelSerializationExtensions.JsonDocumentOptions);
+ return AI.Projects.1DP.InputData.DeserializeInputData(document.RootElement, options);
+ }
+ default:
+ throw new FormatException($"The model {nameof(AI.Projects.1DP.InputData)} does not support reading '{options.Format}' format.");
+ }
+ }
+
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
+
+ /// Deserializes the model from a raw response.
+ /// The response to deserialize the model from.
+ internal static new Projects.1DP.UnknownInputData FromResponse(Response response)
+ {
+ using var document = JsonDocument.Parse(response.Content, AI.Projects.1DP.ModelSerializationExtensions.JsonDocumentOptions);
+ return AI.Projects.1DP.UnknownInputData.DeserializeUnknownInputData(document.RootElement);
+ }
+
+ /// Convert into a .
+ internal override RequestContent ToRequestContent()
+ {
+ var content = new Projects.1DP.Utf8JsonRequestContent();
+ content.JsonWriter.WriteObjectValue < AI.Projects.1DP.InputData > (this, AI.Projects.1DP.ModelSerializationExtensions.WireOptions);
+ return content;
+ }
+}
+}
diff --git a/sdk/ai/Azure.AI.Projects.1DP/src/Generated/UnknownInputData.cs b/sdk/ai/Azure.AI.Projects.1DP/src/Generated/UnknownInputData.cs
new file mode 100644
index 000000000000..47c75d22404c
--- /dev/null
+++ b/sdk/ai/Azure.AI.Projects.1DP/src/Generated/UnknownInputData.cs
@@ -0,0 +1,28 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+
+namespace Azure.AI.Projects.1DP
+{
+/// Unknown version of InputData.
+internal partial class UnknownInputData : Projects.1DP.InputData
+{
+ /// Initializes a new instance of .
+ /// Type of the data.
+ /// Keeps track of any properties unknown to the library.
+ internal UnknownInputData(string type, IDictionary serializedAdditionalRawData) : base(type, serializedAdditionalRawData)
+ {
+ }
+
+ /// Initializes a new instance of for deserialization.
+ internal UnknownInputData()
+ {
+ }
+}
+}
diff --git a/sdk/ai/Azure.AI.Projects.1DP/src/Properties/AssemblyInfo.cs b/sdk/ai/Azure.AI.Projects.1DP/src/Properties/AssemblyInfo.cs
new file mode 100644
index 000000000000..7d2f0243085a
--- /dev/null
+++ b/sdk/ai/Azure.AI.Projects.1DP/src/Properties/AssemblyInfo.cs
@@ -0,0 +1,11 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+using System.Runtime.CompilerServices;
+
+[assembly: InternalsVisibleTo("Azure.AI.Projects.1DP.Tests, PublicKey = 0024000004800000940000000602000000240000525341310004000001000100d15ddcb29688295338af4b7686603fe614abd555e09efba8fb88ee09e1f7b1ccaeed2e8f823fa9eef3fdd60217fc012ea67d2479751a0b8c087a4185541b851bd8b16f8d91b840e51b1cb0ba6fe647997e57429265e85ef62d565db50a69ae1647d54d7bd855e4db3d8a91510e5bcbd0edfbbecaa20a7bd9ae74593daa7b11b4")]
+
+// Replace Microsoft.Test with the correct resource provider namepace for your service and uncomment.
+// See https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/azure-services-resource-providers
+// for the list of possible values.
+[assembly: Azure.Core.AzureResourceProviderNamespace("Microsoft.Template")]
diff --git a/sdk/ai/Azure.AI.Projects.1DP/tests/Azure.AI.Projects.1DP.Tests.csproj b/sdk/ai/Azure.AI.Projects.1DP/tests/Azure.AI.Projects.1DP.Tests.csproj
new file mode 100644
index 000000000000..ac4b04509d6d
--- /dev/null
+++ b/sdk/ai/Azure.AI.Projects.1DP/tests/Azure.AI.Projects.1DP.Tests.csproj
@@ -0,0 +1,20 @@
+
+
+ $(RequiredTargetFrameworks)
+
+ $(NoWarn);CS1591
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/sdk/ai/Azure.AI.Projects.1DP/tests/Generated/Samples/Samples_Connections.cs b/sdk/ai/Azure.AI.Projects.1DP/tests/Generated/Samples/Samples_Connections.cs
new file mode 100644
index 000000000000..b1aa1b2995df
--- /dev/null
+++ b/sdk/ai/Azure.AI.Projects.1DP/tests/Generated/Samples/Samples_Connections.cs
@@ -0,0 +1,262 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Text.Json;
+using System.Threading.Tasks;
+using Azure.Identity;
+using NUnit.Framework;
+
+namespace Azure.AI.Projects.1DP.Samples
+{
+public partial class Samples_Connections
+{
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public void Example_Connection_GetConnection_ShortVersion()
+ {
+ Uri endpoint = new Uri("");
+ AzureKeyCredential credential = new AzureKeyCredential("");
+ AI.Projects.1DP.Connections client = new Projects.1DP.AIProjectClient(endpoint, credential).GetConnectionsClient(apiVersion: "2025-05-15-preview");
+
+ Response response = client.GetConnection("", (RequestContext)null);
+
+ JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+ Console.WriteLine(result.GetProperty("name").ToString());
+ Console.WriteLine(result.GetProperty("type").ToString());
+ Console.WriteLine(result.GetProperty("target").ToString());
+ Console.WriteLine(result.GetProperty("authType").ToString());
+ Console.WriteLine(result.GetProperty("metadata").GetProperty("").ToString());
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Example_Connection_GetConnection_ShortVersion_Async()
+ {
+ Uri endpoint = new Uri("");
+ AzureKeyCredential credential = new AzureKeyCredential("");
+ AI.Projects.1DP.Connections client = new Projects.1DP.AIProjectClient(endpoint, credential).GetConnectionsClient(apiVersion: "2025-05-15-preview");
+
+ Response response = await client.GetConnectionAsync("", (RequestContext)null);
+
+ JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+ Console.WriteLine(result.GetProperty("name").ToString());
+ Console.WriteLine(result.GetProperty("type").ToString());
+ Console.WriteLine(result.GetProperty("target").ToString());
+ Console.WriteLine(result.GetProperty("authType").ToString());
+ Console.WriteLine(result.GetProperty("metadata").GetProperty("").ToString());
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public void Example_Connection_GetConnection_ShortVersion_Convenience()
+ {
+ Uri endpoint = new Uri("");
+ AzureKeyCredential credential = new AzureKeyCredential("");
+ AI.Projects.1DP.Connections client = new Projects.1DP.AIProjectClient(endpoint, credential).GetConnectionsClient(apiVersion: "2025-05-15-preview");
+
+ Azure.Response < AI.Projects.1DP.Connection > response = client.GetConnection("");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Example_Connection_GetConnection_ShortVersion_Convenience_Async()
+ {
+ Uri endpoint = new Uri("");
+ AzureKeyCredential credential = new AzureKeyCredential("");
+ AI.Projects.1DP.Connections client = new Projects.1DP.AIProjectClient(endpoint, credential).GetConnectionsClient(apiVersion: "2025-05-15-preview");
+
+ Azure.Response < AI.Projects.1DP.Connection > response = await client.GetConnectionAsync("");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public void Example_Connection_GetConnection_AllParameters()
+ {
+ Uri endpoint = new Uri("");
+ AzureKeyCredential credential = new AzureKeyCredential("");
+ AI.Projects.1DP.Connections client = new Projects.1DP.AIProjectClient(endpoint, credential).GetConnectionsClient(apiVersion: "2025-05-15-preview");
+
+ Response response = client.GetConnection("", (RequestContext)null);
+
+ JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+ Console.WriteLine(result.GetProperty("name").ToString());
+ Console.WriteLine(result.GetProperty("type").ToString());
+ Console.WriteLine(result.GetProperty("target").ToString());
+ Console.WriteLine(result.GetProperty("authType").ToString());
+ Console.WriteLine(result.GetProperty("metadata").GetProperty("").ToString());
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Example_Connection_GetConnection_AllParameters_Async()
+ {
+ Uri endpoint = new Uri("");
+ AzureKeyCredential credential = new AzureKeyCredential("");
+ AI.Projects.1DP.Connections client = new Projects.1DP.AIProjectClient(endpoint, credential).GetConnectionsClient(apiVersion: "2025-05-15-preview");
+
+ Response response = await client.GetConnectionAsync("", (RequestContext)null);
+
+ JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+ Console.WriteLine(result.GetProperty("name").ToString());
+ Console.WriteLine(result.GetProperty("type").ToString());
+ Console.WriteLine(result.GetProperty("target").ToString());
+ Console.WriteLine(result.GetProperty("authType").ToString());
+ Console.WriteLine(result.GetProperty("metadata").GetProperty("").ToString());
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public void Example_Connection_GetConnection_AllParameters_Convenience()
+ {
+ Uri endpoint = new Uri("");
+ AzureKeyCredential credential = new AzureKeyCredential("");
+ AI.Projects.1DP.Connections client = new Projects.1DP.AIProjectClient(endpoint, credential).GetConnectionsClient(apiVersion: "2025-05-15-preview");
+
+ Azure.Response < AI.Projects.1DP.Connection > response = client.GetConnection("");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Example_Connection_GetConnection_AllParameters_Convenience_Async()
+ {
+ Uri endpoint = new Uri("");
+ AzureKeyCredential credential = new AzureKeyCredential("");
+ AI.Projects.1DP.Connections client = new Projects.1DP.AIProjectClient(endpoint, credential).GetConnectionsClient(apiVersion: "2025-05-15-preview");
+
+ Azure.Response < AI.Projects.1DP.Connection > response = await client.GetConnectionAsync("");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public void Example_Connection_GetConnections_ShortVersion()
+ {
+ Uri endpoint = new Uri("");
+ AzureKeyCredential credential = new AzureKeyCredential("");
+ AI.Projects.1DP.Connections client = new Projects.1DP.AIProjectClient(endpoint, credential).GetConnectionsClient(apiVersion: "2025-05-15-preview");
+
+ foreach (BinaryData item in client.GetConnections((string)null, (int?)null, (int?)null, (int?)null, (RequestContext)null))
+ {
+ JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement;
+ Console.WriteLine(result.GetProperty("name").ToString());
+ Console.WriteLine(result.GetProperty("type").ToString());
+ Console.WriteLine(result.GetProperty("target").ToString());
+ Console.WriteLine(result.GetProperty("authType").ToString());
+ Console.WriteLine(result.GetProperty("metadata").GetProperty("").ToString());
+ }
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Example_Connection_GetConnections_ShortVersion_Async()
+ {
+ Uri endpoint = new Uri("");
+ AzureKeyCredential credential = new AzureKeyCredential("");
+ AI.Projects.1DP.Connections client = new Projects.1DP.AIProjectClient(endpoint, credential).GetConnectionsClient(apiVersion: "2025-05-15-preview");
+
+ await foreach (BinaryData item in client.GetConnectionsAsync((string)null, (int?)null, (int?)null, (int?)null, (RequestContext)null))
+ {
+ JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement;
+ Console.WriteLine(result.GetProperty("name").ToString());
+ Console.WriteLine(result.GetProperty("type").ToString());
+ Console.WriteLine(result.GetProperty("target").ToString());
+ Console.WriteLine(result.GetProperty("authType").ToString());
+ Console.WriteLine(result.GetProperty("metadata").GetProperty("").ToString());
+ }
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public void Example_Connection_GetConnections_ShortVersion_Convenience()
+ {
+ Uri endpoint = new Uri("");
+ AzureKeyCredential credential = new AzureKeyCredential("");
+ AI.Projects.1DP.Connections client = new Projects.1DP.AIProjectClient(endpoint, credential).GetConnectionsClient(apiVersion: "2025-05-15-preview");
+
+ foreach (Projects.1DP.Connection item in client.GetConnections())
+{
+ }
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Example_Connection_GetConnections_ShortVersion_Convenience_Async()
+ {
+ Uri endpoint = new Uri("");
+ AzureKeyCredential credential = new AzureKeyCredential("");
+ AI.Projects.1DP.Connections client = new Projects.1DP.AIProjectClient(endpoint, credential).GetConnectionsClient(apiVersion: "2025-05-15-preview");
+
+ await foreach (Projects.1DP.Connection item in client.GetConnectionsAsync())
+{
+ }
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public void Example_Connection_GetConnections_AllParameters()
+ {
+ Uri endpoint = new Uri("");
+ AzureKeyCredential credential = new AzureKeyCredential("");
+ AI.Projects.1DP.Connections client = new Projects.1DP.AIProjectClient(endpoint, credential).GetConnectionsClient(apiVersion: "2025-05-15-preview");
+
+ foreach (BinaryData item in client.GetConnections("AzureOpenAI", 1234, 1234, 1234, (RequestContext)null))
+ {
+ JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement;
+ Console.WriteLine(result.GetProperty("name").ToString());
+ Console.WriteLine(result.GetProperty("type").ToString());
+ Console.WriteLine(result.GetProperty("target").ToString());
+ Console.WriteLine(result.GetProperty("authType").ToString());
+ Console.WriteLine(result.GetProperty("metadata").GetProperty("").ToString());
+ }
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Example_Connection_GetConnections_AllParameters_Async()
+ {
+ Uri endpoint = new Uri("");
+ AzureKeyCredential credential = new AzureKeyCredential("");
+ AI.Projects.1DP.Connections client = new Projects.1DP.AIProjectClient(endpoint, credential).GetConnectionsClient(apiVersion: "2025-05-15-preview");
+
+ await foreach (BinaryData item in client.GetConnectionsAsync("AzureOpenAI", 1234, 1234, 1234, (RequestContext)null))
+ {
+ JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement;
+ Console.WriteLine(result.GetProperty("name").ToString());
+ Console.WriteLine(result.GetProperty("type").ToString());
+ Console.WriteLine(result.GetProperty("target").ToString());
+ Console.WriteLine(result.GetProperty("authType").ToString());
+ Console.WriteLine(result.GetProperty("metadata").GetProperty("").ToString());
+ }
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public void Example_Connection_GetConnections_AllParameters_Convenience()
+ {
+ Uri endpoint = new Uri("");
+ AzureKeyCredential credential = new AzureKeyCredential("");
+ AI.Projects.1DP.Connections client = new Projects.1DP.AIProjectClient(endpoint, credential).GetConnectionsClient(apiVersion: "2025-05-15-preview");
+
+ foreach (Projects.1DP.Connection item in client.GetConnections(connectionType: AI.Projects.1DP.ConnectionType.AzureOpenAI, maxCount: 1234, skip: 1234, maxpagesize: 1234))
+{
+ }
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Example_Connection_GetConnections_AllParameters_Convenience_Async()
+ {
+ Uri endpoint = new Uri("");
+ AzureKeyCredential credential = new AzureKeyCredential("");
+ AI.Projects.1DP.Connections client = new Projects.1DP.AIProjectClient(endpoint, credential).GetConnectionsClient(apiVersion: "2025-05-15-preview");
+
+ await foreach (Projects.1DP.Connection item in client.GetConnectionsAsync(connectionType: AI.Projects.1DP.ConnectionType.AzureOpenAI, maxCount: 1234, skip: 1234, maxpagesize: 1234))
+{
+ }
+ }
+}
+}
diff --git a/sdk/ai/Azure.AI.Projects.1DP/tests/Generated/Samples/Samples_Datasets.cs b/sdk/ai/Azure.AI.Projects.1DP/tests/Generated/Samples/Samples_Datasets.cs
new file mode 100644
index 000000000000..90560279caa4
--- /dev/null
+++ b/sdk/ai/Azure.AI.Projects.1DP/tests/Generated/Samples/Samples_Datasets.cs
@@ -0,0 +1,1125 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Text.Json;
+using System.Threading.Tasks;
+using Azure.Core;
+using Azure.Identity;
+using NUnit.Framework;
+
+namespace Azure.AI.Projects.1DP.Samples
+{
+public partial class Samples_Datasets
+{
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public void Example_Datasets_GetVersion_ShortVersion()
+ {
+ Uri endpoint = new Uri("");
+ AzureKeyCredential credential = new AzureKeyCredential("");
+ AI.Projects.1DP.Datasets client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDatasetsClient(apiVersion: "2025-05-15-preview");
+
+ Response response = client.GetVersion("", "", (RequestContext)null);
+
+ JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+ Console.WriteLine(result.GetProperty("datasetUri").ToString());
+ Console.WriteLine(result.GetProperty("type").ToString());
+ Console.WriteLine(result.GetProperty("name").ToString());
+ Console.WriteLine(result.GetProperty("version").ToString());
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Example_Datasets_GetVersion_ShortVersion_Async()
+ {
+ Uri endpoint = new Uri("");
+ AzureKeyCredential credential = new AzureKeyCredential("");
+ AI.Projects.1DP.Datasets client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDatasetsClient(apiVersion: "2025-05-15-preview");
+
+ Response response = await client.GetVersionAsync("", "", (RequestContext)null);
+
+ JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+ Console.WriteLine(result.GetProperty("datasetUri").ToString());
+ Console.WriteLine(result.GetProperty("type").ToString());
+ Console.WriteLine(result.GetProperty("name").ToString());
+ Console.WriteLine(result.GetProperty("version").ToString());
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public void Example_Datasets_GetVersion_ShortVersion_Convenience()
+ {
+ Uri endpoint = new Uri("");
+ AzureKeyCredential credential = new AzureKeyCredential("");
+ AI.Projects.1DP.Datasets client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDatasetsClient(apiVersion: "2025-05-15-preview");
+
+ Azure.Response < AI.Projects.1DP.DatasetVersion > response = client.GetVersion("", "");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Example_Datasets_GetVersion_ShortVersion_Convenience_Async()
+ {
+ Uri endpoint = new Uri("");
+ AzureKeyCredential credential = new AzureKeyCredential("");
+ AI.Projects.1DP.Datasets client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDatasetsClient(apiVersion: "2025-05-15-preview");
+
+ Azure.Response < AI.Projects.1DP.DatasetVersion > response = await client.GetVersionAsync("", "");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public void Example_Datasets_GetVersion_AllParameters()
+ {
+ Uri endpoint = new Uri("");
+ AzureKeyCredential credential = new AzureKeyCredential("");
+ AI.Projects.1DP.Datasets client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDatasetsClient(apiVersion: "2025-05-15-preview");
+
+ Response response = client.GetVersion("", "", (RequestContext)null);
+
+ JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+ Console.WriteLine(result.GetProperty("datasetUri").ToString());
+ Console.WriteLine(result.GetProperty("type").ToString());
+ Console.WriteLine(result.GetProperty("isReference").ToString());
+ Console.WriteLine(result.GetProperty("stage").ToString());
+ Console.WriteLine(result.GetProperty("id").ToString());
+ Console.WriteLine(result.GetProperty("name").ToString());
+ Console.WriteLine(result.GetProperty("version").ToString());
+ Console.WriteLine(result.GetProperty("description").ToString());
+ Console.WriteLine(result.GetProperty("tags").GetProperty("").ToString());
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Example_Datasets_GetVersion_AllParameters_Async()
+ {
+ Uri endpoint = new Uri("");
+ AzureKeyCredential credential = new AzureKeyCredential("");
+ AI.Projects.1DP.Datasets client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDatasetsClient(apiVersion: "2025-05-15-preview");
+
+ Response response = await client.GetVersionAsync("", "", (RequestContext)null);
+
+ JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+ Console.WriteLine(result.GetProperty("datasetUri").ToString());
+ Console.WriteLine(result.GetProperty("type").ToString());
+ Console.WriteLine(result.GetProperty("isReference").ToString());
+ Console.WriteLine(result.GetProperty("stage").ToString());
+ Console.WriteLine(result.GetProperty("id").ToString());
+ Console.WriteLine(result.GetProperty("name").ToString());
+ Console.WriteLine(result.GetProperty("version").ToString());
+ Console.WriteLine(result.GetProperty("description").ToString());
+ Console.WriteLine(result.GetProperty("tags").GetProperty("").ToString());
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public void Example_Datasets_GetVersion_AllParameters_Convenience()
+ {
+ Uri endpoint = new Uri("");
+ AzureKeyCredential credential = new AzureKeyCredential("");
+ AI.Projects.1DP.Datasets client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDatasetsClient(apiVersion: "2025-05-15-preview");
+
+ Azure.Response < AI.Projects.1DP.DatasetVersion > response = client.GetVersion("", "");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Example_Datasets_GetVersion_AllParameters_Convenience_Async()
+ {
+ Uri endpoint = new Uri("");
+ AzureKeyCredential credential = new AzureKeyCredential("");
+ AI.Projects.1DP.Datasets client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDatasetsClient(apiVersion: "2025-05-15-preview");
+
+ Azure.Response < AI.Projects.1DP.DatasetVersion > response = await client.GetVersionAsync("", "");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public void Example_Datasets_DeleteVersion_ShortVersion()
+ {
+ Uri endpoint = new Uri("");
+ AzureKeyCredential credential = new AzureKeyCredential("");
+ AI.Projects.1DP.Datasets client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDatasetsClient(apiVersion: "2025-05-15-preview");
+
+ Response response = client.DeleteVersion("", "");
+
+ Console.WriteLine(response.Status);
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Example_Datasets_DeleteVersion_ShortVersion_Async()
+ {
+ Uri endpoint = new Uri("");
+ AzureKeyCredential credential = new AzureKeyCredential("");
+ AI.Projects.1DP.Datasets client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDatasetsClient(apiVersion: "2025-05-15-preview");
+
+ Response response = await client.DeleteVersionAsync("", "");
+
+ Console.WriteLine(response.Status);
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public void Example_Datasets_DeleteVersion_AllParameters()
+ {
+ Uri endpoint = new Uri("");
+ AzureKeyCredential credential = new AzureKeyCredential("");
+ AI.Projects.1DP.Datasets client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDatasetsClient(apiVersion: "2025-05-15-preview");
+
+ Response response = client.DeleteVersion("", "");
+
+ Console.WriteLine(response.Status);
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Example_Datasets_DeleteVersion_AllParameters_Async()
+ {
+ Uri endpoint = new Uri("");
+ AzureKeyCredential credential = new AzureKeyCredential("");
+ AI.Projects.1DP.Datasets client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDatasetsClient(apiVersion: "2025-05-15-preview");
+
+ Response response = await client.DeleteVersionAsync("", "");
+
+ Console.WriteLine(response.Status);
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public void Example_Datasets_Create_ShortVersion()
+ {
+ Uri endpoint = new Uri("");
+ AzureKeyCredential credential = new AzureKeyCredential("");
+ AI.Projects.1DP.Datasets client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDatasetsClient(apiVersion: "2025-05-15-preview");
+
+ using RequestContent content = RequestContent.Create(new
+ {
+ type = "uri_file",
+ openAIPurpose = "",
+ datasetUri = "",
+ });
+ Response response = client.Create("", content);
+
+ JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+ Console.WriteLine(result.GetProperty("datasetUri").ToString());
+ Console.WriteLine(result.GetProperty("type").ToString());
+ Console.WriteLine(result.GetProperty("name").ToString());
+ Console.WriteLine(result.GetProperty("version").ToString());
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Example_Datasets_Create_ShortVersion_Async()
+ {
+ Uri endpoint = new Uri("");
+ AzureKeyCredential credential = new AzureKeyCredential("");
+ AI.Projects.1DP.Datasets client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDatasetsClient(apiVersion: "2025-05-15-preview");
+
+ using RequestContent content = RequestContent.Create(new
+ {
+ type = "uri_file",
+ openAIPurpose = "",
+ datasetUri = "",
+ });
+ Response response = await client.CreateAsync("", content);
+
+ JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+ Console.WriteLine(result.GetProperty("datasetUri").ToString());
+ Console.WriteLine(result.GetProperty("type").ToString());
+ Console.WriteLine(result.GetProperty("name").ToString());
+ Console.WriteLine(result.GetProperty("version").ToString());
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public void Example_Datasets_Create_ShortVersion_Convenience()
+ {
+ Uri endpoint = new Uri("");
+ AzureKeyCredential credential = new AzureKeyCredential("");
+ AI.Projects.1DP.Datasets client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDatasetsClient(apiVersion: "2025-05-15-preview");
+
+ AI.Projects.1DP.DatasetVersion body = new Projects.1DP.FileDatasetVersion("", "");
+ Azure.Response < AI.Projects.1DP.DatasetVersion > response = client.Create("", body);
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Example_Datasets_Create_ShortVersion_Convenience_Async()
+ {
+ Uri endpoint = new Uri("");
+ AzureKeyCredential credential = new AzureKeyCredential("");
+ AI.Projects.1DP.Datasets client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDatasetsClient(apiVersion: "2025-05-15-preview");
+
+ AI.Projects.1DP.DatasetVersion body = new Projects.1DP.FileDatasetVersion("", "");
+ Azure.Response < AI.Projects.1DP.DatasetVersion > response = await client.CreateAsync("", body);
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public void Example_Datasets_Create_AllParameters()
+ {
+ Uri endpoint = new Uri("");
+ AzureKeyCredential credential = new AzureKeyCredential("");
+ AI.Projects.1DP.Datasets client = new Projects.1DP.AIProjectClient(endpoint, credential).GetDatasetsClient(apiVersion: "2025-05-15-preview");
+
+ using RequestContent content = RequestContent.Create(new
+ {
+ type = "uri_file",
+ openAIPurpose = "",
+ datasetUri = "",
+ stage = "",
+ description = "",
+ tags = new
+ {
+ key = "",
+ },
+ });
+ Response response = client.Create("