def rename(self, name): """Rename a Folder resource :type name: str """ item = self.list_item_all_fields item.set_property('Title', name) item.set_property('FileLeafRef', name) qry = UpdateEntityQuery(item) self.context.add_query(qry) return self
def update(self): """Updates the directory object.""" qry = UpdateEntityQuery(self) self.context.add_query(qry) return self
def update(self): """Updates a Team.""" qry = UpdateEntityQuery(self) self.context.add_query(qry) return self
def update(self): """Update the list item.""" self.ensure_type_name(self.parent_list) qry = UpdateEntityQuery(self) self.context.add_query(qry) return self
def update(self): """Update a Web resource""" qry = UpdateEntityQuery(self) self.context.add_query(qry) return self
def update_list_item(self, list_name, item_id, field_values): list_item_to_update = self.get_list_item(list_name, item_id) for name, value in field_values: list_item_to_update.set_property(name, value) qry = UpdateEntityQuery(list_item_to_update) self.add_query(qry)
def update(self, *args): """Updates the resource.""" qry = UpdateEntityQuery(self) self.context.add_query(qry) return self
def update(self): """Updates the Site page.""" qry = UpdateEntityQuery(self) self.context.add_query(qry) return self
def update(self): qry = UpdateEntityQuery(self) self.context.add_query(qry) return self
def update(self, *args): """The recommended way to update a SharePoint entity""" qry = UpdateEntityQuery(self) self.context.add_query(qry) return self
def update(self): """Updates the Permission entity.""" qry = UpdateEntityQuery(self) self.context.add_query(qry) return self
def update(self): """Update Tenant settings""" qry = UpdateEntityQuery(self) self.context.add_query(qry) return self