Compartilhar via


DevicesOperationsExtensions.CreateOrUpdateAsync Método

Definição

Cria ou atualiza um recurso do Data Box Edge/Gateway.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.EdgeGateway.Models.DataBoxEdgeDevice> CreateOrUpdateAsync (this Microsoft.Azure.Management.EdgeGateway.IDevicesOperations operations, string deviceName, Microsoft.Azure.Management.EdgeGateway.Models.DataBoxEdgeDevice dataBoxEdgeDevice, string resourceGroupName, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateAsync : Microsoft.Azure.Management.EdgeGateway.IDevicesOperations * string * Microsoft.Azure.Management.EdgeGateway.Models.DataBoxEdgeDevice * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.EdgeGateway.Models.DataBoxEdgeDevice>
<Extension()>
Public Function CreateOrUpdateAsync (operations As IDevicesOperations, deviceName As String, dataBoxEdgeDevice As DataBoxEdgeDevice, resourceGroupName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of DataBoxEdgeDevice)

Parâmetros

operations
IDevicesOperations

O grupo de operações para esse método de extensão.

deviceName
String

O nome do dispositivo.

dataBoxEdgeDevice
DataBoxEdgeDevice

O objeto de recurso.

resourceGroupName
String

O nome do grupo de recursos.

cancellationToken
CancellationToken

O token de cancelamento.

Retornos

Aplica-se a