glpi-api 0.6.0__py3-none-any.whl → 0.7.0__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.
- {glpi_api-0.6.0.dist-info → glpi_api-0.7.0.dist-info}/METADATA +1 -1
- glpi_api-0.7.0.dist-info/RECORD +6 -0
- {glpi_api-0.6.0.dist-info → glpi_api-0.7.0.dist-info}/WHEEL +1 -1
- glpi_api.py +6 -7
- glpi_api-0.6.0.dist-info/RECORD +0 -6
- {glpi_api-0.6.0.dist-info → glpi_api-0.7.0.dist-info}/LICENSE +0 -0
- {glpi_api-0.6.0.dist-info → glpi_api-0.7.0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,6 @@
|
|
1
|
+
glpi_api.py,sha256=TR4bfSklkoRAvjqvYttYDj9vBR9ZrvyZALc6ozq5rwY,36738
|
2
|
+
glpi_api-0.7.0.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
3
|
+
glpi_api-0.7.0.dist-info/METADATA,sha256=1E-nF1eqvqX50A57_D0jY1nFbqq7kwx2u_UkQr0W1Gs,833
|
4
|
+
glpi_api-0.7.0.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
|
5
|
+
glpi_api-0.7.0.dist-info/top_level.txt,sha256=YOkX5fKd6VWRx_-iMUfVJN15Xobw1VQ-mUF8HKWK2l0,9
|
6
|
+
glpi_api-0.7.0.dist-info/RECORD,,
|
glpi_api.py
CHANGED
@@ -514,7 +514,7 @@ class GLPI:
|
|
514
514
|
}.get(response.status_code, _unknown_error)(response)
|
515
515
|
|
516
516
|
@_catch_errors
|
517
|
-
def get_multiple_items(self, *items):
|
517
|
+
def get_multiple_items(self, *items, **kwargs):
|
518
518
|
"""`API documentation
|
519
519
|
<https://github.com/glpi-project/glpi/blob/master/apirest.md#get-multiple-items>`__
|
520
520
|
|
@@ -538,8 +538,10 @@ class GLPI:
|
|
538
538
|
for idx, item in enumerate(items)
|
539
539
|
for key, value in item.items()}
|
540
540
|
|
541
|
+
params = _convert_bools(kwargs)
|
542
|
+
params.update(format_items(items))
|
541
543
|
response = self.session.get(self._set_method('getMultipleItems'),
|
542
|
-
params=
|
544
|
+
params=params)
|
543
545
|
return {
|
544
546
|
200: lambda r: r.json(),
|
545
547
|
400: _glpi_error,
|
@@ -902,12 +904,9 @@ class GLPI:
|
|
902
904
|
be deleted for some reasons) and purge the created but incomplete document.
|
903
905
|
"""
|
904
906
|
with open(filepath, 'rb') as fhandler:
|
905
|
-
response =
|
907
|
+
response = self.session.post(
|
906
908
|
url=self._set_method('Document'),
|
907
|
-
headers={
|
908
|
-
'Session-Token': self.session.headers['Session-Token'],
|
909
|
-
'App-Token': self.session.headers['App-Token']
|
910
|
-
},
|
909
|
+
headers={'Content-Type': None},
|
911
910
|
files={
|
912
911
|
'uploadManifest': (
|
913
912
|
None,
|
glpi_api-0.6.0.dist-info/RECORD
DELETED
@@ -1,6 +0,0 @@
|
|
1
|
-
glpi_api.py,sha256=I2q6ISLNib_--WiRaqx1ASfvcnrDU8JBLHlut6IW7fY,36794
|
2
|
-
glpi_api-0.6.0.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
3
|
-
glpi_api-0.6.0.dist-info/METADATA,sha256=7wZFajZbtznfwvAQPz5wtNkYToHdSiR4fFNosp5E-gQ,833
|
4
|
-
glpi_api-0.6.0.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
5
|
-
glpi_api-0.6.0.dist-info/top_level.txt,sha256=YOkX5fKd6VWRx_-iMUfVJN15Xobw1VQ-mUF8HKWK2l0,9
|
6
|
-
glpi_api-0.6.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|