Partager via


IMoveCollectionsOperations.DiscardWithHttpMessagesAsync Méthode

Définition

Ignore l’ensemble des ressources incluses dans le corps de la demande. L’opération d’abandon est déclenchée sur l’objet moveResources dans l’objet moveState « CommitPending » ou « DiscardFailed », lorsque l’opération moveResource moveState effectue une transition vers MovePending. Pour aider l’utilisateur à configurer l’opération, le client peut appeler l’opération avec la propriété validateOnly définie sur true.

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.Migrate.ResourceMover.Models.OperationStatus>> DiscardWithHttpMessagesAsync (string resourceGroupName, string moveCollectionName, Microsoft.Azure.Management.Migrate.ResourceMover.Models.DiscardRequest body = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member DiscardWithHttpMessagesAsync : string * string * Microsoft.Azure.Management.Migrate.ResourceMover.Models.DiscardRequest * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.Migrate.ResourceMover.Models.OperationStatus>>
Public Function DiscardWithHttpMessagesAsync (resourceGroupName As String, moveCollectionName As String, Optional body As DiscardRequest = Nothing, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of OperationStatus))

Paramètres

resourceGroupName
String

Nom du groupe de ressources.

moveCollectionName
String

Déplacer le nom de la collection.

customHeaders
Dictionary<String,List<String>>

En-têtes qui seront ajoutés à la demande.

cancellationToken
CancellationToken

Jeton d'annulation.

Retours

Exceptions

Levée lorsque l’opération a retourné un code status non valide

Levée lorsque la réponse ne peut pas être désérialisée

Levée lorsqu’un paramètre requis a la valeur Null

S’applique à