atlassian-python-api 3.41.19__tar.gz → 3.41.21__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 (198) hide show
  1. {atlassian_python_api-3.41.19/atlassian_python_api.egg-info → atlassian_python_api-3.41.21}/PKG-INFO +1 -1
  2. atlassian_python_api-3.41.21/atlassian/VERSION +1 -0
  3. atlassian_python_api-3.41.21/atlassian/bitbucket/cloud/common/__init__.py +1 -0
  4. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/atlassian/bitbucket/cloud/repositories/__init__.py +5 -1
  5. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/atlassian/bitbucket/cloud/repositories/refs.py +5 -1
  6. atlassian_python_api-3.41.21/atlassian/bitbucket/server/common/__init__.py +1 -0
  7. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/atlassian/confluence.py +6 -3
  8. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/atlassian/jira.py +57 -0
  9. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/atlassian/rest_client.py +1 -0
  10. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/atlassian/xray.py +30 -0
  11. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21/atlassian_python_api.egg-info}/PKG-INFO +1 -1
  12. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/atlassian_python_api.egg-info/SOURCES.txt +10 -0
  13. atlassian_python_api-3.41.21/tests/__pycache__/__init__.cpython-39.pyc +0 -0
  14. atlassian_python_api-3.41.21/tests/__pycache__/mockup.cpython-39.pyc +0 -0
  15. atlassian_python_api-3.41.21/tests/__pycache__/test_base.cpython-39-pytest-8.3.4.pyc +0 -0
  16. atlassian_python_api-3.41.21/tests/__pycache__/test_bitbucket_cloud_oo.cpython-39-pytest-8.3.4.pyc +0 -0
  17. atlassian_python_api-3.41.21/tests/__pycache__/test_bitbucket_server.cpython-39-pytest-8.3.4.pyc +0 -0
  18. atlassian_python_api-3.41.21/tests/__pycache__/test_bitbucket_server_oo.cpython-39-pytest-8.3.4.pyc +0 -0
  19. atlassian_python_api-3.41.21/tests/__pycache__/test_confluence_advanced_mode.cpython-39-pytest-8.3.4.pyc +0 -0
  20. atlassian_python_api-3.41.21/tests/__pycache__/test_confluence_attach.cpython-39-pytest-8.3.4.pyc +0 -0
  21. atlassian_python_api-3.41.21/tests/__pycache__/test_jira.cpython-39-pytest-8.3.4.pyc +0 -0
  22. atlassian_python_api-3.41.21/tests/__pycache__/test_servicedesk.cpython-39-pytest-8.3.4.pyc +0 -0
  23. atlassian_python_api-3.41.19/atlassian/VERSION +0 -1
  24. atlassian_python_api-3.41.19/atlassian/bitbucket/cloud/common/__init__.py +0 -1
  25. atlassian_python_api-3.41.19/atlassian/bitbucket/server/common/__init__.py +0 -1
  26. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/LICENSE +0 -0
  27. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/MANIFEST.in +0 -0
  28. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/README.rst +0 -0
  29. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/atlassian/__init__.py +0 -0
  30. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/atlassian/bamboo.py +0 -0
  31. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/atlassian/bitbucket/__init__.py +0 -0
  32. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/atlassian/bitbucket/base.py +0 -0
  33. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/atlassian/bitbucket/cloud/__init__.py +0 -0
  34. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/atlassian/bitbucket/cloud/base.py +0 -0
  35. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/atlassian/bitbucket/cloud/common/builds.py +0 -0
  36. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/atlassian/bitbucket/cloud/common/comments.py +0 -0
  37. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/atlassian/bitbucket/cloud/common/users.py +0 -0
  38. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/atlassian/bitbucket/cloud/repositories/branchRestrictions.py +0 -0
  39. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/atlassian/bitbucket/cloud/repositories/commits.py +0 -0
  40. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/atlassian/bitbucket/cloud/repositories/defaultReviewers.py +0 -0
  41. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/atlassian/bitbucket/cloud/repositories/deploymentEnvironments.py +0 -0
  42. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/atlassian/bitbucket/cloud/repositories/diffstat.py +0 -0
  43. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/atlassian/bitbucket/cloud/repositories/groupPermissions.py +0 -0
  44. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/atlassian/bitbucket/cloud/repositories/hooks.py +0 -0
  45. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/atlassian/bitbucket/cloud/repositories/issues.py +0 -0
  46. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/atlassian/bitbucket/cloud/repositories/pipelines.py +0 -0
  47. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/atlassian/bitbucket/cloud/repositories/pullRequests.py +0 -0
  48. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/atlassian/bitbucket/cloud/repositories/repositoryVariables.py +0 -0
  49. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/atlassian/bitbucket/cloud/workspaces/__init__.py +0 -0
  50. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/atlassian/bitbucket/cloud/workspaces/members.py +0 -0
  51. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/atlassian/bitbucket/cloud/workspaces/permissions.py +0 -0
  52. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/atlassian/bitbucket/cloud/workspaces/projects.py +0 -0
  53. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/atlassian/bitbucket/server/__init__.py +0 -0
  54. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/atlassian/bitbucket/server/base.py +0 -0
  55. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/atlassian/bitbucket/server/common/permissions.py +0 -0
  56. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/atlassian/bitbucket/server/globalPermissions.py +0 -0
  57. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/atlassian/bitbucket/server/projects/__init__.py +0 -0
  58. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/atlassian/bitbucket/server/projects/repos/__init__.py +0 -0
  59. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/atlassian/cloud_admin.py +0 -0
  60. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/atlassian/crowd.py +0 -0
  61. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/atlassian/errors.py +0 -0
  62. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/atlassian/insight.py +0 -0
  63. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/atlassian/marketplace.py +0 -0
  64. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/atlassian/portfolio.py +0 -0
  65. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/atlassian/request_utils.py +0 -0
  66. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/atlassian/service_desk.py +0 -0
  67. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/atlassian/statuspage.py +0 -0
  68. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/atlassian/utils.py +0 -0
  69. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/atlassian_python_api.egg-info/dependency_links.txt +0 -0
  70. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/atlassian_python_api.egg-info/not-zip-safe +0 -0
  71. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/atlassian_python_api.egg-info/requires.txt +0 -0
  72. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/atlassian_python_api.egg-info/top_level.txt +0 -0
  73. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/pyproject.toml +0 -0
  74. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/requirements.txt +0 -0
  75. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/setup.cfg +0 -0
  76. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/setup.py +0 -0
  77. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/__init__.py +0 -0
  78. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/mockup.py +0 -0
  79. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/GET +0 -0
  80. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/TestRepositoryCreated/POST +0 -0
  81. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/GET +0 -0
  82. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/branch-restrictions/17203842/DELETE +0 -0
  83. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/branch-restrictions/17203842/GET +0 -0
  84. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/branch-restrictions/17203842/PUT +0 -0
  85. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/branch-restrictions/GET +0 -0
  86. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/default-reviewers/DefaultReviewer1Uuid/DELETE +0 -0
  87. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/default-reviewers/DefaultReviewer1Uuid/GET +0 -0
  88. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/default-reviewers/GET +0 -0
  89. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/issues/3/DELETE +0 -0
  90. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/issues/3/GET +0 -0
  91. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/issues/3/PUT +0 -0
  92. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/issues/GET +0 -0
  93. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/issues/POST +0 -0
  94. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pipelines/GET +0 -0
  95. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pipelines/POST +0 -0
  96. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pipelines/{PipelineUuid}/GET +0 -0
  97. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pipelines/{PipelineUuid}/steps/GET +0 -0
  98. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pipelines/{PipelineUuid}/steps/{PipelineStep1Uuid}/GET +0 -0
  99. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pipelines/{PipelineUuid}/steps/{PipelineStep2Uuid}/GET +0 -0
  100. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pipelines/{PipelineUuid}/steps/{PipelineStep2Uuid}/log/GET +0 -0
  101. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pipelines/{PipelineUuid}/stopPipeline/POST +0 -0
  102. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/GET +0 -0
  103. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/approve/DELETE +0 -0
  104. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/approve/POST +0 -0
  105. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/comments/GET +0 -0
  106. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/comments/POST +0 -0
  107. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/commits/GET +0 -0
  108. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/decline/POST +0 -0
  109. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/merge/POST +0 -0
  110. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/request-changes/DELETE +0 -0
  111. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/request-changes/POST +0 -0
  112. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/statuses/GET +0 -0
  113. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/tasks/123456/DELETE +0 -0
  114. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/tasks/123456/PUT +0 -0
  115. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/tasks/GET +0 -0
  116. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/tasks/POST +0 -0
  117. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/25/GET +0 -0
  118. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/GET +0 -0
  119. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/POST +0 -0
  120. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/bitbucket/cloud/2.0/workspaces/GET +0 -0
  121. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/bitbucket/cloud/2.0/workspaces/TestWorkspace1/GET +0 -0
  122. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/bitbucket/cloud/2.0/workspaces/TestWorkspace2/GET +0 -0
  123. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/bitbucket/cloud/2.0/workspaces/TestWorkspace3/GET +0 -0
  124. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/bitbucket/server/rest/api/1.0/admin/permissions/groups/DELETE +0 -0
  125. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/bitbucket/server/rest/api/1.0/admin/permissions/groups/GET +0 -0
  126. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/bitbucket/server/rest/api/1.0/admin/permissions/groups/none/GET +0 -0
  127. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/bitbucket/server/rest/api/1.0/admin/permissions/users/DELETE +0 -0
  128. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/bitbucket/server/rest/api/1.0/admin/permissions/users/GET +0 -0
  129. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/bitbucket/server/rest/api/1.0/admin/permissions/users/none/GET +0 -0
  130. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/bitbucket/server/rest/api/1.0/projects/GET +0 -0
  131. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/GET +0 -0
  132. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/PUT +0 -0
  133. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/permissions/groups/DELETE +0 -0
  134. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/permissions/groups/GET +0 -0
  135. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/permissions/groups/none/GET +0 -0
  136. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/permissions/users/DELETE +0 -0
  137. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/permissions/users/GET +0 -0
  138. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/permissions/users/none/GET +0 -0
  139. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/GET +0 -0
  140. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/GET +0 -0
  141. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/PUT +0 -0
  142. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/archive/GET +0 -0
  143. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/contributing/GET +0 -0
  144. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/default-branch/GET +0 -0
  145. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/default-branch/PUT +0 -0
  146. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/forks/GET +0 -0
  147. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/license/GET +0 -0
  148. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/permissions/groups/DELETE +0 -0
  149. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/permissions/groups/GET +0 -0
  150. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/permissions/groups/none/GET +0 -0
  151. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/permissions/users/DELETE +0 -0
  152. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/permissions/users/GET +0 -0
  153. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/permissions/users/none/GET +0 -0
  154. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/readme/GET +0 -0
  155. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/related/GET +0 -0
  156. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/webhooks/3/DELETE +0 -0
  157. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/webhooks/3/GET +0 -0
  158. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/webhooks/3/PUT +0 -0
  159. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/webhooks/GET +0 -0
  160. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/webhooks/POST +0 -0
  161. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/jira/rest/agile/1.0/epic/BAR-22/issue/GET +0 -0
  162. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/jira/rest/agile/1.0/epic/none/issue/GET +0 -0
  163. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/jira/rest/api/2/comment/list/POST +0 -0
  164. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/jira/rest/api/2/issue/FOO-123/GET +0 -0
  165. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/jira/rest/api/2/issue/FOO-123/comment/10000/GET +0 -0
  166. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/jira/rest/api/2/issue/FOO-123/comment/GET +0 -0
  167. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/jira/rest/api/2/issue/FOO-123/properties/Bar1/DELETE +0 -0
  168. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/jira/rest/api/2/issue/FOO-123/properties/Bar1/GET +0 -0
  169. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/jira/rest/api/2/issue/FOO-123/properties/Bar1/PUT +0 -0
  170. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/jira/rest/api/2/issue/FOO-123/properties/Bar2New/PUT +0 -0
  171. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/jira/rest/api/2/issue/FOO-123/properties/GET +0 -0
  172. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/jira/rest/api/2/issue/FOO-123/remotelink/POST +0 -0
  173. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/jira/rest/api/2/issue/POST +0 -0
  174. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/jira/rest/api/2/issue/REGEX-123/file.txt +0 -0
  175. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/servicedesk/rest/servicedeskapi/customer/POST +0 -0
  176. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/servicedesk/rest/servicedeskapi/organization/GET +0 -0
  177. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/servicedesk/rest/servicedeskapi/organization/POST +0 -0
  178. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/servicedesk/rest/servicedeskapi/organization/{organizationId}/DELETE +0 -0
  179. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/servicedesk/rest/servicedeskapi/organization/{organizationId}/GET +0 -0
  180. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/servicedesk/rest/servicedeskapi/organization/{organizationId}/property/GET +0 -0
  181. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/servicedesk/rest/servicedeskapi/organization/{organizationId}/user/DELETE +0 -0
  182. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/servicedesk/rest/servicedeskapi/organization/{organizationId}/user/GET +0 -0
  183. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/servicedesk/rest/servicedeskapi/organization/{organizationId}/user/POST +0 -0
  184. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/servicedesk/rest/servicedeskapi/servicedesk/{serviceDeskId}/customer/DELETE +0 -0
  185. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/servicedesk/rest/servicedeskapi/servicedesk/{serviceDeskId}/customer/GET +0 -0
  186. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/servicedesk/rest/servicedeskapi/servicedesk/{serviceDeskId}/customer/POST +0 -0
  187. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/servicedesk/rest/servicedeskapi/servicedesk/{serviceDeskId}/organization/DELETE +0 -0
  188. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/servicedesk/rest/servicedeskapi/servicedesk/{serviceDeskId}/organization/GET +0 -0
  189. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/responses/servicedesk/rest/servicedeskapi/servicedesk/{serviceDeskId}/organization/POST +0 -0
  190. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/test_base.py +0 -0
  191. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/test_bitbucket_cloud_oo.py +0 -0
  192. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/test_bitbucket_server.py +0 -0
  193. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/test_bitbucket_server_oo.py +0 -0
  194. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/test_confluence_advanced_mode.py +0 -0
  195. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/test_confluence_attach.py +0 -0
  196. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/test_jira.py +0 -0
  197. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tests/test_servicedesk.py +0 -0
  198. {atlassian_python_api-3.41.19 → atlassian_python_api-3.41.21}/tox.ini +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: atlassian-python-api
