diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt
index df67afa0183f..d35aa3b473e7 100644
--- a/eng/versioning/version_client.txt
+++ b/eng/versioning/version_client.txt
@@ -263,6 +263,7 @@ com.azure.spring:spring-cloud-azure-stream-binder-servicebus-core;5.20.0;5.21.0-
com.azure.spring:spring-cloud-azure-stream-binder-servicebus;5.20.0;5.21.0-beta.1
com.azure.spring:spring-cloud-azure-testcontainers;5.20.0;5.21.0-beta.1
com.azure:azure-spring-data-cosmos;5.20.0;5.21.0-beta.1
+com.azure:azure-ai-language-conversations-authoring;1.0.0-beta.1;1.0.0-beta.1
com.azure.resourcemanager:azure-resourcemanager;2.47.0;2.48.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-appplatform;2.47.0;2.48.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-appservice;2.47.0;2.48.0-beta.1
diff --git a/pom.xml b/pom.xml
index f5498ce9b286..b9c14d26a317 100644
--- a/pom.xml
+++ b/pom.xml
@@ -40,6 +40,7 @@
sdk/changeanalysis
sdk/chaos
sdk/clientcore
+ sdk/cognitivelanguage
sdk/cognitiveservices
sdk/commerce
sdk/communication
diff --git a/sdk/cognitivelanguage/azure-ai-language-conversations-authoring/CHANGELOG.md b/sdk/cognitivelanguage/azure-ai-language-conversations-authoring/CHANGELOG.md
new file mode 100644
index 000000000000..b8868f90fcf7
--- /dev/null
+++ b/sdk/cognitivelanguage/azure-ai-language-conversations-authoring/CHANGELOG.md
@@ -0,0 +1,16 @@
+# Release History
+
+## 1.0.0-beta.1 (Unreleased)
+
+- Azure Authoring client library for Java. This package contains Microsoft Azure Authoring client library.
+
+### Features Added
+
+### Breaking Changes
+
+### Bugs Fixed
+
+### Other Changes
+### Features Added
+
+- Initial release for the azure-ai-language-conversations-authoring Java SDK.
diff --git a/sdk/cognitivelanguage/azure-ai-language-conversations-authoring/README.md b/sdk/cognitivelanguage/azure-ai-language-conversations-authoring/README.md
new file mode 100644
index 000000000000..475292ef9fc8
--- /dev/null
+++ b/sdk/cognitivelanguage/azure-ai-language-conversations-authoring/README.md
@@ -0,0 +1,78 @@
+# Azure Authoring client library for Java
+
+Azure Authoring client library for Java.
+
+This package contains Microsoft Azure Authoring client library.
+
+## Documentation
+
+Various documentation is available to help you get started
+
+- [API reference documentation][docs]
+- [Product documentation][product_documentation]
+
+## Getting started
+
+### Prerequisites
+
+- [Java Development Kit (JDK)][jdk] with version 8 or above
+- [Azure Subscription][azure_subscription]
+
+### Adding the package to your product
+
+[//]: # ({x-version-update-start;com.azure:azure-ai-language-conversations-authoring;current})
+```xml
+
+ com.azure
+ azure-ai-language-conversations-authoring
+ 1.0.0-beta.1
+
+```
+[//]: # ({x-version-update-end})
+
+### Authentication
+
+[Azure Identity][azure_identity] package provides the default implementation for authenticating the client.
+
+## Key concepts
+
+## Examples
+
+```java com.azure.ai.language.conversations.authoring.readme
+```
+
+### Service API versions
+
+The client library targets the latest service API version by default.
+The service client builder accepts an optional service API version parameter to specify which API version to communicate.
+
+#### Select a service API version
+
+You have the flexibility to explicitly select a supported service API version when initializing a service client via the service client builder.
+This ensures that the client can communicate with services using the specified API version.
+
+When selecting an API version, it is important to verify that there are no breaking changes compared to the latest API version.
+If there are significant differences, API calls may fail due to incompatibility.
+
+Always ensure that the chosen API version is fully supported and operational for your specific use case and that it aligns with the service's versioning policy.
+
+## Troubleshooting
+
+## Next steps
+
+## Contributing
+
+For details on contributing to this repository, see the [contributing guide](https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md).
+
+1. Fork it
+1. Create your feature branch (`git checkout -b my-new-feature`)
+1. Commit your changes (`git commit -am 'Add some feature'`)
+1. Push to the branch (`git push origin my-new-feature`)
+1. Create new Pull Request
+
+
+[product_documentation]: https://azure.microsoft.com/services/
+[docs]: https://azure.github.io/azure-sdk-for-java/
+[jdk]: https://learn.microsoft.com/azure/developer/java/fundamentals/
+[azure_subscription]: https://azure.microsoft.com/free/
+[azure_identity]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/identity/azure-identity
diff --git a/sdk/cognitivelanguage/azure-ai-language-conversations-authoring/assets.json b/sdk/cognitivelanguage/azure-ai-language-conversations-authoring/assets.json
new file mode 100644
index 000000000000..05944cbdedde
--- /dev/null
+++ b/sdk/cognitivelanguage/azure-ai-language-conversations-authoring/assets.json
@@ -0,0 +1 @@
+{"AssetsRepo":"Azure/azure-sdk-assets","AssetsRepoPrefixPath":"java","TagPrefix":"java/cognitivelanguage/azure-ai-language-conversations-authoring","Tag":""}
\ No newline at end of file
diff --git a/sdk/cognitivelanguage/azure-ai-language-conversations-authoring/pom.xml b/sdk/cognitivelanguage/azure-ai-language-conversations-authoring/pom.xml
new file mode 100644
index 000000000000..b5342215a08b
--- /dev/null
+++ b/sdk/cognitivelanguage/azure-ai-language-conversations-authoring/pom.xml
@@ -0,0 +1,72 @@
+
+
+ 4.0.0
+
+ com.azure
+ azure-client-sdk-parent
+ 1.7.0
+ ../../parents/azure-client-sdk-parent
+
+
+ com.azure
+ azure-ai-language-conversations-authoring
+ 1.0.0-beta.1
+ jar
+
+ Microsoft Azure SDK for Authoring
+ This package contains Microsoft Azure Authoring client library.
+ https://github.com/Azure/azure-sdk-for-java
+
+
+
+ The MIT License (MIT)
+ http://opensource.org/licenses/MIT
+ repo
+
+
+
+
+ https://github.com/Azure/azure-sdk-for-java
+ scm:git:git@github.com:Azure/azure-sdk-for-java.git
+ scm:git:git@github.com:Azure/azure-sdk-for-java.git
+ HEAD
+
+
+
+ microsoft
+ Microsoft
+
+
+
+ UTF-8
+ false
+
+
+
+ com.azure
+ azure-core
+ 1.55.1
+
+
+ com.azure
+ azure-core-http-netty
+ 1.15.9
+
+
+ com.azure
+ azure-core-test
+ 1.27.0-beta.6
+ test
+
+
+ com.azure
+ azure-identity
+ 1.15.2
+ test
+
+
+
diff --git a/sdk/cognitivelanguage/azure-ai-language-conversations-authoring/src/main/java/com/azure/ai/language/conversations/authoring/AuthoringAsyncClient.java b/sdk/cognitivelanguage/azure-ai-language-conversations-authoring/src/main/java/com/azure/ai/language/conversations/authoring/AuthoringAsyncClient.java
new file mode 100644
index 000000000000..27e1bacd67ae
--- /dev/null
+++ b/sdk/cognitivelanguage/azure-ai-language-conversations-authoring/src/main/java/com/azure/ai/language/conversations/authoring/AuthoringAsyncClient.java
@@ -0,0 +1,4009 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.ai.language.conversations.authoring;
+
+import com.azure.ai.language.conversations.authoring.implementation.AnalyzeConversationAuthoringsImpl;
+import com.azure.ai.language.conversations.authoring.implementation.JsonMergePatchHelper;
+import com.azure.ai.language.conversations.authoring.implementation.models.CopyProjectAuthorizationRequest;
+import com.azure.ai.language.conversations.authoring.models.AnalyzeConversationAuthoringAssignDeploymentResourcesOptions;
+import com.azure.ai.language.conversations.authoring.models.AnalyzeConversationAuthoringAssignedDeploymentResource;
+import com.azure.ai.language.conversations.authoring.models.AnalyzeConversationAuthoringAssignedResourceDeploymentsMetadata;
+import com.azure.ai.language.conversations.authoring.models.AnalyzeConversationAuthoringCopyProjectJobState;
+import com.azure.ai.language.conversations.authoring.models.AnalyzeConversationAuthoringCopyProjectOptions;
+import com.azure.ai.language.conversations.authoring.models.AnalyzeConversationAuthoringCreateDeploymentOptions;
+import com.azure.ai.language.conversations.authoring.models.AnalyzeConversationAuthoringCreateProjectOptions;
+import com.azure.ai.language.conversations.authoring.models.AnalyzeConversationAuthoringDeleteDeploymentOptions;
+import com.azure.ai.language.conversations.authoring.models.AnalyzeConversationAuthoringDeploymentDeleteFromResourcesJobState;
+import com.azure.ai.language.conversations.authoring.models.AnalyzeConversationAuthoringDeploymentJobState;
+import com.azure.ai.language.conversations.authoring.models.AnalyzeConversationAuthoringDeploymentResourcesJobState;
+import com.azure.ai.language.conversations.authoring.models.AnalyzeConversationAuthoringEvaluationJobResult;
+import com.azure.ai.language.conversations.authoring.models.AnalyzeConversationAuthoringEvaluationJobState;
+import com.azure.ai.language.conversations.authoring.models.AnalyzeConversationAuthoringEvaluationOptions;
+import com.azure.ai.language.conversations.authoring.models.AnalyzeConversationAuthoringEvaluationSummary;
+import com.azure.ai.language.conversations.authoring.models.AnalyzeConversationAuthoringExportProjectJobState;
+import com.azure.ai.language.conversations.authoring.models.AnalyzeConversationAuthoringExportedModelJobState;
+import com.azure.ai.language.conversations.authoring.models.AnalyzeConversationAuthoringExportedProject;
+import com.azure.ai.language.conversations.authoring.models.AnalyzeConversationAuthoringExportedTrainedModel;
+import com.azure.ai.language.conversations.authoring.models.AnalyzeConversationAuthoringImportProjectJobState;
+import com.azure.ai.language.conversations.authoring.models.AnalyzeConversationAuthoringLoadSnapshotJobState;
+import com.azure.ai.language.conversations.authoring.models.AnalyzeConversationAuthoringPrebuiltEntities;
+import com.azure.ai.language.conversations.authoring.models.AnalyzeConversationAuthoringProjectDeletionJobState;
+import com.azure.ai.language.conversations.authoring.models.AnalyzeConversationAuthoringProjectDeployment;
+import com.azure.ai.language.conversations.authoring.models.AnalyzeConversationAuthoringProjectMetadata;
+import com.azure.ai.language.conversations.authoring.models.AnalyzeConversationAuthoringProjectTrainedModel;
+import com.azure.ai.language.conversations.authoring.models.AnalyzeConversationAuthoringSupportedLanguages;
+import com.azure.ai.language.conversations.authoring.models.AnalyzeConversationAuthoringSwapDeploymentsJobState;
+import com.azure.ai.language.conversations.authoring.models.AnalyzeConversationAuthoringSwapDeploymentsOptions;
+import com.azure.ai.language.conversations.authoring.models.AnalyzeConversationAuthoringTrainingConfigVersions;
+import com.azure.ai.language.conversations.authoring.models.AnalyzeConversationAuthoringTrainingJobOptions;
+import com.azure.ai.language.conversations.authoring.models.AnalyzeConversationAuthoringTrainingJobResult;
+import com.azure.ai.language.conversations.authoring.models.AnalyzeConversationAuthoringTrainingJobState;
+import com.azure.ai.language.conversations.authoring.models.AnalyzeConversationAuthoringUnassignDeploymentResourcesOptions;
+import com.azure.ai.language.conversations.authoring.models.AnalyzeConversationAuthoringUtteranceEvaluationResult;
+import com.azure.ai.language.conversations.authoring.models.ExportedModelOptions;
+import com.azure.ai.language.conversations.authoring.models.ExportedProjectFormat;
+import com.azure.ai.language.conversations.authoring.models.ProjectKind;
+import com.azure.ai.language.conversations.authoring.models.StringIndexType;
+import com.azure.core.annotation.Generated;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceClient;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.exception.ClientAuthenticationException;
+import com.azure.core.exception.HttpResponseException;
+import com.azure.core.exception.ResourceModifiedException;
+import com.azure.core.exception.ResourceNotFoundException;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedResponse;
+import com.azure.core.http.rest.PagedResponseBase;
+import com.azure.core.http.rest.RequestOptions;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.BinaryData;
+import com.azure.core.util.FluxUtil;
+import com.azure.core.util.polling.PollerFlux;
+import java.util.stream.Collectors;
+import reactor.core.publisher.Flux;
+import reactor.core.publisher.Mono;
+
+/**
+ * Initializes a new instance of the asynchronous AuthoringClient type.
+ */
+@ServiceClient(builder = AuthoringClientBuilder.class, isAsync = true)
+public final class AuthoringAsyncClient {
+ @Generated
+ private final AnalyzeConversationAuthoringsImpl serviceClient;
+
+ /**
+ * Initializes an instance of AuthoringAsyncClient class.
+ *
+ * @param serviceClient the service client implementation.
+ */
+ @Generated
+ AuthoringAsyncClient(AnalyzeConversationAuthoringsImpl serviceClient) {
+ this.serviceClient = serviceClient;
+ }
+
+ /**
+ * Lists the existing projects.
+ *
Query Parameters
+ *
+ * Query Parameters
+ * | Name | Type | Required | Description |
+ * | top | Integer | No | The number of result items to return. |
+ * | skip | Integer | No | The number of result items to skip. |
+ * | maxpagesize | Integer | No | The maximum number of result items per page. |
+ *
+ * You can add these to a request with {@link RequestOptions#addQueryParam}
+ * Response Body Schema
+ *
+ *
+ * {@code
+ * {
+ * createdDateTime: OffsetDateTime (Required)
+ * lastModifiedDateTime: OffsetDateTime (Required)
+ * lastTrainedDateTime: OffsetDateTime (Optional)
+ * lastDeployedDateTime: OffsetDateTime (Optional)
+ * projectKind: String(Conversation/Orchestration/CustomConversationSummarization) (Required)
+ * settings (Optional): {
+ * confidenceThreshold: double (Optional, Required on create)
+ * }
+ * storageInputContainerName: String (Optional)
+ * projectName: String (Required)
+ * multilingual: Boolean (Optional)
+ * description: String (Optional)
+ * language: String (Required)
+ * }
+ * }
+ *
+ *
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return paged collection of AnalyzeConversationAuthoringProjectMetadata items as paginated response with
+ * {@link PagedFlux}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedFlux listProjects(RequestOptions requestOptions) {
+ return this.serviceClient.listProjectsAsync(requestOptions);
+ }
+
+ /**
+ * Gets the details of a project.
+ * Response Body Schema
+ *
+ *
+ * {@code
+ * {
+ * createdDateTime: OffsetDateTime (Required)
+ * lastModifiedDateTime: OffsetDateTime (Required)
+ * lastTrainedDateTime: OffsetDateTime (Optional)
+ * lastDeployedDateTime: OffsetDateTime (Optional)
+ * projectKind: String(Conversation/Orchestration/CustomConversationSummarization) (Required)
+ * settings (Optional): {
+ * confidenceThreshold: double (Optional, Required on create)
+ * }
+ * storageInputContainerName: String (Optional)
+ * projectName: String (Required)
+ * multilingual: Boolean (Optional)
+ * description: String (Optional)
+ * language: String (Required)
+ * }
+ * }
+ *
+ *
+ * @param projectName The new project name.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the details of a project along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> getProjectWithResponse(String projectName, RequestOptions requestOptions) {
+ return this.serviceClient.getProjectWithResponseAsync(projectName, requestOptions);
+ }
+
+ /**
+ * Creates a new project or updates an existing one.
+ * Request Body Schema
+ *
+ *
+ * {@code
+ * {
+ * projectKind: String(Conversation/Orchestration/CustomConversationSummarization) (Optional, Required on create)
+ * settings (Optional): {
+ * confidenceThreshold: double (Optional, Required on create)
+ * }
+ * storageInputContainerName: String (Optional)
+ * projectName: String (Optional, Required on create)
+ * multilingual: Boolean (Optional)
+ * description: String (Optional)
+ * language: String (Optional, Required on create)
+ * }
+ * }
+ *
+ *
+ * Response Body Schema
+ *
+ *
+ * {@code
+ * {
+ * createdDateTime: OffsetDateTime (Required)
+ * lastModifiedDateTime: OffsetDateTime (Required)
+ * lastTrainedDateTime: OffsetDateTime (Optional)
+ * lastDeployedDateTime: OffsetDateTime (Optional)
+ * projectKind: String(Conversation/Orchestration/CustomConversationSummarization) (Required)
+ * settings (Optional): {
+ * confidenceThreshold: double (Optional, Required on create)
+ * }
+ * storageInputContainerName: String (Optional)
+ * projectName: String (Required)
+ * multilingual: Boolean (Optional)
+ * description: String (Optional)
+ * language: String (Required)
+ * }
+ * }
+ *
+ *
+ * @param projectName The new project name.
+ * @param body The request body.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return represents the metadata of a project along with {@link Response} on successful completion of
+ * {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> createProjectWithResponse(String projectName, BinaryData body,
+ RequestOptions requestOptions) {
+ return this.serviceClient.createProjectWithResponseAsync(projectName, body, requestOptions);
+ }
+
+ /**
+ * Deletes a project.
+ *
+ * @param projectName The name of the project to use.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public PollerFlux beginDeleteProject(String projectName, RequestOptions requestOptions) {
+ return this.serviceClient.beginDeleteProjectAsync(projectName, requestOptions);
+ }
+
+ /**
+ * Generates a copy project operation authorization to the current target Azure resource.
+ * Request Body Schema
+ *
+ *
+ * {@code
+ * {
+ * projectKind: String(Conversation/Orchestration/CustomConversationSummarization) (Required)
+ * storageInputContainerName: String (Optional)
+ * allowOverwrite: Boolean (Optional)
+ * }
+ * }
+ *
+ *
+ * Response Body Schema
+ *
+ *
+ * {@code
+ * {
+ * projectKind: String(Conversation/Orchestration/CustomConversationSummarization) (Required)
+ * targetProjectName: String (Required)
+ * accessToken: String (Required)
+ * expiresAt: OffsetDateTime (Required)
+ * targetResourceId: String (Required)
+ * targetResourceRegion: String (Required)
+ * }
+ * }
+ *
+ *
+ * @param projectName The new project name.
+ * @param copyProjectAuthorizationRequest The copyProjectAuthorizationRequest parameter.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return represents the options for copying an existing project to another Azure resource along with
+ * {@link Response} on successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> copyProjectAuthorizationWithResponse(String projectName,
+ BinaryData copyProjectAuthorizationRequest, RequestOptions requestOptions) {
+ return this.serviceClient.copyProjectAuthorizationWithResponseAsync(projectName,
+ copyProjectAuthorizationRequest, requestOptions);
+ }
+
+ /**
+ * Copies an existing project to another Azure resource.
+ * Request Body Schema
+ *
+ *
+ * {@code
+ * {
+ * projectKind: String(Conversation/Orchestration/CustomConversationSummarization) (Required)
+ * targetProjectName: String (Required)
+ * accessToken: String (Required)
+ * expiresAt: OffsetDateTime (Required)
+ * targetResourceId: String (Required)
+ * targetResourceRegion: String (Required)
+ * }
+ * }
+ *
+ *
+ * @param projectName The name of the project to use.
+ * @param body The copy project info.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public PollerFlux beginCopyProject(String projectName, BinaryData body,
+ RequestOptions requestOptions) {
+ return this.serviceClient.beginCopyProjectAsync(projectName, body, requestOptions);
+ }
+
+ /**
+ * Triggers a job to export a project's data.
+ * Query Parameters
+ *
+ * Query Parameters
+ * | Name | Type | Required | Description |
+ * | format | String | No | The format of the exported project file to use. Allowed values:
+ * "Conversation", "Luis". |
+ * | assetKind | String | No | Kind of asset to export. |
+ * | trainedModelLabel | String | No | Trained model label to export. If the
+ * trainedModelLabel is null, the default behavior is to export the current working copy. |
+ *
+ * You can add these to a request with {@link RequestOptions#addQueryParam}
+ *
+ * @param projectName The name of the project to use.
+ * @param stringIndexType Specifies the method used to interpret string offsets. For additional information see
+ * https://aka.ms/text-analytics-offsets. Allowed values: "Utf16CodeUnit".
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public PollerFlux beginExport(String projectName, String stringIndexType,
+ RequestOptions requestOptions) {
+ return this.serviceClient.beginExportAsync(projectName, stringIndexType, requestOptions);
+ }
+
+ /**
+ * Triggers a job to import a project. If a project with the same name already exists, the data of that project is
+ * replaced.
+ * Query Parameters
+ *
+ * Query Parameters
+ * | Name | Type | Required | Description |
+ * | format | String | No | The format of the exported project file to use. Allowed values:
+ * "Conversation", "Luis". |
+ *
+ * You can add these to a request with {@link RequestOptions#addQueryParam}
+ * Request Body Schema
+ *
+ *
+ * {@code
+ * {
+ * projectFileVersion: String (Required)
+ * stringIndexType: String(Utf16CodeUnit) (Required)
+ * metadata (Required): {
+ * projectKind: String(Conversation/Orchestration/CustomConversationSummarization) (Optional, Required on create)
+ * settings (Optional): {
+ * confidenceThreshold: double (Optional, Required on create)
+ * }
+ * storageInputContainerName: String (Optional)
+ * projectName: String (Optional, Required on create)
+ * multilingual: Boolean (Optional)
+ * description: String (Optional)
+ * language: String (Optional, Required on create)
+ * }
+ * assets (Optional): {
+ * projectKind: String(Conversation/Orchestration/CustomConversationSummarization) (Required)
+ * }
+ * }
+ * }
+ *
+ *
+ * @param projectName The name of the project to use.
+ * @param body The project data to import.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public PollerFlux beginImportMethod(String projectName, BinaryData body,
+ RequestOptions requestOptions) {
+ return this.serviceClient.beginImportMethodAsync(projectName, body, requestOptions);
+ }
+
+ /**
+ * Triggers a training job for a project.
+ * Request Body Schema
+ *
+ *
+ * {@code
+ * {
+ * modelLabel: String (Required)
+ * trainingConfigVersion: String (Optional)
+ * trainingMode: String(advanced/standard) (Required)
+ * evaluationOptions (Optional): {
+ * kind: String(percentage/manual) (Optional)
+ * trainingSplitPercentage: Integer (Optional)
+ * testingSplitPercentage: Integer (Optional)
+ * }
+ * }
+ * }
+ *
+ *
+ * @param projectName The name of the project to use.
+ * @param body The training input parameters.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public PollerFlux beginTrain(String projectName, BinaryData body,
+ RequestOptions requestOptions) {
+ return this.serviceClient.beginTrainAsync(projectName, body, requestOptions);
+ }
+
+ /**
+ * Gets the status of an existing copy project job.
+ * Response Body Schema
+ *
+ *
+ * {@code
+ * {
+ * jobId: String (Required)
+ * createdDateTime: OffsetDateTime (Required)
+ * lastUpdatedDateTime: OffsetDateTime (Required)
+ * expirationDateTime: OffsetDateTime (Optional)
+ * status: String(notStarted/running/succeeded/failed/cancelled/cancelling/partiallyCompleted) (Required)
+ * warnings (Optional): [
+ * (Optional){
+ * code: String (Required)
+ * message: String (Required)
+ * }
+ * ]
+ * errors (Optional): [
+ * (Optional){
+ * code: String(InvalidRequest/InvalidArgument/Unauthorized/Forbidden/NotFound/ProjectNotFound/OperationNotFound/AzureCognitiveSearchNotFound/AzureCognitiveSearchIndexNotFound/TooManyRequests/AzureCognitiveSearchThrottling/AzureCognitiveSearchIndexLimitReached/InternalServerError/ServiceUnavailable/Timeout/QuotaExceeded/Conflict/Warning) (Required)
+ * message: String (Required)
+ * target: String (Optional)
+ * details (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * innererror (Optional): {
+ * code: String(InvalidRequest/InvalidParameterValue/KnowledgeBaseNotFound/AzureCognitiveSearchNotFound/AzureCognitiveSearchThrottling/ExtractionFailure/InvalidRequestBodyFormat/EmptyRequest/MissingInputDocuments/InvalidDocument/ModelVersionIncorrect/InvalidDocumentBatch/UnsupportedLanguageCode/InvalidCountryHint) (Required)
+ * message: String (Required)
+ * details (Optional): {
+ * String: String (Required)
+ * }
+ * target: String (Optional)
+ * innererror (Optional): (recursive schema, see innererror above)
+ * }
+ * }
+ * ]
+ * }
+ * }
+ *
+ *
+ * @param projectName The new project name.
+ * @param jobId The job ID.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the status of an existing copy project job along with {@link Response} on successful completion of
+ * {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> getCopyProjectStatusWithResponse(String projectName, String jobId,
+ RequestOptions requestOptions) {
+ return this.serviceClient.getCopyProjectStatusWithResponseAsync(projectName, jobId, requestOptions);
+ }
+
+ /**
+ * Lists the deployments belonging to a project.
+ * Query Parameters
+ *
+ * Query Parameters
+ * | Name | Type | Required | Description |
+ * | top | Integer | No | The number of result items to return. |
+ * | skip | Integer | No | The number of result items to skip. |
+ * | maxpagesize | Integer | No | The maximum number of result items per page. |
+ *
+ * You can add these to a request with {@link RequestOptions#addQueryParam}
+ * Response Body Schema
+ *
+ *
+ * {@code
+ * {
+ * deploymentName: String (Required)
+ * modelId: String (Required)
+ * lastTrainedDateTime: OffsetDateTime (Required)
+ * lastDeployedDateTime: OffsetDateTime (Required)
+ * deploymentExpirationDate: LocalDate (Required)
+ * modelTrainingConfigVersion: String (Required)
+ * assignedResources (Required): [
+ * (Required){
+ * resourceId: String (Required)
+ * region: String (Required)
+ * }
+ * ]
+ * }
+ * }
+ *
+ *
+ * @param projectName The new project name.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return paged collection of AnalyzeConversationAuthoringProjectDeployment items as paginated response with
+ * {@link PagedFlux}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedFlux listDeployments(String projectName, RequestOptions requestOptions) {
+ return this.serviceClient.listDeploymentsAsync(projectName, requestOptions);
+ }
+
+ /**
+ * Swaps two existing deployments with each other.
+ * Request Body Schema
+ *
+ *
+ * {@code
+ * {
+ * firstDeploymentName: String (Required)
+ * secondDeploymentName: String (Required)
+ * }
+ * }
+ *
+ *
+ * @param projectName The name of the project to use.
+ * @param body The job object to swap two deployments.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public PollerFlux beginSwapDeployments(String projectName, BinaryData body,
+ RequestOptions requestOptions) {
+ return this.serviceClient.beginSwapDeploymentsAsync(projectName, body, requestOptions);
+ }
+
+ /**
+ * Gets the details of a deployment.
+ * Response Body Schema
+ *
+ *
+ * {@code
+ * {
+ * deploymentName: String (Required)
+ * modelId: String (Required)
+ * lastTrainedDateTime: OffsetDateTime (Required)
+ * lastDeployedDateTime: OffsetDateTime (Required)
+ * deploymentExpirationDate: LocalDate (Required)
+ * modelTrainingConfigVersion: String (Required)
+ * assignedResources (Required): [
+ * (Required){
+ * resourceId: String (Required)
+ * region: String (Required)
+ * }
+ * ]
+ * }
+ * }
+ *
+ *
+ * @param projectName The new project name.
+ * @param deploymentName Represents deployment name.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the details of a deployment along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> getDeploymentWithResponse(String projectName, String deploymentName,
+ RequestOptions requestOptions) {
+ return this.serviceClient.getDeploymentWithResponseAsync(projectName, deploymentName, requestOptions);
+ }
+
+ /**
+ * Creates a new deployment or replaces an existing one.
+ * Request Body Schema
+ *
+ *
+ * {@code
+ * {
+ * trainedModelLabel: String (Required)
+ * assignedResourceIds (Optional): [
+ * String (Optional)
+ * ]
+ * }
+ * }
+ *
+ *
+ * @param projectName The name of the project to use.
+ * @param deploymentName The name of the specific deployment of the project to use.
+ * @param body The new deployment info.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public PollerFlux beginDeployProject(String projectName, String deploymentName,
+ BinaryData body, RequestOptions requestOptions) {
+ return this.serviceClient.beginDeployProjectAsync(projectName, deploymentName, body, requestOptions);
+ }
+
+ /**
+ * Deletes a project deployment.
+ *
+ * @param projectName The name of the project to use.
+ * @param deploymentName The name of the specific deployment of the project to use.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public PollerFlux beginDeleteDeployment(String projectName, String deploymentName,
+ RequestOptions requestOptions) {
+ return this.serviceClient.beginDeleteDeploymentAsync(projectName, deploymentName, requestOptions);
+ }
+
+ /**
+ * Deletes a project deployment from the specified assigned resources.
+ * Request Body Schema
+ *
+ *
+ * {@code
+ * {
+ * assignedResourceIds (Optional): [
+ * String (Optional)
+ * ]
+ * }
+ * }
+ *
+ *
+ * @param projectName The name of the project to use.
+ * @param deploymentName The name of the specific deployment of the project to use.
+ * @param body The options for deleting the deployment.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public PollerFlux beginDeleteDeploymentFromResources(String projectName,
+ String deploymentName, BinaryData body, RequestOptions requestOptions) {
+ return this.serviceClient.beginDeleteDeploymentFromResourcesAsync(projectName, deploymentName, body,
+ requestOptions);
+ }
+
+ /**
+ * Gets the status of an existing delete deployment from specific resources job.
+ * Response Body Schema
+ *
+ *
+ * {@code
+ * {
+ * jobId: String (Required)
+ * createdDateTime: OffsetDateTime (Required)
+ * lastUpdatedDateTime: OffsetDateTime (Required)
+ * expirationDateTime: OffsetDateTime (Optional)
+ * status: String(notStarted/running/succeeded/failed/cancelled/cancelling/partiallyCompleted) (Required)
+ * warnings (Optional): [
+ * (Optional){
+ * code: String (Required)
+ * message: String (Required)
+ * }
+ * ]
+ * errors (Optional): [
+ * (Optional){
+ * code: String(InvalidRequest/InvalidArgument/Unauthorized/Forbidden/NotFound/ProjectNotFound/OperationNotFound/AzureCognitiveSearchNotFound/AzureCognitiveSearchIndexNotFound/TooManyRequests/AzureCognitiveSearchThrottling/AzureCognitiveSearchIndexLimitReached/InternalServerError/ServiceUnavailable/Timeout/QuotaExceeded/Conflict/Warning) (Required)
+ * message: String (Required)
+ * target: String (Optional)
+ * details (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * innererror (Optional): {
+ * code: String(InvalidRequest/InvalidParameterValue/KnowledgeBaseNotFound/AzureCognitiveSearchNotFound/AzureCognitiveSearchThrottling/ExtractionFailure/InvalidRequestBodyFormat/EmptyRequest/MissingInputDocuments/InvalidDocument/ModelVersionIncorrect/InvalidDocumentBatch/UnsupportedLanguageCode/InvalidCountryHint) (Required)
+ * message: String (Required)
+ * details (Optional): {
+ * String: String (Required)
+ * }
+ * target: String (Optional)
+ * innererror (Optional): (recursive schema, see innererror above)
+ * }
+ * }
+ * ]
+ * }
+ * }
+ *
+ *
+ * @param projectName The new project name.
+ * @param deploymentName Represents deployment name.
+ * @param jobId The job ID.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the status of an existing delete deployment from specific resources job along with {@link Response} on
+ * successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> getDeploymentDeleteFromResourcesStatusWithResponse(String projectName,
+ String deploymentName, String jobId, RequestOptions requestOptions) {
+ return this.serviceClient.getDeploymentDeleteFromResourcesStatusWithResponseAsync(projectName, deploymentName,
+ jobId, requestOptions);
+ }
+
+ /**
+ * Gets the status of an existing deployment job.
+ * Response Body Schema
+ *
+ *
+ * {@code
+ * {
+ * jobId: String (Required)
+ * createdDateTime: OffsetDateTime (Required)
+ * lastUpdatedDateTime: OffsetDateTime (Required)
+ * expirationDateTime: OffsetDateTime (Optional)
+ * status: String(notStarted/running/succeeded/failed/cancelled/cancelling/partiallyCompleted) (Required)
+ * warnings (Optional): [
+ * (Optional){
+ * code: String (Required)
+ * message: String (Required)
+ * }
+ * ]
+ * errors (Optional): [
+ * (Optional){
+ * code: String(InvalidRequest/InvalidArgument/Unauthorized/Forbidden/NotFound/ProjectNotFound/OperationNotFound/AzureCognitiveSearchNotFound/AzureCognitiveSearchIndexNotFound/TooManyRequests/AzureCognitiveSearchThrottling/AzureCognitiveSearchIndexLimitReached/InternalServerError/ServiceUnavailable/Timeout/QuotaExceeded/Conflict/Warning) (Required)
+ * message: String (Required)
+ * target: String (Optional)
+ * details (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * innererror (Optional): {
+ * code: String(InvalidRequest/InvalidParameterValue/KnowledgeBaseNotFound/AzureCognitiveSearchNotFound/AzureCognitiveSearchThrottling/ExtractionFailure/InvalidRequestBodyFormat/EmptyRequest/MissingInputDocuments/InvalidDocument/ModelVersionIncorrect/InvalidDocumentBatch/UnsupportedLanguageCode/InvalidCountryHint) (Required)
+ * message: String (Required)
+ * details (Optional): {
+ * String: String (Required)
+ * }
+ * target: String (Optional)
+ * innererror (Optional): (recursive schema, see innererror above)
+ * }
+ * }
+ * ]
+ * }
+ * }
+ *
+ *
+ * @param projectName The new project name.
+ * @param deploymentName Represents deployment name.
+ * @param jobId The job ID.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the status of an existing deployment job along with {@link Response} on successful completion of
+ * {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> getDeploymentStatusWithResponse(String projectName, String deploymentName,
+ String jobId, RequestOptions requestOptions) {
+ return this.serviceClient.getDeploymentStatusWithResponseAsync(projectName, deploymentName, jobId,
+ requestOptions);
+ }
+
+ /**
+ * Gets the status of an existing swap deployment job.
+ * Response Body Schema
+ *
+ *
+ * {@code
+ * {
+ * jobId: String (Required)
+ * createdDateTime: OffsetDateTime (Required)
+ * lastUpdatedDateTime: OffsetDateTime (Required)
+ * expirationDateTime: OffsetDateTime (Optional)
+ * status: String(notStarted/running/succeeded/failed/cancelled/cancelling/partiallyCompleted) (Required)
+ * warnings (Optional): [
+ * (Optional){
+ * code: String (Required)
+ * message: String (Required)
+ * }
+ * ]
+ * errors (Optional): [
+ * (Optional){
+ * code: String(InvalidRequest/InvalidArgument/Unauthorized/Forbidden/NotFound/ProjectNotFound/OperationNotFound/AzureCognitiveSearchNotFound/AzureCognitiveSearchIndexNotFound/TooManyRequests/AzureCognitiveSearchThrottling/AzureCognitiveSearchIndexLimitReached/InternalServerError/ServiceUnavailable/Timeout/QuotaExceeded/Conflict/Warning) (Required)
+ * message: String (Required)
+ * target: String (Optional)
+ * details (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * innererror (Optional): {
+ * code: String(InvalidRequest/InvalidParameterValue/KnowledgeBaseNotFound/AzureCognitiveSearchNotFound/AzureCognitiveSearchThrottling/ExtractionFailure/InvalidRequestBodyFormat/EmptyRequest/MissingInputDocuments/InvalidDocument/ModelVersionIncorrect/InvalidDocumentBatch/UnsupportedLanguageCode/InvalidCountryHint) (Required)
+ * message: String (Required)
+ * details (Optional): {
+ * String: String (Required)
+ * }
+ * target: String (Optional)
+ * innererror (Optional): (recursive schema, see innererror above)
+ * }
+ * }
+ * ]
+ * }
+ * }
+ *
+ *
+ * @param projectName The new project name.
+ * @param jobId The job ID.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the status of an existing swap deployment job along with {@link Response} on successful completion of
+ * {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> getSwapDeploymentsStatusWithResponse(String projectName, String jobId,
+ RequestOptions requestOptions) {
+ return this.serviceClient.getSwapDeploymentsStatusWithResponseAsync(projectName, jobId, requestOptions);
+ }
+
+ /**
+ * Gets the status of an export job. Once job completes, returns the project metadata, and assets.
+ * Response Body Schema
+ *
+ *
+ * {@code
+ * {
+ * jobId: String (Required)
+ * createdDateTime: OffsetDateTime (Required)
+ * lastUpdatedDateTime: OffsetDateTime (Required)
+ * expirationDateTime: OffsetDateTime (Optional)
+ * status: String(notStarted/running/succeeded/failed/cancelled/cancelling/partiallyCompleted) (Required)
+ * warnings (Optional): [
+ * (Optional){
+ * code: String (Required)
+ * message: String (Required)
+ * }
+ * ]
+ * errors (Optional): [
+ * (Optional){
+ * code: String(InvalidRequest/InvalidArgument/Unauthorized/Forbidden/NotFound/ProjectNotFound/OperationNotFound/AzureCognitiveSearchNotFound/AzureCognitiveSearchIndexNotFound/TooManyRequests/AzureCognitiveSearchThrottling/AzureCognitiveSearchIndexLimitReached/InternalServerError/ServiceUnavailable/Timeout/QuotaExceeded/Conflict/Warning) (Required)
+ * message: String (Required)
+ * target: String (Optional)
+ * details (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * innererror (Optional): {
+ * code: String(InvalidRequest/InvalidParameterValue/KnowledgeBaseNotFound/AzureCognitiveSearchNotFound/AzureCognitiveSearchThrottling/ExtractionFailure/InvalidRequestBodyFormat/EmptyRequest/MissingInputDocuments/InvalidDocument/ModelVersionIncorrect/InvalidDocumentBatch/UnsupportedLanguageCode/InvalidCountryHint) (Required)
+ * message: String (Required)
+ * details (Optional): {
+ * String: String (Required)
+ * }
+ * target: String (Optional)
+ * innererror (Optional): (recursive schema, see innererror above)
+ * }
+ * }
+ * ]
+ * resultUrl: String (Optional)
+ * }
+ * }
+ *
+ *
+ * @param projectName The new project name.
+ * @param jobId The job ID.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the status of an export job along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> getExportStatusWithResponse(String projectName, String jobId,
+ RequestOptions requestOptions) {
+ return this.serviceClient.getExportStatusWithResponseAsync(projectName, jobId, requestOptions);
+ }
+
+ /**
+ * Gets the status for an import.
+ * Response Body Schema
+ *
+ *
+ * {@code
+ * {
+ * jobId: String (Required)
+ * createdDateTime: OffsetDateTime (Required)
+ * lastUpdatedDateTime: OffsetDateTime (Required)
+ * expirationDateTime: OffsetDateTime (Optional)
+ * status: String(notStarted/running/succeeded/failed/cancelled/cancelling/partiallyCompleted) (Required)
+ * warnings (Optional): [
+ * (Optional){
+ * code: String (Required)
+ * message: String (Required)
+ * }
+ * ]
+ * errors (Optional): [
+ * (Optional){
+ * code: String(InvalidRequest/InvalidArgument/Unauthorized/Forbidden/NotFound/ProjectNotFound/OperationNotFound/AzureCognitiveSearchNotFound/AzureCognitiveSearchIndexNotFound/TooManyRequests/AzureCognitiveSearchThrottling/AzureCognitiveSearchIndexLimitReached/InternalServerError/ServiceUnavailable/Timeout/QuotaExceeded/Conflict/Warning) (Required)
+ * message: String (Required)
+ * target: String (Optional)
+ * details (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * innererror (Optional): {
+ * code: String(InvalidRequest/InvalidParameterValue/KnowledgeBaseNotFound/AzureCognitiveSearchNotFound/AzureCognitiveSearchThrottling/ExtractionFailure/InvalidRequestBodyFormat/EmptyRequest/MissingInputDocuments/InvalidDocument/ModelVersionIncorrect/InvalidDocumentBatch/UnsupportedLanguageCode/InvalidCountryHint) (Required)
+ * message: String (Required)
+ * details (Optional): {
+ * String: String (Required)
+ * }
+ * target: String (Optional)
+ * innererror (Optional): (recursive schema, see innererror above)
+ * }
+ * }
+ * ]
+ * }
+ * }
+ *
+ *
+ * @param projectName The new project name.
+ * @param jobId The job ID.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the status for an import along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> getImportStatusWithResponse(String projectName, String jobId,
+ RequestOptions requestOptions) {
+ return this.serviceClient.getImportStatusWithResponseAsync(projectName, jobId, requestOptions);
+ }
+
+ /**
+ * Lists the trained models belonging to a project.
+ * Query Parameters
+ *
+ * Query Parameters
+ * | Name | Type | Required | Description |
+ * | top | Integer | No | The number of result items to return. |
+ * | skip | Integer | No | The number of result items to skip. |
+ * | maxpagesize | Integer | No | The maximum number of result items per page. |
+ *
+ * You can add these to a request with {@link RequestOptions#addQueryParam}
+ * Response Body Schema
+ *
+ *
+ * {@code
+ * {
+ * label: String (Required)
+ * modelId: String (Required)
+ * lastTrainedDateTime: OffsetDateTime (Required)
+ * lastTrainingDurationInSeconds: int (Required)
+ * modelExpirationDate: LocalDate (Required)
+ * modelTrainingConfigVersion: String (Required)
+ * hasSnapshot: boolean (Required)
+ * }
+ * }
+ *
+ *
+ * @param projectName The new project name.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return paged collection of AnalyzeConversationAuthoringProjectTrainedModel items as paginated response with
+ * {@link PagedFlux}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedFlux listTrainedModels(String projectName, RequestOptions requestOptions) {
+ return this.serviceClient.listTrainedModelsAsync(projectName, requestOptions);
+ }
+
+ /**
+ * Gets the details of a trained model.
+ * Response Body Schema
+ *
+ *
+ * {@code
+ * {
+ * label: String (Required)
+ * modelId: String (Required)
+ * lastTrainedDateTime: OffsetDateTime (Required)
+ * lastTrainingDurationInSeconds: int (Required)
+ * modelExpirationDate: LocalDate (Required)
+ * modelTrainingConfigVersion: String (Required)
+ * hasSnapshot: boolean (Required)
+ * }
+ * }
+ *
+ *
+ * @param projectName The new project name.
+ * @param trainedModelLabel The trained model label.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the details of a trained model along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> getTrainedModelWithResponse(String projectName, String trainedModelLabel,
+ RequestOptions requestOptions) {
+ return this.serviceClient.getTrainedModelWithResponseAsync(projectName, trainedModelLabel, requestOptions);
+ }
+
+ /**
+ * Deletes an existing trained model.
+ *
+ * @param projectName The new project name.
+ * @param trainedModelLabel The trained model label.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> deleteTrainedModelWithResponse(String projectName, String trainedModelLabel,
+ RequestOptions requestOptions) {
+ return this.serviceClient.deleteTrainedModelWithResponseAsync(projectName, trainedModelLabel, requestOptions);
+ }
+
+ /**
+ * Triggers evaluation operation on a trained model.
+ * Request Body Schema
+ *
+ *
+ * {@code
+ * {
+ * kind: String(percentage/manual) (Optional)
+ * trainingSplitPercentage: Integer (Optional)
+ * testingSplitPercentage: Integer (Optional)
+ * }
+ * }
+ *
+ *
+ * @param projectName The name of the project to use.
+ * @param trainedModelLabel The trained model label.
+ * @param body The training input parameters.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public PollerFlux beginEvaluateModel(String projectName, String trainedModelLabel,
+ BinaryData body, RequestOptions requestOptions) {
+ return this.serviceClient.beginEvaluateModelAsync(projectName, trainedModelLabel, body, requestOptions);
+ }
+
+ /**
+ * Restores the snapshot of this trained model to be the current working directory of the project.
+ *
+ * @param projectName The name of the project to use.
+ * @param trainedModelLabel The trained model label.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public PollerFlux beginLoadSnapshot(String projectName, String trainedModelLabel,
+ RequestOptions requestOptions) {
+ return this.serviceClient.beginLoadSnapshotAsync(projectName, trainedModelLabel, requestOptions);
+ }
+
+ /**
+ * Gets the status for an evaluation job.
+ * Response Body Schema
+ *
+ *
+ * {@code
+ * {
+ * jobId: String (Required)
+ * createdDateTime: OffsetDateTime (Required)
+ * lastUpdatedDateTime: OffsetDateTime (Required)
+ * expirationDateTime: OffsetDateTime (Optional)
+ * status: String(notStarted/running/succeeded/failed/cancelled/cancelling/partiallyCompleted) (Required)
+ * warnings (Optional): [
+ * (Optional){
+ * code: String (Required)
+ * message: String (Required)
+ * }
+ * ]
+ * errors (Optional): [
+ * (Optional){
+ * code: String(InvalidRequest/InvalidArgument/Unauthorized/Forbidden/NotFound/ProjectNotFound/OperationNotFound/AzureCognitiveSearchNotFound/AzureCognitiveSearchIndexNotFound/TooManyRequests/AzureCognitiveSearchThrottling/AzureCognitiveSearchIndexLimitReached/InternalServerError/ServiceUnavailable/Timeout/QuotaExceeded/Conflict/Warning) (Required)
+ * message: String (Required)
+ * target: String (Optional)
+ * details (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * innererror (Optional): {
+ * code: String(InvalidRequest/InvalidParameterValue/KnowledgeBaseNotFound/AzureCognitiveSearchNotFound/AzureCognitiveSearchThrottling/ExtractionFailure/InvalidRequestBodyFormat/EmptyRequest/MissingInputDocuments/InvalidDocument/ModelVersionIncorrect/InvalidDocumentBatch/UnsupportedLanguageCode/InvalidCountryHint) (Required)
+ * message: String (Required)
+ * details (Optional): {
+ * String: String (Required)
+ * }
+ * target: String (Optional)
+ * innererror (Optional): (recursive schema, see innererror above)
+ * }
+ * }
+ * ]
+ * result (Required): {
+ * evaluationOptions (Required): {
+ * kind: String(percentage/manual) (Optional)
+ * trainingSplitPercentage: Integer (Optional)
+ * testingSplitPercentage: Integer (Optional)
+ * }
+ * modelLabel: String (Required)
+ * trainingConfigVersion: String (Required)
+ * percentComplete: int (Required)
+ * }
+ * }
+ * }
+ *
+ *
+ * @param projectName The new project name.
+ * @param trainedModelLabel The trained model label.
+ * @param jobId The job ID.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the status for an evaluation job along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> getEvaluationStatusWithResponse(String projectName, String trainedModelLabel,
+ String jobId, RequestOptions requestOptions) {
+ return this.serviceClient.getEvaluationStatusWithResponseAsync(projectName, trainedModelLabel, jobId,
+ requestOptions);
+ }
+
+ /**
+ * 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.
+ * Query Parameters
+ *
+ * Query Parameters
+ * | Name | Type | Required | Description |
+ * | top | Integer | No | The number of result items to return. |
+ * | skip | Integer | No | The number of result items to skip. |
+ * | maxpagesize | Integer | No | The maximum number of result items per page. |
+ *
+ * You can add these to a request with {@link RequestOptions#addQueryParam}
+ * Response Body Schema
+ *
+ *
+ * {@code
+ * {
+ * text: String (Required)
+ * language: String (Required)
+ * entitiesResult (Required): {
+ * expectedEntities (Required): [
+ * (Required){
+ * category: String (Required)
+ * offset: int (Required)
+ * length: int (Required)
+ * }
+ * ]
+ * predictedEntities (Required): [
+ * (recursive schema, see above)
+ * ]
+ * }
+ * intentsResult (Required): {
+ * expectedIntent: String (Required)
+ * predictedIntent: String (Required)
+ * }
+ * }
+ * }
+ *
+ *
+ * @param projectName The new project name.
+ * @param trainedModelLabel The trained model label.
+ * @param stringIndexType Specifies the method used to interpret string offsets. For additional information see
+ * https://aka.ms/text-analytics-offsets. Allowed values: "Utf16CodeUnit".
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the detailed results of the evaluation for a trained model as paginated response with {@link PagedFlux}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedFlux getModelEvaluationResults(String projectName, String trainedModelLabel,
+ String stringIndexType, RequestOptions requestOptions) {
+ return this.serviceClient.getModelEvaluationResultsAsync(projectName, trainedModelLabel, stringIndexType,
+ requestOptions);
+ }
+
+ /**
+ * Gets the evaluation summary of a trained model. The summary includes high level performance measurements of the
+ * model e.g., F1, Precision, Recall, etc.
+ * Response Body Schema
+ *
+ *
+ * {@code
+ * {
+ * entitiesEvaluation (Required): {
+ * confusionMatrix (Required): {
+ * (Optional): {
+ * String (Required): {
+ * (Optional): {
+ * String (Required): {
+ * normalizedValue: double (Required)
+ * rawValue: double (Required)
+ * }
+ * }
+ * }
+ * }
+ * }
+ * entities (Required): {
+ * String (Required): {
+ * f1: double (Required)
+ * precision: double (Required)
+ * recall: double (Required)
+ * truePositiveCount: int (Required)
+ * trueNegativeCount: int (Required)
+ * falsePositiveCount: int (Required)
+ * falseNegativeCount: int (Required)
+ * }
+ * }
+ * microF1: double (Required)
+ * microPrecision: double (Required)
+ * microRecall: double (Required)
+ * macroF1: double (Required)
+ * macroPrecision: double (Required)
+ * macroRecall: double (Required)
+ * }
+ * intentsEvaluation (Required): {
+ * confusionMatrix (Required): (recursive schema, see confusionMatrix above)
+ * intents (Required): {
+ * String (Required): {
+ * f1: double (Required)
+ * precision: double (Required)
+ * recall: double (Required)
+ * truePositiveCount: int (Required)
+ * trueNegativeCount: int (Required)
+ * falsePositiveCount: int (Required)
+ * falseNegativeCount: int (Required)
+ * }
+ * }
+ * microF1: double (Required)
+ * microPrecision: double (Required)
+ * microRecall: double (Required)
+ * macroF1: double (Required)
+ * macroPrecision: double (Required)
+ * macroRecall: double (Required)
+ * }
+ * evaluationOptions (Optional): {
+ * kind: String(percentage/manual) (Optional)
+ * trainingSplitPercentage: Integer (Optional)
+ * testingSplitPercentage: Integer (Optional)
+ * }
+ * }
+ * }
+ *
+ *
+ * @param projectName The name of the project to use.
+ * @param trainedModelLabel The trained model label.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the evaluation summary of a trained model along with {@link Response} on successful completion of
+ * {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> getModelEvaluationSummaryWithResponse(String projectName,
+ String trainedModelLabel, RequestOptions requestOptions) {
+ return this.serviceClient.getModelEvaluationSummaryWithResponseAsync(projectName, trainedModelLabel,
+ requestOptions);
+ }
+
+ /**
+ * Gets the status for loading a snapshot.
+ * Response Body Schema
+ *
+ *
+ * {@code
+ * {
+ * jobId: String (Required)
+ * createdDateTime: OffsetDateTime (Required)
+ * lastUpdatedDateTime: OffsetDateTime (Required)
+ * expirationDateTime: OffsetDateTime (Optional)
+ * status: String(notStarted/running/succeeded/failed/cancelled/cancelling/partiallyCompleted) (Required)
+ * warnings (Optional): [
+ * (Optional){
+ * code: String (Required)
+ * message: String (Required)
+ * }
+ * ]
+ * errors (Optional): [
+ * (Optional){
+ * code: String(InvalidRequest/InvalidArgument/Unauthorized/Forbidden/NotFound/ProjectNotFound/OperationNotFound/AzureCognitiveSearchNotFound/AzureCognitiveSearchIndexNotFound/TooManyRequests/AzureCognitiveSearchThrottling/AzureCognitiveSearchIndexLimitReached/InternalServerError/ServiceUnavailable/Timeout/QuotaExceeded/Conflict/Warning) (Required)
+ * message: String (Required)
+ * target: String (Optional)
+ * details (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * innererror (Optional): {
+ * code: String(InvalidRequest/InvalidParameterValue/KnowledgeBaseNotFound/AzureCognitiveSearchNotFound/AzureCognitiveSearchThrottling/ExtractionFailure/InvalidRequestBodyFormat/EmptyRequest/MissingInputDocuments/InvalidDocument/ModelVersionIncorrect/InvalidDocumentBatch/UnsupportedLanguageCode/InvalidCountryHint) (Required)
+ * message: String (Required)
+ * details (Optional): {
+ * String: String (Required)
+ * }
+ * target: String (Optional)
+ * innererror (Optional): (recursive schema, see innererror above)
+ * }
+ * }
+ * ]
+ * }
+ * }
+ *
+ *
+ * @param projectName The new project name.
+ * @param trainedModelLabel The trained model label.
+ * @param jobId The job ID.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the status for loading a snapshot along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> getLoadSnapshotStatusWithResponse(String projectName, String trainedModelLabel,
+ String jobId, RequestOptions requestOptions) {
+ return this.serviceClient.getLoadSnapshotStatusWithResponseAsync(projectName, trainedModelLabel, jobId,
+ requestOptions);
+ }
+
+ /**
+ * Lists the deployments resources assigned to the project.
+ * Query Parameters
+ *
+ * Query Parameters
+ * | Name | Type | Required | Description |
+ * | top | Integer | No | The number of result items to return. |
+ * | skip | Integer | No | The number of result items to skip. |
+ * | maxpagesize | Integer | No | The maximum number of result items per page. |
+ *
+ * You can add these to a request with {@link RequestOptions#addQueryParam}
+ * Response Body Schema
+ *
+ *
+ * {@code
+ * {
+ * azureResourceId: String (Required)
+ * region: String (Required)
+ * }
+ * }
+ *
+ *
+ * @param projectName The new project name.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return paged collection of AnalyzeConversationAuthoringAssignedDeploymentResource items as paginated response
+ * with {@link PagedFlux}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedFlux listDeploymentResources(String projectName, RequestOptions requestOptions) {
+ return this.serviceClient.listDeploymentResourcesAsync(projectName, requestOptions);
+ }
+
+ /**
+ * 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.
+ * Request Body Schema
+ *
+ *
+ * {@code
+ * {
+ * resourcesMetadata (Required): [
+ * (Required){
+ * azureResourceId: String (Required)
+ * customDomain: String (Required)
+ * region: String (Required)
+ * }
+ * ]
+ * }
+ * }
+ *
+ *
+ * @param projectName The name of the project to use.
+ * @param body The new project resources info.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public PollerFlux beginAssignDeploymentResources(String projectName, BinaryData body,
+ RequestOptions requestOptions) {
+ return this.serviceClient.beginAssignDeploymentResourcesAsync(projectName, body, requestOptions);
+ }
+
+ /**
+ * Unassign resources from a project. This disallows deploying new deployments to these resources, and deletes
+ * existing deployments assigned to them.
+ * Request Body Schema
+ *
+ *
+ * {@code
+ * {
+ * assignedResourceIds (Required): [
+ * String (Required)
+ * ]
+ * }
+ * }
+ *
+ *
+ * @param projectName The name of the project to use.
+ * @param body The info for the deployment resources to be deleted.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public PollerFlux beginUnassignDeploymentResources(String projectName, BinaryData body,
+ RequestOptions requestOptions) {
+ return this.serviceClient.beginUnassignDeploymentResourcesAsync(projectName, body, requestOptions);
+ }
+
+ /**
+ * Gets the status of an existing assign deployment resources job.
+ * Response Body Schema
+ *
+ *
+ * {@code
+ * {
+ * jobId: String (Required)
+ * createdDateTime: OffsetDateTime (Required)
+ * lastUpdatedDateTime: OffsetDateTime (Required)
+ * expirationDateTime: OffsetDateTime (Optional)
+ * status: String(notStarted/running/succeeded/failed/cancelled/cancelling/partiallyCompleted) (Required)
+ * warnings (Optional): [
+ * (Optional){
+ * code: String (Required)
+ * message: String (Required)
+ * }
+ * ]
+ * errors (Optional): [
+ * (Optional){
+ * code: String(InvalidRequest/InvalidArgument/Unauthorized/Forbidden/NotFound/ProjectNotFound/OperationNotFound/AzureCognitiveSearchNotFound/AzureCognitiveSearchIndexNotFound/TooManyRequests/AzureCognitiveSearchThrottling/AzureCognitiveSearchIndexLimitReached/InternalServerError/ServiceUnavailable/Timeout/QuotaExceeded/Conflict/Warning) (Required)
+ * message: String (Required)
+ * target: String (Optional)
+ * details (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * innererror (Optional): {
+ * code: String(InvalidRequest/InvalidParameterValue/KnowledgeBaseNotFound/AzureCognitiveSearchNotFound/AzureCognitiveSearchThrottling/ExtractionFailure/InvalidRequestBodyFormat/EmptyRequest/MissingInputDocuments/InvalidDocument/ModelVersionIncorrect/InvalidDocumentBatch/UnsupportedLanguageCode/InvalidCountryHint) (Required)
+ * message: String (Required)
+ * details (Optional): {
+ * String: String (Required)
+ * }
+ * target: String (Optional)
+ * innererror (Optional): (recursive schema, see innererror above)
+ * }
+ * }
+ * ]
+ * }
+ * }
+ *
+ *
+ * @param projectName The new project name.
+ * @param jobId The job ID.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the status of an existing assign deployment resources job along with {@link Response} on successful
+ * completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> getAssignDeploymentResourcesStatusWithResponse(String projectName, String jobId,
+ RequestOptions requestOptions) {
+ return this.serviceClient.getAssignDeploymentResourcesStatusWithResponseAsync(projectName, jobId,
+ requestOptions);
+ }
+
+ /**
+ * Gets the status of an existing unassign deployment resources job.
+ * Response Body Schema
+ *
+ *
+ * {@code
+ * {
+ * jobId: String (Required)
+ * createdDateTime: OffsetDateTime (Required)
+ * lastUpdatedDateTime: OffsetDateTime (Required)
+ * expirationDateTime: OffsetDateTime (Optional)
+ * status: String(notStarted/running/succeeded/failed/cancelled/cancelling/partiallyCompleted) (Required)
+ * warnings (Optional): [
+ * (Optional){
+ * code: String (Required)
+ * message: String (Required)
+ * }
+ * ]
+ * errors (Optional): [
+ * (Optional){
+ * code: String(InvalidRequest/InvalidArgument/Unauthorized/Forbidden/NotFound/ProjectNotFound/OperationNotFound/AzureCognitiveSearchNotFound/AzureCognitiveSearchIndexNotFound/TooManyRequests/AzureCognitiveSearchThrottling/AzureCognitiveSearchIndexLimitReached/InternalServerError/ServiceUnavailable/Timeout/QuotaExceeded/Conflict/Warning) (Required)
+ * message: String (Required)
+ * target: String (Optional)
+ * details (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * innererror (Optional): {
+ * code: String(InvalidRequest/InvalidParameterValue/KnowledgeBaseNotFound/AzureCognitiveSearchNotFound/AzureCognitiveSearchThrottling/ExtractionFailure/InvalidRequestBodyFormat/EmptyRequest/MissingInputDocuments/InvalidDocument/ModelVersionIncorrect/InvalidDocumentBatch/UnsupportedLanguageCode/InvalidCountryHint) (Required)
+ * message: String (Required)
+ * details (Optional): {
+ * String: String (Required)
+ * }
+ * target: String (Optional)
+ * innererror (Optional): (recursive schema, see innererror above)
+ * }
+ * }
+ * ]
+ * }
+ * }
+ *
+ *
+ * @param projectName The name of the project to use.
+ * @param jobId The job ID.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the status of an existing unassign deployment resources job along with {@link Response} on successful
+ * completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> getUnassignDeploymentResourcesStatusWithResponse(String projectName, String jobId,
+ RequestOptions requestOptions) {
+ return this.serviceClient.getUnassignDeploymentResourcesStatusWithResponseAsync(projectName, jobId,
+ requestOptions);
+ }
+
+ /**
+ * Lists the non-expired training jobs created for a project.
+ * Query Parameters
+ *
+ * Query Parameters
+ * | Name | Type | Required | Description |
+ * | top | Integer | No | The number of result items to return. |
+ * | skip | Integer | No | The number of result items to skip. |
+ * | maxpagesize | Integer | No | The maximum number of result items per page. |
+ *
+ * You can add these to a request with {@link RequestOptions#addQueryParam}
+ * Response Body Schema
+ *
+ *
+ * {@code
+ * {
+ * jobId: String (Required)
+ * createdDateTime: OffsetDateTime (Required)
+ * lastUpdatedDateTime: OffsetDateTime (Required)
+ * expirationDateTime: OffsetDateTime (Optional)
+ * status: String(notStarted/running/succeeded/failed/cancelled/cancelling/partiallyCompleted) (Required)
+ * warnings (Optional): [
+ * (Optional){
+ * code: String (Required)
+ * message: String (Required)
+ * }
+ * ]
+ * errors (Optional): [
+ * (Optional){
+ * code: String(InvalidRequest/InvalidArgument/Unauthorized/Forbidden/NotFound/ProjectNotFound/OperationNotFound/AzureCognitiveSearchNotFound/AzureCognitiveSearchIndexNotFound/TooManyRequests/AzureCognitiveSearchThrottling/AzureCognitiveSearchIndexLimitReached/InternalServerError/ServiceUnavailable/Timeout/QuotaExceeded/Conflict/Warning) (Required)
+ * message: String (Required)
+ * target: String (Optional)
+ * details (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * innererror (Optional): {
+ * code: String(InvalidRequest/InvalidParameterValue/KnowledgeBaseNotFound/AzureCognitiveSearchNotFound/AzureCognitiveSearchThrottling/ExtractionFailure/InvalidRequestBodyFormat/EmptyRequest/MissingInputDocuments/InvalidDocument/ModelVersionIncorrect/InvalidDocumentBatch/UnsupportedLanguageCode/InvalidCountryHint) (Required)
+ * message: String (Required)
+ * details (Optional): {
+ * String: String (Required)
+ * }
+ * target: String (Optional)
+ * innererror (Optional): (recursive schema, see innererror above)
+ * }
+ * }
+ * ]
+ * result (Required): {
+ * modelLabel: String (Required)
+ * trainingConfigVersion: String (Required)
+ * trainingMode: String(advanced/standard) (Optional)
+ * trainingStatus (Required): {
+ * percentComplete: int (Required)
+ * startDateTime: OffsetDateTime (Optional)
+ * endDateTime: OffsetDateTime (Optional)
+ * status: String(notStarted/running/succeeded/failed/cancelled/cancelling/partiallyCompleted) (Required)
+ * }
+ * evaluationStatus (Optional): (recursive schema, see evaluationStatus above)
+ * estimatedEndDateTime: OffsetDateTime (Optional)
+ * }
+ * }
+ * }
+ *
+ *
+ * @param projectName The new project name.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return paged collection of AnalyzeConversationAuthoringTrainingJobState items as paginated response with
+ * {@link PagedFlux}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedFlux listTrainingJobs(String projectName, RequestOptions requestOptions) {
+ return this.serviceClient.listTrainingJobsAsync(projectName, requestOptions);
+ }
+
+ /**
+ * Gets the status for a training job.
+ * Response Body Schema
+ *
+ *
+ * {@code
+ * {
+ * jobId: String (Required)
+ * createdDateTime: OffsetDateTime (Required)
+ * lastUpdatedDateTime: OffsetDateTime (Required)
+ * expirationDateTime: OffsetDateTime (Optional)
+ * status: String(notStarted/running/succeeded/failed/cancelled/cancelling/partiallyCompleted) (Required)
+ * warnings (Optional): [
+ * (Optional){
+ * code: String (Required)
+ * message: String (Required)
+ * }
+ * ]
+ * errors (Optional): [
+ * (Optional){
+ * code: String(InvalidRequest/InvalidArgument/Unauthorized/Forbidden/NotFound/ProjectNotFound/OperationNotFound/AzureCognitiveSearchNotFound/AzureCognitiveSearchIndexNotFound/TooManyRequests/AzureCognitiveSearchThrottling/AzureCognitiveSearchIndexLimitReached/InternalServerError/ServiceUnavailable/Timeout/QuotaExceeded/Conflict/Warning) (Required)
+ * message: String (Required)
+ * target: String (Optional)
+ * details (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * innererror (Optional): {
+ * code: String(InvalidRequest/InvalidParameterValue/KnowledgeBaseNotFound/AzureCognitiveSearchNotFound/AzureCognitiveSearchThrottling/ExtractionFailure/InvalidRequestBodyFormat/EmptyRequest/MissingInputDocuments/InvalidDocument/ModelVersionIncorrect/InvalidDocumentBatch/UnsupportedLanguageCode/InvalidCountryHint) (Required)
+ * message: String (Required)
+ * details (Optional): {
+ * String: String (Required)
+ * }
+ * target: String (Optional)
+ * innererror (Optional): (recursive schema, see innererror above)
+ * }
+ * }
+ * ]
+ * result (Required): {
+ * modelLabel: String (Required)
+ * trainingConfigVersion: String (Required)
+ * trainingMode: String(advanced/standard) (Optional)
+ * trainingStatus (Required): {
+ * percentComplete: int (Required)
+ * startDateTime: OffsetDateTime (Optional)
+ * endDateTime: OffsetDateTime (Optional)
+ * status: String(notStarted/running/succeeded/failed/cancelled/cancelling/partiallyCompleted) (Required)
+ * }
+ * evaluationStatus (Optional): (recursive schema, see evaluationStatus above)
+ * estimatedEndDateTime: OffsetDateTime (Optional)
+ * }
+ * }
+ * }
+ *
+ *
+ * @param projectName The new project name.
+ * @param jobId The job ID.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the status for a training job along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> getTrainingStatusWithResponse(String projectName, String jobId,
+ RequestOptions requestOptions) {
+ return this.serviceClient.getTrainingStatusWithResponseAsync(projectName, jobId, requestOptions);
+ }
+
+ /**
+ * Triggers a cancellation for a running training job.
+ *
+ * @param projectName The name of the project to use.
+ * @param jobId The job ID.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public PollerFlux beginCancelTrainingJob(String projectName, String jobId,
+ RequestOptions requestOptions) {
+ return this.serviceClient.beginCancelTrainingJobAsync(projectName, jobId, requestOptions);
+ }
+
+ /**
+ * Gets the status for a project deletion job.
+ * Response Body Schema
+ *
+ *
+ * {@code
+ * {
+ * jobId: String (Required)
+ * createdDateTime: OffsetDateTime (Required)
+ * lastUpdatedDateTime: OffsetDateTime (Required)
+ * expirationDateTime: OffsetDateTime (Optional)
+ * status: String(notStarted/running/succeeded/failed/cancelled/cancelling/partiallyCompleted) (Required)
+ * warnings (Optional): [
+ * (Optional){
+ * code: String (Required)
+ * message: String (Required)
+ * }
+ * ]
+ * errors (Optional): [
+ * (Optional){
+ * code: String(InvalidRequest/InvalidArgument/Unauthorized/Forbidden/NotFound/ProjectNotFound/OperationNotFound/AzureCognitiveSearchNotFound/AzureCognitiveSearchIndexNotFound/TooManyRequests/AzureCognitiveSearchThrottling/AzureCognitiveSearchIndexLimitReached/InternalServerError/ServiceUnavailable/Timeout/QuotaExceeded/Conflict/Warning) (Required)
+ * message: String (Required)
+ * target: String (Optional)
+ * details (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * innererror (Optional): {
+ * code: String(InvalidRequest/InvalidParameterValue/KnowledgeBaseNotFound/AzureCognitiveSearchNotFound/AzureCognitiveSearchThrottling/ExtractionFailure/InvalidRequestBodyFormat/EmptyRequest/MissingInputDocuments/InvalidDocument/ModelVersionIncorrect/InvalidDocumentBatch/UnsupportedLanguageCode/InvalidCountryHint) (Required)
+ * message: String (Required)
+ * details (Optional): {
+ * String: String (Required)
+ * }
+ * target: String (Optional)
+ * innererror (Optional): (recursive schema, see innererror above)
+ * }
+ * }
+ * ]
+ * }
+ * }
+ *
+ *
+ * @param jobId The job ID.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the status for a project deletion job along with {@link Response} on successful completion of
+ * {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> getProjectDeletionStatusWithResponse(String jobId,
+ RequestOptions requestOptions) {
+ return this.serviceClient.getProjectDeletionStatusWithResponseAsync(jobId, requestOptions);
+ }
+
+ /**
+ * 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.
+ * Query Parameters
+ *
+ * Query Parameters
+ * | Name | Type | Required | Description |
+ * | top | Integer | No | The maximum number of resources to return from the
+ * collection. |
+ * | skip | Integer | No | An offset into the collection of the first resource to be
+ * returned. |
+ * | maxpagesize | Integer | No | The maximum number of resources to include in a single
+ * response. |
+ *
+ * You can add these to a request with {@link RequestOptions#addQueryParam}
+ * Response Body Schema
+ *
+ *
+ * {@code
+ * {
+ * value (Required): [
+ * (Required){
+ * projectName: String (Required)
+ * deploymentsMetadata (Required): [
+ * (Required){
+ * deploymentName: String (Required)
+ * lastDeployedDateTime: OffsetDateTime (Required)
+ * deploymentExpirationDate: LocalDate (Required)
+ * }
+ * ]
+ * }
+ * ]
+ * nextLink: String (Optional)
+ * }
+ * }
+ *
+ *
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return represents the metadata for deployments assigned to a resource along with {@link Response} on successful
+ * completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> listAssignedResourceDeploymentsWithResponse(RequestOptions requestOptions) {
+ return this.serviceClient.listAssignedResourceDeploymentsWithResponseAsync(requestOptions);
+ }
+
+ /**
+ * Lists the supported languages for the given project type.
+ * Query Parameters
+ *
+ * Query Parameters
+ * | Name | Type | Required | Description |
+ * | top | Integer | No | The maximum number of resources to return from the
+ * collection. |
+ * | skip | Integer | No | An offset into the collection of the first resource to be
+ * returned. |
+ * | maxpagesize | Integer | No | The maximum number of resources to include in a single
+ * response. |
+ *
+ * You can add these to a request with {@link RequestOptions#addQueryParam}
+ * Response Body Schema
+ *
+ *
+ * {@code
+ * {
+ * value (Required): [
+ * (Required){
+ * languageName: String (Required)
+ * languageCode: String (Required)
+ * }
+ * ]
+ * nextLink: String (Optional)
+ * }
+ * }
+ *
+ *
+ * @param projectKind The project kind. Allowed values: "Conversation", "Orchestration",
+ * "CustomConversationSummarization".
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return represents a list of retrieved languages along with {@link Response} on successful completion of
+ * {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> getSupportedLanguagesWithResponse(String projectKind,
+ RequestOptions requestOptions) {
+ return this.serviceClient.getSupportedLanguagesWithResponseAsync(projectKind, requestOptions);
+ }
+
+ /**
+ * Lists the supported prebuilt entities that can be used while creating composed entities.
+ * Query Parameters
+ *
+ * Query Parameters
+ * | Name | Type | Required | Description |
+ * | language | String | No | 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. |
+ * | multilingual | String | No | Whether to get the support prebuilt entities for
+ * multilingual or monolingual projects. If true, the language parameter is ignored. |
+ * | top | Integer | No | The maximum number of resources to return from the
+ * collection. |
+ * | skip | Integer | No | An offset into the collection of the first resource to be
+ * returned. |
+ * | maxpagesize | Integer | No | The maximum number of resources to include in a single
+ * response. |
+ *
+ * You can add these to a request with {@link RequestOptions#addQueryParam}
+ * Response Body Schema
+ *
+ *
+ * {@code
+ * {
+ * value (Required): [
+ * (Required){
+ * category: String (Required)
+ * description: String (Required)
+ * examples: String (Required)
+ * }
+ * ]
+ * nextLink: String (Optional)
+ * }
+ * }
+ *
+ *
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return represents a list of the retrieved supported prebuilt entities along with {@link Response} on successful
+ * completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> getSupportedPrebuiltEntitiesWithResponse(RequestOptions requestOptions) {
+ return this.serviceClient.getSupportedPrebuiltEntitiesWithResponseAsync(requestOptions);
+ }
+
+ /**
+ * Lists the support training config version for a given project type.
+ * Query Parameters
+ *
+ * Query Parameters
+ * | Name | Type | Required | Description |
+ * | top | Integer | No | The maximum number of resources to return from the
+ * collection. |
+ * | skip | Integer | No | An offset into the collection of the first resource to be
+ * returned. |
+ * | maxpagesize | Integer | No | The maximum number of resources to include in a single
+ * response. |
+ *
+ * You can add these to a request with {@link RequestOptions#addQueryParam}
+ * Response Body Schema
+ *
+ *
+ * {@code
+ * {
+ * value (Required): [
+ * (Required){
+ * trainingConfigVersion: String (Required)
+ * modelExpirationDate: LocalDate (Required)
+ * }
+ * ]
+ * nextLink: String (Optional)
+ * }
+ * }
+ *
+ *
+ * @param projectKind The project kind. Allowed values: "Conversation", "Orchestration",
+ * "CustomConversationSummarization".
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return represents a list of training config versions along with {@link Response} on successful completion of
+ * {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> listTrainingConfigVersionsWithResponse(String projectKind,
+ RequestOptions requestOptions) {
+ return this.serviceClient.listTrainingConfigVersionsWithResponseAsync(projectKind, requestOptions);
+ }
+
+ /**
+ * Gets the details of an exported model.
+ * Response Body Schema
+ *
+ *
+ * {@code
+ * {
+ * exportedModelName: String (Required)
+ * modelId: String (Required)
+ * lastTrainedDateTime: OffsetDateTime (Required)
+ * lastExportedModelDateTime: OffsetDateTime (Required)
+ * modelExpirationDate: LocalDate (Required)
+ * modelTrainingConfigVersion: String (Required)
+ * }
+ * }
+ *
+ *
+ * @param projectName The new project name.
+ * @param exportedModelName The exported model name.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the details of an exported model along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> getExportedModelWithResponse(String projectName, String exportedModelName,
+ RequestOptions requestOptions) {
+ return this.serviceClient.getExportedModelWithResponseAsync(projectName, exportedModelName, requestOptions);
+ }
+
+ /**
+ * Lists the exported models belonging to a project.
+ * Query Parameters
+ *
+ * Query Parameters
+ * | Name | Type | Required | Description |
+ * | top | Integer | No | The number of result items to return. |
+ * | skip | Integer | No | The number of result items to skip. |
+ * | maxpagesize | Integer | No | The maximum number of result items per page. |
+ *
+ * You can add these to a request with {@link RequestOptions#addQueryParam}
+ * Response Body Schema
+ *
+ *
+ * {@code
+ * {
+ * exportedModelName: String (Required)
+ * modelId: String (Required)
+ * lastTrainedDateTime: OffsetDateTime (Required)
+ * lastExportedModelDateTime: OffsetDateTime (Required)
+ * modelExpirationDate: LocalDate (Required)
+ * modelTrainingConfigVersion: String (Required)
+ * }
+ * }
+ *
+ *
+ * @param projectName The new project name.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return paged collection of AnalyzeConversationAuthoringExportedTrainedModel items as paginated response with
+ * {@link PagedFlux}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedFlux listExportedModels(String projectName, RequestOptions requestOptions) {
+ return this.serviceClient.listExportedModelsAsync(projectName, requestOptions);
+ }
+
+ /**
+ * Deletes an existing exported model.
+ *
+ * @param projectName The name of the project to use.
+ * @param exportedModelName The exported model name.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public PollerFlux beginDeleteExportedModel(String projectName, String exportedModelName,
+ RequestOptions requestOptions) {
+ return this.serviceClient.beginDeleteExportedModelAsync(projectName, exportedModelName, requestOptions);
+ }
+
+ /**
+ * Creates a new exported model or replaces an existing one.
+ * Request Body Schema
+ *
+ *
+ * {@code
+ * {
+ * trainedModelLabel: String (Required)
+ * }
+ * }
+ *
+ *
+ * @param projectName The name of the project to use.
+ * @param exportedModelName The exported model name.
+ * @param body The exported model info.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public PollerFlux beginCreateOrUpdateExportedModel(String projectName,
+ String exportedModelName, BinaryData body, RequestOptions requestOptions) {
+ return this.serviceClient.beginCreateOrUpdateExportedModelAsync(projectName, exportedModelName, body,
+ requestOptions);
+ }
+
+ /**
+ * Gets the status for an existing job to create or update an exported model.
+ * Response Body Schema
+ *
+ *
+ * {@code
+ * {
+ * jobId: String (Required)
+ * createdDateTime: OffsetDateTime (Required)
+ * lastUpdatedDateTime: OffsetDateTime (Required)
+ * expirationDateTime: OffsetDateTime (Optional)
+ * status: String(notStarted/running/succeeded/failed/cancelled/cancelling/partiallyCompleted) (Required)
+ * warnings (Optional): [
+ * (Optional){
+ * code: String (Required)
+ * message: String (Required)
+ * }
+ * ]
+ * errors (Optional): [
+ * (Optional){
+ * code: String(InvalidRequest/InvalidArgument/Unauthorized/Forbidden/NotFound/ProjectNotFound/OperationNotFound/AzureCognitiveSearchNotFound/AzureCognitiveSearchIndexNotFound/TooManyRequests/AzureCognitiveSearchThrottling/AzureCognitiveSearchIndexLimitReached/InternalServerError/ServiceUnavailable/Timeout/QuotaExceeded/Conflict/Warning) (Required)
+ * message: String (Required)
+ * target: String (Optional)
+ * details (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * innererror (Optional): {
+ * code: String(InvalidRequest/InvalidParameterValue/KnowledgeBaseNotFound/AzureCognitiveSearchNotFound/AzureCognitiveSearchThrottling/ExtractionFailure/InvalidRequestBodyFormat/EmptyRequest/MissingInputDocuments/InvalidDocument/ModelVersionIncorrect/InvalidDocumentBatch/UnsupportedLanguageCode/InvalidCountryHint) (Required)
+ * message: String (Required)
+ * details (Optional): {
+ * String: String (Required)
+ * }
+ * target: String (Optional)
+ * innererror (Optional): (recursive schema, see innererror above)
+ * }
+ * }
+ * ]
+ * }
+ * }
+ *
+ *
+ * @param projectName The new project name.
+ * @param exportedModelName The exported model name.
+ * @param jobId The job ID.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the status for an existing job to create or update an exported model along with {@link Response} on
+ * successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> getExportedModelJobStatusWithResponse(String projectName,
+ String exportedModelName, String jobId, RequestOptions requestOptions) {
+ return this.serviceClient.getExportedModelJobStatusWithResponseAsync(projectName, exportedModelName, jobId,
+ requestOptions);
+ }
+
+ /**
+ * Lists the existing projects.
+ *
+ * @param top The number of result items to return.
+ * @param skip The number of result items to skip.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return paged collection of AnalyzeConversationAuthoringProjectMetadata items as paginated response with
+ * {@link PagedFlux}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedFlux listProjects(Integer top, Integer skip) {
+ // Generated convenience method for listProjects
+ RequestOptions requestOptions = new RequestOptions();
+ if (top != null) {
+ requestOptions.addQueryParam("top", String.valueOf(top), false);
+ }
+ if (skip != null) {
+ requestOptions.addQueryParam("skip", String.valueOf(skip), false);
+ }
+ PagedFlux pagedFluxResponse = listProjects(requestOptions);
+ return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> {
+ Flux> flux = (continuationTokenParam == null)
+ ? pagedFluxResponse.byPage().take(1)
+ : pagedFluxResponse.byPage(continuationTokenParam).take(1);
+ return flux.map(pagedResponse -> new PagedResponseBase(
+ pagedResponse.getRequest(), pagedResponse.getStatusCode(), pagedResponse.getHeaders(),
+ pagedResponse.getValue()
+ .stream()
+ .map(protocolMethodData -> protocolMethodData
+ .toObject(AnalyzeConversationAuthoringProjectMetadata.class))
+ .collect(Collectors.toList()),
+ pagedResponse.getContinuationToken(), null));
+ });
+ }
+
+ /**
+ * Lists the existing projects.
+ *
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return paged collection of AnalyzeConversationAuthoringProjectMetadata items as paginated response with
+ * {@link PagedFlux}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedFlux listProjects() {
+ // Generated convenience method for listProjects
+ RequestOptions requestOptions = new RequestOptions();
+ PagedFlux pagedFluxResponse = listProjects(requestOptions);
+ return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> {
+ Flux> flux = (continuationTokenParam == null)
+ ? pagedFluxResponse.byPage().take(1)
+ : pagedFluxResponse.byPage(continuationTokenParam).take(1);
+ return flux.map(pagedResponse -> new PagedResponseBase(
+ pagedResponse.getRequest(), pagedResponse.getStatusCode(), pagedResponse.getHeaders(),
+ pagedResponse.getValue()
+ .stream()
+ .map(protocolMethodData -> protocolMethodData
+ .toObject(AnalyzeConversationAuthoringProjectMetadata.class))
+ .collect(Collectors.toList()),
+ pagedResponse.getContinuationToken(), null));
+ });
+ }
+
+ /**
+ * Gets the details of a project.
+ *
+ * @param projectName The new project name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the details of a project on successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono getProject(String projectName) {
+ // Generated convenience method for getProjectWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return getProjectWithResponse(projectName, requestOptions).flatMap(FluxUtil::toMono)
+ .map(protocolMethodData -> protocolMethodData.toObject(AnalyzeConversationAuthoringProjectMetadata.class));
+ }
+
+ /**
+ * Creates a new project or updates an existing one.
+ *
+ * @param projectName The new project name.
+ * @param body The request body.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents the metadata of a project on successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono createProject(String projectName,
+ AnalyzeConversationAuthoringCreateProjectOptions body) {
+ // Generated convenience method for createProjectWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ JsonMergePatchHelper.getAnalyzeConversationAuthoringCreateProjectOptionsAccessor()
+ .prepareModelForJsonMergePatch(body, true);
+ BinaryData bodyInBinaryData = BinaryData.fromObject(body);
+ // BinaryData.fromObject() will not fire serialization, use getLength() to fire serialization.
+ bodyInBinaryData.getLength();
+ JsonMergePatchHelper.getAnalyzeConversationAuthoringCreateProjectOptionsAccessor()
+ .prepareModelForJsonMergePatch(body, false);
+ return createProjectWithResponse(projectName, bodyInBinaryData, requestOptions).flatMap(FluxUtil::toMono)
+ .map(protocolMethodData -> protocolMethodData.toObject(AnalyzeConversationAuthoringProjectMetadata.class));
+ }
+
+ /**
+ * Deletes a project.
+ *
+ * @param projectName The name of the project to use.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public PollerFlux
+ beginDeleteProject(String projectName) {
+ // Generated convenience method for beginDeleteProjectWithModel
+ RequestOptions requestOptions = new RequestOptions();
+ return serviceClient.beginDeleteProjectWithModelAsync(projectName, requestOptions);
+ }
+
+ /**
+ * Generates a copy project operation authorization to the current target Azure resource.
+ *
+ * @param projectName The new project name.
+ * @param projectKind Represents the project kind.
+ * @param storageInputContainerName The name of the storage container.
+ * @param allowOverwrite Whether to allow an existing project to be overwritten using the resulting copy
+ * authorization.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents the options for copying an existing project to another Azure resource on successful completion
+ * of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono copyProjectAuthorization(String projectName,
+ ProjectKind projectKind, String storageInputContainerName, Boolean allowOverwrite) {
+ // Generated convenience method for copyProjectAuthorizationWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ CopyProjectAuthorizationRequest copyProjectAuthorizationRequestObj
+ = new CopyProjectAuthorizationRequest(projectKind).setStorageInputContainerName(storageInputContainerName)
+ .setAllowOverwrite(allowOverwrite);
+ BinaryData copyProjectAuthorizationRequest = BinaryData.fromObject(copyProjectAuthorizationRequestObj);
+ return copyProjectAuthorizationWithResponse(projectName, copyProjectAuthorizationRequest, requestOptions)
+ .flatMap(FluxUtil::toMono)
+ .map(protocolMethodData -> protocolMethodData
+ .toObject(AnalyzeConversationAuthoringCopyProjectOptions.class));
+ }
+
+ /**
+ * Generates a copy project operation authorization to the current target Azure resource.
+ *
+ * @param projectName The new project name.
+ * @param projectKind Represents the project kind.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents the options for copying an existing project to another Azure resource on successful completion
+ * of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono copyProjectAuthorization(String projectName,
+ ProjectKind projectKind) {
+ // Generated convenience method for copyProjectAuthorizationWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ CopyProjectAuthorizationRequest copyProjectAuthorizationRequestObj
+ = new CopyProjectAuthorizationRequest(projectKind);
+ BinaryData copyProjectAuthorizationRequest = BinaryData.fromObject(copyProjectAuthorizationRequestObj);
+ return copyProjectAuthorizationWithResponse(projectName, copyProjectAuthorizationRequest, requestOptions)
+ .flatMap(FluxUtil::toMono)
+ .map(protocolMethodData -> protocolMethodData
+ .toObject(AnalyzeConversationAuthoringCopyProjectOptions.class));
+ }
+
+ /**
+ * Copies an existing project to another Azure resource.
+ *
+ * @param projectName The name of the project to use.
+ * @param body The copy project info.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public PollerFlux beginCopyProject(String projectName,
+ AnalyzeConversationAuthoringCopyProjectOptions body) {
+ // Generated convenience method for beginCopyProjectWithModel
+ RequestOptions requestOptions = new RequestOptions();
+ return serviceClient.beginCopyProjectWithModelAsync(projectName, BinaryData.fromObject(body), requestOptions);
+ }
+
+ /**
+ * Triggers a job to export a project's data.
+ *
+ * @param projectName The name of the project to use.
+ * @param stringIndexType Specifies the method used to interpret string offsets. For additional information see
+ * https://aka.ms/text-analytics-offsets.
+ * @param exportedProjectFormat The format of the exported project file to use.
+ * @param assetKind Kind of asset to export.
+ * @param trainedModelLabel Trained model label to export. If the trainedModelLabel is null, the default behavior is
+ * to export the current working copy.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public PollerFlux beginExport(String projectName,
+ StringIndexType stringIndexType, ExportedProjectFormat exportedProjectFormat, String assetKind,
+ String trainedModelLabel) {
+ // Generated convenience method for beginExportWithModel
+ RequestOptions requestOptions = new RequestOptions();
+ if (exportedProjectFormat != null) {
+ requestOptions.addQueryParam("format", exportedProjectFormat.toString(), false);
+ }
+ if (assetKind != null) {
+ requestOptions.addQueryParam("assetKind", assetKind, false);
+ }
+ if (trainedModelLabel != null) {
+ requestOptions.addQueryParam("trainedModelLabel", trainedModelLabel, false);
+ }
+ return serviceClient.beginExportWithModelAsync(projectName, stringIndexType.toString(), requestOptions);
+ }
+
+ /**
+ * Triggers a job to export a project's data.
+ *
+ * @param projectName The name of the project to use.
+ * @param stringIndexType Specifies the method used to interpret string offsets. For additional information see
+ * https://aka.ms/text-analytics-offsets.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public PollerFlux beginExport(String projectName,
+ StringIndexType stringIndexType) {
+ // Generated convenience method for beginExportWithModel
+ RequestOptions requestOptions = new RequestOptions();
+ return serviceClient.beginExportWithModelAsync(projectName, stringIndexType.toString(), requestOptions);
+ }
+
+ /**
+ * Triggers a job to import a project. If a project with the same name already exists, the data of that project is
+ * replaced.
+ *
+ * @param projectName The name of the project to use.
+ * @param body The project data to import.
+ * @param exportedProjectFormat The format of the exported project file to use.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public PollerFlux beginImportMethod(String projectName,
+ AnalyzeConversationAuthoringExportedProject body, ExportedProjectFormat exportedProjectFormat) {
+ // Generated convenience method for beginImportMethodWithModel
+ RequestOptions requestOptions = new RequestOptions();
+ if (exportedProjectFormat != null) {
+ requestOptions.addQueryParam("format", exportedProjectFormat.toString(), false);
+ }
+ return serviceClient.beginImportMethodWithModelAsync(projectName, BinaryData.fromObject(body), requestOptions);
+ }
+
+ /**
+ * Triggers a job to import a project. If a project with the same name already exists, the data of that project is
+ * replaced.
+ *
+ * @param projectName The name of the project to use.
+ * @param body The project data to import.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public PollerFlux beginImportMethod(String projectName,
+ AnalyzeConversationAuthoringExportedProject body) {
+ // Generated convenience method for beginImportMethodWithModel
+ RequestOptions requestOptions = new RequestOptions();
+ return serviceClient.beginImportMethodWithModelAsync(projectName, BinaryData.fromObject(body), requestOptions);
+ }
+
+ /**
+ * Triggers a training job for a project.
+ *
+ * @param projectName The name of the project to use.
+ * @param body The training input parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public PollerFlux
+ beginTrain(String projectName, AnalyzeConversationAuthoringTrainingJobOptions body) {
+ // Generated convenience method for beginTrainWithModel
+ RequestOptions requestOptions = new RequestOptions();
+ return serviceClient.beginTrainWithModelAsync(projectName, BinaryData.fromObject(body), requestOptions);
+ }
+
+ /**
+ * Gets the status of an existing copy project job.
+ *
+ * @param projectName The new project name.
+ * @param jobId The job ID.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the status of an existing copy project job on successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono getCopyProjectStatus(String projectName,
+ String jobId) {
+ // Generated convenience method for getCopyProjectStatusWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return getCopyProjectStatusWithResponse(projectName, jobId, requestOptions).flatMap(FluxUtil::toMono)
+ .map(protocolMethodData -> protocolMethodData
+ .toObject(AnalyzeConversationAuthoringCopyProjectJobState.class));
+ }
+
+ /**
+ * Lists the deployments belonging to a project.
+ *
+ * @param projectName The new project name.
+ * @param top The number of result items to return.
+ * @param skip The number of result items to skip.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return paged collection of AnalyzeConversationAuthoringProjectDeployment items as paginated response with
+ * {@link PagedFlux}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedFlux listDeployments(String projectName, Integer top,
+ Integer skip) {
+ // Generated convenience method for listDeployments
+ RequestOptions requestOptions = new RequestOptions();
+ if (top != null) {
+ requestOptions.addQueryParam("top", String.valueOf(top), false);
+ }
+ if (skip != null) {
+ requestOptions.addQueryParam("skip", String.valueOf(skip), false);
+ }
+ PagedFlux pagedFluxResponse = listDeployments(projectName, requestOptions);
+ return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> {
+ Flux> flux = (continuationTokenParam == null)
+ ? pagedFluxResponse.byPage().take(1)
+ : pagedFluxResponse.byPage(continuationTokenParam).take(1);
+ return flux.map(pagedResponse -> new PagedResponseBase(
+ pagedResponse.getRequest(), pagedResponse.getStatusCode(), pagedResponse.getHeaders(),
+ pagedResponse.getValue()
+ .stream()
+ .map(protocolMethodData -> protocolMethodData
+ .toObject(AnalyzeConversationAuthoringProjectDeployment.class))
+ .collect(Collectors.toList()),
+ pagedResponse.getContinuationToken(), null));
+ });
+ }
+
+ /**
+ * Lists the deployments belonging to a project.
+ *
+ * @param projectName The new project name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return paged collection of AnalyzeConversationAuthoringProjectDeployment items as paginated response with
+ * {@link PagedFlux}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedFlux listDeployments(String projectName) {
+ // Generated convenience method for listDeployments
+ RequestOptions requestOptions = new RequestOptions();
+ PagedFlux pagedFluxResponse = listDeployments(projectName, requestOptions);
+ return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> {
+ Flux> flux = (continuationTokenParam == null)
+ ? pagedFluxResponse.byPage().take(1)
+ : pagedFluxResponse.byPage(continuationTokenParam).take(1);
+ return flux.map(pagedResponse -> new PagedResponseBase(
+ pagedResponse.getRequest(), pagedResponse.getStatusCode(), pagedResponse.getHeaders(),
+ pagedResponse.getValue()
+ .stream()
+ .map(protocolMethodData -> protocolMethodData
+ .toObject(AnalyzeConversationAuthoringProjectDeployment.class))
+ .collect(Collectors.toList()),
+ pagedResponse.getContinuationToken(), null));
+ });
+ }
+
+ /**
+ * Swaps two existing deployments with each other.
+ *
+ * @param projectName The name of the project to use.
+ * @param body The job object to swap two deployments.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public PollerFlux
+ beginSwapDeployments(String projectName, AnalyzeConversationAuthoringSwapDeploymentsOptions body) {
+ // Generated convenience method for beginSwapDeploymentsWithModel
+ RequestOptions requestOptions = new RequestOptions();
+ return serviceClient.beginSwapDeploymentsWithModelAsync(projectName, BinaryData.fromObject(body),
+ requestOptions);
+ }
+
+ /**
+ * Gets the details of a deployment.
+ *
+ * @param projectName The new project name.
+ * @param deploymentName Represents deployment name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the details of a deployment on successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono getDeployment(String projectName,
+ String deploymentName) {
+ // Generated convenience method for getDeploymentWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return getDeploymentWithResponse(projectName, deploymentName, requestOptions).flatMap(FluxUtil::toMono)
+ .map(
+ protocolMethodData -> protocolMethodData.toObject(AnalyzeConversationAuthoringProjectDeployment.class));
+ }
+
+ /**
+ * Creates a new deployment or replaces an existing one.
+ *
+ * @param projectName The name of the project to use.
+ * @param deploymentName The name of the specific deployment of the project to use.
+ * @param body The new deployment info.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public PollerFlux beginDeployProject(String projectName,
+ String deploymentName, AnalyzeConversationAuthoringCreateDeploymentOptions body) {
+ // Generated convenience method for beginDeployProjectWithModel
+ RequestOptions requestOptions = new RequestOptions();
+ return serviceClient.beginDeployProjectWithModelAsync(projectName, deploymentName, BinaryData.fromObject(body),
+ requestOptions);
+ }
+
+ /**
+ * Deletes a project deployment.
+ *
+ * @param projectName The name of the project to use.
+ * @param deploymentName The name of the specific deployment of the project to use.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public PollerFlux beginDeleteDeployment(String projectName,
+ String deploymentName) {
+ // Generated convenience method for beginDeleteDeploymentWithModel
+ RequestOptions requestOptions = new RequestOptions();
+ return serviceClient.beginDeleteDeploymentWithModelAsync(projectName, deploymentName, requestOptions);
+ }
+
+ /**
+ * Deletes a project deployment from the specified assigned resources.
+ *
+ * @param projectName The name of the project to use.
+ * @param deploymentName The name of the specific deployment of the project to use.
+ * @param body The options for deleting the deployment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public PollerFlux
+ beginDeleteDeploymentFromResources(String projectName, String deploymentName,
+ AnalyzeConversationAuthoringDeleteDeploymentOptions body) {
+ // Generated convenience method for beginDeleteDeploymentFromResourcesWithModel
+ RequestOptions requestOptions = new RequestOptions();
+ return serviceClient.beginDeleteDeploymentFromResourcesWithModelAsync(projectName, deploymentName,
+ BinaryData.fromObject(body), requestOptions);
+ }
+
+ /**
+ * Gets the status of an existing delete deployment from specific resources job.
+ *
+ * @param projectName The new project name.
+ * @param deploymentName Represents deployment name.
+ * @param jobId The job ID.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the status of an existing delete deployment from specific resources job on successful completion of
+ * {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono
+ getDeploymentDeleteFromResourcesStatus(String projectName, String deploymentName, String jobId) {
+ // Generated convenience method for getDeploymentDeleteFromResourcesStatusWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return getDeploymentDeleteFromResourcesStatusWithResponse(projectName, deploymentName, jobId, requestOptions)
+ .flatMap(FluxUtil::toMono)
+ .map(protocolMethodData -> protocolMethodData
+ .toObject(AnalyzeConversationAuthoringDeploymentDeleteFromResourcesJobState.class));
+ }
+
+ /**
+ * Gets the status of an existing deployment job.
+ *
+ * @param projectName The new project name.
+ * @param deploymentName Represents deployment name.
+ * @param jobId The job ID.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the status of an existing deployment job on successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono getDeploymentStatus(String projectName,
+ String deploymentName, String jobId) {
+ // Generated convenience method for getDeploymentStatusWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return getDeploymentStatusWithResponse(projectName, deploymentName, jobId, requestOptions)
+ .flatMap(FluxUtil::toMono)
+ .map(protocolMethodData -> protocolMethodData
+ .toObject(AnalyzeConversationAuthoringDeploymentJobState.class));
+ }
+
+ /**
+ * Gets the status of an existing swap deployment job.
+ *
+ * @param projectName The new project name.
+ * @param jobId The job ID.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the status of an existing swap deployment job on successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono getSwapDeploymentsStatus(String projectName,
+ String jobId) {
+ // Generated convenience method for getSwapDeploymentsStatusWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return getSwapDeploymentsStatusWithResponse(projectName, jobId, requestOptions).flatMap(FluxUtil::toMono)
+ .map(protocolMethodData -> protocolMethodData
+ .toObject(AnalyzeConversationAuthoringSwapDeploymentsJobState.class));
+ }
+
+ /**
+ * Gets the status of an export job. Once job completes, returns the project metadata, and assets.
+ *
+ * @param projectName The new project name.
+ * @param jobId The job ID.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the status of an export job on successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono getExportStatus(String projectName, String jobId) {
+ // Generated convenience method for getExportStatusWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return getExportStatusWithResponse(projectName, jobId, requestOptions).flatMap(FluxUtil::toMono)
+ .map(protocolMethodData -> protocolMethodData
+ .toObject(AnalyzeConversationAuthoringExportProjectJobState.class));
+ }
+
+ /**
+ * Gets the status for an import.
+ *
+ * @param projectName The new project name.
+ * @param jobId The job ID.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the status for an import on successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono getImportStatus(String projectName, String jobId) {
+ // Generated convenience method for getImportStatusWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return getImportStatusWithResponse(projectName, jobId, requestOptions).flatMap(FluxUtil::toMono)
+ .map(protocolMethodData -> protocolMethodData
+ .toObject(AnalyzeConversationAuthoringImportProjectJobState.class));
+ }
+
+ /**
+ * Lists the trained models belonging to a project.
+ *
+ * @param projectName The new project name.
+ * @param top The number of result items to return.
+ * @param skip The number of result items to skip.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return paged collection of AnalyzeConversationAuthoringProjectTrainedModel items as paginated response with
+ * {@link PagedFlux}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedFlux listTrainedModels(String projectName, Integer top,
+ Integer skip) {
+ // Generated convenience method for listTrainedModels
+ RequestOptions requestOptions = new RequestOptions();
+ if (top != null) {
+ requestOptions.addQueryParam("top", String.valueOf(top), false);
+ }
+ if (skip != null) {
+ requestOptions.addQueryParam("skip", String.valueOf(skip), false);
+ }
+ PagedFlux pagedFluxResponse = listTrainedModels(projectName, requestOptions);
+ return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> {
+ Flux> flux = (continuationTokenParam == null)
+ ? pagedFluxResponse.byPage().take(1)
+ : pagedFluxResponse.byPage(continuationTokenParam).take(1);
+ return flux
+ .map(pagedResponse -> new PagedResponseBase(
+ pagedResponse.getRequest(), pagedResponse.getStatusCode(), pagedResponse.getHeaders(),
+ pagedResponse.getValue()
+ .stream()
+ .map(protocolMethodData -> protocolMethodData
+ .toObject(AnalyzeConversationAuthoringProjectTrainedModel.class))
+ .collect(Collectors.toList()),
+ pagedResponse.getContinuationToken(), null));
+ });
+ }
+
+ /**
+ * Lists the trained models belonging to a project.
+ *
+ * @param projectName The new project name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return paged collection of AnalyzeConversationAuthoringProjectTrainedModel items as paginated response with
+ * {@link PagedFlux}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedFlux listTrainedModels(String projectName) {
+ // Generated convenience method for listTrainedModels
+ RequestOptions requestOptions = new RequestOptions();
+ PagedFlux pagedFluxResponse = listTrainedModels(projectName, requestOptions);
+ return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> {
+ Flux> flux = (continuationTokenParam == null)
+ ? pagedFluxResponse.byPage().take(1)
+ : pagedFluxResponse.byPage(continuationTokenParam).take(1);
+ return flux
+ .map(pagedResponse -> new PagedResponseBase(
+ pagedResponse.getRequest(), pagedResponse.getStatusCode(), pagedResponse.getHeaders(),
+ pagedResponse.getValue()
+ .stream()
+ .map(protocolMethodData -> protocolMethodData
+ .toObject(AnalyzeConversationAuthoringProjectTrainedModel.class))
+ .collect(Collectors.toList()),
+ pagedResponse.getContinuationToken(), null));
+ });
+ }
+
+ /**
+ * Gets the details of a trained model.
+ *
+ * @param projectName The new project name.
+ * @param trainedModelLabel The trained model label.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the details of a trained model on successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono getTrainedModel(String projectName,
+ String trainedModelLabel) {
+ // Generated convenience method for getTrainedModelWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return getTrainedModelWithResponse(projectName, trainedModelLabel, requestOptions).flatMap(FluxUtil::toMono)
+ .map(protocolMethodData -> protocolMethodData
+ .toObject(AnalyzeConversationAuthoringProjectTrainedModel.class));
+ }
+
+ /**
+ * Deletes an existing trained model.
+ *
+ * @param projectName The new project name.
+ * @param trainedModelLabel The trained model label.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono deleteTrainedModel(String projectName, String trainedModelLabel) {
+ // Generated convenience method for deleteTrainedModelWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return deleteTrainedModelWithResponse(projectName, trainedModelLabel, requestOptions).flatMap(FluxUtil::toMono);
+ }
+
+ /**
+ * Triggers evaluation operation on a trained model.
+ *
+ * @param projectName The name of the project to use.
+ * @param trainedModelLabel The trained model label.
+ * @param body The training input parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public PollerFlux
+ beginEvaluateModel(String projectName, String trainedModelLabel,
+ AnalyzeConversationAuthoringEvaluationOptions body) {
+ // Generated convenience method for beginEvaluateModelWithModel
+ RequestOptions requestOptions = new RequestOptions();
+ return serviceClient.beginEvaluateModelWithModelAsync(projectName, trainedModelLabel,
+ BinaryData.fromObject(body), requestOptions);
+ }
+
+ /**
+ * Restores the snapshot of this trained model to be the current working directory of the project.
+ *
+ * @param projectName The name of the project to use.
+ * @param trainedModelLabel The trained model label.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public PollerFlux beginLoadSnapshot(String projectName,
+ String trainedModelLabel) {
+ // Generated convenience method for beginLoadSnapshotWithModel
+ RequestOptions requestOptions = new RequestOptions();
+ return serviceClient.beginLoadSnapshotWithModelAsync(projectName, trainedModelLabel, requestOptions);
+ }
+
+ /**
+ * Gets the status for an evaluation job.
+ *
+ * @param projectName The new project name.
+ * @param trainedModelLabel The trained model label.
+ * @param jobId The job ID.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the status for an evaluation job on successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono getEvaluationStatus(String projectName,
+ String trainedModelLabel, String jobId) {
+ // Generated convenience method for getEvaluationStatusWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return getEvaluationStatusWithResponse(projectName, trainedModelLabel, jobId, requestOptions)
+ .flatMap(FluxUtil::toMono)
+ .map(protocolMethodData -> protocolMethodData
+ .toObject(AnalyzeConversationAuthoringEvaluationJobState.class));
+ }
+
+ /**
+ * 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.
+ *
+ * @param projectName The new project name.
+ * @param trainedModelLabel The trained model label.
+ * @param stringIndexType Specifies the method used to interpret string offsets. For additional information see
+ * https://aka.ms/text-analytics-offsets.
+ * @param top The number of result items to return.
+ * @param skip The number of result items to skip.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the detailed results of the evaluation for a trained model as paginated response with {@link PagedFlux}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedFlux getModelEvaluationResults(
+ String projectName, String trainedModelLabel, StringIndexType stringIndexType, Integer top, Integer skip) {
+ // Generated convenience method for getModelEvaluationResults
+ RequestOptions requestOptions = new RequestOptions();
+ if (top != null) {
+ requestOptions.addQueryParam("top", String.valueOf(top), false);
+ }
+ if (skip != null) {
+ requestOptions.addQueryParam("skip", String.valueOf(skip), false);
+ }
+ PagedFlux pagedFluxResponse
+ = getModelEvaluationResults(projectName, trainedModelLabel, stringIndexType.toString(), requestOptions);
+ return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> {
+ Flux> flux = (continuationTokenParam == null)
+ ? pagedFluxResponse.byPage().take(1)
+ : pagedFluxResponse.byPage(continuationTokenParam).take(1);
+ return flux.map(
+ pagedResponse -> new PagedResponseBase(
+ pagedResponse.getRequest(), pagedResponse.getStatusCode(), pagedResponse.getHeaders(),
+ pagedResponse.getValue()
+ .stream()
+ .map(protocolMethodData -> protocolMethodData
+ .toObject(AnalyzeConversationAuthoringUtteranceEvaluationResult.class))
+ .collect(Collectors.toList()),
+ pagedResponse.getContinuationToken(), null));
+ });
+ }
+
+ /**
+ * 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.
+ *
+ * @param projectName The new project name.
+ * @param trainedModelLabel The trained model label.
+ * @param stringIndexType Specifies the method used to interpret string offsets. For additional information see
+ * https://aka.ms/text-analytics-offsets.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the detailed results of the evaluation for a trained model as paginated response with {@link PagedFlux}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedFlux
+ getModelEvaluationResults(String projectName, String trainedModelLabel, StringIndexType stringIndexType) {
+ // Generated convenience method for getModelEvaluationResults
+ RequestOptions requestOptions = new RequestOptions();
+ PagedFlux pagedFluxResponse
+ = getModelEvaluationResults(projectName, trainedModelLabel, stringIndexType.toString(), requestOptions);
+ return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> {
+ Flux> flux = (continuationTokenParam == null)
+ ? pagedFluxResponse.byPage().take(1)
+ : pagedFluxResponse.byPage(continuationTokenParam).take(1);
+ return flux.map(
+ pagedResponse -> new PagedResponseBase(
+ pagedResponse.getRequest(), pagedResponse.getStatusCode(), pagedResponse.getHeaders(),
+ pagedResponse.getValue()
+ .stream()
+ .map(protocolMethodData -> protocolMethodData
+ .toObject(AnalyzeConversationAuthoringUtteranceEvaluationResult.class))
+ .collect(Collectors.toList()),
+ pagedResponse.getContinuationToken(), null));
+ });
+ }
+
+ /**
+ * Gets the evaluation summary of a trained model. The summary includes high level performance measurements of the
+ * model e.g., F1, Precision, Recall, etc.
+ *
+ * @param projectName The name of the project to use.
+ * @param trainedModelLabel The trained model label.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the evaluation summary of a trained model on successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono getModelEvaluationSummary(String projectName,
+ String trainedModelLabel) {
+ // Generated convenience method for getModelEvaluationSummaryWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return getModelEvaluationSummaryWithResponse(projectName, trainedModelLabel, requestOptions)
+ .flatMap(FluxUtil::toMono)
+ .map(
+ protocolMethodData -> protocolMethodData.toObject(AnalyzeConversationAuthoringEvaluationSummary.class));
+ }
+
+ /**
+ * Gets the status for loading a snapshot.
+ *
+ * @param projectName The new project name.
+ * @param trainedModelLabel The trained model label.
+ * @param jobId The job ID.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the status for loading a snapshot on successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono getLoadSnapshotStatus(String projectName,
+ String trainedModelLabel, String jobId) {
+ // Generated convenience method for getLoadSnapshotStatusWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return getLoadSnapshotStatusWithResponse(projectName, trainedModelLabel, jobId, requestOptions)
+ .flatMap(FluxUtil::toMono)
+ .map(protocolMethodData -> protocolMethodData
+ .toObject(AnalyzeConversationAuthoringLoadSnapshotJobState.class));
+ }
+
+ /**
+ * Lists the deployments resources assigned to the project.
+ *
+ * @param projectName The new project name.
+ * @param top The number of result items to return.
+ * @param skip The number of result items to skip.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return paged collection of AnalyzeConversationAuthoringAssignedDeploymentResource items as paginated response
+ * with {@link PagedFlux}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedFlux listDeploymentResources(String projectName,
+ Integer top, Integer skip) {
+ // Generated convenience method for listDeploymentResources
+ RequestOptions requestOptions = new RequestOptions();
+ if (top != null) {
+ requestOptions.addQueryParam("top", String.valueOf(top), false);
+ }
+ if (skip != null) {
+ requestOptions.addQueryParam("skip", String.valueOf(skip), false);
+ }
+ PagedFlux pagedFluxResponse = listDeploymentResources(projectName, requestOptions);
+ return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> {
+ Flux> flux = (continuationTokenParam == null)
+ ? pagedFluxResponse.byPage().take(1)
+ : pagedFluxResponse.byPage(continuationTokenParam).take(1);
+ return flux.map(
+ pagedResponse -> new PagedResponseBase(
+ pagedResponse.getRequest(), pagedResponse.getStatusCode(), pagedResponse.getHeaders(),
+ pagedResponse.getValue()
+ .stream()
+ .map(protocolMethodData -> protocolMethodData
+ .toObject(AnalyzeConversationAuthoringAssignedDeploymentResource.class))
+ .collect(Collectors.toList()),
+ pagedResponse.getContinuationToken(), null));
+ });
+ }
+
+ /**
+ * Lists the deployments resources assigned to the project.
+ *
+ * @param projectName The new project name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return paged collection of AnalyzeConversationAuthoringAssignedDeploymentResource items as paginated response
+ * with {@link PagedFlux}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedFlux
+ listDeploymentResources(String projectName) {
+ // Generated convenience method for listDeploymentResources
+ RequestOptions requestOptions = new RequestOptions();
+ PagedFlux pagedFluxResponse = listDeploymentResources(projectName, requestOptions);
+ return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> {
+ Flux> flux = (continuationTokenParam == null)
+ ? pagedFluxResponse.byPage().take(1)
+ : pagedFluxResponse.byPage(continuationTokenParam).take(1);
+ return flux.map(
+ pagedResponse -> new PagedResponseBase(
+ pagedResponse.getRequest(), pagedResponse.getStatusCode(), pagedResponse.getHeaders(),
+ pagedResponse.getValue()
+ .stream()
+ .map(protocolMethodData -> protocolMethodData
+ .toObject(AnalyzeConversationAuthoringAssignedDeploymentResource.class))
+ .collect(Collectors.toList()),
+ pagedResponse.getContinuationToken(), null));
+ });
+ }
+
+ /**
+ * 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.
+ *
+ * @param projectName The name of the project to use.
+ * @param body The new project resources info.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public PollerFlux beginAssignDeploymentResources(
+ String projectName, AnalyzeConversationAuthoringAssignDeploymentResourcesOptions body) {
+ // Generated convenience method for beginAssignDeploymentResourcesWithModel
+ RequestOptions requestOptions = new RequestOptions();
+ return serviceClient.beginAssignDeploymentResourcesWithModelAsync(projectName, BinaryData.fromObject(body),
+ requestOptions);
+ }
+
+ /**
+ * Unassign resources from a project. This disallows deploying new deployments to these resources, and deletes
+ * existing deployments assigned to them.
+ *
+ * @param projectName The name of the project to use.
+ * @param body The info for the deployment resources to be deleted.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public PollerFlux beginUnassignDeploymentResources(
+ String projectName, AnalyzeConversationAuthoringUnassignDeploymentResourcesOptions body) {
+ // Generated convenience method for beginUnassignDeploymentResourcesWithModel
+ RequestOptions requestOptions = new RequestOptions();
+ return serviceClient.beginUnassignDeploymentResourcesWithModelAsync(projectName, BinaryData.fromObject(body),
+ requestOptions);
+ }
+
+ /**
+ * Gets the status of an existing assign deployment resources job.
+ *
+ * @param projectName The new project name.
+ * @param jobId The job ID.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the status of an existing assign deployment resources job on successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono
+ getAssignDeploymentResourcesStatus(String projectName, String jobId) {
+ // Generated convenience method for getAssignDeploymentResourcesStatusWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return getAssignDeploymentResourcesStatusWithResponse(projectName, jobId, requestOptions)
+ .flatMap(FluxUtil::toMono)
+ .map(protocolMethodData -> protocolMethodData
+ .toObject(AnalyzeConversationAuthoringDeploymentResourcesJobState.class));
+ }
+
+ /**
+ * Gets the status of an existing unassign deployment resources job.
+ *
+ * @param projectName The name of the project to use.
+ * @param jobId The job ID.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the status of an existing unassign deployment resources job on successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono
+ getUnassignDeploymentResourcesStatus(String projectName, String jobId) {
+ // Generated convenience method for getUnassignDeploymentResourcesStatusWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return getUnassignDeploymentResourcesStatusWithResponse(projectName, jobId, requestOptions)
+ .flatMap(FluxUtil::toMono)
+ .map(protocolMethodData -> protocolMethodData
+ .toObject(AnalyzeConversationAuthoringDeploymentResourcesJobState.class));
+ }
+
+ /**
+ * Lists the non-expired training jobs created for a project.
+ *
+ * @param projectName The new project name.
+ * @param top The number of result items to return.
+ * @param skip The number of result items to skip.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return paged collection of AnalyzeConversationAuthoringTrainingJobState items as paginated response with
+ * {@link PagedFlux}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedFlux listTrainingJobs(String projectName, Integer top,
+ Integer skip) {
+ // Generated convenience method for listTrainingJobs
+ RequestOptions requestOptions = new RequestOptions();
+ if (top != null) {
+ requestOptions.addQueryParam("top", String.valueOf(top), false);
+ }
+ if (skip != null) {
+ requestOptions.addQueryParam("skip", String.valueOf(skip), false);
+ }
+ PagedFlux pagedFluxResponse = listTrainingJobs(projectName, requestOptions);
+ return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> {
+ Flux> flux = (continuationTokenParam == null)
+ ? pagedFluxResponse.byPage().take(1)
+ : pagedFluxResponse.byPage(continuationTokenParam).take(1);
+ return flux.map(pagedResponse -> new PagedResponseBase(
+ pagedResponse.getRequest(), pagedResponse.getStatusCode(), pagedResponse.getHeaders(),
+ pagedResponse.getValue()
+ .stream()
+ .map(protocolMethodData -> protocolMethodData
+ .toObject(AnalyzeConversationAuthoringTrainingJobState.class))
+ .collect(Collectors.toList()),
+ pagedResponse.getContinuationToken(), null));
+ });
+ }
+
+ /**
+ * Lists the non-expired training jobs created for a project.
+ *
+ * @param projectName The new project name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return paged collection of AnalyzeConversationAuthoringTrainingJobState items as paginated response with
+ * {@link PagedFlux}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedFlux listTrainingJobs(String projectName) {
+ // Generated convenience method for listTrainingJobs
+ RequestOptions requestOptions = new RequestOptions();
+ PagedFlux pagedFluxResponse = listTrainingJobs(projectName, requestOptions);
+ return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> {
+ Flux> flux = (continuationTokenParam == null)
+ ? pagedFluxResponse.byPage().take(1)
+ : pagedFluxResponse.byPage(continuationTokenParam).take(1);
+ return flux.map(pagedResponse -> new PagedResponseBase(
+ pagedResponse.getRequest(), pagedResponse.getStatusCode(), pagedResponse.getHeaders(),
+ pagedResponse.getValue()
+ .stream()
+ .map(protocolMethodData -> protocolMethodData
+ .toObject(AnalyzeConversationAuthoringTrainingJobState.class))
+ .collect(Collectors.toList()),
+ pagedResponse.getContinuationToken(), null));
+ });
+ }
+
+ /**
+ * Gets the status for a training job.
+ *
+ * @param projectName The new project name.
+ * @param jobId The job ID.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the status for a training job on successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono getTrainingStatus(String projectName, String jobId) {
+ // Generated convenience method for getTrainingStatusWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return getTrainingStatusWithResponse(projectName, jobId, requestOptions).flatMap(FluxUtil::toMono)
+ .map(protocolMethodData -> protocolMethodData.toObject(AnalyzeConversationAuthoringTrainingJobState.class));
+ }
+
+ /**
+ * Triggers a cancellation for a running training job.
+ *
+ * @param projectName The name of the project to use.
+ * @param jobId The job ID.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public PollerFlux
+ beginCancelTrainingJob(String projectName, String jobId) {
+ // Generated convenience method for beginCancelTrainingJobWithModel
+ RequestOptions requestOptions = new RequestOptions();
+ return serviceClient.beginCancelTrainingJobWithModelAsync(projectName, jobId, requestOptions);
+ }
+
+ /**
+ * Gets the status for a project deletion job.
+ *
+ * @param jobId The job ID.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the status for a project deletion job on successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono getProjectDeletionStatus(String jobId) {
+ // Generated convenience method for getProjectDeletionStatusWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return getProjectDeletionStatusWithResponse(jobId, requestOptions).flatMap(FluxUtil::toMono)
+ .map(protocolMethodData -> protocolMethodData
+ .toObject(AnalyzeConversationAuthoringProjectDeletionJobState.class));
+ }
+
+ /**
+ * 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.
+ *
+ * @param top The maximum number of resources to return from the collection.
+ * @param skip An offset into the collection of the first resource to be returned.
+ * @param maxPageSize The maximum number of resources to include in a single response.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents the metadata for deployments assigned to a resource on successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono
+ listAssignedResourceDeployments(Integer top, Integer skip, Integer maxPageSize) {
+ // Generated convenience method for listAssignedResourceDeploymentsWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ if (top != null) {
+ requestOptions.addQueryParam("top", String.valueOf(top), false);
+ }
+ if (skip != null) {
+ requestOptions.addQueryParam("skip", String.valueOf(skip), false);
+ }
+ if (maxPageSize != null) {
+ requestOptions.addQueryParam("maxpagesize", String.valueOf(maxPageSize), false);
+ }
+ return listAssignedResourceDeploymentsWithResponse(requestOptions).flatMap(FluxUtil::toMono)
+ .map(protocolMethodData -> protocolMethodData
+ .toObject(AnalyzeConversationAuthoringAssignedResourceDeploymentsMetadata.class));
+ }
+
+ /**
+ * 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.
+ *
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents the metadata for deployments assigned to a resource on successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono listAssignedResourceDeployments() {
+ // Generated convenience method for listAssignedResourceDeploymentsWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return listAssignedResourceDeploymentsWithResponse(requestOptions).flatMap(FluxUtil::toMono)
+ .map(protocolMethodData -> protocolMethodData
+ .toObject(AnalyzeConversationAuthoringAssignedResourceDeploymentsMetadata.class));
+ }
+
+ /**
+ * Lists the supported languages for the given project type.
+ *
+ * @param projectKind The project kind.
+ * @param top The maximum number of resources to return from the collection.
+ * @param skip An offset into the collection of the first resource to be returned.
+ * @param maxPageSize The maximum number of resources to include in a single response.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents a list of retrieved languages on successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono getSupportedLanguages(ProjectKind projectKind,
+ Integer top, Integer skip, Integer maxPageSize) {
+ // Generated convenience method for getSupportedLanguagesWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ if (top != null) {
+ requestOptions.addQueryParam("top", String.valueOf(top), false);
+ }
+ if (skip != null) {
+ requestOptions.addQueryParam("skip", String.valueOf(skip), false);
+ }
+ if (maxPageSize != null) {
+ requestOptions.addQueryParam("maxpagesize", String.valueOf(maxPageSize), false);
+ }
+ return getSupportedLanguagesWithResponse(projectKind.toString(), requestOptions).flatMap(FluxUtil::toMono)
+ .map(protocolMethodData -> protocolMethodData
+ .toObject(AnalyzeConversationAuthoringSupportedLanguages.class));
+ }
+
+ /**
+ * Lists the supported languages for the given project type.
+ *
+ * @param projectKind The project kind.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents a list of retrieved languages on successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono getSupportedLanguages(ProjectKind projectKind) {
+ // Generated convenience method for getSupportedLanguagesWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return getSupportedLanguagesWithResponse(projectKind.toString(), requestOptions).flatMap(FluxUtil::toMono)
+ .map(protocolMethodData -> protocolMethodData
+ .toObject(AnalyzeConversationAuthoringSupportedLanguages.class));
+ }
+
+ /**
+ * Lists the supported prebuilt entities that can be used while creating composed entities.
+ *
+ * @param language 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.
+ * @param multilingual Whether to get the support prebuilt entities for multilingual or monolingual projects. If
+ * true, the language parameter is ignored.
+ * @param top The maximum number of resources to return from the collection.
+ * @param skip An offset into the collection of the first resource to be returned.
+ * @param maxPageSize The maximum number of resources to include in a single response.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents a list of the retrieved supported prebuilt entities on successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono getSupportedPrebuiltEntities(String language,
+ String multilingual, Integer top, Integer skip, Integer maxPageSize) {
+ // Generated convenience method for getSupportedPrebuiltEntitiesWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ if (language != null) {
+ requestOptions.addQueryParam("language", language, false);
+ }
+ if (multilingual != null) {
+ requestOptions.addQueryParam("multilingual", multilingual, false);
+ }
+ if (top != null) {
+ requestOptions.addQueryParam("top", String.valueOf(top), false);
+ }
+ if (skip != null) {
+ requestOptions.addQueryParam("skip", String.valueOf(skip), false);
+ }
+ if (maxPageSize != null) {
+ requestOptions.addQueryParam("maxpagesize", String.valueOf(maxPageSize), false);
+ }
+ return getSupportedPrebuiltEntitiesWithResponse(requestOptions).flatMap(FluxUtil::toMono)
+ .map(protocolMethodData -> protocolMethodData.toObject(AnalyzeConversationAuthoringPrebuiltEntities.class));
+ }
+
+ /**
+ * Lists the supported prebuilt entities that can be used while creating composed entities.
+ *
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents a list of the retrieved supported prebuilt entities on successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono getSupportedPrebuiltEntities() {
+ // Generated convenience method for getSupportedPrebuiltEntitiesWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return getSupportedPrebuiltEntitiesWithResponse(requestOptions).flatMap(FluxUtil::toMono)
+ .map(protocolMethodData -> protocolMethodData.toObject(AnalyzeConversationAuthoringPrebuiltEntities.class));
+ }
+
+ /**
+ * Lists the support training config version for a given project type.
+ *
+ * @param projectKind The project kind.
+ * @param top The maximum number of resources to return from the collection.
+ * @param skip An offset into the collection of the first resource to be returned.
+ * @param maxPageSize The maximum number of resources to include in a single response.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents a list of training config versions on successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono listTrainingConfigVersions(ProjectKind projectKind,
+ Integer top, Integer skip, Integer maxPageSize) {
+ // Generated convenience method for listTrainingConfigVersionsWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ if (top != null) {
+ requestOptions.addQueryParam("top", String.valueOf(top), false);
+ }
+ if (skip != null) {
+ requestOptions.addQueryParam("skip", String.valueOf(skip), false);
+ }
+ if (maxPageSize != null) {
+ requestOptions.addQueryParam("maxpagesize", String.valueOf(maxPageSize), false);
+ }
+ return listTrainingConfigVersionsWithResponse(projectKind.toString(), requestOptions).flatMap(FluxUtil::toMono)
+ .map(protocolMethodData -> protocolMethodData
+ .toObject(AnalyzeConversationAuthoringTrainingConfigVersions.class));
+ }
+
+ /**
+ * Lists the support training config version for a given project type.
+ *
+ * @param projectKind The project kind.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents a list of training config versions on successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono
+ listTrainingConfigVersions(ProjectKind projectKind) {
+ // Generated convenience method for listTrainingConfigVersionsWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return listTrainingConfigVersionsWithResponse(projectKind.toString(), requestOptions).flatMap(FluxUtil::toMono)
+ .map(protocolMethodData -> protocolMethodData
+ .toObject(AnalyzeConversationAuthoringTrainingConfigVersions.class));
+ }
+
+ /**
+ * Gets the details of an exported model.
+ *
+ * @param projectName The new project name.
+ * @param exportedModelName The exported model name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the details of an exported model on successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono getExportedModel(String projectName,
+ String exportedModelName) {
+ // Generated convenience method for getExportedModelWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return getExportedModelWithResponse(projectName, exportedModelName, requestOptions).flatMap(FluxUtil::toMono)
+ .map(protocolMethodData -> protocolMethodData
+ .toObject(AnalyzeConversationAuthoringExportedTrainedModel.class));
+ }
+
+ /**
+ * Lists the exported models belonging to a project.
+ *
+ * @param projectName The new project name.
+ * @param top The number of result items to return.
+ * @param skip The number of result items to skip.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return paged collection of AnalyzeConversationAuthoringExportedTrainedModel items as paginated response with
+ * {@link PagedFlux}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedFlux listExportedModels(String projectName,
+ Integer top, Integer skip) {
+ // Generated convenience method for listExportedModels
+ RequestOptions requestOptions = new RequestOptions();
+ if (top != null) {
+ requestOptions.addQueryParam("top", String.valueOf(top), false);
+ }
+ if (skip != null) {
+ requestOptions.addQueryParam("skip", String.valueOf(skip), false);
+ }
+ PagedFlux pagedFluxResponse = listExportedModels(projectName, requestOptions);
+ return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> {
+ Flux> flux = (continuationTokenParam == null)
+ ? pagedFluxResponse.byPage().take(1)
+ : pagedFluxResponse.byPage(continuationTokenParam).take(1);
+ return flux
+ .map(pagedResponse -> new PagedResponseBase(
+ pagedResponse.getRequest(), pagedResponse.getStatusCode(), pagedResponse.getHeaders(),
+ pagedResponse.getValue()
+ .stream()
+ .map(protocolMethodData -> protocolMethodData
+ .toObject(AnalyzeConversationAuthoringExportedTrainedModel.class))
+ .collect(Collectors.toList()),
+ pagedResponse.getContinuationToken(), null));
+ });
+ }
+
+ /**
+ * Lists the exported models belonging to a project.
+ *
+ * @param projectName The new project name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return paged collection of AnalyzeConversationAuthoringExportedTrainedModel items as paginated response with
+ * {@link PagedFlux}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedFlux listExportedModels(String projectName) {
+ // Generated convenience method for listExportedModels
+ RequestOptions requestOptions = new RequestOptions();
+ PagedFlux pagedFluxResponse = listExportedModels(projectName, requestOptions);
+ return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> {
+ Flux> flux = (continuationTokenParam == null)
+ ? pagedFluxResponse.byPage().take(1)
+ : pagedFluxResponse.byPage(continuationTokenParam).take(1);
+ return flux
+ .map(pagedResponse -> new PagedResponseBase(
+ pagedResponse.getRequest(), pagedResponse.getStatusCode(), pagedResponse.getHeaders(),
+ pagedResponse.getValue()
+ .stream()
+ .map(protocolMethodData -> protocolMethodData
+ .toObject(AnalyzeConversationAuthoringExportedTrainedModel.class))
+ .collect(Collectors.toList()),
+ pagedResponse.getContinuationToken(), null));
+ });
+ }
+
+ /**
+ * Deletes an existing exported model.
+ *
+ * @param projectName The name of the project to use.
+ * @param exportedModelName The exported model name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public PollerFlux
+ beginDeleteExportedModel(String projectName, String exportedModelName) {
+ // Generated convenience method for beginDeleteExportedModelWithModel
+ RequestOptions requestOptions = new RequestOptions();
+ return serviceClient.beginDeleteExportedModelWithModelAsync(projectName, exportedModelName, requestOptions);
+ }
+
+ /**
+ * Creates a new exported model or replaces an existing one.
+ *
+ * @param projectName The name of the project to use.
+ * @param exportedModelName The exported model name.
+ * @param body The exported model info.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public PollerFlux
+ beginCreateOrUpdateExportedModel(String projectName, String exportedModelName, ExportedModelOptions body) {
+ // Generated convenience method for beginCreateOrUpdateExportedModelWithModel
+ RequestOptions requestOptions = new RequestOptions();
+ return serviceClient.beginCreateOrUpdateExportedModelWithModelAsync(projectName, exportedModelName,
+ BinaryData.fromObject(body), requestOptions);
+ }
+
+ /**
+ * Gets the status for an existing job to create or update an exported model.
+ *
+ * @param projectName The new project name.
+ * @param exportedModelName The exported model name.
+ * @param jobId The job ID.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the status for an existing job to create or update an exported model on successful completion of
+ * {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono getExportedModelJobStatus(String projectName,
+ String exportedModelName, String jobId) {
+ // Generated convenience method for getExportedModelJobStatusWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return getExportedModelJobStatusWithResponse(projectName, exportedModelName, jobId, requestOptions)
+ .flatMap(FluxUtil::toMono)
+ .map(protocolMethodData -> protocolMethodData
+ .toObject(AnalyzeConversationAuthoringExportedModelJobState.class));
+ }
+}
diff --git a/sdk/cognitivelanguage/azure-ai-language-conversations-authoring/src/main/java/com/azure/ai/language/conversations/authoring/AuthoringClient.java b/sdk/cognitivelanguage/azure-ai-language-conversations-authoring/src/main/java/com/azure/ai/language/conversations/authoring/AuthoringClient.java
new file mode 100644
index 000000000000..97f8a908cbee
--- /dev/null
+++ b/sdk/cognitivelanguage/azure-ai-language-conversations-authoring/src/main/java/com/azure/ai/language/conversations/authoring/AuthoringClient.java
@@ -0,0 +1,3773 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.ai.language.conversations.authoring;
+
+import com.azure.ai.language.conversations.authoring.implementation.AnalyzeConversationAuthoringsImpl;
+import com.azure.ai.language.conversations.authoring.implementation.JsonMergePatchHelper;
+import com.azure.ai.language.conversations.authoring.implementation.models.CopyProjectAuthorizationRequest;
+import com.azure.ai.language.conversations.authoring.models.AnalyzeConversationAuthoringAssignDeploymentResourcesOptions;
+import com.azure.ai.language.conversations.authoring.models.AnalyzeConversationAuthoringAssignedDeploymentResource;
+import com.azure.ai.language.conversations.authoring.models.AnalyzeConversationAuthoringAssignedResourceDeploymentsMetadata;
+import com.azure.ai.language.conversations.authoring.models.AnalyzeConversationAuthoringCopyProjectJobState;
+import com.azure.ai.language.conversations.authoring.models.AnalyzeConversationAuthoringCopyProjectOptions;
+import com.azure.ai.language.conversations.authoring.models.AnalyzeConversationAuthoringCreateDeploymentOptions;
+import com.azure.ai.language.conversations.authoring.models.AnalyzeConversationAuthoringCreateProjectOptions;
+import com.azure.ai.language.conversations.authoring.models.AnalyzeConversationAuthoringDeleteDeploymentOptions;
+import com.azure.ai.language.conversations.authoring.models.AnalyzeConversationAuthoringDeploymentDeleteFromResourcesJobState;
+import com.azure.ai.language.conversations.authoring.models.AnalyzeConversationAuthoringDeploymentJobState;
+import com.azure.ai.language.conversations.authoring.models.AnalyzeConversationAuthoringDeploymentResourcesJobState;
+import com.azure.ai.language.conversations.authoring.models.AnalyzeConversationAuthoringEvaluationJobResult;
+import com.azure.ai.language.conversations.authoring.models.AnalyzeConversationAuthoringEvaluationJobState;
+import com.azure.ai.language.conversations.authoring.models.AnalyzeConversationAuthoringEvaluationOptions;
+import com.azure.ai.language.conversations.authoring.models.AnalyzeConversationAuthoringEvaluationSummary;
+import com.azure.ai.language.conversations.authoring.models.AnalyzeConversationAuthoringExportProjectJobState;
+import com.azure.ai.language.conversations.authoring.models.AnalyzeConversationAuthoringExportedModelJobState;
+import com.azure.ai.language.conversations.authoring.models.AnalyzeConversationAuthoringExportedProject;
+import com.azure.ai.language.conversations.authoring.models.AnalyzeConversationAuthoringExportedTrainedModel;
+import com.azure.ai.language.conversations.authoring.models.AnalyzeConversationAuthoringImportProjectJobState;
+import com.azure.ai.language.conversations.authoring.models.AnalyzeConversationAuthoringLoadSnapshotJobState;
+import com.azure.ai.language.conversations.authoring.models.AnalyzeConversationAuthoringPrebuiltEntities;
+import com.azure.ai.language.conversations.authoring.models.AnalyzeConversationAuthoringProjectDeletionJobState;
+import com.azure.ai.language.conversations.authoring.models.AnalyzeConversationAuthoringProjectDeployment;
+import com.azure.ai.language.conversations.authoring.models.AnalyzeConversationAuthoringProjectMetadata;
+import com.azure.ai.language.conversations.authoring.models.AnalyzeConversationAuthoringProjectTrainedModel;
+import com.azure.ai.language.conversations.authoring.models.AnalyzeConversationAuthoringSupportedLanguages;
+import com.azure.ai.language.conversations.authoring.models.AnalyzeConversationAuthoringSwapDeploymentsJobState;
+import com.azure.ai.language.conversations.authoring.models.AnalyzeConversationAuthoringSwapDeploymentsOptions;
+import com.azure.ai.language.conversations.authoring.models.AnalyzeConversationAuthoringTrainingConfigVersions;
+import com.azure.ai.language.conversations.authoring.models.AnalyzeConversationAuthoringTrainingJobOptions;
+import com.azure.ai.language.conversations.authoring.models.AnalyzeConversationAuthoringTrainingJobResult;
+import com.azure.ai.language.conversations.authoring.models.AnalyzeConversationAuthoringTrainingJobState;
+import com.azure.ai.language.conversations.authoring.models.AnalyzeConversationAuthoringUnassignDeploymentResourcesOptions;
+import com.azure.ai.language.conversations.authoring.models.AnalyzeConversationAuthoringUtteranceEvaluationResult;
+import com.azure.ai.language.conversations.authoring.models.ExportedModelOptions;
+import com.azure.ai.language.conversations.authoring.models.ExportedProjectFormat;
+import com.azure.ai.language.conversations.authoring.models.ProjectKind;
+import com.azure.ai.language.conversations.authoring.models.StringIndexType;
+import com.azure.core.annotation.Generated;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceClient;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.exception.ClientAuthenticationException;
+import com.azure.core.exception.HttpResponseException;
+import com.azure.core.exception.ResourceModifiedException;
+import com.azure.core.exception.ResourceNotFoundException;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.RequestOptions;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.BinaryData;
+import com.azure.core.util.polling.SyncPoller;
+
+/**
+ * Initializes a new instance of the synchronous AuthoringClient type.
+ */
+@ServiceClient(builder = AuthoringClientBuilder.class)
+public final class AuthoringClient {
+ @Generated
+ private final AnalyzeConversationAuthoringsImpl serviceClient;
+
+ /**
+ * Initializes an instance of AuthoringClient class.
+ *
+ * @param serviceClient the service client implementation.
+ */
+ @Generated
+ AuthoringClient(AnalyzeConversationAuthoringsImpl serviceClient) {
+ this.serviceClient = serviceClient;
+ }
+
+ /**
+ * Lists the existing projects.
+ * Query Parameters
+ *
+ * Query Parameters
+ * | Name | Type | Required | Description |
+ * | top | Integer | No | The number of result items to return. |
+ * | skip | Integer | No | The number of result items to skip. |
+ * | maxpagesize | Integer | No | The maximum number of result items per page. |
+ *
+ * You can add these to a request with {@link RequestOptions#addQueryParam}
+ * Response Body Schema
+ *
+ *
+ * {@code
+ * {
+ * createdDateTime: OffsetDateTime (Required)
+ * lastModifiedDateTime: OffsetDateTime (Required)
+ * lastTrainedDateTime: OffsetDateTime (Optional)
+ * lastDeployedDateTime: OffsetDateTime (Optional)
+ * projectKind: String(Conversation/Orchestration/CustomConversationSummarization) (Required)
+ * settings (Optional): {
+ * confidenceThreshold: double (Optional, Required on create)
+ * }
+ * storageInputContainerName: String (Optional)
+ * projectName: String (Required)
+ * multilingual: Boolean (Optional)
+ * description: String (Optional)
+ * language: String (Required)
+ * }
+ * }
+ *
+ *
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return paged collection of AnalyzeConversationAuthoringProjectMetadata items as paginated response with
+ * {@link PagedIterable}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listProjects(RequestOptions requestOptions) {
+ return this.serviceClient.listProjects(requestOptions);
+ }
+
+ /**
+ * Gets the details of a project.
+ * Response Body Schema
+ *
+ *
+ * {@code
+ * {
+ * createdDateTime: OffsetDateTime (Required)
+ * lastModifiedDateTime: OffsetDateTime (Required)
+ * lastTrainedDateTime: OffsetDateTime (Optional)
+ * lastDeployedDateTime: OffsetDateTime (Optional)
+ * projectKind: String(Conversation/Orchestration/CustomConversationSummarization) (Required)
+ * settings (Optional): {
+ * confidenceThreshold: double (Optional, Required on create)
+ * }
+ * storageInputContainerName: String (Optional)
+ * projectName: String (Required)
+ * multilingual: Boolean (Optional)
+ * description: String (Optional)
+ * language: String (Required)
+ * }
+ * }
+ *
+ *
+ * @param projectName The new project name.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the details of a project along with {@link Response}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getProjectWithResponse(String projectName, RequestOptions requestOptions) {
+ return this.serviceClient.getProjectWithResponse(projectName, requestOptions);
+ }
+
+ /**
+ * Creates a new project or updates an existing one.
+ * Request Body Schema
+ *
+ *
+ * {@code
+ * {
+ * projectKind: String(Conversation/Orchestration/CustomConversationSummarization) (Optional, Required on create)
+ * settings (Optional): {
+ * confidenceThreshold: double (Optional, Required on create)
+ * }
+ * storageInputContainerName: String (Optional)
+ * projectName: String (Optional, Required on create)
+ * multilingual: Boolean (Optional)
+ * description: String (Optional)
+ * language: String (Optional, Required on create)
+ * }
+ * }
+ *
+ *
+ * Response Body Schema
+ *
+ *
+ * {@code
+ * {
+ * createdDateTime: OffsetDateTime (Required)
+ * lastModifiedDateTime: OffsetDateTime (Required)
+ * lastTrainedDateTime: OffsetDateTime (Optional)
+ * lastDeployedDateTime: OffsetDateTime (Optional)
+ * projectKind: String(Conversation/Orchestration/CustomConversationSummarization) (Required)
+ * settings (Optional): {
+ * confidenceThreshold: double (Optional, Required on create)
+ * }
+ * storageInputContainerName: String (Optional)
+ * projectName: String (Required)
+ * multilingual: Boolean (Optional)
+ * description: String (Optional)
+ * language: String (Required)
+ * }
+ * }
+ *
+ *
+ * @param projectName The new project name.
+ * @param body The request body.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return represents the metadata of a project along with {@link Response}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response createProjectWithResponse(String projectName, BinaryData body,
+ RequestOptions requestOptions) {
+ return this.serviceClient.createProjectWithResponse(projectName, body, requestOptions);
+ }
+
+ /**
+ * Deletes a project.
+ *
+ * @param projectName The name of the project to use.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller beginDeleteProject(String projectName, RequestOptions requestOptions) {
+ return this.serviceClient.beginDeleteProject(projectName, requestOptions);
+ }
+
+ /**
+ * Generates a copy project operation authorization to the current target Azure resource.
+ * Request Body Schema
+ *
+ *
+ * {@code
+ * {
+ * projectKind: String(Conversation/Orchestration/CustomConversationSummarization) (Required)
+ * storageInputContainerName: String (Optional)
+ * allowOverwrite: Boolean (Optional)
+ * }
+ * }
+ *
+ *
+ * Response Body Schema
+ *
+ *
+ * {@code
+ * {
+ * projectKind: String(Conversation/Orchestration/CustomConversationSummarization) (Required)
+ * targetProjectName: String (Required)
+ * accessToken: String (Required)
+ * expiresAt: OffsetDateTime (Required)
+ * targetResourceId: String (Required)
+ * targetResourceRegion: String (Required)
+ * }
+ * }
+ *
+ *
+ * @param projectName The new project name.
+ * @param copyProjectAuthorizationRequest The copyProjectAuthorizationRequest parameter.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return represents the options for copying an existing project to another Azure resource along with
+ * {@link Response}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response copyProjectAuthorizationWithResponse(String projectName,
+ BinaryData copyProjectAuthorizationRequest, RequestOptions requestOptions) {
+ return this.serviceClient.copyProjectAuthorizationWithResponse(projectName, copyProjectAuthorizationRequest,
+ requestOptions);
+ }
+
+ /**
+ * Copies an existing project to another Azure resource.
+ * Request Body Schema
+ *
+ *
+ * {@code
+ * {
+ * projectKind: String(Conversation/Orchestration/CustomConversationSummarization) (Required)
+ * targetProjectName: String (Required)
+ * accessToken: String (Required)
+ * expiresAt: OffsetDateTime (Required)
+ * targetResourceId: String (Required)
+ * targetResourceRegion: String (Required)
+ * }
+ * }
+ *
+ *
+ * @param projectName The name of the project to use.
+ * @param body The copy project info.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller beginCopyProject(String projectName, BinaryData body,
+ RequestOptions requestOptions) {
+ return this.serviceClient.beginCopyProject(projectName, body, requestOptions);
+ }
+
+ /**
+ * Triggers a job to export a project's data.
+ * Query Parameters
+ *
+ * Query Parameters
+ * | Name | Type | Required | Description |
+ * | format | String | No | The format of the exported project file to use. Allowed values:
+ * "Conversation", "Luis". |
+ * | assetKind | String | No | Kind of asset to export. |
+ * | trainedModelLabel | String | No | Trained model label to export. If the
+ * trainedModelLabel is null, the default behavior is to export the current working copy. |
+ *
+ * You can add these to a request with {@link RequestOptions#addQueryParam}
+ *
+ * @param projectName The name of the project to use.
+ * @param stringIndexType Specifies the method used to interpret string offsets. For additional information see
+ * https://aka.ms/text-analytics-offsets. Allowed values: "Utf16CodeUnit".
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller beginExport(String projectName, String stringIndexType,
+ RequestOptions requestOptions) {
+ return this.serviceClient.beginExport(projectName, stringIndexType, requestOptions);
+ }
+
+ /**
+ * Triggers a job to import a project. If a project with the same name already exists, the data of that project is
+ * replaced.
+ * Query Parameters
+ *
+ * Query Parameters
+ * | Name | Type | Required | Description |
+ * | format | String | No | The format of the exported project file to use. Allowed values:
+ * "Conversation", "Luis". |
+ *
+ * You can add these to a request with {@link RequestOptions#addQueryParam}
+ * Request Body Schema
+ *
+ *
+ * {@code
+ * {
+ * projectFileVersion: String (Required)
+ * stringIndexType: String(Utf16CodeUnit) (Required)
+ * metadata (Required): {
+ * projectKind: String(Conversation/Orchestration/CustomConversationSummarization) (Optional, Required on create)
+ * settings (Optional): {
+ * confidenceThreshold: double (Optional, Required on create)
+ * }
+ * storageInputContainerName: String (Optional)
+ * projectName: String (Optional, Required on create)
+ * multilingual: Boolean (Optional)
+ * description: String (Optional)
+ * language: String (Optional, Required on create)
+ * }
+ * assets (Optional): {
+ * projectKind: String(Conversation/Orchestration/CustomConversationSummarization) (Required)
+ * }
+ * }
+ * }
+ *
+ *
+ * @param projectName The name of the project to use.
+ * @param body The project data to import.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller beginImportMethod(String projectName, BinaryData body,
+ RequestOptions requestOptions) {
+ return this.serviceClient.beginImportMethod(projectName, body, requestOptions);
+ }
+
+ /**
+ * Triggers a training job for a project.
+ * Request Body Schema
+ *
+ *
+ * {@code
+ * {
+ * modelLabel: String (Required)
+ * trainingConfigVersion: String (Optional)
+ * trainingMode: String(advanced/standard) (Required)
+ * evaluationOptions (Optional): {
+ * kind: String(percentage/manual) (Optional)
+ * trainingSplitPercentage: Integer (Optional)
+ * testingSplitPercentage: Integer (Optional)
+ * }
+ * }
+ * }
+ *
+ *
+ * @param projectName The name of the project to use.
+ * @param body The training input parameters.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller beginTrain(String projectName, BinaryData body,
+ RequestOptions requestOptions) {
+ return this.serviceClient.beginTrain(projectName, body, requestOptions);
+ }
+
+ /**
+ * Gets the status of an existing copy project job.
+ * Response Body Schema
+ *
+ *
+ * {@code
+ * {
+ * jobId: String (Required)
+ * createdDateTime: OffsetDateTime (Required)
+ * lastUpdatedDateTime: OffsetDateTime (Required)
+ * expirationDateTime: OffsetDateTime (Optional)
+ * status: String(notStarted/running/succeeded/failed/cancelled/cancelling/partiallyCompleted) (Required)
+ * warnings (Optional): [
+ * (Optional){
+ * code: String (Required)
+ * message: String (Required)
+ * }
+ * ]
+ * errors (Optional): [
+ * (Optional){
+ * code: String(InvalidRequest/InvalidArgument/Unauthorized/Forbidden/NotFound/ProjectNotFound/OperationNotFound/AzureCognitiveSearchNotFound/AzureCognitiveSearchIndexNotFound/TooManyRequests/AzureCognitiveSearchThrottling/AzureCognitiveSearchIndexLimitReached/InternalServerError/ServiceUnavailable/Timeout/QuotaExceeded/Conflict/Warning) (Required)
+ * message: String (Required)
+ * target: String (Optional)
+ * details (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * innererror (Optional): {
+ * code: String(InvalidRequest/InvalidParameterValue/KnowledgeBaseNotFound/AzureCognitiveSearchNotFound/AzureCognitiveSearchThrottling/ExtractionFailure/InvalidRequestBodyFormat/EmptyRequest/MissingInputDocuments/InvalidDocument/ModelVersionIncorrect/InvalidDocumentBatch/UnsupportedLanguageCode/InvalidCountryHint) (Required)
+ * message: String (Required)
+ * details (Optional): {
+ * String: String (Required)
+ * }
+ * target: String (Optional)
+ * innererror (Optional): (recursive schema, see innererror above)
+ * }
+ * }
+ * ]
+ * }
+ * }
+ *
+ *
+ * @param projectName The new project name.
+ * @param jobId The job ID.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the status of an existing copy project job along with {@link Response}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getCopyProjectStatusWithResponse(String projectName, String jobId,
+ RequestOptions requestOptions) {
+ return this.serviceClient.getCopyProjectStatusWithResponse(projectName, jobId, requestOptions);
+ }
+
+ /**
+ * Lists the deployments belonging to a project.
+ * Query Parameters
+ *
+ * Query Parameters
+ * | Name | Type | Required | Description |
+ * | top | Integer | No | The number of result items to return. |
+ * | skip | Integer | No | The number of result items to skip. |
+ * | maxpagesize | Integer | No | The maximum number of result items per page. |
+ *
+ * You can add these to a request with {@link RequestOptions#addQueryParam}
+ * Response Body Schema
+ *
+ *
+ * {@code
+ * {
+ * deploymentName: String (Required)
+ * modelId: String (Required)
+ * lastTrainedDateTime: OffsetDateTime (Required)
+ * lastDeployedDateTime: OffsetDateTime (Required)
+ * deploymentExpirationDate: LocalDate (Required)
+ * modelTrainingConfigVersion: String (Required)
+ * assignedResources (Required): [
+ * (Required){
+ * resourceId: String (Required)
+ * region: String (Required)
+ * }
+ * ]
+ * }
+ * }
+ *
+ *
+ * @param projectName The new project name.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return paged collection of AnalyzeConversationAuthoringProjectDeployment items as paginated response with
+ * {@link PagedIterable}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listDeployments(String projectName, RequestOptions requestOptions) {
+ return this.serviceClient.listDeployments(projectName, requestOptions);
+ }
+
+ /**
+ * Swaps two existing deployments with each other.
+ * Request Body Schema
+ *
+ *
+ * {@code
+ * {
+ * firstDeploymentName: String (Required)
+ * secondDeploymentName: String (Required)
+ * }
+ * }
+ *
+ *
+ * @param projectName The name of the project to use.
+ * @param body The job object to swap two deployments.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller beginSwapDeployments(String projectName, BinaryData body,
+ RequestOptions requestOptions) {
+ return this.serviceClient.beginSwapDeployments(projectName, body, requestOptions);
+ }
+
+ /**
+ * Gets the details of a deployment.
+ * Response Body Schema
+ *
+ *
+ * {@code
+ * {
+ * deploymentName: String (Required)
+ * modelId: String (Required)
+ * lastTrainedDateTime: OffsetDateTime (Required)
+ * lastDeployedDateTime: OffsetDateTime (Required)
+ * deploymentExpirationDate: LocalDate (Required)
+ * modelTrainingConfigVersion: String (Required)
+ * assignedResources (Required): [
+ * (Required){
+ * resourceId: String (Required)
+ * region: String (Required)
+ * }
+ * ]
+ * }
+ * }
+ *
+ *
+ * @param projectName The new project name.
+ * @param deploymentName Represents deployment name.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the details of a deployment along with {@link Response}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getDeploymentWithResponse(String projectName, String deploymentName,
+ RequestOptions requestOptions) {
+ return this.serviceClient.getDeploymentWithResponse(projectName, deploymentName, requestOptions);
+ }
+
+ /**
+ * Creates a new deployment or replaces an existing one.
+ * Request Body Schema
+ *
+ *
+ * {@code
+ * {
+ * trainedModelLabel: String (Required)
+ * assignedResourceIds (Optional): [
+ * String (Optional)
+ * ]
+ * }
+ * }
+ *
+ *
+ * @param projectName The name of the project to use.
+ * @param deploymentName The name of the specific deployment of the project to use.
+ * @param body The new deployment info.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller beginDeployProject(String projectName, String deploymentName,
+ BinaryData body, RequestOptions requestOptions) {
+ return this.serviceClient.beginDeployProject(projectName, deploymentName, body, requestOptions);
+ }
+
+ /**
+ * Deletes a project deployment.
+ *
+ * @param projectName The name of the project to use.
+ * @param deploymentName The name of the specific deployment of the project to use.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller beginDeleteDeployment(String projectName, String deploymentName,
+ RequestOptions requestOptions) {
+ return this.serviceClient.beginDeleteDeployment(projectName, deploymentName, requestOptions);
+ }
+
+ /**
+ * Deletes a project deployment from the specified assigned resources.
+ * Request Body Schema
+ *
+ *
+ * {@code
+ * {
+ * assignedResourceIds (Optional): [
+ * String (Optional)
+ * ]
+ * }
+ * }
+ *
+ *
+ * @param projectName The name of the project to use.
+ * @param deploymentName The name of the specific deployment of the project to use.
+ * @param body The options for deleting the deployment.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller beginDeleteDeploymentFromResources(String projectName,
+ String deploymentName, BinaryData body, RequestOptions requestOptions) {
+ return this.serviceClient.beginDeleteDeploymentFromResources(projectName, deploymentName, body, requestOptions);
+ }
+
+ /**
+ * Gets the status of an existing delete deployment from specific resources job.
+ * Response Body Schema
+ *
+ *
+ * {@code
+ * {
+ * jobId: String (Required)
+ * createdDateTime: OffsetDateTime (Required)
+ * lastUpdatedDateTime: OffsetDateTime (Required)
+ * expirationDateTime: OffsetDateTime (Optional)
+ * status: String(notStarted/running/succeeded/failed/cancelled/cancelling/partiallyCompleted) (Required)
+ * warnings (Optional): [
+ * (Optional){
+ * code: String (Required)
+ * message: String (Required)
+ * }
+ * ]
+ * errors (Optional): [
+ * (Optional){
+ * code: String(InvalidRequest/InvalidArgument/Unauthorized/Forbidden/NotFound/ProjectNotFound/OperationNotFound/AzureCognitiveSearchNotFound/AzureCognitiveSearchIndexNotFound/TooManyRequests/AzureCognitiveSearchThrottling/AzureCognitiveSearchIndexLimitReached/InternalServerError/ServiceUnavailable/Timeout/QuotaExceeded/Conflict/Warning) (Required)
+ * message: String (Required)
+ * target: String (Optional)
+ * details (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * innererror (Optional): {
+ * code: String(InvalidRequest/InvalidParameterValue/KnowledgeBaseNotFound/AzureCognitiveSearchNotFound/AzureCognitiveSearchThrottling/ExtractionFailure/InvalidRequestBodyFormat/EmptyRequest/MissingInputDocuments/InvalidDocument/ModelVersionIncorrect/InvalidDocumentBatch/UnsupportedLanguageCode/InvalidCountryHint) (Required)
+ * message: String (Required)
+ * details (Optional): {
+ * String: String (Required)
+ * }
+ * target: String (Optional)
+ * innererror (Optional): (recursive schema, see innererror above)
+ * }
+ * }
+ * ]
+ * }
+ * }
+ *
+ *
+ * @param projectName The new project name.
+ * @param deploymentName Represents deployment name.
+ * @param jobId The job ID.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the status of an existing delete deployment from specific resources job along with {@link Response}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getDeploymentDeleteFromResourcesStatusWithResponse(String projectName,
+ String deploymentName, String jobId, RequestOptions requestOptions) {
+ return this.serviceClient.getDeploymentDeleteFromResourcesStatusWithResponse(projectName, deploymentName, jobId,
+ requestOptions);
+ }
+
+ /**
+ * Gets the status of an existing deployment job.
+ * Response Body Schema
+ *
+ *
+ * {@code
+ * {
+ * jobId: String (Required)
+ * createdDateTime: OffsetDateTime (Required)
+ * lastUpdatedDateTime: OffsetDateTime (Required)
+ * expirationDateTime: OffsetDateTime (Optional)
+ * status: String(notStarted/running/succeeded/failed/cancelled/cancelling/partiallyCompleted) (Required)
+ * warnings (Optional): [
+ * (Optional){
+ * code: String (Required)
+ * message: String (Required)
+ * }
+ * ]
+ * errors (Optional): [
+ * (Optional){
+ * code: String(InvalidRequest/InvalidArgument/Unauthorized/Forbidden/NotFound/ProjectNotFound/OperationNotFound/AzureCognitiveSearchNotFound/AzureCognitiveSearchIndexNotFound/TooManyRequests/AzureCognitiveSearchThrottling/AzureCognitiveSearchIndexLimitReached/InternalServerError/ServiceUnavailable/Timeout/QuotaExceeded/Conflict/Warning) (Required)
+ * message: String (Required)
+ * target: String (Optional)
+ * details (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * innererror (Optional): {
+ * code: String(InvalidRequest/InvalidParameterValue/KnowledgeBaseNotFound/AzureCognitiveSearchNotFound/AzureCognitiveSearchThrottling/ExtractionFailure/InvalidRequestBodyFormat/EmptyRequest/MissingInputDocuments/InvalidDocument/ModelVersionIncorrect/InvalidDocumentBatch/UnsupportedLanguageCode/InvalidCountryHint) (Required)
+ * message: String (Required)
+ * details (Optional): {
+ * String: String (Required)
+ * }
+ * target: String (Optional)
+ * innererror (Optional): (recursive schema, see innererror above)
+ * }
+ * }
+ * ]
+ * }
+ * }
+ *
+ *
+ * @param projectName The new project name.
+ * @param deploymentName Represents deployment name.
+ * @param jobId The job ID.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the status of an existing deployment job along with {@link Response}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getDeploymentStatusWithResponse(String projectName, String deploymentName, String jobId,
+ RequestOptions requestOptions) {
+ return this.serviceClient.getDeploymentStatusWithResponse(projectName, deploymentName, jobId, requestOptions);
+ }
+
+ /**
+ * Gets the status of an existing swap deployment job.
+ * Response Body Schema
+ *
+ *
+ * {@code
+ * {
+ * jobId: String (Required)
+ * createdDateTime: OffsetDateTime (Required)
+ * lastUpdatedDateTime: OffsetDateTime (Required)
+ * expirationDateTime: OffsetDateTime (Optional)
+ * status: String(notStarted/running/succeeded/failed/cancelled/cancelling/partiallyCompleted) (Required)
+ * warnings (Optional): [
+ * (Optional){
+ * code: String (Required)
+ * message: String (Required)
+ * }
+ * ]
+ * errors (Optional): [
+ * (Optional){
+ * code: String(InvalidRequest/InvalidArgument/Unauthorized/Forbidden/NotFound/ProjectNotFound/OperationNotFound/AzureCognitiveSearchNotFound/AzureCognitiveSearchIndexNotFound/TooManyRequests/AzureCognitiveSearchThrottling/AzureCognitiveSearchIndexLimitReached/InternalServerError/ServiceUnavailable/Timeout/QuotaExceeded/Conflict/Warning) (Required)
+ * message: String (Required)
+ * target: String (Optional)
+ * details (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * innererror (Optional): {
+ * code: String(InvalidRequest/InvalidParameterValue/KnowledgeBaseNotFound/AzureCognitiveSearchNotFound/AzureCognitiveSearchThrottling/ExtractionFailure/InvalidRequestBodyFormat/EmptyRequest/MissingInputDocuments/InvalidDocument/ModelVersionIncorrect/InvalidDocumentBatch/UnsupportedLanguageCode/InvalidCountryHint) (Required)
+ * message: String (Required)
+ * details (Optional): {
+ * String: String (Required)
+ * }
+ * target: String (Optional)
+ * innererror (Optional): (recursive schema, see innererror above)
+ * }
+ * }
+ * ]
+ * }
+ * }
+ *
+ *
+ * @param projectName The new project name.
+ * @param jobId The job ID.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the status of an existing swap deployment job along with {@link Response}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getSwapDeploymentsStatusWithResponse(String projectName, String jobId,
+ RequestOptions requestOptions) {
+ return this.serviceClient.getSwapDeploymentsStatusWithResponse(projectName, jobId, requestOptions);
+ }
+
+ /**
+ * Gets the status of an export job. Once job completes, returns the project metadata, and assets.
+ * Response Body Schema
+ *
+ *
+ * {@code
+ * {
+ * jobId: String (Required)
+ * createdDateTime: OffsetDateTime (Required)
+ * lastUpdatedDateTime: OffsetDateTime (Required)
+ * expirationDateTime: OffsetDateTime (Optional)
+ * status: String(notStarted/running/succeeded/failed/cancelled/cancelling/partiallyCompleted) (Required)
+ * warnings (Optional): [
+ * (Optional){
+ * code: String (Required)
+ * message: String (Required)
+ * }
+ * ]
+ * errors (Optional): [
+ * (Optional){
+ * code: String(InvalidRequest/InvalidArgument/Unauthorized/Forbidden/NotFound/ProjectNotFound/OperationNotFound/AzureCognitiveSearchNotFound/AzureCognitiveSearchIndexNotFound/TooManyRequests/AzureCognitiveSearchThrottling/AzureCognitiveSearchIndexLimitReached/InternalServerError/ServiceUnavailable/Timeout/QuotaExceeded/Conflict/Warning) (Required)
+ * message: String (Required)
+ * target: String (Optional)
+ * details (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * innererror (Optional): {
+ * code: String(InvalidRequest/InvalidParameterValue/KnowledgeBaseNotFound/AzureCognitiveSearchNotFound/AzureCognitiveSearchThrottling/ExtractionFailure/InvalidRequestBodyFormat/EmptyRequest/MissingInputDocuments/InvalidDocument/ModelVersionIncorrect/InvalidDocumentBatch/UnsupportedLanguageCode/InvalidCountryHint) (Required)
+ * message: String (Required)
+ * details (Optional): {
+ * String: String (Required)
+ * }
+ * target: String (Optional)
+ * innererror (Optional): (recursive schema, see innererror above)
+ * }
+ * }
+ * ]
+ * resultUrl: String (Optional)
+ * }
+ * }
+ *
+ *
+ * @param projectName The new project name.
+ * @param jobId The job ID.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the status of an export job along with {@link Response}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getExportStatusWithResponse(String projectName, String jobId,
+ RequestOptions requestOptions) {
+ return this.serviceClient.getExportStatusWithResponse(projectName, jobId, requestOptions);
+ }
+
+ /**
+ * Gets the status for an import.
+ * Response Body Schema
+ *
+ *
+ * {@code
+ * {
+ * jobId: String (Required)
+ * createdDateTime: OffsetDateTime (Required)
+ * lastUpdatedDateTime: OffsetDateTime (Required)
+ * expirationDateTime: OffsetDateTime (Optional)
+ * status: String(notStarted/running/succeeded/failed/cancelled/cancelling/partiallyCompleted) (Required)
+ * warnings (Optional): [
+ * (Optional){
+ * code: String (Required)
+ * message: String (Required)
+ * }
+ * ]
+ * errors (Optional): [
+ * (Optional){
+ * code: String(InvalidRequest/InvalidArgument/Unauthorized/Forbidden/NotFound/ProjectNotFound/OperationNotFound/AzureCognitiveSearchNotFound/AzureCognitiveSearchIndexNotFound/TooManyRequests/AzureCognitiveSearchThrottling/AzureCognitiveSearchIndexLimitReached/InternalServerError/ServiceUnavailable/Timeout/QuotaExceeded/Conflict/Warning) (Required)
+ * message: String (Required)
+ * target: String (Optional)
+ * details (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * innererror (Optional): {
+ * code: String(InvalidRequest/InvalidParameterValue/KnowledgeBaseNotFound/AzureCognitiveSearchNotFound/AzureCognitiveSearchThrottling/ExtractionFailure/InvalidRequestBodyFormat/EmptyRequest/MissingInputDocuments/InvalidDocument/ModelVersionIncorrect/InvalidDocumentBatch/UnsupportedLanguageCode/InvalidCountryHint) (Required)
+ * message: String (Required)
+ * details (Optional): {
+ * String: String (Required)
+ * }
+ * target: String (Optional)
+ * innererror (Optional): (recursive schema, see innererror above)
+ * }
+ * }
+ * ]
+ * }
+ * }
+ *
+ *
+ * @param projectName The new project name.
+ * @param jobId The job ID.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the status for an import along with {@link Response}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getImportStatusWithResponse(String projectName, String jobId,
+ RequestOptions requestOptions) {
+ return this.serviceClient.getImportStatusWithResponse(projectName, jobId, requestOptions);
+ }
+
+ /**
+ * Lists the trained models belonging to a project.
+ * Query Parameters
+ *
+ * Query Parameters
+ * | Name | Type | Required | Description |
+ * | top | Integer | No | The number of result items to return. |
+ * | skip | Integer | No | The number of result items to skip. |
+ * | maxpagesize | Integer | No | The maximum number of result items per page. |
+ *
+ * You can add these to a request with {@link RequestOptions#addQueryParam}
+ * Response Body Schema
+ *
+ *
+ * {@code
+ * {
+ * label: String (Required)
+ * modelId: String (Required)
+ * lastTrainedDateTime: OffsetDateTime (Required)
+ * lastTrainingDurationInSeconds: int (Required)
+ * modelExpirationDate: LocalDate (Required)
+ * modelTrainingConfigVersion: String (Required)
+ * hasSnapshot: boolean (Required)
+ * }
+ * }
+ *
+ *
+ * @param projectName The new project name.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return paged collection of AnalyzeConversationAuthoringProjectTrainedModel items as paginated response with
+ * {@link PagedIterable}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listTrainedModels(String projectName, RequestOptions requestOptions) {
+ return this.serviceClient.listTrainedModels(projectName, requestOptions);
+ }
+
+ /**
+ * Gets the details of a trained model.
+ * Response Body Schema
+ *
+ *
+ * {@code
+ * {
+ * label: String (Required)
+ * modelId: String (Required)
+ * lastTrainedDateTime: OffsetDateTime (Required)
+ * lastTrainingDurationInSeconds: int (Required)
+ * modelExpirationDate: LocalDate (Required)
+ * modelTrainingConfigVersion: String (Required)
+ * hasSnapshot: boolean (Required)
+ * }
+ * }
+ *
+ *
+ * @param projectName The new project name.
+ * @param trainedModelLabel The trained model label.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the details of a trained model along with {@link Response}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getTrainedModelWithResponse(String projectName, String trainedModelLabel,
+ RequestOptions requestOptions) {
+ return this.serviceClient.getTrainedModelWithResponse(projectName, trainedModelLabel, requestOptions);
+ }
+
+ /**
+ * Deletes an existing trained model.
+ *
+ * @param projectName The new project name.
+ * @param trainedModelLabel The trained model label.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the {@link Response}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response deleteTrainedModelWithResponse(String projectName, String trainedModelLabel,
+ RequestOptions requestOptions) {
+ return this.serviceClient.deleteTrainedModelWithResponse(projectName, trainedModelLabel, requestOptions);
+ }
+
+ /**
+ * Triggers evaluation operation on a trained model.
+ * Request Body Schema
+ *
+ *
+ * {@code
+ * {
+ * kind: String(percentage/manual) (Optional)
+ * trainingSplitPercentage: Integer (Optional)
+ * testingSplitPercentage: Integer (Optional)
+ * }
+ * }
+ *
+ *
+ * @param projectName The name of the project to use.
+ * @param trainedModelLabel The trained model label.
+ * @param body The training input parameters.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller beginEvaluateModel(String projectName, String trainedModelLabel,
+ BinaryData body, RequestOptions requestOptions) {
+ return this.serviceClient.beginEvaluateModel(projectName, trainedModelLabel, body, requestOptions);
+ }
+
+ /**
+ * Restores the snapshot of this trained model to be the current working directory of the project.
+ *
+ * @param projectName The name of the project to use.
+ * @param trainedModelLabel The trained model label.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller beginLoadSnapshot(String projectName, String trainedModelLabel,
+ RequestOptions requestOptions) {
+ return this.serviceClient.beginLoadSnapshot(projectName, trainedModelLabel, requestOptions);
+ }
+
+ /**
+ * Gets the status for an evaluation job.
+ * Response Body Schema
+ *
+ *
+ * {@code
+ * {
+ * jobId: String (Required)
+ * createdDateTime: OffsetDateTime (Required)
+ * lastUpdatedDateTime: OffsetDateTime (Required)
+ * expirationDateTime: OffsetDateTime (Optional)
+ * status: String(notStarted/running/succeeded/failed/cancelled/cancelling/partiallyCompleted) (Required)
+ * warnings (Optional): [
+ * (Optional){
+ * code: String (Required)
+ * message: String (Required)
+ * }
+ * ]
+ * errors (Optional): [
+ * (Optional){
+ * code: String(InvalidRequest/InvalidArgument/Unauthorized/Forbidden/NotFound/ProjectNotFound/OperationNotFound/AzureCognitiveSearchNotFound/AzureCognitiveSearchIndexNotFound/TooManyRequests/AzureCognitiveSearchThrottling/AzureCognitiveSearchIndexLimitReached/InternalServerError/ServiceUnavailable/Timeout/QuotaExceeded/Conflict/Warning) (Required)
+ * message: String (Required)
+ * target: String (Optional)
+ * details (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * innererror (Optional): {
+ * code: String(InvalidRequest/InvalidParameterValue/KnowledgeBaseNotFound/AzureCognitiveSearchNotFound/AzureCognitiveSearchThrottling/ExtractionFailure/InvalidRequestBodyFormat/EmptyRequest/MissingInputDocuments/InvalidDocument/ModelVersionIncorrect/InvalidDocumentBatch/UnsupportedLanguageCode/InvalidCountryHint) (Required)
+ * message: String (Required)
+ * details (Optional): {
+ * String: String (Required)
+ * }
+ * target: String (Optional)
+ * innererror (Optional): (recursive schema, see innererror above)
+ * }
+ * }
+ * ]
+ * result (Required): {
+ * evaluationOptions (Required): {
+ * kind: String(percentage/manual) (Optional)
+ * trainingSplitPercentage: Integer (Optional)
+ * testingSplitPercentage: Integer (Optional)
+ * }
+ * modelLabel: String (Required)
+ * trainingConfigVersion: String (Required)
+ * percentComplete: int (Required)
+ * }
+ * }
+ * }
+ *
+ *
+ * @param projectName The new project name.
+ * @param trainedModelLabel The trained model label.
+ * @param jobId The job ID.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the status for an evaluation job along with {@link Response}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getEvaluationStatusWithResponse(String projectName, String trainedModelLabel,
+ String jobId, RequestOptions requestOptions) {
+ return this.serviceClient.getEvaluationStatusWithResponse(projectName, trainedModelLabel, jobId,
+ requestOptions);
+ }
+
+ /**
+ * 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.
+ * Query Parameters
+ *
+ * Query Parameters
+ * | Name | Type | Required | Description |
+ * | top | Integer | No | The number of result items to return. |
+ * | skip | Integer | No | The number of result items to skip. |
+ * | maxpagesize | Integer | No | The maximum number of result items per page. |
+ *
+ * You can add these to a request with {@link RequestOptions#addQueryParam}
+ * Response Body Schema
+ *
+ *
+ * {@code
+ * {
+ * text: String (Required)
+ * language: String (Required)
+ * entitiesResult (Required): {
+ * expectedEntities (Required): [
+ * (Required){
+ * category: String (Required)
+ * offset: int (Required)
+ * length: int (Required)
+ * }
+ * ]
+ * predictedEntities (Required): [
+ * (recursive schema, see above)
+ * ]
+ * }
+ * intentsResult (Required): {
+ * expectedIntent: String (Required)
+ * predictedIntent: String (Required)
+ * }
+ * }
+ * }
+ *
+ *
+ * @param projectName The new project name.
+ * @param trainedModelLabel The trained model label.
+ * @param stringIndexType Specifies the method used to interpret string offsets. For additional information see
+ * https://aka.ms/text-analytics-offsets. Allowed values: "Utf16CodeUnit".
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the detailed results of the evaluation for a trained model as paginated response with
+ * {@link PagedIterable}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable getModelEvaluationResults(String projectName, String trainedModelLabel,
+ String stringIndexType, RequestOptions requestOptions) {
+ return this.serviceClient.getModelEvaluationResults(projectName, trainedModelLabel, stringIndexType,
+ requestOptions);
+ }
+
+ /**
+ * Gets the evaluation summary of a trained model. The summary includes high level performance measurements of the
+ * model e.g., F1, Precision, Recall, etc.
+ * Response Body Schema
+ *
+ *
+ * {@code
+ * {
+ * entitiesEvaluation (Required): {
+ * confusionMatrix (Required): {
+ * (Optional): {
+ * String (Required): {
+ * (Optional): {
+ * String (Required): {
+ * normalizedValue: double (Required)
+ * rawValue: double (Required)
+ * }
+ * }
+ * }
+ * }
+ * }
+ * entities (Required): {
+ * String (Required): {
+ * f1: double (Required)
+ * precision: double (Required)
+ * recall: double (Required)
+ * truePositiveCount: int (Required)
+ * trueNegativeCount: int (Required)
+ * falsePositiveCount: int (Required)
+ * falseNegativeCount: int (Required)
+ * }
+ * }
+ * microF1: double (Required)
+ * microPrecision: double (Required)
+ * microRecall: double (Required)
+ * macroF1: double (Required)
+ * macroPrecision: double (Required)
+ * macroRecall: double (Required)
+ * }
+ * intentsEvaluation (Required): {
+ * confusionMatrix (Required): (recursive schema, see confusionMatrix above)
+ * intents (Required): {
+ * String (Required): {
+ * f1: double (Required)
+ * precision: double (Required)
+ * recall: double (Required)
+ * truePositiveCount: int (Required)
+ * trueNegativeCount: int (Required)
+ * falsePositiveCount: int (Required)
+ * falseNegativeCount: int (Required)
+ * }
+ * }
+ * microF1: double (Required)
+ * microPrecision: double (Required)
+ * microRecall: double (Required)
+ * macroF1: double (Required)
+ * macroPrecision: double (Required)
+ * macroRecall: double (Required)
+ * }
+ * evaluationOptions (Optional): {
+ * kind: String(percentage/manual) (Optional)
+ * trainingSplitPercentage: Integer (Optional)
+ * testingSplitPercentage: Integer (Optional)
+ * }
+ * }
+ * }
+ *
+ *
+ * @param projectName The name of the project to use.
+ * @param trainedModelLabel The trained model label.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the evaluation summary of a trained model along with {@link Response}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getModelEvaluationSummaryWithResponse(String projectName, String trainedModelLabel,
+ RequestOptions requestOptions) {
+ return this.serviceClient.getModelEvaluationSummaryWithResponse(projectName, trainedModelLabel, requestOptions);
+ }
+
+ /**
+ * Gets the status for loading a snapshot.
+ * Response Body Schema
+ *
+ *
+ * {@code
+ * {
+ * jobId: String (Required)
+ * createdDateTime: OffsetDateTime (Required)
+ * lastUpdatedDateTime: OffsetDateTime (Required)
+ * expirationDateTime: OffsetDateTime (Optional)
+ * status: String(notStarted/running/succeeded/failed/cancelled/cancelling/partiallyCompleted) (Required)
+ * warnings (Optional): [
+ * (Optional){
+ * code: String (Required)
+ * message: String (Required)
+ * }
+ * ]
+ * errors (Optional): [
+ * (Optional){
+ * code: String(InvalidRequest/InvalidArgument/Unauthorized/Forbidden/NotFound/ProjectNotFound/OperationNotFound/AzureCognitiveSearchNotFound/AzureCognitiveSearchIndexNotFound/TooManyRequests/AzureCognitiveSearchThrottling/AzureCognitiveSearchIndexLimitReached/InternalServerError/ServiceUnavailable/Timeout/QuotaExceeded/Conflict/Warning) (Required)
+ * message: String (Required)
+ * target: String (Optional)
+ * details (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * innererror (Optional): {
+ * code: String(InvalidRequest/InvalidParameterValue/KnowledgeBaseNotFound/AzureCognitiveSearchNotFound/AzureCognitiveSearchThrottling/ExtractionFailure/InvalidRequestBodyFormat/EmptyRequest/MissingInputDocuments/InvalidDocument/ModelVersionIncorrect/InvalidDocumentBatch/UnsupportedLanguageCode/InvalidCountryHint) (Required)
+ * message: String (Required)
+ * details (Optional): {
+ * String: String (Required)
+ * }
+ * target: String (Optional)
+ * innererror (Optional): (recursive schema, see innererror above)
+ * }
+ * }
+ * ]
+ * }
+ * }
+ *
+ *
+ * @param projectName The new project name.
+ * @param trainedModelLabel The trained model label.
+ * @param jobId The job ID.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the status for loading a snapshot along with {@link Response}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getLoadSnapshotStatusWithResponse(String projectName, String trainedModelLabel,
+ String jobId, RequestOptions requestOptions) {
+ return this.serviceClient.getLoadSnapshotStatusWithResponse(projectName, trainedModelLabel, jobId,
+ requestOptions);
+ }
+
+ /**
+ * Lists the deployments resources assigned to the project.
+ * Query Parameters
+ *
+ * Query Parameters
+ * | Name | Type | Required | Description |
+ * | top | Integer | No | The number of result items to return. |
+ * | skip | Integer | No | The number of result items to skip. |
+ * | maxpagesize | Integer | No | The maximum number of result items per page. |
+ *
+ * You can add these to a request with {@link RequestOptions#addQueryParam}
+ * Response Body Schema
+ *
+ *
+ * {@code
+ * {
+ * azureResourceId: String (Required)
+ * region: String (Required)
+ * }
+ * }
+ *
+ *
+ * @param projectName The new project name.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return paged collection of AnalyzeConversationAuthoringAssignedDeploymentResource items as paginated response
+ * with {@link PagedIterable}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listDeploymentResources(String projectName, RequestOptions requestOptions) {
+ return this.serviceClient.listDeploymentResources(projectName, requestOptions);
+ }
+
+ /**
+ * 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.
+ * Request Body Schema
+ *
+ *
+ * {@code
+ * {
+ * resourcesMetadata (Required): [
+ * (Required){
+ * azureResourceId: String (Required)
+ * customDomain: String (Required)
+ * region: String (Required)
+ * }
+ * ]
+ * }
+ * }
+ *
+ *
+ * @param projectName The name of the project to use.
+ * @param body The new project resources info.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller beginAssignDeploymentResources(String projectName, BinaryData body,
+ RequestOptions requestOptions) {
+ return this.serviceClient.beginAssignDeploymentResources(projectName, body, requestOptions);
+ }
+
+ /**
+ * Unassign resources from a project. This disallows deploying new deployments to these resources, and deletes
+ * existing deployments assigned to them.
+ * Request Body Schema
+ *
+ *
+ * {@code
+ * {
+ * assignedResourceIds (Required): [
+ * String (Required)
+ * ]
+ * }
+ * }
+ *
+ *
+ * @param projectName The name of the project to use.
+ * @param body The info for the deployment resources to be deleted.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller beginUnassignDeploymentResources(String projectName, BinaryData body,
+ RequestOptions requestOptions) {
+ return this.serviceClient.beginUnassignDeploymentResources(projectName, body, requestOptions);
+ }
+
+ /**
+ * Gets the status of an existing assign deployment resources job.
+ * Response Body Schema
+ *
+ *
+ * {@code
+ * {
+ * jobId: String (Required)
+ * createdDateTime: OffsetDateTime (Required)
+ * lastUpdatedDateTime: OffsetDateTime (Required)
+ * expirationDateTime: OffsetDateTime (Optional)
+ * status: String(notStarted/running/succeeded/failed/cancelled/cancelling/partiallyCompleted) (Required)
+ * warnings (Optional): [
+ * (Optional){
+ * code: String (Required)
+ * message: String (Required)
+ * }
+ * ]
+ * errors (Optional): [
+ * (Optional){
+ * code: String(InvalidRequest/InvalidArgument/Unauthorized/Forbidden/NotFound/ProjectNotFound/OperationNotFound/AzureCognitiveSearchNotFound/AzureCognitiveSearchIndexNotFound/TooManyRequests/AzureCognitiveSearchThrottling/AzureCognitiveSearchIndexLimitReached/InternalServerError/ServiceUnavailable/Timeout/QuotaExceeded/Conflict/Warning) (Required)
+ * message: String (Required)
+ * target: String (Optional)
+ * details (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * innererror (Optional): {
+ * code: String(InvalidRequest/InvalidParameterValue/KnowledgeBaseNotFound/AzureCognitiveSearchNotFound/AzureCognitiveSearchThrottling/ExtractionFailure/InvalidRequestBodyFormat/EmptyRequest/MissingInputDocuments/InvalidDocument/ModelVersionIncorrect/InvalidDocumentBatch/UnsupportedLanguageCode/InvalidCountryHint) (Required)
+ * message: String (Required)
+ * details (Optional): {
+ * String: String (Required)
+ * }
+ * target: String (Optional)
+ * innererror (Optional): (recursive schema, see innererror above)
+ * }
+ * }
+ * ]
+ * }
+ * }
+ *
+ *
+ * @param projectName The new project name.
+ * @param jobId The job ID.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the status of an existing assign deployment resources job along with {@link Response}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getAssignDeploymentResourcesStatusWithResponse(String projectName, String jobId,
+ RequestOptions requestOptions) {
+ return this.serviceClient.getAssignDeploymentResourcesStatusWithResponse(projectName, jobId, requestOptions);
+ }
+
+ /**
+ * Gets the status of an existing unassign deployment resources job.
+ * Response Body Schema
+ *
+ *
+ * {@code
+ * {
+ * jobId: String (Required)
+ * createdDateTime: OffsetDateTime (Required)
+ * lastUpdatedDateTime: OffsetDateTime (Required)
+ * expirationDateTime: OffsetDateTime (Optional)
+ * status: String(notStarted/running/succeeded/failed/cancelled/cancelling/partiallyCompleted) (Required)
+ * warnings (Optional): [
+ * (Optional){
+ * code: String (Required)
+ * message: String (Required)
+ * }
+ * ]
+ * errors (Optional): [
+ * (Optional){
+ * code: String(InvalidRequest/InvalidArgument/Unauthorized/Forbidden/NotFound/ProjectNotFound/OperationNotFound/AzureCognitiveSearchNotFound/AzureCognitiveSearchIndexNotFound/TooManyRequests/AzureCognitiveSearchThrottling/AzureCognitiveSearchIndexLimitReached/InternalServerError/ServiceUnavailable/Timeout/QuotaExceeded/Conflict/Warning) (Required)
+ * message: String (Required)
+ * target: String (Optional)
+ * details (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * innererror (Optional): {
+ * code: String(InvalidRequest/InvalidParameterValue/KnowledgeBaseNotFound/AzureCognitiveSearchNotFound/AzureCognitiveSearchThrottling/ExtractionFailure/InvalidRequestBodyFormat/EmptyRequest/MissingInputDocuments/InvalidDocument/ModelVersionIncorrect/InvalidDocumentBatch/UnsupportedLanguageCode/InvalidCountryHint) (Required)
+ * message: String (Required)
+ * details (Optional): {
+ * String: String (Required)
+ * }
+ * target: String (Optional)
+ * innererror (Optional): (recursive schema, see innererror above)
+ * }
+ * }
+ * ]
+ * }
+ * }
+ *
+ *
+ * @param projectName The name of the project to use.
+ * @param jobId The job ID.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the status of an existing unassign deployment resources job along with {@link Response}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getUnassignDeploymentResourcesStatusWithResponse(String projectName, String jobId,
+ RequestOptions requestOptions) {
+ return this.serviceClient.getUnassignDeploymentResourcesStatusWithResponse(projectName, jobId, requestOptions);
+ }
+
+ /**
+ * Lists the non-expired training jobs created for a project.
+ * Query Parameters
+ *
+ * Query Parameters
+ * | Name | Type | Required | Description |
+ * | top | Integer | No | The number of result items to return. |
+ * | skip | Integer | No | The number of result items to skip. |
+ * | maxpagesize | Integer | No | The maximum number of result items per page. |
+ *
+ * You can add these to a request with {@link RequestOptions#addQueryParam}
+ * Response Body Schema
+ *
+ *
+ * {@code
+ * {
+ * jobId: String (Required)
+ * createdDateTime: OffsetDateTime (Required)
+ * lastUpdatedDateTime: OffsetDateTime (Required)
+ * expirationDateTime: OffsetDateTime (Optional)
+ * status: String(notStarted/running/succeeded/failed/cancelled/cancelling/partiallyCompleted) (Required)
+ * warnings (Optional): [
+ * (Optional){
+ * code: String (Required)
+ * message: String (Required)
+ * }
+ * ]
+ * errors (Optional): [
+ * (Optional){
+ * code: String(InvalidRequest/InvalidArgument/Unauthorized/Forbidden/NotFound/ProjectNotFound/OperationNotFound/AzureCognitiveSearchNotFound/AzureCognitiveSearchIndexNotFound/TooManyRequests/AzureCognitiveSearchThrottling/AzureCognitiveSearchIndexLimitReached/InternalServerError/ServiceUnavailable/Timeout/QuotaExceeded/Conflict/Warning) (Required)
+ * message: String (Required)
+ * target: String (Optional)
+ * details (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * innererror (Optional): {
+ * code: String(InvalidRequest/InvalidParameterValue/KnowledgeBaseNotFound/AzureCognitiveSearchNotFound/AzureCognitiveSearchThrottling/ExtractionFailure/InvalidRequestBodyFormat/EmptyRequest/MissingInputDocuments/InvalidDocument/ModelVersionIncorrect/InvalidDocumentBatch/UnsupportedLanguageCode/InvalidCountryHint) (Required)
+ * message: String (Required)
+ * details (Optional): {
+ * String: String (Required)
+ * }
+ * target: String (Optional)
+ * innererror (Optional): (recursive schema, see innererror above)
+ * }
+ * }
+ * ]
+ * result (Required): {
+ * modelLabel: String (Required)
+ * trainingConfigVersion: String (Required)
+ * trainingMode: String(advanced/standard) (Optional)
+ * trainingStatus (Required): {
+ * percentComplete: int (Required)
+ * startDateTime: OffsetDateTime (Optional)
+ * endDateTime: OffsetDateTime (Optional)
+ * status: String(notStarted/running/succeeded/failed/cancelled/cancelling/partiallyCompleted) (Required)
+ * }
+ * evaluationStatus (Optional): (recursive schema, see evaluationStatus above)
+ * estimatedEndDateTime: OffsetDateTime (Optional)
+ * }
+ * }
+ * }
+ *
+ *
+ * @param projectName The new project name.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return paged collection of AnalyzeConversationAuthoringTrainingJobState items as paginated response with
+ * {@link PagedIterable}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listTrainingJobs(String projectName, RequestOptions requestOptions) {
+ return this.serviceClient.listTrainingJobs(projectName, requestOptions);
+ }
+
+ /**
+ * Gets the status for a training job.
+ * Response Body Schema
+ *
+ *
+ * {@code
+ * {
+ * jobId: String (Required)
+ * createdDateTime: OffsetDateTime (Required)
+ * lastUpdatedDateTime: OffsetDateTime (Required)
+ * expirationDateTime: OffsetDateTime (Optional)
+ * status: String(notStarted/running/succeeded/failed/cancelled/cancelling/partiallyCompleted) (Required)
+ * warnings (Optional): [
+ * (Optional){
+ * code: String (Required)
+ * message: String (Required)
+ * }
+ * ]
+ * errors (Optional): [
+ * (Optional){
+ * code: String(InvalidRequest/InvalidArgument/Unauthorized/Forbidden/NotFound/ProjectNotFound/OperationNotFound/AzureCognitiveSearchNotFound/AzureCognitiveSearchIndexNotFound/TooManyRequests/AzureCognitiveSearchThrottling/AzureCognitiveSearchIndexLimitReached/InternalServerError/ServiceUnavailable/Timeout/QuotaExceeded/Conflict/Warning) (Required)
+ * message: String (Required)
+ * target: String (Optional)
+ * details (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * innererror (Optional): {
+ * code: String(InvalidRequest/InvalidParameterValue/KnowledgeBaseNotFound/AzureCognitiveSearchNotFound/AzureCognitiveSearchThrottling/ExtractionFailure/InvalidRequestBodyFormat/EmptyRequest/MissingInputDocuments/InvalidDocument/ModelVersionIncorrect/InvalidDocumentBatch/UnsupportedLanguageCode/InvalidCountryHint) (Required)
+ * message: String (Required)
+ * details (Optional): {
+ * String: String (Required)
+ * }
+ * target: String (Optional)
+ * innererror (Optional): (recursive schema, see innererror above)
+ * }
+ * }
+ * ]
+ * result (Required): {
+ * modelLabel: String (Required)
+ * trainingConfigVersion: String (Required)
+ * trainingMode: String(advanced/standard) (Optional)
+ * trainingStatus (Required): {
+ * percentComplete: int (Required)
+ * startDateTime: OffsetDateTime (Optional)
+ * endDateTime: OffsetDateTime (Optional)
+ * status: String(notStarted/running/succeeded/failed/cancelled/cancelling/partiallyCompleted) (Required)
+ * }
+ * evaluationStatus (Optional): (recursive schema, see evaluationStatus above)
+ * estimatedEndDateTime: OffsetDateTime (Optional)
+ * }
+ * }
+ * }
+ *
+ *
+ * @param projectName The new project name.
+ * @param jobId The job ID.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the status for a training job along with {@link Response}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getTrainingStatusWithResponse(String projectName, String jobId,
+ RequestOptions requestOptions) {
+ return this.serviceClient.getTrainingStatusWithResponse(projectName, jobId, requestOptions);
+ }
+
+ /**
+ * Triggers a cancellation for a running training job.
+ *
+ * @param projectName The name of the project to use.
+ * @param jobId The job ID.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller beginCancelTrainingJob(String projectName, String jobId,
+ RequestOptions requestOptions) {
+ return this.serviceClient.beginCancelTrainingJob(projectName, jobId, requestOptions);
+ }
+
+ /**
+ * Gets the status for a project deletion job.
+ * Response Body Schema
+ *
+ *
+ * {@code
+ * {
+ * jobId: String (Required)
+ * createdDateTime: OffsetDateTime (Required)
+ * lastUpdatedDateTime: OffsetDateTime (Required)
+ * expirationDateTime: OffsetDateTime (Optional)
+ * status: String(notStarted/running/succeeded/failed/cancelled/cancelling/partiallyCompleted) (Required)
+ * warnings (Optional): [
+ * (Optional){
+ * code: String (Required)
+ * message: String (Required)
+ * }
+ * ]
+ * errors (Optional): [
+ * (Optional){
+ * code: String(InvalidRequest/InvalidArgument/Unauthorized/Forbidden/NotFound/ProjectNotFound/OperationNotFound/AzureCognitiveSearchNotFound/AzureCognitiveSearchIndexNotFound/TooManyRequests/AzureCognitiveSearchThrottling/AzureCognitiveSearchIndexLimitReached/InternalServerError/ServiceUnavailable/Timeout/QuotaExceeded/Conflict/Warning) (Required)
+ * message: String (Required)
+ * target: String (Optional)
+ * details (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * innererror (Optional): {
+ * code: String(InvalidRequest/InvalidParameterValue/KnowledgeBaseNotFound/AzureCognitiveSearchNotFound/AzureCognitiveSearchThrottling/ExtractionFailure/InvalidRequestBodyFormat/EmptyRequest/MissingInputDocuments/InvalidDocument/ModelVersionIncorrect/InvalidDocumentBatch/UnsupportedLanguageCode/InvalidCountryHint) (Required)
+ * message: String (Required)
+ * details (Optional): {
+ * String: String (Required)
+ * }
+ * target: String (Optional)
+ * innererror (Optional): (recursive schema, see innererror above)
+ * }
+ * }
+ * ]
+ * }
+ * }
+ *
+ *
+ * @param jobId The job ID.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the status for a project deletion job along with {@link Response}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getProjectDeletionStatusWithResponse(String jobId, RequestOptions requestOptions) {
+ return this.serviceClient.getProjectDeletionStatusWithResponse(jobId, requestOptions);
+ }
+
+ /**
+ * 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.
+ * Query Parameters
+ *
+ * Query Parameters
+ * | Name | Type | Required | Description |
+ * | top | Integer | No | The maximum number of resources to return from the
+ * collection. |
+ * | skip | Integer | No | An offset into the collection of the first resource to be
+ * returned. |
+ * | maxpagesize | Integer | No | The maximum number of resources to include in a single
+ * response. |
+ *
+ * You can add these to a request with {@link RequestOptions#addQueryParam}
+ * Response Body Schema
+ *
+ *
+ * {@code
+ * {
+ * value (Required): [
+ * (Required){
+ * projectName: String (Required)
+ * deploymentsMetadata (Required): [
+ * (Required){
+ * deploymentName: String (Required)
+ * lastDeployedDateTime: OffsetDateTime (Required)
+ * deploymentExpirationDate: LocalDate (Required)
+ * }
+ * ]
+ * }
+ * ]
+ * nextLink: String (Optional)
+ * }
+ * }
+ *
+ *
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return represents the metadata for deployments assigned to a resource along with {@link Response}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response listAssignedResourceDeploymentsWithResponse(RequestOptions requestOptions) {
+ return this.serviceClient.listAssignedResourceDeploymentsWithResponse(requestOptions);
+ }
+
+ /**
+ * Lists the supported languages for the given project type.
+ * Query Parameters
+ *
+ * Query Parameters
+ * | Name | Type | Required | Description |
+ * | top | Integer | No | The maximum number of resources to return from the
+ * collection. |
+ * | skip | Integer | No | An offset into the collection of the first resource to be
+ * returned. |
+ * | maxpagesize | Integer | No | The maximum number of resources to include in a single
+ * response. |
+ *
+ * You can add these to a request with {@link RequestOptions#addQueryParam}
+ * Response Body Schema
+ *
+ *
+ * {@code
+ * {
+ * value (Required): [
+ * (Required){
+ * languageName: String (Required)
+ * languageCode: String (Required)
+ * }
+ * ]
+ * nextLink: String (Optional)
+ * }
+ * }
+ *
+ *
+ * @param projectKind The project kind. Allowed values: "Conversation", "Orchestration",
+ * "CustomConversationSummarization".
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return represents a list of retrieved languages along with {@link Response}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getSupportedLanguagesWithResponse(String projectKind, RequestOptions requestOptions) {
+ return this.serviceClient.getSupportedLanguagesWithResponse(projectKind, requestOptions);
+ }
+
+ /**
+ * Lists the supported prebuilt entities that can be used while creating composed entities.
+ * Query Parameters
+ *
+ * Query Parameters
+ * | Name | Type | Required | Description |
+ * | language | String | No | 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. |
+ * | multilingual | String | No | Whether to get the support prebuilt entities for
+ * multilingual or monolingual projects. If true, the language parameter is ignored. |
+ * | top | Integer | No | The maximum number of resources to return from the
+ * collection. |
+ * | skip | Integer | No | An offset into the collection of the first resource to be
+ * returned. |
+ * | maxpagesize | Integer | No | The maximum number of resources to include in a single
+ * response. |
+ *
+ * You can add these to a request with {@link RequestOptions#addQueryParam}
+ * Response Body Schema
+ *
+ *
+ * {@code
+ * {
+ * value (Required): [
+ * (Required){
+ * category: String (Required)
+ * description: String (Required)
+ * examples: String (Required)
+ * }
+ * ]
+ * nextLink: String (Optional)
+ * }
+ * }
+ *
+ *
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return represents a list of the retrieved supported prebuilt entities along with {@link Response}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getSupportedPrebuiltEntitiesWithResponse(RequestOptions requestOptions) {
+ return this.serviceClient.getSupportedPrebuiltEntitiesWithResponse(requestOptions);
+ }
+
+ /**
+ * Lists the support training config version for a given project type.
+ * Query Parameters
+ *
+ * Query Parameters
+ * | Name | Type | Required | Description |
+ * | top | Integer | No | The maximum number of resources to return from the
+ * collection. |
+ * | skip | Integer | No | An offset into the collection of the first resource to be
+ * returned. |
+ * | maxpagesize | Integer | No | The maximum number of resources to include in a single
+ * response. |
+ *
+ * You can add these to a request with {@link RequestOptions#addQueryParam}
+ * Response Body Schema
+ *
+ *
+ * {@code
+ * {
+ * value (Required): [
+ * (Required){
+ * trainingConfigVersion: String (Required)
+ * modelExpirationDate: LocalDate (Required)
+ * }
+ * ]
+ * nextLink: String (Optional)
+ * }
+ * }
+ *
+ *
+ * @param projectKind The project kind. Allowed values: "Conversation", "Orchestration",
+ * "CustomConversationSummarization".
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return represents a list of training config versions along with {@link Response}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response listTrainingConfigVersionsWithResponse(String projectKind,
+ RequestOptions requestOptions) {
+ return this.serviceClient.listTrainingConfigVersionsWithResponse(projectKind, requestOptions);
+ }
+
+ /**
+ * Gets the details of an exported model.
+ * Response Body Schema
+ *
+ *
+ * {@code
+ * {
+ * exportedModelName: String (Required)
+ * modelId: String (Required)
+ * lastTrainedDateTime: OffsetDateTime (Required)
+ * lastExportedModelDateTime: OffsetDateTime (Required)
+ * modelExpirationDate: LocalDate (Required)
+ * modelTrainingConfigVersion: String (Required)
+ * }
+ * }
+ *
+ *
+ * @param projectName The new project name.
+ * @param exportedModelName The exported model name.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the details of an exported model along with {@link Response}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getExportedModelWithResponse(String projectName, String exportedModelName,
+ RequestOptions requestOptions) {
+ return this.serviceClient.getExportedModelWithResponse(projectName, exportedModelName, requestOptions);
+ }
+
+ /**
+ * Lists the exported models belonging to a project.
+ * Query Parameters
+ *
+ * Query Parameters
+ * | Name | Type | Required | Description |
+ * | top | Integer | No | The number of result items to return. |
+ * | skip | Integer | No | The number of result items to skip. |
+ * | maxpagesize | Integer | No | The maximum number of result items per page. |
+ *
+ * You can add these to a request with {@link RequestOptions#addQueryParam}
+ * Response Body Schema
+ *
+ *
+ * {@code
+ * {
+ * exportedModelName: String (Required)
+ * modelId: String (Required)
+ * lastTrainedDateTime: OffsetDateTime (Required)
+ * lastExportedModelDateTime: OffsetDateTime (Required)
+ * modelExpirationDate: LocalDate (Required)
+ * modelTrainingConfigVersion: String (Required)
+ * }
+ * }
+ *
+ *
+ * @param projectName The new project name.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return paged collection of AnalyzeConversationAuthoringExportedTrainedModel items as paginated response with
+ * {@link PagedIterable}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listExportedModels(String projectName, RequestOptions requestOptions) {
+ return this.serviceClient.listExportedModels(projectName, requestOptions);
+ }
+
+ /**
+ * Deletes an existing exported model.
+ *
+ * @param projectName The name of the project to use.
+ * @param exportedModelName The exported model name.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller beginDeleteExportedModel(String projectName, String exportedModelName,
+ RequestOptions requestOptions) {
+ return this.serviceClient.beginDeleteExportedModel(projectName, exportedModelName, requestOptions);
+ }
+
+ /**
+ * Creates a new exported model or replaces an existing one.
+ * Request Body Schema
+ *
+ *
+ * {@code
+ * {
+ * trainedModelLabel: String (Required)
+ * }
+ * }
+ *
+ *
+ * @param projectName The name of the project to use.
+ * @param exportedModelName The exported model name.
+ * @param body The exported model info.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller beginCreateOrUpdateExportedModel(String projectName,
+ String exportedModelName, BinaryData body, RequestOptions requestOptions) {
+ return this.serviceClient.beginCreateOrUpdateExportedModel(projectName, exportedModelName, body,
+ requestOptions);
+ }
+
+ /**
+ * Gets the status for an existing job to create or update an exported model.
+ * Response Body Schema
+ *
+ *
+ * {@code
+ * {
+ * jobId: String (Required)
+ * createdDateTime: OffsetDateTime (Required)
+ * lastUpdatedDateTime: OffsetDateTime (Required)
+ * expirationDateTime: OffsetDateTime (Optional)
+ * status: String(notStarted/running/succeeded/failed/cancelled/cancelling/partiallyCompleted) (Required)
+ * warnings (Optional): [
+ * (Optional){
+ * code: String (Required)
+ * message: String (Required)
+ * }
+ * ]
+ * errors (Optional): [
+ * (Optional){
+ * code: String(InvalidRequest/InvalidArgument/Unauthorized/Forbidden/NotFound/ProjectNotFound/OperationNotFound/AzureCognitiveSearchNotFound/AzureCognitiveSearchIndexNotFound/TooManyRequests/AzureCognitiveSearchThrottling/AzureCognitiveSearchIndexLimitReached/InternalServerError/ServiceUnavailable/Timeout/QuotaExceeded/Conflict/Warning) (Required)
+ * message: String (Required)
+ * target: String (Optional)
+ * details (Optional): [
+ * (recursive schema, see above)
+ * ]
+ * innererror (Optional): {
+ * code: String(InvalidRequest/InvalidParameterValue/KnowledgeBaseNotFound/AzureCognitiveSearchNotFound/AzureCognitiveSearchThrottling/ExtractionFailure/InvalidRequestBodyFormat/EmptyRequest/MissingInputDocuments/InvalidDocument/ModelVersionIncorrect/InvalidDocumentBatch/UnsupportedLanguageCode/InvalidCountryHint) (Required)
+ * message: String (Required)
+ * details (Optional): {
+ * String: String (Required)
+ * }
+ * target: String (Optional)
+ * innererror (Optional): (recursive schema, see innererror above)
+ * }
+ * }
+ * ]
+ * }
+ * }
+ *
+ *
+ * @param projectName The new project name.
+ * @param exportedModelName The exported model name.
+ * @param jobId The job ID.
+ * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @return the status for an existing job to create or update an exported model along with {@link Response}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getExportedModelJobStatusWithResponse(String projectName, String exportedModelName,
+ String jobId, RequestOptions requestOptions) {
+ return this.serviceClient.getExportedModelJobStatusWithResponse(projectName, exportedModelName, jobId,
+ requestOptions);
+ }
+
+ /**
+ * Lists the existing projects.
+ *
+ * @param top The number of result items to return.
+ * @param skip The number of result items to skip.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return paged collection of AnalyzeConversationAuthoringProjectMetadata items as paginated response with
+ * {@link PagedIterable}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listProjects(Integer top, Integer skip) {
+ // Generated convenience method for listProjects
+ RequestOptions requestOptions = new RequestOptions();
+ if (top != null) {
+ requestOptions.addQueryParam("top", String.valueOf(top), false);
+ }
+ if (skip != null) {
+ requestOptions.addQueryParam("skip", String.valueOf(skip), false);
+ }
+ return serviceClient.listProjects(requestOptions)
+ .mapPage(bodyItemValue -> bodyItemValue.toObject(AnalyzeConversationAuthoringProjectMetadata.class));
+ }
+
+ /**
+ * Lists the existing projects.
+ *
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return paged collection of AnalyzeConversationAuthoringProjectMetadata items as paginated response with
+ * {@link PagedIterable}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listProjects() {
+ // Generated convenience method for listProjects
+ RequestOptions requestOptions = new RequestOptions();
+ return serviceClient.listProjects(requestOptions)
+ .mapPage(bodyItemValue -> bodyItemValue.toObject(AnalyzeConversationAuthoringProjectMetadata.class));
+ }
+
+ /**
+ * Gets the details of a project.
+ *
+ * @param projectName The new project name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the details of a project.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public AnalyzeConversationAuthoringProjectMetadata getProject(String projectName) {
+ // Generated convenience method for getProjectWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return getProjectWithResponse(projectName, requestOptions).getValue()
+ .toObject(AnalyzeConversationAuthoringProjectMetadata.class);
+ }
+
+ /**
+ * Creates a new project or updates an existing one.
+ *
+ * @param projectName The new project name.
+ * @param body The request body.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents the metadata of a project.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public AnalyzeConversationAuthoringProjectMetadata createProject(String projectName,
+ AnalyzeConversationAuthoringCreateProjectOptions body) {
+ // Generated convenience method for createProjectWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ JsonMergePatchHelper.getAnalyzeConversationAuthoringCreateProjectOptionsAccessor()
+ .prepareModelForJsonMergePatch(body, true);
+ BinaryData bodyInBinaryData = BinaryData.fromObject(body);
+ // BinaryData.fromObject() will not fire serialization, use getLength() to fire serialization.
+ bodyInBinaryData.getLength();
+ JsonMergePatchHelper.getAnalyzeConversationAuthoringCreateProjectOptionsAccessor()
+ .prepareModelForJsonMergePatch(body, false);
+ return createProjectWithResponse(projectName, bodyInBinaryData, requestOptions).getValue()
+ .toObject(AnalyzeConversationAuthoringProjectMetadata.class);
+ }
+
+ /**
+ * Deletes a project.
+ *
+ * @param projectName The name of the project to use.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller
+ beginDeleteProject(String projectName) {
+ // Generated convenience method for beginDeleteProjectWithModel
+ RequestOptions requestOptions = new RequestOptions();
+ return serviceClient.beginDeleteProjectWithModel(projectName, requestOptions);
+ }
+
+ /**
+ * Generates a copy project operation authorization to the current target Azure resource.
+ *
+ * @param projectName The new project name.
+ * @param projectKind Represents the project kind.
+ * @param storageInputContainerName The name of the storage container.
+ * @param allowOverwrite Whether to allow an existing project to be overwritten using the resulting copy
+ * authorization.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents the options for copying an existing project to another Azure resource.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public AnalyzeConversationAuthoringCopyProjectOptions copyProjectAuthorization(String projectName,
+ ProjectKind projectKind, String storageInputContainerName, Boolean allowOverwrite) {
+ // Generated convenience method for copyProjectAuthorizationWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ CopyProjectAuthorizationRequest copyProjectAuthorizationRequestObj
+ = new CopyProjectAuthorizationRequest(projectKind).setStorageInputContainerName(storageInputContainerName)
+ .setAllowOverwrite(allowOverwrite);
+ BinaryData copyProjectAuthorizationRequest = BinaryData.fromObject(copyProjectAuthorizationRequestObj);
+ return copyProjectAuthorizationWithResponse(projectName, copyProjectAuthorizationRequest, requestOptions)
+ .getValue()
+ .toObject(AnalyzeConversationAuthoringCopyProjectOptions.class);
+ }
+
+ /**
+ * Generates a copy project operation authorization to the current target Azure resource.
+ *
+ * @param projectName The new project name.
+ * @param projectKind Represents the project kind.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents the options for copying an existing project to another Azure resource.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public AnalyzeConversationAuthoringCopyProjectOptions copyProjectAuthorization(String projectName,
+ ProjectKind projectKind) {
+ // Generated convenience method for copyProjectAuthorizationWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ CopyProjectAuthorizationRequest copyProjectAuthorizationRequestObj
+ = new CopyProjectAuthorizationRequest(projectKind);
+ BinaryData copyProjectAuthorizationRequest = BinaryData.fromObject(copyProjectAuthorizationRequestObj);
+ return copyProjectAuthorizationWithResponse(projectName, copyProjectAuthorizationRequest, requestOptions)
+ .getValue()
+ .toObject(AnalyzeConversationAuthoringCopyProjectOptions.class);
+ }
+
+ /**
+ * Copies an existing project to another Azure resource.
+ *
+ * @param projectName The name of the project to use.
+ * @param body The copy project info.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller beginCopyProject(String projectName,
+ AnalyzeConversationAuthoringCopyProjectOptions body) {
+ // Generated convenience method for beginCopyProjectWithModel
+ RequestOptions requestOptions = new RequestOptions();
+ return serviceClient.beginCopyProjectWithModel(projectName, BinaryData.fromObject(body), requestOptions);
+ }
+
+ /**
+ * Triggers a job to export a project's data.
+ *
+ * @param projectName The name of the project to use.
+ * @param stringIndexType Specifies the method used to interpret string offsets. For additional information see
+ * https://aka.ms/text-analytics-offsets.
+ * @param exportedProjectFormat The format of the exported project file to use.
+ * @param assetKind Kind of asset to export.
+ * @param trainedModelLabel Trained model label to export. If the trainedModelLabel is null, the default behavior is
+ * to export the current working copy.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller beginExport(String projectName,
+ StringIndexType stringIndexType, ExportedProjectFormat exportedProjectFormat, String assetKind,
+ String trainedModelLabel) {
+ // Generated convenience method for beginExportWithModel
+ RequestOptions requestOptions = new RequestOptions();
+ if (exportedProjectFormat != null) {
+ requestOptions.addQueryParam("format", exportedProjectFormat.toString(), false);
+ }
+ if (assetKind != null) {
+ requestOptions.addQueryParam("assetKind", assetKind, false);
+ }
+ if (trainedModelLabel != null) {
+ requestOptions.addQueryParam("trainedModelLabel", trainedModelLabel, false);
+ }
+ return serviceClient.beginExportWithModel(projectName, stringIndexType.toString(), requestOptions);
+ }
+
+ /**
+ * Triggers a job to export a project's data.
+ *
+ * @param projectName The name of the project to use.
+ * @param stringIndexType Specifies the method used to interpret string offsets. For additional information see
+ * https://aka.ms/text-analytics-offsets.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller beginExport(String projectName,
+ StringIndexType stringIndexType) {
+ // Generated convenience method for beginExportWithModel
+ RequestOptions requestOptions = new RequestOptions();
+ return serviceClient.beginExportWithModel(projectName, stringIndexType.toString(), requestOptions);
+ }
+
+ /**
+ * Triggers a job to import a project. If a project with the same name already exists, the data of that project is
+ * replaced.
+ *
+ * @param projectName The name of the project to use.
+ * @param body The project data to import.
+ * @param exportedProjectFormat The format of the exported project file to use.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller beginImportMethod(String projectName,
+ AnalyzeConversationAuthoringExportedProject body, ExportedProjectFormat exportedProjectFormat) {
+ // Generated convenience method for beginImportMethodWithModel
+ RequestOptions requestOptions = new RequestOptions();
+ if (exportedProjectFormat != null) {
+ requestOptions.addQueryParam("format", exportedProjectFormat.toString(), false);
+ }
+ return serviceClient.beginImportMethodWithModel(projectName, BinaryData.fromObject(body), requestOptions);
+ }
+
+ /**
+ * Triggers a job to import a project. If a project with the same name already exists, the data of that project is
+ * replaced.
+ *
+ * @param projectName The name of the project to use.
+ * @param body The project data to import.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller beginImportMethod(String projectName,
+ AnalyzeConversationAuthoringExportedProject body) {
+ // Generated convenience method for beginImportMethodWithModel
+ RequestOptions requestOptions = new RequestOptions();
+ return serviceClient.beginImportMethodWithModel(projectName, BinaryData.fromObject(body), requestOptions);
+ }
+
+ /**
+ * Triggers a training job for a project.
+ *
+ * @param projectName The name of the project to use.
+ * @param body The training input parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller
+ beginTrain(String projectName, AnalyzeConversationAuthoringTrainingJobOptions body) {
+ // Generated convenience method for beginTrainWithModel
+ RequestOptions requestOptions = new RequestOptions();
+ return serviceClient.beginTrainWithModel(projectName, BinaryData.fromObject(body), requestOptions);
+ }
+
+ /**
+ * Gets the status of an existing copy project job.
+ *
+ * @param projectName The new project name.
+ * @param jobId The job ID.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the status of an existing copy project job.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public AnalyzeConversationAuthoringCopyProjectJobState getCopyProjectStatus(String projectName, String jobId) {
+ // Generated convenience method for getCopyProjectStatusWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return getCopyProjectStatusWithResponse(projectName, jobId, requestOptions).getValue()
+ .toObject(AnalyzeConversationAuthoringCopyProjectJobState.class);
+ }
+
+ /**
+ * Lists the deployments belonging to a project.
+ *
+ * @param projectName The new project name.
+ * @param top The number of result items to return.
+ * @param skip The number of result items to skip.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return paged collection of AnalyzeConversationAuthoringProjectDeployment items as paginated response with
+ * {@link PagedIterable}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listDeployments(String projectName, Integer top,
+ Integer skip) {
+ // Generated convenience method for listDeployments
+ RequestOptions requestOptions = new RequestOptions();
+ if (top != null) {
+ requestOptions.addQueryParam("top", String.valueOf(top), false);
+ }
+ if (skip != null) {
+ requestOptions.addQueryParam("skip", String.valueOf(skip), false);
+ }
+ return serviceClient.listDeployments(projectName, requestOptions)
+ .mapPage(bodyItemValue -> bodyItemValue.toObject(AnalyzeConversationAuthoringProjectDeployment.class));
+ }
+
+ /**
+ * Lists the deployments belonging to a project.
+ *
+ * @param projectName The new project name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return paged collection of AnalyzeConversationAuthoringProjectDeployment items as paginated response with
+ * {@link PagedIterable}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listDeployments(String projectName) {
+ // Generated convenience method for listDeployments
+ RequestOptions requestOptions = new RequestOptions();
+ return serviceClient.listDeployments(projectName, requestOptions)
+ .mapPage(bodyItemValue -> bodyItemValue.toObject(AnalyzeConversationAuthoringProjectDeployment.class));
+ }
+
+ /**
+ * Swaps two existing deployments with each other.
+ *
+ * @param projectName The name of the project to use.
+ * @param body The job object to swap two deployments.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller
+ beginSwapDeployments(String projectName, AnalyzeConversationAuthoringSwapDeploymentsOptions body) {
+ // Generated convenience method for beginSwapDeploymentsWithModel
+ RequestOptions requestOptions = new RequestOptions();
+ return serviceClient.beginSwapDeploymentsWithModel(projectName, BinaryData.fromObject(body), requestOptions);
+ }
+
+ /**
+ * Gets the details of a deployment.
+ *
+ * @param projectName The new project name.
+ * @param deploymentName Represents deployment name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the details of a deployment.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public AnalyzeConversationAuthoringProjectDeployment getDeployment(String projectName, String deploymentName) {
+ // Generated convenience method for getDeploymentWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return getDeploymentWithResponse(projectName, deploymentName, requestOptions).getValue()
+ .toObject(AnalyzeConversationAuthoringProjectDeployment.class);
+ }
+
+ /**
+ * Creates a new deployment or replaces an existing one.
+ *
+ * @param projectName The name of the project to use.
+ * @param deploymentName The name of the specific deployment of the project to use.
+ * @param body The new deployment info.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller beginDeployProject(String projectName,
+ String deploymentName, AnalyzeConversationAuthoringCreateDeploymentOptions body) {
+ // Generated convenience method for beginDeployProjectWithModel
+ RequestOptions requestOptions = new RequestOptions();
+ return serviceClient.beginDeployProjectWithModel(projectName, deploymentName, BinaryData.fromObject(body),
+ requestOptions);
+ }
+
+ /**
+ * Deletes a project deployment.
+ *
+ * @param projectName The name of the project to use.
+ * @param deploymentName The name of the specific deployment of the project to use.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller beginDeleteDeployment(String projectName,
+ String deploymentName) {
+ // Generated convenience method for beginDeleteDeploymentWithModel
+ RequestOptions requestOptions = new RequestOptions();
+ return serviceClient.beginDeleteDeploymentWithModel(projectName, deploymentName, requestOptions);
+ }
+
+ /**
+ * Deletes a project deployment from the specified assigned resources.
+ *
+ * @param projectName The name of the project to use.
+ * @param deploymentName The name of the specific deployment of the project to use.
+ * @param body The options for deleting the deployment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller
+ beginDeleteDeploymentFromResources(String projectName, String deploymentName,
+ AnalyzeConversationAuthoringDeleteDeploymentOptions body) {
+ // Generated convenience method for beginDeleteDeploymentFromResourcesWithModel
+ RequestOptions requestOptions = new RequestOptions();
+ return serviceClient.beginDeleteDeploymentFromResourcesWithModel(projectName, deploymentName,
+ BinaryData.fromObject(body), requestOptions);
+ }
+
+ /**
+ * Gets the status of an existing delete deployment from specific resources job.
+ *
+ * @param projectName The new project name.
+ * @param deploymentName Represents deployment name.
+ * @param jobId The job ID.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the status of an existing delete deployment from specific resources job.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public AnalyzeConversationAuthoringDeploymentDeleteFromResourcesJobState
+ getDeploymentDeleteFromResourcesStatus(String projectName, String deploymentName, String jobId) {
+ // Generated convenience method for getDeploymentDeleteFromResourcesStatusWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return getDeploymentDeleteFromResourcesStatusWithResponse(projectName, deploymentName, jobId, requestOptions)
+ .getValue()
+ .toObject(AnalyzeConversationAuthoringDeploymentDeleteFromResourcesJobState.class);
+ }
+
+ /**
+ * Gets the status of an existing deployment job.
+ *
+ * @param projectName The new project name.
+ * @param deploymentName Represents deployment name.
+ * @param jobId The job ID.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the status of an existing deployment job.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public AnalyzeConversationAuthoringDeploymentJobState getDeploymentStatus(String projectName, String deploymentName,
+ String jobId) {
+ // Generated convenience method for getDeploymentStatusWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return getDeploymentStatusWithResponse(projectName, deploymentName, jobId, requestOptions).getValue()
+ .toObject(AnalyzeConversationAuthoringDeploymentJobState.class);
+ }
+
+ /**
+ * Gets the status of an existing swap deployment job.
+ *
+ * @param projectName The new project name.
+ * @param jobId The job ID.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the status of an existing swap deployment job.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public AnalyzeConversationAuthoringSwapDeploymentsJobState getSwapDeploymentsStatus(String projectName,
+ String jobId) {
+ // Generated convenience method for getSwapDeploymentsStatusWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return getSwapDeploymentsStatusWithResponse(projectName, jobId, requestOptions).getValue()
+ .toObject(AnalyzeConversationAuthoringSwapDeploymentsJobState.class);
+ }
+
+ /**
+ * Gets the status of an export job. Once job completes, returns the project metadata, and assets.
+ *
+ * @param projectName The new project name.
+ * @param jobId The job ID.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the status of an export job.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public AnalyzeConversationAuthoringExportProjectJobState getExportStatus(String projectName, String jobId) {
+ // Generated convenience method for getExportStatusWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return getExportStatusWithResponse(projectName, jobId, requestOptions).getValue()
+ .toObject(AnalyzeConversationAuthoringExportProjectJobState.class);
+ }
+
+ /**
+ * Gets the status for an import.
+ *
+ * @param projectName The new project name.
+ * @param jobId The job ID.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the status for an import.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public AnalyzeConversationAuthoringImportProjectJobState getImportStatus(String projectName, String jobId) {
+ // Generated convenience method for getImportStatusWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return getImportStatusWithResponse(projectName, jobId, requestOptions).getValue()
+ .toObject(AnalyzeConversationAuthoringImportProjectJobState.class);
+ }
+
+ /**
+ * Lists the trained models belonging to a project.
+ *
+ * @param projectName The new project name.
+ * @param top The number of result items to return.
+ * @param skip The number of result items to skip.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return paged collection of AnalyzeConversationAuthoringProjectTrainedModel items as paginated response with
+ * {@link PagedIterable}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listTrainedModels(String projectName,
+ Integer top, Integer skip) {
+ // Generated convenience method for listTrainedModels
+ RequestOptions requestOptions = new RequestOptions();
+ if (top != null) {
+ requestOptions.addQueryParam("top", String.valueOf(top), false);
+ }
+ if (skip != null) {
+ requestOptions.addQueryParam("skip", String.valueOf(skip), false);
+ }
+ return serviceClient.listTrainedModels(projectName, requestOptions)
+ .mapPage(bodyItemValue -> bodyItemValue.toObject(AnalyzeConversationAuthoringProjectTrainedModel.class));
+ }
+
+ /**
+ * Lists the trained models belonging to a project.
+ *
+ * @param projectName The new project name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return paged collection of AnalyzeConversationAuthoringProjectTrainedModel items as paginated response with
+ * {@link PagedIterable}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listTrainedModels(String projectName) {
+ // Generated convenience method for listTrainedModels
+ RequestOptions requestOptions = new RequestOptions();
+ return serviceClient.listTrainedModels(projectName, requestOptions)
+ .mapPage(bodyItemValue -> bodyItemValue.toObject(AnalyzeConversationAuthoringProjectTrainedModel.class));
+ }
+
+ /**
+ * Gets the details of a trained model.
+ *
+ * @param projectName The new project name.
+ * @param trainedModelLabel The trained model label.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the details of a trained model.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public AnalyzeConversationAuthoringProjectTrainedModel getTrainedModel(String projectName,
+ String trainedModelLabel) {
+ // Generated convenience method for getTrainedModelWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return getTrainedModelWithResponse(projectName, trainedModelLabel, requestOptions).getValue()
+ .toObject(AnalyzeConversationAuthoringProjectTrainedModel.class);
+ }
+
+ /**
+ * Deletes an existing trained model.
+ *
+ * @param projectName The new project name.
+ * @param trainedModelLabel The trained model label.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void deleteTrainedModel(String projectName, String trainedModelLabel) {
+ // Generated convenience method for deleteTrainedModelWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ deleteTrainedModelWithResponse(projectName, trainedModelLabel, requestOptions).getValue();
+ }
+
+ /**
+ * Triggers evaluation operation on a trained model.
+ *
+ * @param projectName The name of the project to use.
+ * @param trainedModelLabel The trained model label.
+ * @param body The training input parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller
+ beginEvaluateModel(String projectName, String trainedModelLabel,
+ AnalyzeConversationAuthoringEvaluationOptions body) {
+ // Generated convenience method for beginEvaluateModelWithModel
+ RequestOptions requestOptions = new RequestOptions();
+ return serviceClient.beginEvaluateModelWithModel(projectName, trainedModelLabel, BinaryData.fromObject(body),
+ requestOptions);
+ }
+
+ /**
+ * Restores the snapshot of this trained model to be the current working directory of the project.
+ *
+ * @param projectName The name of the project to use.
+ * @param trainedModelLabel The trained model label.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller beginLoadSnapshot(String projectName,
+ String trainedModelLabel) {
+ // Generated convenience method for beginLoadSnapshotWithModel
+ RequestOptions requestOptions = new RequestOptions();
+ return serviceClient.beginLoadSnapshotWithModel(projectName, trainedModelLabel, requestOptions);
+ }
+
+ /**
+ * Gets the status for an evaluation job.
+ *
+ * @param projectName The new project name.
+ * @param trainedModelLabel The trained model label.
+ * @param jobId The job ID.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the status for an evaluation job.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public AnalyzeConversationAuthoringEvaluationJobState getEvaluationStatus(String projectName,
+ String trainedModelLabel, String jobId) {
+ // Generated convenience method for getEvaluationStatusWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return getEvaluationStatusWithResponse(projectName, trainedModelLabel, jobId, requestOptions).getValue()
+ .toObject(AnalyzeConversationAuthoringEvaluationJobState.class);
+ }
+
+ /**
+ * 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.
+ *
+ * @param projectName The new project name.
+ * @param trainedModelLabel The trained model label.
+ * @param stringIndexType Specifies the method used to interpret string offsets. For additional information see
+ * https://aka.ms/text-analytics-offsets.
+ * @param top The number of result items to return.
+ * @param skip The number of result items to skip.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the detailed results of the evaluation for a trained model as paginated response with
+ * {@link PagedIterable}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable getModelEvaluationResults(
+ String projectName, String trainedModelLabel, StringIndexType stringIndexType, Integer top, Integer skip) {
+ // Generated convenience method for getModelEvaluationResults
+ RequestOptions requestOptions = new RequestOptions();
+ if (top != null) {
+ requestOptions.addQueryParam("top", String.valueOf(top), false);
+ }
+ if (skip != null) {
+ requestOptions.addQueryParam("skip", String.valueOf(skip), false);
+ }
+ return serviceClient
+ .getModelEvaluationResults(projectName, trainedModelLabel, stringIndexType.toString(), requestOptions)
+ .mapPage(
+ bodyItemValue -> bodyItemValue.toObject(AnalyzeConversationAuthoringUtteranceEvaluationResult.class));
+ }
+
+ /**
+ * 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.
+ *
+ * @param projectName The new project name.
+ * @param trainedModelLabel The trained model label.
+ * @param stringIndexType Specifies the method used to interpret string offsets. For additional information see
+ * https://aka.ms/text-analytics-offsets.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the detailed results of the evaluation for a trained model as paginated response with
+ * {@link PagedIterable}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable
+ getModelEvaluationResults(String projectName, String trainedModelLabel, StringIndexType stringIndexType) {
+ // Generated convenience method for getModelEvaluationResults
+ RequestOptions requestOptions = new RequestOptions();
+ return serviceClient
+ .getModelEvaluationResults(projectName, trainedModelLabel, stringIndexType.toString(), requestOptions)
+ .mapPage(
+ bodyItemValue -> bodyItemValue.toObject(AnalyzeConversationAuthoringUtteranceEvaluationResult.class));
+ }
+
+ /**
+ * Gets the evaluation summary of a trained model. The summary includes high level performance measurements of the
+ * model e.g., F1, Precision, Recall, etc.
+ *
+ * @param projectName The name of the project to use.
+ * @param trainedModelLabel The trained model label.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the evaluation summary of a trained model.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public AnalyzeConversationAuthoringEvaluationSummary getModelEvaluationSummary(String projectName,
+ String trainedModelLabel) {
+ // Generated convenience method for getModelEvaluationSummaryWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return getModelEvaluationSummaryWithResponse(projectName, trainedModelLabel, requestOptions).getValue()
+ .toObject(AnalyzeConversationAuthoringEvaluationSummary.class);
+ }
+
+ /**
+ * Gets the status for loading a snapshot.
+ *
+ * @param projectName The new project name.
+ * @param trainedModelLabel The trained model label.
+ * @param jobId The job ID.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the status for loading a snapshot.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public AnalyzeConversationAuthoringLoadSnapshotJobState getLoadSnapshotStatus(String projectName,
+ String trainedModelLabel, String jobId) {
+ // Generated convenience method for getLoadSnapshotStatusWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return getLoadSnapshotStatusWithResponse(projectName, trainedModelLabel, jobId, requestOptions).getValue()
+ .toObject(AnalyzeConversationAuthoringLoadSnapshotJobState.class);
+ }
+
+ /**
+ * Lists the deployments resources assigned to the project.
+ *
+ * @param projectName The new project name.
+ * @param top The number of result items to return.
+ * @param skip The number of result items to skip.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return paged collection of AnalyzeConversationAuthoringAssignedDeploymentResource items as paginated response
+ * with {@link PagedIterable}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable
+ listDeploymentResources(String projectName, Integer top, Integer skip) {
+ // Generated convenience method for listDeploymentResources
+ RequestOptions requestOptions = new RequestOptions();
+ if (top != null) {
+ requestOptions.addQueryParam("top", String.valueOf(top), false);
+ }
+ if (skip != null) {
+ requestOptions.addQueryParam("skip", String.valueOf(skip), false);
+ }
+ return serviceClient.listDeploymentResources(projectName, requestOptions)
+ .mapPage(
+ bodyItemValue -> bodyItemValue.toObject(AnalyzeConversationAuthoringAssignedDeploymentResource.class));
+ }
+
+ /**
+ * Lists the deployments resources assigned to the project.
+ *
+ * @param projectName The new project name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return paged collection of AnalyzeConversationAuthoringAssignedDeploymentResource items as paginated response
+ * with {@link PagedIterable}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable
+ listDeploymentResources(String projectName) {
+ // Generated convenience method for listDeploymentResources
+ RequestOptions requestOptions = new RequestOptions();
+ return serviceClient.listDeploymentResources(projectName, requestOptions)
+ .mapPage(
+ bodyItemValue -> bodyItemValue.toObject(AnalyzeConversationAuthoringAssignedDeploymentResource.class));
+ }
+
+ /**
+ * 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.
+ *
+ * @param projectName The name of the project to use.
+ * @param body The new project resources info.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller beginAssignDeploymentResources(
+ String projectName, AnalyzeConversationAuthoringAssignDeploymentResourcesOptions body) {
+ // Generated convenience method for beginAssignDeploymentResourcesWithModel
+ RequestOptions requestOptions = new RequestOptions();
+ return serviceClient.beginAssignDeploymentResourcesWithModel(projectName, BinaryData.fromObject(body),
+ requestOptions);
+ }
+
+ /**
+ * Unassign resources from a project. This disallows deploying new deployments to these resources, and deletes
+ * existing deployments assigned to them.
+ *
+ * @param projectName The name of the project to use.
+ * @param body The info for the deployment resources to be deleted.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller beginUnassignDeploymentResources(
+ String projectName, AnalyzeConversationAuthoringUnassignDeploymentResourcesOptions body) {
+ // Generated convenience method for beginUnassignDeploymentResourcesWithModel
+ RequestOptions requestOptions = new RequestOptions();
+ return serviceClient.beginUnassignDeploymentResourcesWithModel(projectName, BinaryData.fromObject(body),
+ requestOptions);
+ }
+
+ /**
+ * Gets the status of an existing assign deployment resources job.
+ *
+ * @param projectName The new project name.
+ * @param jobId The job ID.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the status of an existing assign deployment resources job.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public AnalyzeConversationAuthoringDeploymentResourcesJobState
+ getAssignDeploymentResourcesStatus(String projectName, String jobId) {
+ // Generated convenience method for getAssignDeploymentResourcesStatusWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return getAssignDeploymentResourcesStatusWithResponse(projectName, jobId, requestOptions).getValue()
+ .toObject(AnalyzeConversationAuthoringDeploymentResourcesJobState.class);
+ }
+
+ /**
+ * Gets the status of an existing unassign deployment resources job.
+ *
+ * @param projectName The name of the project to use.
+ * @param jobId The job ID.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the status of an existing unassign deployment resources job.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public AnalyzeConversationAuthoringDeploymentResourcesJobState
+ getUnassignDeploymentResourcesStatus(String projectName, String jobId) {
+ // Generated convenience method for getUnassignDeploymentResourcesStatusWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return getUnassignDeploymentResourcesStatusWithResponse(projectName, jobId, requestOptions).getValue()
+ .toObject(AnalyzeConversationAuthoringDeploymentResourcesJobState.class);
+ }
+
+ /**
+ * Lists the non-expired training jobs created for a project.
+ *
+ * @param projectName The new project name.
+ * @param top The number of result items to return.
+ * @param skip The number of result items to skip.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return paged collection of AnalyzeConversationAuthoringTrainingJobState items as paginated response with
+ * {@link PagedIterable}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listTrainingJobs(String projectName, Integer top,
+ Integer skip) {
+ // Generated convenience method for listTrainingJobs
+ RequestOptions requestOptions = new RequestOptions();
+ if (top != null) {
+ requestOptions.addQueryParam("top", String.valueOf(top), false);
+ }
+ if (skip != null) {
+ requestOptions.addQueryParam("skip", String.valueOf(skip), false);
+ }
+ return serviceClient.listTrainingJobs(projectName, requestOptions)
+ .mapPage(bodyItemValue -> bodyItemValue.toObject(AnalyzeConversationAuthoringTrainingJobState.class));
+ }
+
+ /**
+ * Lists the non-expired training jobs created for a project.
+ *
+ * @param projectName The new project name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return paged collection of AnalyzeConversationAuthoringTrainingJobState items as paginated response with
+ * {@link PagedIterable}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listTrainingJobs(String projectName) {
+ // Generated convenience method for listTrainingJobs
+ RequestOptions requestOptions = new RequestOptions();
+ return serviceClient.listTrainingJobs(projectName, requestOptions)
+ .mapPage(bodyItemValue -> bodyItemValue.toObject(AnalyzeConversationAuthoringTrainingJobState.class));
+ }
+
+ /**
+ * Gets the status for a training job.
+ *
+ * @param projectName The new project name.
+ * @param jobId The job ID.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the status for a training job.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public AnalyzeConversationAuthoringTrainingJobState getTrainingStatus(String projectName, String jobId) {
+ // Generated convenience method for getTrainingStatusWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return getTrainingStatusWithResponse(projectName, jobId, requestOptions).getValue()
+ .toObject(AnalyzeConversationAuthoringTrainingJobState.class);
+ }
+
+ /**
+ * Triggers a cancellation for a running training job.
+ *
+ * @param projectName The name of the project to use.
+ * @param jobId The job ID.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller
+ beginCancelTrainingJob(String projectName, String jobId) {
+ // Generated convenience method for beginCancelTrainingJobWithModel
+ RequestOptions requestOptions = new RequestOptions();
+ return serviceClient.beginCancelTrainingJobWithModel(projectName, jobId, requestOptions);
+ }
+
+ /**
+ * Gets the status for a project deletion job.
+ *
+ * @param jobId The job ID.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the status for a project deletion job.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public AnalyzeConversationAuthoringProjectDeletionJobState getProjectDeletionStatus(String jobId) {
+ // Generated convenience method for getProjectDeletionStatusWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return getProjectDeletionStatusWithResponse(jobId, requestOptions).getValue()
+ .toObject(AnalyzeConversationAuthoringProjectDeletionJobState.class);
+ }
+
+ /**
+ * 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.
+ *
+ * @param top The maximum number of resources to return from the collection.
+ * @param skip An offset into the collection of the first resource to be returned.
+ * @param maxPageSize The maximum number of resources to include in a single response.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents the metadata for deployments assigned to a resource.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public AnalyzeConversationAuthoringAssignedResourceDeploymentsMetadata listAssignedResourceDeployments(Integer top,
+ Integer skip, Integer maxPageSize) {
+ // Generated convenience method for listAssignedResourceDeploymentsWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ if (top != null) {
+ requestOptions.addQueryParam("top", String.valueOf(top), false);
+ }
+ if (skip != null) {
+ requestOptions.addQueryParam("skip", String.valueOf(skip), false);
+ }
+ if (maxPageSize != null) {
+ requestOptions.addQueryParam("maxpagesize", String.valueOf(maxPageSize), false);
+ }
+ return listAssignedResourceDeploymentsWithResponse(requestOptions).getValue()
+ .toObject(AnalyzeConversationAuthoringAssignedResourceDeploymentsMetadata.class);
+ }
+
+ /**
+ * 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.
+ *
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents the metadata for deployments assigned to a resource.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public AnalyzeConversationAuthoringAssignedResourceDeploymentsMetadata listAssignedResourceDeployments() {
+ // Generated convenience method for listAssignedResourceDeploymentsWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return listAssignedResourceDeploymentsWithResponse(requestOptions).getValue()
+ .toObject(AnalyzeConversationAuthoringAssignedResourceDeploymentsMetadata.class);
+ }
+
+ /**
+ * Lists the supported languages for the given project type.
+ *
+ * @param projectKind The project kind.
+ * @param top The maximum number of resources to return from the collection.
+ * @param skip An offset into the collection of the first resource to be returned.
+ * @param maxPageSize The maximum number of resources to include in a single response.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents a list of retrieved languages.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public AnalyzeConversationAuthoringSupportedLanguages getSupportedLanguages(ProjectKind projectKind, Integer top,
+ Integer skip, Integer maxPageSize) {
+ // Generated convenience method for getSupportedLanguagesWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ if (top != null) {
+ requestOptions.addQueryParam("top", String.valueOf(top), false);
+ }
+ if (skip != null) {
+ requestOptions.addQueryParam("skip", String.valueOf(skip), false);
+ }
+ if (maxPageSize != null) {
+ requestOptions.addQueryParam("maxpagesize", String.valueOf(maxPageSize), false);
+ }
+ return getSupportedLanguagesWithResponse(projectKind.toString(), requestOptions).getValue()
+ .toObject(AnalyzeConversationAuthoringSupportedLanguages.class);
+ }
+
+ /**
+ * Lists the supported languages for the given project type.
+ *
+ * @param projectKind The project kind.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents a list of retrieved languages.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public AnalyzeConversationAuthoringSupportedLanguages getSupportedLanguages(ProjectKind projectKind) {
+ // Generated convenience method for getSupportedLanguagesWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return getSupportedLanguagesWithResponse(projectKind.toString(), requestOptions).getValue()
+ .toObject(AnalyzeConversationAuthoringSupportedLanguages.class);
+ }
+
+ /**
+ * Lists the supported prebuilt entities that can be used while creating composed entities.
+ *
+ * @param language 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.
+ * @param multilingual Whether to get the support prebuilt entities for multilingual or monolingual projects. If
+ * true, the language parameter is ignored.
+ * @param top The maximum number of resources to return from the collection.
+ * @param skip An offset into the collection of the first resource to be returned.
+ * @param maxPageSize The maximum number of resources to include in a single response.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents a list of the retrieved supported prebuilt entities.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public AnalyzeConversationAuthoringPrebuiltEntities getSupportedPrebuiltEntities(String language,
+ String multilingual, Integer top, Integer skip, Integer maxPageSize) {
+ // Generated convenience method for getSupportedPrebuiltEntitiesWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ if (language != null) {
+ requestOptions.addQueryParam("language", language, false);
+ }
+ if (multilingual != null) {
+ requestOptions.addQueryParam("multilingual", multilingual, false);
+ }
+ if (top != null) {
+ requestOptions.addQueryParam("top", String.valueOf(top), false);
+ }
+ if (skip != null) {
+ requestOptions.addQueryParam("skip", String.valueOf(skip), false);
+ }
+ if (maxPageSize != null) {
+ requestOptions.addQueryParam("maxpagesize", String.valueOf(maxPageSize), false);
+ }
+ return getSupportedPrebuiltEntitiesWithResponse(requestOptions).getValue()
+ .toObject(AnalyzeConversationAuthoringPrebuiltEntities.class);
+ }
+
+ /**
+ * Lists the supported prebuilt entities that can be used while creating composed entities.
+ *
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents a list of the retrieved supported prebuilt entities.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public AnalyzeConversationAuthoringPrebuiltEntities getSupportedPrebuiltEntities() {
+ // Generated convenience method for getSupportedPrebuiltEntitiesWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return getSupportedPrebuiltEntitiesWithResponse(requestOptions).getValue()
+ .toObject(AnalyzeConversationAuthoringPrebuiltEntities.class);
+ }
+
+ /**
+ * Lists the support training config version for a given project type.
+ *
+ * @param projectKind The project kind.
+ * @param top The maximum number of resources to return from the collection.
+ * @param skip An offset into the collection of the first resource to be returned.
+ * @param maxPageSize The maximum number of resources to include in a single response.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents a list of training config versions.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public AnalyzeConversationAuthoringTrainingConfigVersions listTrainingConfigVersions(ProjectKind projectKind,
+ Integer top, Integer skip, Integer maxPageSize) {
+ // Generated convenience method for listTrainingConfigVersionsWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ if (top != null) {
+ requestOptions.addQueryParam("top", String.valueOf(top), false);
+ }
+ if (skip != null) {
+ requestOptions.addQueryParam("skip", String.valueOf(skip), false);
+ }
+ if (maxPageSize != null) {
+ requestOptions.addQueryParam("maxpagesize", String.valueOf(maxPageSize), false);
+ }
+ return listTrainingConfigVersionsWithResponse(projectKind.toString(), requestOptions).getValue()
+ .toObject(AnalyzeConversationAuthoringTrainingConfigVersions.class);
+ }
+
+ /**
+ * Lists the support training config version for a given project type.
+ *
+ * @param projectKind The project kind.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents a list of training config versions.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public AnalyzeConversationAuthoringTrainingConfigVersions listTrainingConfigVersions(ProjectKind projectKind) {
+ // Generated convenience method for listTrainingConfigVersionsWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return listTrainingConfigVersionsWithResponse(projectKind.toString(), requestOptions).getValue()
+ .toObject(AnalyzeConversationAuthoringTrainingConfigVersions.class);
+ }
+
+ /**
+ * Gets the details of an exported model.
+ *
+ * @param projectName The new project name.
+ * @param exportedModelName The exported model name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the details of an exported model.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public AnalyzeConversationAuthoringExportedTrainedModel getExportedModel(String projectName,
+ String exportedModelName) {
+ // Generated convenience method for getExportedModelWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return getExportedModelWithResponse(projectName, exportedModelName, requestOptions).getValue()
+ .toObject(AnalyzeConversationAuthoringExportedTrainedModel.class);
+ }
+
+ /**
+ * Lists the exported models belonging to a project.
+ *
+ * @param projectName The new project name.
+ * @param top The number of result items to return.
+ * @param skip The number of result items to skip.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return paged collection of AnalyzeConversationAuthoringExportedTrainedModel items as paginated response with
+ * {@link PagedIterable}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listExportedModels(String projectName,
+ Integer top, Integer skip) {
+ // Generated convenience method for listExportedModels
+ RequestOptions requestOptions = new RequestOptions();
+ if (top != null) {
+ requestOptions.addQueryParam("top", String.valueOf(top), false);
+ }
+ if (skip != null) {
+ requestOptions.addQueryParam("skip", String.valueOf(skip), false);
+ }
+ return serviceClient.listExportedModels(projectName, requestOptions)
+ .mapPage(bodyItemValue -> bodyItemValue.toObject(AnalyzeConversationAuthoringExportedTrainedModel.class));
+ }
+
+ /**
+ * Lists the exported models belonging to a project.
+ *
+ * @param projectName The new project name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return paged collection of AnalyzeConversationAuthoringExportedTrainedModel items as paginated response with
+ * {@link PagedIterable}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listExportedModels(String projectName) {
+ // Generated convenience method for listExportedModels
+ RequestOptions requestOptions = new RequestOptions();
+ return serviceClient.listExportedModels(projectName, requestOptions)
+ .mapPage(bodyItemValue -> bodyItemValue.toObject(AnalyzeConversationAuthoringExportedTrainedModel.class));
+ }
+
+ /**
+ * Deletes an existing exported model.
+ *
+ * @param projectName The name of the project to use.
+ * @param exportedModelName The exported model name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller
+ beginDeleteExportedModel(String projectName, String exportedModelName) {
+ // Generated convenience method for beginDeleteExportedModelWithModel
+ RequestOptions requestOptions = new RequestOptions();
+ return serviceClient.beginDeleteExportedModelWithModel(projectName, exportedModelName, requestOptions);
+ }
+
+ /**
+ * Creates a new exported model or replaces an existing one.
+ *
+ * @param projectName The name of the project to use.
+ * @param exportedModelName The exported model name.
+ * @param body The exported model info.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller
+ beginCreateOrUpdateExportedModel(String projectName, String exportedModelName, ExportedModelOptions body) {
+ // Generated convenience method for beginCreateOrUpdateExportedModelWithModel
+ RequestOptions requestOptions = new RequestOptions();
+ return serviceClient.beginCreateOrUpdateExportedModelWithModel(projectName, exportedModelName,
+ BinaryData.fromObject(body), requestOptions);
+ }
+
+ /**
+ * Gets the status for an existing job to create or update an exported model.
+ *
+ * @param projectName The new project name.
+ * @param exportedModelName The exported model name.
+ * @param jobId The job ID.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the status for an existing job to create or update an exported model.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public AnalyzeConversationAuthoringExportedModelJobState getExportedModelJobStatus(String projectName,
+ String exportedModelName, String jobId) {
+ // Generated convenience method for getExportedModelJobStatusWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return getExportedModelJobStatusWithResponse(projectName, exportedModelName, jobId, requestOptions).getValue()
+ .toObject(AnalyzeConversationAuthoringExportedModelJobState.class);
+ }
+}
diff --git a/sdk/cognitivelanguage/azure-ai-language-conversations-authoring/src/main/java/com/azure/ai/language/conversations/authoring/AuthoringClientBuilder.java b/sdk/cognitivelanguage/azure-ai-language-conversations-authoring/src/main/java/com/azure/ai/language/conversations/authoring/AuthoringClientBuilder.java
new file mode 100644
index 000000000000..e55892155f7a
--- /dev/null
+++ b/sdk/cognitivelanguage/azure-ai-language-conversations-authoring/src/main/java/com/azure/ai/language/conversations/authoring/AuthoringClientBuilder.java
@@ -0,0 +1,356 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.ai.language.conversations.authoring;
+
+import com.azure.ai.language.conversations.authoring.implementation.AuthoringClientImpl;
+import com.azure.core.annotation.Generated;
+import com.azure.core.annotation.ServiceClientBuilder;
+import com.azure.core.client.traits.ConfigurationTrait;
+import com.azure.core.client.traits.EndpointTrait;
+import com.azure.core.client.traits.HttpTrait;
+import com.azure.core.client.traits.KeyCredentialTrait;
+import com.azure.core.client.traits.TokenCredentialTrait;
+import com.azure.core.credential.KeyCredential;
+import com.azure.core.credential.TokenCredential;
+import com.azure.core.http.HttpClient;
+import com.azure.core.http.HttpHeaders;
+import com.azure.core.http.HttpPipeline;
+import com.azure.core.http.HttpPipelineBuilder;
+import com.azure.core.http.HttpPipelinePosition;
+import com.azure.core.http.policy.AddDatePolicy;
+import com.azure.core.http.policy.AddHeadersFromContextPolicy;
+import com.azure.core.http.policy.AddHeadersPolicy;
+import com.azure.core.http.policy.BearerTokenAuthenticationPolicy;
+import com.azure.core.http.policy.HttpLogOptions;
+import com.azure.core.http.policy.HttpLoggingPolicy;
+import com.azure.core.http.policy.HttpPipelinePolicy;
+import com.azure.core.http.policy.HttpPolicyProviders;
+import com.azure.core.http.policy.KeyCredentialPolicy;
+import com.azure.core.http.policy.RequestIdPolicy;
+import com.azure.core.http.policy.RetryOptions;
+import com.azure.core.http.policy.RetryPolicy;
+import com.azure.core.http.policy.UserAgentPolicy;
+import com.azure.core.util.ClientOptions;
+import com.azure.core.util.Configuration;
+import com.azure.core.util.CoreUtils;
+import com.azure.core.util.builder.ClientBuilderUtil;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.core.util.serializer.JacksonAdapter;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
+import java.util.Objects;
+
+/**
+ * A builder for creating a new instance of the AuthoringClient type.
+ */
+@ServiceClientBuilder(serviceClients = { AuthoringClient.class, AuthoringAsyncClient.class })
+public final class AuthoringClientBuilder implements HttpTrait,
+ ConfigurationTrait, TokenCredentialTrait,
+ KeyCredentialTrait, EndpointTrait {
+ @Generated
+ private static final String SDK_NAME = "name";
+
+ @Generated
+ private static final String SDK_VERSION = "version";
+
+ @Generated
+ private static final String[] DEFAULT_SCOPES = new String[] { "https://cognitiveservices.azure.com/.default" };
+
+ @Generated
+ private static final Map PROPERTIES
+ = CoreUtils.getProperties("azure-ai-language-conversations-authoring.properties");
+
+ @Generated
+ private final List pipelinePolicies;
+
+ /**
+ * Create an instance of the AuthoringClientBuilder.
+ */
+ @Generated
+ public AuthoringClientBuilder() {
+ this.pipelinePolicies = new ArrayList<>();
+ }
+
+ /*
+ * The HTTP pipeline to send requests through.
+ */
+ @Generated
+ private HttpPipeline pipeline;
+
+ /**
+ * {@inheritDoc}.
+ */
+ @Generated
+ @Override
+ public AuthoringClientBuilder pipeline(HttpPipeline pipeline) {
+ if (this.pipeline != null && pipeline == null) {
+ LOGGER.atInfo().log("HttpPipeline is being set to 'null' when it was previously configured.");
+ }
+ this.pipeline = pipeline;
+ return this;
+ }
+
+ /*
+ * The HTTP client used to send the request.
+ */
+ @Generated
+ private HttpClient httpClient;
+
+ /**
+ * {@inheritDoc}.
+ */
+ @Generated
+ @Override
+ public AuthoringClientBuilder httpClient(HttpClient httpClient) {
+ this.httpClient = httpClient;
+ return this;
+ }
+
+ /*
+ * The logging configuration for HTTP requests and responses.
+ */
+ @Generated
+ private HttpLogOptions httpLogOptions;
+
+ /**
+ * {@inheritDoc}.
+ */
+ @Generated
+ @Override
+ public AuthoringClientBuilder httpLogOptions(HttpLogOptions httpLogOptions) {
+ this.httpLogOptions = httpLogOptions;
+ return this;
+ }
+
+ /*
+ * The client options such as application ID and custom headers to set on a request.
+ */
+ @Generated
+ private ClientOptions clientOptions;
+
+ /**
+ * {@inheritDoc}.
+ */
+ @Generated
+ @Override
+ public AuthoringClientBuilder clientOptions(ClientOptions clientOptions) {
+ this.clientOptions = clientOptions;
+ return this;
+ }
+
+ /*
+ * The retry options to configure retry policy for failed requests.
+ */
+ @Generated
+ private RetryOptions retryOptions;
+
+ /**
+ * {@inheritDoc}.
+ */
+ @Generated
+ @Override
+ public AuthoringClientBuilder retryOptions(RetryOptions retryOptions) {
+ this.retryOptions = retryOptions;
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}.
+ */
+ @Generated
+ @Override
+ public AuthoringClientBuilder addPolicy(HttpPipelinePolicy customPolicy) {
+ Objects.requireNonNull(customPolicy, "'customPolicy' cannot be null.");
+ pipelinePolicies.add(customPolicy);
+ return this;
+ }
+
+ /*
+ * The configuration store that is used during construction of the service client.
+ */
+ @Generated
+ private Configuration configuration;
+
+ /**
+ * {@inheritDoc}.
+ */
+ @Generated
+ @Override
+ public AuthoringClientBuilder configuration(Configuration configuration) {
+ this.configuration = configuration;
+ return this;
+ }
+
+ /*
+ * The TokenCredential used for authentication.
+ */
+ @Generated
+ private TokenCredential tokenCredential;
+
+ /**
+ * {@inheritDoc}.
+ */
+ @Generated
+ @Override
+ public AuthoringClientBuilder credential(TokenCredential tokenCredential) {
+ this.tokenCredential = tokenCredential;
+ return this;
+ }
+
+ /*
+ * The KeyCredential used for authentication.
+ */
+ @Generated
+ private KeyCredential keyCredential;
+
+ /**
+ * {@inheritDoc}.
+ */
+ @Generated
+ @Override
+ public AuthoringClientBuilder credential(KeyCredential keyCredential) {
+ this.keyCredential = keyCredential;
+ return this;
+ }
+
+ /*
+ * The service endpoint
+ */
+ @Generated
+ private String endpoint;
+
+ /**
+ * {@inheritDoc}.
+ */
+ @Generated
+ @Override
+ public AuthoringClientBuilder endpoint(String endpoint) {
+ this.endpoint = endpoint;
+ return this;
+ }
+
+ /*
+ * Service version
+ */
+ @Generated
+ private AuthoringServiceVersion serviceVersion;
+
+ /**
+ * Sets Service version.
+ *
+ * @param serviceVersion the serviceVersion value.
+ * @return the AuthoringClientBuilder.
+ */
+ @Generated
+ public AuthoringClientBuilder serviceVersion(AuthoringServiceVersion serviceVersion) {
+ this.serviceVersion = serviceVersion;
+ return this;
+ }
+
+ /*
+ * The retry policy that will attempt to retry failed requests, if applicable.
+ */
+ @Generated
+ private RetryPolicy retryPolicy;
+
+ /**
+ * Sets The retry policy that will attempt to retry failed requests, if applicable.
+ *
+ * @param retryPolicy the retryPolicy value.
+ * @return the AuthoringClientBuilder.
+ */
+ @Generated
+ public AuthoringClientBuilder retryPolicy(RetryPolicy retryPolicy) {
+ this.retryPolicy = retryPolicy;
+ return this;
+ }
+
+ /**
+ * Builds an instance of AuthoringClientImpl with the provided parameters.
+ *
+ * @return an instance of AuthoringClientImpl.
+ */
+ @Generated
+ private AuthoringClientImpl buildInnerClient() {
+ this.validateClient();
+ HttpPipeline localPipeline = (pipeline != null) ? pipeline : createHttpPipeline();
+ AuthoringServiceVersion localServiceVersion
+ = (serviceVersion != null) ? serviceVersion : AuthoringServiceVersion.getLatest();
+ AuthoringClientImpl client = new AuthoringClientImpl(localPipeline,
+ JacksonAdapter.createDefaultSerializerAdapter(), this.endpoint, localServiceVersion);
+ return client;
+ }
+
+ @Generated
+ private void validateClient() {
+ // This method is invoked from 'buildInnerClient'/'buildClient' method.
+ // Developer can customize this method, to validate that the necessary conditions are met for the new client.
+ Objects.requireNonNull(endpoint, "'endpoint' cannot be null.");
+ }
+
+ @Generated
+ private HttpPipeline createHttpPipeline() {
+ Configuration buildConfiguration
+ = (configuration == null) ? Configuration.getGlobalConfiguration() : configuration;
+ HttpLogOptions localHttpLogOptions = this.httpLogOptions == null ? new HttpLogOptions() : this.httpLogOptions;
+ ClientOptions localClientOptions = this.clientOptions == null ? new ClientOptions() : this.clientOptions;
+ List policies = new ArrayList<>();
+ String clientName = PROPERTIES.getOrDefault(SDK_NAME, "UnknownName");
+ String clientVersion = PROPERTIES.getOrDefault(SDK_VERSION, "UnknownVersion");
+ String applicationId = CoreUtils.getApplicationId(localClientOptions, localHttpLogOptions);
+ policies.add(new UserAgentPolicy(applicationId, clientName, clientVersion, buildConfiguration));
+ policies.add(new RequestIdPolicy());
+ policies.add(new AddHeadersFromContextPolicy());
+ HttpHeaders headers = CoreUtils.createHttpHeadersFromClientOptions(localClientOptions);
+ if (headers != null) {
+ policies.add(new AddHeadersPolicy(headers));
+ }
+ this.pipelinePolicies.stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL)
+ .forEach(p -> policies.add(p));
+ HttpPolicyProviders.addBeforeRetryPolicies(policies);
+ policies.add(ClientBuilderUtil.validateAndGetRetryPolicy(retryPolicy, retryOptions, new RetryPolicy()));
+ policies.add(new AddDatePolicy());
+ if (keyCredential != null) {
+ policies.add(new KeyCredentialPolicy("Ocp-Apim-Subscription-Key", keyCredential));
+ }
+ if (tokenCredential != null) {
+ policies.add(new BearerTokenAuthenticationPolicy(tokenCredential, DEFAULT_SCOPES));
+ }
+ this.pipelinePolicies.stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
+ .forEach(p -> policies.add(p));
+ HttpPolicyProviders.addAfterRetryPolicies(policies);
+ policies.add(new HttpLoggingPolicy(localHttpLogOptions));
+ HttpPipeline httpPipeline = new HttpPipelineBuilder().policies(policies.toArray(new HttpPipelinePolicy[0]))
+ .httpClient(httpClient)
+ .clientOptions(localClientOptions)
+ .build();
+ return httpPipeline;
+ }
+
+ /**
+ * Builds an instance of AuthoringAsyncClient class.
+ *
+ * @return an instance of AuthoringAsyncClient.
+ */
+ @Generated
+ public AuthoringAsyncClient buildAsyncClient() {
+ return new AuthoringAsyncClient(buildInnerClient().getAnalyzeConversationAuthorings());
+ }
+
+ /**
+ * Builds an instance of AuthoringClient class.
+ *
+ * @return an instance of AuthoringClient.
+ */
+ @Generated
+ public AuthoringClient buildClient() {
+ return new AuthoringClient(buildInnerClient().getAnalyzeConversationAuthorings());
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(AuthoringClientBuilder.class);
+}
diff --git a/sdk/cognitivelanguage/azure-ai-language-conversations-authoring/src/main/java/com/azure/ai/language/conversations/authoring/AuthoringServiceVersion.java b/sdk/cognitivelanguage/azure-ai-language-conversations-authoring/src/main/java/com/azure/ai/language/conversations/authoring/AuthoringServiceVersion.java
new file mode 100644
index 000000000000..06b4b1be329c
--- /dev/null
+++ b/sdk/cognitivelanguage/azure-ai-language-conversations-authoring/src/main/java/com/azure/ai/language/conversations/authoring/AuthoringServiceVersion.java
@@ -0,0 +1,50 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.ai.language.conversations.authoring;
+
+import com.azure.core.util.ServiceVersion;
+
+/**
+ * Service version of AuthoringClient.
+ */
+public enum AuthoringServiceVersion implements ServiceVersion {
+ /**
+ * Enum value 2023-04-01.
+ */
+ V2023_04_01("2023-04-01"),
+
+ /**
+ * Enum value 2023-04-15-preview.
+ */
+ V2023_04_15_PREVIEW("2023-04-15-preview"),
+
+ /**
+ * Enum value 2024-11-15-preview.
+ */
+ V2024_11_15_PREVIEW("2024-11-15-preview");
+
+ private final String version;
+
+ AuthoringServiceVersion(String version) {
+ this.version = version;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public String getVersion() {
+ return this.version;
+ }
+
+ /**
+ * Gets the latest service version supported by this client library.
+ *
+ * @return The latest {@link AuthoringServiceVersion}.
+ */
+ public static AuthoringServiceVersion getLatest() {
+ return V2024_11_15_PREVIEW;
+ }
+}
diff --git a/sdk/cognitivelanguage/azure-ai-language-conversations-authoring/src/main/java/com/azure/ai/language/conversations/authoring/implementation/AnalyzeConversationAuthoringsImpl.java b/sdk/cognitivelanguage/azure-ai-language-conversations-authoring/src/main/java/com/azure/ai/language/conversations/authoring/implementation/AnalyzeConversationAuthoringsImpl.java
new file mode 100644
index 000000000000..0a7cad600d0d
--- /dev/null
+++ b/sdk/cognitivelanguage/azure-ai-language-conversations-authoring/src/main/java/com/azure/ai/language/conversations/authoring/implementation/AnalyzeConversationAuthoringsImpl.java
@@ -0,0 +1,9777 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.ai.language.conversations.authoring.implementation;
+
+import com.azure.ai.language.conversations.authoring.AuthoringServiceVersion;
+import com.azure.ai.language.conversations.authoring.models.AnalyzeConversationAuthoringCopyProjectJobState;
+import com.azure.ai.language.conversations.authoring.models.AnalyzeConversationAuthoringDeploymentDeleteFromResourcesJobState;
+import com.azure.ai.language.conversations.authoring.models.AnalyzeConversationAuthoringDeploymentJobState;
+import com.azure.ai.language.conversations.authoring.models.AnalyzeConversationAuthoringDeploymentResourcesJobState;
+import com.azure.ai.language.conversations.authoring.models.AnalyzeConversationAuthoringEvaluationJobResult;
+import com.azure.ai.language.conversations.authoring.models.AnalyzeConversationAuthoringEvaluationJobState;
+import com.azure.ai.language.conversations.authoring.models.AnalyzeConversationAuthoringExportProjectJobState;
+import com.azure.ai.language.conversations.authoring.models.AnalyzeConversationAuthoringExportedModelJobState;
+import com.azure.ai.language.conversations.authoring.models.AnalyzeConversationAuthoringImportProjectJobState;
+import com.azure.ai.language.conversations.authoring.models.AnalyzeConversationAuthoringLoadSnapshotJobState;
+import com.azure.ai.language.conversations.authoring.models.AnalyzeConversationAuthoringProjectDeletionJobState;
+import com.azure.ai.language.conversations.authoring.models.AnalyzeConversationAuthoringSwapDeploymentsJobState;
+import com.azure.ai.language.conversations.authoring.models.AnalyzeConversationAuthoringTrainingJobResult;
+import com.azure.ai.language.conversations.authoring.models.AnalyzeConversationAuthoringTrainingJobState;
+import com.azure.core.annotation.BodyParam;
+import com.azure.core.annotation.Delete;
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.Patch;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.Post;
+import com.azure.core.annotation.Put;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.exception.ClientAuthenticationException;
+import com.azure.core.exception.HttpResponseException;
+import com.azure.core.exception.ResourceModifiedException;
+import com.azure.core.exception.ResourceNotFoundException;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.PagedResponse;
+import com.azure.core.http.rest.PagedResponseBase;
+import com.azure.core.http.rest.RequestOptions;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.util.BinaryData;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.core.util.UrlBuilder;
+import com.azure.core.util.polling.DefaultPollingStrategy;
+import com.azure.core.util.polling.PollerFlux;
+import com.azure.core.util.polling.PollingStrategyOptions;
+import com.azure.core.util.polling.SyncDefaultPollingStrategy;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.core.util.serializer.TypeReference;
+import java.time.Duration;
+import java.util.List;
+import java.util.Map;
+import java.util.stream.Collectors;
+import reactor.core.publisher.Mono;
+
+/**
+ * An instance of this class provides access to all the operations defined in AnalyzeConversationAuthorings.
+ */
+public final class AnalyzeConversationAuthoringsImpl {
+ /**
+ * The proxy service used to perform REST calls.
+ */
+ private final AnalyzeConversationAuthoringsService service;
+
+ /**
+ * The service client containing this operation class.
+ */
+ private final AuthoringClientImpl client;
+
+ /**
+ * Initializes an instance of AnalyzeConversationAuthoringsImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ AnalyzeConversationAuthoringsImpl(AuthoringClientImpl client) {
+ this.service = RestProxy.create(AnalyzeConversationAuthoringsService.class, client.getHttpPipeline(),
+ client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * Gets Service version.
+ *
+ * @return the serviceVersion value.
+ */
+ public AuthoringServiceVersion getServiceVersion() {
+ return client.getServiceVersion();
+ }
+
+ /**
+ * The interface defining all the services for AuthoringClientAnalyzeConversationAuthorings to be used by the proxy
+ * service to perform REST calls.
+ */
+ @Host("{Endpoint}/language")
+ @ServiceInterface(name = "AuthoringClientAnaly")
+ public interface AnalyzeConversationAuthoringsService {
+ @Get("/authoring/analyze-conversations/projects")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
+ @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
+ @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
+ @UnexpectedResponseExceptionType(HttpResponseException.class)
+ Mono> listProjects(@HostParam("Endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept,
+ RequestOptions requestOptions, Context context);
+
+ @Get("/authoring/analyze-conversations/projects")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
+ @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
+ @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
+ @UnexpectedResponseExceptionType(HttpResponseException.class)
+ Response listProjectsSync(@HostParam("Endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept,
+ RequestOptions requestOptions, Context context);
+
+ @Get("/authoring/analyze-conversations/projects/{projectName}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
+ @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
+ @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
+ @UnexpectedResponseExceptionType(HttpResponseException.class)
+ Mono> getProject(@HostParam("Endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("projectName") String projectName,
+ @HeaderParam("Accept") String accept, RequestOptions requestOptions, Context context);
+
+ @Get("/authoring/analyze-conversations/projects/{projectName}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
+ @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
+ @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
+ @UnexpectedResponseExceptionType(HttpResponseException.class)
+ Response getProjectSync(@HostParam("Endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("projectName") String projectName,
+ @HeaderParam("Accept") String accept, RequestOptions requestOptions, Context context);
+
+ @Patch("/authoring/analyze-conversations/projects/{projectName}")
+ @ExpectedResponses({ 200, 201 })
+ @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
+ @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
+ @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
+ @UnexpectedResponseExceptionType(HttpResponseException.class)
+ Mono> createProject(@HostParam("Endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("projectName") String projectName,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/merge-patch+json") BinaryData body, RequestOptions requestOptions, Context context);
+
+ @Patch("/authoring/analyze-conversations/projects/{projectName}")
+ @ExpectedResponses({ 200, 201 })
+ @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
+ @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
+ @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
+ @UnexpectedResponseExceptionType(HttpResponseException.class)
+ Response createProjectSync(@HostParam("Endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("projectName") String projectName,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/merge-patch+json") BinaryData body, RequestOptions requestOptions, Context context);
+
+ @Delete("/authoring/analyze-conversations/projects/{projectName}")
+ @ExpectedResponses({ 202 })
+ @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
+ @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
+ @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
+ @UnexpectedResponseExceptionType(HttpResponseException.class)
+ Mono> deleteProject(@HostParam("Endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("projectName") String projectName,
+ @HeaderParam("Accept") String accept, RequestOptions requestOptions, Context context);
+
+ @Delete("/authoring/analyze-conversations/projects/{projectName}")
+ @ExpectedResponses({ 202 })
+ @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
+ @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
+ @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
+ @UnexpectedResponseExceptionType(HttpResponseException.class)
+ Response deleteProjectSync(@HostParam("Endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("projectName") String projectName,
+ @HeaderParam("Accept") String accept, RequestOptions requestOptions, Context context);
+
+ @Post("/authoring/analyze-conversations/projects/{projectName}/:authorize-copy")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
+ @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
+ @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
+ @UnexpectedResponseExceptionType(HttpResponseException.class)
+ Mono> copyProjectAuthorization(@HostParam("Endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("projectName") String projectName,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") BinaryData copyProjectAuthorizationRequest, RequestOptions requestOptions,
+ Context context);
+
+ @Post("/authoring/analyze-conversations/projects/{projectName}/:authorize-copy")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
+ @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
+ @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
+ @UnexpectedResponseExceptionType(HttpResponseException.class)
+ Response copyProjectAuthorizationSync(@HostParam("Endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("projectName") String projectName,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") BinaryData copyProjectAuthorizationRequest, RequestOptions requestOptions,
+ Context context);
+
+ @Post("/authoring/analyze-conversations/projects/{projectName}/:copy")
+ @ExpectedResponses({ 202 })
+ @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
+ @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
+ @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
+ @UnexpectedResponseExceptionType(HttpResponseException.class)
+ Mono> copyProject(@HostParam("Endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("projectName") String projectName,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") BinaryData body, RequestOptions requestOptions, Context context);
+
+ @Post("/authoring/analyze-conversations/projects/{projectName}/:copy")
+ @ExpectedResponses({ 202 })
+ @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
+ @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
+ @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
+ @UnexpectedResponseExceptionType(HttpResponseException.class)
+ Response copyProjectSync(@HostParam("Endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("projectName") String projectName,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") BinaryData body, RequestOptions requestOptions, Context context);
+
+ @Post("/authoring/analyze-conversations/projects/{projectName}/:export")
+ @ExpectedResponses({ 202 })
+ @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
+ @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
+ @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
+ @UnexpectedResponseExceptionType(HttpResponseException.class)
+ Mono> export(@HostParam("Endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("projectName") String projectName,
+ @QueryParam("stringIndexType") String stringIndexType, @HeaderParam("Accept") String accept,
+ RequestOptions requestOptions, Context context);
+
+ @Post("/authoring/analyze-conversations/projects/{projectName}/:export")
+ @ExpectedResponses({ 202 })
+ @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
+ @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
+ @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
+ @UnexpectedResponseExceptionType(HttpResponseException.class)
+ Response