atlassian-python-api 3.41.12__tar.gz → 3.41.14__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (229) hide show
  1. {atlassian_python_api-3.41.12/atlassian_python_api.egg-info → atlassian_python_api-3.41.14}/PKG-INFO +1 -1
  2. atlassian_python_api-3.41.14/atlassian/VERSION +1 -0
  3. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/atlassian/bamboo.py +187 -34
  4. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/atlassian/confluence.py +45 -21
  5. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/atlassian/crowd.py +36 -0
  6. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/atlassian/jira.py +94 -4
  7. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/atlassian/rest_client.py +2 -1
  8. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14/atlassian_python_api.egg-info}/PKG-INFO +1 -1
  9. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/atlassian_python_api.egg-info/SOURCES.txt +1 -0
  10. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/pyproject.toml +1 -2
  11. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/requirements.txt +3 -3
  12. atlassian_python_api-3.41.14/tests/__pycache__/__init__.cpython-311.pyc +0 -0
  13. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/__pycache__/test_base.cpython-311-pytest-7.4.2.pyc +0 -0
  14. atlassian_python_api-3.41.14/tests/__pycache__/test_jira.cpython-311-pytest-8.0.0.pyc +0 -0
  15. atlassian_python_api-3.41.12/atlassian/VERSION +0 -1
  16. atlassian_python_api-3.41.12/tests/__pycache__/__init__.cpython-311.pyc +0 -0
  17. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/LICENSE +0 -0
  18. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/MANIFEST.in +0 -0
  19. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/README.rst +0 -0
  20. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/atlassian/__init__.py +0 -0
  21. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/atlassian/bitbucket/__init__.py +0 -0
  22. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/atlassian/bitbucket/base.py +0 -0
  23. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/atlassian/bitbucket/cloud/__init__.py +0 -0
  24. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/atlassian/bitbucket/cloud/base.py +0 -0
  25. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/atlassian/bitbucket/cloud/common/__init__.py +0 -0
  26. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/atlassian/bitbucket/cloud/common/builds.py +0 -0
  27. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/atlassian/bitbucket/cloud/common/comments.py +0 -0
  28. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/atlassian/bitbucket/cloud/common/users.py +0 -0
  29. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/atlassian/bitbucket/cloud/repositories/__init__.py +0 -0
  30. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/atlassian/bitbucket/cloud/repositories/branchRestrictions.py +0 -0
  31. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/atlassian/bitbucket/cloud/repositories/commits.py +0 -0
  32. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/atlassian/bitbucket/cloud/repositories/defaultReviewers.py +0 -0
  33. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/atlassian/bitbucket/cloud/repositories/deploymentEnvironments.py +0 -0
  34. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/atlassian/bitbucket/cloud/repositories/diffstat.py +0 -0
  35. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/atlassian/bitbucket/cloud/repositories/groupPermissions.py +0 -0
  36. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/atlassian/bitbucket/cloud/repositories/hooks.py +0 -0
  37. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/atlassian/bitbucket/cloud/repositories/issues.py +0 -0
  38. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/atlassian/bitbucket/cloud/repositories/pipelines.py +0 -0
  39. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/atlassian/bitbucket/cloud/repositories/pullRequests.py +0 -0
  40. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/atlassian/bitbucket/cloud/repositories/refs.py +0 -0
  41. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/atlassian/bitbucket/cloud/repositories/repositoryVariables.py +0 -0
  42. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/atlassian/bitbucket/cloud/workspaces/__init__.py +0 -0
  43. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/atlassian/bitbucket/cloud/workspaces/members.py +0 -0
  44. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/atlassian/bitbucket/cloud/workspaces/permissions.py +0 -0
  45. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/atlassian/bitbucket/cloud/workspaces/projects.py +0 -0
  46. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/atlassian/bitbucket/server/__init__.py +0 -0
  47. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/atlassian/bitbucket/server/base.py +0 -0
  48. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/atlassian/bitbucket/server/common/__init__.py +0 -0
  49. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/atlassian/bitbucket/server/common/permissions.py +0 -0
  50. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/atlassian/bitbucket/server/globalPermissions.py +0 -0
  51. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/atlassian/bitbucket/server/projects/__init__.py +0 -0
  52. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/atlassian/bitbucket/server/projects/repos/__init__.py +0 -0
  53. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/atlassian/cloud_admin.py +0 -0
  54. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/atlassian/errors.py +0 -0
  55. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/atlassian/insight.py +0 -0
  56. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/atlassian/marketplace.py +0 -0
  57. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/atlassian/portfolio.py +0 -0
  58. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/atlassian/request_utils.py +0 -0
  59. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/atlassian/service_desk.py +0 -0
  60. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/atlassian/statuspage.py +0 -0
  61. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/atlassian/utils.py +0 -0
  62. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/atlassian/xray.py +0 -0
  63. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/atlassian_python_api.egg-info/dependency_links.txt +0 -0
  64. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/atlassian_python_api.egg-info/not-zip-safe +0 -0
  65. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/atlassian_python_api.egg-info/requires.txt +0 -0
  66. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/atlassian_python_api.egg-info/top_level.txt +0 -0
  67. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/setup.cfg +0 -0
  68. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/setup.py +0 -0
  69. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/__init__.py +0 -0
  70. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/__pycache__/mockup.cpython-311.pyc +0 -0
  71. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/__pycache__/test_base.cpython-311-pytest-7.2.0.pyc +0 -0
  72. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/__pycache__/test_base.cpython-311-pytest-7.2.1.pyc +0 -0
  73. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/__pycache__/test_base.cpython-311-pytest-7.3.1.pyc +0 -0
  74. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/__pycache__/test_base.cpython-311-pytest-7.4.0.pyc +0 -0
  75. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/__pycache__/test_bitbucket_cloud_oo.cpython-311-pytest-7.2.0.pyc +0 -0
  76. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/__pycache__/test_bitbucket_cloud_oo.cpython-311-pytest-7.2.1.pyc +0 -0
  77. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/__pycache__/test_bitbucket_cloud_oo.cpython-311-pytest-7.3.1.pyc +0 -0
  78. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/__pycache__/test_bitbucket_cloud_oo.cpython-311-pytest-7.4.0.pyc +0 -0
  79. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/__pycache__/test_bitbucket_cloud_oo.cpython-311-pytest-7.4.2.pyc +0 -0
  80. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/__pycache__/test_bitbucket_server.cpython-311-pytest-7.2.0.pyc +0 -0
  81. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/__pycache__/test_bitbucket_server.cpython-311-pytest-7.2.1.pyc +0 -0
  82. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/__pycache__/test_bitbucket_server.cpython-311-pytest-7.3.1.pyc +0 -0
  83. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/__pycache__/test_bitbucket_server.cpython-311-pytest-7.4.0.pyc +0 -0
  84. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/__pycache__/test_bitbucket_server.cpython-311-pytest-7.4.2.pyc +0 -0
  85. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/__pycache__/test_bitbucket_server_oo.cpython-311-pytest-7.2.0.pyc +0 -0
  86. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/__pycache__/test_bitbucket_server_oo.cpython-311-pytest-7.2.1.pyc +0 -0
  87. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/__pycache__/test_bitbucket_server_oo.cpython-311-pytest-7.3.1.pyc +0 -0
  88. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/__pycache__/test_bitbucket_server_oo.cpython-311-pytest-7.4.0.pyc +0 -0
  89. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/__pycache__/test_bitbucket_server_oo.cpython-311-pytest-7.4.2.pyc +0 -0
  90. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/__pycache__/test_confluence_advanced_mode.cpython-311-pytest-7.2.0.pyc +0 -0
  91. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/__pycache__/test_confluence_advanced_mode.cpython-311-pytest-7.2.1.pyc +0 -0
  92. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/__pycache__/test_confluence_advanced_mode.cpython-311-pytest-7.3.1.pyc +0 -0
  93. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/__pycache__/test_confluence_advanced_mode.cpython-311-pytest-7.4.0.pyc +0 -0
  94. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/__pycache__/test_confluence_advanced_mode.cpython-311-pytest-7.4.2.pyc +0 -0
  95. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/__pycache__/test_confluence_attach.cpython-311-pytest-7.2.0.pyc +0 -0
  96. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/__pycache__/test_confluence_attach.cpython-311-pytest-7.2.1.pyc +0 -0
  97. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/__pycache__/test_confluence_attach.cpython-311-pytest-7.3.1.pyc +0 -0
  98. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/__pycache__/test_confluence_attach.cpython-311-pytest-7.4.0.pyc +0 -0
  99. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/__pycache__/test_confluence_attach.cpython-311-pytest-7.4.2.pyc +0 -0
  100. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/__pycache__/test_jira.cpython-311-pytest-7.2.0.pyc +0 -0
  101. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/__pycache__/test_jira.cpython-311-pytest-7.2.1.pyc +0 -0
  102. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/__pycache__/test_jira.cpython-311-pytest-7.3.1.pyc +0 -0
  103. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/__pycache__/test_jira.cpython-311-pytest-7.4.0.pyc +0 -0
  104. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/__pycache__/test_jira.cpython-311-pytest-7.4.2.pyc +0 -0
  105. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/__pycache__/test_servicedesk.cpython-311-pytest-7.2.0.pyc +0 -0
  106. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/__pycache__/test_servicedesk.cpython-311-pytest-7.2.1.pyc +0 -0
  107. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/__pycache__/test_servicedesk.cpython-311-pytest-7.3.1.pyc +0 -0
  108. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/__pycache__/test_servicedesk.cpython-311-pytest-7.4.0.pyc +0 -0
  109. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/__pycache__/test_servicedesk.cpython-311-pytest-7.4.2.pyc +0 -0
  110. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/mockup.py +0 -0
  111. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/GET +0 -0
  112. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/TestRepositoryCreated/POST +0 -0
  113. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/GET +0 -0
  114. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/branch-restrictions/17203842/DELETE +0 -0
  115. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/branch-restrictions/17203842/GET +0 -0
  116. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/branch-restrictions/17203842/PUT +0 -0
  117. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/branch-restrictions/GET +0 -0
  118. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/default-reviewers/DefaultReviewer1Uuid/DELETE +0 -0
  119. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/default-reviewers/DefaultReviewer1Uuid/GET +0 -0
  120. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/default-reviewers/GET +0 -0
  121. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/issues/3/DELETE +0 -0
  122. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/issues/3/GET +0 -0
  123. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/issues/3/PUT +0 -0
  124. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/issues/GET +0 -0
  125. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/issues/POST +0 -0
  126. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pipelines/GET +0 -0
  127. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pipelines/POST +0 -0
  128. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pipelines/{PipelineUuid}/GET +0 -0
  129. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pipelines/{PipelineUuid}/steps/GET +0 -0
  130. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pipelines/{PipelineUuid}/steps/{PipelineStep1Uuid}/GET +0 -0
  131. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pipelines/{PipelineUuid}/steps/{PipelineStep2Uuid}/GET +0 -0
  132. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pipelines/{PipelineUuid}/steps/{PipelineStep2Uuid}/log/GET +0 -0
  133. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pipelines/{PipelineUuid}/stopPipeline/POST +0 -0
  134. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/GET +0 -0
  135. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/approve/DELETE +0 -0
  136. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/approve/POST +0 -0
  137. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/comments/GET +0 -0
  138. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/comments/POST +0 -0
  139. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/commits/GET +0 -0
  140. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/decline/POST +0 -0
  141. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/merge/POST +0 -0
  142. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/request-changes/DELETE +0 -0
  143. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/request-changes/POST +0 -0
  144. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/statuses/GET +0 -0
  145. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/tasks/123456/DELETE +0 -0
  146. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/tasks/123456/PUT +0 -0
  147. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/tasks/GET +0 -0
  148. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/tasks/POST +0 -0
  149. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/25/GET +0 -0
  150. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/GET +0 -0
  151. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/POST +0 -0
  152. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/bitbucket/cloud/2.0/workspaces/GET +0 -0
  153. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/bitbucket/cloud/2.0/workspaces/TestWorkspace1/GET +0 -0
  154. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/bitbucket/cloud/2.0/workspaces/TestWorkspace2/GET +0 -0
  155. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/bitbucket/cloud/2.0/workspaces/TestWorkspace3/GET +0 -0
  156. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/bitbucket/server/rest/api/1.0/admin/permissions/groups/DELETE +0 -0
  157. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/bitbucket/server/rest/api/1.0/admin/permissions/groups/GET +0 -0
  158. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/bitbucket/server/rest/api/1.0/admin/permissions/groups/none/GET +0 -0
  159. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/bitbucket/server/rest/api/1.0/admin/permissions/users/DELETE +0 -0
  160. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/bitbucket/server/rest/api/1.0/admin/permissions/users/GET +0 -0
  161. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/bitbucket/server/rest/api/1.0/admin/permissions/users/none/GET +0 -0
  162. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/bitbucket/server/rest/api/1.0/projects/GET +0 -0
  163. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/GET +0 -0
  164. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/PUT +0 -0
  165. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/permissions/groups/DELETE +0 -0
  166. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/permissions/groups/GET +0 -0
  167. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/permissions/groups/none/GET +0 -0
  168. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/permissions/users/DELETE +0 -0
  169. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/permissions/users/GET +0 -0
  170. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/permissions/users/none/GET +0 -0
  171. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/GET +0 -0
  172. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/GET +0 -0
  173. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/PUT +0 -0
  174. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/archive/GET +0 -0
  175. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/contributing/GET +0 -0
  176. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/default-branch/GET +0 -0
  177. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/default-branch/PUT +0 -0
  178. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/forks/GET +0 -0
  179. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/license/GET +0 -0
  180. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/permissions/groups/DELETE +0 -0
  181. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/permissions/groups/GET +0 -0
  182. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/permissions/groups/none/GET +0 -0
  183. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/permissions/users/DELETE +0 -0
  184. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/permissions/users/GET +0 -0
  185. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/permissions/users/none/GET +0 -0
  186. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/readme/GET +0 -0
  187. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/related/GET +0 -0
  188. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/webhooks/3/DELETE +0 -0
  189. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/webhooks/3/GET +0 -0
  190. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/webhooks/3/PUT +0 -0
  191. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/webhooks/GET +0 -0
  192. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/webhooks/POST +0 -0
  193. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/jira/rest/agile/1.0/epic/BAR-22/issue/GET +0 -0
  194. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/jira/rest/agile/1.0/epic/none/issue/GET +0 -0
  195. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/jira/rest/api/2/comment/list/POST +0 -0
  196. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/jira/rest/api/2/issue/FOO-123/GET +0 -0
  197. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/jira/rest/api/2/issue/FOO-123/comment/10000/GET +0 -0
  198. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/jira/rest/api/2/issue/FOO-123/comment/GET +0 -0
  199. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/jira/rest/api/2/issue/FOO-123/properties/Bar1/DELETE +0 -0
  200. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/jira/rest/api/2/issue/FOO-123/properties/Bar1/GET +0 -0
  201. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/jira/rest/api/2/issue/FOO-123/properties/Bar1/PUT +0 -0
  202. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/jira/rest/api/2/issue/FOO-123/properties/Bar2New/PUT +0 -0
  203. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/jira/rest/api/2/issue/FOO-123/properties/GET +0 -0
  204. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/jira/rest/api/2/issue/POST +0 -0
  205. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/jira/rest/api/2/issue/REGEX-123/file.txt +0 -0
  206. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/servicedesk/rest/servicedeskapi/customer/POST +0 -0
  207. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/servicedesk/rest/servicedeskapi/organization/GET +0 -0
  208. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/servicedesk/rest/servicedeskapi/organization/POST +0 -0
  209. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/servicedesk/rest/servicedeskapi/organization/{organizationId}/DELETE +0 -0
  210. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/servicedesk/rest/servicedeskapi/organization/{organizationId}/GET +0 -0
  211. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/servicedesk/rest/servicedeskapi/organization/{organizationId}/property/GET +0 -0
  212. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/servicedesk/rest/servicedeskapi/organization/{organizationId}/user/DELETE +0 -0
  213. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/servicedesk/rest/servicedeskapi/organization/{organizationId}/user/GET +0 -0
  214. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/servicedesk/rest/servicedeskapi/organization/{organizationId}/user/POST +0 -0
  215. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/servicedesk/rest/servicedeskapi/servicedesk/{serviceDeskId}/customer/DELETE +0 -0
  216. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/servicedesk/rest/servicedeskapi/servicedesk/{serviceDeskId}/customer/GET +0 -0
  217. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/servicedesk/rest/servicedeskapi/servicedesk/{serviceDeskId}/customer/POST +0 -0
  218. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/servicedesk/rest/servicedeskapi/servicedesk/{serviceDeskId}/organization/DELETE +0 -0
  219. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/servicedesk/rest/servicedeskapi/servicedesk/{serviceDeskId}/organization/GET +0 -0
  220. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/responses/servicedesk/rest/servicedeskapi/servicedesk/{serviceDeskId}/organization/POST +0 -0
  221. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/test_base.py +0 -0
  222. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/test_bitbucket_cloud_oo.py +0 -0
  223. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/test_bitbucket_server.py +0 -0
  224. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/test_bitbucket_server_oo.py +0 -0
  225. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/test_confluence_advanced_mode.py +0 -0
  226. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/test_confluence_attach.py +0 -0
  227. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/test_jira.py +0 -0
  228. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tests/test_servicedesk.py +0 -0
  229. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.14}/tox.ini +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: atlassian-python-api
