glpi-python-client 0.6.6__tar.gz → 0.6.7__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (174) hide show
  1. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/CHANGELOG.md +28 -0
  2. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/PKG-INFO +1 -1
  3. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/docs/api_reference.rst +8 -0
  4. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/docs/user_guide.rst +35 -0
  5. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/__init__.py +3 -1
  6. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_async/clients/api/administration/_group.py +43 -0
  7. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_async/clients/api/administration/_user.py +214 -1
  8. {glpi_python_client-0.6.6/glpi_python_client/_sync → glpi_python_client-0.6.7/glpi_python_client/_async}/clients/commons/_payloads.py +35 -1
  9. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_sync/clients/api/administration/_group.py +43 -0
  10. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_sync/clients/api/administration/_user.py +214 -1
  11. {glpi_python_client-0.6.6/glpi_python_client/_async → glpi_python_client-0.6.7/glpi_python_client/_sync}/clients/commons/_payloads.py +35 -1
  12. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/models/__init__.py +2 -0
  13. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/models/api_schema/administration/__init__.py +4 -0
  14. glpi_python_client-0.6.7/glpi_python_client/models/api_schema/administration/_user_authorization.py +48 -0
  15. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/pyproject.toml +1 -1
  16. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/skills/README.md +1 -1
  17. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/skills/glpi-asset-workflow/SKILL.md +1 -1
  18. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/skills/glpi-client-setup/SKILL.md +1 -1
  19. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/skills/glpi-contract-workflow/SKILL.md +1 -1
  20. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/skills/glpi-document-workflow/SKILL.md +1 -1
  21. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/skills/glpi-knowledge-base/SKILL.md +1 -1
  22. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/skills/glpi-plugin-fields/SKILL.md +1 -1
  23. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/skills/glpi-reporting-and-context/SKILL.md +1 -1
  24. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/skills/glpi-team-members/SKILL.md +1 -1
  25. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/skills/glpi-ticket-timeline/SKILL.md +1 -1
  26. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/skills/glpi-ticket-workflow/SKILL.md +1 -1
  27. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/skills/glpi-user-location-provisioning/SKILL.md +2 -1
  28. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/.gitignore +0 -0
  29. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/.pre-commit-config.yaml +0 -0
  30. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/.readthedocs.yaml +0 -0
  31. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/CONTRIBUTING.md +0 -0
  32. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/LICENSE +0 -0
  33. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/README.md +0 -0
  34. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/docs/_static/.gitkeep +0 -0
  35. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/docs/conf.py +0 -0
  36. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/docs/development.md +0 -0
  37. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/docs/development_rtd.rst +0 -0
  38. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/docs/index.rst +0 -0
  39. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/docs/installation.rst +0 -0
  40. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/docs/publishing.md +0 -0
  41. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/docs/publishing_rtd.rst +0 -0
  42. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/docs/sponsoring.rst +0 -0
  43. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_async/__init__.py +0 -0
  44. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_async/_concurrency.py +0 -0
  45. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_async/_testing.py +0 -0
  46. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_async/auth/__init__.py +0 -0
  47. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_async/auth/_v1_session.py +0 -0
  48. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_async/auth/auth.py +0 -0
  49. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_async/clients/__init__.py +0 -0
  50. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_async/clients/_base_client.py +0 -0
  51. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_async/clients/api/__init__.py +0 -0
  52. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_async/clients/api/administration/__init__.py +0 -0
  53. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_async/clients/api/administration/_entity.py +0 -0
  54. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_async/clients/api/assets/__init__.py +0 -0
  55. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_async/clients/api/assets/_computer.py +0 -0
  56. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_async/clients/api/assistance/__init__.py +0 -0
  57. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_async/clients/api/assistance/_team.py +0 -0
  58. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_async/clients/api/assistance/_ticket.py +0 -0
  59. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_async/clients/api/assistance/timeline/__init__.py +0 -0
  60. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_async/clients/api/assistance/timeline/_document.py +0 -0
  61. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_async/clients/api/assistance/timeline/_followup.py +0 -0
  62. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_async/clients/api/assistance/timeline/_solution.py +0 -0
  63. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_async/clients/api/assistance/timeline/_task.py +0 -0
  64. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_async/clients/api/dropdowns/__init__.py +0 -0
  65. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_async/clients/api/dropdowns/_contract_type.py +0 -0
  66. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_async/clients/api/dropdowns/_location.py +0 -0
  67. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_async/clients/api/knowledgebase/__init__.py +0 -0
  68. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_async/clients/api/knowledgebase/_article.py +0 -0
  69. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_async/clients/api/knowledgebase/_category.py +0 -0
  70. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_async/clients/api/knowledgebase/_comment.py +0 -0
  71. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_async/clients/api/knowledgebase/_revision.py +0 -0
  72. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_async/clients/api/management/__init__.py +0 -0
  73. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_async/clients/api/management/_contract.py +0 -0
  74. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_async/clients/api/management/_document.py +0 -0
  75. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_async/clients/api/plugins/__init__.py +0 -0
  76. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_async/clients/api/plugins/_fields.py +0 -0
  77. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_async/clients/client.py +0 -0
  78. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_async/clients/commons/__init__.py +0 -0
  79. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_async/clients/commons/_config.py +0 -0
  80. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_async/clients/commons/_constants.py +0 -0
  81. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_async/clients/commons/_filters.py +0 -0
  82. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_async/clients/commons/_http.py +0 -0
  83. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_async/clients/commons/_transport.py +0 -0
  84. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_async/clients/custom/__init__.py +0 -0
  85. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_async/clients/custom/_statistics.py +0 -0
  86. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_async/clients/custom/_ticket_context.py +0 -0
  87. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_errors.py +0 -0
  88. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_sync/__init__.py +0 -0
  89. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_sync/_concurrency.py +0 -0
  90. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_sync/_testing.py +0 -0
  91. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_sync/auth/__init__.py +0 -0
  92. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_sync/auth/_v1_session.py +0 -0
  93. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_sync/auth/auth.py +0 -0
  94. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_sync/clients/__init__.py +0 -0
  95. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_sync/clients/_base_client.py +0 -0
  96. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_sync/clients/api/__init__.py +0 -0
  97. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_sync/clients/api/administration/__init__.py +0 -0
  98. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_sync/clients/api/administration/_entity.py +0 -0
  99. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_sync/clients/api/assets/__init__.py +0 -0
  100. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_sync/clients/api/assets/_computer.py +0 -0
  101. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_sync/clients/api/assistance/__init__.py +0 -0
  102. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_sync/clients/api/assistance/_team.py +0 -0
  103. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_sync/clients/api/assistance/_ticket.py +0 -0
  104. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_sync/clients/api/assistance/timeline/__init__.py +0 -0
  105. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_sync/clients/api/assistance/timeline/_document.py +0 -0
  106. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_sync/clients/api/assistance/timeline/_followup.py +0 -0
  107. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_sync/clients/api/assistance/timeline/_solution.py +0 -0
  108. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_sync/clients/api/assistance/timeline/_task.py +0 -0
  109. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_sync/clients/api/dropdowns/__init__.py +0 -0
  110. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_sync/clients/api/dropdowns/_contract_type.py +0 -0
  111. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_sync/clients/api/dropdowns/_location.py +0 -0
  112. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_sync/clients/api/knowledgebase/__init__.py +0 -0
  113. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_sync/clients/api/knowledgebase/_article.py +0 -0
  114. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_sync/clients/api/knowledgebase/_category.py +0 -0
  115. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_sync/clients/api/knowledgebase/_comment.py +0 -0
  116. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_sync/clients/api/knowledgebase/_revision.py +0 -0
  117. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_sync/clients/api/management/__init__.py +0 -0
  118. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_sync/clients/api/management/_contract.py +0 -0
  119. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_sync/clients/api/management/_document.py +0 -0
  120. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_sync/clients/api/plugins/__init__.py +0 -0
  121. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_sync/clients/api/plugins/_fields.py +0 -0
  122. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_sync/clients/client.py +0 -0
  123. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_sync/clients/commons/__init__.py +0 -0
  124. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_sync/clients/commons/_config.py +0 -0
  125. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_sync/clients/commons/_constants.py +0 -0
  126. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_sync/clients/commons/_filters.py +0 -0
  127. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_sync/clients/commons/_http.py +0 -0
  128. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_sync/clients/commons/_transport.py +0 -0
  129. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_sync/clients/custom/__init__.py +0 -0
  130. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_sync/clients/custom/_statistics.py +0 -0
  131. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/_sync/clients/custom/_ticket_context.py +0 -0
  132. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/content/__init__.py +0 -0
  133. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/content/conversion.py +0 -0
  134. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/models/_base.py +0 -0
  135. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/models/api_schema/__init__.py +0 -0
  136. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/models/api_schema/_common.py +0 -0
  137. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/models/api_schema/_content.py +0 -0
  138. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/models/api_schema/administration/_entity.py +0 -0
  139. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/models/api_schema/administration/_group.py +0 -0
  140. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/models/api_schema/administration/_user.py +0 -0
  141. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/models/api_schema/assets/__init__.py +0 -0
  142. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/models/api_schema/assets/_computer.py +0 -0
  143. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/models/api_schema/assets/_contract_item.py +0 -0
  144. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/models/api_schema/assistance/__init__.py +0 -0
  145. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/models/api_schema/assistance/_team.py +0 -0
  146. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/models/api_schema/assistance/_ticket.py +0 -0
  147. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/models/api_schema/assistance/timeline/__init__.py +0 -0
  148. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/models/api_schema/assistance/timeline/_document.py +0 -0
  149. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/models/api_schema/assistance/timeline/_followup.py +0 -0
  150. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/models/api_schema/assistance/timeline/_solution.py +0 -0
  151. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/models/api_schema/assistance/timeline/_task.py +0 -0
  152. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/models/api_schema/dropdowns/__init__.py +0 -0
  153. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/models/api_schema/dropdowns/_contract_type.py +0 -0
  154. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/models/api_schema/dropdowns/_location.py +0 -0
  155. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/models/api_schema/enums.py +0 -0
  156. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/models/api_schema/knowledgebase/__init__.py +0 -0
  157. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/models/api_schema/knowledgebase/_article.py +0 -0
  158. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/models/api_schema/knowledgebase/_category.py +0 -0
  159. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/models/api_schema/knowledgebase/_comment.py +0 -0
  160. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/models/api_schema/knowledgebase/_revision.py +0 -0
  161. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/models/api_schema/management/__init__.py +0 -0
  162. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/models/api_schema/management/_contract.py +0 -0
  163. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/models/api_schema/management/_contract_cost.py +0 -0
  164. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/models/api_schema/management/_document.py +0 -0
  165. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/models/api_schema/management/_document_item.py +0 -0
  166. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/models/api_schema/plugins/__init__.py +0 -0
  167. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/models/api_schema/plugins/_fields.py +0 -0
  168. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/models/custom_schema/__init__.py +0 -0
  169. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/models/custom_schema/_ticket_context.py +0 -0
  170. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/py.typed +0 -0
  171. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/rsql.py +0 -0
  172. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/testing/__init__.py +0 -0
  173. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/testing/fixtures.py +0 -0
  174. {glpi_python_client-0.6.6 → glpi_python_client-0.6.7}/glpi_python_client/testing/utils.py +0 -0
