glpi-python-client 0.6.5__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.5 → glpi_python_client-0.6.7}/CHANGELOG.md +47 -0
  2. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/PKG-INFO +1 -1
  3. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/docs/api_reference.rst +31 -0
  4. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/docs/user_guide.rst +37 -0
  5. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/__init__.py +11 -1
  6. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_async/clients/api/__init__.py +2 -0
  7. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_async/clients/api/administration/__init__.py +3 -2
  8. glpi_python_client-0.6.7/glpi_python_client/_async/clients/api/administration/_group.py +261 -0
  9. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_async/clients/api/administration/_user.py +214 -1
  10. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_async/clients/client.py +2 -0
  11. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_async/clients/commons/_constants.py +2 -0
  12. {glpi_python_client-0.6.5/glpi_python_client/_sync → glpi_python_client-0.6.7/glpi_python_client/_async}/clients/commons/_payloads.py +35 -1
  13. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_sync/clients/api/__init__.py +2 -0
  14. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_sync/clients/api/administration/__init__.py +3 -2
  15. glpi_python_client-0.6.7/glpi_python_client/_sync/clients/api/administration/_group.py +261 -0
  16. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_sync/clients/api/administration/_user.py +214 -1
  17. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_sync/clients/client.py +2 -0
  18. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_sync/clients/commons/_constants.py +2 -0
  19. {glpi_python_client-0.6.5/glpi_python_client/_async → glpi_python_client-0.6.7/glpi_python_client/_sync}/clients/commons/_payloads.py +35 -1
  20. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/models/__init__.py +10 -0
  21. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/models/api_schema/administration/__init__.py +17 -2
  22. glpi_python_client-0.6.7/glpi_python_client/models/api_schema/administration/_group.py +150 -0
  23. glpi_python_client-0.6.7/glpi_python_client/models/api_schema/administration/_user_authorization.py +48 -0
  24. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/pyproject.toml +1 -1
  25. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/skills/README.md +1 -1
  26. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/skills/glpi-asset-workflow/SKILL.md +1 -1
  27. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/skills/glpi-client-setup/SKILL.md +1 -1
  28. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/skills/glpi-contract-workflow/SKILL.md +1 -1
  29. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/skills/glpi-document-workflow/SKILL.md +1 -1
  30. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/skills/glpi-knowledge-base/SKILL.md +1 -1
  31. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/skills/glpi-plugin-fields/SKILL.md +1 -1
  32. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/skills/glpi-reporting-and-context/SKILL.md +1 -1
  33. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/skills/glpi-team-members/SKILL.md +1 -1
  34. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/skills/glpi-ticket-timeline/SKILL.md +1 -1
  35. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/skills/glpi-ticket-workflow/SKILL.md +1 -1
  36. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/skills/glpi-user-location-provisioning/SKILL.md +4 -3
  37. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/.gitignore +0 -0
  38. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/.pre-commit-config.yaml +0 -0
  39. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/.readthedocs.yaml +0 -0
  40. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/CONTRIBUTING.md +0 -0
  41. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/LICENSE +0 -0
  42. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/README.md +0 -0
  43. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/docs/_static/.gitkeep +0 -0
  44. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/docs/conf.py +0 -0
  45. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/docs/development.md +0 -0
  46. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/docs/development_rtd.rst +0 -0
  47. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/docs/index.rst +0 -0
  48. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/docs/installation.rst +0 -0
  49. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/docs/publishing.md +0 -0
  50. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/docs/publishing_rtd.rst +0 -0
  51. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/docs/sponsoring.rst +0 -0
  52. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_async/__init__.py +0 -0
  53. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_async/_concurrency.py +0 -0
  54. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_async/_testing.py +0 -0
  55. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_async/auth/__init__.py +0 -0
  56. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_async/auth/_v1_session.py +0 -0
  57. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_async/auth/auth.py +0 -0
  58. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_async/clients/__init__.py +0 -0
  59. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_async/clients/_base_client.py +0 -0
  60. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_async/clients/api/administration/_entity.py +0 -0
  61. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_async/clients/api/assets/__init__.py +0 -0
  62. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_async/clients/api/assets/_computer.py +0 -0
  63. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_async/clients/api/assistance/__init__.py +0 -0
  64. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_async/clients/api/assistance/_team.py +0 -0
  65. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_async/clients/api/assistance/_ticket.py +0 -0
  66. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_async/clients/api/assistance/timeline/__init__.py +0 -0
  67. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_async/clients/api/assistance/timeline/_document.py +0 -0
  68. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_async/clients/api/assistance/timeline/_followup.py +0 -0
  69. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_async/clients/api/assistance/timeline/_solution.py +0 -0
  70. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_async/clients/api/assistance/timeline/_task.py +0 -0
  71. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_async/clients/api/dropdowns/__init__.py +0 -0
  72. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_async/clients/api/dropdowns/_contract_type.py +0 -0
  73. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_async/clients/api/dropdowns/_location.py +0 -0
  74. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_async/clients/api/knowledgebase/__init__.py +0 -0
  75. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_async/clients/api/knowledgebase/_article.py +0 -0
  76. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_async/clients/api/knowledgebase/_category.py +0 -0
  77. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_async/clients/api/knowledgebase/_comment.py +0 -0
  78. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_async/clients/api/knowledgebase/_revision.py +0 -0
  79. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_async/clients/api/management/__init__.py +0 -0
  80. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_async/clients/api/management/_contract.py +0 -0
  81. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_async/clients/api/management/_document.py +0 -0
  82. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_async/clients/api/plugins/__init__.py +0 -0
  83. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_async/clients/api/plugins/_fields.py +0 -0
  84. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_async/clients/commons/__init__.py +0 -0
  85. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_async/clients/commons/_config.py +0 -0
  86. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_async/clients/commons/_filters.py +0 -0
  87. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_async/clients/commons/_http.py +0 -0
  88. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_async/clients/commons/_transport.py +0 -0
  89. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_async/clients/custom/__init__.py +0 -0
  90. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_async/clients/custom/_statistics.py +0 -0
  91. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_async/clients/custom/_ticket_context.py +0 -0
  92. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_errors.py +0 -0
  93. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_sync/__init__.py +0 -0
  94. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_sync/_concurrency.py +0 -0
  95. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_sync/_testing.py +0 -0
  96. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_sync/auth/__init__.py +0 -0
  97. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_sync/auth/_v1_session.py +0 -0
  98. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_sync/auth/auth.py +0 -0
  99. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_sync/clients/__init__.py +0 -0
  100. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_sync/clients/_base_client.py +0 -0
  101. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_sync/clients/api/administration/_entity.py +0 -0
  102. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_sync/clients/api/assets/__init__.py +0 -0
  103. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_sync/clients/api/assets/_computer.py +0 -0
  104. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_sync/clients/api/assistance/__init__.py +0 -0
  105. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_sync/clients/api/assistance/_team.py +0 -0
  106. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_sync/clients/api/assistance/_ticket.py +0 -0
  107. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_sync/clients/api/assistance/timeline/__init__.py +0 -0
  108. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_sync/clients/api/assistance/timeline/_document.py +0 -0
  109. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_sync/clients/api/assistance/timeline/_followup.py +0 -0
  110. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_sync/clients/api/assistance/timeline/_solution.py +0 -0
  111. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_sync/clients/api/assistance/timeline/_task.py +0 -0
  112. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_sync/clients/api/dropdowns/__init__.py +0 -0
  113. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_sync/clients/api/dropdowns/_contract_type.py +0 -0
  114. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_sync/clients/api/dropdowns/_location.py +0 -0
  115. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_sync/clients/api/knowledgebase/__init__.py +0 -0
  116. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_sync/clients/api/knowledgebase/_article.py +0 -0
  117. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_sync/clients/api/knowledgebase/_category.py +0 -0
  118. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_sync/clients/api/knowledgebase/_comment.py +0 -0
  119. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_sync/clients/api/knowledgebase/_revision.py +0 -0
  120. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_sync/clients/api/management/__init__.py +0 -0
  121. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_sync/clients/api/management/_contract.py +0 -0
  122. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_sync/clients/api/management/_document.py +0 -0
  123. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_sync/clients/api/plugins/__init__.py +0 -0
  124. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_sync/clients/api/plugins/_fields.py +0 -0
  125. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_sync/clients/commons/__init__.py +0 -0
  126. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_sync/clients/commons/_config.py +0 -0
  127. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_sync/clients/commons/_filters.py +0 -0
  128. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_sync/clients/commons/_http.py +0 -0
  129. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_sync/clients/commons/_transport.py +0 -0
  130. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_sync/clients/custom/__init__.py +0 -0
  131. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_sync/clients/custom/_statistics.py +0 -0
  132. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/_sync/clients/custom/_ticket_context.py +0 -0
  133. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/content/__init__.py +0 -0
  134. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/content/conversion.py +0 -0
  135. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/models/_base.py +0 -0
  136. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/models/api_schema/__init__.py +0 -0
  137. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/models/api_schema/_common.py +0 -0
  138. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/models/api_schema/_content.py +0 -0
  139. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/models/api_schema/administration/_entity.py +0 -0
  140. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/models/api_schema/administration/_user.py +0 -0
  141. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/models/api_schema/assets/__init__.py +0 -0
  142. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/models/api_schema/assets/_computer.py +0 -0
  143. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/models/api_schema/assets/_contract_item.py +0 -0
  144. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/models/api_schema/assistance/__init__.py +0 -0
  145. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/models/api_schema/assistance/_team.py +0 -0
  146. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/models/api_schema/assistance/_ticket.py +0 -0
  147. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/models/api_schema/assistance/timeline/__init__.py +0 -0
  148. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/models/api_schema/assistance/timeline/_document.py +0 -0
  149. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/models/api_schema/assistance/timeline/_followup.py +0 -0
  150. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/models/api_schema/assistance/timeline/_solution.py +0 -0
  151. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/models/api_schema/assistance/timeline/_task.py +0 -0
  152. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/models/api_schema/dropdowns/__init__.py +0 -0
  153. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/models/api_schema/dropdowns/_contract_type.py +0 -0
  154. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/models/api_schema/dropdowns/_location.py +0 -0
  155. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/models/api_schema/enums.py +0 -0
  156. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/models/api_schema/knowledgebase/__init__.py +0 -0
  157. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/models/api_schema/knowledgebase/_article.py +0 -0
  158. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/models/api_schema/knowledgebase/_category.py +0 -0
  159. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/models/api_schema/knowledgebase/_comment.py +0 -0
  160. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/models/api_schema/knowledgebase/_revision.py +0 -0
  161. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/models/api_schema/management/__init__.py +0 -0
  162. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/models/api_schema/management/_contract.py +0 -0
  163. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/models/api_schema/management/_contract_cost.py +0 -0
  164. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/models/api_schema/management/_document.py +0 -0
  165. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/models/api_schema/management/_document_item.py +0 -0
  166. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/models/api_schema/plugins/__init__.py +0 -0
  167. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/models/api_schema/plugins/_fields.py +0 -0
  168. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/models/custom_schema/__init__.py +0 -0
  169. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/models/custom_schema/_ticket_context.py +0 -0
  170. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/py.typed +0 -0
  171. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/rsql.py +0 -0
  172. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/testing/__init__.py +0 -0
  173. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/testing/fixtures.py +0 -0
  174. {glpi_python_client-0.6.5 → glpi_python_client-0.6.7}/glpi_python_client/testing/utils.py +0 -0