3
- Version: 3.41.12
3
+ Version: 3.41.14
4
4
  Summary: Python Atlassian REST API Wrapper
5
5
  Home-page: https://github.com/atlassian-api/atlassian-python-api
6
6
  Download-URL: https://github.com/atlassian-api/atlassian-python-api
@@ -0,0 +1 @@
1
+ 3.41.14
@@ -104,6 +104,14 @@ class Bamboo(AtlassianRestAPI):
104
104
  clover_enabled=False,
105
105
  max_results=25,
106
106
  ):
107
+ """
108
+ Get all Projects
109
+ :param expand:
110
+ :param favourite:
111
+ :param clover_enabled:
112
+ :param max_results:
113
+ :return:
114
+ """
107
115
  return self.base_list_call(
108
116
  "project",
109
117
  expand=expand,
@@ -115,6 +123,14 @@ class Bamboo(AtlassianRestAPI):
115
123
  )
116
124
 
117
125
  def project(self, project_key, expand=None, favourite=False, clover_enabled=False):
126
+ """
127
+ Get a single project by the key
128
+ :param project_key:
129
+ :param expand:
130
+ :param favourite:
131
+ :param clover_enabled:
132
+ :return:
133
+ """
118
134
  resource = "project/{}".format(project_key)
119
135
  return self.base_list_call(
120
136
  resource=resource,
@@ -125,8 +141,21 @@ class Bamboo(AtlassianRestAPI):
125
141
  max_results=25,
126
142
  )