3
- Version: 3.41.19
3
+ Version: 3.41.21
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.21
@@ -0,0 +1 @@
1
+ """Bitbucket Cloud common package"""
@@ -27,7 +27,7 @@ class Repositories(RepositoriesBase):
27
27
  def __init__(self, url, *args, **kwargs):
28
28
  super(Repositories, self).__init__(url, *args, **kwargs)
29
29
 
30
- def each(self, after=None, role=None, q=None, sort=None):
30
+ def each(self, after=None, role=None, q=None, sort=None, pagelen=None):
31
31
  """
32
32
  Get all repositories matching the criteria.
33
33
 
@@ -47,6 +47,8 @@ class Repositories(RepositoriesBase):
47
47
  See https://developer.atlassian.com/bitbucket/api/2/reference/meta/filtering for details.
48
48
  :param sort: string: Name of a response property to sort results.
49
49
  See https://developer.atlassian.com/bitbucket/api/2/reference/meta/filtering for details.
50
+ :param pagelen: int: Name of a response property to change page size.
51
+ See https://developer.atlassian.com/cloud/bitbucket/rest/intro/#pagination for details.
50
52
 
51
53
  :return: A generator for the repository objects
52
54
 
@@ -64,6 +66,8 @@ class Repositories(RepositoriesBase):
64
66
  params["q"] = q
65
67
  if sort is not None:
66
68
  params["sort"] = sort
69
+ if pagelen is not None:
70
+ params["pagelen"] = pagelen
67
71
  for repository in self._get_paged(None, params):
68
72
  yield self._get_object(repository)
69
73
 
@@ -32,7 +32,7 @@ class Refs(BitbucketCloudBase):
32
32
 
33
33
  return self._get_object(self.post(None, data))
34
34
 
35
- def each(self, q=None, sort=None):
35
+ def each(self, q=None, sort=None, pagelen=None):
36
36
  """