@@ -4,6 +4,34 @@ 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.7 — 2026-10-30
8
+
9
+ A minor addition: group recursion and a user's profile/entity authorizations,
10
+ through the legacy v1 API. The GLPI v2 `Group` schema has no `is_recursive`
11
+ (a v2 create silently drops it) and v2 has no route for a user's
12
+ authorizations, so these helpers need `v1_base_url` / `v1_user_token` and
13
+ raise `RuntimeError` without them. Existing methods are unchanged.
14
+
15
+ ### Added
16
+
17
+ - **`set_group_recursive(group_id, recursive=True)`** on both clients.
18
+ - **`list_user_authorizations`, `add_user_authorization`,
19
+ `update_user_authorization` and `delete_user_authorization`** on both
20
+ clients, over GLPI's `Profile_User` rows. `update_user_authorization` with
21
+ neither `entity_id` nor `recursive` raises `GlpiValidationError` without a
22
+ request.
23
+ - **`UserAuthorization`**, one authorization row (`id`, `user_id`,
24
+ `profile_id`, `entity_id`, `is_recursive`, `is_dynamic`,
25
+ `is_default_profile`), exported from the package root and from
26
+ `glpi_python_client.models`.
27
+
28
+ ### Changed
29
+
30
+ - A v1 write that GLPI answers with `false` for an item (a success status and
31
+ a body such as `[{"7": false, "message": "..."}]`) raises
32
+ `GlpiProtocolError` with the server's message. The new helpers do this; the
33
+ existing v1 writes are unchanged.
34
+
7
35
  ## 0.6.6 — 2026-10-28
