def get_gradebook_id(self, gbuuid):
        """Return gradebookid for a given gradebook uuid.

        Args:
            gbuuid (str): gradebook uuid, i.e. ``STELLAR:/project/gbngtest``

        Raises:
            PyLmodUnexpectedData: No gradebook id returned
            requests.RequestException: Exception connection error
            ValueError: Unable to decode response content

        Returns:
            str: value of gradebook id
        """
        gradebook = self.get('gradebook', params={'uuid': gbuuid})
        if 'data' not in gradebook:
            failure_messsage = ('Error in get_gradebook_id '
                                'for {0} - no data'.format(
                                    gradebook
                                ))
            log.error(failure_messsage)
            raise PyLmodUnexpectedData(failure_messsage)
        return gradebook['data']['gradebookId']
def get_gradebook_id ( self , gbuuid ) : gradebook = self . get ( 'gradebook' , params = { 'uuid' : gbuuid } ) if 'data' not in gradebook : failure_messsage = ( 'Error in get_gradebook_id ' 'for {0} - no data' . format ( gradebook ) ) log . error ( failure_messsage ) raise PyLmodUnexpectedData ( failure_messsage ) return gradebook [ 'data' ] [ 'gradebookId' ]
Return gradebookid for a given gradebook uuid.

        Args:
            gbuuid (str): gradebook uuid, i.e. ``STELLAR:/project/gbngtest``

        Raises:
            PyLmodUnexpectedData: No gradebook id returned
            requests.RequestException: Exception connection error
            ValueError: Unable to decode response content

        Returns:
            str: value of gradebook id