37
37
  Returns the list of refs in this repository.
38
38
 
@@ -40,6 +40,8 @@ class Refs(BitbucketCloudBase):
40
40
  See https://developer.atlassian.com/bitbucket/api/2/reference/meta/filtering for details.
41
41
  :param sort: string: Name of a response property to sort results.
42
42
  See https://developer.atlassian.com/bitbucket/api/2/reference/meta/filtering for details.
43
+ :param pagelen: int: Name of a response property to change page size.
44
+ See https://developer.atlassian.com/cloud/bitbucket/rest/intro/#pagination for details.
43
45
 
44
46
  :return: A generator for the Ref objects
45
47
  """
@@ -48,6 +50,8 @@ class Refs(BitbucketCloudBase):
48
50
  params["sort"] = sort
49
51
  if q is not None:
50
52
  params["q"] = q
53
+ if pagelen is not None:
54
+ params["pagelen"] = pagelen
51
55
  for ref in self._get_paged(None, trailing=True, params=params):
52
56
  yield self._get_object(super(Refs, self).get(ref.get("name")))
53
57
 
@@ -0,0 +1 @@
1
+ """Bitbucket Server common package"""
@@ -1470,8 +1470,7 @@ class Confluence(AtlassianRestAPI):
1470
1470
  file_name = attachment["title"] or attachment["id"] # Use attachment ID if title is unavailable
1471
1471
  download_link = self.url + attachment["_links"]["download"]
1472
1472
  # Fetch the file content
1473
- response = self._session.get(str(download_link))
1474
- response.raise_for_status() # Raise error if request fails
1473
+ response = self.get(str(download_link))
1475
1474
 
1476
1475
  if to_memory:
1477
1476
  # Store in BytesIO object
@@ -1493,7 +1492,11 @@ class Confluence(AtlassianRestAPI):
1493
1492
  except PermissionError:
1494
1493
  raise PermissionError("Permission denied when trying to save files to '{path}'.".format(path=path))
1495
1494
  except requests.HTTPError as http_err:
1496
- raise Exception("HTTP error occurred while downloading attachments: {http_err}".format(http_err=http_err))
1495
+ raise requests.HTTPError(
1496
+ "HTTP error occurred while downloading attachments: {http_err}".format(http_err=http_err),
1497
+ response=http_err.response,
1498
+ request=http_err.request,
1499
+ )
1497
1500
  except Exception as err:
1498
1501
  raise Exception("An unexpected error occurred: {error}".format(error=err))
1499
1502
 
@@ -242,6 +242,16 @@ class Jira(AtlassianRestAPI):
242
242
  url = "{base_url}/{attachment_id}".format(base_url=base_url, attachment_id=attachment_id)
243
243
  return self.get(url)
244
244
 
245
+ def download_issue_attachments(self, issue, path=None):
246
+ """
247
+ Downloads all attachments from a Jira issue.
248
+ :param issue: The issue-key of the Jira issue
249
+ :param path: Path to directory where attachments will be saved. If None, current working directory will be used.
250
+ :return: A message indicating the result of the download operation.
251
+ """
252
+ return self.download_attachments_from_issue(issue=issue, path=path, cloud=self.cloud)
253
+
254
+ @deprecated(version="3.41.20", reason="Use download_issue_attachments instead")
245
255
  def download_attachments_from_issue(self, issue, path=None, cloud=True):
246
256
  """
