glpi-python-client 0.6.8__py3-none-any.whl → 0.6.10__py3-none-any.whl

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.
@@ -41,6 +41,7 @@ from glpi_python_client.models import (
41
41
  DeleteEntity,
42
42
  DeleteFollowup,
43
43
  DeleteGroup,
44
+ DeleteITILCategory,
44
45
  DeleteKBArticle,
45
46
  DeleteKBArticleComment,
46
47
  DeleteKBCategory,
@@ -62,6 +63,7 @@ from glpi_python_client.models import (
62
63
  GetEntity,
63
64
  GetFollowup,
64
65
  GetGroup,
66
+ GetITILCategory,
65
67
  GetKBArticle,
66
68
  GetKBArticleComment,
67
69
  GetKBArticleRevision,
@@ -99,6 +101,7 @@ from glpi_python_client.models import (
99
101
  PatchEntity,
100
102
  PatchFollowup,
101
103
  PatchGroup,
104
+ PatchITILCategory,
102
105
  PatchKBArticle,
103
106
  PatchKBArticleComment,
104
107
  PatchKBCategory,
@@ -118,6 +121,7 @@ from glpi_python_client.models import (
118
121
  PostEntity,
119
122
  PostFollowup,
120
123
  PostGroup,
124
+ PostITILCategory,
121
125
  PostKBArticle,
122
126
  PostKBArticleComment,
123
127
  PostKBCategory,
@@ -138,7 +142,7 @@ from glpi_python_client.rsql import (
138
142
  date_window,
139
143
  )
140
144
 
141
- __version__ = "0.6.8"
145
+ __version__ = "0.6.10"
142
146
 
143
147
  __all__ = [
144
148
  "AsyncGlpiClient",
@@ -151,6 +155,7 @@ __all__ = [
151
155
  "DeleteEntity",
152
156
  "DeleteFollowup",
153
157
  "DeleteGroup",
158
+ "DeleteITILCategory",
154
159
  "DeleteKBArticle",
155
160
  "DeleteKBArticleComment",
156
161
  "DeleteKBCategory",
@@ -172,6 +177,7 @@ __all__ = [
172
177
  "GetEntity",
173
178
  "GetFollowup",
174
179
  "GetGroup",
180
+ "GetITILCategory",
175
181
  "GetKBArticle",
176
182
  "GetKBArticleComment",
177
183
  "GetKBArticleRevision",
@@ -220,6 +226,7 @@ __all__ = [
220
226
  "PatchEntity",
221
227
  "PatchFollowup",
222
228
  "PatchGroup",
229
+ "PatchITILCategory",
223
230
  "PatchKBArticle",
224
231
  "PatchKBArticleComment",
225
232
  "PatchKBCategory",
@@ -239,6 +246,7 @@ __all__ = [
239
246
  "PostEntity",
240
247
  "PostFollowup",
241
248
  "PostGroup",
249
+ "PostITILCategory",
242
250
  "PostKBArticle",
243
251
  "PostKBArticleComment",
244
252
  "PostKBCategory",
@@ -27,6 +27,7 @@ from glpi_python_client._async.clients.api.assistance.timeline import (
27
27
  )
28
28
  from glpi_python_client._async.clients.api.dropdowns import (
29
29
  ContractTypeMixin,
30
+ ITILCategoryMixin,
30
31
  LocationMixin,
31
32
  )
32
33
  from glpi_python_client._async.clients.api.knowledgebase import (
@@ -51,6 +52,7 @@ __all__ = [
51
52
  "EntityMixin",
52
53
  "FollowupMixin",
53
54
  "GroupMixin",
55
+ "ITILCategoryMixin",
54
56
  "KBArticleCommentMixin",
55
57
  "KBArticleMixin",
56
58
  "KBArticleRevisionMixin",
@@ -5,6 +5,9 @@ from __future__ import annotations
5
5
  from glpi_python_client._async.clients.api.dropdowns._contract_type import (
6
6
  ContractTypeMixin,
7
7
  )
8
+ from glpi_python_client._async.clients.api.dropdowns._itil_category import (
9
+ ITILCategoryMixin,
10
+ )
8
11
  from glpi_python_client._async.clients.api.dropdowns._location import LocationMixin
9
12
 
10
- __all__ = ["ContractTypeMixin", "LocationMixin"]
13
+ __all__ = ["ContractTypeMixin", "ITILCategoryMixin", "LocationMixin"]
@@ -0,0 +1,233 @@
1
+ """GLPI ``/Dropdowns/ITILCategory`` mixin.
2
+
3
+ The mixin exposes search, fetch, create, update, and delete helpers for the
4
+ GLPI ITIL category dropdown resource. Every call sends the client's
5
+ ``GLPI-Entity`` header (and the profile and recursion headers that travel
6
+ with it) except where a read 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 (
14
+ ITIL_CATEGORY_ENDPOINT,
15
+ GlpiId,
16
+ )
17
+ from glpi_python_client._async.clients.commons._transport import TransportMixin
18
+ from glpi_python_client.models.api_schema.dropdowns._itil_category import (
19
+ DeleteITILCategory,
20
+ GetITILCategory,
21
+ PatchITILCategory,
22
+ PostITILCategory,
23
+ )
24
+
25
+
26
+ class ITILCategoryMixin(TransportMixin):
27
+ """CRUD helpers for ``/Dropdowns/ITILCategory``."""
28
+
29
+ async def search_itil_categories(
30
+ self,
31
+ rsql_filter: str = "",
32
+ *,
33
+ limit: int = 50,
34
+ start: int = 0,
35
+ skip_entity: bool = False,
36
+ ) -> list[GetITILCategory]:
37
+ """Search GLPI ITIL categories with an optional RSQL filter.
38
+
39
+ Parameters
40
+ ----------
41
+ rsql_filter : str, optional
42
+ Raw RSQL filter forwarded as the ``filter`` query parameter.
43
+ limit : int, optional
44
+ Maximum number of records returned by the GLPI server.
45
+ start : int, optional
46
+ Zero-based offset of the first record returned.
47
+ skip_entity : bool, optional
48
+ When ``True`` the ``GLPI-Entity`` header is omitted so the
49
+ search spans every entity the caller has access to.
50
+
51
+ Returns
52
+ -------
53
+ list[GetITILCategory]
54
+ Categories matching the filter.
55
+ """
56
+
57
+ params: dict[str, object] = {"limit": limit, "start": start}
58
+ if rsql_filter:
59
+ params["filter"] = rsql_filter
60
+ return await self._resource_list(
61
+ ITIL_CATEGORY_ENDPOINT,
62
+ GetITILCategory,
63
+ params=params,
64
+ skip_entity=skip_entity,
65
+ )
66
+
67
+ async def iter_search_itil_categories(
68
+ self,
69
+ rsql_filter: str = "",
70
+ *,
71
+ batch_size: int = 50,
72
+ skip_entity: bool = False,
73
+ ) -> AsyncIterator[list[GetITILCategory]]:
74
+ """Yield successive pages of GLPI ITIL categories 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[GetITILCategory]
92
+ One page per iteration. The last yielded batch may be shorter
93
+ than ``batch_size``.
94
+ """
95
+
96
+ start = 0
97
+ while True:
98
+ batch = await self.search_itil_categories(
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_itil_category(
111
+ self, category_id: GlpiId, *, skip_entity: bool = False
112
+ ) -> GetITILCategory:
113
+ """Fetch one GLPI ITIL category by identifier.
114
+
115
+ Parameters
116
+ ----------
117
+ category_id : GlpiId
118
+ Numeric identifier of the category to retrieve.
119
+ skip_entity : bool, optional
120
+ When ``True`` the ``GLPI-Entity`` header is omitted so a
121
+ category outside the client's entity can be read.
122
+
123
+ Returns
124
+ -------
125
+ GetITILCategory
126
+ Validated category payload.
127
+
128
+ Raises
129
+ ------
130
+ GlpiStatusError
131
+ If the GLPI server returns a non-success HTTP status.
132
+ """
133
+
134
+ return await self._resource_get(
135
+ f"{ITIL_CATEGORY_ENDPOINT}/{category_id}",
136
+ GetITILCategory,
137
+ failure_message=f"Failed to get ITIL category {category_id}",
138
+ skip_entity=skip_entity,
139
+ )
140
+
141
+ async def create_itil_category(self, category: PostITILCategory) -> int:
142
+ """Create one GLPI ITIL category.
143
+
144
+ Parameters
145
+ ----------
146
+ category : PostITILCategory
147
+ Request body describing the category to create.
148
+
149
+ Returns
150
+ -------
151
+ int
152
+ Identifier assigned by the GLPI server.
153
+
154
+ Raises
155
+ ------
156
+ GlpiStatusError
157
+ If the GLPI server returns a non-success HTTP status.
158
+ GlpiProtocolError
159
+ If the create response is missing the ``id`` field.
160
+ """
161
+
162
+ return await self._resource_create(
163
+ ITIL_CATEGORY_ENDPOINT,
164
+ category,
165
+ failure_message="Failed to create ITIL category",
166
+ missing_message="GLPI ITIL category create response did not include an ID",
167
+ log_message_factory=lambda new_id: (
168
+ f"GLPI API created ITIL category {new_id}"
169
+ ),
170
+ )
171
+
172
+ async def update_itil_category(
173
+ self, category_id: GlpiId, category: PatchITILCategory
174
+ ) -> None:
175
+ """Update one GLPI ITIL category with a partial body.
176
+
177
+ Parameters
178
+ ----------
179
+ category_id : GlpiId
180
+ Numeric identifier of the category to update.
181
+ category : PatchITILCategory
182
+ Partial request body.
183
+
184
+ Returns
185
+ -------
186
+ None
187
+
188
+ Raises
189
+ ------
190
+ GlpiStatusError
191
+ If the GLPI server returns a non-success HTTP status.
192
+ """
193
+
194
+ await self._resource_update(
195
+ f"{ITIL_CATEGORY_ENDPOINT}/{category_id}",
196
+ category,
197
+ failure_message=f"Failed to update ITIL category {category_id}",
198
+ log_message=f"GLPI API updated ITIL category {category_id}",
199
+ )
200
+
201
+ async def delete_itil_category(
202
+ self, category_id: GlpiId, *, force: bool | None = None
203
+ ) -> None:
204
+ """Delete one GLPI ITIL category by identifier.
205
+
206
+ Parameters
207
+ ----------
208
+ category_id : GlpiId
209
+ Numeric identifier of the category to delete.
210
+ force : bool | None, optional
211
+ When ``True`` the category is permanently deleted instead of
212
+ being moved to the trash.
213
+
214
+ Returns
215
+ -------
216
+ None
217
+
218
+ Raises
219
+ ------
220
+ GlpiStatusError
221
+ If the GLPI server returns a non-success HTTP status.
222
+ """
223
+
224
+ await self._resource_delete(
225
+ f"{ITIL_CATEGORY_ENDPOINT}/{category_id}",
226
+ failure_message=f"Failed to delete ITIL category {category_id}",
227
+ log_message=f"GLPI API deleted ITIL category {category_id}",
228
+ force=force,
229
+ delete_model_cls=DeleteITILCategory,
230
+ )
231
+
232
+
233
+ __all__ = ["ITILCategoryMixin"]
@@ -26,6 +26,7 @@ from glpi_python_client._async.clients.api import (
26
26
  EntityMixin,
27
27
  FollowupMixin,
28
28
  GroupMixin,
29
+ ITILCategoryMixin,
29
30
  KBArticleCommentMixin,
30
31
  KBArticleMixin,
31
32
  KBArticleRevisionMixin,
@@ -63,6 +64,7 @@ class AsyncGlpiClient(
63
64
  GroupMixin,
64
65
  LocationMixin,
65
66
  ContractTypeMixin,
67
+ ITILCategoryMixin,
66
68
  KBCategoryMixin,
67
69
  KBArticleMixin,
68
70
  KBArticleCommentMixin,
@@ -24,6 +24,7 @@ GROUP_ENDPOINT = "Administration/Group"
24
24
  # dropdowns/
25
25
  CONTRACT_TYPE_ENDPOINT = "Dropdowns/ContractType"
26
26
  LOCATION_ENDPOINT = "Dropdowns/Location"
27
+ ITIL_CATEGORY_ENDPOINT = "Dropdowns/ITILCategory"
27
28
 
28
29
  # management/
29
30
  CONTRACT_ENDPOINT = "Management/Contract"
@@ -54,6 +55,7 @@ __all__ = [
54
55
  "ENTITY_ENDPOINT",
55
56
  "FOLLOWUP_SUFFIX",
56
57
  "GROUP_ENDPOINT",
58
+ "ITIL_CATEGORY_ENDPOINT",
57
59
  "KB_ARTICLE_ENDPOINT",
58
60
  "KB_CATEGORY_ENDPOINT",
59
61
  "KB_COMMENT_SUFFIX",
@@ -27,6 +27,7 @@ from glpi_python_client._sync.clients.api.assistance.timeline import (
27
27
  )
28
28
  from glpi_python_client._sync.clients.api.dropdowns import (
29
29
  ContractTypeMixin,
30
+ ITILCategoryMixin,
30
31
  LocationMixin,
31
32
  )
32
33
  from glpi_python_client._sync.clients.api.knowledgebase import (
@@ -51,6 +52,7 @@ __all__ = [
51
52
  "EntityMixin",
52
53
  "FollowupMixin",
53
54
  "GroupMixin",
55
+ "ITILCategoryMixin",
54
56
  "KBArticleCommentMixin",
55
57
  "KBArticleMixin",
56
58
  "KBArticleRevisionMixin",
@@ -5,6 +5,9 @@ from __future__ import annotations
5
5
  from glpi_python_client._sync.clients.api.dropdowns._contract_type import (
6
6
  ContractTypeMixin,
7
7
  )
8
+ from glpi_python_client._sync.clients.api.dropdowns._itil_category import (
9
+ ITILCategoryMixin,
10
+ )
8
11
  from glpi_python_client._sync.clients.api.dropdowns._location import LocationMixin
9
12
 
10
- __all__ = ["ContractTypeMixin", "LocationMixin"]
13
+ __all__ = ["ContractTypeMixin", "ITILCategoryMixin", "LocationMixin"]
@@ -0,0 +1,233 @@
1
+ """GLPI ``/Dropdowns/ITILCategory`` mixin.
2
+
3
+ The mixin exposes search, fetch, create, update, and delete helpers for the
4
+ GLPI ITIL category dropdown resource. Every call sends the client's
5
+ ``GLPI-Entity`` header (and the profile and recursion headers that travel
6
+ with it) except where a read is told to skip it with ``skip_entity=True``.
7
+ """
8
+
9
+ from __future__ import annotations
10
+
11
+ from collections.abc import Iterator
12
+
13
+ from glpi_python_client._sync.clients.commons._constants import (
14
+ ITIL_CATEGORY_ENDPOINT,
15
+ GlpiId,
16
+ )
17
+ from glpi_python_client._sync.clients.commons._transport import TransportMixin
18
+ from glpi_python_client.models.api_schema.dropdowns._itil_category import (
19
+ DeleteITILCategory,
20
+ GetITILCategory,
21
+ PatchITILCategory,
22
+ PostITILCategory,
23
+ )
24
+
25
+
26
+ class ITILCategoryMixin(TransportMixin):
27
+ """CRUD helpers for ``/Dropdowns/ITILCategory``."""
28
+
29
+ def search_itil_categories(
30
+ self,
31
+ rsql_filter: str = "",
32
+ *,
33
+ limit: int = 50,
34
+ start: int = 0,
35
+ skip_entity: bool = False,
36
+ ) -> list[GetITILCategory]:
37
+ """Search GLPI ITIL categories with an optional RSQL filter.
38
+
39
+ Parameters
40
+ ----------
41
+ rsql_filter : str, optional
42
+ Raw RSQL filter forwarded as the ``filter`` query parameter.
43
+ limit : int, optional
44
+ Maximum number of records returned by the GLPI server.
45
+ start : int, optional
46
+ Zero-based offset of the first record returned.
47
+ skip_entity : bool, optional
48
+ When ``True`` the ``GLPI-Entity`` header is omitted so the
49
+ search spans every entity the caller has access to.
50
+
51
+ Returns
52
+ -------
53
+ list[GetITILCategory]
54
+ Categories matching the filter.
55
+ """
56
+
57
+ params: dict[str, object] = {"limit": limit, "start": start}
58
+ if rsql_filter:
59
+ params["filter"] = rsql_filter
60
+ return self._resource_list(
61
+ ITIL_CATEGORY_ENDPOINT,
62
+ GetITILCategory,
63
+ params=params,
64
+ skip_entity=skip_entity,
65
+ )
66
+
67
+ def iter_search_itil_categories(
68
+ self,
69
+ rsql_filter: str = "",
70
+ *,
71
+ batch_size: int = 50,
72
+ skip_entity: bool = False,
73
+ ) -> Iterator[list[GetITILCategory]]:
74
+ """Yield successive pages of GLPI ITIL categories 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[GetITILCategory]
92
+ One page per iteration. The last yielded batch may be shorter
93
+ than ``batch_size``.
94
+ """
95
+
96
+ start = 0
97
+ while True:
98
+ batch = self.search_itil_categories(
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
+ def get_itil_category(
111
+ self, category_id: GlpiId, *, skip_entity: bool = False
112
+ ) -> GetITILCategory:
113
+ """Fetch one GLPI ITIL category by identifier.
114
+
115
+ Parameters
116
+ ----------
117
+ category_id : GlpiId
118
+ Numeric identifier of the category to retrieve.
119
+ skip_entity : bool, optional
120
+ When ``True`` the ``GLPI-Entity`` header is omitted so a
121
+ category outside the client's entity can be read.
122
+
123
+ Returns
124
+ -------
125
+ GetITILCategory
126
+ Validated category payload.
127
+
128
+ Raises
129
+ ------
130
+ GlpiStatusError
131
+ If the GLPI server returns a non-success HTTP status.
132
+ """
133
+
134
+ return self._resource_get(
135
+ f"{ITIL_CATEGORY_ENDPOINT}/{category_id}",
136
+ GetITILCategory,
137
+ failure_message=f"Failed to get ITIL category {category_id}",
138
+ skip_entity=skip_entity,
139
+ )
140
+
141
+ def create_itil_category(self, category: PostITILCategory) -> int:
142
+ """Create one GLPI ITIL category.
143
+
144
+ Parameters
145
+ ----------
146
+ category : PostITILCategory
147
+ Request body describing the category to create.
148
+
149
+ Returns
150
+ -------
151
+ int
152
+ Identifier assigned by the GLPI server.
153
+
154
+ Raises
155
+ ------
156
+ GlpiStatusError
157
+ If the GLPI server returns a non-success HTTP status.
158
+ GlpiProtocolError
159
+ If the create response is missing the ``id`` field.
160
+ """
161
+
162
+ return self._resource_create(
163
+ ITIL_CATEGORY_ENDPOINT,
164
+ category,
165
+ failure_message="Failed to create ITIL category",
166
+ missing_message="GLPI ITIL category create response did not include an ID",
167
+ log_message_factory=lambda new_id: (
168
+ f"GLPI API created ITIL category {new_id}"
169
+ ),
170
+ )
171
+
172
+ def update_itil_category(
173
+ self, category_id: GlpiId, category: PatchITILCategory
174
+ ) -> None:
175
+ """Update one GLPI ITIL category with a partial body.
176
+
177
+ Parameters
178
+ ----------
179
+ category_id : GlpiId
180
+ Numeric identifier of the category to update.
181
+ category : PatchITILCategory
182
+ Partial request body.
183
+
184
+ Returns
185
+ -------
186
+ None
187
+
188
+ Raises
189
+ ------
190
+ GlpiStatusError
191
+ If the GLPI server returns a non-success HTTP status.
192
+ """
193
+
194
+ self._resource_update(
195
+ f"{ITIL_CATEGORY_ENDPOINT}/{category_id}",
196
+ category,
197
+ failure_message=f"Failed to update ITIL category {category_id}",
198
+ log_message=f"GLPI API updated ITIL category {category_id}",
199
+ )
200
+
201
+ def delete_itil_category(
202
+ self, category_id: GlpiId, *, force: bool | None = None
203
+ ) -> None:
204
+ """Delete one GLPI ITIL category by identifier.
205
+
206
+ Parameters
207
+ ----------
208
+ category_id : GlpiId
209
+ Numeric identifier of the category to delete.
210
+ force : bool | None, optional
211
+ When ``True`` the category is permanently deleted instead of
212
+ being moved to the trash.
213
+
214
+ Returns
215
+ -------
216
+ None
217
+
218
+ Raises
219
+ ------
220
+ GlpiStatusError
221
+ If the GLPI server returns a non-success HTTP status.
222
+ """
223
+
224
+ self._resource_delete(
225
+ f"{ITIL_CATEGORY_ENDPOINT}/{category_id}",
226
+ failure_message=f"Failed to delete ITIL category {category_id}",
227
+ log_message=f"GLPI API deleted ITIL category {category_id}",
228
+ force=force,
229
+ delete_model_cls=DeleteITILCategory,
230
+ )
231
+
232
+
233
+ __all__ = ["ITILCategoryMixin"]
@@ -26,6 +26,7 @@ from glpi_python_client._sync.clients.api import (
26
26
  EntityMixin,
27
27
  FollowupMixin,
28
28
  GroupMixin,
29
+ ITILCategoryMixin,
29
30
  KBArticleCommentMixin,
30
31
  KBArticleMixin,
31
32
  KBArticleRevisionMixin,
@@ -63,6 +64,7 @@ class GlpiClient(
63
64
  GroupMixin,
64
65
  LocationMixin,
65
66
  ContractTypeMixin,
67
+ ITILCategoryMixin,
66
68
  KBCategoryMixin,
67
69
  KBArticleMixin,
68
70
  KBArticleCommentMixin,
@@ -24,6 +24,7 @@ GROUP_ENDPOINT = "Administration/Group"
24
24
  # dropdowns/
25
25
  CONTRACT_TYPE_ENDPOINT = "Dropdowns/ContractType"
26
26
  LOCATION_ENDPOINT = "Dropdowns/Location"
27
+ ITIL_CATEGORY_ENDPOINT = "Dropdowns/ITILCategory"
27
28
 
28
29
  # management/
29
30
  CONTRACT_ENDPOINT = "Management/Contract"
@@ -54,6 +55,7 @@ __all__ = [
54
55
  "ENTITY_ENDPOINT",
55
56
  "FOLLOWUP_SUFFIX",
56
57
  "GROUP_ENDPOINT",
58
+ "ITIL_CATEGORY_ENDPOINT",
57
59
  "KB_ARTICLE_ENDPOINT",
58
60
  "KB_CATEGORY_ENDPOINT",
59
61
  "KB_COMMENT_SUFFIX",
@@ -75,12 +75,16 @@ from glpi_python_client.models.api_schema.assistance.timeline import (
75
75
  )
76
76
  from glpi_python_client.models.api_schema.dropdowns import (
77
77
  DeleteContractType,
78
+ DeleteITILCategory,
78
79
  DeleteLocation,
79
80
  GetContractType,
81
+ GetITILCategory,
80
82
  GetLocation,
81
83
  PatchContractType,
84
+ PatchITILCategory,
82
85
  PatchLocation,
83
86
  PostContractType,
87
+ PostITILCategory,
84
88
  PostLocation,
85
89
  )
86
90
  from glpi_python_client.models.api_schema.enums import (
@@ -147,6 +151,7 @@ __all__ = [
147
151
  "DeleteEntity",
148
152
  "DeleteFollowup",
149
153
  "DeleteGroup",
154
+ "DeleteITILCategory",
150
155
  "DeleteKBArticle",
151
156
  "DeleteKBArticleComment",
152
157
  "DeleteKBCategory",
@@ -168,6 +173,7 @@ __all__ = [
168
173
  "GetEntity",
169
174
  "GetFollowup",
170
175
  "GetGroup",
176
+ "GetITILCategory",
171
177
  "GetKBArticle",
172
178
  "GetKBArticleComment",
173
179
  "GetKBArticleRevision",
@@ -205,6 +211,7 @@ __all__ = [
205
211
  "PatchEntity",
206
212
  "PatchFollowup",
207
213
  "PatchGroup",
214
+ "PatchITILCategory",
208
215
  "PatchKBArticle",
209
216
  "PatchKBArticleComment",
210
217
  "PatchKBCategory",
@@ -224,6 +231,7 @@ __all__ = [
224
231
  "PostEntity",
225
232
  "PostFollowup",
226
233
  "PostGroup",
234
+ "PostITILCategory",
227
235
  "PostKBArticle",
228
236
  "PostKBArticleComment",
229
237
  "PostKBCategory",
@@ -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: IdNameRef | None = None
221
- sla_tto: IdNameRef | None = None
222
- ola_ttr: IdNameRef | None = None
223
- ola_tto: IdNameRef | None = None
224
- sla_level_ttr: IdNameRef | None = None
225
- ola_level_ttr: IdNameRef | None = None
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
@@ -6,6 +6,12 @@ from glpi_python_client.models.api_schema.dropdowns._contract_type import (
6
6
  PatchContractType,
7
7
  PostContractType,
8
8
  )
9
+ from glpi_python_client.models.api_schema.dropdowns._itil_category import (
10
+ DeleteITILCategory,
11
+ GetITILCategory,
12
+ PatchITILCategory,
13
+ PostITILCategory,
14
+ )
9
15
  from glpi_python_client.models.api_schema.dropdowns._location import (
10
16
  DeleteLocation,
11
17
  GetLocation,
@@ -15,11 +21,15 @@ from glpi_python_client.models.api_schema.dropdowns._location import (
15
21
 
16
22
  __all__ = [
17
23
  "DeleteContractType",
24
+ "DeleteITILCategory",
18
25
  "DeleteLocation",
19
26
  "GetContractType",
27
+ "GetITILCategory",
20
28
  "GetLocation",
21
29
  "PatchContractType",
30
+ "PatchITILCategory",
22
31
  "PatchLocation",
23
32
  "PostContractType",
33
+ "PostITILCategory",
24
34
  "PostLocation",
25
35
  ]
@@ -0,0 +1,199 @@
1
+ """GLPI ``ITILCategory`` schemas for the ``/Dropdowns/ITILCategory`` endpoints.
2
+
3
+ The field layout mirrors ``components.schemas.ITILCategory`` from the GLPI
4
+ OpenAPI contract. Read-only contract fields (``id``, ``completename``,
5
+ ``level``) are excluded from request models.
6
+ """
7
+
8
+ from __future__ import annotations
9
+
10
+ from datetime import datetime
11
+
12
+ from glpi_python_client.models._base import GlpiModel
13
+ from glpi_python_client.models.api_schema._common import IdNameRef
14
+
15
+
16
+ class GetITILCategory(GlpiModel):
17
+ """Response shape returned by ``GET /Dropdowns/ITILCategory`` endpoints.
18
+
19
+ Mirrors ``components.schemas.ITILCategory``. No field carries a
20
+ ``description`` in the OpenAPI contract; the parameter notes below
21
+ reflect the field names, types and ``readOnly`` flags as advertised.
22
+
23
+ Parameters
24
+ ----------
25
+ id : int | None, optional
26
+ Native GLPI identifier (``readOnly``).
27
+ name : str | None, optional
28
+ Short display name of the category.
29
+ completename : str | None, optional
30
+ Full hierarchical path of the category (``readOnly``).
31
+ level : int | None, optional
32
+ Depth of the category in the hierarchy tree (``readOnly``).
33
+ comment : str | None, optional
34
+ Free-form comment associated with the category.
35
+ entity : IdNameRef | None, optional
36
+ Reference to the owning GLPI entity.
37
+ is_recursive : bool | None, optional
38
+ Whether the category is visible to child entities.
39
+ parent : IdNameRef | None, optional
40
+ Reference to the parent category in the hierarchy.
41
+ user : IdNameRef | None, optional
42
+ Reference to the user in charge of the category.
43
+ group : IdNameRef | None, optional
44
+ Reference to the group in charge of the category.
45
+ code : str | None, optional
46
+ Short code assigned to the category.
47
+ is_helpdesk_visible : bool | None, optional
48
+ Whether the category is visible in the simplified interface.
49
+ ticket_incident_template : IdNameRef | None, optional
50
+ Default ticket template for incidents.
51
+ ticket_request_template : IdNameRef | None, optional
52
+ Default ticket template for requests.
53
+ change_template : IdNameRef | None, optional
54
+ Default change template.
55
+ problem_template : IdNameRef | None, optional
56
+ Default problem template.
57
+ is_incident_visible : bool | None, optional
58
+ Whether the category can be used on incidents.
59
+ is_request_visible : bool | None, optional
60
+ Whether the category can be used on requests.
61
+ is_change_visible : bool | None, optional
62
+ Whether the category can be used on changes.
63
+ is_problem_visible : bool | None, optional
64
+ Whether the category can be used on problems.
65
+ knowbase_category : IdNameRef | None, optional
66
+ Reference to the linked knowledge base category.
67
+ date_creation : datetime | None, optional
68
+ Creation timestamp of the record (``format: date-time``).
69
+ date_mod : datetime | None, optional
70
+ Last modification timestamp of the record (``format: date-time``).
71
+ """
72
+
73
+ id: int | None = None
74
+ name: str | None = None
75
+ completename: str | None = None
76
+ level: int | None = None
77
+ comment: str | None = None
78
+ entity: IdNameRef | None = None
79
+ is_recursive: bool | None = None
80
+ parent: IdNameRef | None = None
81
+ user: IdNameRef | None = None
82
+ group: IdNameRef | None = None
83
+ code: str | None = None
84
+ is_helpdesk_visible: bool | None = None
85
+ ticket_incident_template: IdNameRef | None = None
86
+ ticket_request_template: IdNameRef | None = None
87
+ change_template: IdNameRef | None = None
88
+ problem_template: IdNameRef | None = None
89
+ is_incident_visible: bool | None = None
90
+ is_request_visible: bool | None = None
91
+ is_change_visible: bool | None = None
92
+ is_problem_visible: bool | None = None
93
+ knowbase_category: IdNameRef | None = None
94
+ date_creation: datetime | None = None
95
+ date_mod: datetime | None = None
96
+
97
+
98
+ class PostITILCategory(GlpiModel):
99
+ """Request body for ``POST /Dropdowns/ITILCategory``.
100
+
101
+ Read-only contract fields (``id``, ``completename``, ``level``) are
102
+ intentionally excluded because the server rejects them on input.
103
+
104
+ Parameters
105
+ ----------
106
+ name : str | None, optional
107
+ Short display name of the category.
108
+ comment : str | None, optional
109
+ Free-form comment associated with the category.
110
+ entity : IdNameRef | None, optional
111
+ Reference to the owning GLPI entity.
112
+ is_recursive : bool | None, optional
113
+ Whether the category is visible to child entities.
114
+ parent : IdNameRef | None, optional
115
+ Reference to the parent category in the hierarchy.
116
+ user : IdNameRef | None, optional
117
+ Reference to the user in charge of the category.
118
+ group : IdNameRef | None, optional
119
+ Reference to the group in charge of the category.
120
+ code : str | None, optional
121
+ Short code assigned to the category.
122
+ is_helpdesk_visible : bool | None, optional
123
+ Whether the category is visible in the simplified interface.
124
+ ticket_incident_template : IdNameRef | None, optional
125
+ Default ticket template for incidents.
126
+ ticket_request_template : IdNameRef | None, optional
127
+ Default ticket template for requests.
128
+ change_template : IdNameRef | None, optional
129
+ Default change template.
130
+ problem_template : IdNameRef | None, optional
131
+ Default problem template.
132
+ is_incident_visible : bool | None, optional
133
+ Whether the category can be used on incidents.
134
+ is_request_visible : bool | None, optional
135
+ Whether the category can be used on requests.
136
+ is_change_visible : bool | None, optional
137
+ Whether the category can be used on changes.
138
+ is_problem_visible : bool | None, optional
139
+ Whether the category can be used on problems.
140
+ knowbase_category : IdNameRef | None, optional
141
+ Reference to the linked knowledge base category.
142
+ date_creation : datetime | None, optional
143
+ Creation timestamp to set on the record (``format: date-time``).
144
+ date_mod : datetime | None, optional
145
+ Last modification timestamp to set on the record
146
+ (``format: date-time``).
147
+ """
148
+
149
+ name: str | None = None
150
+ comment: str | None = None
151
+ entity: IdNameRef | None = None
152
+ is_recursive: bool | None = None
153
+ parent: IdNameRef | None = None
154
+ user: IdNameRef | None = None
155
+ group: IdNameRef | None = None
156
+ code: str | None = None
157
+ is_helpdesk_visible: bool | None = None
158
+ ticket_incident_template: IdNameRef | None = None
159
+ ticket_request_template: IdNameRef | None = None
160
+ change_template: IdNameRef | None = None
161
+ problem_template: IdNameRef | None = None
162
+ is_incident_visible: bool | None = None
163
+ is_request_visible: bool | None = None
164
+ is_change_visible: bool | None = None
165
+ is_problem_visible: bool | None = None
166
+ knowbase_category: IdNameRef | None = None
167
+ date_creation: datetime | None = None
168
+ date_mod: datetime | None = None
169
+
170
+
171
+ class PatchITILCategory(PostITILCategory):
172
+ """Request body for ``PATCH /Dropdowns/ITILCategory/{id}``.
173
+
174
+ The contract uses the same ``ITILCategory`` schema for create and
175
+ partial-update bodies; ``PatchITILCategory`` is kept distinct so client
176
+ mixins can express the intent of the operation explicitly.
177
+ """
178
+
179
+
180
+ class DeleteITILCategory(GlpiModel):
181
+ """Query parameters for ``DELETE /Dropdowns/ITILCategory/{id}``.
182
+
183
+ Parameters
184
+ ----------
185
+ force : bool | None, optional
186
+ When ``True``, permanently delete the category instead of moving
187
+ the record to the GLPI trash. When ``False`` or :data:`None`,
188
+ the server applies its default behaviour.
189
+ """
190
+
191
+ force: bool | None = None
192
+
193
+
194
+ __all__ = [
195
+ "DeleteITILCategory",
196
+ "GetITILCategory",
197
+ "PatchITILCategory",
198
+ "PostITILCategory",
199
+ ]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: glpi-python-client
3
- Version: 0.6.8
3
+ Version: 0.6.10
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/
@@ -1,4 +1,4 @@
1
- glpi_python_client/__init__.py,sha256=gW8x9fJRzEx95wmAJYbe7ST7Ix9sOIxe46mTMCzXjSg,5810
1
+ glpi_python_client/__init__.py,sha256=doxfSqPObtkwlP-CCQc8tuXFgwMZmhchP9cbHYSW8C4,5999
2
2
  glpi_python_client/_errors.py,sha256=Bc9UvlxulbdcGvzZIKXnJCTL78sW78R6EFg50P-1dpY,7151
3
3
  glpi_python_client/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  glpi_python_client/rsql.py,sha256=3u3lH3_-F1bvHbVzxALXTDPoHyoMATP1f4QPTar_sEU,8974
@@ -10,8 +10,8 @@ glpi_python_client/_async/auth/_v1_session.py,sha256=3t1OammbfUm9E-ANynrBFryxjx5
10
10
  glpi_python_client/_async/auth/auth.py,sha256=1vGG5uBNG8lMjcm20-mgcsH2e0GWKGujQo4k6vck1lE,14694
11
11
  glpi_python_client/_async/clients/__init__.py,sha256=LCjaQ_tjb4icz04PvPQdmtfP6PgtymBKhnhA7PuW52I,637
12
12
  glpi_python_client/_async/clients/_base_client.py,sha256=Yq_Stx2BqZjNbvysrEMLYyOrfSYjzihN6alfQpy7pWA,7553
13
- glpi_python_client/_async/clients/client.py,sha256=4lZbd4wHNRqI2xbzjsff3iy8e4FnMgF-1Ezi0KyBtHM,3879
14
- glpi_python_client/_async/clients/api/__init__.py,sha256=keInRT6ogmkeWETnNQC6VliBjZZk4ur2hRcIyWSv1_k,1776
13
+ glpi_python_client/_async/clients/client.py,sha256=VXBUukSzIWmHNykWx6VWlRQ3U378n3530s5NmRZn630,3925
14
+ glpi_python_client/_async/clients/api/__init__.py,sha256=rjRIAgKjeCAPo1vy5Zpy_dwKGjznM2JmC_kLPzDNwKo,1824
15
15
  glpi_python_client/_async/clients/api/administration/__init__.py,sha256=raqpFI2U8WDfeSRzN8-PcqhzD3sKP0oTamgj77-Nhxk,614
16
16
  glpi_python_client/_async/clients/api/administration/_entity.py,sha256=qG1SBMwOCZWHjHV4KfswY6bTaTQP9I83mQvOd-Xo70w,6453
17
17
  glpi_python_client/_async/clients/api/administration/_group.py,sha256=c8qpqHl3METBggY5VJCAQyZNfmqBtOhi3IcxFK6eoMU,8175
@@ -26,8 +26,9 @@ glpi_python_client/_async/clients/api/assistance/timeline/_document.py,sha256=BY
26
26
  glpi_python_client/_async/clients/api/assistance/timeline/_followup.py,sha256=jgE_kpJxMa3v1Tt4Jm2PahiRNX7v3vKh6xjbX27sp7w,6221
27
27
  glpi_python_client/_async/clients/api/assistance/timeline/_solution.py,sha256=3DpbDeHDQ7FJdevhcpAcgXyB9FZu7_S2kVblFXsZUq0,6156
28
28
  glpi_python_client/_async/clients/api/assistance/timeline/_task.py,sha256=EdkrRJnkHWaZdxgyqwL1rhUygGSJScR2jIS6CFJL4S4,5869
29
- glpi_python_client/_async/clients/api/dropdowns/__init__.py,sha256=4rRfU1V4rrdTRNhGcNdybzT7RdUcAgu6xqsfziS8nuQ,327
29
+ glpi_python_client/_async/clients/api/dropdowns/__init__.py,sha256=e3JXMOuPHisNef5X1gXVvhUDNgLWo5nHoi5NGL6893w,450
30
30
  glpi_python_client/_async/clients/api/dropdowns/_contract_type.py,sha256=AR7DsxAD86nGD2l9_kv8dNVCvsfJ4rfYdyzZLLY2e9A,6768
31
+ glpi_python_client/_async/clients/api/dropdowns/_itil_category.py,sha256=jt4SxySovhsR2Bu9Mwz1Bdu_Dv3vO1TVe1zyMRdq-Hg,7241
31
32
  glpi_python_client/_async/clients/api/dropdowns/_location.py,sha256=vVzgOqYpHPqHrDFcOc4o178Wy9v4fkgN-MWtWYRiKlM,6309
32
33
  glpi_python_client/_async/clients/api/knowledgebase/__init__.py,sha256=AR-9S4770PelWh3RSd07kNkfu8UQ01uKTGjmkij714Y,591
33
34
  glpi_python_client/_async/clients/api/knowledgebase/_article.py,sha256=lYRT_8UbPA4TmADwtGYJcrxaRS5do79C8dnYmR30YkA,10659
@@ -41,7 +42,7 @@ glpi_python_client/_async/clients/api/plugins/__init__.py,sha256=mmY6HngIzna2AG3
41
42
  glpi_python_client/_async/clients/api/plugins/_fields.py,sha256=mGpPutvN8JUDUszdvLEE2kkQnz28rktshHdFhs9A1X4,15485
42
43
  glpi_python_client/_async/clients/commons/__init__.py,sha256=1-V_LgNwIYDyXdpLP2nijCTeGgajTcY-wt0C4aeRE3k,406
43
44
  glpi_python_client/_async/clients/commons/_config.py,sha256=JlUZy_oPQj0ldSbBVWcytMlvROyeCW0JldOpPrBmFMs,13080
44
- glpi_python_client/_async/clients/commons/_constants.py,sha256=Y2uQ0zE_7m0DLSKLg41JEbW4ww23Mk9g-hDbjNZjaZQ,1834
45
+ glpi_python_client/_async/clients/commons/_constants.py,sha256=e0Sw3u-a46enpTwnEqVlZOjP0L3hI1LaBRJLiXcE-D8,1914
45
46
  glpi_python_client/_async/clients/commons/_filters.py,sha256=eQdrc06RhEuGHtvAqBJy1VrOVHVjeiFh82pvX-HxGw8,4695
46
47
  glpi_python_client/_async/clients/commons/_http.py,sha256=8x9H9eHw-neOYoQ2MAP2JmbVqcpno42pZlzfuhizpmk,15240
47
48
  glpi_python_client/_async/clients/commons/_payloads.py,sha256=dtljozIhGB_wga3bLqT2hPNuV_ImX8EfHKv9CPV2EvY,4957
@@ -57,8 +58,8 @@ glpi_python_client/_sync/auth/_v1_session.py,sha256=dlnYA2yi_aWI6wTpfnRD3nzRvnw1
57
58
  glpi_python_client/_sync/auth/auth.py,sha256=azWE3bqDswxU-PtO-m_aKb-luSVPRrRXDVuq2aFRz18,14608
58
59
  glpi_python_client/_sync/clients/__init__.py,sha256=DWKGlB1KAgTQvmc_Dycz7rynNo0y_fr5Z4LcTxzn4iQ,623
59
60
  glpi_python_client/_sync/clients/_base_client.py,sha256=-59b4F383zVhcnt_KV8VY3f9nMr0SlRG9tm_d3yKRKU,7551
60
- glpi_python_client/_sync/clients/client.py,sha256=WTqrTs_0xSUSR8ez__JjHPgDBhsBUtyUFBhgZANNZqo,3821
61
- glpi_python_client/_sync/clients/api/__init__.py,sha256=_nlTpSQyldJrTVvlifp__DQGF6_vqCl_YPWp6FCa-mM,1767
61
+ glpi_python_client/_sync/clients/client.py,sha256=teXF9FxM1q6ZS5G9xwP9D_JnD_mUFUivmwQaZJoqNKM,3867
62
+ glpi_python_client/_sync/clients/api/__init__.py,sha256=Xpyg7XpkTMXx4NdjUXsdwu9sEeQSRqZYhTgQbrGAW04,1815
62
63
  glpi_python_client/_sync/clients/api/administration/__init__.py,sha256=3s3Nfawu1FI97Q-WIlz5OgLZL7TszItF6l_JzQHVzaM,611
63
64
  glpi_python_client/_sync/clients/api/administration/_entity.py,sha256=jYvIl1hXcPQuAABa0I0TCKBG6FMHtO8xl55xhG5CRS8,6369
64
65
  glpi_python_client/_sync/clients/api/administration/_group.py,sha256=uKIt5q-G2YmOQLMJWcjLkLTNYmFdUtB0gKGSgUvj9YQ,8078
@@ -73,8 +74,9 @@ glpi_python_client/_sync/clients/api/assistance/timeline/_document.py,sha256=0T7
73
74
  glpi_python_client/_sync/clients/api/assistance/timeline/_followup.py,sha256=trQJJThA8jk2jVK-jTW8uPZyYEvR5Zi18mqGT6436VM,6158
74
75
  glpi_python_client/_sync/clients/api/assistance/timeline/_solution.py,sha256=KVyrjKFS35lJzvjwEromOEL2Q2OfvLP7MvhV7QirtVs,6093
75
76
  glpi_python_client/_sync/clients/api/assistance/timeline/_task.py,sha256=peSQmKYoHc9IVdQltBaDqFFHZKdBzWJwt_0GXng2odU,5806
76
- glpi_python_client/_sync/clients/api/dropdowns/__init__.py,sha256=e9aQsQ1X16_McAcZysf95E1CNiHDamUJoAlmXRMXwqU,325
77
+ glpi_python_client/_sync/clients/api/dropdowns/__init__.py,sha256=-fNQXPYnwlEIMssma5rWPfU-pq0SnZcf8FPibIcNwgg,447
77
78
  glpi_python_client/_sync/clients/api/dropdowns/_contract_type.py,sha256=tO-NTflbs2yIJUzYZLVtk_kQmuxl5SDYBEAxAH8ezR0,6684
79
+ glpi_python_client/_sync/clients/api/dropdowns/_itil_category.py,sha256=Q5BRiP-uh9L74poVFwPXhPviQRHP1UKnLINhg6JNGqI,7157
78
80
  glpi_python_client/_sync/clients/api/dropdowns/_location.py,sha256=eBtcelheltTn1zBkcgdukH-xBzsRCcSCrxKPYmB9j2Y,6225
79
81
  glpi_python_client/_sync/clients/api/knowledgebase/__init__.py,sha256=1DAER-ksn5J6Tl5PsSzDhoM8mbU5lDCkGQo7vhQ9l6Y,587
80
82
  glpi_python_client/_sync/clients/api/knowledgebase/_article.py,sha256=br5WQfHVAFZ5EZ3pSxsbGX9FZfwdYaqiQ3GOW4-JUqA,10539
@@ -88,7 +90,7 @@ glpi_python_client/_sync/clients/api/plugins/__init__.py,sha256=x9RwOUD34H1bPsJJ
88
90
  glpi_python_client/_sync/clients/api/plugins/_fields.py,sha256=jkGTF0T7eQHzOPcKSqaEmwJx-EgETcgncXyke69HJeg,15368
89
91
  glpi_python_client/_sync/clients/commons/__init__.py,sha256=Ur1hbt0_A9TlRqYi97PmlfsXYS_EMGk0lVjkHx_cyBE,404
90
92
  glpi_python_client/_sync/clients/commons/_config.py,sha256=f2wVtUUdh6rxaf-s84X8Fhfn0zxn0OPJg445dKeCSVw,13056
91
- glpi_python_client/_sync/clients/commons/_constants.py,sha256=Y2uQ0zE_7m0DLSKLg41JEbW4ww23Mk9g-hDbjNZjaZQ,1834
93
+ glpi_python_client/_sync/clients/commons/_constants.py,sha256=e0Sw3u-a46enpTwnEqVlZOjP0L3hI1LaBRJLiXcE-D8,1914
92
94
  glpi_python_client/_sync/clients/commons/_filters.py,sha256=eQdrc06RhEuGHtvAqBJy1VrOVHVjeiFh82pvX-HxGw8,4695
93
95
  glpi_python_client/_sync/clients/commons/_http.py,sha256=5p8S1J1usIB0WQg5u3h6zovr14an-NoIGNfwAHEOSS4,15239
94
96
  glpi_python_client/_sync/clients/commons/_payloads.py,sha256=dtljozIhGB_wga3bLqT2hPNuV_ImX8EfHKv9CPV2EvY,4957
@@ -98,7 +100,7 @@ glpi_python_client/_sync/clients/custom/_statistics.py,sha256=xrD5C99ieROJx60iUo
98
100
  glpi_python_client/_sync/clients/custom/_ticket_context.py,sha256=LDUvKNr8VpZonF5bDo8QYYwMEsWmayVU28Ra3GonNmE,3004
99
101
  glpi_python_client/content/__init__.py,sha256=TaZPo8WSvVj4U-hSnxhUcqU8JnCKNZYpfQf4pH45aN4,424
100
102
  glpi_python_client/content/conversion.py,sha256=0dxQW0ojSo1KC8zcTFa476KQa1i3sLWzQ8gTEEVslys,45341
101
- glpi_python_client/models/__init__.py,sha256=-t0GsZuXTp4te9bgvMxsSH-BhXCGl8lulw7-x7cwE4g,5634
103
+ glpi_python_client/models/__init__.py,sha256=B3aEQjnasVJZX8oXaaToVxhtzGXLyF7PMxGh2XZ31iE,5822
102
104
  glpi_python_client/models/_base.py,sha256=pYg69KHuR5TDED5utr4Knr7HncBnLTxXHJZYf6vEUKA,12183
103
105
  glpi_python_client/models/api_schema/__init__.py,sha256=yTxUYih1Xy7NUogzD7UKp2b8HyE4wdeC_FCKS6ZRVVM,1176
104
106
  glpi_python_client/models/api_schema/_common.py,sha256=wVtaIkUM9iS3jyDb0bpFopEkP_3vP1ax7D8rwHe9QkI,2004
@@ -114,14 +116,15 @@ glpi_python_client/models/api_schema/assets/_computer.py,sha256=me3px9rkaN_ZataD
114
116
  glpi_python_client/models/api_schema/assets/_contract_item.py,sha256=sS9SqdI47IGFaFBa5_8koOu26wut198-N-CG1OKbl7s,3430
115
117
  glpi_python_client/models/api_schema/assistance/__init__.py,sha256=HoycYjTWQbP8_cm6li34jjREG64B1n-MNcD_G9FP1sI,714
116
118
  glpi_python_client/models/api_schema/assistance/_team.py,sha256=R9KYKuQEjm_E9FQLnI9i-6dvNs8S7AWYu996-q56wtk,2690
117
- glpi_python_client/models/api_schema/assistance/_ticket.py,sha256=huqVMxqucM11MSJtr-OjOxOYZV685qaKBF0EWhA5iUA,17294
119
+ glpi_python_client/models/api_schema/assistance/_ticket.py,sha256=pz6Q6zP1TnLGcpaE4csaE9193a7mXU4CuWE3zajYzL8,18188
118
120
  glpi_python_client/models/api_schema/assistance/timeline/__init__.py,sha256=-1-EM2mmEcEnv1nLzo4_gxQU4KukWC_5fCJt2mx7BSI,1248
119
121
  glpi_python_client/models/api_schema/assistance/timeline/_document.py,sha256=3TxYwNm5CAZRJUO0vJznZ8q3a43RBHgiLPNAJFYy8F0,3805
120
122
  glpi_python_client/models/api_schema/assistance/timeline/_followup.py,sha256=82ZiuVzkoDs-Ns4OlVGaoGITAtkw9FTEku2qE8jWFOg,7481
121
123
  glpi_python_client/models/api_schema/assistance/timeline/_solution.py,sha256=qUkX0BI1Q8wClwYzPLu8pK_0NQfDfK8lNr_hVEYtfMc,6900
122
124
  glpi_python_client/models/api_schema/assistance/timeline/_task.py,sha256=KdmSKx72uloFbLwAsnPkLODO5oEJmnGeImF85U_YB6Y,9054
123
- glpi_python_client/models/api_schema/dropdowns/__init__.py,sha256=yWvEnIRiWGD5P6afCd5KQUKQVpdCuVPUTR9AV4D9o7I,582
125
+ glpi_python_client/models/api_schema/dropdowns/__init__.py,sha256=nDLumKR9hLUbF5TohNUVz33QR-rrQHIyfuTwAj_ECp0,848
124
126
  glpi_python_client/models/api_schema/dropdowns/_contract_type.py,sha256=vvPP1Zrgd1A1rfuHhgpkJVCQOs05zOIUBXkmVlfRGUQ,3191
127
+ glpi_python_client/models/api_schema/dropdowns/_itil_category.py,sha256=SsWXJnQce4c_MVSwfzXEVEJL1ep9kFHyz6zlbGB5WgM,7860
125
128
  glpi_python_client/models/api_schema/dropdowns/_location.py,sha256=xHS_hrOWZMpWeKwiYSG7yixfFv3RX7vx6wYdwTzADDs,6691
126
129
  glpi_python_client/models/api_schema/knowledgebase/__init__.py,sha256=M8Z5lBc5zQU67yPVKm0aSIOepLIcdTvCKVgPVI8mtpo,1299
127
130
  glpi_python_client/models/api_schema/knowledgebase/_article.py,sha256=zNLnkkdfGjXhU3AVbGgJ6Da0Y4ehDmBBw6tOezILPB8,5757
@@ -140,7 +143,7 @@ glpi_python_client/models/custom_schema/_ticket_context.py,sha256=jnlfgho-aDbmA9
140
143
  glpi_python_client/testing/__init__.py,sha256=iLtUyJjyv3fEhy3PN25NxNTbtqDl3SoHLbNium0Z80U,568
141
144
  glpi_python_client/testing/fixtures.py,sha256=HKt6MXHgcmLn4L98pSwp-oGlc9C--_vrABNe5G_iBeg,1286
142
145
  glpi_python_client/testing/utils.py,sha256=JyO3w2d-0kYdtC1hEZ2Tu_YjnCz8nUQ_Ck05-1EhsX4,4404
143
- glpi_python_client-0.6.8.dist-info/METADATA,sha256=NO8Su8O8dS0rA3fzg_Heai9rxsNdsPElUHsmmsW8UbY,8234
144
- glpi_python_client-0.6.8.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
145
- glpi_python_client-0.6.8.dist-info/licenses/LICENSE,sha256=nL8re-TIKkxCoL7OkSBja6EB4NsQR1HoOJgxv_MEhtc,1088
146
- glpi_python_client-0.6.8.dist-info/RECORD,,
146
+ glpi_python_client-0.6.10.dist-info/METADATA,sha256=zGcxhxXqgjRR_dkFoRmVRHvUVh1CO9WYiOAjGQ1m_Bs,8235
147
+ glpi_python_client-0.6.10.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
148
+ glpi_python_client-0.6.10.dist-info/licenses/LICENSE,sha256=nL8re-TIKkxCoL7OkSBja6EB4NsQR1HoOJgxv_MEhtc,1088
149
+ glpi_python_client-0.6.10.dist-info/RECORD,,