ignos-api-client 2023.12.18.7821__tar.gz → 2023.12.22.7919__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 (32) hide show
  1. {ignos-api-client-2023.12.18.7821 → ignos-api-client-2023.12.22.7919}/PKG-INFO +2 -2
  2. {ignos-api-client-2023.12.18.7821 → ignos-api-client-2023.12.22.7919}/ignos/api/client/_version.py +1 -1
  3. {ignos-api-client-2023.12.18.7821 → ignos-api-client-2023.12.22.7919}/ignos/api/client/aio/operations/_operations.py +48 -0
  4. {ignos-api-client-2023.12.18.7821 → ignos-api-client-2023.12.22.7919}/ignos/api/client/models/__init__.py +4 -0
  5. {ignos-api-client-2023.12.18.7821 → ignos-api-client-2023.12.22.7919}/ignos/api/client/models/_enums.py +8 -0
  6. {ignos-api-client-2023.12.18.7821 → ignos-api-client-2023.12.22.7919}/ignos/api/client/models/_models.py +42 -3
  7. {ignos-api-client-2023.12.18.7821 → ignos-api-client-2023.12.22.7919}/ignos/api/client/operations/_operations.py +61 -0
  8. {ignos-api-client-2023.12.18.7821 → ignos-api-client-2023.12.22.7919}/ignos_api_client.egg-info/PKG-INFO +2 -2
  9. ignos-api-client-2023.12.22.7919/ignos_api_client.egg-info/requires.txt +2 -0
  10. {ignos-api-client-2023.12.18.7821 → ignos-api-client-2023.12.22.7919}/setup.py +2 -2
  11. ignos-api-client-2023.12.18.7821/ignos_api_client.egg-info/requires.txt +0 -2
  12. {ignos-api-client-2023.12.18.7821 → ignos-api-client-2023.12.22.7919}/ignos/__init__.py +0 -0
  13. {ignos-api-client-2023.12.18.7821 → ignos-api-client-2023.12.22.7919}/ignos/api/__init__.py +0 -0
  14. {ignos-api-client-2023.12.18.7821 → ignos-api-client-2023.12.22.7919}/ignos/api/client/__init__.py +0 -0
  15. {ignos-api-client-2023.12.18.7821 → ignos-api-client-2023.12.22.7919}/ignos/api/client/_client.py +0 -0
  16. {ignos-api-client-2023.12.18.7821 → ignos-api-client-2023.12.22.7919}/ignos/api/client/_configuration.py +0 -0
  17. {ignos-api-client-2023.12.18.7821 → ignos-api-client-2023.12.22.7919}/ignos/api/client/_patch.py +0 -0
  18. {ignos-api-client-2023.12.18.7821 → ignos-api-client-2023.12.22.7919}/ignos/api/client/_serialization.py +0 -0
  19. {ignos-api-client-2023.12.18.7821 → ignos-api-client-2023.12.22.7919}/ignos/api/client/aio/__init__.py +0 -0
  20. {ignos-api-client-2023.12.18.7821 → ignos-api-client-2023.12.22.7919}/ignos/api/client/aio/_client.py +0 -0
  21. {ignos-api-client-2023.12.18.7821 → ignos-api-client-2023.12.22.7919}/ignos/api/client/aio/_configuration.py +0 -0
  22. {ignos-api-client-2023.12.18.7821 → ignos-api-client-2023.12.22.7919}/ignos/api/client/aio/_patch.py +0 -0
  23. {ignos-api-client-2023.12.18.7821 → ignos-api-client-2023.12.22.7919}/ignos/api/client/aio/operations/__init__.py +0 -0
  24. {ignos-api-client-2023.12.18.7821 → ignos-api-client-2023.12.22.7919}/ignos/api/client/aio/operations/_patch.py +0 -0
  25. {ignos-api-client-2023.12.18.7821 → ignos-api-client-2023.12.22.7919}/ignos/api/client/models/_patch.py +0 -0
  26. {ignos-api-client-2023.12.18.7821 → ignos-api-client-2023.12.22.7919}/ignos/api/client/operations/__init__.py +0 -0
  27. {ignos-api-client-2023.12.18.7821 → ignos-api-client-2023.12.22.7919}/ignos/api/client/operations/_patch.py +0 -0
  28. {ignos-api-client-2023.12.18.7821 → ignos-api-client-2023.12.22.7919}/ignos/api/client/py.typed +0 -0
  29. {ignos-api-client-2023.12.18.7821 → ignos-api-client-2023.12.22.7919}/ignos_api_client.egg-info/SOURCES.txt +0 -0
  30. {ignos-api-client-2023.12.18.7821 → ignos-api-client-2023.12.22.7919}/ignos_api_client.egg-info/dependency_links.txt +0 -0
  31. {ignos-api-client-2023.12.18.7821 → ignos-api-client-2023.12.22.7919}/ignos_api_client.egg-info/top_level.txt +0 -0
  32. {ignos-api-client-2023.12.18.7821 → ignos-api-client-2023.12.22.7919}/setup.cfg +0 -0
@@ -1,12 +1,12 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ignos-api-client
3
- Version: 2023.12.18.7821
3
+ Version: 2023.12.22.7919
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.28.0
9
+ Requires-Dist: azure-core<2.0.0,>=1.29.5
10
10
 
11
11
  IgnosPortal.
12
12
 
@@ -6,4 +6,4 @@
6
6
  # Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  # --------------------------------------------------------------------------
