def get_by_id(self, group_id): """Returns the list item with the specified list item identifier.""" group = Group( self.context, ResourcePathServiceOperation(self.context, self.resource_path, "getbyid", [group_id])) return group
def add(self, group_creation_information): """Creates a Group resource""" group = Group(self.context) qry = CreateEntityQuery(self, group_creation_information) self.context.add_query(qry, group) self.add_child(group) return group
def add(self, group_creation_information): """Creates a Group resource""" group = Group(self.context) qry = ClientQuery(self.url, ActionType.CreateEntry, group_creation_information) self.context.add_query(qry, group) self.add_child(group) return group
def associatedMemberGroup(self): """Gets or sets the group of users who have been given contribute permissions to the Web site.""" if self.is_property_available('AssociatedMemberGroup'): return self.properties['AssociatedMemberGroup'] else: return Group( self.context, ResourcePath("AssociatedMemberGroup", self.resource_path))
def associatedOwnerGroup(self): """Gets or sets the associated owner group of the Web site.""" if self.is_property_available('AssociatedOwnerGroup'): return self.properties['AssociatedOwnerGroup'] else: return Group( self.context, ResourcePath("AssociatedOwnerGroup", self.resource_path))
def add(self, group_creation_information): """Creates a Group resource""" group = Group(self.context) qry = ClientQuery(self.resourceUrl, HttpMethod.Post, group_creation_information) self.context.add_query(qry, group) self.add_child(group) return group
def get_by_name(self, group_name): """Returns a cross-site group from the collection based on the name of the group.""" return Group( self.context, ResourcePathServiceOperation(self.context, self.resource_path, "getbyname", [group_name]))