8
36
 
9
37
  A minor addition: the GLPI v2 `/Administration/Group` routes, so a caller can
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: glpi-python-client
3
- Version: 0.6.6
3
+ Version: 0.6.7
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/
@@ -509,6 +509,14 @@ Groups
509
509
  :undoc-members:
510
510
  :show-inheritance:
511
511
 
512
+ User authorizations
513
+ -------------------
514
+
515
+ .. autoclass:: UserAuthorization
516
+ :members:
517
+ :undoc-members:
518
+ :show-inheritance:
519
+
512
520
  Plugin: Fields (custom fields)
513
521
  ------------------------------
514
522
 
@@ -379,6 +379,7 @@ The full set is re-exported from the package root, including
379
379
  ``GetLocation`` / ``PostLocation`` / ``PatchLocation`` / ``DeleteLocation``,
380
380
  ``GetEntity`` / ``PostEntity`` / ``PatchEntity`` / ``DeleteEntity``,
381
381
  ``GetGroup`` / ``PostGroup`` / ``PatchGroup`` / ``DeleteGroup``,
382
+ ``UserAuthorization``,
382
383
  ``GetFollowup``, ``GetTicketTask``, ``GetSolution``, ``GetTimelineDocument``,
383
384
  ``GetTeamMember``, and ``GetDocument`` together with their post / patch /
