atlassian-python-api 3.41.15__tar.gz → 3.41.16__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 (228) hide show
  1. {atlassian_python_api-3.41.15/atlassian_python_api.egg-info → atlassian_python_api-3.41.16}/PKG-INFO +1 -1
  2. atlassian_python_api-3.41.16/atlassian/VERSION +1 -0
  3. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/atlassian/confluence.py +10 -2
  4. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/atlassian/jira.py +12 -10
  5. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/atlassian/rest_client.py +28 -0
  6. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16/atlassian_python_api.egg-info}/PKG-INFO +1 -1
  7. atlassian_python_api-3.41.15/atlassian/VERSION +0 -1
  8. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/LICENSE +0 -0
  9. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/MANIFEST.in +0 -0
  10. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/README.rst +0 -0
  11. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/atlassian/__init__.py +0 -0
  12. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/atlassian/bamboo.py +0 -0
  13. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/atlassian/bitbucket/__init__.py +0 -0
  14. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/atlassian/bitbucket/base.py +0 -0
  15. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/atlassian/bitbucket/cloud/__init__.py +0 -0
  16. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/atlassian/bitbucket/cloud/base.py +0 -0
  17. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/atlassian/bitbucket/cloud/common/__init__.py +0 -0
  18. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/atlassian/bitbucket/cloud/common/builds.py +0 -0
  19. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/atlassian/bitbucket/cloud/common/comments.py +0 -0
  20. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/atlassian/bitbucket/cloud/common/users.py +0 -0
  21. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/atlassian/bitbucket/cloud/repositories/__init__.py +0 -0
  22. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/atlassian/bitbucket/cloud/repositories/branchRestrictions.py +0 -0
  23. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/atlassian/bitbucket/cloud/repositories/commits.py +0 -0
  24. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/atlassian/bitbucket/cloud/repositories/defaultReviewers.py +0 -0
  25. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/atlassian/bitbucket/cloud/repositories/deploymentEnvironments.py +0 -0
  26. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/atlassian/bitbucket/cloud/repositories/diffstat.py +0 -0
  27. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/atlassian/bitbucket/cloud/repositories/groupPermissions.py +0 -0
  28. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/atlassian/bitbucket/cloud/repositories/hooks.py +0 -0
  29. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/atlassian/bitbucket/cloud/repositories/issues.py +0 -0
  30. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/atlassian/bitbucket/cloud/repositories/pipelines.py +0 -0
  31. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/atlassian/bitbucket/cloud/repositories/pullRequests.py +0 -0
  32. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/atlassian/bitbucket/cloud/repositories/refs.py +0 -0
  33. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/atlassian/bitbucket/cloud/repositories/repositoryVariables.py +0 -0
  34. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/atlassian/bitbucket/cloud/workspaces/__init__.py +0 -0
  35. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/atlassian/bitbucket/cloud/workspaces/members.py +0 -0
  36. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/atlassian/bitbucket/cloud/workspaces/permissions.py +0 -0
  37. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/atlassian/bitbucket/cloud/workspaces/projects.py +0 -0
  38. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/atlassian/bitbucket/server/__init__.py +0 -0
  39. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/atlassian/bitbucket/server/base.py +0 -0
  40. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/atlassian/bitbucket/server/common/__init__.py +0 -0
  41. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/atlassian/bitbucket/server/common/permissions.py +0 -0
  42. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/atlassian/bitbucket/server/globalPermissions.py +0 -0
  43. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/atlassian/bitbucket/server/projects/__init__.py +0 -0
  44. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/atlassian/bitbucket/server/projects/repos/__init__.py +0 -0
  45. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/atlassian/cloud_admin.py +0 -0
  46. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/atlassian/crowd.py +0 -0
  47. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/atlassian/errors.py +0 -0
  48. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/atlassian/insight.py +0 -0
  49. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/atlassian/marketplace.py +0 -0
  50. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/atlassian/portfolio.py +0 -0
  51. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/atlassian/request_utils.py +0 -0
  52. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/atlassian/service_desk.py +0 -0
  53. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/atlassian/statuspage.py +0 -0
  54. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/atlassian/utils.py +0 -0
  55. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/atlassian/xray.py +0 -0
  56. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/atlassian_python_api.egg-info/SOURCES.txt +0 -0
  57. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/atlassian_python_api.egg-info/dependency_links.txt +0 -0
  58. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/atlassian_python_api.egg-info/not-zip-safe +0 -0
  59. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/atlassian_python_api.egg-info/requires.txt +0 -0
  60. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/atlassian_python_api.egg-info/top_level.txt +0 -0
  61. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/pyproject.toml +0 -0
  62. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/requirements.txt +0 -0
  63. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/setup.cfg +0 -0
  64. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/setup.py +0 -0
  65. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/__init__.py +0 -0
  66. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/__pycache__/__init__.cpython-311.pyc +0 -0
  67. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/__pycache__/mockup.cpython-311.pyc +0 -0
  68. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/__pycache__/test_base.cpython-311-pytest-7.2.0.pyc +0 -0
  69. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/__pycache__/test_base.cpython-311-pytest-7.2.1.pyc +0 -0
  70. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/__pycache__/test_base.cpython-311-pytest-7.3.1.pyc +0 -0
  71. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/__pycache__/test_base.cpython-311-pytest-7.4.0.pyc +0 -0
  72. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/__pycache__/test_base.cpython-311-pytest-7.4.2.pyc +0 -0
  73. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/__pycache__/test_bitbucket_cloud_oo.cpython-311-pytest-7.2.0.pyc +0 -0
  74. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/__pycache__/test_bitbucket_cloud_oo.cpython-311-pytest-7.2.1.pyc +0 -0
  75. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/__pycache__/test_bitbucket_cloud_oo.cpython-311-pytest-7.3.1.pyc +0 -0
  76. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/__pycache__/test_bitbucket_cloud_oo.cpython-311-pytest-7.4.0.pyc +0 -0
  77. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/__pycache__/test_bitbucket_cloud_oo.cpython-311-pytest-7.4.2.pyc +0 -0
  78. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/__pycache__/test_bitbucket_server.cpython-311-pytest-7.2.0.pyc +0 -0
  79. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/__pycache__/test_bitbucket_server.cpython-311-pytest-7.2.1.pyc +0 -0
  80. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/__pycache__/test_bitbucket_server.cpython-311-pytest-7.3.1.pyc +0 -0
  81. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/__pycache__/test_bitbucket_server.cpython-311-pytest-7.4.0.pyc +0 -0
  82. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/__pycache__/test_bitbucket_server.cpython-311-pytest-7.4.2.pyc +0 -0
  83. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/__pycache__/test_bitbucket_server_oo.cpython-311-pytest-7.2.0.pyc +0 -0
  84. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/__pycache__/test_bitbucket_server_oo.cpython-311-pytest-7.2.1.pyc +0 -0
  85. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/__pycache__/test_bitbucket_server_oo.cpython-311-pytest-7.3.1.pyc +0 -0
  86. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/__pycache__/test_bitbucket_server_oo.cpython-311-pytest-7.4.0.pyc +0 -0
  87. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/__pycache__/test_bitbucket_server_oo.cpython-311-pytest-7.4.2.pyc +0 -0
  88. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/__pycache__/test_confluence_advanced_mode.cpython-311-pytest-7.2.0.pyc +0 -0
  89. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/__pycache__/test_confluence_advanced_mode.cpython-311-pytest-7.2.1.pyc +0 -0
  90. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/__pycache__/test_confluence_advanced_mode.cpython-311-pytest-7.3.1.pyc +0 -0
  91. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/__pycache__/test_confluence_advanced_mode.cpython-311-pytest-7.4.0.pyc +0 -0
  92. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/__pycache__/test_confluence_advanced_mode.cpython-311-pytest-7.4.2.pyc +0 -0
  93. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/__pycache__/test_confluence_attach.cpython-311-pytest-7.2.0.pyc +0 -0
  94. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/__pycache__/test_confluence_attach.cpython-311-pytest-7.2.1.pyc +0 -0
  95. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/__pycache__/test_confluence_attach.cpython-311-pytest-7.3.1.pyc +0 -0
  96. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/__pycache__/test_confluence_attach.cpython-311-pytest-7.4.0.pyc +0 -0
  97. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/__pycache__/test_confluence_attach.cpython-311-pytest-7.4.2.pyc +0 -0
  98. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/__pycache__/test_jira.cpython-311-pytest-7.2.0.pyc +0 -0
  99. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/__pycache__/test_jira.cpython-311-pytest-7.2.1.pyc +0 -0
  100. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/__pycache__/test_jira.cpython-311-pytest-7.3.1.pyc +0 -0
  101. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/__pycache__/test_jira.cpython-311-pytest-7.4.0.pyc +0 -0
  102. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/__pycache__/test_jira.cpython-311-pytest-7.4.2.pyc +0 -0
  103. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/__pycache__/test_jira.cpython-311-pytest-8.0.0.pyc +0 -0
  104. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/__pycache__/test_servicedesk.cpython-311-pytest-7.2.0.pyc +0 -0
  105. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/__pycache__/test_servicedesk.cpython-311-pytest-7.2.1.pyc +0 -0
  106. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/__pycache__/test_servicedesk.cpython-311-pytest-7.3.1.pyc +0 -0
  107. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/__pycache__/test_servicedesk.cpython-311-pytest-7.4.0.pyc +0 -0
  108. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/__pycache__/test_servicedesk.cpython-311-pytest-7.4.2.pyc +0 -0
  109. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/mockup.py +0 -0
  110. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/GET +0 -0
  111. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/TestRepositoryCreated/POST +0 -0
  112. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/GET +0 -0
  113. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/branch-restrictions/17203842/DELETE +0 -0
  114. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/branch-restrictions/17203842/GET +0 -0
  115. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/branch-restrictions/17203842/PUT +0 -0
  116. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/branch-restrictions/GET +0 -0
  117. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/default-reviewers/DefaultReviewer1Uuid/DELETE +0 -0
  118. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/default-reviewers/DefaultReviewer1Uuid/GET +0 -0
  119. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/default-reviewers/GET +0 -0
  120. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/issues/3/DELETE +0 -0
  121. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/issues/3/GET +0 -0
  122. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/issues/3/PUT +0 -0
  123. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/issues/GET +0 -0
  124. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/issues/POST +0 -0
  125. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pipelines/GET +0 -0
  126. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pipelines/POST +0 -0
  127. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pipelines/{PipelineUuid}/GET +0 -0
  128. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pipelines/{PipelineUuid}/steps/GET +0 -0
  129. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pipelines/{PipelineUuid}/steps/{PipelineStep1Uuid}/GET +0 -0
  130. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pipelines/{PipelineUuid}/steps/{PipelineStep2Uuid}/GET +0 -0
  131. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pipelines/{PipelineUuid}/steps/{PipelineStep2Uuid}/log/GET +0 -0
  132. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pipelines/{PipelineUuid}/stopPipeline/POST +0 -0
  133. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/GET +0 -0
  134. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/approve/DELETE +0 -0
  135. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/approve/POST +0 -0
  136. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/comments/GET +0 -0
  137. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/comments/POST +0 -0
  138. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/commits/GET +0 -0
  139. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/decline/POST +0 -0
  140. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/merge/POST +0 -0
  141. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/request-changes/DELETE +0 -0
  142. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/request-changes/POST +0 -0
  143. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/statuses/GET +0 -0
  144. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/tasks/123456/DELETE +0 -0
  145. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/tasks/123456/PUT +0 -0
  146. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/tasks/GET +0 -0
  147. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/tasks/POST +0 -0
  148. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/25/GET +0 -0
  149. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/GET +0 -0
  150. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/POST +0 -0
  151. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/bitbucket/cloud/2.0/workspaces/GET +0 -0
  152. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/bitbucket/cloud/2.0/workspaces/TestWorkspace1/GET +0 -0
  153. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/bitbucket/cloud/2.0/workspaces/TestWorkspace2/GET +0 -0
  154. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/bitbucket/cloud/2.0/workspaces/TestWorkspace3/GET +0 -0
  155. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/bitbucket/server/rest/api/1.0/admin/permissions/groups/DELETE +0 -0
  156. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/bitbucket/server/rest/api/1.0/admin/permissions/groups/GET +0 -0
  157. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/bitbucket/server/rest/api/1.0/admin/permissions/groups/none/GET +0 -0
  158. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/bitbucket/server/rest/api/1.0/admin/permissions/users/DELETE +0 -0
  159. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/bitbucket/server/rest/api/1.0/admin/permissions/users/GET +0 -0
  160. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/bitbucket/server/rest/api/1.0/admin/permissions/users/none/GET +0 -0
  161. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/bitbucket/server/rest/api/1.0/projects/GET +0 -0
  162. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/GET +0 -0
  163. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/PUT +0 -0
  164. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/permissions/groups/DELETE +0 -0
  165. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/permissions/groups/GET +0 -0
  166. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/permissions/groups/none/GET +0 -0
  167. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/permissions/users/DELETE +0 -0
  168. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/permissions/users/GET +0 -0
  169. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/permissions/users/none/GET +0 -0
  170. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/GET +0 -0
  171. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/GET +0 -0
  172. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/PUT +0 -0
  173. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/archive/GET +0 -0
  174. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/contributing/GET +0 -0
  175. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/default-branch/GET +0 -0
  176. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/default-branch/PUT +0 -0
  177. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/forks/GET +0 -0
  178. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/license/GET +0 -0
  179. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/permissions/groups/DELETE +0 -0
  180. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/permissions/groups/GET +0 -0
  181. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/permissions/groups/none/GET +0 -0
  182. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/permissions/users/DELETE +0 -0
  183. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/permissions/users/GET +0 -0
  184. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/permissions/users/none/GET +0 -0
  185. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/readme/GET +0 -0
  186. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/related/GET +0 -0
  187. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/webhooks/3/DELETE +0 -0
  188. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/webhooks/3/GET +0 -0
  189. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/webhooks/3/PUT +0 -0
  190. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/webhooks/GET +0 -0
  191. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/webhooks/POST +0 -0
  192. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/jira/rest/agile/1.0/epic/BAR-22/issue/GET +0 -0
  193. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/jira/rest/agile/1.0/epic/none/issue/GET +0 -0
  194. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/jira/rest/api/2/comment/list/POST +0 -0
  195. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/jira/rest/api/2/issue/FOO-123/GET +0 -0
  196. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/jira/rest/api/2/issue/FOO-123/comment/10000/GET +0 -0
  197. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/jira/rest/api/2/issue/FOO-123/comment/GET +0 -0
  198. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/jira/rest/api/2/issue/FOO-123/properties/Bar1/DELETE +0 -0
  199. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/jira/rest/api/2/issue/FOO-123/properties/Bar1/GET +0 -0
  200. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/jira/rest/api/2/issue/FOO-123/properties/Bar1/PUT +0 -0
  201. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/jira/rest/api/2/issue/FOO-123/properties/Bar2New/PUT +0 -0
  202. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/jira/rest/api/2/issue/FOO-123/properties/GET +0 -0
  203. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/jira/rest/api/2/issue/POST +0 -0
  204. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/jira/rest/api/2/issue/REGEX-123/file.txt +0 -0
  205. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/servicedesk/rest/servicedeskapi/customer/POST +0 -0
  206. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/servicedesk/rest/servicedeskapi/organization/GET +0 -0
  207. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/servicedesk/rest/servicedeskapi/organization/POST +0 -0
  208. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/servicedesk/rest/servicedeskapi/organization/{organizationId}/DELETE +0 -0
  209. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/servicedesk/rest/servicedeskapi/organization/{organizationId}/GET +0 -0
  210. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/servicedesk/rest/servicedeskapi/organization/{organizationId}/property/GET +0 -0
  211. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/servicedesk/rest/servicedeskapi/organization/{organizationId}/user/DELETE +0 -0
  212. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/servicedesk/rest/servicedeskapi/organization/{organizationId}/user/GET +0 -0
  213. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/servicedesk/rest/servicedeskapi/organization/{organizationId}/user/POST +0 -0
  214. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/servicedesk/rest/servicedeskapi/servicedesk/{serviceDeskId}/customer/DELETE +0 -0
  215. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/servicedesk/rest/servicedeskapi/servicedesk/{serviceDeskId}/customer/GET +0 -0
  216. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/servicedesk/rest/servicedeskapi/servicedesk/{serviceDeskId}/customer/POST +0 -0
  217. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/servicedesk/rest/servicedeskapi/servicedesk/{serviceDeskId}/organization/DELETE +0 -0
  218. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/servicedesk/rest/servicedeskapi/servicedesk/{serviceDeskId}/organization/GET +0 -0
  219. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/responses/servicedesk/rest/servicedeskapi/servicedesk/{serviceDeskId}/organization/POST +0 -0
  220. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/test_base.py +0 -0
  221. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/test_bitbucket_cloud_oo.py +0 -0
  222. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/test_bitbucket_server.py +0 -0
  223. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/test_bitbucket_server_oo.py +0 -0
  224. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/test_confluence_advanced_mode.py +0 -0
  225. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/test_confluence_attach.py +0 -0
  226. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/test_jira.py +0 -0
  227. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tests/test_servicedesk.py +0 -0
  228. {atlassian_python_api-3.41.15 → atlassian_python_api-3.41.16}/tox.ini +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: atlassian-python-api