@@ -4,6 +4,53 @@ 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
+
35
+ ## 0.6.6 — 2026-10-28
36
+
37
+ A minor addition: the GLPI v2 `/Administration/Group` routes, so a caller can
38
+ find and create groups. Existing methods are unchanged.
39
+
40
+ ### Added
41
+
42
+ - **`search_groups`, `iter_search_groups`, `get_group`, `create_group`,
43
+ `update_group` and `delete_group`** on both clients, from a new `GroupMixin`
44
+ and the `GROUP_ENDPOINT` constant.
45
+ - **`skip_entity: bool = False`** on `search_groups` and `iter_search_groups`,
46
+ as on `search_users`: `True` omits the `GLPI-Entity`, `GLPI-Profile` and
47
+ `GLPI-Entity-Recursive` headers so the search spans every entity the caller
48
+ can see. The other group methods always send them.
49
+ - **`GetGroup`, `PostGroup`, `PatchGroup` and `DeleteGroup`**, modelled on
50
+ `components.schemas.Group` (parent, entity, the `maybe_*` / `may_contain_*`
51
+ flags, LDAP fields and timestamps), exported from the package root and from
52
+ `glpi_python_client.models`.
53
+
7
54
  ## 0.6.5 — 2026-10-14
8
55
 
9
56
  A patch release that lets a caller find the Document behind an image GLPI left
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: glpi-python-client
3
- Version: 0.6.5
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/
@@ -486,6 +486,37 @@ Entities
486
486
  :undoc-members:
