(self, request, tenant_id, queue_name)
return json.dumps(response_body)
Posts messages to the queue.
Posts messages to the queue.
Posts messages to the queue .
def post_messages_to_queue(self, request, tenant_id, queue_name):
        """
        Posts messages to the queue.
        """
        q_collection = self._queue_collection(tenant_id)
        messages = json.loads(request.content.read().decode("utf-8"))
        (response_body, response_code) = q_collection.post_messages_to_queue(
            queue_name, messages, _client_id(request))
        request.setResponseCode(response_code)
        return json.dumps(response_body)
def post_messages_to_queue ( self , request , tenant_id , queue_name ) : q_collection = self . _queue_collection ( tenant_id ) messages = json . loads ( request . content . read ( ) . decode ( "utf-8" ) ) ( response_body , response_code ) = q_collection . post_messages_to_queue ( queue_name , messages , _client_id ( request ) ) request . setResponseCode ( response_code ) return json . dumps ( response_body )