3
- Version: 3.41.15
3
+ Version: 3.41.16
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.16
@@ -522,13 +522,14 @@ class Confluence(AtlassianRestAPI):
522
522
  # operate differently between different collaborative modes
523
523
  return self.get_page_by_id(page_id=page_id, expand=expand, status=status)
524
524
 
525
- def get_all_pages_by_label(self, label, start=0, limit=50):
525
+ def get_all_pages_by_label(self, label, start=0, limit=50, expand=None):
526
526
  """
527
527
  Get all page by label
528
528
  :param label:
529
529
  :param start: OPTIONAL: The start point of the collection to return. Default: None (0).
530
530
  :param limit: OPTIONAL: The limit of the number of pages to return, this may be restricted by
531
531
  fixed system limits. Default: 50
532
+ :param expand: OPTIONAL: a comma separated list of properties to expand on the content
532
533
  :return:
533
534
  """
534
535
  url = "rest/api/content/search"
@@ -539,6 +540,8 @@ class Confluence(AtlassianRestAPI):
539
540
  params["start"] = start
540
541
  if limit:
541
542
  params["limit"] = limit
543
+ if expand:
544
+ params["expand"] = expand
542
545
 
543
546
  try:
544
547
  response = self.get(url, params=params)
@@ -793,6 +796,7 @@ class Confluence(AtlassianRestAPI):
793
796
  representation="storage",