127
143
 
144
+ def get_project(self, project_key):
145
+ """Method used to retrieve information for project specified as project key.
146
+ Possible expand parameters: plans, list of plans for project. plans.plan, list of plans with plan details
147
+ (only plans visible - READ permission for user)"""
148
+ resource = "project/{}?showEmpty".format(project_key)
149
+ return self.get(self.resource_url(resource))
150
+
151
+ def delete_project(self, project_key):
152
+ """Marks project for deletion. Project will be deleted by a batch job."""
153
+ resource = "project/{}".format(project_key)
154
+ return self.delete(self.resource_url(resource))
155
+
128
156
  def project_plans(self, project_key, start_index=0, max_results=25):
129
157
  """
158
+ Get all build plans in a project
130
159
  Returns a generator with the plans in a given project.
131
160
  :param project_key: project key
132
161
  :param start_index:
@@ -153,6 +182,15 @@ class Bamboo(AtlassianRestAPI):
153
182
  start_index=0,
154
183
  max_results=25,
155
184
  ):
185
+ """
186
+ Get all build plans
187
+ :param expand:
188
+ :param favourite:
189
+ :param clover_enabled:
190
+ :param start_index:
191
+ :param max_results:
192
+ :return:
193
+ """
156
194
  return self.base_list_call(
157
195
  "plan",
158
196
  expand=expand,
@@ -234,6 +272,14 @@ class Bamboo(AtlassianRestAPI):
234
272
  """ Branches """
235
273
 
236
274
  def search_branches(self, plan_key, include_default_branch=True, max_results=25, start=0):
275
+ """
276
+ Search Branches
277
+ :param plan_key:
278
+ :param include_default_branch:
279
+ :param max_results:
280
+ :param start:
281
+ :return:
282
+ """
237
283
  params = {
238
284
  "max-result": max_results,
239
285
  "start-index": start,
@@ -256,7 +302,16 @@ class Bamboo(AtlassianRestAPI):
256
302
  clover_enabled=False,
257
303
  max_results=25,
258
304
  ):
259
- """api/1.0/plan/{projectKey}-{buildKey}/branch"""
305
+ """
306
+ Get all plan Branches
307
+ api/1.0/plan/{projectKey}-{buildKey}/branch
308
+ :param plan_key:
309
+ :param expand:
310
+ :param favourite:
311
+ :param clover_enabled:
312
+ :param max_results:
313
+ :return:
314
+ """
260
315
  resource = "plan/{}/branch".format(plan_key)
261
316
  return self.base_list_call(
262
317
  resource,
@@ -617,14 +672,30 @@ class Bamboo(AtlassianRestAPI):
617
672
  start_index=0,
618
673
  max_results=25,
619
674
  ):
675
+ """
676
+ Get comments for a specific build
677
+ :param project_key:
678
+ :param plan_key:
679
+ :param build_number:
680
+ :param start_index:
681
+ :param max_results:
682
+ :return:
683
+ """
620
684
  resource = "result/{}-{}-{}/comment".format(project_key, plan_key, build_number)
621
685
  params = {"start-index": start_index, "max-results": max_results}
622
686
  return self.get(self.resource_url(resource), params=params)
623
687
 
624
- def create_comment(self, project_key, plan_key, build_number, comment, author=None):
688
+ def create_comment(self, project_key, plan_key, build_number, comment):
689
+ """
690
+ Create a comment for a specific build
691
+ :param project_key:
692
+ :param plan_key:
693
+ :param build_number:
694
+ :param comment:
695
+ :return:
696
+ """
625
697
  resource = "result/{}-{}-{}/comment".format(project_key, plan_key, build_number)
626
698
  comment_data = {
627
- "author": author if author else self.username,
628
699
  "content": comment,
629
700
  }
630
701
  return self.post(self.resource_url(resource), data=comment_data)
@@ -637,15 +708,40 @@ class Bamboo(AtlassianRestAPI):
637
708
  start_index=0,
638
709
  max_results=25,
639
710
  ):
711
+ """
712
+ Get labels for a build
713
+ :param project_key:
714
+ :param plan_key:
715
+ :param build_number:
716
+ :param start_index:
717
+ :param max_results:
718
+ :return:
719
+ """
640
720
  resource = "result/{}-{}-{}/label".format(project_key, plan_key, build_number)
641
721
  params = {"start-index": start_index, "max-results": max_results}
642
722
  return self.get(self.resource_url(resource), params=params)
643
723
 
644
724
  def create_label(self, project_key, plan_key, build_number, label):
725
+ """
726
+ Create a label for a specific build
727
+ :param project_key:
728
+ :param plan_key:
729
+ :param build_number:
730
+ :param label:
731
+ :return:
732
+ """
645
733
  resource = "result/{}-{}-{}/label".format(project_key, plan_key, build_number)
646
734
  return self.post(self.resource_url(resource), data={"name": label})
647
735
 
648
736
  def delete_label(self, project_key, plan_key, build_number, label):
737
+ """
738
+ Delete a label for a specific build
739
+ :param project_key:
740
+ :param plan_key:
741
+ :param build_number:
742
+ :param label:
743
+ :return:
744
+ """
649
745
  resource = "result/{}-{}-{}/label/{}".format(project_key, plan_key, build_number, label)
650
746
  return self.delete(self.resource_url(resource))
651
747
 
@@ -671,34 +767,43 @@ class Bamboo(AtlassianRestAPI):
671
767
  for project in r["projects"]["project"]:
672
768
  yield project
673
769
 
674
- def get_project(self, project_key):
675
- """Method used to retrieve information for project specified as project key.
676
- Possible expand parameters: plans, list of plans for project. plans.plan, list of plans with plan details
677
- (only plans visible - READ permission for user)"""
678
- resource = "project/{}?showEmpty".format(project_key)
679
- return self.get(self.resource_url(resource))
680
-
681
- def delete_project(self, project_key):
682
- """Marks project for deletion. Project will be deleted by a batch job."""
683
- resource = "project/{}".format(project_key)
684
- return self.delete(self.resource_url(resource))
685
-
686
770
  """ Deployments """
687
771
 
688
772
  def deployment_projects(self):
773
+ """
774
+ Returns all deployment projects.
775
+ :return:
776
+ """
689
777
  resource = "deploy/project/all"
690
778
  for project in self.get(self.resource_url(resource)):
691
779
  yield project
692
780
 
693
781
  def deployment_project(self, project_id):
782
+ """
783
+ Returns a deployment project.
784
+ :param project_id:
785
+ :return:
786
+ """
694
787
  resource = "deploy/project/{}".format(project_id)
695
788
  return self.get(self.resource_url(resource))
696
789
 
697
790
  def delete_deployment_project(self, project_id):
791
+ """
792
+ Deletes a deployment project.
793
+ :param project_id:
794
+ :return:
795
+ """
698
796
  resource = "deploy/project/{}".format(project_id)
699
797
  return self.delete(self.resource_url(resource))
700
798
 
701
799
  def deployment_environment_results(self, env_id, expand=None, max_results=25):
800
+ """
801
+ Get deployment environment results
802
+ :param env_id:
803
+ :param expand:
804
+ :param max_results:
805
+ :return:
806
+ """
702
807
  resource = "deploy/environment/{environmentId}/results".format(environmentId=env_id)
703
808
  params = {"max-result": max_results, "start-index": 0}
704
809
  size = 1
@@ -844,23 +949,6 @@ class Bamboo(AtlassianRestAPI):
844
949
  url = "rest/api/latest/admin/groups/{}/more-non-members".format(group_name)
845
950
  return self.get(url, params=params)
846
951
 
847
- def get_build_queue(self, expand="queuedBuilds"):
848
- """
849
- Lists all the builds waiting in the build queue, adds or removes a build from the build queue.
850
- May be used also to resume build on manual stage or rerun failed jobs.
851
- :return:
852
- """
853
- params = {"expand": expand}
854
- return self.get("rest/api/latest/queue", params=params)
855
-
856
- def get_deployment_queue(self, expand="queuedDeployments"):
857
- """
858
- Provide list of deployment results scheduled for execution and waiting in queue.
859
- :return:
860
- """
861
- params = {"expand": expand}
862
- return self.get("rest/api/latest/queue/deployment", params=params)
863
-
864
952
  def get_deployment_users(self, deployment_id, filter_name=None, start=0, limit=25):
865
953
  """
