Partager via


VoiceServicesCommunicationsGatewayCollection.CreateOrUpdateAsync Méthode

Définition

Créer un CommunicationsGateway

  • Chemin/abonnements de la demande/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways/{communicationsGatewayName}
  • IdCommunicationsGateways_CreateOrUpdate d’opération
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.VoiceServices.VoiceServicesCommunicationsGatewayResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string communicationsGatewayName, Azure.ResourceManager.VoiceServices.VoiceServicesCommunicationsGatewayData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.VoiceServices.VoiceServicesCommunicationsGatewayData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.VoiceServices.VoiceServicesCommunicationsGatewayResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.VoiceServices.VoiceServicesCommunicationsGatewayData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.VoiceServices.VoiceServicesCommunicationsGatewayResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, communicationsGatewayName As String, data As VoiceServicesCommunicationsGatewayData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of VoiceServicesCommunicationsGatewayResource))

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.

communicationsGatewayName
String

Identificateur unique pour ce déploiement.

data
VoiceServicesCommunicationsGatewayData

Paramètres de création de ressource.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

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

communicationsGatewayName ou data est null.

S’applique à