diff --git a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/AnalyzeConversationAuthoring.cs b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/AnalyzeConversationAuthoring.cs deleted file mode 100644 index d619718162b9d..0000000000000 --- a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/AnalyzeConversationAuthoring.cs +++ /dev/null @@ -1,6630 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using System.Text.Json; -using System.Threading; -using System.Threading.Tasks; -using Autorest.CSharp.Core; -using Azure.AI.Language.Conversations.Authoring.Models; -using Azure.Core; -using Azure.Core.Pipeline; - -namespace Azure.AI.Language.Conversations.Authoring -{ - // Data plane generated sub-client. - /// The AnalyzeConversationAuthoring sub-client. - public partial class AnalyzeConversationAuthoring - { - private const string AuthorizationHeader = "Ocp-Apim-Subscription-Key"; - private readonly AzureKeyCredential _keyCredential; - private static readonly string[] AuthorizationScopes = new string[] { "https://cognitiveservices.azure.com/.default" }; - private readonly TokenCredential _tokenCredential; - private readonly HttpPipeline _pipeline; - private readonly Uri _endpoint; - private readonly string _apiVersion; - - /// 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 AnalyzeConversationAuthoring for mocking. - protected AnalyzeConversationAuthoring() - { - } - - /// Initializes a new instance of AnalyzeConversationAuthoring. - /// The handler for diagnostic messaging in the client. - /// The HTTP pipeline for sending and receiving REST requests and responses. - /// The key credential to copy. - /// The token credential to copy. - /// Supported Cognitive Services endpoint e.g., https://<resource-name>.api.cognitiveservices.azure.com. - /// The API version to use for this operation. - internal AnalyzeConversationAuthoring(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, AzureKeyCredential keyCredential, TokenCredential tokenCredential, Uri endpoint, string apiVersion) - { - ClientDiagnostics = clientDiagnostics; - _pipeline = pipeline; - _keyCredential = keyCredential; - _tokenCredential = tokenCredential; - _endpoint = endpoint; - _apiVersion = apiVersion; - } - - /// Gets the details of a project. - /// The new project name. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - /// - public virtual async Task> GetProjectAsync(string projectName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await GetProjectAsync(projectName, context).ConfigureAwait(false); - return Response.FromValue(ProjectMetadata.FromResponse(response), response); - } - - /// Gets the details of a project. - /// The new project name. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - /// - public virtual Response GetProject(string projectName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - - RequestContext context = FromCancellationToken(cancellationToken); - Response response = GetProject(projectName, context); - return Response.FromValue(ProjectMetadata.FromResponse(response), response); - } - - /// - /// [Protocol Method] Gets the details of a 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. - /// - /// - /// - /// - /// The new project name. - /// 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 response returned from the service. - /// - public virtual async Task GetProjectAsync(string projectName, RequestContext context) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - - using var scope = ClientDiagnostics.CreateScope("AnalyzeConversationAuthoring.GetProject"); - scope.Start(); - try - { - using HttpMessage message = CreateGetProjectRequest(projectName, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// [Protocol Method] Gets the details of a 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. - /// - /// - /// - /// - /// The new project name. - /// 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 response returned from the service. - /// - public virtual Response GetProject(string projectName, RequestContext context) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - - using var scope = ClientDiagnostics.CreateScope("AnalyzeConversationAuthoring.GetProject"); - scope.Start(); - try - { - using HttpMessage message = CreateGetProjectRequest(projectName, context); - return _pipeline.ProcessMessage(message, context); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// [Protocol Method] Creates a new project or updates an existing one. - /// - /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// The new project name. - /// The content to send as the body of the request. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// or is null. - /// is an empty string, and was expected to be non-empty. - /// Service returned a non-success status code. - /// The response returned from the service. - /// - public virtual async Task CreateProjectAsync(string projectName, RequestContent content, RequestContext context = null) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("AnalyzeConversationAuthoring.CreateProject"); - scope.Start(); - try - { - using HttpMessage message = CreateCreateProjectRequest(projectName, content, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// [Protocol Method] Creates a new project or updates an existing one. - /// - /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// The new project name. - /// The content to send as the body of the request. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// or is null. - /// is an empty string, and was expected to be non-empty. - /// Service returned a non-success status code. - /// The response returned from the service. - /// - public virtual Response CreateProject(string projectName, RequestContent content, RequestContext context = null) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("AnalyzeConversationAuthoring.CreateProject"); - scope.Start(); - try - { - using HttpMessage message = CreateCreateProjectRequest(projectName, content, context); - return _pipeline.ProcessMessage(message, context); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// Generates a copy project operation authorization to the current target Azure resource. - /// The new project name. - /// Represents the project kind. - /// The name of the storage container. - /// Whether to allow an existing project to be overwritten using the resulting copy authorization. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - /// - public virtual async Task> CopyProjectAuthorizationAsync(string projectName, ProjectKind projectKind, string storageInputContainerName = null, bool? allowOverwrite = null, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - - CopyProjectAuthorizationRequest copyProjectAuthorizationRequest = new CopyProjectAuthorizationRequest(projectKind, storageInputContainerName, allowOverwrite, null); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await CopyProjectAuthorizationAsync(projectName, copyProjectAuthorizationRequest.ToRequestContent(), context).ConfigureAwait(false); - return Response.FromValue(CopyProjectDetails.FromResponse(response), response); - } - - /// Generates a copy project operation authorization to the current target Azure resource. - /// The new project name. - /// Represents the project kind. - /// The name of the storage container. - /// Whether to allow an existing project to be overwritten using the resulting copy authorization. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - /// - public virtual Response CopyProjectAuthorization(string projectName, ProjectKind projectKind, string storageInputContainerName = null, bool? allowOverwrite = null, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - - CopyProjectAuthorizationRequest copyProjectAuthorizationRequest = new CopyProjectAuthorizationRequest(projectKind, storageInputContainerName, allowOverwrite, null); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = CopyProjectAuthorization(projectName, copyProjectAuthorizationRequest.ToRequestContent(), context); - return Response.FromValue(CopyProjectDetails.FromResponse(response), response); - } - - /// - /// [Protocol Method] Generates a copy project operation authorization to the current target Azure resource. - /// - /// - /// - /// 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 new project name. - /// The content to send as the body of the request. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// or is null. - /// is an empty string, and was expected to be non-empty. - /// Service returned a non-success status code. - /// The response returned from the service. - /// - public virtual async Task CopyProjectAuthorizationAsync(string projectName, RequestContent content, RequestContext context = null) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("AnalyzeConversationAuthoring.CopyProjectAuthorization"); - scope.Start(); - try - { - using HttpMessage message = CreateCopyProjectAuthorizationRequest(projectName, content, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// [Protocol Method] Generates a copy project operation authorization to the current target Azure resource. - /// - /// - /// - /// 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 new project name. - /// The content to send as the body of the request. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// or is null. - /// is an empty string, and was expected to be non-empty. - /// Service returned a non-success status code. - /// The response returned from the service. - /// - public virtual Response CopyProjectAuthorization(string projectName, RequestContent content, RequestContext context = null) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("AnalyzeConversationAuthoring.CopyProjectAuthorization"); - scope.Start(); - try - { - using HttpMessage message = CreateCopyProjectAuthorizationRequest(projectName, content, context); - return _pipeline.ProcessMessage(message, context); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// Gets the status of an existing copy project job. - /// The new project name. - /// The job ID. - /// The cancellation token to use. - /// or is null. - /// or is an empty string, and was expected to be non-empty. - /// - public virtual async Task> GetCopyProjectStatusAsync(string projectName, string jobId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); - - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await GetCopyProjectStatusAsync(projectName, jobId, context).ConfigureAwait(false); - return Response.FromValue(CopyProjectJobState.FromResponse(response), response); - } - - /// Gets the status of an existing copy project job. - /// The new project name. - /// The job ID. - /// The cancellation token to use. - /// or is null. - /// or is an empty string, and was expected to be non-empty. - /// - public virtual Response GetCopyProjectStatus(string projectName, string jobId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); - - RequestContext context = FromCancellationToken(cancellationToken); - Response response = GetCopyProjectStatus(projectName, jobId, context); - return Response.FromValue(CopyProjectJobState.FromResponse(response), response); - } - - /// - /// [Protocol Method] Gets the status of an existing copy project job. - /// - /// - /// - /// 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 new project name. - /// The job ID. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// or is null. - /// or is an empty string, and was expected to be non-empty. - /// Service returned a non-success status code. - /// The response returned from the service. - /// - public virtual async Task GetCopyProjectStatusAsync(string projectName, string jobId, RequestContext context) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); - - using var scope = ClientDiagnostics.CreateScope("AnalyzeConversationAuthoring.GetCopyProjectStatus"); - scope.Start(); - try - { - using HttpMessage message = CreateGetCopyProjectStatusRequest(projectName, jobId, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// [Protocol Method] Gets the status of an existing copy project job. - /// - /// - /// - /// 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 new project name. - /// The job ID. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// or is null. - /// or is an empty string, and was expected to be non-empty. - /// Service returned a non-success status code. - /// The response returned from the service. - /// - public virtual Response GetCopyProjectStatus(string projectName, string jobId, RequestContext context) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); - - using var scope = ClientDiagnostics.CreateScope("AnalyzeConversationAuthoring.GetCopyProjectStatus"); - scope.Start(); - try - { - using HttpMessage message = CreateGetCopyProjectStatusRequest(projectName, jobId, context); - return _pipeline.ProcessMessage(message, context); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// Gets the details of a deployment. - /// The new project name. - /// Represents deployment name. - /// The cancellation token to use. - /// or is null. - /// or is an empty string, and was expected to be non-empty. - /// - public virtual async Task> GetDeploymentAsync(string projectName, string deploymentName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(deploymentName, nameof(deploymentName)); - - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await GetDeploymentAsync(projectName, deploymentName, context).ConfigureAwait(false); - return Response.FromValue(ProjectDeployment.FromResponse(response), response); - } - - /// Gets the details of a deployment. - /// The new project name. - /// Represents deployment name. - /// The cancellation token to use. - /// or is null. - /// or is an empty string, and was expected to be non-empty. - /// - public virtual Response GetDeployment(string projectName, string deploymentName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(deploymentName, nameof(deploymentName)); - - RequestContext context = FromCancellationToken(cancellationToken); - Response response = GetDeployment(projectName, deploymentName, context); - return Response.FromValue(ProjectDeployment.FromResponse(response), response); - } - - /// - /// [Protocol Method] Gets the details of a deployment. - /// - /// - /// - /// 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 new project name. - /// Represents deployment name. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// or is null. - /// or is an empty string, and was expected to be non-empty. - /// Service returned a non-success status code. - /// The response returned from the service. - /// - public virtual async Task GetDeploymentAsync(string projectName, string deploymentName, RequestContext context) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(deploymentName, nameof(deploymentName)); - - using var scope = ClientDiagnostics.CreateScope("AnalyzeConversationAuthoring.GetDeployment"); - scope.Start(); - try - { - using HttpMessage message = CreateGetDeploymentRequest(projectName, deploymentName, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// [Protocol Method] Gets the details of a deployment. - /// - /// - /// - /// 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 new project name. - /// Represents deployment name. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// or is null. - /// or is an empty string, and was expected to be non-empty. - /// Service returned a non-success status code. - /// The response returned from the service. - /// - public virtual Response GetDeployment(string projectName, string deploymentName, RequestContext context) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(deploymentName, nameof(deploymentName)); - - using var scope = ClientDiagnostics.CreateScope("AnalyzeConversationAuthoring.GetDeployment"); - scope.Start(); - try - { - using HttpMessage message = CreateGetDeploymentRequest(projectName, deploymentName, context); - return _pipeline.ProcessMessage(message, context); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// Gets the status of an existing delete deployment from specific resources job. - /// The new project name. - /// Represents deployment name. - /// The job ID. - /// The cancellation token to use. - /// , or is null. - /// , or is an empty string, and was expected to be non-empty. - /// - public virtual async Task> GetDeploymentDeleteFromResourcesStatusAsync(string projectName, string deploymentName, string jobId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(deploymentName, nameof(deploymentName)); - Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); - - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await GetDeploymentDeleteFromResourcesStatusAsync(projectName, deploymentName, jobId, context).ConfigureAwait(false); - return Response.FromValue(DeploymentDeleteFromResourcesJobState.FromResponse(response), response); - } - - /// Gets the status of an existing delete deployment from specific resources job. - /// The new project name. - /// Represents deployment name. - /// The job ID. - /// The cancellation token to use. - /// , or is null. - /// , or is an empty string, and was expected to be non-empty. - /// - public virtual Response GetDeploymentDeleteFromResourcesStatus(string projectName, string deploymentName, string jobId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(deploymentName, nameof(deploymentName)); - Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); - - RequestContext context = FromCancellationToken(cancellationToken); - Response response = GetDeploymentDeleteFromResourcesStatus(projectName, deploymentName, jobId, context); - return Response.FromValue(DeploymentDeleteFromResourcesJobState.FromResponse(response), response); - } - - /// - /// [Protocol Method] Gets the status of an existing delete deployment from specific resources job. - /// - /// - /// - /// 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 new project name. - /// Represents deployment name. - /// The job ID. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// , or is null. - /// , or is an empty string, and was expected to be non-empty. - /// Service returned a non-success status code. - /// The response returned from the service. - /// - public virtual async Task GetDeploymentDeleteFromResourcesStatusAsync(string projectName, string deploymentName, string jobId, RequestContext context) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(deploymentName, nameof(deploymentName)); - Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); - - using var scope = ClientDiagnostics.CreateScope("AnalyzeConversationAuthoring.GetDeploymentDeleteFromResourcesStatus"); - scope.Start(); - try - { - using HttpMessage message = CreateGetDeploymentDeleteFromResourcesStatusRequest(projectName, deploymentName, jobId, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// [Protocol Method] Gets the status of an existing delete deployment from specific resources job. - /// - /// - /// - /// 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 new project name. - /// Represents deployment name. - /// The job ID. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// , or is null. - /// , or is an empty string, and was expected to be non-empty. - /// Service returned a non-success status code. - /// The response returned from the service. - /// - public virtual Response GetDeploymentDeleteFromResourcesStatus(string projectName, string deploymentName, string jobId, RequestContext context) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(deploymentName, nameof(deploymentName)); - Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); - - using var scope = ClientDiagnostics.CreateScope("AnalyzeConversationAuthoring.GetDeploymentDeleteFromResourcesStatus"); - scope.Start(); - try - { - using HttpMessage message = CreateGetDeploymentDeleteFromResourcesStatusRequest(projectName, deploymentName, jobId, context); - return _pipeline.ProcessMessage(message, context); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// Gets the status of an existing deployment job. - /// The new project name. - /// Represents deployment name. - /// The job ID. - /// The cancellation token to use. - /// , or is null. - /// , or is an empty string, and was expected to be non-empty. - /// - public virtual async Task> GetDeploymentStatusAsync(string projectName, string deploymentName, string jobId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(deploymentName, nameof(deploymentName)); - Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); - - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await GetDeploymentStatusAsync(projectName, deploymentName, jobId, context).ConfigureAwait(false); - return Response.FromValue(DeploymentJobState.FromResponse(response), response); - } - - /// Gets the status of an existing deployment job. - /// The new project name. - /// Represents deployment name. - /// The job ID. - /// The cancellation token to use. - /// , or is null. - /// , or is an empty string, and was expected to be non-empty. - /// - public virtual Response GetDeploymentStatus(string projectName, string deploymentName, string jobId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(deploymentName, nameof(deploymentName)); - Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); - - RequestContext context = FromCancellationToken(cancellationToken); - Response response = GetDeploymentStatus(projectName, deploymentName, jobId, context); - return Response.FromValue(DeploymentJobState.FromResponse(response), response); - } - - /// - /// [Protocol Method] Gets the status of an existing deployment job. - /// - /// - /// - /// 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 new project name. - /// Represents deployment name. - /// The job ID. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// , or is null. - /// , or is an empty string, and was expected to be non-empty. - /// Service returned a non-success status code. - /// The response returned from the service. - /// - public virtual async Task GetDeploymentStatusAsync(string projectName, string deploymentName, string jobId, RequestContext context) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(deploymentName, nameof(deploymentName)); - Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); - - using var scope = ClientDiagnostics.CreateScope("AnalyzeConversationAuthoring.GetDeploymentStatus"); - scope.Start(); - try - { - using HttpMessage message = CreateGetDeploymentStatusRequest(projectName, deploymentName, jobId, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// [Protocol Method] Gets the status of an existing deployment job. - /// - /// - /// - /// 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 new project name. - /// Represents deployment name. - /// The job ID. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// , or is null. - /// , or is an empty string, and was expected to be non-empty. - /// Service returned a non-success status code. - /// The response returned from the service. - /// - public virtual Response GetDeploymentStatus(string projectName, string deploymentName, string jobId, RequestContext context) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(deploymentName, nameof(deploymentName)); - Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); - - using var scope = ClientDiagnostics.CreateScope("AnalyzeConversationAuthoring.GetDeploymentStatus"); - scope.Start(); - try - { - using HttpMessage message = CreateGetDeploymentStatusRequest(projectName, deploymentName, jobId, context); - return _pipeline.ProcessMessage(message, context); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// Gets the status of an existing swap deployment job. - /// The new project name. - /// The job ID. - /// The cancellation token to use. - /// or is null. - /// or is an empty string, and was expected to be non-empty. - /// - public virtual async Task> GetSwapDeploymentsStatusAsync(string projectName, string jobId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); - - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await GetSwapDeploymentsStatusAsync(projectName, jobId, context).ConfigureAwait(false); - return Response.FromValue(SwapDeploymentsJobState.FromResponse(response), response); - } - - /// Gets the status of an existing swap deployment job. - /// The new project name. - /// The job ID. - /// The cancellation token to use. - /// or is null. - /// or is an empty string, and was expected to be non-empty. - /// - public virtual Response GetSwapDeploymentsStatus(string projectName, string jobId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); - - RequestContext context = FromCancellationToken(cancellationToken); - Response response = GetSwapDeploymentsStatus(projectName, jobId, context); - return Response.FromValue(SwapDeploymentsJobState.FromResponse(response), response); - } - - /// - /// [Protocol Method] Gets the status of an existing swap deployment job. - /// - /// - /// - /// 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 new project name. - /// The job ID. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// or is null. - /// or is an empty string, and was expected to be non-empty. - /// Service returned a non-success status code. - /// The response returned from the service. - /// - public virtual async Task GetSwapDeploymentsStatusAsync(string projectName, string jobId, RequestContext context) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); - - using var scope = ClientDiagnostics.CreateScope("AnalyzeConversationAuthoring.GetSwapDeploymentsStatus"); - scope.Start(); - try - { - using HttpMessage message = CreateGetSwapDeploymentsStatusRequest(projectName, jobId, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// [Protocol Method] Gets the status of an existing swap deployment job. - /// - /// - /// - /// 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 new project name. - /// The job ID. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// or is null. - /// or is an empty string, and was expected to be non-empty. - /// Service returned a non-success status code. - /// The response returned from the service. - /// - public virtual Response GetSwapDeploymentsStatus(string projectName, string jobId, RequestContext context) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); - - using var scope = ClientDiagnostics.CreateScope("AnalyzeConversationAuthoring.GetSwapDeploymentsStatus"); - scope.Start(); - try - { - using HttpMessage message = CreateGetSwapDeploymentsStatusRequest(projectName, jobId, context); - return _pipeline.ProcessMessage(message, context); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// Gets the status of an export job. Once job completes, returns the project metadata, and assets. - /// The new project name. - /// The job ID. - /// The cancellation token to use. - /// or is null. - /// or is an empty string, and was expected to be non-empty. - /// - public virtual async Task> GetExportStatusAsync(string projectName, string jobId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); - - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await GetExportStatusAsync(projectName, jobId, context).ConfigureAwait(false); - return Response.FromValue(ExportProjectJobState.FromResponse(response), response); - } - - /// Gets the status of an export job. Once job completes, returns the project metadata, and assets. - /// The new project name. - /// The job ID. - /// The cancellation token to use. - /// or is null. - /// or is an empty string, and was expected to be non-empty. - /// - public virtual Response GetExportStatus(string projectName, string jobId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); - - RequestContext context = FromCancellationToken(cancellationToken); - Response response = GetExportStatus(projectName, jobId, context); - return Response.FromValue(ExportProjectJobState.FromResponse(response), response); - } - - /// - /// [Protocol Method] Gets the status of an export job. Once job completes, returns the project metadata, and assets. - /// - /// - /// - /// 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 new project name. - /// The job ID. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// or is null. - /// or is an empty string, and was expected to be non-empty. - /// Service returned a non-success status code. - /// The response returned from the service. - /// - public virtual async Task GetExportStatusAsync(string projectName, string jobId, RequestContext context) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); - - using var scope = ClientDiagnostics.CreateScope("AnalyzeConversationAuthoring.GetExportStatus"); - scope.Start(); - try - { - using HttpMessage message = CreateGetExportStatusRequest(projectName, jobId, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// [Protocol Method] Gets the status of an export job. Once job completes, returns the project metadata, and assets. - /// - /// - /// - /// 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 new project name. - /// The job ID. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// or is null. - /// or is an empty string, and was expected to be non-empty. - /// Service returned a non-success status code. - /// The response returned from the service. - /// - public virtual Response GetExportStatus(string projectName, string jobId, RequestContext context) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); - - using var scope = ClientDiagnostics.CreateScope("AnalyzeConversationAuthoring.GetExportStatus"); - scope.Start(); - try - { - using HttpMessage message = CreateGetExportStatusRequest(projectName, jobId, context); - return _pipeline.ProcessMessage(message, context); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// Gets the status for an import. - /// The new project name. - /// The job ID. - /// The cancellation token to use. - /// or is null. - /// or is an empty string, and was expected to be non-empty. - /// - public virtual async Task> GetImportStatusAsync(string projectName, string jobId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); - - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await GetImportStatusAsync(projectName, jobId, context).ConfigureAwait(false); - return Response.FromValue(ImportProjectJobState.FromResponse(response), response); - } - - /// Gets the status for an import. - /// The new project name. - /// The job ID. - /// The cancellation token to use. - /// or is null. - /// or is an empty string, and was expected to be non-empty. - /// - public virtual Response GetImportStatus(string projectName, string jobId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); - - RequestContext context = FromCancellationToken(cancellationToken); - Response response = GetImportStatus(projectName, jobId, context); - return Response.FromValue(ImportProjectJobState.FromResponse(response), response); - } - - /// - /// [Protocol Method] Gets the status for an import. - /// - /// - /// - /// 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 new project name. - /// The job ID. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// or is null. - /// or is an empty string, and was expected to be non-empty. - /// Service returned a non-success status code. - /// The response returned from the service. - /// - public virtual async Task GetImportStatusAsync(string projectName, string jobId, RequestContext context) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); - - using var scope = ClientDiagnostics.CreateScope("AnalyzeConversationAuthoring.GetImportStatus"); - scope.Start(); - try - { - using HttpMessage message = CreateGetImportStatusRequest(projectName, jobId, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// [Protocol Method] Gets the status for an import. - /// - /// - /// - /// 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 new project name. - /// The job ID. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// or is null. - /// or is an empty string, and was expected to be non-empty. - /// Service returned a non-success status code. - /// The response returned from the service. - /// - public virtual Response GetImportStatus(string projectName, string jobId, RequestContext context) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); - - using var scope = ClientDiagnostics.CreateScope("AnalyzeConversationAuthoring.GetImportStatus"); - scope.Start(); - try - { - using HttpMessage message = CreateGetImportStatusRequest(projectName, jobId, context); - return _pipeline.ProcessMessage(message, context); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// Gets the details of a trained model. - /// The new project name. - /// The trained model label. - /// The cancellation token to use. - /// or is null. - /// or is an empty string, and was expected to be non-empty. - /// - public virtual async Task> GetTrainedModelAsync(string projectName, string trainedModelLabel, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(trainedModelLabel, nameof(trainedModelLabel)); - - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await GetTrainedModelAsync(projectName, trainedModelLabel, context).ConfigureAwait(false); - return Response.FromValue(ProjectTrainedModel.FromResponse(response), response); - } - - /// Gets the details of a trained model. - /// The new project name. - /// The trained model label. - /// The cancellation token to use. - /// or is null. - /// or is an empty string, and was expected to be non-empty. - /// - public virtual Response GetTrainedModel(string projectName, string trainedModelLabel, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(trainedModelLabel, nameof(trainedModelLabel)); - - RequestContext context = FromCancellationToken(cancellationToken); - Response response = GetTrainedModel(projectName, trainedModelLabel, context); - return Response.FromValue(ProjectTrainedModel.FromResponse(response), response); - } - - /// - /// [Protocol Method] Gets the details of a trained model. - /// - /// - /// - /// 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 new project name. - /// The trained model label. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// or is null. - /// or is an empty string, and was expected to be non-empty. - /// Service returned a non-success status code. - /// The response returned from the service. - /// - public virtual async Task GetTrainedModelAsync(string projectName, string trainedModelLabel, RequestContext context) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(trainedModelLabel, nameof(trainedModelLabel)); - - using var scope = ClientDiagnostics.CreateScope("AnalyzeConversationAuthoring.GetTrainedModel"); - scope.Start(); - try - { - using HttpMessage message = CreateGetTrainedModelRequest(projectName, trainedModelLabel, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// [Protocol Method] Gets the details of a trained model. - /// - /// - /// - /// 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 new project name. - /// The trained model label. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// or is null. - /// or is an empty string, and was expected to be non-empty. - /// Service returned a non-success status code. - /// The response returned from the service. - /// - public virtual Response GetTrainedModel(string projectName, string trainedModelLabel, RequestContext context) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(trainedModelLabel, nameof(trainedModelLabel)); - - using var scope = ClientDiagnostics.CreateScope("AnalyzeConversationAuthoring.GetTrainedModel"); - scope.Start(); - try - { - using HttpMessage message = CreateGetTrainedModelRequest(projectName, trainedModelLabel, context); - return _pipeline.ProcessMessage(message, context); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - // The convenience method is omitted here because it has exactly the same parameter list as the corresponding protocol method - /// - /// [Protocol Method] Deletes an existing trained model. - /// - /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// The new project name. - /// The trained model label. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// or is null. - /// or is an empty string, and was expected to be non-empty. - /// Service returned a non-success status code. - /// The response returned from the service. - /// - public virtual async Task DeleteTrainedModelAsync(string projectName, string trainedModelLabel, RequestContext context = null) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(trainedModelLabel, nameof(trainedModelLabel)); - - using var scope = ClientDiagnostics.CreateScope("AnalyzeConversationAuthoring.DeleteTrainedModel"); - scope.Start(); - try - { - using HttpMessage message = CreateDeleteTrainedModelRequest(projectName, trainedModelLabel, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - // The convenience method is omitted here because it has exactly the same parameter list as the corresponding protocol method - /// - /// [Protocol Method] Deletes an existing trained model. - /// - /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// The new project name. - /// The trained model label. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// or is null. - /// or is an empty string, and was expected to be non-empty. - /// Service returned a non-success status code. - /// The response returned from the service. - /// - public virtual Response DeleteTrainedModel(string projectName, string trainedModelLabel, RequestContext context = null) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(trainedModelLabel, nameof(trainedModelLabel)); - - using var scope = ClientDiagnostics.CreateScope("AnalyzeConversationAuthoring.DeleteTrainedModel"); - scope.Start(); - try - { - using HttpMessage message = CreateDeleteTrainedModelRequest(projectName, trainedModelLabel, context); - return _pipeline.ProcessMessage(message, context); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// Gets the status for an evaluation job. - /// The new project name. - /// The trained model label. - /// The job ID. - /// The cancellation token to use. - /// , or is null. - /// , or is an empty string, and was expected to be non-empty. - /// - public virtual async Task> GetEvaluationStatusAsync(string projectName, string trainedModelLabel, string jobId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(trainedModelLabel, nameof(trainedModelLabel)); - Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); - - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await GetEvaluationStatusAsync(projectName, trainedModelLabel, jobId, context).ConfigureAwait(false); - return Response.FromValue(EvaluationJobState.FromResponse(response), response); - } - - /// Gets the status for an evaluation job. - /// The new project name. - /// The trained model label. - /// The job ID. - /// The cancellation token to use. - /// , or is null. - /// , or is an empty string, and was expected to be non-empty. - /// - public virtual Response GetEvaluationStatus(string projectName, string trainedModelLabel, string jobId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(trainedModelLabel, nameof(trainedModelLabel)); - Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); - - RequestContext context = FromCancellationToken(cancellationToken); - Response response = GetEvaluationStatus(projectName, trainedModelLabel, jobId, context); - return Response.FromValue(EvaluationJobState.FromResponse(response), response); - } - - /// - /// [Protocol Method] Gets the status for an evaluation job. - /// - /// - /// - /// 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 new project name. - /// The trained model label. - /// The job ID. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// , or is null. - /// , or is an empty string, and was expected to be non-empty. - /// Service returned a non-success status code. - /// The response returned from the service. - /// - public virtual async Task GetEvaluationStatusAsync(string projectName, string trainedModelLabel, string jobId, RequestContext context) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(trainedModelLabel, nameof(trainedModelLabel)); - Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); - - using var scope = ClientDiagnostics.CreateScope("AnalyzeConversationAuthoring.GetEvaluationStatus"); - scope.Start(); - try - { - using HttpMessage message = CreateGetEvaluationStatusRequest(projectName, trainedModelLabel, jobId, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// [Protocol Method] Gets the status for an evaluation job. - /// - /// - /// - /// 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 new project name. - /// The trained model label. - /// The job ID. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// , or is null. - /// , or is an empty string, and was expected to be non-empty. - /// Service returned a non-success status code. - /// The response returned from the service. - /// - public virtual Response GetEvaluationStatus(string projectName, string trainedModelLabel, string jobId, RequestContext context) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(trainedModelLabel, nameof(trainedModelLabel)); - Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); - - using var scope = ClientDiagnostics.CreateScope("AnalyzeConversationAuthoring.GetEvaluationStatus"); - scope.Start(); - try - { - using HttpMessage message = CreateGetEvaluationStatusRequest(projectName, trainedModelLabel, jobId, context); - return _pipeline.ProcessMessage(message, context); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// Gets the evaluation summary of a trained model. The summary includes high level performance measurements of the model e.g., F1, Precision, Recall, etc. - /// The name of the project to use. - /// The trained model label. - /// The cancellation token to use. - /// or is null. - /// or is an empty string, and was expected to be non-empty. - /// - public virtual async Task> GetModelEvaluationSummaryAsync(string projectName, string trainedModelLabel, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(trainedModelLabel, nameof(trainedModelLabel)); - - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await GetModelEvaluationSummaryAsync(projectName, trainedModelLabel, context).ConfigureAwait(false); - return Response.FromValue(EvaluationSummary.FromResponse(response), response); - } - - /// Gets the evaluation summary of a trained model. The summary includes high level performance measurements of the model e.g., F1, Precision, Recall, etc. - /// The name of the project to use. - /// The trained model label. - /// The cancellation token to use. - /// or is null. - /// or is an empty string, and was expected to be non-empty. - /// - public virtual Response GetModelEvaluationSummary(string projectName, string trainedModelLabel, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(trainedModelLabel, nameof(trainedModelLabel)); - - RequestContext context = FromCancellationToken(cancellationToken); - Response response = GetModelEvaluationSummary(projectName, trainedModelLabel, context); - return Response.FromValue(EvaluationSummary.FromResponse(response), response); - } - - /// - /// [Protocol Method] Gets the evaluation summary of a trained model. The summary includes high level performance measurements of the model e.g., F1, Precision, Recall, etc. - /// - /// - /// - /// 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 project to use. - /// The trained model label. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// or is null. - /// or is an empty string, and was expected to be non-empty. - /// Service returned a non-success status code. - /// The response returned from the service. - /// - public virtual async Task GetModelEvaluationSummaryAsync(string projectName, string trainedModelLabel, RequestContext context) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(trainedModelLabel, nameof(trainedModelLabel)); - - using var scope = ClientDiagnostics.CreateScope("AnalyzeConversationAuthoring.GetModelEvaluationSummary"); - scope.Start(); - try - { - using HttpMessage message = CreateGetModelEvaluationSummaryRequest(projectName, trainedModelLabel, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// [Protocol Method] Gets the evaluation summary of a trained model. The summary includes high level performance measurements of the model e.g., F1, Precision, Recall, etc. - /// - /// - /// - /// 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 project to use. - /// The trained model label. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// or is null. - /// or is an empty string, and was expected to be non-empty. - /// Service returned a non-success status code. - /// The response returned from the service. - /// - public virtual Response GetModelEvaluationSummary(string projectName, string trainedModelLabel, RequestContext context) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(trainedModelLabel, nameof(trainedModelLabel)); - - using var scope = ClientDiagnostics.CreateScope("AnalyzeConversationAuthoring.GetModelEvaluationSummary"); - scope.Start(); - try - { - using HttpMessage message = CreateGetModelEvaluationSummaryRequest(projectName, trainedModelLabel, context); - return _pipeline.ProcessMessage(message, context); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// Gets the status for loading a snapshot. - /// The new project name. - /// The trained model label. - /// The job ID. - /// The cancellation token to use. - /// , or is null. - /// , or is an empty string, and was expected to be non-empty. - /// - public virtual async Task> GetLoadSnapshotStatusAsync(string projectName, string trainedModelLabel, string jobId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(trainedModelLabel, nameof(trainedModelLabel)); - Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); - - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await GetLoadSnapshotStatusAsync(projectName, trainedModelLabel, jobId, context).ConfigureAwait(false); - return Response.FromValue(LoadSnapshotJobState.FromResponse(response), response); - } - - /// Gets the status for loading a snapshot. - /// The new project name. - /// The trained model label. - /// The job ID. - /// The cancellation token to use. - /// , or is null. - /// , or is an empty string, and was expected to be non-empty. - /// - public virtual Response GetLoadSnapshotStatus(string projectName, string trainedModelLabel, string jobId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(trainedModelLabel, nameof(trainedModelLabel)); - Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); - - RequestContext context = FromCancellationToken(cancellationToken); - Response response = GetLoadSnapshotStatus(projectName, trainedModelLabel, jobId, context); - return Response.FromValue(LoadSnapshotJobState.FromResponse(response), response); - } - - /// - /// [Protocol Method] Gets the status for loading a snapshot. - /// - /// - /// - /// 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 new project name. - /// The trained model label. - /// The job ID. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// , or is null. - /// , or is an empty string, and was expected to be non-empty. - /// Service returned a non-success status code. - /// The response returned from the service. - /// - public virtual async Task GetLoadSnapshotStatusAsync(string projectName, string trainedModelLabel, string jobId, RequestContext context) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(trainedModelLabel, nameof(trainedModelLabel)); - Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); - - using var scope = ClientDiagnostics.CreateScope("AnalyzeConversationAuthoring.GetLoadSnapshotStatus"); - scope.Start(); - try - { - using HttpMessage message = CreateGetLoadSnapshotStatusRequest(projectName, trainedModelLabel, jobId, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// [Protocol Method] Gets the status for loading a snapshot. - /// - /// - /// - /// 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 new project name. - /// The trained model label. - /// The job ID. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// , or is null. - /// , or is an empty string, and was expected to be non-empty. - /// Service returned a non-success status code. - /// The response returned from the service. - /// - public virtual Response GetLoadSnapshotStatus(string projectName, string trainedModelLabel, string jobId, RequestContext context) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(trainedModelLabel, nameof(trainedModelLabel)); - Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); - - using var scope = ClientDiagnostics.CreateScope("AnalyzeConversationAuthoring.GetLoadSnapshotStatus"); - scope.Start(); - try - { - using HttpMessage message = CreateGetLoadSnapshotStatusRequest(projectName, trainedModelLabel, jobId, context); - return _pipeline.ProcessMessage(message, context); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// Gets the status of an existing assign deployment resources job. - /// The new project name. - /// The job ID. - /// The cancellation token to use. - /// or is null. - /// or is an empty string, and was expected to be non-empty. - /// - public virtual async Task> GetAssignDeploymentResourcesStatusAsync(string projectName, string jobId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); - - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await GetAssignDeploymentResourcesStatusAsync(projectName, jobId, context).ConfigureAwait(false); - return Response.FromValue(DeploymentResourcesJobState.FromResponse(response), response); - } - - /// Gets the status of an existing assign deployment resources job. - /// The new project name. - /// The job ID. - /// The cancellation token to use. - /// or is null. - /// or is an empty string, and was expected to be non-empty. - /// - public virtual Response GetAssignDeploymentResourcesStatus(string projectName, string jobId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); - - RequestContext context = FromCancellationToken(cancellationToken); - Response response = GetAssignDeploymentResourcesStatus(projectName, jobId, context); - return Response.FromValue(DeploymentResourcesJobState.FromResponse(response), response); - } - - /// - /// [Protocol Method] Gets the status of an existing assign deployment resources job. - /// - /// - /// - /// 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 new project name. - /// The job ID. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// or is null. - /// or is an empty string, and was expected to be non-empty. - /// Service returned a non-success status code. - /// The response returned from the service. - /// - public virtual async Task GetAssignDeploymentResourcesStatusAsync(string projectName, string jobId, RequestContext context) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); - - using var scope = ClientDiagnostics.CreateScope("AnalyzeConversationAuthoring.GetAssignDeploymentResourcesStatus"); - scope.Start(); - try - { - using HttpMessage message = CreateGetAssignDeploymentResourcesStatusRequest(projectName, jobId, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// [Protocol Method] Gets the status of an existing assign deployment resources job. - /// - /// - /// - /// 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 new project name. - /// The job ID. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// or is null. - /// or is an empty string, and was expected to be non-empty. - /// Service returned a non-success status code. - /// The response returned from the service. - /// - public virtual Response GetAssignDeploymentResourcesStatus(string projectName, string jobId, RequestContext context) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); - - using var scope = ClientDiagnostics.CreateScope("AnalyzeConversationAuthoring.GetAssignDeploymentResourcesStatus"); - scope.Start(); - try - { - using HttpMessage message = CreateGetAssignDeploymentResourcesStatusRequest(projectName, jobId, context); - return _pipeline.ProcessMessage(message, context); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// Gets the status of an existing unassign deployment resources job. - /// The name of the project to use. - /// The job ID. - /// The cancellation token to use. - /// or is null. - /// or is an empty string, and was expected to be non-empty. - /// - public virtual async Task> GetUnassignDeploymentResourcesStatusAsync(string projectName, string jobId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); - - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await GetUnassignDeploymentResourcesStatusAsync(projectName, jobId, context).ConfigureAwait(false); - return Response.FromValue(DeploymentResourcesJobState.FromResponse(response), response); - } - - /// Gets the status of an existing unassign deployment resources job. - /// The name of the project to use. - /// The job ID. - /// The cancellation token to use. - /// or is null. - /// or is an empty string, and was expected to be non-empty. - /// - public virtual Response GetUnassignDeploymentResourcesStatus(string projectName, string jobId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); - - RequestContext context = FromCancellationToken(cancellationToken); - Response response = GetUnassignDeploymentResourcesStatus(projectName, jobId, context); - return Response.FromValue(DeploymentResourcesJobState.FromResponse(response), response); - } - - /// - /// [Protocol Method] Gets the status of an existing unassign deployment resources job. - /// - /// - /// - /// 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 project to use. - /// The job ID. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// or is null. - /// or is an empty string, and was expected to be non-empty. - /// Service returned a non-success status code. - /// The response returned from the service. - /// - public virtual async Task GetUnassignDeploymentResourcesStatusAsync(string projectName, string jobId, RequestContext context) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); - - using var scope = ClientDiagnostics.CreateScope("AnalyzeConversationAuthoring.GetUnassignDeploymentResourcesStatus"); - scope.Start(); - try - { - using HttpMessage message = CreateGetUnassignDeploymentResourcesStatusRequest(projectName, jobId, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// [Protocol Method] Gets the status of an existing unassign deployment resources job. - /// - /// - /// - /// 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 project to use. - /// The job ID. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// or is null. - /// or is an empty string, and was expected to be non-empty. - /// Service returned a non-success status code. - /// The response returned from the service. - /// - public virtual Response GetUnassignDeploymentResourcesStatus(string projectName, string jobId, RequestContext context) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); - - using var scope = ClientDiagnostics.CreateScope("AnalyzeConversationAuthoring.GetUnassignDeploymentResourcesStatus"); - scope.Start(); - try - { - using HttpMessage message = CreateGetUnassignDeploymentResourcesStatusRequest(projectName, jobId, context); - return _pipeline.ProcessMessage(message, context); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// Gets the status for a training job. - /// The new project name. - /// The job ID. - /// The cancellation token to use. - /// or is null. - /// or is an empty string, and was expected to be non-empty. - /// - public virtual async Task> GetTrainingStatusAsync(string projectName, string jobId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); - - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await GetTrainingStatusAsync(projectName, jobId, context).ConfigureAwait(false); - return Response.FromValue(TrainingJobState.FromResponse(response), response); - } - - /// Gets the status for a training job. - /// The new project name. - /// The job ID. - /// The cancellation token to use. - /// or is null. - /// or is an empty string, and was expected to be non-empty. - /// - public virtual Response GetTrainingStatus(string projectName, string jobId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); - - RequestContext context = FromCancellationToken(cancellationToken); - Response response = GetTrainingStatus(projectName, jobId, context); - return Response.FromValue(TrainingJobState.FromResponse(response), response); - } - - /// - /// [Protocol Method] Gets the status for a training job. - /// - /// - /// - /// 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 new project name. - /// The job ID. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// or is null. - /// or is an empty string, and was expected to be non-empty. - /// Service returned a non-success status code. - /// The response returned from the service. - /// - public virtual async Task GetTrainingStatusAsync(string projectName, string jobId, RequestContext context) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); - - using var scope = ClientDiagnostics.CreateScope("AnalyzeConversationAuthoring.GetTrainingStatus"); - scope.Start(); - try - { - using HttpMessage message = CreateGetTrainingStatusRequest(projectName, jobId, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// [Protocol Method] Gets the status for a training job. - /// - /// - /// - /// 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 new project name. - /// The job ID. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// or is null. - /// or is an empty string, and was expected to be non-empty. - /// Service returned a non-success status code. - /// The response returned from the service. - /// - public virtual Response GetTrainingStatus(string projectName, string jobId, RequestContext context) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); - - using var scope = ClientDiagnostics.CreateScope("AnalyzeConversationAuthoring.GetTrainingStatus"); - scope.Start(); - try - { - using HttpMessage message = CreateGetTrainingStatusRequest(projectName, jobId, context); - return _pipeline.ProcessMessage(message, context); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// Gets the status for a project deletion job. - /// The job ID. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - /// - public virtual async Task> GetProjectDeletionStatusAsync(string jobId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); - - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await GetProjectDeletionStatusAsync(jobId, context).ConfigureAwait(false); - return Response.FromValue(ProjectDeletionJobState.FromResponse(response), response); - } - - /// Gets the status for a project deletion job. - /// The job ID. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - /// - public virtual Response GetProjectDeletionStatus(string jobId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); - - RequestContext context = FromCancellationToken(cancellationToken); - Response response = GetProjectDeletionStatus(jobId, context); - return Response.FromValue(ProjectDeletionJobState.FromResponse(response), response); - } - - /// - /// [Protocol Method] Gets the status for a project deletion job. - /// - /// - /// - /// 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 job ID. - /// 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 response returned from the service. - /// - public virtual async Task GetProjectDeletionStatusAsync(string jobId, RequestContext context) - { - Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); - - using var scope = ClientDiagnostics.CreateScope("AnalyzeConversationAuthoring.GetProjectDeletionStatus"); - scope.Start(); - try - { - using HttpMessage message = CreateGetProjectDeletionStatusRequest(jobId, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// [Protocol Method] Gets the status for a project deletion job. - /// - /// - /// - /// 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 job ID. - /// 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 response returned from the service. - /// - public virtual Response GetProjectDeletionStatus(string jobId, RequestContext context) - { - Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); - - using var scope = ClientDiagnostics.CreateScope("AnalyzeConversationAuthoring.GetProjectDeletionStatus"); - scope.Start(); - try - { - using HttpMessage message = CreateGetProjectDeletionStatusRequest(jobId, context); - return _pipeline.ProcessMessage(message, context); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// Lists the deployments to which an Azure resource is assigned. This doesn't return deployments belonging to projects owned by this resource. It only returns deployments belonging to projects owned by other resources. - /// The maximum number of resources to return from the collection. - /// An offset into the collection of the first resource to be returned. - /// The maximum number of resources to include in a single response. - /// The cancellation token to use. - /// - public virtual async Task> GetAssignedResourceDeploymentsAsync(int? top = null, int? skip = null, int? maxpagesize = null, CancellationToken cancellationToken = default) - { - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await GetAssignedResourceDeploymentsAsync(top, skip, maxpagesize, context).ConfigureAwait(false); - return Response.FromValue(AssignedResourceDeploymentsMetadata.FromResponse(response), response); - } - - /// Lists the deployments to which an Azure resource is assigned. This doesn't return deployments belonging to projects owned by this resource. It only returns deployments belonging to projects owned by other resources. - /// The maximum number of resources to return from the collection. - /// An offset into the collection of the first resource to be returned. - /// The maximum number of resources to include in a single response. - /// The cancellation token to use. - /// - public virtual Response GetAssignedResourceDeployments(int? top = null, int? skip = null, int? maxpagesize = null, CancellationToken cancellationToken = default) - { - RequestContext context = FromCancellationToken(cancellationToken); - Response response = GetAssignedResourceDeployments(top, skip, maxpagesize, context); - return Response.FromValue(AssignedResourceDeploymentsMetadata.FromResponse(response), response); - } - - /// - /// [Protocol Method] Lists the deployments to which an Azure resource is assigned. This doesn't return deployments belonging to projects owned by this resource. It only returns deployments belonging to projects owned by other resources. - /// - /// - /// - /// 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 maximum number of resources to return from the collection. - /// An offset into the collection of the first resource to be returned. - /// The maximum number of resources to include in a single response. - /// 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 response returned from the service. - /// - public virtual async Task GetAssignedResourceDeploymentsAsync(int? top, int? skip, int? maxpagesize, RequestContext context) - { - using var scope = ClientDiagnostics.CreateScope("AnalyzeConversationAuthoring.GetAssignedResourceDeployments"); - scope.Start(); - try - { - using HttpMessage message = CreateGetAssignedResourceDeploymentsRequest(top, skip, maxpagesize, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// [Protocol Method] Lists the deployments to which an Azure resource is assigned. This doesn't return deployments belonging to projects owned by this resource. It only returns deployments belonging to projects owned by other resources. - /// - /// - /// - /// 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 maximum number of resources to return from the collection. - /// An offset into the collection of the first resource to be returned. - /// The maximum number of resources to include in a single response. - /// 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 response returned from the service. - /// - public virtual Response GetAssignedResourceDeployments(int? top, int? skip, int? maxpagesize, RequestContext context) - { - using var scope = ClientDiagnostics.CreateScope("AnalyzeConversationAuthoring.GetAssignedResourceDeployments"); - scope.Start(); - try - { - using HttpMessage message = CreateGetAssignedResourceDeploymentsRequest(top, skip, maxpagesize, context); - return _pipeline.ProcessMessage(message, context); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// Lists the supported languages for the given project type. - /// The project kind. - /// The maximum number of resources to return from the collection. - /// An offset into the collection of the first resource to be returned. - /// The maximum number of resources to include in a single response. - /// The cancellation token to use. - /// - public virtual async Task> GetSupportedLanguagesAsync(ProjectKind projectKind, int? top = null, int? skip = null, int? maxpagesize = null, CancellationToken cancellationToken = default) - { - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await GetSupportedLanguagesAsync(projectKind.ToString(), top, skip, maxpagesize, context).ConfigureAwait(false); - return Response.FromValue(SupportedLanguages.FromResponse(response), response); - } - - /// Lists the supported languages for the given project type. - /// The project kind. - /// The maximum number of resources to return from the collection. - /// An offset into the collection of the first resource to be returned. - /// The maximum number of resources to include in a single response. - /// The cancellation token to use. - /// - public virtual Response GetSupportedLanguages(ProjectKind projectKind, int? top = null, int? skip = null, int? maxpagesize = null, CancellationToken cancellationToken = default) - { - RequestContext context = FromCancellationToken(cancellationToken); - Response response = GetSupportedLanguages(projectKind.ToString(), top, skip, maxpagesize, context); - return Response.FromValue(SupportedLanguages.FromResponse(response), response); - } - - /// - /// [Protocol Method] Lists the supported languages for the given project type. - /// - /// - /// - /// 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 project kind. Allowed values: "Conversation" | "Orchestration" | "CustomConversationSummarization". - /// The maximum number of resources to return from the collection. - /// An offset into the collection of the first resource to be returned. - /// The maximum number of resources to include in a single response. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// is null. - /// Service returned a non-success status code. - /// The response returned from the service. - /// - public virtual async Task GetSupportedLanguagesAsync(string projectKind, int? top = null, int? skip = null, int? maxpagesize = null, RequestContext context = null) - { - Argument.AssertNotNull(projectKind, nameof(projectKind)); - - using var scope = ClientDiagnostics.CreateScope("AnalyzeConversationAuthoring.GetSupportedLanguages"); - scope.Start(); - try - { - using HttpMessage message = CreateGetSupportedLanguagesRequest(projectKind, top, skip, maxpagesize, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// [Protocol Method] Lists the supported languages for the given project type. - /// - /// - /// - /// 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 project kind. Allowed values: "Conversation" | "Orchestration" | "CustomConversationSummarization". - /// The maximum number of resources to return from the collection. - /// An offset into the collection of the first resource to be returned. - /// The maximum number of resources to include in a single response. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// is null. - /// Service returned a non-success status code. - /// The response returned from the service. - /// - public virtual Response GetSupportedLanguages(string projectKind, int? top = null, int? skip = null, int? maxpagesize = null, RequestContext context = null) - { - Argument.AssertNotNull(projectKind, nameof(projectKind)); - - using var scope = ClientDiagnostics.CreateScope("AnalyzeConversationAuthoring.GetSupportedLanguages"); - scope.Start(); - try - { - using HttpMessage message = CreateGetSupportedLanguagesRequest(projectKind, top, skip, maxpagesize, context); - return _pipeline.ProcessMessage(message, context); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// Lists the supported prebuilt entities that can be used while creating composed entities. - /// The language to get supported prebuilt entities for. Required if multilingual is false. This is BCP-47 representation of a language. For example, use "en" for English, "en-gb" for English (UK), "es" for Spanish etc. - /// Whether to get the support prebuilt entities for multilingual or monolingual projects. If true, the language parameter is ignored. - /// The maximum number of resources to return from the collection. - /// An offset into the collection of the first resource to be returned. - /// The maximum number of resources to include in a single response. - /// The cancellation token to use. - /// - public virtual async Task> GetSupportedPrebuiltEntitiesAsync(string language = null, string multilingual = null, int? top = null, int? skip = null, int? maxpagesize = null, CancellationToken cancellationToken = default) - { - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await GetSupportedPrebuiltEntitiesAsync(language, multilingual, top, skip, maxpagesize, context).ConfigureAwait(false); - return Response.FromValue(PrebuiltEntities.FromResponse(response), response); - } - - /// Lists the supported prebuilt entities that can be used while creating composed entities. - /// The language to get supported prebuilt entities for. Required if multilingual is false. This is BCP-47 representation of a language. For example, use "en" for English, "en-gb" for English (UK), "es" for Spanish etc. - /// Whether to get the support prebuilt entities for multilingual or monolingual projects. If true, the language parameter is ignored. - /// The maximum number of resources to return from the collection. - /// An offset into the collection of the first resource to be returned. - /// The maximum number of resources to include in a single response. - /// The cancellation token to use. - /// - public virtual Response GetSupportedPrebuiltEntities(string language = null, string multilingual = null, int? top = null, int? skip = null, int? maxpagesize = null, CancellationToken cancellationToken = default) - { - RequestContext context = FromCancellationToken(cancellationToken); - Response response = GetSupportedPrebuiltEntities(language, multilingual, top, skip, maxpagesize, context); - return Response.FromValue(PrebuiltEntities.FromResponse(response), response); - } - - /// - /// [Protocol Method] Lists the supported prebuilt entities that can be used while creating composed entities. - /// - /// - /// - /// 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 language to get supported prebuilt entities for. Required if multilingual is false. This is BCP-47 representation of a language. For example, use "en" for English, "en-gb" for English (UK), "es" for Spanish etc. - /// Whether to get the support prebuilt entities for multilingual or monolingual projects. If true, the language parameter is ignored. - /// The maximum number of resources to return from the collection. - /// An offset into the collection of the first resource to be returned. - /// The maximum number of resources to include in a single response. - /// 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 response returned from the service. - /// - public virtual async Task GetSupportedPrebuiltEntitiesAsync(string language, string multilingual, int? top, int? skip, int? maxpagesize, RequestContext context) - { - using var scope = ClientDiagnostics.CreateScope("AnalyzeConversationAuthoring.GetSupportedPrebuiltEntities"); - scope.Start(); - try - { - using HttpMessage message = CreateGetSupportedPrebuiltEntitiesRequest(language, multilingual, top, skip, maxpagesize, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// [Protocol Method] Lists the supported prebuilt entities that can be used while creating composed entities. - /// - /// - /// - /// 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 language to get supported prebuilt entities for. Required if multilingual is false. This is BCP-47 representation of a language. For example, use "en" for English, "en-gb" for English (UK), "es" for Spanish etc. - /// Whether to get the support prebuilt entities for multilingual or monolingual projects. If true, the language parameter is ignored. - /// The maximum number of resources to return from the collection. - /// An offset into the collection of the first resource to be returned. - /// The maximum number of resources to include in a single response. - /// 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 response returned from the service. - /// - public virtual Response GetSupportedPrebuiltEntities(string language, string multilingual, int? top, int? skip, int? maxpagesize, RequestContext context) - { - using var scope = ClientDiagnostics.CreateScope("AnalyzeConversationAuthoring.GetSupportedPrebuiltEntities"); - scope.Start(); - try - { - using HttpMessage message = CreateGetSupportedPrebuiltEntitiesRequest(language, multilingual, top, skip, maxpagesize, context); - return _pipeline.ProcessMessage(message, context); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// Lists the support training config version for a given project type. - /// The project kind. - /// The maximum number of resources to return from the collection. - /// An offset into the collection of the first resource to be returned. - /// The maximum number of resources to include in a single response. - /// The cancellation token to use. - /// - public virtual async Task> GetTrainingConfigVersionsAsync(ProjectKind projectKind, int? top = null, int? skip = null, int? maxpagesize = null, CancellationToken cancellationToken = default) - { - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await GetTrainingConfigVersionsAsync(projectKind.ToString(), top, skip, maxpagesize, context).ConfigureAwait(false); - return Response.FromValue(TrainingConfigVersions.FromResponse(response), response); - } - - /// Lists the support training config version for a given project type. - /// The project kind. - /// The maximum number of resources to return from the collection. - /// An offset into the collection of the first resource to be returned. - /// The maximum number of resources to include in a single response. - /// The cancellation token to use. - /// - public virtual Response GetTrainingConfigVersions(ProjectKind projectKind, int? top = null, int? skip = null, int? maxpagesize = null, CancellationToken cancellationToken = default) - { - RequestContext context = FromCancellationToken(cancellationToken); - Response response = GetTrainingConfigVersions(projectKind.ToString(), top, skip, maxpagesize, context); - return Response.FromValue(TrainingConfigVersions.FromResponse(response), response); - } - - /// - /// [Protocol Method] Lists the support training config version for a given project type. - /// - /// - /// - /// 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 project kind. Allowed values: "Conversation" | "Orchestration" | "CustomConversationSummarization". - /// The maximum number of resources to return from the collection. - /// An offset into the collection of the first resource to be returned. - /// The maximum number of resources to include in a single response. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// is null. - /// Service returned a non-success status code. - /// The response returned from the service. - /// - public virtual async Task GetTrainingConfigVersionsAsync(string projectKind, int? top = null, int? skip = null, int? maxpagesize = null, RequestContext context = null) - { - Argument.AssertNotNull(projectKind, nameof(projectKind)); - - using var scope = ClientDiagnostics.CreateScope("AnalyzeConversationAuthoring.GetTrainingConfigVersions"); - scope.Start(); - try - { - using HttpMessage message = CreateGetTrainingConfigVersionsRequest(projectKind, top, skip, maxpagesize, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// [Protocol Method] Lists the support training config version for a given project type. - /// - /// - /// - /// 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 project kind. Allowed values: "Conversation" | "Orchestration" | "CustomConversationSummarization". - /// The maximum number of resources to return from the collection. - /// An offset into the collection of the first resource to be returned. - /// The maximum number of resources to include in a single response. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// is null. - /// Service returned a non-success status code. - /// The response returned from the service. - /// - public virtual Response GetTrainingConfigVersions(string projectKind, int? top = null, int? skip = null, int? maxpagesize = null, RequestContext context = null) - { - Argument.AssertNotNull(projectKind, nameof(projectKind)); - - using var scope = ClientDiagnostics.CreateScope("AnalyzeConversationAuthoring.GetTrainingConfigVersions"); - scope.Start(); - try - { - using HttpMessage message = CreateGetTrainingConfigVersionsRequest(projectKind, top, skip, maxpagesize, context); - return _pipeline.ProcessMessage(message, context); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// Gets the details of an exported model. - /// The new project name. - /// The exported model name. - /// The cancellation token to use. - /// or is null. - /// or is an empty string, and was expected to be non-empty. - /// - public virtual async Task> GetExportedModelAsync(string projectName, string exportedModelName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(exportedModelName, nameof(exportedModelName)); - - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await GetExportedModelAsync(projectName, exportedModelName, context).ConfigureAwait(false); - return Response.FromValue(ExportedTrainedModel.FromResponse(response), response); - } - - /// Gets the details of an exported model. - /// The new project name. - /// The exported model name. - /// The cancellation token to use. - /// or is null. - /// or is an empty string, and was expected to be non-empty. - /// - public virtual Response GetExportedModel(string projectName, string exportedModelName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(exportedModelName, nameof(exportedModelName)); - - RequestContext context = FromCancellationToken(cancellationToken); - Response response = GetExportedModel(projectName, exportedModelName, context); - return Response.FromValue(ExportedTrainedModel.FromResponse(response), response); - } - - /// - /// [Protocol Method] Gets the details of an exported model. - /// - /// - /// - /// 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 new project name. - /// The exported model name. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// or is null. - /// or is an empty string, and was expected to be non-empty. - /// Service returned a non-success status code. - /// The response returned from the service. - /// - public virtual async Task GetExportedModelAsync(string projectName, string exportedModelName, RequestContext context) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(exportedModelName, nameof(exportedModelName)); - - using var scope = ClientDiagnostics.CreateScope("AnalyzeConversationAuthoring.GetExportedModel"); - scope.Start(); - try - { - using HttpMessage message = CreateGetExportedModelRequest(projectName, exportedModelName, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// [Protocol Method] Gets the details of an exported model. - /// - /// - /// - /// 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 new project name. - /// The exported model name. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// or is null. - /// or is an empty string, and was expected to be non-empty. - /// Service returned a non-success status code. - /// The response returned from the service. - /// - public virtual Response GetExportedModel(string projectName, string exportedModelName, RequestContext context) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(exportedModelName, nameof(exportedModelName)); - - using var scope = ClientDiagnostics.CreateScope("AnalyzeConversationAuthoring.GetExportedModel"); - scope.Start(); - try - { - using HttpMessage message = CreateGetExportedModelRequest(projectName, exportedModelName, context); - return _pipeline.ProcessMessage(message, context); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// Gets the status for an existing job to create or update an exported model. - /// The new project name. - /// The exported model name. - /// The job ID. - /// The cancellation token to use. - /// , or is null. - /// , or is an empty string, and was expected to be non-empty. - /// - public virtual async Task> GetExportedModelJobStatusAsync(string projectName, string exportedModelName, string jobId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(exportedModelName, nameof(exportedModelName)); - Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); - - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await GetExportedModelJobStatusAsync(projectName, exportedModelName, jobId, context).ConfigureAwait(false); - return Response.FromValue(ExportedModelJobState.FromResponse(response), response); - } - - /// Gets the status for an existing job to create or update an exported model. - /// The new project name. - /// The exported model name. - /// The job ID. - /// The cancellation token to use. - /// , or is null. - /// , or is an empty string, and was expected to be non-empty. - /// - public virtual Response GetExportedModelJobStatus(string projectName, string exportedModelName, string jobId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(exportedModelName, nameof(exportedModelName)); - Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); - - RequestContext context = FromCancellationToken(cancellationToken); - Response response = GetExportedModelJobStatus(projectName, exportedModelName, jobId, context); - return Response.FromValue(ExportedModelJobState.FromResponse(response), response); - } - - /// - /// [Protocol Method] Gets the status for an existing job to create or update an exported model. - /// - /// - /// - /// 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 new project name. - /// The exported model name. - /// The job ID. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// , or is null. - /// , or is an empty string, and was expected to be non-empty. - /// Service returned a non-success status code. - /// The response returned from the service. - /// - public virtual async Task GetExportedModelJobStatusAsync(string projectName, string exportedModelName, string jobId, RequestContext context) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(exportedModelName, nameof(exportedModelName)); - Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); - - using var scope = ClientDiagnostics.CreateScope("AnalyzeConversationAuthoring.GetExportedModelJobStatus"); - scope.Start(); - try - { - using HttpMessage message = CreateGetExportedModelJobStatusRequest(projectName, exportedModelName, jobId, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// [Protocol Method] Gets the status for an existing job to create or update an exported model. - /// - /// - /// - /// 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 new project name. - /// The exported model name. - /// The job ID. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// , or is null. - /// , or is an empty string, and was expected to be non-empty. - /// Service returned a non-success status code. - /// The response returned from the service. - /// - public virtual Response GetExportedModelJobStatus(string projectName, string exportedModelName, string jobId, RequestContext context) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(exportedModelName, nameof(exportedModelName)); - Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); - - using var scope = ClientDiagnostics.CreateScope("AnalyzeConversationAuthoring.GetExportedModelJobStatus"); - scope.Start(); - try - { - using HttpMessage message = CreateGetExportedModelJobStatusRequest(projectName, exportedModelName, jobId, context); - return _pipeline.ProcessMessage(message, context); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// Lists the existing projects. - /// 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 AsyncPageable GetProjectsAsync(int? maxCount = null, int? skip = null, int? maxpagesize = null, CancellationToken cancellationToken = default) - { - RequestContext context = cancellationToken.CanBeCanceled ? new RequestContext { CancellationToken = cancellationToken } : null; - HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetProjectsRequest(maxCount, skip, pageSizeHint, context); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetProjectsNextPageRequest(nextLink, maxCount, skip, pageSizeHint, context); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => ProjectMetadata.DeserializeProjectMetadata(e), ClientDiagnostics, _pipeline, "AnalyzeConversationAuthoring.GetProjects", "value", "nextLink", maxpagesize, context); - } - - /// Lists the existing projects. - /// 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 Pageable GetProjects(int? maxCount = null, int? skip = null, int? maxpagesize = null, CancellationToken cancellationToken = default) - { - RequestContext context = cancellationToken.CanBeCanceled ? new RequestContext { CancellationToken = cancellationToken } : null; - HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetProjectsRequest(maxCount, skip, pageSizeHint, context); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetProjectsNextPageRequest(nextLink, maxCount, skip, pageSizeHint, context); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => ProjectMetadata.DeserializeProjectMetadata(e), ClientDiagnostics, _pipeline, "AnalyzeConversationAuthoring.GetProjects", "value", "nextLink", maxpagesize, context); - } - - /// - /// [Protocol Method] Lists the existing projects. - /// - /// - /// - /// 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 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 AsyncPageable GetProjectsAsync(int? maxCount, int? skip, int? maxpagesize, RequestContext context) - { - HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetProjectsRequest(maxCount, skip, pageSizeHint, context); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetProjectsNextPageRequest(nextLink, maxCount, skip, pageSizeHint, context); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => BinaryData.FromString(e.GetRawText()), ClientDiagnostics, _pipeline, "AnalyzeConversationAuthoring.GetProjects", "value", "nextLink", maxpagesize, context); - } - - /// - /// [Protocol Method] Lists the existing projects. - /// - /// - /// - /// 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 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 Pageable GetProjects(int? maxCount, int? skip, int? maxpagesize, RequestContext context) - { - HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetProjectsRequest(maxCount, skip, pageSizeHint, context); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetProjectsNextPageRequest(nextLink, maxCount, skip, pageSizeHint, context); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => BinaryData.FromString(e.GetRawText()), ClientDiagnostics, _pipeline, "AnalyzeConversationAuthoring.GetProjects", "value", "nextLink", maxpagesize, context); - } - - /// Lists the deployments belonging to a project. - /// The new project name. - /// 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. - /// is null. - /// is an empty string, and was expected to be non-empty. - /// - public virtual AsyncPageable GetDeploymentsAsync(string projectName, int? maxCount = null, int? skip = null, int? maxpagesize = null, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - - RequestContext context = cancellationToken.CanBeCanceled ? new RequestContext { CancellationToken = cancellationToken } : null; - HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetDeploymentsRequest(projectName, maxCount, skip, pageSizeHint, context); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetDeploymentsNextPageRequest(nextLink, projectName, maxCount, skip, pageSizeHint, context); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => ProjectDeployment.DeserializeProjectDeployment(e), ClientDiagnostics, _pipeline, "AnalyzeConversationAuthoring.GetDeployments", "value", "nextLink", maxpagesize, context); - } - - /// Lists the deployments belonging to a project. - /// The new project name. - /// 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. - /// is null. - /// is an empty string, and was expected to be non-empty. - /// - public virtual Pageable GetDeployments(string projectName, int? maxCount = null, int? skip = null, int? maxpagesize = null, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - - RequestContext context = cancellationToken.CanBeCanceled ? new RequestContext { CancellationToken = cancellationToken } : null; - HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetDeploymentsRequest(projectName, maxCount, skip, pageSizeHint, context); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetDeploymentsNextPageRequest(nextLink, projectName, maxCount, skip, pageSizeHint, context); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => ProjectDeployment.DeserializeProjectDeployment(e), ClientDiagnostics, _pipeline, "AnalyzeConversationAuthoring.GetDeployments", "value", "nextLink", maxpagesize, context); - } - - /// - /// [Protocol Method] Lists the deployments belonging to a 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. - /// - /// - /// - /// - /// The new project name. - /// 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. - /// 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 AsyncPageable GetDeploymentsAsync(string projectName, int? maxCount, int? skip, int? maxpagesize, RequestContext context) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - - HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetDeploymentsRequest(projectName, maxCount, skip, pageSizeHint, context); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetDeploymentsNextPageRequest(nextLink, projectName, maxCount, skip, pageSizeHint, context); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => BinaryData.FromString(e.GetRawText()), ClientDiagnostics, _pipeline, "AnalyzeConversationAuthoring.GetDeployments", "value", "nextLink", maxpagesize, context); - } - - /// - /// [Protocol Method] Lists the deployments belonging to a 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. - /// - /// - /// - /// - /// The new project name. - /// 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. - /// 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 Pageable GetDeployments(string projectName, int? maxCount, int? skip, int? maxpagesize, RequestContext context) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - - HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetDeploymentsRequest(projectName, maxCount, skip, pageSizeHint, context); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetDeploymentsNextPageRequest(nextLink, projectName, maxCount, skip, pageSizeHint, context); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => BinaryData.FromString(e.GetRawText()), ClientDiagnostics, _pipeline, "AnalyzeConversationAuthoring.GetDeployments", "value", "nextLink", maxpagesize, context); - } - - /// Lists the trained models belonging to a project. - /// The new project name. - /// 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. - /// is null. - /// is an empty string, and was expected to be non-empty. - /// - public virtual AsyncPageable GetTrainedModelsAsync(string projectName, int? maxCount = null, int? skip = null, int? maxpagesize = null, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - - RequestContext context = cancellationToken.CanBeCanceled ? new RequestContext { CancellationToken = cancellationToken } : null; - HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetTrainedModelsRequest(projectName, maxCount, skip, pageSizeHint, context); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetTrainedModelsNextPageRequest(nextLink, projectName, maxCount, skip, pageSizeHint, context); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => ProjectTrainedModel.DeserializeProjectTrainedModel(e), ClientDiagnostics, _pipeline, "AnalyzeConversationAuthoring.GetTrainedModels", "value", "nextLink", maxpagesize, context); - } - - /// Lists the trained models belonging to a project. - /// The new project name. - /// 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. - /// is null. - /// is an empty string, and was expected to be non-empty. - /// - public virtual Pageable GetTrainedModels(string projectName, int? maxCount = null, int? skip = null, int? maxpagesize = null, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - - RequestContext context = cancellationToken.CanBeCanceled ? new RequestContext { CancellationToken = cancellationToken } : null; - HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetTrainedModelsRequest(projectName, maxCount, skip, pageSizeHint, context); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetTrainedModelsNextPageRequest(nextLink, projectName, maxCount, skip, pageSizeHint, context); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => ProjectTrainedModel.DeserializeProjectTrainedModel(e), ClientDiagnostics, _pipeline, "AnalyzeConversationAuthoring.GetTrainedModels", "value", "nextLink", maxpagesize, context); - } - - /// - /// [Protocol Method] Lists the trained models belonging to a 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. - /// - /// - /// - /// - /// The new project name. - /// 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. - /// 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 AsyncPageable GetTrainedModelsAsync(string projectName, int? maxCount, int? skip, int? maxpagesize, RequestContext context) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - - HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetTrainedModelsRequest(projectName, maxCount, skip, pageSizeHint, context); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetTrainedModelsNextPageRequest(nextLink, projectName, maxCount, skip, pageSizeHint, context); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => BinaryData.FromString(e.GetRawText()), ClientDiagnostics, _pipeline, "AnalyzeConversationAuthoring.GetTrainedModels", "value", "nextLink", maxpagesize, context); - } - - /// - /// [Protocol Method] Lists the trained models belonging to a 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. - /// - /// - /// - /// - /// The new project name. - /// 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. - /// 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 Pageable GetTrainedModels(string projectName, int? maxCount, int? skip, int? maxpagesize, RequestContext context) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - - HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetTrainedModelsRequest(projectName, maxCount, skip, pageSizeHint, context); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetTrainedModelsNextPageRequest(nextLink, projectName, maxCount, skip, pageSizeHint, context); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => BinaryData.FromString(e.GetRawText()), ClientDiagnostics, _pipeline, "AnalyzeConversationAuthoring.GetTrainedModels", "value", "nextLink", maxpagesize, context); - } - - /// Gets the detailed results of the evaluation for a trained model. This includes the raw inference results for the data included in the evaluation process. - /// The new project name. - /// The trained model label. - /// Specifies the method used to interpret string offsets. For additional information see https://aka.ms/text-analytics-offsets. - /// 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. - /// or is null. - /// or is an empty string, and was expected to be non-empty. - /// - public virtual AsyncPageable GetModelEvaluationResultsAsync(string projectName, string trainedModelLabel, StringIndexType stringIndexType, int? maxCount = null, int? skip = null, int? maxpagesize = null, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(trainedModelLabel, nameof(trainedModelLabel)); - - RequestContext context = cancellationToken.CanBeCanceled ? new RequestContext { CancellationToken = cancellationToken } : null; - HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetModelEvaluationResultsRequest(projectName, trainedModelLabel, stringIndexType.ToString(), maxCount, skip, pageSizeHint, context); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetModelEvaluationResultsNextPageRequest(nextLink, projectName, trainedModelLabel, stringIndexType.ToString(), maxCount, skip, pageSizeHint, context); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => UtteranceEvaluationResult.DeserializeUtteranceEvaluationResult(e), ClientDiagnostics, _pipeline, "AnalyzeConversationAuthoring.GetModelEvaluationResults", "value", "nextLink", maxpagesize, context); - } - - /// Gets the detailed results of the evaluation for a trained model. This includes the raw inference results for the data included in the evaluation process. - /// The new project name. - /// The trained model label. - /// Specifies the method used to interpret string offsets. For additional information see https://aka.ms/text-analytics-offsets. - /// 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. - /// or is null. - /// or is an empty string, and was expected to be non-empty. - /// - public virtual Pageable GetModelEvaluationResults(string projectName, string trainedModelLabel, StringIndexType stringIndexType, int? maxCount = null, int? skip = null, int? maxpagesize = null, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(trainedModelLabel, nameof(trainedModelLabel)); - - RequestContext context = cancellationToken.CanBeCanceled ? new RequestContext { CancellationToken = cancellationToken } : null; - HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetModelEvaluationResultsRequest(projectName, trainedModelLabel, stringIndexType.ToString(), maxCount, skip, pageSizeHint, context); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetModelEvaluationResultsNextPageRequest(nextLink, projectName, trainedModelLabel, stringIndexType.ToString(), maxCount, skip, pageSizeHint, context); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => UtteranceEvaluationResult.DeserializeUtteranceEvaluationResult(e), ClientDiagnostics, _pipeline, "AnalyzeConversationAuthoring.GetModelEvaluationResults", "value", "nextLink", maxpagesize, context); - } - - /// - /// [Protocol Method] Gets the detailed results of the evaluation for a trained model. This includes the raw inference results for the data included in the evaluation process. - /// - /// - /// - /// 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 new project name. - /// The trained model label. - /// Specifies the method used to interpret string offsets. For additional information see https://aka.ms/text-analytics-offsets. Allowed values: "Utf16CodeUnit". - /// 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. - /// , or is null. - /// or 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 AsyncPageable GetModelEvaluationResultsAsync(string projectName, string trainedModelLabel, string stringIndexType, int? maxCount = null, int? skip = null, int? maxpagesize = null, RequestContext context = null) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(trainedModelLabel, nameof(trainedModelLabel)); - Argument.AssertNotNull(stringIndexType, nameof(stringIndexType)); - - HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetModelEvaluationResultsRequest(projectName, trainedModelLabel, stringIndexType, maxCount, skip, pageSizeHint, context); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetModelEvaluationResultsNextPageRequest(nextLink, projectName, trainedModelLabel, stringIndexType, maxCount, skip, pageSizeHint, context); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => BinaryData.FromString(e.GetRawText()), ClientDiagnostics, _pipeline, "AnalyzeConversationAuthoring.GetModelEvaluationResults", "value", "nextLink", maxpagesize, context); - } - - /// - /// [Protocol Method] Gets the detailed results of the evaluation for a trained model. This includes the raw inference results for the data included in the evaluation process. - /// - /// - /// - /// 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 new project name. - /// The trained model label. - /// Specifies the method used to interpret string offsets. For additional information see https://aka.ms/text-analytics-offsets. Allowed values: "Utf16CodeUnit". - /// 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. - /// , or is null. - /// or 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 Pageable GetModelEvaluationResults(string projectName, string trainedModelLabel, string stringIndexType, int? maxCount = null, int? skip = null, int? maxpagesize = null, RequestContext context = null) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(trainedModelLabel, nameof(trainedModelLabel)); - Argument.AssertNotNull(stringIndexType, nameof(stringIndexType)); - - HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetModelEvaluationResultsRequest(projectName, trainedModelLabel, stringIndexType, maxCount, skip, pageSizeHint, context); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetModelEvaluationResultsNextPageRequest(nextLink, projectName, trainedModelLabel, stringIndexType, maxCount, skip, pageSizeHint, context); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => BinaryData.FromString(e.GetRawText()), ClientDiagnostics, _pipeline, "AnalyzeConversationAuthoring.GetModelEvaluationResults", "value", "nextLink", maxpagesize, context); - } - - /// Lists the deployments resources assigned to the project. - /// The new project name. - /// 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. - /// is null. - /// is an empty string, and was expected to be non-empty. - /// - public virtual AsyncPageable GetDeploymentResourcesAsync(string projectName, int? maxCount = null, int? skip = null, int? maxpagesize = null, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - - RequestContext context = cancellationToken.CanBeCanceled ? new RequestContext { CancellationToken = cancellationToken } : null; - HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetDeploymentResourcesRequest(projectName, maxCount, skip, pageSizeHint, context); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetDeploymentResourcesNextPageRequest(nextLink, projectName, maxCount, skip, pageSizeHint, context); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => AssignedDeploymentResource.DeserializeAssignedDeploymentResource(e), ClientDiagnostics, _pipeline, "AnalyzeConversationAuthoring.GetDeploymentResources", "value", "nextLink", maxpagesize, context); - } - - /// Lists the deployments resources assigned to the project. - /// The new project name. - /// 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. - /// is null. - /// is an empty string, and was expected to be non-empty. - /// - public virtual Pageable GetDeploymentResources(string projectName, int? maxCount = null, int? skip = null, int? maxpagesize = null, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - - RequestContext context = cancellationToken.CanBeCanceled ? new RequestContext { CancellationToken = cancellationToken } : null; - HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetDeploymentResourcesRequest(projectName, maxCount, skip, pageSizeHint, context); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetDeploymentResourcesNextPageRequest(nextLink, projectName, maxCount, skip, pageSizeHint, context); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => AssignedDeploymentResource.DeserializeAssignedDeploymentResource(e), ClientDiagnostics, _pipeline, "AnalyzeConversationAuthoring.GetDeploymentResources", "value", "nextLink", maxpagesize, context); - } - - /// - /// [Protocol Method] Lists the deployments resources assigned to 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. - /// - /// - /// - /// - /// The new project name. - /// 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. - /// 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 AsyncPageable GetDeploymentResourcesAsync(string projectName, int? maxCount, int? skip, int? maxpagesize, RequestContext context) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - - HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetDeploymentResourcesRequest(projectName, maxCount, skip, pageSizeHint, context); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetDeploymentResourcesNextPageRequest(nextLink, projectName, maxCount, skip, pageSizeHint, context); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => BinaryData.FromString(e.GetRawText()), ClientDiagnostics, _pipeline, "AnalyzeConversationAuthoring.GetDeploymentResources", "value", "nextLink", maxpagesize, context); - } - - /// - /// [Protocol Method] Lists the deployments resources assigned to 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. - /// - /// - /// - /// - /// The new project name. - /// 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. - /// 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 Pageable GetDeploymentResources(string projectName, int? maxCount, int? skip, int? maxpagesize, RequestContext context) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - - HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetDeploymentResourcesRequest(projectName, maxCount, skip, pageSizeHint, context); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetDeploymentResourcesNextPageRequest(nextLink, projectName, maxCount, skip, pageSizeHint, context); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => BinaryData.FromString(e.GetRawText()), ClientDiagnostics, _pipeline, "AnalyzeConversationAuthoring.GetDeploymentResources", "value", "nextLink", maxpagesize, context); - } - - /// Lists the non-expired training jobs created for a project. - /// The new project name. - /// 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. - /// is null. - /// is an empty string, and was expected to be non-empty. - /// - public virtual AsyncPageable GetTrainingJobsAsync(string projectName, int? maxCount = null, int? skip = null, int? maxpagesize = null, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - - RequestContext context = cancellationToken.CanBeCanceled ? new RequestContext { CancellationToken = cancellationToken } : null; - HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetTrainingJobsRequest(projectName, maxCount, skip, pageSizeHint, context); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetTrainingJobsNextPageRequest(nextLink, projectName, maxCount, skip, pageSizeHint, context); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => TrainingJobState.DeserializeTrainingJobState(e), ClientDiagnostics, _pipeline, "AnalyzeConversationAuthoring.GetTrainingJobs", "value", "nextLink", maxpagesize, context); - } - - /// Lists the non-expired training jobs created for a project. - /// The new project name. - /// 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. - /// is null. - /// is an empty string, and was expected to be non-empty. - /// - public virtual Pageable GetTrainingJobs(string projectName, int? maxCount = null, int? skip = null, int? maxpagesize = null, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - - RequestContext context = cancellationToken.CanBeCanceled ? new RequestContext { CancellationToken = cancellationToken } : null; - HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetTrainingJobsRequest(projectName, maxCount, skip, pageSizeHint, context); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetTrainingJobsNextPageRequest(nextLink, projectName, maxCount, skip, pageSizeHint, context); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => TrainingJobState.DeserializeTrainingJobState(e), ClientDiagnostics, _pipeline, "AnalyzeConversationAuthoring.GetTrainingJobs", "value", "nextLink", maxpagesize, context); - } - - /// - /// [Protocol Method] Lists the non-expired training jobs created for a 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. - /// - /// - /// - /// - /// The new project name. - /// 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. - /// 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 AsyncPageable GetTrainingJobsAsync(string projectName, int? maxCount, int? skip, int? maxpagesize, RequestContext context) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - - HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetTrainingJobsRequest(projectName, maxCount, skip, pageSizeHint, context); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetTrainingJobsNextPageRequest(nextLink, projectName, maxCount, skip, pageSizeHint, context); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => BinaryData.FromString(e.GetRawText()), ClientDiagnostics, _pipeline, "AnalyzeConversationAuthoring.GetTrainingJobs", "value", "nextLink", maxpagesize, context); - } - - /// - /// [Protocol Method] Lists the non-expired training jobs created for a 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. - /// - /// - /// - /// - /// The new project name. - /// 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. - /// 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 Pageable GetTrainingJobs(string projectName, int? maxCount, int? skip, int? maxpagesize, RequestContext context) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - - HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetTrainingJobsRequest(projectName, maxCount, skip, pageSizeHint, context); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetTrainingJobsNextPageRequest(nextLink, projectName, maxCount, skip, pageSizeHint, context); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => BinaryData.FromString(e.GetRawText()), ClientDiagnostics, _pipeline, "AnalyzeConversationAuthoring.GetTrainingJobs", "value", "nextLink", maxpagesize, context); - } - - /// Lists the exported models belonging to a project. - /// The new project name. - /// 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. - /// is null. - /// is an empty string, and was expected to be non-empty. - /// - public virtual AsyncPageable GetExportedModelsAsync(string projectName, int? maxCount = null, int? skip = null, int? maxpagesize = null, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - - RequestContext context = cancellationToken.CanBeCanceled ? new RequestContext { CancellationToken = cancellationToken } : null; - HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetExportedModelsRequest(projectName, maxCount, skip, pageSizeHint, context); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetExportedModelsNextPageRequest(nextLink, projectName, maxCount, skip, pageSizeHint, context); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => ExportedTrainedModel.DeserializeExportedTrainedModel(e), ClientDiagnostics, _pipeline, "AnalyzeConversationAuthoring.GetExportedModels", "value", "nextLink", maxpagesize, context); - } - - /// Lists the exported models belonging to a project. - /// The new project name. - /// 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. - /// is null. - /// is an empty string, and was expected to be non-empty. - /// - public virtual Pageable GetExportedModels(string projectName, int? maxCount = null, int? skip = null, int? maxpagesize = null, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - - RequestContext context = cancellationToken.CanBeCanceled ? new RequestContext { CancellationToken = cancellationToken } : null; - HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetExportedModelsRequest(projectName, maxCount, skip, pageSizeHint, context); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetExportedModelsNextPageRequest(nextLink, projectName, maxCount, skip, pageSizeHint, context); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => ExportedTrainedModel.DeserializeExportedTrainedModel(e), ClientDiagnostics, _pipeline, "AnalyzeConversationAuthoring.GetExportedModels", "value", "nextLink", maxpagesize, context); - } - - /// - /// [Protocol Method] Lists the exported models belonging to a 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. - /// - /// - /// - /// - /// The new project name. - /// 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. - /// 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 AsyncPageable GetExportedModelsAsync(string projectName, int? maxCount, int? skip, int? maxpagesize, RequestContext context) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - - HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetExportedModelsRequest(projectName, maxCount, skip, pageSizeHint, context); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetExportedModelsNextPageRequest(nextLink, projectName, maxCount, skip, pageSizeHint, context); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => BinaryData.FromString(e.GetRawText()), ClientDiagnostics, _pipeline, "AnalyzeConversationAuthoring.GetExportedModels", "value", "nextLink", maxpagesize, context); - } - - /// - /// [Protocol Method] Lists the exported models belonging to a 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. - /// - /// - /// - /// - /// The new project name. - /// 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. - /// 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 Pageable GetExportedModels(string projectName, int? maxCount, int? skip, int? maxpagesize, RequestContext context) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - - HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetExportedModelsRequest(projectName, maxCount, skip, pageSizeHint, context); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetExportedModelsNextPageRequest(nextLink, projectName, maxCount, skip, pageSizeHint, context); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => BinaryData.FromString(e.GetRawText()), ClientDiagnostics, _pipeline, "AnalyzeConversationAuthoring.GetExportedModels", "value", "nextLink", maxpagesize, context); - } - - // The convenience method is omitted here because it has exactly the same parameter list as the corresponding protocol method - /// - /// [Protocol Method] Deletes a project. - /// - /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The name of the project to use. - /// 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 representing an asynchronous operation on the service. - /// - public virtual async Task DeleteProjectAsync(WaitUntil waitUntil, string projectName, RequestContext context = null) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - - using var scope = ClientDiagnostics.CreateScope("AnalyzeConversationAuthoring.DeleteProject"); - scope.Start(); - try - { - using HttpMessage message = CreateDeleteProjectRequest(projectName, context); - return await ProtocolOperationHelpers.ProcessMessageWithoutResponseValueAsync(_pipeline, message, ClientDiagnostics, "AnalyzeConversationAuthoring.DeleteProject", OperationFinalStateVia.OperationLocation, context, waitUntil).ConfigureAwait(false); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - // The convenience method is omitted here because it has exactly the same parameter list as the corresponding protocol method - /// - /// [Protocol Method] Deletes a project. - /// - /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The name of the project to use. - /// 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 representing an asynchronous operation on the service. - /// - public virtual Operation DeleteProject(WaitUntil waitUntil, string projectName, RequestContext context = null) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - - using var scope = ClientDiagnostics.CreateScope("AnalyzeConversationAuthoring.DeleteProject"); - scope.Start(); - try - { - using HttpMessage message = CreateDeleteProjectRequest(projectName, context); - return ProtocolOperationHelpers.ProcessMessageWithoutResponseValue(_pipeline, message, ClientDiagnostics, "AnalyzeConversationAuthoring.DeleteProject", OperationFinalStateVia.OperationLocation, context, waitUntil); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// Copies an existing project to another Azure resource. - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The name of the project to use. - /// The copy project info. - /// The cancellation token to use. - /// or is null. - /// is an empty string, and was expected to be non-empty. - /// - public virtual async Task CopyProjectAsync(WaitUntil waitUntil, string projectName, CopyProjectDetails body, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNull(body, nameof(body)); - - using RequestContent content = body.ToRequestContent(); - RequestContext context = FromCancellationToken(cancellationToken); - return await CopyProjectAsync(waitUntil, projectName, content, context).ConfigureAwait(false); - } - - /// Copies an existing project to another Azure resource. - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The name of the project to use. - /// The copy project info. - /// The cancellation token to use. - /// or is null. - /// is an empty string, and was expected to be non-empty. - /// - public virtual Operation CopyProject(WaitUntil waitUntil, string projectName, CopyProjectDetails body, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNull(body, nameof(body)); - - using RequestContent content = body.ToRequestContent(); - RequestContext context = FromCancellationToken(cancellationToken); - return CopyProject(waitUntil, projectName, content, context); - } - - /// - /// [Protocol Method] Copies an existing project to another Azure resource. - /// - /// - /// - /// 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. - /// - /// - /// - /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The name of the project to use. - /// The content to send as the body of the request. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// or is null. - /// is an empty string, and was expected to be non-empty. - /// Service returned a non-success status code. - /// The representing an asynchronous operation on the service. - /// - public virtual async Task CopyProjectAsync(WaitUntil waitUntil, string projectName, RequestContent content, RequestContext context = null) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("AnalyzeConversationAuthoring.CopyProject"); - scope.Start(); - try - { - using HttpMessage message = CreateCopyProjectRequest(projectName, content, context); - return await ProtocolOperationHelpers.ProcessMessageWithoutResponseValueAsync(_pipeline, message, ClientDiagnostics, "AnalyzeConversationAuthoring.CopyProject", OperationFinalStateVia.OperationLocation, context, waitUntil).ConfigureAwait(false); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// [Protocol Method] Copies an existing project to another Azure resource. - /// - /// - /// - /// 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. - /// - /// - /// - /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The name of the project to use. - /// The content to send as the body of the request. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// or is null. - /// is an empty string, and was expected to be non-empty. - /// Service returned a non-success status code. - /// The representing an asynchronous operation on the service. - /// - public virtual Operation CopyProject(WaitUntil waitUntil, string projectName, RequestContent content, RequestContext context = null) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("AnalyzeConversationAuthoring.CopyProject"); - scope.Start(); - try - { - using HttpMessage message = CreateCopyProjectRequest(projectName, content, context); - return ProtocolOperationHelpers.ProcessMessageWithoutResponseValue(_pipeline, message, ClientDiagnostics, "AnalyzeConversationAuthoring.CopyProject", OperationFinalStateVia.OperationLocation, context, waitUntil); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// Triggers a job to export a project's data. - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The name of the project to use. - /// Specifies the method used to interpret string offsets. For additional information see https://aka.ms/text-analytics-offsets. - /// The format of the exported project file to use. - /// Kind of asset to export. - /// Trained model label to export. If the trainedModelLabel is null, the default behavior is to export the current working copy. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - /// - public virtual async Task ExportAsync(WaitUntil waitUntil, string projectName, StringIndexType stringIndexType, ExportedProjectFormat? exportedProjectFormat = null, string assetKind = null, string trainedModelLabel = null, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - - RequestContext context = FromCancellationToken(cancellationToken); - return await ExportAsync(waitUntil, projectName, stringIndexType.ToString(), exportedProjectFormat?.ToString(), assetKind, trainedModelLabel, context).ConfigureAwait(false); - } - - /// Triggers a job to export a project's data. - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The name of the project to use. - /// Specifies the method used to interpret string offsets. For additional information see https://aka.ms/text-analytics-offsets. - /// The format of the exported project file to use. - /// Kind of asset to export. - /// Trained model label to export. If the trainedModelLabel is null, the default behavior is to export the current working copy. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - /// - public virtual Operation Export(WaitUntil waitUntil, string projectName, StringIndexType stringIndexType, ExportedProjectFormat? exportedProjectFormat = null, string assetKind = null, string trainedModelLabel = null, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - - RequestContext context = FromCancellationToken(cancellationToken); - return Export(waitUntil, projectName, stringIndexType.ToString(), exportedProjectFormat?.ToString(), assetKind, trainedModelLabel, context); - } - - /// - /// [Protocol Method] Triggers a job to export a project's data. - /// - /// - /// - /// 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. - /// - /// - /// - /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The name of the project to use. - /// Specifies the method used to interpret string offsets. For additional information see https://aka.ms/text-analytics-offsets. Allowed values: "Utf16CodeUnit". - /// The format of the exported project file to use. Allowed values: "Conversation" | "Luis". - /// Kind of asset to export. - /// Trained model label to export. If the trainedModelLabel is null, the default behavior is to export the current working copy. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// or is null. - /// is an empty string, and was expected to be non-empty. - /// Service returned a non-success status code. - /// The representing an asynchronous operation on the service. - /// - public virtual async Task ExportAsync(WaitUntil waitUntil, string projectName, string stringIndexType, string exportedProjectFormat = null, string assetKind = null, string trainedModelLabel = null, RequestContext context = null) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNull(stringIndexType, nameof(stringIndexType)); - - using var scope = ClientDiagnostics.CreateScope("AnalyzeConversationAuthoring.Export"); - scope.Start(); - try - { - using HttpMessage message = CreateExportRequest(projectName, stringIndexType, exportedProjectFormat, assetKind, trainedModelLabel, context); - return await ProtocolOperationHelpers.ProcessMessageWithoutResponseValueAsync(_pipeline, message, ClientDiagnostics, "AnalyzeConversationAuthoring.Export", OperationFinalStateVia.OperationLocation, context, waitUntil).ConfigureAwait(false); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// [Protocol Method] Triggers a job to export a project's data. - /// - /// - /// - /// 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. - /// - /// - /// - /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The name of the project to use. - /// Specifies the method used to interpret string offsets. For additional information see https://aka.ms/text-analytics-offsets. Allowed values: "Utf16CodeUnit". - /// The format of the exported project file to use. Allowed values: "Conversation" | "Luis". - /// Kind of asset to export. - /// Trained model label to export. If the trainedModelLabel is null, the default behavior is to export the current working copy. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// or is null. - /// is an empty string, and was expected to be non-empty. - /// Service returned a non-success status code. - /// The representing an asynchronous operation on the service. - /// - public virtual Operation Export(WaitUntil waitUntil, string projectName, string stringIndexType, string exportedProjectFormat = null, string assetKind = null, string trainedModelLabel = null, RequestContext context = null) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNull(stringIndexType, nameof(stringIndexType)); - - using var scope = ClientDiagnostics.CreateScope("AnalyzeConversationAuthoring.Export"); - scope.Start(); - try - { - using HttpMessage message = CreateExportRequest(projectName, stringIndexType, exportedProjectFormat, assetKind, trainedModelLabel, context); - return ProtocolOperationHelpers.ProcessMessageWithoutResponseValue(_pipeline, message, ClientDiagnostics, "AnalyzeConversationAuthoring.Export", OperationFinalStateVia.OperationLocation, context, waitUntil); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// Triggers a job to import a project. If a project with the same name already exists, the data of that project is replaced. - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The name of the project to use. - /// The project data to import. - /// The format of the exported project file to use. - /// The cancellation token to use. - /// or is null. - /// is an empty string, and was expected to be non-empty. - /// - public virtual async Task ImportAsync(WaitUntil waitUntil, string projectName, ExportedProject body, ExportedProjectFormat? exportedProjectFormat = null, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNull(body, nameof(body)); - - using RequestContent content = body.ToRequestContent(); - RequestContext context = FromCancellationToken(cancellationToken); - return await ImportAsync(waitUntil, projectName, content, exportedProjectFormat?.ToString(), context).ConfigureAwait(false); - } - - /// Triggers a job to import a project. If a project with the same name already exists, the data of that project is replaced. - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The name of the project to use. - /// The project data to import. - /// The format of the exported project file to use. - /// The cancellation token to use. - /// or is null. - /// is an empty string, and was expected to be non-empty. - /// - public virtual Operation Import(WaitUntil waitUntil, string projectName, ExportedProject body, ExportedProjectFormat? exportedProjectFormat = null, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNull(body, nameof(body)); - - using RequestContent content = body.ToRequestContent(); - RequestContext context = FromCancellationToken(cancellationToken); - return Import(waitUntil, projectName, content, exportedProjectFormat?.ToString(), context); - } - - /// - /// [Protocol Method] Triggers a job to import a project. If a project with the same name already exists, the data of that project is replaced. - /// - /// - /// - /// 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. - /// - /// - /// - /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The name of the project to use. - /// The content to send as the body of the request. - /// The format of the exported project file to use. Allowed values: "Conversation" | "Luis". - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// or is null. - /// is an empty string, and was expected to be non-empty. - /// Service returned a non-success status code. - /// The representing an asynchronous operation on the service. - /// - public virtual async Task ImportAsync(WaitUntil waitUntil, string projectName, RequestContent content, string exportedProjectFormat = null, RequestContext context = null) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("AnalyzeConversationAuthoring.Import"); - scope.Start(); - try - { - using HttpMessage message = CreateImportRequest(projectName, content, exportedProjectFormat, context); - return await ProtocolOperationHelpers.ProcessMessageWithoutResponseValueAsync(_pipeline, message, ClientDiagnostics, "AnalyzeConversationAuthoring.Import", OperationFinalStateVia.OperationLocation, context, waitUntil).ConfigureAwait(false); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// [Protocol Method] Triggers a job to import a project. If a project with the same name already exists, the data of that project is replaced. - /// - /// - /// - /// 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. - /// - /// - /// - /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The name of the project to use. - /// The content to send as the body of the request. - /// The format of the exported project file to use. Allowed values: "Conversation" | "Luis". - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// or is null. - /// is an empty string, and was expected to be non-empty. - /// Service returned a non-success status code. - /// The representing an asynchronous operation on the service. - /// - public virtual Operation Import(WaitUntil waitUntil, string projectName, RequestContent content, string exportedProjectFormat = null, RequestContext context = null) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("AnalyzeConversationAuthoring.Import"); - scope.Start(); - try - { - using HttpMessage message = CreateImportRequest(projectName, content, exportedProjectFormat, context); - return ProtocolOperationHelpers.ProcessMessageWithoutResponseValue(_pipeline, message, ClientDiagnostics, "AnalyzeConversationAuthoring.Import", OperationFinalStateVia.OperationLocation, context, waitUntil); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// Triggers a training job for a project. - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The name of the project to use. - /// The training input parameters. - /// The cancellation token to use. - /// or is null. - /// is an empty string, and was expected to be non-empty. - /// - public virtual async Task> TrainAsync(WaitUntil waitUntil, string projectName, TrainingJobDetails body, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNull(body, nameof(body)); - - using RequestContent content = body.ToRequestContent(); - RequestContext context = FromCancellationToken(cancellationToken); - Operation response = await TrainAsync(waitUntil, projectName, content, context).ConfigureAwait(false); - return ProtocolOperationHelpers.Convert(response, FetchTrainingJobResultFromTrainingJobState, ClientDiagnostics, "AnalyzeConversationAuthoring.Train"); - } - - /// Triggers a training job for a project. - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The name of the project to use. - /// The training input parameters. - /// The cancellation token to use. - /// or is null. - /// is an empty string, and was expected to be non-empty. - /// - public virtual Operation Train(WaitUntil waitUntil, string projectName, TrainingJobDetails body, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNull(body, nameof(body)); - - using RequestContent content = body.ToRequestContent(); - RequestContext context = FromCancellationToken(cancellationToken); - Operation response = Train(waitUntil, projectName, content, context); - return ProtocolOperationHelpers.Convert(response, FetchTrainingJobResultFromTrainingJobState, ClientDiagnostics, "AnalyzeConversationAuthoring.Train"); - } - - /// - /// [Protocol Method] Triggers a training job for a 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. - /// - /// - /// - /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The name of the project to use. - /// The content to send as the body of the request. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// or is null. - /// is an empty string, and was expected to be non-empty. - /// Service returned a non-success status code. - /// The representing an asynchronous operation on the service. - /// - public virtual async Task> TrainAsync(WaitUntil waitUntil, string projectName, RequestContent content, RequestContext context = null) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("AnalyzeConversationAuthoring.Train"); - scope.Start(); - try - { - using HttpMessage message = CreateTrainRequest(projectName, content, context); - return await ProtocolOperationHelpers.ProcessMessageAsync(_pipeline, message, ClientDiagnostics, "AnalyzeConversationAuthoring.Train", OperationFinalStateVia.OperationLocation, context, waitUntil).ConfigureAwait(false); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// [Protocol Method] Triggers a training job for a 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. - /// - /// - /// - /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The name of the project to use. - /// The content to send as the body of the request. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// or is null. - /// is an empty string, and was expected to be non-empty. - /// Service returned a non-success status code. - /// The representing an asynchronous operation on the service. - /// - public virtual Operation Train(WaitUntil waitUntil, string projectName, RequestContent content, RequestContext context = null) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("AnalyzeConversationAuthoring.Train"); - scope.Start(); - try - { - using HttpMessage message = CreateTrainRequest(projectName, content, context); - return ProtocolOperationHelpers.ProcessMessage(_pipeline, message, ClientDiagnostics, "AnalyzeConversationAuthoring.Train", OperationFinalStateVia.OperationLocation, context, waitUntil); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// Swaps two existing deployments with each other. - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The name of the project to use. - /// The job object to swap two deployments. - /// The cancellation token to use. - /// or is null. - /// is an empty string, and was expected to be non-empty. - /// - public virtual async Task SwapDeploymentsAsync(WaitUntil waitUntil, string projectName, SwapDeploymentsDetails body, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNull(body, nameof(body)); - - using RequestContent content = body.ToRequestContent(); - RequestContext context = FromCancellationToken(cancellationToken); - return await SwapDeploymentsAsync(waitUntil, projectName, content, context).ConfigureAwait(false); - } - - /// Swaps two existing deployments with each other. - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The name of the project to use. - /// The job object to swap two deployments. - /// The cancellation token to use. - /// or is null. - /// is an empty string, and was expected to be non-empty. - /// - public virtual Operation SwapDeployments(WaitUntil waitUntil, string projectName, SwapDeploymentsDetails body, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNull(body, nameof(body)); - - using RequestContent content = body.ToRequestContent(); - RequestContext context = FromCancellationToken(cancellationToken); - return SwapDeployments(waitUntil, projectName, content, context); - } - - /// - /// [Protocol Method] Swaps two existing deployments with each other. - /// - /// - /// - /// 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. - /// - /// - /// - /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The name of the project to use. - /// The content to send as the body of the request. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// or is null. - /// is an empty string, and was expected to be non-empty. - /// Service returned a non-success status code. - /// The representing an asynchronous operation on the service. - /// - public virtual async Task SwapDeploymentsAsync(WaitUntil waitUntil, string projectName, RequestContent content, RequestContext context = null) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("AnalyzeConversationAuthoring.SwapDeployments"); - scope.Start(); - try - { - using HttpMessage message = CreateSwapDeploymentsRequest(projectName, content, context); - return await ProtocolOperationHelpers.ProcessMessageWithoutResponseValueAsync(_pipeline, message, ClientDiagnostics, "AnalyzeConversationAuthoring.SwapDeployments", OperationFinalStateVia.OperationLocation, context, waitUntil).ConfigureAwait(false); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// [Protocol Method] Swaps two existing deployments with each other. - /// - /// - /// - /// 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. - /// - /// - /// - /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The name of the project to use. - /// The content to send as the body of the request. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// or is null. - /// is an empty string, and was expected to be non-empty. - /// Service returned a non-success status code. - /// The representing an asynchronous operation on the service. - /// - public virtual Operation SwapDeployments(WaitUntil waitUntil, string projectName, RequestContent content, RequestContext context = null) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("AnalyzeConversationAuthoring.SwapDeployments"); - scope.Start(); - try - { - using HttpMessage message = CreateSwapDeploymentsRequest(projectName, content, context); - return ProtocolOperationHelpers.ProcessMessageWithoutResponseValue(_pipeline, message, ClientDiagnostics, "AnalyzeConversationAuthoring.SwapDeployments", OperationFinalStateVia.OperationLocation, context, waitUntil); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// Creates a new deployment or replaces an existing one. - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The name of the project to use. - /// The name of the specific deployment of the project to use. - /// The new deployment info. - /// The cancellation token to use. - /// , or is null. - /// or is an empty string, and was expected to be non-empty. - /// - public virtual async Task DeployProjectAsync(WaitUntil waitUntil, string projectName, string deploymentName, CreateDeploymentDetails body, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(deploymentName, nameof(deploymentName)); - Argument.AssertNotNull(body, nameof(body)); - - using RequestContent content = body.ToRequestContent(); - RequestContext context = FromCancellationToken(cancellationToken); - return await DeployProjectAsync(waitUntil, projectName, deploymentName, content, context).ConfigureAwait(false); - } - - /// Creates a new deployment or replaces an existing one. - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The name of the project to use. - /// The name of the specific deployment of the project to use. - /// The new deployment info. - /// The cancellation token to use. - /// , or is null. - /// or is an empty string, and was expected to be non-empty. - /// - public virtual Operation DeployProject(WaitUntil waitUntil, string projectName, string deploymentName, CreateDeploymentDetails body, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(deploymentName, nameof(deploymentName)); - Argument.AssertNotNull(body, nameof(body)); - - using RequestContent content = body.ToRequestContent(); - RequestContext context = FromCancellationToken(cancellationToken); - return DeployProject(waitUntil, projectName, deploymentName, content, context); - } - - /// - /// [Protocol Method] Creates a new deployment or replaces an existing one. - /// - /// - /// - /// 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. - /// - /// - /// - /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The name of the project to use. - /// The name of the specific deployment of the project to use. - /// The content to send as the body of the request. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// , or is null. - /// or is an empty string, and was expected to be non-empty. - /// Service returned a non-success status code. - /// The representing an asynchronous operation on the service. - /// - public virtual async Task DeployProjectAsync(WaitUntil waitUntil, string projectName, string deploymentName, RequestContent content, RequestContext context = null) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(deploymentName, nameof(deploymentName)); - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("AnalyzeConversationAuthoring.DeployProject"); - scope.Start(); - try - { - using HttpMessage message = CreateDeployProjectRequest(projectName, deploymentName, content, context); - return await ProtocolOperationHelpers.ProcessMessageWithoutResponseValueAsync(_pipeline, message, ClientDiagnostics, "AnalyzeConversationAuthoring.DeployProject", OperationFinalStateVia.OperationLocation, context, waitUntil).ConfigureAwait(false); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// [Protocol Method] Creates a new deployment or replaces an existing one. - /// - /// - /// - /// 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. - /// - /// - /// - /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The name of the project to use. - /// The name of the specific deployment of the project to use. - /// The content to send as the body of the request. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// , or is null. - /// or is an empty string, and was expected to be non-empty. - /// Service returned a non-success status code. - /// The representing an asynchronous operation on the service. - /// - public virtual Operation DeployProject(WaitUntil waitUntil, string projectName, string deploymentName, RequestContent content, RequestContext context = null) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(deploymentName, nameof(deploymentName)); - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("AnalyzeConversationAuthoring.DeployProject"); - scope.Start(); - try - { - using HttpMessage message = CreateDeployProjectRequest(projectName, deploymentName, content, context); - return ProtocolOperationHelpers.ProcessMessageWithoutResponseValue(_pipeline, message, ClientDiagnostics, "AnalyzeConversationAuthoring.DeployProject", OperationFinalStateVia.OperationLocation, context, waitUntil); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - // The convenience method is omitted here because it has exactly the same parameter list as the corresponding protocol method - /// - /// [Protocol Method] Deletes a project deployment. - /// - /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The name of the project to use. - /// The name of the specific deployment of the project to use. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// or is null. - /// or is an empty string, and was expected to be non-empty. - /// Service returned a non-success status code. - /// The representing an asynchronous operation on the service. - /// - public virtual async Task DeleteDeploymentAsync(WaitUntil waitUntil, string projectName, string deploymentName, RequestContext context = null) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(deploymentName, nameof(deploymentName)); - - using var scope = ClientDiagnostics.CreateScope("AnalyzeConversationAuthoring.DeleteDeployment"); - scope.Start(); - try - { - using HttpMessage message = CreateDeleteDeploymentRequest(projectName, deploymentName, context); - return await ProtocolOperationHelpers.ProcessMessageWithoutResponseValueAsync(_pipeline, message, ClientDiagnostics, "AnalyzeConversationAuthoring.DeleteDeployment", OperationFinalStateVia.OperationLocation, context, waitUntil).ConfigureAwait(false); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - // The convenience method is omitted here because it has exactly the same parameter list as the corresponding protocol method - /// - /// [Protocol Method] Deletes a project deployment. - /// - /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The name of the project to use. - /// The name of the specific deployment of the project to use. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// or is null. - /// or is an empty string, and was expected to be non-empty. - /// Service returned a non-success status code. - /// The representing an asynchronous operation on the service. - /// - public virtual Operation DeleteDeployment(WaitUntil waitUntil, string projectName, string deploymentName, RequestContext context = null) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(deploymentName, nameof(deploymentName)); - - using var scope = ClientDiagnostics.CreateScope("AnalyzeConversationAuthoring.DeleteDeployment"); - scope.Start(); - try - { - using HttpMessage message = CreateDeleteDeploymentRequest(projectName, deploymentName, context); - return ProtocolOperationHelpers.ProcessMessageWithoutResponseValue(_pipeline, message, ClientDiagnostics, "AnalyzeConversationAuthoring.DeleteDeployment", OperationFinalStateVia.OperationLocation, context, waitUntil); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// Deletes a project deployment from the specified assigned resources. - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The name of the project to use. - /// The name of the specific deployment of the project to use. - /// The options for deleting the deployment. - /// The cancellation token to use. - /// , or is null. - /// or is an empty string, and was expected to be non-empty. - /// - public virtual async Task DeleteDeploymentFromResourcesAsync(WaitUntil waitUntil, string projectName, string deploymentName, DeleteDeploymentDetails body, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(deploymentName, nameof(deploymentName)); - Argument.AssertNotNull(body, nameof(body)); - - using RequestContent content = body.ToRequestContent(); - RequestContext context = FromCancellationToken(cancellationToken); - return await DeleteDeploymentFromResourcesAsync(waitUntil, projectName, deploymentName, content, context).ConfigureAwait(false); - } - - /// Deletes a project deployment from the specified assigned resources. - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The name of the project to use. - /// The name of the specific deployment of the project to use. - /// The options for deleting the deployment. - /// The cancellation token to use. - /// , or is null. - /// or is an empty string, and was expected to be non-empty. - /// - public virtual Operation DeleteDeploymentFromResources(WaitUntil waitUntil, string projectName, string deploymentName, DeleteDeploymentDetails body, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(deploymentName, nameof(deploymentName)); - Argument.AssertNotNull(body, nameof(body)); - - using RequestContent content = body.ToRequestContent(); - RequestContext context = FromCancellationToken(cancellationToken); - return DeleteDeploymentFromResources(waitUntil, projectName, deploymentName, content, context); - } - - /// - /// [Protocol Method] Deletes a project deployment from the specified assigned resources. - /// - /// - /// - /// 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. - /// - /// - /// - /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The name of the project to use. - /// The name of the specific deployment of the project to use. - /// The content to send as the body of the request. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// , or is null. - /// or is an empty string, and was expected to be non-empty. - /// Service returned a non-success status code. - /// The representing an asynchronous operation on the service. - /// - public virtual async Task DeleteDeploymentFromResourcesAsync(WaitUntil waitUntil, string projectName, string deploymentName, RequestContent content, RequestContext context = null) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(deploymentName, nameof(deploymentName)); - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("AnalyzeConversationAuthoring.DeleteDeploymentFromResources"); - scope.Start(); - try - { - using HttpMessage message = CreateDeleteDeploymentFromResourcesRequest(projectName, deploymentName, content, context); - return await ProtocolOperationHelpers.ProcessMessageWithoutResponseValueAsync(_pipeline, message, ClientDiagnostics, "AnalyzeConversationAuthoring.DeleteDeploymentFromResources", OperationFinalStateVia.OperationLocation, context, waitUntil).ConfigureAwait(false); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// [Protocol Method] Deletes a project deployment from the specified assigned resources. - /// - /// - /// - /// 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. - /// - /// - /// - /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The name of the project to use. - /// The name of the specific deployment of the project to use. - /// The content to send as the body of the request. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// , or is null. - /// or is an empty string, and was expected to be non-empty. - /// Service returned a non-success status code. - /// The representing an asynchronous operation on the service. - /// - public virtual Operation DeleteDeploymentFromResources(WaitUntil waitUntil, string projectName, string deploymentName, RequestContent content, RequestContext context = null) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(deploymentName, nameof(deploymentName)); - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("AnalyzeConversationAuthoring.DeleteDeploymentFromResources"); - scope.Start(); - try - { - using HttpMessage message = CreateDeleteDeploymentFromResourcesRequest(projectName, deploymentName, content, context); - return ProtocolOperationHelpers.ProcessMessageWithoutResponseValue(_pipeline, message, ClientDiagnostics, "AnalyzeConversationAuthoring.DeleteDeploymentFromResources", OperationFinalStateVia.OperationLocation, context, waitUntil); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// Triggers evaluation operation on a trained model. - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The name of the project to use. - /// The trained model label. - /// The training input parameters. - /// The cancellation token to use. - /// , or is null. - /// or is an empty string, and was expected to be non-empty. - /// - public virtual async Task> EvaluateModelAsync(WaitUntil waitUntil, string projectName, string trainedModelLabel, EvaluationDetails body, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(trainedModelLabel, nameof(trainedModelLabel)); - Argument.AssertNotNull(body, nameof(body)); - - using RequestContent content = body.ToRequestContent(); - RequestContext context = FromCancellationToken(cancellationToken); - Operation response = await EvaluateModelAsync(waitUntil, projectName, trainedModelLabel, content, context).ConfigureAwait(false); - return ProtocolOperationHelpers.Convert(response, FetchEvaluationJobResultFromEvaluationJobState, ClientDiagnostics, "AnalyzeConversationAuthoring.EvaluateModel"); - } - - /// Triggers evaluation operation on a trained model. - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The name of the project to use. - /// The trained model label. - /// The training input parameters. - /// The cancellation token to use. - /// , or is null. - /// or is an empty string, and was expected to be non-empty. - /// - public virtual Operation EvaluateModel(WaitUntil waitUntil, string projectName, string trainedModelLabel, EvaluationDetails body, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(trainedModelLabel, nameof(trainedModelLabel)); - Argument.AssertNotNull(body, nameof(body)); - - using RequestContent content = body.ToRequestContent(); - RequestContext context = FromCancellationToken(cancellationToken); - Operation response = EvaluateModel(waitUntil, projectName, trainedModelLabel, content, context); - return ProtocolOperationHelpers.Convert(response, FetchEvaluationJobResultFromEvaluationJobState, ClientDiagnostics, "AnalyzeConversationAuthoring.EvaluateModel"); - } - - /// - /// [Protocol Method] Triggers evaluation operation on a trained model. - /// - /// - /// - /// 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. - /// - /// - /// - /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The name of the project to use. - /// The trained model label. - /// The content to send as the body of the request. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// , or is null. - /// or is an empty string, and was expected to be non-empty. - /// Service returned a non-success status code. - /// The representing an asynchronous operation on the service. - /// - public virtual async Task> EvaluateModelAsync(WaitUntil waitUntil, string projectName, string trainedModelLabel, RequestContent content, RequestContext context = null) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(trainedModelLabel, nameof(trainedModelLabel)); - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("AnalyzeConversationAuthoring.EvaluateModel"); - scope.Start(); - try - { - using HttpMessage message = CreateEvaluateModelRequest(projectName, trainedModelLabel, content, context); - return await ProtocolOperationHelpers.ProcessMessageAsync(_pipeline, message, ClientDiagnostics, "AnalyzeConversationAuthoring.EvaluateModel", OperationFinalStateVia.OperationLocation, context, waitUntil).ConfigureAwait(false); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// [Protocol Method] Triggers evaluation operation on a trained model. - /// - /// - /// - /// 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. - /// - /// - /// - /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The name of the project to use. - /// The trained model label. - /// The content to send as the body of the request. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// , or is null. - /// or is an empty string, and was expected to be non-empty. - /// Service returned a non-success status code. - /// The representing an asynchronous operation on the service. - /// - public virtual Operation EvaluateModel(WaitUntil waitUntil, string projectName, string trainedModelLabel, RequestContent content, RequestContext context = null) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(trainedModelLabel, nameof(trainedModelLabel)); - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("AnalyzeConversationAuthoring.EvaluateModel"); - scope.Start(); - try - { - using HttpMessage message = CreateEvaluateModelRequest(projectName, trainedModelLabel, content, context); - return ProtocolOperationHelpers.ProcessMessage(_pipeline, message, ClientDiagnostics, "AnalyzeConversationAuthoring.EvaluateModel", OperationFinalStateVia.OperationLocation, context, waitUntil); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - // The convenience method is omitted here because it has exactly the same parameter list as the corresponding protocol method - /// - /// [Protocol Method] Restores the snapshot of this trained model to be the current working directory of the project. - /// - /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The name of the project to use. - /// The trained model label. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// or is null. - /// or is an empty string, and was expected to be non-empty. - /// Service returned a non-success status code. - /// The representing an asynchronous operation on the service. - /// - public virtual async Task LoadSnapshotAsync(WaitUntil waitUntil, string projectName, string trainedModelLabel, RequestContext context = null) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(trainedModelLabel, nameof(trainedModelLabel)); - - using var scope = ClientDiagnostics.CreateScope("AnalyzeConversationAuthoring.LoadSnapshot"); - scope.Start(); - try - { - using HttpMessage message = CreateLoadSnapshotRequest(projectName, trainedModelLabel, context); - return await ProtocolOperationHelpers.ProcessMessageWithoutResponseValueAsync(_pipeline, message, ClientDiagnostics, "AnalyzeConversationAuthoring.LoadSnapshot", OperationFinalStateVia.OperationLocation, context, waitUntil).ConfigureAwait(false); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - // The convenience method is omitted here because it has exactly the same parameter list as the corresponding protocol method - /// - /// [Protocol Method] Restores the snapshot of this trained model to be the current working directory of the project. - /// - /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The name of the project to use. - /// The trained model label. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// or is null. - /// or is an empty string, and was expected to be non-empty. - /// Service returned a non-success status code. - /// The representing an asynchronous operation on the service. - /// - public virtual Operation LoadSnapshot(WaitUntil waitUntil, string projectName, string trainedModelLabel, RequestContext context = null) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(trainedModelLabel, nameof(trainedModelLabel)); - - using var scope = ClientDiagnostics.CreateScope("AnalyzeConversationAuthoring.LoadSnapshot"); - scope.Start(); - try - { - using HttpMessage message = CreateLoadSnapshotRequest(projectName, trainedModelLabel, context); - return ProtocolOperationHelpers.ProcessMessageWithoutResponseValue(_pipeline, message, ClientDiagnostics, "AnalyzeConversationAuthoring.LoadSnapshot", OperationFinalStateVia.OperationLocation, context, waitUntil); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// Assign new Azure resources to a project to allow deploying new deployments to them. This API is available only via AAD authentication and not supported via subscription key authentication. For more details about AAD authentication, check here: https://learn.microsoft.com/en-us/azure/cognitive-services/authentication?tabs=powershell#authenticate-with-azure-active-directory. - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The name of the project to use. - /// The new project resources info. - /// The cancellation token to use. - /// or is null. - /// is an empty string, and was expected to be non-empty. - /// - public virtual async Task AssignDeploymentResourcesAsync(WaitUntil waitUntil, string projectName, AssignDeploymentResourcesDetails body, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNull(body, nameof(body)); - - using RequestContent content = body.ToRequestContent(); - RequestContext context = FromCancellationToken(cancellationToken); - return await AssignDeploymentResourcesAsync(waitUntil, projectName, content, context).ConfigureAwait(false); - } - - /// Assign new Azure resources to a project to allow deploying new deployments to them. This API is available only via AAD authentication and not supported via subscription key authentication. For more details about AAD authentication, check here: https://learn.microsoft.com/en-us/azure/cognitive-services/authentication?tabs=powershell#authenticate-with-azure-active-directory. - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The name of the project to use. - /// The new project resources info. - /// The cancellation token to use. - /// or is null. - /// is an empty string, and was expected to be non-empty. - /// - public virtual Operation AssignDeploymentResources(WaitUntil waitUntil, string projectName, AssignDeploymentResourcesDetails body, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNull(body, nameof(body)); - - using RequestContent content = body.ToRequestContent(); - RequestContext context = FromCancellationToken(cancellationToken); - return AssignDeploymentResources(waitUntil, projectName, content, context); - } - - /// - /// [Protocol Method] Assign new Azure resources to a project to allow deploying new deployments to them. This API is available only via AAD authentication and not supported via subscription key authentication. For more details about AAD authentication, check here: https://learn.microsoft.com/en-us/azure/cognitive-services/authentication?tabs=powershell#authenticate-with-azure-active-directory - /// - /// - /// - /// 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. - /// - /// - /// - /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The name of the project to use. - /// The content to send as the body of the request. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// or is null. - /// is an empty string, and was expected to be non-empty. - /// Service returned a non-success status code. - /// The representing an asynchronous operation on the service. - /// - public virtual async Task AssignDeploymentResourcesAsync(WaitUntil waitUntil, string projectName, RequestContent content, RequestContext context = null) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("AnalyzeConversationAuthoring.AssignDeploymentResources"); - scope.Start(); - try - { - using HttpMessage message = CreateAssignDeploymentResourcesRequest(projectName, content, context); - return await ProtocolOperationHelpers.ProcessMessageWithoutResponseValueAsync(_pipeline, message, ClientDiagnostics, "AnalyzeConversationAuthoring.AssignDeploymentResources", OperationFinalStateVia.OperationLocation, context, waitUntil).ConfigureAwait(false); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// [Protocol Method] Assign new Azure resources to a project to allow deploying new deployments to them. This API is available only via AAD authentication and not supported via subscription key authentication. For more details about AAD authentication, check here: https://learn.microsoft.com/en-us/azure/cognitive-services/authentication?tabs=powershell#authenticate-with-azure-active-directory - /// - /// - /// - /// 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. - /// - /// - /// - /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The name of the project to use. - /// The content to send as the body of the request. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// or is null. - /// is an empty string, and was expected to be non-empty. - /// Service returned a non-success status code. - /// The representing an asynchronous operation on the service. - /// - public virtual Operation AssignDeploymentResources(WaitUntil waitUntil, string projectName, RequestContent content, RequestContext context = null) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("AnalyzeConversationAuthoring.AssignDeploymentResources"); - scope.Start(); - try - { - using HttpMessage message = CreateAssignDeploymentResourcesRequest(projectName, content, context); - return ProtocolOperationHelpers.ProcessMessageWithoutResponseValue(_pipeline, message, ClientDiagnostics, "AnalyzeConversationAuthoring.AssignDeploymentResources", OperationFinalStateVia.OperationLocation, context, waitUntil); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// Unassign resources from a project. This disallows deploying new deployments to these resources, and deletes existing deployments assigned to them. - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The name of the project to use. - /// The info for the deployment resources to be deleted. - /// The cancellation token to use. - /// or is null. - /// is an empty string, and was expected to be non-empty. - /// - public virtual async Task UnassignDeploymentResourcesAsync(WaitUntil waitUntil, string projectName, UnassignDeploymentResourcesDetails body, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNull(body, nameof(body)); - - using RequestContent content = body.ToRequestContent(); - RequestContext context = FromCancellationToken(cancellationToken); - return await UnassignDeploymentResourcesAsync(waitUntil, projectName, content, context).ConfigureAwait(false); - } - - /// Unassign resources from a project. This disallows deploying new deployments to these resources, and deletes existing deployments assigned to them. - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The name of the project to use. - /// The info for the deployment resources to be deleted. - /// The cancellation token to use. - /// or is null. - /// is an empty string, and was expected to be non-empty. - /// - public virtual Operation UnassignDeploymentResources(WaitUntil waitUntil, string projectName, UnassignDeploymentResourcesDetails body, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNull(body, nameof(body)); - - using RequestContent content = body.ToRequestContent(); - RequestContext context = FromCancellationToken(cancellationToken); - return UnassignDeploymentResources(waitUntil, projectName, content, context); - } - - /// - /// [Protocol Method] Unassign resources from a project. This disallows deploying new deployments to these resources, and deletes existing deployments assigned to them. - /// - /// - /// - /// 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. - /// - /// - /// - /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The name of the project to use. - /// The content to send as the body of the request. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// or is null. - /// is an empty string, and was expected to be non-empty. - /// Service returned a non-success status code. - /// The representing an asynchronous operation on the service. - /// - public virtual async Task UnassignDeploymentResourcesAsync(WaitUntil waitUntil, string projectName, RequestContent content, RequestContext context = null) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("AnalyzeConversationAuthoring.UnassignDeploymentResources"); - scope.Start(); - try - { - using HttpMessage message = CreateUnassignDeploymentResourcesRequest(projectName, content, context); - return await ProtocolOperationHelpers.ProcessMessageWithoutResponseValueAsync(_pipeline, message, ClientDiagnostics, "AnalyzeConversationAuthoring.UnassignDeploymentResources", OperationFinalStateVia.OperationLocation, context, waitUntil).ConfigureAwait(false); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// [Protocol Method] Unassign resources from a project. This disallows deploying new deployments to these resources, and deletes existing deployments assigned to them. - /// - /// - /// - /// 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. - /// - /// - /// - /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The name of the project to use. - /// The content to send as the body of the request. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// or is null. - /// is an empty string, and was expected to be non-empty. - /// Service returned a non-success status code. - /// The representing an asynchronous operation on the service. - /// - public virtual Operation UnassignDeploymentResources(WaitUntil waitUntil, string projectName, RequestContent content, RequestContext context = null) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("AnalyzeConversationAuthoring.UnassignDeploymentResources"); - scope.Start(); - try - { - using HttpMessage message = CreateUnassignDeploymentResourcesRequest(projectName, content, context); - return ProtocolOperationHelpers.ProcessMessageWithoutResponseValue(_pipeline, message, ClientDiagnostics, "AnalyzeConversationAuthoring.UnassignDeploymentResources", OperationFinalStateVia.OperationLocation, context, waitUntil); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// Triggers a cancellation for a running training job. - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The name of the project to use. - /// The job ID. - /// The cancellation token to use. - /// or is null. - /// or is an empty string, and was expected to be non-empty. - /// - public virtual async Task> CancelTrainingJobAsync(WaitUntil waitUntil, string projectName, string jobId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); - - RequestContext context = FromCancellationToken(cancellationToken); - Operation response = await CancelTrainingJobAsync(waitUntil, projectName, jobId, context).ConfigureAwait(false); - return ProtocolOperationHelpers.Convert(response, FetchTrainingJobResultFromTrainingJobState, ClientDiagnostics, "AnalyzeConversationAuthoring.CancelTrainingJob"); - } - - /// Triggers a cancellation for a running training job. - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The name of the project to use. - /// The job ID. - /// The cancellation token to use. - /// or is null. - /// or is an empty string, and was expected to be non-empty. - /// - public virtual Operation CancelTrainingJob(WaitUntil waitUntil, string projectName, string jobId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); - - RequestContext context = FromCancellationToken(cancellationToken); - Operation response = CancelTrainingJob(waitUntil, projectName, jobId, context); - return ProtocolOperationHelpers.Convert(response, FetchTrainingJobResultFromTrainingJobState, ClientDiagnostics, "AnalyzeConversationAuthoring.CancelTrainingJob"); - } - - /// - /// [Protocol Method] Triggers a cancellation for a running training job. - /// - /// - /// - /// 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. - /// - /// - /// - /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The name of the project to use. - /// The job ID. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// or is null. - /// or is an empty string, and was expected to be non-empty. - /// Service returned a non-success status code. - /// The representing an asynchronous operation on the service. - /// - public virtual async Task> CancelTrainingJobAsync(WaitUntil waitUntil, string projectName, string jobId, RequestContext context) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); - - using var scope = ClientDiagnostics.CreateScope("AnalyzeConversationAuthoring.CancelTrainingJob"); - scope.Start(); - try - { - using HttpMessage message = CreateCancelTrainingJobRequest(projectName, jobId, context); - return await ProtocolOperationHelpers.ProcessMessageAsync(_pipeline, message, ClientDiagnostics, "AnalyzeConversationAuthoring.CancelTrainingJob", OperationFinalStateVia.OperationLocation, context, waitUntil).ConfigureAwait(false); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// [Protocol Method] Triggers a cancellation for a running training job. - /// - /// - /// - /// 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. - /// - /// - /// - /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The name of the project to use. - /// The job ID. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// or is null. - /// or is an empty string, and was expected to be non-empty. - /// Service returned a non-success status code. - /// The representing an asynchronous operation on the service. - /// - public virtual Operation CancelTrainingJob(WaitUntil waitUntil, string projectName, string jobId, RequestContext context) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); - - using var scope = ClientDiagnostics.CreateScope("AnalyzeConversationAuthoring.CancelTrainingJob"); - scope.Start(); - try - { - using HttpMessage message = CreateCancelTrainingJobRequest(projectName, jobId, context); - return ProtocolOperationHelpers.ProcessMessage(_pipeline, message, ClientDiagnostics, "AnalyzeConversationAuthoring.CancelTrainingJob", OperationFinalStateVia.OperationLocation, context, waitUntil); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - // The convenience method is omitted here because it has exactly the same parameter list as the corresponding protocol method - /// - /// [Protocol Method] Deletes an existing exported model. - /// - /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The name of the project to use. - /// The exported model name. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// or is null. - /// or is an empty string, and was expected to be non-empty. - /// Service returned a non-success status code. - /// The representing an asynchronous operation on the service. - /// - public virtual async Task DeleteExportedModelAsync(WaitUntil waitUntil, string projectName, string exportedModelName, RequestContext context = null) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(exportedModelName, nameof(exportedModelName)); - - using var scope = ClientDiagnostics.CreateScope("AnalyzeConversationAuthoring.DeleteExportedModel"); - scope.Start(); - try - { - using HttpMessage message = CreateDeleteExportedModelRequest(projectName, exportedModelName, context); - return await ProtocolOperationHelpers.ProcessMessageWithoutResponseValueAsync(_pipeline, message, ClientDiagnostics, "AnalyzeConversationAuthoring.DeleteExportedModel", OperationFinalStateVia.OperationLocation, context, waitUntil).ConfigureAwait(false); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - // The convenience method is omitted here because it has exactly the same parameter list as the corresponding protocol method - /// - /// [Protocol Method] Deletes an existing exported model. - /// - /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The name of the project to use. - /// The exported model name. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// or is null. - /// or is an empty string, and was expected to be non-empty. - /// Service returned a non-success status code. - /// The representing an asynchronous operation on the service. - /// - public virtual Operation DeleteExportedModel(WaitUntil waitUntil, string projectName, string exportedModelName, RequestContext context = null) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(exportedModelName, nameof(exportedModelName)); - - using var scope = ClientDiagnostics.CreateScope("AnalyzeConversationAuthoring.DeleteExportedModel"); - scope.Start(); - try - { - using HttpMessage message = CreateDeleteExportedModelRequest(projectName, exportedModelName, context); - return ProtocolOperationHelpers.ProcessMessageWithoutResponseValue(_pipeline, message, ClientDiagnostics, "AnalyzeConversationAuthoring.DeleteExportedModel", OperationFinalStateVia.OperationLocation, context, waitUntil); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// Creates a new exported model or replaces an existing one. - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The name of the project to use. - /// The exported model name. - /// The exported model info. - /// The cancellation token to use. - /// , or is null. - /// or is an empty string, and was expected to be non-empty. - /// - public virtual async Task CreateOrUpdateExportedModelAsync(WaitUntil waitUntil, string projectName, string exportedModelName, ExportedModelDetails body, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(exportedModelName, nameof(exportedModelName)); - Argument.AssertNotNull(body, nameof(body)); - - using RequestContent content = body.ToRequestContent(); - RequestContext context = FromCancellationToken(cancellationToken); - return await CreateOrUpdateExportedModelAsync(waitUntil, projectName, exportedModelName, content, context).ConfigureAwait(false); - } - - /// Creates a new exported model or replaces an existing one. - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The name of the project to use. - /// The exported model name. - /// The exported model info. - /// The cancellation token to use. - /// , or is null. - /// or is an empty string, and was expected to be non-empty. - /// - public virtual Operation CreateOrUpdateExportedModel(WaitUntil waitUntil, string projectName, string exportedModelName, ExportedModelDetails body, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(exportedModelName, nameof(exportedModelName)); - Argument.AssertNotNull(body, nameof(body)); - - using RequestContent content = body.ToRequestContent(); - RequestContext context = FromCancellationToken(cancellationToken); - return CreateOrUpdateExportedModel(waitUntil, projectName, exportedModelName, content, context); - } - - /// - /// [Protocol Method] Creates a new exported model or replaces an existing one. - /// - /// - /// - /// 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. - /// - /// - /// - /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The name of the project to use. - /// The exported model name. - /// The content to send as the body of the request. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// , or is null. - /// or is an empty string, and was expected to be non-empty. - /// Service returned a non-success status code. - /// The representing an asynchronous operation on the service. - /// - public virtual async Task CreateOrUpdateExportedModelAsync(WaitUntil waitUntil, string projectName, string exportedModelName, RequestContent content, RequestContext context = null) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(exportedModelName, nameof(exportedModelName)); - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("AnalyzeConversationAuthoring.CreateOrUpdateExportedModel"); - scope.Start(); - try - { - using HttpMessage message = CreateCreateOrUpdateExportedModelRequest(projectName, exportedModelName, content, context); - return await ProtocolOperationHelpers.ProcessMessageWithoutResponseValueAsync(_pipeline, message, ClientDiagnostics, "AnalyzeConversationAuthoring.CreateOrUpdateExportedModel", OperationFinalStateVia.OperationLocation, context, waitUntil).ConfigureAwait(false); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// [Protocol Method] Creates a new exported model or replaces an existing one. - /// - /// - /// - /// 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. - /// - /// - /// - /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The name of the project to use. - /// The exported model name. - /// The content to send as the body of the request. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// , or is null. - /// or is an empty string, and was expected to be non-empty. - /// Service returned a non-success status code. - /// The representing an asynchronous operation on the service. - /// - public virtual Operation CreateOrUpdateExportedModel(WaitUntil waitUntil, string projectName, string exportedModelName, RequestContent content, RequestContext context = null) - { - Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - Argument.AssertNotNullOrEmpty(exportedModelName, nameof(exportedModelName)); - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("AnalyzeConversationAuthoring.CreateOrUpdateExportedModel"); - scope.Start(); - try - { - using HttpMessage message = CreateCreateOrUpdateExportedModelRequest(projectName, exportedModelName, content, context); - return ProtocolOperationHelpers.ProcessMessageWithoutResponseValue(_pipeline, message, ClientDiagnostics, "AnalyzeConversationAuthoring.CreateOrUpdateExportedModel", OperationFinalStateVia.OperationLocation, context, waitUntil); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - internal HttpMessage CreateGetProjectsRequest(int? maxCount, int? skip, int? maxpagesize, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/language", false); - uri.AppendPath("/authoring/analyze-conversations/projects", false); - uri.AppendQuery("api-version", _apiVersion, 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 CreateGetProjectRequest(string projectName, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/language", false); - uri.AppendPath("/authoring/analyze-conversations/projects/", false); - uri.AppendPath(projectName, true); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateCreateProjectRequest(string projectName, RequestContent content, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200201); - var request = message.Request; - request.Method = RequestMethod.Patch; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/language", false); - uri.AppendPath("/authoring/analyze-conversations/projects/", false); - uri.AppendPath(projectName, true); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - request.Headers.Add("Content-Type", "application/merge-patch+json"); - request.Content = content; - return message; - } - - internal HttpMessage CreateDeleteProjectRequest(string projectName, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier202); - var request = message.Request; - request.Method = RequestMethod.Delete; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/language", false); - uri.AppendPath("/authoring/analyze-conversations/projects/", false); - uri.AppendPath(projectName, true); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateCopyProjectAuthorizationRequest(string projectName, RequestContent content, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Post; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/language", false); - uri.AppendPath("/authoring/analyze-conversations/projects/", false); - uri.AppendPath(projectName, true); - uri.AppendPath("/:authorize-copy", 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 CreateCopyProjectRequest(string projectName, RequestContent content, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier202); - var request = message.Request; - request.Method = RequestMethod.Post; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/language", false); - uri.AppendPath("/authoring/analyze-conversations/projects/", false); - uri.AppendPath(projectName, true); - uri.AppendPath("/:copy", 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 CreateExportRequest(string projectName, string stringIndexType, string exportedProjectFormat, string assetKind, string trainedModelLabel, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier202); - var request = message.Request; - request.Method = RequestMethod.Post; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/language", false); - uri.AppendPath("/authoring/analyze-conversations/projects/", false); - uri.AppendPath(projectName, true); - uri.AppendPath("/:export", false); - uri.AppendQuery("stringIndexType", stringIndexType, true); - uri.AppendQuery("api-version", _apiVersion, true); - if (exportedProjectFormat != null) - { - uri.AppendQuery("format", exportedProjectFormat, true); - } - if (assetKind != null) - { - uri.AppendQuery("assetKind", assetKind, true); - } - if (trainedModelLabel != null) - { - uri.AppendQuery("trainedModelLabel", trainedModelLabel, true); - } - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateImportRequest(string projectName, RequestContent content, string exportedProjectFormat, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier202); - var request = message.Request; - request.Method = RequestMethod.Post; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/language", false); - uri.AppendPath("/authoring/analyze-conversations/projects/", false); - uri.AppendPath(projectName, true); - uri.AppendPath("/:import", false); - uri.AppendQuery("api-version", _apiVersion, true); - if (exportedProjectFormat != null) - { - uri.AppendQuery("format", exportedProjectFormat, true); - } - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - request.Headers.Add("Content-Type", "application/json"); - request.Content = content; - return message; - } - - internal HttpMessage CreateTrainRequest(string projectName, RequestContent content, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier202); - var request = message.Request; - request.Method = RequestMethod.Post; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/language", false); - uri.AppendPath("/authoring/analyze-conversations/projects/", false); - uri.AppendPath(projectName, true); - uri.AppendPath("/:train", 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 CreateGetCopyProjectStatusRequest(string projectName, string jobId, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/language", false); - uri.AppendPath("/authoring/analyze-conversations/projects/", false); - uri.AppendPath(projectName, true); - uri.AppendPath("/copy/jobs/", false); - uri.AppendPath(jobId, true); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateGetDeploymentsRequest(string projectName, int? maxCount, int? skip, int? maxpagesize, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/language", false); - uri.AppendPath("/authoring/analyze-conversations/projects/", false); - uri.AppendPath(projectName, true); - uri.AppendPath("/deployments", false); - uri.AppendQuery("api-version", _apiVersion, 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 CreateSwapDeploymentsRequest(string projectName, RequestContent content, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier202); - var request = message.Request; - request.Method = RequestMethod.Post; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/language", false); - uri.AppendPath("/authoring/analyze-conversations/projects/", false); - uri.AppendPath(projectName, true); - uri.AppendPath("/deployments/:swap", 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 CreateGetDeploymentRequest(string projectName, string deploymentName, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/language", false); - uri.AppendPath("/authoring/analyze-conversations/projects/", false); - uri.AppendPath(projectName, true); - uri.AppendPath("/deployments/", false); - uri.AppendPath(deploymentName, true); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateDeployProjectRequest(string projectName, string deploymentName, RequestContent content, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier202); - var request = message.Request; - request.Method = RequestMethod.Put; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/language", false); - uri.AppendPath("/authoring/analyze-conversations/projects/", false); - uri.AppendPath(projectName, true); - uri.AppendPath("/deployments/", false); - uri.AppendPath(deploymentName, 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 CreateDeleteDeploymentRequest(string projectName, string deploymentName, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier202); - var request = message.Request; - request.Method = RequestMethod.Delete; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/language", false); - uri.AppendPath("/authoring/analyze-conversations/projects/", false); - uri.AppendPath(projectName, true); - uri.AppendPath("/deployments/", false); - uri.AppendPath(deploymentName, true); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateDeleteDeploymentFromResourcesRequest(string projectName, string deploymentName, RequestContent content, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier202); - var request = message.Request; - request.Method = RequestMethod.Post; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/language", false); - uri.AppendPath("/authoring/analyze-conversations/projects/", false); - uri.AppendPath(projectName, true); - uri.AppendPath("/deployments/", false); - uri.AppendPath(deploymentName, true); - uri.AppendPath("/:delete-from-resources", 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 CreateGetDeploymentDeleteFromResourcesStatusRequest(string projectName, string deploymentName, string jobId, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/language", false); - uri.AppendPath("/authoring/analyze-conversations/projects/", false); - uri.AppendPath(projectName, true); - uri.AppendPath("/deployments/", false); - uri.AppendPath(deploymentName, true); - uri.AppendPath("/delete-from-resources/jobs/", false); - uri.AppendPath(jobId, true); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateGetDeploymentStatusRequest(string projectName, string deploymentName, string jobId, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/language", false); - uri.AppendPath("/authoring/analyze-conversations/projects/", false); - uri.AppendPath(projectName, true); - uri.AppendPath("/deployments/", false); - uri.AppendPath(deploymentName, true); - uri.AppendPath("/jobs/", false); - uri.AppendPath(jobId, true); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateGetSwapDeploymentsStatusRequest(string projectName, string jobId, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/language", false); - uri.AppendPath("/authoring/analyze-conversations/projects/", false); - uri.AppendPath(projectName, true); - uri.AppendPath("/deployments/swap/jobs/", false); - uri.AppendPath(jobId, true); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateGetExportStatusRequest(string projectName, string jobId, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/language", false); - uri.AppendPath("/authoring/analyze-conversations/projects/", false); - uri.AppendPath(projectName, true); - uri.AppendPath("/export/jobs/", false); - uri.AppendPath(jobId, true); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateGetImportStatusRequest(string projectName, string jobId, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/language", false); - uri.AppendPath("/authoring/analyze-conversations/projects/", false); - uri.AppendPath(projectName, true); - uri.AppendPath("/import/jobs/", false); - uri.AppendPath(jobId, true); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateGetTrainedModelsRequest(string projectName, int? maxCount, int? skip, int? maxpagesize, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/language", false); - uri.AppendPath("/authoring/analyze-conversations/projects/", false); - uri.AppendPath(projectName, true); - uri.AppendPath("/models", false); - uri.AppendQuery("api-version", _apiVersion, 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 CreateGetTrainedModelRequest(string projectName, string trainedModelLabel, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/language", false); - uri.AppendPath("/authoring/analyze-conversations/projects/", false); - uri.AppendPath(projectName, true); - uri.AppendPath("/models/", false); - uri.AppendPath(trainedModelLabel, true); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateDeleteTrainedModelRequest(string projectName, string trainedModelLabel, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier204); - var request = message.Request; - request.Method = RequestMethod.Delete; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/language", false); - uri.AppendPath("/authoring/analyze-conversations/projects/", false); - uri.AppendPath(projectName, true); - uri.AppendPath("/models/", false); - uri.AppendPath(trainedModelLabel, true); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateEvaluateModelRequest(string projectName, string trainedModelLabel, RequestContent content, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier202); - var request = message.Request; - request.Method = RequestMethod.Post; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/language", false); - uri.AppendPath("/authoring/analyze-conversations/projects/", false); - uri.AppendPath(projectName, true); - uri.AppendPath("/models/", false); - uri.AppendPath(trainedModelLabel, true); - uri.AppendPath("/:evaluate", 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 CreateLoadSnapshotRequest(string projectName, string trainedModelLabel, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier202); - var request = message.Request; - request.Method = RequestMethod.Post; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/language", false); - uri.AppendPath("/authoring/analyze-conversations/projects/", false); - uri.AppendPath(projectName, true); - uri.AppendPath("/models/", false); - uri.AppendPath(trainedModelLabel, true); - uri.AppendPath("/:load-snapshot", false); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateGetEvaluationStatusRequest(string projectName, string trainedModelLabel, string jobId, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/language", false); - uri.AppendPath("/authoring/analyze-conversations/projects/", false); - uri.AppendPath(projectName, true); - uri.AppendPath("/models/", false); - uri.AppendPath(trainedModelLabel, true); - uri.AppendPath("/evaluate/jobs/", false); - uri.AppendPath(jobId, true); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateGetModelEvaluationResultsRequest(string projectName, string trainedModelLabel, string stringIndexType, int? maxCount, int? skip, int? maxpagesize, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/language", false); - uri.AppendPath("/authoring/analyze-conversations/projects/", false); - uri.AppendPath(projectName, true); - uri.AppendPath("/models/", false); - uri.AppendPath(trainedModelLabel, true); - uri.AppendPath("/evaluation/result", false); - uri.AppendQuery("stringIndexType", stringIndexType, true); - uri.AppendQuery("api-version", _apiVersion, 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 CreateGetModelEvaluationSummaryRequest(string projectName, string trainedModelLabel, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/language", false); - uri.AppendPath("/authoring/analyze-conversations/projects/", false); - uri.AppendPath(projectName, true); - uri.AppendPath("/models/", false); - uri.AppendPath(trainedModelLabel, true); - uri.AppendPath("/evaluation/summary-result", false); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateGetLoadSnapshotStatusRequest(string projectName, string trainedModelLabel, string jobId, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/language", false); - uri.AppendPath("/authoring/analyze-conversations/projects/", false); - uri.AppendPath(projectName, true); - uri.AppendPath("/models/", false); - uri.AppendPath(trainedModelLabel, true); - uri.AppendPath("/load-snapshot/jobs/", false); - uri.AppendPath(jobId, true); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateGetDeploymentResourcesRequest(string projectName, int? maxCount, int? skip, int? maxpagesize, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/language", false); - uri.AppendPath("/authoring/analyze-conversations/projects/", false); - uri.AppendPath(projectName, true); - uri.AppendPath("/resources", false); - uri.AppendQuery("api-version", _apiVersion, 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 CreateAssignDeploymentResourcesRequest(string projectName, RequestContent content, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier202); - var request = message.Request; - request.Method = RequestMethod.Post; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/language", false); - uri.AppendPath("/authoring/analyze-conversations/projects/", false); - uri.AppendPath(projectName, true); - uri.AppendPath("/resources/:assign", 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 CreateUnassignDeploymentResourcesRequest(string projectName, RequestContent content, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier202); - var request = message.Request; - request.Method = RequestMethod.Post; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/language", false); - uri.AppendPath("/authoring/analyze-conversations/projects/", false); - uri.AppendPath(projectName, true); - uri.AppendPath("/resources/:unassign", 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 CreateGetAssignDeploymentResourcesStatusRequest(string projectName, string jobId, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/language", false); - uri.AppendPath("/authoring/analyze-conversations/projects/", false); - uri.AppendPath(projectName, true); - uri.AppendPath("/resources/assign/jobs/", false); - uri.AppendPath(jobId, true); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateGetUnassignDeploymentResourcesStatusRequest(string projectName, string jobId, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/language", false); - uri.AppendPath("/authoring/analyze-conversations/projects/", false); - uri.AppendPath(projectName, true); - uri.AppendPath("/resources/unassign/jobs/", false); - uri.AppendPath(jobId, true); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateGetTrainingJobsRequest(string projectName, int? maxCount, int? skip, int? maxpagesize, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/language", false); - uri.AppendPath("/authoring/analyze-conversations/projects/", false); - uri.AppendPath(projectName, true); - uri.AppendPath("/train/jobs", false); - uri.AppendQuery("api-version", _apiVersion, 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 CreateGetTrainingStatusRequest(string projectName, string jobId, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/language", false); - uri.AppendPath("/authoring/analyze-conversations/projects/", false); - uri.AppendPath(projectName, true); - uri.AppendPath("/train/jobs/", false); - uri.AppendPath(jobId, true); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateCancelTrainingJobRequest(string projectName, string jobId, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier202); - var request = message.Request; - request.Method = RequestMethod.Post; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/language", false); - uri.AppendPath("/authoring/analyze-conversations/projects/", false); - uri.AppendPath(projectName, true); - uri.AppendPath("/train/jobs/", false); - uri.AppendPath(jobId, true); - uri.AppendPath("/:cancel", false); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateGetProjectDeletionStatusRequest(string jobId, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/language", false); - uri.AppendPath("/authoring/analyze-conversations/projects/global/deletion-jobs/", false); - uri.AppendPath(jobId, true); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateGetAssignedResourceDeploymentsRequest(int? top, int? skip, int? maxpagesize, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/language", false); - uri.AppendPath("/authoring/analyze-conversations/projects/global/deployments/resources", false); - uri.AppendQuery("api-version", _apiVersion, true); - if (top != null) - { - uri.AppendQuery("top", top.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 CreateGetSupportedLanguagesRequest(string projectKind, int? top, int? skip, int? maxpagesize, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/language", false); - uri.AppendPath("/authoring/analyze-conversations/projects/global/languages", false); - uri.AppendQuery("projectKind", projectKind, true); - uri.AppendQuery("api-version", _apiVersion, true); - if (top != null) - { - uri.AppendQuery("top", top.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 CreateGetSupportedPrebuiltEntitiesRequest(string language, string multilingual, int? top, int? skip, int? maxpagesize, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/language", false); - uri.AppendPath("/authoring/analyze-conversations/projects/global/prebuilt-entities", false); - uri.AppendQuery("api-version", _apiVersion, true); - if (language != null) - { - uri.AppendQuery("language", language, true); - } - if (multilingual != null) - { - uri.AppendQuery("multilingual", multilingual, true); - } - if (top != null) - { - uri.AppendQuery("top", top.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 CreateGetTrainingConfigVersionsRequest(string projectKind, int? top, int? skip, int? maxpagesize, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/language", false); - uri.AppendPath("/authoring/analyze-conversations/projects/global/training-config-versions", false); - uri.AppendQuery("projectKind", projectKind, true); - uri.AppendQuery("api-version", _apiVersion, true); - if (top != null) - { - uri.AppendQuery("top", top.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 CreateGetExportedModelRequest(string projectName, string exportedModelName, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/language", false); - uri.AppendPath("/authoring/analyze-conversations/projects/", false); - uri.AppendPath(projectName, true); - uri.AppendPath("/exported-models/", false); - uri.AppendPath(exportedModelName, true); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateGetExportedModelsRequest(string projectName, int? maxCount, int? skip, int? maxpagesize, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/language", false); - uri.AppendPath("/authoring/analyze-conversations/projects/", false); - uri.AppendPath(projectName, true); - uri.AppendPath("/exported-models", false); - uri.AppendQuery("api-version", _apiVersion, 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 CreateDeleteExportedModelRequest(string projectName, string exportedModelName, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier202); - var request = message.Request; - request.Method = RequestMethod.Delete; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/language", false); - uri.AppendPath("/authoring/analyze-conversations/projects/", false); - uri.AppendPath(projectName, true); - uri.AppendPath("/exported-models/", false); - uri.AppendPath(exportedModelName, true); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateCreateOrUpdateExportedModelRequest(string projectName, string exportedModelName, RequestContent content, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier202); - var request = message.Request; - request.Method = RequestMethod.Put; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/language", false); - uri.AppendPath("/authoring/analyze-conversations/projects/", false); - uri.AppendPath(projectName, true); - uri.AppendPath("/exported-models/", false); - uri.AppendPath(exportedModelName, 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 CreateGetExportedModelJobStatusRequest(string projectName, string exportedModelName, string jobId, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/language", false); - uri.AppendPath("/authoring/analyze-conversations/projects/", false); - uri.AppendPath(projectName, true); - uri.AppendPath("/exported-models/", false); - uri.AppendPath(exportedModelName, true); - uri.AppendPath("/jobs/", false); - uri.AppendPath(jobId, true); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateGetProjectsNextPageRequest(string nextLink, int? maxCount, int? skip, int? maxpagesize, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/language", false); - uri.AppendRawNextLink(nextLink, false); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateGetDeploymentsNextPageRequest(string nextLink, string projectName, int? maxCount, int? skip, int? maxpagesize, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/language", false); - uri.AppendRawNextLink(nextLink, false); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateGetTrainedModelsNextPageRequest(string nextLink, string projectName, int? maxCount, int? skip, int? maxpagesize, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/language", false); - uri.AppendRawNextLink(nextLink, false); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateGetModelEvaluationResultsNextPageRequest(string nextLink, string projectName, string trainedModelLabel, string stringIndexType, int? maxCount, int? skip, int? maxpagesize, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/language", false); - uri.AppendRawNextLink(nextLink, false); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateGetDeploymentResourcesNextPageRequest(string nextLink, string projectName, int? maxCount, int? skip, int? maxpagesize, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/language", false); - uri.AppendRawNextLink(nextLink, false); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateGetTrainingJobsNextPageRequest(string nextLink, string projectName, int? maxCount, int? skip, int? maxpagesize, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/language", false); - uri.AppendRawNextLink(nextLink, false); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateGetExportedModelsNextPageRequest(string nextLink, string projectName, int? maxCount, int? skip, int? maxpagesize, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/language", false); - uri.AppendRawNextLink(nextLink, false); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; - } - - private static RequestContext DefaultRequestContext = new RequestContext(); - internal static RequestContext FromCancellationToken(CancellationToken cancellationToken = default) - { - if (!cancellationToken.CanBeCanceled) - { - return DefaultRequestContext; - } - - return new RequestContext() { CancellationToken = cancellationToken }; - } - - private static ResponseClassifier _responseClassifier200; - private static ResponseClassifier ResponseClassifier200 => _responseClassifier200 ??= new StatusCodeClassifier(stackalloc ushort[] { 200 }); - private static ResponseClassifier _responseClassifier200201; - private static ResponseClassifier ResponseClassifier200201 => _responseClassifier200201 ??= new StatusCodeClassifier(stackalloc ushort[] { 200, 201 }); - private static ResponseClassifier _responseClassifier202; - private static ResponseClassifier ResponseClassifier202 => _responseClassifier202 ??= new StatusCodeClassifier(stackalloc ushort[] { 202 }); - private static ResponseClassifier _responseClassifier204; - private static ResponseClassifier ResponseClassifier204 => _responseClassifier204 ??= new StatusCodeClassifier(stackalloc ushort[] { 204 }); - - private TrainingJobResult FetchTrainingJobResultFromTrainingJobState(Response response) - { - var resultJsonElement = JsonDocument.Parse(response.Content).RootElement.GetProperty("result"); - return TrainingJobResult.DeserializeTrainingJobResult(resultJsonElement); - } - - private EvaluationJobResult FetchEvaluationJobResultFromEvaluationJobState(Response response) - { - var resultJsonElement = JsonDocument.Parse(response.Content).RootElement.GetProperty("result"); - return EvaluationJobResult.DeserializeEvaluationJobResult(resultJsonElement); - } - } -} diff --git a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/AuthoringClient.cs b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/AuthoringClient.cs index 9b8fcdf03b962..ee8a707800582 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/AuthoringClient.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/AuthoringClient.cs @@ -6,13 +6,19 @@ #nullable disable using System; +using System.Collections.Generic; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Autorest.CSharp.Core; +using Azure.AI.Language.Conversations.Authoring.Models; using Azure.Core; using Azure.Core.Pipeline; namespace Azure.AI.Language.Conversations.Authoring { // Data plane generated client. - /// The language service API is a suite of natural language processing (NLP) skills built with best-in-class Microsoft machine learning algorithms. The API can be used to analyze unstructured text for tasks such as sentiment analysis, key phrase extraction, language detection and question answering. Further documentation can be found in <a href="https://docs.microsoft.com/en-us/azure/cognitive-services/language-service/overview">https://docs.microsoft.com/en-us/azure/cognitive-services/language-service/overview</a>. + /// The language service API is a suite of natural language processing (NLP) skills built with best-in-class Microsoft machine learning algorithms. The API can be used to analyze unstructured text for tasks such as sentiment analysis, key phrase extraction, language detection and question answering. Further documentation can be found in <a href="https://learn.microsoft.com/en-us/azure/cognitive-services/language-service/overview">https://learn.microsoft.com/en-us/azure/cognitive-services/language-service/overview</a>. public partial class AuthoringClient { private const string AuthorizationHeader = "Ocp-Apim-Subscription-Key"; @@ -21,6 +27,7 @@ public partial class AuthoringClient private readonly TokenCredential _tokenCredential; private readonly HttpPipeline _pipeline; private readonly Uri _endpoint; + private readonly string _apiVersion; /// The ClientDiagnostics is used to provide tracing support for the client library. internal ClientDiagnostics ClientDiagnostics { get; } @@ -64,6 +71,7 @@ public AuthoringClient(Uri endpoint, AzureKeyCredential credential, AuthoringCli _keyCredential = credential; _pipeline = HttpPipelineBuilder.Build(options, Array.Empty(), new HttpPipelinePolicy[] { new AzureKeyCredentialPolicy(_keyCredential, AuthorizationHeader) }, new ResponseClassifier()); _endpoint = endpoint; + _apiVersion = options.Version; } /// Initializes a new instance of AuthoringClient. @@ -81,16 +89,6577 @@ public AuthoringClient(Uri endpoint, TokenCredential credential, AuthoringClient _tokenCredential = credential; _pipeline = HttpPipelineBuilder.Build(options, Array.Empty(), new HttpPipelinePolicy[] { new BearerTokenAuthenticationPolicy(_tokenCredential, AuthorizationScopes) }, new ResponseClassifier()); _endpoint = endpoint; + _apiVersion = options.Version; } - /// Initializes a new instance of AnalyzeConversationAuthoring. - /// The API version to use for this operation. - /// is null. - public virtual AnalyzeConversationAuthoring GetAnalyzeConversationAuthoringClient(string apiVersion = "2024-11-15-preview") + /// Gets the details of a project. + /// The new project name. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + /// + public virtual async Task> GetProjectAsync(string projectName, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(apiVersion, nameof(apiVersion)); + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); - return new AnalyzeConversationAuthoring(ClientDiagnostics, _pipeline, _keyCredential, _tokenCredential, _endpoint, apiVersion); + RequestContext context = FromCancellationToken(cancellationToken); + Response response = await GetProjectAsync(projectName, context).ConfigureAwait(false); + return Response.FromValue(ProjectMetadata.FromResponse(response), response); + } + + /// Gets the details of a project. + /// The new project name. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + /// + public virtual Response GetProject(string projectName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + + RequestContext context = FromCancellationToken(cancellationToken); + Response response = GetProject(projectName, context); + return Response.FromValue(ProjectMetadata.FromResponse(response), response); + } + + /// + /// [Protocol Method] Gets the details of a 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. + /// + /// + /// + /// + /// The new project name. + /// 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 response returned from the service. + /// + public virtual async Task GetProjectAsync(string projectName, RequestContext context) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + + using var scope = ClientDiagnostics.CreateScope("AuthoringClient.GetProject"); + scope.Start(); + try + { + using HttpMessage message = CreateGetProjectRequest(projectName, context); + return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// [Protocol Method] Gets the details of a 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. + /// + /// + /// + /// + /// The new project name. + /// 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 response returned from the service. + /// + public virtual Response GetProject(string projectName, RequestContext context) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + + using var scope = ClientDiagnostics.CreateScope("AuthoringClient.GetProject"); + scope.Start(); + try + { + using HttpMessage message = CreateGetProjectRequest(projectName, context); + return _pipeline.ProcessMessage(message, context); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// [Protocol Method] Creates a new project or updates an existing one. + /// + /// + /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. + /// + /// + /// + /// + /// The new project name. + /// The content to send as the body of the request. + /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// or is null. + /// is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + /// The response returned from the service. + /// + public virtual async Task CreateProjectAsync(string projectName, RequestContent content, RequestContext context = null) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNull(content, nameof(content)); + + using var scope = ClientDiagnostics.CreateScope("AuthoringClient.CreateProject"); + scope.Start(); + try + { + using HttpMessage message = CreateCreateProjectRequest(projectName, content, context); + return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// [Protocol Method] Creates a new project or updates an existing one. + /// + /// + /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. + /// + /// + /// + /// + /// The new project name. + /// The content to send as the body of the request. + /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// or is null. + /// is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + /// The response returned from the service. + /// + public virtual Response CreateProject(string projectName, RequestContent content, RequestContext context = null) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNull(content, nameof(content)); + + using var scope = ClientDiagnostics.CreateScope("AuthoringClient.CreateProject"); + scope.Start(); + try + { + using HttpMessage message = CreateCreateProjectRequest(projectName, content, context); + return _pipeline.ProcessMessage(message, context); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Gets the status for a project deletion job. + /// The job ID. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + /// + public virtual async Task> GetProjectDeletionStatusAsync(string jobId, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); + + RequestContext context = FromCancellationToken(cancellationToken); + Response response = await GetProjectDeletionStatusAsync(jobId, context).ConfigureAwait(false); + return Response.FromValue(ProjectDeletionJobState.FromResponse(response), response); + } + + /// Gets the status for a project deletion job. + /// The job ID. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + /// + public virtual Response GetProjectDeletionStatus(string jobId, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); + + RequestContext context = FromCancellationToken(cancellationToken); + Response response = GetProjectDeletionStatus(jobId, context); + return Response.FromValue(ProjectDeletionJobState.FromResponse(response), response); + } + + /// + /// [Protocol Method] Gets the status for a project deletion job. + /// + /// + /// + /// 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 job ID. + /// 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 response returned from the service. + /// + public virtual async Task GetProjectDeletionStatusAsync(string jobId, RequestContext context) + { + Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); + + using var scope = ClientDiagnostics.CreateScope("AuthoringClient.GetProjectDeletionStatus"); + scope.Start(); + try + { + using HttpMessage message = CreateGetProjectDeletionStatusRequest(jobId, context); + return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// [Protocol Method] Gets the status for a project deletion job. + /// + /// + /// + /// 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 job ID. + /// 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 response returned from the service. + /// + public virtual Response GetProjectDeletionStatus(string jobId, RequestContext context) + { + Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); + + using var scope = ClientDiagnostics.CreateScope("AuthoringClient.GetProjectDeletionStatus"); + scope.Start(); + try + { + using HttpMessage message = CreateGetProjectDeletionStatusRequest(jobId, context); + return _pipeline.ProcessMessage(message, context); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Generates a copy project operation authorization to the current target Azure resource. + /// The new project name. + /// Represents the project kind. + /// The name of the storage container. + /// Whether to allow an existing project to be overwritten using the resulting copy authorization. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + /// + public virtual async Task> CopyProjectAuthorizationAsync(string projectName, ProjectKind projectKind, string storageInputContainerName = null, bool? allowOverwrite = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + + CopyProjectAuthorizationRequest copyProjectAuthorizationRequest = new CopyProjectAuthorizationRequest(projectKind, storageInputContainerName, allowOverwrite, null); + RequestContext context = FromCancellationToken(cancellationToken); + Response response = await CopyProjectAuthorizationAsync(projectName, copyProjectAuthorizationRequest.ToRequestContent(), context).ConfigureAwait(false); + return Response.FromValue(CopyProjectDetails.FromResponse(response), response); + } + + /// Generates a copy project operation authorization to the current target Azure resource. + /// The new project name. + /// Represents the project kind. + /// The name of the storage container. + /// Whether to allow an existing project to be overwritten using the resulting copy authorization. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + /// + public virtual Response CopyProjectAuthorization(string projectName, ProjectKind projectKind, string storageInputContainerName = null, bool? allowOverwrite = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + + CopyProjectAuthorizationRequest copyProjectAuthorizationRequest = new CopyProjectAuthorizationRequest(projectKind, storageInputContainerName, allowOverwrite, null); + RequestContext context = FromCancellationToken(cancellationToken); + Response response = CopyProjectAuthorization(projectName, copyProjectAuthorizationRequest.ToRequestContent(), context); + return Response.FromValue(CopyProjectDetails.FromResponse(response), response); + } + + /// + /// [Protocol Method] Generates a copy project operation authorization to the current target Azure resource. + /// + /// + /// + /// 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 new project name. + /// The content to send as the body of the request. + /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// or is null. + /// is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + /// The response returned from the service. + /// + public virtual async Task CopyProjectAuthorizationAsync(string projectName, RequestContent content, RequestContext context = null) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNull(content, nameof(content)); + + using var scope = ClientDiagnostics.CreateScope("AuthoringClient.CopyProjectAuthorization"); + scope.Start(); + try + { + using HttpMessage message = CreateCopyProjectAuthorizationRequest(projectName, content, context); + return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// [Protocol Method] Generates a copy project operation authorization to the current target Azure resource. + /// + /// + /// + /// 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 new project name. + /// The content to send as the body of the request. + /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// or is null. + /// is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + /// The response returned from the service. + /// + public virtual Response CopyProjectAuthorization(string projectName, RequestContent content, RequestContext context = null) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNull(content, nameof(content)); + + using var scope = ClientDiagnostics.CreateScope("AuthoringClient.CopyProjectAuthorization"); + scope.Start(); + try + { + using HttpMessage message = CreateCopyProjectAuthorizationRequest(projectName, content, context); + return _pipeline.ProcessMessage(message, context); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Gets the status of an existing copy project job. + /// The new project name. + /// The job ID. + /// The cancellation token to use. + /// or is null. + /// or is an empty string, and was expected to be non-empty. + /// + public virtual async Task> GetCopyProjectStatusAsync(string projectName, string jobId, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); + + RequestContext context = FromCancellationToken(cancellationToken); + Response response = await GetCopyProjectStatusAsync(projectName, jobId, context).ConfigureAwait(false); + return Response.FromValue(CopyProjectJobState.FromResponse(response), response); + } + + /// Gets the status of an existing copy project job. + /// The new project name. + /// The job ID. + /// The cancellation token to use. + /// or is null. + /// or is an empty string, and was expected to be non-empty. + /// + public virtual Response GetCopyProjectStatus(string projectName, string jobId, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); + + RequestContext context = FromCancellationToken(cancellationToken); + Response response = GetCopyProjectStatus(projectName, jobId, context); + return Response.FromValue(CopyProjectJobState.FromResponse(response), response); + } + + /// + /// [Protocol Method] Gets the status of an existing copy project job. + /// + /// + /// + /// 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 new project name. + /// The job ID. + /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// or is null. + /// or is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + /// The response returned from the service. + /// + public virtual async Task GetCopyProjectStatusAsync(string projectName, string jobId, RequestContext context) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); + + using var scope = ClientDiagnostics.CreateScope("AuthoringClient.GetCopyProjectStatus"); + scope.Start(); + try + { + using HttpMessage message = CreateGetCopyProjectStatusRequest(projectName, jobId, context); + return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// [Protocol Method] Gets the status of an existing copy project job. + /// + /// + /// + /// 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 new project name. + /// The job ID. + /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// or is null. + /// or is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + /// The response returned from the service. + /// + public virtual Response GetCopyProjectStatus(string projectName, string jobId, RequestContext context) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); + + using var scope = ClientDiagnostics.CreateScope("AuthoringClient.GetCopyProjectStatus"); + scope.Start(); + try + { + using HttpMessage message = CreateGetCopyProjectStatusRequest(projectName, jobId, context); + return _pipeline.ProcessMessage(message, context); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Gets the status of an export job. Once job completes, returns the project metadata, and assets. + /// The new project name. + /// The job ID. + /// The cancellation token to use. + /// or is null. + /// or is an empty string, and was expected to be non-empty. + /// + public virtual async Task> GetExportStatusAsync(string projectName, string jobId, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); + + RequestContext context = FromCancellationToken(cancellationToken); + Response response = await GetExportStatusAsync(projectName, jobId, context).ConfigureAwait(false); + return Response.FromValue(ExportProjectJobState.FromResponse(response), response); + } + + /// Gets the status of an export job. Once job completes, returns the project metadata, and assets. + /// The new project name. + /// The job ID. + /// The cancellation token to use. + /// or is null. + /// or is an empty string, and was expected to be non-empty. + /// + public virtual Response GetExportStatus(string projectName, string jobId, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); + + RequestContext context = FromCancellationToken(cancellationToken); + Response response = GetExportStatus(projectName, jobId, context); + return Response.FromValue(ExportProjectJobState.FromResponse(response), response); + } + + /// + /// [Protocol Method] Gets the status of an export job. Once job completes, returns the project metadata, and assets. + /// + /// + /// + /// 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 new project name. + /// The job ID. + /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// or is null. + /// or is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + /// The response returned from the service. + /// + public virtual async Task GetExportStatusAsync(string projectName, string jobId, RequestContext context) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); + + using var scope = ClientDiagnostics.CreateScope("AuthoringClient.GetExportStatus"); + scope.Start(); + try + { + using HttpMessage message = CreateGetExportStatusRequest(projectName, jobId, context); + return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// [Protocol Method] Gets the status of an export job. Once job completes, returns the project metadata, and assets. + /// + /// + /// + /// 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 new project name. + /// The job ID. + /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// or is null. + /// or is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + /// The response returned from the service. + /// + public virtual Response GetExportStatus(string projectName, string jobId, RequestContext context) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); + + using var scope = ClientDiagnostics.CreateScope("AuthoringClient.GetExportStatus"); + scope.Start(); + try + { + using HttpMessage message = CreateGetExportStatusRequest(projectName, jobId, context); + return _pipeline.ProcessMessage(message, context); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Gets the status for an import. + /// The new project name. + /// The job ID. + /// The cancellation token to use. + /// or is null. + /// or is an empty string, and was expected to be non-empty. + /// + public virtual async Task> GetImportStatusAsync(string projectName, string jobId, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); + + RequestContext context = FromCancellationToken(cancellationToken); + Response response = await GetImportStatusAsync(projectName, jobId, context).ConfigureAwait(false); + return Response.FromValue(ImportProjectJobState.FromResponse(response), response); + } + + /// Gets the status for an import. + /// The new project name. + /// The job ID. + /// The cancellation token to use. + /// or is null. + /// or is an empty string, and was expected to be non-empty. + /// + public virtual Response GetImportStatus(string projectName, string jobId, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); + + RequestContext context = FromCancellationToken(cancellationToken); + Response response = GetImportStatus(projectName, jobId, context); + return Response.FromValue(ImportProjectJobState.FromResponse(response), response); + } + + /// + /// [Protocol Method] Gets the status for an import. + /// + /// + /// + /// 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 new project name. + /// The job ID. + /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// or is null. + /// or is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + /// The response returned from the service. + /// + public virtual async Task GetImportStatusAsync(string projectName, string jobId, RequestContext context) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); + + using var scope = ClientDiagnostics.CreateScope("AuthoringClient.GetImportStatus"); + scope.Start(); + try + { + using HttpMessage message = CreateGetImportStatusRequest(projectName, jobId, context); + return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// [Protocol Method] Gets the status for an import. + /// + /// + /// + /// 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 new project name. + /// The job ID. + /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// or is null. + /// or is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + /// The response returned from the service. + /// + public virtual Response GetImportStatus(string projectName, string jobId, RequestContext context) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); + + using var scope = ClientDiagnostics.CreateScope("AuthoringClient.GetImportStatus"); + scope.Start(); + try + { + using HttpMessage message = CreateGetImportStatusRequest(projectName, jobId, context); + return _pipeline.ProcessMessage(message, context); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Gets the status for a training job. + /// The new project name. + /// The job ID. + /// The cancellation token to use. + /// or is null. + /// or is an empty string, and was expected to be non-empty. + /// + public virtual async Task> GetTrainingStatusAsync(string projectName, string jobId, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); + + RequestContext context = FromCancellationToken(cancellationToken); + Response response = await GetTrainingStatusAsync(projectName, jobId, context).ConfigureAwait(false); + return Response.FromValue(TrainingJobState.FromResponse(response), response); + } + + /// Gets the status for a training job. + /// The new project name. + /// The job ID. + /// The cancellation token to use. + /// or is null. + /// or is an empty string, and was expected to be non-empty. + /// + public virtual Response GetTrainingStatus(string projectName, string jobId, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); + + RequestContext context = FromCancellationToken(cancellationToken); + Response response = GetTrainingStatus(projectName, jobId, context); + return Response.FromValue(TrainingJobState.FromResponse(response), response); + } + + /// + /// [Protocol Method] Gets the status for a training job. + /// + /// + /// + /// 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 new project name. + /// The job ID. + /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// or is null. + /// or is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + /// The response returned from the service. + /// + public virtual async Task GetTrainingStatusAsync(string projectName, string jobId, RequestContext context) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); + + using var scope = ClientDiagnostics.CreateScope("AuthoringClient.GetTrainingStatus"); + scope.Start(); + try + { + using HttpMessage message = CreateGetTrainingStatusRequest(projectName, jobId, context); + return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// [Protocol Method] Gets the status for a training job. + /// + /// + /// + /// 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 new project name. + /// The job ID. + /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// or is null. + /// or is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + /// The response returned from the service. + /// + public virtual Response GetTrainingStatus(string projectName, string jobId, RequestContext context) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); + + using var scope = ClientDiagnostics.CreateScope("AuthoringClient.GetTrainingStatus"); + scope.Start(); + try + { + using HttpMessage message = CreateGetTrainingStatusRequest(projectName, jobId, context); + return _pipeline.ProcessMessage(message, context); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Gets the status of an existing swap deployment job. + /// The new project name. + /// The job ID. + /// The cancellation token to use. + /// or is null. + /// or is an empty string, and was expected to be non-empty. + /// + public virtual async Task> GetSwapDeploymentsStatusAsync(string projectName, string jobId, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); + + RequestContext context = FromCancellationToken(cancellationToken); + Response response = await GetSwapDeploymentsStatusAsync(projectName, jobId, context).ConfigureAwait(false); + return Response.FromValue(SwapDeploymentsJobState.FromResponse(response), response); + } + + /// Gets the status of an existing swap deployment job. + /// The new project name. + /// The job ID. + /// The cancellation token to use. + /// or is null. + /// or is an empty string, and was expected to be non-empty. + /// + public virtual Response GetSwapDeploymentsStatus(string projectName, string jobId, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); + + RequestContext context = FromCancellationToken(cancellationToken); + Response response = GetSwapDeploymentsStatus(projectName, jobId, context); + return Response.FromValue(SwapDeploymentsJobState.FromResponse(response), response); + } + + /// + /// [Protocol Method] Gets the status of an existing swap deployment job. + /// + /// + /// + /// 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 new project name. + /// The job ID. + /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// or is null. + /// or is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + /// The response returned from the service. + /// + public virtual async Task GetSwapDeploymentsStatusAsync(string projectName, string jobId, RequestContext context) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); + + using var scope = ClientDiagnostics.CreateScope("AuthoringClient.GetSwapDeploymentsStatus"); + scope.Start(); + try + { + using HttpMessage message = CreateGetSwapDeploymentsStatusRequest(projectName, jobId, context); + return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// [Protocol Method] Gets the status of an existing swap deployment job. + /// + /// + /// + /// 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 new project name. + /// The job ID. + /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// or is null. + /// or is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + /// The response returned from the service. + /// + public virtual Response GetSwapDeploymentsStatus(string projectName, string jobId, RequestContext context) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); + + using var scope = ClientDiagnostics.CreateScope("AuthoringClient.GetSwapDeploymentsStatus"); + scope.Start(); + try + { + using HttpMessage message = CreateGetSwapDeploymentsStatusRequest(projectName, jobId, context); + return _pipeline.ProcessMessage(message, context); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Gets the details of a deployment. + /// The new project name. + /// Represents deployment name. + /// The cancellation token to use. + /// or is null. + /// or is an empty string, and was expected to be non-empty. + /// + public virtual async Task> GetDeploymentAsync(string projectName, string deploymentName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(deploymentName, nameof(deploymentName)); + + RequestContext context = FromCancellationToken(cancellationToken); + Response response = await GetDeploymentAsync(projectName, deploymentName, context).ConfigureAwait(false); + return Response.FromValue(ProjectDeployment.FromResponse(response), response); + } + + /// Gets the details of a deployment. + /// The new project name. + /// Represents deployment name. + /// The cancellation token to use. + /// or is null. + /// or is an empty string, and was expected to be non-empty. + /// + public virtual Response GetDeployment(string projectName, string deploymentName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(deploymentName, nameof(deploymentName)); + + RequestContext context = FromCancellationToken(cancellationToken); + Response response = GetDeployment(projectName, deploymentName, context); + return Response.FromValue(ProjectDeployment.FromResponse(response), response); + } + + /// + /// [Protocol Method] Gets the details of a deployment. + /// + /// + /// + /// 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 new project name. + /// Represents deployment name. + /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// or is null. + /// or is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + /// The response returned from the service. + /// + public virtual async Task GetDeploymentAsync(string projectName, string deploymentName, RequestContext context) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(deploymentName, nameof(deploymentName)); + + using var scope = ClientDiagnostics.CreateScope("AuthoringClient.GetDeployment"); + scope.Start(); + try + { + using HttpMessage message = CreateGetDeploymentRequest(projectName, deploymentName, context); + return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// [Protocol Method] Gets the details of a deployment. + /// + /// + /// + /// 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 new project name. + /// Represents deployment name. + /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// or is null. + /// or is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + /// The response returned from the service. + /// + public virtual Response GetDeployment(string projectName, string deploymentName, RequestContext context) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(deploymentName, nameof(deploymentName)); + + using var scope = ClientDiagnostics.CreateScope("AuthoringClient.GetDeployment"); + scope.Start(); + try + { + using HttpMessage message = CreateGetDeploymentRequest(projectName, deploymentName, context); + return _pipeline.ProcessMessage(message, context); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Gets the status of an existing deployment job. + /// The new project name. + /// Represents deployment name. + /// The job ID. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + /// + public virtual async Task> GetDeploymentStatusAsync(string projectName, string deploymentName, string jobId, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(deploymentName, nameof(deploymentName)); + Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); + + RequestContext context = FromCancellationToken(cancellationToken); + Response response = await GetDeploymentStatusAsync(projectName, deploymentName, jobId, context).ConfigureAwait(false); + return Response.FromValue(DeploymentJobState.FromResponse(response), response); + } + + /// Gets the status of an existing deployment job. + /// The new project name. + /// Represents deployment name. + /// The job ID. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + /// + public virtual Response GetDeploymentStatus(string projectName, string deploymentName, string jobId, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(deploymentName, nameof(deploymentName)); + Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); + + RequestContext context = FromCancellationToken(cancellationToken); + Response response = GetDeploymentStatus(projectName, deploymentName, jobId, context); + return Response.FromValue(DeploymentJobState.FromResponse(response), response); + } + + /// + /// [Protocol Method] Gets the status of an existing deployment job. + /// + /// + /// + /// 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 new project name. + /// Represents deployment name. + /// The job ID. + /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + /// The response returned from the service. + /// + public virtual async Task GetDeploymentStatusAsync(string projectName, string deploymentName, string jobId, RequestContext context) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(deploymentName, nameof(deploymentName)); + Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); + + using var scope = ClientDiagnostics.CreateScope("AuthoringClient.GetDeploymentStatus"); + scope.Start(); + try + { + using HttpMessage message = CreateGetDeploymentStatusRequest(projectName, deploymentName, jobId, context); + return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// [Protocol Method] Gets the status of an existing deployment job. + /// + /// + /// + /// 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 new project name. + /// Represents deployment name. + /// The job ID. + /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + /// The response returned from the service. + /// + public virtual Response GetDeploymentStatus(string projectName, string deploymentName, string jobId, RequestContext context) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(deploymentName, nameof(deploymentName)); + Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); + + using var scope = ClientDiagnostics.CreateScope("AuthoringClient.GetDeploymentStatus"); + scope.Start(); + try + { + using HttpMessage message = CreateGetDeploymentStatusRequest(projectName, deploymentName, jobId, context); + return _pipeline.ProcessMessage(message, context); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Gets the status of an existing delete deployment from specific resources job. + /// The new project name. + /// Represents deployment name. + /// The job ID. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + /// + public virtual async Task> GetDeploymentDeleteFromResourcesStatusAsync(string projectName, string deploymentName, string jobId, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(deploymentName, nameof(deploymentName)); + Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); + + RequestContext context = FromCancellationToken(cancellationToken); + Response response = await GetDeploymentDeleteFromResourcesStatusAsync(projectName, deploymentName, jobId, context).ConfigureAwait(false); + return Response.FromValue(DeploymentDeleteFromResourcesJobState.FromResponse(response), response); + } + + /// Gets the status of an existing delete deployment from specific resources job. + /// The new project name. + /// Represents deployment name. + /// The job ID. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + /// + public virtual Response GetDeploymentDeleteFromResourcesStatus(string projectName, string deploymentName, string jobId, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(deploymentName, nameof(deploymentName)); + Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); + + RequestContext context = FromCancellationToken(cancellationToken); + Response response = GetDeploymentDeleteFromResourcesStatus(projectName, deploymentName, jobId, context); + return Response.FromValue(DeploymentDeleteFromResourcesJobState.FromResponse(response), response); + } + + /// + /// [Protocol Method] Gets the status of an existing delete deployment from specific resources job. + /// + /// + /// + /// 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 new project name. + /// Represents deployment name. + /// The job ID. + /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + /// The response returned from the service. + /// + public virtual async Task GetDeploymentDeleteFromResourcesStatusAsync(string projectName, string deploymentName, string jobId, RequestContext context) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(deploymentName, nameof(deploymentName)); + Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); + + using var scope = ClientDiagnostics.CreateScope("AuthoringClient.GetDeploymentDeleteFromResourcesStatus"); + scope.Start(); + try + { + using HttpMessage message = CreateGetDeploymentDeleteFromResourcesStatusRequest(projectName, deploymentName, jobId, context); + return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// [Protocol Method] Gets the status of an existing delete deployment from specific resources job. + /// + /// + /// + /// 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 new project name. + /// Represents deployment name. + /// The job ID. + /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + /// The response returned from the service. + /// + public virtual Response GetDeploymentDeleteFromResourcesStatus(string projectName, string deploymentName, string jobId, RequestContext context) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(deploymentName, nameof(deploymentName)); + Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); + + using var scope = ClientDiagnostics.CreateScope("AuthoringClient.GetDeploymentDeleteFromResourcesStatus"); + scope.Start(); + try + { + using HttpMessage message = CreateGetDeploymentDeleteFromResourcesStatusRequest(projectName, deploymentName, jobId, context); + return _pipeline.ProcessMessage(message, context); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Gets the details of a trained model. + /// The new project name. + /// The trained model label. + /// The cancellation token to use. + /// or is null. + /// or is an empty string, and was expected to be non-empty. + /// + public virtual async Task> GetTrainedModelAsync(string projectName, string trainedModelLabel, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(trainedModelLabel, nameof(trainedModelLabel)); + + RequestContext context = FromCancellationToken(cancellationToken); + Response response = await GetTrainedModelAsync(projectName, trainedModelLabel, context).ConfigureAwait(false); + return Response.FromValue(ProjectTrainedModel.FromResponse(response), response); + } + + /// Gets the details of a trained model. + /// The new project name. + /// The trained model label. + /// The cancellation token to use. + /// or is null. + /// or is an empty string, and was expected to be non-empty. + /// + public virtual Response GetTrainedModel(string projectName, string trainedModelLabel, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(trainedModelLabel, nameof(trainedModelLabel)); + + RequestContext context = FromCancellationToken(cancellationToken); + Response response = GetTrainedModel(projectName, trainedModelLabel, context); + return Response.FromValue(ProjectTrainedModel.FromResponse(response), response); + } + + /// + /// [Protocol Method] Gets the details of a trained model. + /// + /// + /// + /// 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 new project name. + /// The trained model label. + /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// or is null. + /// or is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + /// The response returned from the service. + /// + public virtual async Task GetTrainedModelAsync(string projectName, string trainedModelLabel, RequestContext context) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(trainedModelLabel, nameof(trainedModelLabel)); + + using var scope = ClientDiagnostics.CreateScope("AuthoringClient.GetTrainedModel"); + scope.Start(); + try + { + using HttpMessage message = CreateGetTrainedModelRequest(projectName, trainedModelLabel, context); + return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// [Protocol Method] Gets the details of a trained model. + /// + /// + /// + /// 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 new project name. + /// The trained model label. + /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// or is null. + /// or is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + /// The response returned from the service. + /// + public virtual Response GetTrainedModel(string projectName, string trainedModelLabel, RequestContext context) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(trainedModelLabel, nameof(trainedModelLabel)); + + using var scope = ClientDiagnostics.CreateScope("AuthoringClient.GetTrainedModel"); + scope.Start(); + try + { + using HttpMessage message = CreateGetTrainedModelRequest(projectName, trainedModelLabel, context); + return _pipeline.ProcessMessage(message, context); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + // The convenience method is omitted here because it has exactly the same parameter list as the corresponding protocol method + /// + /// [Protocol Method] Deletes an existing trained model. + /// + /// + /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. + /// + /// + /// + /// + /// The new project name. + /// The trained model label. + /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// or is null. + /// or is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + /// The response returned from the service. + /// + public virtual async Task DeleteTrainedModelAsync(string projectName, string trainedModelLabel, RequestContext context = null) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(trainedModelLabel, nameof(trainedModelLabel)); + + using var scope = ClientDiagnostics.CreateScope("AuthoringClient.DeleteTrainedModel"); + scope.Start(); + try + { + using HttpMessage message = CreateDeleteTrainedModelRequest(projectName, trainedModelLabel, context); + return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + // The convenience method is omitted here because it has exactly the same parameter list as the corresponding protocol method + /// + /// [Protocol Method] Deletes an existing trained model. + /// + /// + /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. + /// + /// + /// + /// + /// The new project name. + /// The trained model label. + /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// or is null. + /// or is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + /// The response returned from the service. + /// + public virtual Response DeleteTrainedModel(string projectName, string trainedModelLabel, RequestContext context = null) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(trainedModelLabel, nameof(trainedModelLabel)); + + using var scope = ClientDiagnostics.CreateScope("AuthoringClient.DeleteTrainedModel"); + scope.Start(); + try + { + using HttpMessage message = CreateDeleteTrainedModelRequest(projectName, trainedModelLabel, context); + return _pipeline.ProcessMessage(message, context); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Gets the status for an evaluation job. + /// The new project name. + /// The trained model label. + /// The job ID. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + /// + public virtual async Task> GetEvaluationStatusAsync(string projectName, string trainedModelLabel, string jobId, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(trainedModelLabel, nameof(trainedModelLabel)); + Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); + + RequestContext context = FromCancellationToken(cancellationToken); + Response response = await GetEvaluationStatusAsync(projectName, trainedModelLabel, jobId, context).ConfigureAwait(false); + return Response.FromValue(EvaluationJobState.FromResponse(response), response); + } + + /// Gets the status for an evaluation job. + /// The new project name. + /// The trained model label. + /// The job ID. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + /// + public virtual Response GetEvaluationStatus(string projectName, string trainedModelLabel, string jobId, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(trainedModelLabel, nameof(trainedModelLabel)); + Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); + + RequestContext context = FromCancellationToken(cancellationToken); + Response response = GetEvaluationStatus(projectName, trainedModelLabel, jobId, context); + return Response.FromValue(EvaluationJobState.FromResponse(response), response); + } + + /// + /// [Protocol Method] Gets the status for an evaluation job. + /// + /// + /// + /// 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 new project name. + /// The trained model label. + /// The job ID. + /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + /// The response returned from the service. + /// + public virtual async Task GetEvaluationStatusAsync(string projectName, string trainedModelLabel, string jobId, RequestContext context) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(trainedModelLabel, nameof(trainedModelLabel)); + Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); + + using var scope = ClientDiagnostics.CreateScope("AuthoringClient.GetEvaluationStatus"); + scope.Start(); + try + { + using HttpMessage message = CreateGetEvaluationStatusRequest(projectName, trainedModelLabel, jobId, context); + return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// [Protocol Method] Gets the status for an evaluation job. + /// + /// + /// + /// 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 new project name. + /// The trained model label. + /// The job ID. + /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + /// The response returned from the service. + /// + public virtual Response GetEvaluationStatus(string projectName, string trainedModelLabel, string jobId, RequestContext context) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(trainedModelLabel, nameof(trainedModelLabel)); + Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); + + using var scope = ClientDiagnostics.CreateScope("AuthoringClient.GetEvaluationStatus"); + scope.Start(); + try + { + using HttpMessage message = CreateGetEvaluationStatusRequest(projectName, trainedModelLabel, jobId, context); + return _pipeline.ProcessMessage(message, context); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Gets the status for loading a snapshot. + /// The new project name. + /// The trained model label. + /// The job ID. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + /// + public virtual async Task> GetLoadSnapshotStatusAsync(string projectName, string trainedModelLabel, string jobId, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(trainedModelLabel, nameof(trainedModelLabel)); + Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); + + RequestContext context = FromCancellationToken(cancellationToken); + Response response = await GetLoadSnapshotStatusAsync(projectName, trainedModelLabel, jobId, context).ConfigureAwait(false); + return Response.FromValue(LoadSnapshotJobState.FromResponse(response), response); + } + + /// Gets the status for loading a snapshot. + /// The new project name. + /// The trained model label. + /// The job ID. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + /// + public virtual Response GetLoadSnapshotStatus(string projectName, string trainedModelLabel, string jobId, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(trainedModelLabel, nameof(trainedModelLabel)); + Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); + + RequestContext context = FromCancellationToken(cancellationToken); + Response response = GetLoadSnapshotStatus(projectName, trainedModelLabel, jobId, context); + return Response.FromValue(LoadSnapshotJobState.FromResponse(response), response); + } + + /// + /// [Protocol Method] Gets the status for loading a snapshot. + /// + /// + /// + /// 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 new project name. + /// The trained model label. + /// The job ID. + /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + /// The response returned from the service. + /// + public virtual async Task GetLoadSnapshotStatusAsync(string projectName, string trainedModelLabel, string jobId, RequestContext context) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(trainedModelLabel, nameof(trainedModelLabel)); + Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); + + using var scope = ClientDiagnostics.CreateScope("AuthoringClient.GetLoadSnapshotStatus"); + scope.Start(); + try + { + using HttpMessage message = CreateGetLoadSnapshotStatusRequest(projectName, trainedModelLabel, jobId, context); + return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// [Protocol Method] Gets the status for loading a snapshot. + /// + /// + /// + /// 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 new project name. + /// The trained model label. + /// The job ID. + /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + /// The response returned from the service. + /// + public virtual Response GetLoadSnapshotStatus(string projectName, string trainedModelLabel, string jobId, RequestContext context) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(trainedModelLabel, nameof(trainedModelLabel)); + Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); + + using var scope = ClientDiagnostics.CreateScope("AuthoringClient.GetLoadSnapshotStatus"); + scope.Start(); + try + { + using HttpMessage message = CreateGetLoadSnapshotStatusRequest(projectName, trainedModelLabel, jobId, context); + return _pipeline.ProcessMessage(message, context); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Gets the evaluation summary of a trained model. The summary includes high level performance measurements of the model e.g., F1, Precision, Recall, etc. + /// The name of the project to use. + /// The trained model label. + /// The cancellation token to use. + /// or is null. + /// or is an empty string, and was expected to be non-empty. + /// + public virtual async Task> GetModelEvaluationSummaryAsync(string projectName, string trainedModelLabel, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(trainedModelLabel, nameof(trainedModelLabel)); + + RequestContext context = FromCancellationToken(cancellationToken); + Response response = await GetModelEvaluationSummaryAsync(projectName, trainedModelLabel, context).ConfigureAwait(false); + return Response.FromValue(EvaluationSummary.FromResponse(response), response); + } + + /// Gets the evaluation summary of a trained model. The summary includes high level performance measurements of the model e.g., F1, Precision, Recall, etc. + /// The name of the project to use. + /// The trained model label. + /// The cancellation token to use. + /// or is null. + /// or is an empty string, and was expected to be non-empty. + /// + public virtual Response GetModelEvaluationSummary(string projectName, string trainedModelLabel, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(trainedModelLabel, nameof(trainedModelLabel)); + + RequestContext context = FromCancellationToken(cancellationToken); + Response response = GetModelEvaluationSummary(projectName, trainedModelLabel, context); + return Response.FromValue(EvaluationSummary.FromResponse(response), response); + } + + /// + /// [Protocol Method] Gets the evaluation summary of a trained model. The summary includes high level performance measurements of the model e.g., F1, Precision, Recall, etc. + /// + /// + /// + /// 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 project to use. + /// The trained model label. + /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// or is null. + /// or is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + /// The response returned from the service. + /// + public virtual async Task GetModelEvaluationSummaryAsync(string projectName, string trainedModelLabel, RequestContext context) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(trainedModelLabel, nameof(trainedModelLabel)); + + using var scope = ClientDiagnostics.CreateScope("AuthoringClient.GetModelEvaluationSummary"); + scope.Start(); + try + { + using HttpMessage message = CreateGetModelEvaluationSummaryRequest(projectName, trainedModelLabel, context); + return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// [Protocol Method] Gets the evaluation summary of a trained model. The summary includes high level performance measurements of the model e.g., F1, Precision, Recall, etc. + /// + /// + /// + /// 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 project to use. + /// The trained model label. + /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// or is null. + /// or is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + /// The response returned from the service. + /// + public virtual Response GetModelEvaluationSummary(string projectName, string trainedModelLabel, RequestContext context) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(trainedModelLabel, nameof(trainedModelLabel)); + + using var scope = ClientDiagnostics.CreateScope("AuthoringClient.GetModelEvaluationSummary"); + scope.Start(); + try + { + using HttpMessage message = CreateGetModelEvaluationSummaryRequest(projectName, trainedModelLabel, context); + return _pipeline.ProcessMessage(message, context); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Gets the status of an existing assign deployment resources job. + /// The new project name. + /// The job ID. + /// The cancellation token to use. + /// or is null. + /// or is an empty string, and was expected to be non-empty. + /// + public virtual async Task> GetAssignDeploymentResourcesStatusAsync(string projectName, string jobId, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); + + RequestContext context = FromCancellationToken(cancellationToken); + Response response = await GetAssignDeploymentResourcesStatusAsync(projectName, jobId, context).ConfigureAwait(false); + return Response.FromValue(DeploymentResourcesJobState.FromResponse(response), response); + } + + /// Gets the status of an existing assign deployment resources job. + /// The new project name. + /// The job ID. + /// The cancellation token to use. + /// or is null. + /// or is an empty string, and was expected to be non-empty. + /// + public virtual Response GetAssignDeploymentResourcesStatus(string projectName, string jobId, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); + + RequestContext context = FromCancellationToken(cancellationToken); + Response response = GetAssignDeploymentResourcesStatus(projectName, jobId, context); + return Response.FromValue(DeploymentResourcesJobState.FromResponse(response), response); + } + + /// + /// [Protocol Method] Gets the status of an existing assign deployment resources job. + /// + /// + /// + /// 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 new project name. + /// The job ID. + /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// or is null. + /// or is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + /// The response returned from the service. + /// + public virtual async Task GetAssignDeploymentResourcesStatusAsync(string projectName, string jobId, RequestContext context) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); + + using var scope = ClientDiagnostics.CreateScope("AuthoringClient.GetAssignDeploymentResourcesStatus"); + scope.Start(); + try + { + using HttpMessage message = CreateGetAssignDeploymentResourcesStatusRequest(projectName, jobId, context); + return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// [Protocol Method] Gets the status of an existing assign deployment resources job. + /// + /// + /// + /// 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 new project name. + /// The job ID. + /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// or is null. + /// or is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + /// The response returned from the service. + /// + public virtual Response GetAssignDeploymentResourcesStatus(string projectName, string jobId, RequestContext context) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); + + using var scope = ClientDiagnostics.CreateScope("AuthoringClient.GetAssignDeploymentResourcesStatus"); + scope.Start(); + try + { + using HttpMessage message = CreateGetAssignDeploymentResourcesStatusRequest(projectName, jobId, context); + return _pipeline.ProcessMessage(message, context); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Gets the status of an existing unassign deployment resources job. + /// The name of the project to use. + /// The job ID. + /// The cancellation token to use. + /// or is null. + /// or is an empty string, and was expected to be non-empty. + /// + public virtual async Task> GetUnassignDeploymentResourcesStatusAsync(string projectName, string jobId, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); + + RequestContext context = FromCancellationToken(cancellationToken); + Response response = await GetUnassignDeploymentResourcesStatusAsync(projectName, jobId, context).ConfigureAwait(false); + return Response.FromValue(DeploymentResourcesJobState.FromResponse(response), response); + } + + /// Gets the status of an existing unassign deployment resources job. + /// The name of the project to use. + /// The job ID. + /// The cancellation token to use. + /// or is null. + /// or is an empty string, and was expected to be non-empty. + /// + public virtual Response GetUnassignDeploymentResourcesStatus(string projectName, string jobId, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); + + RequestContext context = FromCancellationToken(cancellationToken); + Response response = GetUnassignDeploymentResourcesStatus(projectName, jobId, context); + return Response.FromValue(DeploymentResourcesJobState.FromResponse(response), response); + } + + /// + /// [Protocol Method] Gets the status of an existing unassign deployment resources job. + /// + /// + /// + /// 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 project to use. + /// The job ID. + /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// or is null. + /// or is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + /// The response returned from the service. + /// + public virtual async Task GetUnassignDeploymentResourcesStatusAsync(string projectName, string jobId, RequestContext context) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); + + using var scope = ClientDiagnostics.CreateScope("AuthoringClient.GetUnassignDeploymentResourcesStatus"); + scope.Start(); + try + { + using HttpMessage message = CreateGetUnassignDeploymentResourcesStatusRequest(projectName, jobId, context); + return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// [Protocol Method] Gets the status of an existing unassign deployment resources job. + /// + /// + /// + /// 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 project to use. + /// The job ID. + /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// or is null. + /// or is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + /// The response returned from the service. + /// + public virtual Response GetUnassignDeploymentResourcesStatus(string projectName, string jobId, RequestContext context) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); + + using var scope = ClientDiagnostics.CreateScope("AuthoringClient.GetUnassignDeploymentResourcesStatus"); + scope.Start(); + try + { + using HttpMessage message = CreateGetUnassignDeploymentResourcesStatusRequest(projectName, jobId, context); + return _pipeline.ProcessMessage(message, context); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Lists the deployments to which an Azure resource is assigned. This doesn't return deployments belonging to projects owned by this resource. It only returns deployments belonging to projects owned by other resources. + /// The maximum number of resources to return from the collection. + /// An offset into the collection of the first resource to be returned. + /// The maximum number of resources to include in a single response. + /// The cancellation token to use. + /// + public virtual async Task> GetAssignedResourceDeploymentsAsync(int? top = null, int? skip = null, int? maxpagesize = null, CancellationToken cancellationToken = default) + { + RequestContext context = FromCancellationToken(cancellationToken); + Response response = await GetAssignedResourceDeploymentsAsync(top, skip, maxpagesize, context).ConfigureAwait(false); + return Response.FromValue(AssignedResourceDeploymentsMetadata.FromResponse(response), response); + } + + /// Lists the deployments to which an Azure resource is assigned. This doesn't return deployments belonging to projects owned by this resource. It only returns deployments belonging to projects owned by other resources. + /// The maximum number of resources to return from the collection. + /// An offset into the collection of the first resource to be returned. + /// The maximum number of resources to include in a single response. + /// The cancellation token to use. + /// + public virtual Response GetAssignedResourceDeployments(int? top = null, int? skip = null, int? maxpagesize = null, CancellationToken cancellationToken = default) + { + RequestContext context = FromCancellationToken(cancellationToken); + Response response = GetAssignedResourceDeployments(top, skip, maxpagesize, context); + return Response.FromValue(AssignedResourceDeploymentsMetadata.FromResponse(response), response); + } + + /// + /// [Protocol Method] Lists the deployments to which an Azure resource is assigned. This doesn't return deployments belonging to projects owned by this resource. It only returns deployments belonging to projects owned by other resources. + /// + /// + /// + /// 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 maximum number of resources to return from the collection. + /// An offset into the collection of the first resource to be returned. + /// The maximum number of resources to include in a single response. + /// 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 response returned from the service. + /// + public virtual async Task GetAssignedResourceDeploymentsAsync(int? top, int? skip, int? maxpagesize, RequestContext context) + { + using var scope = ClientDiagnostics.CreateScope("AuthoringClient.GetAssignedResourceDeployments"); + scope.Start(); + try + { + using HttpMessage message = CreateGetAssignedResourceDeploymentsRequest(top, skip, maxpagesize, context); + return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// [Protocol Method] Lists the deployments to which an Azure resource is assigned. This doesn't return deployments belonging to projects owned by this resource. It only returns deployments belonging to projects owned by other resources. + /// + /// + /// + /// 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 maximum number of resources to return from the collection. + /// An offset into the collection of the first resource to be returned. + /// The maximum number of resources to include in a single response. + /// 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 response returned from the service. + /// + public virtual Response GetAssignedResourceDeployments(int? top, int? skip, int? maxpagesize, RequestContext context) + { + using var scope = ClientDiagnostics.CreateScope("AuthoringClient.GetAssignedResourceDeployments"); + scope.Start(); + try + { + using HttpMessage message = CreateGetAssignedResourceDeploymentsRequest(top, skip, maxpagesize, context); + return _pipeline.ProcessMessage(message, context); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Lists the supported languages for the given project type. + /// The project kind. + /// The maximum number of resources to return from the collection. + /// An offset into the collection of the first resource to be returned. + /// The maximum number of resources to include in a single response. + /// The cancellation token to use. + /// + public virtual async Task> GetSupportedLanguagesAsync(ProjectKind projectKind, int? top = null, int? skip = null, int? maxpagesize = null, CancellationToken cancellationToken = default) + { + RequestContext context = FromCancellationToken(cancellationToken); + Response response = await GetSupportedLanguagesAsync(projectKind.ToString(), top, skip, maxpagesize, context).ConfigureAwait(false); + return Response.FromValue(SupportedLanguages.FromResponse(response), response); + } + + /// Lists the supported languages for the given project type. + /// The project kind. + /// The maximum number of resources to return from the collection. + /// An offset into the collection of the first resource to be returned. + /// The maximum number of resources to include in a single response. + /// The cancellation token to use. + /// + public virtual Response GetSupportedLanguages(ProjectKind projectKind, int? top = null, int? skip = null, int? maxpagesize = null, CancellationToken cancellationToken = default) + { + RequestContext context = FromCancellationToken(cancellationToken); + Response response = GetSupportedLanguages(projectKind.ToString(), top, skip, maxpagesize, context); + return Response.FromValue(SupportedLanguages.FromResponse(response), response); + } + + /// + /// [Protocol Method] Lists the supported languages for the given project type. + /// + /// + /// + /// 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 project kind. Allowed values: "Conversation" | "Orchestration" | "CustomConversationSummarization". + /// The maximum number of resources to return from the collection. + /// An offset into the collection of the first resource to be returned. + /// The maximum number of resources to include in a single response. + /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// is null. + /// Service returned a non-success status code. + /// The response returned from the service. + /// + public virtual async Task GetSupportedLanguagesAsync(string projectKind, int? top = null, int? skip = null, int? maxpagesize = null, RequestContext context = null) + { + Argument.AssertNotNull(projectKind, nameof(projectKind)); + + using var scope = ClientDiagnostics.CreateScope("AuthoringClient.GetSupportedLanguages"); + scope.Start(); + try + { + using HttpMessage message = CreateGetSupportedLanguagesRequest(projectKind, top, skip, maxpagesize, context); + return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// [Protocol Method] Lists the supported languages for the given project type. + /// + /// + /// + /// 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 project kind. Allowed values: "Conversation" | "Orchestration" | "CustomConversationSummarization". + /// The maximum number of resources to return from the collection. + /// An offset into the collection of the first resource to be returned. + /// The maximum number of resources to include in a single response. + /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// is null. + /// Service returned a non-success status code. + /// The response returned from the service. + /// + public virtual Response GetSupportedLanguages(string projectKind, int? top = null, int? skip = null, int? maxpagesize = null, RequestContext context = null) + { + Argument.AssertNotNull(projectKind, nameof(projectKind)); + + using var scope = ClientDiagnostics.CreateScope("AuthoringClient.GetSupportedLanguages"); + scope.Start(); + try + { + using HttpMessage message = CreateGetSupportedLanguagesRequest(projectKind, top, skip, maxpagesize, context); + return _pipeline.ProcessMessage(message, context); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Lists the supported prebuilt entities that can be used while creating composed entities. + /// The language to get supported prebuilt entities for. Required if multilingual is false. This is BCP-47 representation of a language. For example, use "en" for English, "en-gb" for English (UK), "es" for Spanish etc. + /// Whether to get the support prebuilt entities for multilingual or monolingual projects. If true, the language parameter is ignored. + /// The maximum number of resources to return from the collection. + /// An offset into the collection of the first resource to be returned. + /// The maximum number of resources to include in a single response. + /// The cancellation token to use. + /// + public virtual async Task> GetSupportedPrebuiltEntitiesAsync(string language = null, string multilingual = null, int? top = null, int? skip = null, int? maxpagesize = null, CancellationToken cancellationToken = default) + { + RequestContext context = FromCancellationToken(cancellationToken); + Response response = await GetSupportedPrebuiltEntitiesAsync(language, multilingual, top, skip, maxpagesize, context).ConfigureAwait(false); + return Response.FromValue(PrebuiltEntities.FromResponse(response), response); + } + + /// Lists the supported prebuilt entities that can be used while creating composed entities. + /// The language to get supported prebuilt entities for. Required if multilingual is false. This is BCP-47 representation of a language. For example, use "en" for English, "en-gb" for English (UK), "es" for Spanish etc. + /// Whether to get the support prebuilt entities for multilingual or monolingual projects. If true, the language parameter is ignored. + /// The maximum number of resources to return from the collection. + /// An offset into the collection of the first resource to be returned. + /// The maximum number of resources to include in a single response. + /// The cancellation token to use. + /// + public virtual Response GetSupportedPrebuiltEntities(string language = null, string multilingual = null, int? top = null, int? skip = null, int? maxpagesize = null, CancellationToken cancellationToken = default) + { + RequestContext context = FromCancellationToken(cancellationToken); + Response response = GetSupportedPrebuiltEntities(language, multilingual, top, skip, maxpagesize, context); + return Response.FromValue(PrebuiltEntities.FromResponse(response), response); + } + + /// + /// [Protocol Method] Lists the supported prebuilt entities that can be used while creating composed entities. + /// + /// + /// + /// 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 language to get supported prebuilt entities for. Required if multilingual is false. This is BCP-47 representation of a language. For example, use "en" for English, "en-gb" for English (UK), "es" for Spanish etc. + /// Whether to get the support prebuilt entities for multilingual or monolingual projects. If true, the language parameter is ignored. + /// The maximum number of resources to return from the collection. + /// An offset into the collection of the first resource to be returned. + /// The maximum number of resources to include in a single response. + /// 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 response returned from the service. + /// + public virtual async Task GetSupportedPrebuiltEntitiesAsync(string language, string multilingual, int? top, int? skip, int? maxpagesize, RequestContext context) + { + using var scope = ClientDiagnostics.CreateScope("AuthoringClient.GetSupportedPrebuiltEntities"); + scope.Start(); + try + { + using HttpMessage message = CreateGetSupportedPrebuiltEntitiesRequest(language, multilingual, top, skip, maxpagesize, context); + return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// [Protocol Method] Lists the supported prebuilt entities that can be used while creating composed entities. + /// + /// + /// + /// 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 language to get supported prebuilt entities for. Required if multilingual is false. This is BCP-47 representation of a language. For example, use "en" for English, "en-gb" for English (UK), "es" for Spanish etc. + /// Whether to get the support prebuilt entities for multilingual or monolingual projects. If true, the language parameter is ignored. + /// The maximum number of resources to return from the collection. + /// An offset into the collection of the first resource to be returned. + /// The maximum number of resources to include in a single response. + /// 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 response returned from the service. + /// + public virtual Response GetSupportedPrebuiltEntities(string language, string multilingual, int? top, int? skip, int? maxpagesize, RequestContext context) + { + using var scope = ClientDiagnostics.CreateScope("AuthoringClient.GetSupportedPrebuiltEntities"); + scope.Start(); + try + { + using HttpMessage message = CreateGetSupportedPrebuiltEntitiesRequest(language, multilingual, top, skip, maxpagesize, context); + return _pipeline.ProcessMessage(message, context); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Lists the support training config version for a given project type. + /// The project kind. + /// The maximum number of resources to return from the collection. + /// An offset into the collection of the first resource to be returned. + /// The maximum number of resources to include in a single response. + /// The cancellation token to use. + /// + public virtual async Task> GetTrainingConfigVersionsAsync(ProjectKind projectKind, int? top = null, int? skip = null, int? maxpagesize = null, CancellationToken cancellationToken = default) + { + RequestContext context = FromCancellationToken(cancellationToken); + Response response = await GetTrainingConfigVersionsAsync(projectKind.ToString(), top, skip, maxpagesize, context).ConfigureAwait(false); + return Response.FromValue(TrainingConfigVersions.FromResponse(response), response); + } + + /// Lists the support training config version for a given project type. + /// The project kind. + /// The maximum number of resources to return from the collection. + /// An offset into the collection of the first resource to be returned. + /// The maximum number of resources to include in a single response. + /// The cancellation token to use. + /// + public virtual Response GetTrainingConfigVersions(ProjectKind projectKind, int? top = null, int? skip = null, int? maxpagesize = null, CancellationToken cancellationToken = default) + { + RequestContext context = FromCancellationToken(cancellationToken); + Response response = GetTrainingConfigVersions(projectKind.ToString(), top, skip, maxpagesize, context); + return Response.FromValue(TrainingConfigVersions.FromResponse(response), response); + } + + /// + /// [Protocol Method] Lists the support training config version for a given project type. + /// + /// + /// + /// 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 project kind. Allowed values: "Conversation" | "Orchestration" | "CustomConversationSummarization". + /// The maximum number of resources to return from the collection. + /// An offset into the collection of the first resource to be returned. + /// The maximum number of resources to include in a single response. + /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// is null. + /// Service returned a non-success status code. + /// The response returned from the service. + /// + public virtual async Task GetTrainingConfigVersionsAsync(string projectKind, int? top = null, int? skip = null, int? maxpagesize = null, RequestContext context = null) + { + Argument.AssertNotNull(projectKind, nameof(projectKind)); + + using var scope = ClientDiagnostics.CreateScope("AuthoringClient.GetTrainingConfigVersions"); + scope.Start(); + try + { + using HttpMessage message = CreateGetTrainingConfigVersionsRequest(projectKind, top, skip, maxpagesize, context); + return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// [Protocol Method] Lists the support training config version for a given project type. + /// + /// + /// + /// 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 project kind. Allowed values: "Conversation" | "Orchestration" | "CustomConversationSummarization". + /// The maximum number of resources to return from the collection. + /// An offset into the collection of the first resource to be returned. + /// The maximum number of resources to include in a single response. + /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// is null. + /// Service returned a non-success status code. + /// The response returned from the service. + /// + public virtual Response GetTrainingConfigVersions(string projectKind, int? top = null, int? skip = null, int? maxpagesize = null, RequestContext context = null) + { + Argument.AssertNotNull(projectKind, nameof(projectKind)); + + using var scope = ClientDiagnostics.CreateScope("AuthoringClient.GetTrainingConfigVersions"); + scope.Start(); + try + { + using HttpMessage message = CreateGetTrainingConfigVersionsRequest(projectKind, top, skip, maxpagesize, context); + return _pipeline.ProcessMessage(message, context); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Gets the details of an exported model. + /// The new project name. + /// The exported model name. + /// The cancellation token to use. + /// or is null. + /// or is an empty string, and was expected to be non-empty. + /// + public virtual async Task> GetExportedModelAsync(string projectName, string exportedModelName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(exportedModelName, nameof(exportedModelName)); + + RequestContext context = FromCancellationToken(cancellationToken); + Response response = await GetExportedModelAsync(projectName, exportedModelName, context).ConfigureAwait(false); + return Response.FromValue(ExportedTrainedModel.FromResponse(response), response); + } + + /// Gets the details of an exported model. + /// The new project name. + /// The exported model name. + /// The cancellation token to use. + /// or is null. + /// or is an empty string, and was expected to be non-empty. + /// + public virtual Response GetExportedModel(string projectName, string exportedModelName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(exportedModelName, nameof(exportedModelName)); + + RequestContext context = FromCancellationToken(cancellationToken); + Response response = GetExportedModel(projectName, exportedModelName, context); + return Response.FromValue(ExportedTrainedModel.FromResponse(response), response); + } + + /// + /// [Protocol Method] Gets the details of an exported model. + /// + /// + /// + /// 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 new project name. + /// The exported model name. + /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// or is null. + /// or is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + /// The response returned from the service. + /// + public virtual async Task GetExportedModelAsync(string projectName, string exportedModelName, RequestContext context) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(exportedModelName, nameof(exportedModelName)); + + using var scope = ClientDiagnostics.CreateScope("AuthoringClient.GetExportedModel"); + scope.Start(); + try + { + using HttpMessage message = CreateGetExportedModelRequest(projectName, exportedModelName, context); + return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// [Protocol Method] Gets the details of an exported model. + /// + /// + /// + /// 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 new project name. + /// The exported model name. + /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// or is null. + /// or is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + /// The response returned from the service. + /// + public virtual Response GetExportedModel(string projectName, string exportedModelName, RequestContext context) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(exportedModelName, nameof(exportedModelName)); + + using var scope = ClientDiagnostics.CreateScope("AuthoringClient.GetExportedModel"); + scope.Start(); + try + { + using HttpMessage message = CreateGetExportedModelRequest(projectName, exportedModelName, context); + return _pipeline.ProcessMessage(message, context); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Gets the status for an existing job to create or update an exported model. + /// The new project name. + /// The exported model name. + /// The job ID. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + /// + public virtual async Task> GetExportedModelJobStatusAsync(string projectName, string exportedModelName, string jobId, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(exportedModelName, nameof(exportedModelName)); + Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); + + RequestContext context = FromCancellationToken(cancellationToken); + Response response = await GetExportedModelJobStatusAsync(projectName, exportedModelName, jobId, context).ConfigureAwait(false); + return Response.FromValue(ExportedModelJobState.FromResponse(response), response); + } + + /// Gets the status for an existing job to create or update an exported model. + /// The new project name. + /// The exported model name. + /// The job ID. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + /// + public virtual Response GetExportedModelJobStatus(string projectName, string exportedModelName, string jobId, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(exportedModelName, nameof(exportedModelName)); + Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); + + RequestContext context = FromCancellationToken(cancellationToken); + Response response = GetExportedModelJobStatus(projectName, exportedModelName, jobId, context); + return Response.FromValue(ExportedModelJobState.FromResponse(response), response); + } + + /// + /// [Protocol Method] Gets the status for an existing job to create or update an exported model. + /// + /// + /// + /// 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 new project name. + /// The exported model name. + /// The job ID. + /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + /// The response returned from the service. + /// + public virtual async Task GetExportedModelJobStatusAsync(string projectName, string exportedModelName, string jobId, RequestContext context) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(exportedModelName, nameof(exportedModelName)); + Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); + + using var scope = ClientDiagnostics.CreateScope("AuthoringClient.GetExportedModelJobStatus"); + scope.Start(); + try + { + using HttpMessage message = CreateGetExportedModelJobStatusRequest(projectName, exportedModelName, jobId, context); + return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// [Protocol Method] Gets the status for an existing job to create or update an exported model. + /// + /// + /// + /// 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 new project name. + /// The exported model name. + /// The job ID. + /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + /// The response returned from the service. + /// + public virtual Response GetExportedModelJobStatus(string projectName, string exportedModelName, string jobId, RequestContext context) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(exportedModelName, nameof(exportedModelName)); + Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); + + using var scope = ClientDiagnostics.CreateScope("AuthoringClient.GetExportedModelJobStatus"); + scope.Start(); + try + { + using HttpMessage message = CreateGetExportedModelJobStatusRequest(projectName, exportedModelName, jobId, context); + return _pipeline.ProcessMessage(message, context); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Lists the existing projects. + /// 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 AsyncPageable GetProjectsAsync(int? maxCount = null, int? skip = null, int? maxpagesize = null, CancellationToken cancellationToken = default) + { + RequestContext context = cancellationToken.CanBeCanceled ? new RequestContext { CancellationToken = cancellationToken } : null; + HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetProjectsRequest(maxCount, skip, pageSizeHint, context); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetProjectsNextPageRequest(nextLink, maxCount, skip, pageSizeHint, context); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => ProjectMetadata.DeserializeProjectMetadata(e), ClientDiagnostics, _pipeline, "AuthoringClient.GetProjects", "value", "nextLink", maxpagesize, context); + } + + /// Lists the existing projects. + /// 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 Pageable GetProjects(int? maxCount = null, int? skip = null, int? maxpagesize = null, CancellationToken cancellationToken = default) + { + RequestContext context = cancellationToken.CanBeCanceled ? new RequestContext { CancellationToken = cancellationToken } : null; + HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetProjectsRequest(maxCount, skip, pageSizeHint, context); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetProjectsNextPageRequest(nextLink, maxCount, skip, pageSizeHint, context); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => ProjectMetadata.DeserializeProjectMetadata(e), ClientDiagnostics, _pipeline, "AuthoringClient.GetProjects", "value", "nextLink", maxpagesize, context); + } + + /// + /// [Protocol Method] Lists the existing projects. + /// + /// + /// + /// 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 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 AsyncPageable GetProjectsAsync(int? maxCount, int? skip, int? maxpagesize, RequestContext context) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetProjectsRequest(maxCount, skip, pageSizeHint, context); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetProjectsNextPageRequest(nextLink, maxCount, skip, pageSizeHint, context); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => BinaryData.FromString(e.GetRawText()), ClientDiagnostics, _pipeline, "AuthoringClient.GetProjects", "value", "nextLink", maxpagesize, context); + } + + /// + /// [Protocol Method] Lists the existing projects. + /// + /// + /// + /// 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 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 Pageable GetProjects(int? maxCount, int? skip, int? maxpagesize, RequestContext context) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetProjectsRequest(maxCount, skip, pageSizeHint, context); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetProjectsNextPageRequest(nextLink, maxCount, skip, pageSizeHint, context); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => BinaryData.FromString(e.GetRawText()), ClientDiagnostics, _pipeline, "AuthoringClient.GetProjects", "value", "nextLink", maxpagesize, context); + } + + /// Lists the deployments belonging to a project. + /// The new project name. + /// 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. + /// is null. + /// is an empty string, and was expected to be non-empty. + /// + public virtual AsyncPageable GetDeploymentsAsync(string projectName, int? maxCount = null, int? skip = null, int? maxpagesize = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + + RequestContext context = cancellationToken.CanBeCanceled ? new RequestContext { CancellationToken = cancellationToken } : null; + HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetDeploymentsRequest(projectName, maxCount, skip, pageSizeHint, context); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetDeploymentsNextPageRequest(nextLink, projectName, maxCount, skip, pageSizeHint, context); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => ProjectDeployment.DeserializeProjectDeployment(e), ClientDiagnostics, _pipeline, "AuthoringClient.GetDeployments", "value", "nextLink", maxpagesize, context); + } + + /// Lists the deployments belonging to a project. + /// The new project name. + /// 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. + /// is null. + /// is an empty string, and was expected to be non-empty. + /// + public virtual Pageable GetDeployments(string projectName, int? maxCount = null, int? skip = null, int? maxpagesize = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + + RequestContext context = cancellationToken.CanBeCanceled ? new RequestContext { CancellationToken = cancellationToken } : null; + HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetDeploymentsRequest(projectName, maxCount, skip, pageSizeHint, context); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetDeploymentsNextPageRequest(nextLink, projectName, maxCount, skip, pageSizeHint, context); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => ProjectDeployment.DeserializeProjectDeployment(e), ClientDiagnostics, _pipeline, "AuthoringClient.GetDeployments", "value", "nextLink", maxpagesize, context); + } + + /// + /// [Protocol Method] Lists the deployments belonging to a 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. + /// + /// + /// + /// + /// The new project name. + /// 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. + /// 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 AsyncPageable GetDeploymentsAsync(string projectName, int? maxCount, int? skip, int? maxpagesize, RequestContext context) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + + HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetDeploymentsRequest(projectName, maxCount, skip, pageSizeHint, context); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetDeploymentsNextPageRequest(nextLink, projectName, maxCount, skip, pageSizeHint, context); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => BinaryData.FromString(e.GetRawText()), ClientDiagnostics, _pipeline, "AuthoringClient.GetDeployments", "value", "nextLink", maxpagesize, context); + } + + /// + /// [Protocol Method] Lists the deployments belonging to a 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. + /// + /// + /// + /// + /// The new project name. + /// 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. + /// 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 Pageable GetDeployments(string projectName, int? maxCount, int? skip, int? maxpagesize, RequestContext context) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + + HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetDeploymentsRequest(projectName, maxCount, skip, pageSizeHint, context); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetDeploymentsNextPageRequest(nextLink, projectName, maxCount, skip, pageSizeHint, context); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => BinaryData.FromString(e.GetRawText()), ClientDiagnostics, _pipeline, "AuthoringClient.GetDeployments", "value", "nextLink", maxpagesize, context); + } + + /// Lists the trained models belonging to a project. + /// The new project name. + /// 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. + /// is null. + /// is an empty string, and was expected to be non-empty. + /// + public virtual AsyncPageable GetTrainedModelsAsync(string projectName, int? maxCount = null, int? skip = null, int? maxpagesize = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + + RequestContext context = cancellationToken.CanBeCanceled ? new RequestContext { CancellationToken = cancellationToken } : null; + HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetTrainedModelsRequest(projectName, maxCount, skip, pageSizeHint, context); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetTrainedModelsNextPageRequest(nextLink, projectName, maxCount, skip, pageSizeHint, context); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => ProjectTrainedModel.DeserializeProjectTrainedModel(e), ClientDiagnostics, _pipeline, "AuthoringClient.GetTrainedModels", "value", "nextLink", maxpagesize, context); + } + + /// Lists the trained models belonging to a project. + /// The new project name. + /// 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. + /// is null. + /// is an empty string, and was expected to be non-empty. + /// + public virtual Pageable GetTrainedModels(string projectName, int? maxCount = null, int? skip = null, int? maxpagesize = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + + RequestContext context = cancellationToken.CanBeCanceled ? new RequestContext { CancellationToken = cancellationToken } : null; + HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetTrainedModelsRequest(projectName, maxCount, skip, pageSizeHint, context); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetTrainedModelsNextPageRequest(nextLink, projectName, maxCount, skip, pageSizeHint, context); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => ProjectTrainedModel.DeserializeProjectTrainedModel(e), ClientDiagnostics, _pipeline, "AuthoringClient.GetTrainedModels", "value", "nextLink", maxpagesize, context); + } + + /// + /// [Protocol Method] Lists the trained models belonging to a 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. + /// + /// + /// + /// + /// The new project name. + /// 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. + /// 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 AsyncPageable GetTrainedModelsAsync(string projectName, int? maxCount, int? skip, int? maxpagesize, RequestContext context) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + + HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetTrainedModelsRequest(projectName, maxCount, skip, pageSizeHint, context); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetTrainedModelsNextPageRequest(nextLink, projectName, maxCount, skip, pageSizeHint, context); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => BinaryData.FromString(e.GetRawText()), ClientDiagnostics, _pipeline, "AuthoringClient.GetTrainedModels", "value", "nextLink", maxpagesize, context); + } + + /// + /// [Protocol Method] Lists the trained models belonging to a 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. + /// + /// + /// + /// + /// The new project name. + /// 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. + /// 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 Pageable GetTrainedModels(string projectName, int? maxCount, int? skip, int? maxpagesize, RequestContext context) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + + HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetTrainedModelsRequest(projectName, maxCount, skip, pageSizeHint, context); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetTrainedModelsNextPageRequest(nextLink, projectName, maxCount, skip, pageSizeHint, context); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => BinaryData.FromString(e.GetRawText()), ClientDiagnostics, _pipeline, "AuthoringClient.GetTrainedModels", "value", "nextLink", maxpagesize, context); + } + + /// Gets the detailed results of the evaluation for a trained model. This includes the raw inference results for the data included in the evaluation process. + /// The new project name. + /// The trained model label. + /// Specifies the method used to interpret string offsets. For additional information see https://aka.ms/text-analytics-offsets. + /// 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. + /// or is null. + /// or is an empty string, and was expected to be non-empty. + /// + public virtual AsyncPageable GetModelEvaluationResultsAsync(string projectName, string trainedModelLabel, StringIndexType stringIndexType, int? maxCount = null, int? skip = null, int? maxpagesize = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(trainedModelLabel, nameof(trainedModelLabel)); + + RequestContext context = cancellationToken.CanBeCanceled ? new RequestContext { CancellationToken = cancellationToken } : null; + HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetModelEvaluationResultsRequest(projectName, trainedModelLabel, stringIndexType.ToString(), maxCount, skip, pageSizeHint, context); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetModelEvaluationResultsNextPageRequest(nextLink, projectName, trainedModelLabel, stringIndexType.ToString(), maxCount, skip, pageSizeHint, context); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => UtteranceEvaluationResult.DeserializeUtteranceEvaluationResult(e), ClientDiagnostics, _pipeline, "AuthoringClient.GetModelEvaluationResults", "value", "nextLink", maxpagesize, context); + } + + /// Gets the detailed results of the evaluation for a trained model. This includes the raw inference results for the data included in the evaluation process. + /// The new project name. + /// The trained model label. + /// Specifies the method used to interpret string offsets. For additional information see https://aka.ms/text-analytics-offsets. + /// 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. + /// or is null. + /// or is an empty string, and was expected to be non-empty. + /// + public virtual Pageable GetModelEvaluationResults(string projectName, string trainedModelLabel, StringIndexType stringIndexType, int? maxCount = null, int? skip = null, int? maxpagesize = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(trainedModelLabel, nameof(trainedModelLabel)); + + RequestContext context = cancellationToken.CanBeCanceled ? new RequestContext { CancellationToken = cancellationToken } : null; + HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetModelEvaluationResultsRequest(projectName, trainedModelLabel, stringIndexType.ToString(), maxCount, skip, pageSizeHint, context); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetModelEvaluationResultsNextPageRequest(nextLink, projectName, trainedModelLabel, stringIndexType.ToString(), maxCount, skip, pageSizeHint, context); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => UtteranceEvaluationResult.DeserializeUtteranceEvaluationResult(e), ClientDiagnostics, _pipeline, "AuthoringClient.GetModelEvaluationResults", "value", "nextLink", maxpagesize, context); + } + + /// + /// [Protocol Method] Gets the detailed results of the evaluation for a trained model. This includes the raw inference results for the data included in the evaluation process. + /// + /// + /// + /// 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 new project name. + /// The trained model label. + /// Specifies the method used to interpret string offsets. For additional information see https://aka.ms/text-analytics-offsets. Allowed values: "Utf16CodeUnit". + /// 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. + /// , or is null. + /// or 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 AsyncPageable GetModelEvaluationResultsAsync(string projectName, string trainedModelLabel, string stringIndexType, int? maxCount = null, int? skip = null, int? maxpagesize = null, RequestContext context = null) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(trainedModelLabel, nameof(trainedModelLabel)); + Argument.AssertNotNull(stringIndexType, nameof(stringIndexType)); + + HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetModelEvaluationResultsRequest(projectName, trainedModelLabel, stringIndexType, maxCount, skip, pageSizeHint, context); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetModelEvaluationResultsNextPageRequest(nextLink, projectName, trainedModelLabel, stringIndexType, maxCount, skip, pageSizeHint, context); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => BinaryData.FromString(e.GetRawText()), ClientDiagnostics, _pipeline, "AuthoringClient.GetModelEvaluationResults", "value", "nextLink", maxpagesize, context); + } + + /// + /// [Protocol Method] Gets the detailed results of the evaluation for a trained model. This includes the raw inference results for the data included in the evaluation process. + /// + /// + /// + /// 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 new project name. + /// The trained model label. + /// Specifies the method used to interpret string offsets. For additional information see https://aka.ms/text-analytics-offsets. Allowed values: "Utf16CodeUnit". + /// 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. + /// , or is null. + /// or 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 Pageable GetModelEvaluationResults(string projectName, string trainedModelLabel, string stringIndexType, int? maxCount = null, int? skip = null, int? maxpagesize = null, RequestContext context = null) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(trainedModelLabel, nameof(trainedModelLabel)); + Argument.AssertNotNull(stringIndexType, nameof(stringIndexType)); + + HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetModelEvaluationResultsRequest(projectName, trainedModelLabel, stringIndexType, maxCount, skip, pageSizeHint, context); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetModelEvaluationResultsNextPageRequest(nextLink, projectName, trainedModelLabel, stringIndexType, maxCount, skip, pageSizeHint, context); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => BinaryData.FromString(e.GetRawText()), ClientDiagnostics, _pipeline, "AuthoringClient.GetModelEvaluationResults", "value", "nextLink", maxpagesize, context); + } + + /// Lists the deployments resources assigned to the project. + /// The new project name. + /// 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. + /// is null. + /// is an empty string, and was expected to be non-empty. + /// + public virtual AsyncPageable GetDeploymentResourcesAsync(string projectName, int? maxCount = null, int? skip = null, int? maxpagesize = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + + RequestContext context = cancellationToken.CanBeCanceled ? new RequestContext { CancellationToken = cancellationToken } : null; + HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetDeploymentResourcesRequest(projectName, maxCount, skip, pageSizeHint, context); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetDeploymentResourcesNextPageRequest(nextLink, projectName, maxCount, skip, pageSizeHint, context); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => AssignedDeploymentResource.DeserializeAssignedDeploymentResource(e), ClientDiagnostics, _pipeline, "AuthoringClient.GetDeploymentResources", "value", "nextLink", maxpagesize, context); + } + + /// Lists the deployments resources assigned to the project. + /// The new project name. + /// 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. + /// is null. + /// is an empty string, and was expected to be non-empty. + /// + public virtual Pageable GetDeploymentResources(string projectName, int? maxCount = null, int? skip = null, int? maxpagesize = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + + RequestContext context = cancellationToken.CanBeCanceled ? new RequestContext { CancellationToken = cancellationToken } : null; + HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetDeploymentResourcesRequest(projectName, maxCount, skip, pageSizeHint, context); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetDeploymentResourcesNextPageRequest(nextLink, projectName, maxCount, skip, pageSizeHint, context); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => AssignedDeploymentResource.DeserializeAssignedDeploymentResource(e), ClientDiagnostics, _pipeline, "AuthoringClient.GetDeploymentResources", "value", "nextLink", maxpagesize, context); + } + + /// + /// [Protocol Method] Lists the deployments resources assigned to 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. + /// + /// + /// + /// + /// The new project name. + /// 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. + /// 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 AsyncPageable GetDeploymentResourcesAsync(string projectName, int? maxCount, int? skip, int? maxpagesize, RequestContext context) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + + HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetDeploymentResourcesRequest(projectName, maxCount, skip, pageSizeHint, context); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetDeploymentResourcesNextPageRequest(nextLink, projectName, maxCount, skip, pageSizeHint, context); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => BinaryData.FromString(e.GetRawText()), ClientDiagnostics, _pipeline, "AuthoringClient.GetDeploymentResources", "value", "nextLink", maxpagesize, context); + } + + /// + /// [Protocol Method] Lists the deployments resources assigned to 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. + /// + /// + /// + /// + /// The new project name. + /// 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. + /// 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 Pageable GetDeploymentResources(string projectName, int? maxCount, int? skip, int? maxpagesize, RequestContext context) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + + HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetDeploymentResourcesRequest(projectName, maxCount, skip, pageSizeHint, context); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetDeploymentResourcesNextPageRequest(nextLink, projectName, maxCount, skip, pageSizeHint, context); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => BinaryData.FromString(e.GetRawText()), ClientDiagnostics, _pipeline, "AuthoringClient.GetDeploymentResources", "value", "nextLink", maxpagesize, context); + } + + /// Lists the non-expired training jobs created for a project. + /// The new project name. + /// 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. + /// is null. + /// is an empty string, and was expected to be non-empty. + /// + public virtual AsyncPageable GetTrainingJobsAsync(string projectName, int? maxCount = null, int? skip = null, int? maxpagesize = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + + RequestContext context = cancellationToken.CanBeCanceled ? new RequestContext { CancellationToken = cancellationToken } : null; + HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetTrainingJobsRequest(projectName, maxCount, skip, pageSizeHint, context); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetTrainingJobsNextPageRequest(nextLink, projectName, maxCount, skip, pageSizeHint, context); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => TrainingJobState.DeserializeTrainingJobState(e), ClientDiagnostics, _pipeline, "AuthoringClient.GetTrainingJobs", "value", "nextLink", maxpagesize, context); + } + + /// Lists the non-expired training jobs created for a project. + /// The new project name. + /// 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. + /// is null. + /// is an empty string, and was expected to be non-empty. + /// + public virtual Pageable GetTrainingJobs(string projectName, int? maxCount = null, int? skip = null, int? maxpagesize = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + + RequestContext context = cancellationToken.CanBeCanceled ? new RequestContext { CancellationToken = cancellationToken } : null; + HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetTrainingJobsRequest(projectName, maxCount, skip, pageSizeHint, context); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetTrainingJobsNextPageRequest(nextLink, projectName, maxCount, skip, pageSizeHint, context); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => TrainingJobState.DeserializeTrainingJobState(e), ClientDiagnostics, _pipeline, "AuthoringClient.GetTrainingJobs", "value", "nextLink", maxpagesize, context); + } + + /// + /// [Protocol Method] Lists the non-expired training jobs created for a 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. + /// + /// + /// + /// + /// The new project name. + /// 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. + /// 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 AsyncPageable GetTrainingJobsAsync(string projectName, int? maxCount, int? skip, int? maxpagesize, RequestContext context) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + + HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetTrainingJobsRequest(projectName, maxCount, skip, pageSizeHint, context); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetTrainingJobsNextPageRequest(nextLink, projectName, maxCount, skip, pageSizeHint, context); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => BinaryData.FromString(e.GetRawText()), ClientDiagnostics, _pipeline, "AuthoringClient.GetTrainingJobs", "value", "nextLink", maxpagesize, context); + } + + /// + /// [Protocol Method] Lists the non-expired training jobs created for a 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. + /// + /// + /// + /// + /// The new project name. + /// 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. + /// 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 Pageable GetTrainingJobs(string projectName, int? maxCount, int? skip, int? maxpagesize, RequestContext context) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + + HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetTrainingJobsRequest(projectName, maxCount, skip, pageSizeHint, context); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetTrainingJobsNextPageRequest(nextLink, projectName, maxCount, skip, pageSizeHint, context); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => BinaryData.FromString(e.GetRawText()), ClientDiagnostics, _pipeline, "AuthoringClient.GetTrainingJobs", "value", "nextLink", maxpagesize, context); + } + + /// Lists the exported models belonging to a project. + /// The new project name. + /// 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. + /// is null. + /// is an empty string, and was expected to be non-empty. + /// + public virtual AsyncPageable GetExportedModelsAsync(string projectName, int? maxCount = null, int? skip = null, int? maxpagesize = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + + RequestContext context = cancellationToken.CanBeCanceled ? new RequestContext { CancellationToken = cancellationToken } : null; + HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetExportedModelsRequest(projectName, maxCount, skip, pageSizeHint, context); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetExportedModelsNextPageRequest(nextLink, projectName, maxCount, skip, pageSizeHint, context); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => ExportedTrainedModel.DeserializeExportedTrainedModel(e), ClientDiagnostics, _pipeline, "AuthoringClient.GetExportedModels", "value", "nextLink", maxpagesize, context); + } + + /// Lists the exported models belonging to a project. + /// The new project name. + /// 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. + /// is null. + /// is an empty string, and was expected to be non-empty. + /// + public virtual Pageable GetExportedModels(string projectName, int? maxCount = null, int? skip = null, int? maxpagesize = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + + RequestContext context = cancellationToken.CanBeCanceled ? new RequestContext { CancellationToken = cancellationToken } : null; + HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetExportedModelsRequest(projectName, maxCount, skip, pageSizeHint, context); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetExportedModelsNextPageRequest(nextLink, projectName, maxCount, skip, pageSizeHint, context); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => ExportedTrainedModel.DeserializeExportedTrainedModel(e), ClientDiagnostics, _pipeline, "AuthoringClient.GetExportedModels", "value", "nextLink", maxpagesize, context); + } + + /// + /// [Protocol Method] Lists the exported models belonging to a 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. + /// + /// + /// + /// + /// The new project name. + /// 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. + /// 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 AsyncPageable GetExportedModelsAsync(string projectName, int? maxCount, int? skip, int? maxpagesize, RequestContext context) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + + HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetExportedModelsRequest(projectName, maxCount, skip, pageSizeHint, context); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetExportedModelsNextPageRequest(nextLink, projectName, maxCount, skip, pageSizeHint, context); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => BinaryData.FromString(e.GetRawText()), ClientDiagnostics, _pipeline, "AuthoringClient.GetExportedModels", "value", "nextLink", maxpagesize, context); + } + + /// + /// [Protocol Method] Lists the exported models belonging to a 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. + /// + /// + /// + /// + /// The new project name. + /// 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. + /// 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 Pageable GetExportedModels(string projectName, int? maxCount, int? skip, int? maxpagesize, RequestContext context) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + + HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetExportedModelsRequest(projectName, maxCount, skip, pageSizeHint, context); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetExportedModelsNextPageRequest(nextLink, projectName, maxCount, skip, pageSizeHint, context); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => BinaryData.FromString(e.GetRawText()), ClientDiagnostics, _pipeline, "AuthoringClient.GetExportedModels", "value", "nextLink", maxpagesize, context); + } + + // The convenience method is omitted here because it has exactly the same parameter list as the corresponding protocol method + /// + /// [Protocol Method] Deletes a project. + /// + /// + /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of the project to use. + /// 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 representing an asynchronous operation on the service. + /// + public virtual async Task DeleteProjectAsync(WaitUntil waitUntil, string projectName, RequestContext context = null) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + + using var scope = ClientDiagnostics.CreateScope("AuthoringClient.DeleteProject"); + scope.Start(); + try + { + using HttpMessage message = CreateDeleteProjectRequest(projectName, context); + return await ProtocolOperationHelpers.ProcessMessageWithoutResponseValueAsync(_pipeline, message, ClientDiagnostics, "AuthoringClient.DeleteProject", OperationFinalStateVia.OperationLocation, context, waitUntil).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + // The convenience method is omitted here because it has exactly the same parameter list as the corresponding protocol method + /// + /// [Protocol Method] Deletes a project. + /// + /// + /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of the project to use. + /// 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 representing an asynchronous operation on the service. + /// + public virtual Operation DeleteProject(WaitUntil waitUntil, string projectName, RequestContext context = null) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + + using var scope = ClientDiagnostics.CreateScope("AuthoringClient.DeleteProject"); + scope.Start(); + try + { + using HttpMessage message = CreateDeleteProjectRequest(projectName, context); + return ProtocolOperationHelpers.ProcessMessageWithoutResponseValue(_pipeline, message, ClientDiagnostics, "AuthoringClient.DeleteProject", OperationFinalStateVia.OperationLocation, context, waitUntil); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Copies an existing project to another Azure resource. + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of the project to use. + /// The copy project info. + /// The cancellation token to use. + /// or is null. + /// is an empty string, and was expected to be non-empty. + /// + public virtual async Task CopyProjectAsync(WaitUntil waitUntil, string projectName, CopyProjectDetails body, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNull(body, nameof(body)); + + using RequestContent content = body.ToRequestContent(); + RequestContext context = FromCancellationToken(cancellationToken); + return await CopyProjectAsync(waitUntil, projectName, content, context).ConfigureAwait(false); + } + + /// Copies an existing project to another Azure resource. + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of the project to use. + /// The copy project info. + /// The cancellation token to use. + /// or is null. + /// is an empty string, and was expected to be non-empty. + /// + public virtual Operation CopyProject(WaitUntil waitUntil, string projectName, CopyProjectDetails body, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNull(body, nameof(body)); + + using RequestContent content = body.ToRequestContent(); + RequestContext context = FromCancellationToken(cancellationToken); + return CopyProject(waitUntil, projectName, content, context); + } + + /// + /// [Protocol Method] Copies an existing project to another Azure resource. + /// + /// + /// + /// 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. + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of the project to use. + /// The content to send as the body of the request. + /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// or is null. + /// is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + /// The representing an asynchronous operation on the service. + /// + public virtual async Task CopyProjectAsync(WaitUntil waitUntil, string projectName, RequestContent content, RequestContext context = null) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNull(content, nameof(content)); + + using var scope = ClientDiagnostics.CreateScope("AuthoringClient.CopyProject"); + scope.Start(); + try + { + using HttpMessage message = CreateCopyProjectRequest(projectName, content, context); + return await ProtocolOperationHelpers.ProcessMessageWithoutResponseValueAsync(_pipeline, message, ClientDiagnostics, "AuthoringClient.CopyProject", OperationFinalStateVia.OperationLocation, context, waitUntil).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// [Protocol Method] Copies an existing project to another Azure resource. + /// + /// + /// + /// 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. + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of the project to use. + /// The content to send as the body of the request. + /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// or is null. + /// is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + /// The representing an asynchronous operation on the service. + /// + public virtual Operation CopyProject(WaitUntil waitUntil, string projectName, RequestContent content, RequestContext context = null) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNull(content, nameof(content)); + + using var scope = ClientDiagnostics.CreateScope("AuthoringClient.CopyProject"); + scope.Start(); + try + { + using HttpMessage message = CreateCopyProjectRequest(projectName, content, context); + return ProtocolOperationHelpers.ProcessMessageWithoutResponseValue(_pipeline, message, ClientDiagnostics, "AuthoringClient.CopyProject", OperationFinalStateVia.OperationLocation, context, waitUntil); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Triggers a job to export a project's data. + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of the project to use. + /// Specifies the method used to interpret string offsets. For additional information see https://aka.ms/text-analytics-offsets. + /// The format of the exported project file to use. + /// Kind of asset to export. + /// Trained model label to export. If the trainedModelLabel is null, the default behavior is to export the current working copy. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + /// + public virtual async Task ExportAsync(WaitUntil waitUntil, string projectName, StringIndexType stringIndexType, ExportedProjectFormat? exportedProjectFormat = null, string assetKind = null, string trainedModelLabel = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + + RequestContext context = FromCancellationToken(cancellationToken); + return await ExportAsync(waitUntil, projectName, stringIndexType.ToString(), exportedProjectFormat?.ToString(), assetKind, trainedModelLabel, context).ConfigureAwait(false); + } + + /// Triggers a job to export a project's data. + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of the project to use. + /// Specifies the method used to interpret string offsets. For additional information see https://aka.ms/text-analytics-offsets. + /// The format of the exported project file to use. + /// Kind of asset to export. + /// Trained model label to export. If the trainedModelLabel is null, the default behavior is to export the current working copy. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + /// + public virtual Operation Export(WaitUntil waitUntil, string projectName, StringIndexType stringIndexType, ExportedProjectFormat? exportedProjectFormat = null, string assetKind = null, string trainedModelLabel = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + + RequestContext context = FromCancellationToken(cancellationToken); + return Export(waitUntil, projectName, stringIndexType.ToString(), exportedProjectFormat?.ToString(), assetKind, trainedModelLabel, context); + } + + /// + /// [Protocol Method] Triggers a job to export a project's data. + /// + /// + /// + /// 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. + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of the project to use. + /// Specifies the method used to interpret string offsets. For additional information see https://aka.ms/text-analytics-offsets. Allowed values: "Utf16CodeUnit". + /// The format of the exported project file to use. Allowed values: "Conversation" | "Luis". + /// Kind of asset to export. + /// Trained model label to export. If the trainedModelLabel is null, the default behavior is to export the current working copy. + /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// or is null. + /// is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + /// The representing an asynchronous operation on the service. + /// + public virtual async Task ExportAsync(WaitUntil waitUntil, string projectName, string stringIndexType, string exportedProjectFormat = null, string assetKind = null, string trainedModelLabel = null, RequestContext context = null) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNull(stringIndexType, nameof(stringIndexType)); + + using var scope = ClientDiagnostics.CreateScope("AuthoringClient.Export"); + scope.Start(); + try + { + using HttpMessage message = CreateExportRequest(projectName, stringIndexType, exportedProjectFormat, assetKind, trainedModelLabel, context); + return await ProtocolOperationHelpers.ProcessMessageWithoutResponseValueAsync(_pipeline, message, ClientDiagnostics, "AuthoringClient.Export", OperationFinalStateVia.OperationLocation, context, waitUntil).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// [Protocol Method] Triggers a job to export a project's data. + /// + /// + /// + /// 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. + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of the project to use. + /// Specifies the method used to interpret string offsets. For additional information see https://aka.ms/text-analytics-offsets. Allowed values: "Utf16CodeUnit". + /// The format of the exported project file to use. Allowed values: "Conversation" | "Luis". + /// Kind of asset to export. + /// Trained model label to export. If the trainedModelLabel is null, the default behavior is to export the current working copy. + /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// or is null. + /// is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + /// The representing an asynchronous operation on the service. + /// + public virtual Operation Export(WaitUntil waitUntil, string projectName, string stringIndexType, string exportedProjectFormat = null, string assetKind = null, string trainedModelLabel = null, RequestContext context = null) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNull(stringIndexType, nameof(stringIndexType)); + + using var scope = ClientDiagnostics.CreateScope("AuthoringClient.Export"); + scope.Start(); + try + { + using HttpMessage message = CreateExportRequest(projectName, stringIndexType, exportedProjectFormat, assetKind, trainedModelLabel, context); + return ProtocolOperationHelpers.ProcessMessageWithoutResponseValue(_pipeline, message, ClientDiagnostics, "AuthoringClient.Export", OperationFinalStateVia.OperationLocation, context, waitUntil); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Triggers a job to import a project. If a project with the same name already exists, the data of that project is replaced. + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of the project to use. + /// The project data to import. + /// The format of the exported project file to use. + /// The cancellation token to use. + /// or is null. + /// is an empty string, and was expected to be non-empty. + /// + public virtual async Task ImportAsync(WaitUntil waitUntil, string projectName, ExportedProject body, ExportedProjectFormat? exportedProjectFormat = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNull(body, nameof(body)); + + using RequestContent content = body.ToRequestContent(); + RequestContext context = FromCancellationToken(cancellationToken); + return await ImportAsync(waitUntil, projectName, content, exportedProjectFormat?.ToString(), context).ConfigureAwait(false); + } + + /// Triggers a job to import a project. If a project with the same name already exists, the data of that project is replaced. + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of the project to use. + /// The project data to import. + /// The format of the exported project file to use. + /// The cancellation token to use. + /// or is null. + /// is an empty string, and was expected to be non-empty. + /// + public virtual Operation Import(WaitUntil waitUntil, string projectName, ExportedProject body, ExportedProjectFormat? exportedProjectFormat = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNull(body, nameof(body)); + + using RequestContent content = body.ToRequestContent(); + RequestContext context = FromCancellationToken(cancellationToken); + return Import(waitUntil, projectName, content, exportedProjectFormat?.ToString(), context); + } + + /// + /// [Protocol Method] Triggers a job to import a project. If a project with the same name already exists, the data of that project is replaced. + /// + /// + /// + /// 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. + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of the project to use. + /// The content to send as the body of the request. + /// The format of the exported project file to use. Allowed values: "Conversation" | "Luis". + /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// or is null. + /// is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + /// The representing an asynchronous operation on the service. + /// + public virtual async Task ImportAsync(WaitUntil waitUntil, string projectName, RequestContent content, string exportedProjectFormat = null, RequestContext context = null) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNull(content, nameof(content)); + + using var scope = ClientDiagnostics.CreateScope("AuthoringClient.Import"); + scope.Start(); + try + { + using HttpMessage message = CreateImportRequest(projectName, content, exportedProjectFormat, context); + return await ProtocolOperationHelpers.ProcessMessageWithoutResponseValueAsync(_pipeline, message, ClientDiagnostics, "AuthoringClient.Import", OperationFinalStateVia.OperationLocation, context, waitUntil).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// [Protocol Method] Triggers a job to import a project. If a project with the same name already exists, the data of that project is replaced. + /// + /// + /// + /// 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. + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of the project to use. + /// The content to send as the body of the request. + /// The format of the exported project file to use. Allowed values: "Conversation" | "Luis". + /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// or is null. + /// is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + /// The representing an asynchronous operation on the service. + /// + public virtual Operation Import(WaitUntil waitUntil, string projectName, RequestContent content, string exportedProjectFormat = null, RequestContext context = null) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNull(content, nameof(content)); + + using var scope = ClientDiagnostics.CreateScope("AuthoringClient.Import"); + scope.Start(); + try + { + using HttpMessage message = CreateImportRequest(projectName, content, exportedProjectFormat, context); + return ProtocolOperationHelpers.ProcessMessageWithoutResponseValue(_pipeline, message, ClientDiagnostics, "AuthoringClient.Import", OperationFinalStateVia.OperationLocation, context, waitUntil); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Triggers a training job for a project. + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of the project to use. + /// The training input parameters. + /// The cancellation token to use. + /// or is null. + /// is an empty string, and was expected to be non-empty. + /// + public virtual async Task> TrainAsync(WaitUntil waitUntil, string projectName, TrainingJobDetails body, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNull(body, nameof(body)); + + using RequestContent content = body.ToRequestContent(); + RequestContext context = FromCancellationToken(cancellationToken); + Operation response = await TrainAsync(waitUntil, projectName, content, context).ConfigureAwait(false); + return ProtocolOperationHelpers.Convert(response, FetchTrainingJobResultFromTrainingJobState, ClientDiagnostics, "AuthoringClient.Train"); + } + + /// Triggers a training job for a project. + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of the project to use. + /// The training input parameters. + /// The cancellation token to use. + /// or is null. + /// is an empty string, and was expected to be non-empty. + /// + public virtual Operation Train(WaitUntil waitUntil, string projectName, TrainingJobDetails body, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNull(body, nameof(body)); + + using RequestContent content = body.ToRequestContent(); + RequestContext context = FromCancellationToken(cancellationToken); + Operation response = Train(waitUntil, projectName, content, context); + return ProtocolOperationHelpers.Convert(response, FetchTrainingJobResultFromTrainingJobState, ClientDiagnostics, "AuthoringClient.Train"); + } + + /// + /// [Protocol Method] Triggers a training job for a 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. + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of the project to use. + /// The content to send as the body of the request. + /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// or is null. + /// is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + /// The representing an asynchronous operation on the service. + /// + public virtual async Task> TrainAsync(WaitUntil waitUntil, string projectName, RequestContent content, RequestContext context = null) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNull(content, nameof(content)); + + using var scope = ClientDiagnostics.CreateScope("AuthoringClient.Train"); + scope.Start(); + try + { + using HttpMessage message = CreateTrainRequest(projectName, content, context); + return await ProtocolOperationHelpers.ProcessMessageAsync(_pipeline, message, ClientDiagnostics, "AuthoringClient.Train", OperationFinalStateVia.OperationLocation, context, waitUntil).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// [Protocol Method] Triggers a training job for a 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. + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of the project to use. + /// The content to send as the body of the request. + /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// or is null. + /// is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + /// The representing an asynchronous operation on the service. + /// + public virtual Operation Train(WaitUntil waitUntil, string projectName, RequestContent content, RequestContext context = null) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNull(content, nameof(content)); + + using var scope = ClientDiagnostics.CreateScope("AuthoringClient.Train"); + scope.Start(); + try + { + using HttpMessage message = CreateTrainRequest(projectName, content, context); + return ProtocolOperationHelpers.ProcessMessage(_pipeline, message, ClientDiagnostics, "AuthoringClient.Train", OperationFinalStateVia.OperationLocation, context, waitUntil); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Swaps two existing deployments with each other. + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of the project to use. + /// The job object to swap two deployments. + /// The cancellation token to use. + /// or is null. + /// is an empty string, and was expected to be non-empty. + /// + public virtual async Task SwapDeploymentsAsync(WaitUntil waitUntil, string projectName, SwapDeploymentsDetails body, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNull(body, nameof(body)); + + using RequestContent content = body.ToRequestContent(); + RequestContext context = FromCancellationToken(cancellationToken); + return await SwapDeploymentsAsync(waitUntil, projectName, content, context).ConfigureAwait(false); + } + + /// Swaps two existing deployments with each other. + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of the project to use. + /// The job object to swap two deployments. + /// The cancellation token to use. + /// or is null. + /// is an empty string, and was expected to be non-empty. + /// + public virtual Operation SwapDeployments(WaitUntil waitUntil, string projectName, SwapDeploymentsDetails body, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNull(body, nameof(body)); + + using RequestContent content = body.ToRequestContent(); + RequestContext context = FromCancellationToken(cancellationToken); + return SwapDeployments(waitUntil, projectName, content, context); + } + + /// + /// [Protocol Method] Swaps two existing deployments with each other. + /// + /// + /// + /// 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. + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of the project to use. + /// The content to send as the body of the request. + /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// or is null. + /// is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + /// The representing an asynchronous operation on the service. + /// + public virtual async Task SwapDeploymentsAsync(WaitUntil waitUntil, string projectName, RequestContent content, RequestContext context = null) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNull(content, nameof(content)); + + using var scope = ClientDiagnostics.CreateScope("AuthoringClient.SwapDeployments"); + scope.Start(); + try + { + using HttpMessage message = CreateSwapDeploymentsRequest(projectName, content, context); + return await ProtocolOperationHelpers.ProcessMessageWithoutResponseValueAsync(_pipeline, message, ClientDiagnostics, "AuthoringClient.SwapDeployments", OperationFinalStateVia.OperationLocation, context, waitUntil).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// [Protocol Method] Swaps two existing deployments with each other. + /// + /// + /// + /// 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. + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of the project to use. + /// The content to send as the body of the request. + /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// or is null. + /// is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + /// The representing an asynchronous operation on the service. + /// + public virtual Operation SwapDeployments(WaitUntil waitUntil, string projectName, RequestContent content, RequestContext context = null) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNull(content, nameof(content)); + + using var scope = ClientDiagnostics.CreateScope("AuthoringClient.SwapDeployments"); + scope.Start(); + try + { + using HttpMessage message = CreateSwapDeploymentsRequest(projectName, content, context); + return ProtocolOperationHelpers.ProcessMessageWithoutResponseValue(_pipeline, message, ClientDiagnostics, "AuthoringClient.SwapDeployments", OperationFinalStateVia.OperationLocation, context, waitUntil); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Creates a new deployment or replaces an existing one. + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of the project to use. + /// The name of the specific deployment of the project to use. + /// The new deployment info. + /// The cancellation token to use. + /// , or is null. + /// or is an empty string, and was expected to be non-empty. + /// + public virtual async Task DeployProjectAsync(WaitUntil waitUntil, string projectName, string deploymentName, CreateDeploymentDetails body, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(deploymentName, nameof(deploymentName)); + Argument.AssertNotNull(body, nameof(body)); + + using RequestContent content = body.ToRequestContent(); + RequestContext context = FromCancellationToken(cancellationToken); + return await DeployProjectAsync(waitUntil, projectName, deploymentName, content, context).ConfigureAwait(false); + } + + /// Creates a new deployment or replaces an existing one. + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of the project to use. + /// The name of the specific deployment of the project to use. + /// The new deployment info. + /// The cancellation token to use. + /// , or is null. + /// or is an empty string, and was expected to be non-empty. + /// + public virtual Operation DeployProject(WaitUntil waitUntil, string projectName, string deploymentName, CreateDeploymentDetails body, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(deploymentName, nameof(deploymentName)); + Argument.AssertNotNull(body, nameof(body)); + + using RequestContent content = body.ToRequestContent(); + RequestContext context = FromCancellationToken(cancellationToken); + return DeployProject(waitUntil, projectName, deploymentName, content, context); + } + + /// + /// [Protocol Method] Creates a new deployment or replaces an existing one. + /// + /// + /// + /// 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. + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of the project to use. + /// The name of the specific deployment of the project to use. + /// The content to send as the body of the request. + /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// , or is null. + /// or is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + /// The representing an asynchronous operation on the service. + /// + public virtual async Task DeployProjectAsync(WaitUntil waitUntil, string projectName, string deploymentName, RequestContent content, RequestContext context = null) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(deploymentName, nameof(deploymentName)); + Argument.AssertNotNull(content, nameof(content)); + + using var scope = ClientDiagnostics.CreateScope("AuthoringClient.DeployProject"); + scope.Start(); + try + { + using HttpMessage message = CreateDeployProjectRequest(projectName, deploymentName, content, context); + return await ProtocolOperationHelpers.ProcessMessageWithoutResponseValueAsync(_pipeline, message, ClientDiagnostics, "AuthoringClient.DeployProject", OperationFinalStateVia.OperationLocation, context, waitUntil).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// [Protocol Method] Creates a new deployment or replaces an existing one. + /// + /// + /// + /// 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. + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of the project to use. + /// The name of the specific deployment of the project to use. + /// The content to send as the body of the request. + /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// , or is null. + /// or is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + /// The representing an asynchronous operation on the service. + /// + public virtual Operation DeployProject(WaitUntil waitUntil, string projectName, string deploymentName, RequestContent content, RequestContext context = null) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(deploymentName, nameof(deploymentName)); + Argument.AssertNotNull(content, nameof(content)); + + using var scope = ClientDiagnostics.CreateScope("AuthoringClient.DeployProject"); + scope.Start(); + try + { + using HttpMessage message = CreateDeployProjectRequest(projectName, deploymentName, content, context); + return ProtocolOperationHelpers.ProcessMessageWithoutResponseValue(_pipeline, message, ClientDiagnostics, "AuthoringClient.DeployProject", OperationFinalStateVia.OperationLocation, context, waitUntil); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + // The convenience method is omitted here because it has exactly the same parameter list as the corresponding protocol method + /// + /// [Protocol Method] Deletes a project deployment. + /// + /// + /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of the project to use. + /// The name of the specific deployment of the project to use. + /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// or is null. + /// or is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + /// The representing an asynchronous operation on the service. + /// + public virtual async Task DeleteDeploymentAsync(WaitUntil waitUntil, string projectName, string deploymentName, RequestContext context = null) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(deploymentName, nameof(deploymentName)); + + using var scope = ClientDiagnostics.CreateScope("AuthoringClient.DeleteDeployment"); + scope.Start(); + try + { + using HttpMessage message = CreateDeleteDeploymentRequest(projectName, deploymentName, context); + return await ProtocolOperationHelpers.ProcessMessageWithoutResponseValueAsync(_pipeline, message, ClientDiagnostics, "AuthoringClient.DeleteDeployment", OperationFinalStateVia.OperationLocation, context, waitUntil).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + // The convenience method is omitted here because it has exactly the same parameter list as the corresponding protocol method + /// + /// [Protocol Method] Deletes a project deployment. + /// + /// + /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of the project to use. + /// The name of the specific deployment of the project to use. + /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// or is null. + /// or is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + /// The representing an asynchronous operation on the service. + /// + public virtual Operation DeleteDeployment(WaitUntil waitUntil, string projectName, string deploymentName, RequestContext context = null) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(deploymentName, nameof(deploymentName)); + + using var scope = ClientDiagnostics.CreateScope("AuthoringClient.DeleteDeployment"); + scope.Start(); + try + { + using HttpMessage message = CreateDeleteDeploymentRequest(projectName, deploymentName, context); + return ProtocolOperationHelpers.ProcessMessageWithoutResponseValue(_pipeline, message, ClientDiagnostics, "AuthoringClient.DeleteDeployment", OperationFinalStateVia.OperationLocation, context, waitUntil); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Deletes a project deployment from the specified assigned resources. + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of the project to use. + /// The name of the specific deployment of the project to use. + /// The options for deleting the deployment. + /// The cancellation token to use. + /// , or is null. + /// or is an empty string, and was expected to be non-empty. + /// + public virtual async Task DeleteDeploymentFromResourcesAsync(WaitUntil waitUntil, string projectName, string deploymentName, DeleteDeploymentDetails body, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(deploymentName, nameof(deploymentName)); + Argument.AssertNotNull(body, nameof(body)); + + using RequestContent content = body.ToRequestContent(); + RequestContext context = FromCancellationToken(cancellationToken); + return await DeleteDeploymentFromResourcesAsync(waitUntil, projectName, deploymentName, content, context).ConfigureAwait(false); + } + + /// Deletes a project deployment from the specified assigned resources. + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of the project to use. + /// The name of the specific deployment of the project to use. + /// The options for deleting the deployment. + /// The cancellation token to use. + /// , or is null. + /// or is an empty string, and was expected to be non-empty. + /// + public virtual Operation DeleteDeploymentFromResources(WaitUntil waitUntil, string projectName, string deploymentName, DeleteDeploymentDetails body, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(deploymentName, nameof(deploymentName)); + Argument.AssertNotNull(body, nameof(body)); + + using RequestContent content = body.ToRequestContent(); + RequestContext context = FromCancellationToken(cancellationToken); + return DeleteDeploymentFromResources(waitUntil, projectName, deploymentName, content, context); + } + + /// + /// [Protocol Method] Deletes a project deployment from the specified assigned resources. + /// + /// + /// + /// 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. + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of the project to use. + /// The name of the specific deployment of the project to use. + /// The content to send as the body of the request. + /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// , or is null. + /// or is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + /// The representing an asynchronous operation on the service. + /// + public virtual async Task DeleteDeploymentFromResourcesAsync(WaitUntil waitUntil, string projectName, string deploymentName, RequestContent content, RequestContext context = null) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(deploymentName, nameof(deploymentName)); + Argument.AssertNotNull(content, nameof(content)); + + using var scope = ClientDiagnostics.CreateScope("AuthoringClient.DeleteDeploymentFromResources"); + scope.Start(); + try + { + using HttpMessage message = CreateDeleteDeploymentFromResourcesRequest(projectName, deploymentName, content, context); + return await ProtocolOperationHelpers.ProcessMessageWithoutResponseValueAsync(_pipeline, message, ClientDiagnostics, "AuthoringClient.DeleteDeploymentFromResources", OperationFinalStateVia.OperationLocation, context, waitUntil).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// [Protocol Method] Deletes a project deployment from the specified assigned resources. + /// + /// + /// + /// 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. + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of the project to use. + /// The name of the specific deployment of the project to use. + /// The content to send as the body of the request. + /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// , or is null. + /// or is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + /// The representing an asynchronous operation on the service. + /// + public virtual Operation DeleteDeploymentFromResources(WaitUntil waitUntil, string projectName, string deploymentName, RequestContent content, RequestContext context = null) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(deploymentName, nameof(deploymentName)); + Argument.AssertNotNull(content, nameof(content)); + + using var scope = ClientDiagnostics.CreateScope("AuthoringClient.DeleteDeploymentFromResources"); + scope.Start(); + try + { + using HttpMessage message = CreateDeleteDeploymentFromResourcesRequest(projectName, deploymentName, content, context); + return ProtocolOperationHelpers.ProcessMessageWithoutResponseValue(_pipeline, message, ClientDiagnostics, "AuthoringClient.DeleteDeploymentFromResources", OperationFinalStateVia.OperationLocation, context, waitUntil); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Triggers evaluation operation on a trained model. + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of the project to use. + /// The trained model label. + /// The training input parameters. + /// The cancellation token to use. + /// , or is null. + /// or is an empty string, and was expected to be non-empty. + /// + public virtual async Task> EvaluateModelAsync(WaitUntil waitUntil, string projectName, string trainedModelLabel, EvaluationDetails body, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(trainedModelLabel, nameof(trainedModelLabel)); + Argument.AssertNotNull(body, nameof(body)); + + using RequestContent content = body.ToRequestContent(); + RequestContext context = FromCancellationToken(cancellationToken); + Operation response = await EvaluateModelAsync(waitUntil, projectName, trainedModelLabel, content, context).ConfigureAwait(false); + return ProtocolOperationHelpers.Convert(response, FetchEvaluationJobResultFromEvaluationJobState, ClientDiagnostics, "AuthoringClient.EvaluateModel"); + } + + /// Triggers evaluation operation on a trained model. + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of the project to use. + /// The trained model label. + /// The training input parameters. + /// The cancellation token to use. + /// , or is null. + /// or is an empty string, and was expected to be non-empty. + /// + public virtual Operation EvaluateModel(WaitUntil waitUntil, string projectName, string trainedModelLabel, EvaluationDetails body, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(trainedModelLabel, nameof(trainedModelLabel)); + Argument.AssertNotNull(body, nameof(body)); + + using RequestContent content = body.ToRequestContent(); + RequestContext context = FromCancellationToken(cancellationToken); + Operation response = EvaluateModel(waitUntil, projectName, trainedModelLabel, content, context); + return ProtocolOperationHelpers.Convert(response, FetchEvaluationJobResultFromEvaluationJobState, ClientDiagnostics, "AuthoringClient.EvaluateModel"); + } + + /// + /// [Protocol Method] Triggers evaluation operation on a trained model. + /// + /// + /// + /// 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. + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of the project to use. + /// The trained model label. + /// The content to send as the body of the request. + /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// , or is null. + /// or is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + /// The representing an asynchronous operation on the service. + /// + public virtual async Task> EvaluateModelAsync(WaitUntil waitUntil, string projectName, string trainedModelLabel, RequestContent content, RequestContext context = null) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(trainedModelLabel, nameof(trainedModelLabel)); + Argument.AssertNotNull(content, nameof(content)); + + using var scope = ClientDiagnostics.CreateScope("AuthoringClient.EvaluateModel"); + scope.Start(); + try + { + using HttpMessage message = CreateEvaluateModelRequest(projectName, trainedModelLabel, content, context); + return await ProtocolOperationHelpers.ProcessMessageAsync(_pipeline, message, ClientDiagnostics, "AuthoringClient.EvaluateModel", OperationFinalStateVia.OperationLocation, context, waitUntil).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// [Protocol Method] Triggers evaluation operation on a trained model. + /// + /// + /// + /// 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. + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of the project to use. + /// The trained model label. + /// The content to send as the body of the request. + /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// , or is null. + /// or is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + /// The representing an asynchronous operation on the service. + /// + public virtual Operation EvaluateModel(WaitUntil waitUntil, string projectName, string trainedModelLabel, RequestContent content, RequestContext context = null) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(trainedModelLabel, nameof(trainedModelLabel)); + Argument.AssertNotNull(content, nameof(content)); + + using var scope = ClientDiagnostics.CreateScope("AuthoringClient.EvaluateModel"); + scope.Start(); + try + { + using HttpMessage message = CreateEvaluateModelRequest(projectName, trainedModelLabel, content, context); + return ProtocolOperationHelpers.ProcessMessage(_pipeline, message, ClientDiagnostics, "AuthoringClient.EvaluateModel", OperationFinalStateVia.OperationLocation, context, waitUntil); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + // The convenience method is omitted here because it has exactly the same parameter list as the corresponding protocol method + /// + /// [Protocol Method] Restores the snapshot of this trained model to be the current working directory of the project. + /// + /// + /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of the project to use. + /// The trained model label. + /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// or is null. + /// or is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + /// The representing an asynchronous operation on the service. + /// + public virtual async Task LoadSnapshotAsync(WaitUntil waitUntil, string projectName, string trainedModelLabel, RequestContext context = null) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(trainedModelLabel, nameof(trainedModelLabel)); + + using var scope = ClientDiagnostics.CreateScope("AuthoringClient.LoadSnapshot"); + scope.Start(); + try + { + using HttpMessage message = CreateLoadSnapshotRequest(projectName, trainedModelLabel, context); + return await ProtocolOperationHelpers.ProcessMessageWithoutResponseValueAsync(_pipeline, message, ClientDiagnostics, "AuthoringClient.LoadSnapshot", OperationFinalStateVia.OperationLocation, context, waitUntil).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + // The convenience method is omitted here because it has exactly the same parameter list as the corresponding protocol method + /// + /// [Protocol Method] Restores the snapshot of this trained model to be the current working directory of the project. + /// + /// + /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of the project to use. + /// The trained model label. + /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// or is null. + /// or is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + /// The representing an asynchronous operation on the service. + /// + public virtual Operation LoadSnapshot(WaitUntil waitUntil, string projectName, string trainedModelLabel, RequestContext context = null) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(trainedModelLabel, nameof(trainedModelLabel)); + + using var scope = ClientDiagnostics.CreateScope("AuthoringClient.LoadSnapshot"); + scope.Start(); + try + { + using HttpMessage message = CreateLoadSnapshotRequest(projectName, trainedModelLabel, context); + return ProtocolOperationHelpers.ProcessMessageWithoutResponseValue(_pipeline, message, ClientDiagnostics, "AuthoringClient.LoadSnapshot", OperationFinalStateVia.OperationLocation, context, waitUntil); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Assign new Azure resources to a project to allow deploying new deployments to them. This API is available only via AAD authentication and not supported via subscription key authentication. For more details about AAD authentication, check here: https://learn.microsoft.com/en-us/azure/cognitive-services/authentication?tabs=powershell#authenticate-with-azure-active-directory. + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of the project to use. + /// The new project resources info. + /// The cancellation token to use. + /// or is null. + /// is an empty string, and was expected to be non-empty. + /// + public virtual async Task AssignDeploymentResourcesAsync(WaitUntil waitUntil, string projectName, AssignDeploymentResourcesDetails body, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNull(body, nameof(body)); + + using RequestContent content = body.ToRequestContent(); + RequestContext context = FromCancellationToken(cancellationToken); + return await AssignDeploymentResourcesAsync(waitUntil, projectName, content, context).ConfigureAwait(false); + } + + /// Assign new Azure resources to a project to allow deploying new deployments to them. This API is available only via AAD authentication and not supported via subscription key authentication. For more details about AAD authentication, check here: https://learn.microsoft.com/en-us/azure/cognitive-services/authentication?tabs=powershell#authenticate-with-azure-active-directory. + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of the project to use. + /// The new project resources info. + /// The cancellation token to use. + /// or is null. + /// is an empty string, and was expected to be non-empty. + /// + public virtual Operation AssignDeploymentResources(WaitUntil waitUntil, string projectName, AssignDeploymentResourcesDetails body, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNull(body, nameof(body)); + + using RequestContent content = body.ToRequestContent(); + RequestContext context = FromCancellationToken(cancellationToken); + return AssignDeploymentResources(waitUntil, projectName, content, context); + } + + /// + /// [Protocol Method] Assign new Azure resources to a project to allow deploying new deployments to them. This API is available only via AAD authentication and not supported via subscription key authentication. For more details about AAD authentication, check here: https://learn.microsoft.com/en-us/azure/cognitive-services/authentication?tabs=powershell#authenticate-with-azure-active-directory + /// + /// + /// + /// 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. + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of the project to use. + /// The content to send as the body of the request. + /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// or is null. + /// is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + /// The representing an asynchronous operation on the service. + /// + public virtual async Task AssignDeploymentResourcesAsync(WaitUntil waitUntil, string projectName, RequestContent content, RequestContext context = null) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNull(content, nameof(content)); + + using var scope = ClientDiagnostics.CreateScope("AuthoringClient.AssignDeploymentResources"); + scope.Start(); + try + { + using HttpMessage message = CreateAssignDeploymentResourcesRequest(projectName, content, context); + return await ProtocolOperationHelpers.ProcessMessageWithoutResponseValueAsync(_pipeline, message, ClientDiagnostics, "AuthoringClient.AssignDeploymentResources", OperationFinalStateVia.OperationLocation, context, waitUntil).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// [Protocol Method] Assign new Azure resources to a project to allow deploying new deployments to them. This API is available only via AAD authentication and not supported via subscription key authentication. For more details about AAD authentication, check here: https://learn.microsoft.com/en-us/azure/cognitive-services/authentication?tabs=powershell#authenticate-with-azure-active-directory + /// + /// + /// + /// 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. + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of the project to use. + /// The content to send as the body of the request. + /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// or is null. + /// is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + /// The representing an asynchronous operation on the service. + /// + public virtual Operation AssignDeploymentResources(WaitUntil waitUntil, string projectName, RequestContent content, RequestContext context = null) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNull(content, nameof(content)); + + using var scope = ClientDiagnostics.CreateScope("AuthoringClient.AssignDeploymentResources"); + scope.Start(); + try + { + using HttpMessage message = CreateAssignDeploymentResourcesRequest(projectName, content, context); + return ProtocolOperationHelpers.ProcessMessageWithoutResponseValue(_pipeline, message, ClientDiagnostics, "AuthoringClient.AssignDeploymentResources", OperationFinalStateVia.OperationLocation, context, waitUntil); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Unassign resources from a project. This disallows deploying new deployments to these resources, and deletes existing deployments assigned to them. + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of the project to use. + /// The info for the deployment resources to be deleted. + /// The cancellation token to use. + /// or is null. + /// is an empty string, and was expected to be non-empty. + /// + public virtual async Task UnassignDeploymentResourcesAsync(WaitUntil waitUntil, string projectName, UnassignDeploymentResourcesDetails body, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNull(body, nameof(body)); + + using RequestContent content = body.ToRequestContent(); + RequestContext context = FromCancellationToken(cancellationToken); + return await UnassignDeploymentResourcesAsync(waitUntil, projectName, content, context).ConfigureAwait(false); + } + + /// Unassign resources from a project. This disallows deploying new deployments to these resources, and deletes existing deployments assigned to them. + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of the project to use. + /// The info for the deployment resources to be deleted. + /// The cancellation token to use. + /// or is null. + /// is an empty string, and was expected to be non-empty. + /// + public virtual Operation UnassignDeploymentResources(WaitUntil waitUntil, string projectName, UnassignDeploymentResourcesDetails body, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNull(body, nameof(body)); + + using RequestContent content = body.ToRequestContent(); + RequestContext context = FromCancellationToken(cancellationToken); + return UnassignDeploymentResources(waitUntil, projectName, content, context); + } + + /// + /// [Protocol Method] Unassign resources from a project. This disallows deploying new deployments to these resources, and deletes existing deployments assigned to them. + /// + /// + /// + /// 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. + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of the project to use. + /// The content to send as the body of the request. + /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// or is null. + /// is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + /// The representing an asynchronous operation on the service. + /// + public virtual async Task UnassignDeploymentResourcesAsync(WaitUntil waitUntil, string projectName, RequestContent content, RequestContext context = null) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNull(content, nameof(content)); + + using var scope = ClientDiagnostics.CreateScope("AuthoringClient.UnassignDeploymentResources"); + scope.Start(); + try + { + using HttpMessage message = CreateUnassignDeploymentResourcesRequest(projectName, content, context); + return await ProtocolOperationHelpers.ProcessMessageWithoutResponseValueAsync(_pipeline, message, ClientDiagnostics, "AuthoringClient.UnassignDeploymentResources", OperationFinalStateVia.OperationLocation, context, waitUntil).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// [Protocol Method] Unassign resources from a project. This disallows deploying new deployments to these resources, and deletes existing deployments assigned to them. + /// + /// + /// + /// 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. + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of the project to use. + /// The content to send as the body of the request. + /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// or is null. + /// is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + /// The representing an asynchronous operation on the service. + /// + public virtual Operation UnassignDeploymentResources(WaitUntil waitUntil, string projectName, RequestContent content, RequestContext context = null) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNull(content, nameof(content)); + + using var scope = ClientDiagnostics.CreateScope("AuthoringClient.UnassignDeploymentResources"); + scope.Start(); + try + { + using HttpMessage message = CreateUnassignDeploymentResourcesRequest(projectName, content, context); + return ProtocolOperationHelpers.ProcessMessageWithoutResponseValue(_pipeline, message, ClientDiagnostics, "AuthoringClient.UnassignDeploymentResources", OperationFinalStateVia.OperationLocation, context, waitUntil); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Triggers a cancellation for a running training job. + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of the project to use. + /// The job ID. + /// The cancellation token to use. + /// or is null. + /// or is an empty string, and was expected to be non-empty. + /// + public virtual async Task> CancelTrainingJobAsync(WaitUntil waitUntil, string projectName, string jobId, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); + + RequestContext context = FromCancellationToken(cancellationToken); + Operation response = await CancelTrainingJobAsync(waitUntil, projectName, jobId, context).ConfigureAwait(false); + return ProtocolOperationHelpers.Convert(response, FetchTrainingJobResultFromTrainingJobState, ClientDiagnostics, "AuthoringClient.CancelTrainingJob"); + } + + /// Triggers a cancellation for a running training job. + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of the project to use. + /// The job ID. + /// The cancellation token to use. + /// or is null. + /// or is an empty string, and was expected to be non-empty. + /// + public virtual Operation CancelTrainingJob(WaitUntil waitUntil, string projectName, string jobId, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); + + RequestContext context = FromCancellationToken(cancellationToken); + Operation response = CancelTrainingJob(waitUntil, projectName, jobId, context); + return ProtocolOperationHelpers.Convert(response, FetchTrainingJobResultFromTrainingJobState, ClientDiagnostics, "AuthoringClient.CancelTrainingJob"); + } + + /// + /// [Protocol Method] Triggers a cancellation for a running training job. + /// + /// + /// + /// 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. + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of the project to use. + /// The job ID. + /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// or is null. + /// or is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + /// The representing an asynchronous operation on the service. + /// + public virtual async Task> CancelTrainingJobAsync(WaitUntil waitUntil, string projectName, string jobId, RequestContext context) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); + + using var scope = ClientDiagnostics.CreateScope("AuthoringClient.CancelTrainingJob"); + scope.Start(); + try + { + using HttpMessage message = CreateCancelTrainingJobRequest(projectName, jobId, context); + return await ProtocolOperationHelpers.ProcessMessageAsync(_pipeline, message, ClientDiagnostics, "AuthoringClient.CancelTrainingJob", OperationFinalStateVia.OperationLocation, context, waitUntil).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// [Protocol Method] Triggers a cancellation for a running training job. + /// + /// + /// + /// 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. + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of the project to use. + /// The job ID. + /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// or is null. + /// or is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + /// The representing an asynchronous operation on the service. + /// + public virtual Operation CancelTrainingJob(WaitUntil waitUntil, string projectName, string jobId, RequestContext context) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(jobId, nameof(jobId)); + + using var scope = ClientDiagnostics.CreateScope("AuthoringClient.CancelTrainingJob"); + scope.Start(); + try + { + using HttpMessage message = CreateCancelTrainingJobRequest(projectName, jobId, context); + return ProtocolOperationHelpers.ProcessMessage(_pipeline, message, ClientDiagnostics, "AuthoringClient.CancelTrainingJob", OperationFinalStateVia.OperationLocation, context, waitUntil); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + // The convenience method is omitted here because it has exactly the same parameter list as the corresponding protocol method + /// + /// [Protocol Method] Deletes an existing exported model. + /// + /// + /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of the project to use. + /// The exported model name. + /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// or is null. + /// or is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + /// The representing an asynchronous operation on the service. + /// + public virtual async Task DeleteExportedModelAsync(WaitUntil waitUntil, string projectName, string exportedModelName, RequestContext context = null) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(exportedModelName, nameof(exportedModelName)); + + using var scope = ClientDiagnostics.CreateScope("AuthoringClient.DeleteExportedModel"); + scope.Start(); + try + { + using HttpMessage message = CreateDeleteExportedModelRequest(projectName, exportedModelName, context); + return await ProtocolOperationHelpers.ProcessMessageWithoutResponseValueAsync(_pipeline, message, ClientDiagnostics, "AuthoringClient.DeleteExportedModel", OperationFinalStateVia.OperationLocation, context, waitUntil).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + // The convenience method is omitted here because it has exactly the same parameter list as the corresponding protocol method + /// + /// [Protocol Method] Deletes an existing exported model. + /// + /// + /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of the project to use. + /// The exported model name. + /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// or is null. + /// or is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + /// The representing an asynchronous operation on the service. + /// + public virtual Operation DeleteExportedModel(WaitUntil waitUntil, string projectName, string exportedModelName, RequestContext context = null) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(exportedModelName, nameof(exportedModelName)); + + using var scope = ClientDiagnostics.CreateScope("AuthoringClient.DeleteExportedModel"); + scope.Start(); + try + { + using HttpMessage message = CreateDeleteExportedModelRequest(projectName, exportedModelName, context); + return ProtocolOperationHelpers.ProcessMessageWithoutResponseValue(_pipeline, message, ClientDiagnostics, "AuthoringClient.DeleteExportedModel", OperationFinalStateVia.OperationLocation, context, waitUntil); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Creates a new exported model or replaces an existing one. + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of the project to use. + /// The exported model name. + /// The exported model info. + /// The cancellation token to use. + /// , or is null. + /// or is an empty string, and was expected to be non-empty. + /// + public virtual async Task CreateOrUpdateExportedModelAsync(WaitUntil waitUntil, string projectName, string exportedModelName, ExportedModelDetails body, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(exportedModelName, nameof(exportedModelName)); + Argument.AssertNotNull(body, nameof(body)); + + using RequestContent content = body.ToRequestContent(); + RequestContext context = FromCancellationToken(cancellationToken); + return await CreateOrUpdateExportedModelAsync(waitUntil, projectName, exportedModelName, content, context).ConfigureAwait(false); + } + + /// Creates a new exported model or replaces an existing one. + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of the project to use. + /// The exported model name. + /// The exported model info. + /// The cancellation token to use. + /// , or is null. + /// or is an empty string, and was expected to be non-empty. + /// + public virtual Operation CreateOrUpdateExportedModel(WaitUntil waitUntil, string projectName, string exportedModelName, ExportedModelDetails body, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(exportedModelName, nameof(exportedModelName)); + Argument.AssertNotNull(body, nameof(body)); + + using RequestContent content = body.ToRequestContent(); + RequestContext context = FromCancellationToken(cancellationToken); + return CreateOrUpdateExportedModel(waitUntil, projectName, exportedModelName, content, context); + } + + /// + /// [Protocol Method] Creates a new exported model or replaces an existing one. + /// + /// + /// + /// 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. + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of the project to use. + /// The exported model name. + /// The content to send as the body of the request. + /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// , or is null. + /// or is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + /// The representing an asynchronous operation on the service. + /// + public virtual async Task CreateOrUpdateExportedModelAsync(WaitUntil waitUntil, string projectName, string exportedModelName, RequestContent content, RequestContext context = null) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(exportedModelName, nameof(exportedModelName)); + Argument.AssertNotNull(content, nameof(content)); + + using var scope = ClientDiagnostics.CreateScope("AuthoringClient.CreateOrUpdateExportedModel"); + scope.Start(); + try + { + using HttpMessage message = CreateCreateOrUpdateExportedModelRequest(projectName, exportedModelName, content, context); + return await ProtocolOperationHelpers.ProcessMessageWithoutResponseValueAsync(_pipeline, message, ClientDiagnostics, "AuthoringClient.CreateOrUpdateExportedModel", OperationFinalStateVia.OperationLocation, context, waitUntil).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// [Protocol Method] Creates a new exported model or replaces an existing one. + /// + /// + /// + /// 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. + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of the project to use. + /// The exported model name. + /// The content to send as the body of the request. + /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// , or is null. + /// or is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + /// The representing an asynchronous operation on the service. + /// + public virtual Operation CreateOrUpdateExportedModel(WaitUntil waitUntil, string projectName, string exportedModelName, RequestContent content, RequestContext context = null) + { + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNullOrEmpty(exportedModelName, nameof(exportedModelName)); + Argument.AssertNotNull(content, nameof(content)); + + using var scope = ClientDiagnostics.CreateScope("AuthoringClient.CreateOrUpdateExportedModel"); + scope.Start(); + try + { + using HttpMessage message = CreateCreateOrUpdateExportedModelRequest(projectName, exportedModelName, content, context); + return ProtocolOperationHelpers.ProcessMessageWithoutResponseValue(_pipeline, message, ClientDiagnostics, "AuthoringClient.CreateOrUpdateExportedModel", OperationFinalStateVia.OperationLocation, context, waitUntil); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + internal HttpMessage CreateGetProjectsRequest(int? maxCount, int? skip, int? maxpagesize, RequestContext context) + { + var message = _pipeline.CreateMessage(context, ResponseClassifier200); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRaw("/language", false); + uri.AppendPath("/authoring/analyze-conversations/projects", false); + uri.AppendQuery("api-version", _apiVersion, 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 CreateGetProjectRequest(string projectName, RequestContext context) + { + var message = _pipeline.CreateMessage(context, ResponseClassifier200); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRaw("/language", false); + uri.AppendPath("/authoring/analyze-conversations/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateCreateProjectRequest(string projectName, RequestContent content, RequestContext context) + { + var message = _pipeline.CreateMessage(context, ResponseClassifier200201); + var request = message.Request; + request.Method = RequestMethod.Patch; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRaw("/language", false); + uri.AppendPath("/authoring/analyze-conversations/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/merge-patch+json"); + request.Content = content; + return message; + } + + internal HttpMessage CreateGetProjectDeletionStatusRequest(string jobId, RequestContext context) + { + var message = _pipeline.CreateMessage(context, ResponseClassifier200); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRaw("/language", false); + uri.AppendPath("/authoring/analyze-conversations/projects/global/deletion-jobs/", false); + uri.AppendPath(jobId, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateDeleteProjectRequest(string projectName, RequestContext context) + { + var message = _pipeline.CreateMessage(context, ResponseClassifier202); + var request = message.Request; + request.Method = RequestMethod.Delete; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRaw("/language", false); + uri.AppendPath("/authoring/analyze-conversations/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateCopyProjectAuthorizationRequest(string projectName, RequestContent content, RequestContext context) + { + var message = _pipeline.CreateMessage(context, ResponseClassifier200); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRaw("/language", false); + uri.AppendPath("/authoring/analyze-conversations/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendPath("/:authorize-copy", 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 CreateGetCopyProjectStatusRequest(string projectName, string jobId, RequestContext context) + { + var message = _pipeline.CreateMessage(context, ResponseClassifier200); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRaw("/language", false); + uri.AppendPath("/authoring/analyze-conversations/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendPath("/copy/jobs/", false); + uri.AppendPath(jobId, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateCopyProjectRequest(string projectName, RequestContent content, RequestContext context) + { + var message = _pipeline.CreateMessage(context, ResponseClassifier202); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRaw("/language", false); + uri.AppendPath("/authoring/analyze-conversations/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendPath("/:copy", 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 CreateGetExportStatusRequest(string projectName, string jobId, RequestContext context) + { + var message = _pipeline.CreateMessage(context, ResponseClassifier200); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRaw("/language", false); + uri.AppendPath("/authoring/analyze-conversations/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendPath("/export/jobs/", false); + uri.AppendPath(jobId, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateExportRequest(string projectName, string stringIndexType, string exportedProjectFormat, string assetKind, string trainedModelLabel, RequestContext context) + { + var message = _pipeline.CreateMessage(context, ResponseClassifier202); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRaw("/language", false); + uri.AppendPath("/authoring/analyze-conversations/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendPath("/:export", false); + uri.AppendQuery("stringIndexType", stringIndexType, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (exportedProjectFormat != null) + { + uri.AppendQuery("format", exportedProjectFormat, true); + } + if (assetKind != null) + { + uri.AppendQuery("assetKind", assetKind, true); + } + if (trainedModelLabel != null) + { + uri.AppendQuery("trainedModelLabel", trainedModelLabel, true); + } + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateGetImportStatusRequest(string projectName, string jobId, RequestContext context) + { + var message = _pipeline.CreateMessage(context, ResponseClassifier200); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRaw("/language", false); + uri.AppendPath("/authoring/analyze-conversations/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendPath("/import/jobs/", false); + uri.AppendPath(jobId, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateImportRequest(string projectName, RequestContent content, string exportedProjectFormat, RequestContext context) + { + var message = _pipeline.CreateMessage(context, ResponseClassifier202); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRaw("/language", false); + uri.AppendPath("/authoring/analyze-conversations/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendPath("/:import", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (exportedProjectFormat != null) + { + uri.AppendQuery("format", exportedProjectFormat, true); + } + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + request.Content = content; + return message; + } + + internal HttpMessage CreateGetTrainingStatusRequest(string projectName, string jobId, RequestContext context) + { + var message = _pipeline.CreateMessage(context, ResponseClassifier200); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRaw("/language", false); + uri.AppendPath("/authoring/analyze-conversations/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendPath("/train/jobs/", false); + uri.AppendPath(jobId, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateTrainRequest(string projectName, RequestContent content, RequestContext context) + { + var message = _pipeline.CreateMessage(context, ResponseClassifier202); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRaw("/language", false); + uri.AppendPath("/authoring/analyze-conversations/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendPath("/:train", 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 CreateGetDeploymentsRequest(string projectName, int? maxCount, int? skip, int? maxpagesize, RequestContext context) + { + var message = _pipeline.CreateMessage(context, ResponseClassifier200); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRaw("/language", false); + uri.AppendPath("/authoring/analyze-conversations/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendPath("/deployments", false); + uri.AppendQuery("api-version", _apiVersion, 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 CreateGetSwapDeploymentsStatusRequest(string projectName, string jobId, RequestContext context) + { + var message = _pipeline.CreateMessage(context, ResponseClassifier200); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRaw("/language", false); + uri.AppendPath("/authoring/analyze-conversations/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendPath("/deployments/swap/jobs/", false); + uri.AppendPath(jobId, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateSwapDeploymentsRequest(string projectName, RequestContent content, RequestContext context) + { + var message = _pipeline.CreateMessage(context, ResponseClassifier202); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRaw("/language", false); + uri.AppendPath("/authoring/analyze-conversations/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendPath("/deployments/:swap", 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 CreateGetDeploymentRequest(string projectName, string deploymentName, RequestContext context) + { + var message = _pipeline.CreateMessage(context, ResponseClassifier200); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRaw("/language", false); + uri.AppendPath("/authoring/analyze-conversations/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendPath("/deployments/", false); + uri.AppendPath(deploymentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateGetDeploymentStatusRequest(string projectName, string deploymentName, string jobId, RequestContext context) + { + var message = _pipeline.CreateMessage(context, ResponseClassifier200); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRaw("/language", false); + uri.AppendPath("/authoring/analyze-conversations/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendPath("/deployments/", false); + uri.AppendPath(deploymentName, true); + uri.AppendPath("/jobs/", false); + uri.AppendPath(jobId, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateDeployProjectRequest(string projectName, string deploymentName, RequestContent content, RequestContext context) + { + var message = _pipeline.CreateMessage(context, ResponseClassifier202); + var request = message.Request; + request.Method = RequestMethod.Put; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRaw("/language", false); + uri.AppendPath("/authoring/analyze-conversations/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendPath("/deployments/", false); + uri.AppendPath(deploymentName, 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 CreateDeleteDeploymentRequest(string projectName, string deploymentName, RequestContext context) + { + var message = _pipeline.CreateMessage(context, ResponseClassifier202); + var request = message.Request; + request.Method = RequestMethod.Delete; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRaw("/language", false); + uri.AppendPath("/authoring/analyze-conversations/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendPath("/deployments/", false); + uri.AppendPath(deploymentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateGetDeploymentDeleteFromResourcesStatusRequest(string projectName, string deploymentName, string jobId, RequestContext context) + { + var message = _pipeline.CreateMessage(context, ResponseClassifier200); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRaw("/language", false); + uri.AppendPath("/authoring/analyze-conversations/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendPath("/deployments/", false); + uri.AppendPath(deploymentName, true); + uri.AppendPath("/delete-from-resources/jobs/", false); + uri.AppendPath(jobId, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateDeleteDeploymentFromResourcesRequest(string projectName, string deploymentName, RequestContent content, RequestContext context) + { + var message = _pipeline.CreateMessage(context, ResponseClassifier202); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRaw("/language", false); + uri.AppendPath("/authoring/analyze-conversations/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendPath("/deployments/", false); + uri.AppendPath(deploymentName, true); + uri.AppendPath("/:delete-from-resources", 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 CreateGetTrainedModelsRequest(string projectName, int? maxCount, int? skip, int? maxpagesize, RequestContext context) + { + var message = _pipeline.CreateMessage(context, ResponseClassifier200); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRaw("/language", false); + uri.AppendPath("/authoring/analyze-conversations/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendPath("/models", false); + uri.AppendQuery("api-version", _apiVersion, 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 CreateGetTrainedModelRequest(string projectName, string trainedModelLabel, RequestContext context) + { + var message = _pipeline.CreateMessage(context, ResponseClassifier200); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRaw("/language", false); + uri.AppendPath("/authoring/analyze-conversations/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendPath("/models/", false); + uri.AppendPath(trainedModelLabel, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateDeleteTrainedModelRequest(string projectName, string trainedModelLabel, RequestContext context) + { + var message = _pipeline.CreateMessage(context, ResponseClassifier204); + var request = message.Request; + request.Method = RequestMethod.Delete; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRaw("/language", false); + uri.AppendPath("/authoring/analyze-conversations/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendPath("/models/", false); + uri.AppendPath(trainedModelLabel, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateGetEvaluationStatusRequest(string projectName, string trainedModelLabel, string jobId, RequestContext context) + { + var message = _pipeline.CreateMessage(context, ResponseClassifier200); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRaw("/language", false); + uri.AppendPath("/authoring/analyze-conversations/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendPath("/models/", false); + uri.AppendPath(trainedModelLabel, true); + uri.AppendPath("/evaluate/jobs/", false); + uri.AppendPath(jobId, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateEvaluateModelRequest(string projectName, string trainedModelLabel, RequestContent content, RequestContext context) + { + var message = _pipeline.CreateMessage(context, ResponseClassifier202); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRaw("/language", false); + uri.AppendPath("/authoring/analyze-conversations/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendPath("/models/", false); + uri.AppendPath(trainedModelLabel, true); + uri.AppendPath("/:evaluate", 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 CreateGetLoadSnapshotStatusRequest(string projectName, string trainedModelLabel, string jobId, RequestContext context) + { + var message = _pipeline.CreateMessage(context, ResponseClassifier200); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRaw("/language", false); + uri.AppendPath("/authoring/analyze-conversations/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendPath("/models/", false); + uri.AppendPath(trainedModelLabel, true); + uri.AppendPath("/load-snapshot/jobs/", false); + uri.AppendPath(jobId, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateLoadSnapshotRequest(string projectName, string trainedModelLabel, RequestContext context) + { + var message = _pipeline.CreateMessage(context, ResponseClassifier202); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRaw("/language", false); + uri.AppendPath("/authoring/analyze-conversations/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendPath("/models/", false); + uri.AppendPath(trainedModelLabel, true); + uri.AppendPath("/:load-snapshot", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateGetModelEvaluationResultsRequest(string projectName, string trainedModelLabel, string stringIndexType, int? maxCount, int? skip, int? maxpagesize, RequestContext context) + { + var message = _pipeline.CreateMessage(context, ResponseClassifier200); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRaw("/language", false); + uri.AppendPath("/authoring/analyze-conversations/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendPath("/models/", false); + uri.AppendPath(trainedModelLabel, true); + uri.AppendPath("/evaluation/result", false); + uri.AppendQuery("stringIndexType", stringIndexType, true); + uri.AppendQuery("api-version", _apiVersion, 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 CreateGetModelEvaluationSummaryRequest(string projectName, string trainedModelLabel, RequestContext context) + { + var message = _pipeline.CreateMessage(context, ResponseClassifier200); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRaw("/language", false); + uri.AppendPath("/authoring/analyze-conversations/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendPath("/models/", false); + uri.AppendPath(trainedModelLabel, true); + uri.AppendPath("/evaluation/summary-result", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateGetDeploymentResourcesRequest(string projectName, int? maxCount, int? skip, int? maxpagesize, RequestContext context) + { + var message = _pipeline.CreateMessage(context, ResponseClassifier200); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRaw("/language", false); + uri.AppendPath("/authoring/analyze-conversations/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendPath("/resources", false); + uri.AppendQuery("api-version", _apiVersion, 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 CreateGetAssignDeploymentResourcesStatusRequest(string projectName, string jobId, RequestContext context) + { + var message = _pipeline.CreateMessage(context, ResponseClassifier200); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRaw("/language", false); + uri.AppendPath("/authoring/analyze-conversations/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendPath("/resources/assign/jobs/", false); + uri.AppendPath(jobId, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateAssignDeploymentResourcesRequest(string projectName, RequestContent content, RequestContext context) + { + var message = _pipeline.CreateMessage(context, ResponseClassifier202); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRaw("/language", false); + uri.AppendPath("/authoring/analyze-conversations/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendPath("/resources/:assign", 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 CreateGetUnassignDeploymentResourcesStatusRequest(string projectName, string jobId, RequestContext context) + { + var message = _pipeline.CreateMessage(context, ResponseClassifier200); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRaw("/language", false); + uri.AppendPath("/authoring/analyze-conversations/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendPath("/resources/unassign/jobs/", false); + uri.AppendPath(jobId, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateUnassignDeploymentResourcesRequest(string projectName, RequestContent content, RequestContext context) + { + var message = _pipeline.CreateMessage(context, ResponseClassifier202); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRaw("/language", false); + uri.AppendPath("/authoring/analyze-conversations/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendPath("/resources/:unassign", 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 CreateGetTrainingJobsRequest(string projectName, int? maxCount, int? skip, int? maxpagesize, RequestContext context) + { + var message = _pipeline.CreateMessage(context, ResponseClassifier200); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRaw("/language", false); + uri.AppendPath("/authoring/analyze-conversations/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendPath("/train/jobs", false); + uri.AppendQuery("api-version", _apiVersion, 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 CreateCancelTrainingJobRequest(string projectName, string jobId, RequestContext context) + { + var message = _pipeline.CreateMessage(context, ResponseClassifier202); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRaw("/language", false); + uri.AppendPath("/authoring/analyze-conversations/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendPath("/train/jobs/", false); + uri.AppendPath(jobId, true); + uri.AppendPath("/:cancel", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateGetAssignedResourceDeploymentsRequest(int? top, int? skip, int? maxpagesize, RequestContext context) + { + var message = _pipeline.CreateMessage(context, ResponseClassifier200); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRaw("/language", false); + uri.AppendPath("/authoring/analyze-conversations/projects/global/deployments/resources", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("top", top.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 CreateGetSupportedLanguagesRequest(string projectKind, int? top, int? skip, int? maxpagesize, RequestContext context) + { + var message = _pipeline.CreateMessage(context, ResponseClassifier200); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRaw("/language", false); + uri.AppendPath("/authoring/analyze-conversations/projects/global/languages", false); + uri.AppendQuery("projectKind", projectKind, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("top", top.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 CreateGetSupportedPrebuiltEntitiesRequest(string language, string multilingual, int? top, int? skip, int? maxpagesize, RequestContext context) + { + var message = _pipeline.CreateMessage(context, ResponseClassifier200); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRaw("/language", false); + uri.AppendPath("/authoring/analyze-conversations/projects/global/prebuilt-entities", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (language != null) + { + uri.AppendQuery("language", language, true); + } + if (multilingual != null) + { + uri.AppendQuery("multilingual", multilingual, true); + } + if (top != null) + { + uri.AppendQuery("top", top.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 CreateGetTrainingConfigVersionsRequest(string projectKind, int? top, int? skip, int? maxpagesize, RequestContext context) + { + var message = _pipeline.CreateMessage(context, ResponseClassifier200); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRaw("/language", false); + uri.AppendPath("/authoring/analyze-conversations/projects/global/training-config-versions", false); + uri.AppendQuery("projectKind", projectKind, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("top", top.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 CreateGetExportedModelRequest(string projectName, string exportedModelName, RequestContext context) + { + var message = _pipeline.CreateMessage(context, ResponseClassifier200); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRaw("/language", false); + uri.AppendPath("/authoring/analyze-conversations/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendPath("/exported-models/", false); + uri.AppendPath(exportedModelName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateGetExportedModelsRequest(string projectName, int? maxCount, int? skip, int? maxpagesize, RequestContext context) + { + var message = _pipeline.CreateMessage(context, ResponseClassifier200); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRaw("/language", false); + uri.AppendPath("/authoring/analyze-conversations/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendPath("/exported-models", false); + uri.AppendQuery("api-version", _apiVersion, 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 CreateGetExportedModelJobStatusRequest(string projectName, string exportedModelName, string jobId, RequestContext context) + { + var message = _pipeline.CreateMessage(context, ResponseClassifier200); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRaw("/language", false); + uri.AppendPath("/authoring/analyze-conversations/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendPath("/exported-models/", false); + uri.AppendPath(exportedModelName, true); + uri.AppendPath("/jobs/", false); + uri.AppendPath(jobId, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateDeleteExportedModelRequest(string projectName, string exportedModelName, RequestContext context) + { + var message = _pipeline.CreateMessage(context, ResponseClassifier202); + var request = message.Request; + request.Method = RequestMethod.Delete; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRaw("/language", false); + uri.AppendPath("/authoring/analyze-conversations/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendPath("/exported-models/", false); + uri.AppendPath(exportedModelName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateCreateOrUpdateExportedModelRequest(string projectName, string exportedModelName, RequestContent content, RequestContext context) + { + var message = _pipeline.CreateMessage(context, ResponseClassifier202); + var request = message.Request; + request.Method = RequestMethod.Put; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRaw("/language", false); + uri.AppendPath("/authoring/analyze-conversations/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendPath("/exported-models/", false); + uri.AppendPath(exportedModelName, 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 CreateGetProjectsNextPageRequest(string nextLink, int? maxCount, int? skip, int? maxpagesize, RequestContext context) + { + var message = _pipeline.CreateMessage(context, ResponseClassifier200); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRaw("/language", false); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateGetDeploymentsNextPageRequest(string nextLink, string projectName, int? maxCount, int? skip, int? maxpagesize, RequestContext context) + { + var message = _pipeline.CreateMessage(context, ResponseClassifier200); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRaw("/language", false); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateGetTrainedModelsNextPageRequest(string nextLink, string projectName, int? maxCount, int? skip, int? maxpagesize, RequestContext context) + { + var message = _pipeline.CreateMessage(context, ResponseClassifier200); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRaw("/language", false); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateGetModelEvaluationResultsNextPageRequest(string nextLink, string projectName, string trainedModelLabel, string stringIndexType, int? maxCount, int? skip, int? maxpagesize, RequestContext context) + { + var message = _pipeline.CreateMessage(context, ResponseClassifier200); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRaw("/language", false); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateGetDeploymentResourcesNextPageRequest(string nextLink, string projectName, int? maxCount, int? skip, int? maxpagesize, RequestContext context) + { + var message = _pipeline.CreateMessage(context, ResponseClassifier200); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRaw("/language", false); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateGetTrainingJobsNextPageRequest(string nextLink, string projectName, int? maxCount, int? skip, int? maxpagesize, RequestContext context) + { + var message = _pipeline.CreateMessage(context, ResponseClassifier200); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRaw("/language", false); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateGetExportedModelsNextPageRequest(string nextLink, string projectName, int? maxCount, int? skip, int? maxpagesize, RequestContext context) + { + var message = _pipeline.CreateMessage(context, ResponseClassifier200); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRaw("/language", false); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + return message; + } + + private static RequestContext DefaultRequestContext = new RequestContext(); + internal static RequestContext FromCancellationToken(CancellationToken cancellationToken = default) + { + if (!cancellationToken.CanBeCanceled) + { + return DefaultRequestContext; + } + + return new RequestContext() { CancellationToken = cancellationToken }; + } + + private static ResponseClassifier _responseClassifier200; + private static ResponseClassifier ResponseClassifier200 => _responseClassifier200 ??= new StatusCodeClassifier(stackalloc ushort[] { 200 }); + private static ResponseClassifier _responseClassifier200201; + private static ResponseClassifier ResponseClassifier200201 => _responseClassifier200201 ??= new StatusCodeClassifier(stackalloc ushort[] { 200, 201 }); + private static ResponseClassifier _responseClassifier202; + private static ResponseClassifier ResponseClassifier202 => _responseClassifier202 ??= new StatusCodeClassifier(stackalloc ushort[] { 202 }); + private static ResponseClassifier _responseClassifier204; + private static ResponseClassifier ResponseClassifier204 => _responseClassifier204 ??= new StatusCodeClassifier(stackalloc ushort[] { 204 }); + + private TrainingJobResult FetchTrainingJobResultFromTrainingJobState(Response response) + { + var resultJsonElement = JsonDocument.Parse(response.Content).RootElement.GetProperty("result"); + return TrainingJobResult.DeserializeTrainingJobResult(resultJsonElement); + } + + private EvaluationJobResult FetchEvaluationJobResultFromEvaluationJobState(Response response) + { + var resultJsonElement = JsonDocument.Parse(response.Content).RootElement.GetProperty("result"); + return EvaluationJobResult.DeserializeEvaluationJobResult(resultJsonElement); } } } diff --git a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/ConversationsAuthoringModelFactory.cs b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/ConversationsAuthoringModelFactory.cs index 0f7695000f64c..a79a0f9da7679 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/ConversationsAuthoringModelFactory.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/ConversationsAuthoringModelFactory.cs @@ -16,10 +16,10 @@ namespace Azure.AI.Language.Conversations.Authoring public static partial class ConversationsAuthoringModelFactory { /// Initializes a new instance of . - /// Represents the project creation datetime. - /// Represents the project creation datetime. - /// Represents the project last trained datetime. - /// Represents the project last deployed datetime. + /// Represents the project creation datetime. + /// Represents the project creation datetime. + /// Represents the project last trained datetime. + /// Represents the project last deployed datetime. /// Represents the project kind. /// The project settings. /// The storage container name in case of conversation summarization. @@ -28,13 +28,13 @@ public static partial class ConversationsAuthoringModelFactory /// The project description. /// The project language. This is BCP-47 representation of a language. For example, use "en" for English, "en-gb" for English (UK), "es" for Spanish etc. /// A new instance for mocking. - public static ProjectMetadata ProjectMetadata(DateTimeOffset createdDateTime = default, DateTimeOffset lastModifiedDateTime = default, DateTimeOffset? lastTrainedDateTime = null, DateTimeOffset? lastDeployedDateTime = null, ProjectKind projectKind = default, ProjectSettings settings = null, string storageInputContainerName = null, string projectName = null, bool? multilingual = null, string description = null, string language = null) + public static ProjectMetadata ProjectMetadata(DateTimeOffset createdOn = default, DateTimeOffset lastModifiedOn = default, DateTimeOffset? lastTrainedOn = null, DateTimeOffset? lastDeployedOn = null, ProjectKind projectKind = default, ProjectSettings settings = null, string storageInputContainerName = null, string projectName = null, bool? multilingual = null, string description = null, string language = null) { return new ProjectMetadata( - createdDateTime, - lastModifiedDateTime, - lastTrainedDateTime, - lastDeployedDateTime, + createdOn, + lastModifiedOn, + lastTrainedOn, + lastDeployedOn, projectKind, settings, storageInputContainerName, @@ -45,6 +45,62 @@ public static ProjectMetadata ProjectMetadata(DateTimeOffset createdDateTime = d serializedAdditionalRawData: null); } + /// Initializes a new instance of . + /// Represents the project kind. + /// The project settings. + /// The storage container name in case of conversation summarization. + /// The new project name. + /// Whether the project would be used for multiple languages or not. + /// The project description. + /// The project language. This is BCP-47 representation of a language. For example, use "en" for English, "en-gb" for English (UK), "es" for Spanish etc. + /// A new instance for mocking. + public static CreateProjectDetails CreateProjectDetails(ProjectKind projectKind = default, ProjectSettings settings = null, string storageInputContainerName = null, string projectName = null, bool? multilingual = null, string description = null, string language = null) + { + return new CreateProjectDetails( + projectKind, + settings, + storageInputContainerName, + projectName, + multilingual, + description, + language, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// The job ID. + /// The creation date time of the job. + /// The last date time the job was updated. + /// The expiration date time of the job. + /// The job status. + /// The warnings that were encountered while executing the job. + /// The errors encountered while executing the job. + /// A new instance for mocking. + public static ProjectDeletionJobState ProjectDeletionJobState(string jobId = null, DateTimeOffset createdOn = default, DateTimeOffset lastUpdatedOn = default, DateTimeOffset? expiresOn = null, JobStatus status = default, IEnumerable warnings = null, IEnumerable errors = null) + { + warnings ??= new List(); + errors ??= new List(); + + return new ProjectDeletionJobState( + jobId, + createdOn, + lastUpdatedOn, + expiresOn, + status, + warnings?.ToList(), + errors?.ToList(), + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// The warning code. + /// The warning message. + /// A new instance for mocking. + public static AuthoringConversationsWarning AuthoringConversationsWarning(string code = null, string message = null) + { + return new AuthoringConversationsWarning(code, message, serializedAdditionalRawData: null); + } + /// Initializes a new instance of . /// One of a server-defined set of error codes. /// A human-readable representation of the error. @@ -88,111 +144,80 @@ public static InnerErrorModel InnerErrorModel(InnerErrorCode code = default, str serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// Represents the project kind. - /// The project settings. - /// The storage container name in case of conversation summarization. - /// The new project name. - /// Whether the project would be used for multiple languages or not. - /// The project description. - /// The project language. This is BCP-47 representation of a language. For example, use "en" for English, "en-gb" for English (UK), "es" for Spanish etc. - /// A new instance for mocking. - public static CreateProjectDetails CreateProjectDetails(ProjectKind projectKind = default, ProjectSettings settings = null, string storageInputContainerName = null, string projectName = null, bool? multilingual = null, string description = null, string language = null) - { - return new CreateProjectDetails( - projectKind, - settings, - storageInputContainerName, - projectName, - multilingual, - description, - language, - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . + /// Initializes a new instance of . /// The job ID. - /// The creation date time of the job. - /// The last date time the job was updated. - /// The expiration date time of the job. + /// The creation date time of the job. + /// The last date time the job was updated. + /// The expiration date time of the job. /// The job status. /// The warnings that were encountered while executing the job. /// The errors encountered while executing the job. - /// A new instance for mocking. - public static ProjectDeletionJobState ProjectDeletionJobState(string jobId = null, DateTimeOffset createdDateTime = default, DateTimeOffset lastUpdatedDateTime = default, DateTimeOffset? expirationDateTime = null, JobStatus status = default, IEnumerable warnings = null, IEnumerable errors = null) + /// A new instance for mocking. + public static CopyProjectJobState CopyProjectJobState(string jobId = null, DateTimeOffset createdOn = default, DateTimeOffset lastUpdatedOn = default, DateTimeOffset? expiresOn = null, JobStatus status = default, IEnumerable warnings = null, IEnumerable errors = null) { warnings ??= new List(); errors ??= new List(); - return new ProjectDeletionJobState( + return new CopyProjectJobState( jobId, - createdDateTime, - lastUpdatedDateTime, - expirationDateTime, + createdOn, + lastUpdatedOn, + expiresOn, status, warnings?.ToList(), errors?.ToList(), serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// The warning code. - /// The warning message. - /// A new instance for mocking. - public static AuthoringConversationsWarning AuthoringConversationsWarning(string code = null, string message = null) - { - return new AuthoringConversationsWarning(code, message, serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . + /// Initializes a new instance of . /// The job ID. - /// The creation date time of the job. - /// The last date time the job was updated. - /// The expiration date time of the job. + /// The creation date time of the job. + /// The last date time the job was updated. + /// The expiration date time of the job. /// The job status. /// The warnings that were encountered while executing the job. /// The errors encountered while executing the job. - /// A new instance for mocking. - public static CopyProjectJobState CopyProjectJobState(string jobId = null, DateTimeOffset createdDateTime = default, DateTimeOffset lastUpdatedDateTime = default, DateTimeOffset? expirationDateTime = null, JobStatus status = default, IEnumerable warnings = null, IEnumerable errors = null) + /// The URL to use in order to download the exported project. + /// A new instance for mocking. + public static ExportProjectJobState ExportProjectJobState(string jobId = null, DateTimeOffset createdOn = default, DateTimeOffset lastUpdatedOn = default, DateTimeOffset? expiresOn = null, JobStatus status = default, IEnumerable warnings = null, IEnumerable errors = null, string resultUrl = null) { warnings ??= new List(); errors ??= new List(); - return new CopyProjectJobState( + return new ExportProjectJobState( jobId, - createdDateTime, - lastUpdatedDateTime, - expirationDateTime, + createdOn, + lastUpdatedOn, + expiresOn, status, warnings?.ToList(), errors?.ToList(), + resultUrl, serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The job ID. - /// The creation date time of the job. - /// The last date time the job was updated. - /// The expiration date time of the job. + /// The creation date time of the job. + /// The last date time the job was updated. + /// The expiration date time of the job. /// The job status. /// The warnings that were encountered while executing the job. /// The errors encountered while executing the job. - /// The URL to use in order to download the exported project. - /// A new instance for mocking. - public static ExportProjectJobState ExportProjectJobState(string jobId = null, DateTimeOffset createdDateTime = default, DateTimeOffset lastUpdatedDateTime = default, DateTimeOffset? expirationDateTime = null, JobStatus status = default, IEnumerable warnings = null, IEnumerable errors = null, string resultUrl = null) + /// A new instance for mocking. + public static ImportProjectJobState ImportProjectJobState(string jobId = null, DateTimeOffset createdOn = default, DateTimeOffset lastUpdatedOn = default, DateTimeOffset? expiresOn = null, JobStatus status = default, IEnumerable warnings = null, IEnumerable errors = null) { warnings ??= new List(); errors ??= new List(); - return new ExportProjectJobState( + return new ImportProjectJobState( jobId, - createdDateTime, - lastUpdatedDateTime, - expirationDateTime, + createdOn, + lastUpdatedOn, + expiresOn, status, warnings?.ToList(), errors?.ToList(), - resultUrl, serializedAdditionalRawData: null); } @@ -312,51 +337,42 @@ public static OrchestrationExportedUtterance OrchestrationExportedUtterance(stri return new OrchestrationExportedUtterance(text, language, intent, dataset, serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The job ID. - /// The creation date time of the job. - /// The last date time the job was updated. - /// The expiration date time of the job. + /// The creation date time of the job. + /// The last date time the job was updated. + /// The expiration date time of the job. /// The job status. /// The warnings that were encountered while executing the job. /// The errors encountered while executing the job. - /// A new instance for mocking. - public static ImportProjectJobState ImportProjectJobState(string jobId = null, DateTimeOffset createdDateTime = default, DateTimeOffset lastUpdatedDateTime = default, DateTimeOffset? expirationDateTime = null, JobStatus status = default, IEnumerable warnings = null, IEnumerable errors = null) + /// Represents training tasks detailed result. + /// A new instance for mocking. + public static TrainingJobState TrainingJobState(string jobId = null, DateTimeOffset createdOn = default, DateTimeOffset lastUpdatedOn = default, DateTimeOffset? expiresOn = null, JobStatus status = default, IEnumerable warnings = null, IEnumerable errors = null, TrainingJobResult result = null) { warnings ??= new List(); errors ??= new List(); - return new ImportProjectJobState( + return new TrainingJobState( jobId, - createdDateTime, - lastUpdatedDateTime, - expirationDateTime, + createdOn, + lastUpdatedOn, + expiresOn, status, warnings?.ToList(), errors?.ToList(), + result, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// Represents the output model label. - /// Represents training config version. By default, "latest" value is used which uses the latest released training config version. - /// Represents the mode of the training operation. - /// Represents the evaluation options. By default, the evaluation kind is percentage, with training split percentage as 80, and testing split percentage as 20. - /// A new instance for mocking. - public static TrainingJobDetails TrainingJobDetails(string modelLabel = null, string trainingConfigVersion = null, TrainingMode trainingMode = default, EvaluationDetails evaluationOptions = null) - { - return new TrainingJobDetails(modelLabel, trainingConfigVersion, trainingMode, evaluationOptions, serializedAdditionalRawData: null); - } - /// Initializes a new instance of . /// Represents trained model label. /// Represents training config version. /// Represents the mode of the training operation. /// Represents the model training status. /// Represents model evaluation status. - /// Represents the estimated end date time for training and evaluation. + /// Represents the estimated end date time for training and evaluation. /// A new instance for mocking. - public static TrainingJobResult TrainingJobResult(string modelLabel = null, string trainingConfigVersion = null, TrainingMode? trainingMode = null, SubTrainingJobState trainingStatus = null, SubTrainingJobState evaluationStatus = null, DateTimeOffset? estimatedEndDateTime = null) + public static TrainingJobResult TrainingJobResult(string modelLabel = null, string trainingConfigVersion = null, TrainingMode? trainingMode = null, SubTrainingJobState trainingStatus = null, SubTrainingJobState evaluationStatus = null, DateTimeOffset? estimatedEndOn = null) { return new TrainingJobResult( modelLabel, @@ -364,66 +380,50 @@ public static TrainingJobResult TrainingJobResult(string modelLabel = null, stri trainingMode, trainingStatus, evaluationStatus, - estimatedEndDateTime, + estimatedEndOn, serializedAdditionalRawData: null); } /// Initializes a new instance of . /// Represents progress percentage. - /// Represents the start date time. - /// Represents the end date time. + /// Represents the start date time. + /// Represents the end date time. /// Represents the status of the sub-operation. /// A new instance for mocking. - public static SubTrainingJobState SubTrainingJobState(int percentComplete = default, DateTimeOffset? startDateTime = null, DateTimeOffset? endDateTime = null, JobStatus status = default) + public static SubTrainingJobState SubTrainingJobState(int percentComplete = default, DateTimeOffset? startedOn = null, DateTimeOffset? endedOn = null, JobStatus status = default) { - return new SubTrainingJobState(percentComplete, startDateTime, endDateTime, status, serializedAdditionalRawData: null); + return new SubTrainingJobState(percentComplete, startedOn, endedOn, status, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// The job ID. - /// The creation date time of the job. - /// The last date time the job was updated. - /// The expiration date time of the job. - /// The job status. - /// The warnings that were encountered while executing the job. - /// The errors encountered while executing the job. - /// Represents training tasks detailed result. - /// A new instance for mocking. - public static TrainingJobState TrainingJobState(string jobId = null, DateTimeOffset createdDateTime = default, DateTimeOffset lastUpdatedDateTime = default, DateTimeOffset? expirationDateTime = null, JobStatus status = default, IEnumerable warnings = null, IEnumerable errors = null, TrainingJobResult result = null) + /// Initializes a new instance of . + /// Represents the output model label. + /// Represents training config version. By default, "latest" value is used which uses the latest released training config version. + /// Represents the mode of the training operation. + /// Represents the evaluation options. By default, the evaluation kind is percentage, with training split percentage as 80, and testing split percentage as 20. + /// A new instance for mocking. + public static TrainingJobDetails TrainingJobDetails(string modelLabel = null, string trainingConfigVersion = null, TrainingMode trainingMode = default, EvaluationDetails evaluationOptions = null) { - warnings ??= new List(); - errors ??= new List(); - - return new TrainingJobState( - jobId, - createdDateTime, - lastUpdatedDateTime, - expirationDateTime, - status, - warnings?.ToList(), - errors?.ToList(), - result, - serializedAdditionalRawData: null); + return new TrainingJobDetails(modelLabel, trainingConfigVersion, trainingMode, evaluationOptions, serializedAdditionalRawData: null); } /// Initializes a new instance of . /// Represents deployment name. /// Represents deployment modelId. - /// Represents deployment last trained time. - /// Represents deployment last deployed time. + /// Represents deployment last trained time. + /// Represents deployment last deployed time. /// Represents deployment expiration date in the runtime. /// Represents model training config version. /// Represents the metadata of the assigned Azure resources. /// A new instance for mocking. - public static ProjectDeployment ProjectDeployment(string deploymentName = null, string modelId = null, DateTimeOffset lastTrainedDateTime = default, DateTimeOffset lastDeployedDateTime = default, DateTimeOffset deploymentExpirationDate = default, string modelTrainingConfigVersion = null, IEnumerable assignedResources = null) + public static ProjectDeployment ProjectDeployment(string deploymentName = null, string modelId = null, DateTimeOffset lastTrainedOn = default, DateTimeOffset lastDeployedOn = default, DateTimeOffset deploymentExpirationDate = default, string modelTrainingConfigVersion = null, IEnumerable assignedResources = null) { assignedResources ??= new List(); return new ProjectDeployment( deploymentName, modelId, - lastTrainedDateTime, - lastDeployedDateTime, + lastTrainedOn, + lastDeployedOn, deploymentExpirationDate, modelTrainingConfigVersion, assignedResources?.ToList(), @@ -441,84 +441,84 @@ public static DeploymentResource DeploymentResource(string resourceId = null, st /// Initializes a new instance of . /// The job ID. - /// The creation date time of the job. - /// The last date time the job was updated. - /// The expiration date time of the job. + /// The creation date time of the job. + /// The last date time the job was updated. + /// The expiration date time of the job. /// The job status. /// The warnings that were encountered while executing the job. /// The errors encountered while executing the job. /// A new instance for mocking. - public static SwapDeploymentsJobState SwapDeploymentsJobState(string jobId = null, DateTimeOffset createdDateTime = default, DateTimeOffset lastUpdatedDateTime = default, DateTimeOffset? expirationDateTime = null, JobStatus status = default, IEnumerable warnings = null, IEnumerable errors = null) + public static SwapDeploymentsJobState SwapDeploymentsJobState(string jobId = null, DateTimeOffset createdOn = default, DateTimeOffset lastUpdatedOn = default, DateTimeOffset? expiresOn = null, JobStatus status = default, IEnumerable warnings = null, IEnumerable errors = null) { warnings ??= new List(); errors ??= new List(); return new SwapDeploymentsJobState( jobId, - createdDateTime, - lastUpdatedDateTime, - expirationDateTime, + createdOn, + lastUpdatedOn, + expiresOn, status, warnings?.ToList(), errors?.ToList(), serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// Represents the trained model label. - /// Represents the resource IDs to be assigned to the deployment. If provided, the deployment will be rolled out to the resources provided here as well as the original resource in which the project is created. - /// A new instance for mocking. - public static CreateDeploymentDetails CreateDeploymentDetails(string trainedModelLabel = null, IEnumerable assignedResourceIds = null) - { - assignedResourceIds ??= new List(); - - return new CreateDeploymentDetails(trainedModelLabel, assignedResourceIds?.ToList(), serializedAdditionalRawData: null); - } - /// Initializes a new instance of . /// The job ID. - /// The creation date time of the job. - /// The last date time the job was updated. - /// The expiration date time of the job. + /// The creation date time of the job. + /// The last date time the job was updated. + /// The expiration date time of the job. /// The job status. /// The warnings that were encountered while executing the job. /// The errors encountered while executing the job. /// A new instance for mocking. - public static DeploymentJobState DeploymentJobState(string jobId = null, DateTimeOffset createdDateTime = default, DateTimeOffset lastUpdatedDateTime = default, DateTimeOffset? expirationDateTime = null, JobStatus status = default, IEnumerable warnings = null, IEnumerable errors = null) + public static DeploymentJobState DeploymentJobState(string jobId = null, DateTimeOffset createdOn = default, DateTimeOffset lastUpdatedOn = default, DateTimeOffset? expiresOn = null, JobStatus status = default, IEnumerable warnings = null, IEnumerable errors = null) { warnings ??= new List(); errors ??= new List(); return new DeploymentJobState( jobId, - createdDateTime, - lastUpdatedDateTime, - expirationDateTime, + createdOn, + lastUpdatedOn, + expiresOn, status, warnings?.ToList(), errors?.ToList(), serializedAdditionalRawData: null); } + /// Initializes a new instance of . + /// Represents the trained model label. + /// Represents the resource IDs to be assigned to the deployment. If provided, the deployment will be rolled out to the resources provided here as well as the original resource in which the project is created. + /// A new instance for mocking. + public static CreateDeploymentDetails CreateDeploymentDetails(string trainedModelLabel = null, IEnumerable assignedResourceIds = null) + { + assignedResourceIds ??= new List(); + + return new CreateDeploymentDetails(trainedModelLabel, assignedResourceIds?.ToList(), serializedAdditionalRawData: null); + } + /// Initializes a new instance of . /// The job ID. - /// The creation date time of the job. - /// The last date time the job was updated. - /// The expiration date time of the job. + /// The creation date time of the job. + /// The last date time the job was updated. + /// The expiration date time of the job. /// The job status. /// The warnings that were encountered while executing the job. /// The errors encountered while executing the job. /// A new instance for mocking. - public static DeploymentDeleteFromResourcesJobState DeploymentDeleteFromResourcesJobState(string jobId = null, DateTimeOffset createdDateTime = default, DateTimeOffset lastUpdatedDateTime = default, DateTimeOffset? expirationDateTime = null, JobStatus status = default, IEnumerable warnings = null, IEnumerable errors = null) + public static DeploymentDeleteFromResourcesJobState DeploymentDeleteFromResourcesJobState(string jobId = null, DateTimeOffset createdOn = default, DateTimeOffset lastUpdatedOn = default, DateTimeOffset? expiresOn = null, JobStatus status = default, IEnumerable warnings = null, IEnumerable errors = null) { warnings ??= new List(); errors ??= new List(); return new DeploymentDeleteFromResourcesJobState( jobId, - createdDateTime, - lastUpdatedDateTime, - expirationDateTime, + createdOn, + lastUpdatedOn, + expiresOn, status, warnings?.ToList(), errors?.ToList(), @@ -528,18 +528,18 @@ public static DeploymentDeleteFromResourcesJobState DeploymentDeleteFromResource /// Initializes a new instance of . /// The trained model label. /// The model ID. - /// The last trained date time of the model. + /// The last trained date time of the model. /// The duration of the model's last training request in seconds. /// The model expiration date. /// The model training config version. /// The flag to indicate if the trained model has a snapshot ready. /// A new instance for mocking. - public static ProjectTrainedModel ProjectTrainedModel(string label = null, string modelId = null, DateTimeOffset lastTrainedDateTime = default, int lastTrainingDurationInSeconds = default, DateTimeOffset modelExpirationDate = default, string modelTrainingConfigVersion = null, bool hasSnapshot = default) + public static ProjectTrainedModel ProjectTrainedModel(string label = null, string modelId = null, DateTimeOffset lastTrainedOn = default, int lastTrainingDurationInSeconds = default, DateTimeOffset modelExpirationDate = default, string modelTrainingConfigVersion = null, bool hasSnapshot = default) { return new ProjectTrainedModel( label, modelId, - lastTrainedDateTime, + lastTrainedOn, lastTrainingDurationInSeconds, modelExpirationDate, modelTrainingConfigVersion, @@ -547,37 +547,26 @@ public static ProjectTrainedModel ProjectTrainedModel(string label = null, strin serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// Represents the options used running the evaluation. - /// Represents trained model label. - /// Represents training config version. - /// Represents progress percentage. - /// A new instance for mocking. - public static EvaluationJobResult EvaluationJobResult(EvaluationDetails evaluationOptions = null, string modelLabel = null, string trainingConfigVersion = null, int percentComplete = default) - { - return new EvaluationJobResult(evaluationOptions, modelLabel, trainingConfigVersion, percentComplete, serializedAdditionalRawData: null); - } - /// Initializes a new instance of . /// The job ID. - /// The creation date time of the job. - /// The last date time the job was updated. - /// The expiration date time of the job. + /// The creation date time of the job. + /// The last date time the job was updated. + /// The expiration date time of the job. /// The job status. /// The warnings that were encountered while executing the job. /// The errors encountered while executing the job. /// Represents evaluation task detailed result. /// A new instance for mocking. - public static EvaluationJobState EvaluationJobState(string jobId = null, DateTimeOffset createdDateTime = default, DateTimeOffset lastUpdatedDateTime = default, DateTimeOffset? expirationDateTime = null, JobStatus status = default, IEnumerable warnings = null, IEnumerable errors = null, EvaluationJobResult result = null) + public static EvaluationJobState EvaluationJobState(string jobId = null, DateTimeOffset createdOn = default, DateTimeOffset lastUpdatedOn = default, DateTimeOffset? expiresOn = null, JobStatus status = default, IEnumerable warnings = null, IEnumerable errors = null, EvaluationJobResult result = null) { warnings ??= new List(); errors ??= new List(); return new EvaluationJobState( jobId, - createdDateTime, - lastUpdatedDateTime, - expirationDateTime, + createdOn, + lastUpdatedOn, + expiresOn, status, warnings?.ToList(), errors?.ToList(), @@ -585,25 +574,36 @@ public static EvaluationJobState EvaluationJobState(string jobId = null, DateTim serializedAdditionalRawData: null); } + /// Initializes a new instance of . + /// Represents the options used running the evaluation. + /// Represents trained model label. + /// Represents training config version. + /// Represents progress percentage. + /// A new instance for mocking. + public static EvaluationJobResult EvaluationJobResult(EvaluationDetails evaluationOptions = null, string modelLabel = null, string trainingConfigVersion = null, int percentComplete = default) + { + return new EvaluationJobResult(evaluationOptions, modelLabel, trainingConfigVersion, percentComplete, serializedAdditionalRawData: null); + } + /// Initializes a new instance of . /// The job ID. - /// The creation date time of the job. - /// The last date time the job was updated. - /// The expiration date time of the job. + /// The creation date time of the job. + /// The last date time the job was updated. + /// The expiration date time of the job. /// The job status. /// The warnings that were encountered while executing the job. /// The errors encountered while executing the job. /// A new instance for mocking. - public static LoadSnapshotJobState LoadSnapshotJobState(string jobId = null, DateTimeOffset createdDateTime = default, DateTimeOffset lastUpdatedDateTime = default, DateTimeOffset? expirationDateTime = null, JobStatus status = default, IEnumerable warnings = null, IEnumerable errors = null) + public static LoadSnapshotJobState LoadSnapshotJobState(string jobId = null, DateTimeOffset createdOn = default, DateTimeOffset lastUpdatedOn = default, DateTimeOffset? expiresOn = null, JobStatus status = default, IEnumerable warnings = null, IEnumerable errors = null) { warnings ??= new List(); errors ??= new List(); return new LoadSnapshotJobState( jobId, - createdDateTime, - lastUpdatedDateTime, - expirationDateTime, + createdOn, + lastUpdatedOn, + expiresOn, status, warnings?.ToList(), errors?.ToList(), @@ -788,33 +788,33 @@ public static IntentEvaluationSummary IntentEvaluationSummary(double f1 = defaul } /// Initializes a new instance of . - /// The resource ID. + /// The resource ID. /// The resource region. /// A new instance for mocking. - public static AssignedDeploymentResource AssignedDeploymentResource(string azureResourceId = null, string region = null) + public static AssignedDeploymentResource AssignedDeploymentResource(string resourceId = null, string region = null) { - return new AssignedDeploymentResource(azureResourceId, region, serializedAdditionalRawData: null); + return new AssignedDeploymentResource(resourceId, region, serializedAdditionalRawData: null); } /// Initializes a new instance of . /// The job ID. - /// The creation date time of the job. - /// The last date time the job was updated. - /// The expiration date time of the job. + /// The creation date time of the job. + /// The last date time the job was updated. + /// The expiration date time of the job. /// The job status. /// The warnings that were encountered while executing the job. /// The errors encountered while executing the job. /// A new instance for mocking. - public static DeploymentResourcesJobState DeploymentResourcesJobState(string jobId = null, DateTimeOffset createdDateTime = default, DateTimeOffset lastUpdatedDateTime = default, DateTimeOffset? expirationDateTime = null, JobStatus status = default, IEnumerable warnings = null, IEnumerable errors = null) + public static DeploymentResourcesJobState DeploymentResourcesJobState(string jobId = null, DateTimeOffset createdOn = default, DateTimeOffset lastUpdatedOn = default, DateTimeOffset? expiresOn = null, JobStatus status = default, IEnumerable warnings = null, IEnumerable errors = null) { warnings ??= new List(); errors ??= new List(); return new DeploymentResourcesJobState( jobId, - createdDateTime, - lastUpdatedDateTime, - expirationDateTime, + createdOn, + lastUpdatedOn, + expiresOn, status, warnings?.ToList(), errors?.ToList(), @@ -845,12 +845,12 @@ public static AssignedProjectDeploymentsMetadata AssignedProjectDeploymentsMetad /// Initializes a new instance of . /// Represents the deployment name. - /// Represents deployment last deployed time. + /// Represents deployment last deployed time. /// Represents deployment expiration date in the runtime. /// A new instance for mocking. - public static AssignedProjectDeploymentMetadata AssignedProjectDeploymentMetadata(string deploymentName = null, DateTimeOffset lastDeployedDateTime = default, DateTimeOffset deploymentExpirationDate = default) + public static AssignedProjectDeploymentMetadata AssignedProjectDeploymentMetadata(string deploymentName = null, DateTimeOffset lastDeployedOn = default, DateTimeOffset deploymentExpirationDate = default) { - return new AssignedProjectDeploymentMetadata(deploymentName, lastDeployedDateTime, deploymentExpirationDate, serializedAdditionalRawData: null); + return new AssignedProjectDeploymentMetadata(deploymentName, lastDeployedOn, deploymentExpirationDate, serializedAdditionalRawData: null); } /// Initializes a new instance of . @@ -917,18 +917,18 @@ public static TrainingConfigVersion TrainingConfigVersion(string trainingConfigV /// Initializes a new instance of . /// The exported model name. /// The model ID. - /// The last trained date time of the model. - /// The last exported date time of the model. + /// The last trained date time of the model. + /// The last exported date time of the model. /// The model expiration date. /// The model training config version. /// A new instance for mocking. - public static ExportedTrainedModel ExportedTrainedModel(string exportedModelName = null, string modelId = null, DateTimeOffset lastTrainedDateTime = default, DateTimeOffset lastExportedModelDateTime = default, DateTimeOffset modelExpirationDate = default, string modelTrainingConfigVersion = null) + public static ExportedTrainedModel ExportedTrainedModel(string exportedModelName = null, string modelId = null, DateTimeOffset lastTrainedOn = default, DateTimeOffset lastExportedModelOn = default, DateTimeOffset modelExpirationDate = default, string modelTrainingConfigVersion = null) { return new ExportedTrainedModel( exportedModelName, modelId, - lastTrainedDateTime, - lastExportedModelDateTime, + lastTrainedOn, + lastExportedModelOn, modelExpirationDate, modelTrainingConfigVersion, serializedAdditionalRawData: null); @@ -936,23 +936,23 @@ public static ExportedTrainedModel ExportedTrainedModel(string exportedModelName /// Initializes a new instance of . /// The job ID. - /// The creation date time of the job. - /// The last date time the job was updated. - /// The expiration date time of the job. + /// The creation date time of the job. + /// The last date time the job was updated. + /// The expiration date time of the job. /// The job status. /// The warnings that were encountered while executing the job. /// The errors encountered while executing the job. /// A new instance for mocking. - public static ExportedModelJobState ExportedModelJobState(string jobId = null, DateTimeOffset createdDateTime = default, DateTimeOffset lastUpdatedDateTime = default, DateTimeOffset? expirationDateTime = null, JobStatus status = default, IEnumerable warnings = null, IEnumerable errors = null) + public static ExportedModelJobState ExportedModelJobState(string jobId = null, DateTimeOffset createdOn = default, DateTimeOffset lastUpdatedOn = default, DateTimeOffset? expiresOn = null, JobStatus status = default, IEnumerable warnings = null, IEnumerable errors = null) { warnings ??= new List(); errors ??= new List(); return new ExportedModelJobState( jobId, - createdDateTime, - lastUpdatedDateTime, - expirationDateTime, + createdOn, + lastUpdatedOn, + expiresOn, status, warnings?.ToList(), errors?.ToList(), diff --git a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Docs/AnalyzeConversationAuthoring.xml b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Docs/AuthoringClient.xml similarity index 79% rename from sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Docs/AnalyzeConversationAuthoring.xml rename to sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Docs/AuthoringClient.xml index ad7f0d4545c2e..5e95dff4d6c06 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Docs/AnalyzeConversationAuthoring.xml +++ b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Docs/AuthoringClient.xml @@ -7,7 +7,7 @@ This sample shows how to call GetProjectAsync. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetProjectAsync(""); ]]> @@ -15,7 +15,7 @@ This sample shows how to call GetProjectAsync with all parameters. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetProjectAsync(""); ]]> @@ -26,7 +26,7 @@ This sample shows how to call GetProject. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetProject(""); ]]> @@ -34,7 +34,7 @@ This sample shows how to call GetProject with all parameters. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetProject(""); ]]> @@ -45,13 +45,13 @@ This sample shows how to call GetProjectAsync and parse the result. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetProjectAsync("", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.GetProperty("createdDateTime").ToString()); -Console.WriteLine(result.GetProperty("lastModifiedDateTime").ToString()); +Console.WriteLine(result.GetProperty("createdOn").ToString()); +Console.WriteLine(result.GetProperty("lastModifiedOn").ToString()); Console.WriteLine(result.GetProperty("projectKind").ToString()); Console.WriteLine(result.GetProperty("projectName").ToString()); Console.WriteLine(result.GetProperty("language").ToString()); @@ -60,15 +60,15 @@ This sample shows how to call GetProjectAsync with all parameters and parse the "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetProjectAsync("", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.GetProperty("createdDateTime").ToString()); -Console.WriteLine(result.GetProperty("lastModifiedDateTime").ToString()); -Console.WriteLine(result.GetProperty("lastTrainedDateTime").ToString()); -Console.WriteLine(result.GetProperty("lastDeployedDateTime").ToString()); +Console.WriteLine(result.GetProperty("createdOn").ToString()); +Console.WriteLine(result.GetProperty("lastModifiedOn").ToString()); +Console.WriteLine(result.GetProperty("lastTrainedOn").ToString()); +Console.WriteLine(result.GetProperty("lastDeployedOn").ToString()); Console.WriteLine(result.GetProperty("projectKind").ToString()); Console.WriteLine(result.GetProperty("settings").GetProperty("confidenceThreshold").ToString()); Console.WriteLine(result.GetProperty("storageInputContainerName").ToString()); @@ -84,13 +84,13 @@ This sample shows how to call GetProject and parse the result. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetProject("", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.GetProperty("createdDateTime").ToString()); -Console.WriteLine(result.GetProperty("lastModifiedDateTime").ToString()); +Console.WriteLine(result.GetProperty("createdOn").ToString()); +Console.WriteLine(result.GetProperty("lastModifiedOn").ToString()); Console.WriteLine(result.GetProperty("projectKind").ToString()); Console.WriteLine(result.GetProperty("projectName").ToString()); Console.WriteLine(result.GetProperty("language").ToString()); @@ -99,15 +99,15 @@ This sample shows how to call GetProject with all parameters and parse the resul "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetProject("", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.GetProperty("createdDateTime").ToString()); -Console.WriteLine(result.GetProperty("lastModifiedDateTime").ToString()); -Console.WriteLine(result.GetProperty("lastTrainedDateTime").ToString()); -Console.WriteLine(result.GetProperty("lastDeployedDateTime").ToString()); +Console.WriteLine(result.GetProperty("createdOn").ToString()); +Console.WriteLine(result.GetProperty("lastModifiedOn").ToString()); +Console.WriteLine(result.GetProperty("lastTrainedOn").ToString()); +Console.WriteLine(result.GetProperty("lastDeployedOn").ToString()); Console.WriteLine(result.GetProperty("projectKind").ToString()); Console.WriteLine(result.GetProperty("settings").GetProperty("confidenceThreshold").ToString()); Console.WriteLine(result.GetProperty("storageInputContainerName").ToString()); @@ -123,7 +123,7 @@ This sample shows how to call CreateProjectAsync and parse the result. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { @@ -134,8 +134,8 @@ using RequestContent content = RequestContent.Create(new Response response = await client.CreateProjectAsync("", content); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.GetProperty("createdDateTime").ToString()); -Console.WriteLine(result.GetProperty("lastModifiedDateTime").ToString()); +Console.WriteLine(result.GetProperty("createdOn").ToString()); +Console.WriteLine(result.GetProperty("lastModifiedOn").ToString()); Console.WriteLine(result.GetProperty("projectKind").ToString()); Console.WriteLine(result.GetProperty("projectName").ToString()); Console.WriteLine(result.GetProperty("language").ToString()); @@ -144,7 +144,7 @@ This sample shows how to call CreateProjectAsync with all parameters and request "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { @@ -162,10 +162,10 @@ using RequestContent content = RequestContent.Create(new Response response = await client.CreateProjectAsync("", content); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.GetProperty("createdDateTime").ToString()); -Console.WriteLine(result.GetProperty("lastModifiedDateTime").ToString()); -Console.WriteLine(result.GetProperty("lastTrainedDateTime").ToString()); -Console.WriteLine(result.GetProperty("lastDeployedDateTime").ToString()); +Console.WriteLine(result.GetProperty("createdOn").ToString()); +Console.WriteLine(result.GetProperty("lastModifiedOn").ToString()); +Console.WriteLine(result.GetProperty("lastTrainedOn").ToString()); +Console.WriteLine(result.GetProperty("lastDeployedOn").ToString()); Console.WriteLine(result.GetProperty("projectKind").ToString()); Console.WriteLine(result.GetProperty("settings").GetProperty("confidenceThreshold").ToString()); Console.WriteLine(result.GetProperty("storageInputContainerName").ToString()); @@ -181,7 +181,7 @@ This sample shows how to call CreateProject and parse the result. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { @@ -192,8 +192,8 @@ using RequestContent content = RequestContent.Create(new Response response = client.CreateProject("", content); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.GetProperty("createdDateTime").ToString()); -Console.WriteLine(result.GetProperty("lastModifiedDateTime").ToString()); +Console.WriteLine(result.GetProperty("createdOn").ToString()); +Console.WriteLine(result.GetProperty("lastModifiedOn").ToString()); Console.WriteLine(result.GetProperty("projectKind").ToString()); Console.WriteLine(result.GetProperty("projectName").ToString()); Console.WriteLine(result.GetProperty("language").ToString()); @@ -202,7 +202,7 @@ This sample shows how to call CreateProject with all parameters and request cont "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { @@ -220,10 +220,10 @@ using RequestContent content = RequestContent.Create(new Response response = client.CreateProject("", content); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.GetProperty("createdDateTime").ToString()); -Console.WriteLine(result.GetProperty("lastModifiedDateTime").ToString()); -Console.WriteLine(result.GetProperty("lastTrainedDateTime").ToString()); -Console.WriteLine(result.GetProperty("lastDeployedDateTime").ToString()); +Console.WriteLine(result.GetProperty("createdOn").ToString()); +Console.WriteLine(result.GetProperty("lastModifiedOn").ToString()); +Console.WriteLine(result.GetProperty("lastTrainedOn").ToString()); +Console.WriteLine(result.GetProperty("lastDeployedOn").ToString()); Console.WriteLine(result.GetProperty("projectKind").ToString()); Console.WriteLine(result.GetProperty("settings").GetProperty("confidenceThreshold").ToString()); Console.WriteLine(result.GetProperty("storageInputContainerName").ToString()); @@ -231,6 +231,140 @@ Console.WriteLine(result.GetProperty("projectName").ToString()); Console.WriteLine(result.GetProperty("multilingual").ToString()); Console.WriteLine(result.GetProperty("description").ToString()); Console.WriteLine(result.GetProperty("language").ToString()); +]]> + + + +This sample shows how to call GetProjectDeletionStatusAsync. +"); +AzureKeyCredential credential = new AzureKeyCredential(""); +AuthoringClient client = new AuthoringClient(endpoint, credential); + +Response response = await client.GetProjectDeletionStatusAsync(""); +]]> +This sample shows how to call GetProjectDeletionStatusAsync with all parameters. +"); +AzureKeyCredential credential = new AzureKeyCredential(""); +AuthoringClient client = new AuthoringClient(endpoint, credential); + +Response response = await client.GetProjectDeletionStatusAsync(""); +]]> + + + +This sample shows how to call GetProjectDeletionStatus. +"); +AzureKeyCredential credential = new AzureKeyCredential(""); +AuthoringClient client = new AuthoringClient(endpoint, credential); + +Response response = client.GetProjectDeletionStatus(""); +]]> +This sample shows how to call GetProjectDeletionStatus with all parameters. +"); +AzureKeyCredential credential = new AzureKeyCredential(""); +AuthoringClient client = new AuthoringClient(endpoint, credential); + +Response response = client.GetProjectDeletionStatus(""); +]]> + + + +This sample shows how to call GetProjectDeletionStatusAsync and parse the result. +"); +AzureKeyCredential credential = new AzureKeyCredential(""); +AuthoringClient client = new AuthoringClient(endpoint, credential); + +Response response = await client.GetProjectDeletionStatusAsync("", null); + +JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; +Console.WriteLine(result.GetProperty("jobId").ToString()); +Console.WriteLine(result.GetProperty("createdOn").ToString()); +Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); +Console.WriteLine(result.GetProperty("status").ToString()); +]]> +This sample shows how to call GetProjectDeletionStatusAsync with all parameters and parse the result. +"); +AzureKeyCredential credential = new AzureKeyCredential(""); +AuthoringClient client = new AuthoringClient(endpoint, credential); + +Response response = await client.GetProjectDeletionStatusAsync("", null); + +JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; +Console.WriteLine(result.GetProperty("jobId").ToString()); +Console.WriteLine(result.GetProperty("createdOn").ToString()); +Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); +Console.WriteLine(result.GetProperty("expiresOn").ToString()); +Console.WriteLine(result.GetProperty("status").ToString()); +Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("message").ToString()); +Console.WriteLine(result.GetProperty("errors")[0].GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("errors")[0].GetProperty("message").ToString()); +Console.WriteLine(result.GetProperty("errors")[0].GetProperty("target").ToString()); +Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("message").ToString()); +Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("target").ToString()); +Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("message").ToString()); +Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("details").GetProperty("").ToString()); +Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("target").ToString()); +Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("message").ToString()); +Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("details").GetProperty("").ToString()); +Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("target").ToString()); +]]> + + + +This sample shows how to call GetProjectDeletionStatus and parse the result. +"); +AzureKeyCredential credential = new AzureKeyCredential(""); +AuthoringClient client = new AuthoringClient(endpoint, credential); + +Response response = client.GetProjectDeletionStatus("", null); + +JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; +Console.WriteLine(result.GetProperty("jobId").ToString()); +Console.WriteLine(result.GetProperty("createdOn").ToString()); +Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); +Console.WriteLine(result.GetProperty("status").ToString()); +]]> +This sample shows how to call GetProjectDeletionStatus with all parameters and parse the result. +"); +AzureKeyCredential credential = new AzureKeyCredential(""); +AuthoringClient client = new AuthoringClient(endpoint, credential); + +Response response = client.GetProjectDeletionStatus("", null); + +JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; +Console.WriteLine(result.GetProperty("jobId").ToString()); +Console.WriteLine(result.GetProperty("createdOn").ToString()); +Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); +Console.WriteLine(result.GetProperty("expiresOn").ToString()); +Console.WriteLine(result.GetProperty("status").ToString()); +Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("message").ToString()); +Console.WriteLine(result.GetProperty("errors")[0].GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("errors")[0].GetProperty("message").ToString()); +Console.WriteLine(result.GetProperty("errors")[0].GetProperty("target").ToString()); +Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("message").ToString()); +Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("target").ToString()); +Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("message").ToString()); +Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("details").GetProperty("").ToString()); +Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("target").ToString()); +Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("message").ToString()); +Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("details").GetProperty("").ToString()); +Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("target").ToString()); ]]> @@ -239,7 +373,7 @@ This sample shows how to call CopyProjectAuthorizationAsync. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.CopyProjectAuthorizationAsync("", ProjectKind.Conversation); ]]> @@ -247,7 +381,7 @@ This sample shows how to call CopyProjectAuthorizationAsync with all parameters. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.CopyProjectAuthorizationAsync("", ProjectKind.Conversation, storageInputContainerName: "", allowOverwrite: true); ]]> @@ -258,7 +392,7 @@ This sample shows how to call CopyProjectAuthorization. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.CopyProjectAuthorization("", ProjectKind.Conversation); ]]> @@ -266,7 +400,7 @@ This sample shows how to call CopyProjectAuthorization with all parameters. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.CopyProjectAuthorization("", ProjectKind.Conversation, storageInputContainerName: "", allowOverwrite: true); ]]> @@ -277,7 +411,7 @@ This sample shows how to call CopyProjectAuthorizationAsync and parse the result "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { @@ -297,7 +431,7 @@ This sample shows how to call CopyProjectAuthorizationAsync with all parameters "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { @@ -322,7 +456,7 @@ This sample shows how to call CopyProjectAuthorization and parse the result. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { @@ -342,7 +476,7 @@ This sample shows how to call CopyProjectAuthorization with all parameters and r "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { @@ -367,7 +501,7 @@ This sample shows how to call GetCopyProjectStatusAsync. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetCopyProjectStatusAsync("", ""); ]]> @@ -375,7 +509,7 @@ This sample shows how to call GetCopyProjectStatusAsync with all parameters. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetCopyProjectStatusAsync("", ""); ]]> @@ -386,7 +520,7 @@ This sample shows how to call GetCopyProjectStatus. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetCopyProjectStatus("", ""); ]]> @@ -394,7 +528,7 @@ This sample shows how to call GetCopyProjectStatus with all parameters. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetCopyProjectStatus("", ""); ]]> @@ -405,29 +539,29 @@ This sample shows how to call GetCopyProjectStatusAsync and parse the result. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetCopyProjectStatusAsync("", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("jobId").ToString()); -Console.WriteLine(result.GetProperty("createdDateTime").ToString()); -Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); +Console.WriteLine(result.GetProperty("createdOn").ToString()); +Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); ]]> This sample shows how to call GetCopyProjectStatusAsync with all parameters and parse the result. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetCopyProjectStatusAsync("", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("jobId").ToString()); -Console.WriteLine(result.GetProperty("createdDateTime").ToString()); -Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); -Console.WriteLine(result.GetProperty("expirationDateTime").ToString()); +Console.WriteLine(result.GetProperty("createdOn").ToString()); +Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); +Console.WriteLine(result.GetProperty("expiresOn").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("message").ToString()); @@ -453,29 +587,29 @@ This sample shows how to call GetCopyProjectStatus and parse the result. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetCopyProjectStatus("", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("jobId").ToString()); -Console.WriteLine(result.GetProperty("createdDateTime").ToString()); -Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); +Console.WriteLine(result.GetProperty("createdOn").ToString()); +Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); ]]> This sample shows how to call GetCopyProjectStatus with all parameters and parse the result. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetCopyProjectStatus("", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("jobId").ToString()); -Console.WriteLine(result.GetProperty("createdDateTime").ToString()); -Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); -Console.WriteLine(result.GetProperty("expirationDateTime").ToString()); +Console.WriteLine(result.GetProperty("createdOn").ToString()); +Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); +Console.WriteLine(result.GetProperty("expiresOn").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("message").ToString()); @@ -495,189 +629,209 @@ Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetP Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("target").ToString()); ]]> - + -This sample shows how to call GetDeploymentAsync. +This sample shows how to call GetExportStatusAsync. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); -Response response = await client.GetDeploymentAsync("", ""); +Response response = await client.GetExportStatusAsync("", ""); ]]> -This sample shows how to call GetDeploymentAsync with all parameters. +This sample shows how to call GetExportStatusAsync with all parameters. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); -Response response = await client.GetDeploymentAsync("", ""); +Response response = await client.GetExportStatusAsync("", ""); ]]> - + -This sample shows how to call GetDeployment. +This sample shows how to call GetExportStatus. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); -Response response = client.GetDeployment("", ""); +Response response = client.GetExportStatus("", ""); ]]> -This sample shows how to call GetDeployment with all parameters. +This sample shows how to call GetExportStatus with all parameters. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); -Response response = client.GetDeployment("", ""); +Response response = client.GetExportStatus("", ""); ]]> - + -This sample shows how to call GetDeploymentAsync and parse the result. +This sample shows how to call GetExportStatusAsync and parse the result. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); -Response response = await client.GetDeploymentAsync("", "", null); +Response response = await client.GetExportStatusAsync("", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.GetProperty("deploymentName").ToString()); -Console.WriteLine(result.GetProperty("modelId").ToString()); -Console.WriteLine(result.GetProperty("lastTrainedDateTime").ToString()); -Console.WriteLine(result.GetProperty("lastDeployedDateTime").ToString()); -Console.WriteLine(result.GetProperty("deploymentExpirationDate").ToString()); -Console.WriteLine(result.GetProperty("modelTrainingConfigVersion").ToString()); -Console.WriteLine(result.GetProperty("assignedResources")[0].GetProperty("resourceId").ToString()); -Console.WriteLine(result.GetProperty("assignedResources")[0].GetProperty("region").ToString()); +Console.WriteLine(result.GetProperty("jobId").ToString()); +Console.WriteLine(result.GetProperty("createdOn").ToString()); +Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); +Console.WriteLine(result.GetProperty("status").ToString()); ]]> -This sample shows how to call GetDeploymentAsync with all parameters and parse the result. +This sample shows how to call GetExportStatusAsync with all parameters and parse the result. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); -Response response = await client.GetDeploymentAsync("", "", null); +Response response = await client.GetExportStatusAsync("", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.GetProperty("deploymentName").ToString()); -Console.WriteLine(result.GetProperty("modelId").ToString()); -Console.WriteLine(result.GetProperty("lastTrainedDateTime").ToString()); -Console.WriteLine(result.GetProperty("lastDeployedDateTime").ToString()); -Console.WriteLine(result.GetProperty("deploymentExpirationDate").ToString()); -Console.WriteLine(result.GetProperty("modelTrainingConfigVersion").ToString()); -Console.WriteLine(result.GetProperty("assignedResources")[0].GetProperty("resourceId").ToString()); -Console.WriteLine(result.GetProperty("assignedResources")[0].GetProperty("region").ToString()); +Console.WriteLine(result.GetProperty("jobId").ToString()); +Console.WriteLine(result.GetProperty("createdOn").ToString()); +Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); +Console.WriteLine(result.GetProperty("expiresOn").ToString()); +Console.WriteLine(result.GetProperty("status").ToString()); +Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("message").ToString()); +Console.WriteLine(result.GetProperty("errors")[0].GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("errors")[0].GetProperty("message").ToString()); +Console.WriteLine(result.GetProperty("errors")[0].GetProperty("target").ToString()); +Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("message").ToString()); +Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("target").ToString()); +Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("message").ToString()); +Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("details").GetProperty("").ToString()); +Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("target").ToString()); +Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("message").ToString()); +Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("details").GetProperty("").ToString()); +Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("target").ToString()); +Console.WriteLine(result.GetProperty("resultUrl").ToString()); ]]> - + -This sample shows how to call GetDeployment and parse the result. +This sample shows how to call GetExportStatus and parse the result. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); -Response response = client.GetDeployment("", "", null); +Response response = client.GetExportStatus("", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.GetProperty("deploymentName").ToString()); -Console.WriteLine(result.GetProperty("modelId").ToString()); -Console.WriteLine(result.GetProperty("lastTrainedDateTime").ToString()); -Console.WriteLine(result.GetProperty("lastDeployedDateTime").ToString()); -Console.WriteLine(result.GetProperty("deploymentExpirationDate").ToString()); -Console.WriteLine(result.GetProperty("modelTrainingConfigVersion").ToString()); -Console.WriteLine(result.GetProperty("assignedResources")[0].GetProperty("resourceId").ToString()); -Console.WriteLine(result.GetProperty("assignedResources")[0].GetProperty("region").ToString()); +Console.WriteLine(result.GetProperty("jobId").ToString()); +Console.WriteLine(result.GetProperty("createdOn").ToString()); +Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); +Console.WriteLine(result.GetProperty("status").ToString()); ]]> -This sample shows how to call GetDeployment with all parameters and parse the result. +This sample shows how to call GetExportStatus with all parameters and parse the result. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); -Response response = client.GetDeployment("", "", null); +Response response = client.GetExportStatus("", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.GetProperty("deploymentName").ToString()); -Console.WriteLine(result.GetProperty("modelId").ToString()); -Console.WriteLine(result.GetProperty("lastTrainedDateTime").ToString()); -Console.WriteLine(result.GetProperty("lastDeployedDateTime").ToString()); -Console.WriteLine(result.GetProperty("deploymentExpirationDate").ToString()); -Console.WriteLine(result.GetProperty("modelTrainingConfigVersion").ToString()); -Console.WriteLine(result.GetProperty("assignedResources")[0].GetProperty("resourceId").ToString()); -Console.WriteLine(result.GetProperty("assignedResources")[0].GetProperty("region").ToString()); +Console.WriteLine(result.GetProperty("jobId").ToString()); +Console.WriteLine(result.GetProperty("createdOn").ToString()); +Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); +Console.WriteLine(result.GetProperty("expiresOn").ToString()); +Console.WriteLine(result.GetProperty("status").ToString()); +Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("message").ToString()); +Console.WriteLine(result.GetProperty("errors")[0].GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("errors")[0].GetProperty("message").ToString()); +Console.WriteLine(result.GetProperty("errors")[0].GetProperty("target").ToString()); +Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("message").ToString()); +Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("target").ToString()); +Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("message").ToString()); +Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("details").GetProperty("").ToString()); +Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("target").ToString()); +Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("message").ToString()); +Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("details").GetProperty("").ToString()); +Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("target").ToString()); +Console.WriteLine(result.GetProperty("resultUrl").ToString()); ]]> - + -This sample shows how to call GetDeploymentDeleteFromResourcesStatusAsync. +This sample shows how to call GetImportStatusAsync. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); -Response response = await client.GetDeploymentDeleteFromResourcesStatusAsync("", "", ""); +Response response = await client.GetImportStatusAsync("", ""); ]]> -This sample shows how to call GetDeploymentDeleteFromResourcesStatusAsync with all parameters. +This sample shows how to call GetImportStatusAsync with all parameters. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); -Response response = await client.GetDeploymentDeleteFromResourcesStatusAsync("", "", ""); +Response response = await client.GetImportStatusAsync("", ""); ]]> - + -This sample shows how to call GetDeploymentDeleteFromResourcesStatus. +This sample shows how to call GetImportStatus. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); -Response response = client.GetDeploymentDeleteFromResourcesStatus("", "", ""); +Response response = client.GetImportStatus("", ""); ]]> -This sample shows how to call GetDeploymentDeleteFromResourcesStatus with all parameters. +This sample shows how to call GetImportStatus with all parameters. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); -Response response = client.GetDeploymentDeleteFromResourcesStatus("", "", ""); +Response response = client.GetImportStatus("", ""); ]]> - + -This sample shows how to call GetDeploymentDeleteFromResourcesStatusAsync and parse the result. +This sample shows how to call GetImportStatusAsync and parse the result. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); -Response response = await client.GetDeploymentDeleteFromResourcesStatusAsync("", "", "", null); +Response response = await client.GetImportStatusAsync("", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("jobId").ToString()); -Console.WriteLine(result.GetProperty("createdDateTime").ToString()); -Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); +Console.WriteLine(result.GetProperty("createdOn").ToString()); +Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); ]]> -This sample shows how to call GetDeploymentDeleteFromResourcesStatusAsync with all parameters and parse the result. +This sample shows how to call GetImportStatusAsync with all parameters and parse the result. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); -Response response = await client.GetDeploymentDeleteFromResourcesStatusAsync("", "", "", null); +Response response = await client.GetImportStatusAsync("", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("jobId").ToString()); -Console.WriteLine(result.GetProperty("createdDateTime").ToString()); -Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); -Console.WriteLine(result.GetProperty("expirationDateTime").ToString()); +Console.WriteLine(result.GetProperty("createdOn").ToString()); +Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); +Console.WriteLine(result.GetProperty("expiresOn").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("message").ToString()); @@ -697,35 +851,35 @@ Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetP Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("target").ToString()); ]]> - + -This sample shows how to call GetDeploymentDeleteFromResourcesStatus and parse the result. +This sample shows how to call GetImportStatus and parse the result. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); -Response response = client.GetDeploymentDeleteFromResourcesStatus("", "", "", null); +Response response = client.GetImportStatus("", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("jobId").ToString()); -Console.WriteLine(result.GetProperty("createdDateTime").ToString()); -Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); +Console.WriteLine(result.GetProperty("createdOn").ToString()); +Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); ]]> -This sample shows how to call GetDeploymentDeleteFromResourcesStatus with all parameters and parse the result. +This sample shows how to call GetImportStatus with all parameters and parse the result. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); -Response response = client.GetDeploymentDeleteFromResourcesStatus("", "", "", null); +Response response = client.GetImportStatus("", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("jobId").ToString()); -Console.WriteLine(result.GetProperty("createdDateTime").ToString()); -Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); -Console.WriteLine(result.GetProperty("expirationDateTime").ToString()); +Console.WriteLine(result.GetProperty("createdOn").ToString()); +Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); +Console.WriteLine(result.GetProperty("expiresOn").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("message").ToString()); @@ -745,73 +899,77 @@ Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetP Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("target").ToString()); ]]> - + -This sample shows how to call GetDeploymentStatusAsync. +This sample shows how to call GetTrainingStatusAsync. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); -Response response = await client.GetDeploymentStatusAsync("", "", ""); +Response response = await client.GetTrainingStatusAsync("", ""); ]]> -This sample shows how to call GetDeploymentStatusAsync with all parameters. +This sample shows how to call GetTrainingStatusAsync with all parameters. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); -Response response = await client.GetDeploymentStatusAsync("", "", ""); +Response response = await client.GetTrainingStatusAsync("", ""); ]]> - + -This sample shows how to call GetDeploymentStatus. +This sample shows how to call GetTrainingStatus. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); -Response response = client.GetDeploymentStatus("", "", ""); +Response response = client.GetTrainingStatus("", ""); ]]> -This sample shows how to call GetDeploymentStatus with all parameters. +This sample shows how to call GetTrainingStatus with all parameters. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); -Response response = client.GetDeploymentStatus("", "", ""); +Response response = client.GetTrainingStatus("", ""); ]]> - + -This sample shows how to call GetDeploymentStatusAsync and parse the result. +This sample shows how to call GetTrainingStatusAsync and parse the result. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); -Response response = await client.GetDeploymentStatusAsync("", "", "", null); +Response response = await client.GetTrainingStatusAsync("", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("jobId").ToString()); -Console.WriteLine(result.GetProperty("createdDateTime").ToString()); -Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); +Console.WriteLine(result.GetProperty("createdOn").ToString()); +Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); +Console.WriteLine(result.GetProperty("result").GetProperty("modelLabel").ToString()); +Console.WriteLine(result.GetProperty("result").GetProperty("trainingConfigVersion").ToString()); +Console.WriteLine(result.GetProperty("result").GetProperty("trainingStatus").GetProperty("percentComplete").ToString()); +Console.WriteLine(result.GetProperty("result").GetProperty("trainingStatus").GetProperty("status").ToString()); ]]> -This sample shows how to call GetDeploymentStatusAsync with all parameters and parse the result. +This sample shows how to call GetTrainingStatusAsync with all parameters and parse the result. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); -Response response = await client.GetDeploymentStatusAsync("", "", "", null); +Response response = await client.GetTrainingStatusAsync("", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("jobId").ToString()); -Console.WriteLine(result.GetProperty("createdDateTime").ToString()); -Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); -Console.WriteLine(result.GetProperty("expirationDateTime").ToString()); +Console.WriteLine(result.GetProperty("createdOn").ToString()); +Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); +Console.WriteLine(result.GetProperty("expiresOn").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("message").ToString()); @@ -829,37 +987,53 @@ Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetP Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("message").ToString()); Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("details").GetProperty("").ToString()); Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("target").ToString()); +Console.WriteLine(result.GetProperty("result").GetProperty("modelLabel").ToString()); +Console.WriteLine(result.GetProperty("result").GetProperty("trainingConfigVersion").ToString()); +Console.WriteLine(result.GetProperty("result").GetProperty("trainingMode").ToString()); +Console.WriteLine(result.GetProperty("result").GetProperty("trainingStatus").GetProperty("percentComplete").ToString()); +Console.WriteLine(result.GetProperty("result").GetProperty("trainingStatus").GetProperty("startedOn").ToString()); +Console.WriteLine(result.GetProperty("result").GetProperty("trainingStatus").GetProperty("endedOn").ToString()); +Console.WriteLine(result.GetProperty("result").GetProperty("trainingStatus").GetProperty("status").ToString()); +Console.WriteLine(result.GetProperty("result").GetProperty("evaluationStatus").GetProperty("percentComplete").ToString()); +Console.WriteLine(result.GetProperty("result").GetProperty("evaluationStatus").GetProperty("startedOn").ToString()); +Console.WriteLine(result.GetProperty("result").GetProperty("evaluationStatus").GetProperty("endedOn").ToString()); +Console.WriteLine(result.GetProperty("result").GetProperty("evaluationStatus").GetProperty("status").ToString()); +Console.WriteLine(result.GetProperty("result").GetProperty("estimatedEndOn").ToString()); ]]> - + -This sample shows how to call GetDeploymentStatus and parse the result. +This sample shows how to call GetTrainingStatus and parse the result. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); -Response response = client.GetDeploymentStatus("", "", "", null); +Response response = client.GetTrainingStatus("", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("jobId").ToString()); -Console.WriteLine(result.GetProperty("createdDateTime").ToString()); -Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); +Console.WriteLine(result.GetProperty("createdOn").ToString()); +Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); +Console.WriteLine(result.GetProperty("result").GetProperty("modelLabel").ToString()); +Console.WriteLine(result.GetProperty("result").GetProperty("trainingConfigVersion").ToString()); +Console.WriteLine(result.GetProperty("result").GetProperty("trainingStatus").GetProperty("percentComplete").ToString()); +Console.WriteLine(result.GetProperty("result").GetProperty("trainingStatus").GetProperty("status").ToString()); ]]> -This sample shows how to call GetDeploymentStatus with all parameters and parse the result. +This sample shows how to call GetTrainingStatus with all parameters and parse the result. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); -Response response = client.GetDeploymentStatus("", "", "", null); +Response response = client.GetTrainingStatus("", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("jobId").ToString()); -Console.WriteLine(result.GetProperty("createdDateTime").ToString()); -Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); -Console.WriteLine(result.GetProperty("expirationDateTime").ToString()); +Console.WriteLine(result.GetProperty("createdOn").ToString()); +Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); +Console.WriteLine(result.GetProperty("expiresOn").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("message").ToString()); @@ -877,6 +1051,18 @@ Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetP Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("message").ToString()); Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("details").GetProperty("").ToString()); Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("target").ToString()); +Console.WriteLine(result.GetProperty("result").GetProperty("modelLabel").ToString()); +Console.WriteLine(result.GetProperty("result").GetProperty("trainingConfigVersion").ToString()); +Console.WriteLine(result.GetProperty("result").GetProperty("trainingMode").ToString()); +Console.WriteLine(result.GetProperty("result").GetProperty("trainingStatus").GetProperty("percentComplete").ToString()); +Console.WriteLine(result.GetProperty("result").GetProperty("trainingStatus").GetProperty("startedOn").ToString()); +Console.WriteLine(result.GetProperty("result").GetProperty("trainingStatus").GetProperty("endedOn").ToString()); +Console.WriteLine(result.GetProperty("result").GetProperty("trainingStatus").GetProperty("status").ToString()); +Console.WriteLine(result.GetProperty("result").GetProperty("evaluationStatus").GetProperty("percentComplete").ToString()); +Console.WriteLine(result.GetProperty("result").GetProperty("evaluationStatus").GetProperty("startedOn").ToString()); +Console.WriteLine(result.GetProperty("result").GetProperty("evaluationStatus").GetProperty("endedOn").ToString()); +Console.WriteLine(result.GetProperty("result").GetProperty("evaluationStatus").GetProperty("status").ToString()); +Console.WriteLine(result.GetProperty("result").GetProperty("estimatedEndOn").ToString()); ]]> @@ -885,7 +1071,7 @@ This sample shows how to call GetSwapDeploymentsStatusAsync. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetSwapDeploymentsStatusAsync("", ""); ]]> @@ -893,7 +1079,7 @@ This sample shows how to call GetSwapDeploymentsStatusAsync with all parameters. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetSwapDeploymentsStatusAsync("", ""); ]]> @@ -904,7 +1090,7 @@ This sample shows how to call GetSwapDeploymentsStatus. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetSwapDeploymentsStatus("", ""); ]]> @@ -912,7 +1098,7 @@ This sample shows how to call GetSwapDeploymentsStatus with all parameters. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetSwapDeploymentsStatus("", ""); ]]> @@ -923,29 +1109,29 @@ This sample shows how to call GetSwapDeploymentsStatusAsync and parse the result "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetSwapDeploymentsStatusAsync("", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("jobId").ToString()); -Console.WriteLine(result.GetProperty("createdDateTime").ToString()); -Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); +Console.WriteLine(result.GetProperty("createdOn").ToString()); +Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); ]]> This sample shows how to call GetSwapDeploymentsStatusAsync with all parameters and parse the result. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetSwapDeploymentsStatusAsync("", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("jobId").ToString()); -Console.WriteLine(result.GetProperty("createdDateTime").ToString()); -Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); -Console.WriteLine(result.GetProperty("expirationDateTime").ToString()); +Console.WriteLine(result.GetProperty("createdOn").ToString()); +Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); +Console.WriteLine(result.GetProperty("expiresOn").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("message").ToString()); @@ -971,29 +1157,29 @@ This sample shows how to call GetSwapDeploymentsStatus and parse the result. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetSwapDeploymentsStatus("", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("jobId").ToString()); -Console.WriteLine(result.GetProperty("createdDateTime").ToString()); -Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); +Console.WriteLine(result.GetProperty("createdOn").ToString()); +Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); ]]> This sample shows how to call GetSwapDeploymentsStatus with all parameters and parse the result. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetSwapDeploymentsStatus("", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("jobId").ToString()); -Console.WriteLine(result.GetProperty("createdDateTime").ToString()); -Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); -Console.WriteLine(result.GetProperty("expirationDateTime").ToString()); +Console.WriteLine(result.GetProperty("createdOn").ToString()); +Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); +Console.WriteLine(result.GetProperty("expiresOn").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("message").ToString()); @@ -1013,73 +1199,189 @@ Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetP Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("target").ToString()); ]]> - + -This sample shows how to call GetExportStatusAsync. +This sample shows how to call GetDeploymentAsync. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); -Response response = await client.GetExportStatusAsync("", ""); +Response response = await client.GetDeploymentAsync("", ""); ]]> -This sample shows how to call GetExportStatusAsync with all parameters. +This sample shows how to call GetDeploymentAsync with all parameters. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); -Response response = await client.GetExportStatusAsync("", ""); +Response response = await client.GetDeploymentAsync("", ""); ]]> - + -This sample shows how to call GetExportStatus. +This sample shows how to call GetDeployment. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); -Response response = client.GetExportStatus("", ""); +Response response = client.GetDeployment("", ""); ]]> -This sample shows how to call GetExportStatus with all parameters. +This sample shows how to call GetDeployment with all parameters. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); -Response response = client.GetExportStatus("", ""); +Response response = client.GetDeployment("", ""); ]]> - + -This sample shows how to call GetExportStatusAsync and parse the result. +This sample shows how to call GetDeploymentAsync and parse the result. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); -Response response = await client.GetExportStatusAsync("", "", null); +Response response = await client.GetDeploymentAsync("", "", null); + +JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; +Console.WriteLine(result.GetProperty("deploymentName").ToString()); +Console.WriteLine(result.GetProperty("modelId").ToString()); +Console.WriteLine(result.GetProperty("lastTrainedOn").ToString()); +Console.WriteLine(result.GetProperty("lastDeployedOn").ToString()); +Console.WriteLine(result.GetProperty("deploymentExpirationDate").ToString()); +Console.WriteLine(result.GetProperty("modelTrainingConfigVersion").ToString()); +Console.WriteLine(result.GetProperty("assignedResources")[0].GetProperty("resourceId").ToString()); +Console.WriteLine(result.GetProperty("assignedResources")[0].GetProperty("region").ToString()); +]]> +This sample shows how to call GetDeploymentAsync with all parameters and parse the result. +"); +AzureKeyCredential credential = new AzureKeyCredential(""); +AuthoringClient client = new AuthoringClient(endpoint, credential); + +Response response = await client.GetDeploymentAsync("", "", null); + +JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; +Console.WriteLine(result.GetProperty("deploymentName").ToString()); +Console.WriteLine(result.GetProperty("modelId").ToString()); +Console.WriteLine(result.GetProperty("lastTrainedOn").ToString()); +Console.WriteLine(result.GetProperty("lastDeployedOn").ToString()); +Console.WriteLine(result.GetProperty("deploymentExpirationDate").ToString()); +Console.WriteLine(result.GetProperty("modelTrainingConfigVersion").ToString()); +Console.WriteLine(result.GetProperty("assignedResources")[0].GetProperty("resourceId").ToString()); +Console.WriteLine(result.GetProperty("assignedResources")[0].GetProperty("region").ToString()); +]]> + + + +This sample shows how to call GetDeployment and parse the result. +"); +AzureKeyCredential credential = new AzureKeyCredential(""); +AuthoringClient client = new AuthoringClient(endpoint, credential); + +Response response = client.GetDeployment("", "", null); + +JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; +Console.WriteLine(result.GetProperty("deploymentName").ToString()); +Console.WriteLine(result.GetProperty("modelId").ToString()); +Console.WriteLine(result.GetProperty("lastTrainedOn").ToString()); +Console.WriteLine(result.GetProperty("lastDeployedOn").ToString()); +Console.WriteLine(result.GetProperty("deploymentExpirationDate").ToString()); +Console.WriteLine(result.GetProperty("modelTrainingConfigVersion").ToString()); +Console.WriteLine(result.GetProperty("assignedResources")[0].GetProperty("resourceId").ToString()); +Console.WriteLine(result.GetProperty("assignedResources")[0].GetProperty("region").ToString()); +]]> +This sample shows how to call GetDeployment with all parameters and parse the result. +"); +AzureKeyCredential credential = new AzureKeyCredential(""); +AuthoringClient client = new AuthoringClient(endpoint, credential); + +Response response = client.GetDeployment("", "", null); + +JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; +Console.WriteLine(result.GetProperty("deploymentName").ToString()); +Console.WriteLine(result.GetProperty("modelId").ToString()); +Console.WriteLine(result.GetProperty("lastTrainedOn").ToString()); +Console.WriteLine(result.GetProperty("lastDeployedOn").ToString()); +Console.WriteLine(result.GetProperty("deploymentExpirationDate").ToString()); +Console.WriteLine(result.GetProperty("modelTrainingConfigVersion").ToString()); +Console.WriteLine(result.GetProperty("assignedResources")[0].GetProperty("resourceId").ToString()); +Console.WriteLine(result.GetProperty("assignedResources")[0].GetProperty("region").ToString()); +]]> + + + +This sample shows how to call GetDeploymentStatusAsync. +"); +AzureKeyCredential credential = new AzureKeyCredential(""); +AuthoringClient client = new AuthoringClient(endpoint, credential); + +Response response = await client.GetDeploymentStatusAsync("", "", ""); +]]> +This sample shows how to call GetDeploymentStatusAsync with all parameters. +"); +AzureKeyCredential credential = new AzureKeyCredential(""); +AuthoringClient client = new AuthoringClient(endpoint, credential); + +Response response = await client.GetDeploymentStatusAsync("", "", ""); +]]> + + + +This sample shows how to call GetDeploymentStatus. +"); +AzureKeyCredential credential = new AzureKeyCredential(""); +AuthoringClient client = new AuthoringClient(endpoint, credential); + +Response response = client.GetDeploymentStatus("", "", ""); +]]> +This sample shows how to call GetDeploymentStatus with all parameters. +"); +AzureKeyCredential credential = new AzureKeyCredential(""); +AuthoringClient client = new AuthoringClient(endpoint, credential); + +Response response = client.GetDeploymentStatus("", "", ""); +]]> + + + +This sample shows how to call GetDeploymentStatusAsync and parse the result. +"); +AzureKeyCredential credential = new AzureKeyCredential(""); +AuthoringClient client = new AuthoringClient(endpoint, credential); + +Response response = await client.GetDeploymentStatusAsync("", "", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("jobId").ToString()); -Console.WriteLine(result.GetProperty("createdDateTime").ToString()); -Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); +Console.WriteLine(result.GetProperty("createdOn").ToString()); +Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); ]]> -This sample shows how to call GetExportStatusAsync with all parameters and parse the result. +This sample shows how to call GetDeploymentStatusAsync with all parameters and parse the result. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); -Response response = await client.GetExportStatusAsync("", "", null); +Response response = await client.GetDeploymentStatusAsync("", "", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("jobId").ToString()); -Console.WriteLine(result.GetProperty("createdDateTime").ToString()); -Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); -Console.WriteLine(result.GetProperty("expirationDateTime").ToString()); +Console.WriteLine(result.GetProperty("createdOn").ToString()); +Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); +Console.WriteLine(result.GetProperty("expiresOn").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("message").ToString()); @@ -1097,38 +1399,37 @@ Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetP Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("message").ToString()); Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("details").GetProperty("").ToString()); Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("target").ToString()); -Console.WriteLine(result.GetProperty("resultUrl").ToString()); ]]> - + -This sample shows how to call GetExportStatus and parse the result. +This sample shows how to call GetDeploymentStatus and parse the result. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); -Response response = client.GetExportStatus("", "", null); +Response response = client.GetDeploymentStatus("", "", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("jobId").ToString()); -Console.WriteLine(result.GetProperty("createdDateTime").ToString()); -Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); +Console.WriteLine(result.GetProperty("createdOn").ToString()); +Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); ]]> -This sample shows how to call GetExportStatus with all parameters and parse the result. +This sample shows how to call GetDeploymentStatus with all parameters and parse the result. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); -Response response = client.GetExportStatus("", "", null); +Response response = client.GetDeploymentStatus("", "", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("jobId").ToString()); -Console.WriteLine(result.GetProperty("createdDateTime").ToString()); -Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); -Console.WriteLine(result.GetProperty("expirationDateTime").ToString()); +Console.WriteLine(result.GetProperty("createdOn").ToString()); +Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); +Console.WriteLine(result.GetProperty("expiresOn").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("message").ToString()); @@ -1146,76 +1447,75 @@ Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetP Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("message").ToString()); Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("details").GetProperty("").ToString()); Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("target").ToString()); -Console.WriteLine(result.GetProperty("resultUrl").ToString()); ]]> - + -This sample shows how to call GetImportStatusAsync. +This sample shows how to call GetDeploymentDeleteFromResourcesStatusAsync. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); -Response response = await client.GetImportStatusAsync("", ""); +Response response = await client.GetDeploymentDeleteFromResourcesStatusAsync("", "", ""); ]]> -This sample shows how to call GetImportStatusAsync with all parameters. +This sample shows how to call GetDeploymentDeleteFromResourcesStatusAsync with all parameters. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); -Response response = await client.GetImportStatusAsync("", ""); +Response response = await client.GetDeploymentDeleteFromResourcesStatusAsync("", "", ""); ]]> - + -This sample shows how to call GetImportStatus. +This sample shows how to call GetDeploymentDeleteFromResourcesStatus. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); -Response response = client.GetImportStatus("", ""); +Response response = client.GetDeploymentDeleteFromResourcesStatus("", "", ""); ]]> -This sample shows how to call GetImportStatus with all parameters. +This sample shows how to call GetDeploymentDeleteFromResourcesStatus with all parameters. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); -Response response = client.GetImportStatus("", ""); +Response response = client.GetDeploymentDeleteFromResourcesStatus("", "", ""); ]]> - + -This sample shows how to call GetImportStatusAsync and parse the result. +This sample shows how to call GetDeploymentDeleteFromResourcesStatusAsync and parse the result. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); -Response response = await client.GetImportStatusAsync("", "", null); +Response response = await client.GetDeploymentDeleteFromResourcesStatusAsync("", "", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("jobId").ToString()); -Console.WriteLine(result.GetProperty("createdDateTime").ToString()); -Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); +Console.WriteLine(result.GetProperty("createdOn").ToString()); +Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); ]]> -This sample shows how to call GetImportStatusAsync with all parameters and parse the result. +This sample shows how to call GetDeploymentDeleteFromResourcesStatusAsync with all parameters and parse the result. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); -Response response = await client.GetImportStatusAsync("", "", null); +Response response = await client.GetDeploymentDeleteFromResourcesStatusAsync("", "", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("jobId").ToString()); -Console.WriteLine(result.GetProperty("createdDateTime").ToString()); -Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); -Console.WriteLine(result.GetProperty("expirationDateTime").ToString()); +Console.WriteLine(result.GetProperty("createdOn").ToString()); +Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); +Console.WriteLine(result.GetProperty("expiresOn").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("message").ToString()); @@ -1235,35 +1535,35 @@ Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetP Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("target").ToString()); ]]> - + -This sample shows how to call GetImportStatus and parse the result. +This sample shows how to call GetDeploymentDeleteFromResourcesStatus and parse the result. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); -Response response = client.GetImportStatus("", "", null); +Response response = client.GetDeploymentDeleteFromResourcesStatus("", "", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("jobId").ToString()); -Console.WriteLine(result.GetProperty("createdDateTime").ToString()); -Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); +Console.WriteLine(result.GetProperty("createdOn").ToString()); +Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); ]]> -This sample shows how to call GetImportStatus with all parameters and parse the result. +This sample shows how to call GetDeploymentDeleteFromResourcesStatus with all parameters and parse the result. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); -Response response = client.GetImportStatus("", "", null); +Response response = client.GetDeploymentDeleteFromResourcesStatus("", "", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("jobId").ToString()); -Console.WriteLine(result.GetProperty("createdDateTime").ToString()); -Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); -Console.WriteLine(result.GetProperty("expirationDateTime").ToString()); +Console.WriteLine(result.GetProperty("createdOn").ToString()); +Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); +Console.WriteLine(result.GetProperty("expiresOn").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("message").ToString()); @@ -1289,7 +1589,7 @@ This sample shows how to call GetTrainedModelAsync. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetTrainedModelAsync("", ""); ]]> @@ -1297,7 +1597,7 @@ This sample shows how to call GetTrainedModelAsync with all parameters. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetTrainedModelAsync("", ""); ]]> @@ -1308,7 +1608,7 @@ This sample shows how to call GetTrainedModel. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetTrainedModel("", ""); ]]> @@ -1316,7 +1616,7 @@ This sample shows how to call GetTrainedModel with all parameters. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetTrainedModel("", ""); ]]> @@ -1327,14 +1627,14 @@ This sample shows how to call GetTrainedModelAsync and parse the result. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetTrainedModelAsync("", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("label").ToString()); Console.WriteLine(result.GetProperty("modelId").ToString()); -Console.WriteLine(result.GetProperty("lastTrainedDateTime").ToString()); +Console.WriteLine(result.GetProperty("lastTrainedOn").ToString()); Console.WriteLine(result.GetProperty("lastTrainingDurationInSeconds").ToString()); Console.WriteLine(result.GetProperty("modelExpirationDate").ToString()); Console.WriteLine(result.GetProperty("modelTrainingConfigVersion").ToString()); @@ -1344,14 +1644,14 @@ This sample shows how to call GetTrainedModelAsync with all parameters and parse "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetTrainedModelAsync("", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("label").ToString()); Console.WriteLine(result.GetProperty("modelId").ToString()); -Console.WriteLine(result.GetProperty("lastTrainedDateTime").ToString()); +Console.WriteLine(result.GetProperty("lastTrainedOn").ToString()); Console.WriteLine(result.GetProperty("lastTrainingDurationInSeconds").ToString()); Console.WriteLine(result.GetProperty("modelExpirationDate").ToString()); Console.WriteLine(result.GetProperty("modelTrainingConfigVersion").ToString()); @@ -1364,14 +1664,14 @@ This sample shows how to call GetTrainedModel and parse the result. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetTrainedModel("", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("label").ToString()); Console.WriteLine(result.GetProperty("modelId").ToString()); -Console.WriteLine(result.GetProperty("lastTrainedDateTime").ToString()); +Console.WriteLine(result.GetProperty("lastTrainedOn").ToString()); Console.WriteLine(result.GetProperty("lastTrainingDurationInSeconds").ToString()); Console.WriteLine(result.GetProperty("modelExpirationDate").ToString()); Console.WriteLine(result.GetProperty("modelTrainingConfigVersion").ToString()); @@ -1381,14 +1681,14 @@ This sample shows how to call GetTrainedModel with all parameters and parse the "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetTrainedModel("", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("label").ToString()); Console.WriteLine(result.GetProperty("modelId").ToString()); -Console.WriteLine(result.GetProperty("lastTrainedDateTime").ToString()); +Console.WriteLine(result.GetProperty("lastTrainedOn").ToString()); Console.WriteLine(result.GetProperty("lastTrainingDurationInSeconds").ToString()); Console.WriteLine(result.GetProperty("modelExpirationDate").ToString()); Console.WriteLine(result.GetProperty("modelTrainingConfigVersion").ToString()); @@ -1401,7 +1701,7 @@ This sample shows how to call DeleteTrainedModelAsync. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.DeleteTrainedModelAsync("", ""); @@ -1411,7 +1711,7 @@ This sample shows how to call DeleteTrainedModelAsync with all parameters. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.DeleteTrainedModelAsync("", ""); @@ -1424,7 +1724,7 @@ This sample shows how to call DeleteTrainedModel. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.DeleteTrainedModel("", ""); @@ -1434,7 +1734,7 @@ This sample shows how to call DeleteTrainedModel with all parameters. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.DeleteTrainedModel("", ""); @@ -1447,7 +1747,7 @@ This sample shows how to call GetEvaluationStatusAsync. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetEvaluationStatusAsync("", "", ""); ]]> @@ -1455,7 +1755,7 @@ This sample shows how to call GetEvaluationStatusAsync with all parameters. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetEvaluationStatusAsync("", "", ""); ]]> @@ -1466,7 +1766,7 @@ This sample shows how to call GetEvaluationStatus. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetEvaluationStatus("", "", ""); ]]> @@ -1474,7 +1774,7 @@ This sample shows how to call GetEvaluationStatus with all parameters. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetEvaluationStatus("", "", ""); ]]> @@ -1485,14 +1785,14 @@ This sample shows how to call GetEvaluationStatusAsync and parse the result. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetEvaluationStatusAsync("", "", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("jobId").ToString()); -Console.WriteLine(result.GetProperty("createdDateTime").ToString()); -Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); +Console.WriteLine(result.GetProperty("createdOn").ToString()); +Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); Console.WriteLine(result.GetProperty("result").GetProperty("evaluationOptions").ToString()); Console.WriteLine(result.GetProperty("result").GetProperty("modelLabel").ToString()); @@ -1503,15 +1803,15 @@ This sample shows how to call GetEvaluationStatusAsync with all parameters and p "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetEvaluationStatusAsync("", "", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("jobId").ToString()); -Console.WriteLine(result.GetProperty("createdDateTime").ToString()); -Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); -Console.WriteLine(result.GetProperty("expirationDateTime").ToString()); +Console.WriteLine(result.GetProperty("createdOn").ToString()); +Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); +Console.WriteLine(result.GetProperty("expiresOn").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("message").ToString()); @@ -1543,14 +1843,14 @@ This sample shows how to call GetEvaluationStatus and parse the result. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetEvaluationStatus("", "", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("jobId").ToString()); -Console.WriteLine(result.GetProperty("createdDateTime").ToString()); -Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); +Console.WriteLine(result.GetProperty("createdOn").ToString()); +Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); Console.WriteLine(result.GetProperty("result").GetProperty("evaluationOptions").ToString()); Console.WriteLine(result.GetProperty("result").GetProperty("modelLabel").ToString()); @@ -1561,15 +1861,15 @@ This sample shows how to call GetEvaluationStatus with all parameters and parse "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetEvaluationStatus("", "", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("jobId").ToString()); -Console.WriteLine(result.GetProperty("createdDateTime").ToString()); -Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); -Console.WriteLine(result.GetProperty("expirationDateTime").ToString()); +Console.WriteLine(result.GetProperty("createdOn").ToString()); +Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); +Console.WriteLine(result.GetProperty("expiresOn").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("message").ToString()); @@ -1595,21 +1895,155 @@ Console.WriteLine(result.GetProperty("result").GetProperty("trainingConfigVersio Console.WriteLine(result.GetProperty("result").GetProperty("percentComplete").ToString()); ]]> - + -This sample shows how to call GetModelEvaluationSummaryAsync. +This sample shows how to call GetLoadSnapshotStatusAsync. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); -Response response = await client.GetModelEvaluationSummaryAsync("", ""); +Response response = await client.GetLoadSnapshotStatusAsync("", "", ""); +]]> +This sample shows how to call GetLoadSnapshotStatusAsync with all parameters. +"); +AzureKeyCredential credential = new AzureKeyCredential(""); +AuthoringClient client = new AuthoringClient(endpoint, credential); + +Response response = await client.GetLoadSnapshotStatusAsync("", "", ""); +]]> + + + +This sample shows how to call GetLoadSnapshotStatus. +"); +AzureKeyCredential credential = new AzureKeyCredential(""); +AuthoringClient client = new AuthoringClient(endpoint, credential); + +Response response = client.GetLoadSnapshotStatus("", "", ""); +]]> +This sample shows how to call GetLoadSnapshotStatus with all parameters. +"); +AzureKeyCredential credential = new AzureKeyCredential(""); +AuthoringClient client = new AuthoringClient(endpoint, credential); + +Response response = client.GetLoadSnapshotStatus("", "", ""); +]]> + + + +This sample shows how to call GetLoadSnapshotStatusAsync and parse the result. +"); +AzureKeyCredential credential = new AzureKeyCredential(""); +AuthoringClient client = new AuthoringClient(endpoint, credential); + +Response response = await client.GetLoadSnapshotStatusAsync("", "", "", null); + +JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; +Console.WriteLine(result.GetProperty("jobId").ToString()); +Console.WriteLine(result.GetProperty("createdOn").ToString()); +Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); +Console.WriteLine(result.GetProperty("status").ToString()); +]]> +This sample shows how to call GetLoadSnapshotStatusAsync with all parameters and parse the result. +"); +AzureKeyCredential credential = new AzureKeyCredential(""); +AuthoringClient client = new AuthoringClient(endpoint, credential); + +Response response = await client.GetLoadSnapshotStatusAsync("", "", "", null); + +JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; +Console.WriteLine(result.GetProperty("jobId").ToString()); +Console.WriteLine(result.GetProperty("createdOn").ToString()); +Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); +Console.WriteLine(result.GetProperty("expiresOn").ToString()); +Console.WriteLine(result.GetProperty("status").ToString()); +Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("message").ToString()); +Console.WriteLine(result.GetProperty("errors")[0].GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("errors")[0].GetProperty("message").ToString()); +Console.WriteLine(result.GetProperty("errors")[0].GetProperty("target").ToString()); +Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("message").ToString()); +Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("target").ToString()); +Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("message").ToString()); +Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("details").GetProperty("").ToString()); +Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("target").ToString()); +Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("message").ToString()); +Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("details").GetProperty("").ToString()); +Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("target").ToString()); +]]> + + + +This sample shows how to call GetLoadSnapshotStatus and parse the result. +"); +AzureKeyCredential credential = new AzureKeyCredential(""); +AuthoringClient client = new AuthoringClient(endpoint, credential); + +Response response = client.GetLoadSnapshotStatus("", "", "", null); + +JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; +Console.WriteLine(result.GetProperty("jobId").ToString()); +Console.WriteLine(result.GetProperty("createdOn").ToString()); +Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); +Console.WriteLine(result.GetProperty("status").ToString()); +]]> +This sample shows how to call GetLoadSnapshotStatus with all parameters and parse the result. +"); +AzureKeyCredential credential = new AzureKeyCredential(""); +AuthoringClient client = new AuthoringClient(endpoint, credential); + +Response response = client.GetLoadSnapshotStatus("", "", "", null); + +JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; +Console.WriteLine(result.GetProperty("jobId").ToString()); +Console.WriteLine(result.GetProperty("createdOn").ToString()); +Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); +Console.WriteLine(result.GetProperty("expiresOn").ToString()); +Console.WriteLine(result.GetProperty("status").ToString()); +Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("message").ToString()); +Console.WriteLine(result.GetProperty("errors")[0].GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("errors")[0].GetProperty("message").ToString()); +Console.WriteLine(result.GetProperty("errors")[0].GetProperty("target").ToString()); +Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("message").ToString()); +Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("target").ToString()); +Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("message").ToString()); +Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("details").GetProperty("").ToString()); +Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("target").ToString()); +Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("code").ToString()); +Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("message").ToString()); +Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("details").GetProperty("").ToString()); +Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("target").ToString()); +]]> + + + +This sample shows how to call GetModelEvaluationSummaryAsync. +"); +AzureKeyCredential credential = new AzureKeyCredential(""); +AuthoringClient client = new AuthoringClient(endpoint, credential); + +Response response = await client.GetModelEvaluationSummaryAsync("", ""); ]]> This sample shows how to call GetModelEvaluationSummaryAsync with all parameters. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetModelEvaluationSummaryAsync("", ""); ]]> @@ -1620,7 +2054,7 @@ This sample shows how to call GetModelEvaluationSummary. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetModelEvaluationSummary("", ""); ]]> @@ -1628,7 +2062,7 @@ This sample shows how to call GetModelEvaluationSummary with all parameters. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetModelEvaluationSummary("", ""); ]]> @@ -1639,7 +2073,7 @@ This sample shows how to call GetModelEvaluationSummaryAsync and parse the resul "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetModelEvaluationSummaryAsync("", "", null); @@ -1677,7 +2111,7 @@ This sample shows how to call GetModelEvaluationSummaryAsync with all parameters "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetModelEvaluationSummaryAsync("", "", null); @@ -1721,7 +2155,7 @@ This sample shows how to call GetModelEvaluationSummary and parse the result. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetModelEvaluationSummary("", "", null); @@ -1759,7 +2193,7 @@ This sample shows how to call GetModelEvaluationSummary with all parameters and "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetModelEvaluationSummary("", "", null); @@ -1795,140 +2229,6 @@ Console.WriteLine(result.GetProperty("intentsEvaluation").GetProperty("macroReca Console.WriteLine(result.GetProperty("evaluationOptions").GetProperty("kind").ToString()); Console.WriteLine(result.GetProperty("evaluationOptions").GetProperty("trainingSplitPercentage").ToString()); Console.WriteLine(result.GetProperty("evaluationOptions").GetProperty("testingSplitPercentage").ToString()); -]]> - - - -This sample shows how to call GetLoadSnapshotStatusAsync. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); - -Response response = await client.GetLoadSnapshotStatusAsync("", "", ""); -]]> -This sample shows how to call GetLoadSnapshotStatusAsync with all parameters. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); - -Response response = await client.GetLoadSnapshotStatusAsync("", "", ""); -]]> - - - -This sample shows how to call GetLoadSnapshotStatus. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); - -Response response = client.GetLoadSnapshotStatus("", "", ""); -]]> -This sample shows how to call GetLoadSnapshotStatus with all parameters. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); - -Response response = client.GetLoadSnapshotStatus("", "", ""); -]]> - - - -This sample shows how to call GetLoadSnapshotStatusAsync and parse the result. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); - -Response response = await client.GetLoadSnapshotStatusAsync("", "", "", null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.GetProperty("jobId").ToString()); -Console.WriteLine(result.GetProperty("createdDateTime").ToString()); -Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); -Console.WriteLine(result.GetProperty("status").ToString()); -]]> -This sample shows how to call GetLoadSnapshotStatusAsync with all parameters and parse the result. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); - -Response response = await client.GetLoadSnapshotStatusAsync("", "", "", null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.GetProperty("jobId").ToString()); -Console.WriteLine(result.GetProperty("createdDateTime").ToString()); -Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); -Console.WriteLine(result.GetProperty("expirationDateTime").ToString()); -Console.WriteLine(result.GetProperty("status").ToString()); -Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("code").ToString()); -Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("message").ToString()); -Console.WriteLine(result.GetProperty("errors")[0].GetProperty("code").ToString()); -Console.WriteLine(result.GetProperty("errors")[0].GetProperty("message").ToString()); -Console.WriteLine(result.GetProperty("errors")[0].GetProperty("target").ToString()); -Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("code").ToString()); -Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("message").ToString()); -Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("target").ToString()); -Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("code").ToString()); -Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("message").ToString()); -Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("details").GetProperty("").ToString()); -Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("target").ToString()); -Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("code").ToString()); -Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("message").ToString()); -Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("details").GetProperty("").ToString()); -Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("target").ToString()); -]]> - - - -This sample shows how to call GetLoadSnapshotStatus and parse the result. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); - -Response response = client.GetLoadSnapshotStatus("", "", "", null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.GetProperty("jobId").ToString()); -Console.WriteLine(result.GetProperty("createdDateTime").ToString()); -Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); -Console.WriteLine(result.GetProperty("status").ToString()); -]]> -This sample shows how to call GetLoadSnapshotStatus with all parameters and parse the result. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); - -Response response = client.GetLoadSnapshotStatus("", "", "", null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.GetProperty("jobId").ToString()); -Console.WriteLine(result.GetProperty("createdDateTime").ToString()); -Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); -Console.WriteLine(result.GetProperty("expirationDateTime").ToString()); -Console.WriteLine(result.GetProperty("status").ToString()); -Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("code").ToString()); -Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("message").ToString()); -Console.WriteLine(result.GetProperty("errors")[0].GetProperty("code").ToString()); -Console.WriteLine(result.GetProperty("errors")[0].GetProperty("message").ToString()); -Console.WriteLine(result.GetProperty("errors")[0].GetProperty("target").ToString()); -Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("code").ToString()); -Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("message").ToString()); -Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("target").ToString()); -Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("code").ToString()); -Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("message").ToString()); -Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("details").GetProperty("").ToString()); -Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("target").ToString()); -Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("code").ToString()); -Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("message").ToString()); -Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("details").GetProperty("").ToString()); -Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("target").ToString()); ]]> @@ -1937,7 +2237,7 @@ This sample shows how to call GetAssignDeploymentResourcesStatusAsync. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetAssignDeploymentResourcesStatusAsync("", ""); ]]> @@ -1945,7 +2245,7 @@ This sample shows how to call GetAssignDeploymentResourcesStatusAsync with all p "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetAssignDeploymentResourcesStatusAsync("", ""); ]]> @@ -1956,7 +2256,7 @@ This sample shows how to call GetAssignDeploymentResourcesStatus. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetAssignDeploymentResourcesStatus("", ""); ]]> @@ -1964,7 +2264,7 @@ This sample shows how to call GetAssignDeploymentResourcesStatus with all parame "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetAssignDeploymentResourcesStatus("", ""); ]]> @@ -1975,29 +2275,29 @@ This sample shows how to call GetAssignDeploymentResourcesStatusAsync and parse "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetAssignDeploymentResourcesStatusAsync("", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("jobId").ToString()); -Console.WriteLine(result.GetProperty("createdDateTime").ToString()); -Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); +Console.WriteLine(result.GetProperty("createdOn").ToString()); +Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); ]]> This sample shows how to call GetAssignDeploymentResourcesStatusAsync with all parameters and parse the result. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetAssignDeploymentResourcesStatusAsync("", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("jobId").ToString()); -Console.WriteLine(result.GetProperty("createdDateTime").ToString()); -Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); -Console.WriteLine(result.GetProperty("expirationDateTime").ToString()); +Console.WriteLine(result.GetProperty("createdOn").ToString()); +Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); +Console.WriteLine(result.GetProperty("expiresOn").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("message").ToString()); @@ -2023,29 +2323,29 @@ This sample shows how to call GetAssignDeploymentResourcesStatus and parse the r "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetAssignDeploymentResourcesStatus("", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("jobId").ToString()); -Console.WriteLine(result.GetProperty("createdDateTime").ToString()); -Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); +Console.WriteLine(result.GetProperty("createdOn").ToString()); +Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); ]]> This sample shows how to call GetAssignDeploymentResourcesStatus with all parameters and parse the result. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetAssignDeploymentResourcesStatus("", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("jobId").ToString()); -Console.WriteLine(result.GetProperty("createdDateTime").ToString()); -Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); -Console.WriteLine(result.GetProperty("expirationDateTime").ToString()); +Console.WriteLine(result.GetProperty("createdOn").ToString()); +Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); +Console.WriteLine(result.GetProperty("expiresOn").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("message").ToString()); @@ -2071,7 +2371,7 @@ This sample shows how to call GetUnassignDeploymentResourcesStatusAsync. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetUnassignDeploymentResourcesStatusAsync("", ""); ]]> @@ -2079,7 +2379,7 @@ This sample shows how to call GetUnassignDeploymentResourcesStatusAsync with all "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetUnassignDeploymentResourcesStatusAsync("", ""); ]]> @@ -2090,7 +2390,7 @@ This sample shows how to call GetUnassignDeploymentResourcesStatus. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetUnassignDeploymentResourcesStatus("", ""); ]]> @@ -2098,7 +2398,7 @@ This sample shows how to call GetUnassignDeploymentResourcesStatus with all para "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetUnassignDeploymentResourcesStatus("", ""); ]]> @@ -2109,29 +2409,29 @@ This sample shows how to call GetUnassignDeploymentResourcesStatusAsync and pars "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetUnassignDeploymentResourcesStatusAsync("", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("jobId").ToString()); -Console.WriteLine(result.GetProperty("createdDateTime").ToString()); -Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); +Console.WriteLine(result.GetProperty("createdOn").ToString()); +Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); ]]> This sample shows how to call GetUnassignDeploymentResourcesStatusAsync with all parameters and parse the result. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetUnassignDeploymentResourcesStatusAsync("", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("jobId").ToString()); -Console.WriteLine(result.GetProperty("createdDateTime").ToString()); -Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); -Console.WriteLine(result.GetProperty("expirationDateTime").ToString()); +Console.WriteLine(result.GetProperty("createdOn").ToString()); +Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); +Console.WriteLine(result.GetProperty("expiresOn").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("message").ToString()); @@ -2157,329 +2457,29 @@ This sample shows how to call GetUnassignDeploymentResourcesStatus and parse the "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetUnassignDeploymentResourcesStatus("", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("jobId").ToString()); -Console.WriteLine(result.GetProperty("createdDateTime").ToString()); -Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); +Console.WriteLine(result.GetProperty("createdOn").ToString()); +Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); ]]> This sample shows how to call GetUnassignDeploymentResourcesStatus with all parameters and parse the result. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetUnassignDeploymentResourcesStatus("", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("jobId").ToString()); -Console.WriteLine(result.GetProperty("createdDateTime").ToString()); -Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); -Console.WriteLine(result.GetProperty("expirationDateTime").ToString()); -Console.WriteLine(result.GetProperty("status").ToString()); -Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("code").ToString()); -Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("message").ToString()); -Console.WriteLine(result.GetProperty("errors")[0].GetProperty("code").ToString()); -Console.WriteLine(result.GetProperty("errors")[0].GetProperty("message").ToString()); -Console.WriteLine(result.GetProperty("errors")[0].GetProperty("target").ToString()); -Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("code").ToString()); -Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("message").ToString()); -Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("target").ToString()); -Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("code").ToString()); -Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("message").ToString()); -Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("details").GetProperty("").ToString()); -Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("target").ToString()); -Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("code").ToString()); -Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("message").ToString()); -Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("details").GetProperty("").ToString()); -Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("target").ToString()); -]]> - - - -This sample shows how to call GetTrainingStatusAsync. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); - -Response response = await client.GetTrainingStatusAsync("", ""); -]]> -This sample shows how to call GetTrainingStatusAsync with all parameters. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); - -Response response = await client.GetTrainingStatusAsync("", ""); -]]> - - - -This sample shows how to call GetTrainingStatus. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); - -Response response = client.GetTrainingStatus("", ""); -]]> -This sample shows how to call GetTrainingStatus with all parameters. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); - -Response response = client.GetTrainingStatus("", ""); -]]> - - - -This sample shows how to call GetTrainingStatusAsync and parse the result. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); - -Response response = await client.GetTrainingStatusAsync("", "", null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.GetProperty("jobId").ToString()); -Console.WriteLine(result.GetProperty("createdDateTime").ToString()); -Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); -Console.WriteLine(result.GetProperty("status").ToString()); -Console.WriteLine(result.GetProperty("result").GetProperty("modelLabel").ToString()); -Console.WriteLine(result.GetProperty("result").GetProperty("trainingConfigVersion").ToString()); -Console.WriteLine(result.GetProperty("result").GetProperty("trainingStatus").GetProperty("percentComplete").ToString()); -Console.WriteLine(result.GetProperty("result").GetProperty("trainingStatus").GetProperty("status").ToString()); -]]> -This sample shows how to call GetTrainingStatusAsync with all parameters and parse the result. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); - -Response response = await client.GetTrainingStatusAsync("", "", null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.GetProperty("jobId").ToString()); -Console.WriteLine(result.GetProperty("createdDateTime").ToString()); -Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); -Console.WriteLine(result.GetProperty("expirationDateTime").ToString()); -Console.WriteLine(result.GetProperty("status").ToString()); -Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("code").ToString()); -Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("message").ToString()); -Console.WriteLine(result.GetProperty("errors")[0].GetProperty("code").ToString()); -Console.WriteLine(result.GetProperty("errors")[0].GetProperty("message").ToString()); -Console.WriteLine(result.GetProperty("errors")[0].GetProperty("target").ToString()); -Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("code").ToString()); -Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("message").ToString()); -Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("target").ToString()); -Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("code").ToString()); -Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("message").ToString()); -Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("details").GetProperty("").ToString()); -Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("target").ToString()); -Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("code").ToString()); -Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("message").ToString()); -Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("details").GetProperty("").ToString()); -Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("target").ToString()); -Console.WriteLine(result.GetProperty("result").GetProperty("modelLabel").ToString()); -Console.WriteLine(result.GetProperty("result").GetProperty("trainingConfigVersion").ToString()); -Console.WriteLine(result.GetProperty("result").GetProperty("trainingMode").ToString()); -Console.WriteLine(result.GetProperty("result").GetProperty("trainingStatus").GetProperty("percentComplete").ToString()); -Console.WriteLine(result.GetProperty("result").GetProperty("trainingStatus").GetProperty("startDateTime").ToString()); -Console.WriteLine(result.GetProperty("result").GetProperty("trainingStatus").GetProperty("endDateTime").ToString()); -Console.WriteLine(result.GetProperty("result").GetProperty("trainingStatus").GetProperty("status").ToString()); -Console.WriteLine(result.GetProperty("result").GetProperty("evaluationStatus").GetProperty("percentComplete").ToString()); -Console.WriteLine(result.GetProperty("result").GetProperty("evaluationStatus").GetProperty("startDateTime").ToString()); -Console.WriteLine(result.GetProperty("result").GetProperty("evaluationStatus").GetProperty("endDateTime").ToString()); -Console.WriteLine(result.GetProperty("result").GetProperty("evaluationStatus").GetProperty("status").ToString()); -Console.WriteLine(result.GetProperty("result").GetProperty("estimatedEndDateTime").ToString()); -]]> - - - -This sample shows how to call GetTrainingStatus and parse the result. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); - -Response response = client.GetTrainingStatus("", "", null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.GetProperty("jobId").ToString()); -Console.WriteLine(result.GetProperty("createdDateTime").ToString()); -Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); -Console.WriteLine(result.GetProperty("status").ToString()); -Console.WriteLine(result.GetProperty("result").GetProperty("modelLabel").ToString()); -Console.WriteLine(result.GetProperty("result").GetProperty("trainingConfigVersion").ToString()); -Console.WriteLine(result.GetProperty("result").GetProperty("trainingStatus").GetProperty("percentComplete").ToString()); -Console.WriteLine(result.GetProperty("result").GetProperty("trainingStatus").GetProperty("status").ToString()); -]]> -This sample shows how to call GetTrainingStatus with all parameters and parse the result. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); - -Response response = client.GetTrainingStatus("", "", null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.GetProperty("jobId").ToString()); -Console.WriteLine(result.GetProperty("createdDateTime").ToString()); -Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); -Console.WriteLine(result.GetProperty("expirationDateTime").ToString()); -Console.WriteLine(result.GetProperty("status").ToString()); -Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("code").ToString()); -Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("message").ToString()); -Console.WriteLine(result.GetProperty("errors")[0].GetProperty("code").ToString()); -Console.WriteLine(result.GetProperty("errors")[0].GetProperty("message").ToString()); -Console.WriteLine(result.GetProperty("errors")[0].GetProperty("target").ToString()); -Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("code").ToString()); -Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("message").ToString()); -Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("target").ToString()); -Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("code").ToString()); -Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("message").ToString()); -Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("details").GetProperty("").ToString()); -Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("target").ToString()); -Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("code").ToString()); -Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("message").ToString()); -Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("details").GetProperty("").ToString()); -Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("target").ToString()); -Console.WriteLine(result.GetProperty("result").GetProperty("modelLabel").ToString()); -Console.WriteLine(result.GetProperty("result").GetProperty("trainingConfigVersion").ToString()); -Console.WriteLine(result.GetProperty("result").GetProperty("trainingMode").ToString()); -Console.WriteLine(result.GetProperty("result").GetProperty("trainingStatus").GetProperty("percentComplete").ToString()); -Console.WriteLine(result.GetProperty("result").GetProperty("trainingStatus").GetProperty("startDateTime").ToString()); -Console.WriteLine(result.GetProperty("result").GetProperty("trainingStatus").GetProperty("endDateTime").ToString()); -Console.WriteLine(result.GetProperty("result").GetProperty("trainingStatus").GetProperty("status").ToString()); -Console.WriteLine(result.GetProperty("result").GetProperty("evaluationStatus").GetProperty("percentComplete").ToString()); -Console.WriteLine(result.GetProperty("result").GetProperty("evaluationStatus").GetProperty("startDateTime").ToString()); -Console.WriteLine(result.GetProperty("result").GetProperty("evaluationStatus").GetProperty("endDateTime").ToString()); -Console.WriteLine(result.GetProperty("result").GetProperty("evaluationStatus").GetProperty("status").ToString()); -Console.WriteLine(result.GetProperty("result").GetProperty("estimatedEndDateTime").ToString()); -]]> - - - -This sample shows how to call GetProjectDeletionStatusAsync. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); - -Response response = await client.GetProjectDeletionStatusAsync(""); -]]> -This sample shows how to call GetProjectDeletionStatusAsync with all parameters. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); - -Response response = await client.GetProjectDeletionStatusAsync(""); -]]> - - - -This sample shows how to call GetProjectDeletionStatus. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); - -Response response = client.GetProjectDeletionStatus(""); -]]> -This sample shows how to call GetProjectDeletionStatus with all parameters. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); - -Response response = client.GetProjectDeletionStatus(""); -]]> - - - -This sample shows how to call GetProjectDeletionStatusAsync and parse the result. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); - -Response response = await client.GetProjectDeletionStatusAsync("", null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.GetProperty("jobId").ToString()); -Console.WriteLine(result.GetProperty("createdDateTime").ToString()); -Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); -Console.WriteLine(result.GetProperty("status").ToString()); -]]> -This sample shows how to call GetProjectDeletionStatusAsync with all parameters and parse the result. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); - -Response response = await client.GetProjectDeletionStatusAsync("", null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.GetProperty("jobId").ToString()); -Console.WriteLine(result.GetProperty("createdDateTime").ToString()); -Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); -Console.WriteLine(result.GetProperty("expirationDateTime").ToString()); -Console.WriteLine(result.GetProperty("status").ToString()); -Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("code").ToString()); -Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("message").ToString()); -Console.WriteLine(result.GetProperty("errors")[0].GetProperty("code").ToString()); -Console.WriteLine(result.GetProperty("errors")[0].GetProperty("message").ToString()); -Console.WriteLine(result.GetProperty("errors")[0].GetProperty("target").ToString()); -Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("code").ToString()); -Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("message").ToString()); -Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("target").ToString()); -Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("code").ToString()); -Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("message").ToString()); -Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("details").GetProperty("").ToString()); -Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("target").ToString()); -Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("code").ToString()); -Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("message").ToString()); -Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("details").GetProperty("").ToString()); -Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("target").ToString()); -]]> - - - -This sample shows how to call GetProjectDeletionStatus and parse the result. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); - -Response response = client.GetProjectDeletionStatus("", null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.GetProperty("jobId").ToString()); -Console.WriteLine(result.GetProperty("createdDateTime").ToString()); -Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); -Console.WriteLine(result.GetProperty("status").ToString()); -]]> -This sample shows how to call GetProjectDeletionStatus with all parameters and parse the result. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); - -Response response = client.GetProjectDeletionStatus("", null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.GetProperty("jobId").ToString()); -Console.WriteLine(result.GetProperty("createdDateTime").ToString()); -Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); -Console.WriteLine(result.GetProperty("expirationDateTime").ToString()); +Console.WriteLine(result.GetProperty("createdOn").ToString()); +Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); +Console.WriteLine(result.GetProperty("expiresOn").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("message").ToString()); @@ -2505,7 +2505,7 @@ This sample shows how to call GetAssignedResourceDeploymentsAsync. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetAssignedResourceDeploymentsAsync(); ]]> @@ -2513,7 +2513,7 @@ This sample shows how to call GetAssignedResourceDeploymentsAsync with all param "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetAssignedResourceDeploymentsAsync(top: 1234, skip: 1234, maxpagesize: 1234); ]]> @@ -2524,7 +2524,7 @@ This sample shows how to call GetAssignedResourceDeployments. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetAssignedResourceDeployments(); ]]> @@ -2532,7 +2532,7 @@ This sample shows how to call GetAssignedResourceDeployments with all parameters "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetAssignedResourceDeployments(top: 1234, skip: 1234, maxpagesize: 1234); ]]> @@ -2543,28 +2543,28 @@ This sample shows how to call GetAssignedResourceDeploymentsAsync and parse the "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetAssignedResourceDeploymentsAsync(null, null, null, null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("value")[0].GetProperty("projectName").ToString()); Console.WriteLine(result.GetProperty("value")[0].GetProperty("deploymentsMetadata")[0].GetProperty("deploymentName").ToString()); -Console.WriteLine(result.GetProperty("value")[0].GetProperty("deploymentsMetadata")[0].GetProperty("lastDeployedDateTime").ToString()); +Console.WriteLine(result.GetProperty("value")[0].GetProperty("deploymentsMetadata")[0].GetProperty("lastDeployedOn").ToString()); Console.WriteLine(result.GetProperty("value")[0].GetProperty("deploymentsMetadata")[0].GetProperty("deploymentExpirationDate").ToString()); ]]> This sample shows how to call GetAssignedResourceDeploymentsAsync with all parameters and parse the result. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetAssignedResourceDeploymentsAsync(1234, 1234, 1234, null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("value")[0].GetProperty("projectName").ToString()); Console.WriteLine(result.GetProperty("value")[0].GetProperty("deploymentsMetadata")[0].GetProperty("deploymentName").ToString()); -Console.WriteLine(result.GetProperty("value")[0].GetProperty("deploymentsMetadata")[0].GetProperty("lastDeployedDateTime").ToString()); +Console.WriteLine(result.GetProperty("value")[0].GetProperty("deploymentsMetadata")[0].GetProperty("lastDeployedOn").ToString()); Console.WriteLine(result.GetProperty("value")[0].GetProperty("deploymentsMetadata")[0].GetProperty("deploymentExpirationDate").ToString()); Console.WriteLine(result.GetProperty("nextLink").ToString()); ]]> @@ -2575,28 +2575,28 @@ This sample shows how to call GetAssignedResourceDeployments and parse the resul "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetAssignedResourceDeployments(null, null, null, null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("value")[0].GetProperty("projectName").ToString()); Console.WriteLine(result.GetProperty("value")[0].GetProperty("deploymentsMetadata")[0].GetProperty("deploymentName").ToString()); -Console.WriteLine(result.GetProperty("value")[0].GetProperty("deploymentsMetadata")[0].GetProperty("lastDeployedDateTime").ToString()); +Console.WriteLine(result.GetProperty("value")[0].GetProperty("deploymentsMetadata")[0].GetProperty("lastDeployedOn").ToString()); Console.WriteLine(result.GetProperty("value")[0].GetProperty("deploymentsMetadata")[0].GetProperty("deploymentExpirationDate").ToString()); ]]> This sample shows how to call GetAssignedResourceDeployments with all parameters and parse the result. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetAssignedResourceDeployments(1234, 1234, 1234, null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("value")[0].GetProperty("projectName").ToString()); Console.WriteLine(result.GetProperty("value")[0].GetProperty("deploymentsMetadata")[0].GetProperty("deploymentName").ToString()); -Console.WriteLine(result.GetProperty("value")[0].GetProperty("deploymentsMetadata")[0].GetProperty("lastDeployedDateTime").ToString()); +Console.WriteLine(result.GetProperty("value")[0].GetProperty("deploymentsMetadata")[0].GetProperty("lastDeployedOn").ToString()); Console.WriteLine(result.GetProperty("value")[0].GetProperty("deploymentsMetadata")[0].GetProperty("deploymentExpirationDate").ToString()); Console.WriteLine(result.GetProperty("nextLink").ToString()); ]]> @@ -2607,7 +2607,7 @@ This sample shows how to call GetSupportedLanguagesAsync. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetSupportedLanguagesAsync(ProjectKind.Conversation); ]]> @@ -2615,7 +2615,7 @@ This sample shows how to call GetSupportedLanguagesAsync with all parameters. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetSupportedLanguagesAsync(ProjectKind.Conversation, top: 1234, skip: 1234, maxpagesize: 1234); ]]> @@ -2626,7 +2626,7 @@ This sample shows how to call GetSupportedLanguages. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetSupportedLanguages(ProjectKind.Conversation); ]]> @@ -2634,7 +2634,7 @@ This sample shows how to call GetSupportedLanguages with all parameters. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetSupportedLanguages(ProjectKind.Conversation, top: 1234, skip: 1234, maxpagesize: 1234); ]]> @@ -2645,7 +2645,7 @@ This sample shows how to call GetSupportedLanguagesAsync and parse the result. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetSupportedLanguagesAsync("Conversation"); @@ -2657,7 +2657,7 @@ This sample shows how to call GetSupportedLanguagesAsync with all parameters and "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetSupportedLanguagesAsync("Conversation", top: 1234, skip: 1234, maxpagesize: 1234); @@ -2673,7 +2673,7 @@ This sample shows how to call GetSupportedLanguages and parse the result. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetSupportedLanguages("Conversation"); @@ -2685,7 +2685,7 @@ This sample shows how to call GetSupportedLanguages with all parameters and pars "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetSupportedLanguages("Conversation", top: 1234, skip: 1234, maxpagesize: 1234); @@ -2701,7 +2701,7 @@ This sample shows how to call GetSupportedPrebuiltEntitiesAsync. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetSupportedPrebuiltEntitiesAsync(); ]]> @@ -2709,7 +2709,7 @@ This sample shows how to call GetSupportedPrebuiltEntitiesAsync with all paramet "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetSupportedPrebuiltEntitiesAsync(language: "", multilingual: "", top: 1234, skip: 1234, maxpagesize: 1234); ]]> @@ -2720,7 +2720,7 @@ This sample shows how to call GetSupportedPrebuiltEntities. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetSupportedPrebuiltEntities(); ]]> @@ -2728,7 +2728,7 @@ This sample shows how to call GetSupportedPrebuiltEntities with all parameters. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetSupportedPrebuiltEntities(language: "", multilingual: "", top: 1234, skip: 1234, maxpagesize: 1234); ]]> @@ -2739,7 +2739,7 @@ This sample shows how to call GetSupportedPrebuiltEntitiesAsync and parse the re "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetSupportedPrebuiltEntitiesAsync(null, null, null, null, null, null); @@ -2752,7 +2752,7 @@ This sample shows how to call GetSupportedPrebuiltEntitiesAsync with all paramet "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetSupportedPrebuiltEntitiesAsync("", "", 1234, 1234, 1234, null); @@ -2769,7 +2769,7 @@ This sample shows how to call GetSupportedPrebuiltEntities and parse the result. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetSupportedPrebuiltEntities(null, null, null, null, null, null); @@ -2782,7 +2782,7 @@ This sample shows how to call GetSupportedPrebuiltEntities with all parameters a "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetSupportedPrebuiltEntities("", "", 1234, 1234, 1234, null); @@ -2799,7 +2799,7 @@ This sample shows how to call GetTrainingConfigVersionsAsync. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetTrainingConfigVersionsAsync(ProjectKind.Conversation); ]]> @@ -2807,7 +2807,7 @@ This sample shows how to call GetTrainingConfigVersionsAsync with all parameters "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetTrainingConfigVersionsAsync(ProjectKind.Conversation, top: 1234, skip: 1234, maxpagesize: 1234); ]]> @@ -2818,7 +2818,7 @@ This sample shows how to call GetTrainingConfigVersions. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetTrainingConfigVersions(ProjectKind.Conversation); ]]> @@ -2826,7 +2826,7 @@ This sample shows how to call GetTrainingConfigVersions with all parameters. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetTrainingConfigVersions(ProjectKind.Conversation, top: 1234, skip: 1234, maxpagesize: 1234); ]]> @@ -2837,7 +2837,7 @@ This sample shows how to call GetTrainingConfigVersionsAsync and parse the resul "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetTrainingConfigVersionsAsync("Conversation"); @@ -2849,7 +2849,7 @@ This sample shows how to call GetTrainingConfigVersionsAsync with all parameters "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetTrainingConfigVersionsAsync("Conversation", top: 1234, skip: 1234, maxpagesize: 1234); @@ -2865,7 +2865,7 @@ This sample shows how to call GetTrainingConfigVersions and parse the result. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetTrainingConfigVersions("Conversation"); @@ -2877,7 +2877,7 @@ This sample shows how to call GetTrainingConfigVersions with all parameters and "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetTrainingConfigVersions("Conversation", top: 1234, skip: 1234, maxpagesize: 1234); @@ -2893,7 +2893,7 @@ This sample shows how to call GetExportedModelAsync. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetExportedModelAsync("", ""); ]]> @@ -2901,7 +2901,7 @@ This sample shows how to call GetExportedModelAsync with all parameters. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetExportedModelAsync("", ""); ]]> @@ -2912,7 +2912,7 @@ This sample shows how to call GetExportedModel. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetExportedModel("", ""); ]]> @@ -2920,7 +2920,7 @@ This sample shows how to call GetExportedModel with all parameters. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetExportedModel("", ""); ]]> @@ -2931,15 +2931,15 @@ This sample shows how to call GetExportedModelAsync and parse the result. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetExportedModelAsync("", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("exportedModelName").ToString()); Console.WriteLine(result.GetProperty("modelId").ToString()); -Console.WriteLine(result.GetProperty("lastTrainedDateTime").ToString()); -Console.WriteLine(result.GetProperty("lastExportedModelDateTime").ToString()); +Console.WriteLine(result.GetProperty("lastTrainedOn").ToString()); +Console.WriteLine(result.GetProperty("lastExportedModelOn").ToString()); Console.WriteLine(result.GetProperty("modelExpirationDate").ToString()); Console.WriteLine(result.GetProperty("modelTrainingConfigVersion").ToString()); ]]> @@ -2947,15 +2947,15 @@ This sample shows how to call GetExportedModelAsync with all parameters and pars "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetExportedModelAsync("", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("exportedModelName").ToString()); Console.WriteLine(result.GetProperty("modelId").ToString()); -Console.WriteLine(result.GetProperty("lastTrainedDateTime").ToString()); -Console.WriteLine(result.GetProperty("lastExportedModelDateTime").ToString()); +Console.WriteLine(result.GetProperty("lastTrainedOn").ToString()); +Console.WriteLine(result.GetProperty("lastExportedModelOn").ToString()); Console.WriteLine(result.GetProperty("modelExpirationDate").ToString()); Console.WriteLine(result.GetProperty("modelTrainingConfigVersion").ToString()); ]]> @@ -2966,15 +2966,15 @@ This sample shows how to call GetExportedModel and parse the result. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetExportedModel("", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("exportedModelName").ToString()); Console.WriteLine(result.GetProperty("modelId").ToString()); -Console.WriteLine(result.GetProperty("lastTrainedDateTime").ToString()); -Console.WriteLine(result.GetProperty("lastExportedModelDateTime").ToString()); +Console.WriteLine(result.GetProperty("lastTrainedOn").ToString()); +Console.WriteLine(result.GetProperty("lastExportedModelOn").ToString()); Console.WriteLine(result.GetProperty("modelExpirationDate").ToString()); Console.WriteLine(result.GetProperty("modelTrainingConfigVersion").ToString()); ]]> @@ -2982,15 +2982,15 @@ This sample shows how to call GetExportedModel with all parameters and parse the "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetExportedModel("", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("exportedModelName").ToString()); Console.WriteLine(result.GetProperty("modelId").ToString()); -Console.WriteLine(result.GetProperty("lastTrainedDateTime").ToString()); -Console.WriteLine(result.GetProperty("lastExportedModelDateTime").ToString()); +Console.WriteLine(result.GetProperty("lastTrainedOn").ToString()); +Console.WriteLine(result.GetProperty("lastExportedModelOn").ToString()); Console.WriteLine(result.GetProperty("modelExpirationDate").ToString()); Console.WriteLine(result.GetProperty("modelTrainingConfigVersion").ToString()); ]]> @@ -3001,7 +3001,7 @@ This sample shows how to call GetExportedModelJobStatusAsync. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetExportedModelJobStatusAsync("", "", ""); ]]> @@ -3009,7 +3009,7 @@ This sample shows how to call GetExportedModelJobStatusAsync with all parameters "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetExportedModelJobStatusAsync("", "", ""); ]]> @@ -3020,7 +3020,7 @@ This sample shows how to call GetExportedModelJobStatus. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetExportedModelJobStatus("", "", ""); ]]> @@ -3028,7 +3028,7 @@ This sample shows how to call GetExportedModelJobStatus with all parameters. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetExportedModelJobStatus("", "", ""); ]]> @@ -3039,29 +3039,29 @@ This sample shows how to call GetExportedModelJobStatusAsync and parse the resul "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetExportedModelJobStatusAsync("", "", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("jobId").ToString()); -Console.WriteLine(result.GetProperty("createdDateTime").ToString()); -Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); +Console.WriteLine(result.GetProperty("createdOn").ToString()); +Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); ]]> This sample shows how to call GetExportedModelJobStatusAsync with all parameters and parse the result. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetExportedModelJobStatusAsync("", "", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("jobId").ToString()); -Console.WriteLine(result.GetProperty("createdDateTime").ToString()); -Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); -Console.WriteLine(result.GetProperty("expirationDateTime").ToString()); +Console.WriteLine(result.GetProperty("createdOn").ToString()); +Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); +Console.WriteLine(result.GetProperty("expiresOn").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("message").ToString()); @@ -3087,29 +3087,29 @@ This sample shows how to call GetExportedModelJobStatus and parse the result. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetExportedModelJobStatus("", "", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("jobId").ToString()); -Console.WriteLine(result.GetProperty("createdDateTime").ToString()); -Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); +Console.WriteLine(result.GetProperty("createdOn").ToString()); +Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); ]]> This sample shows how to call GetExportedModelJobStatus with all parameters and parse the result. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetExportedModelJobStatus("", "", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("jobId").ToString()); -Console.WriteLine(result.GetProperty("createdDateTime").ToString()); -Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); -Console.WriteLine(result.GetProperty("expirationDateTime").ToString()); +Console.WriteLine(result.GetProperty("createdOn").ToString()); +Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); +Console.WriteLine(result.GetProperty("expiresOn").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("message").ToString()); @@ -3135,7 +3135,7 @@ This sample shows how to call GetProjectsAsync. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); await foreach (ProjectMetadata item in client.GetProjectsAsync()) { @@ -3145,7 +3145,7 @@ This sample shows how to call GetProjectsAsync with all parameters. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); await foreach (ProjectMetadata item in client.GetProjectsAsync(maxCount: 1234, skip: 1234, maxpagesize: 1234)) { @@ -3158,7 +3158,7 @@ This sample shows how to call GetProjects. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); foreach (ProjectMetadata item in client.GetProjects()) { @@ -3168,7 +3168,7 @@ This sample shows how to call GetProjects with all parameters. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); foreach (ProjectMetadata item in client.GetProjects(maxCount: 1234, skip: 1234, maxpagesize: 1234)) { @@ -3181,13 +3181,13 @@ This sample shows how to call GetProjectsAsync and parse the result. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); await foreach (BinaryData item in client.GetProjectsAsync(null, null, null, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.GetProperty("createdDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastModifiedDateTime").ToString()); + Console.WriteLine(result.GetProperty("createdOn").ToString()); + Console.WriteLine(result.GetProperty("lastModifiedOn").ToString()); Console.WriteLine(result.GetProperty("projectKind").ToString()); Console.WriteLine(result.GetProperty("projectName").ToString()); Console.WriteLine(result.GetProperty("language").ToString()); @@ -3197,15 +3197,15 @@ This sample shows how to call GetProjectsAsync with all parameters and parse the "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); await foreach (BinaryData item in client.GetProjectsAsync(1234, 1234, 1234, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.GetProperty("createdDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastModifiedDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastTrainedDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastDeployedDateTime").ToString()); + Console.WriteLine(result.GetProperty("createdOn").ToString()); + Console.WriteLine(result.GetProperty("lastModifiedOn").ToString()); + Console.WriteLine(result.GetProperty("lastTrainedOn").ToString()); + Console.WriteLine(result.GetProperty("lastDeployedOn").ToString()); Console.WriteLine(result.GetProperty("projectKind").ToString()); Console.WriteLine(result.GetProperty("settings").GetProperty("confidenceThreshold").ToString()); Console.WriteLine(result.GetProperty("storageInputContainerName").ToString()); @@ -3222,13 +3222,13 @@ This sample shows how to call GetProjects and parse the result. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); foreach (BinaryData item in client.GetProjects(null, null, null, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.GetProperty("createdDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastModifiedDateTime").ToString()); + Console.WriteLine(result.GetProperty("createdOn").ToString()); + Console.WriteLine(result.GetProperty("lastModifiedOn").ToString()); Console.WriteLine(result.GetProperty("projectKind").ToString()); Console.WriteLine(result.GetProperty("projectName").ToString()); Console.WriteLine(result.GetProperty("language").ToString()); @@ -3238,15 +3238,15 @@ This sample shows how to call GetProjects with all parameters and parse the resu "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); foreach (BinaryData item in client.GetProjects(1234, 1234, 1234, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.GetProperty("createdDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastModifiedDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastTrainedDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastDeployedDateTime").ToString()); + Console.WriteLine(result.GetProperty("createdOn").ToString()); + Console.WriteLine(result.GetProperty("lastModifiedOn").ToString()); + Console.WriteLine(result.GetProperty("lastTrainedOn").ToString()); + Console.WriteLine(result.GetProperty("lastDeployedOn").ToString()); Console.WriteLine(result.GetProperty("projectKind").ToString()); Console.WriteLine(result.GetProperty("settings").GetProperty("confidenceThreshold").ToString()); Console.WriteLine(result.GetProperty("storageInputContainerName").ToString()); @@ -3263,7 +3263,7 @@ This sample shows how to call GetDeploymentsAsync. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); await foreach (ProjectDeployment item in client.GetDeploymentsAsync("")) { @@ -3273,7 +3273,7 @@ This sample shows how to call GetDeploymentsAsync with all parameters. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); await foreach (ProjectDeployment item in client.GetDeploymentsAsync("", maxCount: 1234, skip: 1234, maxpagesize: 1234)) { @@ -3286,7 +3286,7 @@ This sample shows how to call GetDeployments. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); foreach (ProjectDeployment item in client.GetDeployments("")) { @@ -3296,7 +3296,7 @@ This sample shows how to call GetDeployments with all parameters. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); foreach (ProjectDeployment item in client.GetDeployments("", maxCount: 1234, skip: 1234, maxpagesize: 1234)) { @@ -3309,15 +3309,15 @@ This sample shows how to call GetDeploymentsAsync and parse the result. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); await foreach (BinaryData item in client.GetDeploymentsAsync("", null, null, null, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("deploymentName").ToString()); Console.WriteLine(result.GetProperty("modelId").ToString()); - Console.WriteLine(result.GetProperty("lastTrainedDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastDeployedDateTime").ToString()); + Console.WriteLine(result.GetProperty("lastTrainedOn").ToString()); + Console.WriteLine(result.GetProperty("lastDeployedOn").ToString()); Console.WriteLine(result.GetProperty("deploymentExpirationDate").ToString()); Console.WriteLine(result.GetProperty("modelTrainingConfigVersion").ToString()); Console.WriteLine(result.GetProperty("assignedResources")[0].GetProperty("resourceId").ToString()); @@ -3328,15 +3328,15 @@ This sample shows how to call GetDeploymentsAsync with all parameters and parse "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); await foreach (BinaryData item in client.GetDeploymentsAsync("", 1234, 1234, 1234, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("deploymentName").ToString()); Console.WriteLine(result.GetProperty("modelId").ToString()); - Console.WriteLine(result.GetProperty("lastTrainedDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastDeployedDateTime").ToString()); + Console.WriteLine(result.GetProperty("lastTrainedOn").ToString()); + Console.WriteLine(result.GetProperty("lastDeployedOn").ToString()); Console.WriteLine(result.GetProperty("deploymentExpirationDate").ToString()); Console.WriteLine(result.GetProperty("modelTrainingConfigVersion").ToString()); Console.WriteLine(result.GetProperty("assignedResources")[0].GetProperty("resourceId").ToString()); @@ -3350,15 +3350,15 @@ This sample shows how to call GetDeployments and parse the result. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); foreach (BinaryData item in client.GetDeployments("", null, null, null, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("deploymentName").ToString()); Console.WriteLine(result.GetProperty("modelId").ToString()); - Console.WriteLine(result.GetProperty("lastTrainedDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastDeployedDateTime").ToString()); + Console.WriteLine(result.GetProperty("lastTrainedOn").ToString()); + Console.WriteLine(result.GetProperty("lastDeployedOn").ToString()); Console.WriteLine(result.GetProperty("deploymentExpirationDate").ToString()); Console.WriteLine(result.GetProperty("modelTrainingConfigVersion").ToString()); Console.WriteLine(result.GetProperty("assignedResources")[0].GetProperty("resourceId").ToString()); @@ -3369,15 +3369,15 @@ This sample shows how to call GetDeployments with all parameters and parse the r "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); foreach (BinaryData item in client.GetDeployments("", 1234, 1234, 1234, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("deploymentName").ToString()); Console.WriteLine(result.GetProperty("modelId").ToString()); - Console.WriteLine(result.GetProperty("lastTrainedDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastDeployedDateTime").ToString()); + Console.WriteLine(result.GetProperty("lastTrainedOn").ToString()); + Console.WriteLine(result.GetProperty("lastDeployedOn").ToString()); Console.WriteLine(result.GetProperty("deploymentExpirationDate").ToString()); Console.WriteLine(result.GetProperty("modelTrainingConfigVersion").ToString()); Console.WriteLine(result.GetProperty("assignedResources")[0].GetProperty("resourceId").ToString()); @@ -3391,7 +3391,7 @@ This sample shows how to call GetTrainedModelsAsync. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); await foreach (ProjectTrainedModel item in client.GetTrainedModelsAsync("")) { @@ -3401,7 +3401,7 @@ This sample shows how to call GetTrainedModelsAsync with all parameters. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); await foreach (ProjectTrainedModel item in client.GetTrainedModelsAsync("", maxCount: 1234, skip: 1234, maxpagesize: 1234)) { @@ -3414,7 +3414,7 @@ This sample shows how to call GetTrainedModels. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); foreach (ProjectTrainedModel item in client.GetTrainedModels("")) { @@ -3424,7 +3424,7 @@ This sample shows how to call GetTrainedModels with all parameters. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); foreach (ProjectTrainedModel item in client.GetTrainedModels("", maxCount: 1234, skip: 1234, maxpagesize: 1234)) { @@ -3437,14 +3437,14 @@ This sample shows how to call GetTrainedModelsAsync and parse the result. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); await foreach (BinaryData item in client.GetTrainedModelsAsync("", null, null, null, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("label").ToString()); Console.WriteLine(result.GetProperty("modelId").ToString()); - Console.WriteLine(result.GetProperty("lastTrainedDateTime").ToString()); + Console.WriteLine(result.GetProperty("lastTrainedOn").ToString()); Console.WriteLine(result.GetProperty("lastTrainingDurationInSeconds").ToString()); Console.WriteLine(result.GetProperty("modelExpirationDate").ToString()); Console.WriteLine(result.GetProperty("modelTrainingConfigVersion").ToString()); @@ -3455,14 +3455,14 @@ This sample shows how to call GetTrainedModelsAsync with all parameters and pars "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); await foreach (BinaryData item in client.GetTrainedModelsAsync("", 1234, 1234, 1234, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("label").ToString()); Console.WriteLine(result.GetProperty("modelId").ToString()); - Console.WriteLine(result.GetProperty("lastTrainedDateTime").ToString()); + Console.WriteLine(result.GetProperty("lastTrainedOn").ToString()); Console.WriteLine(result.GetProperty("lastTrainingDurationInSeconds").ToString()); Console.WriteLine(result.GetProperty("modelExpirationDate").ToString()); Console.WriteLine(result.GetProperty("modelTrainingConfigVersion").ToString()); @@ -3476,14 +3476,14 @@ This sample shows how to call GetTrainedModels and parse the result. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); foreach (BinaryData item in client.GetTrainedModels("", null, null, null, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("label").ToString()); Console.WriteLine(result.GetProperty("modelId").ToString()); - Console.WriteLine(result.GetProperty("lastTrainedDateTime").ToString()); + Console.WriteLine(result.GetProperty("lastTrainedOn").ToString()); Console.WriteLine(result.GetProperty("lastTrainingDurationInSeconds").ToString()); Console.WriteLine(result.GetProperty("modelExpirationDate").ToString()); Console.WriteLine(result.GetProperty("modelTrainingConfigVersion").ToString()); @@ -3494,14 +3494,14 @@ This sample shows how to call GetTrainedModels with all parameters and parse the "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); foreach (BinaryData item in client.GetTrainedModels("", 1234, 1234, 1234, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("label").ToString()); Console.WriteLine(result.GetProperty("modelId").ToString()); - Console.WriteLine(result.GetProperty("lastTrainedDateTime").ToString()); + Console.WriteLine(result.GetProperty("lastTrainedOn").ToString()); Console.WriteLine(result.GetProperty("lastTrainingDurationInSeconds").ToString()); Console.WriteLine(result.GetProperty("modelExpirationDate").ToString()); Console.WriteLine(result.GetProperty("modelTrainingConfigVersion").ToString()); @@ -3515,7 +3515,7 @@ This sample shows how to call GetModelEvaluationResultsAsync. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); await foreach (UtteranceEvaluationResult item in client.GetModelEvaluationResultsAsync("", "", StringIndexType.Utf16CodeUnit)) { @@ -3525,7 +3525,7 @@ This sample shows how to call GetModelEvaluationResultsAsync with all parameters "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); await foreach (UtteranceEvaluationResult item in client.GetModelEvaluationResultsAsync("", "", StringIndexType.Utf16CodeUnit, maxCount: 1234, skip: 1234, maxpagesize: 1234)) { @@ -3538,7 +3538,7 @@ This sample shows how to call GetModelEvaluationResults. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); foreach (UtteranceEvaluationResult item in client.GetModelEvaluationResults("", "", StringIndexType.Utf16CodeUnit)) { @@ -3548,7 +3548,7 @@ This sample shows how to call GetModelEvaluationResults with all parameters. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); foreach (UtteranceEvaluationResult item in client.GetModelEvaluationResults("", "", StringIndexType.Utf16CodeUnit, maxCount: 1234, skip: 1234, maxpagesize: 1234)) { @@ -3561,7 +3561,7 @@ This sample shows how to call GetModelEvaluationResultsAsync and parse the resul "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); await foreach (BinaryData item in client.GetModelEvaluationResultsAsync("", "", "Utf16CodeUnit")) { @@ -3582,7 +3582,7 @@ This sample shows how to call GetModelEvaluationResultsAsync with all parameters "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); await foreach (BinaryData item in client.GetModelEvaluationResultsAsync("", "", "Utf16CodeUnit", maxCount: 1234, skip: 1234, maxpagesize: 1234)) { @@ -3606,7 +3606,7 @@ This sample shows how to call GetModelEvaluationResults and parse the result. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); foreach (BinaryData item in client.GetModelEvaluationResults("", "", "Utf16CodeUnit")) { @@ -3627,7 +3627,7 @@ This sample shows how to call GetModelEvaluationResults with all parameters and "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); foreach (BinaryData item in client.GetModelEvaluationResults("", "", "Utf16CodeUnit", maxCount: 1234, skip: 1234, maxpagesize: 1234)) { @@ -3651,7 +3651,7 @@ This sample shows how to call GetDeploymentResourcesAsync. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); await foreach (AssignedDeploymentResource item in client.GetDeploymentResourcesAsync("")) { @@ -3661,7 +3661,7 @@ This sample shows how to call GetDeploymentResourcesAsync with all parameters. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); await foreach (AssignedDeploymentResource item in client.GetDeploymentResourcesAsync("", maxCount: 1234, skip: 1234, maxpagesize: 1234)) { @@ -3674,7 +3674,7 @@ This sample shows how to call GetDeploymentResources. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); foreach (AssignedDeploymentResource item in client.GetDeploymentResources("")) { @@ -3684,7 +3684,7 @@ This sample shows how to call GetDeploymentResources with all parameters. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); foreach (AssignedDeploymentResource item in client.GetDeploymentResources("", maxCount: 1234, skip: 1234, maxpagesize: 1234)) { @@ -3697,12 +3697,12 @@ This sample shows how to call GetDeploymentResourcesAsync and parse the result. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); await foreach (BinaryData item in client.GetDeploymentResourcesAsync("", null, null, null, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.GetProperty("azureResourceId").ToString()); + Console.WriteLine(result.GetProperty("resourceId").ToString()); Console.WriteLine(result.GetProperty("region").ToString()); } ]]> @@ -3710,12 +3710,12 @@ This sample shows how to call GetDeploymentResourcesAsync with all parameters an "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); await foreach (BinaryData item in client.GetDeploymentResourcesAsync("", 1234, 1234, 1234, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.GetProperty("azureResourceId").ToString()); + Console.WriteLine(result.GetProperty("resourceId").ToString()); Console.WriteLine(result.GetProperty("region").ToString()); } ]]> @@ -3726,12 +3726,12 @@ This sample shows how to call GetDeploymentResources and parse the result. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); foreach (BinaryData item in client.GetDeploymentResources("", null, null, null, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.GetProperty("azureResourceId").ToString()); + Console.WriteLine(result.GetProperty("resourceId").ToString()); Console.WriteLine(result.GetProperty("region").ToString()); } ]]> @@ -3739,12 +3739,12 @@ This sample shows how to call GetDeploymentResources with all parameters and par "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); foreach (BinaryData item in client.GetDeploymentResources("", 1234, 1234, 1234, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.GetProperty("azureResourceId").ToString()); + Console.WriteLine(result.GetProperty("resourceId").ToString()); Console.WriteLine(result.GetProperty("region").ToString()); } ]]> @@ -3755,7 +3755,7 @@ This sample shows how to call GetTrainingJobsAsync. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); await foreach (TrainingJobState item in client.GetTrainingJobsAsync("")) { @@ -3765,7 +3765,7 @@ This sample shows how to call GetTrainingJobsAsync with all parameters. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); await foreach (TrainingJobState item in client.GetTrainingJobsAsync("", maxCount: 1234, skip: 1234, maxpagesize: 1234)) { @@ -3778,7 +3778,7 @@ This sample shows how to call GetTrainingJobs. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); foreach (TrainingJobState item in client.GetTrainingJobs("")) { @@ -3788,7 +3788,7 @@ This sample shows how to call GetTrainingJobs with all parameters. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); foreach (TrainingJobState item in client.GetTrainingJobs("", maxCount: 1234, skip: 1234, maxpagesize: 1234)) { @@ -3801,14 +3801,14 @@ This sample shows how to call GetTrainingJobsAsync and parse the result. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); await foreach (BinaryData item in client.GetTrainingJobsAsync("", null, null, null, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("jobId").ToString()); - Console.WriteLine(result.GetProperty("createdDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); + Console.WriteLine(result.GetProperty("createdOn").ToString()); + Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); Console.WriteLine(result.GetProperty("result").GetProperty("modelLabel").ToString()); Console.WriteLine(result.GetProperty("result").GetProperty("trainingConfigVersion").ToString()); @@ -3820,15 +3820,15 @@ This sample shows how to call GetTrainingJobsAsync with all parameters and parse "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); await foreach (BinaryData item in client.GetTrainingJobsAsync("", 1234, 1234, 1234, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("jobId").ToString()); - Console.WriteLine(result.GetProperty("createdDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); - Console.WriteLine(result.GetProperty("expirationDateTime").ToString()); + Console.WriteLine(result.GetProperty("createdOn").ToString()); + Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); + Console.WriteLine(result.GetProperty("expiresOn").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("message").ToString()); @@ -3850,14 +3850,14 @@ await foreach (BinaryData item in client.GetTrainingJobsAsync("", 1 Console.WriteLine(result.GetProperty("result").GetProperty("trainingConfigVersion").ToString()); Console.WriteLine(result.GetProperty("result").GetProperty("trainingMode").ToString()); Console.WriteLine(result.GetProperty("result").GetProperty("trainingStatus").GetProperty("percentComplete").ToString()); - Console.WriteLine(result.GetProperty("result").GetProperty("trainingStatus").GetProperty("startDateTime").ToString()); - Console.WriteLine(result.GetProperty("result").GetProperty("trainingStatus").GetProperty("endDateTime").ToString()); + Console.WriteLine(result.GetProperty("result").GetProperty("trainingStatus").GetProperty("startedOn").ToString()); + Console.WriteLine(result.GetProperty("result").GetProperty("trainingStatus").GetProperty("endedOn").ToString()); Console.WriteLine(result.GetProperty("result").GetProperty("trainingStatus").GetProperty("status").ToString()); Console.WriteLine(result.GetProperty("result").GetProperty("evaluationStatus").GetProperty("percentComplete").ToString()); - Console.WriteLine(result.GetProperty("result").GetProperty("evaluationStatus").GetProperty("startDateTime").ToString()); - Console.WriteLine(result.GetProperty("result").GetProperty("evaluationStatus").GetProperty("endDateTime").ToString()); + Console.WriteLine(result.GetProperty("result").GetProperty("evaluationStatus").GetProperty("startedOn").ToString()); + Console.WriteLine(result.GetProperty("result").GetProperty("evaluationStatus").GetProperty("endedOn").ToString()); Console.WriteLine(result.GetProperty("result").GetProperty("evaluationStatus").GetProperty("status").ToString()); - Console.WriteLine(result.GetProperty("result").GetProperty("estimatedEndDateTime").ToString()); + Console.WriteLine(result.GetProperty("result").GetProperty("estimatedEndOn").ToString()); } ]]> @@ -3867,14 +3867,14 @@ This sample shows how to call GetTrainingJobs and parse the result. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); foreach (BinaryData item in client.GetTrainingJobs("", null, null, null, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("jobId").ToString()); - Console.WriteLine(result.GetProperty("createdDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); + Console.WriteLine(result.GetProperty("createdOn").ToString()); + Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); Console.WriteLine(result.GetProperty("result").GetProperty("modelLabel").ToString()); Console.WriteLine(result.GetProperty("result").GetProperty("trainingConfigVersion").ToString()); @@ -3886,15 +3886,15 @@ This sample shows how to call GetTrainingJobs with all parameters and parse the "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); foreach (BinaryData item in client.GetTrainingJobs("", 1234, 1234, 1234, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("jobId").ToString()); - Console.WriteLine(result.GetProperty("createdDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); - Console.WriteLine(result.GetProperty("expirationDateTime").ToString()); + Console.WriteLine(result.GetProperty("createdOn").ToString()); + Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); + Console.WriteLine(result.GetProperty("expiresOn").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("message").ToString()); @@ -3916,14 +3916,14 @@ foreach (BinaryData item in client.GetTrainingJobs("", 1234, 1234, Console.WriteLine(result.GetProperty("result").GetProperty("trainingConfigVersion").ToString()); Console.WriteLine(result.GetProperty("result").GetProperty("trainingMode").ToString()); Console.WriteLine(result.GetProperty("result").GetProperty("trainingStatus").GetProperty("percentComplete").ToString()); - Console.WriteLine(result.GetProperty("result").GetProperty("trainingStatus").GetProperty("startDateTime").ToString()); - Console.WriteLine(result.GetProperty("result").GetProperty("trainingStatus").GetProperty("endDateTime").ToString()); + Console.WriteLine(result.GetProperty("result").GetProperty("trainingStatus").GetProperty("startedOn").ToString()); + Console.WriteLine(result.GetProperty("result").GetProperty("trainingStatus").GetProperty("endedOn").ToString()); Console.WriteLine(result.GetProperty("result").GetProperty("trainingStatus").GetProperty("status").ToString()); Console.WriteLine(result.GetProperty("result").GetProperty("evaluationStatus").GetProperty("percentComplete").ToString()); - Console.WriteLine(result.GetProperty("result").GetProperty("evaluationStatus").GetProperty("startDateTime").ToString()); - Console.WriteLine(result.GetProperty("result").GetProperty("evaluationStatus").GetProperty("endDateTime").ToString()); + Console.WriteLine(result.GetProperty("result").GetProperty("evaluationStatus").GetProperty("startedOn").ToString()); + Console.WriteLine(result.GetProperty("result").GetProperty("evaluationStatus").GetProperty("endedOn").ToString()); Console.WriteLine(result.GetProperty("result").GetProperty("evaluationStatus").GetProperty("status").ToString()); - Console.WriteLine(result.GetProperty("result").GetProperty("estimatedEndDateTime").ToString()); + Console.WriteLine(result.GetProperty("result").GetProperty("estimatedEndOn").ToString()); } ]]> @@ -3933,7 +3933,7 @@ This sample shows how to call GetExportedModelsAsync. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); await foreach (ExportedTrainedModel item in client.GetExportedModelsAsync("")) { @@ -3943,7 +3943,7 @@ This sample shows how to call GetExportedModelsAsync with all parameters. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); await foreach (ExportedTrainedModel item in client.GetExportedModelsAsync("", maxCount: 1234, skip: 1234, maxpagesize: 1234)) { @@ -3956,7 +3956,7 @@ This sample shows how to call GetExportedModels. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); foreach (ExportedTrainedModel item in client.GetExportedModels("")) { @@ -3966,7 +3966,7 @@ This sample shows how to call GetExportedModels with all parameters. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); foreach (ExportedTrainedModel item in client.GetExportedModels("", maxCount: 1234, skip: 1234, maxpagesize: 1234)) { @@ -3979,15 +3979,15 @@ This sample shows how to call GetExportedModelsAsync and parse the result. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); await foreach (BinaryData item in client.GetExportedModelsAsync("", null, null, null, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("exportedModelName").ToString()); Console.WriteLine(result.GetProperty("modelId").ToString()); - Console.WriteLine(result.GetProperty("lastTrainedDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastExportedModelDateTime").ToString()); + Console.WriteLine(result.GetProperty("lastTrainedOn").ToString()); + Console.WriteLine(result.GetProperty("lastExportedModelOn").ToString()); Console.WriteLine(result.GetProperty("modelExpirationDate").ToString()); Console.WriteLine(result.GetProperty("modelTrainingConfigVersion").ToString()); } @@ -3996,15 +3996,15 @@ This sample shows how to call GetExportedModelsAsync with all parameters and par "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); await foreach (BinaryData item in client.GetExportedModelsAsync("", 1234, 1234, 1234, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("exportedModelName").ToString()); Console.WriteLine(result.GetProperty("modelId").ToString()); - Console.WriteLine(result.GetProperty("lastTrainedDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastExportedModelDateTime").ToString()); + Console.WriteLine(result.GetProperty("lastTrainedOn").ToString()); + Console.WriteLine(result.GetProperty("lastExportedModelOn").ToString()); Console.WriteLine(result.GetProperty("modelExpirationDate").ToString()); Console.WriteLine(result.GetProperty("modelTrainingConfigVersion").ToString()); } @@ -4016,15 +4016,15 @@ This sample shows how to call GetExportedModels and parse the result. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); foreach (BinaryData item in client.GetExportedModels("", null, null, null, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("exportedModelName").ToString()); Console.WriteLine(result.GetProperty("modelId").ToString()); - Console.WriteLine(result.GetProperty("lastTrainedDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastExportedModelDateTime").ToString()); + Console.WriteLine(result.GetProperty("lastTrainedOn").ToString()); + Console.WriteLine(result.GetProperty("lastExportedModelOn").ToString()); Console.WriteLine(result.GetProperty("modelExpirationDate").ToString()); Console.WriteLine(result.GetProperty("modelTrainingConfigVersion").ToString()); } @@ -4033,15 +4033,15 @@ This sample shows how to call GetExportedModels with all parameters and parse th "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); foreach (BinaryData item in client.GetExportedModels("", 1234, 1234, 1234, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("exportedModelName").ToString()); Console.WriteLine(result.GetProperty("modelId").ToString()); - Console.WriteLine(result.GetProperty("lastTrainedDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastExportedModelDateTime").ToString()); + Console.WriteLine(result.GetProperty("lastTrainedOn").ToString()); + Console.WriteLine(result.GetProperty("lastExportedModelOn").ToString()); Console.WriteLine(result.GetProperty("modelExpirationDate").ToString()); Console.WriteLine(result.GetProperty("modelTrainingConfigVersion").ToString()); } @@ -4053,7 +4053,7 @@ This sample shows how to call DeleteProjectAsync. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Operation operation = await client.DeleteProjectAsync(WaitUntil.Completed, ""); ]]> @@ -4061,7 +4061,7 @@ This sample shows how to call DeleteProjectAsync with all parameters. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Operation operation = await client.DeleteProjectAsync(WaitUntil.Completed, ""); ]]> @@ -4072,7 +4072,7 @@ This sample shows how to call DeleteProject. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Operation operation = client.DeleteProject(WaitUntil.Completed, ""); ]]> @@ -4080,7 +4080,7 @@ This sample shows how to call DeleteProject with all parameters. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Operation operation = client.DeleteProject(WaitUntil.Completed, ""); ]]> @@ -4091,7 +4091,7 @@ This sample shows how to call CopyProjectAsync. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); CopyProjectDetails body = new CopyProjectDetails( ProjectKind.Conversation, @@ -4106,7 +4106,7 @@ This sample shows how to call CopyProjectAsync with all parameters. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); CopyProjectDetails body = new CopyProjectDetails( ProjectKind.Conversation, @@ -4124,7 +4124,7 @@ This sample shows how to call CopyProject. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); CopyProjectDetails body = new CopyProjectDetails( ProjectKind.Conversation, @@ -4139,7 +4139,7 @@ This sample shows how to call CopyProject with all parameters. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); CopyProjectDetails body = new CopyProjectDetails( ProjectKind.Conversation, @@ -4157,7 +4157,7 @@ This sample shows how to call CopyProjectAsync. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { @@ -4174,7 +4174,7 @@ This sample shows how to call CopyProjectAsync with all parameters and request c "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { @@ -4194,7 +4194,7 @@ This sample shows how to call CopyProject. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { @@ -4211,7 +4211,7 @@ This sample shows how to call CopyProject with all parameters and request conten "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { @@ -4231,7 +4231,7 @@ This sample shows how to call ExportAsync. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Operation operation = await client.ExportAsync(WaitUntil.Completed, "", StringIndexType.Utf16CodeUnit); ]]> @@ -4239,7 +4239,7 @@ This sample shows how to call ExportAsync with all parameters. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Operation operation = await client.ExportAsync(WaitUntil.Completed, "", StringIndexType.Utf16CodeUnit, exportedProjectFormat: ExportedProjectFormat.Conversation, assetKind: "", trainedModelLabel: ""); ]]> @@ -4250,7 +4250,7 @@ This sample shows how to call Export. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Operation operation = client.Export(WaitUntil.Completed, "", StringIndexType.Utf16CodeUnit); ]]> @@ -4258,7 +4258,7 @@ This sample shows how to call Export with all parameters. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Operation operation = client.Export(WaitUntil.Completed, "", StringIndexType.Utf16CodeUnit, exportedProjectFormat: ExportedProjectFormat.Conversation, assetKind: "", trainedModelLabel: ""); ]]> @@ -4269,7 +4269,7 @@ This sample shows how to call ExportAsync. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Operation operation = await client.ExportAsync(WaitUntil.Completed, "", "Utf16CodeUnit"); ]]> @@ -4277,7 +4277,7 @@ This sample shows how to call ExportAsync with all parameters. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Operation operation = await client.ExportAsync(WaitUntil.Completed, "", "Utf16CodeUnit", exportedProjectFormat: "Conversation", assetKind: "", trainedModelLabel: ""); ]]> @@ -4288,7 +4288,7 @@ This sample shows how to call Export. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Operation operation = client.Export(WaitUntil.Completed, "", "Utf16CodeUnit"); ]]> @@ -4296,7 +4296,7 @@ This sample shows how to call Export with all parameters. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Operation operation = client.Export(WaitUntil.Completed, "", "Utf16CodeUnit", exportedProjectFormat: "Conversation", assetKind: "", trainedModelLabel: ""); ]]> @@ -4307,7 +4307,7 @@ This sample shows how to call ImportAsync. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); ExportedProject body = new ExportedProject("", StringIndexType.Utf16CodeUnit, new CreateProjectDetails(ProjectKind.Conversation, "", "")); Operation operation = await client.ImportAsync(WaitUntil.Completed, "", body); @@ -4316,7 +4316,7 @@ This sample shows how to call ImportAsync with all parameters. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); ExportedProject body = new ExportedProject("", StringIndexType.Utf16CodeUnit, new CreateProjectDetails(ProjectKind.Conversation, "", "") { @@ -4373,7 +4373,7 @@ This sample shows how to call Import. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); ExportedProject body = new ExportedProject("", StringIndexType.Utf16CodeUnit, new CreateProjectDetails(ProjectKind.Conversation, "", "")); Operation operation = client.Import(WaitUntil.Completed, "", body); @@ -4382,7 +4382,7 @@ This sample shows how to call Import with all parameters. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); ExportedProject body = new ExportedProject("", StringIndexType.Utf16CodeUnit, new CreateProjectDetails(ProjectKind.Conversation, "", "") { @@ -4439,7 +4439,7 @@ This sample shows how to call ImportAsync. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { @@ -4458,7 +4458,7 @@ This sample shows how to call ImportAsync with all parameters and request conten "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { @@ -4569,7 +4569,7 @@ This sample shows how to call Import. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { @@ -4588,7 +4588,7 @@ This sample shows how to call Import with all parameters and request content. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { @@ -4699,7 +4699,7 @@ This sample shows how to call TrainAsync. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); TrainingJobDetails body = new TrainingJobDetails("", TrainingMode.Advanced); Operation operation = await client.TrainAsync(WaitUntil.Completed, "", body); @@ -4709,7 +4709,7 @@ This sample shows how to call TrainAsync with all parameters. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); TrainingJobDetails body = new TrainingJobDetails("", TrainingMode.Advanced) { @@ -4731,7 +4731,7 @@ This sample shows how to call Train. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); TrainingJobDetails body = new TrainingJobDetails("", TrainingMode.Advanced); Operation operation = client.Train(WaitUntil.Completed, "", body); @@ -4741,7 +4741,7 @@ This sample shows how to call Train with all parameters. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); TrainingJobDetails body = new TrainingJobDetails("", TrainingMode.Advanced) { @@ -4763,7 +4763,7 @@ This sample shows how to call TrainAsync and parse the result. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { @@ -4783,7 +4783,7 @@ This sample shows how to call TrainAsync with all parameters and request content "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { @@ -4805,14 +4805,14 @@ Console.WriteLine(result.GetProperty("modelLabel").ToString()); Console.WriteLine(result.GetProperty("trainingConfigVersion").ToString()); Console.WriteLine(result.GetProperty("trainingMode").ToString()); Console.WriteLine(result.GetProperty("trainingStatus").GetProperty("percentComplete").ToString()); -Console.WriteLine(result.GetProperty("trainingStatus").GetProperty("startDateTime").ToString()); -Console.WriteLine(result.GetProperty("trainingStatus").GetProperty("endDateTime").ToString()); +Console.WriteLine(result.GetProperty("trainingStatus").GetProperty("startedOn").ToString()); +Console.WriteLine(result.GetProperty("trainingStatus").GetProperty("endedOn").ToString()); Console.WriteLine(result.GetProperty("trainingStatus").GetProperty("status").ToString()); Console.WriteLine(result.GetProperty("evaluationStatus").GetProperty("percentComplete").ToString()); -Console.WriteLine(result.GetProperty("evaluationStatus").GetProperty("startDateTime").ToString()); -Console.WriteLine(result.GetProperty("evaluationStatus").GetProperty("endDateTime").ToString()); +Console.WriteLine(result.GetProperty("evaluationStatus").GetProperty("startedOn").ToString()); +Console.WriteLine(result.GetProperty("evaluationStatus").GetProperty("endedOn").ToString()); Console.WriteLine(result.GetProperty("evaluationStatus").GetProperty("status").ToString()); -Console.WriteLine(result.GetProperty("estimatedEndDateTime").ToString()); +Console.WriteLine(result.GetProperty("estimatedEndOn").ToString()); ]]> @@ -4821,7 +4821,7 @@ This sample shows how to call Train and parse the result. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { @@ -4841,7 +4841,7 @@ This sample shows how to call Train with all parameters and request content and "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { @@ -4863,14 +4863,14 @@ Console.WriteLine(result.GetProperty("modelLabel").ToString()); Console.WriteLine(result.GetProperty("trainingConfigVersion").ToString()); Console.WriteLine(result.GetProperty("trainingMode").ToString()); Console.WriteLine(result.GetProperty("trainingStatus").GetProperty("percentComplete").ToString()); -Console.WriteLine(result.GetProperty("trainingStatus").GetProperty("startDateTime").ToString()); -Console.WriteLine(result.GetProperty("trainingStatus").GetProperty("endDateTime").ToString()); +Console.WriteLine(result.GetProperty("trainingStatus").GetProperty("startedOn").ToString()); +Console.WriteLine(result.GetProperty("trainingStatus").GetProperty("endedOn").ToString()); Console.WriteLine(result.GetProperty("trainingStatus").GetProperty("status").ToString()); Console.WriteLine(result.GetProperty("evaluationStatus").GetProperty("percentComplete").ToString()); -Console.WriteLine(result.GetProperty("evaluationStatus").GetProperty("startDateTime").ToString()); -Console.WriteLine(result.GetProperty("evaluationStatus").GetProperty("endDateTime").ToString()); +Console.WriteLine(result.GetProperty("evaluationStatus").GetProperty("startedOn").ToString()); +Console.WriteLine(result.GetProperty("evaluationStatus").GetProperty("endedOn").ToString()); Console.WriteLine(result.GetProperty("evaluationStatus").GetProperty("status").ToString()); -Console.WriteLine(result.GetProperty("estimatedEndDateTime").ToString()); +Console.WriteLine(result.GetProperty("estimatedEndOn").ToString()); ]]> @@ -4879,7 +4879,7 @@ This sample shows how to call SwapDeploymentsAsync. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); SwapDeploymentsDetails body = new SwapDeploymentsDetails("", ""); Operation operation = await client.SwapDeploymentsAsync(WaitUntil.Completed, "", body); @@ -4888,7 +4888,7 @@ This sample shows how to call SwapDeploymentsAsync with all parameters. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); SwapDeploymentsDetails body = new SwapDeploymentsDetails("", ""); Operation operation = await client.SwapDeploymentsAsync(WaitUntil.Completed, "", body); @@ -4900,7 +4900,7 @@ This sample shows how to call SwapDeployments. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); SwapDeploymentsDetails body = new SwapDeploymentsDetails("", ""); Operation operation = client.SwapDeployments(WaitUntil.Completed, "", body); @@ -4909,7 +4909,7 @@ This sample shows how to call SwapDeployments with all parameters. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); SwapDeploymentsDetails body = new SwapDeploymentsDetails("", ""); Operation operation = client.SwapDeployments(WaitUntil.Completed, "", body); @@ -4921,7 +4921,7 @@ This sample shows how to call SwapDeploymentsAsync. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { @@ -4934,7 +4934,7 @@ This sample shows how to call SwapDeploymentsAsync with all parameters and reque "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { @@ -4950,7 +4950,7 @@ This sample shows how to call SwapDeployments. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { @@ -4963,7 +4963,7 @@ This sample shows how to call SwapDeployments with all parameters and request co "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { @@ -4979,7 +4979,7 @@ This sample shows how to call DeployProjectAsync. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); CreateDeploymentDetails body = new CreateDeploymentDetails(""); Operation operation = await client.DeployProjectAsync(WaitUntil.Completed, "", "", body); @@ -4988,7 +4988,7 @@ This sample shows how to call DeployProjectAsync with all parameters. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); CreateDeploymentDetails body = new CreateDeploymentDetails("") { @@ -5003,7 +5003,7 @@ This sample shows how to call DeployProject. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); CreateDeploymentDetails body = new CreateDeploymentDetails(""); Operation operation = client.DeployProject(WaitUntil.Completed, "", "", body); @@ -5012,7 +5012,7 @@ This sample shows how to call DeployProject with all parameters. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); CreateDeploymentDetails body = new CreateDeploymentDetails("") { @@ -5027,7 +5027,7 @@ This sample shows how to call DeployProjectAsync. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { @@ -5039,7 +5039,7 @@ This sample shows how to call DeployProjectAsync with all parameters and request "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { @@ -5058,7 +5058,7 @@ This sample shows how to call DeployProject. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { @@ -5070,7 +5070,7 @@ This sample shows how to call DeployProject with all parameters and request cont "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { @@ -5089,7 +5089,7 @@ This sample shows how to call DeleteDeploymentAsync. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Operation operation = await client.DeleteDeploymentAsync(WaitUntil.Completed, "", ""); ]]> @@ -5097,7 +5097,7 @@ This sample shows how to call DeleteDeploymentAsync with all parameters. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Operation operation = await client.DeleteDeploymentAsync(WaitUntil.Completed, "", ""); ]]> @@ -5108,7 +5108,7 @@ This sample shows how to call DeleteDeployment. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Operation operation = client.DeleteDeployment(WaitUntil.Completed, "", ""); ]]> @@ -5116,7 +5116,7 @@ This sample shows how to call DeleteDeployment with all parameters. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Operation operation = client.DeleteDeployment(WaitUntil.Completed, "", ""); ]]> @@ -5127,7 +5127,7 @@ This sample shows how to call DeleteDeploymentFromResourcesAsync. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); DeleteDeploymentDetails body = new DeleteDeploymentDetails(); Operation operation = await client.DeleteDeploymentFromResourcesAsync(WaitUntil.Completed, "", "", body); @@ -5136,7 +5136,7 @@ This sample shows how to call DeleteDeploymentFromResourcesAsync with all parame "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); DeleteDeploymentDetails body = new DeleteDeploymentDetails { @@ -5151,7 +5151,7 @@ This sample shows how to call DeleteDeploymentFromResources. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); DeleteDeploymentDetails body = new DeleteDeploymentDetails(); Operation operation = client.DeleteDeploymentFromResources(WaitUntil.Completed, "", "", body); @@ -5160,7 +5160,7 @@ This sample shows how to call DeleteDeploymentFromResources with all parameters. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); DeleteDeploymentDetails body = new DeleteDeploymentDetails { @@ -5175,7 +5175,7 @@ This sample shows how to call DeleteDeploymentFromResourcesAsync. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new object()); Operation operation = await client.DeleteDeploymentFromResourcesAsync(WaitUntil.Completed, "", "", content); @@ -5184,7 +5184,7 @@ This sample shows how to call DeleteDeploymentFromResourcesAsync with all parame "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { @@ -5202,7 +5202,7 @@ This sample shows how to call DeleteDeploymentFromResources. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new object()); Operation operation = client.DeleteDeploymentFromResources(WaitUntil.Completed, "", "", content); @@ -5211,7 +5211,7 @@ This sample shows how to call DeleteDeploymentFromResources with all parameters "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { @@ -5229,7 +5229,7 @@ This sample shows how to call EvaluateModelAsync. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); EvaluationDetails body = new EvaluationDetails(); Operation operation = await client.EvaluateModelAsync(WaitUntil.Completed, "", "", body); @@ -5239,7 +5239,7 @@ This sample shows how to call EvaluateModelAsync with all parameters. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); EvaluationDetails body = new EvaluationDetails { @@ -5257,7 +5257,7 @@ This sample shows how to call EvaluateModel. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); EvaluationDetails body = new EvaluationDetails(); Operation operation = client.EvaluateModel(WaitUntil.Completed, "", "", body); @@ -5267,7 +5267,7 @@ This sample shows how to call EvaluateModel with all parameters. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); EvaluationDetails body = new EvaluationDetails { @@ -5285,7 +5285,7 @@ This sample shows how to call EvaluateModelAsync and parse the result. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new object()); Operation operation = await client.EvaluateModelAsync(WaitUntil.Completed, "", "", content); @@ -5301,7 +5301,7 @@ This sample shows how to call EvaluateModelAsync with all parameters and request "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { @@ -5327,7 +5327,7 @@ This sample shows how to call EvaluateModel and parse the result. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new object()); Operation operation = client.EvaluateModel(WaitUntil.Completed, "", "", content); @@ -5343,7 +5343,7 @@ This sample shows how to call EvaluateModel with all parameters and request cont "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { @@ -5369,7 +5369,7 @@ This sample shows how to call LoadSnapshotAsync. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Operation operation = await client.LoadSnapshotAsync(WaitUntil.Completed, "", ""); ]]> @@ -5377,7 +5377,7 @@ This sample shows how to call LoadSnapshotAsync with all parameters. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Operation operation = await client.LoadSnapshotAsync(WaitUntil.Completed, "", ""); ]]> @@ -5388,7 +5388,7 @@ This sample shows how to call LoadSnapshot. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Operation operation = client.LoadSnapshot(WaitUntil.Completed, "", ""); ]]> @@ -5396,7 +5396,7 @@ This sample shows how to call LoadSnapshot with all parameters. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Operation operation = client.LoadSnapshot(WaitUntil.Completed, "", ""); ]]> @@ -5407,7 +5407,7 @@ This sample shows how to call AssignDeploymentResourcesAsync. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); AssignDeploymentResourcesDetails body = new AssignDeploymentResourcesDetails(new ResourceMetadata[] { @@ -5419,7 +5419,7 @@ This sample shows how to call AssignDeploymentResourcesAsync with all parameters "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); AssignDeploymentResourcesDetails body = new AssignDeploymentResourcesDetails(new ResourceMetadata[] { @@ -5434,7 +5434,7 @@ This sample shows how to call AssignDeploymentResources. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); AssignDeploymentResourcesDetails body = new AssignDeploymentResourcesDetails(new ResourceMetadata[] { @@ -5446,7 +5446,7 @@ This sample shows how to call AssignDeploymentResources with all parameters. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); AssignDeploymentResourcesDetails body = new AssignDeploymentResourcesDetails(new ResourceMetadata[] { @@ -5461,7 +5461,7 @@ This sample shows how to call AssignDeploymentResourcesAsync. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { @@ -5481,7 +5481,7 @@ This sample shows how to call AssignDeploymentResourcesAsync with all parameters "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { @@ -5504,7 +5504,7 @@ This sample shows how to call AssignDeploymentResources. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { @@ -5524,7 +5524,7 @@ This sample shows how to call AssignDeploymentResources with all parameters and "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { @@ -5547,7 +5547,7 @@ This sample shows how to call UnassignDeploymentResourcesAsync. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); UnassignDeploymentResourcesDetails body = new UnassignDeploymentResourcesDetails(new string[] { "" }); Operation operation = await client.UnassignDeploymentResourcesAsync(WaitUntil.Completed, "", body); @@ -5556,7 +5556,7 @@ This sample shows how to call UnassignDeploymentResourcesAsync with all paramete "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); UnassignDeploymentResourcesDetails body = new UnassignDeploymentResourcesDetails(new string[] { "" }); Operation operation = await client.UnassignDeploymentResourcesAsync(WaitUntil.Completed, "", body); @@ -5568,7 +5568,7 @@ This sample shows how to call UnassignDeploymentResources. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); UnassignDeploymentResourcesDetails body = new UnassignDeploymentResourcesDetails(new string[] { "" }); Operation operation = client.UnassignDeploymentResources(WaitUntil.Completed, "", body); @@ -5577,7 +5577,7 @@ This sample shows how to call UnassignDeploymentResources with all parameters. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); UnassignDeploymentResourcesDetails body = new UnassignDeploymentResourcesDetails(new string[] { "" }); Operation operation = client.UnassignDeploymentResources(WaitUntil.Completed, "", body); @@ -5589,7 +5589,7 @@ This sample shows how to call UnassignDeploymentResourcesAsync. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { @@ -5604,7 +5604,7 @@ This sample shows how to call UnassignDeploymentResourcesAsync with all paramete "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { @@ -5622,7 +5622,7 @@ This sample shows how to call UnassignDeploymentResources. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { @@ -5637,7 +5637,7 @@ This sample shows how to call UnassignDeploymentResources with all parameters an "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { @@ -5655,7 +5655,7 @@ This sample shows how to call CancelTrainingJobAsync. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Operation operation = await client.CancelTrainingJobAsync(WaitUntil.Completed, "", ""); TrainingJobResult responseData = operation.Value; @@ -5664,7 +5664,7 @@ This sample shows how to call CancelTrainingJobAsync with all parameters. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Operation operation = await client.CancelTrainingJobAsync(WaitUntil.Completed, "", ""); TrainingJobResult responseData = operation.Value; @@ -5676,7 +5676,7 @@ This sample shows how to call CancelTrainingJob. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Operation operation = client.CancelTrainingJob(WaitUntil.Completed, "", ""); TrainingJobResult responseData = operation.Value; @@ -5685,7 +5685,7 @@ This sample shows how to call CancelTrainingJob with all parameters. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Operation operation = client.CancelTrainingJob(WaitUntil.Completed, "", ""); TrainingJobResult responseData = operation.Value; @@ -5697,7 +5697,7 @@ This sample shows how to call CancelTrainingJobAsync and parse the result. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Operation operation = await client.CancelTrainingJobAsync(WaitUntil.Completed, "", "", null); BinaryData responseData = operation.Value; @@ -5712,7 +5712,7 @@ This sample shows how to call CancelTrainingJobAsync with all parameters and par "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Operation operation = await client.CancelTrainingJobAsync(WaitUntil.Completed, "", "", null); BinaryData responseData = operation.Value; @@ -5722,14 +5722,14 @@ Console.WriteLine(result.GetProperty("modelLabel").ToString()); Console.WriteLine(result.GetProperty("trainingConfigVersion").ToString()); Console.WriteLine(result.GetProperty("trainingMode").ToString()); Console.WriteLine(result.GetProperty("trainingStatus").GetProperty("percentComplete").ToString()); -Console.WriteLine(result.GetProperty("trainingStatus").GetProperty("startDateTime").ToString()); -Console.WriteLine(result.GetProperty("trainingStatus").GetProperty("endDateTime").ToString()); +Console.WriteLine(result.GetProperty("trainingStatus").GetProperty("startedOn").ToString()); +Console.WriteLine(result.GetProperty("trainingStatus").GetProperty("endedOn").ToString()); Console.WriteLine(result.GetProperty("trainingStatus").GetProperty("status").ToString()); Console.WriteLine(result.GetProperty("evaluationStatus").GetProperty("percentComplete").ToString()); -Console.WriteLine(result.GetProperty("evaluationStatus").GetProperty("startDateTime").ToString()); -Console.WriteLine(result.GetProperty("evaluationStatus").GetProperty("endDateTime").ToString()); +Console.WriteLine(result.GetProperty("evaluationStatus").GetProperty("startedOn").ToString()); +Console.WriteLine(result.GetProperty("evaluationStatus").GetProperty("endedOn").ToString()); Console.WriteLine(result.GetProperty("evaluationStatus").GetProperty("status").ToString()); -Console.WriteLine(result.GetProperty("estimatedEndDateTime").ToString()); +Console.WriteLine(result.GetProperty("estimatedEndOn").ToString()); ]]> @@ -5738,7 +5738,7 @@ This sample shows how to call CancelTrainingJob and parse the result. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Operation operation = client.CancelTrainingJob(WaitUntil.Completed, "", "", null); BinaryData responseData = operation.Value; @@ -5753,7 +5753,7 @@ This sample shows how to call CancelTrainingJob with all parameters and parse th "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Operation operation = client.CancelTrainingJob(WaitUntil.Completed, "", "", null); BinaryData responseData = operation.Value; @@ -5763,14 +5763,14 @@ Console.WriteLine(result.GetProperty("modelLabel").ToString()); Console.WriteLine(result.GetProperty("trainingConfigVersion").ToString()); Console.WriteLine(result.GetProperty("trainingMode").ToString()); Console.WriteLine(result.GetProperty("trainingStatus").GetProperty("percentComplete").ToString()); -Console.WriteLine(result.GetProperty("trainingStatus").GetProperty("startDateTime").ToString()); -Console.WriteLine(result.GetProperty("trainingStatus").GetProperty("endDateTime").ToString()); +Console.WriteLine(result.GetProperty("trainingStatus").GetProperty("startedOn").ToString()); +Console.WriteLine(result.GetProperty("trainingStatus").GetProperty("endedOn").ToString()); Console.WriteLine(result.GetProperty("trainingStatus").GetProperty("status").ToString()); Console.WriteLine(result.GetProperty("evaluationStatus").GetProperty("percentComplete").ToString()); -Console.WriteLine(result.GetProperty("evaluationStatus").GetProperty("startDateTime").ToString()); -Console.WriteLine(result.GetProperty("evaluationStatus").GetProperty("endDateTime").ToString()); +Console.WriteLine(result.GetProperty("evaluationStatus").GetProperty("startedOn").ToString()); +Console.WriteLine(result.GetProperty("evaluationStatus").GetProperty("endedOn").ToString()); Console.WriteLine(result.GetProperty("evaluationStatus").GetProperty("status").ToString()); -Console.WriteLine(result.GetProperty("estimatedEndDateTime").ToString()); +Console.WriteLine(result.GetProperty("estimatedEndOn").ToString()); ]]> @@ -5779,7 +5779,7 @@ This sample shows how to call DeleteExportedModelAsync. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Operation operation = await client.DeleteExportedModelAsync(WaitUntil.Completed, "", ""); ]]> @@ -5787,7 +5787,7 @@ This sample shows how to call DeleteExportedModelAsync with all parameters. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Operation operation = await client.DeleteExportedModelAsync(WaitUntil.Completed, "", ""); ]]> @@ -5798,7 +5798,7 @@ This sample shows how to call DeleteExportedModel. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Operation operation = client.DeleteExportedModel(WaitUntil.Completed, "", ""); ]]> @@ -5806,7 +5806,7 @@ This sample shows how to call DeleteExportedModel with all parameters. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); Operation operation = client.DeleteExportedModel(WaitUntil.Completed, "", ""); ]]> @@ -5817,7 +5817,7 @@ This sample shows how to call CreateOrUpdateExportedModelAsync. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); ExportedModelDetails body = new ExportedModelDetails(""); Operation operation = await client.CreateOrUpdateExportedModelAsync(WaitUntil.Completed, "", "", body); @@ -5826,7 +5826,7 @@ This sample shows how to call CreateOrUpdateExportedModelAsync with all paramete "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); ExportedModelDetails body = new ExportedModelDetails(""); Operation operation = await client.CreateOrUpdateExportedModelAsync(WaitUntil.Completed, "", "", body); @@ -5838,7 +5838,7 @@ This sample shows how to call CreateOrUpdateExportedModel. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); ExportedModelDetails body = new ExportedModelDetails(""); Operation operation = client.CreateOrUpdateExportedModel(WaitUntil.Completed, "", "", body); @@ -5847,7 +5847,7 @@ This sample shows how to call CreateOrUpdateExportedModel with all parameters. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); ExportedModelDetails body = new ExportedModelDetails(""); Operation operation = client.CreateOrUpdateExportedModel(WaitUntil.Completed, "", "", body); @@ -5859,7 +5859,7 @@ This sample shows how to call CreateOrUpdateExportedModelAsync. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { @@ -5871,7 +5871,7 @@ This sample shows how to call CreateOrUpdateExportedModelAsync with all paramete "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { @@ -5886,7 +5886,7 @@ This sample shows how to call CreateOrUpdateExportedModel. "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { @@ -5898,7 +5898,7 @@ This sample shows how to call CreateOrUpdateExportedModel with all parameters an "); AzureKeyCredential credential = new AzureKeyCredential(""); -AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); +AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { diff --git a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/AssignedDeploymentResource.Serialization.cs b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/AssignedDeploymentResource.Serialization.cs index 9f5ca609d99b3..5ffbf4500d4bd 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/AssignedDeploymentResource.Serialization.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/AssignedDeploymentResource.Serialization.cs @@ -36,8 +36,8 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit if (options.Format != "W") { - writer.WritePropertyName("azureResourceId"u8); - writer.WriteStringValue(AzureResourceId); + writer.WritePropertyName("resourceId"u8); + writer.WriteStringValue(ResourceId); } writer.WritePropertyName("region"u8); writer.WriteStringValue(Region); @@ -78,15 +78,15 @@ internal static AssignedDeploymentResource DeserializeAssignedDeploymentResource { return null; } - string azureResourceId = default; + string resourceId = default; string region = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { - if (property.NameEquals("azureResourceId"u8)) + if (property.NameEquals("resourceId"u8)) { - azureResourceId = property.Value.GetString(); + resourceId = property.Value.GetString(); continue; } if (property.NameEquals("region"u8)) @@ -100,7 +100,7 @@ internal static AssignedDeploymentResource DeserializeAssignedDeploymentResource } } serializedAdditionalRawData = rawDataDictionary; - return new AssignedDeploymentResource(azureResourceId, region, serializedAdditionalRawData); + return new AssignedDeploymentResource(resourceId, region, serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/AssignedDeploymentResource.cs b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/AssignedDeploymentResource.cs index 618f6d01d66e8..937823d307e84 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/AssignedDeploymentResource.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/AssignedDeploymentResource.cs @@ -56,12 +56,12 @@ internal AssignedDeploymentResource(string region) } /// Initializes a new instance of . - /// The resource ID. + /// The resource ID. /// The resource region. /// Keeps track of any properties unknown to the library. - internal AssignedDeploymentResource(string azureResourceId, string region, IDictionary serializedAdditionalRawData) + internal AssignedDeploymentResource(string resourceId, string region, IDictionary serializedAdditionalRawData) { - AzureResourceId = azureResourceId; + ResourceId = resourceId; Region = region; _serializedAdditionalRawData = serializedAdditionalRawData; } @@ -72,7 +72,7 @@ internal AssignedDeploymentResource() } /// The resource ID. - public string AzureResourceId { get; } + public string ResourceId { get; } /// The resource region. public string Region { get; } } diff --git a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/AssignedProjectDeploymentMetadata.Serialization.cs b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/AssignedProjectDeploymentMetadata.Serialization.cs index 04c1e3d2fe12c..aeecfd5423636 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/AssignedProjectDeploymentMetadata.Serialization.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/AssignedProjectDeploymentMetadata.Serialization.cs @@ -36,8 +36,8 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("deploymentName"u8); writer.WriteStringValue(DeploymentName); - writer.WritePropertyName("lastDeployedDateTime"u8); - writer.WriteStringValue(LastDeployedDateTime, "O"); + writer.WritePropertyName("lastDeployedOn"u8); + writer.WriteStringValue(LastDeployedOn, "O"); writer.WritePropertyName("deploymentExpirationDate"u8); writer.WriteStringValue(DeploymentExpirationDate, "D"); if (options.Format != "W" && _serializedAdditionalRawData != null) @@ -78,7 +78,7 @@ internal static AssignedProjectDeploymentMetadata DeserializeAssignedProjectDepl return null; } string deploymentName = default; - DateTimeOffset lastDeployedDateTime = default; + DateTimeOffset lastDeployedOn = default; DateTimeOffset deploymentExpirationDate = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); @@ -89,9 +89,9 @@ internal static AssignedProjectDeploymentMetadata DeserializeAssignedProjectDepl deploymentName = property.Value.GetString(); continue; } - if (property.NameEquals("lastDeployedDateTime"u8)) + if (property.NameEquals("lastDeployedOn"u8)) { - lastDeployedDateTime = property.Value.GetDateTimeOffset("O"); + lastDeployedOn = property.Value.GetDateTimeOffset("O"); continue; } if (property.NameEquals("deploymentExpirationDate"u8)) @@ -105,7 +105,7 @@ internal static AssignedProjectDeploymentMetadata DeserializeAssignedProjectDepl } } serializedAdditionalRawData = rawDataDictionary; - return new AssignedProjectDeploymentMetadata(deploymentName, lastDeployedDateTime, deploymentExpirationDate, serializedAdditionalRawData); + return new AssignedProjectDeploymentMetadata(deploymentName, lastDeployedOn, deploymentExpirationDate, serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/AssignedProjectDeploymentMetadata.cs b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/AssignedProjectDeploymentMetadata.cs index fae2ecce4b151..995830c54ccfa 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/AssignedProjectDeploymentMetadata.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/AssignedProjectDeploymentMetadata.cs @@ -47,27 +47,27 @@ public partial class AssignedProjectDeploymentMetadata /// Initializes a new instance of . /// Represents the deployment name. - /// Represents deployment last deployed time. + /// Represents deployment last deployed time. /// Represents deployment expiration date in the runtime. /// is null. - internal AssignedProjectDeploymentMetadata(string deploymentName, DateTimeOffset lastDeployedDateTime, DateTimeOffset deploymentExpirationDate) + internal AssignedProjectDeploymentMetadata(string deploymentName, DateTimeOffset lastDeployedOn, DateTimeOffset deploymentExpirationDate) { Argument.AssertNotNull(deploymentName, nameof(deploymentName)); DeploymentName = deploymentName; - LastDeployedDateTime = lastDeployedDateTime; + LastDeployedOn = lastDeployedOn; DeploymentExpirationDate = deploymentExpirationDate; } /// Initializes a new instance of . /// Represents the deployment name. - /// Represents deployment last deployed time. + /// Represents deployment last deployed time. /// Represents deployment expiration date in the runtime. /// Keeps track of any properties unknown to the library. - internal AssignedProjectDeploymentMetadata(string deploymentName, DateTimeOffset lastDeployedDateTime, DateTimeOffset deploymentExpirationDate, IDictionary serializedAdditionalRawData) + internal AssignedProjectDeploymentMetadata(string deploymentName, DateTimeOffset lastDeployedOn, DateTimeOffset deploymentExpirationDate, IDictionary serializedAdditionalRawData) { DeploymentName = deploymentName; - LastDeployedDateTime = lastDeployedDateTime; + LastDeployedOn = lastDeployedOn; DeploymentExpirationDate = deploymentExpirationDate; _serializedAdditionalRawData = serializedAdditionalRawData; } @@ -80,7 +80,7 @@ internal AssignedProjectDeploymentMetadata() /// Represents the deployment name. public string DeploymentName { get; } /// Represents deployment last deployed time. - public DateTimeOffset LastDeployedDateTime { get; } + public DateTimeOffset LastDeployedOn { get; } /// Represents deployment expiration date in the runtime. public DateTimeOffset DeploymentExpirationDate { get; } } diff --git a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/CopyProjectJobState.Serialization.cs b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/CopyProjectJobState.Serialization.cs index 351975e9b1557..7f474b4f03028 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/CopyProjectJobState.Serialization.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/CopyProjectJobState.Serialization.cs @@ -39,14 +39,14 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("jobId"u8); writer.WriteStringValue(JobId); } - writer.WritePropertyName("createdDateTime"u8); - writer.WriteStringValue(CreatedDateTime, "O"); - writer.WritePropertyName("lastUpdatedDateTime"u8); - writer.WriteStringValue(LastUpdatedDateTime, "O"); - if (Optional.IsDefined(ExpirationDateTime)) + writer.WritePropertyName("createdOn"u8); + writer.WriteStringValue(CreatedOn, "O"); + writer.WritePropertyName("lastUpdatedOn"u8); + writer.WriteStringValue(LastUpdatedOn, "O"); + if (Optional.IsDefined(ExpiresOn)) { - writer.WritePropertyName("expirationDateTime"u8); - writer.WriteStringValue(ExpirationDateTime.Value, "O"); + writer.WritePropertyName("expiresOn"u8); + writer.WriteStringValue(ExpiresOn.Value, "O"); } writer.WritePropertyName("status"u8); writer.WriteStringValue(Status.ToString()); @@ -108,9 +108,9 @@ internal static CopyProjectJobState DeserializeCopyProjectJobState(JsonElement e return null; } string jobId = default; - DateTimeOffset createdDateTime = default; - DateTimeOffset lastUpdatedDateTime = default; - DateTimeOffset? expirationDateTime = default; + DateTimeOffset createdOn = default; + DateTimeOffset lastUpdatedOn = default; + DateTimeOffset? expiresOn = default; JobStatus status = default; IReadOnlyList warnings = default; IReadOnlyList errors = default; @@ -123,23 +123,23 @@ internal static CopyProjectJobState DeserializeCopyProjectJobState(JsonElement e jobId = property.Value.GetString(); continue; } - if (property.NameEquals("createdDateTime"u8)) + if (property.NameEquals("createdOn"u8)) { - createdDateTime = property.Value.GetDateTimeOffset("O"); + createdOn = property.Value.GetDateTimeOffset("O"); continue; } - if (property.NameEquals("lastUpdatedDateTime"u8)) + if (property.NameEquals("lastUpdatedOn"u8)) { - lastUpdatedDateTime = property.Value.GetDateTimeOffset("O"); + lastUpdatedOn = property.Value.GetDateTimeOffset("O"); continue; } - if (property.NameEquals("expirationDateTime"u8)) + if (property.NameEquals("expiresOn"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } - expirationDateTime = property.Value.GetDateTimeOffset("O"); + expiresOn = property.Value.GetDateTimeOffset("O"); continue; } if (property.NameEquals("status"u8)) @@ -183,9 +183,9 @@ internal static CopyProjectJobState DeserializeCopyProjectJobState(JsonElement e serializedAdditionalRawData = rawDataDictionary; return new CopyProjectJobState( jobId, - createdDateTime, - lastUpdatedDateTime, - expirationDateTime, + createdOn, + lastUpdatedOn, + expiresOn, status, warnings ?? new ChangeTrackingList(), errors ?? new ChangeTrackingList(), diff --git a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/CopyProjectJobState.cs b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/CopyProjectJobState.cs index affeb356c89aa..2fcc4af59d620 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/CopyProjectJobState.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/CopyProjectJobState.cs @@ -46,13 +46,13 @@ public partial class CopyProjectJobState private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - /// The creation date time of the job. - /// The last date time the job was updated. + /// The creation date time of the job. + /// The last date time the job was updated. /// The job status. - internal CopyProjectJobState(DateTimeOffset createdDateTime, DateTimeOffset lastUpdatedDateTime, JobStatus status) + internal CopyProjectJobState(DateTimeOffset createdOn, DateTimeOffset lastUpdatedOn, JobStatus status) { - CreatedDateTime = createdDateTime; - LastUpdatedDateTime = lastUpdatedDateTime; + CreatedOn = createdOn; + LastUpdatedOn = lastUpdatedOn; Status = status; Warnings = new ChangeTrackingList(); Errors = new ChangeTrackingList(); @@ -60,19 +60,19 @@ internal CopyProjectJobState(DateTimeOffset createdDateTime, DateTimeOffset last /// Initializes a new instance of . /// The job ID. - /// The creation date time of the job. - /// The last date time the job was updated. - /// The expiration date time of the job. + /// The creation date time of the job. + /// The last date time the job was updated. + /// The expiration date time of the job. /// The job status. /// The warnings that were encountered while executing the job. /// The errors encountered while executing the job. /// Keeps track of any properties unknown to the library. - internal CopyProjectJobState(string jobId, DateTimeOffset createdDateTime, DateTimeOffset lastUpdatedDateTime, DateTimeOffset? expirationDateTime, JobStatus status, IReadOnlyList warnings, IReadOnlyList errors, IDictionary serializedAdditionalRawData) + internal CopyProjectJobState(string jobId, DateTimeOffset createdOn, DateTimeOffset lastUpdatedOn, DateTimeOffset? expiresOn, JobStatus status, IReadOnlyList warnings, IReadOnlyList errors, IDictionary serializedAdditionalRawData) { JobId = jobId; - CreatedDateTime = createdDateTime; - LastUpdatedDateTime = lastUpdatedDateTime; - ExpirationDateTime = expirationDateTime; + CreatedOn = createdOn; + LastUpdatedOn = lastUpdatedOn; + ExpiresOn = expiresOn; Status = status; Warnings = warnings; Errors = errors; @@ -87,11 +87,11 @@ internal CopyProjectJobState() /// The job ID. public string JobId { get; } /// The creation date time of the job. - public DateTimeOffset CreatedDateTime { get; } + public DateTimeOffset CreatedOn { get; } /// The last date time the job was updated. - public DateTimeOffset LastUpdatedDateTime { get; } + public DateTimeOffset LastUpdatedOn { get; } /// The expiration date time of the job. - public DateTimeOffset? ExpirationDateTime { get; } + public DateTimeOffset? ExpiresOn { get; } /// The job status. public JobStatus Status { get; } /// The warnings that were encountered while executing the job. diff --git a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/DeploymentDeleteFromResourcesJobState.Serialization.cs b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/DeploymentDeleteFromResourcesJobState.Serialization.cs index f2db094604c48..372ae5e16657d 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/DeploymentDeleteFromResourcesJobState.Serialization.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/DeploymentDeleteFromResourcesJobState.Serialization.cs @@ -39,14 +39,14 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("jobId"u8); writer.WriteStringValue(JobId); } - writer.WritePropertyName("createdDateTime"u8); - writer.WriteStringValue(CreatedDateTime, "O"); - writer.WritePropertyName("lastUpdatedDateTime"u8); - writer.WriteStringValue(LastUpdatedDateTime, "O"); - if (Optional.IsDefined(ExpirationDateTime)) + writer.WritePropertyName("createdOn"u8); + writer.WriteStringValue(CreatedOn, "O"); + writer.WritePropertyName("lastUpdatedOn"u8); + writer.WriteStringValue(LastUpdatedOn, "O"); + if (Optional.IsDefined(ExpiresOn)) { - writer.WritePropertyName("expirationDateTime"u8); - writer.WriteStringValue(ExpirationDateTime.Value, "O"); + writer.WritePropertyName("expiresOn"u8); + writer.WriteStringValue(ExpiresOn.Value, "O"); } writer.WritePropertyName("status"u8); writer.WriteStringValue(Status.ToString()); @@ -108,9 +108,9 @@ internal static DeploymentDeleteFromResourcesJobState DeserializeDeploymentDelet return null; } string jobId = default; - DateTimeOffset createdDateTime = default; - DateTimeOffset lastUpdatedDateTime = default; - DateTimeOffset? expirationDateTime = default; + DateTimeOffset createdOn = default; + DateTimeOffset lastUpdatedOn = default; + DateTimeOffset? expiresOn = default; JobStatus status = default; IReadOnlyList warnings = default; IReadOnlyList errors = default; @@ -123,23 +123,23 @@ internal static DeploymentDeleteFromResourcesJobState DeserializeDeploymentDelet jobId = property.Value.GetString(); continue; } - if (property.NameEquals("createdDateTime"u8)) + if (property.NameEquals("createdOn"u8)) { - createdDateTime = property.Value.GetDateTimeOffset("O"); + createdOn = property.Value.GetDateTimeOffset("O"); continue; } - if (property.NameEquals("lastUpdatedDateTime"u8)) + if (property.NameEquals("lastUpdatedOn"u8)) { - lastUpdatedDateTime = property.Value.GetDateTimeOffset("O"); + lastUpdatedOn = property.Value.GetDateTimeOffset("O"); continue; } - if (property.NameEquals("expirationDateTime"u8)) + if (property.NameEquals("expiresOn"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } - expirationDateTime = property.Value.GetDateTimeOffset("O"); + expiresOn = property.Value.GetDateTimeOffset("O"); continue; } if (property.NameEquals("status"u8)) @@ -183,9 +183,9 @@ internal static DeploymentDeleteFromResourcesJobState DeserializeDeploymentDelet serializedAdditionalRawData = rawDataDictionary; return new DeploymentDeleteFromResourcesJobState( jobId, - createdDateTime, - lastUpdatedDateTime, - expirationDateTime, + createdOn, + lastUpdatedOn, + expiresOn, status, warnings ?? new ChangeTrackingList(), errors ?? new ChangeTrackingList(), diff --git a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/DeploymentDeleteFromResourcesJobState.cs b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/DeploymentDeleteFromResourcesJobState.cs index 4e1ee9ed2c1cc..08a2c3497b573 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/DeploymentDeleteFromResourcesJobState.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/DeploymentDeleteFromResourcesJobState.cs @@ -46,13 +46,13 @@ public partial class DeploymentDeleteFromResourcesJobState private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - /// The creation date time of the job. - /// The last date time the job was updated. + /// The creation date time of the job. + /// The last date time the job was updated. /// The job status. - internal DeploymentDeleteFromResourcesJobState(DateTimeOffset createdDateTime, DateTimeOffset lastUpdatedDateTime, JobStatus status) + internal DeploymentDeleteFromResourcesJobState(DateTimeOffset createdOn, DateTimeOffset lastUpdatedOn, JobStatus status) { - CreatedDateTime = createdDateTime; - LastUpdatedDateTime = lastUpdatedDateTime; + CreatedOn = createdOn; + LastUpdatedOn = lastUpdatedOn; Status = status; Warnings = new ChangeTrackingList(); Errors = new ChangeTrackingList(); @@ -60,19 +60,19 @@ internal DeploymentDeleteFromResourcesJobState(DateTimeOffset createdDateTime, D /// Initializes a new instance of . /// The job ID. - /// The creation date time of the job. - /// The last date time the job was updated. - /// The expiration date time of the job. + /// The creation date time of the job. + /// The last date time the job was updated. + /// The expiration date time of the job. /// The job status. /// The warnings that were encountered while executing the job. /// The errors encountered while executing the job. /// Keeps track of any properties unknown to the library. - internal DeploymentDeleteFromResourcesJobState(string jobId, DateTimeOffset createdDateTime, DateTimeOffset lastUpdatedDateTime, DateTimeOffset? expirationDateTime, JobStatus status, IReadOnlyList warnings, IReadOnlyList errors, IDictionary serializedAdditionalRawData) + internal DeploymentDeleteFromResourcesJobState(string jobId, DateTimeOffset createdOn, DateTimeOffset lastUpdatedOn, DateTimeOffset? expiresOn, JobStatus status, IReadOnlyList warnings, IReadOnlyList errors, IDictionary serializedAdditionalRawData) { JobId = jobId; - CreatedDateTime = createdDateTime; - LastUpdatedDateTime = lastUpdatedDateTime; - ExpirationDateTime = expirationDateTime; + CreatedOn = createdOn; + LastUpdatedOn = lastUpdatedOn; + ExpiresOn = expiresOn; Status = status; Warnings = warnings; Errors = errors; @@ -87,11 +87,11 @@ internal DeploymentDeleteFromResourcesJobState() /// The job ID. public string JobId { get; } /// The creation date time of the job. - public DateTimeOffset CreatedDateTime { get; } + public DateTimeOffset CreatedOn { get; } /// The last date time the job was updated. - public DateTimeOffset LastUpdatedDateTime { get; } + public DateTimeOffset LastUpdatedOn { get; } /// The expiration date time of the job. - public DateTimeOffset? ExpirationDateTime { get; } + public DateTimeOffset? ExpiresOn { get; } /// The job status. public JobStatus Status { get; } /// The warnings that were encountered while executing the job. diff --git a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/DeploymentJobState.Serialization.cs b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/DeploymentJobState.Serialization.cs index bc975cd541a8e..00283917774ee 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/DeploymentJobState.Serialization.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/DeploymentJobState.Serialization.cs @@ -39,14 +39,14 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("jobId"u8); writer.WriteStringValue(JobId); } - writer.WritePropertyName("createdDateTime"u8); - writer.WriteStringValue(CreatedDateTime, "O"); - writer.WritePropertyName("lastUpdatedDateTime"u8); - writer.WriteStringValue(LastUpdatedDateTime, "O"); - if (Optional.IsDefined(ExpirationDateTime)) + writer.WritePropertyName("createdOn"u8); + writer.WriteStringValue(CreatedOn, "O"); + writer.WritePropertyName("lastUpdatedOn"u8); + writer.WriteStringValue(LastUpdatedOn, "O"); + if (Optional.IsDefined(ExpiresOn)) { - writer.WritePropertyName("expirationDateTime"u8); - writer.WriteStringValue(ExpirationDateTime.Value, "O"); + writer.WritePropertyName("expiresOn"u8); + writer.WriteStringValue(ExpiresOn.Value, "O"); } writer.WritePropertyName("status"u8); writer.WriteStringValue(Status.ToString()); @@ -108,9 +108,9 @@ internal static DeploymentJobState DeserializeDeploymentJobState(JsonElement ele return null; } string jobId = default; - DateTimeOffset createdDateTime = default; - DateTimeOffset lastUpdatedDateTime = default; - DateTimeOffset? expirationDateTime = default; + DateTimeOffset createdOn = default; + DateTimeOffset lastUpdatedOn = default; + DateTimeOffset? expiresOn = default; JobStatus status = default; IReadOnlyList warnings = default; IReadOnlyList errors = default; @@ -123,23 +123,23 @@ internal static DeploymentJobState DeserializeDeploymentJobState(JsonElement ele jobId = property.Value.GetString(); continue; } - if (property.NameEquals("createdDateTime"u8)) + if (property.NameEquals("createdOn"u8)) { - createdDateTime = property.Value.GetDateTimeOffset("O"); + createdOn = property.Value.GetDateTimeOffset("O"); continue; } - if (property.NameEquals("lastUpdatedDateTime"u8)) + if (property.NameEquals("lastUpdatedOn"u8)) { - lastUpdatedDateTime = property.Value.GetDateTimeOffset("O"); + lastUpdatedOn = property.Value.GetDateTimeOffset("O"); continue; } - if (property.NameEquals("expirationDateTime"u8)) + if (property.NameEquals("expiresOn"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } - expirationDateTime = property.Value.GetDateTimeOffset("O"); + expiresOn = property.Value.GetDateTimeOffset("O"); continue; } if (property.NameEquals("status"u8)) @@ -183,9 +183,9 @@ internal static DeploymentJobState DeserializeDeploymentJobState(JsonElement ele serializedAdditionalRawData = rawDataDictionary; return new DeploymentJobState( jobId, - createdDateTime, - lastUpdatedDateTime, - expirationDateTime, + createdOn, + lastUpdatedOn, + expiresOn, status, warnings ?? new ChangeTrackingList(), errors ?? new ChangeTrackingList(), diff --git a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/DeploymentJobState.cs b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/DeploymentJobState.cs index 3b027b6d84609..e364bb99baa33 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/DeploymentJobState.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/DeploymentJobState.cs @@ -46,13 +46,13 @@ public partial class DeploymentJobState private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - /// The creation date time of the job. - /// The last date time the job was updated. + /// The creation date time of the job. + /// The last date time the job was updated. /// The job status. - internal DeploymentJobState(DateTimeOffset createdDateTime, DateTimeOffset lastUpdatedDateTime, JobStatus status) + internal DeploymentJobState(DateTimeOffset createdOn, DateTimeOffset lastUpdatedOn, JobStatus status) { - CreatedDateTime = createdDateTime; - LastUpdatedDateTime = lastUpdatedDateTime; + CreatedOn = createdOn; + LastUpdatedOn = lastUpdatedOn; Status = status; Warnings = new ChangeTrackingList(); Errors = new ChangeTrackingList(); @@ -60,19 +60,19 @@ internal DeploymentJobState(DateTimeOffset createdDateTime, DateTimeOffset lastU /// Initializes a new instance of . /// The job ID. - /// The creation date time of the job. - /// The last date time the job was updated. - /// The expiration date time of the job. + /// The creation date time of the job. + /// The last date time the job was updated. + /// The expiration date time of the job. /// The job status. /// The warnings that were encountered while executing the job. /// The errors encountered while executing the job. /// Keeps track of any properties unknown to the library. - internal DeploymentJobState(string jobId, DateTimeOffset createdDateTime, DateTimeOffset lastUpdatedDateTime, DateTimeOffset? expirationDateTime, JobStatus status, IReadOnlyList warnings, IReadOnlyList errors, IDictionary serializedAdditionalRawData) + internal DeploymentJobState(string jobId, DateTimeOffset createdOn, DateTimeOffset lastUpdatedOn, DateTimeOffset? expiresOn, JobStatus status, IReadOnlyList warnings, IReadOnlyList errors, IDictionary serializedAdditionalRawData) { JobId = jobId; - CreatedDateTime = createdDateTime; - LastUpdatedDateTime = lastUpdatedDateTime; - ExpirationDateTime = expirationDateTime; + CreatedOn = createdOn; + LastUpdatedOn = lastUpdatedOn; + ExpiresOn = expiresOn; Status = status; Warnings = warnings; Errors = errors; @@ -87,11 +87,11 @@ internal DeploymentJobState() /// The job ID. public string JobId { get; } /// The creation date time of the job. - public DateTimeOffset CreatedDateTime { get; } + public DateTimeOffset CreatedOn { get; } /// The last date time the job was updated. - public DateTimeOffset LastUpdatedDateTime { get; } + public DateTimeOffset LastUpdatedOn { get; } /// The expiration date time of the job. - public DateTimeOffset? ExpirationDateTime { get; } + public DateTimeOffset? ExpiresOn { get; } /// The job status. public JobStatus Status { get; } /// The warnings that were encountered while executing the job. diff --git a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/DeploymentResourcesJobState.Serialization.cs b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/DeploymentResourcesJobState.Serialization.cs index c868942c403f8..3fe06dbedaba6 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/DeploymentResourcesJobState.Serialization.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/DeploymentResourcesJobState.Serialization.cs @@ -39,14 +39,14 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("jobId"u8); writer.WriteStringValue(JobId); } - writer.WritePropertyName("createdDateTime"u8); - writer.WriteStringValue(CreatedDateTime, "O"); - writer.WritePropertyName("lastUpdatedDateTime"u8); - writer.WriteStringValue(LastUpdatedDateTime, "O"); - if (Optional.IsDefined(ExpirationDateTime)) + writer.WritePropertyName("createdOn"u8); + writer.WriteStringValue(CreatedOn, "O"); + writer.WritePropertyName("lastUpdatedOn"u8); + writer.WriteStringValue(LastUpdatedOn, "O"); + if (Optional.IsDefined(ExpiresOn)) { - writer.WritePropertyName("expirationDateTime"u8); - writer.WriteStringValue(ExpirationDateTime.Value, "O"); + writer.WritePropertyName("expiresOn"u8); + writer.WriteStringValue(ExpiresOn.Value, "O"); } writer.WritePropertyName("status"u8); writer.WriteStringValue(Status.ToString()); @@ -108,9 +108,9 @@ internal static DeploymentResourcesJobState DeserializeDeploymentResourcesJobSta return null; } string jobId = default; - DateTimeOffset createdDateTime = default; - DateTimeOffset lastUpdatedDateTime = default; - DateTimeOffset? expirationDateTime = default; + DateTimeOffset createdOn = default; + DateTimeOffset lastUpdatedOn = default; + DateTimeOffset? expiresOn = default; JobStatus status = default; IReadOnlyList warnings = default; IReadOnlyList errors = default; @@ -123,23 +123,23 @@ internal static DeploymentResourcesJobState DeserializeDeploymentResourcesJobSta jobId = property.Value.GetString(); continue; } - if (property.NameEquals("createdDateTime"u8)) + if (property.NameEquals("createdOn"u8)) { - createdDateTime = property.Value.GetDateTimeOffset("O"); + createdOn = property.Value.GetDateTimeOffset("O"); continue; } - if (property.NameEquals("lastUpdatedDateTime"u8)) + if (property.NameEquals("lastUpdatedOn"u8)) { - lastUpdatedDateTime = property.Value.GetDateTimeOffset("O"); + lastUpdatedOn = property.Value.GetDateTimeOffset("O"); continue; } - if (property.NameEquals("expirationDateTime"u8)) + if (property.NameEquals("expiresOn"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } - expirationDateTime = property.Value.GetDateTimeOffset("O"); + expiresOn = property.Value.GetDateTimeOffset("O"); continue; } if (property.NameEquals("status"u8)) @@ -183,9 +183,9 @@ internal static DeploymentResourcesJobState DeserializeDeploymentResourcesJobSta serializedAdditionalRawData = rawDataDictionary; return new DeploymentResourcesJobState( jobId, - createdDateTime, - lastUpdatedDateTime, - expirationDateTime, + createdOn, + lastUpdatedOn, + expiresOn, status, warnings ?? new ChangeTrackingList(), errors ?? new ChangeTrackingList(), diff --git a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/DeploymentResourcesJobState.cs b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/DeploymentResourcesJobState.cs index 1448217b4dbd9..9a76cd08bd207 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/DeploymentResourcesJobState.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/DeploymentResourcesJobState.cs @@ -46,13 +46,13 @@ public partial class DeploymentResourcesJobState private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - /// The creation date time of the job. - /// The last date time the job was updated. + /// The creation date time of the job. + /// The last date time the job was updated. /// The job status. - internal DeploymentResourcesJobState(DateTimeOffset createdDateTime, DateTimeOffset lastUpdatedDateTime, JobStatus status) + internal DeploymentResourcesJobState(DateTimeOffset createdOn, DateTimeOffset lastUpdatedOn, JobStatus status) { - CreatedDateTime = createdDateTime; - LastUpdatedDateTime = lastUpdatedDateTime; + CreatedOn = createdOn; + LastUpdatedOn = lastUpdatedOn; Status = status; Warnings = new ChangeTrackingList(); Errors = new ChangeTrackingList(); @@ -60,19 +60,19 @@ internal DeploymentResourcesJobState(DateTimeOffset createdDateTime, DateTimeOff /// Initializes a new instance of . /// The job ID. - /// The creation date time of the job. - /// The last date time the job was updated. - /// The expiration date time of the job. + /// The creation date time of the job. + /// The last date time the job was updated. + /// The expiration date time of the job. /// The job status. /// The warnings that were encountered while executing the job. /// The errors encountered while executing the job. /// Keeps track of any properties unknown to the library. - internal DeploymentResourcesJobState(string jobId, DateTimeOffset createdDateTime, DateTimeOffset lastUpdatedDateTime, DateTimeOffset? expirationDateTime, JobStatus status, IReadOnlyList warnings, IReadOnlyList errors, IDictionary serializedAdditionalRawData) + internal DeploymentResourcesJobState(string jobId, DateTimeOffset createdOn, DateTimeOffset lastUpdatedOn, DateTimeOffset? expiresOn, JobStatus status, IReadOnlyList warnings, IReadOnlyList errors, IDictionary serializedAdditionalRawData) { JobId = jobId; - CreatedDateTime = createdDateTime; - LastUpdatedDateTime = lastUpdatedDateTime; - ExpirationDateTime = expirationDateTime; + CreatedOn = createdOn; + LastUpdatedOn = lastUpdatedOn; + ExpiresOn = expiresOn; Status = status; Warnings = warnings; Errors = errors; @@ -87,11 +87,11 @@ internal DeploymentResourcesJobState() /// The job ID. public string JobId { get; } /// The creation date time of the job. - public DateTimeOffset CreatedDateTime { get; } + public DateTimeOffset CreatedOn { get; } /// The last date time the job was updated. - public DateTimeOffset LastUpdatedDateTime { get; } + public DateTimeOffset LastUpdatedOn { get; } /// The expiration date time of the job. - public DateTimeOffset? ExpirationDateTime { get; } + public DateTimeOffset? ExpiresOn { get; } /// The job status. public JobStatus Status { get; } /// The warnings that were encountered while executing the job. diff --git a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/EvaluationJobState.Serialization.cs b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/EvaluationJobState.Serialization.cs index 724796e50c911..7660705cf2753 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/EvaluationJobState.Serialization.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/EvaluationJobState.Serialization.cs @@ -39,14 +39,14 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("jobId"u8); writer.WriteStringValue(JobId); } - writer.WritePropertyName("createdDateTime"u8); - writer.WriteStringValue(CreatedDateTime, "O"); - writer.WritePropertyName("lastUpdatedDateTime"u8); - writer.WriteStringValue(LastUpdatedDateTime, "O"); - if (Optional.IsDefined(ExpirationDateTime)) + writer.WritePropertyName("createdOn"u8); + writer.WriteStringValue(CreatedOn, "O"); + writer.WritePropertyName("lastUpdatedOn"u8); + writer.WriteStringValue(LastUpdatedOn, "O"); + if (Optional.IsDefined(ExpiresOn)) { - writer.WritePropertyName("expirationDateTime"u8); - writer.WriteStringValue(ExpirationDateTime.Value, "O"); + writer.WritePropertyName("expiresOn"u8); + writer.WriteStringValue(ExpiresOn.Value, "O"); } writer.WritePropertyName("status"u8); writer.WriteStringValue(Status.ToString()); @@ -110,9 +110,9 @@ internal static EvaluationJobState DeserializeEvaluationJobState(JsonElement ele return null; } string jobId = default; - DateTimeOffset createdDateTime = default; - DateTimeOffset lastUpdatedDateTime = default; - DateTimeOffset? expirationDateTime = default; + DateTimeOffset createdOn = default; + DateTimeOffset lastUpdatedOn = default; + DateTimeOffset? expiresOn = default; JobStatus status = default; IReadOnlyList warnings = default; IReadOnlyList errors = default; @@ -126,23 +126,23 @@ internal static EvaluationJobState DeserializeEvaluationJobState(JsonElement ele jobId = property.Value.GetString(); continue; } - if (property.NameEquals("createdDateTime"u8)) + if (property.NameEquals("createdOn"u8)) { - createdDateTime = property.Value.GetDateTimeOffset("O"); + createdOn = property.Value.GetDateTimeOffset("O"); continue; } - if (property.NameEquals("lastUpdatedDateTime"u8)) + if (property.NameEquals("lastUpdatedOn"u8)) { - lastUpdatedDateTime = property.Value.GetDateTimeOffset("O"); + lastUpdatedOn = property.Value.GetDateTimeOffset("O"); continue; } - if (property.NameEquals("expirationDateTime"u8)) + if (property.NameEquals("expiresOn"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } - expirationDateTime = property.Value.GetDateTimeOffset("O"); + expiresOn = property.Value.GetDateTimeOffset("O"); continue; } if (property.NameEquals("status"u8)) @@ -191,9 +191,9 @@ internal static EvaluationJobState DeserializeEvaluationJobState(JsonElement ele serializedAdditionalRawData = rawDataDictionary; return new EvaluationJobState( jobId, - createdDateTime, - lastUpdatedDateTime, - expirationDateTime, + createdOn, + lastUpdatedOn, + expiresOn, status, warnings ?? new ChangeTrackingList(), errors ?? new ChangeTrackingList(), diff --git a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/EvaluationJobState.cs b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/EvaluationJobState.cs index fba4e55b822e8..125053ccdbf4b 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/EvaluationJobState.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/EvaluationJobState.cs @@ -46,17 +46,17 @@ public partial class EvaluationJobState private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - /// The creation date time of the job. - /// The last date time the job was updated. + /// The creation date time of the job. + /// The last date time the job was updated. /// The job status. /// Represents evaluation task detailed result. /// is null. - internal EvaluationJobState(DateTimeOffset createdDateTime, DateTimeOffset lastUpdatedDateTime, JobStatus status, EvaluationJobResult result) + internal EvaluationJobState(DateTimeOffset createdOn, DateTimeOffset lastUpdatedOn, JobStatus status, EvaluationJobResult result) { Argument.AssertNotNull(result, nameof(result)); - CreatedDateTime = createdDateTime; - LastUpdatedDateTime = lastUpdatedDateTime; + CreatedOn = createdOn; + LastUpdatedOn = lastUpdatedOn; Status = status; Warnings = new ChangeTrackingList(); Errors = new ChangeTrackingList(); @@ -65,20 +65,20 @@ internal EvaluationJobState(DateTimeOffset createdDateTime, DateTimeOffset lastU /// Initializes a new instance of . /// The job ID. - /// The creation date time of the job. - /// The last date time the job was updated. - /// The expiration date time of the job. + /// The creation date time of the job. + /// The last date time the job was updated. + /// The expiration date time of the job. /// The job status. /// The warnings that were encountered while executing the job. /// The errors encountered while executing the job. /// Represents evaluation task detailed result. /// Keeps track of any properties unknown to the library. - internal EvaluationJobState(string jobId, DateTimeOffset createdDateTime, DateTimeOffset lastUpdatedDateTime, DateTimeOffset? expirationDateTime, JobStatus status, IReadOnlyList warnings, IReadOnlyList errors, EvaluationJobResult result, IDictionary serializedAdditionalRawData) + internal EvaluationJobState(string jobId, DateTimeOffset createdOn, DateTimeOffset lastUpdatedOn, DateTimeOffset? expiresOn, JobStatus status, IReadOnlyList warnings, IReadOnlyList errors, EvaluationJobResult result, IDictionary serializedAdditionalRawData) { JobId = jobId; - CreatedDateTime = createdDateTime; - LastUpdatedDateTime = lastUpdatedDateTime; - ExpirationDateTime = expirationDateTime; + CreatedOn = createdOn; + LastUpdatedOn = lastUpdatedOn; + ExpiresOn = expiresOn; Status = status; Warnings = warnings; Errors = errors; @@ -94,11 +94,11 @@ internal EvaluationJobState() /// The job ID. public string JobId { get; } /// The creation date time of the job. - public DateTimeOffset CreatedDateTime { get; } + public DateTimeOffset CreatedOn { get; } /// The last date time the job was updated. - public DateTimeOffset LastUpdatedDateTime { get; } + public DateTimeOffset LastUpdatedOn { get; } /// The expiration date time of the job. - public DateTimeOffset? ExpirationDateTime { get; } + public DateTimeOffset? ExpiresOn { get; } /// The job status. public JobStatus Status { get; } /// The warnings that were encountered while executing the job. diff --git a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/ExportProjectJobState.Serialization.cs b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/ExportProjectJobState.Serialization.cs index 954191e78e649..bdbd709b6c9bc 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/ExportProjectJobState.Serialization.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/ExportProjectJobState.Serialization.cs @@ -39,14 +39,14 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("jobId"u8); writer.WriteStringValue(JobId); } - writer.WritePropertyName("createdDateTime"u8); - writer.WriteStringValue(CreatedDateTime, "O"); - writer.WritePropertyName("lastUpdatedDateTime"u8); - writer.WriteStringValue(LastUpdatedDateTime, "O"); - if (Optional.IsDefined(ExpirationDateTime)) + writer.WritePropertyName("createdOn"u8); + writer.WriteStringValue(CreatedOn, "O"); + writer.WritePropertyName("lastUpdatedOn"u8); + writer.WriteStringValue(LastUpdatedOn, "O"); + if (Optional.IsDefined(ExpiresOn)) { - writer.WritePropertyName("expirationDateTime"u8); - writer.WriteStringValue(ExpirationDateTime.Value, "O"); + writer.WritePropertyName("expiresOn"u8); + writer.WriteStringValue(ExpiresOn.Value, "O"); } writer.WritePropertyName("status"u8); writer.WriteStringValue(Status.ToString()); @@ -113,9 +113,9 @@ internal static ExportProjectJobState DeserializeExportProjectJobState(JsonEleme return null; } string jobId = default; - DateTimeOffset createdDateTime = default; - DateTimeOffset lastUpdatedDateTime = default; - DateTimeOffset? expirationDateTime = default; + DateTimeOffset createdOn = default; + DateTimeOffset lastUpdatedOn = default; + DateTimeOffset? expiresOn = default; JobStatus status = default; IReadOnlyList warnings = default; IReadOnlyList errors = default; @@ -129,23 +129,23 @@ internal static ExportProjectJobState DeserializeExportProjectJobState(JsonEleme jobId = property.Value.GetString(); continue; } - if (property.NameEquals("createdDateTime"u8)) + if (property.NameEquals("createdOn"u8)) { - createdDateTime = property.Value.GetDateTimeOffset("O"); + createdOn = property.Value.GetDateTimeOffset("O"); continue; } - if (property.NameEquals("lastUpdatedDateTime"u8)) + if (property.NameEquals("lastUpdatedOn"u8)) { - lastUpdatedDateTime = property.Value.GetDateTimeOffset("O"); + lastUpdatedOn = property.Value.GetDateTimeOffset("O"); continue; } - if (property.NameEquals("expirationDateTime"u8)) + if (property.NameEquals("expiresOn"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } - expirationDateTime = property.Value.GetDateTimeOffset("O"); + expiresOn = property.Value.GetDateTimeOffset("O"); continue; } if (property.NameEquals("status"u8)) @@ -194,9 +194,9 @@ internal static ExportProjectJobState DeserializeExportProjectJobState(JsonEleme serializedAdditionalRawData = rawDataDictionary; return new ExportProjectJobState( jobId, - createdDateTime, - lastUpdatedDateTime, - expirationDateTime, + createdOn, + lastUpdatedOn, + expiresOn, status, warnings ?? new ChangeTrackingList(), errors ?? new ChangeTrackingList(), diff --git a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/ExportProjectJobState.cs b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/ExportProjectJobState.cs index 3ba56b46d8d98..f8e6a83a77cb1 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/ExportProjectJobState.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/ExportProjectJobState.cs @@ -46,13 +46,13 @@ public partial class ExportProjectJobState private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - /// The creation date time of the job. - /// The last date time the job was updated. + /// The creation date time of the job. + /// The last date time the job was updated. /// The job status. - internal ExportProjectJobState(DateTimeOffset createdDateTime, DateTimeOffset lastUpdatedDateTime, JobStatus status) + internal ExportProjectJobState(DateTimeOffset createdOn, DateTimeOffset lastUpdatedOn, JobStatus status) { - CreatedDateTime = createdDateTime; - LastUpdatedDateTime = lastUpdatedDateTime; + CreatedOn = createdOn; + LastUpdatedOn = lastUpdatedOn; Status = status; Warnings = new ChangeTrackingList(); Errors = new ChangeTrackingList(); @@ -60,20 +60,20 @@ internal ExportProjectJobState(DateTimeOffset createdDateTime, DateTimeOffset la /// Initializes a new instance of . /// The job ID. - /// The creation date time of the job. - /// The last date time the job was updated. - /// The expiration date time of the job. + /// The creation date time of the job. + /// The last date time the job was updated. + /// The expiration date time of the job. /// The job status. /// The warnings that were encountered while executing the job. /// The errors encountered while executing the job. /// The URL to use in order to download the exported project. /// Keeps track of any properties unknown to the library. - internal ExportProjectJobState(string jobId, DateTimeOffset createdDateTime, DateTimeOffset lastUpdatedDateTime, DateTimeOffset? expirationDateTime, JobStatus status, IReadOnlyList warnings, IReadOnlyList errors, string resultUrl, IDictionary serializedAdditionalRawData) + internal ExportProjectJobState(string jobId, DateTimeOffset createdOn, DateTimeOffset lastUpdatedOn, DateTimeOffset? expiresOn, JobStatus status, IReadOnlyList warnings, IReadOnlyList errors, string resultUrl, IDictionary serializedAdditionalRawData) { JobId = jobId; - CreatedDateTime = createdDateTime; - LastUpdatedDateTime = lastUpdatedDateTime; - ExpirationDateTime = expirationDateTime; + CreatedOn = createdOn; + LastUpdatedOn = lastUpdatedOn; + ExpiresOn = expiresOn; Status = status; Warnings = warnings; Errors = errors; @@ -89,11 +89,11 @@ internal ExportProjectJobState() /// The job ID. public string JobId { get; } /// The creation date time of the job. - public DateTimeOffset CreatedDateTime { get; } + public DateTimeOffset CreatedOn { get; } /// The last date time the job was updated. - public DateTimeOffset LastUpdatedDateTime { get; } + public DateTimeOffset LastUpdatedOn { get; } /// The expiration date time of the job. - public DateTimeOffset? ExpirationDateTime { get; } + public DateTimeOffset? ExpiresOn { get; } /// The job status. public JobStatus Status { get; } /// The warnings that were encountered while executing the job. diff --git a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/ExportedModelJobState.Serialization.cs b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/ExportedModelJobState.Serialization.cs index 2d5ee327c04cc..3b8e0e4eb5cfe 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/ExportedModelJobState.Serialization.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/ExportedModelJobState.Serialization.cs @@ -39,14 +39,14 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("jobId"u8); writer.WriteStringValue(JobId); } - writer.WritePropertyName("createdDateTime"u8); - writer.WriteStringValue(CreatedDateTime, "O"); - writer.WritePropertyName("lastUpdatedDateTime"u8); - writer.WriteStringValue(LastUpdatedDateTime, "O"); - if (Optional.IsDefined(ExpirationDateTime)) + writer.WritePropertyName("createdOn"u8); + writer.WriteStringValue(CreatedOn, "O"); + writer.WritePropertyName("lastUpdatedOn"u8); + writer.WriteStringValue(LastUpdatedOn, "O"); + if (Optional.IsDefined(ExpiresOn)) { - writer.WritePropertyName("expirationDateTime"u8); - writer.WriteStringValue(ExpirationDateTime.Value, "O"); + writer.WritePropertyName("expiresOn"u8); + writer.WriteStringValue(ExpiresOn.Value, "O"); } writer.WritePropertyName("status"u8); writer.WriteStringValue(Status.ToString()); @@ -108,9 +108,9 @@ internal static ExportedModelJobState DeserializeExportedModelJobState(JsonEleme return null; } string jobId = default; - DateTimeOffset createdDateTime = default; - DateTimeOffset lastUpdatedDateTime = default; - DateTimeOffset? expirationDateTime = default; + DateTimeOffset createdOn = default; + DateTimeOffset lastUpdatedOn = default; + DateTimeOffset? expiresOn = default; JobStatus status = default; IReadOnlyList warnings = default; IReadOnlyList errors = default; @@ -123,23 +123,23 @@ internal static ExportedModelJobState DeserializeExportedModelJobState(JsonEleme jobId = property.Value.GetString(); continue; } - if (property.NameEquals("createdDateTime"u8)) + if (property.NameEquals("createdOn"u8)) { - createdDateTime = property.Value.GetDateTimeOffset("O"); + createdOn = property.Value.GetDateTimeOffset("O"); continue; } - if (property.NameEquals("lastUpdatedDateTime"u8)) + if (property.NameEquals("lastUpdatedOn"u8)) { - lastUpdatedDateTime = property.Value.GetDateTimeOffset("O"); + lastUpdatedOn = property.Value.GetDateTimeOffset("O"); continue; } - if (property.NameEquals("expirationDateTime"u8)) + if (property.NameEquals("expiresOn"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } - expirationDateTime = property.Value.GetDateTimeOffset("O"); + expiresOn = property.Value.GetDateTimeOffset("O"); continue; } if (property.NameEquals("status"u8)) @@ -183,9 +183,9 @@ internal static ExportedModelJobState DeserializeExportedModelJobState(JsonEleme serializedAdditionalRawData = rawDataDictionary; return new ExportedModelJobState( jobId, - createdDateTime, - lastUpdatedDateTime, - expirationDateTime, + createdOn, + lastUpdatedOn, + expiresOn, status, warnings ?? new ChangeTrackingList(), errors ?? new ChangeTrackingList(), diff --git a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/ExportedModelJobState.cs b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/ExportedModelJobState.cs index 639c21edbf427..773cc7d9575e8 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/ExportedModelJobState.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/ExportedModelJobState.cs @@ -46,13 +46,13 @@ public partial class ExportedModelJobState private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - /// The creation date time of the job. - /// The last date time the job was updated. + /// The creation date time of the job. + /// The last date time the job was updated. /// The job status. - internal ExportedModelJobState(DateTimeOffset createdDateTime, DateTimeOffset lastUpdatedDateTime, JobStatus status) + internal ExportedModelJobState(DateTimeOffset createdOn, DateTimeOffset lastUpdatedOn, JobStatus status) { - CreatedDateTime = createdDateTime; - LastUpdatedDateTime = lastUpdatedDateTime; + CreatedOn = createdOn; + LastUpdatedOn = lastUpdatedOn; Status = status; Warnings = new ChangeTrackingList(); Errors = new ChangeTrackingList(); @@ -60,19 +60,19 @@ internal ExportedModelJobState(DateTimeOffset createdDateTime, DateTimeOffset la /// Initializes a new instance of . /// The job ID. - /// The creation date time of the job. - /// The last date time the job was updated. - /// The expiration date time of the job. + /// The creation date time of the job. + /// The last date time the job was updated. + /// The expiration date time of the job. /// The job status. /// The warnings that were encountered while executing the job. /// The errors encountered while executing the job. /// Keeps track of any properties unknown to the library. - internal ExportedModelJobState(string jobId, DateTimeOffset createdDateTime, DateTimeOffset lastUpdatedDateTime, DateTimeOffset? expirationDateTime, JobStatus status, IReadOnlyList warnings, IReadOnlyList errors, IDictionary serializedAdditionalRawData) + internal ExportedModelJobState(string jobId, DateTimeOffset createdOn, DateTimeOffset lastUpdatedOn, DateTimeOffset? expiresOn, JobStatus status, IReadOnlyList warnings, IReadOnlyList errors, IDictionary serializedAdditionalRawData) { JobId = jobId; - CreatedDateTime = createdDateTime; - LastUpdatedDateTime = lastUpdatedDateTime; - ExpirationDateTime = expirationDateTime; + CreatedOn = createdOn; + LastUpdatedOn = lastUpdatedOn; + ExpiresOn = expiresOn; Status = status; Warnings = warnings; Errors = errors; @@ -87,11 +87,11 @@ internal ExportedModelJobState() /// The job ID. public string JobId { get; } /// The creation date time of the job. - public DateTimeOffset CreatedDateTime { get; } + public DateTimeOffset CreatedOn { get; } /// The last date time the job was updated. - public DateTimeOffset LastUpdatedDateTime { get; } + public DateTimeOffset LastUpdatedOn { get; } /// The expiration date time of the job. - public DateTimeOffset? ExpirationDateTime { get; } + public DateTimeOffset? ExpiresOn { get; } /// The job status. public JobStatus Status { get; } /// The warnings that were encountered while executing the job. diff --git a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/ExportedTrainedModel.Serialization.cs b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/ExportedTrainedModel.Serialization.cs index bde241606e976..217a1c5d10dd0 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/ExportedTrainedModel.Serialization.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/ExportedTrainedModel.Serialization.cs @@ -41,10 +41,10 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } writer.WritePropertyName("modelId"u8); writer.WriteStringValue(ModelId); - writer.WritePropertyName("lastTrainedDateTime"u8); - writer.WriteStringValue(LastTrainedDateTime, "O"); - writer.WritePropertyName("lastExportedModelDateTime"u8); - writer.WriteStringValue(LastExportedModelDateTime, "O"); + writer.WritePropertyName("lastTrainedOn"u8); + writer.WriteStringValue(LastTrainedOn, "O"); + writer.WritePropertyName("lastExportedModelOn"u8); + writer.WriteStringValue(LastExportedModelOn, "O"); writer.WritePropertyName("modelExpirationDate"u8); writer.WriteStringValue(ModelExpirationDate, "D"); writer.WritePropertyName("modelTrainingConfigVersion"u8); @@ -88,8 +88,8 @@ internal static ExportedTrainedModel DeserializeExportedTrainedModel(JsonElement } string exportedModelName = default; string modelId = default; - DateTimeOffset lastTrainedDateTime = default; - DateTimeOffset lastExportedModelDateTime = default; + DateTimeOffset lastTrainedOn = default; + DateTimeOffset lastExportedModelOn = default; DateTimeOffset modelExpirationDate = default; string modelTrainingConfigVersion = default; IDictionary serializedAdditionalRawData = default; @@ -106,14 +106,14 @@ internal static ExportedTrainedModel DeserializeExportedTrainedModel(JsonElement modelId = property.Value.GetString(); continue; } - if (property.NameEquals("lastTrainedDateTime"u8)) + if (property.NameEquals("lastTrainedOn"u8)) { - lastTrainedDateTime = property.Value.GetDateTimeOffset("O"); + lastTrainedOn = property.Value.GetDateTimeOffset("O"); continue; } - if (property.NameEquals("lastExportedModelDateTime"u8)) + if (property.NameEquals("lastExportedModelOn"u8)) { - lastExportedModelDateTime = property.Value.GetDateTimeOffset("O"); + lastExportedModelOn = property.Value.GetDateTimeOffset("O"); continue; } if (property.NameEquals("modelExpirationDate"u8)) @@ -135,8 +135,8 @@ internal static ExportedTrainedModel DeserializeExportedTrainedModel(JsonElement return new ExportedTrainedModel( exportedModelName, modelId, - lastTrainedDateTime, - lastExportedModelDateTime, + lastTrainedOn, + lastExportedModelOn, modelExpirationDate, modelTrainingConfigVersion, serializedAdditionalRawData); diff --git a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/ExportedTrainedModel.cs b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/ExportedTrainedModel.cs index 6f4b7d525f734..ea7ea01e5de55 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/ExportedTrainedModel.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/ExportedTrainedModel.cs @@ -47,19 +47,19 @@ public partial class ExportedTrainedModel /// Initializes a new instance of . /// The model ID. - /// The last trained date time of the model. - /// The last exported date time of the model. + /// The last trained date time of the model. + /// The last exported date time of the model. /// The model expiration date. /// The model training config version. /// or is null. - internal ExportedTrainedModel(string modelId, DateTimeOffset lastTrainedDateTime, DateTimeOffset lastExportedModelDateTime, DateTimeOffset modelExpirationDate, string modelTrainingConfigVersion) + internal ExportedTrainedModel(string modelId, DateTimeOffset lastTrainedOn, DateTimeOffset lastExportedModelOn, DateTimeOffset modelExpirationDate, string modelTrainingConfigVersion) { Argument.AssertNotNull(modelId, nameof(modelId)); Argument.AssertNotNull(modelTrainingConfigVersion, nameof(modelTrainingConfigVersion)); ModelId = modelId; - LastTrainedDateTime = lastTrainedDateTime; - LastExportedModelDateTime = lastExportedModelDateTime; + LastTrainedOn = lastTrainedOn; + LastExportedModelOn = lastExportedModelOn; ModelExpirationDate = modelExpirationDate; ModelTrainingConfigVersion = modelTrainingConfigVersion; } @@ -67,17 +67,17 @@ internal ExportedTrainedModel(string modelId, DateTimeOffset lastTrainedDateTime /// Initializes a new instance of . /// The exported model name. /// The model ID. - /// The last trained date time of the model. - /// The last exported date time of the model. + /// The last trained date time of the model. + /// The last exported date time of the model. /// The model expiration date. /// The model training config version. /// Keeps track of any properties unknown to the library. - internal ExportedTrainedModel(string exportedModelName, string modelId, DateTimeOffset lastTrainedDateTime, DateTimeOffset lastExportedModelDateTime, DateTimeOffset modelExpirationDate, string modelTrainingConfigVersion, IDictionary serializedAdditionalRawData) + internal ExportedTrainedModel(string exportedModelName, string modelId, DateTimeOffset lastTrainedOn, DateTimeOffset lastExportedModelOn, DateTimeOffset modelExpirationDate, string modelTrainingConfigVersion, IDictionary serializedAdditionalRawData) { ExportedModelName = exportedModelName; ModelId = modelId; - LastTrainedDateTime = lastTrainedDateTime; - LastExportedModelDateTime = lastExportedModelDateTime; + LastTrainedOn = lastTrainedOn; + LastExportedModelOn = lastExportedModelOn; ModelExpirationDate = modelExpirationDate; ModelTrainingConfigVersion = modelTrainingConfigVersion; _serializedAdditionalRawData = serializedAdditionalRawData; @@ -93,9 +93,9 @@ internal ExportedTrainedModel() /// The model ID. public string ModelId { get; } /// The last trained date time of the model. - public DateTimeOffset LastTrainedDateTime { get; } + public DateTimeOffset LastTrainedOn { get; } /// The last exported date time of the model. - public DateTimeOffset LastExportedModelDateTime { get; } + public DateTimeOffset LastExportedModelOn { get; } /// The model expiration date. public DateTimeOffset ModelExpirationDate { get; } /// The model training config version. diff --git a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/ImportProjectJobState.Serialization.cs b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/ImportProjectJobState.Serialization.cs index 3374f0e5bb6ce..a140ee277e433 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/ImportProjectJobState.Serialization.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/ImportProjectJobState.Serialization.cs @@ -39,14 +39,14 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("jobId"u8); writer.WriteStringValue(JobId); } - writer.WritePropertyName("createdDateTime"u8); - writer.WriteStringValue(CreatedDateTime, "O"); - writer.WritePropertyName("lastUpdatedDateTime"u8); - writer.WriteStringValue(LastUpdatedDateTime, "O"); - if (Optional.IsDefined(ExpirationDateTime)) + writer.WritePropertyName("createdOn"u8); + writer.WriteStringValue(CreatedOn, "O"); + writer.WritePropertyName("lastUpdatedOn"u8); + writer.WriteStringValue(LastUpdatedOn, "O"); + if (Optional.IsDefined(ExpiresOn)) { - writer.WritePropertyName("expirationDateTime"u8); - writer.WriteStringValue(ExpirationDateTime.Value, "O"); + writer.WritePropertyName("expiresOn"u8); + writer.WriteStringValue(ExpiresOn.Value, "O"); } writer.WritePropertyName("status"u8); writer.WriteStringValue(Status.ToString()); @@ -108,9 +108,9 @@ internal static ImportProjectJobState DeserializeImportProjectJobState(JsonEleme return null; } string jobId = default; - DateTimeOffset createdDateTime = default; - DateTimeOffset lastUpdatedDateTime = default; - DateTimeOffset? expirationDateTime = default; + DateTimeOffset createdOn = default; + DateTimeOffset lastUpdatedOn = default; + DateTimeOffset? expiresOn = default; JobStatus status = default; IReadOnlyList warnings = default; IReadOnlyList errors = default; @@ -123,23 +123,23 @@ internal static ImportProjectJobState DeserializeImportProjectJobState(JsonEleme jobId = property.Value.GetString(); continue; } - if (property.NameEquals("createdDateTime"u8)) + if (property.NameEquals("createdOn"u8)) { - createdDateTime = property.Value.GetDateTimeOffset("O"); + createdOn = property.Value.GetDateTimeOffset("O"); continue; } - if (property.NameEquals("lastUpdatedDateTime"u8)) + if (property.NameEquals("lastUpdatedOn"u8)) { - lastUpdatedDateTime = property.Value.GetDateTimeOffset("O"); + lastUpdatedOn = property.Value.GetDateTimeOffset("O"); continue; } - if (property.NameEquals("expirationDateTime"u8)) + if (property.NameEquals("expiresOn"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } - expirationDateTime = property.Value.GetDateTimeOffset("O"); + expiresOn = property.Value.GetDateTimeOffset("O"); continue; } if (property.NameEquals("status"u8)) @@ -183,9 +183,9 @@ internal static ImportProjectJobState DeserializeImportProjectJobState(JsonEleme serializedAdditionalRawData = rawDataDictionary; return new ImportProjectJobState( jobId, - createdDateTime, - lastUpdatedDateTime, - expirationDateTime, + createdOn, + lastUpdatedOn, + expiresOn, status, warnings ?? new ChangeTrackingList(), errors ?? new ChangeTrackingList(), diff --git a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/ImportProjectJobState.cs b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/ImportProjectJobState.cs index 99a71bdd28537..254990a3a1598 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/ImportProjectJobState.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/ImportProjectJobState.cs @@ -46,13 +46,13 @@ public partial class ImportProjectJobState private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - /// The creation date time of the job. - /// The last date time the job was updated. + /// The creation date time of the job. + /// The last date time the job was updated. /// The job status. - internal ImportProjectJobState(DateTimeOffset createdDateTime, DateTimeOffset lastUpdatedDateTime, JobStatus status) + internal ImportProjectJobState(DateTimeOffset createdOn, DateTimeOffset lastUpdatedOn, JobStatus status) { - CreatedDateTime = createdDateTime; - LastUpdatedDateTime = lastUpdatedDateTime; + CreatedOn = createdOn; + LastUpdatedOn = lastUpdatedOn; Status = status; Warnings = new ChangeTrackingList(); Errors = new ChangeTrackingList(); @@ -60,19 +60,19 @@ internal ImportProjectJobState(DateTimeOffset createdDateTime, DateTimeOffset la /// Initializes a new instance of . /// The job ID. - /// The creation date time of the job. - /// The last date time the job was updated. - /// The expiration date time of the job. + /// The creation date time of the job. + /// The last date time the job was updated. + /// The expiration date time of the job. /// The job status. /// The warnings that were encountered while executing the job. /// The errors encountered while executing the job. /// Keeps track of any properties unknown to the library. - internal ImportProjectJobState(string jobId, DateTimeOffset createdDateTime, DateTimeOffset lastUpdatedDateTime, DateTimeOffset? expirationDateTime, JobStatus status, IReadOnlyList warnings, IReadOnlyList errors, IDictionary serializedAdditionalRawData) + internal ImportProjectJobState(string jobId, DateTimeOffset createdOn, DateTimeOffset lastUpdatedOn, DateTimeOffset? expiresOn, JobStatus status, IReadOnlyList warnings, IReadOnlyList errors, IDictionary serializedAdditionalRawData) { JobId = jobId; - CreatedDateTime = createdDateTime; - LastUpdatedDateTime = lastUpdatedDateTime; - ExpirationDateTime = expirationDateTime; + CreatedOn = createdOn; + LastUpdatedOn = lastUpdatedOn; + ExpiresOn = expiresOn; Status = status; Warnings = warnings; Errors = errors; @@ -87,11 +87,11 @@ internal ImportProjectJobState() /// The job ID. public string JobId { get; } /// The creation date time of the job. - public DateTimeOffset CreatedDateTime { get; } + public DateTimeOffset CreatedOn { get; } /// The last date time the job was updated. - public DateTimeOffset LastUpdatedDateTime { get; } + public DateTimeOffset LastUpdatedOn { get; } /// The expiration date time of the job. - public DateTimeOffset? ExpirationDateTime { get; } + public DateTimeOffset? ExpiresOn { get; } /// The job status. public JobStatus Status { get; } /// The warnings that were encountered while executing the job. diff --git a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/LoadSnapshotJobState.Serialization.cs b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/LoadSnapshotJobState.Serialization.cs index dc0a7a52e26b3..c2015974e93f6 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/LoadSnapshotJobState.Serialization.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/LoadSnapshotJobState.Serialization.cs @@ -39,14 +39,14 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("jobId"u8); writer.WriteStringValue(JobId); } - writer.WritePropertyName("createdDateTime"u8); - writer.WriteStringValue(CreatedDateTime, "O"); - writer.WritePropertyName("lastUpdatedDateTime"u8); - writer.WriteStringValue(LastUpdatedDateTime, "O"); - if (Optional.IsDefined(ExpirationDateTime)) + writer.WritePropertyName("createdOn"u8); + writer.WriteStringValue(CreatedOn, "O"); + writer.WritePropertyName("lastUpdatedOn"u8); + writer.WriteStringValue(LastUpdatedOn, "O"); + if (Optional.IsDefined(ExpiresOn)) { - writer.WritePropertyName("expirationDateTime"u8); - writer.WriteStringValue(ExpirationDateTime.Value, "O"); + writer.WritePropertyName("expiresOn"u8); + writer.WriteStringValue(ExpiresOn.Value, "O"); } writer.WritePropertyName("status"u8); writer.WriteStringValue(Status.ToString()); @@ -108,9 +108,9 @@ internal static LoadSnapshotJobState DeserializeLoadSnapshotJobState(JsonElement return null; } string jobId = default; - DateTimeOffset createdDateTime = default; - DateTimeOffset lastUpdatedDateTime = default; - DateTimeOffset? expirationDateTime = default; + DateTimeOffset createdOn = default; + DateTimeOffset lastUpdatedOn = default; + DateTimeOffset? expiresOn = default; JobStatus status = default; IReadOnlyList warnings = default; IReadOnlyList errors = default; @@ -123,23 +123,23 @@ internal static LoadSnapshotJobState DeserializeLoadSnapshotJobState(JsonElement jobId = property.Value.GetString(); continue; } - if (property.NameEquals("createdDateTime"u8)) + if (property.NameEquals("createdOn"u8)) { - createdDateTime = property.Value.GetDateTimeOffset("O"); + createdOn = property.Value.GetDateTimeOffset("O"); continue; } - if (property.NameEquals("lastUpdatedDateTime"u8)) + if (property.NameEquals("lastUpdatedOn"u8)) { - lastUpdatedDateTime = property.Value.GetDateTimeOffset("O"); + lastUpdatedOn = property.Value.GetDateTimeOffset("O"); continue; } - if (property.NameEquals("expirationDateTime"u8)) + if (property.NameEquals("expiresOn"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } - expirationDateTime = property.Value.GetDateTimeOffset("O"); + expiresOn = property.Value.GetDateTimeOffset("O"); continue; } if (property.NameEquals("status"u8)) @@ -183,9 +183,9 @@ internal static LoadSnapshotJobState DeserializeLoadSnapshotJobState(JsonElement serializedAdditionalRawData = rawDataDictionary; return new LoadSnapshotJobState( jobId, - createdDateTime, - lastUpdatedDateTime, - expirationDateTime, + createdOn, + lastUpdatedOn, + expiresOn, status, warnings ?? new ChangeTrackingList(), errors ?? new ChangeTrackingList(), diff --git a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/LoadSnapshotJobState.cs b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/LoadSnapshotJobState.cs index d36674e9524de..4acd48104f587 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/LoadSnapshotJobState.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/LoadSnapshotJobState.cs @@ -46,13 +46,13 @@ public partial class LoadSnapshotJobState private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - /// The creation date time of the job. - /// The last date time the job was updated. + /// The creation date time of the job. + /// The last date time the job was updated. /// The job status. - internal LoadSnapshotJobState(DateTimeOffset createdDateTime, DateTimeOffset lastUpdatedDateTime, JobStatus status) + internal LoadSnapshotJobState(DateTimeOffset createdOn, DateTimeOffset lastUpdatedOn, JobStatus status) { - CreatedDateTime = createdDateTime; - LastUpdatedDateTime = lastUpdatedDateTime; + CreatedOn = createdOn; + LastUpdatedOn = lastUpdatedOn; Status = status; Warnings = new ChangeTrackingList(); Errors = new ChangeTrackingList(); @@ -60,19 +60,19 @@ internal LoadSnapshotJobState(DateTimeOffset createdDateTime, DateTimeOffset las /// Initializes a new instance of . /// The job ID. - /// The creation date time of the job. - /// The last date time the job was updated. - /// The expiration date time of the job. + /// The creation date time of the job. + /// The last date time the job was updated. + /// The expiration date time of the job. /// The job status. /// The warnings that were encountered while executing the job. /// The errors encountered while executing the job. /// Keeps track of any properties unknown to the library. - internal LoadSnapshotJobState(string jobId, DateTimeOffset createdDateTime, DateTimeOffset lastUpdatedDateTime, DateTimeOffset? expirationDateTime, JobStatus status, IReadOnlyList warnings, IReadOnlyList errors, IDictionary serializedAdditionalRawData) + internal LoadSnapshotJobState(string jobId, DateTimeOffset createdOn, DateTimeOffset lastUpdatedOn, DateTimeOffset? expiresOn, JobStatus status, IReadOnlyList warnings, IReadOnlyList errors, IDictionary serializedAdditionalRawData) { JobId = jobId; - CreatedDateTime = createdDateTime; - LastUpdatedDateTime = lastUpdatedDateTime; - ExpirationDateTime = expirationDateTime; + CreatedOn = createdOn; + LastUpdatedOn = lastUpdatedOn; + ExpiresOn = expiresOn; Status = status; Warnings = warnings; Errors = errors; @@ -87,11 +87,11 @@ internal LoadSnapshotJobState() /// The job ID. public string JobId { get; } /// The creation date time of the job. - public DateTimeOffset CreatedDateTime { get; } + public DateTimeOffset CreatedOn { get; } /// The last date time the job was updated. - public DateTimeOffset LastUpdatedDateTime { get; } + public DateTimeOffset LastUpdatedOn { get; } /// The expiration date time of the job. - public DateTimeOffset? ExpirationDateTime { get; } + public DateTimeOffset? ExpiresOn { get; } /// The job status. public JobStatus Status { get; } /// The warnings that were encountered while executing the job. diff --git a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/ProjectDeletionJobState.Serialization.cs b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/ProjectDeletionJobState.Serialization.cs index 0126c905da8f1..f2883919bf814 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/ProjectDeletionJobState.Serialization.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/ProjectDeletionJobState.Serialization.cs @@ -39,14 +39,14 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("jobId"u8); writer.WriteStringValue(JobId); } - writer.WritePropertyName("createdDateTime"u8); - writer.WriteStringValue(CreatedDateTime, "O"); - writer.WritePropertyName("lastUpdatedDateTime"u8); - writer.WriteStringValue(LastUpdatedDateTime, "O"); - if (Optional.IsDefined(ExpirationDateTime)) + writer.WritePropertyName("createdOn"u8); + writer.WriteStringValue(CreatedOn, "O"); + writer.WritePropertyName("lastUpdatedOn"u8); + writer.WriteStringValue(LastUpdatedOn, "O"); + if (Optional.IsDefined(ExpiresOn)) { - writer.WritePropertyName("expirationDateTime"u8); - writer.WriteStringValue(ExpirationDateTime.Value, "O"); + writer.WritePropertyName("expiresOn"u8); + writer.WriteStringValue(ExpiresOn.Value, "O"); } writer.WritePropertyName("status"u8); writer.WriteStringValue(Status.ToString()); @@ -108,9 +108,9 @@ internal static ProjectDeletionJobState DeserializeProjectDeletionJobState(JsonE return null; } string jobId = default; - DateTimeOffset createdDateTime = default; - DateTimeOffset lastUpdatedDateTime = default; - DateTimeOffset? expirationDateTime = default; + DateTimeOffset createdOn = default; + DateTimeOffset lastUpdatedOn = default; + DateTimeOffset? expiresOn = default; JobStatus status = default; IReadOnlyList warnings = default; IReadOnlyList errors = default; @@ -123,23 +123,23 @@ internal static ProjectDeletionJobState DeserializeProjectDeletionJobState(JsonE jobId = property.Value.GetString(); continue; } - if (property.NameEquals("createdDateTime"u8)) + if (property.NameEquals("createdOn"u8)) { - createdDateTime = property.Value.GetDateTimeOffset("O"); + createdOn = property.Value.GetDateTimeOffset("O"); continue; } - if (property.NameEquals("lastUpdatedDateTime"u8)) + if (property.NameEquals("lastUpdatedOn"u8)) { - lastUpdatedDateTime = property.Value.GetDateTimeOffset("O"); + lastUpdatedOn = property.Value.GetDateTimeOffset("O"); continue; } - if (property.NameEquals("expirationDateTime"u8)) + if (property.NameEquals("expiresOn"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } - expirationDateTime = property.Value.GetDateTimeOffset("O"); + expiresOn = property.Value.GetDateTimeOffset("O"); continue; } if (property.NameEquals("status"u8)) @@ -183,9 +183,9 @@ internal static ProjectDeletionJobState DeserializeProjectDeletionJobState(JsonE serializedAdditionalRawData = rawDataDictionary; return new ProjectDeletionJobState( jobId, - createdDateTime, - lastUpdatedDateTime, - expirationDateTime, + createdOn, + lastUpdatedOn, + expiresOn, status, warnings ?? new ChangeTrackingList(), errors ?? new ChangeTrackingList(), diff --git a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/ProjectDeletionJobState.cs b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/ProjectDeletionJobState.cs index 6a51e6c587e7e..8332d3d611e43 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/ProjectDeletionJobState.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/ProjectDeletionJobState.cs @@ -46,13 +46,13 @@ public partial class ProjectDeletionJobState private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - /// The creation date time of the job. - /// The last date time the job was updated. + /// The creation date time of the job. + /// The last date time the job was updated. /// The job status. - internal ProjectDeletionJobState(DateTimeOffset createdDateTime, DateTimeOffset lastUpdatedDateTime, JobStatus status) + internal ProjectDeletionJobState(DateTimeOffset createdOn, DateTimeOffset lastUpdatedOn, JobStatus status) { - CreatedDateTime = createdDateTime; - LastUpdatedDateTime = lastUpdatedDateTime; + CreatedOn = createdOn; + LastUpdatedOn = lastUpdatedOn; Status = status; Warnings = new ChangeTrackingList(); Errors = new ChangeTrackingList(); @@ -60,19 +60,19 @@ internal ProjectDeletionJobState(DateTimeOffset createdDateTime, DateTimeOffset /// Initializes a new instance of . /// The job ID. - /// The creation date time of the job. - /// The last date time the job was updated. - /// The expiration date time of the job. + /// The creation date time of the job. + /// The last date time the job was updated. + /// The expiration date time of the job. /// The job status. /// The warnings that were encountered while executing the job. /// The errors encountered while executing the job. /// Keeps track of any properties unknown to the library. - internal ProjectDeletionJobState(string jobId, DateTimeOffset createdDateTime, DateTimeOffset lastUpdatedDateTime, DateTimeOffset? expirationDateTime, JobStatus status, IReadOnlyList warnings, IReadOnlyList errors, IDictionary serializedAdditionalRawData) + internal ProjectDeletionJobState(string jobId, DateTimeOffset createdOn, DateTimeOffset lastUpdatedOn, DateTimeOffset? expiresOn, JobStatus status, IReadOnlyList warnings, IReadOnlyList errors, IDictionary serializedAdditionalRawData) { JobId = jobId; - CreatedDateTime = createdDateTime; - LastUpdatedDateTime = lastUpdatedDateTime; - ExpirationDateTime = expirationDateTime; + CreatedOn = createdOn; + LastUpdatedOn = lastUpdatedOn; + ExpiresOn = expiresOn; Status = status; Warnings = warnings; Errors = errors; @@ -87,11 +87,11 @@ internal ProjectDeletionJobState() /// The job ID. public string JobId { get; } /// The creation date time of the job. - public DateTimeOffset CreatedDateTime { get; } + public DateTimeOffset CreatedOn { get; } /// The last date time the job was updated. - public DateTimeOffset LastUpdatedDateTime { get; } + public DateTimeOffset LastUpdatedOn { get; } /// The expiration date time of the job. - public DateTimeOffset? ExpirationDateTime { get; } + public DateTimeOffset? ExpiresOn { get; } /// The job status. public JobStatus Status { get; } /// The warnings that were encountered while executing the job. diff --git a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/ProjectDeployment.Serialization.cs b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/ProjectDeployment.Serialization.cs index 2cd30a9802876..85445ffa6d83a 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/ProjectDeployment.Serialization.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/ProjectDeployment.Serialization.cs @@ -41,10 +41,10 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } writer.WritePropertyName("modelId"u8); writer.WriteStringValue(ModelId); - writer.WritePropertyName("lastTrainedDateTime"u8); - writer.WriteStringValue(LastTrainedDateTime, "O"); - writer.WritePropertyName("lastDeployedDateTime"u8); - writer.WriteStringValue(LastDeployedDateTime, "O"); + writer.WritePropertyName("lastTrainedOn"u8); + writer.WriteStringValue(LastTrainedOn, "O"); + writer.WritePropertyName("lastDeployedOn"u8); + writer.WriteStringValue(LastDeployedOn, "O"); writer.WritePropertyName("deploymentExpirationDate"u8); writer.WriteStringValue(DeploymentExpirationDate, "D"); writer.WritePropertyName("modelTrainingConfigVersion"u8); @@ -95,8 +95,8 @@ internal static ProjectDeployment DeserializeProjectDeployment(JsonElement eleme } string deploymentName = default; string modelId = default; - DateTimeOffset lastTrainedDateTime = default; - DateTimeOffset lastDeployedDateTime = default; + DateTimeOffset lastTrainedOn = default; + DateTimeOffset lastDeployedOn = default; DateTimeOffset deploymentExpirationDate = default; string modelTrainingConfigVersion = default; IReadOnlyList assignedResources = default; @@ -114,14 +114,14 @@ internal static ProjectDeployment DeserializeProjectDeployment(JsonElement eleme modelId = property.Value.GetString(); continue; } - if (property.NameEquals("lastTrainedDateTime"u8)) + if (property.NameEquals("lastTrainedOn"u8)) { - lastTrainedDateTime = property.Value.GetDateTimeOffset("O"); + lastTrainedOn = property.Value.GetDateTimeOffset("O"); continue; } - if (property.NameEquals("lastDeployedDateTime"u8)) + if (property.NameEquals("lastDeployedOn"u8)) { - lastDeployedDateTime = property.Value.GetDateTimeOffset("O"); + lastDeployedOn = property.Value.GetDateTimeOffset("O"); continue; } if (property.NameEquals("deploymentExpirationDate"u8)) @@ -153,8 +153,8 @@ internal static ProjectDeployment DeserializeProjectDeployment(JsonElement eleme return new ProjectDeployment( deploymentName, modelId, - lastTrainedDateTime, - lastDeployedDateTime, + lastTrainedOn, + lastDeployedOn, deploymentExpirationDate, modelTrainingConfigVersion, assignedResources, diff --git a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/ProjectDeployment.cs b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/ProjectDeployment.cs index ef0a3c0feb3ef..fe9ff296b85cf 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/ProjectDeployment.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/ProjectDeployment.cs @@ -48,21 +48,21 @@ public partial class ProjectDeployment /// Initializes a new instance of . /// Represents deployment modelId. - /// Represents deployment last trained time. - /// Represents deployment last deployed time. + /// Represents deployment last trained time. + /// Represents deployment last deployed time. /// Represents deployment expiration date in the runtime. /// Represents model training config version. /// Represents the metadata of the assigned Azure resources. /// , or is null. - internal ProjectDeployment(string modelId, DateTimeOffset lastTrainedDateTime, DateTimeOffset lastDeployedDateTime, DateTimeOffset deploymentExpirationDate, string modelTrainingConfigVersion, IEnumerable assignedResources) + internal ProjectDeployment(string modelId, DateTimeOffset lastTrainedOn, DateTimeOffset lastDeployedOn, DateTimeOffset deploymentExpirationDate, string modelTrainingConfigVersion, IEnumerable assignedResources) { Argument.AssertNotNull(modelId, nameof(modelId)); Argument.AssertNotNull(modelTrainingConfigVersion, nameof(modelTrainingConfigVersion)); Argument.AssertNotNull(assignedResources, nameof(assignedResources)); ModelId = modelId; - LastTrainedDateTime = lastTrainedDateTime; - LastDeployedDateTime = lastDeployedDateTime; + LastTrainedOn = lastTrainedOn; + LastDeployedOn = lastDeployedOn; DeploymentExpirationDate = deploymentExpirationDate; ModelTrainingConfigVersion = modelTrainingConfigVersion; AssignedResources = assignedResources.ToList(); @@ -71,18 +71,18 @@ internal ProjectDeployment(string modelId, DateTimeOffset lastTrainedDateTime, D /// Initializes a new instance of . /// Represents deployment name. /// Represents deployment modelId. - /// Represents deployment last trained time. - /// Represents deployment last deployed time. + /// Represents deployment last trained time. + /// Represents deployment last deployed time. /// Represents deployment expiration date in the runtime. /// Represents model training config version. /// Represents the metadata of the assigned Azure resources. /// Keeps track of any properties unknown to the library. - internal ProjectDeployment(string deploymentName, string modelId, DateTimeOffset lastTrainedDateTime, DateTimeOffset lastDeployedDateTime, DateTimeOffset deploymentExpirationDate, string modelTrainingConfigVersion, IReadOnlyList assignedResources, IDictionary serializedAdditionalRawData) + internal ProjectDeployment(string deploymentName, string modelId, DateTimeOffset lastTrainedOn, DateTimeOffset lastDeployedOn, DateTimeOffset deploymentExpirationDate, string modelTrainingConfigVersion, IReadOnlyList assignedResources, IDictionary serializedAdditionalRawData) { DeploymentName = deploymentName; ModelId = modelId; - LastTrainedDateTime = lastTrainedDateTime; - LastDeployedDateTime = lastDeployedDateTime; + LastTrainedOn = lastTrainedOn; + LastDeployedOn = lastDeployedOn; DeploymentExpirationDate = deploymentExpirationDate; ModelTrainingConfigVersion = modelTrainingConfigVersion; AssignedResources = assignedResources; @@ -99,9 +99,9 @@ internal ProjectDeployment() /// Represents deployment modelId. public string ModelId { get; } /// Represents deployment last trained time. - public DateTimeOffset LastTrainedDateTime { get; } + public DateTimeOffset LastTrainedOn { get; } /// Represents deployment last deployed time. - public DateTimeOffset LastDeployedDateTime { get; } + public DateTimeOffset LastDeployedOn { get; } /// Represents deployment expiration date in the runtime. public DateTimeOffset DeploymentExpirationDate { get; } /// Represents model training config version. diff --git a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/ProjectMetadata.Serialization.cs b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/ProjectMetadata.Serialization.cs index 1702bef36f893..16dffb7dfb86c 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/ProjectMetadata.Serialization.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/ProjectMetadata.Serialization.cs @@ -34,19 +34,19 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(ProjectMetadata)} does not support writing '{format}' format."); } - writer.WritePropertyName("createdDateTime"u8); - writer.WriteStringValue(CreatedDateTime, "O"); - writer.WritePropertyName("lastModifiedDateTime"u8); - writer.WriteStringValue(LastModifiedDateTime, "O"); - if (Optional.IsDefined(LastTrainedDateTime)) + writer.WritePropertyName("createdOn"u8); + writer.WriteStringValue(CreatedOn, "O"); + writer.WritePropertyName("lastModifiedOn"u8); + writer.WriteStringValue(LastModifiedOn, "O"); + if (Optional.IsDefined(LastTrainedOn)) { - writer.WritePropertyName("lastTrainedDateTime"u8); - writer.WriteStringValue(LastTrainedDateTime.Value, "O"); + writer.WritePropertyName("lastTrainedOn"u8); + writer.WriteStringValue(LastTrainedOn.Value, "O"); } - if (Optional.IsDefined(LastDeployedDateTime)) + if (Optional.IsDefined(LastDeployedOn)) { - writer.WritePropertyName("lastDeployedDateTime"u8); - writer.WriteStringValue(LastDeployedDateTime.Value, "O"); + writer.WritePropertyName("lastDeployedOn"u8); + writer.WriteStringValue(LastDeployedOn.Value, "O"); } writer.WritePropertyName("projectKind"u8); writer.WriteStringValue(ProjectKind.ToString()); @@ -111,10 +111,10 @@ internal static ProjectMetadata DeserializeProjectMetadata(JsonElement element, { return null; } - DateTimeOffset createdDateTime = default; - DateTimeOffset lastModifiedDateTime = default; - DateTimeOffset? lastTrainedDateTime = default; - DateTimeOffset? lastDeployedDateTime = default; + DateTimeOffset createdOn = default; + DateTimeOffset lastModifiedOn = default; + DateTimeOffset? lastTrainedOn = default; + DateTimeOffset? lastDeployedOn = default; ProjectKind projectKind = default; ProjectSettings settings = default; string storageInputContainerName = default; @@ -126,32 +126,32 @@ internal static ProjectMetadata DeserializeProjectMetadata(JsonElement element, Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { - if (property.NameEquals("createdDateTime"u8)) + if (property.NameEquals("createdOn"u8)) { - createdDateTime = property.Value.GetDateTimeOffset("O"); + createdOn = property.Value.GetDateTimeOffset("O"); continue; } - if (property.NameEquals("lastModifiedDateTime"u8)) + if (property.NameEquals("lastModifiedOn"u8)) { - lastModifiedDateTime = property.Value.GetDateTimeOffset("O"); + lastModifiedOn = property.Value.GetDateTimeOffset("O"); continue; } - if (property.NameEquals("lastTrainedDateTime"u8)) + if (property.NameEquals("lastTrainedOn"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } - lastTrainedDateTime = property.Value.GetDateTimeOffset("O"); + lastTrainedOn = property.Value.GetDateTimeOffset("O"); continue; } - if (property.NameEquals("lastDeployedDateTime"u8)) + if (property.NameEquals("lastDeployedOn"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } - lastDeployedDateTime = property.Value.GetDateTimeOffset("O"); + lastDeployedOn = property.Value.GetDateTimeOffset("O"); continue; } if (property.NameEquals("projectKind"u8)) @@ -204,10 +204,10 @@ internal static ProjectMetadata DeserializeProjectMetadata(JsonElement element, } serializedAdditionalRawData = rawDataDictionary; return new ProjectMetadata( - createdDateTime, - lastModifiedDateTime, - lastTrainedDateTime, - lastDeployedDateTime, + createdOn, + lastModifiedOn, + lastTrainedOn, + lastDeployedOn, projectKind, settings, storageInputContainerName, diff --git a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/ProjectMetadata.cs b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/ProjectMetadata.cs index c8e18988fe7e0..3a2accf195725 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/ProjectMetadata.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/ProjectMetadata.cs @@ -46,29 +46,29 @@ public partial class ProjectMetadata private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - /// Represents the project creation datetime. - /// Represents the project creation datetime. + /// Represents the project creation datetime. + /// Represents the project creation datetime. /// Represents the project kind. /// The new project name. /// The project language. This is BCP-47 representation of a language. For example, use "en" for English, "en-gb" for English (UK), "es" for Spanish etc. /// or is null. - internal ProjectMetadata(DateTimeOffset createdDateTime, DateTimeOffset lastModifiedDateTime, ProjectKind projectKind, string projectName, string language) + internal ProjectMetadata(DateTimeOffset createdOn, DateTimeOffset lastModifiedOn, ProjectKind projectKind, string projectName, string language) { Argument.AssertNotNull(projectName, nameof(projectName)); Argument.AssertNotNull(language, nameof(language)); - CreatedDateTime = createdDateTime; - LastModifiedDateTime = lastModifiedDateTime; + CreatedOn = createdOn; + LastModifiedOn = lastModifiedOn; ProjectKind = projectKind; ProjectName = projectName; Language = language; } /// Initializes a new instance of . - /// Represents the project creation datetime. - /// Represents the project creation datetime. - /// Represents the project last trained datetime. - /// Represents the project last deployed datetime. + /// Represents the project creation datetime. + /// Represents the project creation datetime. + /// Represents the project last trained datetime. + /// Represents the project last deployed datetime. /// Represents the project kind. /// The project settings. /// The storage container name in case of conversation summarization. @@ -77,12 +77,12 @@ internal ProjectMetadata(DateTimeOffset createdDateTime, DateTimeOffset lastModi /// The project description. /// The project language. This is BCP-47 representation of a language. For example, use "en" for English, "en-gb" for English (UK), "es" for Spanish etc. /// Keeps track of any properties unknown to the library. - internal ProjectMetadata(DateTimeOffset createdDateTime, DateTimeOffset lastModifiedDateTime, DateTimeOffset? lastTrainedDateTime, DateTimeOffset? lastDeployedDateTime, ProjectKind projectKind, ProjectSettings settings, string storageInputContainerName, string projectName, bool? multilingual, string description, string language, IDictionary serializedAdditionalRawData) + internal ProjectMetadata(DateTimeOffset createdOn, DateTimeOffset lastModifiedOn, DateTimeOffset? lastTrainedOn, DateTimeOffset? lastDeployedOn, ProjectKind projectKind, ProjectSettings settings, string storageInputContainerName, string projectName, bool? multilingual, string description, string language, IDictionary serializedAdditionalRawData) { - CreatedDateTime = createdDateTime; - LastModifiedDateTime = lastModifiedDateTime; - LastTrainedDateTime = lastTrainedDateTime; - LastDeployedDateTime = lastDeployedDateTime; + CreatedOn = createdOn; + LastModifiedOn = lastModifiedOn; + LastTrainedOn = lastTrainedOn; + LastDeployedOn = lastDeployedOn; ProjectKind = projectKind; Settings = settings; StorageInputContainerName = storageInputContainerName; @@ -99,13 +99,13 @@ internal ProjectMetadata() } /// Represents the project creation datetime. - public DateTimeOffset CreatedDateTime { get; } + public DateTimeOffset CreatedOn { get; } /// Represents the project creation datetime. - public DateTimeOffset LastModifiedDateTime { get; } + public DateTimeOffset LastModifiedOn { get; } /// Represents the project last trained datetime. - public DateTimeOffset? LastTrainedDateTime { get; } + public DateTimeOffset? LastTrainedOn { get; } /// Represents the project last deployed datetime. - public DateTimeOffset? LastDeployedDateTime { get; } + public DateTimeOffset? LastDeployedOn { get; } /// Represents the project kind. public ProjectKind ProjectKind { get; } /// The project settings. diff --git a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/ProjectTrainedModel.Serialization.cs b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/ProjectTrainedModel.Serialization.cs index 6e7eaa0108c98..001cf26da7b8e 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/ProjectTrainedModel.Serialization.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/ProjectTrainedModel.Serialization.cs @@ -41,8 +41,8 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } writer.WritePropertyName("modelId"u8); writer.WriteStringValue(ModelId); - writer.WritePropertyName("lastTrainedDateTime"u8); - writer.WriteStringValue(LastTrainedDateTime, "O"); + writer.WritePropertyName("lastTrainedOn"u8); + writer.WriteStringValue(LastTrainedOn, "O"); writer.WritePropertyName("lastTrainingDurationInSeconds"u8); writer.WriteNumberValue(LastTrainingDurationInSeconds); writer.WritePropertyName("modelExpirationDate"u8); @@ -90,7 +90,7 @@ internal static ProjectTrainedModel DeserializeProjectTrainedModel(JsonElement e } string label = default; string modelId = default; - DateTimeOffset lastTrainedDateTime = default; + DateTimeOffset lastTrainedOn = default; int lastTrainingDurationInSeconds = default; DateTimeOffset modelExpirationDate = default; string modelTrainingConfigVersion = default; @@ -109,9 +109,9 @@ internal static ProjectTrainedModel DeserializeProjectTrainedModel(JsonElement e modelId = property.Value.GetString(); continue; } - if (property.NameEquals("lastTrainedDateTime"u8)) + if (property.NameEquals("lastTrainedOn"u8)) { - lastTrainedDateTime = property.Value.GetDateTimeOffset("O"); + lastTrainedOn = property.Value.GetDateTimeOffset("O"); continue; } if (property.NameEquals("lastTrainingDurationInSeconds"u8)) @@ -143,7 +143,7 @@ internal static ProjectTrainedModel DeserializeProjectTrainedModel(JsonElement e return new ProjectTrainedModel( label, modelId, - lastTrainedDateTime, + lastTrainedOn, lastTrainingDurationInSeconds, modelExpirationDate, modelTrainingConfigVersion, diff --git a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/ProjectTrainedModel.cs b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/ProjectTrainedModel.cs index 1fbc9b616db03..24563dd018dbf 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/ProjectTrainedModel.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/ProjectTrainedModel.cs @@ -47,19 +47,19 @@ public partial class ProjectTrainedModel /// Initializes a new instance of . /// The model ID. - /// The last trained date time of the model. + /// The last trained date time of the model. /// The duration of the model's last training request in seconds. /// The model expiration date. /// The model training config version. /// The flag to indicate if the trained model has a snapshot ready. /// or is null. - internal ProjectTrainedModel(string modelId, DateTimeOffset lastTrainedDateTime, int lastTrainingDurationInSeconds, DateTimeOffset modelExpirationDate, string modelTrainingConfigVersion, bool hasSnapshot) + internal ProjectTrainedModel(string modelId, DateTimeOffset lastTrainedOn, int lastTrainingDurationInSeconds, DateTimeOffset modelExpirationDate, string modelTrainingConfigVersion, bool hasSnapshot) { Argument.AssertNotNull(modelId, nameof(modelId)); Argument.AssertNotNull(modelTrainingConfigVersion, nameof(modelTrainingConfigVersion)); ModelId = modelId; - LastTrainedDateTime = lastTrainedDateTime; + LastTrainedOn = lastTrainedOn; LastTrainingDurationInSeconds = lastTrainingDurationInSeconds; ModelExpirationDate = modelExpirationDate; ModelTrainingConfigVersion = modelTrainingConfigVersion; @@ -69,17 +69,17 @@ internal ProjectTrainedModel(string modelId, DateTimeOffset lastTrainedDateTime, /// Initializes a new instance of . /// The trained model label. /// The model ID. - /// The last trained date time of the model. + /// The last trained date time of the model. /// The duration of the model's last training request in seconds. /// The model expiration date. /// The model training config version. /// The flag to indicate if the trained model has a snapshot ready. /// Keeps track of any properties unknown to the library. - internal ProjectTrainedModel(string label, string modelId, DateTimeOffset lastTrainedDateTime, int lastTrainingDurationInSeconds, DateTimeOffset modelExpirationDate, string modelTrainingConfigVersion, bool hasSnapshot, IDictionary serializedAdditionalRawData) + internal ProjectTrainedModel(string label, string modelId, DateTimeOffset lastTrainedOn, int lastTrainingDurationInSeconds, DateTimeOffset modelExpirationDate, string modelTrainingConfigVersion, bool hasSnapshot, IDictionary serializedAdditionalRawData) { Label = label; ModelId = modelId; - LastTrainedDateTime = lastTrainedDateTime; + LastTrainedOn = lastTrainedOn; LastTrainingDurationInSeconds = lastTrainingDurationInSeconds; ModelExpirationDate = modelExpirationDate; ModelTrainingConfigVersion = modelTrainingConfigVersion; @@ -97,7 +97,7 @@ internal ProjectTrainedModel() /// The model ID. public string ModelId { get; } /// The last trained date time of the model. - public DateTimeOffset LastTrainedDateTime { get; } + public DateTimeOffset LastTrainedOn { get; } /// The duration of the model's last training request in seconds. public int LastTrainingDurationInSeconds { get; } /// The model expiration date. diff --git a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/SubTrainingJobState.Serialization.cs b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/SubTrainingJobState.Serialization.cs index 34b55b9c76744..1426f69e76172 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/SubTrainingJobState.Serialization.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/SubTrainingJobState.Serialization.cs @@ -36,15 +36,15 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("percentComplete"u8); writer.WriteNumberValue(PercentComplete); - if (Optional.IsDefined(StartDateTime)) + if (Optional.IsDefined(StartedOn)) { - writer.WritePropertyName("startDateTime"u8); - writer.WriteStringValue(StartDateTime.Value, "O"); + writer.WritePropertyName("startedOn"u8); + writer.WriteStringValue(StartedOn.Value, "O"); } - if (Optional.IsDefined(EndDateTime)) + if (Optional.IsDefined(EndedOn)) { - writer.WritePropertyName("endDateTime"u8); - writer.WriteStringValue(EndDateTime.Value, "O"); + writer.WritePropertyName("endedOn"u8); + writer.WriteStringValue(EndedOn.Value, "O"); } writer.WritePropertyName("status"u8); writer.WriteStringValue(Status.ToString()); @@ -86,8 +86,8 @@ internal static SubTrainingJobState DeserializeSubTrainingJobState(JsonElement e return null; } int percentComplete = default; - DateTimeOffset? startDateTime = default; - DateTimeOffset? endDateTime = default; + DateTimeOffset? startedOn = default; + DateTimeOffset? endedOn = default; JobStatus status = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); @@ -98,22 +98,22 @@ internal static SubTrainingJobState DeserializeSubTrainingJobState(JsonElement e percentComplete = property.Value.GetInt32(); continue; } - if (property.NameEquals("startDateTime"u8)) + if (property.NameEquals("startedOn"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } - startDateTime = property.Value.GetDateTimeOffset("O"); + startedOn = property.Value.GetDateTimeOffset("O"); continue; } - if (property.NameEquals("endDateTime"u8)) + if (property.NameEquals("endedOn"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } - endDateTime = property.Value.GetDateTimeOffset("O"); + endedOn = property.Value.GetDateTimeOffset("O"); continue; } if (property.NameEquals("status"u8)) @@ -127,7 +127,7 @@ internal static SubTrainingJobState DeserializeSubTrainingJobState(JsonElement e } } serializedAdditionalRawData = rawDataDictionary; - return new SubTrainingJobState(percentComplete, startDateTime, endDateTime, status, serializedAdditionalRawData); + return new SubTrainingJobState(percentComplete, startedOn, endedOn, status, serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/SubTrainingJobState.cs b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/SubTrainingJobState.cs index bf95c7414ab8f..cc507d9b385c3 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/SubTrainingJobState.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/SubTrainingJobState.cs @@ -56,15 +56,15 @@ internal SubTrainingJobState(int percentComplete, JobStatus status) /// Initializes a new instance of . /// Represents progress percentage. - /// Represents the start date time. - /// Represents the end date time. + /// Represents the start date time. + /// Represents the end date time. /// Represents the status of the sub-operation. /// Keeps track of any properties unknown to the library. - internal SubTrainingJobState(int percentComplete, DateTimeOffset? startDateTime, DateTimeOffset? endDateTime, JobStatus status, IDictionary serializedAdditionalRawData) + internal SubTrainingJobState(int percentComplete, DateTimeOffset? startedOn, DateTimeOffset? endedOn, JobStatus status, IDictionary serializedAdditionalRawData) { PercentComplete = percentComplete; - StartDateTime = startDateTime; - EndDateTime = endDateTime; + StartedOn = startedOn; + EndedOn = endedOn; Status = status; _serializedAdditionalRawData = serializedAdditionalRawData; } @@ -77,9 +77,9 @@ internal SubTrainingJobState() /// Represents progress percentage. public int PercentComplete { get; } /// Represents the start date time. - public DateTimeOffset? StartDateTime { get; } + public DateTimeOffset? StartedOn { get; } /// Represents the end date time. - public DateTimeOffset? EndDateTime { get; } + public DateTimeOffset? EndedOn { get; } /// Represents the status of the sub-operation. public JobStatus Status { get; } } diff --git a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/SwapDeploymentsJobState.Serialization.cs b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/SwapDeploymentsJobState.Serialization.cs index 11247b186dd93..5087a4f12201d 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/SwapDeploymentsJobState.Serialization.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/SwapDeploymentsJobState.Serialization.cs @@ -39,14 +39,14 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("jobId"u8); writer.WriteStringValue(JobId); } - writer.WritePropertyName("createdDateTime"u8); - writer.WriteStringValue(CreatedDateTime, "O"); - writer.WritePropertyName("lastUpdatedDateTime"u8); - writer.WriteStringValue(LastUpdatedDateTime, "O"); - if (Optional.IsDefined(ExpirationDateTime)) + writer.WritePropertyName("createdOn"u8); + writer.WriteStringValue(CreatedOn, "O"); + writer.WritePropertyName("lastUpdatedOn"u8); + writer.WriteStringValue(LastUpdatedOn, "O"); + if (Optional.IsDefined(ExpiresOn)) { - writer.WritePropertyName("expirationDateTime"u8); - writer.WriteStringValue(ExpirationDateTime.Value, "O"); + writer.WritePropertyName("expiresOn"u8); + writer.WriteStringValue(ExpiresOn.Value, "O"); } writer.WritePropertyName("status"u8); writer.WriteStringValue(Status.ToString()); @@ -108,9 +108,9 @@ internal static SwapDeploymentsJobState DeserializeSwapDeploymentsJobState(JsonE return null; } string jobId = default; - DateTimeOffset createdDateTime = default; - DateTimeOffset lastUpdatedDateTime = default; - DateTimeOffset? expirationDateTime = default; + DateTimeOffset createdOn = default; + DateTimeOffset lastUpdatedOn = default; + DateTimeOffset? expiresOn = default; JobStatus status = default; IReadOnlyList warnings = default; IReadOnlyList errors = default; @@ -123,23 +123,23 @@ internal static SwapDeploymentsJobState DeserializeSwapDeploymentsJobState(JsonE jobId = property.Value.GetString(); continue; } - if (property.NameEquals("createdDateTime"u8)) + if (property.NameEquals("createdOn"u8)) { - createdDateTime = property.Value.GetDateTimeOffset("O"); + createdOn = property.Value.GetDateTimeOffset("O"); continue; } - if (property.NameEquals("lastUpdatedDateTime"u8)) + if (property.NameEquals("lastUpdatedOn"u8)) { - lastUpdatedDateTime = property.Value.GetDateTimeOffset("O"); + lastUpdatedOn = property.Value.GetDateTimeOffset("O"); continue; } - if (property.NameEquals("expirationDateTime"u8)) + if (property.NameEquals("expiresOn"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } - expirationDateTime = property.Value.GetDateTimeOffset("O"); + expiresOn = property.Value.GetDateTimeOffset("O"); continue; } if (property.NameEquals("status"u8)) @@ -183,9 +183,9 @@ internal static SwapDeploymentsJobState DeserializeSwapDeploymentsJobState(JsonE serializedAdditionalRawData = rawDataDictionary; return new SwapDeploymentsJobState( jobId, - createdDateTime, - lastUpdatedDateTime, - expirationDateTime, + createdOn, + lastUpdatedOn, + expiresOn, status, warnings ?? new ChangeTrackingList(), errors ?? new ChangeTrackingList(), diff --git a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/SwapDeploymentsJobState.cs b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/SwapDeploymentsJobState.cs index 23f81396d8998..7cb9b7d94d488 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/SwapDeploymentsJobState.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/SwapDeploymentsJobState.cs @@ -46,13 +46,13 @@ public partial class SwapDeploymentsJobState private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - /// The creation date time of the job. - /// The last date time the job was updated. + /// The creation date time of the job. + /// The last date time the job was updated. /// The job status. - internal SwapDeploymentsJobState(DateTimeOffset createdDateTime, DateTimeOffset lastUpdatedDateTime, JobStatus status) + internal SwapDeploymentsJobState(DateTimeOffset createdOn, DateTimeOffset lastUpdatedOn, JobStatus status) { - CreatedDateTime = createdDateTime; - LastUpdatedDateTime = lastUpdatedDateTime; + CreatedOn = createdOn; + LastUpdatedOn = lastUpdatedOn; Status = status; Warnings = new ChangeTrackingList(); Errors = new ChangeTrackingList(); @@ -60,19 +60,19 @@ internal SwapDeploymentsJobState(DateTimeOffset createdDateTime, DateTimeOffset /// Initializes a new instance of . /// The job ID. - /// The creation date time of the job. - /// The last date time the job was updated. - /// The expiration date time of the job. + /// The creation date time of the job. + /// The last date time the job was updated. + /// The expiration date time of the job. /// The job status. /// The warnings that were encountered while executing the job. /// The errors encountered while executing the job. /// Keeps track of any properties unknown to the library. - internal SwapDeploymentsJobState(string jobId, DateTimeOffset createdDateTime, DateTimeOffset lastUpdatedDateTime, DateTimeOffset? expirationDateTime, JobStatus status, IReadOnlyList warnings, IReadOnlyList errors, IDictionary serializedAdditionalRawData) + internal SwapDeploymentsJobState(string jobId, DateTimeOffset createdOn, DateTimeOffset lastUpdatedOn, DateTimeOffset? expiresOn, JobStatus status, IReadOnlyList warnings, IReadOnlyList errors, IDictionary serializedAdditionalRawData) { JobId = jobId; - CreatedDateTime = createdDateTime; - LastUpdatedDateTime = lastUpdatedDateTime; - ExpirationDateTime = expirationDateTime; + CreatedOn = createdOn; + LastUpdatedOn = lastUpdatedOn; + ExpiresOn = expiresOn; Status = status; Warnings = warnings; Errors = errors; @@ -87,11 +87,11 @@ internal SwapDeploymentsJobState() /// The job ID. public string JobId { get; } /// The creation date time of the job. - public DateTimeOffset CreatedDateTime { get; } + public DateTimeOffset CreatedOn { get; } /// The last date time the job was updated. - public DateTimeOffset LastUpdatedDateTime { get; } + public DateTimeOffset LastUpdatedOn { get; } /// The expiration date time of the job. - public DateTimeOffset? ExpirationDateTime { get; } + public DateTimeOffset? ExpiresOn { get; } /// The job status. public JobStatus Status { get; } /// The warnings that were encountered while executing the job. diff --git a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/TrainingJobResult.Serialization.cs b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/TrainingJobResult.Serialization.cs index 583091695fdd6..a0df9b987598b 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/TrainingJobResult.Serialization.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/TrainingJobResult.Serialization.cs @@ -50,10 +50,10 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("evaluationStatus"u8); writer.WriteObjectValue(EvaluationStatus, options); } - if (Optional.IsDefined(EstimatedEndDateTime)) + if (Optional.IsDefined(EstimatedEndOn)) { - writer.WritePropertyName("estimatedEndDateTime"u8); - writer.WriteStringValue(EstimatedEndDateTime.Value, "O"); + writer.WritePropertyName("estimatedEndOn"u8); + writer.WriteStringValue(EstimatedEndOn.Value, "O"); } if (options.Format != "W" && _serializedAdditionalRawData != null) { @@ -97,7 +97,7 @@ internal static TrainingJobResult DeserializeTrainingJobResult(JsonElement eleme TrainingMode? trainingMode = default; SubTrainingJobState trainingStatus = default; SubTrainingJobState evaluationStatus = default; - DateTimeOffset? estimatedEndDateTime = default; + DateTimeOffset? estimatedEndOn = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -135,13 +135,13 @@ internal static TrainingJobResult DeserializeTrainingJobResult(JsonElement eleme evaluationStatus = SubTrainingJobState.DeserializeSubTrainingJobState(property.Value, options); continue; } - if (property.NameEquals("estimatedEndDateTime"u8)) + if (property.NameEquals("estimatedEndOn"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } - estimatedEndDateTime = property.Value.GetDateTimeOffset("O"); + estimatedEndOn = property.Value.GetDateTimeOffset("O"); continue; } if (options.Format != "W") @@ -156,7 +156,7 @@ internal static TrainingJobResult DeserializeTrainingJobResult(JsonElement eleme trainingMode, trainingStatus, evaluationStatus, - estimatedEndDateTime, + estimatedEndOn, serializedAdditionalRawData); } diff --git a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/TrainingJobResult.cs b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/TrainingJobResult.cs index 720a34cb1f3ae..b9b8c4ab9b1a3 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/TrainingJobResult.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/TrainingJobResult.cs @@ -67,16 +67,16 @@ internal TrainingJobResult(string modelLabel, string trainingConfigVersion, SubT /// Represents the mode of the training operation. /// Represents the model training status. /// Represents model evaluation status. - /// Represents the estimated end date time for training and evaluation. + /// Represents the estimated end date time for training and evaluation. /// Keeps track of any properties unknown to the library. - internal TrainingJobResult(string modelLabel, string trainingConfigVersion, TrainingMode? trainingMode, SubTrainingJobState trainingStatus, SubTrainingJobState evaluationStatus, DateTimeOffset? estimatedEndDateTime, IDictionary serializedAdditionalRawData) + internal TrainingJobResult(string modelLabel, string trainingConfigVersion, TrainingMode? trainingMode, SubTrainingJobState trainingStatus, SubTrainingJobState evaluationStatus, DateTimeOffset? estimatedEndOn, IDictionary serializedAdditionalRawData) { ModelLabel = modelLabel; TrainingConfigVersion = trainingConfigVersion; TrainingMode = trainingMode; TrainingStatus = trainingStatus; EvaluationStatus = evaluationStatus; - EstimatedEndDateTime = estimatedEndDateTime; + EstimatedEndOn = estimatedEndOn; _serializedAdditionalRawData = serializedAdditionalRawData; } @@ -96,6 +96,6 @@ internal TrainingJobResult() /// Represents model evaluation status. public SubTrainingJobState EvaluationStatus { get; } /// Represents the estimated end date time for training and evaluation. - public DateTimeOffset? EstimatedEndDateTime { get; } + public DateTimeOffset? EstimatedEndOn { get; } } } diff --git a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/TrainingJobState.Serialization.cs b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/TrainingJobState.Serialization.cs index 00058b957bf1e..9bbe099a99653 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/TrainingJobState.Serialization.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/TrainingJobState.Serialization.cs @@ -39,14 +39,14 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("jobId"u8); writer.WriteStringValue(JobId); } - writer.WritePropertyName("createdDateTime"u8); - writer.WriteStringValue(CreatedDateTime, "O"); - writer.WritePropertyName("lastUpdatedDateTime"u8); - writer.WriteStringValue(LastUpdatedDateTime, "O"); - if (Optional.IsDefined(ExpirationDateTime)) + writer.WritePropertyName("createdOn"u8); + writer.WriteStringValue(CreatedOn, "O"); + writer.WritePropertyName("lastUpdatedOn"u8); + writer.WriteStringValue(LastUpdatedOn, "O"); + if (Optional.IsDefined(ExpiresOn)) { - writer.WritePropertyName("expirationDateTime"u8); - writer.WriteStringValue(ExpirationDateTime.Value, "O"); + writer.WritePropertyName("expiresOn"u8); + writer.WriteStringValue(ExpiresOn.Value, "O"); } writer.WritePropertyName("status"u8); writer.WriteStringValue(Status.ToString()); @@ -110,9 +110,9 @@ internal static TrainingJobState DeserializeTrainingJobState(JsonElement element return null; } string jobId = default; - DateTimeOffset createdDateTime = default; - DateTimeOffset lastUpdatedDateTime = default; - DateTimeOffset? expirationDateTime = default; + DateTimeOffset createdOn = default; + DateTimeOffset lastUpdatedOn = default; + DateTimeOffset? expiresOn = default; JobStatus status = default; IReadOnlyList warnings = default; IReadOnlyList errors = default; @@ -126,23 +126,23 @@ internal static TrainingJobState DeserializeTrainingJobState(JsonElement element jobId = property.Value.GetString(); continue; } - if (property.NameEquals("createdDateTime"u8)) + if (property.NameEquals("createdOn"u8)) { - createdDateTime = property.Value.GetDateTimeOffset("O"); + createdOn = property.Value.GetDateTimeOffset("O"); continue; } - if (property.NameEquals("lastUpdatedDateTime"u8)) + if (property.NameEquals("lastUpdatedOn"u8)) { - lastUpdatedDateTime = property.Value.GetDateTimeOffset("O"); + lastUpdatedOn = property.Value.GetDateTimeOffset("O"); continue; } - if (property.NameEquals("expirationDateTime"u8)) + if (property.NameEquals("expiresOn"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } - expirationDateTime = property.Value.GetDateTimeOffset("O"); + expiresOn = property.Value.GetDateTimeOffset("O"); continue; } if (property.NameEquals("status"u8)) @@ -191,9 +191,9 @@ internal static TrainingJobState DeserializeTrainingJobState(JsonElement element serializedAdditionalRawData = rawDataDictionary; return new TrainingJobState( jobId, - createdDateTime, - lastUpdatedDateTime, - expirationDateTime, + createdOn, + lastUpdatedOn, + expiresOn, status, warnings ?? new ChangeTrackingList(), errors ?? new ChangeTrackingList(), diff --git a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/TrainingJobState.cs b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/TrainingJobState.cs index 882cd133cc27c..4754c735fa1f6 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/TrainingJobState.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/src/Generated/Models/TrainingJobState.cs @@ -46,17 +46,17 @@ public partial class TrainingJobState private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - /// The creation date time of the job. - /// The last date time the job was updated. + /// The creation date time of the job. + /// The last date time the job was updated. /// The job status. /// Represents training tasks detailed result. /// is null. - internal TrainingJobState(DateTimeOffset createdDateTime, DateTimeOffset lastUpdatedDateTime, JobStatus status, TrainingJobResult result) + internal TrainingJobState(DateTimeOffset createdOn, DateTimeOffset lastUpdatedOn, JobStatus status, TrainingJobResult result) { Argument.AssertNotNull(result, nameof(result)); - CreatedDateTime = createdDateTime; - LastUpdatedDateTime = lastUpdatedDateTime; + CreatedOn = createdOn; + LastUpdatedOn = lastUpdatedOn; Status = status; Warnings = new ChangeTrackingList(); Errors = new ChangeTrackingList(); @@ -65,20 +65,20 @@ internal TrainingJobState(DateTimeOffset createdDateTime, DateTimeOffset lastUpd /// Initializes a new instance of . /// The job ID. - /// The creation date time of the job. - /// The last date time the job was updated. - /// The expiration date time of the job. + /// The creation date time of the job. + /// The last date time the job was updated. + /// The expiration date time of the job. /// The job status. /// The warnings that were encountered while executing the job. /// The errors encountered while executing the job. /// Represents training tasks detailed result. /// Keeps track of any properties unknown to the library. - internal TrainingJobState(string jobId, DateTimeOffset createdDateTime, DateTimeOffset lastUpdatedDateTime, DateTimeOffset? expirationDateTime, JobStatus status, IReadOnlyList warnings, IReadOnlyList errors, TrainingJobResult result, IDictionary serializedAdditionalRawData) + internal TrainingJobState(string jobId, DateTimeOffset createdOn, DateTimeOffset lastUpdatedOn, DateTimeOffset? expiresOn, JobStatus status, IReadOnlyList warnings, IReadOnlyList errors, TrainingJobResult result, IDictionary serializedAdditionalRawData) { JobId = jobId; - CreatedDateTime = createdDateTime; - LastUpdatedDateTime = lastUpdatedDateTime; - ExpirationDateTime = expirationDateTime; + CreatedOn = createdOn; + LastUpdatedOn = lastUpdatedOn; + ExpiresOn = expiresOn; Status = status; Warnings = warnings; Errors = errors; @@ -94,11 +94,11 @@ internal TrainingJobState() /// The job ID. public string JobId { get; } /// The creation date time of the job. - public DateTimeOffset CreatedDateTime { get; } + public DateTimeOffset CreatedOn { get; } /// The last date time the job was updated. - public DateTimeOffset LastUpdatedDateTime { get; } + public DateTimeOffset LastUpdatedOn { get; } /// The expiration date time of the job. - public DateTimeOffset? ExpirationDateTime { get; } + public DateTimeOffset? ExpiresOn { get; } /// The job status. public JobStatus Status { get; } /// The warnings that were encountered while executing the job. diff --git a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/tests/Generated/Samples/Samples_AnalyzeConversationAuthoring.cs b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/tests/Generated/Samples/Samples_AuthoringClient.cs similarity index 76% rename from sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/tests/Generated/Samples/Samples_AnalyzeConversationAuthoring.cs rename to sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/tests/Generated/Samples/Samples_AuthoringClient.cs index bc4759b146581..c0f2214ff8005 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/tests/Generated/Samples/Samples_AnalyzeConversationAuthoring.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/tests/Generated/Samples/Samples_AuthoringClient.cs @@ -15,7 +15,7 @@ namespace Azure.AI.Language.Conversations.Authoring.Samples { - public partial class Samples_AnalyzeConversationAuthoring + public partial class Samples_AuthoringClient { [Test] [Ignore("Only validating compilation of examples")] @@ -23,13 +23,13 @@ public void Example_AnalyzeConversationAuthoringProjectMetadata_GetProject_Short { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetProject("", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; - Console.WriteLine(result.GetProperty("createdDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastModifiedDateTime").ToString()); + Console.WriteLine(result.GetProperty("createdOn").ToString()); + Console.WriteLine(result.GetProperty("lastModifiedOn").ToString()); Console.WriteLine(result.GetProperty("projectKind").ToString()); Console.WriteLine(result.GetProperty("projectName").ToString()); Console.WriteLine(result.GetProperty("language").ToString()); @@ -41,13 +41,13 @@ public async Task Example_AnalyzeConversationAuthoringProjectMetadata_GetProject { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetProjectAsync("", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; - Console.WriteLine(result.GetProperty("createdDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastModifiedDateTime").ToString()); + Console.WriteLine(result.GetProperty("createdOn").ToString()); + Console.WriteLine(result.GetProperty("lastModifiedOn").ToString()); Console.WriteLine(result.GetProperty("projectKind").ToString()); Console.WriteLine(result.GetProperty("projectName").ToString()); Console.WriteLine(result.GetProperty("language").ToString()); @@ -59,7 +59,7 @@ public void Example_AnalyzeConversationAuthoringProjectMetadata_GetProject_Short { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetProject(""); } @@ -70,7 +70,7 @@ public async Task Example_AnalyzeConversationAuthoringProjectMetadata_GetProject { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetProjectAsync(""); } @@ -81,15 +81,15 @@ public void Example_AnalyzeConversationAuthoringProjectMetadata_GetProject_AllPa { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetProject("", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; - Console.WriteLine(result.GetProperty("createdDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastModifiedDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastTrainedDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastDeployedDateTime").ToString()); + Console.WriteLine(result.GetProperty("createdOn").ToString()); + Console.WriteLine(result.GetProperty("lastModifiedOn").ToString()); + Console.WriteLine(result.GetProperty("lastTrainedOn").ToString()); + Console.WriteLine(result.GetProperty("lastDeployedOn").ToString()); Console.WriteLine(result.GetProperty("projectKind").ToString()); Console.WriteLine(result.GetProperty("settings").GetProperty("confidenceThreshold").ToString()); Console.WriteLine(result.GetProperty("storageInputContainerName").ToString()); @@ -105,15 +105,15 @@ public async Task Example_AnalyzeConversationAuthoringProjectMetadata_GetProject { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetProjectAsync("", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; - Console.WriteLine(result.GetProperty("createdDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastModifiedDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastTrainedDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastDeployedDateTime").ToString()); + Console.WriteLine(result.GetProperty("createdOn").ToString()); + Console.WriteLine(result.GetProperty("lastModifiedOn").ToString()); + Console.WriteLine(result.GetProperty("lastTrainedOn").ToString()); + Console.WriteLine(result.GetProperty("lastDeployedOn").ToString()); Console.WriteLine(result.GetProperty("projectKind").ToString()); Console.WriteLine(result.GetProperty("settings").GetProperty("confidenceThreshold").ToString()); Console.WriteLine(result.GetProperty("storageInputContainerName").ToString()); @@ -129,7 +129,7 @@ public void Example_AnalyzeConversationAuthoringProjectMetadata_GetProject_AllPa { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetProject(""); } @@ -140,7 +140,7 @@ public async Task Example_AnalyzeConversationAuthoringProjectMetadata_GetProject { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetProjectAsync(""); } @@ -151,7 +151,7 @@ public void Example_AnalyzeConversationAuthoringProjectMetadata_CreateProject_Sh { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { @@ -162,8 +162,8 @@ public void Example_AnalyzeConversationAuthoringProjectMetadata_CreateProject_Sh Response response = client.CreateProject("", content); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; - Console.WriteLine(result.GetProperty("createdDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastModifiedDateTime").ToString()); + Console.WriteLine(result.GetProperty("createdOn").ToString()); + Console.WriteLine(result.GetProperty("lastModifiedOn").ToString()); Console.WriteLine(result.GetProperty("projectKind").ToString()); Console.WriteLine(result.GetProperty("projectName").ToString()); Console.WriteLine(result.GetProperty("language").ToString()); @@ -175,7 +175,7 @@ public async Task Example_AnalyzeConversationAuthoringProjectMetadata_CreateProj { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { @@ -186,8 +186,8 @@ public async Task Example_AnalyzeConversationAuthoringProjectMetadata_CreateProj Response response = await client.CreateProjectAsync("", content); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; - Console.WriteLine(result.GetProperty("createdDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastModifiedDateTime").ToString()); + Console.WriteLine(result.GetProperty("createdOn").ToString()); + Console.WriteLine(result.GetProperty("lastModifiedOn").ToString()); Console.WriteLine(result.GetProperty("projectKind").ToString()); Console.WriteLine(result.GetProperty("projectName").ToString()); Console.WriteLine(result.GetProperty("language").ToString()); @@ -199,7 +199,7 @@ public void Example_AnalyzeConversationAuthoringProjectMetadata_CreateProject_Al { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { @@ -217,10 +217,10 @@ public void Example_AnalyzeConversationAuthoringProjectMetadata_CreateProject_Al Response response = client.CreateProject("", content); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; - Console.WriteLine(result.GetProperty("createdDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastModifiedDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastTrainedDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastDeployedDateTime").ToString()); + Console.WriteLine(result.GetProperty("createdOn").ToString()); + Console.WriteLine(result.GetProperty("lastModifiedOn").ToString()); + Console.WriteLine(result.GetProperty("lastTrainedOn").ToString()); + Console.WriteLine(result.GetProperty("lastDeployedOn").ToString()); Console.WriteLine(result.GetProperty("projectKind").ToString()); Console.WriteLine(result.GetProperty("settings").GetProperty("confidenceThreshold").ToString()); Console.WriteLine(result.GetProperty("storageInputContainerName").ToString()); @@ -236,7 +236,7 @@ public async Task Example_AnalyzeConversationAuthoringProjectMetadata_CreateProj { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { @@ -254,10 +254,10 @@ public async Task Example_AnalyzeConversationAuthoringProjectMetadata_CreateProj Response response = await client.CreateProjectAsync("", content); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; - Console.WriteLine(result.GetProperty("createdDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastModifiedDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastTrainedDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastDeployedDateTime").ToString()); + Console.WriteLine(result.GetProperty("createdOn").ToString()); + Console.WriteLine(result.GetProperty("lastModifiedOn").ToString()); + Console.WriteLine(result.GetProperty("lastTrainedOn").ToString()); + Console.WriteLine(result.GetProperty("lastDeployedOn").ToString()); Console.WriteLine(result.GetProperty("projectKind").ToString()); Console.WriteLine(result.GetProperty("settings").GetProperty("confidenceThreshold").ToString()); Console.WriteLine(result.GetProperty("storageInputContainerName").ToString()); @@ -269,11 +269,157 @@ public async Task Example_AnalyzeConversationAuthoringProjectMetadata_CreateProj [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoring_CopyProjectAuthorization_ShortVersion() + public void Example_Authoring_GetProjectDeletionStatus_ShortVersion() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); + + Response response = client.GetProjectDeletionStatus("", null); + + JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; + Console.WriteLine(result.GetProperty("jobId").ToString()); + Console.WriteLine(result.GetProperty("createdOn").ToString()); + Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); + Console.WriteLine(result.GetProperty("status").ToString()); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Example_Authoring_GetProjectDeletionStatus_ShortVersion_Async() + { + Uri endpoint = new Uri(""); + AzureKeyCredential credential = new AzureKeyCredential(""); + AuthoringClient client = new AuthoringClient(endpoint, credential); + + Response response = await client.GetProjectDeletionStatusAsync("", null); + + JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; + Console.WriteLine(result.GetProperty("jobId").ToString()); + Console.WriteLine(result.GetProperty("createdOn").ToString()); + Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); + Console.WriteLine(result.GetProperty("status").ToString()); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public void Example_Authoring_GetProjectDeletionStatus_ShortVersion_Convenience() + { + Uri endpoint = new Uri(""); + AzureKeyCredential credential = new AzureKeyCredential(""); + AuthoringClient client = new AuthoringClient(endpoint, credential); + + Response response = client.GetProjectDeletionStatus(""); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Example_Authoring_GetProjectDeletionStatus_ShortVersion_Convenience_Async() + { + Uri endpoint = new Uri(""); + AzureKeyCredential credential = new AzureKeyCredential(""); + AuthoringClient client = new AuthoringClient(endpoint, credential); + + Response response = await client.GetProjectDeletionStatusAsync(""); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public void Example_Authoring_GetProjectDeletionStatus_AllParameters() + { + Uri endpoint = new Uri(""); + AzureKeyCredential credential = new AzureKeyCredential(""); + AuthoringClient client = new AuthoringClient(endpoint, credential); + + Response response = client.GetProjectDeletionStatus("", null); + + JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; + Console.WriteLine(result.GetProperty("jobId").ToString()); + Console.WriteLine(result.GetProperty("createdOn").ToString()); + Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); + Console.WriteLine(result.GetProperty("expiresOn").ToString()); + Console.WriteLine(result.GetProperty("status").ToString()); + Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("message").ToString()); + Console.WriteLine(result.GetProperty("errors")[0].GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("errors")[0].GetProperty("message").ToString()); + Console.WriteLine(result.GetProperty("errors")[0].GetProperty("target").ToString()); + Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("message").ToString()); + Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("target").ToString()); + Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("message").ToString()); + Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("details").GetProperty("").ToString()); + Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("target").ToString()); + Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("message").ToString()); + Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("details").GetProperty("").ToString()); + Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("target").ToString()); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Example_Authoring_GetProjectDeletionStatus_AllParameters_Async() + { + Uri endpoint = new Uri(""); + AzureKeyCredential credential = new AzureKeyCredential(""); + AuthoringClient client = new AuthoringClient(endpoint, credential); + + Response response = await client.GetProjectDeletionStatusAsync("", null); + + JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; + Console.WriteLine(result.GetProperty("jobId").ToString()); + Console.WriteLine(result.GetProperty("createdOn").ToString()); + Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); + Console.WriteLine(result.GetProperty("expiresOn").ToString()); + Console.WriteLine(result.GetProperty("status").ToString()); + Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("message").ToString()); + Console.WriteLine(result.GetProperty("errors")[0].GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("errors")[0].GetProperty("message").ToString()); + Console.WriteLine(result.GetProperty("errors")[0].GetProperty("target").ToString()); + Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("message").ToString()); + Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("target").ToString()); + Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("message").ToString()); + Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("details").GetProperty("").ToString()); + Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("target").ToString()); + Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("message").ToString()); + Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("details").GetProperty("").ToString()); + Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("target").ToString()); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public void Example_Authoring_GetProjectDeletionStatus_AllParameters_Convenience() + { + Uri endpoint = new Uri(""); + AzureKeyCredential credential = new AzureKeyCredential(""); + AuthoringClient client = new AuthoringClient(endpoint, credential); + + Response response = client.GetProjectDeletionStatus(""); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Example_Authoring_GetProjectDeletionStatus_AllParameters_Convenience_Async() + { + Uri endpoint = new Uri(""); + AzureKeyCredential credential = new AzureKeyCredential(""); + AuthoringClient client = new AuthoringClient(endpoint, credential); + + Response response = await client.GetProjectDeletionStatusAsync(""); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public void Example_Authoring_CopyProjectAuthorization_ShortVersion() + { + Uri endpoint = new Uri(""); + AzureKeyCredential credential = new AzureKeyCredential(""); + AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { @@ -292,11 +438,11 @@ public void Example_AnalyzeConversationAuthoring_CopyProjectAuthorization_ShortV [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoring_CopyProjectAuthorization_ShortVersion_Async() + public async Task Example_Authoring_CopyProjectAuthorization_ShortVersion_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { @@ -315,33 +461,33 @@ public async Task Example_AnalyzeConversationAuthoring_CopyProjectAuthorization_ [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoring_CopyProjectAuthorization_ShortVersion_Convenience() + public void Example_Authoring_CopyProjectAuthorization_ShortVersion_Convenience() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.CopyProjectAuthorization("", ProjectKind.Conversation); } [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoring_CopyProjectAuthorization_ShortVersion_Convenience_Async() + public async Task Example_Authoring_CopyProjectAuthorization_ShortVersion_Convenience_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.CopyProjectAuthorizationAsync("", ProjectKind.Conversation); } [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoring_CopyProjectAuthorization_AllParameters() + public void Example_Authoring_CopyProjectAuthorization_AllParameters() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { @@ -362,11 +508,11 @@ public void Example_AnalyzeConversationAuthoring_CopyProjectAuthorization_AllPar [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoring_CopyProjectAuthorization_AllParameters_Async() + public async Task Example_Authoring_CopyProjectAuthorization_AllParameters_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { @@ -387,22 +533,22 @@ public async Task Example_AnalyzeConversationAuthoring_CopyProjectAuthorization_ [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoring_CopyProjectAuthorization_AllParameters_Convenience() + public void Example_Authoring_CopyProjectAuthorization_AllParameters_Convenience() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.CopyProjectAuthorization("", ProjectKind.Conversation, storageInputContainerName: "", allowOverwrite: true); } [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoring_CopyProjectAuthorization_AllParameters_Convenience_Async() + public async Task Example_Authoring_CopyProjectAuthorization_AllParameters_Convenience_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.CopyProjectAuthorizationAsync("", ProjectKind.Conversation, storageInputContainerName: "", allowOverwrite: true); } @@ -413,14 +559,14 @@ public void Example_AnalyzeConversationAuthoringCopyProjectJobState_GetCopyProje { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetCopyProjectStatus("", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("jobId").ToString()); - Console.WriteLine(result.GetProperty("createdDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); + Console.WriteLine(result.GetProperty("createdOn").ToString()); + Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); } @@ -430,14 +576,14 @@ public async Task Example_AnalyzeConversationAuthoringCopyProjectJobState_GetCop { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetCopyProjectStatusAsync("", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("jobId").ToString()); - Console.WriteLine(result.GetProperty("createdDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); + Console.WriteLine(result.GetProperty("createdOn").ToString()); + Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); } @@ -447,7 +593,7 @@ public void Example_AnalyzeConversationAuthoringCopyProjectJobState_GetCopyProje { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetCopyProjectStatus("", ""); } @@ -458,7 +604,7 @@ public async Task Example_AnalyzeConversationAuthoringCopyProjectJobState_GetCop { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetCopyProjectStatusAsync("", ""); } @@ -469,15 +615,15 @@ public void Example_AnalyzeConversationAuthoringCopyProjectJobState_GetCopyProje { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetCopyProjectStatus("", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("jobId").ToString()); - Console.WriteLine(result.GetProperty("createdDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); - Console.WriteLine(result.GetProperty("expirationDateTime").ToString()); + Console.WriteLine(result.GetProperty("createdOn").ToString()); + Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); + Console.WriteLine(result.GetProperty("expiresOn").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("message").ToString()); @@ -503,15 +649,15 @@ public async Task Example_AnalyzeConversationAuthoringCopyProjectJobState_GetCop { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetCopyProjectStatusAsync("", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("jobId").ToString()); - Console.WriteLine(result.GetProperty("createdDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); - Console.WriteLine(result.GetProperty("expirationDateTime").ToString()); + Console.WriteLine(result.GetProperty("createdOn").ToString()); + Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); + Console.WriteLine(result.GetProperty("expiresOn").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("message").ToString()); @@ -537,7 +683,7 @@ public void Example_AnalyzeConversationAuthoringCopyProjectJobState_GetCopyProje { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetCopyProjectStatus("", ""); } @@ -548,210 +694,230 @@ public async Task Example_AnalyzeConversationAuthoringCopyProjectJobState_GetCop { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetCopyProjectStatusAsync("", ""); } [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoringProjectDeployment_GetDeployment_ShortVersion() + public void Example_AnalyzeConversationAuthoringExportProjectJobState_GetExportStatus_ShortVersion() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); - Response response = client.GetDeployment("", "", null); + Response response = client.GetExportStatus("", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; - Console.WriteLine(result.GetProperty("deploymentName").ToString()); - Console.WriteLine(result.GetProperty("modelId").ToString()); - Console.WriteLine(result.GetProperty("lastTrainedDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastDeployedDateTime").ToString()); - Console.WriteLine(result.GetProperty("deploymentExpirationDate").ToString()); - Console.WriteLine(result.GetProperty("modelTrainingConfigVersion").ToString()); - Console.WriteLine(result.GetProperty("assignedResources")[0].GetProperty("resourceId").ToString()); - Console.WriteLine(result.GetProperty("assignedResources")[0].GetProperty("region").ToString()); + Console.WriteLine(result.GetProperty("jobId").ToString()); + Console.WriteLine(result.GetProperty("createdOn").ToString()); + Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); + Console.WriteLine(result.GetProperty("status").ToString()); } [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoringProjectDeployment_GetDeployment_ShortVersion_Async() + public async Task Example_AnalyzeConversationAuthoringExportProjectJobState_GetExportStatus_ShortVersion_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); - Response response = await client.GetDeploymentAsync("", "", null); + Response response = await client.GetExportStatusAsync("", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; - Console.WriteLine(result.GetProperty("deploymentName").ToString()); - Console.WriteLine(result.GetProperty("modelId").ToString()); - Console.WriteLine(result.GetProperty("lastTrainedDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastDeployedDateTime").ToString()); - Console.WriteLine(result.GetProperty("deploymentExpirationDate").ToString()); - Console.WriteLine(result.GetProperty("modelTrainingConfigVersion").ToString()); - Console.WriteLine(result.GetProperty("assignedResources")[0].GetProperty("resourceId").ToString()); - Console.WriteLine(result.GetProperty("assignedResources")[0].GetProperty("region").ToString()); + Console.WriteLine(result.GetProperty("jobId").ToString()); + Console.WriteLine(result.GetProperty("createdOn").ToString()); + Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); + Console.WriteLine(result.GetProperty("status").ToString()); } [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoringProjectDeployment_GetDeployment_ShortVersion_Convenience() + public void Example_AnalyzeConversationAuthoringExportProjectJobState_GetExportStatus_ShortVersion_Convenience() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); - Response response = client.GetDeployment("", ""); + Response response = client.GetExportStatus("", ""); } [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoringProjectDeployment_GetDeployment_ShortVersion_Convenience_Async() + public async Task Example_AnalyzeConversationAuthoringExportProjectJobState_GetExportStatus_ShortVersion_Convenience_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); - Response response = await client.GetDeploymentAsync("", ""); + Response response = await client.GetExportStatusAsync("", ""); } [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoringProjectDeployment_GetDeployment_AllParameters() + public void Example_AnalyzeConversationAuthoringExportProjectJobState_GetExportStatus_AllParameters() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); - Response response = client.GetDeployment("", "", null); + Response response = client.GetExportStatus("", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; - Console.WriteLine(result.GetProperty("deploymentName").ToString()); - Console.WriteLine(result.GetProperty("modelId").ToString()); - Console.WriteLine(result.GetProperty("lastTrainedDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastDeployedDateTime").ToString()); - Console.WriteLine(result.GetProperty("deploymentExpirationDate").ToString()); - Console.WriteLine(result.GetProperty("modelTrainingConfigVersion").ToString()); - Console.WriteLine(result.GetProperty("assignedResources")[0].GetProperty("resourceId").ToString()); - Console.WriteLine(result.GetProperty("assignedResources")[0].GetProperty("region").ToString()); + Console.WriteLine(result.GetProperty("jobId").ToString()); + Console.WriteLine(result.GetProperty("createdOn").ToString()); + Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); + Console.WriteLine(result.GetProperty("expiresOn").ToString()); + Console.WriteLine(result.GetProperty("status").ToString()); + Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("message").ToString()); + Console.WriteLine(result.GetProperty("errors")[0].GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("errors")[0].GetProperty("message").ToString()); + Console.WriteLine(result.GetProperty("errors")[0].GetProperty("target").ToString()); + Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("message").ToString()); + Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("target").ToString()); + Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("message").ToString()); + Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("details").GetProperty("").ToString()); + Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("target").ToString()); + Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("message").ToString()); + Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("details").GetProperty("").ToString()); + Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("target").ToString()); + Console.WriteLine(result.GetProperty("resultUrl").ToString()); } [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoringProjectDeployment_GetDeployment_AllParameters_Async() + public async Task Example_AnalyzeConversationAuthoringExportProjectJobState_GetExportStatus_AllParameters_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); - Response response = await client.GetDeploymentAsync("", "", null); + Response response = await client.GetExportStatusAsync("", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; - Console.WriteLine(result.GetProperty("deploymentName").ToString()); - Console.WriteLine(result.GetProperty("modelId").ToString()); - Console.WriteLine(result.GetProperty("lastTrainedDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastDeployedDateTime").ToString()); - Console.WriteLine(result.GetProperty("deploymentExpirationDate").ToString()); - Console.WriteLine(result.GetProperty("modelTrainingConfigVersion").ToString()); - Console.WriteLine(result.GetProperty("assignedResources")[0].GetProperty("resourceId").ToString()); - Console.WriteLine(result.GetProperty("assignedResources")[0].GetProperty("region").ToString()); + Console.WriteLine(result.GetProperty("jobId").ToString()); + Console.WriteLine(result.GetProperty("createdOn").ToString()); + Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); + Console.WriteLine(result.GetProperty("expiresOn").ToString()); + Console.WriteLine(result.GetProperty("status").ToString()); + Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("message").ToString()); + Console.WriteLine(result.GetProperty("errors")[0].GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("errors")[0].GetProperty("message").ToString()); + Console.WriteLine(result.GetProperty("errors")[0].GetProperty("target").ToString()); + Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("message").ToString()); + Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("target").ToString()); + Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("message").ToString()); + Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("details").GetProperty("").ToString()); + Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("target").ToString()); + Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("message").ToString()); + Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("details").GetProperty("").ToString()); + Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("target").ToString()); + Console.WriteLine(result.GetProperty("resultUrl").ToString()); } [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoringProjectDeployment_GetDeployment_AllParameters_Convenience() + public void Example_AnalyzeConversationAuthoringExportProjectJobState_GetExportStatus_AllParameters_Convenience() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); - Response response = client.GetDeployment("", ""); + Response response = client.GetExportStatus("", ""); } [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoringProjectDeployment_GetDeployment_AllParameters_Convenience_Async() + public async Task Example_AnalyzeConversationAuthoringExportProjectJobState_GetExportStatus_AllParameters_Convenience_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); - Response response = await client.GetDeploymentAsync("", ""); + Response response = await client.GetExportStatusAsync("", ""); } [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoringDeploymentDeleteFromResourcesJobState_GetDeploymentDeleteFromResourcesStatus_ShortVersion() + public void Example_AnalyzeConversationAuthoringImportProjectJobState_GetImportStatus_ShortVersion() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); - Response response = client.GetDeploymentDeleteFromResourcesStatus("", "", "", null); + Response response = client.GetImportStatus("", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("jobId").ToString()); - Console.WriteLine(result.GetProperty("createdDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); + Console.WriteLine(result.GetProperty("createdOn").ToString()); + Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); } [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoringDeploymentDeleteFromResourcesJobState_GetDeploymentDeleteFromResourcesStatus_ShortVersion_Async() + public async Task Example_AnalyzeConversationAuthoringImportProjectJobState_GetImportStatus_ShortVersion_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); - Response response = await client.GetDeploymentDeleteFromResourcesStatusAsync("", "", "", null); + Response response = await client.GetImportStatusAsync("", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("jobId").ToString()); - Console.WriteLine(result.GetProperty("createdDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); + Console.WriteLine(result.GetProperty("createdOn").ToString()); + Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); } [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoringDeploymentDeleteFromResourcesJobState_GetDeploymentDeleteFromResourcesStatus_ShortVersion_Convenience() + public void Example_AnalyzeConversationAuthoringImportProjectJobState_GetImportStatus_ShortVersion_Convenience() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); - Response response = client.GetDeploymentDeleteFromResourcesStatus("", "", ""); + Response response = client.GetImportStatus("", ""); } [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoringDeploymentDeleteFromResourcesJobState_GetDeploymentDeleteFromResourcesStatus_ShortVersion_Convenience_Async() + public async Task Example_AnalyzeConversationAuthoringImportProjectJobState_GetImportStatus_ShortVersion_Convenience_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); - Response response = await client.GetDeploymentDeleteFromResourcesStatusAsync("", "", ""); + Response response = await client.GetImportStatusAsync("", ""); } [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoringDeploymentDeleteFromResourcesJobState_GetDeploymentDeleteFromResourcesStatus_AllParameters() + public void Example_AnalyzeConversationAuthoringImportProjectJobState_GetImportStatus_AllParameters() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); - Response response = client.GetDeploymentDeleteFromResourcesStatus("", "", "", null); + Response response = client.GetImportStatus("", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("jobId").ToString()); - Console.WriteLine(result.GetProperty("createdDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); - Console.WriteLine(result.GetProperty("expirationDateTime").ToString()); + Console.WriteLine(result.GetProperty("createdOn").ToString()); + Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); + Console.WriteLine(result.GetProperty("expiresOn").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("message").ToString()); @@ -773,19 +939,19 @@ public void Example_AnalyzeConversationAuthoringDeploymentDeleteFromResourcesJob [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoringDeploymentDeleteFromResourcesJobState_GetDeploymentDeleteFromResourcesStatus_AllParameters_Async() + public async Task Example_AnalyzeConversationAuthoringImportProjectJobState_GetImportStatus_AllParameters_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); - Response response = await client.GetDeploymentDeleteFromResourcesStatusAsync("", "", "", null); + Response response = await client.GetImportStatusAsync("", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("jobId").ToString()); - Console.WriteLine(result.GetProperty("createdDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); - Console.WriteLine(result.GetProperty("expirationDateTime").ToString()); + Console.WriteLine(result.GetProperty("createdOn").ToString()); + Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); + Console.WriteLine(result.GetProperty("expiresOn").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("message").ToString()); @@ -807,97 +973,105 @@ public async Task Example_AnalyzeConversationAuthoringDeploymentDeleteFromResour [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoringDeploymentDeleteFromResourcesJobState_GetDeploymentDeleteFromResourcesStatus_AllParameters_Convenience() + public void Example_AnalyzeConversationAuthoringImportProjectJobState_GetImportStatus_AllParameters_Convenience() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); - Response response = client.GetDeploymentDeleteFromResourcesStatus("", "", ""); + Response response = client.GetImportStatus("", ""); } [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoringDeploymentDeleteFromResourcesJobState_GetDeploymentDeleteFromResourcesStatus_AllParameters_Convenience_Async() + public async Task Example_AnalyzeConversationAuthoringImportProjectJobState_GetImportStatus_AllParameters_Convenience_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); - Response response = await client.GetDeploymentDeleteFromResourcesStatusAsync("", "", ""); + Response response = await client.GetImportStatusAsync("", ""); } [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoringDeploymentJobState_GetDeploymentStatus_ShortVersion() + public void Example_AnalyzeConversationAuthoringTrainingJobState_GetTrainingStatus_ShortVersion() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); - Response response = client.GetDeploymentStatus("", "", "", null); + Response response = client.GetTrainingStatus("", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("jobId").ToString()); - Console.WriteLine(result.GetProperty("createdDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); + Console.WriteLine(result.GetProperty("createdOn").ToString()); + Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); - } - + Console.WriteLine(result.GetProperty("result").GetProperty("modelLabel").ToString()); + Console.WriteLine(result.GetProperty("result").GetProperty("trainingConfigVersion").ToString()); + Console.WriteLine(result.GetProperty("result").GetProperty("trainingStatus").GetProperty("percentComplete").ToString()); + Console.WriteLine(result.GetProperty("result").GetProperty("trainingStatus").GetProperty("status").ToString()); + } + [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoringDeploymentJobState_GetDeploymentStatus_ShortVersion_Async() + public async Task Example_AnalyzeConversationAuthoringTrainingJobState_GetTrainingStatus_ShortVersion_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); - Response response = await client.GetDeploymentStatusAsync("", "", "", null); + Response response = await client.GetTrainingStatusAsync("", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("jobId").ToString()); - Console.WriteLine(result.GetProperty("createdDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); + Console.WriteLine(result.GetProperty("createdOn").ToString()); + Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); + Console.WriteLine(result.GetProperty("result").GetProperty("modelLabel").ToString()); + Console.WriteLine(result.GetProperty("result").GetProperty("trainingConfigVersion").ToString()); + Console.WriteLine(result.GetProperty("result").GetProperty("trainingStatus").GetProperty("percentComplete").ToString()); + Console.WriteLine(result.GetProperty("result").GetProperty("trainingStatus").GetProperty("status").ToString()); } [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoringDeploymentJobState_GetDeploymentStatus_ShortVersion_Convenience() + public void Example_AnalyzeConversationAuthoringTrainingJobState_GetTrainingStatus_ShortVersion_Convenience() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); - Response response = client.GetDeploymentStatus("", "", ""); + Response response = client.GetTrainingStatus("", ""); } [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoringDeploymentJobState_GetDeploymentStatus_ShortVersion_Convenience_Async() + public async Task Example_AnalyzeConversationAuthoringTrainingJobState_GetTrainingStatus_ShortVersion_Convenience_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); - Response response = await client.GetDeploymentStatusAsync("", "", ""); + Response response = await client.GetTrainingStatusAsync("", ""); } [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoringDeploymentJobState_GetDeploymentStatus_AllParameters() + public void Example_AnalyzeConversationAuthoringTrainingJobState_GetTrainingStatus_AllParameters() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); - Response response = client.GetDeploymentStatus("", "", "", null); + Response response = client.GetTrainingStatus("", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("jobId").ToString()); - Console.WriteLine(result.GetProperty("createdDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); - Console.WriteLine(result.GetProperty("expirationDateTime").ToString()); + Console.WriteLine(result.GetProperty("createdOn").ToString()); + Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); + Console.WriteLine(result.GetProperty("expiresOn").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("message").ToString()); @@ -915,23 +1089,35 @@ public void Example_AnalyzeConversationAuthoringDeploymentJobState_GetDeployment Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("message").ToString()); Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("details").GetProperty("").ToString()); Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("target").ToString()); + Console.WriteLine(result.GetProperty("result").GetProperty("modelLabel").ToString()); + Console.WriteLine(result.GetProperty("result").GetProperty("trainingConfigVersion").ToString()); + Console.WriteLine(result.GetProperty("result").GetProperty("trainingMode").ToString()); + Console.WriteLine(result.GetProperty("result").GetProperty("trainingStatus").GetProperty("percentComplete").ToString()); + Console.WriteLine(result.GetProperty("result").GetProperty("trainingStatus").GetProperty("startedOn").ToString()); + Console.WriteLine(result.GetProperty("result").GetProperty("trainingStatus").GetProperty("endedOn").ToString()); + Console.WriteLine(result.GetProperty("result").GetProperty("trainingStatus").GetProperty("status").ToString()); + Console.WriteLine(result.GetProperty("result").GetProperty("evaluationStatus").GetProperty("percentComplete").ToString()); + Console.WriteLine(result.GetProperty("result").GetProperty("evaluationStatus").GetProperty("startedOn").ToString()); + Console.WriteLine(result.GetProperty("result").GetProperty("evaluationStatus").GetProperty("endedOn").ToString()); + Console.WriteLine(result.GetProperty("result").GetProperty("evaluationStatus").GetProperty("status").ToString()); + Console.WriteLine(result.GetProperty("result").GetProperty("estimatedEndOn").ToString()); } [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoringDeploymentJobState_GetDeploymentStatus_AllParameters_Async() + public async Task Example_AnalyzeConversationAuthoringTrainingJobState_GetTrainingStatus_AllParameters_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); - Response response = await client.GetDeploymentStatusAsync("", "", "", null); + Response response = await client.GetTrainingStatusAsync("", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("jobId").ToString()); - Console.WriteLine(result.GetProperty("createdDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); - Console.WriteLine(result.GetProperty("expirationDateTime").ToString()); + Console.WriteLine(result.GetProperty("createdOn").ToString()); + Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); + Console.WriteLine(result.GetProperty("expiresOn").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("message").ToString()); @@ -949,28 +1135,40 @@ public async Task Example_AnalyzeConversationAuthoringDeploymentJobState_GetDepl Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("message").ToString()); Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("details").GetProperty("").ToString()); Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("target").ToString()); + Console.WriteLine(result.GetProperty("result").GetProperty("modelLabel").ToString()); + Console.WriteLine(result.GetProperty("result").GetProperty("trainingConfigVersion").ToString()); + Console.WriteLine(result.GetProperty("result").GetProperty("trainingMode").ToString()); + Console.WriteLine(result.GetProperty("result").GetProperty("trainingStatus").GetProperty("percentComplete").ToString()); + Console.WriteLine(result.GetProperty("result").GetProperty("trainingStatus").GetProperty("startedOn").ToString()); + Console.WriteLine(result.GetProperty("result").GetProperty("trainingStatus").GetProperty("endedOn").ToString()); + Console.WriteLine(result.GetProperty("result").GetProperty("trainingStatus").GetProperty("status").ToString()); + Console.WriteLine(result.GetProperty("result").GetProperty("evaluationStatus").GetProperty("percentComplete").ToString()); + Console.WriteLine(result.GetProperty("result").GetProperty("evaluationStatus").GetProperty("startedOn").ToString()); + Console.WriteLine(result.GetProperty("result").GetProperty("evaluationStatus").GetProperty("endedOn").ToString()); + Console.WriteLine(result.GetProperty("result").GetProperty("evaluationStatus").GetProperty("status").ToString()); + Console.WriteLine(result.GetProperty("result").GetProperty("estimatedEndOn").ToString()); } [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoringDeploymentJobState_GetDeploymentStatus_AllParameters_Convenience() + public void Example_AnalyzeConversationAuthoringTrainingJobState_GetTrainingStatus_AllParameters_Convenience() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); - Response response = client.GetDeploymentStatus("", "", ""); + Response response = client.GetTrainingStatus("", ""); } [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoringDeploymentJobState_GetDeploymentStatus_AllParameters_Convenience_Async() + public async Task Example_AnalyzeConversationAuthoringTrainingJobState_GetTrainingStatus_AllParameters_Convenience_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); - Response response = await client.GetDeploymentStatusAsync("", "", ""); + Response response = await client.GetTrainingStatusAsync("", ""); } [Test] @@ -979,14 +1177,14 @@ public void Example_AnalyzeConversationAuthoringSwapDeploymentsJobState_GetSwapD { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetSwapDeploymentsStatus("", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("jobId").ToString()); - Console.WriteLine(result.GetProperty("createdDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); + Console.WriteLine(result.GetProperty("createdOn").ToString()); + Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); } @@ -996,14 +1194,14 @@ public async Task Example_AnalyzeConversationAuthoringSwapDeploymentsJobState_Ge { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetSwapDeploymentsStatusAsync("", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("jobId").ToString()); - Console.WriteLine(result.GetProperty("createdDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); + Console.WriteLine(result.GetProperty("createdOn").ToString()); + Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); } @@ -1013,7 +1211,7 @@ public void Example_AnalyzeConversationAuthoringSwapDeploymentsJobState_GetSwapD { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetSwapDeploymentsStatus("", ""); } @@ -1024,7 +1222,7 @@ public async Task Example_AnalyzeConversationAuthoringSwapDeploymentsJobState_Ge { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetSwapDeploymentsStatusAsync("", ""); } @@ -1035,15 +1233,15 @@ public void Example_AnalyzeConversationAuthoringSwapDeploymentsJobState_GetSwapD { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetSwapDeploymentsStatus("", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("jobId").ToString()); - Console.WriteLine(result.GetProperty("createdDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); - Console.WriteLine(result.GetProperty("expirationDateTime").ToString()); + Console.WriteLine(result.GetProperty("createdOn").ToString()); + Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); + Console.WriteLine(result.GetProperty("expiresOn").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("message").ToString()); @@ -1069,15 +1267,15 @@ public async Task Example_AnalyzeConversationAuthoringSwapDeploymentsJobState_Ge { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetSwapDeploymentsStatusAsync("", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("jobId").ToString()); - Console.WriteLine(result.GetProperty("createdDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); - Console.WriteLine(result.GetProperty("expirationDateTime").ToString()); + Console.WriteLine(result.GetProperty("createdOn").ToString()); + Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); + Console.WriteLine(result.GetProperty("expiresOn").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("message").ToString()); @@ -1103,7 +1301,7 @@ public void Example_AnalyzeConversationAuthoringSwapDeploymentsJobState_GetSwapD { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetSwapDeploymentsStatus("", ""); } @@ -1114,82 +1312,210 @@ public async Task Example_AnalyzeConversationAuthoringSwapDeploymentsJobState_Ge { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetSwapDeploymentsStatusAsync("", ""); } [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoringExportProjectJobState_GetExportStatus_ShortVersion() + public void Example_AnalyzeConversationAuthoringProjectDeployment_GetDeployment_ShortVersion() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); - Response response = client.GetExportStatus("", "", null); + Response response = client.GetDeployment("", "", null); + + JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; + Console.WriteLine(result.GetProperty("deploymentName").ToString()); + Console.WriteLine(result.GetProperty("modelId").ToString()); + Console.WriteLine(result.GetProperty("lastTrainedOn").ToString()); + Console.WriteLine(result.GetProperty("lastDeployedOn").ToString()); + Console.WriteLine(result.GetProperty("deploymentExpirationDate").ToString()); + Console.WriteLine(result.GetProperty("modelTrainingConfigVersion").ToString()); + Console.WriteLine(result.GetProperty("assignedResources")[0].GetProperty("resourceId").ToString()); + Console.WriteLine(result.GetProperty("assignedResources")[0].GetProperty("region").ToString()); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Example_AnalyzeConversationAuthoringProjectDeployment_GetDeployment_ShortVersion_Async() + { + Uri endpoint = new Uri(""); + AzureKeyCredential credential = new AzureKeyCredential(""); + AuthoringClient client = new AuthoringClient(endpoint, credential); + + Response response = await client.GetDeploymentAsync("", "", null); + + JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; + Console.WriteLine(result.GetProperty("deploymentName").ToString()); + Console.WriteLine(result.GetProperty("modelId").ToString()); + Console.WriteLine(result.GetProperty("lastTrainedOn").ToString()); + Console.WriteLine(result.GetProperty("lastDeployedOn").ToString()); + Console.WriteLine(result.GetProperty("deploymentExpirationDate").ToString()); + Console.WriteLine(result.GetProperty("modelTrainingConfigVersion").ToString()); + Console.WriteLine(result.GetProperty("assignedResources")[0].GetProperty("resourceId").ToString()); + Console.WriteLine(result.GetProperty("assignedResources")[0].GetProperty("region").ToString()); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public void Example_AnalyzeConversationAuthoringProjectDeployment_GetDeployment_ShortVersion_Convenience() + { + Uri endpoint = new Uri(""); + AzureKeyCredential credential = new AzureKeyCredential(""); + AuthoringClient client = new AuthoringClient(endpoint, credential); + + Response response = client.GetDeployment("", ""); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Example_AnalyzeConversationAuthoringProjectDeployment_GetDeployment_ShortVersion_Convenience_Async() + { + Uri endpoint = new Uri(""); + AzureKeyCredential credential = new AzureKeyCredential(""); + AuthoringClient client = new AuthoringClient(endpoint, credential); + + Response response = await client.GetDeploymentAsync("", ""); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public void Example_AnalyzeConversationAuthoringProjectDeployment_GetDeployment_AllParameters() + { + Uri endpoint = new Uri(""); + AzureKeyCredential credential = new AzureKeyCredential(""); + AuthoringClient client = new AuthoringClient(endpoint, credential); + + Response response = client.GetDeployment("", "", null); + + JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; + Console.WriteLine(result.GetProperty("deploymentName").ToString()); + Console.WriteLine(result.GetProperty("modelId").ToString()); + Console.WriteLine(result.GetProperty("lastTrainedOn").ToString()); + Console.WriteLine(result.GetProperty("lastDeployedOn").ToString()); + Console.WriteLine(result.GetProperty("deploymentExpirationDate").ToString()); + Console.WriteLine(result.GetProperty("modelTrainingConfigVersion").ToString()); + Console.WriteLine(result.GetProperty("assignedResources")[0].GetProperty("resourceId").ToString()); + Console.WriteLine(result.GetProperty("assignedResources")[0].GetProperty("region").ToString()); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Example_AnalyzeConversationAuthoringProjectDeployment_GetDeployment_AllParameters_Async() + { + Uri endpoint = new Uri(""); + AzureKeyCredential credential = new AzureKeyCredential(""); + AuthoringClient client = new AuthoringClient(endpoint, credential); + + Response response = await client.GetDeploymentAsync("", "", null); + + JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; + Console.WriteLine(result.GetProperty("deploymentName").ToString()); + Console.WriteLine(result.GetProperty("modelId").ToString()); + Console.WriteLine(result.GetProperty("lastTrainedOn").ToString()); + Console.WriteLine(result.GetProperty("lastDeployedOn").ToString()); + Console.WriteLine(result.GetProperty("deploymentExpirationDate").ToString()); + Console.WriteLine(result.GetProperty("modelTrainingConfigVersion").ToString()); + Console.WriteLine(result.GetProperty("assignedResources")[0].GetProperty("resourceId").ToString()); + Console.WriteLine(result.GetProperty("assignedResources")[0].GetProperty("region").ToString()); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public void Example_AnalyzeConversationAuthoringProjectDeployment_GetDeployment_AllParameters_Convenience() + { + Uri endpoint = new Uri(""); + AzureKeyCredential credential = new AzureKeyCredential(""); + AuthoringClient client = new AuthoringClient(endpoint, credential); + + Response response = client.GetDeployment("", ""); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Example_AnalyzeConversationAuthoringProjectDeployment_GetDeployment_AllParameters_Convenience_Async() + { + Uri endpoint = new Uri(""); + AzureKeyCredential credential = new AzureKeyCredential(""); + AuthoringClient client = new AuthoringClient(endpoint, credential); + + Response response = await client.GetDeploymentAsync("", ""); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public void Example_AnalyzeConversationAuthoringDeploymentJobState_GetDeploymentStatus_ShortVersion() + { + Uri endpoint = new Uri(""); + AzureKeyCredential credential = new AzureKeyCredential(""); + AuthoringClient client = new AuthoringClient(endpoint, credential); + + Response response = client.GetDeploymentStatus("", "", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("jobId").ToString()); - Console.WriteLine(result.GetProperty("createdDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); + Console.WriteLine(result.GetProperty("createdOn").ToString()); + Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); } [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoringExportProjectJobState_GetExportStatus_ShortVersion_Async() + public async Task Example_AnalyzeConversationAuthoringDeploymentJobState_GetDeploymentStatus_ShortVersion_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); - Response response = await client.GetExportStatusAsync("", "", null); + Response response = await client.GetDeploymentStatusAsync("", "", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("jobId").ToString()); - Console.WriteLine(result.GetProperty("createdDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); + Console.WriteLine(result.GetProperty("createdOn").ToString()); + Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); } [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoringExportProjectJobState_GetExportStatus_ShortVersion_Convenience() + public void Example_AnalyzeConversationAuthoringDeploymentJobState_GetDeploymentStatus_ShortVersion_Convenience() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); - Response response = client.GetExportStatus("", ""); + Response response = client.GetDeploymentStatus("", "", ""); } [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoringExportProjectJobState_GetExportStatus_ShortVersion_Convenience_Async() + public async Task Example_AnalyzeConversationAuthoringDeploymentJobState_GetDeploymentStatus_ShortVersion_Convenience_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); - Response response = await client.GetExportStatusAsync("", ""); + Response response = await client.GetDeploymentStatusAsync("", "", ""); } [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoringExportProjectJobState_GetExportStatus_AllParameters() + public void Example_AnalyzeConversationAuthoringDeploymentJobState_GetDeploymentStatus_AllParameters() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); - Response response = client.GetExportStatus("", "", null); + Response response = client.GetDeploymentStatus("", "", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("jobId").ToString()); - Console.WriteLine(result.GetProperty("createdDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); - Console.WriteLine(result.GetProperty("expirationDateTime").ToString()); + Console.WriteLine(result.GetProperty("createdOn").ToString()); + Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); + Console.WriteLine(result.GetProperty("expiresOn").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("message").ToString()); @@ -1207,24 +1533,23 @@ public void Example_AnalyzeConversationAuthoringExportProjectJobState_GetExportS Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("message").ToString()); Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("details").GetProperty("").ToString()); Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("target").ToString()); - Console.WriteLine(result.GetProperty("resultUrl").ToString()); } [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoringExportProjectJobState_GetExportStatus_AllParameters_Async() + public async Task Example_AnalyzeConversationAuthoringDeploymentJobState_GetDeploymentStatus_AllParameters_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); - Response response = await client.GetExportStatusAsync("", "", null); + Response response = await client.GetDeploymentStatusAsync("", "", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("jobId").ToString()); - Console.WriteLine(result.GetProperty("createdDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); - Console.WriteLine(result.GetProperty("expirationDateTime").ToString()); + Console.WriteLine(result.GetProperty("createdOn").ToString()); + Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); + Console.WriteLine(result.GetProperty("expiresOn").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("message").ToString()); @@ -1242,102 +1567,101 @@ public async Task Example_AnalyzeConversationAuthoringExportProjectJobState_GetE Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("message").ToString()); Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("details").GetProperty("").ToString()); Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("target").ToString()); - Console.WriteLine(result.GetProperty("resultUrl").ToString()); } [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoringExportProjectJobState_GetExportStatus_AllParameters_Convenience() + public void Example_AnalyzeConversationAuthoringDeploymentJobState_GetDeploymentStatus_AllParameters_Convenience() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); - Response response = client.GetExportStatus("", ""); + Response response = client.GetDeploymentStatus("", "", ""); } [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoringExportProjectJobState_GetExportStatus_AllParameters_Convenience_Async() + public async Task Example_AnalyzeConversationAuthoringDeploymentJobState_GetDeploymentStatus_AllParameters_Convenience_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); - Response response = await client.GetExportStatusAsync("", ""); + Response response = await client.GetDeploymentStatusAsync("", "", ""); } [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoringImportProjectJobState_GetImportStatus_ShortVersion() + public void Example_AnalyzeConversationAuthoringDeploymentDeleteFromResourcesJobState_GetDeploymentDeleteFromResourcesStatus_ShortVersion() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); - Response response = client.GetImportStatus("", "", null); + Response response = client.GetDeploymentDeleteFromResourcesStatus("", "", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("jobId").ToString()); - Console.WriteLine(result.GetProperty("createdDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); + Console.WriteLine(result.GetProperty("createdOn").ToString()); + Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); } [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoringImportProjectJobState_GetImportStatus_ShortVersion_Async() + public async Task Example_AnalyzeConversationAuthoringDeploymentDeleteFromResourcesJobState_GetDeploymentDeleteFromResourcesStatus_ShortVersion_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); - Response response = await client.GetImportStatusAsync("", "", null); + Response response = await client.GetDeploymentDeleteFromResourcesStatusAsync("", "", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("jobId").ToString()); - Console.WriteLine(result.GetProperty("createdDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); + Console.WriteLine(result.GetProperty("createdOn").ToString()); + Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); } [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoringImportProjectJobState_GetImportStatus_ShortVersion_Convenience() + public void Example_AnalyzeConversationAuthoringDeploymentDeleteFromResourcesJobState_GetDeploymentDeleteFromResourcesStatus_ShortVersion_Convenience() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); - Response response = client.GetImportStatus("", ""); + Response response = client.GetDeploymentDeleteFromResourcesStatus("", "", ""); } [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoringImportProjectJobState_GetImportStatus_ShortVersion_Convenience_Async() + public async Task Example_AnalyzeConversationAuthoringDeploymentDeleteFromResourcesJobState_GetDeploymentDeleteFromResourcesStatus_ShortVersion_Convenience_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); - Response response = await client.GetImportStatusAsync("", ""); + Response response = await client.GetDeploymentDeleteFromResourcesStatusAsync("", "", ""); } [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoringImportProjectJobState_GetImportStatus_AllParameters() + public void Example_AnalyzeConversationAuthoringDeploymentDeleteFromResourcesJobState_GetDeploymentDeleteFromResourcesStatus_AllParameters() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); - Response response = client.GetImportStatus("", "", null); + Response response = client.GetDeploymentDeleteFromResourcesStatus("", "", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("jobId").ToString()); - Console.WriteLine(result.GetProperty("createdDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); - Console.WriteLine(result.GetProperty("expirationDateTime").ToString()); + Console.WriteLine(result.GetProperty("createdOn").ToString()); + Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); + Console.WriteLine(result.GetProperty("expiresOn").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("message").ToString()); @@ -1359,19 +1683,19 @@ public void Example_AnalyzeConversationAuthoringImportProjectJobState_GetImportS [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoringImportProjectJobState_GetImportStatus_AllParameters_Async() + public async Task Example_AnalyzeConversationAuthoringDeploymentDeleteFromResourcesJobState_GetDeploymentDeleteFromResourcesStatus_AllParameters_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); - Response response = await client.GetImportStatusAsync("", "", null); + Response response = await client.GetDeploymentDeleteFromResourcesStatusAsync("", "", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("jobId").ToString()); - Console.WriteLine(result.GetProperty("createdDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); - Console.WriteLine(result.GetProperty("expirationDateTime").ToString()); + Console.WriteLine(result.GetProperty("createdOn").ToString()); + Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); + Console.WriteLine(result.GetProperty("expiresOn").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("message").ToString()); @@ -1393,24 +1717,24 @@ public async Task Example_AnalyzeConversationAuthoringImportProjectJobState_GetI [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoringImportProjectJobState_GetImportStatus_AllParameters_Convenience() + public void Example_AnalyzeConversationAuthoringDeploymentDeleteFromResourcesJobState_GetDeploymentDeleteFromResourcesStatus_AllParameters_Convenience() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); - Response response = client.GetImportStatus("", ""); + Response response = client.GetDeploymentDeleteFromResourcesStatus("", "", ""); } [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoringImportProjectJobState_GetImportStatus_AllParameters_Convenience_Async() + public async Task Example_AnalyzeConversationAuthoringDeploymentDeleteFromResourcesJobState_GetDeploymentDeleteFromResourcesStatus_AllParameters_Convenience_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); - Response response = await client.GetImportStatusAsync("", ""); + Response response = await client.GetDeploymentDeleteFromResourcesStatusAsync("", "", ""); } [Test] @@ -1419,14 +1743,14 @@ public void Example_AnalyzeConversationAuthoringProjectTrainedModel_GetTrainedMo { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetTrainedModel("", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("label").ToString()); Console.WriteLine(result.GetProperty("modelId").ToString()); - Console.WriteLine(result.GetProperty("lastTrainedDateTime").ToString()); + Console.WriteLine(result.GetProperty("lastTrainedOn").ToString()); Console.WriteLine(result.GetProperty("lastTrainingDurationInSeconds").ToString()); Console.WriteLine(result.GetProperty("modelExpirationDate").ToString()); Console.WriteLine(result.GetProperty("modelTrainingConfigVersion").ToString()); @@ -1439,14 +1763,14 @@ public async Task Example_AnalyzeConversationAuthoringProjectTrainedModel_GetTra { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetTrainedModelAsync("", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("label").ToString()); Console.WriteLine(result.GetProperty("modelId").ToString()); - Console.WriteLine(result.GetProperty("lastTrainedDateTime").ToString()); + Console.WriteLine(result.GetProperty("lastTrainedOn").ToString()); Console.WriteLine(result.GetProperty("lastTrainingDurationInSeconds").ToString()); Console.WriteLine(result.GetProperty("modelExpirationDate").ToString()); Console.WriteLine(result.GetProperty("modelTrainingConfigVersion").ToString()); @@ -1459,7 +1783,7 @@ public void Example_AnalyzeConversationAuthoringProjectTrainedModel_GetTrainedMo { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetTrainedModel("", ""); } @@ -1470,7 +1794,7 @@ public async Task Example_AnalyzeConversationAuthoringProjectTrainedModel_GetTra { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetTrainedModelAsync("", ""); } @@ -1481,14 +1805,14 @@ public void Example_AnalyzeConversationAuthoringProjectTrainedModel_GetTrainedMo { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetTrainedModel("", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("label").ToString()); Console.WriteLine(result.GetProperty("modelId").ToString()); - Console.WriteLine(result.GetProperty("lastTrainedDateTime").ToString()); + Console.WriteLine(result.GetProperty("lastTrainedOn").ToString()); Console.WriteLine(result.GetProperty("lastTrainingDurationInSeconds").ToString()); Console.WriteLine(result.GetProperty("modelExpirationDate").ToString()); Console.WriteLine(result.GetProperty("modelTrainingConfigVersion").ToString()); @@ -1501,14 +1825,14 @@ public async Task Example_AnalyzeConversationAuthoringProjectTrainedModel_GetTra { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetTrainedModelAsync("", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("label").ToString()); Console.WriteLine(result.GetProperty("modelId").ToString()); - Console.WriteLine(result.GetProperty("lastTrainedDateTime").ToString()); + Console.WriteLine(result.GetProperty("lastTrainedOn").ToString()); Console.WriteLine(result.GetProperty("lastTrainingDurationInSeconds").ToString()); Console.WriteLine(result.GetProperty("modelExpirationDate").ToString()); Console.WriteLine(result.GetProperty("modelTrainingConfigVersion").ToString()); @@ -1521,7 +1845,7 @@ public void Example_AnalyzeConversationAuthoringProjectTrainedModel_GetTrainedMo { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetTrainedModel("", ""); } @@ -1532,7 +1856,7 @@ public async Task Example_AnalyzeConversationAuthoringProjectTrainedModel_GetTra { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetTrainedModelAsync("", ""); } @@ -1543,7 +1867,7 @@ public void Example_AnalyzeConversationAuthoringProjectTrainedModel_DeleteTraine { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.DeleteTrainedModel("", ""); @@ -1556,7 +1880,7 @@ public async Task Example_AnalyzeConversationAuthoringProjectTrainedModel_Delete { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.DeleteTrainedModelAsync("", ""); @@ -1569,7 +1893,7 @@ public void Example_AnalyzeConversationAuthoringProjectTrainedModel_DeleteTraine { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.DeleteTrainedModel("", ""); @@ -1582,7 +1906,7 @@ public async Task Example_AnalyzeConversationAuthoringProjectTrainedModel_Delete { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.DeleteTrainedModelAsync("", ""); @@ -1595,14 +1919,14 @@ public void Example_AnalyzeConversationAuthoringEvaluationJobState_GetEvaluation { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetEvaluationStatus("", "", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("jobId").ToString()); - Console.WriteLine(result.GetProperty("createdDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); + Console.WriteLine(result.GetProperty("createdOn").ToString()); + Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); Console.WriteLine(result.GetProperty("result").GetProperty("evaluationOptions").ToString()); Console.WriteLine(result.GetProperty("result").GetProperty("modelLabel").ToString()); @@ -1616,14 +1940,14 @@ public async Task Example_AnalyzeConversationAuthoringEvaluationJobState_GetEval { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetEvaluationStatusAsync("", "", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("jobId").ToString()); - Console.WriteLine(result.GetProperty("createdDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); + Console.WriteLine(result.GetProperty("createdOn").ToString()); + Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); Console.WriteLine(result.GetProperty("result").GetProperty("evaluationOptions").ToString()); Console.WriteLine(result.GetProperty("result").GetProperty("modelLabel").ToString()); @@ -1637,7 +1961,7 @@ public void Example_AnalyzeConversationAuthoringEvaluationJobState_GetEvaluation { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetEvaluationStatus("", "", ""); } @@ -1648,7 +1972,7 @@ public async Task Example_AnalyzeConversationAuthoringEvaluationJobState_GetEval { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetEvaluationStatusAsync("", "", ""); } @@ -1659,15 +1983,15 @@ public void Example_AnalyzeConversationAuthoringEvaluationJobState_GetEvaluation { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetEvaluationStatus("", "", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("jobId").ToString()); - Console.WriteLine(result.GetProperty("createdDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); - Console.WriteLine(result.GetProperty("expirationDateTime").ToString()); + Console.WriteLine(result.GetProperty("createdOn").ToString()); + Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); + Console.WriteLine(result.GetProperty("expiresOn").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("message").ToString()); @@ -1699,15 +2023,15 @@ public async Task Example_AnalyzeConversationAuthoringEvaluationJobState_GetEval { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetEvaluationStatusAsync("", "", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("jobId").ToString()); - Console.WriteLine(result.GetProperty("createdDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); - Console.WriteLine(result.GetProperty("expirationDateTime").ToString()); + Console.WriteLine(result.GetProperty("createdOn").ToString()); + Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); + Console.WriteLine(result.GetProperty("expiresOn").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("message").ToString()); @@ -1739,7 +2063,7 @@ public void Example_AnalyzeConversationAuthoringEvaluationJobState_GetEvaluation { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetEvaluationStatus("", "", ""); } @@ -1750,45 +2074,191 @@ public async Task Example_AnalyzeConversationAuthoringEvaluationJobState_GetEval { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetEvaluationStatusAsync("", "", ""); } [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoring_GetModelEvaluationSummary_ShortVersion() + public void Example_AnalyzeConversationAuthoringLoadSnapshotJobState_GetLoadSnapshotStatus_ShortVersion() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); - Response response = client.GetModelEvaluationSummary("", "", null); + Response response = client.GetLoadSnapshotStatus("", "", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; - Console.WriteLine(result.GetProperty("entitiesEvaluation").GetProperty("confusionMatrix").ToString()); - Console.WriteLine(result.GetProperty("entitiesEvaluation").GetProperty("entities").GetProperty("").GetProperty("f1").ToString()); - Console.WriteLine(result.GetProperty("entitiesEvaluation").GetProperty("entities").GetProperty("").GetProperty("precision").ToString()); - Console.WriteLine(result.GetProperty("entitiesEvaluation").GetProperty("entities").GetProperty("").GetProperty("recall").ToString()); - Console.WriteLine(result.GetProperty("entitiesEvaluation").GetProperty("entities").GetProperty("").GetProperty("truePositiveCount").ToString()); - Console.WriteLine(result.GetProperty("entitiesEvaluation").GetProperty("entities").GetProperty("").GetProperty("trueNegativeCount").ToString()); - Console.WriteLine(result.GetProperty("entitiesEvaluation").GetProperty("entities").GetProperty("").GetProperty("falsePositiveCount").ToString()); - Console.WriteLine(result.GetProperty("entitiesEvaluation").GetProperty("entities").GetProperty("").GetProperty("falseNegativeCount").ToString()); - Console.WriteLine(result.GetProperty("entitiesEvaluation").GetProperty("microF1").ToString()); - Console.WriteLine(result.GetProperty("entitiesEvaluation").GetProperty("microPrecision").ToString()); - Console.WriteLine(result.GetProperty("entitiesEvaluation").GetProperty("microRecall").ToString()); - Console.WriteLine(result.GetProperty("entitiesEvaluation").GetProperty("macroF1").ToString()); - Console.WriteLine(result.GetProperty("entitiesEvaluation").GetProperty("macroPrecision").ToString()); - Console.WriteLine(result.GetProperty("entitiesEvaluation").GetProperty("macroRecall").ToString()); - Console.WriteLine(result.GetProperty("intentsEvaluation").GetProperty("confusionMatrix").ToString()); - Console.WriteLine(result.GetProperty("intentsEvaluation").GetProperty("intents").GetProperty("").GetProperty("f1").ToString()); - Console.WriteLine(result.GetProperty("intentsEvaluation").GetProperty("intents").GetProperty("").GetProperty("precision").ToString()); - Console.WriteLine(result.GetProperty("intentsEvaluation").GetProperty("intents").GetProperty("").GetProperty("recall").ToString()); - Console.WriteLine(result.GetProperty("intentsEvaluation").GetProperty("intents").GetProperty("").GetProperty("truePositiveCount").ToString()); - Console.WriteLine(result.GetProperty("intentsEvaluation").GetProperty("intents").GetProperty("").GetProperty("trueNegativeCount").ToString()); - Console.WriteLine(result.GetProperty("intentsEvaluation").GetProperty("intents").GetProperty("").GetProperty("falsePositiveCount").ToString()); - Console.WriteLine(result.GetProperty("intentsEvaluation").GetProperty("intents").GetProperty("").GetProperty("falseNegativeCount").ToString()); - Console.WriteLine(result.GetProperty("intentsEvaluation").GetProperty("microF1").ToString()); + Console.WriteLine(result.GetProperty("jobId").ToString()); + Console.WriteLine(result.GetProperty("createdOn").ToString()); + Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); + Console.WriteLine(result.GetProperty("status").ToString()); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Example_AnalyzeConversationAuthoringLoadSnapshotJobState_GetLoadSnapshotStatus_ShortVersion_Async() + { + Uri endpoint = new Uri(""); + AzureKeyCredential credential = new AzureKeyCredential(""); + AuthoringClient client = new AuthoringClient(endpoint, credential); + + Response response = await client.GetLoadSnapshotStatusAsync("", "", "", null); + + JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; + Console.WriteLine(result.GetProperty("jobId").ToString()); + Console.WriteLine(result.GetProperty("createdOn").ToString()); + Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); + Console.WriteLine(result.GetProperty("status").ToString()); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public void Example_AnalyzeConversationAuthoringLoadSnapshotJobState_GetLoadSnapshotStatus_ShortVersion_Convenience() + { + Uri endpoint = new Uri(""); + AzureKeyCredential credential = new AzureKeyCredential(""); + AuthoringClient client = new AuthoringClient(endpoint, credential); + + Response response = client.GetLoadSnapshotStatus("", "", ""); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Example_AnalyzeConversationAuthoringLoadSnapshotJobState_GetLoadSnapshotStatus_ShortVersion_Convenience_Async() + { + Uri endpoint = new Uri(""); + AzureKeyCredential credential = new AzureKeyCredential(""); + AuthoringClient client = new AuthoringClient(endpoint, credential); + + Response response = await client.GetLoadSnapshotStatusAsync("", "", ""); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public void Example_AnalyzeConversationAuthoringLoadSnapshotJobState_GetLoadSnapshotStatus_AllParameters() + { + Uri endpoint = new Uri(""); + AzureKeyCredential credential = new AzureKeyCredential(""); + AuthoringClient client = new AuthoringClient(endpoint, credential); + + Response response = client.GetLoadSnapshotStatus("", "", "", null); + + JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; + Console.WriteLine(result.GetProperty("jobId").ToString()); + Console.WriteLine(result.GetProperty("createdOn").ToString()); + Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); + Console.WriteLine(result.GetProperty("expiresOn").ToString()); + Console.WriteLine(result.GetProperty("status").ToString()); + Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("message").ToString()); + Console.WriteLine(result.GetProperty("errors")[0].GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("errors")[0].GetProperty("message").ToString()); + Console.WriteLine(result.GetProperty("errors")[0].GetProperty("target").ToString()); + Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("message").ToString()); + Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("target").ToString()); + Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("message").ToString()); + Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("details").GetProperty("").ToString()); + Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("target").ToString()); + Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("message").ToString()); + Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("details").GetProperty("").ToString()); + Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("target").ToString()); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Example_AnalyzeConversationAuthoringLoadSnapshotJobState_GetLoadSnapshotStatus_AllParameters_Async() + { + Uri endpoint = new Uri(""); + AzureKeyCredential credential = new AzureKeyCredential(""); + AuthoringClient client = new AuthoringClient(endpoint, credential); + + Response response = await client.GetLoadSnapshotStatusAsync("", "", "", null); + + JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; + Console.WriteLine(result.GetProperty("jobId").ToString()); + Console.WriteLine(result.GetProperty("createdOn").ToString()); + Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); + Console.WriteLine(result.GetProperty("expiresOn").ToString()); + Console.WriteLine(result.GetProperty("status").ToString()); + Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("message").ToString()); + Console.WriteLine(result.GetProperty("errors")[0].GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("errors")[0].GetProperty("message").ToString()); + Console.WriteLine(result.GetProperty("errors")[0].GetProperty("target").ToString()); + Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("message").ToString()); + Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("target").ToString()); + Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("message").ToString()); + Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("details").GetProperty("").ToString()); + Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("target").ToString()); + Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("code").ToString()); + Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("message").ToString()); + Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("details").GetProperty("").ToString()); + Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("target").ToString()); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public void Example_AnalyzeConversationAuthoringLoadSnapshotJobState_GetLoadSnapshotStatus_AllParameters_Convenience() + { + Uri endpoint = new Uri(""); + AzureKeyCredential credential = new AzureKeyCredential(""); + AuthoringClient client = new AuthoringClient(endpoint, credential); + + Response response = client.GetLoadSnapshotStatus("", "", ""); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Example_AnalyzeConversationAuthoringLoadSnapshotJobState_GetLoadSnapshotStatus_AllParameters_Convenience_Async() + { + Uri endpoint = new Uri(""); + AzureKeyCredential credential = new AzureKeyCredential(""); + AuthoringClient client = new AuthoringClient(endpoint, credential); + + Response response = await client.GetLoadSnapshotStatusAsync("", "", ""); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public void Example_Authoring_GetModelEvaluationSummary_ShortVersion() + { + Uri endpoint = new Uri(""); + AzureKeyCredential credential = new AzureKeyCredential(""); + AuthoringClient client = new AuthoringClient(endpoint, credential); + + Response response = client.GetModelEvaluationSummary("", "", null); + + JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; + Console.WriteLine(result.GetProperty("entitiesEvaluation").GetProperty("confusionMatrix").ToString()); + Console.WriteLine(result.GetProperty("entitiesEvaluation").GetProperty("entities").GetProperty("").GetProperty("f1").ToString()); + Console.WriteLine(result.GetProperty("entitiesEvaluation").GetProperty("entities").GetProperty("").GetProperty("precision").ToString()); + Console.WriteLine(result.GetProperty("entitiesEvaluation").GetProperty("entities").GetProperty("").GetProperty("recall").ToString()); + Console.WriteLine(result.GetProperty("entitiesEvaluation").GetProperty("entities").GetProperty("").GetProperty("truePositiveCount").ToString()); + Console.WriteLine(result.GetProperty("entitiesEvaluation").GetProperty("entities").GetProperty("").GetProperty("trueNegativeCount").ToString()); + Console.WriteLine(result.GetProperty("entitiesEvaluation").GetProperty("entities").GetProperty("").GetProperty("falsePositiveCount").ToString()); + Console.WriteLine(result.GetProperty("entitiesEvaluation").GetProperty("entities").GetProperty("").GetProperty("falseNegativeCount").ToString()); + Console.WriteLine(result.GetProperty("entitiesEvaluation").GetProperty("microF1").ToString()); + Console.WriteLine(result.GetProperty("entitiesEvaluation").GetProperty("microPrecision").ToString()); + Console.WriteLine(result.GetProperty("entitiesEvaluation").GetProperty("microRecall").ToString()); + Console.WriteLine(result.GetProperty("entitiesEvaluation").GetProperty("macroF1").ToString()); + Console.WriteLine(result.GetProperty("entitiesEvaluation").GetProperty("macroPrecision").ToString()); + Console.WriteLine(result.GetProperty("entitiesEvaluation").GetProperty("macroRecall").ToString()); + Console.WriteLine(result.GetProperty("intentsEvaluation").GetProperty("confusionMatrix").ToString()); + Console.WriteLine(result.GetProperty("intentsEvaluation").GetProperty("intents").GetProperty("").GetProperty("f1").ToString()); + Console.WriteLine(result.GetProperty("intentsEvaluation").GetProperty("intents").GetProperty("").GetProperty("precision").ToString()); + Console.WriteLine(result.GetProperty("intentsEvaluation").GetProperty("intents").GetProperty("").GetProperty("recall").ToString()); + Console.WriteLine(result.GetProperty("intentsEvaluation").GetProperty("intents").GetProperty("").GetProperty("truePositiveCount").ToString()); + Console.WriteLine(result.GetProperty("intentsEvaluation").GetProperty("intents").GetProperty("").GetProperty("trueNegativeCount").ToString()); + Console.WriteLine(result.GetProperty("intentsEvaluation").GetProperty("intents").GetProperty("").GetProperty("falsePositiveCount").ToString()); + Console.WriteLine(result.GetProperty("intentsEvaluation").GetProperty("intents").GetProperty("").GetProperty("falseNegativeCount").ToString()); + Console.WriteLine(result.GetProperty("intentsEvaluation").GetProperty("microF1").ToString()); Console.WriteLine(result.GetProperty("intentsEvaluation").GetProperty("microPrecision").ToString()); Console.WriteLine(result.GetProperty("intentsEvaluation").GetProperty("microRecall").ToString()); Console.WriteLine(result.GetProperty("intentsEvaluation").GetProperty("macroF1").ToString()); @@ -1798,11 +2268,11 @@ public void Example_AnalyzeConversationAuthoring_GetModelEvaluationSummary_Short [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoring_GetModelEvaluationSummary_ShortVersion_Async() + public async Task Example_Authoring_GetModelEvaluationSummary_ShortVersion_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetModelEvaluationSummaryAsync("", "", null); @@ -1839,33 +2309,33 @@ public async Task Example_AnalyzeConversationAuthoring_GetModelEvaluationSummary [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoring_GetModelEvaluationSummary_ShortVersion_Convenience() + public void Example_Authoring_GetModelEvaluationSummary_ShortVersion_Convenience() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetModelEvaluationSummary("", ""); } [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoring_GetModelEvaluationSummary_ShortVersion_Convenience_Async() + public async Task Example_Authoring_GetModelEvaluationSummary_ShortVersion_Convenience_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetModelEvaluationSummaryAsync("", ""); } [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoring_GetModelEvaluationSummary_AllParameters() + public void Example_Authoring_GetModelEvaluationSummary_AllParameters() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetModelEvaluationSummary("", "", null); @@ -1905,11 +2375,11 @@ public void Example_AnalyzeConversationAuthoring_GetModelEvaluationSummary_AllPa [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoring_GetModelEvaluationSummary_AllParameters_Async() + public async Task Example_Authoring_GetModelEvaluationSummary_AllParameters_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetModelEvaluationSummaryAsync("", "", null); @@ -1949,97 +2419,97 @@ public async Task Example_AnalyzeConversationAuthoring_GetModelEvaluationSummary [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoring_GetModelEvaluationSummary_AllParameters_Convenience() + public void Example_Authoring_GetModelEvaluationSummary_AllParameters_Convenience() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetModelEvaluationSummary("", ""); } [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoring_GetModelEvaluationSummary_AllParameters_Convenience_Async() + public async Task Example_Authoring_GetModelEvaluationSummary_AllParameters_Convenience_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetModelEvaluationSummaryAsync("", ""); } [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoringLoadSnapshotJobState_GetLoadSnapshotStatus_ShortVersion() + public void Example_AnalyzeConversationAuthoringDeploymentResourcesJobState_GetAssignDeploymentResourcesStatus_ShortVersion() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); - Response response = client.GetLoadSnapshotStatus("", "", "", null); + Response response = client.GetAssignDeploymentResourcesStatus("", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("jobId").ToString()); - Console.WriteLine(result.GetProperty("createdDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); + Console.WriteLine(result.GetProperty("createdOn").ToString()); + Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); } [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoringLoadSnapshotJobState_GetLoadSnapshotStatus_ShortVersion_Async() + public async Task Example_AnalyzeConversationAuthoringDeploymentResourcesJobState_GetAssignDeploymentResourcesStatus_ShortVersion_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); - Response response = await client.GetLoadSnapshotStatusAsync("", "", "", null); + Response response = await client.GetAssignDeploymentResourcesStatusAsync("", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("jobId").ToString()); - Console.WriteLine(result.GetProperty("createdDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); + Console.WriteLine(result.GetProperty("createdOn").ToString()); + Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); } [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoringLoadSnapshotJobState_GetLoadSnapshotStatus_ShortVersion_Convenience() + public void Example_AnalyzeConversationAuthoringDeploymentResourcesJobState_GetAssignDeploymentResourcesStatus_ShortVersion_Convenience() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); - Response response = client.GetLoadSnapshotStatus("", "", ""); + Response response = client.GetAssignDeploymentResourcesStatus("", ""); } [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoringLoadSnapshotJobState_GetLoadSnapshotStatus_ShortVersion_Convenience_Async() + public async Task Example_AnalyzeConversationAuthoringDeploymentResourcesJobState_GetAssignDeploymentResourcesStatus_ShortVersion_Convenience_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); - Response response = await client.GetLoadSnapshotStatusAsync("", "", ""); + Response response = await client.GetAssignDeploymentResourcesStatusAsync("", ""); } [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoringLoadSnapshotJobState_GetLoadSnapshotStatus_AllParameters() + public void Example_AnalyzeConversationAuthoringDeploymentResourcesJobState_GetAssignDeploymentResourcesStatus_AllParameters() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); - Response response = client.GetLoadSnapshotStatus("", "", "", null); + Response response = client.GetAssignDeploymentResourcesStatus("", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("jobId").ToString()); - Console.WriteLine(result.GetProperty("createdDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); - Console.WriteLine(result.GetProperty("expirationDateTime").ToString()); + Console.WriteLine(result.GetProperty("createdOn").ToString()); + Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); + Console.WriteLine(result.GetProperty("expiresOn").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("message").ToString()); @@ -2061,19 +2531,19 @@ public void Example_AnalyzeConversationAuthoringLoadSnapshotJobState_GetLoadSnap [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoringLoadSnapshotJobState_GetLoadSnapshotStatus_AllParameters_Async() + public async Task Example_AnalyzeConversationAuthoringDeploymentResourcesJobState_GetAssignDeploymentResourcesStatus_AllParameters_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); - Response response = await client.GetLoadSnapshotStatusAsync("", "", "", null); + Response response = await client.GetAssignDeploymentResourcesStatusAsync("", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("jobId").ToString()); - Console.WriteLine(result.GetProperty("createdDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); - Console.WriteLine(result.GetProperty("expirationDateTime").ToString()); + Console.WriteLine(result.GetProperty("createdOn").ToString()); + Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); + Console.WriteLine(result.GetProperty("expiresOn").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("message").ToString()); @@ -2095,97 +2565,97 @@ public async Task Example_AnalyzeConversationAuthoringLoadSnapshotJobState_GetLo [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoringLoadSnapshotJobState_GetLoadSnapshotStatus_AllParameters_Convenience() + public void Example_AnalyzeConversationAuthoringDeploymentResourcesJobState_GetAssignDeploymentResourcesStatus_AllParameters_Convenience() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); - Response response = client.GetLoadSnapshotStatus("", "", ""); + Response response = client.GetAssignDeploymentResourcesStatus("", ""); } [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoringLoadSnapshotJobState_GetLoadSnapshotStatus_AllParameters_Convenience_Async() + public async Task Example_AnalyzeConversationAuthoringDeploymentResourcesJobState_GetAssignDeploymentResourcesStatus_AllParameters_Convenience_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); - Response response = await client.GetLoadSnapshotStatusAsync("", "", ""); + Response response = await client.GetAssignDeploymentResourcesStatusAsync("", ""); } [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoringDeploymentResourcesJobState_GetAssignDeploymentResourcesStatus_ShortVersion() + public void Example_Authoring_GetUnassignDeploymentResourcesStatus_ShortVersion() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); - Response response = client.GetAssignDeploymentResourcesStatus("", "", null); + Response response = client.GetUnassignDeploymentResourcesStatus("", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("jobId").ToString()); - Console.WriteLine(result.GetProperty("createdDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); + Console.WriteLine(result.GetProperty("createdOn").ToString()); + Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); } [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoringDeploymentResourcesJobState_GetAssignDeploymentResourcesStatus_ShortVersion_Async() + public async Task Example_Authoring_GetUnassignDeploymentResourcesStatus_ShortVersion_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); - Response response = await client.GetAssignDeploymentResourcesStatusAsync("", "", null); + Response response = await client.GetUnassignDeploymentResourcesStatusAsync("", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("jobId").ToString()); - Console.WriteLine(result.GetProperty("createdDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); + Console.WriteLine(result.GetProperty("createdOn").ToString()); + Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); } [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoringDeploymentResourcesJobState_GetAssignDeploymentResourcesStatus_ShortVersion_Convenience() + public void Example_Authoring_GetUnassignDeploymentResourcesStatus_ShortVersion_Convenience() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); - Response response = client.GetAssignDeploymentResourcesStatus("", ""); + Response response = client.GetUnassignDeploymentResourcesStatus("", ""); } [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoringDeploymentResourcesJobState_GetAssignDeploymentResourcesStatus_ShortVersion_Convenience_Async() + public async Task Example_Authoring_GetUnassignDeploymentResourcesStatus_ShortVersion_Convenience_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); - Response response = await client.GetAssignDeploymentResourcesStatusAsync("", ""); + Response response = await client.GetUnassignDeploymentResourcesStatusAsync("", ""); } [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoringDeploymentResourcesJobState_GetAssignDeploymentResourcesStatus_AllParameters() + public void Example_Authoring_GetUnassignDeploymentResourcesStatus_AllParameters() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); - Response response = client.GetAssignDeploymentResourcesStatus("", "", null); + Response response = client.GetUnassignDeploymentResourcesStatus("", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("jobId").ToString()); - Console.WriteLine(result.GetProperty("createdDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); - Console.WriteLine(result.GetProperty("expirationDateTime").ToString()); + Console.WriteLine(result.GetProperty("createdOn").ToString()); + Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); + Console.WriteLine(result.GetProperty("expiresOn").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("message").ToString()); @@ -2207,19 +2677,19 @@ public void Example_AnalyzeConversationAuthoringDeploymentResourcesJobState_GetA [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoringDeploymentResourcesJobState_GetAssignDeploymentResourcesStatus_AllParameters_Async() + public async Task Example_Authoring_GetUnassignDeploymentResourcesStatus_AllParameters_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); - Response response = await client.GetAssignDeploymentResourcesStatusAsync("", "", null); + Response response = await client.GetUnassignDeploymentResourcesStatusAsync("", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("jobId").ToString()); - Console.WriteLine(result.GetProperty("createdDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); - Console.WriteLine(result.GetProperty("expirationDateTime").ToString()); + Console.WriteLine(result.GetProperty("createdOn").ToString()); + Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); + Console.WriteLine(result.GetProperty("expiresOn").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("message").ToString()); @@ -2241,617 +2711,147 @@ public async Task Example_AnalyzeConversationAuthoringDeploymentResourcesJobStat [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoringDeploymentResourcesJobState_GetAssignDeploymentResourcesStatus_AllParameters_Convenience() - { - Uri endpoint = new Uri(""); - AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); - - Response response = client.GetAssignDeploymentResourcesStatus("", ""); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoringDeploymentResourcesJobState_GetAssignDeploymentResourcesStatus_AllParameters_Convenience_Async() - { - Uri endpoint = new Uri(""); - AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); - - Response response = await client.GetAssignDeploymentResourcesStatusAsync("", ""); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoring_GetUnassignDeploymentResourcesStatus_ShortVersion() - { - Uri endpoint = new Uri(""); - AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); - - Response response = client.GetUnassignDeploymentResourcesStatus("", "", null); - - JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; - Console.WriteLine(result.GetProperty("jobId").ToString()); - Console.WriteLine(result.GetProperty("createdDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); - Console.WriteLine(result.GetProperty("status").ToString()); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoring_GetUnassignDeploymentResourcesStatus_ShortVersion_Async() - { - Uri endpoint = new Uri(""); - AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); - - Response response = await client.GetUnassignDeploymentResourcesStatusAsync("", "", null); - - JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; - Console.WriteLine(result.GetProperty("jobId").ToString()); - Console.WriteLine(result.GetProperty("createdDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); - Console.WriteLine(result.GetProperty("status").ToString()); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoring_GetUnassignDeploymentResourcesStatus_ShortVersion_Convenience() + public void Example_Authoring_GetUnassignDeploymentResourcesStatus_AllParameters_Convenience() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetUnassignDeploymentResourcesStatus("", ""); } [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoring_GetUnassignDeploymentResourcesStatus_ShortVersion_Convenience_Async() + public async Task Example_Authoring_GetUnassignDeploymentResourcesStatus_AllParameters_Convenience_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetUnassignDeploymentResourcesStatusAsync("", ""); } [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoring_GetUnassignDeploymentResourcesStatus_AllParameters() - { - Uri endpoint = new Uri(""); - AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); - - Response response = client.GetUnassignDeploymentResourcesStatus("", "", null); - - JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; - Console.WriteLine(result.GetProperty("jobId").ToString()); - Console.WriteLine(result.GetProperty("createdDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); - Console.WriteLine(result.GetProperty("expirationDateTime").ToString()); - Console.WriteLine(result.GetProperty("status").ToString()); - Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("code").ToString()); - Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("message").ToString()); - Console.WriteLine(result.GetProperty("errors")[0].GetProperty("code").ToString()); - Console.WriteLine(result.GetProperty("errors")[0].GetProperty("message").ToString()); - Console.WriteLine(result.GetProperty("errors")[0].GetProperty("target").ToString()); - Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("code").ToString()); - Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("message").ToString()); - Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("target").ToString()); - Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("code").ToString()); - Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("message").ToString()); - Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("details").GetProperty("").ToString()); - Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("target").ToString()); - Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("code").ToString()); - Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("message").ToString()); - Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("details").GetProperty("").ToString()); - Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("target").ToString()); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoring_GetUnassignDeploymentResourcesStatus_AllParameters_Async() - { - Uri endpoint = new Uri(""); - AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); - - Response response = await client.GetUnassignDeploymentResourcesStatusAsync("", "", null); - - JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; - Console.WriteLine(result.GetProperty("jobId").ToString()); - Console.WriteLine(result.GetProperty("createdDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); - Console.WriteLine(result.GetProperty("expirationDateTime").ToString()); - Console.WriteLine(result.GetProperty("status").ToString()); - Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("code").ToString()); - Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("message").ToString()); - Console.WriteLine(result.GetProperty("errors")[0].GetProperty("code").ToString()); - Console.WriteLine(result.GetProperty("errors")[0].GetProperty("message").ToString()); - Console.WriteLine(result.GetProperty("errors")[0].GetProperty("target").ToString()); - Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("code").ToString()); - Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("message").ToString()); - Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("target").ToString()); - Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("code").ToString()); - Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("message").ToString()); - Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("details").GetProperty("").ToString()); - Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("target").ToString()); - Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("code").ToString()); - Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("message").ToString()); - Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("details").GetProperty("").ToString()); - Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("target").ToString()); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoring_GetUnassignDeploymentResourcesStatus_AllParameters_Convenience() - { - Uri endpoint = new Uri(""); - AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); - - Response response = client.GetUnassignDeploymentResourcesStatus("", ""); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoring_GetUnassignDeploymentResourcesStatus_AllParameters_Convenience_Async() - { - Uri endpoint = new Uri(""); - AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); - - Response response = await client.GetUnassignDeploymentResourcesStatusAsync("", ""); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoringTrainingJobState_GetTrainingStatus_ShortVersion() - { - Uri endpoint = new Uri(""); - AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); - - Response response = client.GetTrainingStatus("", "", null); - - JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; - Console.WriteLine(result.GetProperty("jobId").ToString()); - Console.WriteLine(result.GetProperty("createdDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); - Console.WriteLine(result.GetProperty("status").ToString()); - Console.WriteLine(result.GetProperty("result").GetProperty("modelLabel").ToString()); - Console.WriteLine(result.GetProperty("result").GetProperty("trainingConfigVersion").ToString()); - Console.WriteLine(result.GetProperty("result").GetProperty("trainingStatus").GetProperty("percentComplete").ToString()); - Console.WriteLine(result.GetProperty("result").GetProperty("trainingStatus").GetProperty("status").ToString()); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoringTrainingJobState_GetTrainingStatus_ShortVersion_Async() - { - Uri endpoint = new Uri(""); - AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); - - Response response = await client.GetTrainingStatusAsync("", "", null); - - JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; - Console.WriteLine(result.GetProperty("jobId").ToString()); - Console.WriteLine(result.GetProperty("createdDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); - Console.WriteLine(result.GetProperty("status").ToString()); - Console.WriteLine(result.GetProperty("result").GetProperty("modelLabel").ToString()); - Console.WriteLine(result.GetProperty("result").GetProperty("trainingConfigVersion").ToString()); - Console.WriteLine(result.GetProperty("result").GetProperty("trainingStatus").GetProperty("percentComplete").ToString()); - Console.WriteLine(result.GetProperty("result").GetProperty("trainingStatus").GetProperty("status").ToString()); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoringTrainingJobState_GetTrainingStatus_ShortVersion_Convenience() - { - Uri endpoint = new Uri(""); - AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); - - Response response = client.GetTrainingStatus("", ""); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoringTrainingJobState_GetTrainingStatus_ShortVersion_Convenience_Async() - { - Uri endpoint = new Uri(""); - AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); - - Response response = await client.GetTrainingStatusAsync("", ""); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoringTrainingJobState_GetTrainingStatus_AllParameters() - { - Uri endpoint = new Uri(""); - AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); - - Response response = client.GetTrainingStatus("", "", null); - - JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; - Console.WriteLine(result.GetProperty("jobId").ToString()); - Console.WriteLine(result.GetProperty("createdDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); - Console.WriteLine(result.GetProperty("expirationDateTime").ToString()); - Console.WriteLine(result.GetProperty("status").ToString()); - Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("code").ToString()); - Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("message").ToString()); - Console.WriteLine(result.GetProperty("errors")[0].GetProperty("code").ToString()); - Console.WriteLine(result.GetProperty("errors")[0].GetProperty("message").ToString()); - Console.WriteLine(result.GetProperty("errors")[0].GetProperty("target").ToString()); - Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("code").ToString()); - Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("message").ToString()); - Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("target").ToString()); - Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("code").ToString()); - Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("message").ToString()); - Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("details").GetProperty("").ToString()); - Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("target").ToString()); - Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("code").ToString()); - Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("message").ToString()); - Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("details").GetProperty("").ToString()); - Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("target").ToString()); - Console.WriteLine(result.GetProperty("result").GetProperty("modelLabel").ToString()); - Console.WriteLine(result.GetProperty("result").GetProperty("trainingConfigVersion").ToString()); - Console.WriteLine(result.GetProperty("result").GetProperty("trainingMode").ToString()); - Console.WriteLine(result.GetProperty("result").GetProperty("trainingStatus").GetProperty("percentComplete").ToString()); - Console.WriteLine(result.GetProperty("result").GetProperty("trainingStatus").GetProperty("startDateTime").ToString()); - Console.WriteLine(result.GetProperty("result").GetProperty("trainingStatus").GetProperty("endDateTime").ToString()); - Console.WriteLine(result.GetProperty("result").GetProperty("trainingStatus").GetProperty("status").ToString()); - Console.WriteLine(result.GetProperty("result").GetProperty("evaluationStatus").GetProperty("percentComplete").ToString()); - Console.WriteLine(result.GetProperty("result").GetProperty("evaluationStatus").GetProperty("startDateTime").ToString()); - Console.WriteLine(result.GetProperty("result").GetProperty("evaluationStatus").GetProperty("endDateTime").ToString()); - Console.WriteLine(result.GetProperty("result").GetProperty("evaluationStatus").GetProperty("status").ToString()); - Console.WriteLine(result.GetProperty("result").GetProperty("estimatedEndDateTime").ToString()); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoringTrainingJobState_GetTrainingStatus_AllParameters_Async() - { - Uri endpoint = new Uri(""); - AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); - - Response response = await client.GetTrainingStatusAsync("", "", null); - - JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; - Console.WriteLine(result.GetProperty("jobId").ToString()); - Console.WriteLine(result.GetProperty("createdDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); - Console.WriteLine(result.GetProperty("expirationDateTime").ToString()); - Console.WriteLine(result.GetProperty("status").ToString()); - Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("code").ToString()); - Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("message").ToString()); - Console.WriteLine(result.GetProperty("errors")[0].GetProperty("code").ToString()); - Console.WriteLine(result.GetProperty("errors")[0].GetProperty("message").ToString()); - Console.WriteLine(result.GetProperty("errors")[0].GetProperty("target").ToString()); - Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("code").ToString()); - Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("message").ToString()); - Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("target").ToString()); - Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("code").ToString()); - Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("message").ToString()); - Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("details").GetProperty("").ToString()); - Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("target").ToString()); - Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("code").ToString()); - Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("message").ToString()); - Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("details").GetProperty("").ToString()); - Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("target").ToString()); - Console.WriteLine(result.GetProperty("result").GetProperty("modelLabel").ToString()); - Console.WriteLine(result.GetProperty("result").GetProperty("trainingConfigVersion").ToString()); - Console.WriteLine(result.GetProperty("result").GetProperty("trainingMode").ToString()); - Console.WriteLine(result.GetProperty("result").GetProperty("trainingStatus").GetProperty("percentComplete").ToString()); - Console.WriteLine(result.GetProperty("result").GetProperty("trainingStatus").GetProperty("startDateTime").ToString()); - Console.WriteLine(result.GetProperty("result").GetProperty("trainingStatus").GetProperty("endDateTime").ToString()); - Console.WriteLine(result.GetProperty("result").GetProperty("trainingStatus").GetProperty("status").ToString()); - Console.WriteLine(result.GetProperty("result").GetProperty("evaluationStatus").GetProperty("percentComplete").ToString()); - Console.WriteLine(result.GetProperty("result").GetProperty("evaluationStatus").GetProperty("startDateTime").ToString()); - Console.WriteLine(result.GetProperty("result").GetProperty("evaluationStatus").GetProperty("endDateTime").ToString()); - Console.WriteLine(result.GetProperty("result").GetProperty("evaluationStatus").GetProperty("status").ToString()); - Console.WriteLine(result.GetProperty("result").GetProperty("estimatedEndDateTime").ToString()); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoringTrainingJobState_GetTrainingStatus_AllParameters_Convenience() - { - Uri endpoint = new Uri(""); - AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); - - Response response = client.GetTrainingStatus("", ""); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoringTrainingJobState_GetTrainingStatus_AllParameters_Convenience_Async() - { - Uri endpoint = new Uri(""); - AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); - - Response response = await client.GetTrainingStatusAsync("", ""); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoring_GetProjectDeletionStatus_ShortVersion() - { - Uri endpoint = new Uri(""); - AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); - - Response response = client.GetProjectDeletionStatus("", null); - - JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; - Console.WriteLine(result.GetProperty("jobId").ToString()); - Console.WriteLine(result.GetProperty("createdDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); - Console.WriteLine(result.GetProperty("status").ToString()); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoring_GetProjectDeletionStatus_ShortVersion_Async() - { - Uri endpoint = new Uri(""); - AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); - - Response response = await client.GetProjectDeletionStatusAsync("", null); - - JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; - Console.WriteLine(result.GetProperty("jobId").ToString()); - Console.WriteLine(result.GetProperty("createdDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); - Console.WriteLine(result.GetProperty("status").ToString()); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoring_GetProjectDeletionStatus_ShortVersion_Convenience() - { - Uri endpoint = new Uri(""); - AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); - - Response response = client.GetProjectDeletionStatus(""); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoring_GetProjectDeletionStatus_ShortVersion_Convenience_Async() - { - Uri endpoint = new Uri(""); - AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); - - Response response = await client.GetProjectDeletionStatusAsync(""); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoring_GetProjectDeletionStatus_AllParameters() - { - Uri endpoint = new Uri(""); - AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); - - Response response = client.GetProjectDeletionStatus("", null); - - JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; - Console.WriteLine(result.GetProperty("jobId").ToString()); - Console.WriteLine(result.GetProperty("createdDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); - Console.WriteLine(result.GetProperty("expirationDateTime").ToString()); - Console.WriteLine(result.GetProperty("status").ToString()); - Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("code").ToString()); - Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("message").ToString()); - Console.WriteLine(result.GetProperty("errors")[0].GetProperty("code").ToString()); - Console.WriteLine(result.GetProperty("errors")[0].GetProperty("message").ToString()); - Console.WriteLine(result.GetProperty("errors")[0].GetProperty("target").ToString()); - Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("code").ToString()); - Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("message").ToString()); - Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("target").ToString()); - Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("code").ToString()); - Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("message").ToString()); - Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("details").GetProperty("").ToString()); - Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("target").ToString()); - Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("code").ToString()); - Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("message").ToString()); - Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("details").GetProperty("").ToString()); - Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("target").ToString()); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoring_GetProjectDeletionStatus_AllParameters_Async() - { - Uri endpoint = new Uri(""); - AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); - - Response response = await client.GetProjectDeletionStatusAsync("", null); - - JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; - Console.WriteLine(result.GetProperty("jobId").ToString()); - Console.WriteLine(result.GetProperty("createdDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); - Console.WriteLine(result.GetProperty("expirationDateTime").ToString()); - Console.WriteLine(result.GetProperty("status").ToString()); - Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("code").ToString()); - Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("message").ToString()); - Console.WriteLine(result.GetProperty("errors")[0].GetProperty("code").ToString()); - Console.WriteLine(result.GetProperty("errors")[0].GetProperty("message").ToString()); - Console.WriteLine(result.GetProperty("errors")[0].GetProperty("target").ToString()); - Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("code").ToString()); - Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("message").ToString()); - Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("target").ToString()); - Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("code").ToString()); - Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("message").ToString()); - Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("details").GetProperty("").ToString()); - Console.WriteLine(result.GetProperty("errors")[0].GetProperty("details")[0].GetProperty("innererror").GetProperty("target").ToString()); - Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("code").ToString()); - Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("message").ToString()); - Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("details").GetProperty("").ToString()); - Console.WriteLine(result.GetProperty("errors")[0].GetProperty("innererror").GetProperty("target").ToString()); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoring_GetProjectDeletionStatus_AllParameters_Convenience() - { - Uri endpoint = new Uri(""); - AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); - - Response response = client.GetProjectDeletionStatus(""); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoring_GetProjectDeletionStatus_AllParameters_Convenience_Async() - { - Uri endpoint = new Uri(""); - AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); - - Response response = await client.GetProjectDeletionStatusAsync(""); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoring_GetAssignedResourceDeployments_ShortVersion() + public void Example_Authoring_GetAssignedResourceDeployments_ShortVersion() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetAssignedResourceDeployments(null, null, null, null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("value")[0].GetProperty("projectName").ToString()); Console.WriteLine(result.GetProperty("value")[0].GetProperty("deploymentsMetadata")[0].GetProperty("deploymentName").ToString()); - Console.WriteLine(result.GetProperty("value")[0].GetProperty("deploymentsMetadata")[0].GetProperty("lastDeployedDateTime").ToString()); + Console.WriteLine(result.GetProperty("value")[0].GetProperty("deploymentsMetadata")[0].GetProperty("lastDeployedOn").ToString()); Console.WriteLine(result.GetProperty("value")[0].GetProperty("deploymentsMetadata")[0].GetProperty("deploymentExpirationDate").ToString()); } [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoring_GetAssignedResourceDeployments_ShortVersion_Async() + public async Task Example_Authoring_GetAssignedResourceDeployments_ShortVersion_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetAssignedResourceDeploymentsAsync(null, null, null, null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("value")[0].GetProperty("projectName").ToString()); Console.WriteLine(result.GetProperty("value")[0].GetProperty("deploymentsMetadata")[0].GetProperty("deploymentName").ToString()); - Console.WriteLine(result.GetProperty("value")[0].GetProperty("deploymentsMetadata")[0].GetProperty("lastDeployedDateTime").ToString()); + Console.WriteLine(result.GetProperty("value")[0].GetProperty("deploymentsMetadata")[0].GetProperty("lastDeployedOn").ToString()); Console.WriteLine(result.GetProperty("value")[0].GetProperty("deploymentsMetadata")[0].GetProperty("deploymentExpirationDate").ToString()); } [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoring_GetAssignedResourceDeployments_ShortVersion_Convenience() + public void Example_Authoring_GetAssignedResourceDeployments_ShortVersion_Convenience() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetAssignedResourceDeployments(); } [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoring_GetAssignedResourceDeployments_ShortVersion_Convenience_Async() + public async Task Example_Authoring_GetAssignedResourceDeployments_ShortVersion_Convenience_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetAssignedResourceDeploymentsAsync(); } [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoring_GetAssignedResourceDeployments_AllParameters() + public void Example_Authoring_GetAssignedResourceDeployments_AllParameters() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetAssignedResourceDeployments(1234, 1234, 1234, null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("value")[0].GetProperty("projectName").ToString()); Console.WriteLine(result.GetProperty("value")[0].GetProperty("deploymentsMetadata")[0].GetProperty("deploymentName").ToString()); - Console.WriteLine(result.GetProperty("value")[0].GetProperty("deploymentsMetadata")[0].GetProperty("lastDeployedDateTime").ToString()); + Console.WriteLine(result.GetProperty("value")[0].GetProperty("deploymentsMetadata")[0].GetProperty("lastDeployedOn").ToString()); Console.WriteLine(result.GetProperty("value")[0].GetProperty("deploymentsMetadata")[0].GetProperty("deploymentExpirationDate").ToString()); Console.WriteLine(result.GetProperty("nextLink").ToString()); } [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoring_GetAssignedResourceDeployments_AllParameters_Async() + public async Task Example_Authoring_GetAssignedResourceDeployments_AllParameters_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetAssignedResourceDeploymentsAsync(1234, 1234, 1234, null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("value")[0].GetProperty("projectName").ToString()); Console.WriteLine(result.GetProperty("value")[0].GetProperty("deploymentsMetadata")[0].GetProperty("deploymentName").ToString()); - Console.WriteLine(result.GetProperty("value")[0].GetProperty("deploymentsMetadata")[0].GetProperty("lastDeployedDateTime").ToString()); + Console.WriteLine(result.GetProperty("value")[0].GetProperty("deploymentsMetadata")[0].GetProperty("lastDeployedOn").ToString()); Console.WriteLine(result.GetProperty("value")[0].GetProperty("deploymentsMetadata")[0].GetProperty("deploymentExpirationDate").ToString()); Console.WriteLine(result.GetProperty("nextLink").ToString()); } [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoring_GetAssignedResourceDeployments_AllParameters_Convenience() + public void Example_Authoring_GetAssignedResourceDeployments_AllParameters_Convenience() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetAssignedResourceDeployments(top: 1234, skip: 1234, maxpagesize: 1234); } [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoring_GetAssignedResourceDeployments_AllParameters_Convenience_Async() + public async Task Example_Authoring_GetAssignedResourceDeployments_AllParameters_Convenience_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetAssignedResourceDeploymentsAsync(top: 1234, skip: 1234, maxpagesize: 1234); } [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoring_GetSupportedLanguages_ShortVersion() + public void Example_Authoring_GetSupportedLanguages_ShortVersion() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetSupportedLanguages("Conversation"); @@ -2862,11 +2862,11 @@ public void Example_AnalyzeConversationAuthoring_GetSupportedLanguages_ShortVers [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoring_GetSupportedLanguages_ShortVersion_Async() + public async Task Example_Authoring_GetSupportedLanguages_ShortVersion_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetSupportedLanguagesAsync("Conversation"); @@ -2877,33 +2877,33 @@ public async Task Example_AnalyzeConversationAuthoring_GetSupportedLanguages_Sho [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoring_GetSupportedLanguages_ShortVersion_Convenience() + public void Example_Authoring_GetSupportedLanguages_ShortVersion_Convenience() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetSupportedLanguages(ProjectKind.Conversation); } [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoring_GetSupportedLanguages_ShortVersion_Convenience_Async() + public async Task Example_Authoring_GetSupportedLanguages_ShortVersion_Convenience_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetSupportedLanguagesAsync(ProjectKind.Conversation); } [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoring_GetSupportedLanguages_AllParameters() + public void Example_Authoring_GetSupportedLanguages_AllParameters() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetSupportedLanguages("Conversation", top: 1234, skip: 1234, maxpagesize: 1234); @@ -2915,11 +2915,11 @@ public void Example_AnalyzeConversationAuthoring_GetSupportedLanguages_AllParame [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoring_GetSupportedLanguages_AllParameters_Async() + public async Task Example_Authoring_GetSupportedLanguages_AllParameters_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetSupportedLanguagesAsync("Conversation", top: 1234, skip: 1234, maxpagesize: 1234); @@ -2931,33 +2931,33 @@ public async Task Example_AnalyzeConversationAuthoring_GetSupportedLanguages_All [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoring_GetSupportedLanguages_AllParameters_Convenience() + public void Example_Authoring_GetSupportedLanguages_AllParameters_Convenience() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetSupportedLanguages(ProjectKind.Conversation, top: 1234, skip: 1234, maxpagesize: 1234); } [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoring_GetSupportedLanguages_AllParameters_Convenience_Async() + public async Task Example_Authoring_GetSupportedLanguages_AllParameters_Convenience_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetSupportedLanguagesAsync(ProjectKind.Conversation, top: 1234, skip: 1234, maxpagesize: 1234); } [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoring_GetSupportedPrebuiltEntities_ShortVersion() + public void Example_Authoring_GetSupportedPrebuiltEntities_ShortVersion() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetSupportedPrebuiltEntities(null, null, null, null, null, null); @@ -2969,11 +2969,11 @@ public void Example_AnalyzeConversationAuthoring_GetSupportedPrebuiltEntities_Sh [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoring_GetSupportedPrebuiltEntities_ShortVersion_Async() + public async Task Example_Authoring_GetSupportedPrebuiltEntities_ShortVersion_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetSupportedPrebuiltEntitiesAsync(null, null, null, null, null, null); @@ -2985,33 +2985,33 @@ public async Task Example_AnalyzeConversationAuthoring_GetSupportedPrebuiltEntit [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoring_GetSupportedPrebuiltEntities_ShortVersion_Convenience() + public void Example_Authoring_GetSupportedPrebuiltEntities_ShortVersion_Convenience() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetSupportedPrebuiltEntities(); } [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoring_GetSupportedPrebuiltEntities_ShortVersion_Convenience_Async() + public async Task Example_Authoring_GetSupportedPrebuiltEntities_ShortVersion_Convenience_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetSupportedPrebuiltEntitiesAsync(); } [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoring_GetSupportedPrebuiltEntities_AllParameters() + public void Example_Authoring_GetSupportedPrebuiltEntities_AllParameters() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetSupportedPrebuiltEntities("", "", 1234, 1234, 1234, null); @@ -3024,11 +3024,11 @@ public void Example_AnalyzeConversationAuthoring_GetSupportedPrebuiltEntities_Al [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoring_GetSupportedPrebuiltEntities_AllParameters_Async() + public async Task Example_Authoring_GetSupportedPrebuiltEntities_AllParameters_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetSupportedPrebuiltEntitiesAsync("", "", 1234, 1234, 1234, null); @@ -3041,33 +3041,33 @@ public async Task Example_AnalyzeConversationAuthoring_GetSupportedPrebuiltEntit [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoring_GetSupportedPrebuiltEntities_AllParameters_Convenience() + public void Example_Authoring_GetSupportedPrebuiltEntities_AllParameters_Convenience() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetSupportedPrebuiltEntities(language: "", multilingual: "", top: 1234, skip: 1234, maxpagesize: 1234); } [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoring_GetSupportedPrebuiltEntities_AllParameters_Convenience_Async() + public async Task Example_Authoring_GetSupportedPrebuiltEntities_AllParameters_Convenience_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetSupportedPrebuiltEntitiesAsync(language: "", multilingual: "", top: 1234, skip: 1234, maxpagesize: 1234); } [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoring_GetTrainingConfigVersions_ShortVersion() + public void Example_Authoring_GetTrainingConfigVersions_ShortVersion() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetTrainingConfigVersions("Conversation"); @@ -3078,11 +3078,11 @@ public void Example_AnalyzeConversationAuthoring_GetTrainingConfigVersions_Short [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoring_GetTrainingConfigVersions_ShortVersion_Async() + public async Task Example_Authoring_GetTrainingConfigVersions_ShortVersion_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetTrainingConfigVersionsAsync("Conversation"); @@ -3093,33 +3093,33 @@ public async Task Example_AnalyzeConversationAuthoring_GetTrainingConfigVersions [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoring_GetTrainingConfigVersions_ShortVersion_Convenience() + public void Example_Authoring_GetTrainingConfigVersions_ShortVersion_Convenience() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetTrainingConfigVersions(ProjectKind.Conversation); } [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoring_GetTrainingConfigVersions_ShortVersion_Convenience_Async() + public async Task Example_Authoring_GetTrainingConfigVersions_ShortVersion_Convenience_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetTrainingConfigVersionsAsync(ProjectKind.Conversation); } [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoring_GetTrainingConfigVersions_AllParameters() + public void Example_Authoring_GetTrainingConfigVersions_AllParameters() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetTrainingConfigVersions("Conversation", top: 1234, skip: 1234, maxpagesize: 1234); @@ -3131,11 +3131,11 @@ public void Example_AnalyzeConversationAuthoring_GetTrainingConfigVersions_AllPa [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoring_GetTrainingConfigVersions_AllParameters_Async() + public async Task Example_Authoring_GetTrainingConfigVersions_AllParameters_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetTrainingConfigVersionsAsync("Conversation", top: 1234, skip: 1234, maxpagesize: 1234); @@ -3147,22 +3147,22 @@ public async Task Example_AnalyzeConversationAuthoring_GetTrainingConfigVersions [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoring_GetTrainingConfigVersions_AllParameters_Convenience() + public void Example_Authoring_GetTrainingConfigVersions_AllParameters_Convenience() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetTrainingConfigVersions(ProjectKind.Conversation, top: 1234, skip: 1234, maxpagesize: 1234); } [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoring_GetTrainingConfigVersions_AllParameters_Convenience_Async() + public async Task Example_Authoring_GetTrainingConfigVersions_AllParameters_Convenience_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetTrainingConfigVersionsAsync(ProjectKind.Conversation, top: 1234, skip: 1234, maxpagesize: 1234); } @@ -3173,15 +3173,15 @@ public void Example_AnalyzeConversationAuthoringExportedTrainedModel_GetExported { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetExportedModel("", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("exportedModelName").ToString()); Console.WriteLine(result.GetProperty("modelId").ToString()); - Console.WriteLine(result.GetProperty("lastTrainedDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastExportedModelDateTime").ToString()); + Console.WriteLine(result.GetProperty("lastTrainedOn").ToString()); + Console.WriteLine(result.GetProperty("lastExportedModelOn").ToString()); Console.WriteLine(result.GetProperty("modelExpirationDate").ToString()); Console.WriteLine(result.GetProperty("modelTrainingConfigVersion").ToString()); } @@ -3192,15 +3192,15 @@ public async Task Example_AnalyzeConversationAuthoringExportedTrainedModel_GetEx { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetExportedModelAsync("", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("exportedModelName").ToString()); Console.WriteLine(result.GetProperty("modelId").ToString()); - Console.WriteLine(result.GetProperty("lastTrainedDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastExportedModelDateTime").ToString()); + Console.WriteLine(result.GetProperty("lastTrainedOn").ToString()); + Console.WriteLine(result.GetProperty("lastExportedModelOn").ToString()); Console.WriteLine(result.GetProperty("modelExpirationDate").ToString()); Console.WriteLine(result.GetProperty("modelTrainingConfigVersion").ToString()); } @@ -3211,7 +3211,7 @@ public void Example_AnalyzeConversationAuthoringExportedTrainedModel_GetExported { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetExportedModel("", ""); } @@ -3222,7 +3222,7 @@ public async Task Example_AnalyzeConversationAuthoringExportedTrainedModel_GetEx { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetExportedModelAsync("", ""); } @@ -3233,15 +3233,15 @@ public void Example_AnalyzeConversationAuthoringExportedTrainedModel_GetExported { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetExportedModel("", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("exportedModelName").ToString()); Console.WriteLine(result.GetProperty("modelId").ToString()); - Console.WriteLine(result.GetProperty("lastTrainedDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastExportedModelDateTime").ToString()); + Console.WriteLine(result.GetProperty("lastTrainedOn").ToString()); + Console.WriteLine(result.GetProperty("lastExportedModelOn").ToString()); Console.WriteLine(result.GetProperty("modelExpirationDate").ToString()); Console.WriteLine(result.GetProperty("modelTrainingConfigVersion").ToString()); } @@ -3252,15 +3252,15 @@ public async Task Example_AnalyzeConversationAuthoringExportedTrainedModel_GetEx { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetExportedModelAsync("", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("exportedModelName").ToString()); Console.WriteLine(result.GetProperty("modelId").ToString()); - Console.WriteLine(result.GetProperty("lastTrainedDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastExportedModelDateTime").ToString()); + Console.WriteLine(result.GetProperty("lastTrainedOn").ToString()); + Console.WriteLine(result.GetProperty("lastExportedModelOn").ToString()); Console.WriteLine(result.GetProperty("modelExpirationDate").ToString()); Console.WriteLine(result.GetProperty("modelTrainingConfigVersion").ToString()); } @@ -3271,7 +3271,7 @@ public void Example_AnalyzeConversationAuthoringExportedTrainedModel_GetExported { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetExportedModel("", ""); } @@ -3282,7 +3282,7 @@ public async Task Example_AnalyzeConversationAuthoringExportedTrainedModel_GetEx { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetExportedModelAsync("", ""); } @@ -3293,14 +3293,14 @@ public void Example_AnalyzeConversationAuthoringExportedModelJobState_GetExporte { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetExportedModelJobStatus("", "", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("jobId").ToString()); - Console.WriteLine(result.GetProperty("createdDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); + Console.WriteLine(result.GetProperty("createdOn").ToString()); + Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); } @@ -3310,14 +3310,14 @@ public async Task Example_AnalyzeConversationAuthoringExportedModelJobState_GetE { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetExportedModelJobStatusAsync("", "", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("jobId").ToString()); - Console.WriteLine(result.GetProperty("createdDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); + Console.WriteLine(result.GetProperty("createdOn").ToString()); + Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); } @@ -3327,7 +3327,7 @@ public void Example_AnalyzeConversationAuthoringExportedModelJobState_GetExporte { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetExportedModelJobStatus("", "", ""); } @@ -3338,7 +3338,7 @@ public async Task Example_AnalyzeConversationAuthoringExportedModelJobState_GetE { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetExportedModelJobStatusAsync("", "", ""); } @@ -3349,15 +3349,15 @@ public void Example_AnalyzeConversationAuthoringExportedModelJobState_GetExporte { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetExportedModelJobStatus("", "", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("jobId").ToString()); - Console.WriteLine(result.GetProperty("createdDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); - Console.WriteLine(result.GetProperty("expirationDateTime").ToString()); + Console.WriteLine(result.GetProperty("createdOn").ToString()); + Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); + Console.WriteLine(result.GetProperty("expiresOn").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("message").ToString()); @@ -3383,15 +3383,15 @@ public async Task Example_AnalyzeConversationAuthoringExportedModelJobState_GetE { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetExportedModelJobStatusAsync("", "", "", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("jobId").ToString()); - Console.WriteLine(result.GetProperty("createdDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); - Console.WriteLine(result.GetProperty("expirationDateTime").ToString()); + Console.WriteLine(result.GetProperty("createdOn").ToString()); + Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); + Console.WriteLine(result.GetProperty("expiresOn").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("message").ToString()); @@ -3417,7 +3417,7 @@ public void Example_AnalyzeConversationAuthoringExportedModelJobState_GetExporte { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = client.GetExportedModelJobStatus("", "", ""); } @@ -3428,7 +3428,7 @@ public async Task Example_AnalyzeConversationAuthoringExportedModelJobState_GetE { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Response response = await client.GetExportedModelJobStatusAsync("", "", ""); } @@ -3439,13 +3439,13 @@ public void Example_AnalyzeConversationAuthoringProjectMetadata_GetProjects_Shor { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); foreach (BinaryData item in client.GetProjects(null, null, null, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.GetProperty("createdDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastModifiedDateTime").ToString()); + Console.WriteLine(result.GetProperty("createdOn").ToString()); + Console.WriteLine(result.GetProperty("lastModifiedOn").ToString()); Console.WriteLine(result.GetProperty("projectKind").ToString()); Console.WriteLine(result.GetProperty("projectName").ToString()); Console.WriteLine(result.GetProperty("language").ToString()); @@ -3458,13 +3458,13 @@ public async Task Example_AnalyzeConversationAuthoringProjectMetadata_GetProject { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); await foreach (BinaryData item in client.GetProjectsAsync(null, null, null, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.GetProperty("createdDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastModifiedDateTime").ToString()); + Console.WriteLine(result.GetProperty("createdOn").ToString()); + Console.WriteLine(result.GetProperty("lastModifiedOn").ToString()); Console.WriteLine(result.GetProperty("projectKind").ToString()); Console.WriteLine(result.GetProperty("projectName").ToString()); Console.WriteLine(result.GetProperty("language").ToString()); @@ -3477,7 +3477,7 @@ public void Example_AnalyzeConversationAuthoringProjectMetadata_GetProjects_Shor { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); foreach (ProjectMetadata item in client.GetProjects()) { @@ -3490,7 +3490,7 @@ public async Task Example_AnalyzeConversationAuthoringProjectMetadata_GetProject { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); await foreach (ProjectMetadata item in client.GetProjectsAsync()) { @@ -3503,15 +3503,15 @@ public void Example_AnalyzeConversationAuthoringProjectMetadata_GetProjects_AllP { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); foreach (BinaryData item in client.GetProjects(1234, 1234, 1234, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.GetProperty("createdDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastModifiedDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastTrainedDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastDeployedDateTime").ToString()); + Console.WriteLine(result.GetProperty("createdOn").ToString()); + Console.WriteLine(result.GetProperty("lastModifiedOn").ToString()); + Console.WriteLine(result.GetProperty("lastTrainedOn").ToString()); + Console.WriteLine(result.GetProperty("lastDeployedOn").ToString()); Console.WriteLine(result.GetProperty("projectKind").ToString()); Console.WriteLine(result.GetProperty("settings").GetProperty("confidenceThreshold").ToString()); Console.WriteLine(result.GetProperty("storageInputContainerName").ToString()); @@ -3528,15 +3528,15 @@ public async Task Example_AnalyzeConversationAuthoringProjectMetadata_GetProject { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); await foreach (BinaryData item in client.GetProjectsAsync(1234, 1234, 1234, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.GetProperty("createdDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastModifiedDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastTrainedDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastDeployedDateTime").ToString()); + Console.WriteLine(result.GetProperty("createdOn").ToString()); + Console.WriteLine(result.GetProperty("lastModifiedOn").ToString()); + Console.WriteLine(result.GetProperty("lastTrainedOn").ToString()); + Console.WriteLine(result.GetProperty("lastDeployedOn").ToString()); Console.WriteLine(result.GetProperty("projectKind").ToString()); Console.WriteLine(result.GetProperty("settings").GetProperty("confidenceThreshold").ToString()); Console.WriteLine(result.GetProperty("storageInputContainerName").ToString()); @@ -3553,7 +3553,7 @@ public void Example_AnalyzeConversationAuthoringProjectMetadata_GetProjects_AllP { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); foreach (ProjectMetadata item in client.GetProjects(maxCount: 1234, skip: 1234, maxpagesize: 1234)) { @@ -3566,7 +3566,7 @@ public async Task Example_AnalyzeConversationAuthoringProjectMetadata_GetProject { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); await foreach (ProjectMetadata item in client.GetProjectsAsync(maxCount: 1234, skip: 1234, maxpagesize: 1234)) { @@ -3579,15 +3579,15 @@ public void Example_AnalyzeConversationAuthoringProjectDeployment_GetDeployments { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); foreach (BinaryData item in client.GetDeployments("", null, null, null, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("deploymentName").ToString()); Console.WriteLine(result.GetProperty("modelId").ToString()); - Console.WriteLine(result.GetProperty("lastTrainedDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastDeployedDateTime").ToString()); + Console.WriteLine(result.GetProperty("lastTrainedOn").ToString()); + Console.WriteLine(result.GetProperty("lastDeployedOn").ToString()); Console.WriteLine(result.GetProperty("deploymentExpirationDate").ToString()); Console.WriteLine(result.GetProperty("modelTrainingConfigVersion").ToString()); Console.WriteLine(result.GetProperty("assignedResources")[0].GetProperty("resourceId").ToString()); @@ -3601,15 +3601,15 @@ public async Task Example_AnalyzeConversationAuthoringProjectDeployment_GetDeplo { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); await foreach (BinaryData item in client.GetDeploymentsAsync("", null, null, null, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("deploymentName").ToString()); Console.WriteLine(result.GetProperty("modelId").ToString()); - Console.WriteLine(result.GetProperty("lastTrainedDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastDeployedDateTime").ToString()); + Console.WriteLine(result.GetProperty("lastTrainedOn").ToString()); + Console.WriteLine(result.GetProperty("lastDeployedOn").ToString()); Console.WriteLine(result.GetProperty("deploymentExpirationDate").ToString()); Console.WriteLine(result.GetProperty("modelTrainingConfigVersion").ToString()); Console.WriteLine(result.GetProperty("assignedResources")[0].GetProperty("resourceId").ToString()); @@ -3623,7 +3623,7 @@ public void Example_AnalyzeConversationAuthoringProjectDeployment_GetDeployments { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); foreach (ProjectDeployment item in client.GetDeployments("")) { @@ -3636,7 +3636,7 @@ public async Task Example_AnalyzeConversationAuthoringProjectDeployment_GetDeplo { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); await foreach (ProjectDeployment item in client.GetDeploymentsAsync("")) { @@ -3649,15 +3649,15 @@ public void Example_AnalyzeConversationAuthoringProjectDeployment_GetDeployments { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); foreach (BinaryData item in client.GetDeployments("", 1234, 1234, 1234, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("deploymentName").ToString()); Console.WriteLine(result.GetProperty("modelId").ToString()); - Console.WriteLine(result.GetProperty("lastTrainedDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastDeployedDateTime").ToString()); + Console.WriteLine(result.GetProperty("lastTrainedOn").ToString()); + Console.WriteLine(result.GetProperty("lastDeployedOn").ToString()); Console.WriteLine(result.GetProperty("deploymentExpirationDate").ToString()); Console.WriteLine(result.GetProperty("modelTrainingConfigVersion").ToString()); Console.WriteLine(result.GetProperty("assignedResources")[0].GetProperty("resourceId").ToString()); @@ -3671,15 +3671,15 @@ public async Task Example_AnalyzeConversationAuthoringProjectDeployment_GetDeplo { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); await foreach (BinaryData item in client.GetDeploymentsAsync("", 1234, 1234, 1234, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("deploymentName").ToString()); Console.WriteLine(result.GetProperty("modelId").ToString()); - Console.WriteLine(result.GetProperty("lastTrainedDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastDeployedDateTime").ToString()); + Console.WriteLine(result.GetProperty("lastTrainedOn").ToString()); + Console.WriteLine(result.GetProperty("lastDeployedOn").ToString()); Console.WriteLine(result.GetProperty("deploymentExpirationDate").ToString()); Console.WriteLine(result.GetProperty("modelTrainingConfigVersion").ToString()); Console.WriteLine(result.GetProperty("assignedResources")[0].GetProperty("resourceId").ToString()); @@ -3693,7 +3693,7 @@ public void Example_AnalyzeConversationAuthoringProjectDeployment_GetDeployments { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); foreach (ProjectDeployment item in client.GetDeployments("", maxCount: 1234, skip: 1234, maxpagesize: 1234)) { @@ -3706,7 +3706,7 @@ public async Task Example_AnalyzeConversationAuthoringProjectDeployment_GetDeplo { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); await foreach (ProjectDeployment item in client.GetDeploymentsAsync("", maxCount: 1234, skip: 1234, maxpagesize: 1234)) { @@ -3719,14 +3719,14 @@ public void Example_AnalyzeConversationAuthoringProjectTrainedModel_GetTrainedMo { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); foreach (BinaryData item in client.GetTrainedModels("", null, null, null, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("label").ToString()); Console.WriteLine(result.GetProperty("modelId").ToString()); - Console.WriteLine(result.GetProperty("lastTrainedDateTime").ToString()); + Console.WriteLine(result.GetProperty("lastTrainedOn").ToString()); Console.WriteLine(result.GetProperty("lastTrainingDurationInSeconds").ToString()); Console.WriteLine(result.GetProperty("modelExpirationDate").ToString()); Console.WriteLine(result.GetProperty("modelTrainingConfigVersion").ToString()); @@ -3740,14 +3740,14 @@ public async Task Example_AnalyzeConversationAuthoringProjectTrainedModel_GetTra { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); await foreach (BinaryData item in client.GetTrainedModelsAsync("", null, null, null, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("label").ToString()); Console.WriteLine(result.GetProperty("modelId").ToString()); - Console.WriteLine(result.GetProperty("lastTrainedDateTime").ToString()); + Console.WriteLine(result.GetProperty("lastTrainedOn").ToString()); Console.WriteLine(result.GetProperty("lastTrainingDurationInSeconds").ToString()); Console.WriteLine(result.GetProperty("modelExpirationDate").ToString()); Console.WriteLine(result.GetProperty("modelTrainingConfigVersion").ToString()); @@ -3761,7 +3761,7 @@ public void Example_AnalyzeConversationAuthoringProjectTrainedModel_GetTrainedMo { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); foreach (ProjectTrainedModel item in client.GetTrainedModels("")) { @@ -3774,7 +3774,7 @@ public async Task Example_AnalyzeConversationAuthoringProjectTrainedModel_GetTra { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); await foreach (ProjectTrainedModel item in client.GetTrainedModelsAsync("")) { @@ -3787,14 +3787,14 @@ public void Example_AnalyzeConversationAuthoringProjectTrainedModel_GetTrainedMo { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); foreach (BinaryData item in client.GetTrainedModels("", 1234, 1234, 1234, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("label").ToString()); Console.WriteLine(result.GetProperty("modelId").ToString()); - Console.WriteLine(result.GetProperty("lastTrainedDateTime").ToString()); + Console.WriteLine(result.GetProperty("lastTrainedOn").ToString()); Console.WriteLine(result.GetProperty("lastTrainingDurationInSeconds").ToString()); Console.WriteLine(result.GetProperty("modelExpirationDate").ToString()); Console.WriteLine(result.GetProperty("modelTrainingConfigVersion").ToString()); @@ -3808,14 +3808,14 @@ public async Task Example_AnalyzeConversationAuthoringProjectTrainedModel_GetTra { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); await foreach (BinaryData item in client.GetTrainedModelsAsync("", 1234, 1234, 1234, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("label").ToString()); Console.WriteLine(result.GetProperty("modelId").ToString()); - Console.WriteLine(result.GetProperty("lastTrainedDateTime").ToString()); + Console.WriteLine(result.GetProperty("lastTrainedOn").ToString()); Console.WriteLine(result.GetProperty("lastTrainingDurationInSeconds").ToString()); Console.WriteLine(result.GetProperty("modelExpirationDate").ToString()); Console.WriteLine(result.GetProperty("modelTrainingConfigVersion").ToString()); @@ -3829,7 +3829,7 @@ public void Example_AnalyzeConversationAuthoringProjectTrainedModel_GetTrainedMo { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); foreach (ProjectTrainedModel item in client.GetTrainedModels("", maxCount: 1234, skip: 1234, maxpagesize: 1234)) { @@ -3842,7 +3842,7 @@ public async Task Example_AnalyzeConversationAuthoringProjectTrainedModel_GetTra { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); await foreach (ProjectTrainedModel item in client.GetTrainedModelsAsync("", maxCount: 1234, skip: 1234, maxpagesize: 1234)) { @@ -3855,7 +3855,7 @@ public void Example_AnalyzeConversationAuthoringUtteranceEvaluationResult_GetMod { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); foreach (BinaryData item in client.GetModelEvaluationResults("", "", "Utf16CodeUnit")) { @@ -3879,7 +3879,7 @@ public async Task Example_AnalyzeConversationAuthoringUtteranceEvaluationResult_ { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); await foreach (BinaryData item in client.GetModelEvaluationResultsAsync("", "", "Utf16CodeUnit")) { @@ -3903,7 +3903,7 @@ public void Example_AnalyzeConversationAuthoringUtteranceEvaluationResult_GetMod { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); foreach (UtteranceEvaluationResult item in client.GetModelEvaluationResults("", "", StringIndexType.Utf16CodeUnit)) { @@ -3916,7 +3916,7 @@ public async Task Example_AnalyzeConversationAuthoringUtteranceEvaluationResult_ { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); await foreach (UtteranceEvaluationResult item in client.GetModelEvaluationResultsAsync("", "", StringIndexType.Utf16CodeUnit)) { @@ -3929,7 +3929,7 @@ public void Example_AnalyzeConversationAuthoringUtteranceEvaluationResult_GetMod { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); foreach (BinaryData item in client.GetModelEvaluationResults("", "", "Utf16CodeUnit", maxCount: 1234, skip: 1234, maxpagesize: 1234)) { @@ -3953,7 +3953,7 @@ public async Task Example_AnalyzeConversationAuthoringUtteranceEvaluationResult_ { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); await foreach (BinaryData item in client.GetModelEvaluationResultsAsync("", "", "Utf16CodeUnit", maxCount: 1234, skip: 1234, maxpagesize: 1234)) { @@ -3977,7 +3977,7 @@ public void Example_AnalyzeConversationAuthoringUtteranceEvaluationResult_GetMod { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); foreach (UtteranceEvaluationResult item in client.GetModelEvaluationResults("", "", StringIndexType.Utf16CodeUnit, maxCount: 1234, skip: 1234, maxpagesize: 1234)) { @@ -3990,7 +3990,7 @@ public async Task Example_AnalyzeConversationAuthoringUtteranceEvaluationResult_ { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); await foreach (UtteranceEvaluationResult item in client.GetModelEvaluationResultsAsync("", "", StringIndexType.Utf16CodeUnit, maxCount: 1234, skip: 1234, maxpagesize: 1234)) { @@ -4003,12 +4003,12 @@ public void Example_AnalyzeConversationAuthoringAssignedDeploymentResource_GetDe { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); foreach (BinaryData item in client.GetDeploymentResources("", null, null, null, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.GetProperty("azureResourceId").ToString()); + Console.WriteLine(result.GetProperty("resourceId").ToString()); Console.WriteLine(result.GetProperty("region").ToString()); } } @@ -4019,12 +4019,12 @@ public async Task Example_AnalyzeConversationAuthoringAssignedDeploymentResource { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); await foreach (BinaryData item in client.GetDeploymentResourcesAsync("", null, null, null, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.GetProperty("azureResourceId").ToString()); + Console.WriteLine(result.GetProperty("resourceId").ToString()); Console.WriteLine(result.GetProperty("region").ToString()); } } @@ -4035,7 +4035,7 @@ public void Example_AnalyzeConversationAuthoringAssignedDeploymentResource_GetDe { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); foreach (AssignedDeploymentResource item in client.GetDeploymentResources("")) { @@ -4048,7 +4048,7 @@ public async Task Example_AnalyzeConversationAuthoringAssignedDeploymentResource { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); await foreach (AssignedDeploymentResource item in client.GetDeploymentResourcesAsync("")) { @@ -4061,12 +4061,12 @@ public void Example_AnalyzeConversationAuthoringAssignedDeploymentResource_GetDe { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); foreach (BinaryData item in client.GetDeploymentResources("", 1234, 1234, 1234, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.GetProperty("azureResourceId").ToString()); + Console.WriteLine(result.GetProperty("resourceId").ToString()); Console.WriteLine(result.GetProperty("region").ToString()); } } @@ -4077,12 +4077,12 @@ public async Task Example_AnalyzeConversationAuthoringAssignedDeploymentResource { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); await foreach (BinaryData item in client.GetDeploymentResourcesAsync("", 1234, 1234, 1234, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; - Console.WriteLine(result.GetProperty("azureResourceId").ToString()); + Console.WriteLine(result.GetProperty("resourceId").ToString()); Console.WriteLine(result.GetProperty("region").ToString()); } } @@ -4093,7 +4093,7 @@ public void Example_AnalyzeConversationAuthoringAssignedDeploymentResource_GetDe { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); foreach (AssignedDeploymentResource item in client.GetDeploymentResources("", maxCount: 1234, skip: 1234, maxpagesize: 1234)) { @@ -4106,7 +4106,7 @@ public async Task Example_AnalyzeConversationAuthoringAssignedDeploymentResource { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); await foreach (AssignedDeploymentResource item in client.GetDeploymentResourcesAsync("", maxCount: 1234, skip: 1234, maxpagesize: 1234)) { @@ -4119,14 +4119,14 @@ public void Example_AnalyzeConversationAuthoringTrainingJobState_GetTrainingJobs { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); foreach (BinaryData item in client.GetTrainingJobs("", null, null, null, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("jobId").ToString()); - Console.WriteLine(result.GetProperty("createdDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); + Console.WriteLine(result.GetProperty("createdOn").ToString()); + Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); Console.WriteLine(result.GetProperty("result").GetProperty("modelLabel").ToString()); Console.WriteLine(result.GetProperty("result").GetProperty("trainingConfigVersion").ToString()); @@ -4141,14 +4141,14 @@ public async Task Example_AnalyzeConversationAuthoringTrainingJobState_GetTraini { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); await foreach (BinaryData item in client.GetTrainingJobsAsync("", null, null, null, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("jobId").ToString()); - Console.WriteLine(result.GetProperty("createdDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); + Console.WriteLine(result.GetProperty("createdOn").ToString()); + Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); Console.WriteLine(result.GetProperty("result").GetProperty("modelLabel").ToString()); Console.WriteLine(result.GetProperty("result").GetProperty("trainingConfigVersion").ToString()); @@ -4163,7 +4163,7 @@ public void Example_AnalyzeConversationAuthoringTrainingJobState_GetTrainingJobs { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); foreach (TrainingJobState item in client.GetTrainingJobs("")) { @@ -4176,7 +4176,7 @@ public async Task Example_AnalyzeConversationAuthoringTrainingJobState_GetTraini { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); await foreach (TrainingJobState item in client.GetTrainingJobsAsync("")) { @@ -4189,15 +4189,15 @@ public void Example_AnalyzeConversationAuthoringTrainingJobState_GetTrainingJobs { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); foreach (BinaryData item in client.GetTrainingJobs("", 1234, 1234, 1234, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("jobId").ToString()); - Console.WriteLine(result.GetProperty("createdDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); - Console.WriteLine(result.GetProperty("expirationDateTime").ToString()); + Console.WriteLine(result.GetProperty("createdOn").ToString()); + Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); + Console.WriteLine(result.GetProperty("expiresOn").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("message").ToString()); @@ -4219,14 +4219,14 @@ public void Example_AnalyzeConversationAuthoringTrainingJobState_GetTrainingJobs Console.WriteLine(result.GetProperty("result").GetProperty("trainingConfigVersion").ToString()); Console.WriteLine(result.GetProperty("result").GetProperty("trainingMode").ToString()); Console.WriteLine(result.GetProperty("result").GetProperty("trainingStatus").GetProperty("percentComplete").ToString()); - Console.WriteLine(result.GetProperty("result").GetProperty("trainingStatus").GetProperty("startDateTime").ToString()); - Console.WriteLine(result.GetProperty("result").GetProperty("trainingStatus").GetProperty("endDateTime").ToString()); + Console.WriteLine(result.GetProperty("result").GetProperty("trainingStatus").GetProperty("startedOn").ToString()); + Console.WriteLine(result.GetProperty("result").GetProperty("trainingStatus").GetProperty("endedOn").ToString()); Console.WriteLine(result.GetProperty("result").GetProperty("trainingStatus").GetProperty("status").ToString()); Console.WriteLine(result.GetProperty("result").GetProperty("evaluationStatus").GetProperty("percentComplete").ToString()); - Console.WriteLine(result.GetProperty("result").GetProperty("evaluationStatus").GetProperty("startDateTime").ToString()); - Console.WriteLine(result.GetProperty("result").GetProperty("evaluationStatus").GetProperty("endDateTime").ToString()); + Console.WriteLine(result.GetProperty("result").GetProperty("evaluationStatus").GetProperty("startedOn").ToString()); + Console.WriteLine(result.GetProperty("result").GetProperty("evaluationStatus").GetProperty("endedOn").ToString()); Console.WriteLine(result.GetProperty("result").GetProperty("evaluationStatus").GetProperty("status").ToString()); - Console.WriteLine(result.GetProperty("result").GetProperty("estimatedEndDateTime").ToString()); + Console.WriteLine(result.GetProperty("result").GetProperty("estimatedEndOn").ToString()); } } @@ -4236,15 +4236,15 @@ public async Task Example_AnalyzeConversationAuthoringTrainingJobState_GetTraini { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); await foreach (BinaryData item in client.GetTrainingJobsAsync("", 1234, 1234, 1234, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("jobId").ToString()); - Console.WriteLine(result.GetProperty("createdDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString()); - Console.WriteLine(result.GetProperty("expirationDateTime").ToString()); + Console.WriteLine(result.GetProperty("createdOn").ToString()); + Console.WriteLine(result.GetProperty("lastUpdatedOn").ToString()); + Console.WriteLine(result.GetProperty("expiresOn").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("warnings")[0].GetProperty("message").ToString()); @@ -4266,14 +4266,14 @@ public async Task Example_AnalyzeConversationAuthoringTrainingJobState_GetTraini Console.WriteLine(result.GetProperty("result").GetProperty("trainingConfigVersion").ToString()); Console.WriteLine(result.GetProperty("result").GetProperty("trainingMode").ToString()); Console.WriteLine(result.GetProperty("result").GetProperty("trainingStatus").GetProperty("percentComplete").ToString()); - Console.WriteLine(result.GetProperty("result").GetProperty("trainingStatus").GetProperty("startDateTime").ToString()); - Console.WriteLine(result.GetProperty("result").GetProperty("trainingStatus").GetProperty("endDateTime").ToString()); + Console.WriteLine(result.GetProperty("result").GetProperty("trainingStatus").GetProperty("startedOn").ToString()); + Console.WriteLine(result.GetProperty("result").GetProperty("trainingStatus").GetProperty("endedOn").ToString()); Console.WriteLine(result.GetProperty("result").GetProperty("trainingStatus").GetProperty("status").ToString()); Console.WriteLine(result.GetProperty("result").GetProperty("evaluationStatus").GetProperty("percentComplete").ToString()); - Console.WriteLine(result.GetProperty("result").GetProperty("evaluationStatus").GetProperty("startDateTime").ToString()); - Console.WriteLine(result.GetProperty("result").GetProperty("evaluationStatus").GetProperty("endDateTime").ToString()); + Console.WriteLine(result.GetProperty("result").GetProperty("evaluationStatus").GetProperty("startedOn").ToString()); + Console.WriteLine(result.GetProperty("result").GetProperty("evaluationStatus").GetProperty("endedOn").ToString()); Console.WriteLine(result.GetProperty("result").GetProperty("evaluationStatus").GetProperty("status").ToString()); - Console.WriteLine(result.GetProperty("result").GetProperty("estimatedEndDateTime").ToString()); + Console.WriteLine(result.GetProperty("result").GetProperty("estimatedEndOn").ToString()); } } @@ -4283,7 +4283,7 @@ public void Example_AnalyzeConversationAuthoringTrainingJobState_GetTrainingJobs { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); foreach (TrainingJobState item in client.GetTrainingJobs("", maxCount: 1234, skip: 1234, maxpagesize: 1234)) { @@ -4296,7 +4296,7 @@ public async Task Example_AnalyzeConversationAuthoringTrainingJobState_GetTraini { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); await foreach (TrainingJobState item in client.GetTrainingJobsAsync("", maxCount: 1234, skip: 1234, maxpagesize: 1234)) { @@ -4309,15 +4309,15 @@ public void Example_AnalyzeConversationAuthoringExportedTrainedModel_GetExported { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); foreach (BinaryData item in client.GetExportedModels("", null, null, null, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("exportedModelName").ToString()); Console.WriteLine(result.GetProperty("modelId").ToString()); - Console.WriteLine(result.GetProperty("lastTrainedDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastExportedModelDateTime").ToString()); + Console.WriteLine(result.GetProperty("lastTrainedOn").ToString()); + Console.WriteLine(result.GetProperty("lastExportedModelOn").ToString()); Console.WriteLine(result.GetProperty("modelExpirationDate").ToString()); Console.WriteLine(result.GetProperty("modelTrainingConfigVersion").ToString()); } @@ -4329,15 +4329,15 @@ public async Task Example_AnalyzeConversationAuthoringExportedTrainedModel_GetEx { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); await foreach (BinaryData item in client.GetExportedModelsAsync("", null, null, null, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("exportedModelName").ToString()); Console.WriteLine(result.GetProperty("modelId").ToString()); - Console.WriteLine(result.GetProperty("lastTrainedDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastExportedModelDateTime").ToString()); + Console.WriteLine(result.GetProperty("lastTrainedOn").ToString()); + Console.WriteLine(result.GetProperty("lastExportedModelOn").ToString()); Console.WriteLine(result.GetProperty("modelExpirationDate").ToString()); Console.WriteLine(result.GetProperty("modelTrainingConfigVersion").ToString()); } @@ -4349,7 +4349,7 @@ public void Example_AnalyzeConversationAuthoringExportedTrainedModel_GetExported { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); foreach (ExportedTrainedModel item in client.GetExportedModels("")) { @@ -4362,7 +4362,7 @@ public async Task Example_AnalyzeConversationAuthoringExportedTrainedModel_GetEx { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); await foreach (ExportedTrainedModel item in client.GetExportedModelsAsync("")) { @@ -4375,15 +4375,15 @@ public void Example_AnalyzeConversationAuthoringExportedTrainedModel_GetExported { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); foreach (BinaryData item in client.GetExportedModels("", 1234, 1234, 1234, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("exportedModelName").ToString()); Console.WriteLine(result.GetProperty("modelId").ToString()); - Console.WriteLine(result.GetProperty("lastTrainedDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastExportedModelDateTime").ToString()); + Console.WriteLine(result.GetProperty("lastTrainedOn").ToString()); + Console.WriteLine(result.GetProperty("lastExportedModelOn").ToString()); Console.WriteLine(result.GetProperty("modelExpirationDate").ToString()); Console.WriteLine(result.GetProperty("modelTrainingConfigVersion").ToString()); } @@ -4395,15 +4395,15 @@ public async Task Example_AnalyzeConversationAuthoringExportedTrainedModel_GetEx { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); await foreach (BinaryData item in client.GetExportedModelsAsync("", 1234, 1234, 1234, null)) { JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement; Console.WriteLine(result.GetProperty("exportedModelName").ToString()); Console.WriteLine(result.GetProperty("modelId").ToString()); - Console.WriteLine(result.GetProperty("lastTrainedDateTime").ToString()); - Console.WriteLine(result.GetProperty("lastExportedModelDateTime").ToString()); + Console.WriteLine(result.GetProperty("lastTrainedOn").ToString()); + Console.WriteLine(result.GetProperty("lastExportedModelOn").ToString()); Console.WriteLine(result.GetProperty("modelExpirationDate").ToString()); Console.WriteLine(result.GetProperty("modelTrainingConfigVersion").ToString()); } @@ -4415,7 +4415,7 @@ public void Example_AnalyzeConversationAuthoringExportedTrainedModel_GetExported { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); foreach (ExportedTrainedModel item in client.GetExportedModels("", maxCount: 1234, skip: 1234, maxpagesize: 1234)) { @@ -4428,7 +4428,7 @@ public async Task Example_AnalyzeConversationAuthoringExportedTrainedModel_GetEx { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); await foreach (ExportedTrainedModel item in client.GetExportedModelsAsync("", maxCount: 1234, skip: 1234, maxpagesize: 1234)) { @@ -4437,55 +4437,55 @@ public async Task Example_AnalyzeConversationAuthoringExportedTrainedModel_GetEx [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoring_DeleteProject_ShortVersion() + public void Example_Authoring_DeleteProject_ShortVersion() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Operation operation = client.DeleteProject(WaitUntil.Completed, ""); } [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoring_DeleteProject_ShortVersion_Async() + public async Task Example_Authoring_DeleteProject_ShortVersion_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Operation operation = await client.DeleteProjectAsync(WaitUntil.Completed, ""); } [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoring_DeleteProject_AllParameters() + public void Example_Authoring_DeleteProject_AllParameters() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Operation operation = client.DeleteProject(WaitUntil.Completed, ""); } [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoring_DeleteProject_AllParameters_Async() + public async Task Example_Authoring_DeleteProject_AllParameters_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Operation operation = await client.DeleteProjectAsync(WaitUntil.Completed, ""); } [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoring_CopyProject_ShortVersion() + public void Example_Authoring_CopyProject_ShortVersion() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { @@ -4501,11 +4501,11 @@ public void Example_AnalyzeConversationAuthoring_CopyProject_ShortVersion() [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoring_CopyProject_ShortVersion_Async() + public async Task Example_Authoring_CopyProject_ShortVersion_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { @@ -4521,11 +4521,11 @@ public async Task Example_AnalyzeConversationAuthoring_CopyProject_ShortVersion_ [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoring_CopyProject_ShortVersion_Convenience() + public void Example_Authoring_CopyProject_ShortVersion_Convenience() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); CopyProjectDetails body = new CopyProjectDetails( ProjectKind.Conversation, @@ -4539,11 +4539,11 @@ public void Example_AnalyzeConversationAuthoring_CopyProject_ShortVersion_Conven [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoring_CopyProject_ShortVersion_Convenience_Async() + public async Task Example_Authoring_CopyProject_ShortVersion_Convenience_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); CopyProjectDetails body = new CopyProjectDetails( ProjectKind.Conversation, @@ -4557,11 +4557,11 @@ public async Task Example_AnalyzeConversationAuthoring_CopyProject_ShortVersion_ [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoring_CopyProject_AllParameters() + public void Example_Authoring_CopyProject_AllParameters() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { @@ -4577,11 +4577,11 @@ public void Example_AnalyzeConversationAuthoring_CopyProject_AllParameters() [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoring_CopyProject_AllParameters_Async() + public async Task Example_Authoring_CopyProject_AllParameters_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { @@ -4597,11 +4597,11 @@ public async Task Example_AnalyzeConversationAuthoring_CopyProject_AllParameters [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoring_CopyProject_AllParameters_Convenience() + public void Example_Authoring_CopyProject_AllParameters_Convenience() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); CopyProjectDetails body = new CopyProjectDetails( ProjectKind.Conversation, @@ -4615,11 +4615,11 @@ public void Example_AnalyzeConversationAuthoring_CopyProject_AllParameters_Conve [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoring_CopyProject_AllParameters_Convenience_Async() + public async Task Example_Authoring_CopyProject_AllParameters_Convenience_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); CopyProjectDetails body = new CopyProjectDetails( ProjectKind.Conversation, @@ -4633,99 +4633,99 @@ public async Task Example_AnalyzeConversationAuthoring_CopyProject_AllParameters [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoring_Export_ShortVersion() + public void Example_Authoring_Export_ShortVersion() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Operation operation = client.Export(WaitUntil.Completed, "", "Utf16CodeUnit"); } [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoring_Export_ShortVersion_Async() + public async Task Example_Authoring_Export_ShortVersion_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Operation operation = await client.ExportAsync(WaitUntil.Completed, "", "Utf16CodeUnit"); } [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoring_Export_ShortVersion_Convenience() + public void Example_Authoring_Export_ShortVersion_Convenience() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Operation operation = client.Export(WaitUntil.Completed, "", StringIndexType.Utf16CodeUnit); } [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoring_Export_ShortVersion_Convenience_Async() + public async Task Example_Authoring_Export_ShortVersion_Convenience_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Operation operation = await client.ExportAsync(WaitUntil.Completed, "", StringIndexType.Utf16CodeUnit); } [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoring_Export_AllParameters() + public void Example_Authoring_Export_AllParameters() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Operation operation = client.Export(WaitUntil.Completed, "", "Utf16CodeUnit", exportedProjectFormat: "Conversation", assetKind: "", trainedModelLabel: ""); } [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoring_Export_AllParameters_Async() + public async Task Example_Authoring_Export_AllParameters_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Operation operation = await client.ExportAsync(WaitUntil.Completed, "", "Utf16CodeUnit", exportedProjectFormat: "Conversation", assetKind: "", trainedModelLabel: ""); } [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoring_Export_AllParameters_Convenience() + public void Example_Authoring_Export_AllParameters_Convenience() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Operation operation = client.Export(WaitUntil.Completed, "", StringIndexType.Utf16CodeUnit, exportedProjectFormat: ExportedProjectFormat.Conversation, assetKind: "", trainedModelLabel: ""); } [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoring_Export_AllParameters_Convenience_Async() + public async Task Example_Authoring_Export_AllParameters_Convenience_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Operation operation = await client.ExportAsync(WaitUntil.Completed, "", StringIndexType.Utf16CodeUnit, exportedProjectFormat: ExportedProjectFormat.Conversation, assetKind: "", trainedModelLabel: ""); } [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoring_Import_ShortVersion() + public void Example_Authoring_Import_ShortVersion() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { @@ -4743,11 +4743,11 @@ public void Example_AnalyzeConversationAuthoring_Import_ShortVersion() [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoring_Import_ShortVersion_Async() + public async Task Example_Authoring_Import_ShortVersion_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { @@ -4765,11 +4765,11 @@ public async Task Example_AnalyzeConversationAuthoring_Import_ShortVersion_Async [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoring_Import_ShortVersion_Convenience() + public void Example_Authoring_Import_ShortVersion_Convenience() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); ExportedProject body = new ExportedProject("", StringIndexType.Utf16CodeUnit, new CreateProjectDetails(ProjectKind.Conversation, "", "")); Operation operation = client.Import(WaitUntil.Completed, "", body); @@ -4777,11 +4777,11 @@ public void Example_AnalyzeConversationAuthoring_Import_ShortVersion_Convenience [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoring_Import_ShortVersion_Convenience_Async() + public async Task Example_Authoring_Import_ShortVersion_Convenience_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); ExportedProject body = new ExportedProject("", StringIndexType.Utf16CodeUnit, new CreateProjectDetails(ProjectKind.Conversation, "", "")); Operation operation = await client.ImportAsync(WaitUntil.Completed, "", body); @@ -4789,11 +4789,11 @@ public async Task Example_AnalyzeConversationAuthoring_Import_ShortVersion_Conve [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoring_Import_AllParameters() + public void Example_Authoring_Import_AllParameters() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { @@ -4900,11 +4900,11 @@ public void Example_AnalyzeConversationAuthoring_Import_AllParameters() [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoring_Import_AllParameters_Async() + public async Task Example_Authoring_Import_AllParameters_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { @@ -5011,11 +5011,11 @@ public async Task Example_AnalyzeConversationAuthoring_Import_AllParameters_Asyn [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoring_Import_AllParameters_Convenience() + public void Example_Authoring_Import_AllParameters_Convenience() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); ExportedProject body = new ExportedProject("", StringIndexType.Utf16CodeUnit, new CreateProjectDetails(ProjectKind.Conversation, "", "") { @@ -5068,11 +5068,11 @@ public void Example_AnalyzeConversationAuthoring_Import_AllParameters_Convenienc [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoring_Import_AllParameters_Convenience_Async() + public async Task Example_Authoring_Import_AllParameters_Convenience_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); ExportedProject body = new ExportedProject("", StringIndexType.Utf16CodeUnit, new CreateProjectDetails(ProjectKind.Conversation, "", "") { @@ -5125,11 +5125,11 @@ public async Task Example_AnalyzeConversationAuthoring_Import_AllParameters_Conv [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoring_Train_ShortVersion() + public void Example_Authoring_Train_ShortVersion() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { @@ -5148,11 +5148,11 @@ public void Example_AnalyzeConversationAuthoring_Train_ShortVersion() [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoring_Train_ShortVersion_Async() + public async Task Example_Authoring_Train_ShortVersion_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { @@ -5171,11 +5171,11 @@ public async Task Example_AnalyzeConversationAuthoring_Train_ShortVersion_Async( [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoring_Train_ShortVersion_Convenience() + public void Example_Authoring_Train_ShortVersion_Convenience() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); TrainingJobDetails body = new TrainingJobDetails("", TrainingMode.Advanced); Operation operation = client.Train(WaitUntil.Completed, "", body); @@ -5184,11 +5184,11 @@ public void Example_AnalyzeConversationAuthoring_Train_ShortVersion_Convenience( [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoring_Train_ShortVersion_Convenience_Async() + public async Task Example_Authoring_Train_ShortVersion_Convenience_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); TrainingJobDetails body = new TrainingJobDetails("", TrainingMode.Advanced); Operation operation = await client.TrainAsync(WaitUntil.Completed, "", body); @@ -5197,11 +5197,11 @@ public async Task Example_AnalyzeConversationAuthoring_Train_ShortVersion_Conven [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoring_Train_AllParameters() + public void Example_Authoring_Train_AllParameters() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { @@ -5223,23 +5223,23 @@ public void Example_AnalyzeConversationAuthoring_Train_AllParameters() Console.WriteLine(result.GetProperty("trainingConfigVersion").ToString()); Console.WriteLine(result.GetProperty("trainingMode").ToString()); Console.WriteLine(result.GetProperty("trainingStatus").GetProperty("percentComplete").ToString()); - Console.WriteLine(result.GetProperty("trainingStatus").GetProperty("startDateTime").ToString()); - Console.WriteLine(result.GetProperty("trainingStatus").GetProperty("endDateTime").ToString()); + Console.WriteLine(result.GetProperty("trainingStatus").GetProperty("startedOn").ToString()); + Console.WriteLine(result.GetProperty("trainingStatus").GetProperty("endedOn").ToString()); Console.WriteLine(result.GetProperty("trainingStatus").GetProperty("status").ToString()); Console.WriteLine(result.GetProperty("evaluationStatus").GetProperty("percentComplete").ToString()); - Console.WriteLine(result.GetProperty("evaluationStatus").GetProperty("startDateTime").ToString()); - Console.WriteLine(result.GetProperty("evaluationStatus").GetProperty("endDateTime").ToString()); + Console.WriteLine(result.GetProperty("evaluationStatus").GetProperty("startedOn").ToString()); + Console.WriteLine(result.GetProperty("evaluationStatus").GetProperty("endedOn").ToString()); Console.WriteLine(result.GetProperty("evaluationStatus").GetProperty("status").ToString()); - Console.WriteLine(result.GetProperty("estimatedEndDateTime").ToString()); + Console.WriteLine(result.GetProperty("estimatedEndOn").ToString()); } [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoring_Train_AllParameters_Async() + public async Task Example_Authoring_Train_AllParameters_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { @@ -5261,23 +5261,23 @@ public async Task Example_AnalyzeConversationAuthoring_Train_AllParameters_Async Console.WriteLine(result.GetProperty("trainingConfigVersion").ToString()); Console.WriteLine(result.GetProperty("trainingMode").ToString()); Console.WriteLine(result.GetProperty("trainingStatus").GetProperty("percentComplete").ToString()); - Console.WriteLine(result.GetProperty("trainingStatus").GetProperty("startDateTime").ToString()); - Console.WriteLine(result.GetProperty("trainingStatus").GetProperty("endDateTime").ToString()); + Console.WriteLine(result.GetProperty("trainingStatus").GetProperty("startedOn").ToString()); + Console.WriteLine(result.GetProperty("trainingStatus").GetProperty("endedOn").ToString()); Console.WriteLine(result.GetProperty("trainingStatus").GetProperty("status").ToString()); Console.WriteLine(result.GetProperty("evaluationStatus").GetProperty("percentComplete").ToString()); - Console.WriteLine(result.GetProperty("evaluationStatus").GetProperty("startDateTime").ToString()); - Console.WriteLine(result.GetProperty("evaluationStatus").GetProperty("endDateTime").ToString()); + Console.WriteLine(result.GetProperty("evaluationStatus").GetProperty("startedOn").ToString()); + Console.WriteLine(result.GetProperty("evaluationStatus").GetProperty("endedOn").ToString()); Console.WriteLine(result.GetProperty("evaluationStatus").GetProperty("status").ToString()); - Console.WriteLine(result.GetProperty("estimatedEndDateTime").ToString()); + Console.WriteLine(result.GetProperty("estimatedEndOn").ToString()); } [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoring_Train_AllParameters_Convenience() + public void Example_Authoring_Train_AllParameters_Convenience() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); TrainingJobDetails body = new TrainingJobDetails("", TrainingMode.Advanced) { @@ -5295,11 +5295,11 @@ public void Example_AnalyzeConversationAuthoring_Train_AllParameters_Convenience [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoring_Train_AllParameters_Convenience_Async() + public async Task Example_Authoring_Train_AllParameters_Convenience_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); TrainingJobDetails body = new TrainingJobDetails("", TrainingMode.Advanced) { @@ -5317,11 +5317,11 @@ public async Task Example_AnalyzeConversationAuthoring_Train_AllParameters_Conve [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoring_SwapDeployments_ShortVersion() + public void Example_Authoring_SwapDeployments_ShortVersion() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { @@ -5333,11 +5333,11 @@ public void Example_AnalyzeConversationAuthoring_SwapDeployments_ShortVersion() [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoring_SwapDeployments_ShortVersion_Async() + public async Task Example_Authoring_SwapDeployments_ShortVersion_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { @@ -5349,11 +5349,11 @@ public async Task Example_AnalyzeConversationAuthoring_SwapDeployments_ShortVers [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoring_SwapDeployments_ShortVersion_Convenience() + public void Example_Authoring_SwapDeployments_ShortVersion_Convenience() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); SwapDeploymentsDetails body = new SwapDeploymentsDetails("", ""); Operation operation = client.SwapDeployments(WaitUntil.Completed, "", body); @@ -5361,11 +5361,11 @@ public void Example_AnalyzeConversationAuthoring_SwapDeployments_ShortVersion_Co [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoring_SwapDeployments_ShortVersion_Convenience_Async() + public async Task Example_Authoring_SwapDeployments_ShortVersion_Convenience_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); SwapDeploymentsDetails body = new SwapDeploymentsDetails("", ""); Operation operation = await client.SwapDeploymentsAsync(WaitUntil.Completed, "", body); @@ -5373,11 +5373,11 @@ public async Task Example_AnalyzeConversationAuthoring_SwapDeployments_ShortVers [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoring_SwapDeployments_AllParameters() + public void Example_Authoring_SwapDeployments_AllParameters() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { @@ -5389,11 +5389,11 @@ public void Example_AnalyzeConversationAuthoring_SwapDeployments_AllParameters() [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoring_SwapDeployments_AllParameters_Async() + public async Task Example_Authoring_SwapDeployments_AllParameters_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { @@ -5405,11 +5405,11 @@ public async Task Example_AnalyzeConversationAuthoring_SwapDeployments_AllParame [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoring_SwapDeployments_AllParameters_Convenience() + public void Example_Authoring_SwapDeployments_AllParameters_Convenience() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); SwapDeploymentsDetails body = new SwapDeploymentsDetails("", ""); Operation operation = client.SwapDeployments(WaitUntil.Completed, "", body); @@ -5417,11 +5417,11 @@ public void Example_AnalyzeConversationAuthoring_SwapDeployments_AllParameters_C [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoring_SwapDeployments_AllParameters_Convenience_Async() + public async Task Example_Authoring_SwapDeployments_AllParameters_Convenience_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); SwapDeploymentsDetails body = new SwapDeploymentsDetails("", ""); Operation operation = await client.SwapDeploymentsAsync(WaitUntil.Completed, "", body); @@ -5429,11 +5429,11 @@ public async Task Example_AnalyzeConversationAuthoring_SwapDeployments_AllParame [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoring_DeployProject_ShortVersion() + public void Example_Authoring_DeployProject_ShortVersion() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { @@ -5444,11 +5444,11 @@ public void Example_AnalyzeConversationAuthoring_DeployProject_ShortVersion() [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoring_DeployProject_ShortVersion_Async() + public async Task Example_Authoring_DeployProject_ShortVersion_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { @@ -5459,11 +5459,11 @@ public async Task Example_AnalyzeConversationAuthoring_DeployProject_ShortVersio [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoring_DeployProject_ShortVersion_Convenience() + public void Example_Authoring_DeployProject_ShortVersion_Convenience() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); CreateDeploymentDetails body = new CreateDeploymentDetails(""); Operation operation = client.DeployProject(WaitUntil.Completed, "", "", body); @@ -5471,11 +5471,11 @@ public void Example_AnalyzeConversationAuthoring_DeployProject_ShortVersion_Conv [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoring_DeployProject_ShortVersion_Convenience_Async() + public async Task Example_Authoring_DeployProject_ShortVersion_Convenience_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); CreateDeploymentDetails body = new CreateDeploymentDetails(""); Operation operation = await client.DeployProjectAsync(WaitUntil.Completed, "", "", body); @@ -5483,11 +5483,11 @@ public async Task Example_AnalyzeConversationAuthoring_DeployProject_ShortVersio [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoring_DeployProject_AllParameters() + public void Example_Authoring_DeployProject_AllParameters() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { @@ -5502,11 +5502,11 @@ public void Example_AnalyzeConversationAuthoring_DeployProject_AllParameters() [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoring_DeployProject_AllParameters_Async() + public async Task Example_Authoring_DeployProject_AllParameters_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { @@ -5521,11 +5521,11 @@ public async Task Example_AnalyzeConversationAuthoring_DeployProject_AllParamete [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoring_DeployProject_AllParameters_Convenience() + public void Example_Authoring_DeployProject_AllParameters_Convenience() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); CreateDeploymentDetails body = new CreateDeploymentDetails("") { @@ -5536,11 +5536,11 @@ public void Example_AnalyzeConversationAuthoring_DeployProject_AllParameters_Con [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoring_DeployProject_AllParameters_Convenience_Async() + public async Task Example_Authoring_DeployProject_AllParameters_Convenience_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); CreateDeploymentDetails body = new CreateDeploymentDetails("") { @@ -5551,55 +5551,55 @@ public async Task Example_AnalyzeConversationAuthoring_DeployProject_AllParamete [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoring_DeleteDeployment_ShortVersion() + public void Example_Authoring_DeleteDeployment_ShortVersion() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Operation operation = client.DeleteDeployment(WaitUntil.Completed, "", ""); } [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoring_DeleteDeployment_ShortVersion_Async() + public async Task Example_Authoring_DeleteDeployment_ShortVersion_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Operation operation = await client.DeleteDeploymentAsync(WaitUntil.Completed, "", ""); } [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoring_DeleteDeployment_AllParameters() + public void Example_Authoring_DeleteDeployment_AllParameters() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Operation operation = client.DeleteDeployment(WaitUntil.Completed, "", ""); } [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoring_DeleteDeployment_AllParameters_Async() + public async Task Example_Authoring_DeleteDeployment_AllParameters_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Operation operation = await client.DeleteDeploymentAsync(WaitUntil.Completed, "", ""); } [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoring_DeleteDeploymentFromResources_ShortVersion() + public void Example_Authoring_DeleteDeploymentFromResources_ShortVersion() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new object()); Operation operation = client.DeleteDeploymentFromResources(WaitUntil.Completed, "", "", content); @@ -5607,11 +5607,11 @@ public void Example_AnalyzeConversationAuthoring_DeleteDeploymentFromResources_S [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoring_DeleteDeploymentFromResources_ShortVersion_Async() + public async Task Example_Authoring_DeleteDeploymentFromResources_ShortVersion_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new object()); Operation operation = await client.DeleteDeploymentFromResourcesAsync(WaitUntil.Completed, "", "", content); @@ -5619,11 +5619,11 @@ public async Task Example_AnalyzeConversationAuthoring_DeleteDeploymentFromResou [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoring_DeleteDeploymentFromResources_ShortVersion_Convenience() + public void Example_Authoring_DeleteDeploymentFromResources_ShortVersion_Convenience() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); DeleteDeploymentDetails body = new DeleteDeploymentDetails(); Operation operation = client.DeleteDeploymentFromResources(WaitUntil.Completed, "", "", body); @@ -5631,11 +5631,11 @@ public void Example_AnalyzeConversationAuthoring_DeleteDeploymentFromResources_S [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoring_DeleteDeploymentFromResources_ShortVersion_Convenience_Async() + public async Task Example_Authoring_DeleteDeploymentFromResources_ShortVersion_Convenience_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); DeleteDeploymentDetails body = new DeleteDeploymentDetails(); Operation operation = await client.DeleteDeploymentFromResourcesAsync(WaitUntil.Completed, "", "", body); @@ -5643,11 +5643,11 @@ public async Task Example_AnalyzeConversationAuthoring_DeleteDeploymentFromResou [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoring_DeleteDeploymentFromResources_AllParameters() + public void Example_Authoring_DeleteDeploymentFromResources_AllParameters() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { @@ -5661,11 +5661,11 @@ public void Example_AnalyzeConversationAuthoring_DeleteDeploymentFromResources_A [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoring_DeleteDeploymentFromResources_AllParameters_Async() + public async Task Example_Authoring_DeleteDeploymentFromResources_AllParameters_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { @@ -5679,11 +5679,11 @@ public async Task Example_AnalyzeConversationAuthoring_DeleteDeploymentFromResou [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoring_DeleteDeploymentFromResources_AllParameters_Convenience() + public void Example_Authoring_DeleteDeploymentFromResources_AllParameters_Convenience() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); DeleteDeploymentDetails body = new DeleteDeploymentDetails { @@ -5694,11 +5694,11 @@ public void Example_AnalyzeConversationAuthoring_DeleteDeploymentFromResources_A [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoring_DeleteDeploymentFromResources_AllParameters_Convenience_Async() + public async Task Example_Authoring_DeleteDeploymentFromResources_AllParameters_Convenience_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); DeleteDeploymentDetails body = new DeleteDeploymentDetails { @@ -5709,11 +5709,11 @@ public async Task Example_AnalyzeConversationAuthoring_DeleteDeploymentFromResou [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoring_EvaluateModel_ShortVersion() + public void Example_Authoring_EvaluateModel_ShortVersion() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new object()); Operation operation = client.EvaluateModel(WaitUntil.Completed, "", "", content); @@ -5728,11 +5728,11 @@ public void Example_AnalyzeConversationAuthoring_EvaluateModel_ShortVersion() [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoring_EvaluateModel_ShortVersion_Async() + public async Task Example_Authoring_EvaluateModel_ShortVersion_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new object()); Operation operation = await client.EvaluateModelAsync(WaitUntil.Completed, "", "", content); @@ -5747,11 +5747,11 @@ public async Task Example_AnalyzeConversationAuthoring_EvaluateModel_ShortVersio [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoring_EvaluateModel_ShortVersion_Convenience() + public void Example_Authoring_EvaluateModel_ShortVersion_Convenience() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); EvaluationDetails body = new EvaluationDetails(); Operation operation = client.EvaluateModel(WaitUntil.Completed, "", "", body); @@ -5760,11 +5760,11 @@ public void Example_AnalyzeConversationAuthoring_EvaluateModel_ShortVersion_Conv [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoring_EvaluateModel_ShortVersion_Convenience_Async() + public async Task Example_Authoring_EvaluateModel_ShortVersion_Convenience_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); EvaluationDetails body = new EvaluationDetails(); Operation operation = await client.EvaluateModelAsync(WaitUntil.Completed, "", "", body); @@ -5773,11 +5773,11 @@ public async Task Example_AnalyzeConversationAuthoring_EvaluateModel_ShortVersio [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoring_EvaluateModel_AllParameters() + public void Example_Authoring_EvaluateModel_AllParameters() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { @@ -5799,11 +5799,11 @@ public void Example_AnalyzeConversationAuthoring_EvaluateModel_AllParameters() [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoring_EvaluateModel_AllParameters_Async() + public async Task Example_Authoring_EvaluateModel_AllParameters_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { @@ -5825,11 +5825,11 @@ public async Task Example_AnalyzeConversationAuthoring_EvaluateModel_AllParamete [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoring_EvaluateModel_AllParameters_Convenience() + public void Example_Authoring_EvaluateModel_AllParameters_Convenience() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); EvaluationDetails body = new EvaluationDetails { @@ -5843,11 +5843,11 @@ public void Example_AnalyzeConversationAuthoring_EvaluateModel_AllParameters_Con [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoring_EvaluateModel_AllParameters_Convenience_Async() + public async Task Example_Authoring_EvaluateModel_AllParameters_Convenience_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); EvaluationDetails body = new EvaluationDetails { @@ -5861,55 +5861,55 @@ public async Task Example_AnalyzeConversationAuthoring_EvaluateModel_AllParamete [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoring_LoadSnapshot_ShortVersion() + public void Example_Authoring_LoadSnapshot_ShortVersion() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Operation operation = client.LoadSnapshot(WaitUntil.Completed, "", ""); } [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoring_LoadSnapshot_ShortVersion_Async() + public async Task Example_Authoring_LoadSnapshot_ShortVersion_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Operation operation = await client.LoadSnapshotAsync(WaitUntil.Completed, "", ""); } [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoring_LoadSnapshot_AllParameters() + public void Example_Authoring_LoadSnapshot_AllParameters() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Operation operation = client.LoadSnapshot(WaitUntil.Completed, "", ""); } [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoring_LoadSnapshot_AllParameters_Async() + public async Task Example_Authoring_LoadSnapshot_AllParameters_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Operation operation = await client.LoadSnapshotAsync(WaitUntil.Completed, "", ""); } [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoring_AssignDeploymentResources_ShortVersion() + public void Example_Authoring_AssignDeploymentResources_ShortVersion() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { @@ -5928,11 +5928,11 @@ public void Example_AnalyzeConversationAuthoring_AssignDeploymentResources_Short [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoring_AssignDeploymentResources_ShortVersion_Async() + public async Task Example_Authoring_AssignDeploymentResources_ShortVersion_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { @@ -5951,11 +5951,11 @@ public async Task Example_AnalyzeConversationAuthoring_AssignDeploymentResources [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoring_AssignDeploymentResources_ShortVersion_Convenience() + public void Example_Authoring_AssignDeploymentResources_ShortVersion_Convenience() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); AssignDeploymentResourcesDetails body = new AssignDeploymentResourcesDetails(new ResourceMetadata[] { @@ -5966,11 +5966,11 @@ public void Example_AnalyzeConversationAuthoring_AssignDeploymentResources_Short [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoring_AssignDeploymentResources_ShortVersion_Convenience_Async() + public async Task Example_Authoring_AssignDeploymentResources_ShortVersion_Convenience_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); AssignDeploymentResourcesDetails body = new AssignDeploymentResourcesDetails(new ResourceMetadata[] { @@ -5981,11 +5981,11 @@ public async Task Example_AnalyzeConversationAuthoring_AssignDeploymentResources [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoring_AssignDeploymentResources_AllParameters() + public void Example_Authoring_AssignDeploymentResources_AllParameters() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { @@ -6004,11 +6004,11 @@ public void Example_AnalyzeConversationAuthoring_AssignDeploymentResources_AllPa [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoring_AssignDeploymentResources_AllParameters_Async() + public async Task Example_Authoring_AssignDeploymentResources_AllParameters_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { @@ -6027,11 +6027,11 @@ public async Task Example_AnalyzeConversationAuthoring_AssignDeploymentResources [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoring_AssignDeploymentResources_AllParameters_Convenience() + public void Example_Authoring_AssignDeploymentResources_AllParameters_Convenience() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); AssignDeploymentResourcesDetails body = new AssignDeploymentResourcesDetails(new ResourceMetadata[] { @@ -6042,11 +6042,11 @@ public void Example_AnalyzeConversationAuthoring_AssignDeploymentResources_AllPa [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoring_AssignDeploymentResources_AllParameters_Convenience_Async() + public async Task Example_Authoring_AssignDeploymentResources_AllParameters_Convenience_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); AssignDeploymentResourcesDetails body = new AssignDeploymentResourcesDetails(new ResourceMetadata[] { @@ -6057,11 +6057,11 @@ public async Task Example_AnalyzeConversationAuthoring_AssignDeploymentResources [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoring_UnassignDeploymentResources_ShortVersion() + public void Example_Authoring_UnassignDeploymentResources_ShortVersion() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { @@ -6075,11 +6075,11 @@ public void Example_AnalyzeConversationAuthoring_UnassignDeploymentResources_Sho [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoring_UnassignDeploymentResources_ShortVersion_Async() + public async Task Example_Authoring_UnassignDeploymentResources_ShortVersion_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { @@ -6093,11 +6093,11 @@ public async Task Example_AnalyzeConversationAuthoring_UnassignDeploymentResourc [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoring_UnassignDeploymentResources_ShortVersion_Convenience() + public void Example_Authoring_UnassignDeploymentResources_ShortVersion_Convenience() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); UnassignDeploymentResourcesDetails body = new UnassignDeploymentResourcesDetails(new string[] { "" }); Operation operation = client.UnassignDeploymentResources(WaitUntil.Completed, "", body); @@ -6105,11 +6105,11 @@ public void Example_AnalyzeConversationAuthoring_UnassignDeploymentResources_Sho [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoring_UnassignDeploymentResources_ShortVersion_Convenience_Async() + public async Task Example_Authoring_UnassignDeploymentResources_ShortVersion_Convenience_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); UnassignDeploymentResourcesDetails body = new UnassignDeploymentResourcesDetails(new string[] { "" }); Operation operation = await client.UnassignDeploymentResourcesAsync(WaitUntil.Completed, "", body); @@ -6117,11 +6117,11 @@ public async Task Example_AnalyzeConversationAuthoring_UnassignDeploymentResourc [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoring_UnassignDeploymentResources_AllParameters() + public void Example_Authoring_UnassignDeploymentResources_AllParameters() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { @@ -6135,11 +6135,11 @@ public void Example_AnalyzeConversationAuthoring_UnassignDeploymentResources_All [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoring_UnassignDeploymentResources_AllParameters_Async() + public async Task Example_Authoring_UnassignDeploymentResources_AllParameters_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { @@ -6153,11 +6153,11 @@ public async Task Example_AnalyzeConversationAuthoring_UnassignDeploymentResourc [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoring_UnassignDeploymentResources_AllParameters_Convenience() + public void Example_Authoring_UnassignDeploymentResources_AllParameters_Convenience() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); UnassignDeploymentResourcesDetails body = new UnassignDeploymentResourcesDetails(new string[] { "" }); Operation operation = client.UnassignDeploymentResources(WaitUntil.Completed, "", body); @@ -6165,11 +6165,11 @@ public void Example_AnalyzeConversationAuthoring_UnassignDeploymentResources_All [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoring_UnassignDeploymentResources_AllParameters_Convenience_Async() + public async Task Example_Authoring_UnassignDeploymentResources_AllParameters_Convenience_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); UnassignDeploymentResourcesDetails body = new UnassignDeploymentResourcesDetails(new string[] { "" }); Operation operation = await client.UnassignDeploymentResourcesAsync(WaitUntil.Completed, "", body); @@ -6177,11 +6177,11 @@ public async Task Example_AnalyzeConversationAuthoring_UnassignDeploymentResourc [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoring_CancelTrainingJob_ShortVersion() + public void Example_Authoring_CancelTrainingJob_ShortVersion() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Operation operation = client.CancelTrainingJob(WaitUntil.Completed, "", "", null); BinaryData responseData = operation.Value; @@ -6195,11 +6195,11 @@ public void Example_AnalyzeConversationAuthoring_CancelTrainingJob_ShortVersion( [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoring_CancelTrainingJob_ShortVersion_Async() + public async Task Example_Authoring_CancelTrainingJob_ShortVersion_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Operation operation = await client.CancelTrainingJobAsync(WaitUntil.Completed, "", "", null); BinaryData responseData = operation.Value; @@ -6213,11 +6213,11 @@ public async Task Example_AnalyzeConversationAuthoring_CancelTrainingJob_ShortVe [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoring_CancelTrainingJob_ShortVersion_Convenience() + public void Example_Authoring_CancelTrainingJob_ShortVersion_Convenience() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Operation operation = client.CancelTrainingJob(WaitUntil.Completed, "", ""); TrainingJobResult responseData = operation.Value; @@ -6225,11 +6225,11 @@ public void Example_AnalyzeConversationAuthoring_CancelTrainingJob_ShortVersion_ [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoring_CancelTrainingJob_ShortVersion_Convenience_Async() + public async Task Example_Authoring_CancelTrainingJob_ShortVersion_Convenience_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Operation operation = await client.CancelTrainingJobAsync(WaitUntil.Completed, "", ""); TrainingJobResult responseData = operation.Value; @@ -6237,11 +6237,11 @@ public async Task Example_AnalyzeConversationAuthoring_CancelTrainingJob_ShortVe [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoring_CancelTrainingJob_AllParameters() + public void Example_Authoring_CancelTrainingJob_AllParameters() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Operation operation = client.CancelTrainingJob(WaitUntil.Completed, "", "", null); BinaryData responseData = operation.Value; @@ -6251,23 +6251,23 @@ public void Example_AnalyzeConversationAuthoring_CancelTrainingJob_AllParameters Console.WriteLine(result.GetProperty("trainingConfigVersion").ToString()); Console.WriteLine(result.GetProperty("trainingMode").ToString()); Console.WriteLine(result.GetProperty("trainingStatus").GetProperty("percentComplete").ToString()); - Console.WriteLine(result.GetProperty("trainingStatus").GetProperty("startDateTime").ToString()); - Console.WriteLine(result.GetProperty("trainingStatus").GetProperty("endDateTime").ToString()); + Console.WriteLine(result.GetProperty("trainingStatus").GetProperty("startedOn").ToString()); + Console.WriteLine(result.GetProperty("trainingStatus").GetProperty("endedOn").ToString()); Console.WriteLine(result.GetProperty("trainingStatus").GetProperty("status").ToString()); Console.WriteLine(result.GetProperty("evaluationStatus").GetProperty("percentComplete").ToString()); - Console.WriteLine(result.GetProperty("evaluationStatus").GetProperty("startDateTime").ToString()); - Console.WriteLine(result.GetProperty("evaluationStatus").GetProperty("endDateTime").ToString()); + Console.WriteLine(result.GetProperty("evaluationStatus").GetProperty("startedOn").ToString()); + Console.WriteLine(result.GetProperty("evaluationStatus").GetProperty("endedOn").ToString()); Console.WriteLine(result.GetProperty("evaluationStatus").GetProperty("status").ToString()); - Console.WriteLine(result.GetProperty("estimatedEndDateTime").ToString()); + Console.WriteLine(result.GetProperty("estimatedEndOn").ToString()); } [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoring_CancelTrainingJob_AllParameters_Async() + public async Task Example_Authoring_CancelTrainingJob_AllParameters_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Operation operation = await client.CancelTrainingJobAsync(WaitUntil.Completed, "", "", null); BinaryData responseData = operation.Value; @@ -6277,23 +6277,23 @@ public async Task Example_AnalyzeConversationAuthoring_CancelTrainingJob_AllPara Console.WriteLine(result.GetProperty("trainingConfigVersion").ToString()); Console.WriteLine(result.GetProperty("trainingMode").ToString()); Console.WriteLine(result.GetProperty("trainingStatus").GetProperty("percentComplete").ToString()); - Console.WriteLine(result.GetProperty("trainingStatus").GetProperty("startDateTime").ToString()); - Console.WriteLine(result.GetProperty("trainingStatus").GetProperty("endDateTime").ToString()); + Console.WriteLine(result.GetProperty("trainingStatus").GetProperty("startedOn").ToString()); + Console.WriteLine(result.GetProperty("trainingStatus").GetProperty("endedOn").ToString()); Console.WriteLine(result.GetProperty("trainingStatus").GetProperty("status").ToString()); Console.WriteLine(result.GetProperty("evaluationStatus").GetProperty("percentComplete").ToString()); - Console.WriteLine(result.GetProperty("evaluationStatus").GetProperty("startDateTime").ToString()); - Console.WriteLine(result.GetProperty("evaluationStatus").GetProperty("endDateTime").ToString()); + Console.WriteLine(result.GetProperty("evaluationStatus").GetProperty("startedOn").ToString()); + Console.WriteLine(result.GetProperty("evaluationStatus").GetProperty("endedOn").ToString()); Console.WriteLine(result.GetProperty("evaluationStatus").GetProperty("status").ToString()); - Console.WriteLine(result.GetProperty("estimatedEndDateTime").ToString()); + Console.WriteLine(result.GetProperty("estimatedEndOn").ToString()); } [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoring_CancelTrainingJob_AllParameters_Convenience() + public void Example_Authoring_CancelTrainingJob_AllParameters_Convenience() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Operation operation = client.CancelTrainingJob(WaitUntil.Completed, "", ""); TrainingJobResult responseData = operation.Value; @@ -6301,11 +6301,11 @@ public void Example_AnalyzeConversationAuthoring_CancelTrainingJob_AllParameters [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoring_CancelTrainingJob_AllParameters_Convenience_Async() + public async Task Example_Authoring_CancelTrainingJob_AllParameters_Convenience_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Operation operation = await client.CancelTrainingJobAsync(WaitUntil.Completed, "", ""); TrainingJobResult responseData = operation.Value; @@ -6313,55 +6313,55 @@ public async Task Example_AnalyzeConversationAuthoring_CancelTrainingJob_AllPara [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoring_DeleteExportedModel_ShortVersion() + public void Example_Authoring_DeleteExportedModel_ShortVersion() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Operation operation = client.DeleteExportedModel(WaitUntil.Completed, "", ""); } [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoring_DeleteExportedModel_ShortVersion_Async() + public async Task Example_Authoring_DeleteExportedModel_ShortVersion_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Operation operation = await client.DeleteExportedModelAsync(WaitUntil.Completed, "", ""); } [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoring_DeleteExportedModel_AllParameters() + public void Example_Authoring_DeleteExportedModel_AllParameters() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Operation operation = client.DeleteExportedModel(WaitUntil.Completed, "", ""); } [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoring_DeleteExportedModel_AllParameters_Async() + public async Task Example_Authoring_DeleteExportedModel_AllParameters_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); Operation operation = await client.DeleteExportedModelAsync(WaitUntil.Completed, "", ""); } [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoring_CreateOrUpdateExportedModel_ShortVersion() + public void Example_Authoring_CreateOrUpdateExportedModel_ShortVersion() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { @@ -6372,11 +6372,11 @@ public void Example_AnalyzeConversationAuthoring_CreateOrUpdateExportedModel_Sho [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoring_CreateOrUpdateExportedModel_ShortVersion_Async() + public async Task Example_Authoring_CreateOrUpdateExportedModel_ShortVersion_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { @@ -6387,11 +6387,11 @@ public async Task Example_AnalyzeConversationAuthoring_CreateOrUpdateExportedMod [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoring_CreateOrUpdateExportedModel_ShortVersion_Convenience() + public void Example_Authoring_CreateOrUpdateExportedModel_ShortVersion_Convenience() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); ExportedModelDetails body = new ExportedModelDetails(""); Operation operation = client.CreateOrUpdateExportedModel(WaitUntil.Completed, "", "", body); @@ -6399,11 +6399,11 @@ public void Example_AnalyzeConversationAuthoring_CreateOrUpdateExportedModel_Sho [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoring_CreateOrUpdateExportedModel_ShortVersion_Convenience_Async() + public async Task Example_Authoring_CreateOrUpdateExportedModel_ShortVersion_Convenience_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); ExportedModelDetails body = new ExportedModelDetails(""); Operation operation = await client.CreateOrUpdateExportedModelAsync(WaitUntil.Completed, "", "", body); @@ -6411,11 +6411,11 @@ public async Task Example_AnalyzeConversationAuthoring_CreateOrUpdateExportedMod [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoring_CreateOrUpdateExportedModel_AllParameters() + public void Example_Authoring_CreateOrUpdateExportedModel_AllParameters() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { @@ -6426,11 +6426,11 @@ public void Example_AnalyzeConversationAuthoring_CreateOrUpdateExportedModel_All [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoring_CreateOrUpdateExportedModel_AllParameters_Async() + public async Task Example_Authoring_CreateOrUpdateExportedModel_AllParameters_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { @@ -6441,11 +6441,11 @@ public async Task Example_AnalyzeConversationAuthoring_CreateOrUpdateExportedMod [Test] [Ignore("Only validating compilation of examples")] - public void Example_AnalyzeConversationAuthoring_CreateOrUpdateExportedModel_AllParameters_Convenience() + public void Example_Authoring_CreateOrUpdateExportedModel_AllParameters_Convenience() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); ExportedModelDetails body = new ExportedModelDetails(""); Operation operation = client.CreateOrUpdateExportedModel(WaitUntil.Completed, "", "", body); @@ -6453,11 +6453,11 @@ public void Example_AnalyzeConversationAuthoring_CreateOrUpdateExportedModel_All [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_AnalyzeConversationAuthoring_CreateOrUpdateExportedModel_AllParameters_Convenience_Async() + public async Task Example_Authoring_CreateOrUpdateExportedModel_AllParameters_Convenience_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); - AnalyzeConversationAuthoring client = new AuthoringClient(endpoint, credential).GetAnalyzeConversationAuthoringClient(apiVersion: "2024-11-15-preview"); + AuthoringClient client = new AuthoringClient(endpoint, credential); ExportedModelDetails body = new ExportedModelDetails(""); Operation operation = await client.CreateOrUpdateExportedModelAsync(WaitUntil.Completed, "", "", body); diff --git a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/tsp-location.yaml b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/tsp-location.yaml index 66b85f8aaf90c..9fceb0c03155b 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/tsp-location.yaml +++ b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/tsp-location.yaml @@ -1,4 +1,4 @@ directory: specification/cognitiveservices/Language.AnalyzeConversations-authoring -commit: 1bbb8f628f6e3083b73a2190e15bb0f5911571a3 +commit: 2d94949fdb6c206d28fbbadad2ff9d8d345b6a40 repo: Azure/azure-rest-api-specs - +additionalDirectories: