'Create an inventory.
:param resource_provider_uuid: UUID of the resource provider
:type resource_provider_uuid: str
:param inventory: The inventory
:type inventory: dict: resource_class (required), total (required),
reserved (required), min_unit (required), max_unit (required),
step_size (required), allocation_ratio (required)'

@check_placement_api_available
def create_inventory(self, resource_provider_uuid, inventory):

    url = ('/resource_providers/%s/inventories' % resource_provider_uuid)
    self._post(url, inventory)
