Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,28 @@ All notable changes to this project are documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).

## 0.6.10 — 2026-11-16

A minor addition: the GLPI v2 `/Dropdowns/ITILCategory` routes, so a caller
can find and create ITIL categories. Existing methods are unchanged.

### Added

- **`search_itil_categories`, `iter_search_itil_categories`,
`get_itil_category`, `create_itil_category`, `update_itil_category` and
`delete_itil_category`** on both clients, from a new `ITILCategoryMixin`
and the `ITIL_CATEGORY_ENDPOINT` constant.
- **`skip_entity: bool = False`** on `search_itil_categories`,
`iter_search_itil_categories` and `get_itil_category`: `True` omits the
`GLPI-Entity`, `GLPI-Profile` and `GLPI-Entity-Recursive` headers so the
call spans every entity the caller can see. The write methods always send
them.
- **`GetITILCategory`, `PostITILCategory`, `PatchITILCategory` and
`DeleteITILCategory`**, modelled on `components.schemas.ITILCategory`
(entity, parent, code, templates, per-type visibility flags and
timestamps), exported from the package root and from
`glpi_python_client.models`.

## 0.6.9 — 2026-11-10

A fix for GLPI 12. GLPI 12.0.1 sends a ticket's `ola_ttr` and `ola_tto` as an
Expand Down
23 changes: 23 additions & 0 deletions docs/api_reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,29 @@ Locations
:undoc-members:
:show-inheritance:

ITIL Categories
---------------

.. autoclass:: GetITILCategory
:members:
:undoc-members:
:show-inheritance:

.. autoclass:: PostITILCategory
:members:
:undoc-members:
:show-inheritance:

.. autoclass:: PatchITILCategory
:members:
:undoc-members:
:show-inheritance:

.. autoclass:: DeleteITILCategory
:members:
:undoc-members:
:show-inheritance:

Knowledge Base — Articles
-------------------------

Expand Down
3 changes: 3 additions & 0 deletions docs/user_guide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,8 @@ The full set is re-exported from the package root, including
``GetTicket`` / ``PostTicket`` / ``PatchTicket`` / ``DeleteTicket``,
``GetUser`` / ``PostUser`` / ``PatchUser`` / ``DeleteUser``,
``GetLocation`` / ``PostLocation`` / ``PatchLocation`` / ``DeleteLocation``,
``GetITILCategory`` / ``PostITILCategory`` / ``PatchITILCategory`` /
``DeleteITILCategory``,
``GetEntity`` / ``PostEntity`` / ``PatchEntity`` / ``DeleteEntity``,
``GetGroup`` / ``PostGroup`` / ``PatchGroup`` / ``DeleteGroup``,
``UserAuthorization``,
Expand Down Expand Up @@ -1228,6 +1230,7 @@ batches until the API returns fewer rows than the requested
* :meth:`GlpiClient.iter_search_users`
* :meth:`GlpiClient.iter_search_entities`
* :meth:`GlpiClient.iter_search_groups`
* :meth:`GlpiClient.iter_search_itil_categories`

.. code-block:: python

Expand Down
10 changes: 9 additions & 1 deletion glpi_python_client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
DeleteEntity,
DeleteFollowup,
DeleteGroup,
DeleteITILCategory,
DeleteKBArticle,
DeleteKBArticleComment,
DeleteKBCategory,
Expand All @@ -62,6 +63,7 @@
GetEntity,
GetFollowup,
GetGroup,
GetITILCategory,
GetKBArticle,
GetKBArticleComment,
GetKBArticleRevision,
Expand Down Expand Up @@ -99,6 +101,7 @@
PatchEntity,
PatchFollowup,
PatchGroup,
PatchITILCategory,
PatchKBArticle,
PatchKBArticleComment,
PatchKBCategory,
Expand All @@ -118,6 +121,7 @@
PostEntity,
PostFollowup,
PostGroup,
PostITILCategory,
PostKBArticle,
PostKBArticleComment,
PostKBCategory,
Expand All @@ -138,7 +142,7 @@
date_window,
)

__version__ = "0.6.9"
__version__ = "0.6.10"

__all__ = [
"AsyncGlpiClient",
Expand All @@ -151,6 +155,7 @@
"DeleteEntity",
"DeleteFollowup",
"DeleteGroup",
"DeleteITILCategory",
"DeleteKBArticle",
"DeleteKBArticleComment",
"DeleteKBCategory",
Expand All @@ -172,6 +177,7 @@
"GetEntity",
"GetFollowup",
"GetGroup",
"GetITILCategory",
"GetKBArticle",
"GetKBArticleComment",
"GetKBArticleRevision",
Expand Down Expand Up @@ -220,6 +226,7 @@
"PatchEntity",
"PatchFollowup",
"PatchGroup",
"PatchITILCategory",
"PatchKBArticle",
"PatchKBArticleComment",
"PatchKBCategory",
Expand All @@ -239,6 +246,7 @@
"PostEntity",
"PostFollowup",
"PostGroup",
"PostITILCategory",
"PostKBArticle",
"PostKBArticleComment",
"PostKBCategory",
Expand Down
2 changes: 2 additions & 0 deletions glpi_python_client/_async/clients/api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
)
from glpi_python_client._async.clients.api.dropdowns import (
ContractTypeMixin,
ITILCategoryMixin,
LocationMixin,
)
from glpi_python_client._async.clients.api.knowledgebase import (
Expand All @@ -51,6 +52,7 @@
"EntityMixin",
"FollowupMixin",
"GroupMixin",
"ITILCategoryMixin",
"KBArticleCommentMixin",
"KBArticleMixin",
"KBArticleRevisionMixin",
Expand Down
5 changes: 4 additions & 1 deletion glpi_python_client/_async/clients/api/dropdowns/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
from glpi_python_client._async.clients.api.dropdowns._contract_type import (
ContractTypeMixin,
)
from glpi_python_client._async.clients.api.dropdowns._itil_category import (
ITILCategoryMixin,
)
from glpi_python_client._async.clients.api.dropdowns._location import LocationMixin

__all__ = ["ContractTypeMixin", "LocationMixin"]
__all__ = ["ContractTypeMixin", "ITILCategoryMixin", "LocationMixin"]
Loading
Loading