ignos-api-client 2023.12.22.7919__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 +1949 -61
- ignos/api/client/models/__init__.py +34 -0
- ignos/api/client/models/_models.py +1071 -0
- ignos/api/client/operations/_operations.py +2330 -130
- {ignos_api_client-2023.12.22.7919.dist-info → ignos_api_client-2023.12.29.7935.dist-info}/METADATA +1 -1
- {ignos_api_client-2023.12.22.7919.dist-info → ignos_api_client-2023.12.29.7935.dist-info}/RECORD +9 -9
- {ignos_api_client-2023.12.22.7919.dist-info → ignos_api_client-2023.12.29.7935.dist-info}/WHEEL +0 -0
- {ignos_api_client-2023.12.22.7919.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,6 +1620,27 @@ def build_documents_import_document_request(**kwargs: Any) -> HttpRequest:
|
|
|
1567
1620
|
return HttpRequest(method="POST", url=_url, headers=_headers, **kwargs)
|
|
1568
1621
|
|
|
1569
1622
|
|
|
1623
|
+
def build_documents_check_if_imported_document_exists_request( # pylint: disable=name-too-long
|
|
1624
|
+
*, imported_reference: Optional[str] = None, **kwargs: Any
|
|
1625
|
+
) -> HttpRequest:
|
|
1626
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
1627
|
+
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
|
1628
|
+
|
|
1629
|
+
accept = _headers.pop("Accept", "application/json")
|
|
1630
|
+
|
|
1631
|
+
# Construct URL
|
|
1632
|
+
_url = "/documents/importedrevisionexists"
|
|
1633
|
+
|
|
1634
|
+
# Construct parameters
|
|
1635
|
+
if imported_reference is not None:
|
|
1636
|
+
_params["importedReference"] = _SERIALIZER.query("imported_reference", imported_reference, "str")
|
|
1637
|
+
|
|
1638
|
+
# Construct headers
|
|
1639
|
+
_headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
|
|
1640
|
+
|
|
1641
|
+
return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs)
|
|
1642
|
+
|
|
1643
|
+
|
|
1570
1644
|
def build_document_types_list_document_types_request( # pylint: disable=name-too-long
|
|
1571
1645
|
*, include_inactive: bool = False, **kwargs: Any
|
|
1572
1646
|
) -> HttpRequest:
|
|
@@ -1861,6 +1935,25 @@ def build_customer_orders_list_customer_orders_request( # pylint: disable=name-
|
|
|
1861
1935
|
return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs)
|
|
1862
1936
|
|
|
1863
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
|
+
|
|
1864
1957
|
def build_customer_orders_list_customer_order_lines_request( # pylint: disable=name-too-long
|
|
1865
1958
|
id: str, **kwargs: Any
|
|
1866
1959
|
) -> HttpRequest:
|
|
@@ -2237,6 +2330,23 @@ def build_workorders_delete_workorder_request(id: str, **kwargs: Any) -> HttpReq
|
|
|
2237
2330
|
return HttpRequest(method="DELETE", url=_url, **kwargs)
|
|
2238
2331
|
|
|
2239
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
|
+
|
|
2240
2350
|
def build_workorders_get_workorder_operation_event_request( # pylint: disable=name-too-long
|
|
2241
2351
|
event_id: str, **kwargs: Any
|
|
2242
2352
|
) -> HttpRequest:
|
|
@@ -3435,6 +3545,25 @@ def build_measurement_form_schemas_create_measurement_form_request( # pylint: d
|
|
|
3435
3545
|
return HttpRequest(method="POST", url=_url, headers=_headers, **kwargs)
|
|
3436
3546
|
|
|
3437
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
|
+
|
|
3438
3567
|
def build_measurement_form_schemas_get_measurement_form_schema_request( # pylint: disable=name-too-long
|
|
3439
3568
|
id: str, **kwargs: Any
|
|
3440
3569
|
) -> HttpRequest:
|
|
@@ -3634,6 +3763,25 @@ def build_measurement_form_schemas_list_linkable_measurement_form_schemas_reques
|
|
|
3634
3763
|
return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs)
|
|
3635
3764
|
|
|
3636
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
|
+
|
|
3637
3785
|
def build_measurement_form_schemas_create_measurement_form_schema_link_request( # pylint: disable=name-too-long
|
|
3638
3786
|
schema_id: str, **kwargs: Any
|
|
3639
3787
|
) -> HttpRequest:
|
|
@@ -4049,6 +4197,25 @@ def build_measurement_form_schemas_list_measurement_form_needs_request( # pylin
|
|
|
4049
4197
|
return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs)
|
|
4050
4198
|
|
|
4051
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
|
+
|
|
4052
4219
|
def build_measurement_form_schemas_set_measurement_form_need_user_request( # pylint: disable=name-too-long
|
|
4053
4220
|
id: str, **kwargs: Any
|
|
4054
4221
|
) -> HttpRequest:
|
|
@@ -4188,6 +4355,25 @@ def build_measurement_form_schemas_list_measurment_form_schemas_not_needed_reque
|
|
|
4188
4355
|
return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs)
|
|
4189
4356
|
|
|
4190
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
|
+
|
|
4191
4377
|
def build_measurement_form_schemas_delete_measurment_form_schemas_not_needed_request( # pylint: disable=name-too-long
|
|
4192
4378
|
id: str, **kwargs: Any
|
|
4193
4379
|
) -> HttpRequest:
|
|
@@ -4298,6 +4484,25 @@ def build_measurement_form_schemas_list_measurement_form_instance_schema_feedbac
|
|
|
4298
4484
|
return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs)
|
|
4299
4485
|
|
|
4300
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
|
+
|
|
4301
4506
|
def build_measurement_form_schemas_get_measurement_form_instance_schema_feedback_request( # pylint: disable=name-too-long
|
|
4302
4507
|
id: str, **kwargs: Any
|
|
4303
4508
|
) -> HttpRequest:
|
|
@@ -4400,6 +4605,25 @@ def build_measurement_form_schemas_list_measurment_form_schemas_with_history_req
|
|
|
4400
4605
|
return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs)
|
|
4401
4606
|
|
|
4402
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
|
+
|
|
4403
4627
|
def build_measurement_forms_instances_list_measurement_forms_request( # pylint: disable=name-too-long
|
|
4404
4628
|
*,
|
|
4405
4629
|
page_size: int = 50,
|
|
@@ -4442,6 +4666,25 @@ def build_measurement_forms_instances_list_measurement_forms_request( # pylint:
|
|
|
4442
4666
|
return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs)
|
|
4443
4667
|
|
|
4444
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
|
+
|
|
4445
4688
|
def build_measurement_forms_instances_list_measurement_forms_by_status_request( # pylint: disable=name-too-long
|
|
4446
4689
|
*,
|
|
4447
4690
|
status: Optional[Union[str, _models.MeasurementFormInstanceStatus]] = None,
|
|
@@ -4482,6 +4725,25 @@ def build_measurement_forms_instances_list_measurement_forms_by_status_request(
|
|
|
4482
4725
|
return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs)
|
|
4483
4726
|
|
|
4484
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
|
+
|
|
4485
4747
|
def build_measurement_forms_instances_get_measurement_form_instance_request( # pylint: disable=name-too-long
|
|
4486
4748
|
id: str, *, tenant_id: Optional[str] = None, **kwargs: Any
|
|
4487
4749
|
) -> HttpRequest:
|
|
@@ -6079,6 +6341,25 @@ def build_mes_production_schedule_list_production_schedule_operations_request(
|
|
|
6079
6341
|
return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs)
|
|
6080
6342
|
|
|
6081
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
|
+
|
|
6082
6363
|
def build_mes_production_schedule_list_my_current_work_activities_request( # pylint: disable=name-too-long
|
|
6083
6364
|
**kwargs: Any,
|
|
6084
6365
|
) -> HttpRequest:
|
|
@@ -6547,6 +6828,23 @@ def build_mrb_list_mrb_instance_reports_request( # pylint: disable=name-too-lon
|
|
|
6547
6828
|
return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs)
|
|
6548
6829
|
|
|
6549
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
|
+
|
|
6550
6848
|
def build_mrb_attach_pdf_request(template_id: str, **kwargs: Any) -> HttpRequest:
|
|
6551
6849
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
6552
6850
|
|
|
@@ -7220,6 +7518,23 @@ def build_trace_list_trace_workorders_request( # pylint: disable=name-too-long
|
|
|
7220
7518
|
return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs)
|
|
7221
7519
|
|
|
7222
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
|
+
|
|
7223
7538
|
def build_upload_create_upload_info_request(**kwargs: Any) -> HttpRequest:
|
|
7224
7539
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
7225
7540
|
|
|
@@ -7265,6 +7580,23 @@ def build_users_list_users_request(
|
|
|
7265
7580
|
return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs)
|
|
7266
7581
|
|
|
7267
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
|
+
|
|
7268
7600
|
def build_workspaces_get_my_workspaces_request(**kwargs: Any) -> HttpRequest: # pylint: disable=name-too-long
|
|
7269
7601
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
7270
7602
|
|
|
@@ -10190,6 +10522,112 @@ class CncSetupOperations: # pylint: disable=too-many-public-methods
|
|
|
10190
10522
|
|
|
10191
10523
|
return deserialized # type: ignore
|
|
10192
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
|
+
|
|
10193
10631
|
@overload
|
|
10194
10632
|
def copy_cnc_part(
|
|
10195
10633
|
self, body: Optional[_models.CopyCncPart] = None, *, content_type: str = "application/json", **kwargs: Any
|
|
@@ -10774,6 +11212,113 @@ class CncSetupOperations: # pylint: disable=too-many-public-methods
|
|
|
10774
11212
|
|
|
10775
11213
|
return deserialized # type: ignore
|
|
10776
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
|
+
|
|
10777
11322
|
@overload
|
|
10778
11323
|
def update_cnc_machine_operation(
|
|
10779
11324
|
self,
|
|
@@ -13279,6 +13824,112 @@ class CustomersOperations:
|
|
|
13279
13824
|
|
|
13280
13825
|
return deserialized # type: ignore
|
|
13281
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
|
+
|
|
13282
13933
|
@distributed_trace
|
|
13283
13934
|
def list_customer_groups(self, **kwargs: Any) -> List[_models.CustomerGroupDto]:
|
|
13284
13935
|
"""List customer groups.
|
|
@@ -13661,6 +14312,58 @@ class DocumentsOperations:
|
|
|
13661
14312
|
|
|
13662
14313
|
return deserialized # type: ignore
|
|
13663
14314
|
|
|
14315
|
+
@distributed_trace
|
|
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.
|
|
14318
|
+
|
|
14319
|
+
Checks if a document exists with import reference. Returns document id if document exists.
|
|
14320
|
+
|
|
14321
|
+
:keyword imported_reference: Default value is None.
|
|
14322
|
+
:paramtype imported_reference: str
|
|
14323
|
+
:return: str
|
|
14324
|
+
:rtype: str
|
|
14325
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
14326
|
+
"""
|
|
14327
|
+
error_map = {
|
|
14328
|
+
401: ClientAuthenticationError,
|
|
14329
|
+
404: ResourceNotFoundError,
|
|
14330
|
+
409: ResourceExistsError,
|
|
14331
|
+
304: ResourceNotModifiedError,
|
|
14332
|
+
}
|
|
14333
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
14334
|
+
|
|
14335
|
+
_headers = kwargs.pop("headers", {}) or {}
|
|
14336
|
+
_params = kwargs.pop("params", {}) or {}
|
|
14337
|
+
|
|
14338
|
+
cls: ClsType[str] = kwargs.pop("cls", None)
|
|
14339
|
+
|
|
14340
|
+
_request = build_documents_check_if_imported_document_exists_request(
|
|
14341
|
+
imported_reference=imported_reference,
|
|
14342
|
+
headers=_headers,
|
|
14343
|
+
params=_params,
|
|
14344
|
+
)
|
|
14345
|
+
_request.url = self._client.format_url(_request.url)
|
|
14346
|
+
|
|
14347
|
+
_stream = False
|
|
14348
|
+
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
|
14349
|
+
_request, stream=_stream, **kwargs
|
|
14350
|
+
)
|
|
14351
|
+
|
|
14352
|
+
response = pipeline_response.http_response
|
|
14353
|
+
|
|
14354
|
+
if response.status_code not in [200]:
|
|
14355
|
+
if _stream:
|
|
14356
|
+
response.read() # Load the body in memory and close the socket
|
|
14357
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
14358
|
+
raise HttpResponseError(response=response)
|
|
14359
|
+
|
|
14360
|
+
deserialized = self._deserialize("str", pipeline_response)
|
|
14361
|
+
|
|
14362
|
+
if cls:
|
|
14363
|
+
return cls(pipeline_response, deserialized, {}) # type: ignore
|
|
14364
|
+
|
|
14365
|
+
return deserialized # type: ignore
|
|
14366
|
+
|
|
13664
14367
|
|
|
13665
14368
|
class DocumentTypesOperations:
|
|
13666
14369
|
"""
|
|
@@ -14507,12 +15210,193 @@ class CustomerOrdersOperations:
|
|
|
14507
15210
|
_content = body
|
|
14508
15211
|
else:
|
|
14509
15212
|
if body is not None:
|
|
14510
|
-
_json = self._serialize.body(body, "UpsertCustomerOrderRequest")
|
|
15213
|
+
_json = self._serialize.body(body, "UpsertCustomerOrderRequest")
|
|
15214
|
+
else:
|
|
15215
|
+
_json = None
|
|
15216
|
+
|
|
15217
|
+
_request = build_customer_orders_upsert_customer_order_request(
|
|
15218
|
+
id=id,
|
|
15219
|
+
content_type=content_type,
|
|
15220
|
+
json=_json,
|
|
15221
|
+
content=_content,
|
|
15222
|
+
headers=_headers,
|
|
15223
|
+
params=_params,
|
|
15224
|
+
)
|
|
15225
|
+
_request.url = self._client.format_url(_request.url)
|
|
15226
|
+
|
|
15227
|
+
_stream = False
|
|
15228
|
+
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
|
15229
|
+
_request, stream=_stream, **kwargs
|
|
15230
|
+
)
|
|
15231
|
+
|
|
15232
|
+
response = pipeline_response.http_response
|
|
15233
|
+
|
|
15234
|
+
if response.status_code not in [204]:
|
|
15235
|
+
if _stream:
|
|
15236
|
+
response.read() # Load the body in memory and close the socket
|
|
15237
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
15238
|
+
raise HttpResponseError(response=response)
|
|
15239
|
+
|
|
15240
|
+
if cls:
|
|
15241
|
+
return cls(pipeline_response, None, {}) # type: ignore
|
|
15242
|
+
|
|
15243
|
+
@distributed_trace
|
|
15244
|
+
def get_customer_order(self, id: str, **kwargs: Any) -> _models.CustomerOrderDto:
|
|
15245
|
+
"""get_customer_order.
|
|
15246
|
+
|
|
15247
|
+
:param id: Required.
|
|
15248
|
+
:type id: str
|
|
15249
|
+
:return: CustomerOrderDto
|
|
15250
|
+
:rtype: ~ignos.api.client.models.CustomerOrderDto
|
|
15251
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
15252
|
+
"""
|
|
15253
|
+
error_map = {
|
|
15254
|
+
401: ClientAuthenticationError,
|
|
15255
|
+
404: ResourceNotFoundError,
|
|
15256
|
+
409: ResourceExistsError,
|
|
15257
|
+
304: ResourceNotModifiedError,
|
|
15258
|
+
}
|
|
15259
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
15260
|
+
|
|
15261
|
+
_headers = kwargs.pop("headers", {}) or {}
|
|
15262
|
+
_params = kwargs.pop("params", {}) or {}
|
|
15263
|
+
|
|
15264
|
+
cls: ClsType[_models.CustomerOrderDto] = kwargs.pop("cls", None)
|
|
15265
|
+
|
|
15266
|
+
_request = build_customer_orders_get_customer_order_request(
|
|
15267
|
+
id=id,
|
|
15268
|
+
headers=_headers,
|
|
15269
|
+
params=_params,
|
|
15270
|
+
)
|
|
15271
|
+
_request.url = self._client.format_url(_request.url)
|
|
15272
|
+
|
|
15273
|
+
_stream = False
|
|
15274
|
+
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
|
15275
|
+
_request, stream=_stream, **kwargs
|
|
15276
|
+
)
|
|
15277
|
+
|
|
15278
|
+
response = pipeline_response.http_response
|
|
15279
|
+
|
|
15280
|
+
if response.status_code not in [200]:
|
|
15281
|
+
if _stream:
|
|
15282
|
+
response.read() # Load the body in memory and close the socket
|
|
15283
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
15284
|
+
raise HttpResponseError(response=response)
|
|
15285
|
+
|
|
15286
|
+
deserialized = self._deserialize("CustomerOrderDto", pipeline_response)
|
|
15287
|
+
|
|
15288
|
+
if cls:
|
|
15289
|
+
return cls(pipeline_response, deserialized, {}) # type: ignore
|
|
15290
|
+
|
|
15291
|
+
return deserialized # type: ignore
|
|
15292
|
+
|
|
15293
|
+
@overload
|
|
15294
|
+
def upsert_customer_order_line( # pylint: disable=inconsistent-return-statements
|
|
15295
|
+
self,
|
|
15296
|
+
id: str,
|
|
15297
|
+
line: int,
|
|
15298
|
+
body: Optional[_models.CustomerOrderLineDto] = None,
|
|
15299
|
+
*,
|
|
15300
|
+
content_type: str = "application/json",
|
|
15301
|
+
**kwargs: Any,
|
|
15302
|
+
) -> None:
|
|
15303
|
+
"""Upsert a customer order line. Customer order must exist.
|
|
15304
|
+
|
|
15305
|
+
Upsert a customer order line. Customer order must exist.
|
|
15306
|
+
|
|
15307
|
+
:param id: Customer order id. Required.
|
|
15308
|
+
:type id: str
|
|
15309
|
+
:param line: Customer order line. Required.
|
|
15310
|
+
:type line: int
|
|
15311
|
+
:param body: Order line details. Default value is None.
|
|
15312
|
+
:type body: ~ignos.api.client.models.CustomerOrderLineDto
|
|
15313
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
|
15314
|
+
Default value is "application/json".
|
|
15315
|
+
:paramtype content_type: str
|
|
15316
|
+
:return: None
|
|
15317
|
+
:rtype: None
|
|
15318
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
15319
|
+
"""
|
|
15320
|
+
|
|
15321
|
+
@overload
|
|
15322
|
+
def upsert_customer_order_line( # pylint: disable=inconsistent-return-statements
|
|
15323
|
+
self,
|
|
15324
|
+
id: str,
|
|
15325
|
+
line: int,
|
|
15326
|
+
body: Optional[IO[bytes]] = None,
|
|
15327
|
+
*,
|
|
15328
|
+
content_type: str = "application/json",
|
|
15329
|
+
**kwargs: Any,
|
|
15330
|
+
) -> None:
|
|
15331
|
+
"""Upsert a customer order line. Customer order must exist.
|
|
15332
|
+
|
|
15333
|
+
Upsert a customer order line. Customer order must exist.
|
|
15334
|
+
|
|
15335
|
+
:param id: Customer order id. Required.
|
|
15336
|
+
:type id: str
|
|
15337
|
+
:param line: Customer order line. Required.
|
|
15338
|
+
:type line: int
|
|
15339
|
+
:param body: Order line details. Default value is None.
|
|
15340
|
+
:type body: IO[bytes]
|
|
15341
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
|
15342
|
+
Known values are: 'application/*+json', 'application/json', 'text/json'. Default value is
|
|
15343
|
+
"application/json".
|
|
15344
|
+
:paramtype content_type: str
|
|
15345
|
+
:return: None
|
|
15346
|
+
:rtype: None
|
|
15347
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
15348
|
+
"""
|
|
15349
|
+
|
|
15350
|
+
@distributed_trace
|
|
15351
|
+
def upsert_customer_order_line( # pylint: disable=inconsistent-return-statements
|
|
15352
|
+
self, id: str, line: int, body: Optional[Union[_models.CustomerOrderLineDto, IO[bytes]]] = None, **kwargs: Any
|
|
15353
|
+
) -> None:
|
|
15354
|
+
"""Upsert a customer order line. Customer order must exist.
|
|
15355
|
+
|
|
15356
|
+
Upsert a customer order line. Customer order must exist.
|
|
15357
|
+
|
|
15358
|
+
:param id: Customer order id. Required.
|
|
15359
|
+
:type id: str
|
|
15360
|
+
:param line: Customer order line. Required.
|
|
15361
|
+
:type line: int
|
|
15362
|
+
:param body: Order line details. Is either a CustomerOrderLineDto type or a IO[bytes] type.
|
|
15363
|
+
Default value is None.
|
|
15364
|
+
:type body: ~ignos.api.client.models.CustomerOrderLineDto or IO[bytes]
|
|
15365
|
+
:keyword content_type: Body Parameter content-type. Known values are: 'application/*+json',
|
|
15366
|
+
'application/json', 'text/json'. Default value is None.
|
|
15367
|
+
:paramtype content_type: str
|
|
15368
|
+
:return: None
|
|
15369
|
+
:rtype: None
|
|
15370
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
15371
|
+
"""
|
|
15372
|
+
error_map = {
|
|
15373
|
+
401: ClientAuthenticationError,
|
|
15374
|
+
404: ResourceNotFoundError,
|
|
15375
|
+
409: ResourceExistsError,
|
|
15376
|
+
304: ResourceNotModifiedError,
|
|
15377
|
+
}
|
|
15378
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
15379
|
+
|
|
15380
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
15381
|
+
_params = kwargs.pop("params", {}) or {}
|
|
15382
|
+
|
|
15383
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
15384
|
+
cls: ClsType[None] = kwargs.pop("cls", None)
|
|
15385
|
+
|
|
15386
|
+
content_type = content_type or "application/json"
|
|
15387
|
+
_json = None
|
|
15388
|
+
_content = None
|
|
15389
|
+
if isinstance(body, (IOBase, bytes)):
|
|
15390
|
+
_content = body
|
|
15391
|
+
else:
|
|
15392
|
+
if body is not None:
|
|
15393
|
+
_json = self._serialize.body(body, "CustomerOrderLineDto")
|
|
14511
15394
|
else:
|
|
14512
15395
|
_json = None
|
|
14513
15396
|
|
|
14514
|
-
_request =
|
|
15397
|
+
_request = build_customer_orders_upsert_customer_order_line_request(
|
|
14515
15398
|
id=id,
|
|
15399
|
+
line=line,
|
|
14516
15400
|
content_type=content_type,
|
|
14517
15401
|
json=_json,
|
|
14518
15402
|
content=_content,
|
|
@@ -14528,7 +15412,7 @@ class CustomerOrdersOperations:
|
|
|
14528
15412
|
|
|
14529
15413
|
response = pipeline_response.http_response
|
|
14530
15414
|
|
|
14531
|
-
if response.status_code not in [
|
|
15415
|
+
if response.status_code not in [200]:
|
|
14532
15416
|
if _stream:
|
|
14533
15417
|
response.read() # Load the body in memory and close the socket
|
|
14534
15418
|
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
@@ -14538,13 +15422,27 @@ class CustomerOrdersOperations:
|
|
|
14538
15422
|
return cls(pipeline_response, None, {}) # type: ignore
|
|
14539
15423
|
|
|
14540
15424
|
@distributed_trace
|
|
14541
|
-
def
|
|
14542
|
-
|
|
15425
|
+
def list_customer_orders(
|
|
15426
|
+
self,
|
|
15427
|
+
*,
|
|
15428
|
+
page_size: int = 50,
|
|
15429
|
+
filter: Optional[str] = None,
|
|
15430
|
+
continuation_token_parameter: Optional[str] = None,
|
|
15431
|
+
**kwargs: Any,
|
|
15432
|
+
) -> _models.CustomerOrderDtoPagedResult:
|
|
15433
|
+
"""List customer orders.
|
|
14543
15434
|
|
|
14544
|
-
|
|
14545
|
-
|
|
14546
|
-
:
|
|
14547
|
-
:
|
|
15435
|
+
List customer orders.
|
|
15436
|
+
|
|
15437
|
+
:keyword page_size: Page size. Default value is 50.
|
|
15438
|
+
:paramtype page_size: int
|
|
15439
|
+
:keyword filter: Filter customer order id or external ordernumber. Default value is None.
|
|
15440
|
+
:paramtype filter: str
|
|
15441
|
+
:keyword continuation_token_parameter: Continuation token used for pagination. Default value is
|
|
15442
|
+
None.
|
|
15443
|
+
:paramtype continuation_token_parameter: str
|
|
15444
|
+
:return: CustomerOrderDtoPagedResult
|
|
15445
|
+
:rtype: ~ignos.api.client.models.CustomerOrderDtoPagedResult
|
|
14548
15446
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
14549
15447
|
"""
|
|
14550
15448
|
error_map = {
|
|
@@ -14558,10 +15456,12 @@ class CustomerOrdersOperations:
|
|
|
14558
15456
|
_headers = kwargs.pop("headers", {}) or {}
|
|
14559
15457
|
_params = kwargs.pop("params", {}) or {}
|
|
14560
15458
|
|
|
14561
|
-
cls: ClsType[_models.
|
|
15459
|
+
cls: ClsType[_models.CustomerOrderDtoPagedResult] = kwargs.pop("cls", None)
|
|
14562
15460
|
|
|
14563
|
-
_request =
|
|
14564
|
-
|
|
15461
|
+
_request = build_customer_orders_list_customer_orders_request(
|
|
15462
|
+
page_size=page_size,
|
|
15463
|
+
filter=filter,
|
|
15464
|
+
continuation_token_parameter=continuation_token_parameter,
|
|
14565
15465
|
headers=_headers,
|
|
14566
15466
|
params=_params,
|
|
14567
15467
|
)
|
|
@@ -14580,7 +15480,7 @@ class CustomerOrdersOperations:
|
|
|
14580
15480
|
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
14581
15481
|
raise HttpResponseError(response=response)
|
|
14582
15482
|
|
|
14583
|
-
deserialized = self._deserialize("
|
|
15483
|
+
deserialized = self._deserialize("CustomerOrderDtoPagedResult", pipeline_response)
|
|
14584
15484
|
|
|
14585
15485
|
if cls:
|
|
14586
15486
|
return cls(pipeline_response, deserialized, {}) # type: ignore
|
|
@@ -14588,82 +15488,56 @@ class CustomerOrdersOperations:
|
|
|
14588
15488
|
return deserialized # type: ignore
|
|
14589
15489
|
|
|
14590
15490
|
@overload
|
|
14591
|
-
def
|
|
15491
|
+
def post_list_customer_orders(
|
|
14592
15492
|
self,
|
|
14593
|
-
|
|
14594
|
-
line: int,
|
|
14595
|
-
body: Optional[_models.CustomerOrderLineDto] = None,
|
|
15493
|
+
body: Optional[_models.ListCustomerOrdersRequest] = None,
|
|
14596
15494
|
*,
|
|
14597
15495
|
content_type: str = "application/json",
|
|
14598
15496
|
**kwargs: Any,
|
|
14599
|
-
) ->
|
|
14600
|
-
"""
|
|
14601
|
-
|
|
14602
|
-
Upsert a customer order line. Customer order must exist.
|
|
15497
|
+
) -> _models.CustomerOrderDtoPagedResult:
|
|
15498
|
+
"""post_list_customer_orders.
|
|
14603
15499
|
|
|
14604
|
-
:param
|
|
14605
|
-
:type
|
|
14606
|
-
:param line: Customer order line. Required.
|
|
14607
|
-
:type line: int
|
|
14608
|
-
:param body: Order line details. Default value is None.
|
|
14609
|
-
:type body: ~ignos.api.client.models.CustomerOrderLineDto
|
|
15500
|
+
:param body: Default value is None.
|
|
15501
|
+
:type body: ~ignos.api.client.models.ListCustomerOrdersRequest
|
|
14610
15502
|
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
|
14611
15503
|
Default value is "application/json".
|
|
14612
15504
|
:paramtype content_type: str
|
|
14613
|
-
:return:
|
|
14614
|
-
:rtype:
|
|
15505
|
+
:return: CustomerOrderDtoPagedResult
|
|
15506
|
+
:rtype: ~ignos.api.client.models.CustomerOrderDtoPagedResult
|
|
14615
15507
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
14616
15508
|
"""
|
|
14617
15509
|
|
|
14618
15510
|
@overload
|
|
14619
|
-
def
|
|
14620
|
-
self,
|
|
14621
|
-
|
|
14622
|
-
|
|
14623
|
-
body: Optional[IO[bytes]] = None,
|
|
14624
|
-
*,
|
|
14625
|
-
content_type: str = "application/json",
|
|
14626
|
-
**kwargs: Any,
|
|
14627
|
-
) -> None:
|
|
14628
|
-
"""Upsert a customer order line. Customer order must exist.
|
|
14629
|
-
|
|
14630
|
-
Upsert a customer order line. Customer order must exist.
|
|
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.
|
|
14631
15515
|
|
|
14632
|
-
:param
|
|
14633
|
-
:type id: str
|
|
14634
|
-
:param line: Customer order line. Required.
|
|
14635
|
-
:type line: int
|
|
14636
|
-
:param body: Order line details. Default value is None.
|
|
15516
|
+
:param body: Default value is None.
|
|
14637
15517
|
:type body: IO[bytes]
|
|
14638
15518
|
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
|
14639
15519
|
Known values are: 'application/*+json', 'application/json', 'text/json'. Default value is
|
|
14640
15520
|
"application/json".
|
|
14641
15521
|
:paramtype content_type: str
|
|
14642
|
-
:return:
|
|
14643
|
-
:rtype:
|
|
15522
|
+
:return: CustomerOrderDtoPagedResult
|
|
15523
|
+
:rtype: ~ignos.api.client.models.CustomerOrderDtoPagedResult
|
|
14644
15524
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
14645
15525
|
"""
|
|
14646
15526
|
|
|
14647
15527
|
@distributed_trace
|
|
14648
|
-
def
|
|
14649
|
-
self,
|
|
14650
|
-
) ->
|
|
14651
|
-
"""
|
|
14652
|
-
|
|
14653
|
-
Upsert a customer order line. Customer order must exist.
|
|
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.
|
|
14654
15532
|
|
|
14655
|
-
:param
|
|
14656
|
-
|
|
14657
|
-
:
|
|
14658
|
-
:type line: int
|
|
14659
|
-
:param body: Order line details. Is either a CustomerOrderLineDto type or a IO[bytes] type.
|
|
14660
|
-
Default value is None.
|
|
14661
|
-
:type body: ~ignos.api.client.models.CustomerOrderLineDto or IO[bytes]
|
|
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]
|
|
14662
15536
|
:keyword content_type: Body Parameter content-type. Known values are: 'application/*+json',
|
|
14663
15537
|
'application/json', 'text/json'. Default value is None.
|
|
14664
15538
|
:paramtype content_type: str
|
|
14665
|
-
:return:
|
|
14666
|
-
:rtype:
|
|
15539
|
+
:return: CustomerOrderDtoPagedResult
|
|
15540
|
+
:rtype: ~ignos.api.client.models.CustomerOrderDtoPagedResult
|
|
14667
15541
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
14668
15542
|
"""
|
|
14669
15543
|
error_map = {
|
|
@@ -14678,7 +15552,7 @@ class CustomerOrdersOperations:
|
|
|
14678
15552
|
_params = kwargs.pop("params", {}) or {}
|
|
14679
15553
|
|
|
14680
15554
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
14681
|
-
cls: ClsType[
|
|
15555
|
+
cls: ClsType[_models.CustomerOrderDtoPagedResult] = kwargs.pop("cls", None)
|
|
14682
15556
|
|
|
14683
15557
|
content_type = content_type or "application/json"
|
|
14684
15558
|
_json = None
|
|
@@ -14687,13 +15561,11 @@ class CustomerOrdersOperations:
|
|
|
14687
15561
|
_content = body
|
|
14688
15562
|
else:
|
|
14689
15563
|
if body is not None:
|
|
14690
|
-
_json = self._serialize.body(body, "
|
|
15564
|
+
_json = self._serialize.body(body, "ListCustomerOrdersRequest")
|
|
14691
15565
|
else:
|
|
14692
15566
|
_json = None
|
|
14693
15567
|
|
|
14694
|
-
_request =
|
|
14695
|
-
id=id,
|
|
14696
|
-
line=line,
|
|
15568
|
+
_request = build_customer_orders_post_list_customer_orders_request(
|
|
14697
15569
|
content_type=content_type,
|
|
14698
15570
|
json=_json,
|
|
14699
15571
|
content=_content,
|
|
@@ -14709,68 +15581,6 @@ class CustomerOrdersOperations:
|
|
|
14709
15581
|
|
|
14710
15582
|
response = pipeline_response.http_response
|
|
14711
15583
|
|
|
14712
|
-
if response.status_code not in [200]:
|
|
14713
|
-
if _stream:
|
|
14714
|
-
response.read() # Load the body in memory and close the socket
|
|
14715
|
-
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
14716
|
-
raise HttpResponseError(response=response)
|
|
14717
|
-
|
|
14718
|
-
if cls:
|
|
14719
|
-
return cls(pipeline_response, None, {}) # type: ignore
|
|
14720
|
-
|
|
14721
|
-
@distributed_trace
|
|
14722
|
-
def list_customer_orders(
|
|
14723
|
-
self,
|
|
14724
|
-
*,
|
|
14725
|
-
page_size: int = 50,
|
|
14726
|
-
filter: Optional[str] = None,
|
|
14727
|
-
continuation_token_parameter: Optional[str] = None,
|
|
14728
|
-
**kwargs: Any,
|
|
14729
|
-
) -> _models.CustomerOrderDtoPagedResult:
|
|
14730
|
-
"""List customer orders.
|
|
14731
|
-
|
|
14732
|
-
List customer orders.
|
|
14733
|
-
|
|
14734
|
-
:keyword page_size: Page size. Default value is 50.
|
|
14735
|
-
:paramtype page_size: int
|
|
14736
|
-
:keyword filter: Filter customer order id or external ordernumber. Default value is None.
|
|
14737
|
-
:paramtype filter: str
|
|
14738
|
-
:keyword continuation_token_parameter: Continuation token used for pagination. Default value is
|
|
14739
|
-
None.
|
|
14740
|
-
:paramtype continuation_token_parameter: str
|
|
14741
|
-
:return: CustomerOrderDtoPagedResult
|
|
14742
|
-
:rtype: ~ignos.api.client.models.CustomerOrderDtoPagedResult
|
|
14743
|
-
:raises ~azure.core.exceptions.HttpResponseError:
|
|
14744
|
-
"""
|
|
14745
|
-
error_map = {
|
|
14746
|
-
401: ClientAuthenticationError,
|
|
14747
|
-
404: ResourceNotFoundError,
|
|
14748
|
-
409: ResourceExistsError,
|
|
14749
|
-
304: ResourceNotModifiedError,
|
|
14750
|
-
}
|
|
14751
|
-
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
14752
|
-
|
|
14753
|
-
_headers = kwargs.pop("headers", {}) or {}
|
|
14754
|
-
_params = kwargs.pop("params", {}) or {}
|
|
14755
|
-
|
|
14756
|
-
cls: ClsType[_models.CustomerOrderDtoPagedResult] = kwargs.pop("cls", None)
|
|
14757
|
-
|
|
14758
|
-
_request = build_customer_orders_list_customer_orders_request(
|
|
14759
|
-
page_size=page_size,
|
|
14760
|
-
filter=filter,
|
|
14761
|
-
continuation_token_parameter=continuation_token_parameter,
|
|
14762
|
-
headers=_headers,
|
|
14763
|
-
params=_params,
|
|
14764
|
-
)
|
|
14765
|
-
_request.url = self._client.format_url(_request.url)
|
|
14766
|
-
|
|
14767
|
-
_stream = False
|
|
14768
|
-
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
|
14769
|
-
_request, stream=_stream, **kwargs
|
|
14770
|
-
)
|
|
14771
|
-
|
|
14772
|
-
response = pipeline_response.http_response
|
|
14773
|
-
|
|
14774
15584
|
if response.status_code not in [200]:
|
|
14775
15585
|
if _stream:
|
|
14776
15586
|
response.read() # Load the body in memory and close the socket
|
|
@@ -16483,6 +17293,112 @@ class WorkordersOperations: # pylint: disable=too-many-public-methods
|
|
|
16483
17293
|
if cls:
|
|
16484
17294
|
return cls(pipeline_response, None, {}) # type: ignore
|
|
16485
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
|
+
|
|
16486
17402
|
@distributed_trace
|
|
16487
17403
|
def get_workorder_operation_event(self, event_id: str, **kwargs: Any) -> _models.WorkorderOperationEventDto:
|
|
16488
17404
|
"""Get a specific work order operation event.
|
|
@@ -20504,6 +21420,113 @@ class MeasurementFormSchemasOperations: # pylint: disable=too-many-public-metho
|
|
|
20504
21420
|
|
|
20505
21421
|
return deserialized # type: ignore
|
|
20506
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
|
+
|
|
20507
21530
|
@distributed_trace
|
|
20508
21531
|
def get_measurement_form_schema(self, id: str, **kwargs: Any) -> _models.MeasurementFormSchemaDto:
|
|
20509
21532
|
"""get_measurement_form_schema.
|
|
@@ -21249,6 +22272,113 @@ class MeasurementFormSchemasOperations: # pylint: disable=too-many-public-metho
|
|
|
21249
22272
|
|
|
21250
22273
|
return deserialized # type: ignore
|
|
21251
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
|
+
|
|
21252
22382
|
@overload
|
|
21253
22383
|
def create_measurement_form_schema_link(
|
|
21254
22384
|
self,
|
|
@@ -22695,6 +23825,113 @@ class MeasurementFormSchemasOperations: # pylint: disable=too-many-public-metho
|
|
|
22695
23825
|
|
|
22696
23826
|
return deserialized # type: ignore
|
|
22697
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
|
+
|
|
22698
23935
|
@overload
|
|
22699
23936
|
def set_measurement_form_need_user( # pylint: disable=inconsistent-return-statements
|
|
22700
23937
|
self,
|
|
@@ -23175,6 +24412,113 @@ class MeasurementFormSchemasOperations: # pylint: disable=too-many-public-metho
|
|
|
23175
24412
|
|
|
23176
24413
|
return deserialized # type: ignore
|
|
23177
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
|
+
|
|
23178
24522
|
@distributed_trace
|
|
23179
24523
|
def delete_measurment_form_schemas_not_needed( # pylint: disable=inconsistent-return-statements,name-too-long
|
|
23180
24524
|
self, id: str, **kwargs: Any
|
|
@@ -23537,6 +24881,116 @@ class MeasurementFormSchemasOperations: # pylint: disable=too-many-public-metho
|
|
|
23537
24881
|
|
|
23538
24882
|
return deserialized # type: ignore
|
|
23539
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
|
+
|
|
23540
24994
|
@distributed_trace
|
|
23541
24995
|
def get_measurement_form_instance_schema_feedback( # pylint: disable=name-too-long
|
|
23542
24996
|
self, id: str, **kwargs: Any
|
|
@@ -23834,6 +25288,115 @@ class MeasurementFormSchemasOperations: # pylint: disable=too-many-public-metho
|
|
|
23834
25288
|
|
|
23835
25289
|
return deserialized # type: ignore
|
|
23836
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
|
+
|
|
23837
25400
|
|
|
23838
25401
|
class MeasurementFormsInstancesOperations: # pylint: disable=too-many-public-methods
|
|
23839
25402
|
"""
|
|
@@ -23929,6 +25492,113 @@ class MeasurementFormsInstancesOperations: # pylint: disable=too-many-public-me
|
|
|
23929
25492
|
|
|
23930
25493
|
return deserialized # type: ignore
|
|
23931
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
|
+
|
|
23932
25602
|
@distributed_trace
|
|
23933
25603
|
def list_measurement_forms_by_status(
|
|
23934
25604
|
self,
|
|
@@ -24005,6 +25675,113 @@ class MeasurementFormsInstancesOperations: # pylint: disable=too-many-public-me
|
|
|
24005
25675
|
|
|
24006
25676
|
return deserialized # type: ignore
|
|
24007
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
|
+
|
|
24008
25785
|
@distributed_trace
|
|
24009
25786
|
def get_measurement_form_instance(
|
|
24010
25787
|
self, id: str, *, tenant_id: Optional[str] = None, **kwargs: Any
|
|
@@ -29936,6 +31713,113 @@ class MesProductionScheduleOperations:
|
|
|
29936
31713
|
|
|
29937
31714
|
return deserialized # type: ignore
|
|
29938
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
|
+
|
|
29939
31823
|
@distributed_trace
|
|
29940
31824
|
def list_my_current_work_activities(self, **kwargs: Any) -> List[_models.CurrentWorkActivityDto]:
|
|
29941
31825
|
"""list_my_current_work_activities.
|
|
@@ -31649,6 +33533,113 @@ class MrbOperations: # pylint: disable=too-many-public-methods
|
|
|
31649
33533
|
|
|
31650
33534
|
return deserialized # type: ignore
|
|
31651
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
|
+
|
|
31652
33643
|
@overload
|
|
31653
33644
|
def attach_pdf( # pylint: disable=inconsistent-return-statements
|
|
31654
33645
|
self,
|
|
@@ -34615,6 +36606,113 @@ class TraceOperations:
|
|
|
34615
36606
|
|
|
34616
36607
|
return deserialized # type: ignore
|
|
34617
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
|
+
|
|
34618
36716
|
|
|
34619
36717
|
class UploadOperations:
|
|
34620
36718
|
"""
|
|
@@ -34765,6 +36863,108 @@ class UsersOperations:
|
|
|
34765
36863
|
|
|
34766
36864
|
return deserialized # type: ignore
|
|
34767
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
|
+
|
|
34768
36968
|
|
|
34769
36969
|
class WorkspacesOperations:
|
|
34770
36970
|
"""
|