ConversationAuthoringProject.ImportAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| ImportAsync(WaitUntil, ConversationAuthoringExportedProject, Nullable<ConversationAuthoringExportedProjectFormat>, CancellationToken) |
Triggers a job to import a project. If a project with the same name already exists, the data of that project is replaced. |
| ImportAsync(WaitUntil, RequestContent, String, RequestContext) |
[Protocol Method] Triggers a job to import a project. If a project with the same name already exists, the data of that project is replaced.
|
| ImportAsync(WaitUntil, String, Nullable<ConversationAuthoringExportedProjectFormat>, CancellationToken) |
Triggers a job to import a project using raw JSON string input. This is an alternative to the structured import method, and is useful when importing directly from exported project files. |
ImportAsync(WaitUntil, ConversationAuthoringExportedProject, Nullable<ConversationAuthoringExportedProjectFormat>, CancellationToken)
Triggers a job to import a project. If a project with the same name already exists, the data of that project is replaced.
public virtual System.Threading.Tasks.Task<Azure.Operation> ImportAsync(Azure.WaitUntil waitUntil, Azure.AI.Language.Conversations.Authoring.ConversationAuthoringExportedProject exportedProject, Azure.AI.Language.Conversations.Authoring.ConversationAuthoringExportedProjectFormat? projectFormat = default, System.Threading.CancellationToken cancellationToken = default);
abstract member ImportAsync : Azure.WaitUntil * Azure.AI.Language.Conversations.Authoring.ConversationAuthoringExportedProject * Nullable<Azure.AI.Language.Conversations.Authoring.ConversationAuthoringExportedProjectFormat> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Operation>
override this.ImportAsync : Azure.WaitUntil * Azure.AI.Language.Conversations.Authoring.ConversationAuthoringExportedProject * Nullable<Azure.AI.Language.Conversations.Authoring.ConversationAuthoringExportedProjectFormat> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Operation>
Public Overridable Function ImportAsync (waitUntil As WaitUntil, exportedProject As ConversationAuthoringExportedProject, Optional projectFormat As Nullable(Of ConversationAuthoringExportedProjectFormat) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Operation)
Parameters
- waitUntil
- WaitUntil
Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
- exportedProject
- ConversationAuthoringExportedProject
The project data to import.
- projectFormat
- Nullable<ConversationAuthoringExportedProjectFormat>
The format of the exported project file to use.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Applies to
ImportAsync(WaitUntil, RequestContent, String, RequestContext)
[Protocol Method] Triggers a job to import a project. If a project with the same name already exists, the data of that project is replaced.
- This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
- Please try the simpler ImportAsync(WaitUntil, ConversationAuthoringExportedProject, Nullable<ConversationAuthoringExportedProjectFormat>, CancellationToken) convenience overload with strongly typed models first.
public virtual System.Threading.Tasks.Task<Azure.Operation> ImportAsync(Azure.WaitUntil waitUntil, Azure.Core.RequestContent content, string projectFormat = default, Azure.RequestContext context = default);
abstract member ImportAsync : Azure.WaitUntil * Azure.Core.RequestContent * string * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Operation>
override this.ImportAsync : Azure.WaitUntil * Azure.Core.RequestContent * string * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Operation>
Public Overridable Function ImportAsync (waitUntil As WaitUntil, content As RequestContent, Optional projectFormat As String = Nothing, Optional context As RequestContext = Nothing) As Task(Of Operation)
Parameters
- waitUntil
- WaitUntil
Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
- content
- RequestContent
The content to send as the body of the request.
- projectFormat
- String
The format of the exported project file to use. Allowed values: "Conversation" | "Luis".
- context
- RequestContext
The request context, which can override default behaviors of the client pipeline on a per-call basis.
Returns
The Operation representing an asynchronous operation on the service.
Exceptions
Service returned a non-success status code.
Applies to
ImportAsync(WaitUntil, String, Nullable<ConversationAuthoringExportedProjectFormat>, CancellationToken)
Triggers a job to import a project using raw JSON string input. This is an alternative to the structured import method, and is useful when importing directly from exported project files.
public virtual System.Threading.Tasks.Task<Azure.Operation> ImportAsync(Azure.WaitUntil waitUntil, string projectJson, Azure.AI.Language.Conversations.Authoring.ConversationAuthoringExportedProjectFormat? projectFormat = default, System.Threading.CancellationToken cancellationToken = default);
abstract member ImportAsync : Azure.WaitUntil * string * Nullable<Azure.AI.Language.Conversations.Authoring.ConversationAuthoringExportedProjectFormat> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Operation>
override this.ImportAsync : Azure.WaitUntil * string * Nullable<Azure.AI.Language.Conversations.Authoring.ConversationAuthoringExportedProjectFormat> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Operation>
Public Overridable Function ImportAsync (waitUntil As WaitUntil, projectJson As String, Optional projectFormat As Nullable(Of ConversationAuthoringExportedProjectFormat) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Operation)
Parameters
- waitUntil
- WaitUntil
Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
- projectJson
- String
A raw JSON string representing the entire project to import. This string should match the format of an exported Analyze Conversations project.
- projectFormat
- Nullable<ConversationAuthoringExportedProjectFormat>
The format of the exported project file to use.
- cancellationToken
- CancellationToken
The cancellation token to use.