'Get resource provider inventory.
:param resource_provider_uuid: UUID of the resource provider
:type resource_provider_uuid: str
:param resource_class: Resource class name of the inventory to be
returned
:type resource_class: str
:raises n_exc.PlacementInventoryNotFound: For failure to find inventory
for a resource provider'

@check_placement_api_available
def get_inventory(self, resource_provider_uuid, resource_class):

    url = ('/resource_providers/%s/inventories/%s' % (resource_provider_uuid, resource_class))
    try:
        return self._get(url).json()
    except ks_exc.NotFound as e:
        if ('No    resource    provider    with    uuid' in e.details):
            raise n_exc.PlacementResourceProviderNotFound(resource_provider=resource_provider_uuid)
        elif (_('No    inventory    of    class') in e.details):
            raise n_exc.PlacementInventoryNotFound(resource_provider=resource_provider_uuid, resource_class=resource_class)
        else:
            raise
