Partager via


DevTestLabSecretResource.UpdateAsync Méthode

Définition

Autorise la modification des étiquettes de secrets. Toutes les autres propriétés seront ignorées.

  • Chemin de la demande/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/secrets/{name}
  • IdSecrets_Update d’opération
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DevTestLabs.DevTestLabSecretResource>> UpdateAsync (Azure.ResourceManager.DevTestLabs.Models.DevTestLabSecretPatch patch, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateAsync : Azure.ResourceManager.DevTestLabs.Models.DevTestLabSecretPatch * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DevTestLabs.DevTestLabSecretResource>>
override this.UpdateAsync : Azure.ResourceManager.DevTestLabs.Models.DevTestLabSecretPatch * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DevTestLabs.DevTestLabSecretResource>>
Public Overridable Function UpdateAsync (patch As DevTestLabSecretPatch, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of DevTestLabSecretResource))

Paramètres

patch
DevTestLabSecretPatch

Un secret.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

patch a la valeur null.

S’applique à