866
954
  Retrieve a list of users with their explicit permissions to given resource.
@@ -1022,6 +1110,23 @@ class Bamboo(AtlassianRestAPI):
1022
1110
  def server_info(self):
1023
1111
  return self.get(self.resource_url("info"))
1024
1112
 
1113
+ def get_build_queue(self, expand="queuedBuilds"):
1114
+ """
1115
+ Lists all the builds waiting in the build queue, adds or removes a build from the build queue.
1116
+ May be used also to resume build on manual stage or rerun failed jobs.
1117
+ :return:
1118
+ """
1119
+ params = {"expand": expand}
1120
+ return self.get("rest/api/latest/queue", params=params)
1121
+
1122
+ def get_deployment_queue(self, expand="queuedDeployments"):
1123
+ """
1124
+ Provide list of deployment results scheduled for execution and waiting in queue.
1125
+ :return:
1126
+ """
1127
+ params = {"expand": expand}
1128
+ return self.get("rest/api/latest/queue/deployment", params=params)
1129
+
1025
1130
  def agent_status(self, online=False):
1026
1131
  """
1027
1132
  Provides a list of all agents.
@@ -1128,6 +1233,20 @@ class Bamboo(AtlassianRestAPI):
1128
1233
  start_index=9,
1129
1234
  max_results=25,
1130
1235
  ):
1236
+ """
1237
+ Get chart data
1238
+ :param report_key:
1239
+ :param build_keys:
1240
+ :param group_by_period:
1241
+ :param date_filter:
1242
+ :param date_from:
1243
+ :param date_to:
1244
+ :param width:
1245
+ :param height:
1246
+ :param start_index:
1247
+ :param max_results:
1248
+ :return:
1249
+ """
1131
1250
  params = {
1132
1251
  "reportKey": report_key,
1133
1252
  "buildKeys": build_keys,
@@ -1173,6 +1292,8 @@ class Bamboo(AtlassianRestAPI):
1173
1292
  response = self.get("rest/supportHealthCheck/1.0/check/")
1174
1293
  return response
1175
1294
 
1295
+ """Elastic Bamboo"""
1296
+
1176
1297
  def get_elastic_instance_logs(self, instance_id):
1177
1298
  """
