Share via


ConversationAuthoringProject.Import Method

Definition

Overloads

Name Description
Import(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.

Import(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.

Import(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.

Import(WaitUntil, ConversationAuthoringExportedProject, Nullable<ConversationAuthoringExportedProjectFormat>, CancellationToken)

Source:
ConversationAuthoringProject.cs

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 Azure.Operation Import(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 Import : Azure.WaitUntil * Azure.AI.Language.Conversations.Authoring.ConversationAuthoringExportedProject * Nullable<Azure.AI.Language.Conversations.Authoring.ConversationAuthoringExportedProjectFormat> * System.Threading.CancellationToken -> Azure.Operation
override this.Import : Azure.WaitUntil * Azure.AI.Language.Conversations.Authoring.ConversationAuthoringExportedProject * Nullable<Azure.AI.Language.Conversations.Authoring.ConversationAuthoringExportedProjectFormat> * System.Threading.CancellationToken -> Azure.Operation
Public Overridable Function Import (waitUntil As WaitUntil, exportedProject As ConversationAuthoringExportedProject, Optional projectFormat As Nullable(Of ConversationAuthoringExportedProjectFormat) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As 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

Import(WaitUntil, RequestContent, String, RequestContext)

Source:
ConversationAuthoringProject.cs

[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.

public virtual Azure.Operation Import(Azure.WaitUntil waitUntil, Azure.Core.RequestContent content, string projectFormat = default, Azure.RequestContext context = default);
abstract member Import : Azure.WaitUntil * Azure.Core.RequestContent * string * Azure.RequestContext -> Azure.Operation
override this.Import : Azure.WaitUntil * Azure.Core.RequestContent * string * Azure.RequestContext -> Azure.Operation
Public Overridable Function Import (waitUntil As WaitUntil, content As RequestContent, Optional projectFormat As String = Nothing, Optional context As RequestContext = Nothing) As 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

Import(WaitUntil, String, Nullable<ConversationAuthoringExportedProjectFormat>, CancellationToken)

Source:
ConversationAuthoringProject.cs

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 Azure.Operation Import(Azure.WaitUntil waitUntil, string projectJson, Azure.AI.Language.Conversations.Authoring.ConversationAuthoringExportedProjectFormat? projectFormat = default, System.Threading.CancellationToken cancellationToken = default);
abstract member Import : Azure.WaitUntil * string * Nullable<Azure.AI.Language.Conversations.Authoring.ConversationAuthoringExportedProjectFormat> * System.Threading.CancellationToken -> Azure.Operation
override this.Import : Azure.WaitUntil * string * Nullable<Azure.AI.Language.Conversations.Authoring.ConversationAuthoringExportedProjectFormat> * System.Threading.CancellationToken -> Azure.Operation
Public Overridable Function Import (waitUntil As WaitUntil, projectJson As String, Optional projectFormat As Nullable(Of ConversationAuthoringExportedProjectFormat) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As 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.

Returns

Applies to