487
487
  :show-inheritance:
488
488
 
489
+ Groups
490
+ ------
491
+
492
+ .. autoclass:: GetGroup
493
+ :members:
494
+ :undoc-members:
495
+ :show-inheritance:
496
+
497
+ .. autoclass:: PostGroup
498
+ :members:
499
+ :undoc-members:
500
+ :show-inheritance:
501
+
502
+ .. autoclass:: PatchGroup
503
+ :members:
504
+ :undoc-members:
505
+ :show-inheritance:
506
+
507
+ .. autoclass:: DeleteGroup
508
+ :members:
509
+ :undoc-members:
510
+ :show-inheritance:
511
+
512
+ User authorizations
513
+ -------------------
514
+
515
+ .. autoclass:: UserAuthorization
516
+ :members:
517
+ :undoc-members:
518
+ :show-inheritance:
519
+
489
520
  Plugin: Fields (custom fields)
490
521
  ------------------------------
491
522
 
@@ -378,6 +378,8 @@ The full set is re-exported from the package root, including
378
378
  ``GetUser`` / ``PostUser`` / ``PatchUser`` / ``DeleteUser``,
379
379
  ``GetLocation`` / ``PostLocation`` / ``PatchLocation`` / ``DeleteLocation``,
380
380
  ``GetEntity`` / ``PostEntity`` / ``PatchEntity`` / ``DeleteEntity``,