247
257
  Downloads all attachments from a Jira issue.
@@ -3764,6 +3774,53 @@ api-group-workflows/#api-rest-api-2-workflow-search-get)
3764
3774
  url = "{base_url}/{schemeID}/permission".format(base_url=base_url, schemeID=permission_id)
3765
3775
  return self.post(url, data=new_permission)
3766
3776
 
3777
+ def update_permissionscheme(self, permission_id, name, description=None, permissions=None, scope=None, expand=None):
3778
+ """
3779
+ Updates a permission scheme. Below are some important things to note when using this resource:
3780
+ - If a permissions list is present in the request, then it is set in the permission scheme, overwriting all existing grants.
3781
+ - If you want to update only the name and description, then do not send a permissions list in the request.
3782
+ - Sending an empty list will remove all permission grants from the permission scheme.
3783
+
3784
+ Cloud API docs: https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-permission-schemes/#api-rest-api-3-permissionscheme-schemeid-put
3785
+
3786
+ :param permission_id: int, REQUIRED: The ID of the permission scheme to update.
3787
+ :param name: str, REQUIRED: The name of the permission scheme. Must be unique.
3788
+ :param description: str, OPTIONAL: A description for the permission scheme. Defaults to None.
3789
+ :param permissions: list[dict], OPTIONAL: A collection of permission grants. Defaults to None.
3790
+ Example:
3791
+ [
3792
+ {
3793
+ "holder": {
3794
+ "parameter": "jira-core-users",
3795
+ "type": "group",
3796
+ "value": "ca85fac0-d974-40ca-a615-7af99c48d24f"
3797
+ },
3798
+ "permission": "ADMINISTER_PROJECTS"
3799
+ }
3800
+ ]
3801
+ :param scope: OPTIONAL: The scope of the permission scheme.
3802
+ :param expand: str, OPTIONAL: Use expand to include additional information in the response.
3803
+ This parameter accepts a comma-separated list.
3804
+ Note that permissions are always included when you specify any value.
3805
+
3806
+ :return:
3807
+ """
3808
+ base_url = self.resource_url("permissionscheme")
3809
+ url = "{base_url}/{scheme_id}".format(base_url=base_url, scheme_id=permission_id)
3810
+ data = {"name": name}
3811
+ if description is not None:
3812
+ data["description"] = description
3813
+ if permissions is not None:
3814
+ data["permissions"] = permissions
3815
+ if scope is not None:
3816
+ data["scope"] = scope
3817
+
3818
+ params = {}
3819
+ if expand:
3820
+ params["expand"] = expand
3821
+
3822
+ return self.put(url, data=data, params=params)
3823
+
3767
3824
  """
3768
3825
  REST resource that allows to view security schemes defined in the product.
3769
3826
  Resource for managing priority schemes.
@@ -161,6 +161,7 @@ class AtlassianRestAPI(object):
161
161
  backoff_factor=self.backoff_factor,
162
162
  backoff_jitter=self.backoff_jitter,
163
163
  backoff_max=self.max_backoff_seconds,
164
+ respect_retry_after_header=self.retry_with_header,
164
165
  )
165
166
  self._session.mount(self.url, HTTPAdapter(max_retries=retries))
166
167
  if username and password:
@@ -1,6 +1,7 @@
1
1
  # coding=utf-8
2
2
  import logging
3
3
  import re
4
+ from requests import HTTPError
4
5
  from .rest_client import AtlassianRestAPI
5
6
 
6
7
  log = logging.getLogger(__name__)
@@ -13,6 +14,25 @@ class Xray(AtlassianRestAPI):
13
14
  kwargs["api_root"] = "rest/raven"
14
15
  super(Xray, self).__init__(*args, **kwargs)
15
16
 
17
+ def raise_for_status(self, response):
18
+ """
19
+ Checks the response for an error status and raises an exception with the error message provided by the server
20
+ :param response:
21
+ :return:
22
+ """
23
+ if response.status_code == 401 and response.headers.get("Content-Type") != "application/json;charset=UTF-8":
24
+ raise HTTPError("Unauthorized (401)", response=response)
25
+
26
+ if 400 <= response.status_code < 600:
27
+ try:
28
+ j = response.json()
29
+ error_msg = j["message"]
30
+ except Exception as e:
31
+ log.error(e)
32
+ response.raise_for_status()
33
+ else:
34
+ raise HTTPError(error_msg, response=response)
35
+
16
36
  def resource_url(self, resource, api_root=None, api_version=None):
17
37
  """
