code: public DataBoxEdgeDeviceInner createOrUpdate(String deviceName, String resourceGroupName, DataBoxEdgeDeviceInner dataBoxEdgeDevice) {
          return createOrUpdateWithServiceResponseAsync(deviceName, resourceGroupName, dataBoxEdgeDevice).toBlocking().last().body();
      }
docs: Creates or updates a Data Box Edge/Gateway resource.
  
  @param deviceName The device name.
  @param resourceGroupName The resource group name.
  @param dataBoxEdgeDevice The resource object.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @throws CloudException thrown if the request is rejected by server
  @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
  @return the DataBoxEdgeDeviceInner object if successful.