atlassian-python-api 3.41.11__tar.gz → 3.41.13__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.13}/PKG-INFO +1 -1
- atlassian_python_api-3.41.13/atlassian/VERSION +1 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/atlassian/bamboo.py +28 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/atlassian/bitbucket/__init__.py +20 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/atlassian/bitbucket/cloud/repositories/__init__.py +11 -0
- atlassian_python_api-3.41.13/atlassian/bitbucket/cloud/repositories/hooks.py +117 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/atlassian/confluence.py +86 -21
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/atlassian/jira.py +179 -85
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/atlassian/rest_client.py +3 -1
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13/atlassian_python_api.egg-info}/PKG-INFO +1 -1
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/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.13}/LICENSE +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/MANIFEST.in +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/README.rst +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/atlassian/__init__.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/atlassian/bitbucket/base.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/atlassian/bitbucket/cloud/__init__.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/atlassian/bitbucket/cloud/base.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/atlassian/bitbucket/cloud/common/__init__.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/atlassian/bitbucket/cloud/common/builds.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/atlassian/bitbucket/cloud/common/comments.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/atlassian/bitbucket/cloud/common/users.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/atlassian/bitbucket/cloud/repositories/branchRestrictions.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/atlassian/bitbucket/cloud/repositories/commits.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/atlassian/bitbucket/cloud/repositories/defaultReviewers.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/atlassian/bitbucket/cloud/repositories/deploymentEnvironments.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/atlassian/bitbucket/cloud/repositories/diffstat.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/atlassian/bitbucket/cloud/repositories/groupPermissions.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/atlassian/bitbucket/cloud/repositories/issues.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/atlassian/bitbucket/cloud/repositories/pipelines.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/atlassian/bitbucket/cloud/repositories/pullRequests.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/atlassian/bitbucket/cloud/repositories/refs.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/atlassian/bitbucket/cloud/repositories/repositoryVariables.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/atlassian/bitbucket/cloud/workspaces/__init__.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/atlassian/bitbucket/cloud/workspaces/members.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/atlassian/bitbucket/cloud/workspaces/permissions.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/atlassian/bitbucket/cloud/workspaces/projects.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/atlassian/bitbucket/server/__init__.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/atlassian/bitbucket/server/base.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/atlassian/bitbucket/server/common/__init__.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/atlassian/bitbucket/server/common/permissions.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/atlassian/bitbucket/server/globalPermissions.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/atlassian/bitbucket/server/projects/__init__.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/atlassian/bitbucket/server/projects/repos/__init__.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/atlassian/cloud_admin.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/atlassian/crowd.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/atlassian/errors.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/atlassian/insight.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/atlassian/marketplace.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/atlassian/portfolio.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/atlassian/request_utils.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/atlassian/service_desk.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/atlassian/statuspage.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/atlassian/utils.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/atlassian/xray.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/atlassian_python_api.egg-info/dependency_links.txt +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/atlassian_python_api.egg-info/not-zip-safe +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/atlassian_python_api.egg-info/requires.txt +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/atlassian_python_api.egg-info/top_level.txt +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/pyproject.toml +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/requirements.txt +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/setup.cfg +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/setup.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/tests/__init__.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/tests/__pycache__/__init__.cpython-311.pyc +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/tests/__pycache__/mockup.cpython-311.pyc +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/tests/__pycache__/test_base.cpython-311-pytest-7.2.0.pyc +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/tests/__pycache__/test_base.cpython-311-pytest-7.2.1.pyc +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/tests/__pycache__/test_base.cpython-311-pytest-7.3.1.pyc +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/tests/__pycache__/test_base.cpython-311-pytest-7.4.0.pyc +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/tests/__pycache__/test_base.cpython-311-pytest-7.4.2.pyc +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/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.13}/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.13}/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.13}/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.13}/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.13}/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.13}/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.13}/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.13}/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.13}/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.13}/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.13}/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.13}/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.13}/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.13}/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.13}/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.13}/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.13}/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.13}/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.13}/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.13}/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.13}/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.13}/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.13}/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.13}/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.13}/tests/__pycache__/test_jira.cpython-311-pytest-7.2.0.pyc +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/tests/__pycache__/test_jira.cpython-311-pytest-7.2.1.pyc +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/tests/__pycache__/test_jira.cpython-311-pytest-7.3.1.pyc +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/tests/__pycache__/test_jira.cpython-311-pytest-7.4.0.pyc +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/tests/__pycache__/test_jira.cpython-311-pytest-7.4.2.pyc +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/tests/__pycache__/test_servicedesk.cpython-311-pytest-7.2.0.pyc +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/tests/__pycache__/test_servicedesk.cpython-311-pytest-7.2.1.pyc +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/tests/__pycache__/test_servicedesk.cpython-311-pytest-7.3.1.pyc +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/tests/__pycache__/test_servicedesk.cpython-311-pytest-7.4.0.pyc +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/tests/__pycache__/test_servicedesk.cpython-311-pytest-7.4.2.pyc +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/tests/mockup.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/GET +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/TestRepositoryCreated/POST +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/GET +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/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.13}/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.13}/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.13}/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.13}/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.13}/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.13}/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.13}/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.13}/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.13}/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.13}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/issues/GET +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/issues/POST +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pipelines/GET +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pipelines/POST +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/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.13}/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.13}/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.13}/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.13}/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.13}/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.13}/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.13}/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.13}/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.13}/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.13}/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.13}/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.13}/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.13}/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.13}/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.13}/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.13}/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.13}/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.13}/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.13}/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.13}/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.13}/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.13}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/GET +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/POST +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/cloud/2.0/workspaces/GET +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/cloud/2.0/workspaces/TestWorkspace1/GET +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/cloud/2.0/workspaces/TestWorkspace2/GET +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/cloud/2.0/workspaces/TestWorkspace3/GET +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/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.13}/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.13}/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.13}/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.13}/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.13}/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.13}/tests/responses/bitbucket/server/rest/api/1.0/projects/GET +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/GET +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/PUT +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/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.13}/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.13}/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.13}/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.13}/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.13}/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.13}/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.13}/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.13}/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.13}/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.13}/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.13}/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.13}/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.13}/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.13}/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.13}/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.13}/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.13}/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.13}/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.13}/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.13}/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.13}/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.13}/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.13}/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.13}/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.13}/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.13}/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.13}/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.13}/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.13}/tests/responses/jira/rest/agile/1.0/epic/none/issue/GET +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/tests/responses/jira/rest/api/2/comment/list/POST +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/tests/responses/jira/rest/api/2/issue/FOO-123/GET +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/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.13}/tests/responses/jira/rest/api/2/issue/FOO-123/comment/GET +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/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.13}/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.13}/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.13}/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.13}/tests/responses/jira/rest/api/2/issue/FOO-123/properties/GET +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/tests/responses/jira/rest/api/2/issue/POST +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/tests/responses/jira/rest/api/2/issue/REGEX-123/file.txt +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/tests/responses/servicedesk/rest/servicedeskapi/customer/POST +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/tests/responses/servicedesk/rest/servicedeskapi/organization/GET +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/tests/responses/servicedesk/rest/servicedeskapi/organization/POST +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/tests/responses/servicedesk/rest/servicedeskapi/organization/{organizationId}/DELETE +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/tests/responses/servicedesk/rest/servicedeskapi/organization/{organizationId}/GET +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/tests/responses/servicedesk/rest/servicedeskapi/organization/{organizationId}/property/GET +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/tests/responses/servicedesk/rest/servicedeskapi/organization/{organizationId}/user/DELETE +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/tests/responses/servicedesk/rest/servicedeskapi/organization/{organizationId}/user/GET +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/tests/responses/servicedesk/rest/servicedeskapi/organization/{organizationId}/user/POST +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/tests/responses/servicedesk/rest/servicedeskapi/servicedesk/{serviceDeskId}/customer/DELETE +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/tests/responses/servicedesk/rest/servicedeskapi/servicedesk/{serviceDeskId}/customer/GET +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/tests/responses/servicedesk/rest/servicedeskapi/servicedesk/{serviceDeskId}/customer/POST +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/tests/responses/servicedesk/rest/servicedeskapi/servicedesk/{serviceDeskId}/organization/DELETE +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/tests/responses/servicedesk/rest/servicedeskapi/servicedesk/{serviceDeskId}/organization/GET +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/tests/responses/servicedesk/rest/servicedeskapi/servicedesk/{serviceDeskId}/organization/POST +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/tests/test_base.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/tests/test_bitbucket_cloud_oo.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/tests/test_bitbucket_server.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/tests/test_bitbucket_server_oo.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/tests/test_confluence_advanced_mode.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/tests/test_confluence_attach.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/tests/test_jira.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/tests/test_servicedesk.py +0 -0
- {atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/tox.ini +0 -0
{atlassian-python-api-3.41.11/atlassian_python_api.egg-info → atlassian_python_api-3.41.13}/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.13
|
|
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.13
|
|
@@ -1286,6 +1286,34 @@ class Bamboo(AtlassianRestAPI):
|
|
|
1286
1286
|
url = "rest/plugins/1.0/?token={upm_token}".format(upm_token=upm_token)
|
|
1287
1287
|
return self.post(url, files=files, headers=self.no_check_headers)
|
|
1288
1288
|
|
|
1289
|
+
def disable_plugin(self, plugin_key):
|
|
1290
|
+
"""
|
|
1291
|
+
Disable a plugin
|
|
1292
|
+
:param plugin_key:
|
|
1293
|
+
:return:
|
|
1294
|
+
"""
|
|
1295
|
+
app_headers = {
|
|
1296
|
+
"X-Atlassian-Token": "nocheck",
|
|
1297
|
+
"Content-Type": "application/vnd.atl.plugins+json",
|
|
1298
|
+
}
|
|
1299
|
+
url = "rest/plugins/1.0/{plugin_key}-key".format(plugin_key=plugin_key)
|
|
1300
|
+
data = {"status": "disabled"}
|
|
1301
|
+
return self.put(url, data=data, headers=app_headers)
|
|
1302
|
+
|
|
1303
|
+
def enable_plugin(self, plugin_key):
|
|
1304
|
+
"""
|
|
1305
|
+
Enable a plugin
|
|
1306
|
+
:param plugin_key:
|
|
1307
|
+
:return:
|
|
1308
|
+
"""
|
|
1309
|
+
app_headers = {
|
|
1310
|
+
"X-Atlassian-Token": "nocheck",
|
|
1311
|
+
"Content-Type": "application/vnd.atl.plugins+json",
|
|
1312
|
+
}
|
|
1313
|
+
url = "rest/plugins/1.0/{plugin_key}-key".format(plugin_key=plugin_key)
|
|
1314
|
+
data = {"status": "enabled"}
|
|
1315
|
+
return self.put(url, data=data, headers=app_headers)
|
|
1316
|
+
|
|
1289
1317
|
def delete_plugin(self, plugin_key):
|
|
1290
1318
|
"""
|
|
1291
1319
|
Delete plugin
|
{atlassian-python-api-3.41.11 → atlassian_python_api-3.41.13}/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)
|
|
@@ -506,27 +506,20 @@ class Confluence(AtlassianRestAPI):
|
|
|
506
506
|
|
|
507
507
|
return response
|
|
508
508
|
|
|
509
|
-
def get_draft_page_by_id(self, page_id, status="draft"):
|
|
509
|
+
def get_draft_page_by_id(self, page_id, status="draft", expand=None):
|
|
510
510
|
"""
|
|
511
|
-
|
|
512
|
-
:param page_id:
|
|
513
|
-
:param status:
|
|
511
|
+
Gets content by id with status = draft
|
|
512
|
+
:param page_id: Content ID
|
|
513
|
+
:param status: (str) list of content statuses to filter results on. Default value: [draft]
|
|
514
|
+
:param expand: OPTIONAL: Default value: history,space,version
|
|
515
|
+
We can also specify some extensions such as extensions.inlineProperties
|
|
516
|
+
(for getting inline comment-specific properties) or extensions. Resolution
|
|
517
|
+
for the resolution status of each comment in the results
|
|
514
518
|
:return:
|
|
515
519
|
"""
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
response = self.get(url)
|
|
520
|
-
except HTTPError as e:
|
|
521
|
-
if e.response.status_code == 404:
|
|
522
|
-
raise ApiPermissionError(
|
|
523
|
-
"The calling user does not have permission to view the content",
|
|
524
|
-
reason=e,
|
|
525
|
-
)
|
|
526
|
-
|
|
527
|
-
raise
|
|
528
|
-
|
|
529
|
-
return response
|
|
520
|
+
# Version not passed since draft versions don't match the page and
|
|
521
|
+
# operate differently between different collaborative modes
|
|
522
|
+
return self.get_page_by_id(page_id=page_id, expand=expand, status=status)
|
|
530
523
|
|
|
531
524
|
def get_all_pages_by_label(self, label, start=0, limit=50):
|
|
532
525
|
"""
|
|
@@ -1322,17 +1315,20 @@ class Confluence(AtlassianRestAPI):
|
|
|
1322
1315
|
comment=comment,
|
|
1323
1316
|
)
|
|
1324
1317
|
|
|
1325
|
-
def download_attachments_from_page(self, page_id, path=None):
|
|
1318
|
+
def download_attachments_from_page(self, page_id, path=None, start=0, limit=50):
|
|
1326
1319
|
"""
|
|
1327
1320
|
Downloads all attachments from a page
|
|
1328
1321
|
:param page_id:
|
|
1329
|
-
:param path: path to directory where attachments will be saved. If None, current working directory will be used.
|
|
1322
|
+
:param path: OPTIONAL: path to directory where attachments will be saved. If None, current working directory will be used.
|
|
1323
|
+
:param start: OPTIONAL: The start point of the collection to return. Default: None (0).
|
|
1324
|
+
:param limit: OPTIONAL: The limit of the number of attachments to return, this may be restricted by
|
|
1325
|
+
fixed system limits. Default: 50
|
|
1330
1326
|
:return info message: number of saved attachments + path to directory where attachments were saved:
|
|
1331
1327
|
"""
|
|
1332
1328
|
if path is None:
|
|
1333
1329
|
path = os.getcwd()
|
|
1334
1330
|
try:
|
|
1335
|
-
attachments = self.get_attachments_from_content(page_id=page_id)["results"]
|
|
1331
|
+
attachments = self.get_attachments_from_content(page_id=page_id, start=start, limit=limit)["results"]
|
|
1336
1332
|
if not attachments:
|
|
1337
1333
|
return "No attachments found"
|
|
1338
1334
|
for attachment in attachments:
|
|
@@ -2727,6 +2723,34 @@ class Confluence(AtlassianRestAPI):
|
|
|
2727
2723
|
url = "rest/plugins/1.0/?token={upm_token}".format(upm_token=upm_token)
|
|
2728
2724
|
return self.post(url, files=files, headers=self.no_check_headers)
|
|
2729
2725
|
|
|
2726
|
+
def disable_plugin(self, plugin_key):
|
|
2727
|
+
"""
|
|
2728
|
+
Disable a plugin
|
|
2729
|
+
:param plugin_key:
|
|
2730
|
+
:return:
|
|
2731
|
+
"""
|
|
2732
|
+
app_headers = {
|
|
2733
|
+
"X-Atlassian-Token": "nocheck",
|
|
2734
|
+
"Content-Type": "application/vnd.atl.plugins+json",
|
|
2735
|
+
}
|
|
2736
|
+
url = "rest/plugins/1.0/{plugin_key}-key".format(plugin_key=plugin_key)
|
|
2737
|
+
data = {"status": "disabled"}
|
|
2738
|
+
return self.put(url, data=data, headers=app_headers)
|
|
2739
|
+
|
|
2740
|
+
def enable_plugin(self, plugin_key):
|
|
2741
|
+
"""
|
|
2742
|
+
Enable a plugin
|
|
2743
|
+
:param plugin_key:
|
|
2744
|
+
:return:
|
|
2745
|
+
"""
|
|
2746
|
+
app_headers = {
|
|
2747
|
+
"X-Atlassian-Token": "nocheck",
|
|
2748
|
+
"Content-Type": "application/vnd.atl.plugins+json",
|
|
2749
|
+
}
|
|
2750
|
+
url = "rest/plugins/1.0/{plugin_key}-key".format(plugin_key=plugin_key)
|
|
2751
|
+
data = {"status": "enabled"}
|
|
2752
|
+
return self.put(url, data=data, headers=app_headers)
|
|
2753
|
+
|
|
2730
2754
|
def delete_plugin(self, plugin_key):
|
|
2731
2755
|
"""
|
|
2732
2756
|
Delete plugin
|
|
@@ -2877,6 +2901,47 @@ class Confluence(AtlassianRestAPI):
|
|
|
2877
2901
|
params["searchString"] = search_string
|
|
2878
2902
|
return self.get(url, params=params)
|
|
2879
2903
|
|
|
2904
|
+
"""
|
|
2905
|
+
##############################################################################################
|
|
2906
|
+
# Confluence whiteboards (cloud only!) #
|
|
2907
|
+
##############################################################################################
|
|
2908
|
+
"""
|
|
2909
|
+
|
|
2910
|
+
def create_whiteboard(self, spaceId, title=None, parentId=None):
|
|
2911
|
+
url = "/api/v2/whiteboards"
|
|
2912
|
+
data = {"spaceId": spaceId}
|
|
2913
|
+
if title is not None:
|
|
2914
|
+
data["title"] = title
|
|
2915
|
+
if parentId is not None:
|
|
2916
|
+
data["parentId"] = parentId
|
|
2917
|
+
return self.post(url, data=data)
|
|
2918
|
+
|
|
2919
|
+
def get_whiteboard(self, whiteboard_id):
|
|
2920
|
+
try:
|
|
2921
|
+
url = f"/api/v2/whiteboards/{whiteboard_id}"
|
|
2922
|
+
return self.get(url)
|
|
2923
|
+
except HTTPError as e:
|
|
2924
|
+
# Default 404 error handling is ambiguous
|
|
2925
|
+
if e.response.status_code == 404:
|
|
2926
|
+
raise ApiValueError(
|
|
2927
|
+
"Whiteboard not found. Check confluence instance url and/or if whiteboard id exists", reason=e
|
|
2928
|
+
)
|
|
2929
|
+
|
|
2930
|
+
raise
|
|
2931
|
+
|
|
2932
|
+
def delete_whiteboard(self, whiteboard_id):
|
|
2933
|
+
try:
|
|
2934
|
+
url = f"/api/v2/whiteboards/{whiteboard_id}"
|
|
2935
|
+
return self.delete(url)
|
|
2936
|
+
except HTTPError as e:
|
|
2937
|
+
# # Default 404 error handling is ambiguous
|
|
2938
|
+
if e.response.status_code == 404:
|
|
2939
|
+
raise ApiValueError(
|
|
2940
|
+
"Whiteboard not found. Check confluence instance url and/or if whiteboard id exists", reason=e
|
|
2941
|
+
)
|
|
2942
|
+
|
|
2943
|
+
raise
|
|
2944
|
+
|
|
2880
2945
|
"""
|
|
2881
2946
|
##############################################################################################
|
|
2882
2947
|
# Team Calendars REST API implements (https://jira.atlassian.com/browse/CONFSERVER-51003) #
|