1178
1299
  Get logs from an EC2 instance
@@ -1201,7 +1322,7 @@ class Bamboo(AtlassianRestAPI):
1201
1322
 
1202
1323
  def get_elastic_configuration(self, configuration_id):
1203
1324
  """
1204
- Get informatin of an elastic configuration
1325
+ Get information of an elastic configuration
1205
1326
  :param configuration_id:
1206
1327
  :return:
1207
1328
  """
@@ -1264,7 +1385,7 @@ class Bamboo(AtlassianRestAPI):
1264
1385
 
1265
1386
  def get_plugin_license_info(self, plugin_key):
1266
1387
  """
1267
- Provide plugin license info
1388
+ Provide plugin license information
1268
1389
  :return a json specific License query
1269
1390
  """
1270
1391
  url = "rest/plugins/1.0/{plugin_key}-key/license".format(plugin_key=plugin_key)
@@ -1286,6 +1407,34 @@ class Bamboo(AtlassianRestAPI):
1286
1407
  url = "rest/plugins/1.0/?token={upm_token}".format(upm_token=upm_token)
1287
1408
  return self.post(url, files=files, headers=self.no_check_headers)
1288
1409
 
1410
+ def disable_plugin(self, plugin_key):
1411
+ """
1412
+ Disable a plugin
1413
+ :param plugin_key:
1414
+ :return:
1415
+ """
1416
+ app_headers = {
1417
+ "X-Atlassian-Token": "nocheck",
1418
+ "Content-Type": "application/vnd.atl.plugins+json",
1419
+ }
1420
+ url = "rest/plugins/1.0/{plugin_key}-key".format(plugin_key=plugin_key)
1421
+ data = {"status": "disabled"}
1422
+ return self.put(url, data=data, headers=app_headers)
1423
+
1424
+ def enable_plugin(self, plugin_key):
1425
+ """
1426
+ Enable a plugin
1427
+ :param plugin_key:
1428
+ :return:
1429
+ """
1430
+ app_headers = {
1431
+ "X-Atlassian-Token": "nocheck",
1432
+ "Content-Type": "application/vnd.atl.plugins+json",
1433
+ }
1434
+ url = "rest/plugins/1.0/{plugin_key}-key".format(plugin_key=plugin_key)
1435
+ data = {"status": "enabled"}
1436
+ return self.put(url, data=data, headers=app_headers)
1437
+
1289
1438
  def delete_plugin(self, plugin_key):
