ignos-api-client 2023.12.13.7732__py3-none-any.whl → 2023.12.22.7919__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.
@@ -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.13.7732"
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,
@@ -223,7 +224,6 @@ from ...operations._operations import (
223
224
  build_measurement_forms_instances_get_validation_rules_request,
224
225
  build_measurement_forms_instances_get_workorder_measurement_form_progress_request,
225
226
  build_measurement_forms_instances_import_measurement_form_instance_request,
226
- build_measurement_forms_instances_import_measurement_form_instance_values_request,
227
227
  build_measurement_forms_instances_list_measurement_form_instance_feedback_request,
228
228
  build_measurement_forms_instances_list_measurement_forms_by_status_request,
229
229
  build_measurement_forms_instances_list_measurement_forms_request,
@@ -351,6 +351,7 @@ from ...operations._operations import (
351
351
  build_welding_list_electrical_data_configs_request,
352
352
  build_welding_list_welding_source_types_request,
353
353
  build_workorders_check_resource_status_request,
354
+ build_workorders_create_work_order_mapping_request,
354
355
  build_workorders_delete_workorder_operation_event_request,
355
356
  build_workorders_delete_workorder_request,
356
357
  build_workorders_filter_workorder_operation_events_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.
@@ -7592,7 +7640,7 @@ class CustomerOrdersOperations:
7592
7640
  return deserialized # type: ignore
7593
7641
 
7594
7642
 
7595
- class WorkordersOperations:
7643
+ class WorkordersOperations: # pylint: disable=too-many-public-methods
7596
7644
  """
7597
7645
  .. warning::
7598
7646
  **DO NOT** instantiate this class directly.
@@ -9525,6 +9573,115 @@ class WorkordersOperations:
9525
9573
 
9526
9574
  return deserialized # type: ignore
9527
9575
 
9576
+ @overload
9577
+ async def create_work_order_mapping( # pylint: disable=inconsistent-return-statements
9578
+ self,
9579
+ body: Optional[_models.CreateWorkOrderMapping] = None,
9580
+ *,
9581
+ content_type: str = "application/json",
9582
+ **kwargs: Any
9583
+ ) -> None:
9584
+ """Creates a work order mapping between old id and new work order id.
9585
+
9586
+ Creates a work order mapping between old id and new work order id.
9587
+
9588
+ :param body: Default value is None.
9589
+ :type body: ~ignos.api.client.models.CreateWorkOrderMapping
9590
+ :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
9591
+ Default value is "application/json".
9592
+ :paramtype content_type: str
9593
+ :return: None
9594
+ :rtype: None
9595
+ :raises ~azure.core.exceptions.HttpResponseError:
9596
+ """
9597
+
9598
+ @overload
9599
+ async def create_work_order_mapping( # pylint: disable=inconsistent-return-statements
9600
+ self, body: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any
9601
+ ) -> None:
9602
+ """Creates a work order mapping between old id and new work order id.
9603
+
9604
+ Creates a work order mapping between old id and new work order id.
9605
+
9606
+ :param body: Default value is None.
9607
+ :type body: IO[bytes]
9608
+ :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
9609
+ Known values are: 'application/*+json', 'application/json', 'text/json'. Default value is
9610
+ "application/json".
9611
+ :paramtype content_type: str
9612
+ :return: None
9613
+ :rtype: None
9614
+ :raises ~azure.core.exceptions.HttpResponseError:
9615
+ """
9616
+
9617
+ @distributed_trace_async
9618
+ async def create_work_order_mapping( # pylint: disable=inconsistent-return-statements
9619
+ self, body: Optional[Union[_models.CreateWorkOrderMapping, IO[bytes]]] = None, **kwargs: Any
9620
+ ) -> None:
9621
+ """Creates a work order mapping between old id and new work order id.
9622
+
9623
+ Creates a work order mapping between old id and new work order id.
9624
+
9625
+ :param body: Is either a CreateWorkOrderMapping type or a IO[bytes] type. Default value is
9626
+ None.
9627
+ :type body: ~ignos.api.client.models.CreateWorkOrderMapping or IO[bytes]
9628
+ :keyword content_type: Body Parameter content-type. Known values are: 'application/*+json',
9629
+ 'application/json', 'text/json'. Default value is None.
9630
+ :paramtype content_type: str
9631
+ :return: None
9632
+ :rtype: None
9633
+ :raises ~azure.core.exceptions.HttpResponseError:
9634
+ """
9635
+ error_map = {
9636
+ 401: ClientAuthenticationError,
9637
+ 404: ResourceNotFoundError,
9638
+ 409: ResourceExistsError,
9639
+ 304: ResourceNotModifiedError,
9640
+ }
9641
+ error_map.update(kwargs.pop("error_map", {}) or {})
9642
+
9643
+ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
9644
+ _params = kwargs.pop("params", {}) or {}
9645
+
9646
+ content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
9647
+ cls: ClsType[None] = kwargs.pop("cls", None)
9648
+
9649
+ content_type = content_type or "application/json"
9650
+ _json = None
9651
+ _content = None
9652
+ if isinstance(body, (IOBase, bytes)):
9653
+ _content = body
9654
+ else:
9655
+ if body is not None:
9656
+ _json = self._serialize.body(body, "CreateWorkOrderMapping")
9657
+ else:
9658
+ _json = None
9659
+
9660
+ _request = build_workorders_create_work_order_mapping_request(
9661
+ content_type=content_type,
9662
+ json=_json,
9663
+ content=_content,
9664
+ headers=_headers,
9665
+ params=_params,
9666
+ )
9667
+ _request.url = self._client.format_url(_request.url)
9668
+
9669
+ _stream = False
9670
+ pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
9671
+ _request, stream=_stream, **kwargs
9672
+ )
9673
+
9674
+ response = pipeline_response.http_response
9675
+
9676
+ if response.status_code not in [204]:
9677
+ if _stream:
9678
+ await response.read() # Load the body in memory and close the socket
9679
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
9680
+ raise HttpResponseError(response=response)
9681
+
9682
+ if cls:
9683
+ return cls(pipeline_response, None, {}) # type: ignore
9684
+
9528
9685
 
9529
9686
  class ExternalOperations:
9530
9687
  """
@@ -18887,120 +19044,6 @@ class MeasurementFormsInstancesOperations: # pylint: disable=too-many-public-me
18887
19044
 
18888
19045
  return deserialized # type: ignore
18889
19046
 
18890
- @overload
18891
- async def import_measurement_form_instance_values( # pylint: disable=inconsistent-return-statements
18892
- self,
18893
- id: str,
18894
- body: Optional[_models.ImportMeasurementFormInstanceValueRequest] = None,
18895
- *,
18896
- content_type: str = "application/json",
18897
- **kwargs: Any
18898
- ) -> None:
18899
- """import_measurement_form_instance_values.
18900
-
18901
- :param id: Required.
18902
- :type id: str
18903
- :param body: Default value is None.
18904
- :type body: ~ignos.api.client.models.ImportMeasurementFormInstanceValueRequest
18905
- :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
18906
- Default value is "application/json".
18907
- :paramtype content_type: str
18908
- :return: None
18909
- :rtype: None
18910
- :raises ~azure.core.exceptions.HttpResponseError:
18911
- """
18912
-
18913
- @overload
18914
- async def import_measurement_form_instance_values( # pylint: disable=inconsistent-return-statements
18915
- self, id: str, body: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any
18916
- ) -> None:
18917
- """import_measurement_form_instance_values.
18918
-
18919
- :param id: Required.
18920
- :type id: str
18921
- :param body: Default value is None.
18922
- :type body: IO[bytes]
18923
- :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
18924
- Known values are: 'application/*+json', 'application/json', 'text/json'. Default value is
18925
- "application/json".
18926
- :paramtype content_type: str
18927
- :return: None
18928
- :rtype: None
18929
- :raises ~azure.core.exceptions.HttpResponseError:
18930
- """
18931
-
18932
- @distributed_trace_async
18933
- async def import_measurement_form_instance_values( # pylint: disable=inconsistent-return-statements
18934
- self,
18935
- id: str,
18936
- body: Optional[Union[_models.ImportMeasurementFormInstanceValueRequest, IO[bytes]]] = None,
18937
- **kwargs: Any
18938
- ) -> None:
18939
- """import_measurement_form_instance_values.
18940
-
18941
- :param id: Required.
18942
- :type id: str
18943
- :param body: Is either a ImportMeasurementFormInstanceValueRequest type or a IO[bytes] type.
18944
- Default value is None.
18945
- :type body: ~ignos.api.client.models.ImportMeasurementFormInstanceValueRequest or IO[bytes]
18946
- :keyword content_type: Body Parameter content-type. Known values are: 'application/*+json',
18947
- 'application/json', 'text/json'. Default value is None.
18948
- :paramtype content_type: str
18949
- :return: None
18950
- :rtype: None
18951
- :raises ~azure.core.exceptions.HttpResponseError:
18952
- """
18953
- error_map = {
18954
- 401: ClientAuthenticationError,
18955
- 404: ResourceNotFoundError,
18956
- 409: ResourceExistsError,
18957
- 304: ResourceNotModifiedError,
18958
- }
18959
- error_map.update(kwargs.pop("error_map", {}) or {})
18960
-
18961
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
18962
- _params = kwargs.pop("params", {}) or {}
18963
-
18964
- content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
18965
- cls: ClsType[None] = kwargs.pop("cls", None)
18966
-
18967
- content_type = content_type or "application/json"
18968
- _json = None
18969
- _content = None
18970
- if isinstance(body, (IOBase, bytes)):
18971
- _content = body
18972
- else:
18973
- if body is not None:
18974
- _json = self._serialize.body(body, "ImportMeasurementFormInstanceValueRequest")
18975
- else:
18976
- _json = None
18977
-
18978
- _request = build_measurement_forms_instances_import_measurement_form_instance_values_request(
18979
- id=id,
18980
- content_type=content_type,
18981
- json=_json,
18982
- content=_content,
18983
- headers=_headers,
18984
- params=_params,
18985
- )
18986
- _request.url = self._client.format_url(_request.url)
18987
-
18988
- _stream = False
18989
- pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
18990
- _request, stream=_stream, **kwargs
18991
- )
18992
-
18993
- response = pipeline_response.http_response
18994
-
18995
- if response.status_code not in [204]:
18996
- if _stream:
18997
- await response.read() # Load the body in memory and close the socket
18998
- map_error(status_code=response.status_code, response=response, error_map=error_map)
18999
- raise HttpResponseError(response=response)
19000
-
19001
- if cls:
19002
- return cls(pipeline_response, None, {}) # type: ignore
19003
-
19004
19047
 
19005
19048
  class MeasuringToolsOperations: # pylint: disable=too-many-public-methods
19006
19049
  """
@@ -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
@@ -78,6 +79,7 @@ from ._models import CreateMrbTemplateRequest
78
79
  from ._models import CreateSchemaElement
79
80
  from ._models import CreateSupplierInvite
80
81
  from ._models import CreateSupplierMapping
82
+ from ._models import CreateWorkOrderMapping
81
83
  from ._models import CreateWorkspace
82
84
  from ._models import CreateWorkspaceFromTemplate
83
85
  from ._models import CreateWorkspaceTemplate
@@ -126,10 +128,6 @@ from ._models import ImportDocumentResultDto
126
128
  from ._models import ImportDocumentRevisionContentDto
127
129
  from ._models import ImportDocumentRevisionDto
128
130
  from ._models import ImportMeasurementFormInstanceRequest
129
- from ._models import ImportMeasurementFormInstanceSchemaToolDto
130
- from ._models import ImportMeasurementFormInstanceSchemaValueDto
131
- from ._models import ImportMeasurementFormInstanceSchemaValuesDto
132
- from ._models import ImportMeasurementFormInstanceValueRequest
133
131
  from ._models import ImportMeasurementFormPartDto
134
132
  from ._models import ImportMeasurementFormSchema
135
133
  from ._models import ImportMeasurementSchemaInstanceDto
@@ -401,6 +399,7 @@ from ._models import WorkspaceListDto
401
399
  from ._models import WorkspaceWidgetBreakpointDto
402
400
  from ._models import WorkspaceWidgetDto
403
401
 
402
+ from ._enums import AlertNotificationAccessStatusDto
404
403
  from ._enums import BonusType
405
404
  from ._enums import CalibrationListStatus
406
405
  from ._enums import CalibrationStatusDto
@@ -457,6 +456,7 @@ __all__ = [
457
456
  "AddMesLink",
458
457
  "AddResourceTypeForNeedsGenerator",
459
458
  "AgentConfigDto",
459
+ "AlertNotificationAccessDto",
460
460
  "AssetConsumptionDto",
461
461
  "AssetDto",
462
462
  "AssetDtoPagedResult",
@@ -525,6 +525,7 @@ __all__ = [
525
525
  "CreateSchemaElement",
526
526
  "CreateSupplierInvite",
527
527
  "CreateSupplierMapping",
528
+ "CreateWorkOrderMapping",
528
529
  "CreateWorkspace",
529
530
  "CreateWorkspaceFromTemplate",
530
531
  "CreateWorkspaceTemplate",
@@ -573,10 +574,6 @@ __all__ = [
573
574
  "ImportDocumentRevisionContentDto",
574
575
  "ImportDocumentRevisionDto",
575
576
  "ImportMeasurementFormInstanceRequest",
576
- "ImportMeasurementFormInstanceSchemaToolDto",
577
- "ImportMeasurementFormInstanceSchemaValueDto",
578
- "ImportMeasurementFormInstanceSchemaValuesDto",
579
- "ImportMeasurementFormInstanceValueRequest",
580
577
  "ImportMeasurementFormPartDto",
581
578
  "ImportMeasurementFormSchema",
582
579
  "ImportMeasurementSchemaInstanceDto",
@@ -847,6 +844,7 @@ __all__ = [
847
844
  "WorkspaceListDto",
848
845
  "WorkspaceWidgetBreakpointDto",
849
846
  "WorkspaceWidgetDto",
847
+ "AlertNotificationAccessStatusDto",
850
848
  "BonusType",
851
849
  "CalibrationListStatus",
852
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
 
@@ -41,7 +49,7 @@ class CncOperationStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta):
41
49
  DRAFT = "Draft"
42
50
  READY = "Ready"
43
51
  VERIFIED = "Verified"
44
- DEPRECATED = "Deprecated"
52
+ ARCHIVED = "Archived"
45
53
 
46
54
 
47
55
  class CustomerOrderLineStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta):
@@ -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
 
@@ -1247,7 +1285,7 @@ class CncMachineOperationDto(_serialization.Model): # pylint: disable=too-many-
1247
1285
  :vartype tailstock_pressure: str
1248
1286
  :ivar fixture:
1249
1287
  :vartype fixture: str
1250
- :ivar status: Required. Known values are: "Draft", "Ready", "Verified", and "Deprecated".
1288
+ :ivar status: Required. Known values are: "Draft", "Ready", "Verified", and "Archived".
1251
1289
  :vartype status: str or ~ignos.api.client.models.CncOperationStatus
1252
1290
  """
1253
1291
 
@@ -1319,7 +1357,7 @@ class CncMachineOperationDto(_serialization.Model): # pylint: disable=too-many-
1319
1357
  :paramtype tailstock_pressure: str
1320
1358
  :keyword fixture:
1321
1359
  :paramtype fixture: str
1322
- :keyword status: Required. Known values are: "Draft", "Ready", "Verified", and "Deprecated".
1360
+ :keyword status: Required. Known values are: "Draft", "Ready", "Verified", and "Archived".
1323
1361
  :paramtype status: str or ~ignos.api.client.models.CncOperationStatus
1324
1362
  """
1325
1363
  super().__init__(**kwargs)
@@ -1373,7 +1411,7 @@ class CncMachineOperationSearchResultDto(_serialization.Model): # pylint: disab
1373
1411
  :vartype title: str
1374
1412
  :ivar description:
1375
1413
  :vartype description: str
1376
- :ivar status: Required. Known values are: "Draft", "Ready", "Verified", and "Deprecated".
1414
+ :ivar status: Required. Known values are: "Draft", "Ready", "Verified", and "Archived".
1377
1415
  :vartype status: str or ~ignos.api.client.models.CncOperationStatus
1378
1416
  """
1379
1417
 
@@ -1457,7 +1495,7 @@ class CncMachineOperationSearchResultDto(_serialization.Model): # pylint: disab
1457
1495
  :paramtype title: str
1458
1496
  :keyword description:
1459
1497
  :paramtype description: str
1460
- :keyword status: Required. Known values are: "Draft", "Ready", "Verified", and "Deprecated".
1498
+ :keyword status: Required. Known values are: "Draft", "Ready", "Verified", and "Archived".
1461
1499
  :paramtype status: str or ~ignos.api.client.models.CncOperationStatus
1462
1500
  """
1463
1501
  super().__init__(**kwargs)
@@ -4636,6 +4674,39 @@ class CreateSupplierMapping(_serialization.Model):
4636
4674
  self.new_supplier_id = new_supplier_id
4637
4675
 
4638
4676
 
4677
+ class CreateWorkOrderMapping(_serialization.Model):
4678
+ """CreateWorkOrderMapping.
4679
+
4680
+ All required parameters must be populated in order to send to server.
4681
+
4682
+ :ivar existing_work_order_id: Required.
4683
+ :vartype existing_work_order_id: str
4684
+ :ivar new_work_order_id: Required.
4685
+ :vartype new_work_order_id: str
4686
+ """
4687
+
4688
+ _validation = {
4689
+ "existing_work_order_id": {"required": True, "min_length": 1},
4690
+ "new_work_order_id": {"required": True, "min_length": 1},
4691
+ }
4692
+
4693
+ _attribute_map = {
4694
+ "existing_work_order_id": {"key": "existingWorkOrderId", "type": "str"},
4695
+ "new_work_order_id": {"key": "newWorkOrderId", "type": "str"},
4696
+ }
4697
+
4698
+ def __init__(self, *, existing_work_order_id: str, new_work_order_id: str, **kwargs: Any) -> None:
4699
+ """
4700
+ :keyword existing_work_order_id: Required.
4701
+ :paramtype existing_work_order_id: str
4702
+ :keyword new_work_order_id: Required.
4703
+ :paramtype new_work_order_id: str
4704
+ """
4705
+ super().__init__(**kwargs)
4706
+ self.existing_work_order_id = existing_work_order_id
4707
+ self.new_work_order_id = new_work_order_id
4708
+
4709
+
4639
4710
  class CreateWorkspace(_serialization.Model):
4640
4711
  """CreateWorkspace.
4641
4712
 
@@ -7171,187 +7242,6 @@ class ImportMeasurementFormInstanceRequest(_serialization.Model): # pylint: dis
7171
7242
  self.schemas = schemas
7172
7243
 
7173
7244
 
7174
- class ImportMeasurementFormInstanceSchemaToolDto(_serialization.Model):
7175
- """ImportMeasurementFormInstanceSchemaToolDto.
7176
-
7177
- :ivar tool:
7178
- :vartype tool: str
7179
- :ivar tool_type:
7180
- :vartype tool_type: str
7181
- """
7182
-
7183
- _attribute_map = {
7184
- "tool": {"key": "tool", "type": "str"},
7185
- "tool_type": {"key": "toolType", "type": "str"},
7186
- }
7187
-
7188
- def __init__(self, *, tool: Optional[str] = None, tool_type: Optional[str] = None, **kwargs: Any) -> None:
7189
- """
7190
- :keyword tool:
7191
- :paramtype tool: str
7192
- :keyword tool_type:
7193
- :paramtype tool_type: str
7194
- """
7195
- super().__init__(**kwargs)
7196
- self.tool = tool
7197
- self.tool_type = tool_type
7198
-
7199
-
7200
- class ImportMeasurementFormInstanceSchemaValueDto(_serialization.Model):
7201
- """ImportMeasurementFormInstanceSchemaValueDto.
7202
-
7203
- All required parameters must be populated in order to send to server.
7204
-
7205
- :ivar element_id: Required.
7206
- :vartype element_id: str
7207
- :ivar sequence: Required.
7208
- :vartype sequence: str
7209
- :ivar operation:
7210
- :vartype operation: int
7211
- :ivar resource:
7212
- :vartype resource: str
7213
- :ivar value:
7214
- :vartype value: str
7215
- :ivar bonus:
7216
- :vartype bonus: float
7217
- :ivar tools:
7218
- :vartype tools: list[~ignos.api.client.models.ImportMeasurementFormInstanceSchemaToolDto]
7219
- :ivar created: Required.
7220
- :vartype created: ~datetime.datetime
7221
- :ivar created_by: Required.
7222
- :vartype created_by: str
7223
- """
7224
-
7225
- _validation = {
7226
- "element_id": {"required": True, "min_length": 1},
7227
- "sequence": {"required": True, "min_length": 1},
7228
- "created": {"required": True},
7229
- "created_by": {"required": True, "min_length": 1},
7230
- }
7231
-
7232
- _attribute_map = {
7233
- "element_id": {"key": "elementId", "type": "str"},
7234
- "sequence": {"key": "sequence", "type": "str"},
7235
- "operation": {"key": "operation", "type": "int"},
7236
- "resource": {"key": "resource", "type": "str"},
7237
- "value": {"key": "value", "type": "str"},
7238
- "bonus": {"key": "bonus", "type": "float"},
7239
- "tools": {"key": "tools", "type": "[ImportMeasurementFormInstanceSchemaToolDto]"},
7240
- "created": {"key": "created", "type": "iso-8601"},
7241
- "created_by": {"key": "createdBy", "type": "str"},
7242
- }
7243
-
7244
- def __init__(
7245
- self,
7246
- *,
7247
- element_id: str,
7248
- sequence: str,
7249
- created: datetime.datetime,
7250
- created_by: str,
7251
- operation: Optional[int] = None,
7252
- resource: Optional[str] = None,
7253
- value: Optional[str] = None,
7254
- bonus: Optional[float] = None,
7255
- tools: Optional[List["_models.ImportMeasurementFormInstanceSchemaToolDto"]] = None,
7256
- **kwargs: Any
7257
- ) -> None:
7258
- """
7259
- :keyword element_id: Required.
7260
- :paramtype element_id: str
7261
- :keyword sequence: Required.
7262
- :paramtype sequence: str
7263
- :keyword operation:
7264
- :paramtype operation: int
7265
- :keyword resource:
7266
- :paramtype resource: str
7267
- :keyword value:
7268
- :paramtype value: str
7269
- :keyword bonus:
7270
- :paramtype bonus: float
7271
- :keyword tools:
7272
- :paramtype tools: list[~ignos.api.client.models.ImportMeasurementFormInstanceSchemaToolDto]
7273
- :keyword created: Required.
7274
- :paramtype created: ~datetime.datetime
7275
- :keyword created_by: Required.
7276
- :paramtype created_by: str
7277
- """
7278
- super().__init__(**kwargs)
7279
- self.element_id = element_id
7280
- self.sequence = sequence
7281
- self.operation = operation
7282
- self.resource = resource
7283
- self.value = value
7284
- self.bonus = bonus
7285
- self.tools = tools
7286
- self.created = created
7287
- self.created_by = created_by
7288
-
7289
-
7290
- class ImportMeasurementFormInstanceSchemaValuesDto(_serialization.Model):
7291
- """ImportMeasurementFormInstanceSchemaValuesDto.
7292
-
7293
- All required parameters must be populated in order to send to server.
7294
-
7295
- :ivar schema_id: Required.
7296
- :vartype schema_id: str
7297
- :ivar values:
7298
- :vartype values: list[~ignos.api.client.models.ImportMeasurementFormInstanceSchemaValueDto]
7299
- """
7300
-
7301
- _validation = {
7302
- "schema_id": {"required": True, "min_length": 1},
7303
- }
7304
-
7305
- _attribute_map = {
7306
- "schema_id": {"key": "schemaId", "type": "str"},
7307
- "values": {"key": "values", "type": "[ImportMeasurementFormInstanceSchemaValueDto]"},
7308
- }
7309
-
7310
- def __init__(
7311
- self,
7312
- *,
7313
- schema_id: str,
7314
- values: Optional[List["_models.ImportMeasurementFormInstanceSchemaValueDto"]] = None,
7315
- **kwargs: Any
7316
- ) -> None:
7317
- """
7318
- :keyword schema_id: Required.
7319
- :paramtype schema_id: str
7320
- :keyword values:
7321
- :paramtype values: list[~ignos.api.client.models.ImportMeasurementFormInstanceSchemaValueDto]
7322
- """
7323
- super().__init__(**kwargs)
7324
- self.schema_id = schema_id
7325
- self.values = values
7326
-
7327
-
7328
- class ImportMeasurementFormInstanceValueRequest(_serialization.Model):
7329
- """ImportMeasurementFormInstanceValueRequest.
7330
-
7331
- :ivar schema_values:
7332
- :vartype schema_values:
7333
- list[~ignos.api.client.models.ImportMeasurementFormInstanceSchemaValuesDto]
7334
- """
7335
-
7336
- _attribute_map = {
7337
- "schema_values": {"key": "schemaValues", "type": "[ImportMeasurementFormInstanceSchemaValuesDto]"},
7338
- }
7339
-
7340
- def __init__(
7341
- self,
7342
- *,
7343
- schema_values: Optional[List["_models.ImportMeasurementFormInstanceSchemaValuesDto"]] = None,
7344
- **kwargs: Any
7345
- ) -> None:
7346
- """
7347
- :keyword schema_values:
7348
- :paramtype schema_values:
7349
- list[~ignos.api.client.models.ImportMeasurementFormInstanceSchemaValuesDto]
7350
- """
7351
- super().__init__(**kwargs)
7352
- self.schema_values = schema_values
7353
-
7354
-
7355
7245
  class ImportMeasurementFormPartDto(_serialization.Model):
7356
7246
  """ImportMeasurementFormPartDto.
7357
7247
 
@@ -19840,13 +19730,14 @@ class StartOperationDto(_serialization.Model):
19840
19730
  :vartype operation_number: int
19841
19731
  :ivar started_quantity:
19842
19732
  :vartype started_quantity: int
19843
- :ivar resource:
19733
+ :ivar resource: Required.
19844
19734
  :vartype resource: str
19845
19735
  """
19846
19736
 
19847
19737
  _validation = {
19848
19738
  "work_order": {"required": True, "min_length": 1},
19849
19739
  "operation_number": {"required": True},
19740
+ "resource": {"required": True, "min_length": 1},
19850
19741
  }
19851
19742
 
19852
19743
  _attribute_map = {
@@ -19861,8 +19752,8 @@ class StartOperationDto(_serialization.Model):
19861
19752
  *,
19862
19753
  work_order: str,
19863
19754
  operation_number: int,
19755
+ resource: str,
19864
19756
  started_quantity: Optional[int] = None,
19865
- resource: Optional[str] = None,
19866
19757
  **kwargs: Any
19867
19758
  ) -> None:
19868
19759
  """
@@ -19872,7 +19763,7 @@ class StartOperationDto(_serialization.Model):
19872
19763
  :paramtype operation_number: int
19873
19764
  :keyword started_quantity:
19874
19765
  :paramtype started_quantity: int
19875
- :keyword resource:
19766
+ :keyword resource: Required.
19876
19767
  :paramtype resource: str
19877
19768
  """
19878
19769
  super().__init__(**kwargs)
@@ -21336,7 +21227,7 @@ class UpdateCncMachineOperationRequest(_serialization.Model):
21336
21227
  :vartype tailstock_pressure: str
21337
21228
  :ivar fixture:
21338
21229
  :vartype fixture: str
21339
- :ivar status: Known values are: "Draft", "Ready", "Verified", and "Deprecated".
21230
+ :ivar status: Known values are: "Draft", "Ready", "Verified", and "Archived".
21340
21231
  :vartype status: str or ~ignos.api.client.models.CncOperationStatus
21341
21232
  """
21342
21233
 
@@ -21387,7 +21278,7 @@ class UpdateCncMachineOperationRequest(_serialization.Model):
21387
21278
  :paramtype tailstock_pressure: str
21388
21279
  :keyword fixture:
21389
21280
  :paramtype fixture: str
21390
- :keyword status: Known values are: "Draft", "Ready", "Verified", and "Deprecated".
21281
+ :keyword status: Known values are: "Draft", "Ready", "Verified", and "Archived".
21391
21282
  :paramtype status: str or ~ignos.api.client.models.CncOperationStatus
21392
21283
  """
21393
21284
  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:
@@ -2284,6 +2298,20 @@ def build_workorders_filter_workorder_operation_events_request( # pylint: disab
2284
2298
  return HttpRequest(method="POST", url=_url, headers=_headers, **kwargs)
2285
2299
 
2286
2300
 
2301
+ def build_workorders_create_work_order_mapping_request(**kwargs: Any) -> HttpRequest: # pylint: disable=name-too-long
2302
+ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
2303
+
2304
+ content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
2305
+ # Construct URL
2306
+ _url = "/erp/workorders/mappings"
2307
+
2308
+ # Construct headers
2309
+ if content_type is not None:
2310
+ _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str")
2311
+
2312
+ return HttpRequest(method="POST", url=_url, headers=_headers, **kwargs)
2313
+
2314
+
2287
2315
  def build_external_list_invites_request(**kwargs: Any) -> HttpRequest:
2288
2316
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
2289
2317
 
@@ -5085,27 +5113,6 @@ def build_measurement_forms_instances_import_measurement_form_instance_request(
5085
5113
  return HttpRequest(method="POST", url=_url, headers=_headers, **kwargs)
5086
5114
 
5087
5115
 
5088
- def build_measurement_forms_instances_import_measurement_form_instance_values_request( # pylint: disable=name-too-long
5089
- id: str, **kwargs: Any
5090
- ) -> HttpRequest:
5091
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
5092
-
5093
- content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
5094
- # Construct URL
5095
- _url = "/measurementforms/instances/{id}/importvalues"
5096
- path_format_arguments = {
5097
- "id": _SERIALIZER.url("id", id, "str"),
5098
- }
5099
-
5100
- _url: str = _url.format(**path_format_arguments) # type: ignore
5101
-
5102
- # Construct headers
5103
- if content_type is not None:
5104
- _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str")
5105
-
5106
- return HttpRequest(method="POST", url=_url, headers=_headers, **kwargs)
5107
-
5108
-
5109
5116
  def build_measuring_tools_list_measuring_tools_request( # pylint: disable=name-too-long
5110
5117
  *,
5111
5118
  page: Optional[int] = None,
@@ -7616,6 +7623,53 @@ class AlertsOperations:
7616
7623
  self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
7617
7624
  self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
7618
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
+
7619
7673
  @distributed_trace
7620
7674
  def get_machine_inactivity_alert_type(self, **kwargs: Any) -> _models.MachineInactivityAlertTypeDto:
7621
7675
  """get_machine_inactivity_alert_type.
@@ -14781,7 +14835,7 @@ class CustomerOrdersOperations:
14781
14835
  return deserialized # type: ignore
14782
14836
 
14783
14837
 
14784
- class WorkordersOperations:
14838
+ class WorkordersOperations: # pylint: disable=too-many-public-methods
14785
14839
  """
14786
14840
  .. warning::
14787
14841
  **DO NOT** instantiate this class directly.
@@ -16714,6 +16768,115 @@ class WorkordersOperations:
16714
16768
 
16715
16769
  return deserialized # type: ignore
16716
16770
 
16771
+ @overload
16772
+ def create_work_order_mapping( # pylint: disable=inconsistent-return-statements
16773
+ self,
16774
+ body: Optional[_models.CreateWorkOrderMapping] = None,
16775
+ *,
16776
+ content_type: str = "application/json",
16777
+ **kwargs: Any,
16778
+ ) -> None:
16779
+ """Creates a work order mapping between old id and new work order id.
16780
+
16781
+ Creates a work order mapping between old id and new work order id.
16782
+
16783
+ :param body: Default value is None.
16784
+ :type body: ~ignos.api.client.models.CreateWorkOrderMapping
16785
+ :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
16786
+ Default value is "application/json".
16787
+ :paramtype content_type: str
16788
+ :return: None
16789
+ :rtype: None
16790
+ :raises ~azure.core.exceptions.HttpResponseError:
16791
+ """
16792
+
16793
+ @overload
16794
+ def create_work_order_mapping( # pylint: disable=inconsistent-return-statements
16795
+ self, body: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any
16796
+ ) -> None:
16797
+ """Creates a work order mapping between old id and new work order id.
16798
+
16799
+ Creates a work order mapping between old id and new work order id.
16800
+
16801
+ :param body: Default value is None.
16802
+ :type body: IO[bytes]
16803
+ :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
16804
+ Known values are: 'application/*+json', 'application/json', 'text/json'. Default value is
16805
+ "application/json".
16806
+ :paramtype content_type: str
16807
+ :return: None
16808
+ :rtype: None
16809
+ :raises ~azure.core.exceptions.HttpResponseError:
16810
+ """
16811
+
16812
+ @distributed_trace
16813
+ def create_work_order_mapping( # pylint: disable=inconsistent-return-statements
16814
+ self, body: Optional[Union[_models.CreateWorkOrderMapping, IO[bytes]]] = None, **kwargs: Any
16815
+ ) -> None:
16816
+ """Creates a work order mapping between old id and new work order id.
16817
+
16818
+ Creates a work order mapping between old id and new work order id.
16819
+
16820
+ :param body: Is either a CreateWorkOrderMapping type or a IO[bytes] type. Default value is
16821
+ None.
16822
+ :type body: ~ignos.api.client.models.CreateWorkOrderMapping or IO[bytes]
16823
+ :keyword content_type: Body Parameter content-type. Known values are: 'application/*+json',
16824
+ 'application/json', 'text/json'. Default value is None.
16825
+ :paramtype content_type: str
16826
+ :return: None
16827
+ :rtype: None
16828
+ :raises ~azure.core.exceptions.HttpResponseError:
16829
+ """
16830
+ error_map = {
16831
+ 401: ClientAuthenticationError,
16832
+ 404: ResourceNotFoundError,
16833
+ 409: ResourceExistsError,
16834
+ 304: ResourceNotModifiedError,
16835
+ }
16836
+ error_map.update(kwargs.pop("error_map", {}) or {})
16837
+
16838
+ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
16839
+ _params = kwargs.pop("params", {}) or {}
16840
+
16841
+ content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
16842
+ cls: ClsType[None] = kwargs.pop("cls", None)
16843
+
16844
+ content_type = content_type or "application/json"
16845
+ _json = None
16846
+ _content = None
16847
+ if isinstance(body, (IOBase, bytes)):
16848
+ _content = body
16849
+ else:
16850
+ if body is not None:
16851
+ _json = self._serialize.body(body, "CreateWorkOrderMapping")
16852
+ else:
16853
+ _json = None
16854
+
16855
+ _request = build_workorders_create_work_order_mapping_request(
16856
+ content_type=content_type,
16857
+ json=_json,
16858
+ content=_content,
16859
+ headers=_headers,
16860
+ params=_params,
16861
+ )
16862
+ _request.url = self._client.format_url(_request.url)
16863
+
16864
+ _stream = False
16865
+ pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
16866
+ _request, stream=_stream, **kwargs
16867
+ )
16868
+
16869
+ response = pipeline_response.http_response
16870
+
16871
+ if response.status_code not in [204]:
16872
+ if _stream:
16873
+ response.read() # Load the body in memory and close the socket
16874
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
16875
+ raise HttpResponseError(response=response)
16876
+
16877
+ if cls:
16878
+ return cls(pipeline_response, None, {}) # type: ignore
16879
+
16717
16880
 
16718
16881
  class ExternalOperations:
16719
16882
  """
@@ -26070,120 +26233,6 @@ class MeasurementFormsInstancesOperations: # pylint: disable=too-many-public-me
26070
26233
 
26071
26234
  return deserialized # type: ignore
26072
26235
 
26073
- @overload
26074
- def import_measurement_form_instance_values( # pylint: disable=inconsistent-return-statements
26075
- self,
26076
- id: str,
26077
- body: Optional[_models.ImportMeasurementFormInstanceValueRequest] = None,
26078
- *,
26079
- content_type: str = "application/json",
26080
- **kwargs: Any,
26081
- ) -> None:
26082
- """import_measurement_form_instance_values.
26083
-
26084
- :param id: Required.
26085
- :type id: str
26086
- :param body: Default value is None.
26087
- :type body: ~ignos.api.client.models.ImportMeasurementFormInstanceValueRequest
26088
- :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
26089
- Default value is "application/json".
26090
- :paramtype content_type: str
26091
- :return: None
26092
- :rtype: None
26093
- :raises ~azure.core.exceptions.HttpResponseError:
26094
- """
26095
-
26096
- @overload
26097
- def import_measurement_form_instance_values( # pylint: disable=inconsistent-return-statements
26098
- self, id: str, body: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any
26099
- ) -> None:
26100
- """import_measurement_form_instance_values.
26101
-
26102
- :param id: Required.
26103
- :type id: str
26104
- :param body: Default value is None.
26105
- :type body: IO[bytes]
26106
- :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
26107
- Known values are: 'application/*+json', 'application/json', 'text/json'. Default value is
26108
- "application/json".
26109
- :paramtype content_type: str
26110
- :return: None
26111
- :rtype: None
26112
- :raises ~azure.core.exceptions.HttpResponseError:
26113
- """
26114
-
26115
- @distributed_trace
26116
- def import_measurement_form_instance_values( # pylint: disable=inconsistent-return-statements
26117
- self,
26118
- id: str,
26119
- body: Optional[Union[_models.ImportMeasurementFormInstanceValueRequest, IO[bytes]]] = None,
26120
- **kwargs: Any,
26121
- ) -> None:
26122
- """import_measurement_form_instance_values.
26123
-
26124
- :param id: Required.
26125
- :type id: str
26126
- :param body: Is either a ImportMeasurementFormInstanceValueRequest type or a IO[bytes] type.
26127
- Default value is None.
26128
- :type body: ~ignos.api.client.models.ImportMeasurementFormInstanceValueRequest or IO[bytes]
26129
- :keyword content_type: Body Parameter content-type. Known values are: 'application/*+json',
26130
- 'application/json', 'text/json'. Default value is None.
26131
- :paramtype content_type: str
26132
- :return: None
26133
- :rtype: None
26134
- :raises ~azure.core.exceptions.HttpResponseError:
26135
- """
26136
- error_map = {
26137
- 401: ClientAuthenticationError,
26138
- 404: ResourceNotFoundError,
26139
- 409: ResourceExistsError,
26140
- 304: ResourceNotModifiedError,
26141
- }
26142
- error_map.update(kwargs.pop("error_map", {}) or {})
26143
-
26144
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
26145
- _params = kwargs.pop("params", {}) or {}
26146
-
26147
- content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
26148
- cls: ClsType[None] = kwargs.pop("cls", None)
26149
-
26150
- content_type = content_type or "application/json"
26151
- _json = None
26152
- _content = None
26153
- if isinstance(body, (IOBase, bytes)):
26154
- _content = body
26155
- else:
26156
- if body is not None:
26157
- _json = self._serialize.body(body, "ImportMeasurementFormInstanceValueRequest")
26158
- else:
26159
- _json = None
26160
-
26161
- _request = build_measurement_forms_instances_import_measurement_form_instance_values_request(
26162
- id=id,
26163
- content_type=content_type,
26164
- json=_json,
26165
- content=_content,
26166
- headers=_headers,
26167
- params=_params,
26168
- )
26169
- _request.url = self._client.format_url(_request.url)
26170
-
26171
- _stream = False
26172
- pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
26173
- _request, stream=_stream, **kwargs
26174
- )
26175
-
26176
- response = pipeline_response.http_response
26177
-
26178
- if response.status_code not in [204]:
26179
- if _stream:
26180
- response.read() # Load the body in memory and close the socket
26181
- map_error(status_code=response.status_code, response=response, error_map=error_map)
26182
- raise HttpResponseError(response=response)
26183
-
26184
- if cls:
26185
- return cls(pipeline_response, None, {}) # type: ignore
26186
-
26187
26236
 
26188
26237
  class MeasuringToolsOperations: # pylint: disable=too-many-public-methods
26189
26238
  """
@@ -1,12 +1,12 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ignos-api-client
3
- Version: 2023.12.13.7732
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
 
@@ -5,23 +5,23 @@ ignos/api/client/_client.py,sha256=0k9ogfYxK-X1AP9o5zugEUC24rDXGwfRJbhrbf8J6MQ,1
5
5
  ignos/api/client/_configuration.py,sha256=VKsogK8ivXH4OjZox220-uNM5rkOjj7Xx3RuFmbt748,2878
6
6
  ignos/api/client/_patch.py,sha256=P7PMm3Gbjlk56lI6B_Ra43hSW5qGMEmN3cNYGH5uZ3s,674
7
7
  ignos/api/client/_serialization.py,sha256=RQT_z-4Q6lxbVcwGxC4uQ1LDGCt7gNth5t_zBM8JQ18,79092
8
- ignos/api/client/_version.py,sha256=aKR2Zc4zgGmsReQ4UKMVwNNUSXiALxVBIWEitPqkZaM,496
8
+ ignos/api/client/_version.py,sha256=mjZ6QOED1XUic6OSlOBZEDvsIGke81YRiEtCRvBNjCM,496
9
9
  ignos/api/client/py.typed,sha256=dcrsqJrcYfTX-ckLFJMTaj6mD8aDe2u0tkQG-ZYxnEg,26
10
10
  ignos/api/client/aio/__init__.py,sha256=BxlHH19w-NSPLxsg-CboXjxuJBj9TuFeacpQwWmCjPw,813
11
11
  ignos/api/client/aio/_client.py,sha256=FbJUlzlGQNkvpJxZmwnBvXq08lWAFFKoD9Qw3aAZYDA,17124
12
12
  ignos/api/client/aio/_configuration.py,sha256=UE1aefj17JmL0zcVD-xLiE19S30Dgis5y_Lk45-VjN0,2921
13
13
  ignos/api/client/aio/_patch.py,sha256=P7PMm3Gbjlk56lI6B_Ra43hSW5qGMEmN3cNYGH5uZ3s,674
14
14
  ignos/api/client/aio/operations/__init__.py,sha256=Z4Sr1QLFj4h6n6C6vbZRJrUqMXNRidrliqL4UpX39E8,4161
15
- ignos/api/client/aio/operations/_operations.py,sha256=w9AjIX62tMK2xOFf3wgtMV8R-vHoq_ikXfWJv7Q-i9Y,1118712
15
+ ignos/api/client/aio/operations/_operations.py,sha256=vfhqDexGJAlwhDQkvmfDS7BYTsFBAx_Z4HSC2ByKaiE,1120441
16
16
  ignos/api/client/aio/operations/_patch.py,sha256=P7PMm3Gbjlk56lI6B_Ra43hSW5qGMEmN3cNYGH5uZ3s,674
17
- ignos/api/client/models/__init__.py,sha256=uvgCzdh2SLLW-Y--II2Tv6TI72hFRn0x-n8MbWFsQG8,33958
18
- ignos/api/client/models/_enums.py,sha256=39h_CXvZD6gWSWiEnDbYLy9Sbey1D0JXOyqgyPvYy48,10358
19
- ignos/api/client/models/_models.py,sha256=eQJDg44FKPvIp-J4HEMxClURyj0_btqQ442U7eceyGk,908987
17
+ ignos/api/client/models/__init__.py,sha256=Aylb9RSvx5oEvwajTldvrkWQqzTll7TLIbg7dXC6wrU,33747
18
+ ignos/api/client/models/_enums.py,sha256=X4LDl9A46pHnaDc6p_fHDCkf1n0KWnG50WbLcbik62M,10585
19
+ ignos/api/client/models/_models.py,sha256=RWGiyEn1I9FBOCW9kQnbOOWzEiL399E8TPw09BUZQUk,905784
20
20
  ignos/api/client/models/_patch.py,sha256=P7PMm3Gbjlk56lI6B_Ra43hSW5qGMEmN3cNYGH5uZ3s,674
21
21
  ignos/api/client/operations/__init__.py,sha256=Z4Sr1QLFj4h6n6C6vbZRJrUqMXNRidrliqL4UpX39E8,4161
22
- ignos/api/client/operations/_operations.py,sha256=RH8SiXprxfD50-1A3uM1ibSS3wSlx1O1dlW0YBjMYgg,1359784
22
+ ignos/api/client/operations/_operations.py,sha256=oDaquqd8YaNLzH0vNCi2g9Zb9jBMrCmQZOqco2kn7wA,1361713
23
23
  ignos/api/client/operations/_patch.py,sha256=P7PMm3Gbjlk56lI6B_Ra43hSW5qGMEmN3cNYGH5uZ3s,674
24
- ignos_api_client-2023.12.13.7732.dist-info/METADATA,sha256=JYep5vqeA3i0W-iAoW-SxmZ8ED7Z-cCUUrzSwQAy1yE,252
25
- ignos_api_client-2023.12.13.7732.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
26
- ignos_api_client-2023.12.13.7732.dist-info/top_level.txt,sha256=eGbj-YCTgfKuJX7-n95eMN-onlnccQiO8XnhWA0wgVA,6
27
- ignos_api_client-2023.12.13.7732.dist-info/RECORD,,
24
+ ignos_api_client-2023.12.22.7919.dist-info/METADATA,sha256=rGWfBXap0ueXVTzwXPspKj0BAk5FOUeWLswy_yQ8IDA,252
25
+ ignos_api_client-2023.12.22.7919.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
26
+ ignos_api_client-2023.12.22.7919.dist-info/top_level.txt,sha256=eGbj-YCTgfKuJX7-n95eMN-onlnccQiO8XnhWA0wgVA,6
27
+ ignos_api_client-2023.12.22.7919.dist-info/RECORD,,