381
+ ``GetGroup`` / ``PostGroup`` / ``PatchGroup`` / ``DeleteGroup``,
382
+ ``UserAuthorization``,
381
383
  ``GetFollowup``, ``GetTicketTask``, ``GetSolution``, ``GetTimelineDocument``,
382
384
  ``GetTeamMember``, and ``GetDocument`` together with their post / patch /
383
385
  delete variants. The read-only ``GetDocumentItem`` and ``FollowupDocuments``
@@ -581,6 +583,40 @@ Example output::
581
583
  the client (``v1_base_url`` and ``v1_user_token``) because the GLPI v2
582
584
  contract does not advertise a binary upload endpoint.
583
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
+
584
620
  Documents linked to a followup
585
621
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
586
622
 
@@ -1152,6 +1188,7 @@ batches until the API returns fewer rows than the requested
1152
1188
  * :meth:`GlpiClient.iter_search_tickets`
1153
1189
  * :meth:`GlpiClient.iter_search_users`
1154
1190
  * :meth:`GlpiClient.iter_search_entities`
1191
+ * :meth:`GlpiClient.iter_search_groups`
1155
1192
 
1156
1193
  .. code-block:: python
1157
1194
 
@@ -40,6 +40,7 @@ from glpi_python_client.models import (
40
40
  DeleteDocument,
41
41
  DeleteEntity,
42
42
  DeleteFollowup,
43
+ DeleteGroup,
43
44
  DeleteKBArticle,
44
45
  DeleteKBArticleComment,
45
46
  DeleteKBCategory,
@@ -60,6 +61,7 @@ from glpi_python_client.models import (
60
61
  GetDocumentItem,
61
62
  GetEntity,
62
63
  GetFollowup,
64
+ GetGroup,
63
65
  GetKBArticle,
64
66
  GetKBArticleComment,
65
67
  GetKBArticleRevision,
@@ -96,6 +98,7 @@ from glpi_python_client.models import (
96
98
  PatchDocument,
97
99
  PatchEntity,
98
100
  PatchFollowup,
101
+ PatchGroup,
99
102
  PatchKBArticle,
100
103
  PatchKBArticleComment,
101
104
  PatchKBCategory,
@@ -114,6 +117,7 @@ from glpi_python_client.models import (
114
117
  PostDocument,
115
118
  PostEntity,
116
119
  PostFollowup,
120
+ PostGroup,
117
121
  PostKBArticle,
118
122
  PostKBArticleComment,
119
123
  PostKBCategory,
@@ -126,6 +130,7 @@ from glpi_python_client.models import (
126
130
  PostTimelineDocument,
127
131
  PostUser,
128
132
  TicketMarkdownOptions,
133
+ UserAuthorization,
129
134
  )
130
135
  from glpi_python_client.rsql import (
131
136
  changed_since,
@@ -133,7 +138,7 @@ from glpi_python_client.rsql import (
133
138
  date_window,
134
139
  )
135
140
 
136
- __version__ = "0.6.5"
141
+ __version__ = "0.6.7"
137
142
 
138
143
  __all__ = [
139
144
  "AsyncGlpiClient",
@@ -145,6 +150,7 @@ __all__ = [
145
150
  "DeleteDocument",
146
151
  "DeleteEntity",
147
152
  "DeleteFollowup",
153
+ "DeleteGroup",
148
154
  "DeleteKBArticle",
149
155
  "DeleteKBArticleComment",
150
156
  "DeleteKBCategory",
@@ -165,6 +171,7 @@ __all__ = [
165
171
  "GetDocumentItem",
166
172
  "GetEntity",
167
173
  "GetFollowup",
174
+ "GetGroup",
168
175
  "GetKBArticle",
169
176
  "GetKBArticleComment",
170
177
  "GetKBArticleRevision",
@@ -212,6 +219,7 @@ __all__ = [
212
219
  "PatchDocument",
213
220
  "PatchEntity",
214
221
  "PatchFollowup",
222
+ "PatchGroup",
215
223
  "PatchKBArticle",
216
224
  "PatchKBArticleComment",
217
225
  "PatchKBCategory",
@@ -230,6 +238,7 @@ __all__ = [
230
238
  "PostDocument",
231
239
  "PostEntity",
232
240
  "PostFollowup",
241
+ "PostGroup",
233
242
  "PostKBArticle",
234
243
  "PostKBArticleComment",
235
244
  "PostKBCategory",
@@ -242,6 +251,7 @@ __all__ = [
242
251
  "PostTimelineDocument",
243
252
  "PostUser",
244
253
  "TicketMarkdownOptions",
254
+ "UserAuthorization",
245
255
  "__version__",
246
256
  "changed_since",
247
257
  "created_between",
@@ -11,6 +11,7 @@ from __future__ import annotations
11
11
 
12
12
  from glpi_python_client._async.clients.api.administration import (
13
13
  EntityMixin,
14
+ GroupMixin,
14
15
  UserMixin,
15
16
  )
16
17
  from glpi_python_client._async.clients.api.assets import ComputerMixin
@@ -49,6 +50,7 @@ __all__ = [
49
50
  "DocumentMixin",
50
51
  "EntityMixin",
51
52
  "FollowupMixin",
53
+ "GroupMixin",
52
54
  "KBArticleCommentMixin",
53
55
  "KBArticleMixin",
54
56
  "KBArticleRevisionMixin",
@@ -1,6 +1,6 @@
1
1
  """GLPI ``/Administration`` mixins for the GLPI client.
2
2
 
3
- The submodules expose the user and entity mixins used by this tree's
3
+ The submodules expose the user, entity and group mixins used by this tree's
4
4
  client -- :class:`glpi_python_client.AsyncGlpiClient` on the async
5
5
  surface, :class:`glpi_python_client.GlpiClient` on the generated one.
6
6
  """
@@ -8,6 +8,7 @@ surface, :class:`glpi_python_client.GlpiClient` on the generated one.
8
8
  from __future__ import annotations
9
9
 
10
10
  from glpi_python_client._async.clients.api.administration._entity import EntityMixin
11
+ from glpi_python_client._async.clients.api.administration._group import GroupMixin
11
12
  from glpi_python_client._async.clients.api.administration._user import UserMixin
12
13
 
13
- __all__ = ["EntityMixin", "UserMixin"]
14
+ __all__ = ["EntityMixin", "GroupMixin", "UserMixin"]
@@ -0,0 +1,261 @@
1
+ """GLPI ``/Administration/Group`` mixin.
2
+
3
+ The mixin exposes search, fetch, create, update, and delete helpers for the
4
+ GLPI group resource. Every call sends the client's ``GLPI-Entity`` header
5
+ (and the profile and recursion headers that travel with it) except where a
6
+ search is told to skip it with ``skip_entity=True``.
7
+ """
8
+
9
+ from __future__ import annotations
10
+
11
+ from collections.abc import AsyncIterator
12
+
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
+ )
17
+ from glpi_python_client._async.clients.commons._transport import TransportMixin
18
+ from glpi_python_client.models.api_schema.administration._group import (
19
+ DeleteGroup,
20
+ GetGroup,
21
+ PatchGroup,
22
+ PostGroup,
23
+ )
24
+
25
+ _V1_GROUP_FEATURE_LABEL = "group recursion"
26
+
27
+
28
+ class GroupMixin(TransportMixin):
29
+ """CRUD helpers for ``/Administration/Group``."""
30
+
31
+ async def search_groups(
32
+ self,
33
+ rsql_filter: str = "",
34
+ *,
35
+ limit: int = 50,
36
+ start: int = 0,
37
+ skip_entity: bool = False,
38
+ ) -> list[GetGroup]:
39
+ """Search GLPI groups with an optional RSQL filter.
40
+
41
+ Parameters
42
+ ----------
43
+ rsql_filter : str, optional
44
+ Raw RSQL filter forwarded as the ``filter`` query parameter,
45
+ for example ``"name==Support"``. Empty by default.
46
+ limit : int, optional
47
+ Maximum number of records returned by the GLPI server.
48
+ start : int, optional
49
+ Zero-based offset of the first record returned.
50
+ skip_entity : bool, optional
51
+ When ``True`` the ``GLPI-Entity`` header is omitted so the
52
+ search spans every entity the caller has access to.
53
+
54
+ Returns
55
+ -------
56
+ list[GetGroup]
57
+ Groups matching the filter.
58
+ """
59
+
60
+ params: dict[str, object] = {"limit": limit, "start": start}
61
+ if rsql_filter:
62
+ params["filter"] = rsql_filter
63
+ return await self._resource_list(
64
+ GROUP_ENDPOINT, GetGroup, params=params, skip_entity=skip_entity
65
+ )
66
+
67
+ async def iter_search_groups(
68
+ self,
69
+ rsql_filter: str = "",
70
+ *,
71
+ batch_size: int = 50,
72
+ skip_entity: bool = False,
73
+ ) -> AsyncIterator[list[GetGroup]]:
74
+ """Yield successive pages of GLPI groups until exhausted.
75
+
76
+ Pagination advances the ``start`` offset after each batch and stops
77
+ when the server returns fewer items than ``batch_size``.
78
+
79
+ Parameters
80
+ ----------
81
+ rsql_filter : str, optional
82
+ Raw RSQL filter forwarded as the ``filter`` query parameter.
83
+ batch_size : int, optional
84
+ Number of records requested per page (default 50).
85
+ skip_entity : bool, optional
86
+ When ``True`` the ``GLPI-Entity`` header is omitted so the
87
+ search spans every entity the caller has access to.
88
+
89
+ Yields
90
+ ------
91
+ list[GetGroup]
92
+ One page of groups per iteration. The last yielded batch may
93
+ be shorter than ``batch_size``.
94
+ """
95
+
96
+ start = 0
97
+ while True:
98
+ batch = await self.search_groups(
99
+ rsql_filter,
100
+ limit=batch_size,
101
+ start=start,
102
+ skip_entity=skip_entity,
103
+ )
104
+ if batch:
105
+ yield batch
106
+ if len(batch) < batch_size:
107
+ break
108
+ start += batch_size
109
+
110
+ async def get_group(self, group_id: GlpiId) -> GetGroup:
111
+ """Fetch one GLPI group by identifier.
112
+
113
+ Parameters
114
+ ----------
115
+ group_id : GlpiId
116
+ Numeric identifier of the group to retrieve.
117
+
118
+ Returns
119
+ -------
120
+ GetGroup
121
+ Validated group payload.
122
+
123
+ Raises
124
+ ------
125
+ GlpiStatusError
126
+ If the GLPI server returns a non-success HTTP status.
127
+ """
128
+
129
+ return await self._resource_get(
130
+ f"{GROUP_ENDPOINT}/{group_id}",
131
+ GetGroup,
132
+ failure_message=f"Failed to get group {group_id}",
133
+ )
134
+
135
+ async def create_group(self, group: PostGroup) -> int:
136
+ """Create one GLPI group.
137
+
138
+ Parameters
139
+ ----------
140
+ group : PostGroup
141
+ Request body describing the group to create.
142
+
143
+ Returns
144
+ -------
145
+ int
146
+ Identifier assigned by the GLPI server.
147
+
148
+ Raises
149
+ ------
150
+ GlpiStatusError
151
+ If the GLPI server returns a non-success HTTP status.
152
+ GlpiProtocolError
153
+ If the create response is missing the ``id`` field.
154
+ """
155
+
156
+ return await self._resource_create(
157
+ GROUP_ENDPOINT,
158
+ group,
159
+ failure_message="Failed to create group",
160
+ missing_message="GLPI group create response did not include an ID",
161
+ log_message_factory=lambda new_id: f"GLPI API created group {new_id}",
162
+ )
163
+
164
+ async def update_group(self, group_id: GlpiId, group: PatchGroup) -> None:
165
+ """Update one GLPI group with a partial body.
166
+
167
+ Parameters
168
+ ----------
169
+ group_id : GlpiId
170
+ Numeric identifier of the group to update.
171
+ group : PatchGroup
172
+ Partial request body.
173
+
174
+ Returns
175
+ -------
176
+ None
177
+
178
+ Raises
179
+ ------
180
+ GlpiStatusError
181
+ If the GLPI server returns a non-success HTTP status.
182
+ """
183
+
184
+ await self._resource_update(
185
+ f"{GROUP_ENDPOINT}/{group_id}",
186
+ group,
187
+ failure_message=f"Failed to update group {group_id}",
188
+ log_message=f"GLPI API updated group {group_id}",
189
+ )
190
+
191
+ async def delete_group(
192
+ self, group_id: GlpiId, *, force: bool | None = None
193
+ ) -> None:
194
+ """Delete one GLPI group by identifier.
195
+
196
+ Parameters
197
+ ----------
198
+ group_id : GlpiId
199
+ Numeric identifier of the group to delete.
200
+ force : bool | None, optional
201
+ When ``True`` the group is permanently deleted instead of
202
+ being moved to the trash.
203
+
204
+ Returns
205
+ -------
206
+ None
207
+
208
+ Raises
209
+ ------
210
+ GlpiStatusError
211
+ If the GLPI server returns a non-success HTTP status.
212
+ """
213
+
214
+ await self._resource_delete(
215
+ f"{GROUP_ENDPOINT}/{group_id}",
216
+ failure_message=f"Failed to delete group {group_id}",
217
+ log_message=f"GLPI API deleted group {group_id}",
218
+ force=force,
219
+ delete_model_cls=DeleteGroup,
220
+ )
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
+
260
+
261
+ __all__ = ["GroupMixin"]