794
797
  editor=None,
795
798
  full_width=False,
799
+ status="current",
796
800
  ):
797
801
  """
798
802
  Create page from scratch
@@ -804,6 +808,7 @@ class Confluence(AtlassianRestAPI):
804
808
  :param representation: OPTIONAL: either Confluence 'storage' or 'wiki' markup format
805
809
  :param editor: OPTIONAL: v2 to be created in the new editor
806
810
  :param full_width: DEFAULT: False
811
+ :param status: either 'current' or 'draft'
807
812
  :return:
808
813
  """
809
814
  log.info('Creating %s "%s" -> "%s"', type, space, title)
@@ -811,6 +816,7 @@ class Confluence(AtlassianRestAPI):
811
816
  data = {
812
817
  "type": type,
813
818
  "title": title,
819
+ "status": status,
814
820
  "space": {"key": space},
815
821
  "body": self._create_body(body, representation),
816
822
  "metadata": {"properties": {}},
@@ -1211,7 +1217,8 @@ class Confluence(AtlassianRestAPI):
1211
1217
  :type name: ``str``
1212
1218
  :param content: Contains the content which should be uploaded
1213
1219
  :type content: ``binary``
1214
- :param content_type: Specify the HTTP content type. The default is
1220
+ :param content_type: Specify the HTTP content type.
1221
+ The default is "application/binary"
1215
1222
  :type content_type: ``str``
1216
1223
  :param comment: A comment describing this upload/file
1217
1224
  :type comment: ``str``
@@ -1293,6 +1300,7 @@ class Confluence(AtlassianRestAPI):
1293
1300
  Is no name give the file name is used as name
1294
1301
  :type name: ``str``
1295
1302
  :param content_type: Specify the HTTP content type. The default is
1303
+ The default is "application/binary"
1296
1304
  :type content_type: ``str``
1297
1305
  :param comment: A comment describing this upload/file
1298
1306
  :type comment: ``str``
@@ -1232,7 +1232,7 @@ class Jira(AtlassianRestAPI):
1232
1232
  return self.get(url, params=params)
1233
1233
  else:
1234
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)
1235
+ return self._get_response_content(url, fields=[("changelog", params)])
1236
1236
 
