Partilhar via


DataReplicationProtectedItemResource.UpdateAsync Método

Definição

Cria o item protegido.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/protectedItems/{protectedItemName}
  • Operação IdProtectedItem_Create
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.RecoveryServicesDataReplication.DataReplicationProtectedItemResource>> UpdateAsync (Azure.WaitUntil waitUntil, Azure.ResourceManager.RecoveryServicesDataReplication.DataReplicationProtectedItemData data, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateAsync : Azure.WaitUntil * Azure.ResourceManager.RecoveryServicesDataReplication.DataReplicationProtectedItemData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.RecoveryServicesDataReplication.DataReplicationProtectedItemResource>>
override this.UpdateAsync : Azure.WaitUntil * Azure.ResourceManager.RecoveryServicesDataReplication.DataReplicationProtectedItemData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.RecoveryServicesDataReplication.DataReplicationProtectedItemResource>>
Public Overridable Function UpdateAsync (waitUntil As WaitUntil, data As DataReplicationProtectedItemData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of DataReplicationProtectedItemResource))

Parâmetros

waitUntil
WaitUntil

Completed se o método deve aguardar para retornar até que a operação de execução prolongada seja concluída no serviço; Started se ele deve retornar depois de iniciar a operação. Para obter mais informações sobre operações de execução prolongada, consulte Exemplos de operação de Long-Running do Azure.Core.

data
DataReplicationProtectedItemData

Modelo de item protegido.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

data é nulo.

Aplica-se a