|
55 | 55 | from office365.sharepoint.lists.render_data_parameters import RenderListDataParameters
|
56 | 56 | from office365.sharepoint.lists.template_collection import ListTemplateCollection
|
57 | 57 | from office365.sharepoint.lists.template_type import ListTemplateType
|
| 58 | +from office365.sharepoint.marketplace.corporatecuratedgallery.addins.principals_response import ( |
| 59 | + SPGetAddinPrincipalsResponse, |
| 60 | +) |
58 | 61 | from office365.sharepoint.marketplace.corporatecuratedgallery.available_addins_response import (
|
59 | 62 | SPAvailableAddinsResponse,
|
60 | 63 | )
|
@@ -540,6 +543,26 @@ def get_all_client_side_components(self):
|
540 | 543 | self.context.add_query(qry)
|
541 | 544 | return return_type
|
542 | 545 |
|
| 546 | + def get_addin_principals_having_permissions_in_sites( |
| 547 | + self, server_relative_urls=None, urls=None |
| 548 | + ): |
| 549 | + """ |
| 550 | + :param list[str] server_relative_urls: |
| 551 | + :param list[str] urls: |
| 552 | + """ |
| 553 | + payload = {"serverRelativeUrls": server_relative_urls, "urls": urls} |
| 554 | + return_type = ClientResult(self.context, SPGetAddinPrincipalsResponse()) |
| 555 | + qry = ServiceOperationQuery( |
| 556 | + self, |
| 557 | + "GetAddinPrincipalsHavingPermissionsInSites", |
| 558 | + None, |
| 559 | + payload, |
| 560 | + None, |
| 561 | + return_type, |
| 562 | + ) |
| 563 | + self.context.add_query(qry) |
| 564 | + return return_type |
| 565 | + |
543 | 566 | def get_app_bdc_catalog(self):
|
544 | 567 | """
|
545 | 568 | Returns the Business Data Connectivity (BDC) MetadataCatalog for an application that gives access to the
|
@@ -645,6 +668,42 @@ def get_recycle_bin_items(
|
645 | 668 | self.context.add_query(qry)
|
646 | 669 | return return_type
|
647 | 670 |
|
| 671 | + def get_recycle_bin_items_by_query_info( |
| 672 | + self, |
| 673 | + is_ascending=True, |
| 674 | + item_state=None, |
| 675 | + order_by=None, |
| 676 | + paging_info=None, |
| 677 | + row_limit=100, |
| 678 | + show_only_my_items=False, |
| 679 | + ): |
| 680 | + """ |
| 681 | + Gets the recycle bin items that are based on the specified query. |
| 682 | +
|
| 683 | + :param str paging_info: an Object that is used to obtain the next set of rows in a paged view of the Recycle Bin |
| 684 | + :param int row_limit: a limit for the number of items returned in the query per page. |
| 685 | + :param bool is_ascending: a Boolean value that specifies whether to sort in ascending order. |
| 686 | + :param int order_by: the column by which to order the Recycle Bin query. |
| 687 | + :param int item_state: Recycle Bin stage of items to return in the query. |
| 688 | + :param bool show_only_my_items: |
| 689 | + """ |
| 690 | + return_type = RecycleBinItemCollection( |
| 691 | + self.context, self.recycle_bin.resource_path |
| 692 | + ) |
| 693 | + payload = { |
| 694 | + "rowLimit": row_limit, |
| 695 | + "isAscending": is_ascending, |
| 696 | + "pagingInfo": paging_info, |
| 697 | + "orderBy": order_by, |
| 698 | + "itemState": item_state, |
| 699 | + "ShowOnlyMyItems": show_only_my_items, |
| 700 | + } |
| 701 | + qry = ServiceOperationQuery( |
| 702 | + self, "GetRecycleBinItemsByQueryInfo", None, payload, None, return_type |
| 703 | + ) |
| 704 | + self.context.add_query(qry) |
| 705 | + return return_type |
| 706 | + |
648 | 707 | def get_all_webs(self):
|
649 | 708 | """Returns a collection containing a flat list of all Web objects in the Web."""
|
650 | 709 | from office365.sharepoint.webs.collection import WebCollection
|
|
0 commit comments