1237
1237
  def issue_add_json_worklog(self, key, worklog):
1238
1238
  """
@@ -1378,7 +1378,7 @@ class Jira(AtlassianRestAPI):
1378
1378
  url = "{base_url}/{issue_key}?fields=labels".format(base_url=base_url, issue_key=issue_key)
1379
1379
  if self.advanced_mode:
1380
1380
  return self.get(url)
1381
- return (self.get(url) or {}).get("fields").get("labels")
1381
+ return self._get_response_content(url, fields=[("fields",), ("labels",)])
1382
1382
 
1383
1383
  def update_issue(self, issue_key, update):
1384
1384
  """
@@ -1919,12 +1919,14 @@ class Jira(AtlassianRestAPI):
1919
1919
  def get_issue_status(self, issue_key):
1920
1920
  base_url = self.resource_url("issue")
1921
1921
  url = "{base_url}/{issue_key}?fields=status".format(base_url=base_url, issue_key=issue_key)
1922
- return (((self.get(url) or {}).get("fields") or {}).get("status") or {}).get("name") or {}
1922
+ fields = [("fields",), ("status",), ("name",)]
1923
+ return self._get_response_content(url, fields=fields) or {}
1923
1924
 
1924
1925
  def get_issue_status_id(self, issue_key):
1925
1926
  base_url = self.resource_url("issue")