1290
1439
  """
1291
1440
  Delete plugin
@@ -1296,6 +1445,10 @@ class Bamboo(AtlassianRestAPI):
1296
1445
  return self.delete(url)
1297
1446
 
1298
1447
  def check_plugin_manager_status(self):
1448
+ """
1449
+ Check plugin manager status
1450
+ :return:
1451
+ """
1299
1452
  url = "rest/plugins/latest/safe-mode"
1300
1453
  return self.request(method="GET", path=url, headers=self.safe_mode_headers)
1301
1454
 
@@ -506,27 +506,20 @@ class Confluence(AtlassianRestAPI):
506
506
 
507
507
  return response
508
508
 
509
- def get_draft_page_by_id(self, page_id, status="draft"):
509
+ def get_draft_page_by_id(self, page_id, status="draft", expand=None):
510
510
  """
511
- Provide content by id with status = draft
512
- :param page_id:
513
- :param status:
511
+ Gets content by id with status = draft
512
+ :param page_id: Content ID
513
+ :param status: (str) list of content statuses to filter results on. Default value: [draft]
514
+ :param expand: OPTIONAL: Default value: history,space,version
515
+ We can also specify some extensions such as extensions.inlineProperties
516
+ (for getting inline comment-specific properties) or extensions. Resolution
517
+ for the resolution status of each comment in the results
514
518
  :return:
515
519
  """
516
- url = "rest/api/content/{page_id}?status={status}".format(page_id=page_id, status=status)
517
-
518
- try:
519
- response = self.get(url)
520
- except HTTPError as e:
521
- if e.response.status_code == 404:
522
- raise ApiPermissionError(
523
- "The calling user does not have permission to view the content",
524
- reason=e,
525
- )
526
-
527
- raise
528
-
529
- return response
520
+ # Version not passed since draft versions don't match the page and
521
+ # operate differently between different collaborative modes
522
+ return self.get_page_by_id(page_id=page_id, expand=expand, status=status)
530
523
 
531
524
  def get_all_pages_by_label(self, label, start=0, limit=50):
532
525
  """
@@ -1322,17 +1315,20 @@ class Confluence(AtlassianRestAPI):
1322
1315
  comment=comment,
1323
1316
  )
1324
1317
 
