@@ -59,7 +59,7 @@ def _get_paged(
5959 Used to get the paged data
6060
6161 :param url: string: The url to retrieve
62- :param params: dict (default is None): The parameters
62+ :param params: dict (default is None): The parameter's
6363 :param data: dict (default is None): The data
6464 :param flags: string[] (default is None): The flags
6565 :param trailing: bool (default is None): If True, a trailing slash is added to the url
@@ -210,7 +210,7 @@ def get_child_pages(self, page_id):
210210
211211 def get_page_id (self , space , title , type = "page" ):
212212 """
213- Provide content id from search result by title and space
213+ Provide content id from search result by title and space.
214214 :param space: SPACE key
215215 :param title: title
216216 :param type: type of content: Page or Blogpost. Defaults to page
@@ -250,7 +250,7 @@ def get_parent_content_title(self, page_id):
250250
251251 def get_page_space (self , page_id ):
252252 """
253- Provide space key from content id
253+ Provide space key from content id.
254254 :param page_id: content ID
255255 :return:
256256 """
@@ -1138,8 +1138,8 @@ def attach_content(
11381138 comment = None ,
11391139 ):
11401140 """
1141- Attach (upload) a file to a page, if it exists it will update the
1142- automatically version the new file and keep the old one.
1141+ Attach (upload) a file to a page, if it exists it will update automatically the
1142+ version the new file and keep the old one.
11431143 :param title: The page name
11441144 :type title: ``str``
11451145 :param space: The space name
@@ -1218,8 +1218,8 @@ def attach_file(
12181218 comment = None ,
12191219 ):
12201220 """
1221- Attach (upload) a file to a page, if it exists it will update the
1222- automatically version the new file and keep the old one.
1221+ Attach (upload) a file to a page, if it exists it will update automatically the
1222+ version the new file and keep the old one.
12231223 :param title: The page name
12241224 :type title: ``str``
12251225 :param space: The space name
@@ -2899,8 +2899,8 @@ def add_user_to_group(self, username, group_name):
28992899 """
29002900 Add given user to a group
29012901
2902- :param username: str
2903- :param group_name: str
2902+ :param username: str - username of user to add to group
2903+ :param group_name: str - name of group to add user to
29042904 :return: Current state of the group
29052905 """
29062906 url = "rest/api/2/group/user"
@@ -2919,11 +2919,11 @@ def add_space_permissions(
29192919 """
29202920 Add permissions to a space
29212921
2922- :param space_key: str
2923- :param subject_type: str
2924- :param subject_id: str
2925- :param operation_key: str
2926- :param operation_target: str
2922+ :param space_key: str - key of space to add permissions to
2923+ :param subject_type: str - type of subject to add permissions for
2924+ :param subject_id: str - id of subject to add permissions for
2925+ :param operation_key: str - key of operation to add permissions for
2926+ :param operation_target: str - target of operation to add permissions for
29272927 :return: Current permissions of space
29282928 """
29292929 url = "rest/api/space/{}/permission" .format (space_key )
0 commit comments