/// <summary>
 /// Modifies a Data Box Edge/Data Box Gateway resource.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='deviceName'>
 /// The device name.
 /// </param>
 /// <param name='parameters'>
 /// The resource parameters.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The resource group name.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <DataBoxEdgeDevice> UpdateAsync(this IDevicesOperations operations, string deviceName, DataBoxEdgeDevicePatch parameters, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.UpdateWithHttpMessagesAsync(deviceName, parameters, resourceGroupName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Modifies a Data Box Edge/Data Box Gateway resource.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='deviceName'>
 /// The device name.
 /// </param>
 /// <param name='parameters'>
 /// The resource parameters.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The resource group name.
 /// </param>
 public static DataBoxEdgeDevice Update(this IDevicesOperations operations, string deviceName, DataBoxEdgeDevicePatch parameters, string resourceGroupName)
 {
     return(operations.UpdateAsync(deviceName, parameters, resourceGroupName).GetAwaiter().GetResult());
 }