ignos-api-client 2023.12.29.7928__py3-none-any.whl → 2023.12.29.7935__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/_version.py +1 -1
- ignos/api/client/aio/operations/_operations.py +1932 -102
- ignos/api/client/models/__init__.py +34 -0
- ignos/api/client/models/_models.py +1071 -0
- ignos/api/client/operations/_operations.py +2143 -23
- {ignos_api_client-2023.12.29.7928.dist-info → ignos_api_client-2023.12.29.7935.dist-info}/METADATA +1 -1
- {ignos_api_client-2023.12.29.7928.dist-info → ignos_api_client-2023.12.29.7935.dist-info}/RECORD +9 -9
- {ignos_api_client-2023.12.29.7928.dist-info → ignos_api_client-2023.12.29.7935.dist-info}/WHEEL +0 -0
- {ignos_api_client-2023.12.29.7928.dist-info → ignos_api_client-2023.12.29.7935.dist-info}/top_level.txt +0 -0
|
@@ -724,6 +724,23 @@ def build_cnc_setup_get_cnc_part_request(id: str, **kwargs: Any) -> HttpRequest:
|
|
|
724
724
|
return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs)
|
|
725
725
|
|
|
726
726
|
|
|
727
|
+
def build_cnc_setup_post_list_cnc_parts_request(**kwargs: Any) -> HttpRequest: # pylint: disable=name-too-long
|
|
728
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
729
|
+
|
|
730
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
731
|
+
accept = _headers.pop("Accept", "application/json")
|
|
732
|
+
|
|
733
|
+
# Construct URL
|
|
734
|
+
_url = "/cncsetup/parts/list"
|
|
735
|
+
|
|
736
|
+
# Construct headers
|
|
737
|
+
if content_type is not None:
|
|
738
|
+
_headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str")
|
|
739
|
+
_headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
|
|
740
|
+
|
|
741
|
+
return HttpRequest(method="POST", url=_url, headers=_headers, **kwargs)
|
|
742
|
+
|
|
743
|
+
|
|
727
744
|
def build_cnc_setup_copy_cnc_part_request(**kwargs: Any) -> HttpRequest:
|
|
728
745
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
729
746
|
|
|
@@ -882,6 +899,25 @@ def build_cnc_setup_list_cnc_machine_operations_request( # pylint: disable=name
|
|
|
882
899
|
return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs)
|
|
883
900
|
|
|
884
901
|
|
|
902
|
+
def build_cnc_setup_post_list_cnc_machine_operations_request( # pylint: disable=name-too-long
|
|
903
|
+
**kwargs: Any,
|
|
904
|
+
) -> HttpRequest:
|
|
905
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
906
|
+
|
|
907
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
908
|
+
accept = _headers.pop("Accept", "application/json")
|
|
909
|
+
|
|
910
|
+
# Construct URL
|
|
911
|
+
_url = "/cncsetup/operations/list"
|
|
912
|
+
|
|
913
|
+
# Construct headers
|
|
914
|
+
if content_type is not None:
|
|
915
|
+
_headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str")
|
|
916
|
+
_headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
|
|
917
|
+
|
|
918
|
+
return HttpRequest(method="POST", url=_url, headers=_headers, **kwargs)
|
|
919
|
+
|
|
920
|
+
|
|
885
921
|
def build_cnc_setup_update_cnc_machine_operation_request( # pylint: disable=name-too-long
|
|
886
922
|
id: str, **kwargs: Any
|
|
887
923
|
) -> HttpRequest:
|
|
@@ -1496,6 +1532,23 @@ def build_customers_list_customers_request(
|
|
|
1496
1532
|
return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs)
|
|
1497
1533
|
|
|
1498
1534
|
|
|
1535
|
+
def build_customers_post_list_customers_request(**kwargs: Any) -> HttpRequest: # pylint: disable=name-too-long
|
|
1536
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
1537
|
+
|
|
1538
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
1539
|
+
accept = _headers.pop("Accept", "application/json")
|
|
1540
|
+
|
|
1541
|
+
# Construct URL
|
|
1542
|
+
_url = "/erp/customers/list"
|
|
1543
|
+
|
|
1544
|
+
# Construct headers
|
|
1545
|
+
if content_type is not None:
|
|
1546
|
+
_headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str")
|
|
1547
|
+
_headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
|
|
1548
|
+
|
|
1549
|
+
return HttpRequest(method="POST", url=_url, headers=_headers, **kwargs)
|
|
1550
|
+
|
|
1551
|
+
|
|
1499
1552
|
def build_customers_list_customer_groups_request(**kwargs: Any) -> HttpRequest: # pylint: disable=name-too-long
|
|
1500
1553
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
1501
1554
|
|
|
@@ -1567,8 +1620,8 @@ def build_documents_import_document_request(**kwargs: Any) -> HttpRequest:
|
|
|
1567
1620
|
return HttpRequest(method="POST", url=_url, headers=_headers, **kwargs)
|
|
1568
1621
|
|
|
1569
1622
|
|
|
1570
|
-
def
|
|
1571
|
-
*,
|
|
1623
|
+
def build_documents_check_if_imported_document_exists_request( # pylint: disable=name-too-long
|
|
1624
|
+
*, imported_reference: Optional[str] = None, **kwargs: Any
|
|
1572
1625
|
) -> HttpRequest:
|
|
1573
1626
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
1574
1627
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
|
@@ -1576,13 +1629,11 @@ def build_documents_get_documents_with_tag_value_count_request( # pylint: disab
|
|
|
1576
1629
|
accept = _headers.pop("Accept", "application/json")
|
|
1577
1630
|
|
|
1578
1631
|
# Construct URL
|
|
1579
|
-
_url = "/documents/
|
|
1632
|
+
_url = "/documents/importedrevisionexists"
|
|
1580
1633
|
|
|
1581
1634
|
# Construct parameters
|
|
1582
|
-
if
|
|
1583
|
-
_params["
|
|
1584
|
-
if tag_value is not None:
|
|
1585
|
-
_params["tagValue"] = _SERIALIZER.query("tag_value", tag_value, "str")
|
|
1635
|
+
if imported_reference is not None:
|
|
1636
|
+
_params["importedReference"] = _SERIALIZER.query("imported_reference", imported_reference, "str")
|
|
1586
1637
|
|
|
1587
1638
|
# Construct headers
|
|
1588
1639
|
_headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
|
|
@@ -1884,6 +1935,25 @@ def build_customer_orders_list_customer_orders_request( # pylint: disable=name-
|
|
|
1884
1935
|
return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs)
|
|
1885
1936
|
|
|
1886
1937
|
|
|
1938
|
+
def build_customer_orders_post_list_customer_orders_request( # pylint: disable=name-too-long
|
|
1939
|
+
**kwargs: Any,
|
|
1940
|
+
) -> HttpRequest:
|
|
1941
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
1942
|
+
|
|
1943
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
1944
|
+
accept = _headers.pop("Accept", "application/json")
|
|
1945
|
+
|
|
1946
|
+
# Construct URL
|
|
1947
|
+
_url = "/erp/customerorders/list"
|
|
1948
|
+
|
|
1949
|
+
# Construct headers
|
|
1950
|
+
if content_type is not None:
|
|
1951
|
+
_headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str")
|
|
1952
|
+
_headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
|
|
1953
|
+
|
|
1954
|
+
return HttpRequest(method="POST", url=_url, headers=_headers, **kwargs)
|
|
1955
|
+
|
|
1956
|
+
|
|
1887
1957
|
def build_customer_orders_list_customer_order_lines_request( # pylint: disable=name-too-long
|
|
1888
1958
|
id: str, **kwargs: Any
|
|
1889
1959
|
) -> HttpRequest:
|
|
@@ -2260,6 +2330,23 @@ def build_workorders_delete_workorder_request(id: str, **kwargs: Any) -> HttpReq
|
|
|
2260
2330
|
return HttpRequest(method="DELETE", url=_url, **kwargs)
|
|
2261
2331
|
|
|
2262
2332
|
|
|
2333
|
+
def build_workorders_post_list_workorders_request(**kwargs: Any) -> HttpRequest: # pylint: disable=name-too-long
|
|
2334
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
2335
|
+
|
|
2336
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
2337
|
+
accept = _headers.pop("Accept", "application/json")
|
|
2338
|
+
|
|
2339
|
+
# Construct URL
|
|
2340
|
+
_url = "/erp/workorders/list"
|
|
2341
|
+
|
|
2342
|
+
# Construct headers
|
|
2343
|
+
if content_type is not None:
|
|
2344
|
+
_headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str")
|
|
2345
|
+
_headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
|
|
2346
|
+
|
|
2347
|
+
return HttpRequest(method="POST", url=_url, headers=_headers, **kwargs)
|
|
2348
|
+
|
|
2349
|
+
|
|
2263
2350
|
def build_workorders_get_workorder_operation_event_request( # pylint: disable=name-too-long
|
|
2264
2351
|
event_id: str, **kwargs: Any
|
|
2265
2352
|
) -> HttpRequest:
|
|
@@ -3458,6 +3545,25 @@ def build_measurement_form_schemas_create_measurement_form_request( # pylint: d
|
|
|
3458
3545
|
return HttpRequest(method="POST", url=_url, headers=_headers, **kwargs)
|
|
3459
3546
|
|
|
3460
3547
|
|
|
3548
|
+
def build_measurement_form_schemas_post_list_measurement_form_schemas_request( # pylint: disable=name-too-long
|
|
3549
|
+
**kwargs: Any,
|
|
3550
|
+
) -> HttpRequest:
|
|
3551
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
3552
|
+
|
|
3553
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
3554
|
+
accept = _headers.pop("Accept", "application/json")
|
|
3555
|
+
|
|
3556
|
+
# Construct URL
|
|
3557
|
+
_url = "/measurementforms/schemas/list"
|
|
3558
|
+
|
|
3559
|
+
# Construct headers
|
|
3560
|
+
if content_type is not None:
|
|
3561
|
+
_headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str")
|
|
3562
|
+
_headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
|
|
3563
|
+
|
|
3564
|
+
return HttpRequest(method="POST", url=_url, headers=_headers, **kwargs)
|
|
3565
|
+
|
|
3566
|
+
|
|
3461
3567
|
def build_measurement_form_schemas_get_measurement_form_schema_request( # pylint: disable=name-too-long
|
|
3462
3568
|
id: str, **kwargs: Any
|
|
3463
3569
|
) -> HttpRequest:
|
|
@@ -3657,6 +3763,25 @@ def build_measurement_form_schemas_list_linkable_measurement_form_schemas_reques
|
|
|
3657
3763
|
return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs)
|
|
3658
3764
|
|
|
3659
3765
|
|
|
3766
|
+
def build_measurement_form_schemas_post_list_linkable_measurement_form_schemas_request( # pylint: disable=name-too-long
|
|
3767
|
+
**kwargs: Any,
|
|
3768
|
+
) -> HttpRequest:
|
|
3769
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
3770
|
+
|
|
3771
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
3772
|
+
accept = _headers.pop("Accept", "application/json")
|
|
3773
|
+
|
|
3774
|
+
# Construct URL
|
|
3775
|
+
_url = "/measurementforms/schemas/listlinkableschemas"
|
|
3776
|
+
|
|
3777
|
+
# Construct headers
|
|
3778
|
+
if content_type is not None:
|
|
3779
|
+
_headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str")
|
|
3780
|
+
_headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
|
|
3781
|
+
|
|
3782
|
+
return HttpRequest(method="POST", url=_url, headers=_headers, **kwargs)
|
|
3783
|
+
|
|
3784
|
+
|
|
3660
3785
|
def build_measurement_form_schemas_create_measurement_form_schema_link_request( # pylint: disable=name-too-long
|
|
3661
3786
|
schema_id: str, **kwargs: Any
|
|
3662
3787
|
) -> HttpRequest:
|
|
@@ -4072,6 +4197,25 @@ def build_measurement_form_schemas_list_measurement_form_needs_request( # pylin
|
|
|
4072
4197
|
return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs)
|
|
4073
4198
|
|
|
4074
4199
|
|
|
4200
|
+
def build_measurement_form_schemas_post_list_measurement_form_needs_request( # pylint: disable=name-too-long
|
|
4201
|
+
**kwargs: Any,
|
|
4202
|
+
) -> HttpRequest:
|
|
4203
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
4204
|
+
|
|
4205
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
4206
|
+
accept = _headers.pop("Accept", "application/json")
|
|
4207
|
+
|
|
4208
|
+
# Construct URL
|
|
4209
|
+
_url = "/measurementforms/schemas/listneeds"
|
|
4210
|
+
|
|
4211
|
+
# Construct headers
|
|
4212
|
+
if content_type is not None:
|
|
4213
|
+
_headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str")
|
|
4214
|
+
_headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
|
|
4215
|
+
|
|
4216
|
+
return HttpRequest(method="POST", url=_url, headers=_headers, **kwargs)
|
|
4217
|
+
|
|
4218
|
+
|
|
4075
4219
|
def build_measurement_form_schemas_set_measurement_form_need_user_request( # pylint: disable=name-too-long
|
|
4076
4220
|
id: str, **kwargs: Any
|
|
4077
4221
|
) -> HttpRequest:
|
|
@@ -4211,6 +4355,25 @@ def build_measurement_form_schemas_list_measurment_form_schemas_not_needed_reque
|
|
|
4211
4355
|
return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs)
|
|
4212
4356
|
|
|
4213
4357
|
|
|
4358
|
+
def build_measurement_form_schemas_post_list_measurement_form_schemas_not_needed_request( # pylint: disable=name-too-long
|
|
4359
|
+
**kwargs: Any,
|
|
4360
|
+
) -> HttpRequest:
|
|
4361
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
4362
|
+
|
|
4363
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
4364
|
+
accept = _headers.pop("Accept", "application/json")
|
|
4365
|
+
|
|
4366
|
+
# Construct URL
|
|
4367
|
+
_url = "/measurementforms/schemas/listschemasnotneeded"
|
|
4368
|
+
|
|
4369
|
+
# Construct headers
|
|
4370
|
+
if content_type is not None:
|
|
4371
|
+
_headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str")
|
|
4372
|
+
_headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
|
|
4373
|
+
|
|
4374
|
+
return HttpRequest(method="POST", url=_url, headers=_headers, **kwargs)
|
|
4375
|
+
|
|
4376
|
+
|
|
4214
4377
|
def build_measurement_form_schemas_delete_measurment_form_schemas_not_needed_request( # pylint: disable=name-too-long
|
|
4215
4378
|
id: str, **kwargs: Any
|
|
4216
4379
|
) -> HttpRequest:
|
|
@@ -4321,6 +4484,25 @@ def build_measurement_form_schemas_list_measurement_form_instance_schema_feedbac
|
|
|
4321
4484
|
return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs)
|
|
4322
4485
|
|
|
4323
4486
|
|
|
4487
|
+
def build_measurement_form_schemas_post_list_measurement_form_instance_schema_feedback_request( # pylint: disable=name-too-long
|
|
4488
|
+
**kwargs: Any,
|
|
4489
|
+
) -> HttpRequest:
|
|
4490
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
4491
|
+
|
|
4492
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
4493
|
+
accept = _headers.pop("Accept", "application/json")
|
|
4494
|
+
|
|
4495
|
+
# Construct URL
|
|
4496
|
+
_url = "/measurementforms/schemas/listfeedback"
|
|
4497
|
+
|
|
4498
|
+
# Construct headers
|
|
4499
|
+
if content_type is not None:
|
|
4500
|
+
_headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str")
|
|
4501
|
+
_headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
|
|
4502
|
+
|
|
4503
|
+
return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs)
|
|
4504
|
+
|
|
4505
|
+
|
|
4324
4506
|
def build_measurement_form_schemas_get_measurement_form_instance_schema_feedback_request( # pylint: disable=name-too-long
|
|
4325
4507
|
id: str, **kwargs: Any
|
|
4326
4508
|
) -> HttpRequest:
|
|
@@ -4423,6 +4605,25 @@ def build_measurement_form_schemas_list_measurment_form_schemas_with_history_req
|
|
|
4423
4605
|
return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs)
|
|
4424
4606
|
|
|
4425
4607
|
|
|
4608
|
+
def build_measurement_form_schemas_post_list_measurement_form_schemas_with_history_request( # pylint: disable=name-too-long
|
|
4609
|
+
**kwargs: Any,
|
|
4610
|
+
) -> HttpRequest:
|
|
4611
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
4612
|
+
|
|
4613
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
4614
|
+
accept = _headers.pop("Accept", "application/json")
|
|
4615
|
+
|
|
4616
|
+
# Construct URL
|
|
4617
|
+
_url = "/measurementforms/schemas/importsearch"
|
|
4618
|
+
|
|
4619
|
+
# Construct headers
|
|
4620
|
+
if content_type is not None:
|
|
4621
|
+
_headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str")
|
|
4622
|
+
_headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
|
|
4623
|
+
|
|
4624
|
+
return HttpRequest(method="POST", url=_url, headers=_headers, **kwargs)
|
|
4625
|
+
|
|
4626
|
+
|
|
4426
4627
|
def build_measurement_forms_instances_list_measurement_forms_request( # pylint: disable=name-too-long
|
|
4427
4628
|
*,
|
|
4428
4629
|
page_size: int = 50,
|
|
@@ -4465,6 +4666,25 @@ def build_measurement_forms_instances_list_measurement_forms_request( # pylint:
|
|
|
4465
4666
|
return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs)
|
|
4466
4667
|
|
|
4467
4668
|
|
|
4669
|
+
def build_measurement_forms_instances_post_list_measurement_forms_request( # pylint: disable=name-too-long
|
|
4670
|
+
**kwargs: Any,
|
|
4671
|
+
) -> HttpRequest:
|
|
4672
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
4673
|
+
|
|
4674
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
4675
|
+
accept = _headers.pop("Accept", "application/json")
|
|
4676
|
+
|
|
4677
|
+
# Construct URL
|
|
4678
|
+
_url = "/measurementforms/instances/list"
|
|
4679
|
+
|
|
4680
|
+
# Construct headers
|
|
4681
|
+
if content_type is not None:
|
|
4682
|
+
_headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str")
|
|
4683
|
+
_headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
|
|
4684
|
+
|
|
4685
|
+
return HttpRequest(method="POST", url=_url, headers=_headers, **kwargs)
|
|
4686
|
+
|
|
4687
|
+
|
|
4468
4688
|
def build_measurement_forms_instances_list_measurement_forms_by_status_request( # pylint: disable=name-too-long
|
|
4469
4689
|
*,
|
|
4470
4690
|
status: Optional[Union[str, _models.MeasurementFormInstanceStatus]] = None,
|
|
@@ -4505,6 +4725,25 @@ def build_measurement_forms_instances_list_measurement_forms_by_status_request(
|
|
|
4505
4725
|
return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs)
|
|
4506
4726
|
|
|
4507
4727
|
|
|
4728
|
+
def build_measurement_forms_instances_post_list_measurement_forms_by_status_request( # pylint: disable=name-too-long
|
|
4729
|
+
**kwargs: Any,
|
|
4730
|
+
) -> HttpRequest:
|
|
4731
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
4732
|
+
|
|
4733
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
4734
|
+
accept = _headers.pop("Accept", "application/json")
|
|
4735
|
+
|
|
4736
|
+
# Construct URL
|
|
4737
|
+
_url = "/measurementforms/instances/bystatus"
|
|
4738
|
+
|
|
4739
|
+
# Construct headers
|
|
4740
|
+
if content_type is not None:
|
|
4741
|
+
_headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str")
|
|
4742
|
+
_headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
|
|
4743
|
+
|
|
4744
|
+
return HttpRequest(method="POST", url=_url, headers=_headers, **kwargs)
|
|
4745
|
+
|
|
4746
|
+
|
|
4508
4747
|
def build_measurement_forms_instances_get_measurement_form_instance_request( # pylint: disable=name-too-long
|
|
4509
4748
|
id: str, *, tenant_id: Optional[str] = None, **kwargs: Any
|
|
4510
4749
|
) -> HttpRequest:
|
|
@@ -6102,6 +6341,25 @@ def build_mes_production_schedule_list_production_schedule_operations_request(
|
|
|
6102
6341
|
return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs)
|
|
6103
6342
|
|
|
6104
6343
|
|
|
6344
|
+
def build_mes_production_schedule_post_list_production_schedule_operations_request( # pylint: disable=name-too-long
|
|
6345
|
+
**kwargs: Any,
|
|
6346
|
+
) -> HttpRequest:
|
|
6347
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
6348
|
+
|
|
6349
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
6350
|
+
accept = _headers.pop("Accept", "application/json")
|
|
6351
|
+
|
|
6352
|
+
# Construct URL
|
|
6353
|
+
_url = "/mes/listproductionschedule"
|
|
6354
|
+
|
|
6355
|
+
# Construct headers
|
|
6356
|
+
if content_type is not None:
|
|
6357
|
+
_headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str")
|
|
6358
|
+
_headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
|
|
6359
|
+
|
|
6360
|
+
return HttpRequest(method="POST", url=_url, headers=_headers, **kwargs)
|
|
6361
|
+
|
|
6362
|
+
|
|
6105
6363
|
def build_mes_production_schedule_list_my_current_work_activities_request( # pylint: disable=name-too-long
|
|
6106
6364
|
**kwargs: Any,
|
|
6107
6365
|
) -> HttpRequest:
|
|
@@ -6570,6 +6828,23 @@ def build_mrb_list_mrb_instance_reports_request( # pylint: disable=name-too-lon
|
|
|
6570
6828
|
return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs)
|
|
6571
6829
|
|
|
6572
6830
|
|
|
6831
|
+
def build_mrb_post_list_mrb_instance_reports_request(**kwargs: Any) -> HttpRequest: # pylint: disable=name-too-long
|
|
6832
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
6833
|
+
|
|
6834
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
6835
|
+
accept = _headers.pop("Accept", "application/json")
|
|
6836
|
+
|
|
6837
|
+
# Construct URL
|
|
6838
|
+
_url = "/mrb/listmrbinstancereports"
|
|
6839
|
+
|
|
6840
|
+
# Construct headers
|
|
6841
|
+
if content_type is not None:
|
|
6842
|
+
_headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str")
|
|
6843
|
+
_headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
|
|
6844
|
+
|
|
6845
|
+
return HttpRequest(method="POST", url=_url, headers=_headers, **kwargs)
|
|
6846
|
+
|
|
6847
|
+
|
|
6573
6848
|
def build_mrb_attach_pdf_request(template_id: str, **kwargs: Any) -> HttpRequest:
|
|
6574
6849
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
6575
6850
|
|
|
@@ -7243,6 +7518,23 @@ def build_trace_list_trace_workorders_request( # pylint: disable=name-too-long
|
|
|
7243
7518
|
return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs)
|
|
7244
7519
|
|
|
7245
7520
|
|
|
7521
|
+
def build_trace_post_list_trace_workorders_request(**kwargs: Any) -> HttpRequest: # pylint: disable=name-too-long
|
|
7522
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
7523
|
+
|
|
7524
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
7525
|
+
accept = _headers.pop("Accept", "application/json")
|
|
7526
|
+
|
|
7527
|
+
# Construct URL
|
|
7528
|
+
_url = "/trace/listtraceworkorders"
|
|
7529
|
+
|
|
7530
|
+
# Construct headers
|
|
7531
|
+
if content_type is not None:
|
|
7532
|
+
_headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str")
|
|
7533
|
+
_headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
|
|
7534
|
+
|
|
7535
|
+
return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs)
|
|
7536
|
+
|
|
7537
|
+
|
|
7246
7538
|
def build_upload_create_upload_info_request(**kwargs: Any) -> HttpRequest:
|
|
7247
7539
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
7248
7540
|
|
|
@@ -7288,6 +7580,23 @@ def build_users_list_users_request(
|
|
|
7288
7580
|
return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs)
|
|
7289
7581
|
|
|
7290
7582
|
|
|
7583
|
+
def build_users_post_list_users_request(**kwargs: Any) -> HttpRequest:
|
|
7584
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
7585
|
+
|
|
7586
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
7587
|
+
accept = _headers.pop("Accept", "application/json")
|
|
7588
|
+
|
|
7589
|
+
# Construct URL
|
|
7590
|
+
_url = "/users/list"
|
|
7591
|
+
|
|
7592
|
+
# Construct headers
|
|
7593
|
+
if content_type is not None:
|
|
7594
|
+
_headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str")
|
|
7595
|
+
_headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
|
|
7596
|
+
|
|
7597
|
+
return HttpRequest(method="POST", url=_url, headers=_headers, **kwargs)
|
|
7598
|
+
|
|
7599
|
+
|
|
7291
7600
|
def build_workspaces_get_my_workspaces_request(**kwargs: Any) -> HttpRequest: # pylint: disable=name-too-long
|
|
7292
7601
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
7293
7602
|
|
|
@@ -10213,6 +10522,112 @@ class CncSetupOperations: # pylint: disable=too-many-public-methods
|
|
|
10213
10522
|
|
|
10214
10523
|
return deserialized # type: ignore
|
|
10215
10524
|
|
|
10525
|
+
@overload
|
|
10526
|
+
def post_list_cnc_parts(
|
|
10527
|
+
self,
|
|
10528
|
+
body: Optional[_models.ListCncPartsRequest] = None,
|
|
10529
|
+
*,
|
|
10530
|
+
content_type: str = "application/json",
|
|
10531
|
+
**kwargs: Any,
|
|
10532
|
+
) -> _models.CncPartListDtoPagedResult:
|
|
10533
|
+
"""post_list_cnc_parts.
|
|
10534
|
+
|
|
10535
|
+
:param body: Default value is None.
|
|
10536
|
+
:type body: ~ignos.api.client.models.ListCncPartsRequest
|
|
10537
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
|
10538
|
+
Default value is "application/json".
|
|
10539
|
+
:paramtype content_type: str
|
|
10540
|
+
:return: CncPartListDtoPagedResult
|
|
10541
|
+
:rtype: ~ignos.api.client.models.CncPartListDtoPagedResult
|
|
10542
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
10543
|
+
"""
|
|
10544
|
+
|
|
10545
|
+
@overload
|
|
10546
|
+
def post_list_cnc_parts(
|
|
10547
|
+
self, body: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any
|
|
10548
|
+
) -> _models.CncPartListDtoPagedResult:
|
|
10549
|
+
"""post_list_cnc_parts.
|
|
10550
|
+
|
|
10551
|
+
:param body: Default value is None.
|
|
10552
|
+
:type body: IO[bytes]
|
|
10553
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
|
10554
|
+
Known values are: 'application/*+json', 'application/json', 'text/json'. Default value is
|
|
10555
|
+
"application/json".
|
|
10556
|
+
:paramtype content_type: str
|
|
10557
|
+
:return: CncPartListDtoPagedResult
|
|
10558
|
+
:rtype: ~ignos.api.client.models.CncPartListDtoPagedResult
|
|
10559
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
10560
|
+
"""
|
|
10561
|
+
|
|
10562
|
+
@distributed_trace
|
|
10563
|
+
def post_list_cnc_parts(
|
|
10564
|
+
self, body: Optional[Union[_models.ListCncPartsRequest, IO[bytes]]] = None, **kwargs: Any
|
|
10565
|
+
) -> _models.CncPartListDtoPagedResult:
|
|
10566
|
+
"""post_list_cnc_parts.
|
|
10567
|
+
|
|
10568
|
+
:param body: Is either a ListCncPartsRequest type or a IO[bytes] type. Default value is None.
|
|
10569
|
+
:type body: ~ignos.api.client.models.ListCncPartsRequest or IO[bytes]
|
|
10570
|
+
:keyword content_type: Body Parameter content-type. Known values are: 'application/*+json',
|
|
10571
|
+
'application/json', 'text/json'. Default value is None.
|
|
10572
|
+
:paramtype content_type: str
|
|
10573
|
+
:return: CncPartListDtoPagedResult
|
|
10574
|
+
:rtype: ~ignos.api.client.models.CncPartListDtoPagedResult
|
|
10575
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
10576
|
+
"""
|
|
10577
|
+
error_map = {
|
|
10578
|
+
401: ClientAuthenticationError,
|
|
10579
|
+
404: ResourceNotFoundError,
|
|
10580
|
+
409: ResourceExistsError,
|
|
10581
|
+
304: ResourceNotModifiedError,
|
|
10582
|
+
}
|
|
10583
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
10584
|
+
|
|
10585
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
10586
|
+
_params = kwargs.pop("params", {}) or {}
|
|
10587
|
+
|
|
10588
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
10589
|
+
cls: ClsType[_models.CncPartListDtoPagedResult] = kwargs.pop("cls", None)
|
|
10590
|
+
|
|
10591
|
+
content_type = content_type or "application/json"
|
|
10592
|
+
_json = None
|
|
10593
|
+
_content = None
|
|
10594
|
+
if isinstance(body, (IOBase, bytes)):
|
|
10595
|
+
_content = body
|
|
10596
|
+
else:
|
|
10597
|
+
if body is not None:
|
|
10598
|
+
_json = self._serialize.body(body, "ListCncPartsRequest")
|
|
10599
|
+
else:
|
|
10600
|
+
_json = None
|
|
10601
|
+
|
|
10602
|
+
_request = build_cnc_setup_post_list_cnc_parts_request(
|
|
10603
|
+
content_type=content_type,
|
|
10604
|
+
json=_json,
|
|
10605
|
+
content=_content,
|
|
10606
|
+
headers=_headers,
|
|
10607
|
+
params=_params,
|
|
10608
|
+
)
|
|
10609
|
+
_request.url = self._client.format_url(_request.url)
|
|
10610
|
+
|
|
10611
|
+
_stream = False
|
|
10612
|
+
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
|
10613
|
+
_request, stream=_stream, **kwargs
|
|
10614
|
+
)
|
|
10615
|
+
|
|
10616
|
+
response = pipeline_response.http_response
|
|
10617
|
+
|
|
10618
|
+
if response.status_code not in [200]:
|
|
10619
|
+
if _stream:
|
|
10620
|
+
response.read() # Load the body in memory and close the socket
|
|
10621
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
10622
|
+
raise HttpResponseError(response=response)
|
|
10623
|
+
|
|
10624
|
+
deserialized = self._deserialize("CncPartListDtoPagedResult", pipeline_response)
|
|
10625
|
+
|
|
10626
|
+
if cls:
|
|
10627
|
+
return cls(pipeline_response, deserialized, {}) # type: ignore
|
|
10628
|
+
|
|
10629
|
+
return deserialized # type: ignore
|
|
10630
|
+
|
|
10216
10631
|
@overload
|
|
10217
10632
|
def copy_cnc_part(
|
|
10218
10633
|
self, body: Optional[_models.CopyCncPart] = None, *, content_type: str = "application/json", **kwargs: Any
|
|
@@ -10797,6 +11212,113 @@ class CncSetupOperations: # pylint: disable=too-many-public-methods
|
|
|
10797
11212
|
|
|
10798
11213
|
return deserialized # type: ignore
|
|
10799
11214
|
|
|
11215
|
+
@overload
|
|
11216
|
+
def post_list_cnc_machine_operations(
|
|
11217
|
+
self,
|
|
11218
|
+
body: Optional[_models.ListCncMachineOperationsRequest] = None,
|
|
11219
|
+
*,
|
|
11220
|
+
content_type: str = "application/json",
|
|
11221
|
+
**kwargs: Any,
|
|
11222
|
+
) -> _models.CncMachineOperationSearchResultDtoPagedResult:
|
|
11223
|
+
"""post_list_cnc_machine_operations.
|
|
11224
|
+
|
|
11225
|
+
:param body: Default value is None.
|
|
11226
|
+
:type body: ~ignos.api.client.models.ListCncMachineOperationsRequest
|
|
11227
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
|
11228
|
+
Default value is "application/json".
|
|
11229
|
+
:paramtype content_type: str
|
|
11230
|
+
:return: CncMachineOperationSearchResultDtoPagedResult
|
|
11231
|
+
:rtype: ~ignos.api.client.models.CncMachineOperationSearchResultDtoPagedResult
|
|
11232
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
11233
|
+
"""
|
|
11234
|
+
|
|
11235
|
+
@overload
|
|
11236
|
+
def post_list_cnc_machine_operations(
|
|
11237
|
+
self, body: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any
|
|
11238
|
+
) -> _models.CncMachineOperationSearchResultDtoPagedResult:
|
|
11239
|
+
"""post_list_cnc_machine_operations.
|
|
11240
|
+
|
|
11241
|
+
:param body: Default value is None.
|
|
11242
|
+
:type body: IO[bytes]
|
|
11243
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
|
11244
|
+
Known values are: 'application/*+json', 'application/json', 'text/json'. Default value is
|
|
11245
|
+
"application/json".
|
|
11246
|
+
:paramtype content_type: str
|
|
11247
|
+
:return: CncMachineOperationSearchResultDtoPagedResult
|
|
11248
|
+
:rtype: ~ignos.api.client.models.CncMachineOperationSearchResultDtoPagedResult
|
|
11249
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
11250
|
+
"""
|
|
11251
|
+
|
|
11252
|
+
@distributed_trace
|
|
11253
|
+
def post_list_cnc_machine_operations(
|
|
11254
|
+
self, body: Optional[Union[_models.ListCncMachineOperationsRequest, IO[bytes]]] = None, **kwargs: Any
|
|
11255
|
+
) -> _models.CncMachineOperationSearchResultDtoPagedResult:
|
|
11256
|
+
"""post_list_cnc_machine_operations.
|
|
11257
|
+
|
|
11258
|
+
:param body: Is either a ListCncMachineOperationsRequest type or a IO[bytes] type. Default
|
|
11259
|
+
value is None.
|
|
11260
|
+
:type body: ~ignos.api.client.models.ListCncMachineOperationsRequest or IO[bytes]
|
|
11261
|
+
:keyword content_type: Body Parameter content-type. Known values are: 'application/*+json',
|
|
11262
|
+
'application/json', 'text/json'. Default value is None.
|
|
11263
|
+
:paramtype content_type: str
|
|
11264
|
+
:return: CncMachineOperationSearchResultDtoPagedResult
|
|
11265
|
+
:rtype: ~ignos.api.client.models.CncMachineOperationSearchResultDtoPagedResult
|
|
11266
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
11267
|
+
"""
|
|
11268
|
+
error_map = {
|
|
11269
|
+
401: ClientAuthenticationError,
|
|
11270
|
+
404: ResourceNotFoundError,
|
|
11271
|
+
409: ResourceExistsError,
|
|
11272
|
+
304: ResourceNotModifiedError,
|
|
11273
|
+
}
|
|
11274
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
11275
|
+
|
|
11276
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
11277
|
+
_params = kwargs.pop("params", {}) or {}
|
|
11278
|
+
|
|
11279
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
11280
|
+
cls: ClsType[_models.CncMachineOperationSearchResultDtoPagedResult] = kwargs.pop("cls", None)
|
|
11281
|
+
|
|
11282
|
+
content_type = content_type or "application/json"
|
|
11283
|
+
_json = None
|
|
11284
|
+
_content = None
|
|
11285
|
+
if isinstance(body, (IOBase, bytes)):
|
|
11286
|
+
_content = body
|
|
11287
|
+
else:
|
|
11288
|
+
if body is not None:
|
|
11289
|
+
_json = self._serialize.body(body, "ListCncMachineOperationsRequest")
|
|
11290
|
+
else:
|
|
11291
|
+
_json = None
|
|
11292
|
+
|
|
11293
|
+
_request = build_cnc_setup_post_list_cnc_machine_operations_request(
|
|
11294
|
+
content_type=content_type,
|
|
11295
|
+
json=_json,
|
|
11296
|
+
content=_content,
|
|
11297
|
+
headers=_headers,
|
|
11298
|
+
params=_params,
|
|
11299
|
+
)
|
|
11300
|
+
_request.url = self._client.format_url(_request.url)
|
|
11301
|
+
|
|
11302
|
+
_stream = False
|
|
11303
|
+
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
|
11304
|
+
_request, stream=_stream, **kwargs
|
|
11305
|
+
)
|
|
11306
|
+
|
|
11307
|
+
response = pipeline_response.http_response
|
|
11308
|
+
|
|
11309
|
+
if response.status_code not in [200]:
|
|
11310
|
+
if _stream:
|
|
11311
|
+
response.read() # Load the body in memory and close the socket
|
|
11312
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
11313
|
+
raise HttpResponseError(response=response)
|
|
11314
|
+
|
|
11315
|
+
deserialized = self._deserialize("CncMachineOperationSearchResultDtoPagedResult", pipeline_response)
|
|
11316
|
+
|
|
11317
|
+
if cls:
|
|
11318
|
+
return cls(pipeline_response, deserialized, {}) # type: ignore
|
|
11319
|
+
|
|
11320
|
+
return deserialized # type: ignore
|
|
11321
|
+
|
|
10800
11322
|
@overload
|
|
10801
11323
|
def update_cnc_machine_operation(
|
|
10802
11324
|
self,
|
|
@@ -13302,6 +13824,112 @@ class CustomersOperations:
|
|
|
13302
13824
|
|
|
13303
13825
|
return deserialized # type: ignore
|
|
13304
13826
|
|
|
13827
|
+
@overload
|
|
13828
|
+
def post_list_customers(
|
|
13829
|
+
self,
|
|
13830
|
+
body: Optional[_models.ListCustomersRequest] = None,
|
|
13831
|
+
*,
|
|
13832
|
+
content_type: str = "application/json",
|
|
13833
|
+
**kwargs: Any,
|
|
13834
|
+
) -> _models.CustomerDtoPagedResult:
|
|
13835
|
+
"""post_list_customers.
|
|
13836
|
+
|
|
13837
|
+
:param body: Default value is None.
|
|
13838
|
+
:type body: ~ignos.api.client.models.ListCustomersRequest
|
|
13839
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
|
13840
|
+
Default value is "application/json".
|
|
13841
|
+
:paramtype content_type: str
|
|
13842
|
+
:return: CustomerDtoPagedResult
|
|
13843
|
+
:rtype: ~ignos.api.client.models.CustomerDtoPagedResult
|
|
13844
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
13845
|
+
"""
|
|
13846
|
+
|
|
13847
|
+
@overload
|
|
13848
|
+
def post_list_customers(
|
|
13849
|
+
self, body: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any
|
|
13850
|
+
) -> _models.CustomerDtoPagedResult:
|
|
13851
|
+
"""post_list_customers.
|
|
13852
|
+
|
|
13853
|
+
:param body: Default value is None.
|
|
13854
|
+
:type body: IO[bytes]
|
|
13855
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
|
13856
|
+
Known values are: 'application/*+json', 'application/json', 'text/json'. Default value is
|
|
13857
|
+
"application/json".
|
|
13858
|
+
:paramtype content_type: str
|
|
13859
|
+
:return: CustomerDtoPagedResult
|
|
13860
|
+
:rtype: ~ignos.api.client.models.CustomerDtoPagedResult
|
|
13861
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
13862
|
+
"""
|
|
13863
|
+
|
|
13864
|
+
@distributed_trace
|
|
13865
|
+
def post_list_customers(
|
|
13866
|
+
self, body: Optional[Union[_models.ListCustomersRequest, IO[bytes]]] = None, **kwargs: Any
|
|
13867
|
+
) -> _models.CustomerDtoPagedResult:
|
|
13868
|
+
"""post_list_customers.
|
|
13869
|
+
|
|
13870
|
+
:param body: Is either a ListCustomersRequest type or a IO[bytes] type. Default value is None.
|
|
13871
|
+
:type body: ~ignos.api.client.models.ListCustomersRequest or IO[bytes]
|
|
13872
|
+
:keyword content_type: Body Parameter content-type. Known values are: 'application/*+json',
|
|
13873
|
+
'application/json', 'text/json'. Default value is None.
|
|
13874
|
+
:paramtype content_type: str
|
|
13875
|
+
:return: CustomerDtoPagedResult
|
|
13876
|
+
:rtype: ~ignos.api.client.models.CustomerDtoPagedResult
|
|
13877
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
13878
|
+
"""
|
|
13879
|
+
error_map = {
|
|
13880
|
+
401: ClientAuthenticationError,
|
|
13881
|
+
404: ResourceNotFoundError,
|
|
13882
|
+
409: ResourceExistsError,
|
|
13883
|
+
304: ResourceNotModifiedError,
|
|
13884
|
+
}
|
|
13885
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
13886
|
+
|
|
13887
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
13888
|
+
_params = kwargs.pop("params", {}) or {}
|
|
13889
|
+
|
|
13890
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
13891
|
+
cls: ClsType[_models.CustomerDtoPagedResult] = kwargs.pop("cls", None)
|
|
13892
|
+
|
|
13893
|
+
content_type = content_type or "application/json"
|
|
13894
|
+
_json = None
|
|
13895
|
+
_content = None
|
|
13896
|
+
if isinstance(body, (IOBase, bytes)):
|
|
13897
|
+
_content = body
|
|
13898
|
+
else:
|
|
13899
|
+
if body is not None:
|
|
13900
|
+
_json = self._serialize.body(body, "ListCustomersRequest")
|
|
13901
|
+
else:
|
|
13902
|
+
_json = None
|
|
13903
|
+
|
|
13904
|
+
_request = build_customers_post_list_customers_request(
|
|
13905
|
+
content_type=content_type,
|
|
13906
|
+
json=_json,
|
|
13907
|
+
content=_content,
|
|
13908
|
+
headers=_headers,
|
|
13909
|
+
params=_params,
|
|
13910
|
+
)
|
|
13911
|
+
_request.url = self._client.format_url(_request.url)
|
|
13912
|
+
|
|
13913
|
+
_stream = False
|
|
13914
|
+
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
|
13915
|
+
_request, stream=_stream, **kwargs
|
|
13916
|
+
)
|
|
13917
|
+
|
|
13918
|
+
response = pipeline_response.http_response
|
|
13919
|
+
|
|
13920
|
+
if response.status_code not in [200]:
|
|
13921
|
+
if _stream:
|
|
13922
|
+
response.read() # Load the body in memory and close the socket
|
|
13923
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
13924
|
+
raise HttpResponseError(response=response)
|
|
13925
|
+
|
|
13926
|
+
deserialized = self._deserialize("CustomerDtoPagedResult", pipeline_response)
|
|
13927
|
+
|
|
13928
|
+
if cls:
|
|
13929
|
+
return cls(pipeline_response, deserialized, {}) # type: ignore
|
|
13930
|
+
|
|
13931
|
+
return deserialized # type: ignore
|
|
13932
|
+
|
|
13305
13933
|
@distributed_trace
|
|
13306
13934
|
def list_customer_groups(self, **kwargs: Any) -> List[_models.CustomerGroupDto]:
|
|
13307
13935
|
"""List customer groups.
|
|
@@ -13685,19 +14313,15 @@ class DocumentsOperations:
|
|
|
13685
14313
|
return deserialized # type: ignore
|
|
13686
14314
|
|
|
13687
14315
|
@distributed_trace
|
|
13688
|
-
def
|
|
13689
|
-
|
|
13690
|
-
) -> int:
|
|
13691
|
-
"""Returns the number of documents found with the given tag name and value.
|
|
14316
|
+
def check_if_imported_document_exists(self, *, imported_reference: Optional[str] = None, **kwargs: Any) -> str:
|
|
14317
|
+
"""Checks if a document exists with import reference. Returns document id if document exists.
|
|
13692
14318
|
|
|
13693
|
-
|
|
14319
|
+
Checks if a document exists with import reference. Returns document id if document exists.
|
|
13694
14320
|
|
|
13695
|
-
:keyword
|
|
13696
|
-
:paramtype
|
|
13697
|
-
:
|
|
13698
|
-
:
|
|
13699
|
-
:return: int
|
|
13700
|
-
:rtype: int
|
|
14321
|
+
:keyword imported_reference: Default value is None.
|
|
14322
|
+
:paramtype imported_reference: str
|
|
14323
|
+
:return: str
|
|
14324
|
+
:rtype: str
|
|
13701
14325
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
13702
14326
|
"""
|
|
13703
14327
|
error_map = {
|
|
@@ -13711,11 +14335,10 @@ class DocumentsOperations:
|
|
|
13711
14335
|
_headers = kwargs.pop("headers", {}) or {}
|
|
13712
14336
|
_params = kwargs.pop("params", {}) or {}
|
|
13713
14337
|
|
|
13714
|
-
cls: ClsType[
|
|
14338
|
+
cls: ClsType[str] = kwargs.pop("cls", None)
|
|
13715
14339
|
|
|
13716
|
-
_request =
|
|
13717
|
-
|
|
13718
|
-
tag_value=tag_value,
|
|
14340
|
+
_request = build_documents_check_if_imported_document_exists_request(
|
|
14341
|
+
imported_reference=imported_reference,
|
|
13719
14342
|
headers=_headers,
|
|
13720
14343
|
params=_params,
|
|
13721
14344
|
)
|
|
@@ -13734,7 +14357,7 @@ class DocumentsOperations:
|
|
|
13734
14357
|
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
13735
14358
|
raise HttpResponseError(response=response)
|
|
13736
14359
|
|
|
13737
|
-
deserialized = self._deserialize("
|
|
14360
|
+
deserialized = self._deserialize("str", pipeline_response)
|
|
13738
14361
|
|
|
13739
14362
|
if cls:
|
|
13740
14363
|
return cls(pipeline_response, deserialized, {}) # type: ignore
|
|
@@ -14864,6 +15487,113 @@ class CustomerOrdersOperations:
|
|
|
14864
15487
|
|
|
14865
15488
|
return deserialized # type: ignore
|
|
14866
15489
|
|
|
15490
|
+
@overload
|
|
15491
|
+
def post_list_customer_orders(
|
|
15492
|
+
self,
|
|
15493
|
+
body: Optional[_models.ListCustomerOrdersRequest] = None,
|
|
15494
|
+
*,
|
|
15495
|
+
content_type: str = "application/json",
|
|
15496
|
+
**kwargs: Any,
|
|
15497
|
+
) -> _models.CustomerOrderDtoPagedResult:
|
|
15498
|
+
"""post_list_customer_orders.
|
|
15499
|
+
|
|
15500
|
+
:param body: Default value is None.
|
|
15501
|
+
:type body: ~ignos.api.client.models.ListCustomerOrdersRequest
|
|
15502
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
|
15503
|
+
Default value is "application/json".
|
|
15504
|
+
:paramtype content_type: str
|
|
15505
|
+
:return: CustomerOrderDtoPagedResult
|
|
15506
|
+
:rtype: ~ignos.api.client.models.CustomerOrderDtoPagedResult
|
|
15507
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
15508
|
+
"""
|
|
15509
|
+
|
|
15510
|
+
@overload
|
|
15511
|
+
def post_list_customer_orders(
|
|
15512
|
+
self, body: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any
|
|
15513
|
+
) -> _models.CustomerOrderDtoPagedResult:
|
|
15514
|
+
"""post_list_customer_orders.
|
|
15515
|
+
|
|
15516
|
+
:param body: Default value is None.
|
|
15517
|
+
:type body: IO[bytes]
|
|
15518
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
|
15519
|
+
Known values are: 'application/*+json', 'application/json', 'text/json'. Default value is
|
|
15520
|
+
"application/json".
|
|
15521
|
+
:paramtype content_type: str
|
|
15522
|
+
:return: CustomerOrderDtoPagedResult
|
|
15523
|
+
:rtype: ~ignos.api.client.models.CustomerOrderDtoPagedResult
|
|
15524
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
15525
|
+
"""
|
|
15526
|
+
|
|
15527
|
+
@distributed_trace
|
|
15528
|
+
def post_list_customer_orders(
|
|
15529
|
+
self, body: Optional[Union[_models.ListCustomerOrdersRequest, IO[bytes]]] = None, **kwargs: Any
|
|
15530
|
+
) -> _models.CustomerOrderDtoPagedResult:
|
|
15531
|
+
"""post_list_customer_orders.
|
|
15532
|
+
|
|
15533
|
+
:param body: Is either a ListCustomerOrdersRequest type or a IO[bytes] type. Default value is
|
|
15534
|
+
None.
|
|
15535
|
+
:type body: ~ignos.api.client.models.ListCustomerOrdersRequest or IO[bytes]
|
|
15536
|
+
:keyword content_type: Body Parameter content-type. Known values are: 'application/*+json',
|
|
15537
|
+
'application/json', 'text/json'. Default value is None.
|
|
15538
|
+
:paramtype content_type: str
|
|
15539
|
+
:return: CustomerOrderDtoPagedResult
|
|
15540
|
+
:rtype: ~ignos.api.client.models.CustomerOrderDtoPagedResult
|
|
15541
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
15542
|
+
"""
|
|
15543
|
+
error_map = {
|
|
15544
|
+
401: ClientAuthenticationError,
|
|
15545
|
+
404: ResourceNotFoundError,
|
|
15546
|
+
409: ResourceExistsError,
|
|
15547
|
+
304: ResourceNotModifiedError,
|
|
15548
|
+
}
|
|
15549
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
15550
|
+
|
|
15551
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
15552
|
+
_params = kwargs.pop("params", {}) or {}
|
|
15553
|
+
|
|
15554
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
15555
|
+
cls: ClsType[_models.CustomerOrderDtoPagedResult] = kwargs.pop("cls", None)
|
|
15556
|
+
|
|
15557
|
+
content_type = content_type or "application/json"
|
|
15558
|
+
_json = None
|
|
15559
|
+
_content = None
|
|
15560
|
+
if isinstance(body, (IOBase, bytes)):
|
|
15561
|
+
_content = body
|
|
15562
|
+
else:
|
|
15563
|
+
if body is not None:
|
|
15564
|
+
_json = self._serialize.body(body, "ListCustomerOrdersRequest")
|
|
15565
|
+
else:
|
|
15566
|
+
_json = None
|
|
15567
|
+
|
|
15568
|
+
_request = build_customer_orders_post_list_customer_orders_request(
|
|
15569
|
+
content_type=content_type,
|
|
15570
|
+
json=_json,
|
|
15571
|
+
content=_content,
|
|
15572
|
+
headers=_headers,
|
|
15573
|
+
params=_params,
|
|
15574
|
+
)
|
|
15575
|
+
_request.url = self._client.format_url(_request.url)
|
|
15576
|
+
|
|
15577
|
+
_stream = False
|
|
15578
|
+
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
|
15579
|
+
_request, stream=_stream, **kwargs
|
|
15580
|
+
)
|
|
15581
|
+
|
|
15582
|
+
response = pipeline_response.http_response
|
|
15583
|
+
|
|
15584
|
+
if response.status_code not in [200]:
|
|
15585
|
+
if _stream:
|
|
15586
|
+
response.read() # Load the body in memory and close the socket
|
|
15587
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
15588
|
+
raise HttpResponseError(response=response)
|
|
15589
|
+
|
|
15590
|
+
deserialized = self._deserialize("CustomerOrderDtoPagedResult", pipeline_response)
|
|
15591
|
+
|
|
15592
|
+
if cls:
|
|
15593
|
+
return cls(pipeline_response, deserialized, {}) # type: ignore
|
|
15594
|
+
|
|
15595
|
+
return deserialized # type: ignore
|
|
15596
|
+
|
|
14867
15597
|
@distributed_trace
|
|
14868
15598
|
def list_customer_order_lines(self, id: str, **kwargs: Any) -> List[_models.CustomerOrderLineDto]:
|
|
14869
15599
|
"""list_customer_order_lines.
|
|
@@ -16563,6 +17293,112 @@ class WorkordersOperations: # pylint: disable=too-many-public-methods
|
|
|
16563
17293
|
if cls:
|
|
16564
17294
|
return cls(pipeline_response, None, {}) # type: ignore
|
|
16565
17295
|
|
|
17296
|
+
@overload
|
|
17297
|
+
def post_list_workorders(
|
|
17298
|
+
self,
|
|
17299
|
+
body: Optional[_models.ListWorkOrdersRequest] = None,
|
|
17300
|
+
*,
|
|
17301
|
+
content_type: str = "application/json",
|
|
17302
|
+
**kwargs: Any,
|
|
17303
|
+
) -> _models.WorkorderListDtoPagedResult:
|
|
17304
|
+
"""post_list_workorders.
|
|
17305
|
+
|
|
17306
|
+
:param body: Default value is None.
|
|
17307
|
+
:type body: ~ignos.api.client.models.ListWorkOrdersRequest
|
|
17308
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
|
17309
|
+
Default value is "application/json".
|
|
17310
|
+
:paramtype content_type: str
|
|
17311
|
+
:return: WorkorderListDtoPagedResult
|
|
17312
|
+
:rtype: ~ignos.api.client.models.WorkorderListDtoPagedResult
|
|
17313
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
17314
|
+
"""
|
|
17315
|
+
|
|
17316
|
+
@overload
|
|
17317
|
+
def post_list_workorders(
|
|
17318
|
+
self, body: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any
|
|
17319
|
+
) -> _models.WorkorderListDtoPagedResult:
|
|
17320
|
+
"""post_list_workorders.
|
|
17321
|
+
|
|
17322
|
+
:param body: Default value is None.
|
|
17323
|
+
:type body: IO[bytes]
|
|
17324
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
|
17325
|
+
Known values are: 'application/*+json', 'application/json', 'text/json'. Default value is
|
|
17326
|
+
"application/json".
|
|
17327
|
+
:paramtype content_type: str
|
|
17328
|
+
:return: WorkorderListDtoPagedResult
|
|
17329
|
+
:rtype: ~ignos.api.client.models.WorkorderListDtoPagedResult
|
|
17330
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
17331
|
+
"""
|
|
17332
|
+
|
|
17333
|
+
@distributed_trace
|
|
17334
|
+
def post_list_workorders(
|
|
17335
|
+
self, body: Optional[Union[_models.ListWorkOrdersRequest, IO[bytes]]] = None, **kwargs: Any
|
|
17336
|
+
) -> _models.WorkorderListDtoPagedResult:
|
|
17337
|
+
"""post_list_workorders.
|
|
17338
|
+
|
|
17339
|
+
:param body: Is either a ListWorkOrdersRequest type or a IO[bytes] type. Default value is None.
|
|
17340
|
+
:type body: ~ignos.api.client.models.ListWorkOrdersRequest or IO[bytes]
|
|
17341
|
+
:keyword content_type: Body Parameter content-type. Known values are: 'application/*+json',
|
|
17342
|
+
'application/json', 'text/json'. Default value is None.
|
|
17343
|
+
:paramtype content_type: str
|
|
17344
|
+
:return: WorkorderListDtoPagedResult
|
|
17345
|
+
:rtype: ~ignos.api.client.models.WorkorderListDtoPagedResult
|
|
17346
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
17347
|
+
"""
|
|
17348
|
+
error_map = {
|
|
17349
|
+
401: ClientAuthenticationError,
|
|
17350
|
+
404: ResourceNotFoundError,
|
|
17351
|
+
409: ResourceExistsError,
|
|
17352
|
+
304: ResourceNotModifiedError,
|
|
17353
|
+
}
|
|
17354
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
17355
|
+
|
|
17356
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
17357
|
+
_params = kwargs.pop("params", {}) or {}
|
|
17358
|
+
|
|
17359
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
17360
|
+
cls: ClsType[_models.WorkorderListDtoPagedResult] = kwargs.pop("cls", None)
|
|
17361
|
+
|
|
17362
|
+
content_type = content_type or "application/json"
|
|
17363
|
+
_json = None
|
|
17364
|
+
_content = None
|
|
17365
|
+
if isinstance(body, (IOBase, bytes)):
|
|
17366
|
+
_content = body
|
|
17367
|
+
else:
|
|
17368
|
+
if body is not None:
|
|
17369
|
+
_json = self._serialize.body(body, "ListWorkOrdersRequest")
|
|
17370
|
+
else:
|
|
17371
|
+
_json = None
|
|
17372
|
+
|
|
17373
|
+
_request = build_workorders_post_list_workorders_request(
|
|
17374
|
+
content_type=content_type,
|
|
17375
|
+
json=_json,
|
|
17376
|
+
content=_content,
|
|
17377
|
+
headers=_headers,
|
|
17378
|
+
params=_params,
|
|
17379
|
+
)
|
|
17380
|
+
_request.url = self._client.format_url(_request.url)
|
|
17381
|
+
|
|
17382
|
+
_stream = False
|
|
17383
|
+
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
|
17384
|
+
_request, stream=_stream, **kwargs
|
|
17385
|
+
)
|
|
17386
|
+
|
|
17387
|
+
response = pipeline_response.http_response
|
|
17388
|
+
|
|
17389
|
+
if response.status_code not in [200]:
|
|
17390
|
+
if _stream:
|
|
17391
|
+
response.read() # Load the body in memory and close the socket
|
|
17392
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
17393
|
+
raise HttpResponseError(response=response)
|
|
17394
|
+
|
|
17395
|
+
deserialized = self._deserialize("WorkorderListDtoPagedResult", pipeline_response)
|
|
17396
|
+
|
|
17397
|
+
if cls:
|
|
17398
|
+
return cls(pipeline_response, deserialized, {}) # type: ignore
|
|
17399
|
+
|
|
17400
|
+
return deserialized # type: ignore
|
|
17401
|
+
|
|
16566
17402
|
@distributed_trace
|
|
16567
17403
|
def get_workorder_operation_event(self, event_id: str, **kwargs: Any) -> _models.WorkorderOperationEventDto:
|
|
16568
17404
|
"""Get a specific work order operation event.
|
|
@@ -20584,6 +21420,113 @@ class MeasurementFormSchemasOperations: # pylint: disable=too-many-public-metho
|
|
|
20584
21420
|
|
|
20585
21421
|
return deserialized # type: ignore
|
|
20586
21422
|
|
|
21423
|
+
@overload
|
|
21424
|
+
def post_list_measurement_form_schemas(
|
|
21425
|
+
self,
|
|
21426
|
+
body: Optional[_models.ListMeasurementFormSchemasRequest] = None,
|
|
21427
|
+
*,
|
|
21428
|
+
content_type: str = "application/json",
|
|
21429
|
+
**kwargs: Any,
|
|
21430
|
+
) -> _models.MeasurementFormListDtoPagedResult:
|
|
21431
|
+
"""post_list_measurement_form_schemas.
|
|
21432
|
+
|
|
21433
|
+
:param body: Default value is None.
|
|
21434
|
+
:type body: ~ignos.api.client.models.ListMeasurementFormSchemasRequest
|
|
21435
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
|
21436
|
+
Default value is "application/json".
|
|
21437
|
+
:paramtype content_type: str
|
|
21438
|
+
:return: MeasurementFormListDtoPagedResult
|
|
21439
|
+
:rtype: ~ignos.api.client.models.MeasurementFormListDtoPagedResult
|
|
21440
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
21441
|
+
"""
|
|
21442
|
+
|
|
21443
|
+
@overload
|
|
21444
|
+
def post_list_measurement_form_schemas(
|
|
21445
|
+
self, body: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any
|
|
21446
|
+
) -> _models.MeasurementFormListDtoPagedResult:
|
|
21447
|
+
"""post_list_measurement_form_schemas.
|
|
21448
|
+
|
|
21449
|
+
:param body: Default value is None.
|
|
21450
|
+
:type body: IO[bytes]
|
|
21451
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
|
21452
|
+
Known values are: 'application/*+json', 'application/json', 'text/json'. Default value is
|
|
21453
|
+
"application/json".
|
|
21454
|
+
:paramtype content_type: str
|
|
21455
|
+
:return: MeasurementFormListDtoPagedResult
|
|
21456
|
+
:rtype: ~ignos.api.client.models.MeasurementFormListDtoPagedResult
|
|
21457
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
21458
|
+
"""
|
|
21459
|
+
|
|
21460
|
+
@distributed_trace
|
|
21461
|
+
def post_list_measurement_form_schemas(
|
|
21462
|
+
self, body: Optional[Union[_models.ListMeasurementFormSchemasRequest, IO[bytes]]] = None, **kwargs: Any
|
|
21463
|
+
) -> _models.MeasurementFormListDtoPagedResult:
|
|
21464
|
+
"""post_list_measurement_form_schemas.
|
|
21465
|
+
|
|
21466
|
+
:param body: Is either a ListMeasurementFormSchemasRequest type or a IO[bytes] type. Default
|
|
21467
|
+
value is None.
|
|
21468
|
+
:type body: ~ignos.api.client.models.ListMeasurementFormSchemasRequest or IO[bytes]
|
|
21469
|
+
:keyword content_type: Body Parameter content-type. Known values are: 'application/*+json',
|
|
21470
|
+
'application/json', 'text/json'. Default value is None.
|
|
21471
|
+
:paramtype content_type: str
|
|
21472
|
+
:return: MeasurementFormListDtoPagedResult
|
|
21473
|
+
:rtype: ~ignos.api.client.models.MeasurementFormListDtoPagedResult
|
|
21474
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
21475
|
+
"""
|
|
21476
|
+
error_map = {
|
|
21477
|
+
401: ClientAuthenticationError,
|
|
21478
|
+
404: ResourceNotFoundError,
|
|
21479
|
+
409: ResourceExistsError,
|
|
21480
|
+
304: ResourceNotModifiedError,
|
|
21481
|
+
}
|
|
21482
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
21483
|
+
|
|
21484
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
21485
|
+
_params = kwargs.pop("params", {}) or {}
|
|
21486
|
+
|
|
21487
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
21488
|
+
cls: ClsType[_models.MeasurementFormListDtoPagedResult] = kwargs.pop("cls", None)
|
|
21489
|
+
|
|
21490
|
+
content_type = content_type or "application/json"
|
|
21491
|
+
_json = None
|
|
21492
|
+
_content = None
|
|
21493
|
+
if isinstance(body, (IOBase, bytes)):
|
|
21494
|
+
_content = body
|
|
21495
|
+
else:
|
|
21496
|
+
if body is not None:
|
|
21497
|
+
_json = self._serialize.body(body, "ListMeasurementFormSchemasRequest")
|
|
21498
|
+
else:
|
|
21499
|
+
_json = None
|
|
21500
|
+
|
|
21501
|
+
_request = build_measurement_form_schemas_post_list_measurement_form_schemas_request(
|
|
21502
|
+
content_type=content_type,
|
|
21503
|
+
json=_json,
|
|
21504
|
+
content=_content,
|
|
21505
|
+
headers=_headers,
|
|
21506
|
+
params=_params,
|
|
21507
|
+
)
|
|
21508
|
+
_request.url = self._client.format_url(_request.url)
|
|
21509
|
+
|
|
21510
|
+
_stream = False
|
|
21511
|
+
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
|
21512
|
+
_request, stream=_stream, **kwargs
|
|
21513
|
+
)
|
|
21514
|
+
|
|
21515
|
+
response = pipeline_response.http_response
|
|
21516
|
+
|
|
21517
|
+
if response.status_code not in [200]:
|
|
21518
|
+
if _stream:
|
|
21519
|
+
response.read() # Load the body in memory and close the socket
|
|
21520
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
21521
|
+
raise HttpResponseError(response=response)
|
|
21522
|
+
|
|
21523
|
+
deserialized = self._deserialize("MeasurementFormListDtoPagedResult", pipeline_response)
|
|
21524
|
+
|
|
21525
|
+
if cls:
|
|
21526
|
+
return cls(pipeline_response, deserialized, {}) # type: ignore
|
|
21527
|
+
|
|
21528
|
+
return deserialized # type: ignore
|
|
21529
|
+
|
|
20587
21530
|
@distributed_trace
|
|
20588
21531
|
def get_measurement_form_schema(self, id: str, **kwargs: Any) -> _models.MeasurementFormSchemaDto:
|
|
20589
21532
|
"""get_measurement_form_schema.
|
|
@@ -21329,6 +22272,113 @@ class MeasurementFormSchemasOperations: # pylint: disable=too-many-public-metho
|
|
|
21329
22272
|
|
|
21330
22273
|
return deserialized # type: ignore
|
|
21331
22274
|
|
|
22275
|
+
@overload
|
|
22276
|
+
def post_list_linkable_measurement_form_schemas( # pylint: disable=name-too-long
|
|
22277
|
+
self,
|
|
22278
|
+
body: Optional[_models.ListLinkableMeasurementFormSchemasRequest] = None,
|
|
22279
|
+
*,
|
|
22280
|
+
content_type: str = "application/json",
|
|
22281
|
+
**kwargs: Any,
|
|
22282
|
+
) -> _models.MeasurementFormListDtoPagedResult:
|
|
22283
|
+
"""post_list_linkable_measurement_form_schemas.
|
|
22284
|
+
|
|
22285
|
+
:param body: Default value is None.
|
|
22286
|
+
:type body: ~ignos.api.client.models.ListLinkableMeasurementFormSchemasRequest
|
|
22287
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
|
22288
|
+
Default value is "application/json".
|
|
22289
|
+
:paramtype content_type: str
|
|
22290
|
+
:return: MeasurementFormListDtoPagedResult
|
|
22291
|
+
:rtype: ~ignos.api.client.models.MeasurementFormListDtoPagedResult
|
|
22292
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
22293
|
+
"""
|
|
22294
|
+
|
|
22295
|
+
@overload
|
|
22296
|
+
def post_list_linkable_measurement_form_schemas( # pylint: disable=name-too-long
|
|
22297
|
+
self, body: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any
|
|
22298
|
+
) -> _models.MeasurementFormListDtoPagedResult:
|
|
22299
|
+
"""post_list_linkable_measurement_form_schemas.
|
|
22300
|
+
|
|
22301
|
+
:param body: Default value is None.
|
|
22302
|
+
:type body: IO[bytes]
|
|
22303
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
|
22304
|
+
Known values are: 'application/*+json', 'application/json', 'text/json'. Default value is
|
|
22305
|
+
"application/json".
|
|
22306
|
+
:paramtype content_type: str
|
|
22307
|
+
:return: MeasurementFormListDtoPagedResult
|
|
22308
|
+
:rtype: ~ignos.api.client.models.MeasurementFormListDtoPagedResult
|
|
22309
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
22310
|
+
"""
|
|
22311
|
+
|
|
22312
|
+
@distributed_trace
|
|
22313
|
+
def post_list_linkable_measurement_form_schemas( # pylint: disable=name-too-long
|
|
22314
|
+
self, body: Optional[Union[_models.ListLinkableMeasurementFormSchemasRequest, IO[bytes]]] = None, **kwargs: Any
|
|
22315
|
+
) -> _models.MeasurementFormListDtoPagedResult:
|
|
22316
|
+
"""post_list_linkable_measurement_form_schemas.
|
|
22317
|
+
|
|
22318
|
+
:param body: Is either a ListLinkableMeasurementFormSchemasRequest type or a IO[bytes] type.
|
|
22319
|
+
Default value is None.
|
|
22320
|
+
:type body: ~ignos.api.client.models.ListLinkableMeasurementFormSchemasRequest or IO[bytes]
|
|
22321
|
+
:keyword content_type: Body Parameter content-type. Known values are: 'application/*+json',
|
|
22322
|
+
'application/json', 'text/json'. Default value is None.
|
|
22323
|
+
:paramtype content_type: str
|
|
22324
|
+
:return: MeasurementFormListDtoPagedResult
|
|
22325
|
+
:rtype: ~ignos.api.client.models.MeasurementFormListDtoPagedResult
|
|
22326
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
22327
|
+
"""
|
|
22328
|
+
error_map = {
|
|
22329
|
+
401: ClientAuthenticationError,
|
|
22330
|
+
404: ResourceNotFoundError,
|
|
22331
|
+
409: ResourceExistsError,
|
|
22332
|
+
304: ResourceNotModifiedError,
|
|
22333
|
+
}
|
|
22334
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
22335
|
+
|
|
22336
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
22337
|
+
_params = kwargs.pop("params", {}) or {}
|
|
22338
|
+
|
|
22339
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
22340
|
+
cls: ClsType[_models.MeasurementFormListDtoPagedResult] = kwargs.pop("cls", None)
|
|
22341
|
+
|
|
22342
|
+
content_type = content_type or "application/json"
|
|
22343
|
+
_json = None
|
|
22344
|
+
_content = None
|
|
22345
|
+
if isinstance(body, (IOBase, bytes)):
|
|
22346
|
+
_content = body
|
|
22347
|
+
else:
|
|
22348
|
+
if body is not None:
|
|
22349
|
+
_json = self._serialize.body(body, "ListLinkableMeasurementFormSchemasRequest")
|
|
22350
|
+
else:
|
|
22351
|
+
_json = None
|
|
22352
|
+
|
|
22353
|
+
_request = build_measurement_form_schemas_post_list_linkable_measurement_form_schemas_request(
|
|
22354
|
+
content_type=content_type,
|
|
22355
|
+
json=_json,
|
|
22356
|
+
content=_content,
|
|
22357
|
+
headers=_headers,
|
|
22358
|
+
params=_params,
|
|
22359
|
+
)
|
|
22360
|
+
_request.url = self._client.format_url(_request.url)
|
|
22361
|
+
|
|
22362
|
+
_stream = False
|
|
22363
|
+
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
|
22364
|
+
_request, stream=_stream, **kwargs
|
|
22365
|
+
)
|
|
22366
|
+
|
|
22367
|
+
response = pipeline_response.http_response
|
|
22368
|
+
|
|
22369
|
+
if response.status_code not in [200]:
|
|
22370
|
+
if _stream:
|
|
22371
|
+
response.read() # Load the body in memory and close the socket
|
|
22372
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
22373
|
+
raise HttpResponseError(response=response)
|
|
22374
|
+
|
|
22375
|
+
deserialized = self._deserialize("MeasurementFormListDtoPagedResult", pipeline_response)
|
|
22376
|
+
|
|
22377
|
+
if cls:
|
|
22378
|
+
return cls(pipeline_response, deserialized, {}) # type: ignore
|
|
22379
|
+
|
|
22380
|
+
return deserialized # type: ignore
|
|
22381
|
+
|
|
21332
22382
|
@overload
|
|
21333
22383
|
def create_measurement_form_schema_link(
|
|
21334
22384
|
self,
|
|
@@ -22775,6 +23825,113 @@ class MeasurementFormSchemasOperations: # pylint: disable=too-many-public-metho
|
|
|
22775
23825
|
|
|
22776
23826
|
return deserialized # type: ignore
|
|
22777
23827
|
|
|
23828
|
+
@overload
|
|
23829
|
+
def post_list_measurement_form_needs(
|
|
23830
|
+
self,
|
|
23831
|
+
body: Optional[_models.ListMeasurementFormNeedsRequest] = None,
|
|
23832
|
+
*,
|
|
23833
|
+
content_type: str = "application/json",
|
|
23834
|
+
**kwargs: Any,
|
|
23835
|
+
) -> _models.MeasurementFormNeedDtoPagedResult:
|
|
23836
|
+
"""post_list_measurement_form_needs.
|
|
23837
|
+
|
|
23838
|
+
:param body: Default value is None.
|
|
23839
|
+
:type body: ~ignos.api.client.models.ListMeasurementFormNeedsRequest
|
|
23840
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
|
23841
|
+
Default value is "application/json".
|
|
23842
|
+
:paramtype content_type: str
|
|
23843
|
+
:return: MeasurementFormNeedDtoPagedResult
|
|
23844
|
+
:rtype: ~ignos.api.client.models.MeasurementFormNeedDtoPagedResult
|
|
23845
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
23846
|
+
"""
|
|
23847
|
+
|
|
23848
|
+
@overload
|
|
23849
|
+
def post_list_measurement_form_needs(
|
|
23850
|
+
self, body: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any
|
|
23851
|
+
) -> _models.MeasurementFormNeedDtoPagedResult:
|
|
23852
|
+
"""post_list_measurement_form_needs.
|
|
23853
|
+
|
|
23854
|
+
:param body: Default value is None.
|
|
23855
|
+
:type body: IO[bytes]
|
|
23856
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
|
23857
|
+
Known values are: 'application/*+json', 'application/json', 'text/json'. Default value is
|
|
23858
|
+
"application/json".
|
|
23859
|
+
:paramtype content_type: str
|
|
23860
|
+
:return: MeasurementFormNeedDtoPagedResult
|
|
23861
|
+
:rtype: ~ignos.api.client.models.MeasurementFormNeedDtoPagedResult
|
|
23862
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
23863
|
+
"""
|
|
23864
|
+
|
|
23865
|
+
@distributed_trace
|
|
23866
|
+
def post_list_measurement_form_needs(
|
|
23867
|
+
self, body: Optional[Union[_models.ListMeasurementFormNeedsRequest, IO[bytes]]] = None, **kwargs: Any
|
|
23868
|
+
) -> _models.MeasurementFormNeedDtoPagedResult:
|
|
23869
|
+
"""post_list_measurement_form_needs.
|
|
23870
|
+
|
|
23871
|
+
:param body: Is either a ListMeasurementFormNeedsRequest type or a IO[bytes] type. Default
|
|
23872
|
+
value is None.
|
|
23873
|
+
:type body: ~ignos.api.client.models.ListMeasurementFormNeedsRequest or IO[bytes]
|
|
23874
|
+
:keyword content_type: Body Parameter content-type. Known values are: 'application/*+json',
|
|
23875
|
+
'application/json', 'text/json'. Default value is None.
|
|
23876
|
+
:paramtype content_type: str
|
|
23877
|
+
:return: MeasurementFormNeedDtoPagedResult
|
|
23878
|
+
:rtype: ~ignos.api.client.models.MeasurementFormNeedDtoPagedResult
|
|
23879
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
23880
|
+
"""
|
|
23881
|
+
error_map = {
|
|
23882
|
+
401: ClientAuthenticationError,
|
|
23883
|
+
404: ResourceNotFoundError,
|
|
23884
|
+
409: ResourceExistsError,
|
|
23885
|
+
304: ResourceNotModifiedError,
|
|
23886
|
+
}
|
|
23887
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
23888
|
+
|
|
23889
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
23890
|
+
_params = kwargs.pop("params", {}) or {}
|
|
23891
|
+
|
|
23892
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
23893
|
+
cls: ClsType[_models.MeasurementFormNeedDtoPagedResult] = kwargs.pop("cls", None)
|
|
23894
|
+
|
|
23895
|
+
content_type = content_type or "application/json"
|
|
23896
|
+
_json = None
|
|
23897
|
+
_content = None
|
|
23898
|
+
if isinstance(body, (IOBase, bytes)):
|
|
23899
|
+
_content = body
|
|
23900
|
+
else:
|
|
23901
|
+
if body is not None:
|
|
23902
|
+
_json = self._serialize.body(body, "ListMeasurementFormNeedsRequest")
|
|
23903
|
+
else:
|
|
23904
|
+
_json = None
|
|
23905
|
+
|
|
23906
|
+
_request = build_measurement_form_schemas_post_list_measurement_form_needs_request(
|
|
23907
|
+
content_type=content_type,
|
|
23908
|
+
json=_json,
|
|
23909
|
+
content=_content,
|
|
23910
|
+
headers=_headers,
|
|
23911
|
+
params=_params,
|
|
23912
|
+
)
|
|
23913
|
+
_request.url = self._client.format_url(_request.url)
|
|
23914
|
+
|
|
23915
|
+
_stream = False
|
|
23916
|
+
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
|
23917
|
+
_request, stream=_stream, **kwargs
|
|
23918
|
+
)
|
|
23919
|
+
|
|
23920
|
+
response = pipeline_response.http_response
|
|
23921
|
+
|
|
23922
|
+
if response.status_code not in [200]:
|
|
23923
|
+
if _stream:
|
|
23924
|
+
response.read() # Load the body in memory and close the socket
|
|
23925
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
23926
|
+
raise HttpResponseError(response=response)
|
|
23927
|
+
|
|
23928
|
+
deserialized = self._deserialize("MeasurementFormNeedDtoPagedResult", pipeline_response)
|
|
23929
|
+
|
|
23930
|
+
if cls:
|
|
23931
|
+
return cls(pipeline_response, deserialized, {}) # type: ignore
|
|
23932
|
+
|
|
23933
|
+
return deserialized # type: ignore
|
|
23934
|
+
|
|
22778
23935
|
@overload
|
|
22779
23936
|
def set_measurement_form_need_user( # pylint: disable=inconsistent-return-statements
|
|
22780
23937
|
self,
|
|
@@ -23255,6 +24412,113 @@ class MeasurementFormSchemasOperations: # pylint: disable=too-many-public-metho
|
|
|
23255
24412
|
|
|
23256
24413
|
return deserialized # type: ignore
|
|
23257
24414
|
|
|
24415
|
+
@overload
|
|
24416
|
+
def post_list_measurement_form_schemas_not_needed( # pylint: disable=name-too-long
|
|
24417
|
+
self,
|
|
24418
|
+
body: Optional[_models.ListMeasurementFormSchemasNotNeededRequest] = None,
|
|
24419
|
+
*,
|
|
24420
|
+
content_type: str = "application/json",
|
|
24421
|
+
**kwargs: Any,
|
|
24422
|
+
) -> _models.MeasurementFormSchemaNotNeededDtoPagedResult:
|
|
24423
|
+
"""post_list_measurement_form_schemas_not_needed.
|
|
24424
|
+
|
|
24425
|
+
:param body: Default value is None.
|
|
24426
|
+
:type body: ~ignos.api.client.models.ListMeasurementFormSchemasNotNeededRequest
|
|
24427
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
|
24428
|
+
Default value is "application/json".
|
|
24429
|
+
:paramtype content_type: str
|
|
24430
|
+
:return: MeasurementFormSchemaNotNeededDtoPagedResult
|
|
24431
|
+
:rtype: ~ignos.api.client.models.MeasurementFormSchemaNotNeededDtoPagedResult
|
|
24432
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
24433
|
+
"""
|
|
24434
|
+
|
|
24435
|
+
@overload
|
|
24436
|
+
def post_list_measurement_form_schemas_not_needed( # pylint: disable=name-too-long
|
|
24437
|
+
self, body: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any
|
|
24438
|
+
) -> _models.MeasurementFormSchemaNotNeededDtoPagedResult:
|
|
24439
|
+
"""post_list_measurement_form_schemas_not_needed.
|
|
24440
|
+
|
|
24441
|
+
:param body: Default value is None.
|
|
24442
|
+
:type body: IO[bytes]
|
|
24443
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
|
24444
|
+
Known values are: 'application/*+json', 'application/json', 'text/json'. Default value is
|
|
24445
|
+
"application/json".
|
|
24446
|
+
:paramtype content_type: str
|
|
24447
|
+
:return: MeasurementFormSchemaNotNeededDtoPagedResult
|
|
24448
|
+
:rtype: ~ignos.api.client.models.MeasurementFormSchemaNotNeededDtoPagedResult
|
|
24449
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
24450
|
+
"""
|
|
24451
|
+
|
|
24452
|
+
@distributed_trace
|
|
24453
|
+
def post_list_measurement_form_schemas_not_needed( # pylint: disable=name-too-long
|
|
24454
|
+
self, body: Optional[Union[_models.ListMeasurementFormSchemasNotNeededRequest, IO[bytes]]] = None, **kwargs: Any
|
|
24455
|
+
) -> _models.MeasurementFormSchemaNotNeededDtoPagedResult:
|
|
24456
|
+
"""post_list_measurement_form_schemas_not_needed.
|
|
24457
|
+
|
|
24458
|
+
:param body: Is either a ListMeasurementFormSchemasNotNeededRequest type or a IO[bytes] type.
|
|
24459
|
+
Default value is None.
|
|
24460
|
+
:type body: ~ignos.api.client.models.ListMeasurementFormSchemasNotNeededRequest or IO[bytes]
|
|
24461
|
+
:keyword content_type: Body Parameter content-type. Known values are: 'application/*+json',
|
|
24462
|
+
'application/json', 'text/json'. Default value is None.
|
|
24463
|
+
:paramtype content_type: str
|
|
24464
|
+
:return: MeasurementFormSchemaNotNeededDtoPagedResult
|
|
24465
|
+
:rtype: ~ignos.api.client.models.MeasurementFormSchemaNotNeededDtoPagedResult
|
|
24466
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
24467
|
+
"""
|
|
24468
|
+
error_map = {
|
|
24469
|
+
401: ClientAuthenticationError,
|
|
24470
|
+
404: ResourceNotFoundError,
|
|
24471
|
+
409: ResourceExistsError,
|
|
24472
|
+
304: ResourceNotModifiedError,
|
|
24473
|
+
}
|
|
24474
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
24475
|
+
|
|
24476
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
24477
|
+
_params = kwargs.pop("params", {}) or {}
|
|
24478
|
+
|
|
24479
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
24480
|
+
cls: ClsType[_models.MeasurementFormSchemaNotNeededDtoPagedResult] = kwargs.pop("cls", None)
|
|
24481
|
+
|
|
24482
|
+
content_type = content_type or "application/json"
|
|
24483
|
+
_json = None
|
|
24484
|
+
_content = None
|
|
24485
|
+
if isinstance(body, (IOBase, bytes)):
|
|
24486
|
+
_content = body
|
|
24487
|
+
else:
|
|
24488
|
+
if body is not None:
|
|
24489
|
+
_json = self._serialize.body(body, "ListMeasurementFormSchemasNotNeededRequest")
|
|
24490
|
+
else:
|
|
24491
|
+
_json = None
|
|
24492
|
+
|
|
24493
|
+
_request = build_measurement_form_schemas_post_list_measurement_form_schemas_not_needed_request(
|
|
24494
|
+
content_type=content_type,
|
|
24495
|
+
json=_json,
|
|
24496
|
+
content=_content,
|
|
24497
|
+
headers=_headers,
|
|
24498
|
+
params=_params,
|
|
24499
|
+
)
|
|
24500
|
+
_request.url = self._client.format_url(_request.url)
|
|
24501
|
+
|
|
24502
|
+
_stream = False
|
|
24503
|
+
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
|
24504
|
+
_request, stream=_stream, **kwargs
|
|
24505
|
+
)
|
|
24506
|
+
|
|
24507
|
+
response = pipeline_response.http_response
|
|
24508
|
+
|
|
24509
|
+
if response.status_code not in [200]:
|
|
24510
|
+
if _stream:
|
|
24511
|
+
response.read() # Load the body in memory and close the socket
|
|
24512
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
24513
|
+
raise HttpResponseError(response=response)
|
|
24514
|
+
|
|
24515
|
+
deserialized = self._deserialize("MeasurementFormSchemaNotNeededDtoPagedResult", pipeline_response)
|
|
24516
|
+
|
|
24517
|
+
if cls:
|
|
24518
|
+
return cls(pipeline_response, deserialized, {}) # type: ignore
|
|
24519
|
+
|
|
24520
|
+
return deserialized # type: ignore
|
|
24521
|
+
|
|
23258
24522
|
@distributed_trace
|
|
23259
24523
|
def delete_measurment_form_schemas_not_needed( # pylint: disable=inconsistent-return-statements,name-too-long
|
|
23260
24524
|
self, id: str, **kwargs: Any
|
|
@@ -23617,6 +24881,116 @@ class MeasurementFormSchemasOperations: # pylint: disable=too-many-public-metho
|
|
|
23617
24881
|
|
|
23618
24882
|
return deserialized # type: ignore
|
|
23619
24883
|
|
|
24884
|
+
@overload
|
|
24885
|
+
def post_list_measurement_form_instance_schema_feedback( # pylint: disable=name-too-long
|
|
24886
|
+
self,
|
|
24887
|
+
body: Optional[_models.ListMeasurementFormInstanceSchemaFeedbackRequest] = None,
|
|
24888
|
+
*,
|
|
24889
|
+
content_type: str = "application/json",
|
|
24890
|
+
**kwargs: Any,
|
|
24891
|
+
) -> _models.SchemaFeedbackDtoPagedResult:
|
|
24892
|
+
"""post_list_measurement_form_instance_schema_feedback.
|
|
24893
|
+
|
|
24894
|
+
:param body: Default value is None.
|
|
24895
|
+
:type body: ~ignos.api.client.models.ListMeasurementFormInstanceSchemaFeedbackRequest
|
|
24896
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
|
24897
|
+
Default value is "application/json".
|
|
24898
|
+
:paramtype content_type: str
|
|
24899
|
+
:return: SchemaFeedbackDtoPagedResult
|
|
24900
|
+
:rtype: ~ignos.api.client.models.SchemaFeedbackDtoPagedResult
|
|
24901
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
24902
|
+
"""
|
|
24903
|
+
|
|
24904
|
+
@overload
|
|
24905
|
+
def post_list_measurement_form_instance_schema_feedback( # pylint: disable=name-too-long
|
|
24906
|
+
self, body: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any
|
|
24907
|
+
) -> _models.SchemaFeedbackDtoPagedResult:
|
|
24908
|
+
"""post_list_measurement_form_instance_schema_feedback.
|
|
24909
|
+
|
|
24910
|
+
:param body: Default value is None.
|
|
24911
|
+
:type body: IO[bytes]
|
|
24912
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
|
24913
|
+
Known values are: 'application/*+json', 'application/json', 'text/json'. Default value is
|
|
24914
|
+
"application/json".
|
|
24915
|
+
:paramtype content_type: str
|
|
24916
|
+
:return: SchemaFeedbackDtoPagedResult
|
|
24917
|
+
:rtype: ~ignos.api.client.models.SchemaFeedbackDtoPagedResult
|
|
24918
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
24919
|
+
"""
|
|
24920
|
+
|
|
24921
|
+
@distributed_trace
|
|
24922
|
+
def post_list_measurement_form_instance_schema_feedback( # pylint: disable=name-too-long
|
|
24923
|
+
self,
|
|
24924
|
+
body: Optional[Union[_models.ListMeasurementFormInstanceSchemaFeedbackRequest, IO[bytes]]] = None,
|
|
24925
|
+
**kwargs: Any,
|
|
24926
|
+
) -> _models.SchemaFeedbackDtoPagedResult:
|
|
24927
|
+
"""post_list_measurement_form_instance_schema_feedback.
|
|
24928
|
+
|
|
24929
|
+
:param body: Is either a ListMeasurementFormInstanceSchemaFeedbackRequest type or a IO[bytes]
|
|
24930
|
+
type. Default value is None.
|
|
24931
|
+
:type body: ~ignos.api.client.models.ListMeasurementFormInstanceSchemaFeedbackRequest or
|
|
24932
|
+
IO[bytes]
|
|
24933
|
+
:keyword content_type: Body Parameter content-type. Known values are: 'application/*+json',
|
|
24934
|
+
'application/json', 'text/json'. Default value is None.
|
|
24935
|
+
:paramtype content_type: str
|
|
24936
|
+
:return: SchemaFeedbackDtoPagedResult
|
|
24937
|
+
:rtype: ~ignos.api.client.models.SchemaFeedbackDtoPagedResult
|
|
24938
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
24939
|
+
"""
|
|
24940
|
+
error_map = {
|
|
24941
|
+
401: ClientAuthenticationError,
|
|
24942
|
+
404: ResourceNotFoundError,
|
|
24943
|
+
409: ResourceExistsError,
|
|
24944
|
+
304: ResourceNotModifiedError,
|
|
24945
|
+
}
|
|
24946
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
24947
|
+
|
|
24948
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
24949
|
+
_params = kwargs.pop("params", {}) or {}
|
|
24950
|
+
|
|
24951
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
24952
|
+
cls: ClsType[_models.SchemaFeedbackDtoPagedResult] = kwargs.pop("cls", None)
|
|
24953
|
+
|
|
24954
|
+
content_type = content_type or "application/json"
|
|
24955
|
+
_json = None
|
|
24956
|
+
_content = None
|
|
24957
|
+
if isinstance(body, (IOBase, bytes)):
|
|
24958
|
+
_content = body
|
|
24959
|
+
else:
|
|
24960
|
+
if body is not None:
|
|
24961
|
+
_json = self._serialize.body(body, "ListMeasurementFormInstanceSchemaFeedbackRequest")
|
|
24962
|
+
else:
|
|
24963
|
+
_json = None
|
|
24964
|
+
|
|
24965
|
+
_request = build_measurement_form_schemas_post_list_measurement_form_instance_schema_feedback_request(
|
|
24966
|
+
content_type=content_type,
|
|
24967
|
+
json=_json,
|
|
24968
|
+
content=_content,
|
|
24969
|
+
headers=_headers,
|
|
24970
|
+
params=_params,
|
|
24971
|
+
)
|
|
24972
|
+
_request.url = self._client.format_url(_request.url)
|
|
24973
|
+
|
|
24974
|
+
_stream = False
|
|
24975
|
+
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
|
24976
|
+
_request, stream=_stream, **kwargs
|
|
24977
|
+
)
|
|
24978
|
+
|
|
24979
|
+
response = pipeline_response.http_response
|
|
24980
|
+
|
|
24981
|
+
if response.status_code not in [200]:
|
|
24982
|
+
if _stream:
|
|
24983
|
+
response.read() # Load the body in memory and close the socket
|
|
24984
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
24985
|
+
raise HttpResponseError(response=response)
|
|
24986
|
+
|
|
24987
|
+
deserialized = self._deserialize("SchemaFeedbackDtoPagedResult", pipeline_response)
|
|
24988
|
+
|
|
24989
|
+
if cls:
|
|
24990
|
+
return cls(pipeline_response, deserialized, {}) # type: ignore
|
|
24991
|
+
|
|
24992
|
+
return deserialized # type: ignore
|
|
24993
|
+
|
|
23620
24994
|
@distributed_trace
|
|
23621
24995
|
def get_measurement_form_instance_schema_feedback( # pylint: disable=name-too-long
|
|
23622
24996
|
self, id: str, **kwargs: Any
|
|
@@ -23914,6 +25288,115 @@ class MeasurementFormSchemasOperations: # pylint: disable=too-many-public-metho
|
|
|
23914
25288
|
|
|
23915
25289
|
return deserialized # type: ignore
|
|
23916
25290
|
|
|
25291
|
+
@overload
|
|
25292
|
+
def post_list_measurement_form_schemas_with_history( # pylint: disable=name-too-long
|
|
25293
|
+
self,
|
|
25294
|
+
body: Optional[_models.ListMeasurementFormSchemasWithHistoryRequest] = None,
|
|
25295
|
+
*,
|
|
25296
|
+
content_type: str = "application/json",
|
|
25297
|
+
**kwargs: Any,
|
|
25298
|
+
) -> _models.MeasurementFormListDtoPagedResult:
|
|
25299
|
+
"""post_list_measurement_form_schemas_with_history.
|
|
25300
|
+
|
|
25301
|
+
:param body: Default value is None.
|
|
25302
|
+
:type body: ~ignos.api.client.models.ListMeasurementFormSchemasWithHistoryRequest
|
|
25303
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
|
25304
|
+
Default value is "application/json".
|
|
25305
|
+
:paramtype content_type: str
|
|
25306
|
+
:return: MeasurementFormListDtoPagedResult
|
|
25307
|
+
:rtype: ~ignos.api.client.models.MeasurementFormListDtoPagedResult
|
|
25308
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
25309
|
+
"""
|
|
25310
|
+
|
|
25311
|
+
@overload
|
|
25312
|
+
def post_list_measurement_form_schemas_with_history( # pylint: disable=name-too-long
|
|
25313
|
+
self, body: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any
|
|
25314
|
+
) -> _models.MeasurementFormListDtoPagedResult:
|
|
25315
|
+
"""post_list_measurement_form_schemas_with_history.
|
|
25316
|
+
|
|
25317
|
+
:param body: Default value is None.
|
|
25318
|
+
:type body: IO[bytes]
|
|
25319
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
|
25320
|
+
Known values are: 'application/*+json', 'application/json', 'text/json'. Default value is
|
|
25321
|
+
"application/json".
|
|
25322
|
+
:paramtype content_type: str
|
|
25323
|
+
:return: MeasurementFormListDtoPagedResult
|
|
25324
|
+
:rtype: ~ignos.api.client.models.MeasurementFormListDtoPagedResult
|
|
25325
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
25326
|
+
"""
|
|
25327
|
+
|
|
25328
|
+
@distributed_trace
|
|
25329
|
+
def post_list_measurement_form_schemas_with_history( # pylint: disable=name-too-long
|
|
25330
|
+
self,
|
|
25331
|
+
body: Optional[Union[_models.ListMeasurementFormSchemasWithHistoryRequest, IO[bytes]]] = None,
|
|
25332
|
+
**kwargs: Any,
|
|
25333
|
+
) -> _models.MeasurementFormListDtoPagedResult:
|
|
25334
|
+
"""post_list_measurement_form_schemas_with_history.
|
|
25335
|
+
|
|
25336
|
+
:param body: Is either a ListMeasurementFormSchemasWithHistoryRequest type or a IO[bytes] type.
|
|
25337
|
+
Default value is None.
|
|
25338
|
+
:type body: ~ignos.api.client.models.ListMeasurementFormSchemasWithHistoryRequest or IO[bytes]
|
|
25339
|
+
:keyword content_type: Body Parameter content-type. Known values are: 'application/*+json',
|
|
25340
|
+
'application/json', 'text/json'. Default value is None.
|
|
25341
|
+
:paramtype content_type: str
|
|
25342
|
+
:return: MeasurementFormListDtoPagedResult
|
|
25343
|
+
:rtype: ~ignos.api.client.models.MeasurementFormListDtoPagedResult
|
|
25344
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
25345
|
+
"""
|
|
25346
|
+
error_map = {
|
|
25347
|
+
401: ClientAuthenticationError,
|
|
25348
|
+
404: ResourceNotFoundError,
|
|
25349
|
+
409: ResourceExistsError,
|
|
25350
|
+
304: ResourceNotModifiedError,
|
|
25351
|
+
}
|
|
25352
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
25353
|
+
|
|
25354
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
25355
|
+
_params = kwargs.pop("params", {}) or {}
|
|
25356
|
+
|
|
25357
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
25358
|
+
cls: ClsType[_models.MeasurementFormListDtoPagedResult] = kwargs.pop("cls", None)
|
|
25359
|
+
|
|
25360
|
+
content_type = content_type or "application/json"
|
|
25361
|
+
_json = None
|
|
25362
|
+
_content = None
|
|
25363
|
+
if isinstance(body, (IOBase, bytes)):
|
|
25364
|
+
_content = body
|
|
25365
|
+
else:
|
|
25366
|
+
if body is not None:
|
|
25367
|
+
_json = self._serialize.body(body, "ListMeasurementFormSchemasWithHistoryRequest")
|
|
25368
|
+
else:
|
|
25369
|
+
_json = None
|
|
25370
|
+
|
|
25371
|
+
_request = build_measurement_form_schemas_post_list_measurement_form_schemas_with_history_request(
|
|
25372
|
+
content_type=content_type,
|
|
25373
|
+
json=_json,
|
|
25374
|
+
content=_content,
|
|
25375
|
+
headers=_headers,
|
|
25376
|
+
params=_params,
|
|
25377
|
+
)
|
|
25378
|
+
_request.url = self._client.format_url(_request.url)
|
|
25379
|
+
|
|
25380
|
+
_stream = False
|
|
25381
|
+
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
|
25382
|
+
_request, stream=_stream, **kwargs
|
|
25383
|
+
)
|
|
25384
|
+
|
|
25385
|
+
response = pipeline_response.http_response
|
|
25386
|
+
|
|
25387
|
+
if response.status_code not in [200]:
|
|
25388
|
+
if _stream:
|
|
25389
|
+
response.read() # Load the body in memory and close the socket
|
|
25390
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
25391
|
+
raise HttpResponseError(response=response)
|
|
25392
|
+
|
|
25393
|
+
deserialized = self._deserialize("MeasurementFormListDtoPagedResult", pipeline_response)
|
|
25394
|
+
|
|
25395
|
+
if cls:
|
|
25396
|
+
return cls(pipeline_response, deserialized, {}) # type: ignore
|
|
25397
|
+
|
|
25398
|
+
return deserialized # type: ignore
|
|
25399
|
+
|
|
23917
25400
|
|
|
23918
25401
|
class MeasurementFormsInstancesOperations: # pylint: disable=too-many-public-methods
|
|
23919
25402
|
"""
|
|
@@ -24009,6 +25492,113 @@ class MeasurementFormsInstancesOperations: # pylint: disable=too-many-public-me
|
|
|
24009
25492
|
|
|
24010
25493
|
return deserialized # type: ignore
|
|
24011
25494
|
|
|
25495
|
+
@overload
|
|
25496
|
+
def post_list_measurement_forms(
|
|
25497
|
+
self,
|
|
25498
|
+
body: Optional[_models.ListMeasurementFormsRequest] = None,
|
|
25499
|
+
*,
|
|
25500
|
+
content_type: str = "application/json",
|
|
25501
|
+
**kwargs: Any,
|
|
25502
|
+
) -> _models.MeasurementFormInstanceOverviewDtoPagedResult:
|
|
25503
|
+
"""post_list_measurement_forms.
|
|
25504
|
+
|
|
25505
|
+
:param body: Default value is None.
|
|
25506
|
+
:type body: ~ignos.api.client.models.ListMeasurementFormsRequest
|
|
25507
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
|
25508
|
+
Default value is "application/json".
|
|
25509
|
+
:paramtype content_type: str
|
|
25510
|
+
:return: MeasurementFormInstanceOverviewDtoPagedResult
|
|
25511
|
+
:rtype: ~ignos.api.client.models.MeasurementFormInstanceOverviewDtoPagedResult
|
|
25512
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
25513
|
+
"""
|
|
25514
|
+
|
|
25515
|
+
@overload
|
|
25516
|
+
def post_list_measurement_forms(
|
|
25517
|
+
self, body: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any
|
|
25518
|
+
) -> _models.MeasurementFormInstanceOverviewDtoPagedResult:
|
|
25519
|
+
"""post_list_measurement_forms.
|
|
25520
|
+
|
|
25521
|
+
:param body: Default value is None.
|
|
25522
|
+
:type body: IO[bytes]
|
|
25523
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
|
25524
|
+
Known values are: 'application/*+json', 'application/json', 'text/json'. Default value is
|
|
25525
|
+
"application/json".
|
|
25526
|
+
:paramtype content_type: str
|
|
25527
|
+
:return: MeasurementFormInstanceOverviewDtoPagedResult
|
|
25528
|
+
:rtype: ~ignos.api.client.models.MeasurementFormInstanceOverviewDtoPagedResult
|
|
25529
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
25530
|
+
"""
|
|
25531
|
+
|
|
25532
|
+
@distributed_trace
|
|
25533
|
+
def post_list_measurement_forms(
|
|
25534
|
+
self, body: Optional[Union[_models.ListMeasurementFormsRequest, IO[bytes]]] = None, **kwargs: Any
|
|
25535
|
+
) -> _models.MeasurementFormInstanceOverviewDtoPagedResult:
|
|
25536
|
+
"""post_list_measurement_forms.
|
|
25537
|
+
|
|
25538
|
+
:param body: Is either a ListMeasurementFormsRequest type or a IO[bytes] type. Default value is
|
|
25539
|
+
None.
|
|
25540
|
+
:type body: ~ignos.api.client.models.ListMeasurementFormsRequest or IO[bytes]
|
|
25541
|
+
:keyword content_type: Body Parameter content-type. Known values are: 'application/*+json',
|
|
25542
|
+
'application/json', 'text/json'. Default value is None.
|
|
25543
|
+
:paramtype content_type: str
|
|
25544
|
+
:return: MeasurementFormInstanceOverviewDtoPagedResult
|
|
25545
|
+
:rtype: ~ignos.api.client.models.MeasurementFormInstanceOverviewDtoPagedResult
|
|
25546
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
25547
|
+
"""
|
|
25548
|
+
error_map = {
|
|
25549
|
+
401: ClientAuthenticationError,
|
|
25550
|
+
404: ResourceNotFoundError,
|
|
25551
|
+
409: ResourceExistsError,
|
|
25552
|
+
304: ResourceNotModifiedError,
|
|
25553
|
+
}
|
|
25554
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
25555
|
+
|
|
25556
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
25557
|
+
_params = kwargs.pop("params", {}) or {}
|
|
25558
|
+
|
|
25559
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
25560
|
+
cls: ClsType[_models.MeasurementFormInstanceOverviewDtoPagedResult] = kwargs.pop("cls", None)
|
|
25561
|
+
|
|
25562
|
+
content_type = content_type or "application/json"
|
|
25563
|
+
_json = None
|
|
25564
|
+
_content = None
|
|
25565
|
+
if isinstance(body, (IOBase, bytes)):
|
|
25566
|
+
_content = body
|
|
25567
|
+
else:
|
|
25568
|
+
if body is not None:
|
|
25569
|
+
_json = self._serialize.body(body, "ListMeasurementFormsRequest")
|
|
25570
|
+
else:
|
|
25571
|
+
_json = None
|
|
25572
|
+
|
|
25573
|
+
_request = build_measurement_forms_instances_post_list_measurement_forms_request(
|
|
25574
|
+
content_type=content_type,
|
|
25575
|
+
json=_json,
|
|
25576
|
+
content=_content,
|
|
25577
|
+
headers=_headers,
|
|
25578
|
+
params=_params,
|
|
25579
|
+
)
|
|
25580
|
+
_request.url = self._client.format_url(_request.url)
|
|
25581
|
+
|
|
25582
|
+
_stream = False
|
|
25583
|
+
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
|
25584
|
+
_request, stream=_stream, **kwargs
|
|
25585
|
+
)
|
|
25586
|
+
|
|
25587
|
+
response = pipeline_response.http_response
|
|
25588
|
+
|
|
25589
|
+
if response.status_code not in [200]:
|
|
25590
|
+
if _stream:
|
|
25591
|
+
response.read() # Load the body in memory and close the socket
|
|
25592
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
25593
|
+
raise HttpResponseError(response=response)
|
|
25594
|
+
|
|
25595
|
+
deserialized = self._deserialize("MeasurementFormInstanceOverviewDtoPagedResult", pipeline_response)
|
|
25596
|
+
|
|
25597
|
+
if cls:
|
|
25598
|
+
return cls(pipeline_response, deserialized, {}) # type: ignore
|
|
25599
|
+
|
|
25600
|
+
return deserialized # type: ignore
|
|
25601
|
+
|
|
24012
25602
|
@distributed_trace
|
|
24013
25603
|
def list_measurement_forms_by_status(
|
|
24014
25604
|
self,
|
|
@@ -24085,6 +25675,113 @@ class MeasurementFormsInstancesOperations: # pylint: disable=too-many-public-me
|
|
|
24085
25675
|
|
|
24086
25676
|
return deserialized # type: ignore
|
|
24087
25677
|
|
|
25678
|
+
@overload
|
|
25679
|
+
def post_list_measurement_forms_by_status(
|
|
25680
|
+
self,
|
|
25681
|
+
body: Optional[_models.ListMeasurementFormsByStatusRequest] = None,
|
|
25682
|
+
*,
|
|
25683
|
+
content_type: str = "application/json",
|
|
25684
|
+
**kwargs: Any,
|
|
25685
|
+
) -> _models.MeasurementFormInstanceDtoPagedResult:
|
|
25686
|
+
"""post_list_measurement_forms_by_status.
|
|
25687
|
+
|
|
25688
|
+
:param body: Default value is None.
|
|
25689
|
+
:type body: ~ignos.api.client.models.ListMeasurementFormsByStatusRequest
|
|
25690
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
|
25691
|
+
Default value is "application/json".
|
|
25692
|
+
:paramtype content_type: str
|
|
25693
|
+
:return: MeasurementFormInstanceDtoPagedResult
|
|
25694
|
+
:rtype: ~ignos.api.client.models.MeasurementFormInstanceDtoPagedResult
|
|
25695
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
25696
|
+
"""
|
|
25697
|
+
|
|
25698
|
+
@overload
|
|
25699
|
+
def post_list_measurement_forms_by_status(
|
|
25700
|
+
self, body: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any
|
|
25701
|
+
) -> _models.MeasurementFormInstanceDtoPagedResult:
|
|
25702
|
+
"""post_list_measurement_forms_by_status.
|
|
25703
|
+
|
|
25704
|
+
:param body: Default value is None.
|
|
25705
|
+
:type body: IO[bytes]
|
|
25706
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
|
25707
|
+
Known values are: 'application/*+json', 'application/json', 'text/json'. Default value is
|
|
25708
|
+
"application/json".
|
|
25709
|
+
:paramtype content_type: str
|
|
25710
|
+
:return: MeasurementFormInstanceDtoPagedResult
|
|
25711
|
+
:rtype: ~ignos.api.client.models.MeasurementFormInstanceDtoPagedResult
|
|
25712
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
25713
|
+
"""
|
|
25714
|
+
|
|
25715
|
+
@distributed_trace
|
|
25716
|
+
def post_list_measurement_forms_by_status(
|
|
25717
|
+
self, body: Optional[Union[_models.ListMeasurementFormsByStatusRequest, IO[bytes]]] = None, **kwargs: Any
|
|
25718
|
+
) -> _models.MeasurementFormInstanceDtoPagedResult:
|
|
25719
|
+
"""post_list_measurement_forms_by_status.
|
|
25720
|
+
|
|
25721
|
+
:param body: Is either a ListMeasurementFormsByStatusRequest type or a IO[bytes] type. Default
|
|
25722
|
+
value is None.
|
|
25723
|
+
:type body: ~ignos.api.client.models.ListMeasurementFormsByStatusRequest or IO[bytes]
|
|
25724
|
+
:keyword content_type: Body Parameter content-type. Known values are: 'application/*+json',
|
|
25725
|
+
'application/json', 'text/json'. Default value is None.
|
|
25726
|
+
:paramtype content_type: str
|
|
25727
|
+
:return: MeasurementFormInstanceDtoPagedResult
|
|
25728
|
+
:rtype: ~ignos.api.client.models.MeasurementFormInstanceDtoPagedResult
|
|
25729
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
25730
|
+
"""
|
|
25731
|
+
error_map = {
|
|
25732
|
+
401: ClientAuthenticationError,
|
|
25733
|
+
404: ResourceNotFoundError,
|
|
25734
|
+
409: ResourceExistsError,
|
|
25735
|
+
304: ResourceNotModifiedError,
|
|
25736
|
+
}
|
|
25737
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
25738
|
+
|
|
25739
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
25740
|
+
_params = kwargs.pop("params", {}) or {}
|
|
25741
|
+
|
|
25742
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
25743
|
+
cls: ClsType[_models.MeasurementFormInstanceDtoPagedResult] = kwargs.pop("cls", None)
|
|
25744
|
+
|
|
25745
|
+
content_type = content_type or "application/json"
|
|
25746
|
+
_json = None
|
|
25747
|
+
_content = None
|
|
25748
|
+
if isinstance(body, (IOBase, bytes)):
|
|
25749
|
+
_content = body
|
|
25750
|
+
else:
|
|
25751
|
+
if body is not None:
|
|
25752
|
+
_json = self._serialize.body(body, "ListMeasurementFormsByStatusRequest")
|
|
25753
|
+
else:
|
|
25754
|
+
_json = None
|
|
25755
|
+
|
|
25756
|
+
_request = build_measurement_forms_instances_post_list_measurement_forms_by_status_request(
|
|
25757
|
+
content_type=content_type,
|
|
25758
|
+
json=_json,
|
|
25759
|
+
content=_content,
|
|
25760
|
+
headers=_headers,
|
|
25761
|
+
params=_params,
|
|
25762
|
+
)
|
|
25763
|
+
_request.url = self._client.format_url(_request.url)
|
|
25764
|
+
|
|
25765
|
+
_stream = False
|
|
25766
|
+
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
|
25767
|
+
_request, stream=_stream, **kwargs
|
|
25768
|
+
)
|
|
25769
|
+
|
|
25770
|
+
response = pipeline_response.http_response
|
|
25771
|
+
|
|
25772
|
+
if response.status_code not in [200]:
|
|
25773
|
+
if _stream:
|
|
25774
|
+
response.read() # Load the body in memory and close the socket
|
|
25775
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
25776
|
+
raise HttpResponseError(response=response)
|
|
25777
|
+
|
|
25778
|
+
deserialized = self._deserialize("MeasurementFormInstanceDtoPagedResult", pipeline_response)
|
|
25779
|
+
|
|
25780
|
+
if cls:
|
|
25781
|
+
return cls(pipeline_response, deserialized, {}) # type: ignore
|
|
25782
|
+
|
|
25783
|
+
return deserialized # type: ignore
|
|
25784
|
+
|
|
24088
25785
|
@distributed_trace
|
|
24089
25786
|
def get_measurement_form_instance(
|
|
24090
25787
|
self, id: str, *, tenant_id: Optional[str] = None, **kwargs: Any
|
|
@@ -30016,6 +31713,113 @@ class MesProductionScheduleOperations:
|
|
|
30016
31713
|
|
|
30017
31714
|
return deserialized # type: ignore
|
|
30018
31715
|
|
|
31716
|
+
@overload
|
|
31717
|
+
def post_list_production_schedule_operations(
|
|
31718
|
+
self,
|
|
31719
|
+
body: Optional[_models.ListProductionScheduleOperationsRequest] = None,
|
|
31720
|
+
*,
|
|
31721
|
+
content_type: str = "application/json",
|
|
31722
|
+
**kwargs: Any,
|
|
31723
|
+
) -> _models.ProductionScheduleOperationDtoPagedResult:
|
|
31724
|
+
"""post_list_production_schedule_operations.
|
|
31725
|
+
|
|
31726
|
+
:param body: Default value is None.
|
|
31727
|
+
:type body: ~ignos.api.client.models.ListProductionScheduleOperationsRequest
|
|
31728
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
|
31729
|
+
Default value is "application/json".
|
|
31730
|
+
:paramtype content_type: str
|
|
31731
|
+
:return: ProductionScheduleOperationDtoPagedResult
|
|
31732
|
+
:rtype: ~ignos.api.client.models.ProductionScheduleOperationDtoPagedResult
|
|
31733
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
31734
|
+
"""
|
|
31735
|
+
|
|
31736
|
+
@overload
|
|
31737
|
+
def post_list_production_schedule_operations(
|
|
31738
|
+
self, body: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any
|
|
31739
|
+
) -> _models.ProductionScheduleOperationDtoPagedResult:
|
|
31740
|
+
"""post_list_production_schedule_operations.
|
|
31741
|
+
|
|
31742
|
+
:param body: Default value is None.
|
|
31743
|
+
:type body: IO[bytes]
|
|
31744
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
|
31745
|
+
Known values are: 'application/*+json', 'application/json', 'text/json'. Default value is
|
|
31746
|
+
"application/json".
|
|
31747
|
+
:paramtype content_type: str
|
|
31748
|
+
:return: ProductionScheduleOperationDtoPagedResult
|
|
31749
|
+
:rtype: ~ignos.api.client.models.ProductionScheduleOperationDtoPagedResult
|
|
31750
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
31751
|
+
"""
|
|
31752
|
+
|
|
31753
|
+
@distributed_trace
|
|
31754
|
+
def post_list_production_schedule_operations(
|
|
31755
|
+
self, body: Optional[Union[_models.ListProductionScheduleOperationsRequest, IO[bytes]]] = None, **kwargs: Any
|
|
31756
|
+
) -> _models.ProductionScheduleOperationDtoPagedResult:
|
|
31757
|
+
"""post_list_production_schedule_operations.
|
|
31758
|
+
|
|
31759
|
+
:param body: Is either a ListProductionScheduleOperationsRequest type or a IO[bytes] type.
|
|
31760
|
+
Default value is None.
|
|
31761
|
+
:type body: ~ignos.api.client.models.ListProductionScheduleOperationsRequest or IO[bytes]
|
|
31762
|
+
:keyword content_type: Body Parameter content-type. Known values are: 'application/*+json',
|
|
31763
|
+
'application/json', 'text/json'. Default value is None.
|
|
31764
|
+
:paramtype content_type: str
|
|
31765
|
+
:return: ProductionScheduleOperationDtoPagedResult
|
|
31766
|
+
:rtype: ~ignos.api.client.models.ProductionScheduleOperationDtoPagedResult
|
|
31767
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
31768
|
+
"""
|
|
31769
|
+
error_map = {
|
|
31770
|
+
401: ClientAuthenticationError,
|
|
31771
|
+
404: ResourceNotFoundError,
|
|
31772
|
+
409: ResourceExistsError,
|
|
31773
|
+
304: ResourceNotModifiedError,
|
|
31774
|
+
}
|
|
31775
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
31776
|
+
|
|
31777
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
31778
|
+
_params = kwargs.pop("params", {}) or {}
|
|
31779
|
+
|
|
31780
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
31781
|
+
cls: ClsType[_models.ProductionScheduleOperationDtoPagedResult] = kwargs.pop("cls", None)
|
|
31782
|
+
|
|
31783
|
+
content_type = content_type or "application/json"
|
|
31784
|
+
_json = None
|
|
31785
|
+
_content = None
|
|
31786
|
+
if isinstance(body, (IOBase, bytes)):
|
|
31787
|
+
_content = body
|
|
31788
|
+
else:
|
|
31789
|
+
if body is not None:
|
|
31790
|
+
_json = self._serialize.body(body, "ListProductionScheduleOperationsRequest")
|
|
31791
|
+
else:
|
|
31792
|
+
_json = None
|
|
31793
|
+
|
|
31794
|
+
_request = build_mes_production_schedule_post_list_production_schedule_operations_request(
|
|
31795
|
+
content_type=content_type,
|
|
31796
|
+
json=_json,
|
|
31797
|
+
content=_content,
|
|
31798
|
+
headers=_headers,
|
|
31799
|
+
params=_params,
|
|
31800
|
+
)
|
|
31801
|
+
_request.url = self._client.format_url(_request.url)
|
|
31802
|
+
|
|
31803
|
+
_stream = False
|
|
31804
|
+
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
|
31805
|
+
_request, stream=_stream, **kwargs
|
|
31806
|
+
)
|
|
31807
|
+
|
|
31808
|
+
response = pipeline_response.http_response
|
|
31809
|
+
|
|
31810
|
+
if response.status_code not in [200]:
|
|
31811
|
+
if _stream:
|
|
31812
|
+
response.read() # Load the body in memory and close the socket
|
|
31813
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
31814
|
+
raise HttpResponseError(response=response)
|
|
31815
|
+
|
|
31816
|
+
deserialized = self._deserialize("ProductionScheduleOperationDtoPagedResult", pipeline_response)
|
|
31817
|
+
|
|
31818
|
+
if cls:
|
|
31819
|
+
return cls(pipeline_response, deserialized, {}) # type: ignore
|
|
31820
|
+
|
|
31821
|
+
return deserialized # type: ignore
|
|
31822
|
+
|
|
30019
31823
|
@distributed_trace
|
|
30020
31824
|
def list_my_current_work_activities(self, **kwargs: Any) -> List[_models.CurrentWorkActivityDto]:
|
|
30021
31825
|
"""list_my_current_work_activities.
|
|
@@ -31729,6 +33533,113 @@ class MrbOperations: # pylint: disable=too-many-public-methods
|
|
|
31729
33533
|
|
|
31730
33534
|
return deserialized # type: ignore
|
|
31731
33535
|
|
|
33536
|
+
@overload
|
|
33537
|
+
def post_list_mrb_instance_reports(
|
|
33538
|
+
self,
|
|
33539
|
+
body: Optional[_models.ListMrbInstanceReportsRequest] = None,
|
|
33540
|
+
*,
|
|
33541
|
+
content_type: str = "application/json",
|
|
33542
|
+
**kwargs: Any,
|
|
33543
|
+
) -> _models.MrbInstanceReportDtoPagedResult:
|
|
33544
|
+
"""post_list_mrb_instance_reports.
|
|
33545
|
+
|
|
33546
|
+
:param body: Default value is None.
|
|
33547
|
+
:type body: ~ignos.api.client.models.ListMrbInstanceReportsRequest
|
|
33548
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
|
33549
|
+
Default value is "application/json".
|
|
33550
|
+
:paramtype content_type: str
|
|
33551
|
+
:return: MrbInstanceReportDtoPagedResult
|
|
33552
|
+
:rtype: ~ignos.api.client.models.MrbInstanceReportDtoPagedResult
|
|
33553
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
33554
|
+
"""
|
|
33555
|
+
|
|
33556
|
+
@overload
|
|
33557
|
+
def post_list_mrb_instance_reports(
|
|
33558
|
+
self, body: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any
|
|
33559
|
+
) -> _models.MrbInstanceReportDtoPagedResult:
|
|
33560
|
+
"""post_list_mrb_instance_reports.
|
|
33561
|
+
|
|
33562
|
+
:param body: Default value is None.
|
|
33563
|
+
:type body: IO[bytes]
|
|
33564
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
|
33565
|
+
Known values are: 'application/*+json', 'application/json', 'text/json'. Default value is
|
|
33566
|
+
"application/json".
|
|
33567
|
+
:paramtype content_type: str
|
|
33568
|
+
:return: MrbInstanceReportDtoPagedResult
|
|
33569
|
+
:rtype: ~ignos.api.client.models.MrbInstanceReportDtoPagedResult
|
|
33570
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
33571
|
+
"""
|
|
33572
|
+
|
|
33573
|
+
@distributed_trace
|
|
33574
|
+
def post_list_mrb_instance_reports(
|
|
33575
|
+
self, body: Optional[Union[_models.ListMrbInstanceReportsRequest, IO[bytes]]] = None, **kwargs: Any
|
|
33576
|
+
) -> _models.MrbInstanceReportDtoPagedResult:
|
|
33577
|
+
"""post_list_mrb_instance_reports.
|
|
33578
|
+
|
|
33579
|
+
:param body: Is either a ListMrbInstanceReportsRequest type or a IO[bytes] type. Default value
|
|
33580
|
+
is None.
|
|
33581
|
+
:type body: ~ignos.api.client.models.ListMrbInstanceReportsRequest or IO[bytes]
|
|
33582
|
+
:keyword content_type: Body Parameter content-type. Known values are: 'application/*+json',
|
|
33583
|
+
'application/json', 'text/json'. Default value is None.
|
|
33584
|
+
:paramtype content_type: str
|
|
33585
|
+
:return: MrbInstanceReportDtoPagedResult
|
|
33586
|
+
:rtype: ~ignos.api.client.models.MrbInstanceReportDtoPagedResult
|
|
33587
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
33588
|
+
"""
|
|
33589
|
+
error_map = {
|
|
33590
|
+
401: ClientAuthenticationError,
|
|
33591
|
+
404: ResourceNotFoundError,
|
|
33592
|
+
409: ResourceExistsError,
|
|
33593
|
+
304: ResourceNotModifiedError,
|
|
33594
|
+
}
|
|
33595
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
33596
|
+
|
|
33597
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
33598
|
+
_params = kwargs.pop("params", {}) or {}
|
|
33599
|
+
|
|
33600
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
33601
|
+
cls: ClsType[_models.MrbInstanceReportDtoPagedResult] = kwargs.pop("cls", None)
|
|
33602
|
+
|
|
33603
|
+
content_type = content_type or "application/json"
|
|
33604
|
+
_json = None
|
|
33605
|
+
_content = None
|
|
33606
|
+
if isinstance(body, (IOBase, bytes)):
|
|
33607
|
+
_content = body
|
|
33608
|
+
else:
|
|
33609
|
+
if body is not None:
|
|
33610
|
+
_json = self._serialize.body(body, "ListMrbInstanceReportsRequest")
|
|
33611
|
+
else:
|
|
33612
|
+
_json = None
|
|
33613
|
+
|
|
33614
|
+
_request = build_mrb_post_list_mrb_instance_reports_request(
|
|
33615
|
+
content_type=content_type,
|
|
33616
|
+
json=_json,
|
|
33617
|
+
content=_content,
|
|
33618
|
+
headers=_headers,
|
|
33619
|
+
params=_params,
|
|
33620
|
+
)
|
|
33621
|
+
_request.url = self._client.format_url(_request.url)
|
|
33622
|
+
|
|
33623
|
+
_stream = False
|
|
33624
|
+
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
|
33625
|
+
_request, stream=_stream, **kwargs
|
|
33626
|
+
)
|
|
33627
|
+
|
|
33628
|
+
response = pipeline_response.http_response
|
|
33629
|
+
|
|
33630
|
+
if response.status_code not in [200]:
|
|
33631
|
+
if _stream:
|
|
33632
|
+
response.read() # Load the body in memory and close the socket
|
|
33633
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
33634
|
+
raise HttpResponseError(response=response)
|
|
33635
|
+
|
|
33636
|
+
deserialized = self._deserialize("MrbInstanceReportDtoPagedResult", pipeline_response)
|
|
33637
|
+
|
|
33638
|
+
if cls:
|
|
33639
|
+
return cls(pipeline_response, deserialized, {}) # type: ignore
|
|
33640
|
+
|
|
33641
|
+
return deserialized # type: ignore
|
|
33642
|
+
|
|
31732
33643
|
@overload
|
|
31733
33644
|
def attach_pdf( # pylint: disable=inconsistent-return-statements
|
|
31734
33645
|
self,
|
|
@@ -34695,6 +36606,113 @@ class TraceOperations:
|
|
|
34695
36606
|
|
|
34696
36607
|
return deserialized # type: ignore
|
|
34697
36608
|
|
|
36609
|
+
@overload
|
|
36610
|
+
def post_list_trace_workorders(
|
|
36611
|
+
self,
|
|
36612
|
+
body: Optional[_models.ListTraceWorkordersRequest] = None,
|
|
36613
|
+
*,
|
|
36614
|
+
content_type: str = "application/json",
|
|
36615
|
+
**kwargs: Any,
|
|
36616
|
+
) -> _models.TraceWorkOrderListDtoPagedResult:
|
|
36617
|
+
"""post_list_trace_workorders.
|
|
36618
|
+
|
|
36619
|
+
:param body: Default value is None.
|
|
36620
|
+
:type body: ~ignos.api.client.models.ListTraceWorkordersRequest
|
|
36621
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
|
36622
|
+
Default value is "application/json".
|
|
36623
|
+
:paramtype content_type: str
|
|
36624
|
+
:return: TraceWorkOrderListDtoPagedResult
|
|
36625
|
+
:rtype: ~ignos.api.client.models.TraceWorkOrderListDtoPagedResult
|
|
36626
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
36627
|
+
"""
|
|
36628
|
+
|
|
36629
|
+
@overload
|
|
36630
|
+
def post_list_trace_workorders(
|
|
36631
|
+
self, body: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any
|
|
36632
|
+
) -> _models.TraceWorkOrderListDtoPagedResult:
|
|
36633
|
+
"""post_list_trace_workorders.
|
|
36634
|
+
|
|
36635
|
+
:param body: Default value is None.
|
|
36636
|
+
:type body: IO[bytes]
|
|
36637
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
|
36638
|
+
Known values are: 'application/*+json', 'application/json', 'text/json'. Default value is
|
|
36639
|
+
"application/json".
|
|
36640
|
+
:paramtype content_type: str
|
|
36641
|
+
:return: TraceWorkOrderListDtoPagedResult
|
|
36642
|
+
:rtype: ~ignos.api.client.models.TraceWorkOrderListDtoPagedResult
|
|
36643
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
36644
|
+
"""
|
|
36645
|
+
|
|
36646
|
+
@distributed_trace
|
|
36647
|
+
def post_list_trace_workorders(
|
|
36648
|
+
self, body: Optional[Union[_models.ListTraceWorkordersRequest, IO[bytes]]] = None, **kwargs: Any
|
|
36649
|
+
) -> _models.TraceWorkOrderListDtoPagedResult:
|
|
36650
|
+
"""post_list_trace_workorders.
|
|
36651
|
+
|
|
36652
|
+
:param body: Is either a ListTraceWorkordersRequest type or a IO[bytes] type. Default value is
|
|
36653
|
+
None.
|
|
36654
|
+
:type body: ~ignos.api.client.models.ListTraceWorkordersRequest or IO[bytes]
|
|
36655
|
+
:keyword content_type: Body Parameter content-type. Known values are: 'application/*+json',
|
|
36656
|
+
'application/json', 'text/json'. Default value is None.
|
|
36657
|
+
:paramtype content_type: str
|
|
36658
|
+
:return: TraceWorkOrderListDtoPagedResult
|
|
36659
|
+
:rtype: ~ignos.api.client.models.TraceWorkOrderListDtoPagedResult
|
|
36660
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
36661
|
+
"""
|
|
36662
|
+
error_map = {
|
|
36663
|
+
401: ClientAuthenticationError,
|
|
36664
|
+
404: ResourceNotFoundError,
|
|
36665
|
+
409: ResourceExistsError,
|
|
36666
|
+
304: ResourceNotModifiedError,
|
|
36667
|
+
}
|
|
36668
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
36669
|
+
|
|
36670
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
36671
|
+
_params = kwargs.pop("params", {}) or {}
|
|
36672
|
+
|
|
36673
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
36674
|
+
cls: ClsType[_models.TraceWorkOrderListDtoPagedResult] = kwargs.pop("cls", None)
|
|
36675
|
+
|
|
36676
|
+
content_type = content_type or "application/json"
|
|
36677
|
+
_json = None
|
|
36678
|
+
_content = None
|
|
36679
|
+
if isinstance(body, (IOBase, bytes)):
|
|
36680
|
+
_content = body
|
|
36681
|
+
else:
|
|
36682
|
+
if body is not None:
|
|
36683
|
+
_json = self._serialize.body(body, "ListTraceWorkordersRequest")
|
|
36684
|
+
else:
|
|
36685
|
+
_json = None
|
|
36686
|
+
|
|
36687
|
+
_request = build_trace_post_list_trace_workorders_request(
|
|
36688
|
+
content_type=content_type,
|
|
36689
|
+
json=_json,
|
|
36690
|
+
content=_content,
|
|
36691
|
+
headers=_headers,
|
|
36692
|
+
params=_params,
|
|
36693
|
+
)
|
|
36694
|
+
_request.url = self._client.format_url(_request.url)
|
|
36695
|
+
|
|
36696
|
+
_stream = False
|
|
36697
|
+
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
|
36698
|
+
_request, stream=_stream, **kwargs
|
|
36699
|
+
)
|
|
36700
|
+
|
|
36701
|
+
response = pipeline_response.http_response
|
|
36702
|
+
|
|
36703
|
+
if response.status_code not in [200]:
|
|
36704
|
+
if _stream:
|
|
36705
|
+
response.read() # Load the body in memory and close the socket
|
|
36706
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
36707
|
+
raise HttpResponseError(response=response)
|
|
36708
|
+
|
|
36709
|
+
deserialized = self._deserialize("TraceWorkOrderListDtoPagedResult", pipeline_response)
|
|
36710
|
+
|
|
36711
|
+
if cls:
|
|
36712
|
+
return cls(pipeline_response, deserialized, {}) # type: ignore
|
|
36713
|
+
|
|
36714
|
+
return deserialized # type: ignore
|
|
36715
|
+
|
|
34698
36716
|
|
|
34699
36717
|
class UploadOperations:
|
|
34700
36718
|
"""
|
|
@@ -34845,6 +36863,108 @@ class UsersOperations:
|
|
|
34845
36863
|
|
|
34846
36864
|
return deserialized # type: ignore
|
|
34847
36865
|
|
|
36866
|
+
@overload
|
|
36867
|
+
def post_list_users(
|
|
36868
|
+
self, body: Optional[_models.ListUsersRequest] = None, *, content_type: str = "application/json", **kwargs: Any
|
|
36869
|
+
) -> _models.UserDtoPagedResult:
|
|
36870
|
+
"""post_list_users.
|
|
36871
|
+
|
|
36872
|
+
:param body: Default value is None.
|
|
36873
|
+
:type body: ~ignos.api.client.models.ListUsersRequest
|
|
36874
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
|
36875
|
+
Default value is "application/json".
|
|
36876
|
+
:paramtype content_type: str
|
|
36877
|
+
:return: UserDtoPagedResult
|
|
36878
|
+
:rtype: ~ignos.api.client.models.UserDtoPagedResult
|
|
36879
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
36880
|
+
"""
|
|
36881
|
+
|
|
36882
|
+
@overload
|
|
36883
|
+
def post_list_users(
|
|
36884
|
+
self, body: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any
|
|
36885
|
+
) -> _models.UserDtoPagedResult:
|
|
36886
|
+
"""post_list_users.
|
|
36887
|
+
|
|
36888
|
+
:param body: Default value is None.
|
|
36889
|
+
:type body: IO[bytes]
|
|
36890
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
|
36891
|
+
Known values are: 'application/*+json', 'application/json', 'text/json'. Default value is
|
|
36892
|
+
"application/json".
|
|
36893
|
+
:paramtype content_type: str
|
|
36894
|
+
:return: UserDtoPagedResult
|
|
36895
|
+
:rtype: ~ignos.api.client.models.UserDtoPagedResult
|
|
36896
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
36897
|
+
"""
|
|
36898
|
+
|
|
36899
|
+
@distributed_trace
|
|
36900
|
+
def post_list_users(
|
|
36901
|
+
self, body: Optional[Union[_models.ListUsersRequest, IO[bytes]]] = None, **kwargs: Any
|
|
36902
|
+
) -> _models.UserDtoPagedResult:
|
|
36903
|
+
"""post_list_users.
|
|
36904
|
+
|
|
36905
|
+
:param body: Is either a ListUsersRequest type or a IO[bytes] type. Default value is None.
|
|
36906
|
+
:type body: ~ignos.api.client.models.ListUsersRequest or IO[bytes]
|
|
36907
|
+
:keyword content_type: Body Parameter content-type. Known values are: 'application/*+json',
|
|
36908
|
+
'application/json', 'text/json'. Default value is None.
|
|
36909
|
+
:paramtype content_type: str
|
|
36910
|
+
:return: UserDtoPagedResult
|
|
36911
|
+
:rtype: ~ignos.api.client.models.UserDtoPagedResult
|
|
36912
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
36913
|
+
"""
|
|
36914
|
+
error_map = {
|
|
36915
|
+
401: ClientAuthenticationError,
|
|
36916
|
+
404: ResourceNotFoundError,
|
|
36917
|
+
409: ResourceExistsError,
|
|
36918
|
+
304: ResourceNotModifiedError,
|
|
36919
|
+
}
|
|
36920
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
36921
|
+
|
|
36922
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
36923
|
+
_params = kwargs.pop("params", {}) or {}
|
|
36924
|
+
|
|
36925
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
36926
|
+
cls: ClsType[_models.UserDtoPagedResult] = kwargs.pop("cls", None)
|
|
36927
|
+
|
|
36928
|
+
content_type = content_type or "application/json"
|
|
36929
|
+
_json = None
|
|
36930
|
+
_content = None
|
|
36931
|
+
if isinstance(body, (IOBase, bytes)):
|
|
36932
|
+
_content = body
|
|
36933
|
+
else:
|
|
36934
|
+
if body is not None:
|
|
36935
|
+
_json = self._serialize.body(body, "ListUsersRequest")
|
|
36936
|
+
else:
|
|
36937
|
+
_json = None
|
|
36938
|
+
|
|
36939
|
+
_request = build_users_post_list_users_request(
|
|
36940
|
+
content_type=content_type,
|
|
36941
|
+
json=_json,
|
|
36942
|
+
content=_content,
|
|
36943
|
+
headers=_headers,
|
|
36944
|
+
params=_params,
|
|
36945
|
+
)
|
|
36946
|
+
_request.url = self._client.format_url(_request.url)
|
|
36947
|
+
|
|
36948
|
+
_stream = False
|
|
36949
|
+
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
|
36950
|
+
_request, stream=_stream, **kwargs
|
|
36951
|
+
)
|
|
36952
|
+
|
|
36953
|
+
response = pipeline_response.http_response
|
|
36954
|
+
|
|
36955
|
+
if response.status_code not in [200]:
|
|
36956
|
+
if _stream:
|
|
36957
|
+
response.read() # Load the body in memory and close the socket
|
|
36958
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
36959
|
+
raise HttpResponseError(response=response)
|
|
36960
|
+
|
|
36961
|
+
deserialized = self._deserialize("UserDtoPagedResult", pipeline_response)
|
|
36962
|
+
|
|
36963
|
+
if cls:
|
|
36964
|
+
return cls(pipeline_response, deserialized, {}) # type: ignore
|
|
36965
|
+
|
|
36966
|
+
return deserialized # type: ignore
|
|
36967
|
+
|
|
34848
36968
|
|
|
34849
36969
|
class WorkspacesOperations:
|
|
34850
36970
|
"""
|