#NEWLINE# def requireParams( self , required , provided ) : #NEWLINE# #INDENT# '\n        Throws an exception if any of the parameters in the required iterable\n        is not found in the provided parameter set.\n\n        :param required: An iterable of required params, or if just one is\n            required, you can simply pass it as a string.\n        :type required: list, tuple, or str\n        :param provided: The list of provided parameters.\n        :type provided: dict\n        ' #NEWLINE# if isinstance ( required , six . string_types ) : #NEWLINE# #INDENT# required = ( required , ) #NEWLINE# #UNINDENT# for param in required : #NEWLINE# #INDENT# if ( param not in provided ) : #NEWLINE# #INDENT# raise RestException ( ( "Parameter '%s' is required." % param ) )