8
8
 
9
- VERSION = "2023.12.18.7821"
9
+ VERSION = "2023.12.22.7919"
@@ -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,
@@ -417,6 +418,53 @@ class AlertsOperations:
417
418
  self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
418
419
  self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
419
420
 
421
+ @distributed_trace_async
422
+ async def alert_notification_access(self, **kwargs: Any) -> _models.AlertNotificationAccessDto:
423
+ """alert_notification_access.
424
+
425
+ :return: AlertNotificationAccessDto
426
+ :rtype: ~ignos.api.client.models.AlertNotificationAccessDto
427
+ :raises ~azure.core.exceptions.HttpResponseError:
428
+ """
429
+ error_map = {
430
+ 401: ClientAuthenticationError,
431
+ 404: ResourceNotFoundError,
432
+ 409: ResourceExistsError,
433
+ 304: ResourceNotModifiedError,
434
+ }
435
+ error_map.update(kwargs.pop("error_map", {}) or {})
436
+
437
+ _headers = kwargs.pop("headers", {}) or {}
438
+ _params = kwargs.pop("params", {}) or {}
439
+
440
+ cls: ClsType[_models.AlertNotificationAccessDto] = kwargs.pop("cls", None)
441
+
442
+ _request = build_alerts_alert_notification_access_request(
443
+ headers=_headers,
444
+ params=_params,
445
+ )
446
+ _request.url = self._client.format_url(_request.url)
447
+
448
+ _stream = False
449
+ pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
450
+ _request, stream=_stream, **kwargs
451
+ )
452
+
453
+ response = pipeline_response.http_response
454
+
455
+ if response.status_code not in [200]:
456
+ if _stream:
457
+ await response.read() # Load the body in memory and close the socket
458
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
459
+ raise HttpResponseError(response=response)
460
+
461
+ deserialized = self._deserialize("AlertNotificationAccessDto", pipeline_response)
462
+
463
+ if cls:
464
+ return cls(pipeline_response, deserialized, {}) # type: ignore
465
+
466
+ return deserialized # type: ignore
467
+
420
468
  @distributed_trace_async
421
469
  async def get_machine_inactivity_alert_type(self, **kwargs: Any) -> _models.MachineInactivityAlertTypeDto:
422
470
  """get_machine_inactivity_alert_type.
@@ -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:
@@ -7609,6 +7623,53 @@ class AlertsOperations:
7609
7623
  self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
7610
7624
  self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
7611
7625
 
7626
+ @distributed_trace
7627
+ def alert_notification_access(self, **kwargs: Any) -> _models.AlertNotificationAccessDto:
7628
+ """alert_notification_access.
7629
+
7630
+ :return: AlertNotificationAccessDto
7631
+ :rtype: ~ignos.api.client.models.AlertNotificationAccessDto
7632
+ :raises ~azure.core.exceptions.HttpResponseError:
7633
+ """
7634
+ error_map = {
7635
+ 401: ClientAuthenticationError,
7636
+ 404: ResourceNotFoundError,
7637
+ 409: ResourceExistsError,
7638
+ 304: ResourceNotModifiedError,
7639
+ }
7640
+ error_map.update(kwargs.pop("error_map", {}) or {})
7641
+
7642
+ _headers = kwargs.pop("headers", {}) or {}
7643
+ _params = kwargs.pop("params", {}) or {}
7644
+
7645
+ cls: ClsType[_models.AlertNotificationAccessDto] = kwargs.pop("cls", None)
7646
+
7647
+ _request = build_alerts_alert_notification_access_request(
7648
+ headers=_headers,
7649
+ params=_params,
7650
+ )
7651
+ _request.url = self._client.format_url(_request.url)
7652
+
7653
+ _stream = False
7654
+ pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
7655
+ _request, stream=_stream, **kwargs
7656
+ )
7657
+
7658
+ response = pipeline_response.http_response
7659
+
7660
+ if response.status_code not in [200]:
7661
+ if _stream:
7662
+ response.read() # Load the body in memory and close the socket
7663
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
7664
+ raise HttpResponseError(response=response)
7665
+
7666
+ deserialized = self._deserialize("AlertNotificationAccessDto", pipeline_response)
7667
+
7668
+ if cls:
7669
+ return cls(pipeline_response, deserialized, {}) # type: ignore
7670
+
7671
+ return deserialized # type: ignore
7672
+
7612
7673
  @distributed_trace
7613
7674
  def get_machine_inactivity_alert_type(self, **kwargs: Any) -> _models.MachineInactivityAlertTypeDto:
7614
7675
  """get_machine_inactivity_alert_type.
@@ -1,12 +1,12 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ignos-api-client
3
- Version: 2023.12.18.7821
3
+ Version: 2023.12.22.7919
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.28.0
9
+ Requires-Dist: azure-core<2.0.0,>=1.29.5
10
10
 
11
11
  IgnosPortal.
12
12
 
@@ -0,0 +1,2 @@
1
+ isodate<1.0.0,>=0.6.1
2
+ azure-core<2.0.0,>=1.29.5
@@ -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.18.7821"
13
+ version = "2023.12.22.7919"
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.28.0",
25
+ "azure-core<2.0.0,>=1.29.5",
26
26
  ],
27
27
  long_description="""\
28
28
  IgnosPortal.
@@ -1,2 +0,0 @@
1
- isodate<1.0.0,>=0.6.1
2
- azure-core<2.0.0,>=1.28.0