ignos-api-client 2023.12.18.7821__tar.gz → 2023.12.29.7928__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.
- {ignos-api-client-2023.12.18.7821 → ignos-api-client-2023.12.29.7928}/PKG-INFO +2 -2
- {ignos-api-client-2023.12.18.7821 → ignos-api-client-2023.12.29.7928}/ignos/api/client/_version.py +1 -1
- {ignos-api-client-2023.12.18.7821 → ignos-api-client-2023.12.29.7928}/ignos/api/client/aio/operations/_operations.py +106 -0
- {ignos-api-client-2023.12.18.7821 → ignos-api-client-2023.12.29.7928}/ignos/api/client/models/__init__.py +4 -0
- {ignos-api-client-2023.12.18.7821 → ignos-api-client-2023.12.29.7928}/ignos/api/client/models/_enums.py +8 -0
- {ignos-api-client-2023.12.18.7821 → ignos-api-client-2023.12.29.7928}/ignos/api/client/models/_models.py +42 -3
- {ignos-api-client-2023.12.18.7821 → ignos-api-client-2023.12.29.7928}/ignos/api/client/operations/_operations.py +141 -0
- {ignos-api-client-2023.12.18.7821 → ignos-api-client-2023.12.29.7928}/ignos_api_client.egg-info/PKG-INFO +2 -2
- ignos-api-client-2023.12.29.7928/ignos_api_client.egg-info/requires.txt +2 -0
- {ignos-api-client-2023.12.18.7821 → ignos-api-client-2023.12.29.7928}/setup.py +2 -2
- ignos-api-client-2023.12.18.7821/ignos_api_client.egg-info/requires.txt +0 -2
- {ignos-api-client-2023.12.18.7821 → ignos-api-client-2023.12.29.7928}/ignos/__init__.py +0 -0
- {ignos-api-client-2023.12.18.7821 → ignos-api-client-2023.12.29.7928}/ignos/api/__init__.py +0 -0
- {ignos-api-client-2023.12.18.7821 → ignos-api-client-2023.12.29.7928}/ignos/api/client/__init__.py +0 -0
- {ignos-api-client-2023.12.18.7821 → ignos-api-client-2023.12.29.7928}/ignos/api/client/_client.py +0 -0
- {ignos-api-client-2023.12.18.7821 → ignos-api-client-2023.12.29.7928}/ignos/api/client/_configuration.py +0 -0
- {ignos-api-client-2023.12.18.7821 → ignos-api-client-2023.12.29.7928}/ignos/api/client/_patch.py +0 -0
- {ignos-api-client-2023.12.18.7821 → ignos-api-client-2023.12.29.7928}/ignos/api/client/_serialization.py +0 -0
- {ignos-api-client-2023.12.18.7821 → ignos-api-client-2023.12.29.7928}/ignos/api/client/aio/__init__.py +0 -0
- {ignos-api-client-2023.12.18.7821 → ignos-api-client-2023.12.29.7928}/ignos/api/client/aio/_client.py +0 -0
- {ignos-api-client-2023.12.18.7821 → ignos-api-client-2023.12.29.7928}/ignos/api/client/aio/_configuration.py +0 -0
- {ignos-api-client-2023.12.18.7821 → ignos-api-client-2023.12.29.7928}/ignos/api/client/aio/_patch.py +0 -0
- {ignos-api-client-2023.12.18.7821 → ignos-api-client-2023.12.29.7928}/ignos/api/client/aio/operations/__init__.py +0 -0
- {ignos-api-client-2023.12.18.7821 → ignos-api-client-2023.12.29.7928}/ignos/api/client/aio/operations/_patch.py +0 -0
- {ignos-api-client-2023.12.18.7821 → ignos-api-client-2023.12.29.7928}/ignos/api/client/models/_patch.py +0 -0
- {ignos-api-client-2023.12.18.7821 → ignos-api-client-2023.12.29.7928}/ignos/api/client/operations/__init__.py +0 -0
- {ignos-api-client-2023.12.18.7821 → ignos-api-client-2023.12.29.7928}/ignos/api/client/operations/_patch.py +0 -0
- {ignos-api-client-2023.12.18.7821 → ignos-api-client-2023.12.29.7928}/ignos/api/client/py.typed +0 -0
- {ignos-api-client-2023.12.18.7821 → ignos-api-client-2023.12.29.7928}/ignos_api_client.egg-info/SOURCES.txt +0 -0
- {ignos-api-client-2023.12.18.7821 → ignos-api-client-2023.12.29.7928}/ignos_api_client.egg-info/dependency_links.txt +0 -0
- {ignos-api-client-2023.12.18.7821 → ignos-api-client-2023.12.29.7928}/ignos_api_client.egg-info/top_level.txt +0 -0
- {ignos-api-client-2023.12.18.7821 → ignos-api-client-2023.12.29.7928}/setup.cfg +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: ignos-api-client
|
|
3
|
-
Version: 2023.12.
|
|
3
|
+
Version: 2023.12.29.7928
|
|
4
4
|
Summary: ignos-api-client
|
|
5
5
|
Home-page:
|
|
6
6
|
Author-email:
|
|
7
7
|
Keywords: azure,azure sdk
|
|
8
8
|
Requires-Dist: isodate<1.0.0,>=0.6.1
|
|
9
|
-
Requires-Dist: azure-core<2.0.0,>=1.
|
|
9
|
+
Requires-Dist: azure-core<2.0.0,>=1.29.5
|
|
10
10
|
|
|
11
11
|
IgnosPortal.
|
|
12
12
|
|
|
@@ -26,6 +26,7 @@ from azure.core.utils import case_insensitive_dict
|
|
|
26
26
|
|
|
27
27
|
from ... import models as _models
|
|
28
28
|
from ...operations._operations import (
|
|
29
|
+
build_alerts_alert_notification_access_request,
|
|
29
30
|
build_alerts_delete_machine_inactivity_subscription_request,
|
|
30
31
|
build_alerts_get_machine_inactivity_alert_type_request,
|
|
31
32
|
build_alerts_list_machine_inactivity_subscriptions_request,
|
|
@@ -116,6 +117,7 @@ from ...operations._operations import (
|
|
|
116
117
|
build_document_types_list_document_types_request,
|
|
117
118
|
build_document_types_update_document_type_request,
|
|
118
119
|
build_document_types_update_document_type_rules_request,
|
|
120
|
+
build_documents_get_documents_with_tag_value_count_request,
|
|
119
121
|
build_documents_import_document_request,
|
|
120
122
|
build_electrical_create_electrical_iot_config_request,
|
|
121
123
|
build_electrical_delete_electrical_iot_config_request,
|
|
@@ -417,6 +419,53 @@ class AlertsOperations:
|
|
|
417
419
|
self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
|
418
420
|
self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
|
419
421
|
|
|
422
|
+
@distributed_trace_async
|
|
423
|
+
async def alert_notification_access(self, **kwargs: Any) -> _models.AlertNotificationAccessDto:
|
|
424
|
+
"""alert_notification_access.
|
|
425
|
+
|
|
426
|
+
:return: AlertNotificationAccessDto
|
|
427
|
+
:rtype: ~ignos.api.client.models.AlertNotificationAccessDto
|
|
428
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
429
|
+
"""
|
|
430
|
+
error_map = {
|
|
431
|
+
401: ClientAuthenticationError,
|
|
432
|
+
404: ResourceNotFoundError,
|
|
433
|
+
409: ResourceExistsError,
|
|
434
|
+
304: ResourceNotModifiedError,
|
|
435
|
+
}
|
|
436
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
437
|
+
|
|
438
|
+
_headers = kwargs.pop("headers", {}) or {}
|
|
439
|
+
_params = kwargs.pop("params", {}) or {}
|
|
440
|
+
|
|
441
|
+
cls: ClsType[_models.AlertNotificationAccessDto] = kwargs.pop("cls", None)
|
|
442
|
+
|
|
443
|
+
_request = build_alerts_alert_notification_access_request(
|
|
444
|
+
headers=_headers,
|
|
445
|
+
params=_params,
|
|
446
|
+
)
|
|
447
|
+
_request.url = self._client.format_url(_request.url)
|
|
448
|
+
|
|
449
|
+
_stream = False
|
|
450
|
+
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
|
451
|
+
_request, stream=_stream, **kwargs
|
|
452
|
+
)
|
|
453
|
+
|
|
454
|
+
response = pipeline_response.http_response
|
|
455
|
+
|
|
456
|
+
if response.status_code not in [200]:
|
|
457
|
+
if _stream:
|
|
458
|
+
await response.read() # Load the body in memory and close the socket
|
|
459
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
460
|
+
raise HttpResponseError(response=response)
|
|
461
|
+
|
|
462
|
+
deserialized = self._deserialize("AlertNotificationAccessDto", pipeline_response)
|
|
463
|
+
|
|
464
|
+
if cls:
|
|
465
|
+
return cls(pipeline_response, deserialized, {}) # type: ignore
|
|
466
|
+
|
|
467
|
+
return deserialized # type: ignore
|
|
468
|
+
|
|
420
469
|
@distributed_trace_async
|
|
421
470
|
async def get_machine_inactivity_alert_type(self, **kwargs: Any) -> _models.MachineInactivityAlertTypeDto:
|
|
422
471
|
"""get_machine_inactivity_alert_type.
|
|
@@ -6412,6 +6461,63 @@ class DocumentsOperations:
|
|
|
6412
6461
|
|
|
6413
6462
|
return deserialized # type: ignore
|
|
6414
6463
|
|
|
6464
|
+
@distributed_trace_async
|
|
6465
|
+
async def get_documents_with_tag_value_count(
|
|
6466
|
+
self, *, tag_name: Optional[str] = None, tag_value: Optional[str] = None, **kwargs: Any
|
|
6467
|
+
) -> int:
|
|
6468
|
+
"""Returns the number of documents found with the given tag name and value.
|
|
6469
|
+
|
|
6470
|
+
Returns the number of documents found with the given tag name and value.
|
|
6471
|
+
|
|
6472
|
+
:keyword tag_name: Default value is None.
|
|
6473
|
+
:paramtype tag_name: str
|
|
6474
|
+
:keyword tag_value: Default value is None.
|
|
6475
|
+
:paramtype tag_value: str
|
|
6476
|
+
:return: int
|
|
6477
|
+
:rtype: int
|
|
6478
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
6479
|
+
"""
|
|
6480
|
+
error_map = {
|
|
6481
|
+
401: ClientAuthenticationError,
|
|
6482
|
+
404: ResourceNotFoundError,
|
|
6483
|
+
409: ResourceExistsError,
|
|
6484
|
+
304: ResourceNotModifiedError,
|
|
6485
|
+
}
|
|
6486
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
6487
|
+
|
|
6488
|
+
_headers = kwargs.pop("headers", {}) or {}
|
|
6489
|
+
_params = kwargs.pop("params", {}) or {}
|
|
6490
|
+
|
|
6491
|
+
cls: ClsType[int] = kwargs.pop("cls", None)
|
|
6492
|
+
|
|
6493
|
+
_request = build_documents_get_documents_with_tag_value_count_request(
|
|
6494
|
+
tag_name=tag_name,
|
|
6495
|
+
tag_value=tag_value,
|
|
6496
|
+
headers=_headers,
|
|
6497
|
+
params=_params,
|
|
6498
|
+
)
|
|
6499
|
+
_request.url = self._client.format_url(_request.url)
|
|
6500
|
+
|
|
6501
|
+
_stream = False
|
|
6502
|
+
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
|
6503
|
+
_request, stream=_stream, **kwargs
|
|
6504
|
+
)
|
|
6505
|
+
|
|
6506
|
+
response = pipeline_response.http_response
|
|
6507
|
+
|
|
6508
|
+
if response.status_code not in [200]:
|
|
6509
|
+
if _stream:
|
|
6510
|
+
await response.read() # Load the body in memory and close the socket
|
|
6511
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
6512
|
+
raise HttpResponseError(response=response)
|
|
6513
|
+
|
|
6514
|
+
deserialized = self._deserialize("int", pipeline_response)
|
|
6515
|
+
|
|
6516
|
+
if cls:
|
|
6517
|
+
return cls(pipeline_response, deserialized, {}) # type: ignore
|
|
6518
|
+
|
|
6519
|
+
return deserialized # type: ignore
|
|
6520
|
+
|
|
6415
6521
|
|
|
6416
6522
|
class DocumentTypesOperations:
|
|
6417
6523
|
"""
|
|
@@ -10,6 +10,7 @@ from ._models import AcceptSupplierInviteRequest
|
|
|
10
10
|
from ._models import AddMesLink
|
|
11
11
|
from ._models import AddResourceTypeForNeedsGenerator
|
|
12
12
|
from ._models import AgentConfigDto
|
|
13
|
+
from ._models import AlertNotificationAccessDto
|
|
13
14
|
from ._models import AssetConsumptionDto
|
|
14
15
|
from ._models import AssetDto
|
|
15
16
|
from ._models import AssetDtoPagedResult
|
|
@@ -398,6 +399,7 @@ from ._models import WorkspaceListDto
|
|
|
398
399
|
from ._models import WorkspaceWidgetBreakpointDto
|
|
399
400
|
from ._models import WorkspaceWidgetDto
|
|
400
401
|
|
|
402
|
+
from ._enums import AlertNotificationAccessStatusDto
|
|
401
403
|
from ._enums import BonusType
|
|
402
404
|
from ._enums import CalibrationListStatus
|
|
403
405
|
from ._enums import CalibrationStatusDto
|
|
@@ -454,6 +456,7 @@ __all__ = [
|
|
|
454
456
|
"AddMesLink",
|
|
455
457
|
"AddResourceTypeForNeedsGenerator",
|
|
456
458
|
"AgentConfigDto",
|
|
459
|
+
"AlertNotificationAccessDto",
|
|
457
460
|
"AssetConsumptionDto",
|
|
458
461
|
"AssetDto",
|
|
459
462
|
"AssetDtoPagedResult",
|
|
@@ -841,6 +844,7 @@ __all__ = [
|
|
|
841
844
|
"WorkspaceListDto",
|
|
842
845
|
"WorkspaceWidgetBreakpointDto",
|
|
843
846
|
"WorkspaceWidgetDto",
|
|
847
|
+
"AlertNotificationAccessStatusDto",
|
|
844
848
|
"BonusType",
|
|
845
849
|
"CalibrationListStatus",
|
|
846
850
|
"CalibrationStatusDto",
|
|
@@ -10,6 +10,14 @@ from enum import Enum
|
|
|
10
10
|
from azure.core import CaseInsensitiveEnumMeta
|
|
11
11
|
|
|
12
12
|
|
|
13
|
+
class AlertNotificationAccessStatusDto(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
|
14
|
+
"""AlertNotificationAccessStatusDto."""
|
|
15
|
+
|
|
16
|
+
ACCESS_OK = "AccessOk"
|
|
17
|
+
NOT_INSTALLED = "NotInstalled"
|
|
18
|
+
USER_NO_ACCESS = "UserNoAccess"
|
|
19
|
+
|
|
20
|
+
|
|
13
21
|
class BonusType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
|
14
22
|
"""BonusType."""
|
|
15
23
|
|
|
@@ -203,6 +203,44 @@ class AgentConfigDto(_serialization.Model):
|
|
|
203
203
|
self.configuration_refresh_time = configuration_refresh_time
|
|
204
204
|
|
|
205
205
|
|
|
206
|
+
class AlertNotificationAccessDto(_serialization.Model):
|
|
207
|
+
"""AlertNotificationAccessDto.
|
|
208
|
+
|
|
209
|
+
Variables are only populated by the server, and will be ignored when sending a request.
|
|
210
|
+
|
|
211
|
+
All required parameters must be populated in order to send to server.
|
|
212
|
+
|
|
213
|
+
:ivar status: Required. Known values are: "AccessOk", "NotInstalled", and "UserNoAccess".
|
|
214
|
+
:vartype status: str or ~ignos.api.client.models.AlertNotificationAccessStatusDto
|
|
215
|
+
:ivar access_ok:
|
|
216
|
+
:vartype access_ok: bool
|
|
217
|
+
:ivar reason:
|
|
218
|
+
:vartype reason: str
|
|
219
|
+
"""
|
|
220
|
+
|
|
221
|
+
_validation = {
|
|
222
|
+
"status": {"required": True},
|
|
223
|
+
"access_ok": {"readonly": True},
|
|
224
|
+
"reason": {"readonly": True},
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
_attribute_map = {
|
|
228
|
+
"status": {"key": "status", "type": "str"},
|
|
229
|
+
"access_ok": {"key": "accessOk", "type": "bool"},
|
|
230
|
+
"reason": {"key": "reason", "type": "str"},
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
def __init__(self, *, status: Union[str, "_models.AlertNotificationAccessStatusDto"], **kwargs: Any) -> None:
|
|
234
|
+
"""
|
|
235
|
+
:keyword status: Required. Known values are: "AccessOk", "NotInstalled", and "UserNoAccess".
|
|
236
|
+
:paramtype status: str or ~ignos.api.client.models.AlertNotificationAccessStatusDto
|
|
237
|
+
"""
|
|
238
|
+
super().__init__(**kwargs)
|
|
239
|
+
self.status = status
|
|
240
|
+
self.access_ok = None
|
|
241
|
+
self.reason = None
|
|
242
|
+
|
|
243
|
+
|
|
206
244
|
class AssetConsumptionDto(_serialization.Model):
|
|
207
245
|
"""AssetConsumptionDto.
|
|
208
246
|
|
|
@@ -19692,13 +19730,14 @@ class StartOperationDto(_serialization.Model):
|
|
|
19692
19730
|
:vartype operation_number: int
|
|
19693
19731
|
:ivar started_quantity:
|
|
19694
19732
|
:vartype started_quantity: int
|
|
19695
|
-
:ivar resource:
|
|
19733
|
+
:ivar resource: Required.
|
|
19696
19734
|
:vartype resource: str
|
|
19697
19735
|
"""
|
|
19698
19736
|
|
|
19699
19737
|
_validation = {
|
|
19700
19738
|
"work_order": {"required": True, "min_length": 1},
|
|
19701
19739
|
"operation_number": {"required": True},
|
|
19740
|
+
"resource": {"required": True, "min_length": 1},
|
|
19702
19741
|
}
|
|
19703
19742
|
|
|
19704
19743
|
_attribute_map = {
|
|
@@ -19713,8 +19752,8 @@ class StartOperationDto(_serialization.Model):
|
|
|
19713
19752
|
*,
|
|
19714
19753
|
work_order: str,
|
|
19715
19754
|
operation_number: int,
|
|
19755
|
+
resource: str,
|
|
19716
19756
|
started_quantity: Optional[int] = None,
|
|
19717
|
-
resource: Optional[str] = None,
|
|
19718
19757
|
**kwargs: Any
|
|
19719
19758
|
) -> None:
|
|
19720
19759
|
"""
|
|
@@ -19724,7 +19763,7 @@ class StartOperationDto(_serialization.Model):
|
|
|
19724
19763
|
:paramtype operation_number: int
|
|
19725
19764
|
:keyword started_quantity:
|
|
19726
19765
|
:paramtype started_quantity: int
|
|
19727
|
-
:keyword resource:
|
|
19766
|
+
:keyword resource: Required.
|
|
19728
19767
|
:paramtype resource: str
|
|
19729
19768
|
"""
|
|
19730
19769
|
super().__init__(**kwargs)
|
|
@@ -39,6 +39,20 @@ _SERIALIZER = Serializer()
|
|
|
39
39
|
_SERIALIZER.client_side_validation = False
|
|
40
40
|
|
|
41
41
|
|
|
42
|
+
def build_alerts_alert_notification_access_request(**kwargs: Any) -> HttpRequest: # pylint: disable=name-too-long
|
|
43
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
44
|
+
|
|
45
|
+
accept = _headers.pop("Accept", "application/json")
|
|
46
|
+
|
|
47
|
+
# Construct URL
|
|
48
|
+
_url = "/alerts/useraccess"
|
|
49
|
+
|
|
50
|
+
# Construct headers
|
|
51
|
+
_headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
|
|
52
|
+
|
|
53
|
+
return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs)
|
|
54
|
+
|
|
55
|
+
|
|
42
56
|
def build_alerts_get_machine_inactivity_alert_type_request( # pylint: disable=name-too-long
|
|
43
57
|
**kwargs: Any,
|
|
44
58
|
) -> HttpRequest:
|
|
@@ -1553,6 +1567,29 @@ def build_documents_import_document_request(**kwargs: Any) -> HttpRequest:
|
|
|
1553
1567
|
return HttpRequest(method="POST", url=_url, headers=_headers, **kwargs)
|
|
1554
1568
|
|
|
1555
1569
|
|
|
1570
|
+
def build_documents_get_documents_with_tag_value_count_request( # pylint: disable=name-too-long
|
|
1571
|
+
*, tag_name: Optional[str] = None, tag_value: Optional[str] = None, **kwargs: Any
|
|
1572
|
+
) -> HttpRequest:
|
|
1573
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
1574
|
+
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
|
1575
|
+
|
|
1576
|
+
accept = _headers.pop("Accept", "application/json")
|
|
1577
|
+
|
|
1578
|
+
# Construct URL
|
|
1579
|
+
_url = "/documents/count"
|
|
1580
|
+
|
|
1581
|
+
# Construct parameters
|
|
1582
|
+
if tag_name is not None:
|
|
1583
|
+
_params["tagName"] = _SERIALIZER.query("tag_name", tag_name, "str")
|
|
1584
|
+
if tag_value is not None:
|
|
1585
|
+
_params["tagValue"] = _SERIALIZER.query("tag_value", tag_value, "str")
|
|
1586
|
+
|
|
1587
|
+
# Construct headers
|
|
1588
|
+
_headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
|
|
1589
|
+
|
|
1590
|
+
return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs)
|
|
1591
|
+
|
|
1592
|
+
|
|
1556
1593
|
def build_document_types_list_document_types_request( # pylint: disable=name-too-long
|
|
1557
1594
|
*, include_inactive: bool = False, **kwargs: Any
|
|
1558
1595
|
) -> HttpRequest:
|
|
@@ -7609,6 +7646,53 @@ class AlertsOperations:
|
|
|
7609
7646
|
self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
|
7610
7647
|
self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
|
7611
7648
|
|
|
7649
|
+
@distributed_trace
|
|
7650
|
+
def alert_notification_access(self, **kwargs: Any) -> _models.AlertNotificationAccessDto:
|
|
7651
|
+
"""alert_notification_access.
|
|
7652
|
+
|
|
7653
|
+
:return: AlertNotificationAccessDto
|
|
7654
|
+
:rtype: ~ignos.api.client.models.AlertNotificationAccessDto
|
|
7655
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
7656
|
+
"""
|
|
7657
|
+
error_map = {
|
|
7658
|
+
401: ClientAuthenticationError,
|
|
7659
|
+
404: ResourceNotFoundError,
|
|
7660
|
+
409: ResourceExistsError,
|
|
7661
|
+
304: ResourceNotModifiedError,
|
|
7662
|
+
}
|
|
7663
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
7664
|
+
|
|
7665
|
+
_headers = kwargs.pop("headers", {}) or {}
|
|
7666
|
+
_params = kwargs.pop("params", {}) or {}
|
|
7667
|
+
|
|
7668
|
+
cls: ClsType[_models.AlertNotificationAccessDto] = kwargs.pop("cls", None)
|
|
7669
|
+
|
|
7670
|
+
_request = build_alerts_alert_notification_access_request(
|
|
7671
|
+
headers=_headers,
|
|
7672
|
+
params=_params,
|
|
7673
|
+
)
|
|
7674
|
+
_request.url = self._client.format_url(_request.url)
|
|
7675
|
+
|
|
7676
|
+
_stream = False
|
|
7677
|
+
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
|
7678
|
+
_request, stream=_stream, **kwargs
|
|
7679
|
+
)
|
|
7680
|
+
|
|
7681
|
+
response = pipeline_response.http_response
|
|
7682
|
+
|
|
7683
|
+
if response.status_code not in [200]:
|
|
7684
|
+
if _stream:
|
|
7685
|
+
response.read() # Load the body in memory and close the socket
|
|
7686
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
7687
|
+
raise HttpResponseError(response=response)
|
|
7688
|
+
|
|
7689
|
+
deserialized = self._deserialize("AlertNotificationAccessDto", pipeline_response)
|
|
7690
|
+
|
|
7691
|
+
if cls:
|
|
7692
|
+
return cls(pipeline_response, deserialized, {}) # type: ignore
|
|
7693
|
+
|
|
7694
|
+
return deserialized # type: ignore
|
|
7695
|
+
|
|
7612
7696
|
@distributed_trace
|
|
7613
7697
|
def get_machine_inactivity_alert_type(self, **kwargs: Any) -> _models.MachineInactivityAlertTypeDto:
|
|
7614
7698
|
"""get_machine_inactivity_alert_type.
|
|
@@ -13600,6 +13684,63 @@ class DocumentsOperations:
|
|
|
13600
13684
|
|
|
13601
13685
|
return deserialized # type: ignore
|
|
13602
13686
|
|
|
13687
|
+
@distributed_trace
|
|
13688
|
+
def get_documents_with_tag_value_count(
|
|
13689
|
+
self, *, tag_name: Optional[str] = None, tag_value: Optional[str] = None, **kwargs: Any
|
|
13690
|
+
) -> int:
|
|
13691
|
+
"""Returns the number of documents found with the given tag name and value.
|
|
13692
|
+
|
|
13693
|
+
Returns the number of documents found with the given tag name and value.
|
|
13694
|
+
|
|
13695
|
+
:keyword tag_name: Default value is None.
|
|
13696
|
+
:paramtype tag_name: str
|
|
13697
|
+
:keyword tag_value: Default value is None.
|
|
13698
|
+
:paramtype tag_value: str
|
|
13699
|
+
:return: int
|
|
13700
|
+
:rtype: int
|
|
13701
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
13702
|
+
"""
|
|
13703
|
+
error_map = {
|
|
13704
|
+
401: ClientAuthenticationError,
|
|
13705
|
+
404: ResourceNotFoundError,
|
|
13706
|
+
409: ResourceExistsError,
|
|
13707
|
+
304: ResourceNotModifiedError,
|
|
13708
|
+
}
|
|
13709
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
13710
|
+
|
|
13711
|
+
_headers = kwargs.pop("headers", {}) or {}
|
|
13712
|
+
_params = kwargs.pop("params", {}) or {}
|
|
13713
|
+
|
|
13714
|
+
cls: ClsType[int] = kwargs.pop("cls", None)
|
|
13715
|
+
|
|
13716
|
+
_request = build_documents_get_documents_with_tag_value_count_request(
|
|
13717
|
+
tag_name=tag_name,
|
|
13718
|
+
tag_value=tag_value,
|
|
13719
|
+
headers=_headers,
|
|
13720
|
+
params=_params,
|
|
13721
|
+
)
|
|
13722
|
+
_request.url = self._client.format_url(_request.url)
|
|
13723
|
+
|
|
13724
|
+
_stream = False
|
|
13725
|
+
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
|
13726
|
+
_request, stream=_stream, **kwargs
|
|
13727
|
+
)
|
|
13728
|
+
|
|
13729
|
+
response = pipeline_response.http_response
|
|
13730
|
+
|
|
13731
|
+
if response.status_code not in [200]:
|
|
13732
|
+
if _stream:
|
|
13733
|
+
response.read() # Load the body in memory and close the socket
|
|
13734
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
13735
|
+
raise HttpResponseError(response=response)
|
|
13736
|
+
|
|
13737
|
+
deserialized = self._deserialize("int", pipeline_response)
|
|
13738
|
+
|
|
13739
|
+
if cls:
|
|
13740
|
+
return cls(pipeline_response, deserialized, {}) # type: ignore
|
|
13741
|
+
|
|
13742
|
+
return deserialized # type: ignore
|
|
13743
|
+
|
|
13603
13744
|
|
|
13604
13745
|
class DocumentTypesOperations:
|
|
13605
13746
|
"""
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: ignos-api-client
|
|
3
|
-
Version: 2023.12.
|
|
3
|
+
Version: 2023.12.29.7928
|
|
4
4
|
Summary: ignos-api-client
|
|
5
5
|
Home-page:
|
|
6
6
|
Author-email:
|
|
7
7
|
Keywords: azure,azure sdk
|
|
8
8
|
Requires-Dist: isodate<1.0.0,>=0.6.1
|
|
9
|
-
Requires-Dist: azure-core<2.0.0,>=1.
|
|
9
|
+
Requires-Dist: azure-core<2.0.0,>=1.29.5
|
|
10
10
|
|
|
11
11
|
IgnosPortal.
|
|
12
12
|
|
|
@@ -10,7 +10,7 @@ from setuptools import setup, find_packages
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
PACKAGE_NAME = "ignos-api-client"
|
|
13
|
-
version = "2023.12.
|
|
13
|
+
version = "2023.12.29.7928"
|
|
14
14
|
setup(
|
|
15
15
|
name=PACKAGE_NAME,
|
|
16
16
|
version=version,
|
|
@@ -22,7 +22,7 @@ setup(
|
|
|
22
22
|
include_package_data=True,
|
|
23
23
|
install_requires=[
|
|
24
24
|
"isodate<1.0.0,>=0.6.1",
|
|
25
|
-
"azure-core<2.0.0,>=1.
|
|
25
|
+
"azure-core<2.0.0,>=1.29.5",
|
|
26
26
|
],
|
|
27
27
|
long_description="""\
|
|
28
28
|
IgnosPortal.
|
|
File without changes
|
|
File without changes
|
{ignos-api-client-2023.12.18.7821 → ignos-api-client-2023.12.29.7928}/ignos/api/client/__init__.py
RENAMED
|
File without changes
|
{ignos-api-client-2023.12.18.7821 → ignos-api-client-2023.12.29.7928}/ignos/api/client/_client.py
RENAMED
|
File without changes
|
|
File without changes
|
{ignos-api-client-2023.12.18.7821 → ignos-api-client-2023.12.29.7928}/ignos/api/client/_patch.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{ignos-api-client-2023.12.18.7821 → ignos-api-client-2023.12.29.7928}/ignos/api/client/aio/_patch.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{ignos-api-client-2023.12.18.7821 → ignos-api-client-2023.12.29.7928}/ignos/api/client/py.typed
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|