384
385
  delete variants. The read-only ``GetDocumentItem`` and ``FollowupDocuments``
@@ -582,6 +583,40 @@ Example output::
582
583
  the client (``v1_base_url`` and ``v1_user_token``) because the GLPI v2
583
584
  contract does not advertise a binary upload endpoint.
584
585
 
586
+ Group recursion and user authorizations
587
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
588
+
589
+ GLPI lets a group, and a user's profile in an entity, apply to the
590
+ sub-entities of that entity too. The v2 API cannot set either: its ``Group``
591
+ schema has no ``is_recursive`` property (a v2 create silently drops the key)
592
+ and it has no route at all for a user's profile and entity authorizations.
593
+ Five helpers go through the legacy v1 session instead (``v1_base_url`` and
594
+ ``v1_user_token``); without one they raise ``RuntimeError``.
595
+
596
+ * ``set_group_recursive(group_id, recursive=True)`` sets the flag on one
597
+ group.
598
+ * ``list_user_authorizations(user_id)`` returns the user's profiles as
599
+ :class:`~glpi_python_client.UserAuthorization` rows: the row ``id``, the
600
+ ``profile_id`` and ``entity_id``, and the ``is_recursive``, ``is_dynamic``
601
+ and ``is_default_profile`` flags.
602
+ * ``add_user_authorization(user_id, profile_id=..., entity_id=...,
603
+ recursive=False)`` grants a profile in an entity and returns the new row id.
604
+ * ``update_user_authorization(authorization_id, entity_id=None,
605
+ recursive=None)`` moves a row to another entity or changes its recursion;
606
+ with neither argument it raises ``GlpiValidationError`` without a request.
607
+ * ``delete_user_authorization(authorization_id)`` removes a row.
608
+
609
+ The v1 API answers a refused write with a success status and a body such as
610
+ ``[{"7": false, "message": "..."}]``. These helpers raise
611
+ ``GlpiProtocolError`` with that message instead of returning as if it had
612
+ worked.
613
+
614
+ .. code-block:: python
615
+
616
+ await client.set_group_recursive(119)
617
+ rows = await client.list_user_authorizations(2568)
618
+ await client.update_user_authorization(rows[0].id, entity_id=493, recursive=True)
619
+
585
620
  Documents linked to a followup
586
621
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
587
622
 
@@ -130,6 +130,7 @@ from glpi_python_client.models import (
130
130
  PostTimelineDocument,
131
131
  PostUser,
132
132
  TicketMarkdownOptions,
133
+ UserAuthorization,
133
134
  )