1926
1927
  url = "{base_url}/{issue_key}?fields=status".format(base_url=base_url, issue_key=issue_key)
1927
- return (self.get(url) or {}).get("fields").get("status").get("id")
1928
+ fields = [("fields",), ("status",), ("id",)]
1929
+ return self._get_response_content(url, fields=fields)
1928
1930
 
1929
1931
  def get_issue_transitions_full(self, issue_key, transition_id=None, expand=None):
1930
1932
  """
@@ -2721,7 +2723,7 @@ class Jira(AtlassianRestAPI):
2721
2723
  """
2722
2724
  base_url = self.resource_url("project")
2723
2725
  url = "{base_url}/{projectIdOrKey}/role/{id}".format(base_url=base_url, projectIdOrKey=project_key, id=role_id)
2724
- return (self.get(url) or {}).get("actors")
2726
+ return self._get_response_content(url, fields=[("actors",)])
2725
2727
 
2726
2728
  def delete_project_actors(self, project_key, role_id, actor, actor_type=None):
2727
2729
  """
@@ -3080,7 +3082,7 @@ class Jira(AtlassianRestAPI):
3080
3082
  def get_status_id_from_name(self, status_name):
3081
3083
  base_url = self.resource_url("status")
3082
3084
  url = "{base_url}/{name}".format(base_url=base_url, name=status_name)
3083
- return int((self.get(url) or {}).get("id"))
3085
+ return int(self._get_response_content(url, fields=[("id",)]))
3084
3086
 
3085
3087
  def get_status_for_project(self, project_key):
3086
3088
  base_url = self.resource_url("project")
@@ -3181,7 +3183,7 @@ class Jira(AtlassianRestAPI):
3181
3183
  a name and a label for the outward and inward link relationship.
3182
3184
  """
