Example #1
0
    def reservations(self):
        """
        Access the reservations

        :returns: twilio.rest.taskrouter.v1.workspace.worker.reservation.ReservationList
        :rtype: twilio.rest.taskrouter.v1.workspace.worker.reservation.ReservationList
        """
        if self._reservations is None:
            self._reservations = ReservationList(
                self._version,
                workspace_sid=self._solution['workspace_sid'],
                worker_sid=self._solution['sid'],
            )
        return self._reservations
Example #2
0
 def reservations(self):
     """
     Access the reservations
     
     :returns: ReservationList
     :rtype: ReservationList
     """
     if self._reservations is None:
         self._reservations = ReservationList(
             self._version,
             workspace_sid=self._solution['workspace_sid'],
             worker_sid=self._solution['sid'],
         )
     return self._reservations