atlassian-python-api 4.0.1__tar.gz → 4.0.3__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-4.0.1/atlassian_python_api.egg-info → atlassian_python_api-4.0.3}/PKG-INFO +2 -1
- atlassian_python_api-4.0.3/atlassian/VERSION +1 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/atlassian/confluence.py +318 -18
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/atlassian/jira.py +7 -7
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3/atlassian_python_api.egg-info}/PKG-INFO +2 -1
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/atlassian_python_api.egg-info/requires.txt +1 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/requirements.txt +1 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/setup.py +1 -1
- atlassian_python_api-4.0.1/atlassian/VERSION +0 -1
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/LICENSE +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/MANIFEST.in +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/README.rst +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/atlassian/__init__.py +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/atlassian/bamboo.py +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/atlassian/bitbucket/__init__.py +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/atlassian/bitbucket/base.py +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/atlassian/bitbucket/cloud/__init__.py +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/atlassian/bitbucket/cloud/base.py +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/atlassian/bitbucket/cloud/common/__init__.py +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/atlassian/bitbucket/cloud/common/builds.py +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/atlassian/bitbucket/cloud/common/comments.py +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/atlassian/bitbucket/cloud/common/users.py +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/atlassian/bitbucket/cloud/repositories/__init__.py +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/atlassian/bitbucket/cloud/repositories/branchRestrictions.py +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/atlassian/bitbucket/cloud/repositories/commits.py +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/atlassian/bitbucket/cloud/repositories/defaultReviewers.py +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/atlassian/bitbucket/cloud/repositories/deploymentEnvironments.py +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/atlassian/bitbucket/cloud/repositories/diffstat.py +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/atlassian/bitbucket/cloud/repositories/groupPermissions.py +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/atlassian/bitbucket/cloud/repositories/hooks.py +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/atlassian/bitbucket/cloud/repositories/issues.py +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/atlassian/bitbucket/cloud/repositories/pipelines.py +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/atlassian/bitbucket/cloud/repositories/pullRequests.py +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/atlassian/bitbucket/cloud/repositories/refs.py +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/atlassian/bitbucket/cloud/repositories/repositoryVariables.py +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/atlassian/bitbucket/cloud/workspaces/__init__.py +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/atlassian/bitbucket/cloud/workspaces/members.py +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/atlassian/bitbucket/cloud/workspaces/permissions.py +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/atlassian/bitbucket/cloud/workspaces/projects.py +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/atlassian/bitbucket/server/__init__.py +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/atlassian/bitbucket/server/base.py +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/atlassian/bitbucket/server/common/__init__.py +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/atlassian/bitbucket/server/common/permissions.py +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/atlassian/bitbucket/server/globalPermissions.py +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/atlassian/bitbucket/server/projects/__init__.py +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/atlassian/bitbucket/server/projects/repos/__init__.py +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/atlassian/cloud_admin.py +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/atlassian/crowd.py +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/atlassian/errors.py +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/atlassian/insight.py +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/atlassian/marketplace.py +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/atlassian/portfolio.py +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/atlassian/py.typed +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/atlassian/request_utils.py +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/atlassian/rest_client.py +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/atlassian/service_desk.py +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/atlassian/statuspage.py +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/atlassian/typehints.py +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/atlassian/utils.py +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/atlassian/xray.py +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/atlassian_python_api.egg-info/SOURCES.txt +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/atlassian_python_api.egg-info/dependency_links.txt +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/atlassian_python_api.egg-info/not-zip-safe +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/atlassian_python_api.egg-info/top_level.txt +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/pyproject.toml +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/setup.cfg +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/__init__.py +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/__pycache__/__init__.cpython-39.pyc +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/__pycache__/mockup.cpython-39.pyc +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/__pycache__/test_base.cpython-39-pytest-8.3.4.pyc +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/__pycache__/test_bitbucket_cloud_oo.cpython-39-pytest-8.3.4.pyc +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/__pycache__/test_bitbucket_server.cpython-39-pytest-8.3.4.pyc +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/__pycache__/test_bitbucket_server_oo.cpython-39-pytest-8.3.4.pyc +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/__pycache__/test_confluence_advanced_mode.cpython-39-pytest-8.3.4.pyc +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/__pycache__/test_confluence_attach.cpython-39-pytest-8.3.4.pyc +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/__pycache__/test_jira.cpython-39-pytest-8.3.4.pyc +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/__pycache__/test_servicedesk.cpython-39-pytest-8.3.4.pyc +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/mockup.py +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/GET +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/TestRepositoryCreated/POST +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/GET +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/branch-restrictions/17203842/DELETE +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/branch-restrictions/17203842/GET +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/branch-restrictions/17203842/PUT +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/branch-restrictions/GET +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/default-reviewers/DefaultReviewer1Uuid/DELETE +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/default-reviewers/DefaultReviewer1Uuid/GET +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/default-reviewers/GET +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/issues/3/DELETE +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/issues/3/GET +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/issues/3/PUT +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/issues/GET +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/issues/POST +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pipelines/GET +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pipelines/POST +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pipelines/{PipelineUuid}/GET +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pipelines/{PipelineUuid}/steps/GET +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pipelines/{PipelineUuid}/steps/{PipelineStep1Uuid}/GET +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pipelines/{PipelineUuid}/steps/{PipelineStep2Uuid}/GET +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pipelines/{PipelineUuid}/steps/{PipelineStep2Uuid}/log/GET +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pipelines/{PipelineUuid}/stopPipeline/POST +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/GET +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/approve/DELETE +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/approve/POST +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/comments/GET +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/comments/POST +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/commits/GET +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/decline/POST +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/merge/POST +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/request-changes/DELETE +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/request-changes/POST +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/statuses/GET +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/tasks/123456/DELETE +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/tasks/123456/PUT +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/tasks/GET +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/tasks/POST +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/25/GET +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/GET +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/POST +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/bitbucket/cloud/2.0/workspaces/GET +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/bitbucket/cloud/2.0/workspaces/TestWorkspace1/GET +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/bitbucket/cloud/2.0/workspaces/TestWorkspace2/GET +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/bitbucket/cloud/2.0/workspaces/TestWorkspace3/GET +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/bitbucket/server/rest/api/1.0/admin/permissions/groups/DELETE +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/bitbucket/server/rest/api/1.0/admin/permissions/groups/GET +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/bitbucket/server/rest/api/1.0/admin/permissions/groups/none/GET +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/bitbucket/server/rest/api/1.0/admin/permissions/users/DELETE +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/bitbucket/server/rest/api/1.0/admin/permissions/users/GET +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/bitbucket/server/rest/api/1.0/admin/permissions/users/none/GET +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/bitbucket/server/rest/api/1.0/projects/GET +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/GET +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/PUT +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/permissions/groups/DELETE +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/permissions/groups/GET +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/permissions/groups/none/GET +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/permissions/users/DELETE +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/permissions/users/GET +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/permissions/users/none/GET +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/GET +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/GET +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/PUT +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/archive/GET +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/contributing/GET +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/default-branch/GET +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/default-branch/PUT +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/forks/GET +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/license/GET +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/permissions/groups/DELETE +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/permissions/groups/GET +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/permissions/groups/none/GET +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/permissions/users/DELETE +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/permissions/users/GET +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/permissions/users/none/GET +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/readme/GET +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/related/GET +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/webhooks/3/DELETE +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/webhooks/3/GET +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/webhooks/3/PUT +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/webhooks/GET +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/webhooks/POST +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/jira/rest/agile/1.0/epic/BAR-22/issue/GET +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/jira/rest/agile/1.0/epic/none/issue/GET +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/jira/rest/api/2/comment/list/POST +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/jira/rest/api/2/issue/FOO-123/GET +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/jira/rest/api/2/issue/FOO-123/comment/10000/GET +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/jira/rest/api/2/issue/FOO-123/comment/GET +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/jira/rest/api/2/issue/FOO-123/properties/Bar1/DELETE +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/jira/rest/api/2/issue/FOO-123/properties/Bar1/GET +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/jira/rest/api/2/issue/FOO-123/properties/Bar1/PUT +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/jira/rest/api/2/issue/FOO-123/properties/Bar2New/PUT +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/jira/rest/api/2/issue/FOO-123/properties/GET +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/jira/rest/api/2/issue/FOO-123/remotelink/POST +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/jira/rest/api/2/issue/POST +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/jira/rest/api/2/issue/REGEX-123/file.txt +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/servicedesk/rest/servicedeskapi/customer/POST +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/servicedesk/rest/servicedeskapi/organization/GET +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/servicedesk/rest/servicedeskapi/organization/POST +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/servicedesk/rest/servicedeskapi/organization/{organizationId}/DELETE +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/servicedesk/rest/servicedeskapi/organization/{organizationId}/GET +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/servicedesk/rest/servicedeskapi/organization/{organizationId}/property/GET +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/servicedesk/rest/servicedeskapi/organization/{organizationId}/user/DELETE +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/servicedesk/rest/servicedeskapi/organization/{organizationId}/user/GET +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/servicedesk/rest/servicedeskapi/organization/{organizationId}/user/POST +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/servicedesk/rest/servicedeskapi/servicedesk/{serviceDeskId}/customer/DELETE +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/servicedesk/rest/servicedeskapi/servicedesk/{serviceDeskId}/customer/GET +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/servicedesk/rest/servicedeskapi/servicedesk/{serviceDeskId}/customer/POST +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/servicedesk/rest/servicedeskapi/servicedesk/{serviceDeskId}/organization/DELETE +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/servicedesk/rest/servicedeskapi/servicedesk/{serviceDeskId}/organization/GET +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/responses/servicedesk/rest/servicedeskapi/servicedesk/{serviceDeskId}/organization/POST +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/test_base.py +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/test_bitbucket_cloud_oo.py +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/test_bitbucket_server.py +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/test_bitbucket_server_oo.py +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/test_confluence_advanced_mode.py +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/test_confluence_attach.py +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/test_jira.py +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/test_servicedesk.py +0 -0
- {atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tox.ini +0 -0
{atlassian_python_api-4.0.1/atlassian_python_api.egg-info → atlassian_python_api-4.0.3}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: atlassian-python-api
|
|
3
|
-
Version: 4.0.
|
|
3
|
+
Version: 4.0.3
|
|
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
|
|
@@ -46,6 +46,7 @@ Requires-Dist: oauthlib
|
|
|
46
46
|
Requires-Dist: requests_oauthlib
|
|
47
47
|
Requires-Dist: jmespath
|
|
48
48
|
Requires-Dist: beautifulsoup4
|
|
49
|
+
Requires-Dist: typing-extensions
|
|
49
50
|
Provides-Extra: kerberos
|
|
50
51
|
Requires-Dist: requests-kerberos; extra == "kerberos"
|
|
51
52
|
Dynamic: author
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
4.0.3
|
|
@@ -647,24 +647,80 @@ class Confluence(AtlassianRestAPI):
|
|
|
647
647
|
content_type="page",
|
|
648
648
|
):
|
|
649
649
|
"""
|
|
650
|
-
|
|
650
|
+
Retrieve all pages from a Confluence space.
|
|
651
651
|
|
|
652
|
-
:param space:
|
|
653
|
-
:param start: OPTIONAL: The
|
|
654
|
-
:param limit: OPTIONAL: The
|
|
655
|
-
|
|
656
|
-
:param
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
652
|
+
:param space: The space key to fetch pages from.
|
|
653
|
+
:param start: OPTIONAL: The starting point of the collection. Default: 0.
|
|
654
|
+
:param limit: OPTIONAL: The maximum number of pages per request. Default: 50.
|
|
655
|
+
:param status: OPTIONAL: Filter pages by status ('current', 'trashed', 'any'). Default: None.
|
|
656
|
+
:param expand: OPTIONAL: Comma-separated list of properties to expand. Default: history,space,version.
|
|
657
|
+
:param content_type: OPTIONAL: The content type to return ('page', 'blogpost'). Default: page.
|
|
658
|
+
:return: List containing all pages from the specified space.
|
|
659
|
+
"""
|
|
660
|
+
all_pages = [] # Initialize an empty list to store all pages
|
|
661
|
+
while True:
|
|
662
|
+
# Fetch a single batch of pages
|
|
663
|
+
response = self.get_all_pages_from_space_raw(
|
|
664
|
+
space=space,
|
|
665
|
+
start=start,
|
|
666
|
+
limit=limit,
|
|
667
|
+
status=status,
|
|
668
|
+
expand=expand,
|
|
669
|
+
content_type=content_type,
|
|
670
|
+
)
|
|
671
|
+
|
|
672
|
+
# Extract results from the response
|
|
673
|
+
results = response.get("results", [])
|
|
674
|
+
all_pages.extend(results) # Add the current batch of pages to the list
|
|
675
|
+
|
|
676
|
+
# Break the loop if no more pages are available
|
|
677
|
+
if len(results) < limit:
|
|
678
|
+
break
|
|
679
|
+
|
|
680
|
+
# Increment the start index for the next batch
|
|
681
|
+
start += limit
|
|
682
|
+
return all_pages
|
|
683
|
+
|
|
684
|
+
def get_all_pages_from_space_as_generator(
|
|
685
|
+
self,
|
|
686
|
+
space,
|
|
687
|
+
start=0,
|
|
688
|
+
limit=50,
|
|
689
|
+
status=None,
|
|
690
|
+
expand="history,space,version",
|
|
691
|
+
content_type="page",
|
|
692
|
+
):
|
|
693
|
+
"""
|
|
694
|
+
Retrieve all pages from a Confluence space using pagination.
|
|
695
|
+
|
|
696
|
+
:param space: The space key to fetch pages from.
|
|
697
|
+
:param start: OPTIONAL: The starting point of the collection. Default: 0.
|
|
698
|
+
:param limit: OPTIONAL: The maximum number of pages per request. Default: 50.
|
|
699
|
+
:param status: OPTIONAL: Filter pages by status ('current', 'trashed', 'any'). Default: None.
|
|
700
|
+
:param expand: OPTIONAL: Comma-separated list of properties to expand. Default: history,space,version.
|
|
701
|
+
:param content_type: OPTIONAL: The content type to return ('page', 'blogpost'). Default: page.
|
|
702
|
+
:return: Generator yielding pages one by one.
|
|
664
703
|
"""
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
704
|
+
while True:
|
|
705
|
+
# Fetch a single batch of pages
|
|
706
|
+
response = self.get_all_pages_from_space_raw(
|
|
707
|
+
space=space,
|
|
708
|
+
start=start,
|
|
709
|
+
limit=limit,
|
|
710
|
+
status=status,
|
|
711
|
+
expand=expand,
|
|
712
|
+
content_type=content_type,
|
|
713
|
+
)
|
|
714
|
+
|
|
715
|
+
# Extract results from the response
|
|
716
|
+
results = response.get("results", [])
|
|
717
|
+
yield from results # Yield each page individually
|
|
718
|
+
|
|
719
|
+
# Break the loop if no more pages are available
|
|
720
|
+
if len(results) < limit:
|
|
721
|
+
break
|
|
722
|
+
start += limit
|
|
723
|
+
pass
|
|
668
724
|
|
|
669
725
|
def get_all_pages_from_space_trash(self, space, start=0, limit=500, status="trashed", content_type="page"):
|
|
670
726
|
"""
|
|
@@ -1238,7 +1294,7 @@ class Confluence(AtlassianRestAPI):
|
|
|
1238
1294
|
def get_all_spaces(
|
|
1239
1295
|
self,
|
|
1240
1296
|
start=0,
|
|
1241
|
-
limit=
|
|
1297
|
+
limit=50,
|
|
1242
1298
|
expand=None,
|
|
1243
1299
|
space_type=None,
|
|
1244
1300
|
space_status=None,
|
|
@@ -2425,7 +2481,7 @@ class Confluence(AtlassianRestAPI):
|
|
|
2425
2481
|
else:
|
|
2426
2482
|
members.extend(values)
|
|
2427
2483
|
if not members:
|
|
2428
|
-
print(
|
|
2484
|
+
print(f"Did not get members from {group_name} group, please check permissions or connectivity")
|
|
2429
2485
|
return members
|
|
2430
2486
|
|
|
2431
2487
|
def get_space(self, space_key, expand="description.plain,homepage", params=None):
|
|
@@ -3315,6 +3371,250 @@ class Confluence(AtlassianRestAPI):
|
|
|
3315
3371
|
url = "rest/api/user/%s/group/%s" % (username, group_name)
|
|
3316
3372
|
return self.put(url)
|
|
3317
3373
|
|
|
3374
|
+
# Space Permissions
|
|
3375
|
+
def get_all_space_permissions(self, space_key):
|
|
3376
|
+
"""
|
|
3377
|
+
Returns list of permissions granted to users and groups in the particular space.
|
|
3378
|
+
:param space_key:
|
|
3379
|
+
:return:
|
|
3380
|
+
"""
|
|
3381
|
+
url = f"rest/api/space/{space_key}/permissions"
|
|
3382
|
+
return self.get(url)
|
|
3383
|
+
|
|
3384
|
+
def set_permissions_to_multiple_items_for_space(self, space_key, user_key=None, group_name=None, operations=None):
|
|
3385
|
+
"""
|
|
3386
|
+
Sets permissions to multiple users/groups in the given space.
|
|
3387
|
+
Request should contain all permissions that user/group/anonymous user will have in a given space.
|
|
3388
|
+
If permission is absent in the request, but was granted before, it will be revoked.
|
|
3389
|
+
If empty list of permissions passed to user/group/anonymous user,
|
|
3390
|
+
then all their existing permissions will be revoked.
|
|
3391
|
+
If user/group/anonymous user not mentioned in the request, their permissions will not be revoked.
|
|
3392
|
+
|
|
3393
|
+
Maximum 40 different users/groups/anonymous user could be passed in the request.
|
|
3394
|
+
:param space_key:
|
|
3395
|
+
:param user_key:
|
|
3396
|
+
:param group_name:
|
|
3397
|
+
:param operations:
|
|
3398
|
+
:return:
|
|
3399
|
+
"""
|
|
3400
|
+
url = f"rest/api/space/{space_key}/permissions"
|
|
3401
|
+
params = []
|
|
3402
|
+
|
|
3403
|
+
if user_key:
|
|
3404
|
+
params.append({"userKey": user_key, "operations": operations or []})
|
|
3405
|
+
|
|
3406
|
+
if group_name:
|
|
3407
|
+
params.append({"groupName": group_name, "operations": operations or []})
|
|
3408
|
+
|
|
3409
|
+
if not user_key and not group_name:
|
|
3410
|
+
params.append({"operations": operations or []})
|
|
3411
|
+
payload_json = json.dumps(params)
|
|
3412
|
+
return self.post(url, data=payload_json)
|
|
3413
|
+
|
|
3414
|
+
def get_permissions_granted_to_anonymous_for_space(self, space_key):
|
|
3415
|
+
"""
|
|
3416
|
+
Get permissions granted to anonymous user for the given space
|
|
3417
|
+
:param space_key:
|
|
3418
|
+
:return:
|
|
3419
|
+
"""
|
|
3420
|
+
url = f"rest/api/space/{space_key}/permissions/anonymous"
|
|
3421
|
+
return self.get(url)
|
|
3422
|
+
|
|
3423
|
+
def set_permissions_to_anonymous_for_space(self, space_key, operations=None):
|
|
3424
|
+
"""
|
|
3425
|
+
Grant permissions to anonymous user in the given space. Operation doesn't override existing permissions,
|
|
3426
|
+
will only add those one that weren't granted before. Multiple permissions could be passed in one request.
|
|
3427
|
+
Supported targetType and operationKey pairs:
|
|
3428
|
+
|
|
3429
|
+
space read
|
|
3430
|
+
space administer
|
|
3431
|
+
space export
|
|
3432
|
+
space restrict
|
|
3433
|
+
space delete_own
|
|
3434
|
+
space delete_mail
|
|
3435
|
+
page create
|
|
3436
|
+
page delete
|
|
3437
|
+
blogpost create
|
|
3438
|
+
blogpost delete
|
|
3439
|
+
comment create
|
|
3440
|
+
comment delete
|
|
3441
|
+
attachment create
|
|
3442
|
+
attachment delete
|
|
3443
|
+
:param space_key:
|
|
3444
|
+
:param operations:
|
|
3445
|
+
:return:
|
|
3446
|
+
"""
|
|
3447
|
+
url = f"rest/api/space/{space_key}/permissions/anonymous"
|
|
3448
|
+
data = {"operations": operations or []}
|
|
3449
|
+
return self.put(url, data=data)
|
|
3450
|
+
|
|
3451
|
+
def remove_permissions_from_anonymous_for_space(self, space_key, operations=None):
|
|
3452
|
+
"""
|
|
3453
|
+
Revoke permissions from anonymous user in the given space.
|
|
3454
|
+
If anonymous user doesn't have permissions that we are trying to revoke,
|
|
3455
|
+
those permissions will be silently skipped. Multiple permissions could be passed in one request.
|
|
3456
|
+
Supported targetType and operationKey pairs:
|
|
3457
|
+
|
|
3458
|
+
space read
|
|
3459
|
+
space administer
|
|
3460
|
+
space export
|
|
3461
|
+
space restrict
|
|
3462
|
+
space delete_own
|
|
3463
|
+
space delete_mail
|
|
3464
|
+
page create
|
|
3465
|
+
page delete
|
|
3466
|
+
blogpost create
|
|
3467
|
+
blogpost delete
|
|
3468
|
+
comment create
|
|
3469
|
+
comment delete
|
|
3470
|
+
attachment create
|
|
3471
|
+
attachment delete
|
|
3472
|
+
:param space_key:
|
|
3473
|
+
:param operations:
|
|
3474
|
+
:return:
|
|
3475
|
+
"""
|
|
3476
|
+
url = f"rest/api/space/{space_key}/permissions/anonymous/revoke"
|
|
3477
|
+
data = {"operations": operations or []}
|
|
3478
|
+
return self.put(url, data=data)
|
|
3479
|
+
|
|
3480
|
+
def get_permissions_granted_to_group_for_space(self, space_key, group_name):
|
|
3481
|
+
"""
|
|
3482
|
+
Get permissions granted to group for the given space
|
|
3483
|
+
:param space_key:
|
|
3484
|
+
:param group_name:
|
|
3485
|
+
:return:
|
|
3486
|
+
"""
|
|
3487
|
+
url = f"rest/api/space/{space_key}/permissions/group/{group_name}"
|
|
3488
|
+
return self.get(url)
|
|
3489
|
+
|
|
3490
|
+
def set_permissions_to_group_for_space(self, space_key, group_name, operations=None):
|
|
3491
|
+
"""
|
|
3492
|
+
Grant permissions to group in the given space.
|
|
3493
|
+
Operation doesn't override existing permissions, will only add those one that weren't granted before.
|
|
3494
|
+
Multiple permissions could be passed in one request. Supported targetType and operationKey pairs:
|
|
3495
|
+
|
|
3496
|
+
space read
|
|
3497
|
+
space administer
|
|
3498
|
+
space export
|
|
3499
|
+
space restrict
|
|
3500
|
+
space delete_own
|
|
3501
|
+
space delete_mail
|
|
3502
|
+
page create
|
|
3503
|
+
page delete
|
|
3504
|
+
blogpost create
|
|
3505
|
+
blogpost delete
|
|
3506
|
+
comment create
|
|
3507
|
+
comment delete
|
|
3508
|
+
attachment create
|
|
3509
|
+
attachment delete
|
|
3510
|
+
:param space_key:
|
|
3511
|
+
:param group_name:
|
|
3512
|
+
:param operations:
|
|
3513
|
+
:return:
|
|
3514
|
+
"""
|
|
3515
|
+
url = f"rest/api/space/{space_key}/permissions/group/{group_name}"
|
|
3516
|
+
data = {"operations": operations or []}
|
|
3517
|
+
return self.put(url, data=data)
|
|
3518
|
+
|
|
3519
|
+
def remove_permissions_from_group_for_space(self, space_key, group_name, operations=None):
|
|
3520
|
+
"""
|
|
3521
|
+
Revoke permissions from a group in the given space.
|
|
3522
|
+
If group doesn't have permissions that we are trying to revoke,
|
|
3523
|
+
those permissions will be silently skipped. Multiple permissions could be passed in one request.
|
|
3524
|
+
Supported targetType and operationKey pairs:
|
|
3525
|
+
|
|
3526
|
+
space read
|
|
3527
|
+
space administer
|
|
3528
|
+
space export
|
|
3529
|
+
space restrict
|
|
3530
|
+
space delete_own
|
|
3531
|
+
space delete_mail
|
|
3532
|
+
page create
|
|
3533
|
+
page delete
|
|
3534
|
+
blogpost create
|
|
3535
|
+
blogpost delete
|
|
3536
|
+
comment create
|
|
3537
|
+
comment delete
|
|
3538
|
+
attachment create
|
|
3539
|
+
attachment delete
|
|
3540
|
+
:param space_key:
|
|
3541
|
+
:param group_name:
|
|
3542
|
+
:param operations:
|
|
3543
|
+
:return:
|
|
3544
|
+
"""
|
|
3545
|
+
url = f"rest/api/space/{space_key}/permissions/group/{group_name}/revoke"
|
|
3546
|
+
data = {"operations": operations or []}
|
|
3547
|
+
return self.put(url, data=data)
|
|
3548
|
+
|
|
3549
|
+
def get_permissions_granted_to_user_for_space(self, space_key, user_key):
|
|
3550
|
+
"""
|
|
3551
|
+
Get permissions granted to user for the given space
|
|
3552
|
+
:param space_key:
|
|
3553
|
+
:param user_key:
|
|
3554
|
+
:return:
|
|
3555
|
+
"""
|
|
3556
|
+
url = f"rest/api/space/{space_key}/permissions/user/{user_key}"
|
|
3557
|
+
return self.get(url)
|
|
3558
|
+
|
|
3559
|
+
def set_permissions_to_user_for_space(self, space_key, user_key, operations=None):
|
|
3560
|
+
"""
|
|
3561
|
+
Grant permissions to user in the given space.
|
|
3562
|
+
Operation doesn't override existing permissions, will only add those one that weren't granted before.
|
|
3563
|
+
Multiple permissions could be passed in one request. Supported targetType and operationKey pairs:
|
|
3564
|
+
|
|
3565
|
+
space read
|
|
3566
|
+
space administer
|
|
3567
|
+
space export
|
|
3568
|
+
space restrict
|
|
3569
|
+
space delete_own
|
|
3570
|
+
space delete_mail
|
|
3571
|
+
page create
|
|
3572
|
+
page delete
|
|
3573
|
+
blogpost create
|
|
3574
|
+
blogpost delete
|
|
3575
|
+
comment create
|
|
3576
|
+
comment delete
|
|
3577
|
+
attachment create
|
|
3578
|
+
attachment delete
|
|
3579
|
+
:param space_key:
|
|
3580
|
+
:param user_key:
|
|
3581
|
+
:param operations:
|
|
3582
|
+
:return:
|
|
3583
|
+
"""
|
|
3584
|
+
url = f"rest/api/space/{space_key}/permissions/user/{user_key}"
|
|
3585
|
+
data = {"operations": operations or []}
|
|
3586
|
+
return self.put(url, data=data)
|
|
3587
|
+
|
|
3588
|
+
def remove_permissions_from_user_for_space(self, space_key, user_key, operations=None):
|
|
3589
|
+
"""
|
|
3590
|
+
Revoke permissions from a user in the given space.
|
|
3591
|
+
If user doesn't have permissions that we are trying to revoke,
|
|
3592
|
+
those permissions will be silently skipped. Multiple permissions could be passed in one request.
|
|
3593
|
+
Supported targetType and operationKey pairs:
|
|
3594
|
+
|
|
3595
|
+
space read
|
|
3596
|
+
space administer
|
|
3597
|
+
space export
|
|
3598
|
+
space restrict
|
|
3599
|
+
space delete_own
|
|
3600
|
+
space delete_mail
|
|
3601
|
+
page create
|
|
3602
|
+
page delete
|
|
3603
|
+
blogpost create
|
|
3604
|
+
blogpost delete
|
|
3605
|
+
comment create
|
|
3606
|
+
comment delete
|
|
3607
|
+
attachment create
|
|
3608
|
+
attachment delete
|
|
3609
|
+
:param space_key:
|
|
3610
|
+
:param user_key:
|
|
3611
|
+
:param operations:
|
|
3612
|
+
:return:
|
|
3613
|
+
"""
|
|
3614
|
+
url = f"rest/api/space/{space_key}/permissions/user/{user_key}/revoke"
|
|
3615
|
+
data = {"operations": operations or []}
|
|
3616
|
+
return self.put(url, params=data)
|
|
3617
|
+
|
|
3318
3618
|
def add_space_permissions(
|
|
3319
3619
|
self,
|
|
3320
3620
|
space_key,
|
|
@@ -470,7 +470,7 @@ class Jira(AtlassianRestAPI):
|
|
|
470
470
|
return self.put(url)
|
|
471
471
|
|
|
472
472
|
"""
|
|
473
|
-
Troubleshooting. (Available for DC) It gives the
|
|
473
|
+
Troubleshooting. (Available for DC) It gives the possibility to download support zips.
|
|
474
474
|
Reference: https://confluence.atlassian.com/support/create-a-support-zip-using-the-rest-api-in-data-center-applications-952054641.html
|
|
475
475
|
"""
|
|
476
476
|
|
|
@@ -1571,9 +1571,9 @@ class Jira(AtlassianRestAPI):
|
|
|
1571
1571
|
self,
|
|
1572
1572
|
issue_key: str,
|
|
1573
1573
|
fields: Union[str, dict],
|
|
1574
|
-
update: Optional[
|
|
1575
|
-
history_metadata: Optional[
|
|
1576
|
-
properties: Optional[
|
|
1574
|
+
update: Optional[Dict[Any, Any]] = None,
|
|
1575
|
+
history_metadata: Optional[Dict[Any, Any]] = None,
|
|
1576
|
+
properties: Optional[List[Any]] = None,
|
|
1577
1577
|
notify_users: bool = True,
|
|
1578
1578
|
):
|
|
1579
1579
|
"""
|
|
@@ -4050,7 +4050,7 @@ api-group-workflows/#api-rest-api-2-workflow-search-get)
|
|
|
4050
4050
|
permission_id: str,
|
|
4051
4051
|
name: str,
|
|
4052
4052
|
description: Optional[str] = None,
|
|
4053
|
-
permissions: Optional[
|
|
4053
|
+
permissions: Optional[List[dict]] = None,
|
|
4054
4054
|
scope: Optional[str] = None,
|
|
4055
4055
|
expand: Optional[str] = None,
|
|
4056
4056
|
):
|
|
@@ -4065,7 +4065,7 @@ api-group-workflows/#api-rest-api-2-workflow-search-get)
|
|
|
4065
4065
|
:param permission_id: int, REQUIRED: The ID of the permission scheme to update.
|
|
4066
4066
|
:param name: str, REQUIRED: The name of the permission scheme. Must be unique.
|
|
4067
4067
|
:param description: str, OPTIONAL: A description for the permission scheme. Defaults to None.
|
|
4068
|
-
:param permissions:
|
|
4068
|
+
:param permissions: List[dict], OPTIONAL: A collection of permission grants. Defaults to None.
|
|
4069
4069
|
Example:
|
|
4070
4070
|
[
|
|
4071
4071
|
{
|
|
@@ -5692,7 +5692,7 @@ api-group-workflows/#api-rest-api-2-workflow-search-get)
|
|
|
5692
5692
|
"""
|
|
5693
5693
|
Flags or un-flags one or multiple issues in Jira with a flag indicator.
|
|
5694
5694
|
:param issue_keys: List of issue keys to flag or un-flag.
|
|
5695
|
-
:type issue_keys:
|
|
5695
|
+
:type issue_keys: List[str]
|
|
5696
5696
|
:param flag: Flag indicating whether to flag or un-flag the issues (default is True for flagging).
|
|
5697
5697
|
:type flag: bool
|
|
5698
5698
|
:return: POST request response.
|
{atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3/atlassian_python_api.egg-info}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: atlassian-python-api
|
|
3
|
-
Version: 4.0.
|
|
3
|
+
Version: 4.0.3
|
|
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
|
|
@@ -46,6 +46,7 @@ Requires-Dist: oauthlib
|
|
|
46
46
|
Requires-Dist: requests_oauthlib
|
|
47
47
|
Requires-Dist: jmespath
|
|
48
48
|
Requires-Dist: beautifulsoup4
|
|
49
|
+
Requires-Dist: typing-extensions
|
|
49
50
|
Provides-Extra: kerberos
|
|
50
51
|
Requires-Dist: requests-kerberos; extra == "kerberos"
|
|
51
52
|
Dynamic: author
|
|
@@ -26,7 +26,7 @@ setup(
|
|
|
26
26
|
package_dir={"atlassian": "atlassian"},
|
|
27
27
|
include_package_data=True,
|
|
28
28
|
zip_safe=False,
|
|
29
|
-
install_requires=["deprecated", "requests", "six", "oauthlib", "requests_oauthlib", "jmespath", "beautifulsoup4"],
|
|
29
|
+
install_requires=["deprecated", "requests", "six", "oauthlib", "requests_oauthlib", "jmespath", "beautifulsoup4", "typing-extensions"],
|
|
30
30
|
extras_require={"kerberos": ["requests-kerberos"]},
|
|
31
31
|
platforms="Platform Independent",
|
|
32
32
|
classifiers=[
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
4.0.1
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/atlassian/bitbucket/cloud/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/atlassian/bitbucket/cloud/common/builds.py
RENAMED
|
File without changes
|
|
File without changes
|
{atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/atlassian/bitbucket/cloud/common/users.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
|
{atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/atlassian/bitbucket/server/__init__.py
RENAMED
|
File without changes
|
{atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/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
|
{atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/atlassian_python_api.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/atlassian_python_api.egg-info/not-zip-safe
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/__pycache__/__init__.cpython-39.pyc
RENAMED
|
File without changes
|
{atlassian_python_api-4.0.1 → atlassian_python_api-4.0.3}/tests/__pycache__/mockup.cpython-39.pyc
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|