atlassian-python-api 3.41.11__tar.gz → 3.41.12__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.
- {atlassian-python-api-3.41.11/atlassian_python_api.egg-info → atlassian_python_api-3.41.12}/PKG-INFO +1 -1
- atlassian_python_api-3.41.12/atlassian/VERSION +1 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/atlassian/bitbucket/__init__.py +20 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/atlassian/bitbucket/cloud/repositories/__init__.py +11 -0
- atlassian_python_api-3.41.12/atlassian/bitbucket/cloud/repositories/hooks.py +117 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/atlassian/confluence.py +41 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/atlassian/jira.py +121 -82
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/atlassian/rest_client.py +3 -1
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12/atlassian_python_api.egg-info}/PKG-INFO +1 -1
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/atlassian_python_api.egg-info/SOURCES.txt +1 -0
- atlassian-python-api-3.41.11/atlassian/VERSION +0 -1
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/LICENSE +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/MANIFEST.in +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/README.rst +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/atlassian/__init__.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/atlassian/bamboo.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/atlassian/bitbucket/base.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/atlassian/bitbucket/cloud/__init__.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/atlassian/bitbucket/cloud/base.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/atlassian/bitbucket/cloud/common/__init__.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/atlassian/bitbucket/cloud/common/builds.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/atlassian/bitbucket/cloud/common/comments.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/atlassian/bitbucket/cloud/common/users.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/atlassian/bitbucket/cloud/repositories/branchRestrictions.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/atlassian/bitbucket/cloud/repositories/commits.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/atlassian/bitbucket/cloud/repositories/defaultReviewers.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/atlassian/bitbucket/cloud/repositories/deploymentEnvironments.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/atlassian/bitbucket/cloud/repositories/diffstat.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/atlassian/bitbucket/cloud/repositories/groupPermissions.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/atlassian/bitbucket/cloud/repositories/issues.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/atlassian/bitbucket/cloud/repositories/pipelines.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/atlassian/bitbucket/cloud/repositories/pullRequests.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/atlassian/bitbucket/cloud/repositories/refs.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/atlassian/bitbucket/cloud/repositories/repositoryVariables.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/atlassian/bitbucket/cloud/workspaces/__init__.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/atlassian/bitbucket/cloud/workspaces/members.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/atlassian/bitbucket/cloud/workspaces/permissions.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/atlassian/bitbucket/cloud/workspaces/projects.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/atlassian/bitbucket/server/__init__.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/atlassian/bitbucket/server/base.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/atlassian/bitbucket/server/common/__init__.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/atlassian/bitbucket/server/common/permissions.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/atlassian/bitbucket/server/globalPermissions.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/atlassian/bitbucket/server/projects/__init__.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/atlassian/bitbucket/server/projects/repos/__init__.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/atlassian/cloud_admin.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/atlassian/crowd.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/atlassian/errors.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/atlassian/insight.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/atlassian/marketplace.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/atlassian/portfolio.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/atlassian/request_utils.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/atlassian/service_desk.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/atlassian/statuspage.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/atlassian/utils.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/atlassian/xray.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/atlassian_python_api.egg-info/dependency_links.txt +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/atlassian_python_api.egg-info/not-zip-safe +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/atlassian_python_api.egg-info/requires.txt +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/atlassian_python_api.egg-info/top_level.txt +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/pyproject.toml +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/requirements.txt +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/setup.cfg +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/setup.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/__init__.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/__pycache__/__init__.cpython-311.pyc +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/__pycache__/mockup.cpython-311.pyc +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/__pycache__/test_base.cpython-311-pytest-7.2.0.pyc +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/__pycache__/test_base.cpython-311-pytest-7.2.1.pyc +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/__pycache__/test_base.cpython-311-pytest-7.3.1.pyc +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/__pycache__/test_base.cpython-311-pytest-7.4.0.pyc +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/__pycache__/test_base.cpython-311-pytest-7.4.2.pyc +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/__pycache__/test_bitbucket_cloud_oo.cpython-311-pytest-7.2.0.pyc +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/__pycache__/test_bitbucket_cloud_oo.cpython-311-pytest-7.2.1.pyc +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/__pycache__/test_bitbucket_cloud_oo.cpython-311-pytest-7.3.1.pyc +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/__pycache__/test_bitbucket_cloud_oo.cpython-311-pytest-7.4.0.pyc +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/__pycache__/test_bitbucket_cloud_oo.cpython-311-pytest-7.4.2.pyc +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/__pycache__/test_bitbucket_server.cpython-311-pytest-7.2.0.pyc +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/__pycache__/test_bitbucket_server.cpython-311-pytest-7.2.1.pyc +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/__pycache__/test_bitbucket_server.cpython-311-pytest-7.3.1.pyc +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/__pycache__/test_bitbucket_server.cpython-311-pytest-7.4.0.pyc +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/__pycache__/test_bitbucket_server.cpython-311-pytest-7.4.2.pyc +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/__pycache__/test_bitbucket_server_oo.cpython-311-pytest-7.2.0.pyc +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/__pycache__/test_bitbucket_server_oo.cpython-311-pytest-7.2.1.pyc +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/__pycache__/test_bitbucket_server_oo.cpython-311-pytest-7.3.1.pyc +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/__pycache__/test_bitbucket_server_oo.cpython-311-pytest-7.4.0.pyc +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/__pycache__/test_bitbucket_server_oo.cpython-311-pytest-7.4.2.pyc +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/__pycache__/test_confluence_advanced_mode.cpython-311-pytest-7.2.0.pyc +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/__pycache__/test_confluence_advanced_mode.cpython-311-pytest-7.2.1.pyc +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/__pycache__/test_confluence_advanced_mode.cpython-311-pytest-7.3.1.pyc +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/__pycache__/test_confluence_advanced_mode.cpython-311-pytest-7.4.0.pyc +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/__pycache__/test_confluence_advanced_mode.cpython-311-pytest-7.4.2.pyc +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/__pycache__/test_confluence_attach.cpython-311-pytest-7.2.0.pyc +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/__pycache__/test_confluence_attach.cpython-311-pytest-7.2.1.pyc +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/__pycache__/test_confluence_attach.cpython-311-pytest-7.3.1.pyc +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/__pycache__/test_confluence_attach.cpython-311-pytest-7.4.0.pyc +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/__pycache__/test_confluence_attach.cpython-311-pytest-7.4.2.pyc +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/__pycache__/test_jira.cpython-311-pytest-7.2.0.pyc +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/__pycache__/test_jira.cpython-311-pytest-7.2.1.pyc +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/__pycache__/test_jira.cpython-311-pytest-7.3.1.pyc +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/__pycache__/test_jira.cpython-311-pytest-7.4.0.pyc +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/__pycache__/test_jira.cpython-311-pytest-7.4.2.pyc +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/__pycache__/test_servicedesk.cpython-311-pytest-7.2.0.pyc +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/__pycache__/test_servicedesk.cpython-311-pytest-7.2.1.pyc +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/__pycache__/test_servicedesk.cpython-311-pytest-7.3.1.pyc +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/__pycache__/test_servicedesk.cpython-311-pytest-7.4.0.pyc +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/__pycache__/test_servicedesk.cpython-311-pytest-7.4.2.pyc +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/mockup.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/GET +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/TestRepositoryCreated/POST +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/GET +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/branch-restrictions/17203842/DELETE +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/branch-restrictions/17203842/GET +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/branch-restrictions/17203842/PUT +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/branch-restrictions/GET +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/default-reviewers/DefaultReviewer1Uuid/DELETE +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/default-reviewers/DefaultReviewer1Uuid/GET +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/default-reviewers/GET +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/issues/3/DELETE +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/issues/3/GET +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/issues/3/PUT +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/issues/GET +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/issues/POST +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pipelines/GET +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pipelines/POST +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pipelines/{PipelineUuid}/GET +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pipelines/{PipelineUuid}/steps/GET +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pipelines/{PipelineUuid}/steps/{PipelineStep1Uuid}/GET +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pipelines/{PipelineUuid}/steps/{PipelineStep2Uuid}/GET +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pipelines/{PipelineUuid}/steps/{PipelineStep2Uuid}/log/GET +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pipelines/{PipelineUuid}/stopPipeline/POST +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/GET +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/approve/DELETE +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/approve/POST +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/comments/GET +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/comments/POST +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/commits/GET +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/decline/POST +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/merge/POST +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/request-changes/DELETE +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/request-changes/POST +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/statuses/GET +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/tasks/123456/DELETE +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/tasks/123456/PUT +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/tasks/GET +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/tasks/POST +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/25/GET +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/GET +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/POST +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/bitbucket/cloud/2.0/workspaces/GET +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/bitbucket/cloud/2.0/workspaces/TestWorkspace1/GET +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/bitbucket/cloud/2.0/workspaces/TestWorkspace2/GET +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/bitbucket/cloud/2.0/workspaces/TestWorkspace3/GET +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/bitbucket/server/rest/api/1.0/admin/permissions/groups/DELETE +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/bitbucket/server/rest/api/1.0/admin/permissions/groups/GET +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/bitbucket/server/rest/api/1.0/admin/permissions/groups/none/GET +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/bitbucket/server/rest/api/1.0/admin/permissions/users/DELETE +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/bitbucket/server/rest/api/1.0/admin/permissions/users/GET +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/bitbucket/server/rest/api/1.0/admin/permissions/users/none/GET +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/bitbucket/server/rest/api/1.0/projects/GET +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/GET +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/PUT +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/permissions/groups/DELETE +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/permissions/groups/GET +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/permissions/groups/none/GET +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/permissions/users/DELETE +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/permissions/users/GET +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/permissions/users/none/GET +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/GET +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/GET +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/PUT +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/archive/GET +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/contributing/GET +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/default-branch/GET +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/default-branch/PUT +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/forks/GET +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/license/GET +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/permissions/groups/DELETE +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/permissions/groups/GET +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/permissions/groups/none/GET +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/permissions/users/DELETE +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/permissions/users/GET +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/permissions/users/none/GET +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/readme/GET +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/related/GET +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/webhooks/3/DELETE +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/webhooks/3/GET +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/webhooks/3/PUT +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/webhooks/GET +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/webhooks/POST +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/jira/rest/agile/1.0/epic/BAR-22/issue/GET +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/jira/rest/agile/1.0/epic/none/issue/GET +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/jira/rest/api/2/comment/list/POST +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/jira/rest/api/2/issue/FOO-123/GET +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/jira/rest/api/2/issue/FOO-123/comment/10000/GET +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/jira/rest/api/2/issue/FOO-123/comment/GET +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/jira/rest/api/2/issue/FOO-123/properties/Bar1/DELETE +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/jira/rest/api/2/issue/FOO-123/properties/Bar1/GET +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/jira/rest/api/2/issue/FOO-123/properties/Bar1/PUT +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/jira/rest/api/2/issue/FOO-123/properties/Bar2New/PUT +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/jira/rest/api/2/issue/FOO-123/properties/GET +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/jira/rest/api/2/issue/POST +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/jira/rest/api/2/issue/REGEX-123/file.txt +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/servicedesk/rest/servicedeskapi/customer/POST +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/servicedesk/rest/servicedeskapi/organization/GET +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/servicedesk/rest/servicedeskapi/organization/POST +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/servicedesk/rest/servicedeskapi/organization/{organizationId}/DELETE +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/servicedesk/rest/servicedeskapi/organization/{organizationId}/GET +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/servicedesk/rest/servicedeskapi/organization/{organizationId}/property/GET +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/servicedesk/rest/servicedeskapi/organization/{organizationId}/user/DELETE +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/servicedesk/rest/servicedeskapi/organization/{organizationId}/user/GET +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/servicedesk/rest/servicedeskapi/organization/{organizationId}/user/POST +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/servicedesk/rest/servicedeskapi/servicedesk/{serviceDeskId}/customer/DELETE +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/servicedesk/rest/servicedeskapi/servicedesk/{serviceDeskId}/customer/GET +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/servicedesk/rest/servicedeskapi/servicedesk/{serviceDeskId}/customer/POST +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/servicedesk/rest/servicedeskapi/servicedesk/{serviceDeskId}/organization/DELETE +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/servicedesk/rest/servicedeskapi/servicedesk/{serviceDeskId}/organization/GET +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/responses/servicedesk/rest/servicedeskapi/servicedesk/{serviceDeskId}/organization/POST +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/test_base.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/test_bitbucket_cloud_oo.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/test_bitbucket_server.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/test_bitbucket_server_oo.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/test_confluence_advanced_mode.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/test_confluence_attach.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/test_jira.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tests/test_servicedesk.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/tox.ini +0 -0
{atlassian-python-api-3.41.11/atlassian_python_api.egg-info → atlassian_python_api-3.41.12}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: atlassian-python-api
|
|
3
|
-
Version: 3.41.
|
|
3
|
+
Version: 3.41.12
|
|
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.12
|
{atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/atlassian/bitbucket/__init__.py
RENAMED
|
@@ -39,6 +39,26 @@ class Bitbucket(BitbucketBase):
|
|
|
39
39
|
def _url_admin(self, api_version=None):
|
|
40
40
|
return self.resource_url("admin", api_version=api_version)
|
|
41
41
|
|
|
42
|
+
def get_groups(self, group_filter=None, limit=25, start=0):
|
|
43
|
+
"""
|
|
44
|
+
Get list of bitbucket groups.
|
|
45
|
+
Use 'group_filter' for get specific group or get all group if necessary.
|
|
46
|
+
|
|
47
|
+
:param group_filter: str - groupname
|
|
48
|
+
:param limit: int - paginated limit to retrieve
|
|
49
|
+
:param start: int - paginated point to start retrieving
|
|
50
|
+
:return: The collection as JSON with all relevant information about the group
|
|
51
|
+
"""
|
|
52
|
+
url = self.resource_url("groups", api_version="1.0")
|
|
53
|
+
params = {}
|
|
54
|
+
if group_filter:
|
|
55
|
+
params["filter"] = group_filter
|
|
56
|
+
if limit:
|
|
57
|
+
params["limit"] = limit
|
|
58
|
+
if start:
|
|
59
|
+
params["start"] = start
|
|
60
|
+
return self._get_paged(url, params=params)
|
|
61
|
+
|
|
42
62
|
def group_members(self, group, start=0, limit=None):
|
|
43
63
|
"""
|
|
44
64
|
Get group of members
|
|
@@ -5,6 +5,7 @@ from ..base import BitbucketCloudBase
|
|
|
5
5
|
from .issues import Issues
|
|
6
6
|
from .branchRestrictions import BranchRestrictions
|
|
7
7
|
from .commits import Commits
|
|
8
|
+
from .hooks import Hooks
|
|
8
9
|
from .defaultReviewers import DefaultReviewers
|
|
9
10
|
from .deploymentEnvironments import DeploymentEnvironments
|
|
10
11
|
from .groupPermissions import GroupPermissions
|
|
@@ -259,6 +260,11 @@ class Repository(BitbucketCloudBase):
|
|
|
259
260
|
data={"links": {"commit": {"href": "{}/commit".format(self.url)}}},
|
|
260
261
|
**self._new_session_args
|
|
261
262
|
) # fmt: skip
|
|
263
|
+
self.__hooks = Hooks(
|
|
264
|
+
"{}/hooks".format(self.url),
|
|
265
|
+
data={"links": {"hooks": {"href": "{}/hooks".format(self.url)}}},
|
|
266
|
+
**self._new_session_args,
|
|
267
|
+
)
|
|
262
268
|
self.__default_reviewers = DefaultReviewers("{}/default-reviewers".format(self.url), **self._new_session_args)
|
|
263
269
|
self.__deployment_environments = DeploymentEnvironments(
|
|
264
270
|
"{}/environments".format(self.url), **self._new_session_args
|
|
@@ -385,6 +391,11 @@ class Repository(BitbucketCloudBase):
|
|
|
385
391
|
"""The repository commits."""
|
|
386
392
|
return self.__commits
|
|
387
393
|
|
|
394
|
+
@property
|
|
395
|
+
def hooks(self):
|
|
396
|
+
"""The repository hooks."""
|
|
397
|
+
return self.__hooks
|
|
398
|
+
|
|
388
399
|
@property
|
|
389
400
|
def default_reviewers(self):
|
|
390
401
|
"""The repository default reviewers"""
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
|
|
3
|
+
from ..base import BitbucketCloudBase
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class Hooks(BitbucketCloudBase):
|
|
7
|
+
"""Bitbucket Cloud webhooks."""
|
|
8
|
+
|
|
9
|
+
def __init__(self, url, *args, **kwargs):
|
|
10
|
+
super(Hooks, self).__init__(url, *args, **kwargs)
|
|
11
|
+
|
|
12
|
+
def __get_object(self, data):
|
|
13
|
+
return Hook(data, **self._new_session_args)
|
|
14
|
+
|
|
15
|
+
def create(
|
|
16
|
+
self,
|
|
17
|
+
url,
|
|
18
|
+
description,
|
|
19
|
+
events,
|
|
20
|
+
active=True,
|
|
21
|
+
):
|
|
22
|
+
"""
|
|
23
|
+
Creates a new webhook for the current repository
|
|
24
|
+
|
|
25
|
+
param: url: string: Url that will receive event requests
|
|
26
|
+
param: description: string: Details about the webhook
|
|
27
|
+
param: events: [string] List of event types that requests will generate for
|
|
28
|
+
param: active: boolean: Enables/Disables the webhook
|
|
29
|
+
|
|
30
|
+
:return: Hook Object
|
|
31
|
+
"""
|
|
32
|
+
|
|
33
|
+
data = {"url": url, "description": description, "active": active, "events": events}
|
|
34
|
+
|
|
35
|
+
return self.__get_object(self.post(None, data))
|
|
36
|
+
|
|
37
|
+
def each(self):
|
|
38
|
+
"""
|
|
39
|
+
Return the list of webhooks in this repository.
|
|
40
|
+
|
|
41
|
+
:return: A generator for the Webhook objects
|
|
42
|
+
"""
|
|
43
|
+
for hook in self._get_paged(None):
|
|
44
|
+
yield self.__get_object(hook)
|
|
45
|
+
|
|
46
|
+
def get(self, id):
|
|
47
|
+
"""
|
|
48
|
+
Return the hook with the requested hook uuid in this repository.
|
|
49
|
+
|
|
50
|
+
:param id: string: The id of the webhook
|
|
51
|
+
|
|
52
|
+
:return: The requested hook object
|
|
53
|
+
"""
|
|
54
|
+
return self.__get_object(
|
|
55
|
+
super(Hooks, self).get(
|
|
56
|
+
self.url_joiner(self.get_link("hooks"), id),
|
|
57
|
+
absolute=True,
|
|
58
|
+
)
|
|
59
|
+
)
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
class Hook(BitbucketCloudBase):
|
|
63
|
+
"""
|
|
64
|
+
Bitbucket Cloud hook endpoint.
|
|
65
|
+
"""
|
|
66
|
+
|
|
67
|
+
def __init__(self, data, *args, **kwargs):
|
|
68
|
+
super(Hook, self).__init__(None, *args, data=data, expected_type="webhook_subscription", **kwargs)
|
|
69
|
+
|
|
70
|
+
def uuid(self):
|
|
71
|
+
"""hook uuid."""
|
|
72
|
+
return self.get_data("uuid")
|
|
73
|
+
|
|
74
|
+
def webhook_url(self):
|
|
75
|
+
"""webhook url."""
|
|
76
|
+
return self.get_data("url")
|
|
77
|
+
|
|
78
|
+
def description(self):
|
|
79
|
+
"""webhook description."""
|
|
80
|
+
return self.get_data("description")
|
|
81
|
+
|
|
82
|
+
def active(self):
|
|
83
|
+
"""is webhook active?"""
|
|
84
|
+
return self.get_data("active")
|
|
85
|
+
|
|
86
|
+
def events(self):
|
|
87
|
+
"""events that the webhook is triggered by"""
|
|
88
|
+
return self.get_data("events")
|
|
89
|
+
|
|
90
|
+
def update(self, **kwargs):
|
|
91
|
+
"""
|
|
92
|
+
Update a webhook
|
|
93
|
+
|
|
94
|
+
Valid keywords:
|
|
95
|
+
param: url: string: Url that will receive event requests
|
|
96
|
+
param: description: string: Details about the webhook
|
|
97
|
+
param: events: [string] List of event types that requests will generate for
|
|
98
|
+
param: active: boolean: Enables/Disables the webhook
|
|
99
|
+
"""
|
|
100
|
+
|
|
101
|
+
payload = {
|
|
102
|
+
"url": self.webhook_url(),
|
|
103
|
+
"description": self.description(),
|
|
104
|
+
"events": self.events(),
|
|
105
|
+
"active": self.active(),
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
for key in payload.keys() and kwargs.keys():
|
|
109
|
+
payload[key] = kwargs[key]
|
|
110
|
+
|
|
111
|
+
return self._update_data(self.put(None, data=payload))
|
|
112
|
+
|
|
113
|
+
def delete(self):
|
|
114
|
+
"""
|
|
115
|
+
Delete the webhook.
|
|
116
|
+
"""
|
|
117
|
+
return super(Hook, self).delete(None)
|
|
@@ -2877,6 +2877,47 @@ class Confluence(AtlassianRestAPI):
|
|
|
2877
2877
|
params["searchString"] = search_string
|
|
2878
2878
|
return self.get(url, params=params)
|
|
2879
2879
|
|
|
2880
|
+
"""
|
|
2881
|
+
##############################################################################################
|
|
2882
|
+
# Confluence whiteboards (cloud only!) #
|
|
2883
|
+
##############################################################################################
|
|
2884
|
+
"""
|
|
2885
|
+
|
|
2886
|
+
def create_whiteboard(self, spaceId, title=None, parentId=None):
|
|
2887
|
+
url = "/api/v2/whiteboards"
|
|
2888
|
+
data = {"spaceId": spaceId}
|
|
2889
|
+
if title is not None:
|
|
2890
|
+
data["title"] = title
|
|
2891
|
+
if parentId is not None:
|
|
2892
|
+
data["parentId"] = parentId
|
|
2893
|
+
return self.post(url, data=data)
|
|
2894
|
+
|
|
2895
|
+
def get_whiteboard(self, whiteboard_id):
|
|
2896
|
+
try:
|
|
2897
|
+
url = f"/api/v2/whiteboards/{whiteboard_id}"
|
|
2898
|
+
return self.get(url)
|
|
2899
|
+
except HTTPError as e:
|
|
2900
|
+
# Default 404 error handling is ambiguous
|
|
2901
|
+
if e.response.status_code == 404:
|
|
2902
|
+
raise ApiValueError(
|
|
2903
|
+
"Whiteboard not found. Check confluence instance url and/or if whiteboard id exists", reason=e
|
|
2904
|
+
)
|
|
2905
|
+
|
|
2906
|
+
raise
|
|
2907
|
+
|
|
2908
|
+
def delete_whiteboard(self, whiteboard_id):
|
|
2909
|
+
try:
|
|
2910
|
+
url = f"/api/v2/whiteboards/{whiteboard_id}"
|
|
2911
|
+
return self.delete(url)
|
|
2912
|
+
except HTTPError as e:
|
|
2913
|
+
# # Default 404 error handling is ambiguous
|
|
2914
|
+
if e.response.status_code == 404:
|
|
2915
|
+
raise ApiValueError(
|
|
2916
|
+
"Whiteboard not found. Check confluence instance url and/or if whiteboard id exists", reason=e
|
|
2917
|
+
)
|
|
2918
|
+
|
|
2919
|
+
raise
|
|
2920
|
+
|
|
2880
2921
|
"""
|
|
2881
2922
|
##############################################################################################
|
|
2882
2923
|
# Team Calendars REST API implements (https://jira.atlassian.com/browse/CONFSERVER-51003) #
|
|
@@ -24,6 +24,62 @@ class Jira(AtlassianRestAPI):
|
|
|
24
24
|
|
|
25
25
|
super(Jira, self).__init__(url, *args, **kwargs)
|
|
26
26
|
|
|
27
|
+
def _get_paged(
|
|
28
|
+
self,
|
|
29
|
+
url,
|
|
30
|
+
params=None,
|
|
31
|
+
data=None,
|
|
32
|
+
flags=None,
|
|
33
|
+
trailing=None,
|
|
34
|
+
absolute=False,
|
|
35
|
+
):
|
|
36
|
+
"""
|
|
37
|
+
Used to get the paged data
|
|
38
|
+
|
|
39
|
+
:param url: string: The url to retrieve
|
|
40
|
+
:param params: dict (default is None): The parameter's
|
|
41
|
+
:param data: dict (default is None): The data
|
|
42
|
+
:param flags: string[] (default is None): The flags
|
|
43
|
+
:param trailing: bool (default is None): If True, a trailing slash is added to the url
|
|
44
|
+
:param absolute: bool (default is False): If True, the url is used absolute and not relative to the root
|
|
45
|
+
|
|
46
|
+
:return: A generator object for the data elements
|
|
47
|
+
"""
|
|
48
|
+
|
|
49
|
+
if self.cloud:
|
|
50
|
+
if params is None:
|
|
51
|
+
params = {}
|
|
52
|
+
|
|
53
|
+
while True:
|
|
54
|
+
response = super(Jira, self).get(
|
|
55
|
+
url,
|
|
56
|
+
trailing=trailing,
|
|
57
|
+
params=params,
|
|
58
|
+
data=data,
|
|
59
|
+
flags=flags,
|
|
60
|
+
absolute=absolute,
|
|
61
|
+
)
|
|
62
|
+
values = response.get("values", [])
|
|
63
|
+
for value in values:
|
|
64
|
+
yield value
|
|
65
|
+
|
|
66
|
+
if response.get("isLast", False) or len(values) == 0:
|
|
67
|
+
break
|
|
68
|
+
|
|
69
|
+
url = response.get("nextPage")
|
|
70
|
+
if url is None:
|
|
71
|
+
break
|
|
72
|
+
# From now on we have absolute URLs with parameters
|
|
73
|
+
absolute = True
|
|
74
|
+
# Params are now provided by the url
|
|
75
|
+
params = {}
|
|
76
|
+
# Trailing should not be added as it is already part of the url
|
|
77
|
+
trailing = False
|
|
78
|
+
else:
|
|
79
|
+
raise ValueError("``_get_paged`` method is only available for Jira Cloud platform")
|
|
80
|
+
|
|
81
|
+
return
|
|
82
|
+
|
|
27
83
|
def get_permissions(
|
|
28
84
|
self,
|
|
29
85
|
permissions,
|
|
@@ -1026,13 +1082,7 @@ class Jira(AtlassianRestAPI):
|
|
|
1026
1082
|
params["expand"] = expand
|
|
1027
1083
|
return self.get(url, params=params)
|
|
1028
1084
|
|
|
1029
|
-
def get_issue(
|
|
1030
|
-
self,
|
|
1031
|
-
issue_id_or_key,
|
|
1032
|
-
fields=None,
|
|
1033
|
-
properties=None,
|
|
1034
|
-
update_history=True,
|
|
1035
|
-
):
|
|
1085
|
+
def get_issue(self, issue_id_or_key, fields=None, properties=None, update_history=True, expand=None):
|
|
1036
1086
|
"""
|
|
1037
1087
|
Returns a full representation of the issue for the given issue key
|
|
1038
1088
|
By default, all fields are returned in this get-issue resource
|
|
@@ -1041,6 +1091,7 @@ class Jira(AtlassianRestAPI):
|
|
|
1041
1091
|
:param fields: str
|
|
1042
1092
|
:param properties: str
|
|
1043
1093
|
:param update_history: bool
|
|
1094
|
+
:param expand: str
|
|
1044
1095
|
:return: issue
|
|
1045
1096
|
"""
|
|
1046
1097
|
base_url = self.resource_url("issue")
|
|
@@ -1053,11 +1104,9 @@ class Jira(AtlassianRestAPI):
|
|
|
1053
1104
|
params["fields"] = fields
|
|
1054
1105
|
if properties is not None:
|
|
1055
1106
|
params["properties"] = properties
|
|
1056
|
-
if
|
|
1057
|
-
params["
|
|
1058
|
-
|
|
1059
|
-
params["updateHistory"] = "false"
|
|
1060
|
-
|
|
1107
|
+
if expand:
|
|
1108
|
+
params["expand"] = expand
|
|
1109
|
+
params["updateHistory"] = str(update_history).lower()
|
|
1061
1110
|
return self.get(url, params=params)
|
|
1062
1111
|
|
|
1063
1112
|
def epic_issues(self, epic, fields="*all", expand=None):
|
|
@@ -1649,6 +1698,42 @@ class Jira(AtlassianRestAPI):
|
|
|
1649
1698
|
url += "/" + internal_id
|
|
1650
1699
|
return self.get(url, params=params)
|
|
1651
1700
|
|
|
1701
|
+
def get_issue_tree_recursive(self, issue_key, tree=[], depth=0):
|
|
1702
|
+
"""
|
|
1703
|
+
Returns list that contains the tree structure of the root issue, with all subtasks and inward linked issues.
|
|
1704
|
+
(!) Function only returns child issues from the same jira instance or from instance to which api key has access to.
|
|
1705
|
+
(!) User asssociated with API key must have access to the all child issues in order to get them.
|
|
1706
|
+
:param jira issue_key:
|
|
1707
|
+
:param tree: blank parameter used for recursion. Don't change it.
|
|
1708
|
+
:param depth: blank parameter used for recursion. Don't change it.
|
|
1709
|
+
:return: list of dictioanries, key is the parent issue key, value is the child/linked issue key
|
|
1710
|
+
|
|
1711
|
+
"""
|
|
1712
|
+
|
|
1713
|
+
# Check the recursion depth. In case of any bugs that would result in infinite recursion, this will prevent the function from crashing your app. Python default for REcursionError is 1000
|
|
1714
|
+
if depth > 50:
|
|
1715
|
+
raise Exception("Recursion depth exceeded")
|
|
1716
|
+
issue = self.get_issue(issue_key)
|
|
1717
|
+
issue_links = issue["fields"]["issuelinks"]
|
|
1718
|
+
subtasks = issue["fields"]["subtasks"]
|
|
1719
|
+
for issue_link in issue_links:
|
|
1720
|
+
if issue_link.get("inwardIssue") is not None:
|
|
1721
|
+
parent_issue_key = issue["key"]
|
|
1722
|
+
if not [
|
|
1723
|
+
x for x in tree if issue_link["inwardIssue"]["key"] in x.keys()
|
|
1724
|
+
]: # condition to avoid infinite recursion
|
|
1725
|
+
tree.append({parent_issue_key: issue_link["inwardIssue"]["key"]})
|
|
1726
|
+
self.get_issue_tree_recursive(
|
|
1727
|
+
issue_link["inwardIssue"]["key"], tree, depth + 1
|
|
1728
|
+
) # recursive call of the function
|
|
1729
|
+
for subtask in subtasks:
|
|
1730
|
+
if subtask.get("key") is not None:
|
|
1731
|
+
parent_issue_key = issue["key"]
|
|
1732
|
+
if not [x for x in tree if subtask["key"] in x.keys()]: # condition to avoid infinite recursion
|
|
1733
|
+
tree.append({parent_issue_key: subtask["key"]})
|
|
1734
|
+
self.get_issue_tree_recursive(subtask["key"], tree, depth + 1) # recursive call of the function
|
|
1735
|
+
return tree
|
|
1736
|
+
|
|
1652
1737
|
def create_or_update_issue_remote_links(
|
|
1653
1738
|
self,
|
|
1654
1739
|
issue_key,
|
|
@@ -1775,6 +1860,20 @@ class Jira(AtlassianRestAPI):
|
|
|
1775
1860
|
data["update"] = update
|
|
1776
1861
|
return self.post(url, data=data)
|
|
1777
1862
|
|
|
1863
|
+
def get_issue_status_changelog(self, issue_id):
|
|
1864
|
+
# Get the issue details with changelog
|
|
1865
|
+
response_get_issue = self.get_issue(issue_id, expand="changelog")
|
|
1866
|
+
status_change_history = []
|
|
1867
|
+
for history in response_get_issue["changelog"]["histories"]:
|
|
1868
|
+
for item in history["items"]:
|
|
1869
|
+
# Check if the item is a status change
|
|
1870
|
+
if item["field"] == "status":
|
|
1871
|
+
status_change_history.append(
|
|
1872
|
+
{"from": item["fromString"], "to": item["toString"], "date": history["created"]}
|
|
1873
|
+
)
|
|
1874
|
+
|
|
1875
|
+
return status_change_history
|
|
1876
|
+
|
|
1778
1877
|
def set_issue_status_by_transition_id(self, issue_key, transition_id):
|
|
1779
1878
|
"""
|
|
1780
1879
|
Setting status by transition_id
|
|
@@ -2297,83 +2396,23 @@ class Jira(AtlassianRestAPI):
|
|
|
2297
2396
|
:param expand:
|
|
2298
2397
|
:return:
|
|
2299
2398
|
"""
|
|
2300
|
-
if self.cloud:
|
|
2301
|
-
return self.projects_from_cloud(
|
|
2302
|
-
included_archived=included_archived,
|
|
2303
|
-
expand=expand,
|
|
2304
|
-
)
|
|
2305
|
-
else:
|
|
2306
|
-
return self.projects_from_server(
|
|
2307
|
-
included_archived=included_archived,
|
|
2308
|
-
expand=expand,
|
|
2309
|
-
)
|
|
2310
|
-
|
|
2311
|
-
def projects_from_cloud(self, included_archived=None, expand=None):
|
|
2312
|
-
"""
|
|
2313
|
-
Returns all projects which are visible for the currently logged-in user.
|
|
2314
|
-
Cloud version should use the ``paginated``endpoint to get pages of projects, as the old endpoint is deprecated.
|
|
2315
|
-
If no user is logged in, it returns the list of projects that are visible when using anonymous access.
|
|
2316
|
-
:param included_archived: boolean whether to include archived projects in response, default: false
|
|
2317
|
-
:param expand:
|
|
2318
|
-
:return:
|
|
2319
|
-
"""
|
|
2320
|
-
if not self.cloud:
|
|
2321
|
-
raise ValueError("``projects_from_cloud`` method is only available for Jira Cloud platform")
|
|
2322
|
-
|
|
2323
|
-
projects = self.paginated_projects(
|
|
2324
|
-
included_archived=included_archived,
|
|
2325
|
-
expand=expand,
|
|
2326
|
-
)
|
|
2327
|
-
while not projects.get("isLast"):
|
|
2328
|
-
projects["values"].extend(
|
|
2329
|
-
self.paginated_projects(
|
|
2330
|
-
included_archived=included_archived,
|
|
2331
|
-
expand=expand,
|
|
2332
|
-
url=projects["nextPage"],
|
|
2333
|
-
)["values"]
|
|
2334
|
-
)
|
|
2335
|
-
return projects["values"]
|
|
2336
|
-
|
|
2337
|
-
def paginated_projects(self, included_archived=None, expand=None, url=None):
|
|
2338
|
-
"""
|
|
2339
|
-
Returns a page of projects which are visible for the currently logged-in user.
|
|
2340
|
-
Method to be used only for Jira Cloud platform, until tests on Jira Server are executed.
|
|
2341
|
-
If no user is logged in, it returns the list of projects that are visible when using anonymous access.
|
|
2342
|
-
:param included_archived: boolean whether to include archived projects in response, default: false
|
|
2343
|
-
:param expand:
|
|
2344
|
-
:param url: url to get the next page of projects, default: false (first page)
|
|
2345
|
-
:return:
|
|
2346
|
-
"""
|
|
2347
|
-
if not self.cloud:
|
|
2348
|
-
raise ValueError("``projects_from_cloud`` method is only available for Jira Cloud platform")
|
|
2349
2399
|
|
|
2350
2400
|
params = {}
|
|
2351
2401
|
if included_archived:
|
|
2352
2402
|
params["includeArchived"] = included_archived
|
|
2353
2403
|
if expand:
|
|
2354
2404
|
params["expand"] = expand
|
|
2355
|
-
page_url = url or self.resource_url("project/search")
|
|
2356
|
-
is_url_absolute = bool(page_url.lower().startswith("http"))
|
|
2357
|
-
return self.get(page_url, params=params, absolute=is_url_absolute)
|
|
2358
|
-
|
|
2359
|
-
def projects_from_server(self, included_archived=None, expand=None):
|
|
2360
|
-
"""
|
|
2361
|
-
Returns all projects which are visible for the currently logged-in user.
|
|
2362
|
-
If no user is logged in, it returns the list of projects that are visible when using anonymous access.
|
|
2363
|
-
:param included_archived: boolean whether to include archived projects in response, default: false
|
|
2364
|
-
:param expand:
|
|
2365
|
-
:return:
|
|
2366
|
-
"""
|
|
2367
2405
|
if self.cloud:
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2406
|
+
return list(
|
|
2407
|
+
self._get_paged(
|
|
2408
|
+
self.resource_url("project/search"),
|
|
2409
|
+
params,
|
|
2410
|
+
paging_workaround=True,
|
|
2411
|
+
)
|
|
2412
|
+
)
|
|
2413
|
+
else:
|
|
2414
|
+
url = self.resource_url("project")
|
|
2415
|
+
return self.get(url, params=params)
|
|
2377
2416
|
|
|
2378
2417
|
def create_project_from_raw_json(self, json):
|
|
2379
2418
|
"""
|
|
@@ -537,7 +537,9 @@ class AtlassianRestAPI(object):
|
|
|
537
537
|
else:
|
|
538
538
|
error_msg_list = j.get("errorMessages", list())
|
|
539
539
|
errors = j.get("errors", dict())
|
|
540
|
-
if isinstance(errors, dict):
|
|
540
|
+
if isinstance(errors, dict) and "message" not in errors:
|
|
541
|
+
error_msg_list.extend(errors.values())
|
|
542
|
+
elif isinstance(errors, dict) and "message" in errors:
|
|
541
543
|
error_msg_list.append(errors.get("message", ""))
|
|
542
544
|
elif isinstance(errors, list):
|
|
543
545
|
error_msg_list.extend([v.get("message", "") if isinstance(v, dict) else v for v in errors])
|
{atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12/atlassian_python_api.egg-info}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: atlassian-python-api
|
|
3
|
-
Version: 3.41.
|
|
3
|
+
Version: 3.41.12
|
|
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
|
|
@@ -38,6 +38,7 @@ atlassian/bitbucket/cloud/repositories/defaultReviewers.py
|
|
|
38
38
|
atlassian/bitbucket/cloud/repositories/deploymentEnvironments.py
|
|
39
39
|
atlassian/bitbucket/cloud/repositories/diffstat.py
|
|
40
40
|
atlassian/bitbucket/cloud/repositories/groupPermissions.py
|
|
41
|
+
atlassian/bitbucket/cloud/repositories/hooks.py
|
|
41
42
|
atlassian/bitbucket/cloud/repositories/issues.py
|
|
42
43
|
atlassian/bitbucket/cloud/repositories/pipelines.py
|
|
43
44
|
atlassian/bitbucket/cloud/repositories/pullRequests.py
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
3.41.11
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/atlassian/bitbucket/cloud/__init__.py
RENAMED
|
File without changes
|
{atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/atlassian/bitbucket/cloud/base.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/atlassian/bitbucket/server/__init__.py
RENAMED
|
File without changes
|
{atlassian-python-api-3.41.11 → atlassian_python_api-3.41.12}/atlassian/bitbucket/server/base.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|