3183
3185
  url = self.resource_url("issueLinkType")
3184
- return (self.get(url) or {}).get("issueLinkTypes")
3186
+ return self._get_response_content(url, fields=[("issueLinkTypes",)])
3185
3187
 
3186
3188
  def get_issue_link_types_names(self):
3187
3189
  """
@@ -3712,7 +3714,7 @@ api-group-workflows/#api-rest-api-2-workflow-search-get)
3712
3714
  params = {}
3713
3715
  if expand:
3714
3716
  params["expand"] = expand
3715
- return (self.get(url, params=params) or {}).get("permissionSchemes")
3717
+ return self._get_response_content(url, params=params, fields=[("permissionSchemes",)])
3716
3718
 
3717
3719
  def get_permissionscheme(self, permission_id, expand=None):
3718
3720
  """
@@ -3768,7 +3770,7 @@ api-group-workflows/#api-rest-api-2-workflow-search-get)
3768
3770
  :return: list
3769
3771
  """
3770
3772
  url = self.resource_url("issuesecurityschemes")
3771
- return self.get(url).get("issueSecuritySchemes")
3773
+ return self._get_response_content(url, fields=[("issueSecuritySchemes",)])
3772
3774
 
3773
3775
  def get_issue_security_scheme(self, scheme_id, only_levels=False):
3774
3776
  """
