glpi-python-client 0.6.7__tar.gz → 0.6.9__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.
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/CHANGELOG.md +39 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/PKG-INFO +1 -1
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/docs/user_guide.rst +39 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/__init__.py +1 -1
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_async/clients/api/assistance/_ticket.py +132 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_sync/clients/api/assistance/_ticket.py +132 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/models/api_schema/assistance/_ticket.py +30 -7
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/pyproject.toml +1 -1
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/skills/glpi-asset-workflow/SKILL.md +1 -1
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/skills/glpi-client-setup/SKILL.md +1 -1
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/skills/glpi-contract-workflow/SKILL.md +1 -1
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/skills/glpi-document-workflow/SKILL.md +1 -1
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/skills/glpi-knowledge-base/SKILL.md +1 -1
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/skills/glpi-plugin-fields/SKILL.md +1 -1
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/skills/glpi-reporting-and-context/SKILL.md +1 -1
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/skills/glpi-team-members/SKILL.md +1 -1
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/skills/glpi-ticket-timeline/SKILL.md +1 -1
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/skills/glpi-ticket-workflow/SKILL.md +2 -1
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/skills/glpi-user-location-provisioning/SKILL.md +1 -1
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/.gitignore +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/.pre-commit-config.yaml +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/.readthedocs.yaml +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/CONTRIBUTING.md +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/LICENSE +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/README.md +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/docs/_static/.gitkeep +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/docs/api_reference.rst +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/docs/conf.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/docs/development.md +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/docs/development_rtd.rst +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/docs/index.rst +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/docs/installation.rst +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/docs/publishing.md +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/docs/publishing_rtd.rst +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/docs/sponsoring.rst +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_async/__init__.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_async/_concurrency.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_async/_testing.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_async/auth/__init__.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_async/auth/_v1_session.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_async/auth/auth.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_async/clients/__init__.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_async/clients/_base_client.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_async/clients/api/__init__.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_async/clients/api/administration/__init__.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_async/clients/api/administration/_entity.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_async/clients/api/administration/_group.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_async/clients/api/administration/_user.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_async/clients/api/assets/__init__.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_async/clients/api/assets/_computer.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_async/clients/api/assistance/__init__.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_async/clients/api/assistance/_team.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_async/clients/api/assistance/timeline/__init__.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_async/clients/api/assistance/timeline/_document.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_async/clients/api/assistance/timeline/_followup.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_async/clients/api/assistance/timeline/_solution.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_async/clients/api/assistance/timeline/_task.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_async/clients/api/dropdowns/__init__.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_async/clients/api/dropdowns/_contract_type.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_async/clients/api/dropdowns/_location.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_async/clients/api/knowledgebase/__init__.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_async/clients/api/knowledgebase/_article.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_async/clients/api/knowledgebase/_category.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_async/clients/api/knowledgebase/_comment.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_async/clients/api/knowledgebase/_revision.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_async/clients/api/management/__init__.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_async/clients/api/management/_contract.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_async/clients/api/management/_document.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_async/clients/api/plugins/__init__.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_async/clients/api/plugins/_fields.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_async/clients/client.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_async/clients/commons/__init__.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_async/clients/commons/_config.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_async/clients/commons/_constants.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_async/clients/commons/_filters.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_async/clients/commons/_http.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_async/clients/commons/_payloads.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_async/clients/commons/_transport.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_async/clients/custom/__init__.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_async/clients/custom/_statistics.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_async/clients/custom/_ticket_context.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_errors.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_sync/__init__.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_sync/_concurrency.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_sync/_testing.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_sync/auth/__init__.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_sync/auth/_v1_session.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_sync/auth/auth.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_sync/clients/__init__.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_sync/clients/_base_client.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_sync/clients/api/__init__.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_sync/clients/api/administration/__init__.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_sync/clients/api/administration/_entity.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_sync/clients/api/administration/_group.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_sync/clients/api/administration/_user.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_sync/clients/api/assets/__init__.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_sync/clients/api/assets/_computer.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_sync/clients/api/assistance/__init__.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_sync/clients/api/assistance/_team.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_sync/clients/api/assistance/timeline/__init__.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_sync/clients/api/assistance/timeline/_document.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_sync/clients/api/assistance/timeline/_followup.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_sync/clients/api/assistance/timeline/_solution.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_sync/clients/api/assistance/timeline/_task.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_sync/clients/api/dropdowns/__init__.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_sync/clients/api/dropdowns/_contract_type.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_sync/clients/api/dropdowns/_location.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_sync/clients/api/knowledgebase/__init__.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_sync/clients/api/knowledgebase/_article.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_sync/clients/api/knowledgebase/_category.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_sync/clients/api/knowledgebase/_comment.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_sync/clients/api/knowledgebase/_revision.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_sync/clients/api/management/__init__.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_sync/clients/api/management/_contract.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_sync/clients/api/management/_document.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_sync/clients/api/plugins/__init__.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_sync/clients/api/plugins/_fields.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_sync/clients/client.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_sync/clients/commons/__init__.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_sync/clients/commons/_config.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_sync/clients/commons/_constants.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_sync/clients/commons/_filters.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_sync/clients/commons/_http.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_sync/clients/commons/_payloads.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_sync/clients/commons/_transport.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_sync/clients/custom/__init__.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_sync/clients/custom/_statistics.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_sync/clients/custom/_ticket_context.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/content/__init__.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/content/conversion.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/models/__init__.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/models/_base.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/models/api_schema/__init__.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/models/api_schema/_common.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/models/api_schema/_content.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/models/api_schema/administration/__init__.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/models/api_schema/administration/_entity.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/models/api_schema/administration/_group.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/models/api_schema/administration/_user.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/models/api_schema/administration/_user_authorization.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/models/api_schema/assets/__init__.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/models/api_schema/assets/_computer.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/models/api_schema/assets/_contract_item.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/models/api_schema/assistance/__init__.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/models/api_schema/assistance/_team.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/models/api_schema/assistance/timeline/__init__.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/models/api_schema/assistance/timeline/_document.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/models/api_schema/assistance/timeline/_followup.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/models/api_schema/assistance/timeline/_solution.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/models/api_schema/assistance/timeline/_task.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/models/api_schema/dropdowns/__init__.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/models/api_schema/dropdowns/_contract_type.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/models/api_schema/dropdowns/_location.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/models/api_schema/enums.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/models/api_schema/knowledgebase/__init__.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/models/api_schema/knowledgebase/_article.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/models/api_schema/knowledgebase/_category.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/models/api_schema/knowledgebase/_comment.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/models/api_schema/knowledgebase/_revision.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/models/api_schema/management/__init__.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/models/api_schema/management/_contract.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/models/api_schema/management/_contract_cost.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/models/api_schema/management/_document.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/models/api_schema/management/_document_item.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/models/api_schema/plugins/__init__.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/models/api_schema/plugins/_fields.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/models/custom_schema/__init__.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/models/custom_schema/_ticket_context.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/py.typed +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/rsql.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/testing/__init__.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/testing/fixtures.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/testing/utils.py +0 -0
- {glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/skills/README.md +0 -0
|
@@ -4,6 +4,45 @@ All notable changes to this project are documented in this file.
|
|
|
4
4
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
|
|
6
6
|
|
|
7
|
+
## 0.6.9 — 2026-11-10
|
|
8
|
+
|
|
9
|
+
A fix for GLPI 12. GLPI 12.0.1 sends a ticket's `ola_ttr` and `ola_tto` as an
|
|
10
|
+
empty array, `[]`, when the ticket has no OLA. Its own v2.3 contract, like
|
|
11
|
+
GLPI 11, declares a nullable object there. `GetTicket` refused the array, so
|
|
12
|
+
every ticket read and every ticket search raised `ValidationError` against a
|
|
13
|
+
GLPI 12 server.
|
|
14
|
+
|
|
15
|
+
### Fixed
|
|
16
|
+
|
|
17
|
+
- **All six SLA and OLA references of `GetTicket`** (`sla_ttr`, `sla_tto`,
|
|
18
|
+
`sla_level_ttr`, `ola_ttr`, `ola_tto`, `ola_level_ttr`) read an empty array as
|
|
19
|
+
`None`. An object and `null` read as before. Nothing else changes.
|
|
20
|
+
|
|
21
|
+
## 0.6.8 — 2026-11-02
|
|
22
|
+
|
|
23
|
+
A minor addition: a way to write or clear a ticket's take-into-account stamp,
|
|
24
|
+
through the legacy v1 API. GLPI stamps the date on the first write by an
|
|
25
|
+
account allowed to take a ticket into account, so a connector that writes to a
|
|
26
|
+
ticket it has just created leaves a time-to-own of nearly zero. The v2 `Ticket`
|
|
27
|
+
schema exposes the date as read-only and ignores `_do_not_compute_takeintoaccount`.
|
|
28
|
+
Both helpers need `v1_base_url` / `v1_user_token` and raise `RuntimeError`
|
|
29
|
+
without them. Existing methods are unchanged.
|
|
30
|
+
|
|
31
|
+
### Added
|
|
32
|
+
|
|
33
|
+
- **`change_ticket_take_into_account(ticket_id, *, take_into_account_date,
|
|
34
|
+
take_into_account_duration, do_not_compute=True, disable_notifications=True)`**
|
|
35
|
+
on both clients. It writes the ticket's take-into-account date (an aware
|
|
36
|
+
value is converted to `server_timezone`) and its duration in seconds. GLPI
|
|
37
|
+
writes a null date whenever the duration is 0. `do_not_compute` sends
|
|
38
|
+
`_do_not_compute_takeintoaccount` and `disable_notifications` sends
|
|
39
|
+
`_disablenotif`; a `False` flag is left out of the request, because GLPI
|
|
40
|
+
tests `_disablenotif` for presence. A refused write raises
|
|
41
|
+
`GlpiProtocolError`.
|
|
42
|
+
- **`clear_ticket_take_into_account(ticket_id, *, do_not_compute=True,
|
|
43
|
+
disable_notifications=True)`** on both clients: the change above with a null
|
|
44
|
+
date and a 0 duration.
|
|
45
|
+
|
|
7
46
|
## 0.6.7 — 2026-10-30
|
|
8
47
|
|
|
9
48
|
A minor addition: group recursion and a user's profile/entity authorizations,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: glpi-python-client
|
|
3
|
-
Version: 0.6.
|
|
3
|
+
Version: 0.6.9
|
|
4
4
|
Summary: A typed Python client for GLPI ITSM APIs.
|
|
5
5
|
Project-URL: Homepage, https://github.com/baraline/glpi_python_client
|
|
6
6
|
Project-URL: Documentation, https://glpi-python-client.readthedocs.io/en/latest/
|
|
@@ -617,6 +617,45 @@ worked.
|
|
|
617
617
|
rows = await client.list_user_authorizations(2568)
|
|
618
618
|
await client.update_user_authorization(rows[0].id, entity_id=493, recursive=True)
|
|
619
619
|
|
|
620
|
+
Writing the take-into-account stamp
|
|
621
|
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
622
|
+
|
|
623
|
+
GLPI stamps ``take_into_account_date`` on a ticket the first time an account
|
|
624
|
+
allowed to take it into account writes to it, which makes the time-to-own
|
|
625
|
+
statistic nearly zero for a ticket a connector has just created. The v2
|
|
626
|
+
``Ticket`` schema exposes the date as read-only and ignores the
|
|
627
|
+
``_do_not_compute_takeintoaccount`` flag, so both helpers below go through the
|
|
628
|
+
legacy v1 session (``v1_base_url`` and ``v1_user_token``); without one they
|
|
629
|
+
raise ``RuntimeError``, and a refused write raises ``GlpiProtocolError``.
|
|
630
|
+
|
|
631
|
+
* ``change_ticket_take_into_account(ticket_id, *, take_into_account_date,
|
|
632
|
+
take_into_account_duration, do_not_compute=True, disable_notifications=True)``
|
|
633
|
+
writes the date (an aware value is converted to ``server_timezone``, a
|
|
634
|
+
naive one is taken as already on it) and the duration in seconds. GLPI
|
|
635
|
+
writes a null date whenever the duration is 0.
|
|
636
|
+
* ``clear_ticket_take_into_account(ticket_id, *, do_not_compute=True,
|
|
637
|
+
disable_notifications=True)`` is that change with a null date and a 0
|
|
638
|
+
duration.
|
|
639
|
+
|
|
640
|
+
``do_not_compute`` sends ``_do_not_compute_takeintoaccount``, which keeps GLPI
|
|
641
|
+
from stamping the ticket again in the same write; with it off, a clear made
|
|
642
|
+
by an account allowed to take the ticket into account is undone at once.
|
|
643
|
+
``disable_notifications`` sends ``_disablenotif``, which suppresses the
|
|
644
|
+
"ticket updated" notification. GLPI tests ``_disablenotif`` for presence, so a
|
|
645
|
+
``False`` flag is left out of the request rather than sent as ``false``. Read
|
|
646
|
+
the result back with ``get_ticket`` (``take_into_account_date`` and
|
|
647
|
+
``take_into_account_duration``).
|
|
648
|
+
|
|
649
|
+
.. code-block:: python
|
|
650
|
+
|
|
651
|
+
await client.clear_ticket_take_into_account(321)
|
|
652
|
+
await client.change_ticket_take_into_account(
|
|
653
|
+
321,
|
|
654
|
+
take_into_account_date=datetime(2026, 11, 2, 9, 30, tzinfo=UTC),
|
|
655
|
+
take_into_account_duration=600,
|
|
656
|
+
disable_notifications=False,
|
|
657
|
+
)
|
|
658
|
+
|
|
620
659
|
Documents linked to a followup
|
|
621
660
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
622
661
|
|
|
@@ -7,8 +7,12 @@ GLPI ticket resource using the ``api_schema`` Pydantic models.
|
|
|
7
7
|
from __future__ import annotations
|
|
8
8
|
|
|
9
9
|
from collections.abc import AsyncIterator
|
|
10
|
+
from datetime import datetime
|
|
10
11
|
|
|
11
12
|
from glpi_python_client._async.clients.commons._constants import TICKET_ENDPOINT, GlpiId
|
|
13
|
+
from glpi_python_client._async.clients.commons._payloads import (
|
|
14
|
+
ensure_v1_write_accepted,
|
|
15
|
+
)
|
|
12
16
|
from glpi_python_client._async.clients.commons._transport import TransportMixin
|
|
13
17
|
from glpi_python_client.models.api_schema.assistance._ticket import (
|
|
14
18
|
DeleteTicket,
|
|
@@ -17,6 +21,8 @@ from glpi_python_client.models.api_schema.assistance._ticket import (
|
|
|
17
21
|
PostTicket,
|
|
18
22
|
)
|
|
19
23
|
|
|
24
|
+
_V1_TICKET_FEATURE_LABEL = "take-into-account writes"
|
|
25
|
+
|
|
20
26
|
|
|
21
27
|
class TicketMixin(TransportMixin):
|
|
22
28
|
"""CRUD helpers for ``/Assistance/Ticket``.
|
|
@@ -240,5 +246,131 @@ class TicketMixin(TransportMixin):
|
|
|
240
246
|
delete_model_cls=DeleteTicket,
|
|
241
247
|
)
|
|
242
248
|
|
|
249
|
+
async def change_ticket_take_into_account(
|
|
250
|
+
self,
|
|
251
|
+
ticket_id: GlpiId,
|
|
252
|
+
*,
|
|
253
|
+
take_into_account_date: datetime | None,
|
|
254
|
+
take_into_account_duration: int,
|
|
255
|
+
do_not_compute: bool = True,
|
|
256
|
+
disable_notifications: bool = True,
|
|
257
|
+
) -> None:
|
|
258
|
+
"""Write the take-into-account stamp of one ticket.
|
|
259
|
+
|
|
260
|
+
GLPI stamps ``take_into_account_date`` on the first write made by an
|
|
261
|
+
account allowed to take a ticket into account (and when a group is
|
|
262
|
+
assigned). The v2 ``Ticket`` schema exposes the date as read-only and
|
|
263
|
+
silently ignores ``_do_not_compute_takeintoaccount``, so the write
|
|
264
|
+
goes through the legacy v1 API, which requires
|
|
265
|
+
``v1_base_url``/``v1_user_token`` to be configured (pointing at the
|
|
266
|
+
legacy ``apirest.php``). GLPI records the change in the ticket
|
|
267
|
+
history either way.
|
|
268
|
+
|
|
269
|
+
Parameters
|
|
270
|
+
----------
|
|
271
|
+
ticket_id : int | str
|
|
272
|
+
Identifier of the ticket.
|
|
273
|
+
take_into_account_date : datetime | None
|
|
274
|
+
New take-into-account instant (v1 ``takeintoaccountdate``), or
|
|
275
|
+
``None`` for no stamp. An aware value is converted to the
|
|
276
|
+
server's clock; a naive one is taken to be on it already. GLPI
|
|
277
|
+
writes ``null`` instead whenever the duration is ``0``.
|
|
278
|
+
take_into_account_duration : int
|
|
279
|
+
Seconds from creation to the take-into-account (v1
|
|
280
|
+
``takeintoaccount_delay_stat``). GLPI treats ``0`` as "not taken
|
|
281
|
+
into account".
|
|
282
|
+
do_not_compute : bool, optional
|
|
283
|
+
``True`` (the default) sends ``_do_not_compute_takeintoaccount``
|
|
284
|
+
so GLPI keeps the values written. With ``False`` and a zero
|
|
285
|
+
duration, an account allowed to take the ticket into account
|
|
286
|
+
stamps it again with the current time in the same write.
|
|
287
|
+
disable_notifications : bool, optional
|
|
288
|
+
``True`` (the default) sends ``_disablenotif``, which suppresses
|
|
289
|
+
the "ticket updated" notification.
|
|
290
|
+
|
|
291
|
+
Raises
|
|
292
|
+
------
|
|
293
|
+
RuntimeError
|
|
294
|
+
When no legacy v1 session is configured on the client.
|
|
295
|
+
GlpiStatusError
|
|
296
|
+
When the legacy API returns a non-success status.
|
|
297
|
+
GlpiProtocolError
|
|
298
|
+
When the legacy API answers that the update was refused.
|
|
299
|
+
"""
|
|
300
|
+
|
|
301
|
+
v1 = self._require_v1_session(_V1_TICKET_FEATURE_LABEL)
|
|
302
|
+
stamp: str | None = None
|
|
303
|
+
if take_into_account_date is not None:
|
|
304
|
+
if take_into_account_date.tzinfo is not None:
|
|
305
|
+
take_into_account_date = take_into_account_date.astimezone(
|
|
306
|
+
self.server_timezone
|
|
307
|
+
)
|
|
308
|
+
stamp = take_into_account_date.strftime("%Y-%m-%d %H:%M:%S")
|
|
309
|
+
update: dict[str, object] = {
|
|
310
|
+
"id": int(ticket_id),
|
|
311
|
+
"takeintoaccountdate": stamp,
|
|
312
|
+
"takeintoaccount_delay_stat": take_into_account_duration,
|
|
313
|
+
}
|
|
314
|
+
# GLPI reads ``_disablenotif`` with isset(), so a False flag must be absent.
|
|
315
|
+
if do_not_compute:
|
|
316
|
+
update["_do_not_compute_takeintoaccount"] = True
|
|
317
|
+
if disable_notifications:
|
|
318
|
+
update["_disablenotif"] = True
|
|
319
|
+
payload = await v1.request_json(
|
|
320
|
+
"PUT",
|
|
321
|
+
f"Ticket/{ticket_id}",
|
|
322
|
+
json_body={"input": update},
|
|
323
|
+
failure_message=(
|
|
324
|
+
f"Failed to write the take-into-account stamp of ticket {ticket_id}"
|
|
325
|
+
),
|
|
326
|
+
)
|
|
327
|
+
ensure_v1_write_accepted(
|
|
328
|
+
payload, f"Writing the take-into-account stamp of ticket {ticket_id}"
|
|
329
|
+
)
|
|
330
|
+
|
|
331
|
+
async def clear_ticket_take_into_account(
|
|
332
|
+
self,
|
|
333
|
+
ticket_id: GlpiId,
|
|
334
|
+
*,
|
|
335
|
+
do_not_compute: bool = True,
|
|
336
|
+
disable_notifications: bool = True,
|
|
337
|
+
) -> None:
|
|
338
|
+
"""Clear the take-into-account stamp of one ticket.
|
|
339
|
+
|
|
340
|
+
The stamp collapses the time-to-own statistic to nearly zero for a
|
|
341
|
+
ticket a connector has just created and written to. This is
|
|
342
|
+
:meth:`change_ticket_take_into_account` with a ``None`` date and a
|
|
343
|
+
``0`` duration, so it has the same v1 requirement.
|
|
344
|
+
|
|
345
|
+
Parameters
|
|
346
|
+
----------
|
|
347
|
+
ticket_id : int | str
|
|
348
|
+
Identifier of the ticket.
|
|
349
|
+
do_not_compute : bool, optional
|
|
350
|
+
``True`` (the default) keeps GLPI from stamping the ticket again
|
|
351
|
+
in the same write. ``False`` lets an account allowed to take the
|
|
352
|
+
ticket into account undo the clear at once.
|
|
353
|
+
disable_notifications : bool, optional
|
|
354
|
+
``True`` (the default) suppresses the "ticket updated"
|
|
355
|
+
notification.
|
|
356
|
+
|
|
357
|
+
Raises
|
|
358
|
+
------
|
|
359
|
+
RuntimeError
|
|
360
|
+
When no legacy v1 session is configured on the client.
|
|
361
|
+
GlpiStatusError
|
|
362
|
+
When the legacy API returns a non-success status.
|
|
363
|
+
GlpiProtocolError
|
|
364
|
+
When the legacy API answers that the update was refused.
|
|
365
|
+
"""
|
|
366
|
+
|
|
367
|
+
await self.change_ticket_take_into_account(
|
|
368
|
+
ticket_id,
|
|
369
|
+
take_into_account_date=None,
|
|
370
|
+
take_into_account_duration=0,
|
|
371
|
+
do_not_compute=do_not_compute,
|
|
372
|
+
disable_notifications=disable_notifications,
|
|
373
|
+
)
|
|
374
|
+
|
|
243
375
|
|
|
244
376
|
__all__ = ["TicketMixin"]
|
|
@@ -7,8 +7,12 @@ GLPI ticket resource using the ``api_schema`` Pydantic models.
|
|
|
7
7
|
from __future__ import annotations
|
|
8
8
|
|
|
9
9
|
from collections.abc import Iterator
|
|
10
|
+
from datetime import datetime
|
|
10
11
|
|
|
11
12
|
from glpi_python_client._sync.clients.commons._constants import TICKET_ENDPOINT, GlpiId
|
|
13
|
+
from glpi_python_client._sync.clients.commons._payloads import (
|
|
14
|
+
ensure_v1_write_accepted,
|
|
15
|
+
)
|
|
12
16
|
from glpi_python_client._sync.clients.commons._transport import TransportMixin
|
|
13
17
|
from glpi_python_client.models.api_schema.assistance._ticket import (
|
|
14
18
|
DeleteTicket,
|
|
@@ -17,6 +21,8 @@ from glpi_python_client.models.api_schema.assistance._ticket import (
|
|
|
17
21
|
PostTicket,
|
|
18
22
|
)
|
|
19
23
|
|
|
24
|
+
_V1_TICKET_FEATURE_LABEL = "take-into-account writes"
|
|
25
|
+
|
|
20
26
|
|
|
21
27
|
class TicketMixin(TransportMixin):
|
|
22
28
|
"""CRUD helpers for ``/Assistance/Ticket``.
|
|
@@ -240,5 +246,131 @@ class TicketMixin(TransportMixin):
|
|
|
240
246
|
delete_model_cls=DeleteTicket,
|
|
241
247
|
)
|
|
242
248
|
|
|
249
|
+
def change_ticket_take_into_account(
|
|
250
|
+
self,
|
|
251
|
+
ticket_id: GlpiId,
|
|
252
|
+
*,
|
|
253
|
+
take_into_account_date: datetime | None,
|
|
254
|
+
take_into_account_duration: int,
|
|
255
|
+
do_not_compute: bool = True,
|
|
256
|
+
disable_notifications: bool = True,
|
|
257
|
+
) -> None:
|
|
258
|
+
"""Write the take-into-account stamp of one ticket.
|
|
259
|
+
|
|
260
|
+
GLPI stamps ``take_into_account_date`` on the first write made by an
|
|
261
|
+
account allowed to take a ticket into account (and when a group is
|
|
262
|
+
assigned). The v2 ``Ticket`` schema exposes the date as read-only and
|
|
263
|
+
silently ignores ``_do_not_compute_takeintoaccount``, so the write
|
|
264
|
+
goes through the legacy v1 API, which requires
|
|
265
|
+
``v1_base_url``/``v1_user_token`` to be configured (pointing at the
|
|
266
|
+
legacy ``apirest.php``). GLPI records the change in the ticket
|
|
267
|
+
history either way.
|
|
268
|
+
|
|
269
|
+
Parameters
|
|
270
|
+
----------
|
|
271
|
+
ticket_id : int | str
|
|
272
|
+
Identifier of the ticket.
|
|
273
|
+
take_into_account_date : datetime | None
|
|
274
|
+
New take-into-account instant (v1 ``takeintoaccountdate``), or
|
|
275
|
+
``None`` for no stamp. An aware value is converted to the
|
|
276
|
+
server's clock; a naive one is taken to be on it already. GLPI
|
|
277
|
+
writes ``null`` instead whenever the duration is ``0``.
|
|
278
|
+
take_into_account_duration : int
|
|
279
|
+
Seconds from creation to the take-into-account (v1
|
|
280
|
+
``takeintoaccount_delay_stat``). GLPI treats ``0`` as "not taken
|
|
281
|
+
into account".
|
|
282
|
+
do_not_compute : bool, optional
|
|
283
|
+
``True`` (the default) sends ``_do_not_compute_takeintoaccount``
|
|
284
|
+
so GLPI keeps the values written. With ``False`` and a zero
|
|
285
|
+
duration, an account allowed to take the ticket into account
|
|
286
|
+
stamps it again with the current time in the same write.
|
|
287
|
+
disable_notifications : bool, optional
|
|
288
|
+
``True`` (the default) sends ``_disablenotif``, which suppresses
|
|
289
|
+
the "ticket updated" notification.
|
|
290
|
+
|
|
291
|
+
Raises
|
|
292
|
+
------
|
|
293
|
+
RuntimeError
|
|
294
|
+
When no legacy v1 session is configured on the client.
|
|
295
|
+
GlpiStatusError
|
|
296
|
+
When the legacy API returns a non-success status.
|
|
297
|
+
GlpiProtocolError
|
|
298
|
+
When the legacy API answers that the update was refused.
|
|
299
|
+
"""
|
|
300
|
+
|
|
301
|
+
v1 = self._require_v1_session(_V1_TICKET_FEATURE_LABEL)
|
|
302
|
+
stamp: str | None = None
|
|
303
|
+
if take_into_account_date is not None:
|
|
304
|
+
if take_into_account_date.tzinfo is not None:
|
|
305
|
+
take_into_account_date = take_into_account_date.astimezone(
|
|
306
|
+
self.server_timezone
|
|
307
|
+
)
|
|
308
|
+
stamp = take_into_account_date.strftime("%Y-%m-%d %H:%M:%S")
|
|
309
|
+
update: dict[str, object] = {
|
|
310
|
+
"id": int(ticket_id),
|
|
311
|
+
"takeintoaccountdate": stamp,
|
|
312
|
+
"takeintoaccount_delay_stat": take_into_account_duration,
|
|
313
|
+
}
|
|
314
|
+
# GLPI reads ``_disablenotif`` with isset(), so a False flag must be absent.
|
|
315
|
+
if do_not_compute:
|
|
316
|
+
update["_do_not_compute_takeintoaccount"] = True
|
|
317
|
+
if disable_notifications:
|
|
318
|
+
update["_disablenotif"] = True
|
|
319
|
+
payload = v1.request_json(
|
|
320
|
+
"PUT",
|
|
321
|
+
f"Ticket/{ticket_id}",
|
|
322
|
+
json_body={"input": update},
|
|
323
|
+
failure_message=(
|
|
324
|
+
f"Failed to write the take-into-account stamp of ticket {ticket_id}"
|
|
325
|
+
),
|
|
326
|
+
)
|
|
327
|
+
ensure_v1_write_accepted(
|
|
328
|
+
payload, f"Writing the take-into-account stamp of ticket {ticket_id}"
|
|
329
|
+
)
|
|
330
|
+
|
|
331
|
+
def clear_ticket_take_into_account(
|
|
332
|
+
self,
|
|
333
|
+
ticket_id: GlpiId,
|
|
334
|
+
*,
|
|
335
|
+
do_not_compute: bool = True,
|
|
336
|
+
disable_notifications: bool = True,
|
|
337
|
+
) -> None:
|
|
338
|
+
"""Clear the take-into-account stamp of one ticket.
|
|
339
|
+
|
|
340
|
+
The stamp collapses the time-to-own statistic to nearly zero for a
|
|
341
|
+
ticket a connector has just created and written to. This is
|
|
342
|
+
:meth:`change_ticket_take_into_account` with a ``None`` date and a
|
|
343
|
+
``0`` duration, so it has the same v1 requirement.
|
|
344
|
+
|
|
345
|
+
Parameters
|
|
346
|
+
----------
|
|
347
|
+
ticket_id : int | str
|
|
348
|
+
Identifier of the ticket.
|
|
349
|
+
do_not_compute : bool, optional
|
|
350
|
+
``True`` (the default) keeps GLPI from stamping the ticket again
|
|
351
|
+
in the same write. ``False`` lets an account allowed to take the
|
|
352
|
+
ticket into account undo the clear at once.
|
|
353
|
+
disable_notifications : bool, optional
|
|
354
|
+
``True`` (the default) suppresses the "ticket updated"
|
|
355
|
+
notification.
|
|
356
|
+
|
|
357
|
+
Raises
|
|
358
|
+
------
|
|
359
|
+
RuntimeError
|
|
360
|
+
When no legacy v1 session is configured on the client.
|
|
361
|
+
GlpiStatusError
|
|
362
|
+
When the legacy API returns a non-success status.
|
|
363
|
+
GlpiProtocolError
|
|
364
|
+
When the legacy API answers that the update was refused.
|
|
365
|
+
"""
|
|
366
|
+
|
|
367
|
+
self.change_ticket_take_into_account(
|
|
368
|
+
ticket_id,
|
|
369
|
+
take_into_account_date=None,
|
|
370
|
+
take_into_account_duration=0,
|
|
371
|
+
do_not_compute=do_not_compute,
|
|
372
|
+
disable_notifications=disable_notifications,
|
|
373
|
+
)
|
|
374
|
+
|
|
243
375
|
|
|
244
376
|
__all__ = ["TicketMixin"]
|
|
@@ -22,6 +22,9 @@ from __future__ import annotations
|
|
|
22
22
|
|
|
23
23
|
from datetime import datetime
|
|
24
24
|
from functools import cached_property
|
|
25
|
+
from typing import Annotated
|
|
26
|
+
|
|
27
|
+
from pydantic import BeforeValidator
|
|
25
28
|
|
|
26
29
|
from glpi_python_client.models._base import GlpiModel
|
|
27
30
|
from glpi_python_client.models.api_schema._common import (
|
|
@@ -41,6 +44,24 @@ from glpi_python_client.models.api_schema.enums import (
|
|
|
41
44
|
)
|
|
42
45
|
|
|
43
46
|
|
|
47
|
+
def _empty_list_as_none(value: object) -> object:
|
|
48
|
+
"""Read an empty JSON array as an absent reference.
|
|
49
|
+
|
|
50
|
+
GLPI 12 sends ``ola_ttr`` and ``ola_tto`` as ``[]`` on a ticket with no
|
|
51
|
+
OLA, where its own v2.3 contract, like GLPI 11, declares a nullable
|
|
52
|
+
``{"id", "name"}`` object. Every SLA and OLA reference of
|
|
53
|
+
:class:`GetTicket` reads through this, so the same quirk on any of them
|
|
54
|
+
cannot fail a ticket read. Every other value is passed on unchanged.
|
|
55
|
+
"""
|
|
56
|
+
|
|
57
|
+
if isinstance(value, list) and not value:
|
|
58
|
+
return None
|
|
59
|
+
return value
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
_LevelAgreementRef = Annotated[IdNameRef | None, BeforeValidator(_empty_list_as_none)]
|
|
63
|
+
|
|
64
|
+
|
|
44
65
|
class _TicketTeamMember(GlpiModel):
|
|
45
66
|
"""One inline team-member entry of the ``Ticket.team`` array.
|
|
46
67
|
|
|
@@ -158,7 +179,9 @@ class GetTicket(GlpiModel):
|
|
|
158
179
|
sla_level_ttr : IdNameRef | None, optional
|
|
159
180
|
SLA level escalation step for time-to-resolve.
|
|
160
181
|
ola_level_ttr : IdNameRef | None, optional
|
|
161
|
-
OLA level escalation step for time-to-resolve.
|
|
182
|
+
OLA level escalation step for time-to-resolve. On all six SLA and
|
|
183
|
+
OLA references an empty array reads as :data:`None`: GLPI 12 sends
|
|
184
|
+
``[]`` for ``ola_ttr`` and ``ola_tto`` on a ticket with no OLA.
|
|
162
185
|
sla_waiting_duration : int | None, optional
|
|
163
186
|
Total SLA waiting duration in seconds (contract field
|
|
164
187
|
``sla_waiting_duration`` — ``Total SLA waiting duration in
|
|
@@ -217,12 +240,12 @@ class GetTicket(GlpiModel):
|
|
|
217
240
|
request_type: IdNameRef | None = None
|
|
218
241
|
take_into_account_date: datetime | None = None
|
|
219
242
|
take_into_account_duration: int | None = None
|
|
220
|
-
sla_ttr:
|
|
221
|
-
sla_tto:
|
|
222
|
-
ola_ttr:
|
|
223
|
-
ola_tto:
|
|
224
|
-
sla_level_ttr:
|
|
225
|
-
ola_level_ttr:
|
|
243
|
+
sla_ttr: _LevelAgreementRef = None
|
|
244
|
+
sla_tto: _LevelAgreementRef = None
|
|
245
|
+
ola_ttr: _LevelAgreementRef = None
|
|
246
|
+
ola_tto: _LevelAgreementRef = None
|
|
247
|
+
sla_level_ttr: _LevelAgreementRef = None
|
|
248
|
+
ola_level_ttr: _LevelAgreementRef = None
|
|
226
249
|
sla_waiting_duration: int | None = None
|
|
227
250
|
ola_waiting_duration: int | None = None
|
|
228
251
|
ola_ttr_begin_date: datetime | None = None
|
|
@@ -5,7 +5,7 @@ license: MIT
|
|
|
5
5
|
compatibility: "Requires Python 3.11+, glpi-python-client, network access to the GLPI v2 API, and credentials allowed to read or write assets."
|
|
6
6
|
metadata:
|
|
7
7
|
package: glpi-python-client
|
|
8
|
-
version: "0.6.
|
|
8
|
+
version: "0.6.9"
|
|
9
9
|
---
|
|
10
10
|
|
|
11
11
|
# GLPI Asset Workflow
|
{glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/skills/glpi-contract-workflow/SKILL.md
RENAMED
|
@@ -5,7 +5,7 @@ license: MIT
|
|
|
5
5
|
compatibility: "Requires Python 3.11+, glpi-python-client, network access to the GLPI v2 API, and credentials allowed to read or write contracts."
|
|
6
6
|
metadata:
|
|
7
7
|
package: glpi-python-client
|
|
8
|
-
version: "0.6.
|
|
8
|
+
version: "0.6.9"
|
|
9
9
|
---
|
|
10
10
|
|
|
11
11
|
# GLPI Contract Workflow
|
{glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/skills/glpi-document-workflow/SKILL.md
RENAMED
|
@@ -5,7 +5,7 @@ license: MIT
|
|
|
5
5
|
compatibility: "Requires Python 3.11+, glpi-python-client, network access to the GLPI v2 API, and v1 credentials configured on the client for binary uploads."
|
|
6
6
|
metadata:
|
|
7
7
|
package: glpi-python-client
|
|
8
|
-
version: "0.6.
|
|
8
|
+
version: "0.6.9"
|
|
9
9
|
---
|
|
10
10
|
|
|
11
11
|
# GLPI Document Workflow
|
|
@@ -5,7 +5,7 @@ license: MIT
|
|
|
5
5
|
compatibility: "Requires Python 3.11+, glpi-python-client, network access to the GLPI v2 API, and — for category writes only — a legacy v1 session (v1_base_url + v1_user_token)."
|
|
6
6
|
metadata:
|
|
7
7
|
package: glpi-python-client
|
|
8
|
-
version: "0.6.
|
|
8
|
+
version: "0.6.9"
|
|
9
9
|
---
|
|
10
10
|
|
|
11
11
|
# GLPI Knowledge Base
|
|
@@ -5,7 +5,7 @@ license: MIT
|
|
|
5
5
|
compatibility: "Requires Python 3.11+, glpi-python-client, the GLPI Fields plugin installed server-side, and a legacy v1 session (v1_base_url + v1_user_token) — every method in this family goes over the v1 API."
|
|
6
6
|
metadata:
|
|
7
7
|
package: glpi-python-client
|
|
8
|
-
version: "0.6.
|
|
8
|
+
version: "0.6.9"
|
|
9
9
|
---
|
|
10
10
|
|
|
11
11
|
# GLPI Plugin Fields
|
{glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/skills/glpi-reporting-and-context/SKILL.md
RENAMED
|
@@ -5,7 +5,7 @@ license: MIT
|
|
|
5
5
|
compatibility: "Requires Python 3.11+, glpi-python-client, network access to the GLPI v2 API, and credentials allowed to read tickets, tasks, users, entities, and timeline records."
|
|
6
6
|
metadata:
|
|
7
7
|
package: glpi-python-client
|
|
8
|
-
version: "0.6.
|
|
8
|
+
version: "0.6.9"
|
|
9
9
|
---
|
|
10
10
|
|
|
11
11
|
# GLPI Reporting And Context
|
|
@@ -5,7 +5,7 @@ license: MIT
|
|
|
5
5
|
compatibility: "Requires Python 3.11+, glpi-python-client, network access to the GLPI v2 API, and credentials allowed to manage ticket teams."
|
|
6
6
|
metadata:
|
|
7
7
|
package: glpi-python-client
|
|
8
|
-
version: "0.6.
|
|
8
|
+
version: "0.6.9"
|
|
9
9
|
---
|
|
10
10
|
|
|
11
11
|
# GLPI Team Members
|
|
@@ -5,7 +5,7 @@ license: MIT
|
|
|
5
5
|
compatibility: "Requires Python 3.11+, glpi-python-client, network access to the GLPI v2 API, and credentials accepted by GlpiClient."
|
|
6
6
|
metadata:
|
|
7
7
|
package: glpi-python-client
|
|
8
|
-
version: "0.6.
|
|
8
|
+
version: "0.6.9"
|
|
9
9
|
---
|
|
10
10
|
|
|
11
11
|
# GLPI Ticket Workflow
|
|
@@ -21,6 +21,7 @@ Use this skill for ticket reads and writes through the public client. Tickets li
|
|
|
21
21
|
4. For updates, build a `PatchTicket` containing only the fields you intend to change and call `await client.update_ticket(ticket_id, ticket)`. The method returns `None`.
|
|
22
22
|
5. For deletes, call `await client.delete_ticket(ticket_id, force=True|False|None)`. `force=True` permanently deletes; `False`/`None` move the record to the trash.
|
|
23
23
|
6. Refetch with `get_ticket()` when the task needs a populated model after a write.
|
|
24
|
+
7. GLPI stamps `take_into_account_date` on the first write by an account allowed to take a ticket into account, so a ticket you just created and wrote to reads as taken into account at once. v2 cannot clear it (the field is read-only and `_do_not_compute_takeintoaccount` is ignored), so call `await client.clear_ticket_take_into_account(ticket_id)`, or `await client.change_ticket_take_into_account(ticket_id, take_into_account_date=..., take_into_account_duration=...)` to write a stamp (an aware date is converted to `server_timezone`; a 0 duration makes GLPI write a null date). Both go through the legacy v1 session: they need `v1_base_url` / `v1_user_token` and raise `RuntimeError` without them, and a refused write raises `GlpiProtocolError`. Both take `do_not_compute=True` (sends `_do_not_compute_takeintoaccount`, so GLPI does not stamp the ticket again in the same write) and `disable_notifications=True` (sends `_disablenotif`, no "ticket updated" notification); a `False` flag is left out of the request, because GLPI tests `_disablenotif` for presence.
|
|
24
25
|
|
|
25
26
|
## Examples
|
|
26
27
|
|
|
@@ -5,7 +5,7 @@ license: MIT
|
|
|
5
5
|
compatibility: "Requires Python 3.11+, glpi-python-client, network access to the GLPI v2 API, and credentials allowed to read or write users, locations, and entities."
|
|
6
6
|
metadata:
|
|
7
7
|
package: glpi-python-client
|
|
8
|
-
version: "0.6.
|
|
8
|
+
version: "0.6.9"
|
|
9
9
|
---
|
|
10
10
|
|
|
11
11
|
# GLPI User, Location, And Entity Provisioning
|
|
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
|
{glpi_python_client-0.6.7 → glpi_python_client-0.6.9}/glpi_python_client/_async/_concurrency.py
RENAMED
|
File without changes
|
|
File without changes
|