1325
- def download_attachments_from_page(self, page_id, path=None):
1318
+ def download_attachments_from_page(self, page_id, path=None, start=0, limit=50):
1326
1319
  """
1327
1320
  Downloads all attachments from a page
1328
1321
  :param page_id:
1329
- :param path: path to directory where attachments will be saved. If None, current working directory will be used.
1322
+ :param path: OPTIONAL: path to directory where attachments will be saved. If None, current working directory will be used.
1323
+ :param start: OPTIONAL: The start point of the collection to return. Default: None (0).
1324
+ :param limit: OPTIONAL: The limit of the number of attachments to return, this may be restricted by
1325
+ fixed system limits. Default: 50
1330
1326
  :return info message: number of saved attachments + path to directory where attachments were saved:
1331
1327
  """
1332
1328
  if path is None:
1333
1329
  path = os.getcwd()
1334
1330
  try:
1335
- attachments = self.get_attachments_from_content(page_id=page_id)["results"]
1331
+ attachments = self.get_attachments_from_content(page_id=page_id, start=start, limit=limit)["results"]
1336
1332
  if not attachments:
1337
1333
  return "No attachments found"
1338
1334
  for attachment in attachments:
@@ -2727,6 +2723,34 @@ class Confluence(AtlassianRestAPI):
2727
2723
  url = "rest/plugins/1.0/?token={upm_token}".format(upm_token=upm_token)
2728
2724
  return self.post(url, files=files, headers=self.no_check_headers)
2729
2725
 
2726
+ def disable_plugin(self, plugin_key):
2727
+ """
2728
+ Disable a plugin
2729
+ :param plugin_key:
2730
+ :return:
2731
+ """
2732
+ app_headers = {
2733
+ "X-Atlassian-Token": "nocheck",
2734
+ "Content-Type": "application/vnd.atl.plugins+json",
2735
+ }
2736
+ url = "rest/plugins/1.0/{plugin_key}-key".format(plugin_key=plugin_key)
2737
+ data = {"status": "disabled"}
2738
+ return self.put(url, data=data, headers=app_headers)
2739
+
2740
+ def enable_plugin(self, plugin_key):
2741
+ """
2742
+ Enable a plugin
2743
+ :param plugin_key:
2744
+ :return:
2745
+ """
2746
+ app_headers = {
2747
+ "X-Atlassian-Token": "nocheck",
2748
+ "Content-Type": "application/vnd.atl.plugins+json",
2749
+ }
2750
+ url = "rest/plugins/1.0/{plugin_key}-key".format(plugin_key=plugin_key)
2751
+ data = {"status": "enabled"}
2752
+ return self.put(url, data=data, headers=app_headers)
2753
+
2730
2754
  def delete_plugin(self, plugin_key):
2731
2755
  """
2732
2756
  Delete plugin
@@ -2,6 +2,7 @@
2
2
  import logging
3
3
 
4
4
  from jmespath import search
5
+ from bs4 import BeautifulSoup
5
6
 
6
7
  from .rest_client import AtlassianRestAPI
7
8
 
@@ -264,3 +265,38 @@ class Crowd(AtlassianRestAPI):
264
265
  url = "/plugins/1.0/{plugin_key}/license".format(plugin_key=plugin_key)
265
266
  data = {"rawLicense": raw_license}
266
267
  return self.put(url, data=data, headers=app_headers)
268
+
269
+ @property
270
+ def memberships(self):
271
+ """
272
+ Retrieves full details of all group memberships, with users and nested groups.
273
+ See: https://docs.atlassian.com/atlassian-crowd/5.3.1/REST/#usermanagement/1/group-getAllMemberships
274
+ :return: All membership mapping dict
275
+ """
276
+ path = self._crowd_api_url("usermanagement", "group/membership")
277
+ headers = {"Accept": "application/xml"}
278
+ response = self.get(path, headers=headers)
279
+ soup = BeautifulSoup(response, "xml")
280
+ memberships = {}
281
+ for membership in soup.find_all("membership"):
282
+ group = membership["group"]
283
+ users = [user["name"] for user in membership.find_all("user")]
284
+ memberships[group] = users
285
+ return memberships
286
+
287
+ def group_create(self, groupname, description=None, active=True):
288
+ """
289
+ Create new group method
290
+ :param groupname: string: The name of new group
291
+ :param description: string: The description of new group, default is None
292
+ :param active: bool: Weather the group is active, default is True
293
+ :return: Create result
294
+ """
295
+ group = {
296
+ "name": groupname,
297
+ "active": active,
298
+ "description": description,
299
+ "type": "GROUP",
300
+ }
301
+
302
+ return self.post(self._crowd_api_url("usermanagement", "group"), data=group)
@@ -1221,13 +1221,18 @@ class Jira(AtlassianRestAPI):
1221
1221
  :return:
1222
1222
  """
1223
1223
  base_url = self.resource_url("issue")
1224
- url = "{base_url}/{issue_key}?expand=changelog".format(base_url=base_url, issue_key=issue_key)
1225
1224
  params = {}
1226
1225
  if start:
1227
1226
  params["startAt"] = start
1228
1227
  if limit:
1229
1228
  params["maxResults"] = limit
1230
- return (self.get(url) or {}).get("changelog", params)
1229
+
1230
+ if self.cloud:
1231
+ url = "{base_url}/{issue_key}/changelog".format(base_url=base_url, issue_key=issue_key)
1232
+ return self.get(url, params=params)
1233
+ else:
1234
+ url = "{base_url}/{issue_key}?expand=changelog".format(base_url=base_url, issue_key=issue_key)
1235
+ return (self.get(url) or {}).get("changelog", params)
1231
1236
 
1232
1237
  def issue_add_json_worklog(self, key, worklog):
1233
1238
  """
@@ -1320,7 +1325,7 @@ class Jira(AtlassianRestAPI):
1320
1325
 
1321
1326
  def bulk_update_issue_field(self, key_list, fields="*all"):
1322
1327
  """
1323
- :param key_list=list of issues with common filed to be updated
1328
+ :param key_list: list of issues with common filed to be updated
1324
1329
  :param fields: common fields to be updated