134
135
  from glpi_python_client.rsql import (
135
136
  changed_since,
@@ -137,7 +138,7 @@ from glpi_python_client.rsql import (
137
138
  date_window,
138
139
  )
139
140
 
140
- __version__ = "0.6.6"
141
+ __version__ = "0.6.7"
141
142
 
142
143
  __all__ = [
143
144
  "AsyncGlpiClient",
@@ -250,6 +251,7 @@ __all__ = [
250
251
  "PostTimelineDocument",
251
252
  "PostUser",
252
253
  "TicketMarkdownOptions",
254
+ "UserAuthorization",
253
255
  "__version__",
254
256
  "changed_since",
255
257
  "created_between",
@@ -11,6 +11,9 @@ from __future__ import annotations
11
11
  from collections.abc import AsyncIterator
12
12
 
13
13
  from glpi_python_client._async.clients.commons._constants import GROUP_ENDPOINT, GlpiId
14
+ from glpi_python_client._async.clients.commons._payloads import (
15
+ ensure_v1_write_accepted,
16
+ )
14
17
  from glpi_python_client._async.clients.commons._transport import TransportMixin
15
18
  from glpi_python_client.models.api_schema.administration._group import (
16
19
  DeleteGroup,
@@ -19,6 +22,8 @@ from glpi_python_client.models.api_schema.administration._group import (
19
22
  PostGroup,
20
23
  )
21
24
 
25
+ _V1_GROUP_FEATURE_LABEL = "group recursion"
26
+
22
27
 
23
28
  class GroupMixin(TransportMixin):
24
29
  """CRUD helpers for ``/Administration/Group``."""
@@ -214,5 +219,43 @@ class GroupMixin(TransportMixin):
214
219
  delete_model_cls=DeleteGroup,
215
220
  )
216
221
 
222
+ async def set_group_recursive(
223
+ self, group_id: GlpiId, recursive: bool = True
224
+ ) -> None:
225
+ """Set whether one group is visible in the sub-entities of its entity.
226
+
227
+ The GLPI v2 ``Group`` schema has no ``is_recursive`` property (a v2
228
+ create or update silently drops the key), so this helper writes the
229
+ flag through the legacy v1 API, which requires
230
+ ``v1_base_url``/``v1_user_token`` to be configured (pointing at the
231
+ legacy ``apirest.php``).
232
+
233
+ Parameters
234
+ ----------
235
+ group_id : int | str
236
+ Identifier of the group.
237
+ recursive : bool, optional
238
+ ``True`` (the default) makes the group apply to the sub-entities
239
+ of its entity; ``False`` restricts it to its own entity.
240
+
241
+ Raises
242
+ ------
243
+ RuntimeError
244
+ When no legacy v1 session is configured on the client.
245
+ GlpiStatusError
246
+ When the legacy API returns a non-success status.
247
+ GlpiProtocolError
248
+ When the legacy API answers that the update was refused.
249
+ """
250
+
251
+ v1 = self._require_v1_session(_V1_GROUP_FEATURE_LABEL)
252
+ payload = await v1.request_json(
253
+ "PUT",
254
+ f"Group/{group_id}",
255
+ json_body={"input": {"id": int(group_id), "is_recursive": int(recursive)}},
256
+ failure_message=f"Failed to set is_recursive on group {group_id}",
257
+ )
258
+ ensure_v1_write_accepted(payload, f"Setting is_recursive on group {group_id}")
259
+
217
260
 
218
261
  __all__ = ["GroupMixin"]
@@ -11,14 +11,24 @@ from __future__ import annotations
11
11
  from collections.abc import AsyncIterator
12
12
 
13
13
  from glpi_python_client._async.clients.commons._constants import USER_ENDPOINT, GlpiId
14
+ from glpi_python_client._async.clients.commons._payloads import (
15
+ ensure_v1_write_accepted,
16
+ model_from_payload,
17
+ )
14
18
  from glpi_python_client._async.clients.commons._transport import TransportMixin
15
- from glpi_python_client._errors import GlpiValidationError
19
+ from glpi_python_client._errors import GlpiProtocolError, GlpiValidationError
16
20
  from glpi_python_client.models.api_schema.administration._user import (
17
21
  DeleteUser,
18
22
  GetUser,
19
23
  PatchUser,
20
24
  PostUser,
21
25
  )
26
+ from glpi_python_client.models.api_schema.administration._user_authorization import (
27
+ UserAuthorization,
28
+ )
29
+
30
+ _V1_AUTHORIZATION_FEATURE_LABEL = "user authorizations"
31
+ _AUTHORIZATION_LIST_RANGE = "0-999"
22
32
 
23
33
 
24
34
  class UserMixin(TransportMixin):
@@ -296,5 +306,208 @@ class UserMixin(TransportMixin):
296
306
  delete_model_cls=DeleteUser,
297
307
  )
298
308
 
309
+ async def list_user_authorizations(
310
+ self, user_id: GlpiId
311
+ ) -> list[UserAuthorization]:
312
+ """List the profile/entity authorizations of one user.
313
+
314
+ The GLPI v2 API has no route for a user's authorizations
315
+ (``Profile_User`` rows), so this helper reads them through the legacy
316
+ v1 API, which requires ``v1_base_url``/``v1_user_token`` to be
317
+ configured (pointing at the legacy ``apirest.php``).
318
+
319
+ Parameters
320
+ ----------
321
+ user_id : int | str
322
+ Identifier of the user.
323
+
324
+ Returns
325
+ -------
326
+ list[UserAuthorization]
327
+ One entry per profile the user holds, with the entity it applies
328
+ to and whether it is recursive.
329
+
330
+ Raises
331
+ ------
332
+ RuntimeError
333
+ When no legacy v1 session is configured on the client.
334
+ GlpiStatusError
335
+ When the legacy API returns a non-success status.
336
+ """
337
+
338
+ v1 = self._require_v1_session(_V1_AUTHORIZATION_FEATURE_LABEL)
339
+ payload = await v1.request_json(
340
+ "GET",
341
+ f"User/{user_id}/Profile_User",
342
+ params={"range": _AUTHORIZATION_LIST_RANGE},
343
+ failure_message=f"Failed to list the authorizations of user {user_id}",
344
+ )
345
+ rows = payload if isinstance(payload, list) else []
346
+ return [
347
+ model_from_payload(
348
+ UserAuthorization, row, server_timezone=self.server_timezone
349
+ )
350
+ for row in rows
351
+ ]
352
+
353
+ async def add_user_authorization(
354
+ self,
355
+ user_id: GlpiId,
356
+ *,
357
+ profile_id: GlpiId,
358
+ entity_id: GlpiId,
359
+ recursive: bool = False,
360
+ ) -> int:
361
+ """Give one user a profile in an entity.
362
+
363
+ The GLPI v2 API has no route for a user's authorizations, so this
364
+ helper creates the ``Profile_User`` row through the legacy v1 API,
365
+ which requires ``v1_base_url``/``v1_user_token`` to be configured.
366
+
367
+ Parameters
368
+ ----------
369
+ user_id : int | str
370
+ Identifier of the user.
371
+ profile_id : int | str
372
+ Identifier of the profile to grant.
373
+ entity_id : int | str
374
+ Identifier of the entity the profile applies to.
375
+ recursive : bool, optional
376
+ Whether the profile also applies to the sub-entities of
377
+ ``entity_id``. ``False`` by default.
378
+
379
+ Returns
380
+ -------
381
+ int
382
+ Identifier of the new authorization.
383
+
384
+ Raises
385
+ ------
386
+ RuntimeError
387
+ When no legacy v1 session is configured on the client.
388
+ GlpiStatusError
389
+ When the legacy API returns a non-success status.
390
+ GlpiProtocolError
391
+ When the answer carries no authorization id.
392
+ """
393
+
394
+ v1 = self._require_v1_session(_V1_AUTHORIZATION_FEATURE_LABEL)
395
+ payload = await v1.request_json(
396
+ "POST",
397
+ "Profile_User",
398
+ json_body={
399
+ "input": {
400
+ "users_id": int(user_id),
401
+ "profiles_id": int(profile_id),
402
+ "entities_id": int(entity_id),
403
+ "is_recursive": int(recursive),
404
+ }
405
+ },
406
+ failure_message=(
407
+ f"Failed to add profile {profile_id} in entity {entity_id} "
408
+ f"to user {user_id}"
409
+ ),
410
+ )
411
+ new_id = payload.get("id") if isinstance(payload, dict) else None
412
+ if new_id is None or isinstance(new_id, bool):
413
+ raise GlpiProtocolError(
414
+ f"GLPI user authorization response missing id: {payload!r}"
415
+ )
416
+ try:
417
+ return int(new_id)
418
+ except (TypeError, ValueError) as exc:
419
+ raise GlpiProtocolError(
420
+ f"GLPI user authorization response has a non-numeric id: {payload!r}"
421
+ ) from exc
422
+
423
+ async def update_user_authorization(
424
+ self,
425
+ authorization_id: GlpiId,
426
+ *,
427
+ entity_id: GlpiId | None = None,
428
+ recursive: bool | None = None,
429
+ ) -> None:
430
+ """Move or re-scope one user authorization.
431
+
432
+ The GLPI v2 API has no route for a user's authorizations, so this
433
+ helper updates the ``Profile_User`` row through the legacy v1 API,
434
+ which requires ``v1_base_url``/``v1_user_token`` to be configured.
435
+ Only the supplied arguments are changed.
436
+
437
+ Parameters
438
+ ----------
439
+ authorization_id : int | str
440
+ Identifier of the authorization (see
441
+ :meth:`list_user_authorizations`).
442
+ entity_id : int | str | None, optional
443
+ New entity for the authorization.
444
+ recursive : bool | None, optional
445
+ New recursion flag.
446
+
447
+ Raises
448
+ ------
449
+ GlpiValidationError
450
+ When neither ``entity_id`` nor ``recursive`` is given; no request
451
+ is sent.
452
+ RuntimeError
453
+ When no legacy v1 session is configured on the client.
454
+ GlpiStatusError
455
+ When the legacy API returns a non-success status.
456
+ GlpiProtocolError
457
+ When the legacy API answers that the update was refused.
458
+ """
459
+
460
+ if entity_id is None and recursive is None:
461
+ raise GlpiValidationError(
462
+ "update_user_authorization needs entity_id, recursive or both."
463
+ )
464
+ v1 = self._require_v1_session(_V1_AUTHORIZATION_FEATURE_LABEL)
465
+ fields: dict[str, object] = {"id": int(authorization_id)}
466
+ if entity_id is not None:
467
+ fields["entities_id"] = int(entity_id)
468
+ if recursive is not None:
469
+ fields["is_recursive"] = int(recursive)
470
+ payload = await v1.request_json(
471
+ "PUT",
472
+ f"Profile_User/{authorization_id}",
473
+ json_body={"input": fields},
474
+ failure_message=f"Failed to update user authorization {authorization_id}",
475
+ )
476
+ ensure_v1_write_accepted(
477
+ payload, f"Updating user authorization {authorization_id}"
478
+ )
479
+
480
+ async def delete_user_authorization(self, authorization_id: GlpiId) -> None:
481
+ """Remove one user authorization.
482
+
483
+ The GLPI v2 API has no route for a user's authorizations, so this
484
+ helper deletes the ``Profile_User`` row through the legacy v1 API,
485
+ which requires ``v1_base_url``/``v1_user_token`` to be configured.
486
+
487
+ Parameters
488
+ ----------
489
+ authorization_id : int | str
490
+ Identifier of the authorization to remove.
491
+
492
+ Raises
493
+ ------
494
+ RuntimeError
495
+ When no legacy v1 session is configured on the client.
496
+ GlpiStatusError
497
+ When the legacy API returns a non-success status.
498
+ GlpiProtocolError
499
+ When the legacy API answers that the deletion was refused.
500
+ """
501
+
502
+ v1 = self._require_v1_session(_V1_AUTHORIZATION_FEATURE_LABEL)
503
+ payload = await v1.request_json(
504
+ "DELETE",
505
+ f"Profile_User/{authorization_id}",
506
+ failure_message=f"Failed to delete user authorization {authorization_id}",
507
+ )
508
+ ensure_v1_write_accepted(
509
+ payload, f"Deleting user authorization {authorization_id}"
510
+ )
511
+
299
512
 
300
513
  __all__ = ["UserMixin"]
@@ -10,6 +10,7 @@ from __future__ import annotations
10
10
  from datetime import tzinfo
11
11
  from typing import TypeVar
12
12
 
13
+ from glpi_python_client._errors import GlpiProtocolError
13
14
  from glpi_python_client.models._base import (
14
15
  SERVER_TIMEZONE_CONTEXT_KEY,
15
16
  GlpiModel,
@@ -94,4 +95,37 @@ def model_from_payload(
94
95
  return model_class.model_validate(payload, context=context)
95
96
 
96
97
 
97
- __all__ = ["model_from_payload", "model_to_payload"]
98
+ __all__ = ["ensure_v1_write_accepted", "model_from_payload", "model_to_payload"]
99
+
100
+
101
+ def ensure_v1_write_accepted(payload: object, description: str) -> None:
102
+ """Raise when a legacy v1 write answered ``false`` for an item.
103
+
104
+ The v1 API reports a refused write with a success HTTP status and a
105
+ body such as ``[{"<id>": false, "message": "..."}]``, so the status
106
+ check alone lets it pass. An empty body, or a body without any
107
+ ``false`` entry, is accepted.
108
+
109
+ Parameters
110
+ ----------
111
+ payload : object
112
+ Parsed JSON body returned by the v1 session.
113
+ description : str
114
+ What was attempted, used as the prefix of the error message.
115
+
116
+ Raises
117
+ ------
118
+ GlpiProtocolError
119
+ When any item of the answer is ``false``; the message carries the
120
+ server's own explanation when it gave one.
121
+ """
122
+
123
+ if not isinstance(payload, list):
124
+ return
125
+ for entry in payload:
126
+ if not isinstance(entry, dict):
127
+ continue
128
+ if any(value is False for key, value in entry.items() if key != "message"):
129
+ reason = entry.get("message")
130
+ suffix = f": {reason}" if reason else ""
131
+ raise GlpiProtocolError(f"{description} was refused by GLPI{suffix}")
@@ -11,6 +11,9 @@ from __future__ import annotations
11
11
  from collections.abc import Iterator
12
12
 
13
13
  from glpi_python_client._sync.clients.commons._constants import GROUP_ENDPOINT, GlpiId
14
+ from glpi_python_client._sync.clients.commons._payloads import (
15
+ ensure_v1_write_accepted,
16
+ )
14
17
  from glpi_python_client._sync.clients.commons._transport import TransportMixin
15
18
  from glpi_python_client.models.api_schema.administration._group import (
16
19
  DeleteGroup,
@@ -19,6 +22,8 @@ from glpi_python_client.models.api_schema.administration._group import (
19
22
  PostGroup,
20
23
  )
21
24
 
25
+ _V1_GROUP_FEATURE_LABEL = "group recursion"
26
+
22
27
 
23
28
  class GroupMixin(TransportMixin):
24
29
  """CRUD helpers for ``/Administration/Group``."""
@@ -214,5 +219,43 @@ class GroupMixin(TransportMixin):
214
219
  delete_model_cls=DeleteGroup,
215
220
  )
216
221
 
222
+ def set_group_recursive(
223
+ self, group_id: GlpiId, recursive: bool = True
224
+ ) -> None:
225
+ """Set whether one group is visible in the sub-entities of its entity.
226
+
227
+ The GLPI v2 ``Group`` schema has no ``is_recursive`` property (a v2
228
+ create or update silently drops the key), so this helper writes the
229
+ flag through the legacy v1 API, which requires
230
+ ``v1_base_url``/``v1_user_token`` to be configured (pointing at the
231
+ legacy ``apirest.php``).
232
+
233
+ Parameters
234
+ ----------
235
+ group_id : int | str
236
+ Identifier of the group.
237
+ recursive : bool, optional
238
+ ``True`` (the default) makes the group apply to the sub-entities
239
+ of its entity; ``False`` restricts it to its own entity.
240
+
241
+ Raises
242
+ ------
243
+ RuntimeError
244
+ When no legacy v1 session is configured on the client.
245
+ GlpiStatusError
246
+ When the legacy API returns a non-success status.
247
+ GlpiProtocolError
248
+ When the legacy API answers that the update was refused.
249
+ """
250
+
251
+ v1 = self._require_v1_session(_V1_GROUP_FEATURE_LABEL)
252
+ payload = v1.request_json(
253
+ "PUT",
254
+ f"Group/{group_id}",
255
+ json_body={"input": {"id": int(group_id), "is_recursive": int(recursive)}},
256
+ failure_message=f"Failed to set is_recursive on group {group_id}",
257
+ )
258
+ ensure_v1_write_accepted(payload, f"Setting is_recursive on group {group_id}")
259
+
217
260
 
218
261
  __all__ = ["GroupMixin"]