@@ -3785,7 +3787,7 @@ api-group-workflows/#api-rest-api-2-workflow-search-get)
3785
3787
  url = "{base_url}/{scheme_id}".format(base_url=base_url, scheme_id=scheme_id)
3786
3788
 
3787
3789
  if only_levels is True:
3788
- return self.get(url).get("levels")
3790
+ return self._get_response_content(url, fields=[("levels",)])
3789
3791
  else:
3790
3792
  return self.get(url)
3791
3793
 
@@ -362,6 +362,34 @@ class AtlassianRestAPI(object):
362
362
  log.error(e)
363
363
  return response.text
364
364
 
365
+ def _get_response_content(
366
+ self,
367
+ *args,
368
+ fields,
369
+ **kwargs,
370
+ ):
371
+ """
372
+ :param fields: list of tuples in the form (field_name, default value (optional)).
373
+ Used for chaining dictionary value accession.
374
+ E.g. [("field1", "default1"), ("field2", "default2"), ("field3", )]
375
+ """
376
+ response = self.get(*args, **kwargs)
377
+ if "advanced_mode" in kwargs:
378
+ advanced_mode = kwargs["advanced_mode"]
379
+ else:
380
+ advanced_mode = self.advanced_mode
381
+
382
+ if not advanced_mode: # dict
383
+ for field in fields:
384
+ response = response.get(*field)
385
+ else: # requests.Response
386
+ first_field = fields[0]
387
+ response = response.json().get(*first_field)
388
+ for field in fields[1:]:
389
+ response = response.get(*field)
390
+
391
+ return response
392
+
365
393
  def post(
366
394
  self,
367
395
  path,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: atlassian-python-api
3
- Version: 3.41.15
3
+ Version: 3.41.16
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
@@ -1 +0,0 @@
1
- 3.41.15