#NEWLINE# def reserve( self , context , expire = None , project_id = None , user_id = None , **deltas ) : #NEWLINE# #INDENT# "Check quotas and reserve resources.\n\n        For counting quotas--those quotas for which there is a usage\n        synchronization function--this method checks quotas against\n        current usage and the desired deltas.  The deltas are given as\n        keyword arguments, and current usage and other reservations\n        are factored into the quota check.\n\n        This method will raise a QuotaResourceUnknown exception if a\n        given resource is unknown or if it does not have a usage\n        synchronization function.\n\n        If any of the proposed values is over the defined quota, an\n        OverQuota exception will be raised with the sorted list of the\n        resources which are too high.  Otherwise, the method returns a\n        list of reservation UUIDs which were created.\n\n        :param context: The request context, for access checks.\n        :param expire: An optional parameter specifying an expiration\n                       time for the reservations.  If it is a simple\n                       number, it is interpreted as a number of\n                       seconds and added to the current time; if it is\n                       a datetime.timedelta object, it will also be\n                       added to the current time.  A datetime.datetime\n                       object will be interpreted as the absolute\n                       expiration time.  If None is specified, the\n                       default expiration time set by\n                       --default-reservation-expire will be used (this\n                       value will be treated as a number of seconds).\n        :param project_id: Specify the project_id if current context\n                           is admin and admin wants to impact on\n                           common user's tenant.\n        " #NEWLINE# reservations = self . _driver . reserve ( context , self . _resources , deltas , expire = expire , project_id = project_id , user_id = user_id ) #NEWLINE# LOG . debug ( 'Created reservations %s' , reservations ) #NEWLINE# return reservations