Partager via


MachineLearningComponentVersionCollection.CreateOrUpdateAsync Méthode

Définition

Créer ou mettre à jour une version.

  • Chemin/abonnements de la demande/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/components/{name}/versions/{version}
  • IdComponentVersions_CreateOrUpdate d’opération
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.MachineLearning.MachineLearningComponentVersionResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string version, Azure.ResourceManager.MachineLearning.MachineLearningComponentVersionData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.MachineLearning.MachineLearningComponentVersionData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.MachineLearning.MachineLearningComponentVersionResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.MachineLearning.MachineLearningComponentVersionData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.MachineLearning.MachineLearningComponentVersionResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, version As String, data As MachineLearningComponentVersionData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of MachineLearningComponentVersionResource))

Paramètres

waitUntil
WaitUntil

Completed si la méthode doit attendre la fin de l’opération de longue durée sur le service ; Started s’il doit retourner après le démarrage de l’opération. Pour plus d’informations sur les opérations de longue durée, consultez Exemples d’opérations Azure.Core Long-Running.

version
String

Identificateur de version.

data
MachineLearningComponentVersionData

Entité de version à créer ou à mettre à jour.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

version est une chaîne vide, et on s’attendait à ce qu’elle ne soit pas vide.

version ou data est null.

S’applique à