Ejemplo n.º 1
0
 def set_show_in_edit_form(self, flag):
     """Sets the value of the ShowInEditForm property for this fields.
     :type flag: bool
     """
     qry = ServiceOperationQuery(self, "setShowInEditForm", [flag])
     self.context.add_query(qry)
 def delete(self, site_id):
     """Deletes a SharePoint site"""
     payload = {"siteId": site_id}
     qry = ServiceOperationQuery(self, "Delete", None, payload)
     self.context.add_query(qry)
     return self
Ejemplo n.º 3
0
 def get_site_health_status(self, sourceUrl):
     result = ClientResult(PortalHealthStatus)
     params = {"sourceUrl": sourceUrl}
     qry = ServiceOperationQuery(self, "GetSiteHealthStatus", None, params, None, result)
     self.context.add_query(qry)
     return result
Ejemplo n.º 4
0
 def get_all_client_side_components(self):
     result = ClientResult(None)
     qry = ServiceOperationQuery(self, "getAllClientSideComponents", None,
                                 None, None, result)
     self.context.add_query(qry)
     return result
 def getByIds(self, ids):
     """Returns the directory objects specified in a list of IDs."""
     result = ClientResult(None)
     qry = ServiceOperationQuery(self, "getByIds", None, None, None, result)
     self.context.add_query(qry)
     return result
 def reply_all(self):
     """Reply to all recipients of a message. The message is then saved in the Sent Items folder. """
     qry = ServiceOperationQuery(self, "replyAll")
     self.context.add_query(qry)
     return self
Ejemplo n.º 7
0
 def get_regional_datetime_schema(self):
     return_type = ClientResult(str)
     qry = ServiceOperationQuery(self, "GetRegionalDateTimeSchema", None,
                                 None, None, return_type)
     self.context.add_query(qry)
     return return_type
Ejemplo n.º 8
0
 def delete_all(self):
     """Permanently deletes all Recycle Bin items."""
     qry = ServiceOperationQuery(self, "DeleteAll")
     self.context.add_query(qry)
     return self
Ejemplo n.º 9
0
 def restore_all(self):
     """Restores all Recycle Bin items to their original locations."""
     qry = ServiceOperationQuery(self, "RestoreAll")
     self.context.add_query(qry)
     return self
 def global_nav(self):
     return_type = MenuState()
     qry = ServiceOperationQuery(self, "GlobalNav", None, None, None,
                                 return_type)
     self.context.add_query(qry)
     return return_type
Ejemplo n.º 11
0
 def move_all_to_second_stage(self):
     qry = ServiceOperationQuery(self, "MoveAllToSecondStage")
     self.context.add_query(qry)
     return self
 def get_user_profile(self):
     result = UserProfile(self.context, ResourcePath("GetUserProfile", self.resource_path))
     qry = ServiceOperationQuery(self, "GetUserProfile", None, None, None, result)
     self.context.add_query(qry)
     return result
 def restore_version(self):
     qry = ServiceOperationQuery(self, "restoreVersion")
     self.context.add_query(qry)
     return self
Ejemplo n.º 14
0
 def set_show_in_new_form(self, flag):
     """Sets the value of the ShowInNewForm property for this fields."""
     qry = ServiceOperationQuery(self, "setShowInNewForm", [flag])
     self.context.add_query(qry)
     return self
Ejemplo n.º 15
0
 def unregister_hub_site(self):
     qry = ServiceOperationQuery(self, "UnRegisterHubSite", None, None,
                                 None, None)
     self.context.add_query(qry)
     return self
Ejemplo n.º 16
0
 def get_global_schema_xml(self):
     result = ClientResult(self.context)
     qry = ServiceOperationQuery(self, "GetGlobalSchemaXml", None, None, None, result)
     self.context.add_query(qry)
     return result
 def reply(self):
     """Reply to the sender of a message by specifying a comment and using the Reply method. The message is then
     saved in the Sent Items folder. """
     qry = ServiceOperationQuery(self, "reply")
     self.context.add_query(qry)
     return self
Ejemplo n.º 18
0
 def get_hub_sites(self):
     hub_sites = HubSiteCollection(self.context)
     qry = ServiceOperationQuery(self, "GetHubSites", None, None, None, hub_sites)
     self.context.add_query(qry)
     return hub_sites
 def create(self, request):
     """Create a modern site"""
     response = SPSiteCreationResponse()
     qry = ServiceOperationQuery(self, "Create", None, request, "request", response)
     self.context.add_query(qry)
     return response
Ejemplo n.º 20
0
 def expire(self):
     qry = ServiceOperationQuery(self, "Expire")
     self.context.add_query(qry)
     return self
Ejemplo n.º 21
0
 def get_sharing_link_data(self, linkUrl):
     result = SharingLinkData()
     qry = ServiceOperationQuery(self, "GetSharingLinkData", [linkUrl],
                                 None, None, result)
     self.context.add_query(qry)
     return result
Ejemplo n.º 22
0
 def get_channels(self, start_index=0, limit=None):
     return_type = VideoChannelCollection(self.context)
     params = {"startIndex": start_index, "limit": limit}
     qry = ServiceOperationQuery(self, "GetChannels", params, None, None, return_type)
     self.context.add_query(qry)
     return return_type
Ejemplo n.º 23
0
 def add_supported_ui_language(self, lcid):
     qry = ServiceOperationQuery(self, "getSubWebsFilteredForCurrentUser",
                                 {"lcid": lcid}, None, None, None)
     self.context.add_query(qry)
     return self
Ejemplo n.º 24
0
 def _resolve_folder_url():
     list_item_creation_information.FolderUrl = self.context.base_url + self.root_folder.serverRelativeUrl
     add_item_qry = ServiceOperationQuery(
         self, "addItem", None, list_item_creation_information,
         "parameters", item)
     self.context.add_query(add_item_qry)
Ejemplo n.º 25
0
 def _get_items_inner():
     caml_query = CamlQuery.parse(self.view_query)
     qry = ServiceOperationQuery(self._parent_list, "GetItems", None,
                                 caml_query, "query",
                                 self._parent_list.items)
     self.context.add_query(qry)
Ejemplo n.º 26
0
 def get_checked_out_files(self):
     result = CheckedOutFileCollection(self.context)
     qry = ServiceOperationQuery(self, "GetCheckedOutFiles", None, None,
                                 None, result)
     self.context.add_query(qry)
     return result
 def get_my_followers(self):
     result = PersonPropertiesCollection(self.context)
     qry = ServiceOperationQuery(self, "GetMyFollowers", None, None, None,
                                 result)
     self.context.add_query(qry)
     return result
Ejemplo n.º 28
0
 def recycle(self):
     """Moves the list to the Recycle Bin and returns the identifier of the new Recycle Bin item."""
     result = ClientResult(self.context)
     qry = ServiceOperationQuery(self, "Recycle", None, None, None, result)
     self.context.add_query(qry)
     return result
Ejemplo n.º 29
0
 def enable_index(self):
     result = ClientResult(self.context)
     qry = ServiceOperationQuery(self, "enableIndex", None, None, None,
                                 result)
     self.context.add_query(qry)
     return result
Ejemplo n.º 30
0
 def clone(self):
     """Create a copy of a team. This operation also creates a copy of the corresponding group. """
     qry = ServiceOperationQuery(self, "clone")
     self.context.add_query(qry)
     return self