def create_or_update(device_name, order, resource_group_name, custom_headers:nil)
      response = create_or_update_async(device_name, order, resource_group_name, custom_headers:custom_headers).value!
      response.body unless response.nil?
    end
def create_or_update(device_name, order, resource_group_name, custom_headers:nil)
      response = create_or_update_async(device_name, order, resource_group_name, custom_headers:custom_headers).value!
      response.body unless response.nil?
    end
Creates or updates an order.

 @param device_name [String] The device name.
 @param order [Order] The order to be created or updated.
 @param resource_group_name [String] The resource group name.
 @param custom_headers [Hash{String => String}] A hash of custom headers that
 will be added to the HTTP request.

 @return [Order] operation results.