ConversationAuthoringProject.AuthorizeProjectCopyAsync 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
| AuthorizeProjectCopyAsync(ConversationAuthoringProjectKind, String, Nullable<Boolean>, CancellationToken) |
Generates a copy project operation authorization to the current target Azure resource. |
| AuthorizeProjectCopyAsync(RequestContent, RequestContext) |
[Protocol Method] Generates a copy project operation authorization to the current target Azure resource.
|
AuthorizeProjectCopyAsync(ConversationAuthoringProjectKind, String, Nullable<Boolean>, CancellationToken)
Generates a copy project operation authorization to the current target Azure resource.
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.AI.Language.Conversations.Authoring.ConversationAuthoringCopyProjectDetails>> AuthorizeProjectCopyAsync(Azure.AI.Language.Conversations.Authoring.ConversationAuthoringProjectKind projectKind, string storageInputContainerName = default, bool? allowOverwrite = default, System.Threading.CancellationToken cancellationToken = default);
abstract member AuthorizeProjectCopyAsync : Azure.AI.Language.Conversations.Authoring.ConversationAuthoringProjectKind * string * Nullable<bool> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.AI.Language.Conversations.Authoring.ConversationAuthoringCopyProjectDetails>>
override this.AuthorizeProjectCopyAsync : Azure.AI.Language.Conversations.Authoring.ConversationAuthoringProjectKind * string * Nullable<bool> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.AI.Language.Conversations.Authoring.ConversationAuthoringCopyProjectDetails>>
Public Overridable Function AuthorizeProjectCopyAsync (projectKind As ConversationAuthoringProjectKind, Optional storageInputContainerName As String = Nothing, Optional allowOverwrite As Nullable(Of Boolean) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ConversationAuthoringCopyProjectDetails))
Parameters
- projectKind
- ConversationAuthoringProjectKind
Represents the project kind.
- storageInputContainerName
- String
The name of the storage container.
Whether to allow an existing project to be overwritten using the resulting copy authorization.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Applies to
AuthorizeProjectCopyAsync(RequestContent, RequestContext)
[Protocol Method] Generates a copy project operation authorization to the current target Azure resource.
- This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
- Please try the simpler AuthorizeProjectCopyAsync(ConversationAuthoringProjectKind, String, Nullable<Boolean>, CancellationToken) convenience overload with strongly typed models first.
public virtual System.Threading.Tasks.Task<Azure.Response> AuthorizeProjectCopyAsync(Azure.Core.RequestContent content, Azure.RequestContext context = default);
abstract member AuthorizeProjectCopyAsync : Azure.Core.RequestContent * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
override this.AuthorizeProjectCopyAsync : Azure.Core.RequestContent * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function AuthorizeProjectCopyAsync (content As RequestContent, Optional context As RequestContext = Nothing) As Task(Of Response)
Parameters
- content
- RequestContent
The content to send as the body of the request.
- context
- RequestContext
The request context, which can override default behaviors of the client pipeline on a per-call basis.
Returns
The response returned from the service.
Exceptions
Service returned a non-success status code.