TextAuthoringProject.AuthorizeProjectCopy 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
| Name | Description |
|---|---|
| AuthorizeProjectCopy(RequestContent, RequestContext) |
[Protocol Method] Generates a copy project operation authorization to the current target Azure resource.
|
| AuthorizeProjectCopy(TextAuthoringProjectKind, String, Nullable<Boolean>, CancellationToken) |
Generates a copy project operation authorization to the current target Azure resource. |
AuthorizeProjectCopy(RequestContent, RequestContext)
- Source:
- TextAuthoringProject.cs
[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 AuthorizeProjectCopy(TextAuthoringProjectKind, String, Nullable<Boolean>, CancellationToken) convenience overload with strongly typed models first.
public virtual Azure.Response AuthorizeProjectCopy(Azure.Core.RequestContent content, Azure.RequestContext context = default);
abstract member AuthorizeProjectCopy : Azure.Core.RequestContent * Azure.RequestContext -> Azure.Response
override this.AuthorizeProjectCopy : Azure.Core.RequestContent * Azure.RequestContext -> Azure.Response
Public Overridable Function AuthorizeProjectCopy (content As RequestContent, Optional context As RequestContext = Nothing) As 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.
Applies to
AuthorizeProjectCopy(TextAuthoringProjectKind, String, Nullable<Boolean>, CancellationToken)
- Source:
- TextAuthoringProject.cs
Generates a copy project operation authorization to the current target Azure resource.
public virtual Azure.Response<Azure.AI.Language.Text.Authoring.TextAuthoringCopyProjectDetails> AuthorizeProjectCopy(Azure.AI.Language.Text.Authoring.TextAuthoringProjectKind projectKind, string storageInputContainerName = default, bool? allowOverwrite = default, System.Threading.CancellationToken cancellationToken = default);
abstract member AuthorizeProjectCopy : Azure.AI.Language.Text.Authoring.TextAuthoringProjectKind * string * Nullable<bool> * System.Threading.CancellationToken -> Azure.Response<Azure.AI.Language.Text.Authoring.TextAuthoringCopyProjectDetails>
override this.AuthorizeProjectCopy : Azure.AI.Language.Text.Authoring.TextAuthoringProjectKind * string * Nullable<bool> * System.Threading.CancellationToken -> Azure.Response<Azure.AI.Language.Text.Authoring.TextAuthoringCopyProjectDetails>
Public Overridable Function AuthorizeProjectCopy (projectKind As TextAuthoringProjectKind, Optional storageInputContainerName As String = Nothing, Optional allowOverwrite As Nullable(Of Boolean) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Response(Of TextAuthoringCopyProjectDetails)
Parameters
- projectKind
- TextAuthoringProjectKind
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.