ignos-api-client 2023.6.14.5376__py3-none-any.whl → 2023.7.7.5556__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.
- ignos/api/client/_client.py +16 -0
- ignos/api/client/_version.py +1 -1
- ignos/api/client/aio/_client.py +16 -0
- ignos/api/client/aio/operations/__init__.py +8 -0
- ignos/api/client/aio/operations/_operations.py +2346 -883
- ignos/api/client/models/__init__.py +68 -0
- ignos/api/client/models/_enums.py +108 -0
- ignos/api/client/models/_models.py +1905 -118
- ignos/api/client/operations/__init__.py +8 -0
- ignos/api/client/operations/_operations.py +2178 -436
- {ignos_api_client-2023.6.14.5376.dist-info → ignos_api_client-2023.7.7.5556.dist-info}/METADATA +1 -1
- ignos_api_client-2023.7.7.5556.dist-info/RECORD +27 -0
- ignos_api_client-2023.6.14.5376.dist-info/RECORD +0 -27
- {ignos_api_client-2023.6.14.5376.dist-info → ignos_api_client-2023.7.7.5556.dist-info}/WHEEL +0 -0
- {ignos_api_client-2023.6.14.5376.dist-info → ignos_api_client-2023.7.7.5556.dist-info}/top_level.txt +0 -0
|
@@ -98,6 +98,15 @@ from ...operations._operations import (
|
|
|
98
98
|
build_customers_get_current_customer_request,
|
|
99
99
|
build_customers_list_customers_request,
|
|
100
100
|
build_customers_upsert_customer_request,
|
|
101
|
+
build_document_types_active_document_type_request,
|
|
102
|
+
build_document_types_create_document_type_request,
|
|
103
|
+
build_document_types_deactive_document_type_request,
|
|
104
|
+
build_document_types_delete_document_type_request,
|
|
105
|
+
build_document_types_list_available_tags_for_document_type_request,
|
|
106
|
+
build_document_types_list_document_types_request,
|
|
107
|
+
build_document_types_update_document_type_request,
|
|
108
|
+
build_documents_import_document_contents_request,
|
|
109
|
+
build_documents_import_document_request,
|
|
101
110
|
build_electrical_create_electrical_iot_config_request,
|
|
102
111
|
build_electrical_delete_electrical_iot_config_request,
|
|
103
112
|
build_electrical_list_electrical_data_configs_request,
|
|
@@ -254,6 +263,12 @@ from ...operations._operations import (
|
|
|
254
263
|
build_mes_resource_list_resource_group_resources_request,
|
|
255
264
|
build_mes_resource_list_resource_groups_request,
|
|
256
265
|
build_mes_set_current_production_company_request,
|
|
266
|
+
build_mrb_attach_pdf_request,
|
|
267
|
+
build_mrb_create_mrb_template_request,
|
|
268
|
+
build_mrb_delete_mrb_template_request,
|
|
269
|
+
build_mrb_get_mrb_template_request,
|
|
270
|
+
build_mrb_list_mrb_templates_request,
|
|
271
|
+
build_mrb_update_mrb_template_request,
|
|
257
272
|
build_operator_calculators_calculate_bar_weight_request,
|
|
258
273
|
build_operator_calculators_calculate_right_angled_triangle_request,
|
|
259
274
|
build_operator_calculators_calculate_spindle_and_cutting_speed_request,
|
|
@@ -274,6 +289,7 @@ from ...operations._operations import (
|
|
|
274
289
|
build_sustainability_get_work_order_consumption_request,
|
|
275
290
|
build_sustainability_test_request,
|
|
276
291
|
build_system_health_dashboard_get_machine_data_health_request,
|
|
292
|
+
build_trace_get_work_order_trace_request,
|
|
277
293
|
build_upload_create_upload_info_request,
|
|
278
294
|
build_users_list_users_request,
|
|
279
295
|
build_welding_create_welding_iot_config_request,
|
|
@@ -295,8 +311,10 @@ from ...operations._operations import (
|
|
|
295
311
|
build_workorders_stop_workorder_operation_request,
|
|
296
312
|
build_workorders_stop_workorder_operation_v2_request,
|
|
297
313
|
build_workorders_update_workorder_operation_event_timestamps_request,
|
|
314
|
+
build_workorders_upsert_workorder_consumption_request,
|
|
298
315
|
build_workorders_upsert_workorder_request,
|
|
299
316
|
build_workorders_upsert_workorder_traces_request,
|
|
317
|
+
build_workorders_upsert_workorder_v2_request,
|
|
300
318
|
build_workspace_templates_admin_create_workspace_template_request,
|
|
301
319
|
build_workspace_templates_admin_delete_workspace_template_request,
|
|
302
320
|
build_workspace_templates_admin_delete_workspace_template_widget_request,
|
|
@@ -5613,14 +5631,14 @@ class CustomersOperations:
|
|
|
5613
5631
|
return deserialized
|
|
5614
5632
|
|
|
5615
5633
|
|
|
5616
|
-
class
|
|
5634
|
+
class DocumentsOperations:
|
|
5617
5635
|
"""
|
|
5618
5636
|
.. warning::
|
|
5619
5637
|
**DO NOT** instantiate this class directly.
|
|
5620
5638
|
|
|
5621
5639
|
Instead, you should access the following operations through
|
|
5622
5640
|
:class:`~ignos.api.client.aio.IgnosPortal`'s
|
|
5623
|
-
:attr:`
|
|
5641
|
+
:attr:`documents` attribute.
|
|
5624
5642
|
"""
|
|
5625
5643
|
|
|
5626
5644
|
models = _models
|
|
@@ -5633,69 +5651,55 @@ class CustomerOrdersOperations:
|
|
|
5633
5651
|
self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
|
5634
5652
|
|
|
5635
5653
|
@overload
|
|
5636
|
-
async def
|
|
5637
|
-
self,
|
|
5638
|
-
|
|
5639
|
-
|
|
5640
|
-
*,
|
|
5641
|
-
content_type: str = "application/json",
|
|
5642
|
-
**kwargs: Any
|
|
5643
|
-
) -> None:
|
|
5644
|
-
"""Upsert a customer order.
|
|
5654
|
+
async def import_document(
|
|
5655
|
+
self, body: Optional[_models.ImportDocument] = None, *, content_type: str = "application/json", **kwargs: Any
|
|
5656
|
+
) -> JSON:
|
|
5657
|
+
"""Import document with revisions from other systems.
|
|
5645
5658
|
|
|
5646
|
-
|
|
5659
|
+
Import document with revisions from other systems.
|
|
5647
5660
|
|
|
5648
|
-
:param
|
|
5649
|
-
:type
|
|
5650
|
-
:param body: Order details. Default value is None.
|
|
5651
|
-
:type body: ~ignos.api.client.models.UpsertCustomerOrderRequest
|
|
5661
|
+
:param body: Default value is None.
|
|
5662
|
+
:type body: ~ignos.api.client.models.ImportDocument
|
|
5652
5663
|
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
|
5653
5664
|
Default value is "application/json".
|
|
5654
5665
|
:paramtype content_type: str
|
|
5655
|
-
:return:
|
|
5656
|
-
:rtype:
|
|
5666
|
+
:return: JSON
|
|
5667
|
+
:rtype: JSON
|
|
5657
5668
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
5658
5669
|
"""
|
|
5659
5670
|
|
|
5660
5671
|
@overload
|
|
5661
|
-
async def
|
|
5662
|
-
self,
|
|
5663
|
-
) ->
|
|
5664
|
-
"""
|
|
5672
|
+
async def import_document(
|
|
5673
|
+
self, body: Optional[IO] = None, *, content_type: str = "application/json", **kwargs: Any
|
|
5674
|
+
) -> JSON:
|
|
5675
|
+
"""Import document with revisions from other systems.
|
|
5665
5676
|
|
|
5666
|
-
|
|
5677
|
+
Import document with revisions from other systems.
|
|
5667
5678
|
|
|
5668
|
-
:param
|
|
5669
|
-
:type id: str
|
|
5670
|
-
:param body: Order details. Default value is None.
|
|
5679
|
+
:param body: Default value is None.
|
|
5671
5680
|
:type body: IO
|
|
5672
5681
|
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
|
5673
5682
|
Known values are: 'application/*+json', 'application/json', 'text/json'. Default value is
|
|
5674
5683
|
"application/json".
|
|
5675
5684
|
:paramtype content_type: str
|
|
5676
|
-
:return:
|
|
5677
|
-
:rtype:
|
|
5685
|
+
:return: JSON
|
|
5686
|
+
:rtype: JSON
|
|
5678
5687
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
5679
5688
|
"""
|
|
5680
5689
|
|
|
5681
5690
|
@distributed_trace_async
|
|
5682
|
-
async def
|
|
5683
|
-
|
|
5684
|
-
) -> None:
|
|
5685
|
-
"""Upsert a customer order.
|
|
5691
|
+
async def import_document(self, body: Optional[Union[_models.ImportDocument, IO]] = None, **kwargs: Any) -> JSON:
|
|
5692
|
+
"""Import document with revisions from other systems.
|
|
5686
5693
|
|
|
5687
|
-
|
|
5694
|
+
Import document with revisions from other systems.
|
|
5688
5695
|
|
|
5689
|
-
:param
|
|
5690
|
-
:type
|
|
5691
|
-
:param body: Order details. Is either a UpsertCustomerOrderRequest type or a IO type. Default
|
|
5692
|
-
value is None.
|
|
5693
|
-
:type body: ~ignos.api.client.models.UpsertCustomerOrderRequest or IO
|
|
5696
|
+
:param body: Is either a ImportDocument type or a IO type. Default value is None.
|
|
5697
|
+
:type body: ~ignos.api.client.models.ImportDocument or IO
|
|
5694
5698
|
:keyword content_type: Body Parameter content-type. Known values are: 'application/*+json',
|
|
5695
5699
|
'application/json', 'text/json'. Default value is None.
|
|
5696
5700
|
:paramtype content_type: str
|
|
5697
|
-
:return:
|
|
5698
|
-
:rtype:
|
|
5701
|
+
:return: JSON
|
|
5702
|
+
:rtype: JSON
|
|
5699
5703
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
5700
5704
|
"""
|
|
5701
5705
|
error_map = {
|
|
@@ -5710,7 +5714,7 @@ class CustomerOrdersOperations:
|
|
|
5710
5714
|
_params = kwargs.pop("params", {}) or {}
|
|
5711
5715
|
|
|
5712
5716
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
5713
|
-
cls: ClsType[
|
|
5717
|
+
cls: ClsType[JSON] = kwargs.pop("cls", None)
|
|
5714
5718
|
|
|
5715
5719
|
content_type = content_type or "application/json"
|
|
5716
5720
|
_json = None
|
|
@@ -5719,12 +5723,11 @@ class CustomerOrdersOperations:
|
|
|
5719
5723
|
_content = body
|
|
5720
5724
|
else:
|
|
5721
5725
|
if body is not None:
|
|
5722
|
-
_json = self._serialize.body(body, "
|
|
5726
|
+
_json = self._serialize.body(body, "ImportDocument")
|
|
5723
5727
|
else:
|
|
5724
5728
|
_json = None
|
|
5725
5729
|
|
|
5726
|
-
request =
|
|
5727
|
-
id=id,
|
|
5730
|
+
request = build_documents_import_document_request(
|
|
5728
5731
|
content_type=content_type,
|
|
5729
5732
|
json=_json,
|
|
5730
5733
|
content=_content,
|
|
@@ -5740,82 +5743,27 @@ class CustomerOrdersOperations:
|
|
|
5740
5743
|
|
|
5741
5744
|
response = pipeline_response.http_response
|
|
5742
5745
|
|
|
5743
|
-
if response.status_code not in [
|
|
5746
|
+
if response.status_code not in [200]:
|
|
5744
5747
|
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
5745
5748
|
raise HttpResponseError(response=response)
|
|
5746
5749
|
|
|
5747
|
-
|
|
5748
|
-
return cls(pipeline_response, None, {})
|
|
5749
|
-
|
|
5750
|
-
@overload
|
|
5751
|
-
async def upsert_customer_order_line( # pylint: disable=inconsistent-return-statements
|
|
5752
|
-
self,
|
|
5753
|
-
id: str,
|
|
5754
|
-
line: int,
|
|
5755
|
-
body: Optional[_models.CustomerOrderLineDto] = None,
|
|
5756
|
-
*,
|
|
5757
|
-
content_type: str = "application/json",
|
|
5758
|
-
**kwargs: Any
|
|
5759
|
-
) -> None:
|
|
5760
|
-
"""Upsert a customer order line. Customer order must exist.
|
|
5761
|
-
|
|
5762
|
-
Upsert a customer order line. Customer order must exist.
|
|
5763
|
-
|
|
5764
|
-
:param id: Customer order id. Required.
|
|
5765
|
-
:type id: str
|
|
5766
|
-
:param line: Customer order line. Required.
|
|
5767
|
-
:type line: int
|
|
5768
|
-
:param body: Order line details. Default value is None.
|
|
5769
|
-
:type body: ~ignos.api.client.models.CustomerOrderLineDto
|
|
5770
|
-
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
|
5771
|
-
Default value is "application/json".
|
|
5772
|
-
:paramtype content_type: str
|
|
5773
|
-
:return: None
|
|
5774
|
-
:rtype: None
|
|
5775
|
-
:raises ~azure.core.exceptions.HttpResponseError:
|
|
5776
|
-
"""
|
|
5777
|
-
|
|
5778
|
-
@overload
|
|
5779
|
-
async def upsert_customer_order_line( # pylint: disable=inconsistent-return-statements
|
|
5780
|
-
self, id: str, line: int, body: Optional[IO] = None, *, content_type: str = "application/json", **kwargs: Any
|
|
5781
|
-
) -> None:
|
|
5782
|
-
"""Upsert a customer order line. Customer order must exist.
|
|
5750
|
+
deserialized = self._deserialize("object", pipeline_response)
|
|
5783
5751
|
|
|
5784
|
-
|
|
5752
|
+
if cls:
|
|
5753
|
+
return cls(pipeline_response, deserialized, {})
|
|
5785
5754
|
|
|
5786
|
-
|
|
5787
|
-
:type id: str
|
|
5788
|
-
:param line: Customer order line. Required.
|
|
5789
|
-
:type line: int
|
|
5790
|
-
:param body: Order line details. Default value is None.
|
|
5791
|
-
:type body: IO
|
|
5792
|
-
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
|
5793
|
-
Known values are: 'application/*+json', 'application/json', 'text/json'. Default value is
|
|
5794
|
-
"application/json".
|
|
5795
|
-
:paramtype content_type: str
|
|
5796
|
-
:return: None
|
|
5797
|
-
:rtype: None
|
|
5798
|
-
:raises ~azure.core.exceptions.HttpResponseError:
|
|
5799
|
-
"""
|
|
5755
|
+
return deserialized
|
|
5800
5756
|
|
|
5801
5757
|
@distributed_trace_async
|
|
5802
|
-
async def
|
|
5803
|
-
self,
|
|
5758
|
+
async def import_document_contents( # pylint: disable=inconsistent-return-statements
|
|
5759
|
+
self, body: Optional[JSON] = None, **kwargs: Any
|
|
5804
5760
|
) -> None:
|
|
5805
|
-
"""
|
|
5761
|
+
"""Register imported content for document revisions.
|
|
5806
5762
|
|
|
5807
|
-
|
|
5763
|
+
Register imported content for document revisions.
|
|
5808
5764
|
|
|
5809
|
-
:param
|
|
5810
|
-
:type
|
|
5811
|
-
:param line: Customer order line. Required.
|
|
5812
|
-
:type line: int
|
|
5813
|
-
:param body: Order line details. Is either a CustomerOrderLineDto type or a IO type. Default
|
|
5814
|
-
value is None.
|
|
5815
|
-
:type body: ~ignos.api.client.models.CustomerOrderLineDto or IO
|
|
5816
|
-
:keyword content_type: Body Parameter content-type. Known values are: 'application/*+json',
|
|
5817
|
-
'application/json', 'text/json'. Default value is None.
|
|
5818
|
-
:paramtype content_type: str
|
|
5765
|
+
:param body: Default value is None.
|
|
5766
|
+
:type body: JSON
|
|
5819
5767
|
:return: None
|
|
5820
5768
|
:rtype: None
|
|
5821
5769
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
@@ -5831,26 +5779,17 @@ class CustomerOrdersOperations:
|
|
|
5831
5779
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
5832
5780
|
_params = kwargs.pop("params", {}) or {}
|
|
5833
5781
|
|
|
5834
|
-
content_type:
|
|
5782
|
+
content_type: str = kwargs.pop("content_type", _headers.pop("Content-Type", "application/json"))
|
|
5835
5783
|
cls: ClsType[None] = kwargs.pop("cls", None)
|
|
5836
5784
|
|
|
5837
|
-
|
|
5838
|
-
|
|
5839
|
-
_content = None
|
|
5840
|
-
if isinstance(body, (IOBase, bytes)):
|
|
5841
|
-
_content = body
|
|
5785
|
+
if body is not None:
|
|
5786
|
+
_json = self._serialize.body(body, "object")
|
|
5842
5787
|
else:
|
|
5843
|
-
|
|
5844
|
-
_json = self._serialize.body(body, "CustomerOrderLineDto")
|
|
5845
|
-
else:
|
|
5846
|
-
_json = None
|
|
5788
|
+
_json = None
|
|
5847
5789
|
|
|
5848
|
-
request =
|
|
5849
|
-
id=id,
|
|
5850
|
-
line=line,
|
|
5790
|
+
request = build_documents_import_document_contents_request(
|
|
5851
5791
|
content_type=content_type,
|
|
5852
5792
|
json=_json,
|
|
5853
|
-
content=_content,
|
|
5854
5793
|
headers=_headers,
|
|
5855
5794
|
params=_params,
|
|
5856
5795
|
)
|
|
@@ -5863,7 +5802,7 @@ class CustomerOrdersOperations:
|
|
|
5863
5802
|
|
|
5864
5803
|
response = pipeline_response.http_response
|
|
5865
5804
|
|
|
5866
|
-
if response.status_code not in [
|
|
5805
|
+
if response.status_code not in [204]:
|
|
5867
5806
|
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
5868
5807
|
raise HttpResponseError(response=response)
|
|
5869
5808
|
|
|
@@ -5871,14 +5810,14 @@ class CustomerOrdersOperations:
|
|
|
5871
5810
|
return cls(pipeline_response, None, {})
|
|
5872
5811
|
|
|
5873
5812
|
|
|
5874
|
-
class
|
|
5813
|
+
class DocumentTypesOperations:
|
|
5875
5814
|
"""
|
|
5876
5815
|
.. warning::
|
|
5877
5816
|
**DO NOT** instantiate this class directly.
|
|
5878
5817
|
|
|
5879
5818
|
Instead, you should access the following operations through
|
|
5880
5819
|
:class:`~ignos.api.client.aio.IgnosPortal`'s
|
|
5881
|
-
:attr:`
|
|
5820
|
+
:attr:`document_types` attribute.
|
|
5882
5821
|
"""
|
|
5883
5822
|
|
|
5884
5823
|
models = _models
|
|
@@ -5890,31 +5829,81 @@ class WorkordersOperations:
|
|
|
5890
5829
|
self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
|
5891
5830
|
self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
|
5892
5831
|
|
|
5893
|
-
@
|
|
5894
|
-
async def
|
|
5895
|
-
self,
|
|
5896
|
-
) ->
|
|
5897
|
-
"""
|
|
5832
|
+
@distributed_trace_async
|
|
5833
|
+
async def list_document_types(
|
|
5834
|
+
self, *, include_inactive: bool = False, **kwargs: Any
|
|
5835
|
+
) -> List[_models.DocumentTypeDto]:
|
|
5836
|
+
"""list_document_types.
|
|
5898
5837
|
|
|
5899
|
-
|
|
5838
|
+
:keyword include_inactive: Default value is False.
|
|
5839
|
+
:paramtype include_inactive: bool
|
|
5840
|
+
:return: list of DocumentTypeDto
|
|
5841
|
+
:rtype: list[~ignos.api.client.models.DocumentTypeDto]
|
|
5842
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
5843
|
+
"""
|
|
5844
|
+
error_map = {
|
|
5845
|
+
401: ClientAuthenticationError,
|
|
5846
|
+
404: ResourceNotFoundError,
|
|
5847
|
+
409: ResourceExistsError,
|
|
5848
|
+
304: ResourceNotModifiedError,
|
|
5849
|
+
}
|
|
5850
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
5851
|
+
|
|
5852
|
+
_headers = kwargs.pop("headers", {}) or {}
|
|
5853
|
+
_params = kwargs.pop("params", {}) or {}
|
|
5854
|
+
|
|
5855
|
+
cls: ClsType[List[_models.DocumentTypeDto]] = kwargs.pop("cls", None)
|
|
5856
|
+
|
|
5857
|
+
request = build_document_types_list_document_types_request(
|
|
5858
|
+
include_inactive=include_inactive,
|
|
5859
|
+
headers=_headers,
|
|
5860
|
+
params=_params,
|
|
5861
|
+
)
|
|
5862
|
+
request.url = self._client.format_url(request.url)
|
|
5863
|
+
|
|
5864
|
+
_stream = False
|
|
5865
|
+
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
|
5866
|
+
request, stream=_stream, **kwargs
|
|
5867
|
+
)
|
|
5868
|
+
|
|
5869
|
+
response = pipeline_response.http_response
|
|
5870
|
+
|
|
5871
|
+
if response.status_code not in [200]:
|
|
5872
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
5873
|
+
raise HttpResponseError(response=response)
|
|
5874
|
+
|
|
5875
|
+
deserialized = self._deserialize("[DocumentTypeDto]", pipeline_response)
|
|
5876
|
+
|
|
5877
|
+
if cls:
|
|
5878
|
+
return cls(pipeline_response, deserialized, {})
|
|
5879
|
+
|
|
5880
|
+
return deserialized
|
|
5881
|
+
|
|
5882
|
+
@overload
|
|
5883
|
+
async def create_document_type(
|
|
5884
|
+
self,
|
|
5885
|
+
body: Optional[_models.CreateDocumentType] = None,
|
|
5886
|
+
*,
|
|
5887
|
+
content_type: str = "application/json",
|
|
5888
|
+
**kwargs: Any
|
|
5889
|
+
) -> _models.DocumentTypeDto:
|
|
5890
|
+
"""create_document_type.
|
|
5900
5891
|
|
|
5901
5892
|
:param body: Default value is None.
|
|
5902
|
-
:type body: ~ignos.api.client.models.
|
|
5893
|
+
:type body: ~ignos.api.client.models.CreateDocumentType
|
|
5903
5894
|
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
|
5904
5895
|
Default value is "application/json".
|
|
5905
5896
|
:paramtype content_type: str
|
|
5906
|
-
:return:
|
|
5907
|
-
:rtype:
|
|
5897
|
+
:return: DocumentTypeDto
|
|
5898
|
+
:rtype: ~ignos.api.client.models.DocumentTypeDto
|
|
5908
5899
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
5909
5900
|
"""
|
|
5910
5901
|
|
|
5911
5902
|
@overload
|
|
5912
|
-
async def
|
|
5903
|
+
async def create_document_type(
|
|
5913
5904
|
self, body: Optional[IO] = None, *, content_type: str = "application/json", **kwargs: Any
|
|
5914
|
-
) ->
|
|
5915
|
-
"""
|
|
5916
|
-
|
|
5917
|
-
Create or update a workorder.
|
|
5905
|
+
) -> _models.DocumentTypeDto:
|
|
5906
|
+
"""create_document_type.
|
|
5918
5907
|
|
|
5919
5908
|
:param body: Default value is None.
|
|
5920
5909
|
:type body: IO
|
|
@@ -5922,26 +5911,24 @@ class WorkordersOperations:
|
|
|
5922
5911
|
Known values are: 'application/*+json', 'application/json', 'text/json'. Default value is
|
|
5923
5912
|
"application/json".
|
|
5924
5913
|
:paramtype content_type: str
|
|
5925
|
-
:return:
|
|
5926
|
-
:rtype:
|
|
5914
|
+
:return: DocumentTypeDto
|
|
5915
|
+
:rtype: ~ignos.api.client.models.DocumentTypeDto
|
|
5927
5916
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
5928
5917
|
"""
|
|
5929
5918
|
|
|
5930
5919
|
@distributed_trace_async
|
|
5931
|
-
async def
|
|
5932
|
-
self, body: Optional[Union[_models.
|
|
5933
|
-
) ->
|
|
5934
|
-
"""
|
|
5935
|
-
|
|
5936
|
-
Create or update a workorder.
|
|
5920
|
+
async def create_document_type(
|
|
5921
|
+
self, body: Optional[Union[_models.CreateDocumentType, IO]] = None, **kwargs: Any
|
|
5922
|
+
) -> _models.DocumentTypeDto:
|
|
5923
|
+
"""create_document_type.
|
|
5937
5924
|
|
|
5938
|
-
:param body: Is either a
|
|
5939
|
-
:type body: ~ignos.api.client.models.
|
|
5925
|
+
:param body: Is either a CreateDocumentType type or a IO type. Default value is None.
|
|
5926
|
+
:type body: ~ignos.api.client.models.CreateDocumentType or IO
|
|
5940
5927
|
:keyword content_type: Body Parameter content-type. Known values are: 'application/*+json',
|
|
5941
5928
|
'application/json', 'text/json'. Default value is None.
|
|
5942
5929
|
:paramtype content_type: str
|
|
5943
|
-
:return:
|
|
5944
|
-
:rtype:
|
|
5930
|
+
:return: DocumentTypeDto
|
|
5931
|
+
:rtype: ~ignos.api.client.models.DocumentTypeDto
|
|
5945
5932
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
5946
5933
|
"""
|
|
5947
5934
|
error_map = {
|
|
@@ -5956,7 +5943,7 @@ class WorkordersOperations:
|
|
|
5956
5943
|
_params = kwargs.pop("params", {}) or {}
|
|
5957
5944
|
|
|
5958
5945
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
5959
|
-
cls: ClsType[
|
|
5946
|
+
cls: ClsType[_models.DocumentTypeDto] = kwargs.pop("cls", None)
|
|
5960
5947
|
|
|
5961
5948
|
content_type = content_type or "application/json"
|
|
5962
5949
|
_json = None
|
|
@@ -5965,11 +5952,11 @@ class WorkordersOperations:
|
|
|
5965
5952
|
_content = body
|
|
5966
5953
|
else:
|
|
5967
5954
|
if body is not None:
|
|
5968
|
-
_json = self._serialize.body(body, "
|
|
5955
|
+
_json = self._serialize.body(body, "CreateDocumentType")
|
|
5969
5956
|
else:
|
|
5970
5957
|
_json = None
|
|
5971
5958
|
|
|
5972
|
-
request =
|
|
5959
|
+
request = build_document_types_create_document_type_request(
|
|
5973
5960
|
content_type=content_type,
|
|
5974
5961
|
json=_json,
|
|
5975
5962
|
content=_content,
|
|
@@ -5985,60 +5972,54 @@ class WorkordersOperations:
|
|
|
5985
5972
|
|
|
5986
5973
|
response = pipeline_response.http_response
|
|
5987
5974
|
|
|
5988
|
-
if response.status_code not in [
|
|
5975
|
+
if response.status_code not in [200]:
|
|
5989
5976
|
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
5990
5977
|
raise HttpResponseError(response=response)
|
|
5991
5978
|
|
|
5979
|
+
deserialized = self._deserialize("DocumentTypeDto", pipeline_response)
|
|
5980
|
+
|
|
5992
5981
|
if cls:
|
|
5993
|
-
return cls(pipeline_response,
|
|
5982
|
+
return cls(pipeline_response, deserialized, {})
|
|
5983
|
+
|
|
5984
|
+
return deserialized
|
|
5994
5985
|
|
|
5995
5986
|
@distributed_trace_async
|
|
5996
|
-
async def
|
|
5997
|
-
self,
|
|
5998
|
-
|
|
5999
|
-
|
|
6000
|
-
search: Optional[str] = None,
|
|
6001
|
-
active_orders: Optional[bool] = None,
|
|
6002
|
-
continuation_token_parameter: Optional[str] = None,
|
|
6003
|
-
**kwargs: Any
|
|
6004
|
-
) -> _models.WorkorderListDtoPagedResult:
|
|
6005
|
-
"""List work orders.
|
|
5987
|
+
async def update_document_type(
|
|
5988
|
+
self, id: str, body: Optional[JSON] = None, **kwargs: Any
|
|
5989
|
+
) -> _models.DocumentTypeDto:
|
|
5990
|
+
"""update_document_type.
|
|
6006
5991
|
|
|
6007
|
-
|
|
5992
|
+
:param id: Required.
|
|
5993
|
+
:type id: str
|
|
5994
|
+
:param body: Default value is None.
|
|
5995
|
+
:type body: JSON
|
|
5996
|
+
:return: DocumentTypeDto
|
|
5997
|
+
:rtype: ~ignos.api.client.models.DocumentTypeDto
|
|
5998
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
5999
|
+
"""
|
|
6000
|
+
error_map = {
|
|
6001
|
+
401: ClientAuthenticationError,
|
|
6002
|
+
404: ResourceNotFoundError,
|
|
6003
|
+
409: ResourceExistsError,
|
|
6004
|
+
304: ResourceNotModifiedError,
|
|
6005
|
+
}
|
|
6006
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
6008
6007
|
|
|
6009
|
-
|
|
6010
|
-
value is 50.
|
|
6011
|
-
:paramtype page_size: int
|
|
6012
|
-
:keyword search: Searches work order ID using starts with. Default value is None.
|
|
6013
|
-
:paramtype search: str
|
|
6014
|
-
:keyword active_orders: Searches active or inactive work orders. Use null to ignore. Default
|
|
6015
|
-
value is None.
|
|
6016
|
-
:paramtype active_orders: bool
|
|
6017
|
-
:keyword continuation_token_parameter: Continuation token used for pagination. Default value is
|
|
6018
|
-
None.
|
|
6019
|
-
:paramtype continuation_token_parameter: str
|
|
6020
|
-
:return: WorkorderListDtoPagedResult
|
|
6021
|
-
:rtype: ~ignos.api.client.models.WorkorderListDtoPagedResult
|
|
6022
|
-
:raises ~azure.core.exceptions.HttpResponseError:
|
|
6023
|
-
"""
|
|
6024
|
-
error_map = {
|
|
6025
|
-
401: ClientAuthenticationError,
|
|
6026
|
-
404: ResourceNotFoundError,
|
|
6027
|
-
409: ResourceExistsError,
|
|
6028
|
-
304: ResourceNotModifiedError,
|
|
6029
|
-
}
|
|
6030
|
-
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
6031
|
-
|
|
6032
|
-
_headers = kwargs.pop("headers", {}) or {}
|
|
6008
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
6033
6009
|
_params = kwargs.pop("params", {}) or {}
|
|
6034
6010
|
|
|
6035
|
-
|
|
6011
|
+
content_type: str = kwargs.pop("content_type", _headers.pop("Content-Type", "application/json"))
|
|
6012
|
+
cls: ClsType[_models.DocumentTypeDto] = kwargs.pop("cls", None)
|
|
6036
6013
|
|
|
6037
|
-
|
|
6038
|
-
|
|
6039
|
-
|
|
6040
|
-
|
|
6041
|
-
|
|
6014
|
+
if body is not None:
|
|
6015
|
+
_json = self._serialize.body(body, "object")
|
|
6016
|
+
else:
|
|
6017
|
+
_json = None
|
|
6018
|
+
|
|
6019
|
+
request = build_document_types_update_document_type_request(
|
|
6020
|
+
id=id,
|
|
6021
|
+
content_type=content_type,
|
|
6022
|
+
json=_json,
|
|
6042
6023
|
headers=_headers,
|
|
6043
6024
|
params=_params,
|
|
6044
6025
|
)
|
|
@@ -6055,75 +6036,23 @@ class WorkordersOperations:
|
|
|
6055
6036
|
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
6056
6037
|
raise HttpResponseError(response=response)
|
|
6057
6038
|
|
|
6058
|
-
deserialized = self._deserialize("
|
|
6039
|
+
deserialized = self._deserialize("DocumentTypeDto", pipeline_response)
|
|
6059
6040
|
|
|
6060
6041
|
if cls:
|
|
6061
6042
|
return cls(pipeline_response, deserialized, {})
|
|
6062
6043
|
|
|
6063
6044
|
return deserialized
|
|
6064
6045
|
|
|
6065
|
-
@overload
|
|
6066
|
-
async def upsert_workorder_traces( # pylint: disable=inconsistent-return-statements
|
|
6067
|
-
self,
|
|
6068
|
-
id: str,
|
|
6069
|
-
body: Optional[_models.UpsertWorkorderTracesRequest] = None,
|
|
6070
|
-
*,
|
|
6071
|
-
content_type: str = "application/json",
|
|
6072
|
-
**kwargs: Any
|
|
6073
|
-
) -> None:
|
|
6074
|
-
"""Create or update trace information for a workorder.
|
|
6075
|
-
|
|
6076
|
-
Create or update trace information for a workorder.
|
|
6077
|
-
|
|
6078
|
-
:param id: Workorder id. Required.
|
|
6079
|
-
:type id: str
|
|
6080
|
-
:param body: Trace details. Default value is None.
|
|
6081
|
-
:type body: ~ignos.api.client.models.UpsertWorkorderTracesRequest
|
|
6082
|
-
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
|
6083
|
-
Default value is "application/json".
|
|
6084
|
-
:paramtype content_type: str
|
|
6085
|
-
:return: None
|
|
6086
|
-
:rtype: None
|
|
6087
|
-
:raises ~azure.core.exceptions.HttpResponseError:
|
|
6088
|
-
"""
|
|
6089
|
-
|
|
6090
|
-
@overload
|
|
6091
|
-
async def upsert_workorder_traces( # pylint: disable=inconsistent-return-statements
|
|
6092
|
-
self, id: str, body: Optional[IO] = None, *, content_type: str = "application/json", **kwargs: Any
|
|
6093
|
-
) -> None:
|
|
6094
|
-
"""Create or update trace information for a workorder.
|
|
6095
|
-
|
|
6096
|
-
Create or update trace information for a workorder.
|
|
6097
|
-
|
|
6098
|
-
:param id: Workorder id. Required.
|
|
6099
|
-
:type id: str
|
|
6100
|
-
:param body: Trace details. Default value is None.
|
|
6101
|
-
:type body: IO
|
|
6102
|
-
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
|
6103
|
-
Known values are: 'application/*+json', 'application/json', 'text/json'. Default value is
|
|
6104
|
-
"application/json".
|
|
6105
|
-
:paramtype content_type: str
|
|
6106
|
-
:return: None
|
|
6107
|
-
:rtype: None
|
|
6108
|
-
:raises ~azure.core.exceptions.HttpResponseError:
|
|
6109
|
-
"""
|
|
6110
|
-
|
|
6111
6046
|
@distributed_trace_async
|
|
6112
|
-
async def
|
|
6113
|
-
self, id: str,
|
|
6047
|
+
async def delete_document_type( # pylint: disable=inconsistent-return-statements
|
|
6048
|
+
self, id: str, **kwargs: Any
|
|
6114
6049
|
) -> None:
|
|
6115
|
-
"""
|
|
6050
|
+
"""Delete document type. Only allowed if not used.
|
|
6116
6051
|
|
|
6117
|
-
|
|
6052
|
+
Delete document type. Only allowed if not used.
|
|
6118
6053
|
|
|
6119
|
-
:param id:
|
|
6054
|
+
:param id: Required.
|
|
6120
6055
|
:type id: str
|
|
6121
|
-
:param body: Trace details. Is either a UpsertWorkorderTracesRequest type or a IO type. Default
|
|
6122
|
-
value is None.
|
|
6123
|
-
:type body: ~ignos.api.client.models.UpsertWorkorderTracesRequest or IO
|
|
6124
|
-
:keyword content_type: Body Parameter content-type. Known values are: 'application/*+json',
|
|
6125
|
-
'application/json', 'text/json'. Default value is None.
|
|
6126
|
-
:paramtype content_type: str
|
|
6127
6056
|
:return: None
|
|
6128
6057
|
:rtype: None
|
|
6129
6058
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
@@ -6136,28 +6065,13 @@ class WorkordersOperations:
|
|
|
6136
6065
|
}
|
|
6137
6066
|
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
6138
6067
|
|
|
6139
|
-
_headers =
|
|
6068
|
+
_headers = kwargs.pop("headers", {}) or {}
|
|
6140
6069
|
_params = kwargs.pop("params", {}) or {}
|
|
6141
6070
|
|
|
6142
|
-
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
6143
6071
|
cls: ClsType[None] = kwargs.pop("cls", None)
|
|
6144
6072
|
|
|
6145
|
-
|
|
6146
|
-
_json = None
|
|
6147
|
-
_content = None
|
|
6148
|
-
if isinstance(body, (IOBase, bytes)):
|
|
6149
|
-
_content = body
|
|
6150
|
-
else:
|
|
6151
|
-
if body is not None:
|
|
6152
|
-
_json = self._serialize.body(body, "UpsertWorkorderTracesRequest")
|
|
6153
|
-
else:
|
|
6154
|
-
_json = None
|
|
6155
|
-
|
|
6156
|
-
request = build_workorders_upsert_workorder_traces_request(
|
|
6073
|
+
request = build_document_types_delete_document_type_request(
|
|
6157
6074
|
id=id,
|
|
6158
|
-
content_type=content_type,
|
|
6159
|
-
json=_json,
|
|
6160
|
-
content=_content,
|
|
6161
6075
|
headers=_headers,
|
|
6162
6076
|
params=_params,
|
|
6163
6077
|
)
|
|
@@ -6177,62 +6091,60 @@ class WorkordersOperations:
|
|
|
6177
6091
|
if cls:
|
|
6178
6092
|
return cls(pipeline_response, None, {})
|
|
6179
6093
|
|
|
6180
|
-
@
|
|
6181
|
-
async def
|
|
6182
|
-
self,
|
|
6183
|
-
id: str,
|
|
6184
|
-
body: Optional[_models.WorkorderCustomerOrderReferenceDto] = None,
|
|
6185
|
-
*,
|
|
6186
|
-
content_type: str = "application/json",
|
|
6187
|
-
**kwargs: Any
|
|
6094
|
+
@distributed_trace_async
|
|
6095
|
+
async def active_document_type( # pylint: disable=inconsistent-return-statements
|
|
6096
|
+
self, id: str, **kwargs: Any
|
|
6188
6097
|
) -> None:
|
|
6189
|
-
"""
|
|
6098
|
+
"""active_document_type.
|
|
6190
6099
|
|
|
6191
6100
|
:param id: Required.
|
|
6192
6101
|
:type id: str
|
|
6193
|
-
:param body: Default value is None.
|
|
6194
|
-
:type body: ~ignos.api.client.models.WorkorderCustomerOrderReferenceDto
|
|
6195
|
-
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
|
6196
|
-
Default value is "application/json".
|
|
6197
|
-
:paramtype content_type: str
|
|
6198
6102
|
:return: None
|
|
6199
6103
|
:rtype: None
|
|
6200
6104
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
6201
6105
|
"""
|
|
6106
|
+
error_map = {
|
|
6107
|
+
401: ClientAuthenticationError,
|
|
6108
|
+
404: ResourceNotFoundError,
|
|
6109
|
+
409: ResourceExistsError,
|
|
6110
|
+
304: ResourceNotModifiedError,
|
|
6111
|
+
}
|
|
6112
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
6202
6113
|
|
|
6203
|
-
|
|
6204
|
-
|
|
6205
|
-
self, id: str, body: Optional[IO] = None, *, content_type: str = "application/json", **kwargs: Any
|
|
6206
|
-
) -> None:
|
|
6207
|
-
"""set_workorder_customer_order_reference.
|
|
6114
|
+
_headers = kwargs.pop("headers", {}) or {}
|
|
6115
|
+
_params = kwargs.pop("params", {}) or {}
|
|
6208
6116
|
|
|
6209
|
-
:
|
|
6210
|
-
|
|
6211
|
-
|
|
6212
|
-
|
|
6213
|
-
|
|
6214
|
-
|
|
6215
|
-
|
|
6216
|
-
|
|
6217
|
-
|
|
6218
|
-
|
|
6219
|
-
:
|
|
6220
|
-
|
|
6117
|
+
cls: ClsType[None] = kwargs.pop("cls", None)
|
|
6118
|
+
|
|
6119
|
+
request = build_document_types_active_document_type_request(
|
|
6120
|
+
id=id,
|
|
6121
|
+
headers=_headers,
|
|
6122
|
+
params=_params,
|
|
6123
|
+
)
|
|
6124
|
+
request.url = self._client.format_url(request.url)
|
|
6125
|
+
|
|
6126
|
+
_stream = False
|
|
6127
|
+
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
|
6128
|
+
request, stream=_stream, **kwargs
|
|
6129
|
+
)
|
|
6130
|
+
|
|
6131
|
+
response = pipeline_response.http_response
|
|
6132
|
+
|
|
6133
|
+
if response.status_code not in [204]:
|
|
6134
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
6135
|
+
raise HttpResponseError(response=response)
|
|
6136
|
+
|
|
6137
|
+
if cls:
|
|
6138
|
+
return cls(pipeline_response, None, {})
|
|
6221
6139
|
|
|
6222
6140
|
@distributed_trace_async
|
|
6223
|
-
async def
|
|
6224
|
-
self, id: str,
|
|
6141
|
+
async def deactive_document_type( # pylint: disable=inconsistent-return-statements
|
|
6142
|
+
self, id: str, **kwargs: Any
|
|
6225
6143
|
) -> None:
|
|
6226
|
-
"""
|
|
6144
|
+
"""deactive_document_type.
|
|
6227
6145
|
|
|
6228
6146
|
:param id: Required.
|
|
6229
6147
|
:type id: str
|
|
6230
|
-
:param body: Is either a WorkorderCustomerOrderReferenceDto type or a IO type. Default value is
|
|
6231
|
-
None.
|
|
6232
|
-
:type body: ~ignos.api.client.models.WorkorderCustomerOrderReferenceDto or IO
|
|
6233
|
-
:keyword content_type: Body Parameter content-type. Known values are: 'application/*+json',
|
|
6234
|
-
'application/json', 'text/json'. Default value is None.
|
|
6235
|
-
:paramtype content_type: str
|
|
6236
6148
|
:return: None
|
|
6237
6149
|
:rtype: None
|
|
6238
6150
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
@@ -6245,28 +6157,13 @@ class WorkordersOperations:
|
|
|
6245
6157
|
}
|
|
6246
6158
|
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
6247
6159
|
|
|
6248
|
-
_headers =
|
|
6160
|
+
_headers = kwargs.pop("headers", {}) or {}
|
|
6249
6161
|
_params = kwargs.pop("params", {}) or {}
|
|
6250
6162
|
|
|
6251
|
-
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
6252
6163
|
cls: ClsType[None] = kwargs.pop("cls", None)
|
|
6253
6164
|
|
|
6254
|
-
|
|
6255
|
-
_json = None
|
|
6256
|
-
_content = None
|
|
6257
|
-
if isinstance(body, (IOBase, bytes)):
|
|
6258
|
-
_content = body
|
|
6259
|
-
else:
|
|
6260
|
-
if body is not None:
|
|
6261
|
-
_json = self._serialize.body(body, "WorkorderCustomerOrderReferenceDto")
|
|
6262
|
-
else:
|
|
6263
|
-
_json = None
|
|
6264
|
-
|
|
6265
|
-
request = build_workorders_set_workorder_customer_order_reference_request(
|
|
6165
|
+
request = build_document_types_deactive_document_type_request(
|
|
6266
6166
|
id=id,
|
|
6267
|
-
content_type=content_type,
|
|
6268
|
-
json=_json,
|
|
6269
|
-
content=_content,
|
|
6270
6167
|
headers=_headers,
|
|
6271
6168
|
params=_params,
|
|
6272
6169
|
)
|
|
@@ -6287,13 +6184,13 @@ class WorkordersOperations:
|
|
|
6287
6184
|
return cls(pipeline_response, None, {})
|
|
6288
6185
|
|
|
6289
6186
|
@distributed_trace_async
|
|
6290
|
-
async def
|
|
6291
|
-
"""
|
|
6187
|
+
async def list_available_tags_for_document_type(self, id: str, **kwargs: Any) -> List[str]:
|
|
6188
|
+
"""list_available_tags_for_document_type.
|
|
6292
6189
|
|
|
6293
6190
|
:param id: Required.
|
|
6294
6191
|
:type id: str
|
|
6295
|
-
:return:
|
|
6296
|
-
:rtype:
|
|
6192
|
+
:return: list of str
|
|
6193
|
+
:rtype: list[str]
|
|
6297
6194
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
6298
6195
|
"""
|
|
6299
6196
|
error_map = {
|
|
@@ -6307,9 +6204,9 @@ class WorkordersOperations:
|
|
|
6307
6204
|
_headers = kwargs.pop("headers", {}) or {}
|
|
6308
6205
|
_params = kwargs.pop("params", {}) or {}
|
|
6309
6206
|
|
|
6310
|
-
cls: ClsType[
|
|
6207
|
+
cls: ClsType[List[str]] = kwargs.pop("cls", None)
|
|
6311
6208
|
|
|
6312
|
-
request =
|
|
6209
|
+
request = build_document_types_list_available_tags_for_document_type_request(
|
|
6313
6210
|
id=id,
|
|
6314
6211
|
headers=_headers,
|
|
6315
6212
|
params=_params,
|
|
@@ -6327,33 +6224,50 @@ class WorkordersOperations:
|
|
|
6327
6224
|
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
6328
6225
|
raise HttpResponseError(response=response)
|
|
6329
6226
|
|
|
6330
|
-
deserialized = self._deserialize("
|
|
6227
|
+
deserialized = self._deserialize("[str]", pipeline_response)
|
|
6331
6228
|
|
|
6332
6229
|
if cls:
|
|
6333
6230
|
return cls(pipeline_response, deserialized, {})
|
|
6334
6231
|
|
|
6335
6232
|
return deserialized
|
|
6336
6233
|
|
|
6234
|
+
|
|
6235
|
+
class CustomerOrdersOperations:
|
|
6236
|
+
"""
|
|
6237
|
+
.. warning::
|
|
6238
|
+
**DO NOT** instantiate this class directly.
|
|
6239
|
+
|
|
6240
|
+
Instead, you should access the following operations through
|
|
6241
|
+
:class:`~ignos.api.client.aio.IgnosPortal`'s
|
|
6242
|
+
:attr:`customer_orders` attribute.
|
|
6243
|
+
"""
|
|
6244
|
+
|
|
6245
|
+
models = _models
|
|
6246
|
+
|
|
6247
|
+
def __init__(self, *args, **kwargs) -> None:
|
|
6248
|
+
input_args = list(args)
|
|
6249
|
+
self._client = input_args.pop(0) if input_args else kwargs.pop("client")
|
|
6250
|
+
self._config = input_args.pop(0) if input_args else kwargs.pop("config")
|
|
6251
|
+
self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
|
6252
|
+
self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
|
6253
|
+
|
|
6337
6254
|
@overload
|
|
6338
|
-
async def
|
|
6255
|
+
async def upsert_customer_order( # pylint: disable=inconsistent-return-statements
|
|
6339
6256
|
self,
|
|
6340
6257
|
id: str,
|
|
6341
|
-
|
|
6342
|
-
body: Optional[_models.StartWorkOperationRequest] = None,
|
|
6258
|
+
body: Optional[_models.UpsertCustomerOrderRequest] = None,
|
|
6343
6259
|
*,
|
|
6344
6260
|
content_type: str = "application/json",
|
|
6345
6261
|
**kwargs: Any
|
|
6346
6262
|
) -> None:
|
|
6347
|
-
"""
|
|
6263
|
+
"""Upsert a customer order.
|
|
6348
6264
|
|
|
6349
|
-
|
|
6265
|
+
Upsert a customer order.
|
|
6350
6266
|
|
|
6351
|
-
:param id: Required.
|
|
6267
|
+
:param id: Customer order id. Required.
|
|
6352
6268
|
:type id: str
|
|
6353
|
-
:param
|
|
6354
|
-
:type
|
|
6355
|
-
:param body: Default value is None.
|
|
6356
|
-
:type body: ~ignos.api.client.models.StartWorkOperationRequest
|
|
6269
|
+
:param body: Order details. Default value is None.
|
|
6270
|
+
:type body: ~ignos.api.client.models.UpsertCustomerOrderRequest
|
|
6357
6271
|
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
|
6358
6272
|
Default value is "application/json".
|
|
6359
6273
|
:paramtype content_type: str
|
|
@@ -6363,24 +6277,16 @@ class WorkordersOperations:
|
|
|
6363
6277
|
"""
|
|
6364
6278
|
|
|
6365
6279
|
@overload
|
|
6366
|
-
async def
|
|
6367
|
-
self,
|
|
6368
|
-
id: str,
|
|
6369
|
-
operation: int,
|
|
6370
|
-
body: Optional[IO] = None,
|
|
6371
|
-
*,
|
|
6372
|
-
content_type: str = "application/json",
|
|
6373
|
-
**kwargs: Any
|
|
6280
|
+
async def upsert_customer_order( # pylint: disable=inconsistent-return-statements
|
|
6281
|
+
self, id: str, body: Optional[IO] = None, *, content_type: str = "application/json", **kwargs: Any
|
|
6374
6282
|
) -> None:
|
|
6375
|
-
"""
|
|
6283
|
+
"""Upsert a customer order.
|
|
6376
6284
|
|
|
6377
|
-
|
|
6285
|
+
Upsert a customer order.
|
|
6378
6286
|
|
|
6379
|
-
:param id: Required.
|
|
6287
|
+
:param id: Customer order id. Required.
|
|
6380
6288
|
:type id: str
|
|
6381
|
-
:param
|
|
6382
|
-
:type operation: int
|
|
6383
|
-
:param body: Default value is None.
|
|
6289
|
+
:param body: Order details. Default value is None.
|
|
6384
6290
|
:type body: IO
|
|
6385
6291
|
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
|
6386
6292
|
Known values are: 'application/*+json', 'application/json', 'text/json'. Default value is
|
|
@@ -6392,23 +6298,18 @@ class WorkordersOperations:
|
|
|
6392
6298
|
"""
|
|
6393
6299
|
|
|
6394
6300
|
@distributed_trace_async
|
|
6395
|
-
async def
|
|
6396
|
-
self,
|
|
6397
|
-
id: str,
|
|
6398
|
-
operation: int,
|
|
6399
|
-
body: Optional[Union[_models.StartWorkOperationRequest, IO]] = None,
|
|
6400
|
-
**kwargs: Any
|
|
6301
|
+
async def upsert_customer_order( # pylint: disable=inconsistent-return-statements
|
|
6302
|
+
self, id: str, body: Optional[Union[_models.UpsertCustomerOrderRequest, IO]] = None, **kwargs: Any
|
|
6401
6303
|
) -> None:
|
|
6402
|
-
"""
|
|
6304
|
+
"""Upsert a customer order.
|
|
6403
6305
|
|
|
6404
|
-
|
|
6306
|
+
Upsert a customer order.
|
|
6405
6307
|
|
|
6406
|
-
:param id: Required.
|
|
6308
|
+
:param id: Customer order id. Required.
|
|
6407
6309
|
:type id: str
|
|
6408
|
-
:param
|
|
6409
|
-
|
|
6410
|
-
:
|
|
6411
|
-
:type body: ~ignos.api.client.models.StartWorkOperationRequest or IO
|
|
6310
|
+
:param body: Order details. Is either a UpsertCustomerOrderRequest type or a IO type. Default
|
|
6311
|
+
value is None.
|
|
6312
|
+
:type body: ~ignos.api.client.models.UpsertCustomerOrderRequest or IO
|
|
6412
6313
|
:keyword content_type: Body Parameter content-type. Known values are: 'application/*+json',
|
|
6413
6314
|
'application/json', 'text/json'. Default value is None.
|
|
6414
6315
|
:paramtype content_type: str
|
|
@@ -6437,13 +6338,12 @@ class WorkordersOperations:
|
|
|
6437
6338
|
_content = body
|
|
6438
6339
|
else:
|
|
6439
6340
|
if body is not None:
|
|
6440
|
-
_json = self._serialize.body(body, "
|
|
6341
|
+
_json = self._serialize.body(body, "UpsertCustomerOrderRequest")
|
|
6441
6342
|
else:
|
|
6442
6343
|
_json = None
|
|
6443
6344
|
|
|
6444
|
-
request =
|
|
6345
|
+
request = build_customer_orders_upsert_customer_order_request(
|
|
6445
6346
|
id=id,
|
|
6446
|
-
operation=operation,
|
|
6447
6347
|
content_type=content_type,
|
|
6448
6348
|
json=_json,
|
|
6449
6349
|
content=_content,
|
|
@@ -6467,25 +6367,25 @@ class WorkordersOperations:
|
|
|
6467
6367
|
return cls(pipeline_response, None, {})
|
|
6468
6368
|
|
|
6469
6369
|
@overload
|
|
6470
|
-
async def
|
|
6370
|
+
async def upsert_customer_order_line( # pylint: disable=inconsistent-return-statements
|
|
6471
6371
|
self,
|
|
6472
6372
|
id: str,
|
|
6473
|
-
|
|
6474
|
-
body: Optional[_models.
|
|
6373
|
+
line: int,
|
|
6374
|
+
body: Optional[_models.CustomerOrderLineDto] = None,
|
|
6475
6375
|
*,
|
|
6476
6376
|
content_type: str = "application/json",
|
|
6477
6377
|
**kwargs: Any
|
|
6478
6378
|
) -> None:
|
|
6479
|
-
"""
|
|
6379
|
+
"""Upsert a customer order line. Customer order must exist.
|
|
6480
6380
|
|
|
6481
|
-
|
|
6381
|
+
Upsert a customer order line. Customer order must exist.
|
|
6482
6382
|
|
|
6483
|
-
:param id: Required.
|
|
6383
|
+
:param id: Customer order id. Required.
|
|
6484
6384
|
:type id: str
|
|
6485
|
-
:param
|
|
6486
|
-
:type
|
|
6487
|
-
:param body: Default value is None.
|
|
6488
|
-
:type body: ~ignos.api.client.models.
|
|
6385
|
+
:param line: Customer order line. Required.
|
|
6386
|
+
:type line: int
|
|
6387
|
+
:param body: Order line details. Default value is None.
|
|
6388
|
+
:type body: ~ignos.api.client.models.CustomerOrderLineDto
|
|
6489
6389
|
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
|
6490
6390
|
Default value is "application/json".
|
|
6491
6391
|
:paramtype content_type: str
|
|
@@ -6495,24 +6395,18 @@ class WorkordersOperations:
|
|
|
6495
6395
|
"""
|
|
6496
6396
|
|
|
6497
6397
|
@overload
|
|
6498
|
-
async def
|
|
6499
|
-
self,
|
|
6500
|
-
id: str,
|
|
6501
|
-
operation: int,
|
|
6502
|
-
body: Optional[IO] = None,
|
|
6503
|
-
*,
|
|
6504
|
-
content_type: str = "application/json",
|
|
6505
|
-
**kwargs: Any
|
|
6398
|
+
async def upsert_customer_order_line( # pylint: disable=inconsistent-return-statements
|
|
6399
|
+
self, id: str, line: int, body: Optional[IO] = None, *, content_type: str = "application/json", **kwargs: Any
|
|
6506
6400
|
) -> None:
|
|
6507
|
-
"""
|
|
6401
|
+
"""Upsert a customer order line. Customer order must exist.
|
|
6508
6402
|
|
|
6509
|
-
|
|
6403
|
+
Upsert a customer order line. Customer order must exist.
|
|
6510
6404
|
|
|
6511
|
-
:param id: Required.
|
|
6405
|
+
:param id: Customer order id. Required.
|
|
6512
6406
|
:type id: str
|
|
6513
|
-
:param
|
|
6514
|
-
:type
|
|
6515
|
-
:param body: Default value is None.
|
|
6407
|
+
:param line: Customer order line. Required.
|
|
6408
|
+
:type line: int
|
|
6409
|
+
:param body: Order line details. Default value is None.
|
|
6516
6410
|
:type body: IO
|
|
6517
6411
|
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
|
6518
6412
|
Known values are: 'application/*+json', 'application/json', 'text/json'. Default value is
|
|
@@ -6524,19 +6418,20 @@ class WorkordersOperations:
|
|
|
6524
6418
|
"""
|
|
6525
6419
|
|
|
6526
6420
|
@distributed_trace_async
|
|
6527
|
-
async def
|
|
6528
|
-
self, id: str,
|
|
6421
|
+
async def upsert_customer_order_line( # pylint: disable=inconsistent-return-statements
|
|
6422
|
+
self, id: str, line: int, body: Optional[Union[_models.CustomerOrderLineDto, IO]] = None, **kwargs: Any
|
|
6529
6423
|
) -> None:
|
|
6530
|
-
"""
|
|
6424
|
+
"""Upsert a customer order line. Customer order must exist.
|
|
6531
6425
|
|
|
6532
|
-
|
|
6426
|
+
Upsert a customer order line. Customer order must exist.
|
|
6533
6427
|
|
|
6534
|
-
:param id: Required.
|
|
6428
|
+
:param id: Customer order id. Required.
|
|
6535
6429
|
:type id: str
|
|
6536
|
-
:param
|
|
6537
|
-
:type
|
|
6538
|
-
:param body: Is either a
|
|
6539
|
-
|
|
6430
|
+
:param line: Customer order line. Required.
|
|
6431
|
+
:type line: int
|
|
6432
|
+
:param body: Order line details. Is either a CustomerOrderLineDto type or a IO type. Default
|
|
6433
|
+
value is None.
|
|
6434
|
+
:type body: ~ignos.api.client.models.CustomerOrderLineDto or IO
|
|
6540
6435
|
:keyword content_type: Body Parameter content-type. Known values are: 'application/*+json',
|
|
6541
6436
|
'application/json', 'text/json'. Default value is None.
|
|
6542
6437
|
:paramtype content_type: str
|
|
@@ -6565,13 +6460,13 @@ class WorkordersOperations:
|
|
|
6565
6460
|
_content = body
|
|
6566
6461
|
else:
|
|
6567
6462
|
if body is not None:
|
|
6568
|
-
_json = self._serialize.body(body, "
|
|
6463
|
+
_json = self._serialize.body(body, "CustomerOrderLineDto")
|
|
6569
6464
|
else:
|
|
6570
6465
|
_json = None
|
|
6571
6466
|
|
|
6572
|
-
request =
|
|
6467
|
+
request = build_customer_orders_upsert_customer_order_line_request(
|
|
6573
6468
|
id=id,
|
|
6574
|
-
|
|
6469
|
+
line=line,
|
|
6575
6470
|
content_type=content_type,
|
|
6576
6471
|
json=_json,
|
|
6577
6472
|
content=_content,
|
|
@@ -6587,94 +6482,85 @@ class WorkordersOperations:
|
|
|
6587
6482
|
|
|
6588
6483
|
response = pipeline_response.http_response
|
|
6589
6484
|
|
|
6590
|
-
if response.status_code not in [
|
|
6485
|
+
if response.status_code not in [200]:
|
|
6591
6486
|
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
6592
6487
|
raise HttpResponseError(response=response)
|
|
6593
6488
|
|
|
6594
6489
|
if cls:
|
|
6595
6490
|
return cls(pipeline_response, None, {})
|
|
6596
6491
|
|
|
6492
|
+
|
|
6493
|
+
class WorkordersOperations:
|
|
6494
|
+
"""
|
|
6495
|
+
.. warning::
|
|
6496
|
+
**DO NOT** instantiate this class directly.
|
|
6497
|
+
|
|
6498
|
+
Instead, you should access the following operations through
|
|
6499
|
+
:class:`~ignos.api.client.aio.IgnosPortal`'s
|
|
6500
|
+
:attr:`workorders` attribute.
|
|
6501
|
+
"""
|
|
6502
|
+
|
|
6503
|
+
models = _models
|
|
6504
|
+
|
|
6505
|
+
def __init__(self, *args, **kwargs) -> None:
|
|
6506
|
+
input_args = list(args)
|
|
6507
|
+
self._client = input_args.pop(0) if input_args else kwargs.pop("client")
|
|
6508
|
+
self._config = input_args.pop(0) if input_args else kwargs.pop("config")
|
|
6509
|
+
self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
|
6510
|
+
self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
|
6511
|
+
|
|
6597
6512
|
@overload
|
|
6598
|
-
async def
|
|
6599
|
-
self,
|
|
6600
|
-
|
|
6601
|
-
|
|
6602
|
-
body: Optional[_models.RegisterWorkorderOperationEventRequest] = None,
|
|
6603
|
-
*,
|
|
6604
|
-
content_type: str = "application/json",
|
|
6605
|
-
**kwargs: Any
|
|
6606
|
-
) -> _models.WorkorderOperationEventDto:
|
|
6607
|
-
"""Register a completed work order operation event.
|
|
6513
|
+
async def upsert_workorder( # pylint: disable=inconsistent-return-statements
|
|
6514
|
+
self, body: Optional[_models.UpsertWorkorder] = None, *, content_type: str = "application/json", **kwargs: Any
|
|
6515
|
+
) -> None:
|
|
6516
|
+
"""Create or update a workorder.
|
|
6608
6517
|
|
|
6609
|
-
|
|
6518
|
+
Create or update a workorder.
|
|
6610
6519
|
|
|
6611
|
-
:param id: Required.
|
|
6612
|
-
:type id: str
|
|
6613
|
-
:param operation: Required.
|
|
6614
|
-
:type operation: int
|
|
6615
6520
|
:param body: Default value is None.
|
|
6616
|
-
:type body: ~ignos.api.client.models.
|
|
6521
|
+
:type body: ~ignos.api.client.models.UpsertWorkorder
|
|
6617
6522
|
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
|
6618
6523
|
Default value is "application/json".
|
|
6619
6524
|
:paramtype content_type: str
|
|
6620
|
-
:return:
|
|
6621
|
-
:rtype:
|
|
6525
|
+
:return: None
|
|
6526
|
+
:rtype: None
|
|
6622
6527
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
6623
6528
|
"""
|
|
6624
6529
|
|
|
6625
6530
|
@overload
|
|
6626
|
-
async def
|
|
6627
|
-
self,
|
|
6628
|
-
|
|
6629
|
-
|
|
6630
|
-
body: Optional[IO] = None,
|
|
6631
|
-
*,
|
|
6632
|
-
content_type: str = "application/json",
|
|
6633
|
-
**kwargs: Any
|
|
6634
|
-
) -> _models.WorkorderOperationEventDto:
|
|
6635
|
-
"""Register a completed work order operation event.
|
|
6531
|
+
async def upsert_workorder( # pylint: disable=inconsistent-return-statements
|
|
6532
|
+
self, body: Optional[IO] = None, *, content_type: str = "application/json", **kwargs: Any
|
|
6533
|
+
) -> None:
|
|
6534
|
+
"""Create or update a workorder.
|
|
6636
6535
|
|
|
6637
|
-
|
|
6536
|
+
Create or update a workorder.
|
|
6638
6537
|
|
|
6639
|
-
:param id: Required.
|
|
6640
|
-
:type id: str
|
|
6641
|
-
:param operation: Required.
|
|
6642
|
-
:type operation: int
|
|
6643
6538
|
:param body: Default value is None.
|
|
6644
6539
|
:type body: IO
|
|
6645
6540
|
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
|
6646
6541
|
Known values are: 'application/*+json', 'application/json', 'text/json'. Default value is
|
|
6647
6542
|
"application/json".
|
|
6648
6543
|
:paramtype content_type: str
|
|
6649
|
-
:return:
|
|
6650
|
-
:rtype:
|
|
6544
|
+
:return: None
|
|
6545
|
+
:rtype: None
|
|
6651
6546
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
6652
6547
|
"""
|
|
6653
6548
|
|
|
6654
6549
|
@distributed_trace_async
|
|
6655
|
-
async def
|
|
6656
|
-
self,
|
|
6657
|
-
|
|
6658
|
-
|
|
6659
|
-
body: Optional[Union[_models.RegisterWorkorderOperationEventRequest, IO]] = None,
|
|
6660
|
-
**kwargs: Any
|
|
6661
|
-
) -> _models.WorkorderOperationEventDto:
|
|
6662
|
-
"""Register a completed work order operation event.
|
|
6550
|
+
async def upsert_workorder( # pylint: disable=inconsistent-return-statements
|
|
6551
|
+
self, body: Optional[Union[_models.UpsertWorkorder, IO]] = None, **kwargs: Any
|
|
6552
|
+
) -> None:
|
|
6553
|
+
"""Create or update a workorder.
|
|
6663
6554
|
|
|
6664
|
-
|
|
6555
|
+
Create or update a workorder.
|
|
6665
6556
|
|
|
6666
|
-
:param
|
|
6667
|
-
:type
|
|
6668
|
-
:param operation: Required.
|
|
6669
|
-
:type operation: int
|
|
6670
|
-
:param body: Is either a RegisterWorkorderOperationEventRequest type or a IO type. Default
|
|
6671
|
-
value is None.
|
|
6672
|
-
:type body: ~ignos.api.client.models.RegisterWorkorderOperationEventRequest or IO
|
|
6557
|
+
:param body: Is either a UpsertWorkorder type or a IO type. Default value is None.
|
|
6558
|
+
:type body: ~ignos.api.client.models.UpsertWorkorder or IO
|
|
6673
6559
|
:keyword content_type: Body Parameter content-type. Known values are: 'application/*+json',
|
|
6674
6560
|
'application/json', 'text/json'. Default value is None.
|
|
6675
6561
|
:paramtype content_type: str
|
|
6676
|
-
:return:
|
|
6677
|
-
:rtype:
|
|
6562
|
+
:return: None
|
|
6563
|
+
:rtype: None
|
|
6678
6564
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
6679
6565
|
"""
|
|
6680
6566
|
error_map = {
|
|
@@ -6689,7 +6575,7 @@ class WorkordersOperations:
|
|
|
6689
6575
|
_params = kwargs.pop("params", {}) or {}
|
|
6690
6576
|
|
|
6691
6577
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
6692
|
-
cls: ClsType[
|
|
6578
|
+
cls: ClsType[None] = kwargs.pop("cls", None)
|
|
6693
6579
|
|
|
6694
6580
|
content_type = content_type or "application/json"
|
|
6695
6581
|
_json = None
|
|
@@ -6698,13 +6584,11 @@ class WorkordersOperations:
|
|
|
6698
6584
|
_content = body
|
|
6699
6585
|
else:
|
|
6700
6586
|
if body is not None:
|
|
6701
|
-
_json = self._serialize.body(body, "
|
|
6587
|
+
_json = self._serialize.body(body, "UpsertWorkorder")
|
|
6702
6588
|
else:
|
|
6703
6589
|
_json = None
|
|
6704
6590
|
|
|
6705
|
-
request =
|
|
6706
|
-
id=id,
|
|
6707
|
-
operation=operation,
|
|
6591
|
+
request = build_workorders_upsert_workorder_request(
|
|
6708
6592
|
content_type=content_type,
|
|
6709
6593
|
json=_json,
|
|
6710
6594
|
content=_content,
|
|
@@ -6720,53 +6604,1005 @@ class WorkordersOperations:
|
|
|
6720
6604
|
|
|
6721
6605
|
response = pipeline_response.http_response
|
|
6722
6606
|
|
|
6723
|
-
if response.status_code not in [
|
|
6607
|
+
if response.status_code not in [204]:
|
|
6724
6608
|
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
6725
6609
|
raise HttpResponseError(response=response)
|
|
6726
6610
|
|
|
6727
|
-
deserialized = self._deserialize("WorkorderOperationEventDto", pipeline_response)
|
|
6728
|
-
|
|
6729
6611
|
if cls:
|
|
6730
|
-
return cls(pipeline_response,
|
|
6731
|
-
|
|
6732
|
-
return deserialized
|
|
6612
|
+
return cls(pipeline_response, None, {})
|
|
6733
6613
|
|
|
6734
6614
|
@overload
|
|
6735
|
-
async def
|
|
6736
|
-
self,
|
|
6737
|
-
|
|
6738
|
-
|
|
6739
|
-
body: Optional[_models.StartWorkOperationRequest] = None,
|
|
6740
|
-
*,
|
|
6741
|
-
content_type: str = "application/json",
|
|
6742
|
-
**kwargs: Any
|
|
6743
|
-
) -> _models.WorkorderOperationEventDto:
|
|
6744
|
-
"""Register start work or setup on a workorder operation.
|
|
6615
|
+
async def upsert_workorder_v2( # pylint: disable=inconsistent-return-statements
|
|
6616
|
+
self, body: Optional[_models.UpsertWorkorderV2] = None, *, content_type: str = "application/json", **kwargs: Any
|
|
6617
|
+
) -> None:
|
|
6618
|
+
"""Create or update a workorder.
|
|
6745
6619
|
|
|
6746
|
-
|
|
6620
|
+
Create or update a workorder.
|
|
6747
6621
|
|
|
6748
|
-
:param id: Required.
|
|
6749
|
-
:type id: str
|
|
6750
|
-
:param operation: Required.
|
|
6751
|
-
:type operation: int
|
|
6752
6622
|
:param body: Default value is None.
|
|
6753
|
-
:type body: ~ignos.api.client.models.
|
|
6623
|
+
:type body: ~ignos.api.client.models.UpsertWorkorderV2
|
|
6754
6624
|
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
|
6755
6625
|
Default value is "application/json".
|
|
6756
6626
|
:paramtype content_type: str
|
|
6757
|
-
:return:
|
|
6758
|
-
:rtype:
|
|
6627
|
+
:return: None
|
|
6628
|
+
:rtype: None
|
|
6759
6629
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
6760
6630
|
"""
|
|
6761
6631
|
|
|
6762
6632
|
@overload
|
|
6763
|
-
async def
|
|
6764
|
-
self,
|
|
6765
|
-
|
|
6766
|
-
|
|
6767
|
-
|
|
6768
|
-
|
|
6769
|
-
|
|
6633
|
+
async def upsert_workorder_v2( # pylint: disable=inconsistent-return-statements
|
|
6634
|
+
self, body: Optional[IO] = None, *, content_type: str = "application/json", **kwargs: Any
|
|
6635
|
+
) -> None:
|
|
6636
|
+
"""Create or update a workorder.
|
|
6637
|
+
|
|
6638
|
+
Create or update a workorder.
|
|
6639
|
+
|
|
6640
|
+
:param body: Default value is None.
|
|
6641
|
+
:type body: IO
|
|
6642
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
|
6643
|
+
Known values are: 'application/*+json', 'application/json', 'text/json'. Default value is
|
|
6644
|
+
"application/json".
|
|
6645
|
+
:paramtype content_type: str
|
|
6646
|
+
:return: None
|
|
6647
|
+
:rtype: None
|
|
6648
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
6649
|
+
"""
|
|
6650
|
+
|
|
6651
|
+
@distributed_trace_async
|
|
6652
|
+
async def upsert_workorder_v2( # pylint: disable=inconsistent-return-statements
|
|
6653
|
+
self, body: Optional[Union[_models.UpsertWorkorderV2, IO]] = None, **kwargs: Any
|
|
6654
|
+
) -> None:
|
|
6655
|
+
"""Create or update a workorder.
|
|
6656
|
+
|
|
6657
|
+
Create or update a workorder.
|
|
6658
|
+
|
|
6659
|
+
:param body: Is either a UpsertWorkorderV2 type or a IO type. Default value is None.
|
|
6660
|
+
:type body: ~ignos.api.client.models.UpsertWorkorderV2 or IO
|
|
6661
|
+
:keyword content_type: Body Parameter content-type. Known values are: 'application/*+json',
|
|
6662
|
+
'application/json', 'text/json'. Default value is None.
|
|
6663
|
+
:paramtype content_type: str
|
|
6664
|
+
:return: None
|
|
6665
|
+
:rtype: None
|
|
6666
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
6667
|
+
"""
|
|
6668
|
+
error_map = {
|
|
6669
|
+
401: ClientAuthenticationError,
|
|
6670
|
+
404: ResourceNotFoundError,
|
|
6671
|
+
409: ResourceExistsError,
|
|
6672
|
+
304: ResourceNotModifiedError,
|
|
6673
|
+
}
|
|
6674
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
6675
|
+
|
|
6676
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
6677
|
+
_params = kwargs.pop("params", {}) or {}
|
|
6678
|
+
|
|
6679
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
6680
|
+
cls: ClsType[None] = kwargs.pop("cls", None)
|
|
6681
|
+
|
|
6682
|
+
content_type = content_type or "application/json"
|
|
6683
|
+
_json = None
|
|
6684
|
+
_content = None
|
|
6685
|
+
if isinstance(body, (IOBase, bytes)):
|
|
6686
|
+
_content = body
|
|
6687
|
+
else:
|
|
6688
|
+
if body is not None:
|
|
6689
|
+
_json = self._serialize.body(body, "UpsertWorkorderV2")
|
|
6690
|
+
else:
|
|
6691
|
+
_json = None
|
|
6692
|
+
|
|
6693
|
+
request = build_workorders_upsert_workorder_v2_request(
|
|
6694
|
+
content_type=content_type,
|
|
6695
|
+
json=_json,
|
|
6696
|
+
content=_content,
|
|
6697
|
+
headers=_headers,
|
|
6698
|
+
params=_params,
|
|
6699
|
+
)
|
|
6700
|
+
request.url = self._client.format_url(request.url)
|
|
6701
|
+
|
|
6702
|
+
_stream = False
|
|
6703
|
+
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
|
6704
|
+
request, stream=_stream, **kwargs
|
|
6705
|
+
)
|
|
6706
|
+
|
|
6707
|
+
response = pipeline_response.http_response
|
|
6708
|
+
|
|
6709
|
+
if response.status_code not in [204]:
|
|
6710
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
6711
|
+
raise HttpResponseError(response=response)
|
|
6712
|
+
|
|
6713
|
+
if cls:
|
|
6714
|
+
return cls(pipeline_response, None, {})
|
|
6715
|
+
|
|
6716
|
+
@distributed_trace_async
|
|
6717
|
+
async def list_workorders(
|
|
6718
|
+
self,
|
|
6719
|
+
*,
|
|
6720
|
+
page_size: int = 50,
|
|
6721
|
+
search: Optional[str] = None,
|
|
6722
|
+
active_orders: Optional[bool] = None,
|
|
6723
|
+
continuation_token_parameter: Optional[str] = None,
|
|
6724
|
+
**kwargs: Any
|
|
6725
|
+
) -> _models.WorkorderListDtoPagedResult:
|
|
6726
|
+
"""List work orders.
|
|
6727
|
+
|
|
6728
|
+
List work orders.
|
|
6729
|
+
|
|
6730
|
+
:keyword page_size: Number of items per page. Default 50. Use -1 for dynamic page size. Default
|
|
6731
|
+
value is 50.
|
|
6732
|
+
:paramtype page_size: int
|
|
6733
|
+
:keyword search: Searches work order ID using starts with. Default value is None.
|
|
6734
|
+
:paramtype search: str
|
|
6735
|
+
:keyword active_orders: Searches active or inactive work orders. Use null to ignore. Default
|
|
6736
|
+
value is None.
|
|
6737
|
+
:paramtype active_orders: bool
|
|
6738
|
+
:keyword continuation_token_parameter: Continuation token used for pagination. Default value is
|
|
6739
|
+
None.
|
|
6740
|
+
:paramtype continuation_token_parameter: str
|
|
6741
|
+
:return: WorkorderListDtoPagedResult
|
|
6742
|
+
:rtype: ~ignos.api.client.models.WorkorderListDtoPagedResult
|
|
6743
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
6744
|
+
"""
|
|
6745
|
+
error_map = {
|
|
6746
|
+
401: ClientAuthenticationError,
|
|
6747
|
+
404: ResourceNotFoundError,
|
|
6748
|
+
409: ResourceExistsError,
|
|
6749
|
+
304: ResourceNotModifiedError,
|
|
6750
|
+
}
|
|
6751
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
6752
|
+
|
|
6753
|
+
_headers = kwargs.pop("headers", {}) or {}
|
|
6754
|
+
_params = kwargs.pop("params", {}) or {}
|
|
6755
|
+
|
|
6756
|
+
cls: ClsType[_models.WorkorderListDtoPagedResult] = kwargs.pop("cls", None)
|
|
6757
|
+
|
|
6758
|
+
request = build_workorders_list_workorders_request(
|
|
6759
|
+
page_size=page_size,
|
|
6760
|
+
search=search,
|
|
6761
|
+
active_orders=active_orders,
|
|
6762
|
+
continuation_token_parameter=continuation_token_parameter,
|
|
6763
|
+
headers=_headers,
|
|
6764
|
+
params=_params,
|
|
6765
|
+
)
|
|
6766
|
+
request.url = self._client.format_url(request.url)
|
|
6767
|
+
|
|
6768
|
+
_stream = False
|
|
6769
|
+
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
|
6770
|
+
request, stream=_stream, **kwargs
|
|
6771
|
+
)
|
|
6772
|
+
|
|
6773
|
+
response = pipeline_response.http_response
|
|
6774
|
+
|
|
6775
|
+
if response.status_code not in [200]:
|
|
6776
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
6777
|
+
raise HttpResponseError(response=response)
|
|
6778
|
+
|
|
6779
|
+
deserialized = self._deserialize("WorkorderListDtoPagedResult", pipeline_response)
|
|
6780
|
+
|
|
6781
|
+
if cls:
|
|
6782
|
+
return cls(pipeline_response, deserialized, {})
|
|
6783
|
+
|
|
6784
|
+
return deserialized
|
|
6785
|
+
|
|
6786
|
+
@overload
|
|
6787
|
+
async def upsert_workorder_consumption( # pylint: disable=inconsistent-return-statements
|
|
6788
|
+
self,
|
|
6789
|
+
id: str,
|
|
6790
|
+
body: Optional[_models.UpsertWorkOrderConsumptionsRequest] = None,
|
|
6791
|
+
*,
|
|
6792
|
+
content_type: str = "application/json",
|
|
6793
|
+
**kwargs: Any
|
|
6794
|
+
) -> None:
|
|
6795
|
+
"""Update consumed materials on work order.
|
|
6796
|
+
|
|
6797
|
+
Update consumed materials on work order.
|
|
6798
|
+
|
|
6799
|
+
:param id: Work order id. Required.
|
|
6800
|
+
:type id: str
|
|
6801
|
+
:param body: Consumption details. Default value is None.
|
|
6802
|
+
:type body: ~ignos.api.client.models.UpsertWorkOrderConsumptionsRequest
|
|
6803
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
|
6804
|
+
Default value is "application/json".
|
|
6805
|
+
:paramtype content_type: str
|
|
6806
|
+
:return: None
|
|
6807
|
+
:rtype: None
|
|
6808
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
6809
|
+
"""
|
|
6810
|
+
|
|
6811
|
+
@overload
|
|
6812
|
+
async def upsert_workorder_consumption( # pylint: disable=inconsistent-return-statements
|
|
6813
|
+
self, id: str, body: Optional[IO] = None, *, content_type: str = "application/json", **kwargs: Any
|
|
6814
|
+
) -> None:
|
|
6815
|
+
"""Update consumed materials on work order.
|
|
6816
|
+
|
|
6817
|
+
Update consumed materials on work order.
|
|
6818
|
+
|
|
6819
|
+
:param id: Work order id. Required.
|
|
6820
|
+
:type id: str
|
|
6821
|
+
:param body: Consumption details. Default value is None.
|
|
6822
|
+
:type body: IO
|
|
6823
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
|
6824
|
+
Known values are: 'application/*+json', 'application/json', 'text/json'. Default value is
|
|
6825
|
+
"application/json".
|
|
6826
|
+
:paramtype content_type: str
|
|
6827
|
+
:return: None
|
|
6828
|
+
:rtype: None
|
|
6829
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
6830
|
+
"""
|
|
6831
|
+
|
|
6832
|
+
@distributed_trace_async
|
|
6833
|
+
async def upsert_workorder_consumption( # pylint: disable=inconsistent-return-statements
|
|
6834
|
+
self, id: str, body: Optional[Union[_models.UpsertWorkOrderConsumptionsRequest, IO]] = None, **kwargs: Any
|
|
6835
|
+
) -> None:
|
|
6836
|
+
"""Update consumed materials on work order.
|
|
6837
|
+
|
|
6838
|
+
Update consumed materials on work order.
|
|
6839
|
+
|
|
6840
|
+
:param id: Work order id. Required.
|
|
6841
|
+
:type id: str
|
|
6842
|
+
:param body: Consumption details. Is either a UpsertWorkOrderConsumptionsRequest type or a IO
|
|
6843
|
+
type. Default value is None.
|
|
6844
|
+
:type body: ~ignos.api.client.models.UpsertWorkOrderConsumptionsRequest or IO
|
|
6845
|
+
:keyword content_type: Body Parameter content-type. Known values are: 'application/*+json',
|
|
6846
|
+
'application/json', 'text/json'. Default value is None.
|
|
6847
|
+
:paramtype content_type: str
|
|
6848
|
+
:return: None
|
|
6849
|
+
:rtype: None
|
|
6850
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
6851
|
+
"""
|
|
6852
|
+
error_map = {
|
|
6853
|
+
401: ClientAuthenticationError,
|
|
6854
|
+
404: ResourceNotFoundError,
|
|
6855
|
+
409: ResourceExistsError,
|
|
6856
|
+
304: ResourceNotModifiedError,
|
|
6857
|
+
}
|
|
6858
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
6859
|
+
|
|
6860
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
6861
|
+
_params = kwargs.pop("params", {}) or {}
|
|
6862
|
+
|
|
6863
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
6864
|
+
cls: ClsType[None] = kwargs.pop("cls", None)
|
|
6865
|
+
|
|
6866
|
+
content_type = content_type or "application/json"
|
|
6867
|
+
_json = None
|
|
6868
|
+
_content = None
|
|
6869
|
+
if isinstance(body, (IOBase, bytes)):
|
|
6870
|
+
_content = body
|
|
6871
|
+
else:
|
|
6872
|
+
if body is not None:
|
|
6873
|
+
_json = self._serialize.body(body, "UpsertWorkOrderConsumptionsRequest")
|
|
6874
|
+
else:
|
|
6875
|
+
_json = None
|
|
6876
|
+
|
|
6877
|
+
request = build_workorders_upsert_workorder_consumption_request(
|
|
6878
|
+
id=id,
|
|
6879
|
+
content_type=content_type,
|
|
6880
|
+
json=_json,
|
|
6881
|
+
content=_content,
|
|
6882
|
+
headers=_headers,
|
|
6883
|
+
params=_params,
|
|
6884
|
+
)
|
|
6885
|
+
request.url = self._client.format_url(request.url)
|
|
6886
|
+
|
|
6887
|
+
_stream = False
|
|
6888
|
+
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
|
6889
|
+
request, stream=_stream, **kwargs
|
|
6890
|
+
)
|
|
6891
|
+
|
|
6892
|
+
response = pipeline_response.http_response
|
|
6893
|
+
|
|
6894
|
+
if response.status_code not in [204]:
|
|
6895
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
6896
|
+
raise HttpResponseError(response=response)
|
|
6897
|
+
|
|
6898
|
+
if cls:
|
|
6899
|
+
return cls(pipeline_response, None, {})
|
|
6900
|
+
|
|
6901
|
+
@overload
|
|
6902
|
+
async def upsert_workorder_traces( # pylint: disable=inconsistent-return-statements
|
|
6903
|
+
self,
|
|
6904
|
+
id: str,
|
|
6905
|
+
body: Optional[_models.UpsertWorkorderTracesRequest] = None,
|
|
6906
|
+
*,
|
|
6907
|
+
content_type: str = "application/json",
|
|
6908
|
+
**kwargs: Any
|
|
6909
|
+
) -> None:
|
|
6910
|
+
"""Create or update trace information for a workorder.
|
|
6911
|
+
|
|
6912
|
+
Create or update trace information for a workorder.
|
|
6913
|
+
|
|
6914
|
+
:param id: Workorder id. Required.
|
|
6915
|
+
:type id: str
|
|
6916
|
+
:param body: Trace details. Default value is None.
|
|
6917
|
+
:type body: ~ignos.api.client.models.UpsertWorkorderTracesRequest
|
|
6918
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
|
6919
|
+
Default value is "application/json".
|
|
6920
|
+
:paramtype content_type: str
|
|
6921
|
+
:return: None
|
|
6922
|
+
:rtype: None
|
|
6923
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
6924
|
+
"""
|
|
6925
|
+
|
|
6926
|
+
@overload
|
|
6927
|
+
async def upsert_workorder_traces( # pylint: disable=inconsistent-return-statements
|
|
6928
|
+
self, id: str, body: Optional[IO] = None, *, content_type: str = "application/json", **kwargs: Any
|
|
6929
|
+
) -> None:
|
|
6930
|
+
"""Create or update trace information for a workorder.
|
|
6931
|
+
|
|
6932
|
+
Create or update trace information for a workorder.
|
|
6933
|
+
|
|
6934
|
+
:param id: Workorder id. Required.
|
|
6935
|
+
:type id: str
|
|
6936
|
+
:param body: Trace details. Default value is None.
|
|
6937
|
+
:type body: IO
|
|
6938
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
|
6939
|
+
Known values are: 'application/*+json', 'application/json', 'text/json'. Default value is
|
|
6940
|
+
"application/json".
|
|
6941
|
+
:paramtype content_type: str
|
|
6942
|
+
:return: None
|
|
6943
|
+
:rtype: None
|
|
6944
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
6945
|
+
"""
|
|
6946
|
+
|
|
6947
|
+
@distributed_trace_async
|
|
6948
|
+
async def upsert_workorder_traces( # pylint: disable=inconsistent-return-statements
|
|
6949
|
+
self, id: str, body: Optional[Union[_models.UpsertWorkorderTracesRequest, IO]] = None, **kwargs: Any
|
|
6950
|
+
) -> None:
|
|
6951
|
+
"""Create or update trace information for a workorder.
|
|
6952
|
+
|
|
6953
|
+
Create or update trace information for a workorder.
|
|
6954
|
+
|
|
6955
|
+
:param id: Workorder id. Required.
|
|
6956
|
+
:type id: str
|
|
6957
|
+
:param body: Trace details. Is either a UpsertWorkorderTracesRequest type or a IO type. Default
|
|
6958
|
+
value is None.
|
|
6959
|
+
:type body: ~ignos.api.client.models.UpsertWorkorderTracesRequest or IO
|
|
6960
|
+
:keyword content_type: Body Parameter content-type. Known values are: 'application/*+json',
|
|
6961
|
+
'application/json', 'text/json'. Default value is None.
|
|
6962
|
+
:paramtype content_type: str
|
|
6963
|
+
:return: None
|
|
6964
|
+
:rtype: None
|
|
6965
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
6966
|
+
"""
|
|
6967
|
+
error_map = {
|
|
6968
|
+
401: ClientAuthenticationError,
|
|
6969
|
+
404: ResourceNotFoundError,
|
|
6970
|
+
409: ResourceExistsError,
|
|
6971
|
+
304: ResourceNotModifiedError,
|
|
6972
|
+
}
|
|
6973
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
6974
|
+
|
|
6975
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
6976
|
+
_params = kwargs.pop("params", {}) or {}
|
|
6977
|
+
|
|
6978
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
6979
|
+
cls: ClsType[None] = kwargs.pop("cls", None)
|
|
6980
|
+
|
|
6981
|
+
content_type = content_type or "application/json"
|
|
6982
|
+
_json = None
|
|
6983
|
+
_content = None
|
|
6984
|
+
if isinstance(body, (IOBase, bytes)):
|
|
6985
|
+
_content = body
|
|
6986
|
+
else:
|
|
6987
|
+
if body is not None:
|
|
6988
|
+
_json = self._serialize.body(body, "UpsertWorkorderTracesRequest")
|
|
6989
|
+
else:
|
|
6990
|
+
_json = None
|
|
6991
|
+
|
|
6992
|
+
request = build_workorders_upsert_workorder_traces_request(
|
|
6993
|
+
id=id,
|
|
6994
|
+
content_type=content_type,
|
|
6995
|
+
json=_json,
|
|
6996
|
+
content=_content,
|
|
6997
|
+
headers=_headers,
|
|
6998
|
+
params=_params,
|
|
6999
|
+
)
|
|
7000
|
+
request.url = self._client.format_url(request.url)
|
|
7001
|
+
|
|
7002
|
+
_stream = False
|
|
7003
|
+
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
|
7004
|
+
request, stream=_stream, **kwargs
|
|
7005
|
+
)
|
|
7006
|
+
|
|
7007
|
+
response = pipeline_response.http_response
|
|
7008
|
+
|
|
7009
|
+
if response.status_code not in [204]:
|
|
7010
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
7011
|
+
raise HttpResponseError(response=response)
|
|
7012
|
+
|
|
7013
|
+
if cls:
|
|
7014
|
+
return cls(pipeline_response, None, {})
|
|
7015
|
+
|
|
7016
|
+
@overload
|
|
7017
|
+
async def set_workorder_customer_order_reference( # pylint: disable=inconsistent-return-statements
|
|
7018
|
+
self,
|
|
7019
|
+
id: str,
|
|
7020
|
+
body: Optional[_models.WorkorderCustomerOrderReferenceDto] = None,
|
|
7021
|
+
*,
|
|
7022
|
+
content_type: str = "application/json",
|
|
7023
|
+
**kwargs: Any
|
|
7024
|
+
) -> None:
|
|
7025
|
+
"""set_workorder_customer_order_reference.
|
|
7026
|
+
|
|
7027
|
+
:param id: Required.
|
|
7028
|
+
:type id: str
|
|
7029
|
+
:param body: Default value is None.
|
|
7030
|
+
:type body: ~ignos.api.client.models.WorkorderCustomerOrderReferenceDto
|
|
7031
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
|
7032
|
+
Default value is "application/json".
|
|
7033
|
+
:paramtype content_type: str
|
|
7034
|
+
:return: None
|
|
7035
|
+
:rtype: None
|
|
7036
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
7037
|
+
"""
|
|
7038
|
+
|
|
7039
|
+
@overload
|
|
7040
|
+
async def set_workorder_customer_order_reference( # pylint: disable=inconsistent-return-statements
|
|
7041
|
+
self, id: str, body: Optional[IO] = None, *, content_type: str = "application/json", **kwargs: Any
|
|
7042
|
+
) -> None:
|
|
7043
|
+
"""set_workorder_customer_order_reference.
|
|
7044
|
+
|
|
7045
|
+
:param id: Required.
|
|
7046
|
+
:type id: str
|
|
7047
|
+
:param body: Default value is None.
|
|
7048
|
+
:type body: IO
|
|
7049
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
|
7050
|
+
Known values are: 'application/*+json', 'application/json', 'text/json'. Default value is
|
|
7051
|
+
"application/json".
|
|
7052
|
+
:paramtype content_type: str
|
|
7053
|
+
:return: None
|
|
7054
|
+
:rtype: None
|
|
7055
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
7056
|
+
"""
|
|
7057
|
+
|
|
7058
|
+
@distributed_trace_async
|
|
7059
|
+
async def set_workorder_customer_order_reference( # pylint: disable=inconsistent-return-statements
|
|
7060
|
+
self, id: str, body: Optional[Union[_models.WorkorderCustomerOrderReferenceDto, IO]] = None, **kwargs: Any
|
|
7061
|
+
) -> None:
|
|
7062
|
+
"""set_workorder_customer_order_reference.
|
|
7063
|
+
|
|
7064
|
+
:param id: Required.
|
|
7065
|
+
:type id: str
|
|
7066
|
+
:param body: Is either a WorkorderCustomerOrderReferenceDto type or a IO type. Default value is
|
|
7067
|
+
None.
|
|
7068
|
+
:type body: ~ignos.api.client.models.WorkorderCustomerOrderReferenceDto or IO
|
|
7069
|
+
:keyword content_type: Body Parameter content-type. Known values are: 'application/*+json',
|
|
7070
|
+
'application/json', 'text/json'. Default value is None.
|
|
7071
|
+
:paramtype content_type: str
|
|
7072
|
+
:return: None
|
|
7073
|
+
:rtype: None
|
|
7074
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
7075
|
+
"""
|
|
7076
|
+
error_map = {
|
|
7077
|
+
401: ClientAuthenticationError,
|
|
7078
|
+
404: ResourceNotFoundError,
|
|
7079
|
+
409: ResourceExistsError,
|
|
7080
|
+
304: ResourceNotModifiedError,
|
|
7081
|
+
}
|
|
7082
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
7083
|
+
|
|
7084
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
7085
|
+
_params = kwargs.pop("params", {}) or {}
|
|
7086
|
+
|
|
7087
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
7088
|
+
cls: ClsType[None] = kwargs.pop("cls", None)
|
|
7089
|
+
|
|
7090
|
+
content_type = content_type or "application/json"
|
|
7091
|
+
_json = None
|
|
7092
|
+
_content = None
|
|
7093
|
+
if isinstance(body, (IOBase, bytes)):
|
|
7094
|
+
_content = body
|
|
7095
|
+
else:
|
|
7096
|
+
if body is not None:
|
|
7097
|
+
_json = self._serialize.body(body, "WorkorderCustomerOrderReferenceDto")
|
|
7098
|
+
else:
|
|
7099
|
+
_json = None
|
|
7100
|
+
|
|
7101
|
+
request = build_workorders_set_workorder_customer_order_reference_request(
|
|
7102
|
+
id=id,
|
|
7103
|
+
content_type=content_type,
|
|
7104
|
+
json=_json,
|
|
7105
|
+
content=_content,
|
|
7106
|
+
headers=_headers,
|
|
7107
|
+
params=_params,
|
|
7108
|
+
)
|
|
7109
|
+
request.url = self._client.format_url(request.url)
|
|
7110
|
+
|
|
7111
|
+
_stream = False
|
|
7112
|
+
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
|
7113
|
+
request, stream=_stream, **kwargs
|
|
7114
|
+
)
|
|
7115
|
+
|
|
7116
|
+
response = pipeline_response.http_response
|
|
7117
|
+
|
|
7118
|
+
if response.status_code not in [204]:
|
|
7119
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
7120
|
+
raise HttpResponseError(response=response)
|
|
7121
|
+
|
|
7122
|
+
if cls:
|
|
7123
|
+
return cls(pipeline_response, None, {})
|
|
7124
|
+
|
|
7125
|
+
@distributed_trace_async
|
|
7126
|
+
async def check_resource_status(self, id: str, **kwargs: Any) -> _models.ResourceExistDto:
|
|
7127
|
+
"""check_resource_status.
|
|
7128
|
+
|
|
7129
|
+
:param id: Required.
|
|
7130
|
+
:type id: str
|
|
7131
|
+
:return: ResourceExistDto
|
|
7132
|
+
:rtype: ~ignos.api.client.models.ResourceExistDto
|
|
7133
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
7134
|
+
"""
|
|
7135
|
+
error_map = {
|
|
7136
|
+
401: ClientAuthenticationError,
|
|
7137
|
+
404: ResourceNotFoundError,
|
|
7138
|
+
409: ResourceExistsError,
|
|
7139
|
+
304: ResourceNotModifiedError,
|
|
7140
|
+
}
|
|
7141
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
7142
|
+
|
|
7143
|
+
_headers = kwargs.pop("headers", {}) or {}
|
|
7144
|
+
_params = kwargs.pop("params", {}) or {}
|
|
7145
|
+
|
|
7146
|
+
cls: ClsType[_models.ResourceExistDto] = kwargs.pop("cls", None)
|
|
7147
|
+
|
|
7148
|
+
request = build_workorders_check_resource_status_request(
|
|
7149
|
+
id=id,
|
|
7150
|
+
headers=_headers,
|
|
7151
|
+
params=_params,
|
|
7152
|
+
)
|
|
7153
|
+
request.url = self._client.format_url(request.url)
|
|
7154
|
+
|
|
7155
|
+
_stream = False
|
|
7156
|
+
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
|
7157
|
+
request, stream=_stream, **kwargs
|
|
7158
|
+
)
|
|
7159
|
+
|
|
7160
|
+
response = pipeline_response.http_response
|
|
7161
|
+
|
|
7162
|
+
if response.status_code not in [200]:
|
|
7163
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
7164
|
+
raise HttpResponseError(response=response)
|
|
7165
|
+
|
|
7166
|
+
deserialized = self._deserialize("ResourceExistDto", pipeline_response)
|
|
7167
|
+
|
|
7168
|
+
if cls:
|
|
7169
|
+
return cls(pipeline_response, deserialized, {})
|
|
7170
|
+
|
|
7171
|
+
return deserialized
|
|
7172
|
+
|
|
7173
|
+
@overload
|
|
7174
|
+
async def start_workorder_operation( # pylint: disable=inconsistent-return-statements
|
|
7175
|
+
self,
|
|
7176
|
+
id: str,
|
|
7177
|
+
operation: int,
|
|
7178
|
+
body: Optional[_models.StartWorkOperationRequest] = None,
|
|
7179
|
+
*,
|
|
7180
|
+
content_type: str = "application/json",
|
|
7181
|
+
**kwargs: Any
|
|
7182
|
+
) -> None:
|
|
7183
|
+
"""Register start work or setup on a workorder operation.
|
|
7184
|
+
|
|
7185
|
+
Register start work or setup on a workorder operation.
|
|
7186
|
+
|
|
7187
|
+
:param id: Required.
|
|
7188
|
+
:type id: str
|
|
7189
|
+
:param operation: Required.
|
|
7190
|
+
:type operation: int
|
|
7191
|
+
:param body: Default value is None.
|
|
7192
|
+
:type body: ~ignos.api.client.models.StartWorkOperationRequest
|
|
7193
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
|
7194
|
+
Default value is "application/json".
|
|
7195
|
+
:paramtype content_type: str
|
|
7196
|
+
:return: None
|
|
7197
|
+
:rtype: None
|
|
7198
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
7199
|
+
"""
|
|
7200
|
+
|
|
7201
|
+
@overload
|
|
7202
|
+
async def start_workorder_operation( # pylint: disable=inconsistent-return-statements
|
|
7203
|
+
self,
|
|
7204
|
+
id: str,
|
|
7205
|
+
operation: int,
|
|
7206
|
+
body: Optional[IO] = None,
|
|
7207
|
+
*,
|
|
7208
|
+
content_type: str = "application/json",
|
|
7209
|
+
**kwargs: Any
|
|
7210
|
+
) -> None:
|
|
7211
|
+
"""Register start work or setup on a workorder operation.
|
|
7212
|
+
|
|
7213
|
+
Register start work or setup on a workorder operation.
|
|
7214
|
+
|
|
7215
|
+
:param id: Required.
|
|
7216
|
+
:type id: str
|
|
7217
|
+
:param operation: Required.
|
|
7218
|
+
:type operation: int
|
|
7219
|
+
:param body: Default value is None.
|
|
7220
|
+
:type body: IO
|
|
7221
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
|
7222
|
+
Known values are: 'application/*+json', 'application/json', 'text/json'. Default value is
|
|
7223
|
+
"application/json".
|
|
7224
|
+
:paramtype content_type: str
|
|
7225
|
+
:return: None
|
|
7226
|
+
:rtype: None
|
|
7227
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
7228
|
+
"""
|
|
7229
|
+
|
|
7230
|
+
@distributed_trace_async
|
|
7231
|
+
async def start_workorder_operation( # pylint: disable=inconsistent-return-statements
|
|
7232
|
+
self,
|
|
7233
|
+
id: str,
|
|
7234
|
+
operation: int,
|
|
7235
|
+
body: Optional[Union[_models.StartWorkOperationRequest, IO]] = None,
|
|
7236
|
+
**kwargs: Any
|
|
7237
|
+
) -> None:
|
|
7238
|
+
"""Register start work or setup on a workorder operation.
|
|
7239
|
+
|
|
7240
|
+
Register start work or setup on a workorder operation.
|
|
7241
|
+
|
|
7242
|
+
:param id: Required.
|
|
7243
|
+
:type id: str
|
|
7244
|
+
:param operation: Required.
|
|
7245
|
+
:type operation: int
|
|
7246
|
+
:param body: Is either a StartWorkOperationRequest type or a IO type. Default value is None.
|
|
7247
|
+
:type body: ~ignos.api.client.models.StartWorkOperationRequest or IO
|
|
7248
|
+
:keyword content_type: Body Parameter content-type. Known values are: 'application/*+json',
|
|
7249
|
+
'application/json', 'text/json'. Default value is None.
|
|
7250
|
+
:paramtype content_type: str
|
|
7251
|
+
:return: None
|
|
7252
|
+
:rtype: None
|
|
7253
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
7254
|
+
"""
|
|
7255
|
+
error_map = {
|
|
7256
|
+
401: ClientAuthenticationError,
|
|
7257
|
+
404: ResourceNotFoundError,
|
|
7258
|
+
409: ResourceExistsError,
|
|
7259
|
+
304: ResourceNotModifiedError,
|
|
7260
|
+
}
|
|
7261
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
7262
|
+
|
|
7263
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
7264
|
+
_params = kwargs.pop("params", {}) or {}
|
|
7265
|
+
|
|
7266
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
7267
|
+
cls: ClsType[None] = kwargs.pop("cls", None)
|
|
7268
|
+
|
|
7269
|
+
content_type = content_type or "application/json"
|
|
7270
|
+
_json = None
|
|
7271
|
+
_content = None
|
|
7272
|
+
if isinstance(body, (IOBase, bytes)):
|
|
7273
|
+
_content = body
|
|
7274
|
+
else:
|
|
7275
|
+
if body is not None:
|
|
7276
|
+
_json = self._serialize.body(body, "StartWorkOperationRequest")
|
|
7277
|
+
else:
|
|
7278
|
+
_json = None
|
|
7279
|
+
|
|
7280
|
+
request = build_workorders_start_workorder_operation_request(
|
|
7281
|
+
id=id,
|
|
7282
|
+
operation=operation,
|
|
7283
|
+
content_type=content_type,
|
|
7284
|
+
json=_json,
|
|
7285
|
+
content=_content,
|
|
7286
|
+
headers=_headers,
|
|
7287
|
+
params=_params,
|
|
7288
|
+
)
|
|
7289
|
+
request.url = self._client.format_url(request.url)
|
|
7290
|
+
|
|
7291
|
+
_stream = False
|
|
7292
|
+
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
|
7293
|
+
request, stream=_stream, **kwargs
|
|
7294
|
+
)
|
|
7295
|
+
|
|
7296
|
+
response = pipeline_response.http_response
|
|
7297
|
+
|
|
7298
|
+
if response.status_code not in [204]:
|
|
7299
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
7300
|
+
raise HttpResponseError(response=response)
|
|
7301
|
+
|
|
7302
|
+
if cls:
|
|
7303
|
+
return cls(pipeline_response, None, {})
|
|
7304
|
+
|
|
7305
|
+
@overload
|
|
7306
|
+
async def stop_workorder_operation( # pylint: disable=inconsistent-return-statements
|
|
7307
|
+
self,
|
|
7308
|
+
id: str,
|
|
7309
|
+
operation: int,
|
|
7310
|
+
body: Optional[_models.StopWorkOperationRequest] = None,
|
|
7311
|
+
*,
|
|
7312
|
+
content_type: str = "application/json",
|
|
7313
|
+
**kwargs: Any
|
|
7314
|
+
) -> None:
|
|
7315
|
+
"""Register end work or setup on a workorder operation.
|
|
7316
|
+
|
|
7317
|
+
Register end work or setup on a workorder operation.
|
|
7318
|
+
|
|
7319
|
+
:param id: Required.
|
|
7320
|
+
:type id: str
|
|
7321
|
+
:param operation: Required.
|
|
7322
|
+
:type operation: int
|
|
7323
|
+
:param body: Default value is None.
|
|
7324
|
+
:type body: ~ignos.api.client.models.StopWorkOperationRequest
|
|
7325
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
|
7326
|
+
Default value is "application/json".
|
|
7327
|
+
:paramtype content_type: str
|
|
7328
|
+
:return: None
|
|
7329
|
+
:rtype: None
|
|
7330
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
7331
|
+
"""
|
|
7332
|
+
|
|
7333
|
+
@overload
|
|
7334
|
+
async def stop_workorder_operation( # pylint: disable=inconsistent-return-statements
|
|
7335
|
+
self,
|
|
7336
|
+
id: str,
|
|
7337
|
+
operation: int,
|
|
7338
|
+
body: Optional[IO] = None,
|
|
7339
|
+
*,
|
|
7340
|
+
content_type: str = "application/json",
|
|
7341
|
+
**kwargs: Any
|
|
7342
|
+
) -> None:
|
|
7343
|
+
"""Register end work or setup on a workorder operation.
|
|
7344
|
+
|
|
7345
|
+
Register end work or setup on a workorder operation.
|
|
7346
|
+
|
|
7347
|
+
:param id: Required.
|
|
7348
|
+
:type id: str
|
|
7349
|
+
:param operation: Required.
|
|
7350
|
+
:type operation: int
|
|
7351
|
+
:param body: Default value is None.
|
|
7352
|
+
:type body: IO
|
|
7353
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
|
7354
|
+
Known values are: 'application/*+json', 'application/json', 'text/json'. Default value is
|
|
7355
|
+
"application/json".
|
|
7356
|
+
:paramtype content_type: str
|
|
7357
|
+
:return: None
|
|
7358
|
+
:rtype: None
|
|
7359
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
7360
|
+
"""
|
|
7361
|
+
|
|
7362
|
+
@distributed_trace_async
|
|
7363
|
+
async def stop_workorder_operation( # pylint: disable=inconsistent-return-statements
|
|
7364
|
+
self, id: str, operation: int, body: Optional[Union[_models.StopWorkOperationRequest, IO]] = None, **kwargs: Any
|
|
7365
|
+
) -> None:
|
|
7366
|
+
"""Register end work or setup on a workorder operation.
|
|
7367
|
+
|
|
7368
|
+
Register end work or setup on a workorder operation.
|
|
7369
|
+
|
|
7370
|
+
:param id: Required.
|
|
7371
|
+
:type id: str
|
|
7372
|
+
:param operation: Required.
|
|
7373
|
+
:type operation: int
|
|
7374
|
+
:param body: Is either a StopWorkOperationRequest type or a IO type. Default value is None.
|
|
7375
|
+
:type body: ~ignos.api.client.models.StopWorkOperationRequest or IO
|
|
7376
|
+
:keyword content_type: Body Parameter content-type. Known values are: 'application/*+json',
|
|
7377
|
+
'application/json', 'text/json'. Default value is None.
|
|
7378
|
+
:paramtype content_type: str
|
|
7379
|
+
:return: None
|
|
7380
|
+
:rtype: None
|
|
7381
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
7382
|
+
"""
|
|
7383
|
+
error_map = {
|
|
7384
|
+
401: ClientAuthenticationError,
|
|
7385
|
+
404: ResourceNotFoundError,
|
|
7386
|
+
409: ResourceExistsError,
|
|
7387
|
+
304: ResourceNotModifiedError,
|
|
7388
|
+
}
|
|
7389
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
7390
|
+
|
|
7391
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
7392
|
+
_params = kwargs.pop("params", {}) or {}
|
|
7393
|
+
|
|
7394
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
7395
|
+
cls: ClsType[None] = kwargs.pop("cls", None)
|
|
7396
|
+
|
|
7397
|
+
content_type = content_type or "application/json"
|
|
7398
|
+
_json = None
|
|
7399
|
+
_content = None
|
|
7400
|
+
if isinstance(body, (IOBase, bytes)):
|
|
7401
|
+
_content = body
|
|
7402
|
+
else:
|
|
7403
|
+
if body is not None:
|
|
7404
|
+
_json = self._serialize.body(body, "StopWorkOperationRequest")
|
|
7405
|
+
else:
|
|
7406
|
+
_json = None
|
|
7407
|
+
|
|
7408
|
+
request = build_workorders_stop_workorder_operation_request(
|
|
7409
|
+
id=id,
|
|
7410
|
+
operation=operation,
|
|
7411
|
+
content_type=content_type,
|
|
7412
|
+
json=_json,
|
|
7413
|
+
content=_content,
|
|
7414
|
+
headers=_headers,
|
|
7415
|
+
params=_params,
|
|
7416
|
+
)
|
|
7417
|
+
request.url = self._client.format_url(request.url)
|
|
7418
|
+
|
|
7419
|
+
_stream = False
|
|
7420
|
+
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
|
7421
|
+
request, stream=_stream, **kwargs
|
|
7422
|
+
)
|
|
7423
|
+
|
|
7424
|
+
response = pipeline_response.http_response
|
|
7425
|
+
|
|
7426
|
+
if response.status_code not in [204]:
|
|
7427
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
7428
|
+
raise HttpResponseError(response=response)
|
|
7429
|
+
|
|
7430
|
+
if cls:
|
|
7431
|
+
return cls(pipeline_response, None, {})
|
|
7432
|
+
|
|
7433
|
+
@overload
|
|
7434
|
+
async def register_workorder_operation_event(
|
|
7435
|
+
self,
|
|
7436
|
+
id: str,
|
|
7437
|
+
operation: int,
|
|
7438
|
+
body: Optional[_models.RegisterWorkorderOperationEventRequest] = None,
|
|
7439
|
+
*,
|
|
7440
|
+
content_type: str = "application/json",
|
|
7441
|
+
**kwargs: Any
|
|
7442
|
+
) -> _models.WorkorderOperationEventDto:
|
|
7443
|
+
"""Register a completed work order operation event.
|
|
7444
|
+
|
|
7445
|
+
Register a completed work order operation event.
|
|
7446
|
+
|
|
7447
|
+
:param id: Required.
|
|
7448
|
+
:type id: str
|
|
7449
|
+
:param operation: Required.
|
|
7450
|
+
:type operation: int
|
|
7451
|
+
:param body: Default value is None.
|
|
7452
|
+
:type body: ~ignos.api.client.models.RegisterWorkorderOperationEventRequest
|
|
7453
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
|
7454
|
+
Default value is "application/json".
|
|
7455
|
+
:paramtype content_type: str
|
|
7456
|
+
:return: WorkorderOperationEventDto
|
|
7457
|
+
:rtype: ~ignos.api.client.models.WorkorderOperationEventDto
|
|
7458
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
7459
|
+
"""
|
|
7460
|
+
|
|
7461
|
+
@overload
|
|
7462
|
+
async def register_workorder_operation_event(
|
|
7463
|
+
self,
|
|
7464
|
+
id: str,
|
|
7465
|
+
operation: int,
|
|
7466
|
+
body: Optional[IO] = None,
|
|
7467
|
+
*,
|
|
7468
|
+
content_type: str = "application/json",
|
|
7469
|
+
**kwargs: Any
|
|
7470
|
+
) -> _models.WorkorderOperationEventDto:
|
|
7471
|
+
"""Register a completed work order operation event.
|
|
7472
|
+
|
|
7473
|
+
Register a completed work order operation event.
|
|
7474
|
+
|
|
7475
|
+
:param id: Required.
|
|
7476
|
+
:type id: str
|
|
7477
|
+
:param operation: Required.
|
|
7478
|
+
:type operation: int
|
|
7479
|
+
:param body: Default value is None.
|
|
7480
|
+
:type body: IO
|
|
7481
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
|
7482
|
+
Known values are: 'application/*+json', 'application/json', 'text/json'. Default value is
|
|
7483
|
+
"application/json".
|
|
7484
|
+
:paramtype content_type: str
|
|
7485
|
+
:return: WorkorderOperationEventDto
|
|
7486
|
+
:rtype: ~ignos.api.client.models.WorkorderOperationEventDto
|
|
7487
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
7488
|
+
"""
|
|
7489
|
+
|
|
7490
|
+
@distributed_trace_async
|
|
7491
|
+
async def register_workorder_operation_event(
|
|
7492
|
+
self,
|
|
7493
|
+
id: str,
|
|
7494
|
+
operation: int,
|
|
7495
|
+
body: Optional[Union[_models.RegisterWorkorderOperationEventRequest, IO]] = None,
|
|
7496
|
+
**kwargs: Any
|
|
7497
|
+
) -> _models.WorkorderOperationEventDto:
|
|
7498
|
+
"""Register a completed work order operation event.
|
|
7499
|
+
|
|
7500
|
+
Register a completed work order operation event.
|
|
7501
|
+
|
|
7502
|
+
:param id: Required.
|
|
7503
|
+
:type id: str
|
|
7504
|
+
:param operation: Required.
|
|
7505
|
+
:type operation: int
|
|
7506
|
+
:param body: Is either a RegisterWorkorderOperationEventRequest type or a IO type. Default
|
|
7507
|
+
value is None.
|
|
7508
|
+
:type body: ~ignos.api.client.models.RegisterWorkorderOperationEventRequest or IO
|
|
7509
|
+
:keyword content_type: Body Parameter content-type. Known values are: 'application/*+json',
|
|
7510
|
+
'application/json', 'text/json'. Default value is None.
|
|
7511
|
+
:paramtype content_type: str
|
|
7512
|
+
:return: WorkorderOperationEventDto
|
|
7513
|
+
:rtype: ~ignos.api.client.models.WorkorderOperationEventDto
|
|
7514
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
7515
|
+
"""
|
|
7516
|
+
error_map = {
|
|
7517
|
+
401: ClientAuthenticationError,
|
|
7518
|
+
404: ResourceNotFoundError,
|
|
7519
|
+
409: ResourceExistsError,
|
|
7520
|
+
304: ResourceNotModifiedError,
|
|
7521
|
+
}
|
|
7522
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
7523
|
+
|
|
7524
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
7525
|
+
_params = kwargs.pop("params", {}) or {}
|
|
7526
|
+
|
|
7527
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
7528
|
+
cls: ClsType[_models.WorkorderOperationEventDto] = kwargs.pop("cls", None)
|
|
7529
|
+
|
|
7530
|
+
content_type = content_type or "application/json"
|
|
7531
|
+
_json = None
|
|
7532
|
+
_content = None
|
|
7533
|
+
if isinstance(body, (IOBase, bytes)):
|
|
7534
|
+
_content = body
|
|
7535
|
+
else:
|
|
7536
|
+
if body is not None:
|
|
7537
|
+
_json = self._serialize.body(body, "RegisterWorkorderOperationEventRequest")
|
|
7538
|
+
else:
|
|
7539
|
+
_json = None
|
|
7540
|
+
|
|
7541
|
+
request = build_workorders_register_workorder_operation_event_request(
|
|
7542
|
+
id=id,
|
|
7543
|
+
operation=operation,
|
|
7544
|
+
content_type=content_type,
|
|
7545
|
+
json=_json,
|
|
7546
|
+
content=_content,
|
|
7547
|
+
headers=_headers,
|
|
7548
|
+
params=_params,
|
|
7549
|
+
)
|
|
7550
|
+
request.url = self._client.format_url(request.url)
|
|
7551
|
+
|
|
7552
|
+
_stream = False
|
|
7553
|
+
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
|
7554
|
+
request, stream=_stream, **kwargs
|
|
7555
|
+
)
|
|
7556
|
+
|
|
7557
|
+
response = pipeline_response.http_response
|
|
7558
|
+
|
|
7559
|
+
if response.status_code not in [200]:
|
|
7560
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
7561
|
+
raise HttpResponseError(response=response)
|
|
7562
|
+
|
|
7563
|
+
deserialized = self._deserialize("WorkorderOperationEventDto", pipeline_response)
|
|
7564
|
+
|
|
7565
|
+
if cls:
|
|
7566
|
+
return cls(pipeline_response, deserialized, {})
|
|
7567
|
+
|
|
7568
|
+
return deserialized
|
|
7569
|
+
|
|
7570
|
+
@overload
|
|
7571
|
+
async def start_workorder_operation_v2(
|
|
7572
|
+
self,
|
|
7573
|
+
id: str,
|
|
7574
|
+
operation: int,
|
|
7575
|
+
body: Optional[_models.StartWorkOperationRequest] = None,
|
|
7576
|
+
*,
|
|
7577
|
+
content_type: str = "application/json",
|
|
7578
|
+
**kwargs: Any
|
|
7579
|
+
) -> _models.WorkorderOperationEventDto:
|
|
7580
|
+
"""Register start work or setup on a workorder operation.
|
|
7581
|
+
|
|
7582
|
+
Register start work or setup on a workorder operation.
|
|
7583
|
+
|
|
7584
|
+
:param id: Required.
|
|
7585
|
+
:type id: str
|
|
7586
|
+
:param operation: Required.
|
|
7587
|
+
:type operation: int
|
|
7588
|
+
:param body: Default value is None.
|
|
7589
|
+
:type body: ~ignos.api.client.models.StartWorkOperationRequest
|
|
7590
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
|
7591
|
+
Default value is "application/json".
|
|
7592
|
+
:paramtype content_type: str
|
|
7593
|
+
:return: WorkorderOperationEventDto
|
|
7594
|
+
:rtype: ~ignos.api.client.models.WorkorderOperationEventDto
|
|
7595
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
7596
|
+
"""
|
|
7597
|
+
|
|
7598
|
+
@overload
|
|
7599
|
+
async def start_workorder_operation_v2(
|
|
7600
|
+
self,
|
|
7601
|
+
id: str,
|
|
7602
|
+
operation: int,
|
|
7603
|
+
body: Optional[IO] = None,
|
|
7604
|
+
*,
|
|
7605
|
+
content_type: str = "application/json",
|
|
6770
7606
|
**kwargs: Any
|
|
6771
7607
|
) -> _models.WorkorderOperationEventDto:
|
|
6772
7608
|
"""Register start work or setup on a workorder operation.
|
|
@@ -18492,30 +19328,249 @@ class MeasuringToolsOperations: # pylint: disable=too-many-public-methods
|
|
|
18492
19328
|
) -> _models.MeasuringToolWhitelistDto:
|
|
18493
19329
|
"""whitelist_measuring_tool.
|
|
18494
19330
|
|
|
18495
|
-
:param body: Default value is None.
|
|
18496
|
-
:type body: IO
|
|
18497
|
-
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
|
18498
|
-
Known values are: 'application/*+json', 'application/json', 'text/json'. Default value is
|
|
18499
|
-
"application/json".
|
|
18500
|
-
:paramtype content_type: str
|
|
18501
|
-
:return: MeasuringToolWhitelistDto
|
|
18502
|
-
:rtype: ~ignos.api.client.models.MeasuringToolWhitelistDto
|
|
18503
|
-
:raises ~azure.core.exceptions.HttpResponseError:
|
|
18504
|
-
"""
|
|
19331
|
+
:param body: Default value is None.
|
|
19332
|
+
:type body: IO
|
|
19333
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
|
19334
|
+
Known values are: 'application/*+json', 'application/json', 'text/json'. Default value is
|
|
19335
|
+
"application/json".
|
|
19336
|
+
:paramtype content_type: str
|
|
19337
|
+
:return: MeasuringToolWhitelistDto
|
|
19338
|
+
:rtype: ~ignos.api.client.models.MeasuringToolWhitelistDto
|
|
19339
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
19340
|
+
"""
|
|
19341
|
+
|
|
19342
|
+
@distributed_trace_async
|
|
19343
|
+
async def whitelist_measuring_tool(
|
|
19344
|
+
self, body: Optional[Union[_models.WhitelistMeasuringTool, IO]] = None, **kwargs: Any
|
|
19345
|
+
) -> _models.MeasuringToolWhitelistDto:
|
|
19346
|
+
"""whitelist_measuring_tool.
|
|
19347
|
+
|
|
19348
|
+
:param body: Is either a WhitelistMeasuringTool type or a IO type. Default value is None.
|
|
19349
|
+
:type body: ~ignos.api.client.models.WhitelistMeasuringTool or IO
|
|
19350
|
+
:keyword content_type: Body Parameter content-type. Known values are: 'application/*+json',
|
|
19351
|
+
'application/json', 'text/json'. Default value is None.
|
|
19352
|
+
:paramtype content_type: str
|
|
19353
|
+
:return: MeasuringToolWhitelistDto
|
|
19354
|
+
:rtype: ~ignos.api.client.models.MeasuringToolWhitelistDto
|
|
19355
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
19356
|
+
"""
|
|
19357
|
+
error_map = {
|
|
19358
|
+
401: ClientAuthenticationError,
|
|
19359
|
+
404: ResourceNotFoundError,
|
|
19360
|
+
409: ResourceExistsError,
|
|
19361
|
+
304: ResourceNotModifiedError,
|
|
19362
|
+
}
|
|
19363
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
19364
|
+
|
|
19365
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
19366
|
+
_params = kwargs.pop("params", {}) or {}
|
|
19367
|
+
|
|
19368
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
19369
|
+
cls: ClsType[_models.MeasuringToolWhitelistDto] = kwargs.pop("cls", None)
|
|
19370
|
+
|
|
19371
|
+
content_type = content_type or "application/json"
|
|
19372
|
+
_json = None
|
|
19373
|
+
_content = None
|
|
19374
|
+
if isinstance(body, (IOBase, bytes)):
|
|
19375
|
+
_content = body
|
|
19376
|
+
else:
|
|
19377
|
+
if body is not None:
|
|
19378
|
+
_json = self._serialize.body(body, "WhitelistMeasuringTool")
|
|
19379
|
+
else:
|
|
19380
|
+
_json = None
|
|
19381
|
+
|
|
19382
|
+
request = build_measuring_tools_whitelist_measuring_tool_request(
|
|
19383
|
+
content_type=content_type,
|
|
19384
|
+
json=_json,
|
|
19385
|
+
content=_content,
|
|
19386
|
+
headers=_headers,
|
|
19387
|
+
params=_params,
|
|
19388
|
+
)
|
|
19389
|
+
request.url = self._client.format_url(request.url)
|
|
19390
|
+
|
|
19391
|
+
_stream = False
|
|
19392
|
+
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
|
19393
|
+
request, stream=_stream, **kwargs
|
|
19394
|
+
)
|
|
19395
|
+
|
|
19396
|
+
response = pipeline_response.http_response
|
|
19397
|
+
|
|
19398
|
+
if response.status_code not in [200]:
|
|
19399
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
19400
|
+
raise HttpResponseError(response=response)
|
|
19401
|
+
|
|
19402
|
+
deserialized = self._deserialize("MeasuringToolWhitelistDto", pipeline_response)
|
|
19403
|
+
|
|
19404
|
+
if cls:
|
|
19405
|
+
return cls(pipeline_response, deserialized, {})
|
|
19406
|
+
|
|
19407
|
+
return deserialized
|
|
19408
|
+
|
|
19409
|
+
@overload
|
|
19410
|
+
async def update_whitelisted_measuring_tool( # pylint: disable=inconsistent-return-statements
|
|
19411
|
+
self,
|
|
19412
|
+
id: str,
|
|
19413
|
+
body: Optional[_models.UpdateWhitelistedMeasuringTool] = None,
|
|
19414
|
+
*,
|
|
19415
|
+
content_type: str = "application/json",
|
|
19416
|
+
**kwargs: Any
|
|
19417
|
+
) -> None:
|
|
19418
|
+
"""update_whitelisted_measuring_tool.
|
|
19419
|
+
|
|
19420
|
+
:param id: Required.
|
|
19421
|
+
:type id: str
|
|
19422
|
+
:param body: Default value is None.
|
|
19423
|
+
:type body: ~ignos.api.client.models.UpdateWhitelistedMeasuringTool
|
|
19424
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
|
19425
|
+
Default value is "application/json".
|
|
19426
|
+
:paramtype content_type: str
|
|
19427
|
+
:return: None
|
|
19428
|
+
:rtype: None
|
|
19429
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
19430
|
+
"""
|
|
19431
|
+
|
|
19432
|
+
@overload
|
|
19433
|
+
async def update_whitelisted_measuring_tool( # pylint: disable=inconsistent-return-statements
|
|
19434
|
+
self, id: str, body: Optional[IO] = None, *, content_type: str = "application/json", **kwargs: Any
|
|
19435
|
+
) -> None:
|
|
19436
|
+
"""update_whitelisted_measuring_tool.
|
|
19437
|
+
|
|
19438
|
+
:param id: Required.
|
|
19439
|
+
:type id: str
|
|
19440
|
+
:param body: Default value is None.
|
|
19441
|
+
:type body: IO
|
|
19442
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
|
19443
|
+
Known values are: 'application/*+json', 'application/json', 'text/json'. Default value is
|
|
19444
|
+
"application/json".
|
|
19445
|
+
:paramtype content_type: str
|
|
19446
|
+
:return: None
|
|
19447
|
+
:rtype: None
|
|
19448
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
19449
|
+
"""
|
|
19450
|
+
|
|
19451
|
+
@distributed_trace_async
|
|
19452
|
+
async def update_whitelisted_measuring_tool( # pylint: disable=inconsistent-return-statements
|
|
19453
|
+
self, id: str, body: Optional[Union[_models.UpdateWhitelistedMeasuringTool, IO]] = None, **kwargs: Any
|
|
19454
|
+
) -> None:
|
|
19455
|
+
"""update_whitelisted_measuring_tool.
|
|
19456
|
+
|
|
19457
|
+
:param id: Required.
|
|
19458
|
+
:type id: str
|
|
19459
|
+
:param body: Is either a UpdateWhitelistedMeasuringTool type or a IO type. Default value is
|
|
19460
|
+
None.
|
|
19461
|
+
:type body: ~ignos.api.client.models.UpdateWhitelistedMeasuringTool or IO
|
|
19462
|
+
:keyword content_type: Body Parameter content-type. Known values are: 'application/*+json',
|
|
19463
|
+
'application/json', 'text/json'. Default value is None.
|
|
19464
|
+
:paramtype content_type: str
|
|
19465
|
+
:return: None
|
|
19466
|
+
:rtype: None
|
|
19467
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
19468
|
+
"""
|
|
19469
|
+
error_map = {
|
|
19470
|
+
401: ClientAuthenticationError,
|
|
19471
|
+
404: ResourceNotFoundError,
|
|
19472
|
+
409: ResourceExistsError,
|
|
19473
|
+
304: ResourceNotModifiedError,
|
|
19474
|
+
}
|
|
19475
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
19476
|
+
|
|
19477
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
19478
|
+
_params = kwargs.pop("params", {}) or {}
|
|
19479
|
+
|
|
19480
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
19481
|
+
cls: ClsType[None] = kwargs.pop("cls", None)
|
|
19482
|
+
|
|
19483
|
+
content_type = content_type or "application/json"
|
|
19484
|
+
_json = None
|
|
19485
|
+
_content = None
|
|
19486
|
+
if isinstance(body, (IOBase, bytes)):
|
|
19487
|
+
_content = body
|
|
19488
|
+
else:
|
|
19489
|
+
if body is not None:
|
|
19490
|
+
_json = self._serialize.body(body, "UpdateWhitelistedMeasuringTool")
|
|
19491
|
+
else:
|
|
19492
|
+
_json = None
|
|
19493
|
+
|
|
19494
|
+
request = build_measuring_tools_update_whitelisted_measuring_tool_request(
|
|
19495
|
+
id=id,
|
|
19496
|
+
content_type=content_type,
|
|
19497
|
+
json=_json,
|
|
19498
|
+
content=_content,
|
|
19499
|
+
headers=_headers,
|
|
19500
|
+
params=_params,
|
|
19501
|
+
)
|
|
19502
|
+
request.url = self._client.format_url(request.url)
|
|
19503
|
+
|
|
19504
|
+
_stream = False
|
|
19505
|
+
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
|
19506
|
+
request, stream=_stream, **kwargs
|
|
19507
|
+
)
|
|
19508
|
+
|
|
19509
|
+
response = pipeline_response.http_response
|
|
19510
|
+
|
|
19511
|
+
if response.status_code not in [204]:
|
|
19512
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
19513
|
+
raise HttpResponseError(response=response)
|
|
19514
|
+
|
|
19515
|
+
if cls:
|
|
19516
|
+
return cls(pipeline_response, None, {})
|
|
19517
|
+
|
|
19518
|
+
@distributed_trace_async
|
|
19519
|
+
async def remove_measuring_tool_from_whitelist(self, id: str, **kwargs: Any) -> Optional[_models.ProblemDetails]:
|
|
19520
|
+
"""remove_measuring_tool_from_whitelist.
|
|
19521
|
+
|
|
19522
|
+
:param id: Required.
|
|
19523
|
+
:type id: str
|
|
19524
|
+
:return: ProblemDetails or None
|
|
19525
|
+
:rtype: ~ignos.api.client.models.ProblemDetails or None
|
|
19526
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
19527
|
+
"""
|
|
19528
|
+
error_map = {
|
|
19529
|
+
401: ClientAuthenticationError,
|
|
19530
|
+
404: ResourceNotFoundError,
|
|
19531
|
+
409: ResourceExistsError,
|
|
19532
|
+
304: ResourceNotModifiedError,
|
|
19533
|
+
}
|
|
19534
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
19535
|
+
|
|
19536
|
+
_headers = kwargs.pop("headers", {}) or {}
|
|
19537
|
+
_params = kwargs.pop("params", {}) or {}
|
|
19538
|
+
|
|
19539
|
+
cls: ClsType[Optional[_models.ProblemDetails]] = kwargs.pop("cls", None)
|
|
19540
|
+
|
|
19541
|
+
request = build_measuring_tools_remove_measuring_tool_from_whitelist_request(
|
|
19542
|
+
id=id,
|
|
19543
|
+
headers=_headers,
|
|
19544
|
+
params=_params,
|
|
19545
|
+
)
|
|
19546
|
+
request.url = self._client.format_url(request.url)
|
|
19547
|
+
|
|
19548
|
+
_stream = False
|
|
19549
|
+
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
|
19550
|
+
request, stream=_stream, **kwargs
|
|
19551
|
+
)
|
|
19552
|
+
|
|
19553
|
+
response = pipeline_response.http_response
|
|
19554
|
+
|
|
19555
|
+
if response.status_code not in [204, 404]:
|
|
19556
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
19557
|
+
raise HttpResponseError(response=response)
|
|
19558
|
+
|
|
19559
|
+
deserialized = None
|
|
19560
|
+
if response.status_code == 404:
|
|
19561
|
+
deserialized = self._deserialize("ProblemDetails", pipeline_response)
|
|
19562
|
+
|
|
19563
|
+
if cls:
|
|
19564
|
+
return cls(pipeline_response, deserialized, {})
|
|
19565
|
+
|
|
19566
|
+
return deserialized
|
|
18505
19567
|
|
|
18506
19568
|
@distributed_trace_async
|
|
18507
|
-
async def
|
|
18508
|
-
|
|
18509
|
-
) -> _models.MeasuringToolWhitelistDto:
|
|
18510
|
-
"""whitelist_measuring_tool.
|
|
19569
|
+
async def list_unregistered_tool_values(self, **kwargs: Any) -> List[_models.UnregisteredToolValueDto]:
|
|
19570
|
+
"""list_unregistered_tool_values.
|
|
18511
19571
|
|
|
18512
|
-
:
|
|
18513
|
-
:
|
|
18514
|
-
:keyword content_type: Body Parameter content-type. Known values are: 'application/*+json',
|
|
18515
|
-
'application/json', 'text/json'. Default value is None.
|
|
18516
|
-
:paramtype content_type: str
|
|
18517
|
-
:return: MeasuringToolWhitelistDto
|
|
18518
|
-
:rtype: ~ignos.api.client.models.MeasuringToolWhitelistDto
|
|
19572
|
+
:return: list of UnregisteredToolValueDto
|
|
19573
|
+
:rtype: list[~ignos.api.client.models.UnregisteredToolValueDto]
|
|
18519
19574
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
18520
19575
|
"""
|
|
18521
19576
|
error_map = {
|
|
@@ -18526,27 +19581,12 @@ class MeasuringToolsOperations: # pylint: disable=too-many-public-methods
|
|
|
18526
19581
|
}
|
|
18527
19582
|
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
18528
19583
|
|
|
18529
|
-
_headers =
|
|
19584
|
+
_headers = kwargs.pop("headers", {}) or {}
|
|
18530
19585
|
_params = kwargs.pop("params", {}) or {}
|
|
18531
19586
|
|
|
18532
|
-
|
|
18533
|
-
cls: ClsType[_models.MeasuringToolWhitelistDto] = kwargs.pop("cls", None)
|
|
18534
|
-
|
|
18535
|
-
content_type = content_type or "application/json"
|
|
18536
|
-
_json = None
|
|
18537
|
-
_content = None
|
|
18538
|
-
if isinstance(body, (IOBase, bytes)):
|
|
18539
|
-
_content = body
|
|
18540
|
-
else:
|
|
18541
|
-
if body is not None:
|
|
18542
|
-
_json = self._serialize.body(body, "WhitelistMeasuringTool")
|
|
18543
|
-
else:
|
|
18544
|
-
_json = None
|
|
19587
|
+
cls: ClsType[List[_models.UnregisteredToolValueDto]] = kwargs.pop("cls", None)
|
|
18545
19588
|
|
|
18546
|
-
request =
|
|
18547
|
-
content_type=content_type,
|
|
18548
|
-
json=_json,
|
|
18549
|
-
content=_content,
|
|
19589
|
+
request = build_measuring_tools_list_unregistered_tool_values_request(
|
|
18550
19590
|
headers=_headers,
|
|
18551
19591
|
params=_params,
|
|
18552
19592
|
)
|
|
@@ -18563,7 +19603,7 @@ class MeasuringToolsOperations: # pylint: disable=too-many-public-methods
|
|
|
18563
19603
|
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
18564
19604
|
raise HttpResponseError(response=response)
|
|
18565
19605
|
|
|
18566
|
-
deserialized = self._deserialize("
|
|
19606
|
+
deserialized = self._deserialize("[UnregisteredToolValueDto]", pipeline_response)
|
|
18567
19607
|
|
|
18568
19608
|
if cls:
|
|
18569
19609
|
return cls(pipeline_response, deserialized, {})
|
|
@@ -18571,20 +19611,20 @@ class MeasuringToolsOperations: # pylint: disable=too-many-public-methods
|
|
|
18571
19611
|
return deserialized
|
|
18572
19612
|
|
|
18573
19613
|
@overload
|
|
18574
|
-
async def
|
|
19614
|
+
async def deprecate_tool( # pylint: disable=inconsistent-return-statements
|
|
18575
19615
|
self,
|
|
18576
19616
|
id: str,
|
|
18577
|
-
body: Optional[_models.
|
|
19617
|
+
body: Optional[_models.DeprecateToolRequest] = None,
|
|
18578
19618
|
*,
|
|
18579
19619
|
content_type: str = "application/json",
|
|
18580
19620
|
**kwargs: Any
|
|
18581
19621
|
) -> None:
|
|
18582
|
-
"""
|
|
19622
|
+
"""deprecate_tool.
|
|
18583
19623
|
|
|
18584
19624
|
:param id: Required.
|
|
18585
19625
|
:type id: str
|
|
18586
19626
|
:param body: Default value is None.
|
|
18587
|
-
:type body: ~ignos.api.client.models.
|
|
19627
|
+
:type body: ~ignos.api.client.models.DeprecateToolRequest
|
|
18588
19628
|
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
|
18589
19629
|
Default value is "application/json".
|
|
18590
19630
|
:paramtype content_type: str
|
|
@@ -18594,10 +19634,10 @@ class MeasuringToolsOperations: # pylint: disable=too-many-public-methods
|
|
|
18594
19634
|
"""
|
|
18595
19635
|
|
|
18596
19636
|
@overload
|
|
18597
|
-
async def
|
|
19637
|
+
async def deprecate_tool( # pylint: disable=inconsistent-return-statements
|
|
18598
19638
|
self, id: str, body: Optional[IO] = None, *, content_type: str = "application/json", **kwargs: Any
|
|
18599
19639
|
) -> None:
|
|
18600
|
-
"""
|
|
19640
|
+
"""deprecate_tool.
|
|
18601
19641
|
|
|
18602
19642
|
:param id: Required.
|
|
18603
19643
|
:type id: str
|
|
@@ -18613,16 +19653,15 @@ class MeasuringToolsOperations: # pylint: disable=too-many-public-methods
|
|
|
18613
19653
|
"""
|
|
18614
19654
|
|
|
18615
19655
|
@distributed_trace_async
|
|
18616
|
-
async def
|
|
18617
|
-
self, id: str, body: Optional[Union[_models.
|
|
19656
|
+
async def deprecate_tool( # pylint: disable=inconsistent-return-statements
|
|
19657
|
+
self, id: str, body: Optional[Union[_models.DeprecateToolRequest, IO]] = None, **kwargs: Any
|
|
18618
19658
|
) -> None:
|
|
18619
|
-
"""
|
|
19659
|
+
"""deprecate_tool.
|
|
18620
19660
|
|
|
18621
19661
|
:param id: Required.
|
|
18622
19662
|
:type id: str
|
|
18623
|
-
:param body: Is either a
|
|
18624
|
-
|
|
18625
|
-
:type body: ~ignos.api.client.models.UpdateWhitelistedMeasuringTool or IO
|
|
19663
|
+
:param body: Is either a DeprecateToolRequest type or a IO type. Default value is None.
|
|
19664
|
+
:type body: ~ignos.api.client.models.DeprecateToolRequest or IO
|
|
18626
19665
|
:keyword content_type: Body Parameter content-type. Known values are: 'application/*+json',
|
|
18627
19666
|
'application/json', 'text/json'. Default value is None.
|
|
18628
19667
|
:paramtype content_type: str
|
|
@@ -18651,11 +19690,11 @@ class MeasuringToolsOperations: # pylint: disable=too-many-public-methods
|
|
|
18651
19690
|
_content = body
|
|
18652
19691
|
else:
|
|
18653
19692
|
if body is not None:
|
|
18654
|
-
_json = self._serialize.body(body, "
|
|
19693
|
+
_json = self._serialize.body(body, "DeprecateToolRequest")
|
|
18655
19694
|
else:
|
|
18656
19695
|
_json = None
|
|
18657
19696
|
|
|
18658
|
-
request =
|
|
19697
|
+
request = build_measuring_tools_deprecate_tool_request(
|
|
18659
19698
|
id=id,
|
|
18660
19699
|
content_type=content_type,
|
|
18661
19700
|
json=_json,
|
|
@@ -18680,13 +19719,15 @@ class MeasuringToolsOperations: # pylint: disable=too-many-public-methods
|
|
|
18680
19719
|
return cls(pipeline_response, None, {})
|
|
18681
19720
|
|
|
18682
19721
|
@distributed_trace_async
|
|
18683
|
-
async def
|
|
18684
|
-
|
|
19722
|
+
async def get_calibration_list(
|
|
19723
|
+
self, *, status: Optional[Union[str, _models.CalibrationListStatus]] = None, **kwargs: Any
|
|
19724
|
+
) -> List[_models.CalibrationListToolDto]:
|
|
19725
|
+
"""get_calibration_list.
|
|
18685
19726
|
|
|
18686
|
-
:
|
|
18687
|
-
:
|
|
18688
|
-
:return:
|
|
18689
|
-
:rtype: ~ignos.api.client.models.
|
|
19727
|
+
:keyword status: Known values are: "SoonDue" and "Expired". Default value is None.
|
|
19728
|
+
:paramtype status: str or ~ignos.api.client.models.CalibrationListStatus
|
|
19729
|
+
:return: list of CalibrationListToolDto
|
|
19730
|
+
:rtype: list[~ignos.api.client.models.CalibrationListToolDto]
|
|
18690
19731
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
18691
19732
|
"""
|
|
18692
19733
|
error_map = {
|
|
@@ -18700,10 +19741,10 @@ class MeasuringToolsOperations: # pylint: disable=too-many-public-methods
|
|
|
18700
19741
|
_headers = kwargs.pop("headers", {}) or {}
|
|
18701
19742
|
_params = kwargs.pop("params", {}) or {}
|
|
18702
19743
|
|
|
18703
|
-
cls: ClsType[
|
|
19744
|
+
cls: ClsType[List[_models.CalibrationListToolDto]] = kwargs.pop("cls", None)
|
|
18704
19745
|
|
|
18705
|
-
request =
|
|
18706
|
-
|
|
19746
|
+
request = build_measuring_tools_get_calibration_list_request(
|
|
19747
|
+
status=status,
|
|
18707
19748
|
headers=_headers,
|
|
18708
19749
|
params=_params,
|
|
18709
19750
|
)
|
|
@@ -18716,25 +19757,67 @@ class MeasuringToolsOperations: # pylint: disable=too-many-public-methods
|
|
|
18716
19757
|
|
|
18717
19758
|
response = pipeline_response.http_response
|
|
18718
19759
|
|
|
18719
|
-
if response.status_code not in [
|
|
19760
|
+
if response.status_code not in [200]:
|
|
18720
19761
|
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
18721
19762
|
raise HttpResponseError(response=response)
|
|
18722
19763
|
|
|
18723
|
-
deserialized =
|
|
18724
|
-
if response.status_code == 404:
|
|
18725
|
-
deserialized = self._deserialize("ProblemDetails", pipeline_response)
|
|
19764
|
+
deserialized = self._deserialize("[CalibrationListToolDto]", pipeline_response)
|
|
18726
19765
|
|
|
18727
19766
|
if cls:
|
|
18728
19767
|
return cls(pipeline_response, deserialized, {})
|
|
18729
19768
|
|
|
18730
19769
|
return deserialized
|
|
18731
19770
|
|
|
19771
|
+
@overload
|
|
19772
|
+
async def import_measuring_tool(
|
|
19773
|
+
self,
|
|
19774
|
+
body: Optional[_models.ImportMeasuringTool] = None,
|
|
19775
|
+
*,
|
|
19776
|
+
content_type: str = "application/json",
|
|
19777
|
+
**kwargs: Any
|
|
19778
|
+
) -> _models.MeasuringToolDetailDto:
|
|
19779
|
+
"""import_measuring_tool.
|
|
19780
|
+
|
|
19781
|
+
:param body: Default value is None.
|
|
19782
|
+
:type body: ~ignos.api.client.models.ImportMeasuringTool
|
|
19783
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
|
19784
|
+
Default value is "application/json".
|
|
19785
|
+
:paramtype content_type: str
|
|
19786
|
+
:return: MeasuringToolDetailDto
|
|
19787
|
+
:rtype: ~ignos.api.client.models.MeasuringToolDetailDto
|
|
19788
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
19789
|
+
"""
|
|
19790
|
+
|
|
19791
|
+
@overload
|
|
19792
|
+
async def import_measuring_tool(
|
|
19793
|
+
self, body: Optional[IO] = None, *, content_type: str = "application/json", **kwargs: Any
|
|
19794
|
+
) -> _models.MeasuringToolDetailDto:
|
|
19795
|
+
"""import_measuring_tool.
|
|
19796
|
+
|
|
19797
|
+
:param body: Default value is None.
|
|
19798
|
+
:type body: IO
|
|
19799
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
|
19800
|
+
Known values are: 'application/*+json', 'application/json', 'text/json'. Default value is
|
|
19801
|
+
"application/json".
|
|
19802
|
+
:paramtype content_type: str
|
|
19803
|
+
:return: MeasuringToolDetailDto
|
|
19804
|
+
:rtype: ~ignos.api.client.models.MeasuringToolDetailDto
|
|
19805
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
19806
|
+
"""
|
|
19807
|
+
|
|
18732
19808
|
@distributed_trace_async
|
|
18733
|
-
async def
|
|
18734
|
-
|
|
19809
|
+
async def import_measuring_tool(
|
|
19810
|
+
self, body: Optional[Union[_models.ImportMeasuringTool, IO]] = None, **kwargs: Any
|
|
19811
|
+
) -> _models.MeasuringToolDetailDto:
|
|
19812
|
+
"""import_measuring_tool.
|
|
18735
19813
|
|
|
18736
|
-
:
|
|
18737
|
-
:
|
|
19814
|
+
:param body: Is either a ImportMeasuringTool type or a IO type. Default value is None.
|
|
19815
|
+
:type body: ~ignos.api.client.models.ImportMeasuringTool or IO
|
|
19816
|
+
:keyword content_type: Body Parameter content-type. Known values are: 'application/*+json',
|
|
19817
|
+
'application/json', 'text/json'. Default value is None.
|
|
19818
|
+
:paramtype content_type: str
|
|
19819
|
+
:return: MeasuringToolDetailDto
|
|
19820
|
+
:rtype: ~ignos.api.client.models.MeasuringToolDetailDto
|
|
18738
19821
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
18739
19822
|
"""
|
|
18740
19823
|
error_map = {
|
|
@@ -18745,12 +19828,27 @@ class MeasuringToolsOperations: # pylint: disable=too-many-public-methods
|
|
|
18745
19828
|
}
|
|
18746
19829
|
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
18747
19830
|
|
|
18748
|
-
_headers = kwargs.pop("headers", {}) or {}
|
|
19831
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
18749
19832
|
_params = kwargs.pop("params", {}) or {}
|
|
18750
19833
|
|
|
18751
|
-
|
|
19834
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
19835
|
+
cls: ClsType[_models.MeasuringToolDetailDto] = kwargs.pop("cls", None)
|
|
18752
19836
|
|
|
18753
|
-
|
|
19837
|
+
content_type = content_type or "application/json"
|
|
19838
|
+
_json = None
|
|
19839
|
+
_content = None
|
|
19840
|
+
if isinstance(body, (IOBase, bytes)):
|
|
19841
|
+
_content = body
|
|
19842
|
+
else:
|
|
19843
|
+
if body is not None:
|
|
19844
|
+
_json = self._serialize.body(body, "ImportMeasuringTool")
|
|
19845
|
+
else:
|
|
19846
|
+
_json = None
|
|
19847
|
+
|
|
19848
|
+
request = build_measuring_tools_import_measuring_tool_request(
|
|
19849
|
+
content_type=content_type,
|
|
19850
|
+
json=_json,
|
|
19851
|
+
content=_content,
|
|
18754
19852
|
headers=_headers,
|
|
18755
19853
|
params=_params,
|
|
18756
19854
|
)
|
|
@@ -18767,7 +19865,7 @@ class MeasuringToolsOperations: # pylint: disable=too-many-public-methods
|
|
|
18767
19865
|
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
18768
19866
|
raise HttpResponseError(response=response)
|
|
18769
19867
|
|
|
18770
|
-
deserialized = self._deserialize("
|
|
19868
|
+
deserialized = self._deserialize("MeasuringToolDetailDto", pipeline_response)
|
|
18771
19869
|
|
|
18772
19870
|
if cls:
|
|
18773
19871
|
return cls(pipeline_response, deserialized, {})
|
|
@@ -18775,20 +19873,17 @@ class MeasuringToolsOperations: # pylint: disable=too-many-public-methods
|
|
|
18775
19873
|
return deserialized
|
|
18776
19874
|
|
|
18777
19875
|
@overload
|
|
18778
|
-
async def
|
|
19876
|
+
async def update_measuring_tool_settings( # pylint: disable=inconsistent-return-statements
|
|
18779
19877
|
self,
|
|
18780
|
-
|
|
18781
|
-
body: Optional[_models.DeprecateToolRequest] = None,
|
|
19878
|
+
body: Optional[_models.UpdateMeasuringToolSettings] = None,
|
|
18782
19879
|
*,
|
|
18783
19880
|
content_type: str = "application/json",
|
|
18784
19881
|
**kwargs: Any
|
|
18785
19882
|
) -> None:
|
|
18786
|
-
"""
|
|
19883
|
+
"""update_measuring_tool_settings.
|
|
18787
19884
|
|
|
18788
|
-
:param id: Required.
|
|
18789
|
-
:type id: str
|
|
18790
19885
|
:param body: Default value is None.
|
|
18791
|
-
:type body: ~ignos.api.client.models.
|
|
19886
|
+
:type body: ~ignos.api.client.models.UpdateMeasuringToolSettings
|
|
18792
19887
|
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
|
18793
19888
|
Default value is "application/json".
|
|
18794
19889
|
:paramtype content_type: str
|
|
@@ -18798,13 +19893,11 @@ class MeasuringToolsOperations: # pylint: disable=too-many-public-methods
|
|
|
18798
19893
|
"""
|
|
18799
19894
|
|
|
18800
19895
|
@overload
|
|
18801
|
-
async def
|
|
18802
|
-
self,
|
|
19896
|
+
async def update_measuring_tool_settings( # pylint: disable=inconsistent-return-statements
|
|
19897
|
+
self, body: Optional[IO] = None, *, content_type: str = "application/json", **kwargs: Any
|
|
18803
19898
|
) -> None:
|
|
18804
|
-
"""
|
|
19899
|
+
"""update_measuring_tool_settings.
|
|
18805
19900
|
|
|
18806
|
-
:param id: Required.
|
|
18807
|
-
:type id: str
|
|
18808
19901
|
:param body: Default value is None.
|
|
18809
19902
|
:type body: IO
|
|
18810
19903
|
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
|
@@ -18817,15 +19910,13 @@ class MeasuringToolsOperations: # pylint: disable=too-many-public-methods
|
|
|
18817
19910
|
"""
|
|
18818
19911
|
|
|
18819
19912
|
@distributed_trace_async
|
|
18820
|
-
async def
|
|
18821
|
-
self,
|
|
19913
|
+
async def update_measuring_tool_settings( # pylint: disable=inconsistent-return-statements
|
|
19914
|
+
self, body: Optional[Union[_models.UpdateMeasuringToolSettings, IO]] = None, **kwargs: Any
|
|
18822
19915
|
) -> None:
|
|
18823
|
-
"""
|
|
19916
|
+
"""update_measuring_tool_settings.
|
|
18824
19917
|
|
|
18825
|
-
:param
|
|
18826
|
-
:type
|
|
18827
|
-
:param body: Is either a DeprecateToolRequest type or a IO type. Default value is None.
|
|
18828
|
-
:type body: ~ignos.api.client.models.DeprecateToolRequest or IO
|
|
19918
|
+
:param body: Is either a UpdateMeasuringToolSettings type or a IO type. Default value is None.
|
|
19919
|
+
:type body: ~ignos.api.client.models.UpdateMeasuringToolSettings or IO
|
|
18829
19920
|
:keyword content_type: Body Parameter content-type. Known values are: 'application/*+json',
|
|
18830
19921
|
'application/json', 'text/json'. Default value is None.
|
|
18831
19922
|
:paramtype content_type: str
|
|
@@ -18841,28 +19932,68 @@ class MeasuringToolsOperations: # pylint: disable=too-many-public-methods
|
|
|
18841
19932
|
}
|
|
18842
19933
|
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
18843
19934
|
|
|
18844
|
-
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
19935
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
19936
|
+
_params = kwargs.pop("params", {}) or {}
|
|
19937
|
+
|
|
19938
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
19939
|
+
cls: ClsType[None] = kwargs.pop("cls", None)
|
|
19940
|
+
|
|
19941
|
+
content_type = content_type or "application/json"
|
|
19942
|
+
_json = None
|
|
19943
|
+
_content = None
|
|
19944
|
+
if isinstance(body, (IOBase, bytes)):
|
|
19945
|
+
_content = body
|
|
19946
|
+
else:
|
|
19947
|
+
if body is not None:
|
|
19948
|
+
_json = self._serialize.body(body, "UpdateMeasuringToolSettings")
|
|
19949
|
+
else:
|
|
19950
|
+
_json = None
|
|
19951
|
+
|
|
19952
|
+
request = build_measuring_tools_update_measuring_tool_settings_request(
|
|
19953
|
+
content_type=content_type,
|
|
19954
|
+
json=_json,
|
|
19955
|
+
content=_content,
|
|
19956
|
+
headers=_headers,
|
|
19957
|
+
params=_params,
|
|
19958
|
+
)
|
|
19959
|
+
request.url = self._client.format_url(request.url)
|
|
19960
|
+
|
|
19961
|
+
_stream = False
|
|
19962
|
+
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
|
19963
|
+
request, stream=_stream, **kwargs
|
|
19964
|
+
)
|
|
19965
|
+
|
|
19966
|
+
response = pipeline_response.http_response
|
|
19967
|
+
|
|
19968
|
+
if response.status_code not in [204]:
|
|
19969
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
19970
|
+
raise HttpResponseError(response=response)
|
|
19971
|
+
|
|
19972
|
+
if cls:
|
|
19973
|
+
return cls(pipeline_response, None, {})
|
|
19974
|
+
|
|
19975
|
+
@distributed_trace_async
|
|
19976
|
+
async def get_measuring_tool_settings(self, **kwargs: Any) -> _models.MeasuringToolSettingsDto:
|
|
19977
|
+
"""get_measuring_tool_settings.
|
|
19978
|
+
|
|
19979
|
+
:return: MeasuringToolSettingsDto
|
|
19980
|
+
:rtype: ~ignos.api.client.models.MeasuringToolSettingsDto
|
|
19981
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
19982
|
+
"""
|
|
19983
|
+
error_map = {
|
|
19984
|
+
401: ClientAuthenticationError,
|
|
19985
|
+
404: ResourceNotFoundError,
|
|
19986
|
+
409: ResourceExistsError,
|
|
19987
|
+
304: ResourceNotModifiedError,
|
|
19988
|
+
}
|
|
19989
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
19990
|
+
|
|
19991
|
+
_headers = kwargs.pop("headers", {}) or {}
|
|
18845
19992
|
_params = kwargs.pop("params", {}) or {}
|
|
18846
19993
|
|
|
18847
|
-
|
|
18848
|
-
cls: ClsType[None] = kwargs.pop("cls", None)
|
|
18849
|
-
|
|
18850
|
-
content_type = content_type or "application/json"
|
|
18851
|
-
_json = None
|
|
18852
|
-
_content = None
|
|
18853
|
-
if isinstance(body, (IOBase, bytes)):
|
|
18854
|
-
_content = body
|
|
18855
|
-
else:
|
|
18856
|
-
if body is not None:
|
|
18857
|
-
_json = self._serialize.body(body, "DeprecateToolRequest")
|
|
18858
|
-
else:
|
|
18859
|
-
_json = None
|
|
19994
|
+
cls: ClsType[_models.MeasuringToolSettingsDto] = kwargs.pop("cls", None)
|
|
18860
19995
|
|
|
18861
|
-
request =
|
|
18862
|
-
id=id,
|
|
18863
|
-
content_type=content_type,
|
|
18864
|
-
json=_json,
|
|
18865
|
-
content=_content,
|
|
19996
|
+
request = build_measuring_tools_get_measuring_tool_settings_request(
|
|
18866
19997
|
headers=_headers,
|
|
18867
19998
|
params=_params,
|
|
18868
19999
|
)
|
|
@@ -18875,23 +20006,43 @@ class MeasuringToolsOperations: # pylint: disable=too-many-public-methods
|
|
|
18875
20006
|
|
|
18876
20007
|
response = pipeline_response.http_response
|
|
18877
20008
|
|
|
18878
|
-
if response.status_code not in [
|
|
20009
|
+
if response.status_code not in [200]:
|
|
18879
20010
|
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
18880
20011
|
raise HttpResponseError(response=response)
|
|
18881
20012
|
|
|
20013
|
+
deserialized = self._deserialize("MeasuringToolSettingsDto", pipeline_response)
|
|
20014
|
+
|
|
18882
20015
|
if cls:
|
|
18883
|
-
return cls(pipeline_response,
|
|
20016
|
+
return cls(pipeline_response, deserialized, {})
|
|
20017
|
+
|
|
20018
|
+
return deserialized
|
|
20019
|
+
|
|
20020
|
+
|
|
20021
|
+
class MesOperations:
|
|
20022
|
+
"""
|
|
20023
|
+
.. warning::
|
|
20024
|
+
**DO NOT** instantiate this class directly.
|
|
20025
|
+
|
|
20026
|
+
Instead, you should access the following operations through
|
|
20027
|
+
:class:`~ignos.api.client.aio.IgnosPortal`'s
|
|
20028
|
+
:attr:`mes` attribute.
|
|
20029
|
+
"""
|
|
20030
|
+
|
|
20031
|
+
models = _models
|
|
20032
|
+
|
|
20033
|
+
def __init__(self, *args, **kwargs) -> None:
|
|
20034
|
+
input_args = list(args)
|
|
20035
|
+
self._client = input_args.pop(0) if input_args else kwargs.pop("client")
|
|
20036
|
+
self._config = input_args.pop(0) if input_args else kwargs.pop("config")
|
|
20037
|
+
self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
|
20038
|
+
self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
|
18884
20039
|
|
|
18885
20040
|
@distributed_trace_async
|
|
18886
|
-
async def
|
|
18887
|
-
|
|
18888
|
-
) -> List[_models.CalibrationListToolDto]:
|
|
18889
|
-
"""get_calibration_list.
|
|
20041
|
+
async def list_production_companies(self, **kwargs: Any) -> List[_models.ProductionCompanyDto]:
|
|
20042
|
+
"""list_production_companies.
|
|
18890
20043
|
|
|
18891
|
-
:
|
|
18892
|
-
:
|
|
18893
|
-
:return: list of CalibrationListToolDto
|
|
18894
|
-
:rtype: list[~ignos.api.client.models.CalibrationListToolDto]
|
|
20044
|
+
:return: list of ProductionCompanyDto
|
|
20045
|
+
:rtype: list[~ignos.api.client.models.ProductionCompanyDto]
|
|
18895
20046
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
18896
20047
|
"""
|
|
18897
20048
|
error_map = {
|
|
@@ -18905,10 +20056,9 @@ class MeasuringToolsOperations: # pylint: disable=too-many-public-methods
|
|
|
18905
20056
|
_headers = kwargs.pop("headers", {}) or {}
|
|
18906
20057
|
_params = kwargs.pop("params", {}) or {}
|
|
18907
20058
|
|
|
18908
|
-
cls: ClsType[List[_models.
|
|
20059
|
+
cls: ClsType[List[_models.ProductionCompanyDto]] = kwargs.pop("cls", None)
|
|
18909
20060
|
|
|
18910
|
-
request =
|
|
18911
|
-
status=status,
|
|
20061
|
+
request = build_mes_list_production_companies_request(
|
|
18912
20062
|
headers=_headers,
|
|
18913
20063
|
params=_params,
|
|
18914
20064
|
)
|
|
@@ -18925,7 +20075,7 @@ class MeasuringToolsOperations: # pylint: disable=too-many-public-methods
|
|
|
18925
20075
|
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
18926
20076
|
raise HttpResponseError(response=response)
|
|
18927
20077
|
|
|
18928
|
-
deserialized = self._deserialize("[
|
|
20078
|
+
deserialized = self._deserialize("[ProductionCompanyDto]", pipeline_response)
|
|
18929
20079
|
|
|
18930
20080
|
if cls:
|
|
18931
20081
|
return cls(pipeline_response, deserialized, {})
|
|
@@ -18933,30 +20083,30 @@ class MeasuringToolsOperations: # pylint: disable=too-many-public-methods
|
|
|
18933
20083
|
return deserialized
|
|
18934
20084
|
|
|
18935
20085
|
@overload
|
|
18936
|
-
async def
|
|
20086
|
+
async def set_current_production_company(
|
|
18937
20087
|
self,
|
|
18938
|
-
body: Optional[_models.
|
|
20088
|
+
body: Optional[_models.SetCurrentProductionCompany] = None,
|
|
18939
20089
|
*,
|
|
18940
20090
|
content_type: str = "application/json",
|
|
18941
20091
|
**kwargs: Any
|
|
18942
|
-
) -> _models.
|
|
18943
|
-
"""
|
|
20092
|
+
) -> _models.ProductionCompanyDto:
|
|
20093
|
+
"""set_current_production_company.
|
|
18944
20094
|
|
|
18945
20095
|
:param body: Default value is None.
|
|
18946
|
-
:type body: ~ignos.api.client.models.
|
|
20096
|
+
:type body: ~ignos.api.client.models.SetCurrentProductionCompany
|
|
18947
20097
|
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
|
18948
20098
|
Default value is "application/json".
|
|
18949
20099
|
:paramtype content_type: str
|
|
18950
|
-
:return:
|
|
18951
|
-
:rtype: ~ignos.api.client.models.
|
|
20100
|
+
:return: ProductionCompanyDto
|
|
20101
|
+
:rtype: ~ignos.api.client.models.ProductionCompanyDto
|
|
18952
20102
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
18953
20103
|
"""
|
|
18954
20104
|
|
|
18955
20105
|
@overload
|
|
18956
|
-
async def
|
|
20106
|
+
async def set_current_production_company(
|
|
18957
20107
|
self, body: Optional[IO] = None, *, content_type: str = "application/json", **kwargs: Any
|
|
18958
|
-
) -> _models.
|
|
18959
|
-
"""
|
|
20108
|
+
) -> _models.ProductionCompanyDto:
|
|
20109
|
+
"""set_current_production_company.
|
|
18960
20110
|
|
|
18961
20111
|
:param body: Default value is None.
|
|
18962
20112
|
:type body: IO
|
|
@@ -18964,24 +20114,24 @@ class MeasuringToolsOperations: # pylint: disable=too-many-public-methods
|
|
|
18964
20114
|
Known values are: 'application/*+json', 'application/json', 'text/json'. Default value is
|
|
18965
20115
|
"application/json".
|
|
18966
20116
|
:paramtype content_type: str
|
|
18967
|
-
:return:
|
|
18968
|
-
:rtype: ~ignos.api.client.models.
|
|
20117
|
+
:return: ProductionCompanyDto
|
|
20118
|
+
:rtype: ~ignos.api.client.models.ProductionCompanyDto
|
|
18969
20119
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
18970
20120
|
"""
|
|
18971
20121
|
|
|
18972
20122
|
@distributed_trace_async
|
|
18973
|
-
async def
|
|
18974
|
-
self, body: Optional[Union[_models.
|
|
18975
|
-
) -> _models.
|
|
18976
|
-
"""
|
|
20123
|
+
async def set_current_production_company(
|
|
20124
|
+
self, body: Optional[Union[_models.SetCurrentProductionCompany, IO]] = None, **kwargs: Any
|
|
20125
|
+
) -> _models.ProductionCompanyDto:
|
|
20126
|
+
"""set_current_production_company.
|
|
18977
20127
|
|
|
18978
|
-
:param body: Is either a
|
|
18979
|
-
:type body: ~ignos.api.client.models.
|
|
20128
|
+
:param body: Is either a SetCurrentProductionCompany type or a IO type. Default value is None.
|
|
20129
|
+
:type body: ~ignos.api.client.models.SetCurrentProductionCompany or IO
|
|
18980
20130
|
:keyword content_type: Body Parameter content-type. Known values are: 'application/*+json',
|
|
18981
20131
|
'application/json', 'text/json'. Default value is None.
|
|
18982
20132
|
:paramtype content_type: str
|
|
18983
|
-
:return:
|
|
18984
|
-
:rtype: ~ignos.api.client.models.
|
|
20133
|
+
:return: ProductionCompanyDto
|
|
20134
|
+
:rtype: ~ignos.api.client.models.ProductionCompanyDto
|
|
18985
20135
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
18986
20136
|
"""
|
|
18987
20137
|
error_map = {
|
|
@@ -18996,7 +20146,7 @@ class MeasuringToolsOperations: # pylint: disable=too-many-public-methods
|
|
|
18996
20146
|
_params = kwargs.pop("params", {}) or {}
|
|
18997
20147
|
|
|
18998
20148
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
18999
|
-
cls: ClsType[_models.
|
|
20149
|
+
cls: ClsType[_models.ProductionCompanyDto] = kwargs.pop("cls", None)
|
|
19000
20150
|
|
|
19001
20151
|
content_type = content_type or "application/json"
|
|
19002
20152
|
_json = None
|
|
@@ -19005,11 +20155,11 @@ class MeasuringToolsOperations: # pylint: disable=too-many-public-methods
|
|
|
19005
20155
|
_content = body
|
|
19006
20156
|
else:
|
|
19007
20157
|
if body is not None:
|
|
19008
|
-
_json = self._serialize.body(body, "
|
|
20158
|
+
_json = self._serialize.body(body, "SetCurrentProductionCompany")
|
|
19009
20159
|
else:
|
|
19010
20160
|
_json = None
|
|
19011
20161
|
|
|
19012
|
-
request =
|
|
20162
|
+
request = build_mes_set_current_production_company_request(
|
|
19013
20163
|
content_type=content_type,
|
|
19014
20164
|
json=_json,
|
|
19015
20165
|
content=_content,
|
|
@@ -19029,63 +20179,23 @@ class MeasuringToolsOperations: # pylint: disable=too-many-public-methods
|
|
|
19029
20179
|
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
19030
20180
|
raise HttpResponseError(response=response)
|
|
19031
20181
|
|
|
19032
|
-
deserialized = self._deserialize("
|
|
20182
|
+
deserialized = self._deserialize("ProductionCompanyDto", pipeline_response)
|
|
19033
20183
|
|
|
19034
20184
|
if cls:
|
|
19035
20185
|
return cls(pipeline_response, deserialized, {})
|
|
19036
20186
|
|
|
19037
20187
|
return deserialized
|
|
19038
20188
|
|
|
19039
|
-
@overload
|
|
19040
|
-
async def update_measuring_tool_settings( # pylint: disable=inconsistent-return-statements
|
|
19041
|
-
self,
|
|
19042
|
-
body: Optional[_models.UpdateMeasuringToolSettings] = None,
|
|
19043
|
-
*,
|
|
19044
|
-
content_type: str = "application/json",
|
|
19045
|
-
**kwargs: Any
|
|
19046
|
-
) -> None:
|
|
19047
|
-
"""update_measuring_tool_settings.
|
|
19048
|
-
|
|
19049
|
-
:param body: Default value is None.
|
|
19050
|
-
:type body: ~ignos.api.client.models.UpdateMeasuringToolSettings
|
|
19051
|
-
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
|
19052
|
-
Default value is "application/json".
|
|
19053
|
-
:paramtype content_type: str
|
|
19054
|
-
:return: None
|
|
19055
|
-
:rtype: None
|
|
19056
|
-
:raises ~azure.core.exceptions.HttpResponseError:
|
|
19057
|
-
"""
|
|
19058
|
-
|
|
19059
|
-
@overload
|
|
19060
|
-
async def update_measuring_tool_settings( # pylint: disable=inconsistent-return-statements
|
|
19061
|
-
self, body: Optional[IO] = None, *, content_type: str = "application/json", **kwargs: Any
|
|
19062
|
-
) -> None:
|
|
19063
|
-
"""update_measuring_tool_settings.
|
|
19064
|
-
|
|
19065
|
-
:param body: Default value is None.
|
|
19066
|
-
:type body: IO
|
|
19067
|
-
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
|
19068
|
-
Known values are: 'application/*+json', 'application/json', 'text/json'. Default value is
|
|
19069
|
-
"application/json".
|
|
19070
|
-
:paramtype content_type: str
|
|
19071
|
-
:return: None
|
|
19072
|
-
:rtype: None
|
|
19073
|
-
:raises ~azure.core.exceptions.HttpResponseError:
|
|
19074
|
-
"""
|
|
19075
|
-
|
|
19076
20189
|
@distributed_trace_async
|
|
19077
|
-
async def
|
|
19078
|
-
self,
|
|
19079
|
-
) ->
|
|
19080
|
-
"""
|
|
20190
|
+
async def list_employees(
|
|
20191
|
+
self, *, company_id: Optional[str] = None, **kwargs: Any
|
|
20192
|
+
) -> List[_models.ProductionEmployeeDto]:
|
|
20193
|
+
"""list_employees.
|
|
19081
20194
|
|
|
19082
|
-
:
|
|
19083
|
-
:
|
|
19084
|
-
:
|
|
19085
|
-
|
|
19086
|
-
:paramtype content_type: str
|
|
19087
|
-
:return: None
|
|
19088
|
-
:rtype: None
|
|
20195
|
+
:keyword company_id: Default value is None.
|
|
20196
|
+
:paramtype company_id: str
|
|
20197
|
+
:return: list of ProductionEmployeeDto
|
|
20198
|
+
:rtype: list[~ignos.api.client.models.ProductionEmployeeDto]
|
|
19089
20199
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
19090
20200
|
"""
|
|
19091
20201
|
error_map = {
|
|
@@ -19096,27 +20206,81 @@ class MeasuringToolsOperations: # pylint: disable=too-many-public-methods
|
|
|
19096
20206
|
}
|
|
19097
20207
|
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
19098
20208
|
|
|
19099
|
-
_headers =
|
|
20209
|
+
_headers = kwargs.pop("headers", {}) or {}
|
|
19100
20210
|
_params = kwargs.pop("params", {}) or {}
|
|
19101
20211
|
|
|
19102
|
-
|
|
19103
|
-
cls: ClsType[None] = kwargs.pop("cls", None)
|
|
20212
|
+
cls: ClsType[List[_models.ProductionEmployeeDto]] = kwargs.pop("cls", None)
|
|
19104
20213
|
|
|
19105
|
-
|
|
19106
|
-
|
|
19107
|
-
|
|
19108
|
-
|
|
19109
|
-
|
|
19110
|
-
|
|
19111
|
-
|
|
19112
|
-
|
|
19113
|
-
|
|
19114
|
-
|
|
20214
|
+
request = build_mes_list_employees_request(
|
|
20215
|
+
company_id=company_id,
|
|
20216
|
+
headers=_headers,
|
|
20217
|
+
params=_params,
|
|
20218
|
+
)
|
|
20219
|
+
request.url = self._client.format_url(request.url)
|
|
20220
|
+
|
|
20221
|
+
_stream = False
|
|
20222
|
+
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
|
20223
|
+
request, stream=_stream, **kwargs
|
|
20224
|
+
)
|
|
20225
|
+
|
|
20226
|
+
response = pipeline_response.http_response
|
|
20227
|
+
|
|
20228
|
+
if response.status_code not in [200]:
|
|
20229
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
20230
|
+
raise HttpResponseError(response=response)
|
|
20231
|
+
|
|
20232
|
+
deserialized = self._deserialize("[ProductionEmployeeDto]", pipeline_response)
|
|
20233
|
+
|
|
20234
|
+
if cls:
|
|
20235
|
+
return cls(pipeline_response, deserialized, {})
|
|
20236
|
+
|
|
20237
|
+
return deserialized
|
|
20238
|
+
|
|
20239
|
+
|
|
20240
|
+
class MesProductionOrderOperations:
|
|
20241
|
+
"""
|
|
20242
|
+
.. warning::
|
|
20243
|
+
**DO NOT** instantiate this class directly.
|
|
20244
|
+
|
|
20245
|
+
Instead, you should access the following operations through
|
|
20246
|
+
:class:`~ignos.api.client.aio.IgnosPortal`'s
|
|
20247
|
+
:attr:`mes_production_order` attribute.
|
|
20248
|
+
"""
|
|
20249
|
+
|
|
20250
|
+
models = _models
|
|
20251
|
+
|
|
20252
|
+
def __init__(self, *args, **kwargs) -> None:
|
|
20253
|
+
input_args = list(args)
|
|
20254
|
+
self._client = input_args.pop(0) if input_args else kwargs.pop("client")
|
|
20255
|
+
self._config = input_args.pop(0) if input_args else kwargs.pop("config")
|
|
20256
|
+
self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
|
20257
|
+
self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
|
20258
|
+
|
|
20259
|
+
@distributed_trace_async
|
|
20260
|
+
async def get_production_order(self, id: str, **kwargs: Any) -> _models.ProductionOrderDto:
|
|
20261
|
+
"""get_production_order.
|
|
20262
|
+
|
|
20263
|
+
:param id: Required.
|
|
20264
|
+
:type id: str
|
|
20265
|
+
:return: ProductionOrderDto
|
|
20266
|
+
:rtype: ~ignos.api.client.models.ProductionOrderDto
|
|
20267
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
20268
|
+
"""
|
|
20269
|
+
error_map = {
|
|
20270
|
+
401: ClientAuthenticationError,
|
|
20271
|
+
404: ResourceNotFoundError,
|
|
20272
|
+
409: ResourceExistsError,
|
|
20273
|
+
304: ResourceNotModifiedError,
|
|
20274
|
+
}
|
|
20275
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
19115
20276
|
|
|
19116
|
-
|
|
19117
|
-
|
|
19118
|
-
|
|
19119
|
-
|
|
20277
|
+
_headers = kwargs.pop("headers", {}) or {}
|
|
20278
|
+
_params = kwargs.pop("params", {}) or {}
|
|
20279
|
+
|
|
20280
|
+
cls: ClsType[_models.ProductionOrderDto] = kwargs.pop("cls", None)
|
|
20281
|
+
|
|
20282
|
+
request = build_mes_production_order_get_production_order_request(
|
|
20283
|
+
id=id,
|
|
19120
20284
|
headers=_headers,
|
|
19121
20285
|
params=_params,
|
|
19122
20286
|
)
|
|
@@ -19129,19 +20293,49 @@ class MeasuringToolsOperations: # pylint: disable=too-many-public-methods
|
|
|
19129
20293
|
|
|
19130
20294
|
response = pipeline_response.http_response
|
|
19131
20295
|
|
|
19132
|
-
if response.status_code not in [
|
|
20296
|
+
if response.status_code not in [200]:
|
|
19133
20297
|
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
19134
20298
|
raise HttpResponseError(response=response)
|
|
19135
20299
|
|
|
20300
|
+
deserialized = self._deserialize("ProductionOrderDto", pipeline_response)
|
|
20301
|
+
|
|
19136
20302
|
if cls:
|
|
19137
|
-
return cls(pipeline_response,
|
|
20303
|
+
return cls(pipeline_response, deserialized, {})
|
|
20304
|
+
|
|
20305
|
+
return deserialized
|
|
20306
|
+
|
|
20307
|
+
|
|
20308
|
+
class MesProductionScheduleOperations:
|
|
20309
|
+
"""
|
|
20310
|
+
.. warning::
|
|
20311
|
+
**DO NOT** instantiate this class directly.
|
|
20312
|
+
|
|
20313
|
+
Instead, you should access the following operations through
|
|
20314
|
+
:class:`~ignos.api.client.aio.IgnosPortal`'s
|
|
20315
|
+
:attr:`mes_production_schedule` attribute.
|
|
20316
|
+
"""
|
|
20317
|
+
|
|
20318
|
+
models = _models
|
|
20319
|
+
|
|
20320
|
+
def __init__(self, *args, **kwargs) -> None:
|
|
20321
|
+
input_args = list(args)
|
|
20322
|
+
self._client = input_args.pop(0) if input_args else kwargs.pop("client")
|
|
20323
|
+
self._config = input_args.pop(0) if input_args else kwargs.pop("config")
|
|
20324
|
+
self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
|
20325
|
+
self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
|
19138
20326
|
|
|
19139
20327
|
@distributed_trace_async
|
|
19140
|
-
async def
|
|
19141
|
-
|
|
20328
|
+
async def list_production_schedule_operations(
|
|
20329
|
+
self, *, resource_group: Optional[str] = None, resource_id: Optional[str] = None, **kwargs: Any
|
|
20330
|
+
) -> List[_models.ProductionScheduleOperationDto]:
|
|
20331
|
+
"""list_production_schedule_operations.
|
|
19142
20332
|
|
|
19143
|
-
:
|
|
19144
|
-
:
|
|
20333
|
+
:keyword resource_group: Default value is None.
|
|
20334
|
+
:paramtype resource_group: str
|
|
20335
|
+
:keyword resource_id: Default value is None.
|
|
20336
|
+
:paramtype resource_id: str
|
|
20337
|
+
:return: list of ProductionScheduleOperationDto
|
|
20338
|
+
:rtype: list[~ignos.api.client.models.ProductionScheduleOperationDto]
|
|
19145
20339
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
19146
20340
|
"""
|
|
19147
20341
|
error_map = {
|
|
@@ -19155,9 +20349,11 @@ class MeasuringToolsOperations: # pylint: disable=too-many-public-methods
|
|
|
19155
20349
|
_headers = kwargs.pop("headers", {}) or {}
|
|
19156
20350
|
_params = kwargs.pop("params", {}) or {}
|
|
19157
20351
|
|
|
19158
|
-
cls: ClsType[_models.
|
|
20352
|
+
cls: ClsType[List[_models.ProductionScheduleOperationDto]] = kwargs.pop("cls", None)
|
|
19159
20353
|
|
|
19160
|
-
request =
|
|
20354
|
+
request = build_mes_production_schedule_list_production_schedule_operations_request(
|
|
20355
|
+
resource_group=resource_group,
|
|
20356
|
+
resource_id=resource_id,
|
|
19161
20357
|
headers=_headers,
|
|
19162
20358
|
params=_params,
|
|
19163
20359
|
)
|
|
@@ -19174,7 +20370,7 @@ class MeasuringToolsOperations: # pylint: disable=too-many-public-methods
|
|
|
19174
20370
|
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
19175
20371
|
raise HttpResponseError(response=response)
|
|
19176
20372
|
|
|
19177
|
-
deserialized = self._deserialize("
|
|
20373
|
+
deserialized = self._deserialize("[ProductionScheduleOperationDto]", pipeline_response)
|
|
19178
20374
|
|
|
19179
20375
|
if cls:
|
|
19180
20376
|
return cls(pipeline_response, deserialized, {})
|
|
@@ -19182,14 +20378,14 @@ class MeasuringToolsOperations: # pylint: disable=too-many-public-methods
|
|
|
19182
20378
|
return deserialized
|
|
19183
20379
|
|
|
19184
20380
|
|
|
19185
|
-
class
|
|
20381
|
+
class MesResourceOperations:
|
|
19186
20382
|
"""
|
|
19187
20383
|
.. warning::
|
|
19188
20384
|
**DO NOT** instantiate this class directly.
|
|
19189
20385
|
|
|
19190
20386
|
Instead, you should access the following operations through
|
|
19191
20387
|
:class:`~ignos.api.client.aio.IgnosPortal`'s
|
|
19192
|
-
:attr:`
|
|
20388
|
+
:attr:`mes_resource` attribute.
|
|
19193
20389
|
"""
|
|
19194
20390
|
|
|
19195
20391
|
models = _models
|
|
@@ -19202,11 +20398,15 @@ class MesOperations:
|
|
|
19202
20398
|
self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
|
19203
20399
|
|
|
19204
20400
|
@distributed_trace_async
|
|
19205
|
-
async def
|
|
19206
|
-
|
|
20401
|
+
async def list_resource_groups(
|
|
20402
|
+
self, *, include_resources: bool = False, **kwargs: Any
|
|
20403
|
+
) -> List[_models.ResourceGroupDto]:
|
|
20404
|
+
"""list_resource_groups.
|
|
19207
20405
|
|
|
19208
|
-
:
|
|
19209
|
-
:
|
|
20406
|
+
:keyword include_resources: Default value is False.
|
|
20407
|
+
:paramtype include_resources: bool
|
|
20408
|
+
:return: list of ResourceGroupDto
|
|
20409
|
+
:rtype: list[~ignos.api.client.models.ResourceGroupDto]
|
|
19210
20410
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
19211
20411
|
"""
|
|
19212
20412
|
error_map = {
|
|
@@ -19220,9 +20420,10 @@ class MesOperations:
|
|
|
19220
20420
|
_headers = kwargs.pop("headers", {}) or {}
|
|
19221
20421
|
_params = kwargs.pop("params", {}) or {}
|
|
19222
20422
|
|
|
19223
|
-
cls: ClsType[List[_models.
|
|
20423
|
+
cls: ClsType[List[_models.ResourceGroupDto]] = kwargs.pop("cls", None)
|
|
19224
20424
|
|
|
19225
|
-
request =
|
|
20425
|
+
request = build_mes_resource_list_resource_groups_request(
|
|
20426
|
+
include_resources=include_resources,
|
|
19226
20427
|
headers=_headers,
|
|
19227
20428
|
params=_params,
|
|
19228
20429
|
)
|
|
@@ -19239,63 +20440,138 @@ class MesOperations:
|
|
|
19239
20440
|
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
19240
20441
|
raise HttpResponseError(response=response)
|
|
19241
20442
|
|
|
19242
|
-
deserialized = self._deserialize("[
|
|
20443
|
+
deserialized = self._deserialize("[ResourceGroupDto]", pipeline_response)
|
|
20444
|
+
|
|
20445
|
+
if cls:
|
|
20446
|
+
return cls(pipeline_response, deserialized, {})
|
|
20447
|
+
|
|
20448
|
+
return deserialized
|
|
20449
|
+
|
|
20450
|
+
@distributed_trace_async
|
|
20451
|
+
async def list_resource_group_resources(self, id: str, **kwargs: Any) -> List[_models.ProductionResourceDto]:
|
|
20452
|
+
"""list_resource_group_resources.
|
|
20453
|
+
|
|
20454
|
+
:param id: Required.
|
|
20455
|
+
:type id: str
|
|
20456
|
+
:return: list of ProductionResourceDto
|
|
20457
|
+
:rtype: list[~ignos.api.client.models.ProductionResourceDto]
|
|
20458
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
20459
|
+
"""
|
|
20460
|
+
error_map = {
|
|
20461
|
+
401: ClientAuthenticationError,
|
|
20462
|
+
404: ResourceNotFoundError,
|
|
20463
|
+
409: ResourceExistsError,
|
|
20464
|
+
304: ResourceNotModifiedError,
|
|
20465
|
+
}
|
|
20466
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
20467
|
+
|
|
20468
|
+
_headers = kwargs.pop("headers", {}) or {}
|
|
20469
|
+
_params = kwargs.pop("params", {}) or {}
|
|
20470
|
+
|
|
20471
|
+
cls: ClsType[List[_models.ProductionResourceDto]] = kwargs.pop("cls", None)
|
|
20472
|
+
|
|
20473
|
+
request = build_mes_resource_list_resource_group_resources_request(
|
|
20474
|
+
id=id,
|
|
20475
|
+
headers=_headers,
|
|
20476
|
+
params=_params,
|
|
20477
|
+
)
|
|
20478
|
+
request.url = self._client.format_url(request.url)
|
|
20479
|
+
|
|
20480
|
+
_stream = False
|
|
20481
|
+
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
|
20482
|
+
request, stream=_stream, **kwargs
|
|
20483
|
+
)
|
|
20484
|
+
|
|
20485
|
+
response = pipeline_response.http_response
|
|
20486
|
+
|
|
20487
|
+
if response.status_code not in [200]:
|
|
20488
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
20489
|
+
raise HttpResponseError(response=response)
|
|
20490
|
+
|
|
20491
|
+
deserialized = self._deserialize("[ProductionResourceDto]", pipeline_response)
|
|
19243
20492
|
|
|
19244
20493
|
if cls:
|
|
19245
20494
|
return cls(pipeline_response, deserialized, {})
|
|
19246
20495
|
|
|
19247
20496
|
return deserialized
|
|
19248
20497
|
|
|
20498
|
+
|
|
20499
|
+
class MrbOperations:
|
|
20500
|
+
"""
|
|
20501
|
+
.. warning::
|
|
20502
|
+
**DO NOT** instantiate this class directly.
|
|
20503
|
+
|
|
20504
|
+
Instead, you should access the following operations through
|
|
20505
|
+
:class:`~ignos.api.client.aio.IgnosPortal`'s
|
|
20506
|
+
:attr:`mrb` attribute.
|
|
20507
|
+
"""
|
|
20508
|
+
|
|
20509
|
+
models = _models
|
|
20510
|
+
|
|
20511
|
+
def __init__(self, *args, **kwargs) -> None:
|
|
20512
|
+
input_args = list(args)
|
|
20513
|
+
self._client = input_args.pop(0) if input_args else kwargs.pop("client")
|
|
20514
|
+
self._config = input_args.pop(0) if input_args else kwargs.pop("config")
|
|
20515
|
+
self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
|
20516
|
+
self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
|
20517
|
+
|
|
19249
20518
|
@overload
|
|
19250
|
-
async def
|
|
20519
|
+
async def attach_pdf( # pylint: disable=inconsistent-return-statements
|
|
19251
20520
|
self,
|
|
19252
|
-
|
|
20521
|
+
template_id: str,
|
|
20522
|
+
body: Optional[_models.AttachPdfRequest] = None,
|
|
19253
20523
|
*,
|
|
19254
20524
|
content_type: str = "application/json",
|
|
19255
20525
|
**kwargs: Any
|
|
19256
|
-
) ->
|
|
19257
|
-
"""
|
|
20526
|
+
) -> None:
|
|
20527
|
+
"""attach_pdf.
|
|
19258
20528
|
|
|
20529
|
+
:param template_id: Required.
|
|
20530
|
+
:type template_id: str
|
|
19259
20531
|
:param body: Default value is None.
|
|
19260
|
-
:type body: ~ignos.api.client.models.
|
|
20532
|
+
:type body: ~ignos.api.client.models.AttachPdfRequest
|
|
19261
20533
|
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
|
19262
20534
|
Default value is "application/json".
|
|
19263
20535
|
:paramtype content_type: str
|
|
19264
|
-
:return:
|
|
19265
|
-
:rtype:
|
|
20536
|
+
:return: None
|
|
20537
|
+
:rtype: None
|
|
19266
20538
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
19267
20539
|
"""
|
|
19268
20540
|
|
|
19269
20541
|
@overload
|
|
19270
|
-
async def
|
|
19271
|
-
self, body: Optional[IO] = None, *, content_type: str = "application/json", **kwargs: Any
|
|
19272
|
-
) ->
|
|
19273
|
-
"""
|
|
20542
|
+
async def attach_pdf( # pylint: disable=inconsistent-return-statements
|
|
20543
|
+
self, template_id: str, body: Optional[IO] = None, *, content_type: str = "application/json", **kwargs: Any
|
|
20544
|
+
) -> None:
|
|
20545
|
+
"""attach_pdf.
|
|
19274
20546
|
|
|
20547
|
+
:param template_id: Required.
|
|
20548
|
+
:type template_id: str
|
|
19275
20549
|
:param body: Default value is None.
|
|
19276
20550
|
:type body: IO
|
|
19277
20551
|
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
|
19278
20552
|
Known values are: 'application/*+json', 'application/json', 'text/json'. Default value is
|
|
19279
20553
|
"application/json".
|
|
19280
20554
|
:paramtype content_type: str
|
|
19281
|
-
:return:
|
|
19282
|
-
:rtype:
|
|
20555
|
+
:return: None
|
|
20556
|
+
:rtype: None
|
|
19283
20557
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
19284
20558
|
"""
|
|
19285
20559
|
|
|
19286
20560
|
@distributed_trace_async
|
|
19287
|
-
async def
|
|
19288
|
-
self, body: Optional[Union[_models.
|
|
19289
|
-
) ->
|
|
19290
|
-
"""
|
|
20561
|
+
async def attach_pdf( # pylint: disable=inconsistent-return-statements
|
|
20562
|
+
self, template_id: str, body: Optional[Union[_models.AttachPdfRequest, IO]] = None, **kwargs: Any
|
|
20563
|
+
) -> None:
|
|
20564
|
+
"""attach_pdf.
|
|
19291
20565
|
|
|
19292
|
-
:param
|
|
19293
|
-
:type
|
|
20566
|
+
:param template_id: Required.
|
|
20567
|
+
:type template_id: str
|
|
20568
|
+
:param body: Is either a AttachPdfRequest type or a IO type. Default value is None.
|
|
20569
|
+
:type body: ~ignos.api.client.models.AttachPdfRequest or IO
|
|
19294
20570
|
:keyword content_type: Body Parameter content-type. Known values are: 'application/*+json',
|
|
19295
20571
|
'application/json', 'text/json'. Default value is None.
|
|
19296
20572
|
:paramtype content_type: str
|
|
19297
|
-
:return:
|
|
19298
|
-
:rtype:
|
|
20573
|
+
:return: None
|
|
20574
|
+
:rtype: None
|
|
19299
20575
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
19300
20576
|
"""
|
|
19301
20577
|
error_map = {
|
|
@@ -19310,7 +20586,7 @@ class MesOperations:
|
|
|
19310
20586
|
_params = kwargs.pop("params", {}) or {}
|
|
19311
20587
|
|
|
19312
20588
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
19313
|
-
cls: ClsType[
|
|
20589
|
+
cls: ClsType[None] = kwargs.pop("cls", None)
|
|
19314
20590
|
|
|
19315
20591
|
content_type = content_type or "application/json"
|
|
19316
20592
|
_json = None
|
|
@@ -19319,11 +20595,12 @@ class MesOperations:
|
|
|
19319
20595
|
_content = body
|
|
19320
20596
|
else:
|
|
19321
20597
|
if body is not None:
|
|
19322
|
-
_json = self._serialize.body(body, "
|
|
20598
|
+
_json = self._serialize.body(body, "AttachPdfRequest")
|
|
19323
20599
|
else:
|
|
19324
20600
|
_json = None
|
|
19325
20601
|
|
|
19326
|
-
request =
|
|
20602
|
+
request = build_mrb_attach_pdf_request(
|
|
20603
|
+
template_id=template_id,
|
|
19327
20604
|
content_type=content_type,
|
|
19328
20605
|
json=_json,
|
|
19329
20606
|
content=_content,
|
|
@@ -19343,23 +20620,19 @@ class MesOperations:
|
|
|
19343
20620
|
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
19344
20621
|
raise HttpResponseError(response=response)
|
|
19345
20622
|
|
|
19346
|
-
deserialized = self._deserialize("ProductionCompanyDto", pipeline_response)
|
|
19347
|
-
|
|
19348
20623
|
if cls:
|
|
19349
|
-
return cls(pipeline_response,
|
|
19350
|
-
|
|
19351
|
-
return deserialized
|
|
20624
|
+
return cls(pipeline_response, None, {})
|
|
19352
20625
|
|
|
19353
20626
|
@distributed_trace_async
|
|
19354
|
-
async def
|
|
19355
|
-
|
|
19356
|
-
) -> List[_models.ProductionEmployeeDto]:
|
|
19357
|
-
"""list_employees.
|
|
20627
|
+
async def get_mrb_template(self, template_id: str, **kwargs: Any) -> _models.MrbTemplateDto:
|
|
20628
|
+
"""Get a single MRB template by id.
|
|
19358
20629
|
|
|
19359
|
-
|
|
19360
|
-
|
|
19361
|
-
:
|
|
19362
|
-
:
|
|
20630
|
+
Get a single MRB template by id.
|
|
20631
|
+
|
|
20632
|
+
:param template_id: Required.
|
|
20633
|
+
:type template_id: str
|
|
20634
|
+
:return: MrbTemplateDto
|
|
20635
|
+
:rtype: ~ignos.api.client.models.MrbTemplateDto
|
|
19363
20636
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
19364
20637
|
"""
|
|
19365
20638
|
error_map = {
|
|
@@ -19373,10 +20646,10 @@ class MesOperations:
|
|
|
19373
20646
|
_headers = kwargs.pop("headers", {}) or {}
|
|
19374
20647
|
_params = kwargs.pop("params", {}) or {}
|
|
19375
20648
|
|
|
19376
|
-
cls: ClsType[
|
|
20649
|
+
cls: ClsType[_models.MrbTemplateDto] = kwargs.pop("cls", None)
|
|
19377
20650
|
|
|
19378
|
-
request =
|
|
19379
|
-
|
|
20651
|
+
request = build_mrb_get_mrb_template_request(
|
|
20652
|
+
template_id=template_id,
|
|
19380
20653
|
headers=_headers,
|
|
19381
20654
|
params=_params,
|
|
19382
20655
|
)
|
|
@@ -19393,41 +20666,27 @@ class MesOperations:
|
|
|
19393
20666
|
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
19394
20667
|
raise HttpResponseError(response=response)
|
|
19395
20668
|
|
|
19396
|
-
deserialized = self._deserialize("
|
|
20669
|
+
deserialized = self._deserialize("MrbTemplateDto", pipeline_response)
|
|
19397
20670
|
|
|
19398
20671
|
if cls:
|
|
19399
20672
|
return cls(pipeline_response, deserialized, {})
|
|
19400
20673
|
|
|
19401
20674
|
return deserialized
|
|
19402
20675
|
|
|
19403
|
-
|
|
19404
|
-
class MesProductionOrderOperations:
|
|
19405
|
-
"""
|
|
19406
|
-
.. warning::
|
|
19407
|
-
**DO NOT** instantiate this class directly.
|
|
19408
|
-
|
|
19409
|
-
Instead, you should access the following operations through
|
|
19410
|
-
:class:`~ignos.api.client.aio.IgnosPortal`'s
|
|
19411
|
-
:attr:`mes_production_order` attribute.
|
|
19412
|
-
"""
|
|
19413
|
-
|
|
19414
|
-
models = _models
|
|
19415
|
-
|
|
19416
|
-
def __init__(self, *args, **kwargs) -> None:
|
|
19417
|
-
input_args = list(args)
|
|
19418
|
-
self._client = input_args.pop(0) if input_args else kwargs.pop("client")
|
|
19419
|
-
self._config = input_args.pop(0) if input_args else kwargs.pop("config")
|
|
19420
|
-
self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
|
19421
|
-
self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
|
19422
|
-
|
|
19423
20676
|
@distributed_trace_async
|
|
19424
|
-
async def
|
|
19425
|
-
|
|
20677
|
+
async def list_mrb_templates(
|
|
20678
|
+
self, *, customer_id: Optional[str] = None, customer_group_id: Optional[str] = None, **kwargs: Any
|
|
20679
|
+
) -> List[_models.MrbTemplateDto]:
|
|
20680
|
+
"""Get a list of MRB templates.
|
|
19426
20681
|
|
|
19427
|
-
|
|
19428
|
-
|
|
19429
|
-
:
|
|
19430
|
-
:
|
|
20682
|
+
Get a list of MRB templates.
|
|
20683
|
+
|
|
20684
|
+
:keyword customer_id: Default value is None.
|
|
20685
|
+
:paramtype customer_id: str
|
|
20686
|
+
:keyword customer_group_id: Default value is None.
|
|
20687
|
+
:paramtype customer_group_id: str
|
|
20688
|
+
:return: list of MrbTemplateDto
|
|
20689
|
+
:rtype: list[~ignos.api.client.models.MrbTemplateDto]
|
|
19431
20690
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
19432
20691
|
"""
|
|
19433
20692
|
error_map = {
|
|
@@ -19441,10 +20700,11 @@ class MesProductionOrderOperations:
|
|
|
19441
20700
|
_headers = kwargs.pop("headers", {}) or {}
|
|
19442
20701
|
_params = kwargs.pop("params", {}) or {}
|
|
19443
20702
|
|
|
19444
|
-
cls: ClsType[_models.
|
|
20703
|
+
cls: ClsType[List[_models.MrbTemplateDto]] = kwargs.pop("cls", None)
|
|
19445
20704
|
|
|
19446
|
-
request =
|
|
19447
|
-
|
|
20705
|
+
request = build_mrb_list_mrb_templates_request(
|
|
20706
|
+
customer_id=customer_id,
|
|
20707
|
+
customer_group_id=customer_group_id,
|
|
19448
20708
|
headers=_headers,
|
|
19449
20709
|
params=_params,
|
|
19450
20710
|
)
|
|
@@ -19461,45 +20721,69 @@ class MesProductionOrderOperations:
|
|
|
19461
20721
|
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
19462
20722
|
raise HttpResponseError(response=response)
|
|
19463
20723
|
|
|
19464
|
-
deserialized = self._deserialize("
|
|
20724
|
+
deserialized = self._deserialize("[MrbTemplateDto]", pipeline_response)
|
|
19465
20725
|
|
|
19466
20726
|
if cls:
|
|
19467
20727
|
return cls(pipeline_response, deserialized, {})
|
|
19468
20728
|
|
|
19469
20729
|
return deserialized
|
|
19470
20730
|
|
|
20731
|
+
@overload
|
|
20732
|
+
async def create_mrb_template(
|
|
20733
|
+
self,
|
|
20734
|
+
body: Optional[_models.CreateMrbTemplateRequest] = None,
|
|
20735
|
+
*,
|
|
20736
|
+
content_type: str = "application/json",
|
|
20737
|
+
**kwargs: Any
|
|
20738
|
+
) -> _models.MrbTemplateDto:
|
|
20739
|
+
"""Create a new MRB template.
|
|
19471
20740
|
|
|
19472
|
-
|
|
19473
|
-
|
|
19474
|
-
|
|
19475
|
-
|
|
20741
|
+
Create a new MRB template.
|
|
20742
|
+
|
|
20743
|
+
:param body: Default value is None.
|
|
20744
|
+
:type body: ~ignos.api.client.models.CreateMrbTemplateRequest
|
|
20745
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
|
20746
|
+
Default value is "application/json".
|
|
20747
|
+
:paramtype content_type: str
|
|
20748
|
+
:return: MrbTemplateDto
|
|
20749
|
+
:rtype: ~ignos.api.client.models.MrbTemplateDto
|
|
20750
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
20751
|
+
"""
|
|
19476
20752
|
|
|
19477
|
-
|
|
19478
|
-
|
|
19479
|
-
:
|
|
19480
|
-
|
|
20753
|
+
@overload
|
|
20754
|
+
async def create_mrb_template(
|
|
20755
|
+
self, body: Optional[IO] = None, *, content_type: str = "application/json", **kwargs: Any
|
|
20756
|
+
) -> _models.MrbTemplateDto:
|
|
20757
|
+
"""Create a new MRB template.
|
|
19481
20758
|
|
|
19482
|
-
|
|
20759
|
+
Create a new MRB template.
|
|
19483
20760
|
|
|
19484
|
-
|
|
19485
|
-
|
|
19486
|
-
|
|
19487
|
-
|
|
19488
|
-
|
|
19489
|
-
|
|
20761
|
+
:param body: Default value is None.
|
|
20762
|
+
:type body: IO
|
|
20763
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
|
20764
|
+
Known values are: 'application/*+json', 'application/json', 'text/json'. Default value is
|
|
20765
|
+
"application/json".
|
|
20766
|
+
:paramtype content_type: str
|
|
20767
|
+
:return: MrbTemplateDto
|
|
20768
|
+
:rtype: ~ignos.api.client.models.MrbTemplateDto
|
|
20769
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
20770
|
+
"""
|
|
19490
20771
|
|
|
19491
20772
|
@distributed_trace_async
|
|
19492
|
-
async def
|
|
19493
|
-
self,
|
|
19494
|
-
) ->
|
|
19495
|
-
"""
|
|
20773
|
+
async def create_mrb_template(
|
|
20774
|
+
self, body: Optional[Union[_models.CreateMrbTemplateRequest, IO]] = None, **kwargs: Any
|
|
20775
|
+
) -> _models.MrbTemplateDto:
|
|
20776
|
+
"""Create a new MRB template.
|
|
19496
20777
|
|
|
19497
|
-
|
|
19498
|
-
|
|
19499
|
-
:
|
|
19500
|
-
:
|
|
19501
|
-
:
|
|
19502
|
-
|
|
20778
|
+
Create a new MRB template.
|
|
20779
|
+
|
|
20780
|
+
:param body: Is either a CreateMrbTemplateRequest type or a IO type. Default value is None.
|
|
20781
|
+
:type body: ~ignos.api.client.models.CreateMrbTemplateRequest or IO
|
|
20782
|
+
:keyword content_type: Body Parameter content-type. Known values are: 'application/*+json',
|
|
20783
|
+
'application/json', 'text/json'. Default value is None.
|
|
20784
|
+
:paramtype content_type: str
|
|
20785
|
+
:return: MrbTemplateDto
|
|
20786
|
+
:rtype: ~ignos.api.client.models.MrbTemplateDto
|
|
19503
20787
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
19504
20788
|
"""
|
|
19505
20789
|
error_map = {
|
|
@@ -19510,14 +20794,27 @@ class MesProductionScheduleOperations:
|
|
|
19510
20794
|
}
|
|
19511
20795
|
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
19512
20796
|
|
|
19513
|
-
_headers = kwargs.pop("headers", {}) or {}
|
|
20797
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
19514
20798
|
_params = kwargs.pop("params", {}) or {}
|
|
19515
20799
|
|
|
19516
|
-
|
|
20800
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
20801
|
+
cls: ClsType[_models.MrbTemplateDto] = kwargs.pop("cls", None)
|
|
19517
20802
|
|
|
19518
|
-
|
|
19519
|
-
|
|
19520
|
-
|
|
20803
|
+
content_type = content_type or "application/json"
|
|
20804
|
+
_json = None
|
|
20805
|
+
_content = None
|
|
20806
|
+
if isinstance(body, (IOBase, bytes)):
|
|
20807
|
+
_content = body
|
|
20808
|
+
else:
|
|
20809
|
+
if body is not None:
|
|
20810
|
+
_json = self._serialize.body(body, "CreateMrbTemplateRequest")
|
|
20811
|
+
else:
|
|
20812
|
+
_json = None
|
|
20813
|
+
|
|
20814
|
+
request = build_mrb_create_mrb_template_request(
|
|
20815
|
+
content_type=content_type,
|
|
20816
|
+
json=_json,
|
|
20817
|
+
content=_content,
|
|
19521
20818
|
headers=_headers,
|
|
19522
20819
|
params=_params,
|
|
19523
20820
|
)
|
|
@@ -19534,43 +20831,69 @@ class MesProductionScheduleOperations:
|
|
|
19534
20831
|
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
19535
20832
|
raise HttpResponseError(response=response)
|
|
19536
20833
|
|
|
19537
|
-
deserialized = self._deserialize("
|
|
20834
|
+
deserialized = self._deserialize("MrbTemplateDto", pipeline_response)
|
|
19538
20835
|
|
|
19539
20836
|
if cls:
|
|
19540
20837
|
return cls(pipeline_response, deserialized, {})
|
|
19541
20838
|
|
|
19542
20839
|
return deserialized
|
|
19543
20840
|
|
|
20841
|
+
@overload
|
|
20842
|
+
async def update_mrb_template(
|
|
20843
|
+
self,
|
|
20844
|
+
body: Optional[_models.UpdateMrbTemplateRequest] = None,
|
|
20845
|
+
*,
|
|
20846
|
+
content_type: str = "application/json",
|
|
20847
|
+
**kwargs: Any
|
|
20848
|
+
) -> _models.MrbTemplateDto:
|
|
20849
|
+
"""Update an MRB template.
|
|
19544
20850
|
|
|
19545
|
-
|
|
19546
|
-
"""
|
|
19547
|
-
.. warning::
|
|
19548
|
-
**DO NOT** instantiate this class directly.
|
|
20851
|
+
Update an MRB template.
|
|
19549
20852
|
|
|
19550
|
-
|
|
19551
|
-
:
|
|
19552
|
-
:
|
|
19553
|
-
|
|
20853
|
+
:param body: Default value is None.
|
|
20854
|
+
:type body: ~ignos.api.client.models.UpdateMrbTemplateRequest
|
|
20855
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
|
20856
|
+
Default value is "application/json".
|
|
20857
|
+
:paramtype content_type: str
|
|
20858
|
+
:return: MrbTemplateDto
|
|
20859
|
+
:rtype: ~ignos.api.client.models.MrbTemplateDto
|
|
20860
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
20861
|
+
"""
|
|
19554
20862
|
|
|
19555
|
-
|
|
20863
|
+
@overload
|
|
20864
|
+
async def update_mrb_template(
|
|
20865
|
+
self, body: Optional[IO] = None, *, content_type: str = "application/json", **kwargs: Any
|
|
20866
|
+
) -> _models.MrbTemplateDto:
|
|
20867
|
+
"""Update an MRB template.
|
|
19556
20868
|
|
|
19557
|
-
|
|
19558
|
-
|
|
19559
|
-
|
|
19560
|
-
|
|
19561
|
-
|
|
19562
|
-
|
|
20869
|
+
Update an MRB template.
|
|
20870
|
+
|
|
20871
|
+
:param body: Default value is None.
|
|
20872
|
+
:type body: IO
|
|
20873
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
|
20874
|
+
Known values are: 'application/*+json', 'application/json', 'text/json'. Default value is
|
|
20875
|
+
"application/json".
|
|
20876
|
+
:paramtype content_type: str
|
|
20877
|
+
:return: MrbTemplateDto
|
|
20878
|
+
:rtype: ~ignos.api.client.models.MrbTemplateDto
|
|
20879
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
20880
|
+
"""
|
|
19563
20881
|
|
|
19564
20882
|
@distributed_trace_async
|
|
19565
|
-
async def
|
|
19566
|
-
self,
|
|
19567
|
-
) ->
|
|
19568
|
-
"""
|
|
20883
|
+
async def update_mrb_template(
|
|
20884
|
+
self, body: Optional[Union[_models.UpdateMrbTemplateRequest, IO]] = None, **kwargs: Any
|
|
20885
|
+
) -> _models.MrbTemplateDto:
|
|
20886
|
+
"""Update an MRB template.
|
|
19569
20887
|
|
|
19570
|
-
|
|
19571
|
-
|
|
19572
|
-
:
|
|
19573
|
-
:
|
|
20888
|
+
Update an MRB template.
|
|
20889
|
+
|
|
20890
|
+
:param body: Is either a UpdateMrbTemplateRequest type or a IO type. Default value is None.
|
|
20891
|
+
:type body: ~ignos.api.client.models.UpdateMrbTemplateRequest or IO
|
|
20892
|
+
:keyword content_type: Body Parameter content-type. Known values are: 'application/*+json',
|
|
20893
|
+
'application/json', 'text/json'. Default value is None.
|
|
20894
|
+
:paramtype content_type: str
|
|
20895
|
+
:return: MrbTemplateDto
|
|
20896
|
+
:rtype: ~ignos.api.client.models.MrbTemplateDto
|
|
19574
20897
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
19575
20898
|
"""
|
|
19576
20899
|
error_map = {
|
|
@@ -19581,13 +20904,27 @@ class MesResourceOperations:
|
|
|
19581
20904
|
}
|
|
19582
20905
|
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
19583
20906
|
|
|
19584
|
-
_headers = kwargs.pop("headers", {}) or {}
|
|
20907
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
19585
20908
|
_params = kwargs.pop("params", {}) or {}
|
|
19586
20909
|
|
|
19587
|
-
|
|
20910
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
20911
|
+
cls: ClsType[_models.MrbTemplateDto] = kwargs.pop("cls", None)
|
|
19588
20912
|
|
|
19589
|
-
|
|
19590
|
-
|
|
20913
|
+
content_type = content_type or "application/json"
|
|
20914
|
+
_json = None
|
|
20915
|
+
_content = None
|
|
20916
|
+
if isinstance(body, (IOBase, bytes)):
|
|
20917
|
+
_content = body
|
|
20918
|
+
else:
|
|
20919
|
+
if body is not None:
|
|
20920
|
+
_json = self._serialize.body(body, "UpdateMrbTemplateRequest")
|
|
20921
|
+
else:
|
|
20922
|
+
_json = None
|
|
20923
|
+
|
|
20924
|
+
request = build_mrb_update_mrb_template_request(
|
|
20925
|
+
content_type=content_type,
|
|
20926
|
+
json=_json,
|
|
20927
|
+
content=_content,
|
|
19591
20928
|
headers=_headers,
|
|
19592
20929
|
params=_params,
|
|
19593
20930
|
)
|
|
@@ -19604,21 +20941,69 @@ class MesResourceOperations:
|
|
|
19604
20941
|
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
19605
20942
|
raise HttpResponseError(response=response)
|
|
19606
20943
|
|
|
19607
|
-
deserialized = self._deserialize("
|
|
20944
|
+
deserialized = self._deserialize("MrbTemplateDto", pipeline_response)
|
|
19608
20945
|
|
|
19609
20946
|
if cls:
|
|
19610
20947
|
return cls(pipeline_response, deserialized, {})
|
|
19611
20948
|
|
|
19612
20949
|
return deserialized
|
|
19613
20950
|
|
|
20951
|
+
@overload
|
|
20952
|
+
async def delete_mrb_template( # pylint: disable=inconsistent-return-statements
|
|
20953
|
+
self,
|
|
20954
|
+
body: Optional[_models.DeleteMrbTemplateRequest] = None,
|
|
20955
|
+
*,
|
|
20956
|
+
content_type: str = "application/json",
|
|
20957
|
+
**kwargs: Any
|
|
20958
|
+
) -> None:
|
|
20959
|
+
"""Delete an MRB template.
|
|
20960
|
+
|
|
20961
|
+
Delete an MRB template.
|
|
20962
|
+
|
|
20963
|
+
:param body: Default value is None.
|
|
20964
|
+
:type body: ~ignos.api.client.models.DeleteMrbTemplateRequest
|
|
20965
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
|
20966
|
+
Default value is "application/json".
|
|
20967
|
+
:paramtype content_type: str
|
|
20968
|
+
:return: None
|
|
20969
|
+
:rtype: None
|
|
20970
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
20971
|
+
"""
|
|
20972
|
+
|
|
20973
|
+
@overload
|
|
20974
|
+
async def delete_mrb_template( # pylint: disable=inconsistent-return-statements
|
|
20975
|
+
self, body: Optional[IO] = None, *, content_type: str = "application/json", **kwargs: Any
|
|
20976
|
+
) -> None:
|
|
20977
|
+
"""Delete an MRB template.
|
|
20978
|
+
|
|
20979
|
+
Delete an MRB template.
|
|
20980
|
+
|
|
20981
|
+
:param body: Default value is None.
|
|
20982
|
+
:type body: IO
|
|
20983
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
|
20984
|
+
Known values are: 'application/*+json', 'application/json', 'text/json'. Default value is
|
|
20985
|
+
"application/json".
|
|
20986
|
+
:paramtype content_type: str
|
|
20987
|
+
:return: None
|
|
20988
|
+
:rtype: None
|
|
20989
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
20990
|
+
"""
|
|
20991
|
+
|
|
19614
20992
|
@distributed_trace_async
|
|
19615
|
-
async def
|
|
19616
|
-
|
|
20993
|
+
async def delete_mrb_template( # pylint: disable=inconsistent-return-statements
|
|
20994
|
+
self, body: Optional[Union[_models.DeleteMrbTemplateRequest, IO]] = None, **kwargs: Any
|
|
20995
|
+
) -> None:
|
|
20996
|
+
"""Delete an MRB template.
|
|
19617
20997
|
|
|
19618
|
-
|
|
19619
|
-
|
|
19620
|
-
:
|
|
19621
|
-
:
|
|
20998
|
+
Delete an MRB template.
|
|
20999
|
+
|
|
21000
|
+
:param body: Is either a DeleteMrbTemplateRequest type or a IO type. Default value is None.
|
|
21001
|
+
:type body: ~ignos.api.client.models.DeleteMrbTemplateRequest or IO
|
|
21002
|
+
:keyword content_type: Body Parameter content-type. Known values are: 'application/*+json',
|
|
21003
|
+
'application/json', 'text/json'. Default value is None.
|
|
21004
|
+
:paramtype content_type: str
|
|
21005
|
+
:return: None
|
|
21006
|
+
:rtype: None
|
|
19622
21007
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
19623
21008
|
"""
|
|
19624
21009
|
error_map = {
|
|
@@ -19629,13 +21014,27 @@ class MesResourceOperations:
|
|
|
19629
21014
|
}
|
|
19630
21015
|
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
19631
21016
|
|
|
19632
|
-
_headers = kwargs.pop("headers", {}) or {}
|
|
21017
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
19633
21018
|
_params = kwargs.pop("params", {}) or {}
|
|
19634
21019
|
|
|
19635
|
-
|
|
21020
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
21021
|
+
cls: ClsType[None] = kwargs.pop("cls", None)
|
|
19636
21022
|
|
|
19637
|
-
|
|
19638
|
-
|
|
21023
|
+
content_type = content_type or "application/json"
|
|
21024
|
+
_json = None
|
|
21025
|
+
_content = None
|
|
21026
|
+
if isinstance(body, (IOBase, bytes)):
|
|
21027
|
+
_content = body
|
|
21028
|
+
else:
|
|
21029
|
+
if body is not None:
|
|
21030
|
+
_json = self._serialize.body(body, "DeleteMrbTemplateRequest")
|
|
21031
|
+
else:
|
|
21032
|
+
_json = None
|
|
21033
|
+
|
|
21034
|
+
request = build_mrb_delete_mrb_template_request(
|
|
21035
|
+
content_type=content_type,
|
|
21036
|
+
json=_json,
|
|
21037
|
+
content=_content,
|
|
19639
21038
|
headers=_headers,
|
|
19640
21039
|
params=_params,
|
|
19641
21040
|
)
|
|
@@ -19652,12 +21051,8 @@ class MesResourceOperations:
|
|
|
19652
21051
|
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
19653
21052
|
raise HttpResponseError(response=response)
|
|
19654
21053
|
|
|
19655
|
-
deserialized = self._deserialize("[ProductionResourceDto]", pipeline_response)
|
|
19656
|
-
|
|
19657
21054
|
if cls:
|
|
19658
|
-
return cls(pipeline_response,
|
|
19659
|
-
|
|
19660
|
-
return deserialized
|
|
21055
|
+
return cls(pipeline_response, None, {})
|
|
19661
21056
|
|
|
19662
21057
|
|
|
19663
21058
|
class OperatorCalculatorsOperations:
|
|
@@ -21253,6 +22648,74 @@ class SystemHealthDashboardOperations:
|
|
|
21253
22648
|
return deserialized
|
|
21254
22649
|
|
|
21255
22650
|
|
|
22651
|
+
class TraceOperations:
|
|
22652
|
+
"""
|
|
22653
|
+
.. warning::
|
|
22654
|
+
**DO NOT** instantiate this class directly.
|
|
22655
|
+
|
|
22656
|
+
Instead, you should access the following operations through
|
|
22657
|
+
:class:`~ignos.api.client.aio.IgnosPortal`'s
|
|
22658
|
+
:attr:`trace` attribute.
|
|
22659
|
+
"""
|
|
22660
|
+
|
|
22661
|
+
models = _models
|
|
22662
|
+
|
|
22663
|
+
def __init__(self, *args, **kwargs) -> None:
|
|
22664
|
+
input_args = list(args)
|
|
22665
|
+
self._client = input_args.pop(0) if input_args else kwargs.pop("client")
|
|
22666
|
+
self._config = input_args.pop(0) if input_args else kwargs.pop("config")
|
|
22667
|
+
self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
|
22668
|
+
self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
|
22669
|
+
|
|
22670
|
+
@distributed_trace_async
|
|
22671
|
+
async def get_work_order_trace(self, id: str, **kwargs: Any) -> _models.TraceDto:
|
|
22672
|
+
"""get_work_order_trace.
|
|
22673
|
+
|
|
22674
|
+
:param id: Required.
|
|
22675
|
+
:type id: str
|
|
22676
|
+
:return: TraceDto
|
|
22677
|
+
:rtype: ~ignos.api.client.models.TraceDto
|
|
22678
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
22679
|
+
"""
|
|
22680
|
+
error_map = {
|
|
22681
|
+
401: ClientAuthenticationError,
|
|
22682
|
+
404: ResourceNotFoundError,
|
|
22683
|
+
409: ResourceExistsError,
|
|
22684
|
+
304: ResourceNotModifiedError,
|
|
22685
|
+
}
|
|
22686
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
22687
|
+
|
|
22688
|
+
_headers = kwargs.pop("headers", {}) or {}
|
|
22689
|
+
_params = kwargs.pop("params", {}) or {}
|
|
22690
|
+
|
|
22691
|
+
cls: ClsType[_models.TraceDto] = kwargs.pop("cls", None)
|
|
22692
|
+
|
|
22693
|
+
request = build_trace_get_work_order_trace_request(
|
|
22694
|
+
id=id,
|
|
22695
|
+
headers=_headers,
|
|
22696
|
+
params=_params,
|
|
22697
|
+
)
|
|
22698
|
+
request.url = self._client.format_url(request.url)
|
|
22699
|
+
|
|
22700
|
+
_stream = False
|
|
22701
|
+
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
|
22702
|
+
request, stream=_stream, **kwargs
|
|
22703
|
+
)
|
|
22704
|
+
|
|
22705
|
+
response = pipeline_response.http_response
|
|
22706
|
+
|
|
22707
|
+
if response.status_code not in [200]:
|
|
22708
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
22709
|
+
raise HttpResponseError(response=response)
|
|
22710
|
+
|
|
22711
|
+
deserialized = self._deserialize("TraceDto", pipeline_response)
|
|
22712
|
+
|
|
22713
|
+
if cls:
|
|
22714
|
+
return cls(pipeline_response, deserialized, {})
|
|
22715
|
+
|
|
22716
|
+
return deserialized
|
|
22717
|
+
|
|
22718
|
+
|
|
21256
22719
|
class UploadOperations:
|
|
21257
22720
|
"""
|
|
21258
22721
|
.. warning::
|