Esempio n. 1
0
    def get_recycle_bin_items(self,
                              paging_info=None,
                              row_limit=100,
                              is_ascending=True,
                              order_by=None,
                              item_state=None):
        """
        Gets the recycle bin items that are based on the specified query.

        :param str paging_info: an Object that is used to obtain the next set of rows in a paged view of the Recycle Bin
        :param int row_limit: a limit for the number of items returned in the query per page.
        :param bool is_ascending: a Boolean value that specifies whether to sort in ascending order.
        :param int order_by: the column by which to order the Recycle Bin query.
        :param int item_state: Recycle Bin stage of items to return in the query.
        """
        result = RecycleBinItemCollection(self.context)
        payload = {
            "rowLimit": row_limit,
            "isAscending": is_ascending,
            "pagingInfo": paging_info,
            "orderBy": order_by,
            "itemState": item_state
        }
        qry = ServiceOperationQuery(self, "GetRecycleBinItems", None, payload,
                                    None, result)
        self.context.add_query(qry)
        return result
 def get_recycle_bin_items(self, rowLimit=100, isAscending=True):
     result = RecycleBinItemCollection(self.context)
     payload = {"rowLimit": rowLimit, "isAscending": isAscending}
     qry = ServiceOperationQuery(self, "GetRecycleBinItems", None, payload,
                                 None, result)
     self.context.add_query(qry)
     return result
Esempio n. 3
0
    def get_recycle_bin_items(self, row_limit=100, is_ascending=True):
        """
        Returns a collection of recycle bin items based on the specified query.

        :param int row_limit:
        :param bool is_ascending:
        """
        result = RecycleBinItemCollection(self.context)
        payload = {"rowLimit": row_limit, "isAscending": is_ascending}
        qry = ServiceOperationQuery(self, "GetRecycleBinItems", None, payload,
                                    None, result)
        self.context.add_query(qry)
        return result
Esempio n. 4
0
    def get_recycle_bin_items(self, pagingInfo=None, rowLimit=100, isAscending=True, orderBy=None, itemState=None):
        """

        :param str pagingInfo:
        :param int rowLimit:
        :param bool isAscending:
        :param orderBy: int
        :param int itemState:
        """
        result = RecycleBinItemCollection(self.context)
        payload = {
            "rowLimit": rowLimit,
            "isAscending": isAscending
        }
        qry = ServiceOperationQuery(self, "GetRecycleBinItems", None, payload, None, result)
        self.context.add_query(qry)
        return result
Esempio n. 5
0
 def recycle_bin(self):
     """Get recycle bin"""
     return self.properties.get('RecycleBin',
                                RecycleBinItemCollection(self.context,
                                                         ResourcePath("RecycleBin", self.resource_path)))