1325
1330
  return Boolean True/False
1326
1331
  """
@@ -1336,6 +1341,33 @@ class Jira(AtlassianRestAPI):
1336
1341
  return False
1337
1342
  return True
1338
1343
 
1344
+ def issue_field_value_append(self, issue_id_or_key, field, value, notify_users=True):
1345
+ """
1346
+ Add value to a multiple value field
1347
+
1348
+ :param issue_id_or_key: str Issue id or issue key
1349
+ :param field: str Field key ("customfield_10000")
1350
+ :param value: str A value which need to append (use python value types)
1351
+ :param notify_users: bool OPTIONAL if True, use project's default notification scheme to notify users via email.
1352
+ if False, do not send any email notifications. (only works with admin privilege)
1353
+ """
1354
+ base_url = self.resource_url("issue")
1355
+ params = {"notifyUsers": True if notify_users else False}
1356
+ current_value = self.issue_field_value(key=issue_id_or_key, field=field)
1357
+
1358
+ if current_value:
1359
+ new_value = current_value + [value]
1360
+ else:
1361
+ new_value = [value]
1362
+
1363
+ fields = {"{}".format(field): new_value}
1364
+
1365
+ return self.put(
1366
+ "{base_url}/{key}".format(base_url=base_url, key=issue_id_or_key),
1367
+ data={"fields": fields},
1368
+ params=params,
1369
+ )
1370
+
1339
1371
  def get_issue_labels(self, issue_key):
1340
1372
  """
1341
1373
  Get issue labels.
@@ -2407,7 +2439,6 @@ class Jira(AtlassianRestAPI):
2407
2439
  self._get_paged(
2408
2440
  self.resource_url("project/search"),
2409
2441
  params,
2410
- paging_workaround=True,
2411
2442
  )
2412
2443
  )
2413
2444
  else:
@@ -3639,6 +3670,34 @@ api-group-workflows/#api-rest-api-2-workflow-search-get)
3639
3670
  data = {"rawLicense": raw_license}
3640
3671
  return self.put(url, data=data, headers=app_headers)
3641
3672
 
3673
+ def disable_plugin(self, plugin_key):
3674
+ """
3675
+ Disable a plugin
3676
+ :param plugin_key:
3677
+ :return:
3678
+ """
3679
+ app_headers = {
3680
+ "X-Atlassian-Token": "nocheck",
3681
+ "Content-Type": "application/vnd.atl.plugins+json",
3682
+ }
3683
+ url = "rest/plugins/1.0/{plugin_key}-key".format(plugin_key=plugin_key)
3684
+ data = {"status": "disabled"}
3685
+ return self.put(url, data=data, headers=app_headers)
3686
+
3687
+ def enable_plugin(self, plugin_key):
3688
+ """
3689
+ Enable a plugin
3690
+ :param plugin_key:
3691
+ :return:
3692
+ """
3693
+ app_headers = {
3694
+ "X-Atlassian-Token": "nocheck",
3695
+ "Content-Type": "application/vnd.atl.plugins+json",
3696
+ }
3697
+ url = "rest/plugins/1.0/{plugin_key}-key".format(plugin_key=plugin_key)
3698
+ data = {"status": "enabled"}
3699
+ return self.put(url, data=data, headers=app_headers)
3700
+
3642
3701
  def get_all_permissionschemes(self, expand=None):
3643
3702
  """
3644
3703
  Returns a list of all permission schemes.
@@ -5267,3 +5326,34 @@ api-group-workflows/#api-rest-api-2-workflow-search-get)
5267
5326
  # check as support tools
5268
5327
  response = self.get("rest/supportHealthCheck/1.0/check/")
5269
5328
  return response
5329
+
5330
+ def duplicated_account_checks_detail(self):
5331
+ """
5332
+ Health check: Duplicate user accounts detail
5333
+ https://confluence.atlassian.com/jirakb/health-check-duplicate-user-accounts-1063554355.html
5334
+ :return:
5335
+ """
5336
+ response = self.get("rest/api/2/user/duplicated/list")
5337
+ return response
5338
+
5339
+ def duplicated_account_checks_flush(self):
5340
+ """
5341
+ Health check: Duplicate user accounts by flush
5342
+ The responses returned by the count and list methods are stored in the duplicate users cache for 10 minutes.
5343
+ The cache is flushed automatically every time a directory
5344
+ is added, deleted, enabled, disabled, reordered, or synchronized.
5345
+ https://confluence.atlassian.com/jirakb/health-check-duplicate-user-accounts-1063554355.html
5346
+ :return:
5347
+ """
5348
+ params = {"flush": "true"}
5349
+ response = self.get("rest/api/2/user/duplicated/list", params=params)
5350
+ return response
5351
+
5352
+ def duplicated_account_checks_count(self):
5353
+ """
5354
+ Health check: Duplicate user accounts count
5355
+ https://confluence.atlassian.com/jirakb/health-check-duplicate-user-accounts-1063554355.html
5356
+ :return:
5357
+ """
5358
+ response = self.get("rest/api/2/user/duplicated/count")
5359
+ return response
@@ -13,6 +13,7 @@ from requests import HTTPError
13
13
  from requests_oauthlib import OAuth1, OAuth2
14
14
  from six.moves.urllib.parse import urlencode
15
15
  from urllib3.util import Retry
16
+ import urllib3
16
17
 
17
18
  from atlassian.request_utils import get_default_logger
18
19
 
@@ -117,7 +118,7 @@ class AtlassianRestAPI(object):
117
118
  self._session = requests.Session()
118
119
  else:
119
120
  self._session = session
120
- if backoff_and_retry:
121
+ if backoff_and_retry and int(urllib3.__version__.split(".")[0]) >= 2:
121
122
  # Note: we only retry on status and not on any of the
122
123
  # other supported reasons
123
124
  retries = Retry(