code: public OrderInner createOrUpdate(String deviceName, String resourceGroupName, OrderInner order) {
          return createOrUpdateWithServiceResponseAsync(deviceName, resourceGroupName, order).toBlocking().last().body();
      }
docs: Creates or updates an order.
  
  @param deviceName The device name.
  @param resourceGroupName The resource group name.
  @param order The order to be created or updated.
  @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 OrderInner object if successful.