Partilhar via


VoiceServicesCommunicationsGatewayCollection.CreateOrUpdateAsync Método

Definição

Criar um CommunicationsGateway

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways/{communicationsGatewayName}
  • IdCommunicationsGateways_CreateOrUpdate de operação
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))

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 longa execução, consulte Exemplos de operação de Long-Running do Azure.Core.

communicationsGatewayName
String

Identificador exclusivo para essa implantação.

data
VoiceServicesCommunicationsGatewayData

Parâmetros de criação de recursos.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

communicationsGatewayName é uma cadeia de caracteres vazia e era esperado que não estivesse vazio.

communicationsGatewayName ou data é nulo.

Aplica-se a