18
38
  Overloading the method from AtlassianRestAPI to be compatible with the "middle man" version used by Xray.
@@ -463,6 +483,16 @@ class Xray(AtlassianRestAPI):
463
483
  url = self.resource_url("testrun/{0}".format(test_run_id))
464
484
  return self.put(url, update)
465
485
 
486
+ def get_test_run_iteration(self, test_run_id, iteration_id):
487
+ """
488
+ Retrieve the specified iteration for the given test run.
489
+ :param test_run_id: ID of the test run (e.g. 100).
490
+ :param iteration_id: ID of the iteration.
491
+ :return: Returns the specified iteration for the given test run.
492
+ """
493
+ url = self.resource_url("testrun/{0}/iteration/{1}".format(test_run_id, iteration_id))
494
+ return self.get(url)
495
+
466
496
  def get_test_run_status(self, test_run_id):
467
497
  """
468
498
  Retrieve the status for the given test run.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: atlassian-python-api
3
- Version: 3.41.19
3
+ Version: 3.41.21
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
@@ -71,6 +71,16 @@ tests/test_confluence_advanced_mode.py
71
71
  tests/test_confluence_attach.py
72
72
  tests/test_jira.py
73
73
  tests/test_servicedesk.py
74
+ tests/__pycache__/__init__.cpython-39.pyc
75
+ tests/__pycache__/mockup.cpython-39.pyc
76
+ tests/__pycache__/test_base.cpython-39-pytest-8.3.4.pyc
77
+ tests/__pycache__/test_bitbucket_cloud_oo.cpython-39-pytest-8.3.4.pyc
78
+ tests/__pycache__/test_bitbucket_server.cpython-39-pytest-8.3.4.pyc
79
+ tests/__pycache__/test_bitbucket_server_oo.cpython-39-pytest-8.3.4.pyc
80
+ tests/__pycache__/test_confluence_advanced_mode.cpython-39-pytest-8.3.4.pyc
81
+ tests/__pycache__/test_confluence_attach.cpython-39-pytest-8.3.4.pyc
82
+ tests/__pycache__/test_jira.cpython-39-pytest-8.3.4.pyc
83
+ tests/__pycache__/test_servicedesk.cpython-39-pytest-8.3.4.pyc
74
84
  tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/GET
75
85
  tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/TestRepositoryCreated/POST
76
86
  tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/GET
@@ -1 +0,0 @@
1
- 3.41.19
@@ -1 +0,0 @@
1
- """ Bitbucket Cloud common package """
@@ -1 +0,0 @@
1
- """ Bitbucket Server common package """