Partager via


MachineLearningEnvironmentContainerCollection.CreateOrUpdateAsync Méthode

Définition

Créer ou mettre à jour un conteneur.

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

Paramètres

waitUntil
WaitUntil

Completed si la méthode doit attendre pour retourner jusqu’à ce que l’opération de longue durée soit terminée sur le service ; Started si elle doit être retournée 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 de Long-Running Azure.Core.

name
String

Nom du conteneur. Cette valeur respecte la casse.

data
MachineLearningEnvironmentContainerData

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

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

name est une chaîne vide et devait être non vide.

name ou data est null.

S’applique à