@@ -355,6 +355,8 @@ def set_project_avatar(self, key, icon, content_type="image/png"):
355355 def project_keys (self , key , start = 0 , limit = None , filter_str = None ):
356356 """
357357 Get SSH access keys added to the project
358+ :param start:
359+ :param limit:
358360 :param key: The project key
359361 :param filter_str: OPTIONAL: users filter string
360362 :return: The list of SSH access keys
@@ -437,6 +439,9 @@ def _url_project_groups(self, project_key):
437439 def project_groups (self , key , start = 0 , limit = None , filter_str = None ):
438440 """
439441 Get Project Groups
442+ :param limit:
443+ :param limit:
444+ :param start:
440445 :param key: The project key
441446 :param filter_str: OPTIONAL: group filter string
442447 :return:
@@ -574,8 +579,10 @@ def _url_repos(self, project_key, api_root=None, api_version=None):
574579 def repo_list (self , project_key , start = 0 , limit = 25 ):
575580 """
576581 Get repositories list from project
577- :param project_key: The project key
578582
583+ :param project_key: The project key
584+ :param start:
585+ :param limit:
579586 :return:
580587 """
581588 url = self ._url_repos (project_key )
@@ -605,7 +612,6 @@ def create_repo(self, project_key, repository_slug, forkable=False, is_private=T
605612 :param project_key: The project matching the projectKey supplied in the resource path as shown in URL.
606613 :type project_key: str
607614 :param repository_slug: Name of repository to create (i.e. "My repo").
608- :type repository: str
609615 :param forkable: Set the repository to be forkable or not.
610616 :type forkable: bool
611617 :param is_private: Set the repository to be private or not.
@@ -715,6 +721,8 @@ def fork_repository(self, project_key, repository_slug, new_repository_slug):
715721 def repo_keys (self , project_key , repo_key , start = 0 , limit = None , filter_str = None ):
716722 """
717723 Get SSH access keys added to the repository
724+ :param start:
725+ :param limit:
718726 :param project_key: The project key
719727 :param repo_key: The repository key
720728 :param filter_str: OPTIONAL: users filter string
@@ -736,6 +744,8 @@ def _url_repo_users(self, project_key, repo):
736744 def repo_users (self , project_key , repo_key , start = 0 , limit = None , filter_str = None ):
737745 """
738746 Get users who has permission in repository
747+ :param start:
748+ :param limit:
739749 :param project_key: The project key
740750 :param repo_key: The repository key
741751 :param filter_str: OPTIONAL: Users filter string
@@ -786,6 +796,8 @@ def _url_repo_groups(self, project_key, repo):
786796 def repo_groups (self , project_key , repo_key , start = 0 , limit = None , filter_str = None ):
787797 """
788798 Get repository Groups
799+ :param start:
800+ :param limit:
789801 :param project_key: The project key
790802 :param repo_key: The repository key
791803 :param filter_str: OPTIONAL: group filter string
@@ -957,7 +969,6 @@ def create_branch(self, project_key, repository_slug, name, start_point, message
957969 :param project_key: The project matching the projectKey supplied in the resource path as shown in URL.
958970 :type project_key: str
959971 :param repository_slug: Name of repository where branch is created (i.e. "my_repo").
960- :type repository: str
961972 :param name: Name of branch to create (i.e. "my_branch").
962973 :type name: str
963974 :param start_point: Name of branch to branch from.
@@ -1258,6 +1269,7 @@ def delete_pull_request(self, project_key, repository_slug, pull_request_id, pul
12581269 def get_pull_requests_activities (self , project_key , repository_slug , pull_request_id , start = 0 , limit = None ):
12591270 """
12601271 Get pull requests activities
1272+ :param limit:
12611273 :param project_key:
12621274 :param repository_slug:
12631275 :param pull_request_id: the ID of the pull request within the repository
@@ -1275,6 +1287,8 @@ def get_pull_requests_activities(self, project_key, repository_slug, pull_reques
12751287 def get_pull_requests_changes (self , project_key , repository_slug , pull_request_id , start = 0 , limit = None ):
12761288 """
12771289 Get pull requests changes
1290+ :param start:
1291+ :param limit:
12781292 :param project_key:
12791293 :param repository_slug:
12801294 :param pull_request_id: the ID of the pull request within the repository
@@ -1291,6 +1305,8 @@ def get_pull_requests_changes(self, project_key, repository_slug, pull_request_i
12911305 def get_pull_requests_commits (self , project_key , repository_slug , pull_request_id , start = 0 , limit = None ):
12921306 """
12931307 Get pull requests commits
1308+ :param start:
1309+ :param limit:
12941310 :param project_key:
12951311 :param repository_slug:
12961312 :param pull_request_id: the ID of the pull request within the repository
@@ -1312,6 +1328,8 @@ def _url_pull_request_participants(self, project_key, repository_slug, pull_requ
13121328 def get_pull_requests_participants (self , project_key , repository_slug , pull_request_id , start = 0 , limit = None ):
13131329 """
13141330 Get all participants of a pull request
1331+ :param start:
1332+ :param limit:
13151333 :param project_key:
13161334 :param repository_slug:
13171335 :param pull_request_id:
@@ -1668,6 +1686,7 @@ def get_commits(
16681686 def get_changelog (self , project_key , repository_slug , ref_from , ref_to , start = 0 , limit = None ):
16691687 """
16701688 Get change log between 2 refs
1689+ :param start:
16711690 :param project_key:
16721691 :param repository_slug:
16731692 :param ref_from:
@@ -1780,6 +1799,7 @@ def get_file_list(self, project_key, repository_slug, query=None, start=0, limit
17801799 Retrieve a page of files from particular directory of a repository.
17811800 The search is done recursively, so all files from any sub-directory of the specified directory will be returned.
17821801 The authenticated user must have REPO_READ permission for the specified repository to call this resource.
1802+ :param start:
17831803 :param project_key:
17841804 :param repository_slug:
17851805 :param query: the commit ID or ref (e.g. a branch or tag) to list the files at.
@@ -2241,6 +2261,7 @@ def get_repositories(self, workspace, role=None, query=None, sort=None):
22412261 """
22422262 Get all repositories in a workspace.
22432263
2264+ :param workspace:
22442265 :param role: Filters the result based on the authenticated user's role on each repository.
22452266 One of: member, contributor, admin, owner
22462267 :param query: Query string to narrow down the response.
@@ -2261,6 +2282,9 @@ def get_pipelines(self, workspace, repository_slug, number=10, sort_by="-created
22612282 """
22622283 Get information about latest pipelines runs.
22632284
2285+ :param workspace:
2286+ :param repository_slug:
2287+ :param sort_by:
22642288 :param number: number of pipelines to fetch
22652289 :param :sort_by: optional key to sort available pipelines for
22662290 :return: List of pipeline data
@@ -2307,6 +2331,8 @@ def trigger_pipeline(self, workspace, repository_slug, branch="master", revision
23072331 def get_pipeline (self , workspace , repository_slug , uuid ):
23082332 """
23092333 Get information about the pipeline specified by ``uuid``.
2334+ :param workspace:
2335+ :param repository_slug:
23102336 :param uuid: Pipeline identifier (with surrounding {}; NOT the build number)
23112337 """
23122338 return (
@@ -2324,6 +2350,8 @@ def get_pipeline(self, workspace, repository_slug, uuid):
23242350 def stop_pipeline (self , workspace , repository_slug , uuid ):
23252351 """
23262352 Stop the pipeline specified by ``uuid``.
2353+ :param workspace:
2354+ :param repository_slug:
23272355 :param uuid: Pipeline identifier (with surrounding {}; NOT the build number)
23282356
23292357 See the documentation for the meaning of response status codes.
@@ -2343,6 +2371,8 @@ def stop_pipeline(self, workspace, repository_slug, uuid):
23432371 def get_pipeline_steps (self , workspace , repository_slug , uuid ):
23442372 """
23452373 Get information about the steps of the pipeline specified by ``uuid``.
2374+ :param workspace:
2375+ :param repository_slug:
23462376 :param uuid: Pipeline identifier (with surrounding {}; NOT the build number)
23472377 """
23482378 values = []
@@ -2364,6 +2394,8 @@ def get_pipeline_steps(self, workspace, repository_slug, uuid):
23642394 def get_pipeline_step (self , workspace , repository_slug , pipeline_uuid , step_uuid ):
23652395 """
23662396 Get information about a step of a pipeline, specified by respective UUIDs.
2397+ :param workspace:
2398+ :param repository_slug:
23672399 :param pipeline_uuid: Pipeline identifier (with surrounding {}; NOT the build number)
23682400 :param step_uuid: Step identifier (with surrounding {})
23692401 """
@@ -2383,6 +2415,8 @@ def get_pipeline_step(self, workspace, repository_slug, pipeline_uuid, step_uuid
23832415 def get_pipeline_step_log (self , workspace , repository_slug , pipeline_uuid , step_uuid ):
23842416 """
23852417 Get log of a step of a pipeline, specified by respective UUIDs.
2418+ :param workspace:
2419+ :param repository_slug:
23862420 :param pipeline_uuid: Pipeline identifier (with surrounding {}; NOT the build number)
23872421 :param step_uuid: Step identifier (with surrounding {})
23882422 :return: byte string log
@@ -2411,6 +2445,10 @@ def create_issue(
24112445 ):
24122446 """
24132447 Create a new issue in the issue tracker of the given repository.
2448+ :param workspace:
2449+ :param repository_slug:
2450+ :param title:
2451+ :param description:
24142452 :param kind: one of: bug, enhancement, proposal, task
24152453 :param priority: one of: trivial, minor, major, critical, blocker
24162454 """
@@ -2430,6 +2468,8 @@ def get_issues(self, workspace, repository_slug, sort_by=None, query=None):
24302468 """
24312469 Get information about the issues tracked in the given repository. By
24322470 default, the issues are sorted by ID in descending order.
2471+ :param workspace:
2472+ :param repository_slug:
24332473 :param sort_by: optional key to sort available issues for
24342474 :param query: optional query to filter available issues for. See
24352475 https://developer.atlassian.com/bitbucket/api/2/reference/meta/filtering
@@ -2518,6 +2558,9 @@ def add_branch_restriction(
25182558 """
25192559 Add a new branch restriction.
25202560
2561+ :param workspace:
2562+ :param repository_slug:
2563+ :param value:
25212564 :param kind: One of require_tasks_to_be_completed, force, restrict_merges,
25222565 enforce_merge_checks, require_approvals_to_merge, delete,
25232566 require_all_dependencies_merged, push, require_passing_builds_to_merge,
@@ -2614,6 +2657,8 @@ def add_default_reviewer(self, workspace, repository_slug, user):
26142657 Add user as default reviewer to the repository.
26152658 Can safely be called multiple times with the same user, only adds once.
26162659
2660+ :param workspace:
2661+ :param repository_slug:
26172662 :param user: The username or account UUID to add as default_reviewer.
26182663 """
26192664 return (
@@ -2653,6 +2698,8 @@ def is_default_reviewer(self, workspace, repository_slug, user):
26532698 """
26542699 Check if the user is a default reviewer of the repository.
26552700
2701+ :param workspace:
2702+ :param repository_slug:
26562703 :param user: The username or account UUID to check.
26572704 :return: True if present, False if not.
26582705 """
0 commit comments