ignos-api-client 2023.5.22.5244__py3-none-any.whl → 2023.7.7.5556__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ignos/api/client/_client.py +16 -0
- ignos/api/client/_version.py +1 -1
- ignos/api/client/aio/_client.py +16 -0
- ignos/api/client/aio/operations/__init__.py +8 -0
- ignos/api/client/aio/operations/_operations.py +2346 -891
- ignos/api/client/models/__init__.py +70 -0
- ignos/api/client/models/_enums.py +108 -0
- ignos/api/client/models/_models.py +2182 -194
- ignos/api/client/operations/__init__.py +8 -0
- ignos/api/client/operations/_operations.py +2156 -434
- {ignos_api_client-2023.5.22.5244.dist-info → ignos_api_client-2023.7.7.5556.dist-info}/METADATA +2 -2
- ignos_api_client-2023.7.7.5556.dist-info/RECORD +27 -0
- ignos_api_client-2023.5.22.5244.dist-info/RECORD +0 -27
- {ignos_api_client-2023.5.22.5244.dist-info → ignos_api_client-2023.7.7.5556.dist-info}/WHEEL +0 -0
- {ignos_api_client-2023.5.22.5244.dist-info → ignos_api_client-2023.7.7.5556.dist-info}/top_level.txt +0 -0
|
@@ -1390,6 +1390,152 @@ def build_customers_list_customers_request(
|
|
|
1390
1390
|
return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs)
|
|
1391
1391
|
|
|
1392
1392
|
|
|
1393
|
+
def build_documents_import_document_request(**kwargs: Any) -> HttpRequest:
|
|
1394
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
1395
|
+
|
|
1396
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
1397
|
+
accept = _headers.pop("Accept", "application/json")
|
|
1398
|
+
|
|
1399
|
+
# Construct URL
|
|
1400
|
+
_url = "/documents/import"
|
|
1401
|
+
|
|
1402
|
+
# Construct headers
|
|
1403
|
+
if content_type is not None:
|
|
1404
|
+
_headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str")
|
|
1405
|
+
_headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
|
|
1406
|
+
|
|
1407
|
+
return HttpRequest(method="POST", url=_url, headers=_headers, **kwargs)
|
|
1408
|
+
|
|
1409
|
+
|
|
1410
|
+
def build_documents_import_document_contents_request(*, json: Optional[JSON] = None, **kwargs: Any) -> HttpRequest:
|
|
1411
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
1412
|
+
|
|
1413
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
1414
|
+
# Construct URL
|
|
1415
|
+
_url = "/documents/importcontent"
|
|
1416
|
+
|
|
1417
|
+
# Construct headers
|
|
1418
|
+
if content_type is not None:
|
|
1419
|
+
_headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str")
|
|
1420
|
+
|
|
1421
|
+
return HttpRequest(method="POST", url=_url, headers=_headers, json=json, **kwargs)
|
|
1422
|
+
|
|
1423
|
+
|
|
1424
|
+
def build_document_types_list_document_types_request(*, include_inactive: bool = False, **kwargs: Any) -> HttpRequest:
|
|
1425
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
1426
|
+
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
|
1427
|
+
|
|
1428
|
+
accept = _headers.pop("Accept", "application/json")
|
|
1429
|
+
|
|
1430
|
+
# Construct URL
|
|
1431
|
+
_url = "/documenttypes"
|
|
1432
|
+
|
|
1433
|
+
# Construct parameters
|
|
1434
|
+
if include_inactive is not None:
|
|
1435
|
+
_params["includeInactive"] = _SERIALIZER.query("include_inactive", include_inactive, "bool")
|
|
1436
|
+
|
|
1437
|
+
# Construct headers
|
|
1438
|
+
_headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
|
|
1439
|
+
|
|
1440
|
+
return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs)
|
|
1441
|
+
|
|
1442
|
+
|
|
1443
|
+
def build_document_types_create_document_type_request(**kwargs: Any) -> HttpRequest:
|
|
1444
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
1445
|
+
|
|
1446
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
1447
|
+
accept = _headers.pop("Accept", "application/json")
|
|
1448
|
+
|
|
1449
|
+
# Construct URL
|
|
1450
|
+
_url = "/documenttypes"
|
|
1451
|
+
|
|
1452
|
+
# Construct headers
|
|
1453
|
+
if content_type is not None:
|
|
1454
|
+
_headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str")
|
|
1455
|
+
_headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
|
|
1456
|
+
|
|
1457
|
+
return HttpRequest(method="POST", url=_url, headers=_headers, **kwargs)
|
|
1458
|
+
|
|
1459
|
+
|
|
1460
|
+
def build_document_types_update_document_type_request(
|
|
1461
|
+
id: str, *, json: Optional[JSON] = None, **kwargs: Any
|
|
1462
|
+
) -> HttpRequest:
|
|
1463
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
1464
|
+
|
|
1465
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
1466
|
+
accept = _headers.pop("Accept", "application/json")
|
|
1467
|
+
|
|
1468
|
+
# Construct URL
|
|
1469
|
+
_url = "/documenttypes/{id}"
|
|
1470
|
+
path_format_arguments = {
|
|
1471
|
+
"id": _SERIALIZER.url("id", id, "str"),
|
|
1472
|
+
}
|
|
1473
|
+
|
|
1474
|
+
_url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
|
|
1475
|
+
|
|
1476
|
+
# Construct headers
|
|
1477
|
+
if content_type is not None:
|
|
1478
|
+
_headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str")
|
|
1479
|
+
_headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
|
|
1480
|
+
|
|
1481
|
+
return HttpRequest(method="PUT", url=_url, headers=_headers, json=json, **kwargs)
|
|
1482
|
+
|
|
1483
|
+
|
|
1484
|
+
def build_document_types_delete_document_type_request(id: str, **kwargs: Any) -> HttpRequest:
|
|
1485
|
+
# Construct URL
|
|
1486
|
+
_url = "/documenttypes/{id}"
|
|
1487
|
+
path_format_arguments = {
|
|
1488
|
+
"id": _SERIALIZER.url("id", id, "str"),
|
|
1489
|
+
}
|
|
1490
|
+
|
|
1491
|
+
_url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
|
|
1492
|
+
|
|
1493
|
+
return HttpRequest(method="DELETE", url=_url, **kwargs)
|
|
1494
|
+
|
|
1495
|
+
|
|
1496
|
+
def build_document_types_active_document_type_request(id: str, **kwargs: Any) -> HttpRequest:
|
|
1497
|
+
# Construct URL
|
|
1498
|
+
_url = "/documenttypes/{id}/activate"
|
|
1499
|
+
path_format_arguments = {
|
|
1500
|
+
"id": _SERIALIZER.url("id", id, "str"),
|
|
1501
|
+
}
|
|
1502
|
+
|
|
1503
|
+
_url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
|
|
1504
|
+
|
|
1505
|
+
return HttpRequest(method="POST", url=_url, **kwargs)
|
|
1506
|
+
|
|
1507
|
+
|
|
1508
|
+
def build_document_types_deactive_document_type_request(id: str, **kwargs: Any) -> HttpRequest:
|
|
1509
|
+
# Construct URL
|
|
1510
|
+
_url = "/documenttypes/{id}/deactivate"
|
|
1511
|
+
path_format_arguments = {
|
|
1512
|
+
"id": _SERIALIZER.url("id", id, "str"),
|
|
1513
|
+
}
|
|
1514
|
+
|
|
1515
|
+
_url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
|
|
1516
|
+
|
|
1517
|
+
return HttpRequest(method="POST", url=_url, **kwargs)
|
|
1518
|
+
|
|
1519
|
+
|
|
1520
|
+
def build_document_types_list_available_tags_for_document_type_request(id: str, **kwargs: Any) -> HttpRequest:
|
|
1521
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
1522
|
+
|
|
1523
|
+
accept = _headers.pop("Accept", "application/json")
|
|
1524
|
+
|
|
1525
|
+
# Construct URL
|
|
1526
|
+
_url = "/documenttypes/{id}/availabletags"
|
|
1527
|
+
path_format_arguments = {
|
|
1528
|
+
"id": _SERIALIZER.url("id", id, "str"),
|
|
1529
|
+
}
|
|
1530
|
+
|
|
1531
|
+
_url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
|
|
1532
|
+
|
|
1533
|
+
# Construct headers
|
|
1534
|
+
_headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
|
|
1535
|
+
|
|
1536
|
+
return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs)
|
|
1537
|
+
|
|
1538
|
+
|
|
1393
1539
|
def build_customer_orders_upsert_customer_order_request(id: str, **kwargs: Any) -> HttpRequest:
|
|
1394
1540
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
1395
1541
|
|
|
@@ -1443,6 +1589,20 @@ def build_workorders_upsert_workorder_request(**kwargs: Any) -> HttpRequest:
|
|
|
1443
1589
|
return HttpRequest(method="POST", url=_url, headers=_headers, **kwargs)
|
|
1444
1590
|
|
|
1445
1591
|
|
|
1592
|
+
def build_workorders_upsert_workorder_v2_request(**kwargs: Any) -> HttpRequest:
|
|
1593
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
1594
|
+
|
|
1595
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
1596
|
+
# Construct URL
|
|
1597
|
+
_url = "/erp/workorders"
|
|
1598
|
+
|
|
1599
|
+
# Construct headers
|
|
1600
|
+
if content_type is not None:
|
|
1601
|
+
_headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str")
|
|
1602
|
+
|
|
1603
|
+
return HttpRequest(method="PUT", url=_url, headers=_headers, **kwargs)
|
|
1604
|
+
|
|
1605
|
+
|
|
1446
1606
|
def build_workorders_list_workorders_request(
|
|
1447
1607
|
*,
|
|
1448
1608
|
page_size: int = 50,
|
|
@@ -1477,6 +1637,25 @@ def build_workorders_list_workorders_request(
|
|
|
1477
1637
|
return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs)
|
|
1478
1638
|
|
|
1479
1639
|
|
|
1640
|
+
def build_workorders_upsert_workorder_consumption_request(id: str, **kwargs: Any) -> HttpRequest:
|
|
1641
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
1642
|
+
|
|
1643
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
1644
|
+
# Construct URL
|
|
1645
|
+
_url = "/erp/workorders/{id}/consumptions"
|
|
1646
|
+
path_format_arguments = {
|
|
1647
|
+
"id": _SERIALIZER.url("id", id, "str"),
|
|
1648
|
+
}
|
|
1649
|
+
|
|
1650
|
+
_url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
|
|
1651
|
+
|
|
1652
|
+
# Construct headers
|
|
1653
|
+
if content_type is not None:
|
|
1654
|
+
_headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str")
|
|
1655
|
+
|
|
1656
|
+
return HttpRequest(method="PUT", url=_url, headers=_headers, **kwargs)
|
|
1657
|
+
|
|
1658
|
+
|
|
1480
1659
|
def build_workorders_upsert_workorder_traces_request(id: str, **kwargs: Any) -> HttpRequest:
|
|
1481
1660
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
1482
1661
|
|
|
@@ -2189,11 +2368,7 @@ def build_machine_alarms_list_machine_alarms_request(
|
|
|
2189
2368
|
|
|
2190
2369
|
|
|
2191
2370
|
def build_machine_alarms_list_alarms_per_machine_request(
|
|
2192
|
-
*,
|
|
2193
|
-
start_time: Optional[datetime.datetime] = None,
|
|
2194
|
-
end_time: Optional[datetime.datetime] = None,
|
|
2195
|
-
asset_id: Optional[int] = None,
|
|
2196
|
-
**kwargs: Any
|
|
2371
|
+
*, start_time: Optional[datetime.datetime] = None, end_time: Optional[datetime.datetime] = None, **kwargs: Any
|
|
2197
2372
|
) -> HttpRequest:
|
|
2198
2373
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
2199
2374
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
|
@@ -2208,8 +2383,6 @@ def build_machine_alarms_list_alarms_per_machine_request(
|
|
|
2208
2383
|
_params["startTime"] = _SERIALIZER.query("start_time", start_time, "iso-8601")
|
|
2209
2384
|
if end_time is not None:
|
|
2210
2385
|
_params["endTime"] = _SERIALIZER.query("end_time", end_time, "iso-8601")
|
|
2211
|
-
if asset_id is not None:
|
|
2212
|
-
_params["assetId"] = _SERIALIZER.query("asset_id", asset_id, "int")
|
|
2213
2386
|
|
|
2214
2387
|
# Construct headers
|
|
2215
2388
|
_headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
|
|
@@ -2218,11 +2391,7 @@ def build_machine_alarms_list_alarms_per_machine_request(
|
|
|
2218
2391
|
|
|
2219
2392
|
|
|
2220
2393
|
def build_machine_alarms_list_alarm_severity_occurrences_request(
|
|
2221
|
-
*,
|
|
2222
|
-
start_time: Optional[datetime.datetime] = None,
|
|
2223
|
-
end_time: Optional[datetime.datetime] = None,
|
|
2224
|
-
asset_id: Optional[int] = None,
|
|
2225
|
-
**kwargs: Any
|
|
2394
|
+
*, start_time: Optional[datetime.datetime] = None, end_time: Optional[datetime.datetime] = None, **kwargs: Any
|
|
2226
2395
|
) -> HttpRequest:
|
|
2227
2396
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
2228
2397
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
|
@@ -2237,8 +2406,6 @@ def build_machine_alarms_list_alarm_severity_occurrences_request(
|
|
|
2237
2406
|
_params["startTime"] = _SERIALIZER.query("start_time", start_time, "iso-8601")
|
|
2238
2407
|
if end_time is not None:
|
|
2239
2408
|
_params["endTime"] = _SERIALIZER.query("end_time", end_time, "iso-8601")
|
|
2240
|
-
if asset_id is not None:
|
|
2241
|
-
_params["assetId"] = _SERIALIZER.query("asset_id", asset_id, "int")
|
|
2242
2409
|
|
|
2243
2410
|
# Construct headers
|
|
2244
2411
|
_headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
|
|
@@ -5208,62 +5375,75 @@ def build_mes_resource_list_resource_group_resources_request(id: str, **kwargs:
|
|
|
5208
5375
|
return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs)
|
|
5209
5376
|
|
|
5210
5377
|
|
|
5211
|
-
def
|
|
5378
|
+
def build_mrb_attach_pdf_request(template_id: str, **kwargs: Any) -> HttpRequest:
|
|
5212
5379
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
5213
5380
|
|
|
5214
5381
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
5215
|
-
accept = _headers.pop("Accept", "application/json")
|
|
5216
|
-
|
|
5217
5382
|
# Construct URL
|
|
5218
|
-
_url = "/
|
|
5383
|
+
_url = "/mrb/templates/{templateId}"
|
|
5384
|
+
path_format_arguments = {
|
|
5385
|
+
"templateId": _SERIALIZER.url("template_id", template_id, "str"),
|
|
5386
|
+
}
|
|
5387
|
+
|
|
5388
|
+
_url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
|
|
5219
5389
|
|
|
5220
5390
|
# Construct headers
|
|
5221
5391
|
if content_type is not None:
|
|
5222
5392
|
_headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str")
|
|
5223
|
-
_headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
|
|
5224
5393
|
|
|
5225
|
-
return HttpRequest(method="
|
|
5394
|
+
return HttpRequest(method="PUT", url=_url, headers=_headers, **kwargs)
|
|
5226
5395
|
|
|
5227
5396
|
|
|
5228
|
-
def
|
|
5397
|
+
def build_mrb_get_mrb_template_request(template_id: str, **kwargs: Any) -> HttpRequest:
|
|
5229
5398
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
5230
5399
|
|
|
5231
|
-
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
5232
5400
|
accept = _headers.pop("Accept", "application/json")
|
|
5233
5401
|
|
|
5234
5402
|
# Construct URL
|
|
5235
|
-
_url = "/
|
|
5403
|
+
_url = "/mrb/templates/{templateId}"
|
|
5404
|
+
path_format_arguments = {
|
|
5405
|
+
"templateId": _SERIALIZER.url("template_id", template_id, "str"),
|
|
5406
|
+
}
|
|
5407
|
+
|
|
5408
|
+
_url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
|
|
5236
5409
|
|
|
5237
5410
|
# Construct headers
|
|
5238
|
-
if content_type is not None:
|
|
5239
|
-
_headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str")
|
|
5240
5411
|
_headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
|
|
5241
5412
|
|
|
5242
|
-
return HttpRequest(method="
|
|
5413
|
+
return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs)
|
|
5243
5414
|
|
|
5244
5415
|
|
|
5245
|
-
def
|
|
5416
|
+
def build_mrb_list_mrb_templates_request(
|
|
5417
|
+
*, customer_id: Optional[str] = None, customer_group_id: Optional[str] = None, **kwargs: Any
|
|
5418
|
+
) -> HttpRequest:
|
|
5246
5419
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
5420
|
+
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
|
5247
5421
|
|
|
5248
5422
|
accept = _headers.pop("Accept", "application/json")
|
|
5249
5423
|
|
|
5250
5424
|
# Construct URL
|
|
5251
|
-
_url = "/
|
|
5425
|
+
_url = "/mrb/templates"
|
|
5426
|
+
|
|
5427
|
+
# Construct parameters
|
|
5428
|
+
if customer_id is not None:
|
|
5429
|
+
_params["customerId"] = _SERIALIZER.query("customer_id", customer_id, "str")
|
|
5430
|
+
if customer_group_id is not None:
|
|
5431
|
+
_params["customerGroupId"] = _SERIALIZER.query("customer_group_id", customer_group_id, "str")
|
|
5252
5432
|
|
|
5253
5433
|
# Construct headers
|
|
5254
5434
|
_headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
|
|
5255
5435
|
|
|
5256
|
-
return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs)
|
|
5436
|
+
return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs)
|
|
5257
5437
|
|
|
5258
5438
|
|
|
5259
|
-
def
|
|
5439
|
+
def build_mrb_create_mrb_template_request(**kwargs: Any) -> HttpRequest:
|
|
5260
5440
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
5261
5441
|
|
|
5262
5442
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
5263
5443
|
accept = _headers.pop("Accept", "application/json")
|
|
5264
5444
|
|
|
5265
5445
|
# Construct URL
|
|
5266
|
-
_url = "/
|
|
5446
|
+
_url = "/mrb/templates"
|
|
5267
5447
|
|
|
5268
5448
|
# Construct headers
|
|
5269
5449
|
if content_type is not None:
|
|
@@ -5273,66 +5453,62 @@ def build_operator_calculators_calculate_bar_weight_request(**kwargs: Any) -> Ht
|
|
|
5273
5453
|
return HttpRequest(method="POST", url=_url, headers=_headers, **kwargs)
|
|
5274
5454
|
|
|
5275
5455
|
|
|
5276
|
-
def
|
|
5456
|
+
def build_mrb_update_mrb_template_request(**kwargs: Any) -> HttpRequest:
|
|
5277
5457
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
5278
|
-
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
|
5279
5458
|
|
|
5459
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
5280
5460
|
accept = _headers.pop("Accept", "application/json")
|
|
5281
5461
|
|
|
5282
5462
|
# Construct URL
|
|
5283
|
-
_url = "/
|
|
5284
|
-
|
|
5285
|
-
# Construct parameters
|
|
5286
|
-
if country is not None:
|
|
5287
|
-
_params["country"] = _SERIALIZER.query("country", country, "str")
|
|
5463
|
+
_url = "/mrb/templates"
|
|
5288
5464
|
|
|
5289
5465
|
# Construct headers
|
|
5466
|
+
if content_type is not None:
|
|
5467
|
+
_headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str")
|
|
5290
5468
|
_headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
|
|
5291
5469
|
|
|
5292
|
-
return HttpRequest(method="
|
|
5470
|
+
return HttpRequest(method="PUT", url=_url, headers=_headers, **kwargs)
|
|
5293
5471
|
|
|
5294
5472
|
|
|
5295
|
-
def
|
|
5473
|
+
def build_mrb_delete_mrb_template_request(**kwargs: Any) -> HttpRequest:
|
|
5296
5474
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
5297
5475
|
|
|
5298
|
-
|
|
5299
|
-
|
|
5476
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
5300
5477
|
# Construct URL
|
|
5301
|
-
_url = "/
|
|
5302
|
-
path_format_arguments = {
|
|
5303
|
-
"componentId": _SERIALIZER.url("component_id", component_id, "str"),
|
|
5304
|
-
}
|
|
5305
|
-
|
|
5306
|
-
_url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
|
|
5478
|
+
_url = "/mrb/templates"
|
|
5307
5479
|
|
|
5308
5480
|
# Construct headers
|
|
5309
|
-
|
|
5481
|
+
if content_type is not None:
|
|
5482
|
+
_headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str")
|
|
5310
5483
|
|
|
5311
|
-
return HttpRequest(method="
|
|
5484
|
+
return HttpRequest(method="DELETE", url=_url, headers=_headers, **kwargs)
|
|
5312
5485
|
|
|
5313
5486
|
|
|
5314
|
-
def
|
|
5487
|
+
def build_operator_calculators_calculate_spindle_and_cutting_speed_request(**kwargs: Any) -> HttpRequest:
|
|
5315
5488
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
5316
5489
|
|
|
5490
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
5317
5491
|
accept = _headers.pop("Accept", "application/json")
|
|
5318
5492
|
|
|
5319
5493
|
# Construct URL
|
|
5320
|
-
_url = "/
|
|
5494
|
+
_url = "/operatorcalculators/spindleandcuttingspeed"
|
|
5321
5495
|
|
|
5322
5496
|
# Construct headers
|
|
5497
|
+
if content_type is not None:
|
|
5498
|
+
_headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str")
|
|
5323
5499
|
_headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
|
|
5324
5500
|
|
|
5325
|
-
return HttpRequest(method="
|
|
5501
|
+
return HttpRequest(method="POST", url=_url, headers=_headers, **kwargs)
|
|
5326
5502
|
|
|
5327
5503
|
|
|
5328
|
-
def
|
|
5504
|
+
def build_operator_calculators_calculate_right_angled_triangle_request(**kwargs: Any) -> HttpRequest:
|
|
5329
5505
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
5330
5506
|
|
|
5331
5507
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
5332
5508
|
accept = _headers.pop("Accept", "application/json")
|
|
5333
5509
|
|
|
5334
5510
|
# Construct URL
|
|
5335
|
-
_url = "/
|
|
5511
|
+
_url = "/operatorcalculators/rightangledtriangle"
|
|
5336
5512
|
|
|
5337
5513
|
# Construct headers
|
|
5338
5514
|
if content_type is not None:
|
|
@@ -5342,25 +5518,125 @@ def build_suppliers_create_supplier_invite_request(**kwargs: Any) -> HttpRequest
|
|
|
5342
5518
|
return HttpRequest(method="POST", url=_url, headers=_headers, **kwargs)
|
|
5343
5519
|
|
|
5344
5520
|
|
|
5345
|
-
def
|
|
5346
|
-
# Construct URL
|
|
5347
|
-
_url = "/suppliers/supplierinvites/{id}"
|
|
5348
|
-
path_format_arguments = {
|
|
5349
|
-
"id": _SERIALIZER.url("id", id, "str"),
|
|
5350
|
-
}
|
|
5351
|
-
|
|
5352
|
-
_url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
|
|
5353
|
-
|
|
5354
|
-
return HttpRequest(method="DELETE", url=_url, **kwargs)
|
|
5355
|
-
|
|
5356
|
-
|
|
5357
|
-
def build_suppliers_list_suppliers_request(**kwargs: Any) -> HttpRequest:
|
|
5521
|
+
def build_operator_calculators_list_materials_with_density_request(**kwargs: Any) -> HttpRequest:
|
|
5358
5522
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
5359
5523
|
|
|
5360
5524
|
accept = _headers.pop("Accept", "application/json")
|
|
5361
5525
|
|
|
5362
5526
|
# Construct URL
|
|
5363
|
-
_url = "/
|
|
5527
|
+
_url = "/operatorcalculators/materialswithdensity"
|
|
5528
|
+
|
|
5529
|
+
# Construct headers
|
|
5530
|
+
_headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
|
|
5531
|
+
|
|
5532
|
+
return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs)
|
|
5533
|
+
|
|
5534
|
+
|
|
5535
|
+
def build_operator_calculators_calculate_bar_weight_request(**kwargs: Any) -> HttpRequest:
|
|
5536
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
5537
|
+
|
|
5538
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
5539
|
+
accept = _headers.pop("Accept", "application/json")
|
|
5540
|
+
|
|
5541
|
+
# Construct URL
|
|
5542
|
+
_url = "/operatorcalculators/barweight"
|
|
5543
|
+
|
|
5544
|
+
# Construct headers
|
|
5545
|
+
if content_type is not None:
|
|
5546
|
+
_headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str")
|
|
5547
|
+
_headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
|
|
5548
|
+
|
|
5549
|
+
return HttpRequest(method="POST", url=_url, headers=_headers, **kwargs)
|
|
5550
|
+
|
|
5551
|
+
|
|
5552
|
+
def build_power_list_power_regions_request(*, country: Optional[str] = None, **kwargs: Any) -> HttpRequest:
|
|
5553
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
5554
|
+
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
|
5555
|
+
|
|
5556
|
+
accept = _headers.pop("Accept", "application/json")
|
|
5557
|
+
|
|
5558
|
+
# Construct URL
|
|
5559
|
+
_url = "/power/regions"
|
|
5560
|
+
|
|
5561
|
+
# Construct parameters
|
|
5562
|
+
if country is not None:
|
|
5563
|
+
_params["country"] = _SERIALIZER.query("country", country, "str")
|
|
5564
|
+
|
|
5565
|
+
# Construct headers
|
|
5566
|
+
_headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
|
|
5567
|
+
|
|
5568
|
+
return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs)
|
|
5569
|
+
|
|
5570
|
+
|
|
5571
|
+
def build_presentation_get_component_settings_request(component_id: str, **kwargs: Any) -> HttpRequest:
|
|
5572
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
5573
|
+
|
|
5574
|
+
accept = _headers.pop("Accept", "application/json")
|
|
5575
|
+
|
|
5576
|
+
# Construct URL
|
|
5577
|
+
_url = "/presentation/components/{componentId}"
|
|
5578
|
+
path_format_arguments = {
|
|
5579
|
+
"componentId": _SERIALIZER.url("component_id", component_id, "str"),
|
|
5580
|
+
}
|
|
5581
|
+
|
|
5582
|
+
_url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
|
|
5583
|
+
|
|
5584
|
+
# Construct headers
|
|
5585
|
+
_headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
|
|
5586
|
+
|
|
5587
|
+
return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs)
|
|
5588
|
+
|
|
5589
|
+
|
|
5590
|
+
def build_suppliers_list_supplier_invites_request(**kwargs: Any) -> HttpRequest:
|
|
5591
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
5592
|
+
|
|
5593
|
+
accept = _headers.pop("Accept", "application/json")
|
|
5594
|
+
|
|
5595
|
+
# Construct URL
|
|
5596
|
+
_url = "/suppliers/supplierinvites"
|
|
5597
|
+
|
|
5598
|
+
# Construct headers
|
|
5599
|
+
_headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
|
|
5600
|
+
|
|
5601
|
+
return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs)
|
|
5602
|
+
|
|
5603
|
+
|
|
5604
|
+
def build_suppliers_create_supplier_invite_request(**kwargs: Any) -> HttpRequest:
|
|
5605
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
5606
|
+
|
|
5607
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
5608
|
+
accept = _headers.pop("Accept", "application/json")
|
|
5609
|
+
|
|
5610
|
+
# Construct URL
|
|
5611
|
+
_url = "/suppliers/supplierinvites"
|
|
5612
|
+
|
|
5613
|
+
# Construct headers
|
|
5614
|
+
if content_type is not None:
|
|
5615
|
+
_headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str")
|
|
5616
|
+
_headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
|
|
5617
|
+
|
|
5618
|
+
return HttpRequest(method="POST", url=_url, headers=_headers, **kwargs)
|
|
5619
|
+
|
|
5620
|
+
|
|
5621
|
+
def build_suppliers_delete_supplier_invite_request(id: str, **kwargs: Any) -> HttpRequest:
|
|
5622
|
+
# Construct URL
|
|
5623
|
+
_url = "/suppliers/supplierinvites/{id}"
|
|
5624
|
+
path_format_arguments = {
|
|
5625
|
+
"id": _SERIALIZER.url("id", id, "str"),
|
|
5626
|
+
}
|
|
5627
|
+
|
|
5628
|
+
_url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
|
|
5629
|
+
|
|
5630
|
+
return HttpRequest(method="DELETE", url=_url, **kwargs)
|
|
5631
|
+
|
|
5632
|
+
|
|
5633
|
+
def build_suppliers_list_suppliers_request(**kwargs: Any) -> HttpRequest:
|
|
5634
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
5635
|
+
|
|
5636
|
+
accept = _headers.pop("Accept", "application/json")
|
|
5637
|
+
|
|
5638
|
+
# Construct URL
|
|
5639
|
+
_url = "/suppliers"
|
|
5364
5640
|
|
|
5365
5641
|
# Construct headers
|
|
5366
5642
|
_headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
|
|
@@ -5543,6 +5819,25 @@ def build_system_health_dashboard_get_machine_data_health_request(
|
|
|
5543
5819
|
return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs)
|
|
5544
5820
|
|
|
5545
5821
|
|
|
5822
|
+
def build_trace_get_work_order_trace_request(id: str, **kwargs: Any) -> HttpRequest:
|
|
5823
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
5824
|
+
|
|
5825
|
+
accept = _headers.pop("Accept", "application/json")
|
|
5826
|
+
|
|
5827
|
+
# Construct URL
|
|
5828
|
+
_url = "/trace/{id}"
|
|
5829
|
+
path_format_arguments = {
|
|
5830
|
+
"id": _SERIALIZER.url("id", id, "str"),
|
|
5831
|
+
}
|
|
5832
|
+
|
|
5833
|
+
_url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
|
|
5834
|
+
|
|
5835
|
+
# Construct headers
|
|
5836
|
+
_headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
|
|
5837
|
+
|
|
5838
|
+
return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs)
|
|
5839
|
+
|
|
5840
|
+
|
|
5546
5841
|
def build_upload_create_upload_info_request(**kwargs: Any) -> HttpRequest:
|
|
5547
5842
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
5548
5843
|
|
|
@@ -11183,14 +11478,14 @@ class CustomersOperations:
|
|
|
11183
11478
|
return deserialized
|
|
11184
11479
|
|
|
11185
11480
|
|
|
11186
|
-
class
|
|
11481
|
+
class DocumentsOperations:
|
|
11187
11482
|
"""
|
|
11188
11483
|
.. warning::
|
|
11189
11484
|
**DO NOT** instantiate this class directly.
|
|
11190
11485
|
|
|
11191
11486
|
Instead, you should access the following operations through
|
|
11192
11487
|
:class:`~ignos.api.client.IgnosPortal`'s
|
|
11193
|
-
:attr:`
|
|
11488
|
+
:attr:`documents` attribute.
|
|
11194
11489
|
"""
|
|
11195
11490
|
|
|
11196
11491
|
models = _models
|
|
@@ -11203,69 +11498,55 @@ class CustomerOrdersOperations:
|
|
|
11203
11498
|
self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
|
11204
11499
|
|
|
11205
11500
|
@overload
|
|
11206
|
-
def
|
|
11207
|
-
self,
|
|
11208
|
-
|
|
11209
|
-
|
|
11210
|
-
*,
|
|
11211
|
-
content_type: str = "application/json",
|
|
11212
|
-
**kwargs: Any
|
|
11213
|
-
) -> None:
|
|
11214
|
-
"""Upsert a customer order.
|
|
11501
|
+
def import_document(
|
|
11502
|
+
self, body: Optional[_models.ImportDocument] = None, *, content_type: str = "application/json", **kwargs: Any
|
|
11503
|
+
) -> JSON:
|
|
11504
|
+
"""Import document with revisions from other systems.
|
|
11215
11505
|
|
|
11216
|
-
|
|
11506
|
+
Import document with revisions from other systems.
|
|
11217
11507
|
|
|
11218
|
-
:param
|
|
11219
|
-
:type
|
|
11220
|
-
:param body: Order details. Default value is None.
|
|
11221
|
-
:type body: ~ignos.api.client.models.UpsertCustomerOrderRequest
|
|
11508
|
+
:param body: Default value is None.
|
|
11509
|
+
:type body: ~ignos.api.client.models.ImportDocument
|
|
11222
11510
|
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
|
11223
11511
|
Default value is "application/json".
|
|
11224
11512
|
:paramtype content_type: str
|
|
11225
|
-
:return:
|
|
11226
|
-
:rtype:
|
|
11513
|
+
:return: JSON
|
|
11514
|
+
:rtype: JSON
|
|
11227
11515
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
11228
11516
|
"""
|
|
11229
11517
|
|
|
11230
11518
|
@overload
|
|
11231
|
-
def
|
|
11232
|
-
self,
|
|
11233
|
-
) ->
|
|
11234
|
-
"""
|
|
11519
|
+
def import_document(
|
|
11520
|
+
self, body: Optional[IO] = None, *, content_type: str = "application/json", **kwargs: Any
|
|
11521
|
+
) -> JSON:
|
|
11522
|
+
"""Import document with revisions from other systems.
|
|
11235
11523
|
|
|
11236
|
-
|
|
11524
|
+
Import document with revisions from other systems.
|
|
11237
11525
|
|
|
11238
|
-
:param
|
|
11239
|
-
:type id: str
|
|
11240
|
-
:param body: Order details. Default value is None.
|
|
11526
|
+
:param body: Default value is None.
|
|
11241
11527
|
:type body: IO
|
|
11242
11528
|
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
|
11243
11529
|
Known values are: 'application/*+json', 'application/json', 'text/json'. Default value is
|
|
11244
11530
|
"application/json".
|
|
11245
11531
|
:paramtype content_type: str
|
|
11246
|
-
:return:
|
|
11247
|
-
:rtype:
|
|
11532
|
+
:return: JSON
|
|
11533
|
+
:rtype: JSON
|
|
11248
11534
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
11249
11535
|
"""
|
|
11250
11536
|
|
|
11251
11537
|
@distributed_trace
|
|
11252
|
-
def
|
|
11253
|
-
|
|
11254
|
-
) -> None:
|
|
11255
|
-
"""Upsert a customer order.
|
|
11538
|
+
def import_document(self, body: Optional[Union[_models.ImportDocument, IO]] = None, **kwargs: Any) -> JSON:
|
|
11539
|
+
"""Import document with revisions from other systems.
|
|
11256
11540
|
|
|
11257
|
-
|
|
11541
|
+
Import document with revisions from other systems.
|
|
11258
11542
|
|
|
11259
|
-
:param
|
|
11260
|
-
:type
|
|
11261
|
-
:param body: Order details. Is either a UpsertCustomerOrderRequest type or a IO type. Default
|
|
11262
|
-
value is None.
|
|
11263
|
-
:type body: ~ignos.api.client.models.UpsertCustomerOrderRequest or IO
|
|
11543
|
+
:param body: Is either a ImportDocument type or a IO type. Default value is None.
|
|
11544
|
+
:type body: ~ignos.api.client.models.ImportDocument or IO
|
|
11264
11545
|
:keyword content_type: Body Parameter content-type. Known values are: 'application/*+json',
|
|
11265
11546
|
'application/json', 'text/json'. Default value is None.
|
|
11266
11547
|
:paramtype content_type: str
|
|
11267
|
-
:return:
|
|
11268
|
-
:rtype:
|
|
11548
|
+
:return: JSON
|
|
11549
|
+
:rtype: JSON
|
|
11269
11550
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
11270
11551
|
"""
|
|
11271
11552
|
error_map = {
|
|
@@ -11280,7 +11561,7 @@ class CustomerOrdersOperations:
|
|
|
11280
11561
|
_params = kwargs.pop("params", {}) or {}
|
|
11281
11562
|
|
|
11282
11563
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
11283
|
-
cls: ClsType[
|
|
11564
|
+
cls: ClsType[JSON] = kwargs.pop("cls", None)
|
|
11284
11565
|
|
|
11285
11566
|
content_type = content_type or "application/json"
|
|
11286
11567
|
_json = None
|
|
@@ -11289,12 +11570,11 @@ class CustomerOrdersOperations:
|
|
|
11289
11570
|
_content = body
|
|
11290
11571
|
else:
|
|
11291
11572
|
if body is not None:
|
|
11292
|
-
_json = self._serialize.body(body, "
|
|
11573
|
+
_json = self._serialize.body(body, "ImportDocument")
|
|
11293
11574
|
else:
|
|
11294
11575
|
_json = None
|
|
11295
11576
|
|
|
11296
|
-
request =
|
|
11297
|
-
id=id,
|
|
11577
|
+
request = build_documents_import_document_request(
|
|
11298
11578
|
content_type=content_type,
|
|
11299
11579
|
json=_json,
|
|
11300
11580
|
content=_content,
|
|
@@ -11310,73 +11590,679 @@ class CustomerOrdersOperations:
|
|
|
11310
11590
|
|
|
11311
11591
|
response = pipeline_response.http_response
|
|
11312
11592
|
|
|
11313
|
-
if response.status_code not in [
|
|
11593
|
+
if response.status_code not in [200]:
|
|
11314
11594
|
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
11315
11595
|
raise HttpResponseError(response=response)
|
|
11316
11596
|
|
|
11317
|
-
|
|
11318
|
-
return cls(pipeline_response, None, {})
|
|
11319
|
-
|
|
11320
|
-
@overload
|
|
11321
|
-
def upsert_customer_order_line( # pylint: disable=inconsistent-return-statements
|
|
11322
|
-
self,
|
|
11323
|
-
id: str,
|
|
11324
|
-
line: int,
|
|
11325
|
-
body: Optional[_models.CustomerOrderLineDto] = None,
|
|
11326
|
-
*,
|
|
11327
|
-
content_type: str = "application/json",
|
|
11328
|
-
**kwargs: Any
|
|
11329
|
-
) -> None:
|
|
11330
|
-
"""Upsert a customer order line. Customer order must exist.
|
|
11597
|
+
deserialized = self._deserialize("object", pipeline_response)
|
|
11331
11598
|
|
|
11332
|
-
|
|
11599
|
+
if cls:
|
|
11600
|
+
return cls(pipeline_response, deserialized, {})
|
|
11333
11601
|
|
|
11334
|
-
|
|
11335
|
-
:type id: str
|
|
11336
|
-
:param line: Customer order line. Required.
|
|
11337
|
-
:type line: int
|
|
11338
|
-
:param body: Order line details. Default value is None.
|
|
11339
|
-
:type body: ~ignos.api.client.models.CustomerOrderLineDto
|
|
11340
|
-
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
|
11341
|
-
Default value is "application/json".
|
|
11342
|
-
:paramtype content_type: str
|
|
11343
|
-
:return: None
|
|
11344
|
-
:rtype: None
|
|
11345
|
-
:raises ~azure.core.exceptions.HttpResponseError:
|
|
11346
|
-
"""
|
|
11602
|
+
return deserialized
|
|
11347
11603
|
|
|
11348
|
-
@
|
|
11349
|
-
def
|
|
11350
|
-
self,
|
|
11604
|
+
@distributed_trace
|
|
11605
|
+
def import_document_contents( # pylint: disable=inconsistent-return-statements
|
|
11606
|
+
self, body: Optional[JSON] = None, **kwargs: Any
|
|
11351
11607
|
) -> None:
|
|
11352
|
-
"""
|
|
11608
|
+
"""Register imported content for document revisions.
|
|
11353
11609
|
|
|
11354
|
-
|
|
11610
|
+
Register imported content for document revisions.
|
|
11355
11611
|
|
|
11356
|
-
:param
|
|
11357
|
-
:type
|
|
11358
|
-
:param line: Customer order line. Required.
|
|
11359
|
-
:type line: int
|
|
11360
|
-
:param body: Order line details. Default value is None.
|
|
11361
|
-
:type body: IO
|
|
11362
|
-
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
|
11363
|
-
Known values are: 'application/*+json', 'application/json', 'text/json'. Default value is
|
|
11364
|
-
"application/json".
|
|
11365
|
-
:paramtype content_type: str
|
|
11612
|
+
:param body: Default value is None.
|
|
11613
|
+
:type body: JSON
|
|
11366
11614
|
:return: None
|
|
11367
11615
|
:rtype: None
|
|
11368
11616
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
11369
11617
|
"""
|
|
11618
|
+
error_map = {
|
|
11619
|
+
401: ClientAuthenticationError,
|
|
11620
|
+
404: ResourceNotFoundError,
|
|
11621
|
+
409: ResourceExistsError,
|
|
11622
|
+
304: ResourceNotModifiedError,
|
|
11623
|
+
}
|
|
11624
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
11370
11625
|
|
|
11371
|
-
|
|
11372
|
-
|
|
11373
|
-
self, id: str, line: int, body: Optional[Union[_models.CustomerOrderLineDto, IO]] = None, **kwargs: Any
|
|
11374
|
-
) -> None:
|
|
11375
|
-
"""Upsert a customer order line. Customer order must exist.
|
|
11626
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
11627
|
+
_params = kwargs.pop("params", {}) or {}
|
|
11376
11628
|
|
|
11377
|
-
|
|
11629
|
+
content_type: str = kwargs.pop("content_type", _headers.pop("Content-Type", "application/json"))
|
|
11630
|
+
cls: ClsType[None] = kwargs.pop("cls", None)
|
|
11378
11631
|
|
|
11379
|
-
|
|
11632
|
+
if body is not None:
|
|
11633
|
+
_json = self._serialize.body(body, "object")
|
|
11634
|
+
else:
|
|
11635
|
+
_json = None
|
|
11636
|
+
|
|
11637
|
+
request = build_documents_import_document_contents_request(
|
|
11638
|
+
content_type=content_type,
|
|
11639
|
+
json=_json,
|
|
11640
|
+
headers=_headers,
|
|
11641
|
+
params=_params,
|
|
11642
|
+
)
|
|
11643
|
+
request.url = self._client.format_url(request.url)
|
|
11644
|
+
|
|
11645
|
+
_stream = False
|
|
11646
|
+
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
|
11647
|
+
request, stream=_stream, **kwargs
|
|
11648
|
+
)
|
|
11649
|
+
|
|
11650
|
+
response = pipeline_response.http_response
|
|
11651
|
+
|
|
11652
|
+
if response.status_code not in [204]:
|
|
11653
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
11654
|
+
raise HttpResponseError(response=response)
|
|
11655
|
+
|
|
11656
|
+
if cls:
|
|
11657
|
+
return cls(pipeline_response, None, {})
|
|
11658
|
+
|
|
11659
|
+
|
|
11660
|
+
class DocumentTypesOperations:
|
|
11661
|
+
"""
|
|
11662
|
+
.. warning::
|
|
11663
|
+
**DO NOT** instantiate this class directly.
|
|
11664
|
+
|
|
11665
|
+
Instead, you should access the following operations through
|
|
11666
|
+
:class:`~ignos.api.client.IgnosPortal`'s
|
|
11667
|
+
:attr:`document_types` attribute.
|
|
11668
|
+
"""
|
|
11669
|
+
|
|
11670
|
+
models = _models
|
|
11671
|
+
|
|
11672
|
+
def __init__(self, *args, **kwargs):
|
|
11673
|
+
input_args = list(args)
|
|
11674
|
+
self._client = input_args.pop(0) if input_args else kwargs.pop("client")
|
|
11675
|
+
self._config = input_args.pop(0) if input_args else kwargs.pop("config")
|
|
11676
|
+
self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
|
11677
|
+
self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
|
11678
|
+
|
|
11679
|
+
@distributed_trace
|
|
11680
|
+
def list_document_types(self, *, include_inactive: bool = False, **kwargs: Any) -> List[_models.DocumentTypeDto]:
|
|
11681
|
+
"""list_document_types.
|
|
11682
|
+
|
|
11683
|
+
:keyword include_inactive: Default value is False.
|
|
11684
|
+
:paramtype include_inactive: bool
|
|
11685
|
+
:return: list of DocumentTypeDto
|
|
11686
|
+
:rtype: list[~ignos.api.client.models.DocumentTypeDto]
|
|
11687
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
11688
|
+
"""
|
|
11689
|
+
error_map = {
|
|
11690
|
+
401: ClientAuthenticationError,
|
|
11691
|
+
404: ResourceNotFoundError,
|
|
11692
|
+
409: ResourceExistsError,
|
|
11693
|
+
304: ResourceNotModifiedError,
|
|
11694
|
+
}
|
|
11695
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
11696
|
+
|
|
11697
|
+
_headers = kwargs.pop("headers", {}) or {}
|
|
11698
|
+
_params = kwargs.pop("params", {}) or {}
|
|
11699
|
+
|
|
11700
|
+
cls: ClsType[List[_models.DocumentTypeDto]] = kwargs.pop("cls", None)
|
|
11701
|
+
|
|
11702
|
+
request = build_document_types_list_document_types_request(
|
|
11703
|
+
include_inactive=include_inactive,
|
|
11704
|
+
headers=_headers,
|
|
11705
|
+
params=_params,
|
|
11706
|
+
)
|
|
11707
|
+
request.url = self._client.format_url(request.url)
|
|
11708
|
+
|
|
11709
|
+
_stream = False
|
|
11710
|
+
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
|
11711
|
+
request, stream=_stream, **kwargs
|
|
11712
|
+
)
|
|
11713
|
+
|
|
11714
|
+
response = pipeline_response.http_response
|
|
11715
|
+
|
|
11716
|
+
if response.status_code not in [200]:
|
|
11717
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
11718
|
+
raise HttpResponseError(response=response)
|
|
11719
|
+
|
|
11720
|
+
deserialized = self._deserialize("[DocumentTypeDto]", pipeline_response)
|
|
11721
|
+
|
|
11722
|
+
if cls:
|
|
11723
|
+
return cls(pipeline_response, deserialized, {})
|
|
11724
|
+
|
|
11725
|
+
return deserialized
|
|
11726
|
+
|
|
11727
|
+
@overload
|
|
11728
|
+
def create_document_type(
|
|
11729
|
+
self,
|
|
11730
|
+
body: Optional[_models.CreateDocumentType] = None,
|
|
11731
|
+
*,
|
|
11732
|
+
content_type: str = "application/json",
|
|
11733
|
+
**kwargs: Any
|
|
11734
|
+
) -> _models.DocumentTypeDto:
|
|
11735
|
+
"""create_document_type.
|
|
11736
|
+
|
|
11737
|
+
:param body: Default value is None.
|
|
11738
|
+
:type body: ~ignos.api.client.models.CreateDocumentType
|
|
11739
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
|
11740
|
+
Default value is "application/json".
|
|
11741
|
+
:paramtype content_type: str
|
|
11742
|
+
:return: DocumentTypeDto
|
|
11743
|
+
:rtype: ~ignos.api.client.models.DocumentTypeDto
|
|
11744
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
11745
|
+
"""
|
|
11746
|
+
|
|
11747
|
+
@overload
|
|
11748
|
+
def create_document_type(
|
|
11749
|
+
self, body: Optional[IO] = None, *, content_type: str = "application/json", **kwargs: Any
|
|
11750
|
+
) -> _models.DocumentTypeDto:
|
|
11751
|
+
"""create_document_type.
|
|
11752
|
+
|
|
11753
|
+
:param body: Default value is None.
|
|
11754
|
+
:type body: IO
|
|
11755
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
|
11756
|
+
Known values are: 'application/*+json', 'application/json', 'text/json'. Default value is
|
|
11757
|
+
"application/json".
|
|
11758
|
+
:paramtype content_type: str
|
|
11759
|
+
:return: DocumentTypeDto
|
|
11760
|
+
:rtype: ~ignos.api.client.models.DocumentTypeDto
|
|
11761
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
11762
|
+
"""
|
|
11763
|
+
|
|
11764
|
+
@distributed_trace
|
|
11765
|
+
def create_document_type(
|
|
11766
|
+
self, body: Optional[Union[_models.CreateDocumentType, IO]] = None, **kwargs: Any
|
|
11767
|
+
) -> _models.DocumentTypeDto:
|
|
11768
|
+
"""create_document_type.
|
|
11769
|
+
|
|
11770
|
+
:param body: Is either a CreateDocumentType type or a IO type. Default value is None.
|
|
11771
|
+
:type body: ~ignos.api.client.models.CreateDocumentType or IO
|
|
11772
|
+
:keyword content_type: Body Parameter content-type. Known values are: 'application/*+json',
|
|
11773
|
+
'application/json', 'text/json'. Default value is None.
|
|
11774
|
+
:paramtype content_type: str
|
|
11775
|
+
:return: DocumentTypeDto
|
|
11776
|
+
:rtype: ~ignos.api.client.models.DocumentTypeDto
|
|
11777
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
11778
|
+
"""
|
|
11779
|
+
error_map = {
|
|
11780
|
+
401: ClientAuthenticationError,
|
|
11781
|
+
404: ResourceNotFoundError,
|
|
11782
|
+
409: ResourceExistsError,
|
|
11783
|
+
304: ResourceNotModifiedError,
|
|
11784
|
+
}
|
|
11785
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
11786
|
+
|
|
11787
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
11788
|
+
_params = kwargs.pop("params", {}) or {}
|
|
11789
|
+
|
|
11790
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
11791
|
+
cls: ClsType[_models.DocumentTypeDto] = kwargs.pop("cls", None)
|
|
11792
|
+
|
|
11793
|
+
content_type = content_type or "application/json"
|
|
11794
|
+
_json = None
|
|
11795
|
+
_content = None
|
|
11796
|
+
if isinstance(body, (IOBase, bytes)):
|
|
11797
|
+
_content = body
|
|
11798
|
+
else:
|
|
11799
|
+
if body is not None:
|
|
11800
|
+
_json = self._serialize.body(body, "CreateDocumentType")
|
|
11801
|
+
else:
|
|
11802
|
+
_json = None
|
|
11803
|
+
|
|
11804
|
+
request = build_document_types_create_document_type_request(
|
|
11805
|
+
content_type=content_type,
|
|
11806
|
+
json=_json,
|
|
11807
|
+
content=_content,
|
|
11808
|
+
headers=_headers,
|
|
11809
|
+
params=_params,
|
|
11810
|
+
)
|
|
11811
|
+
request.url = self._client.format_url(request.url)
|
|
11812
|
+
|
|
11813
|
+
_stream = False
|
|
11814
|
+
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
|
11815
|
+
request, stream=_stream, **kwargs
|
|
11816
|
+
)
|
|
11817
|
+
|
|
11818
|
+
response = pipeline_response.http_response
|
|
11819
|
+
|
|
11820
|
+
if response.status_code not in [200]:
|
|
11821
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
11822
|
+
raise HttpResponseError(response=response)
|
|
11823
|
+
|
|
11824
|
+
deserialized = self._deserialize("DocumentTypeDto", pipeline_response)
|
|
11825
|
+
|
|
11826
|
+
if cls:
|
|
11827
|
+
return cls(pipeline_response, deserialized, {})
|
|
11828
|
+
|
|
11829
|
+
return deserialized
|
|
11830
|
+
|
|
11831
|
+
@distributed_trace
|
|
11832
|
+
def update_document_type(self, id: str, body: Optional[JSON] = None, **kwargs: Any) -> _models.DocumentTypeDto:
|
|
11833
|
+
"""update_document_type.
|
|
11834
|
+
|
|
11835
|
+
:param id: Required.
|
|
11836
|
+
:type id: str
|
|
11837
|
+
:param body: Default value is None.
|
|
11838
|
+
:type body: JSON
|
|
11839
|
+
:return: DocumentTypeDto
|
|
11840
|
+
:rtype: ~ignos.api.client.models.DocumentTypeDto
|
|
11841
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
11842
|
+
"""
|
|
11843
|
+
error_map = {
|
|
11844
|
+
401: ClientAuthenticationError,
|
|
11845
|
+
404: ResourceNotFoundError,
|
|
11846
|
+
409: ResourceExistsError,
|
|
11847
|
+
304: ResourceNotModifiedError,
|
|
11848
|
+
}
|
|
11849
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
11850
|
+
|
|
11851
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
11852
|
+
_params = kwargs.pop("params", {}) or {}
|
|
11853
|
+
|
|
11854
|
+
content_type: str = kwargs.pop("content_type", _headers.pop("Content-Type", "application/json"))
|
|
11855
|
+
cls: ClsType[_models.DocumentTypeDto] = kwargs.pop("cls", None)
|
|
11856
|
+
|
|
11857
|
+
if body is not None:
|
|
11858
|
+
_json = self._serialize.body(body, "object")
|
|
11859
|
+
else:
|
|
11860
|
+
_json = None
|
|
11861
|
+
|
|
11862
|
+
request = build_document_types_update_document_type_request(
|
|
11863
|
+
id=id,
|
|
11864
|
+
content_type=content_type,
|
|
11865
|
+
json=_json,
|
|
11866
|
+
headers=_headers,
|
|
11867
|
+
params=_params,
|
|
11868
|
+
)
|
|
11869
|
+
request.url = self._client.format_url(request.url)
|
|
11870
|
+
|
|
11871
|
+
_stream = False
|
|
11872
|
+
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
|
11873
|
+
request, stream=_stream, **kwargs
|
|
11874
|
+
)
|
|
11875
|
+
|
|
11876
|
+
response = pipeline_response.http_response
|
|
11877
|
+
|
|
11878
|
+
if response.status_code not in [200]:
|
|
11879
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
11880
|
+
raise HttpResponseError(response=response)
|
|
11881
|
+
|
|
11882
|
+
deserialized = self._deserialize("DocumentTypeDto", pipeline_response)
|
|
11883
|
+
|
|
11884
|
+
if cls:
|
|
11885
|
+
return cls(pipeline_response, deserialized, {})
|
|
11886
|
+
|
|
11887
|
+
return deserialized
|
|
11888
|
+
|
|
11889
|
+
@distributed_trace
|
|
11890
|
+
def delete_document_type(self, id: str, **kwargs: Any) -> None: # pylint: disable=inconsistent-return-statements
|
|
11891
|
+
"""Delete document type. Only allowed if not used.
|
|
11892
|
+
|
|
11893
|
+
Delete document type. Only allowed if not used.
|
|
11894
|
+
|
|
11895
|
+
:param id: Required.
|
|
11896
|
+
:type id: str
|
|
11897
|
+
:return: None
|
|
11898
|
+
:rtype: None
|
|
11899
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
11900
|
+
"""
|
|
11901
|
+
error_map = {
|
|
11902
|
+
401: ClientAuthenticationError,
|
|
11903
|
+
404: ResourceNotFoundError,
|
|
11904
|
+
409: ResourceExistsError,
|
|
11905
|
+
304: ResourceNotModifiedError,
|
|
11906
|
+
}
|
|
11907
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
11908
|
+
|
|
11909
|
+
_headers = kwargs.pop("headers", {}) or {}
|
|
11910
|
+
_params = kwargs.pop("params", {}) or {}
|
|
11911
|
+
|
|
11912
|
+
cls: ClsType[None] = kwargs.pop("cls", None)
|
|
11913
|
+
|
|
11914
|
+
request = build_document_types_delete_document_type_request(
|
|
11915
|
+
id=id,
|
|
11916
|
+
headers=_headers,
|
|
11917
|
+
params=_params,
|
|
11918
|
+
)
|
|
11919
|
+
request.url = self._client.format_url(request.url)
|
|
11920
|
+
|
|
11921
|
+
_stream = False
|
|
11922
|
+
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
|
11923
|
+
request, stream=_stream, **kwargs
|
|
11924
|
+
)
|
|
11925
|
+
|
|
11926
|
+
response = pipeline_response.http_response
|
|
11927
|
+
|
|
11928
|
+
if response.status_code not in [204]:
|
|
11929
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
11930
|
+
raise HttpResponseError(response=response)
|
|
11931
|
+
|
|
11932
|
+
if cls:
|
|
11933
|
+
return cls(pipeline_response, None, {})
|
|
11934
|
+
|
|
11935
|
+
@distributed_trace
|
|
11936
|
+
def active_document_type(self, id: str, **kwargs: Any) -> None: # pylint: disable=inconsistent-return-statements
|
|
11937
|
+
"""active_document_type.
|
|
11938
|
+
|
|
11939
|
+
:param id: Required.
|
|
11940
|
+
:type id: str
|
|
11941
|
+
:return: None
|
|
11942
|
+
:rtype: None
|
|
11943
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
11944
|
+
"""
|
|
11945
|
+
error_map = {
|
|
11946
|
+
401: ClientAuthenticationError,
|
|
11947
|
+
404: ResourceNotFoundError,
|
|
11948
|
+
409: ResourceExistsError,
|
|
11949
|
+
304: ResourceNotModifiedError,
|
|
11950
|
+
}
|
|
11951
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
11952
|
+
|
|
11953
|
+
_headers = kwargs.pop("headers", {}) or {}
|
|
11954
|
+
_params = kwargs.pop("params", {}) or {}
|
|
11955
|
+
|
|
11956
|
+
cls: ClsType[None] = kwargs.pop("cls", None)
|
|
11957
|
+
|
|
11958
|
+
request = build_document_types_active_document_type_request(
|
|
11959
|
+
id=id,
|
|
11960
|
+
headers=_headers,
|
|
11961
|
+
params=_params,
|
|
11962
|
+
)
|
|
11963
|
+
request.url = self._client.format_url(request.url)
|
|
11964
|
+
|
|
11965
|
+
_stream = False
|
|
11966
|
+
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
|
11967
|
+
request, stream=_stream, **kwargs
|
|
11968
|
+
)
|
|
11969
|
+
|
|
11970
|
+
response = pipeline_response.http_response
|
|
11971
|
+
|
|
11972
|
+
if response.status_code not in [204]:
|
|
11973
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
11974
|
+
raise HttpResponseError(response=response)
|
|
11975
|
+
|
|
11976
|
+
if cls:
|
|
11977
|
+
return cls(pipeline_response, None, {})
|
|
11978
|
+
|
|
11979
|
+
@distributed_trace
|
|
11980
|
+
def deactive_document_type(self, id: str, **kwargs: Any) -> None: # pylint: disable=inconsistent-return-statements
|
|
11981
|
+
"""deactive_document_type.
|
|
11982
|
+
|
|
11983
|
+
:param id: Required.
|
|
11984
|
+
:type id: str
|
|
11985
|
+
:return: None
|
|
11986
|
+
:rtype: None
|
|
11987
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
11988
|
+
"""
|
|
11989
|
+
error_map = {
|
|
11990
|
+
401: ClientAuthenticationError,
|
|
11991
|
+
404: ResourceNotFoundError,
|
|
11992
|
+
409: ResourceExistsError,
|
|
11993
|
+
304: ResourceNotModifiedError,
|
|
11994
|
+
}
|
|
11995
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
11996
|
+
|
|
11997
|
+
_headers = kwargs.pop("headers", {}) or {}
|
|
11998
|
+
_params = kwargs.pop("params", {}) or {}
|
|
11999
|
+
|
|
12000
|
+
cls: ClsType[None] = kwargs.pop("cls", None)
|
|
12001
|
+
|
|
12002
|
+
request = build_document_types_deactive_document_type_request(
|
|
12003
|
+
id=id,
|
|
12004
|
+
headers=_headers,
|
|
12005
|
+
params=_params,
|
|
12006
|
+
)
|
|
12007
|
+
request.url = self._client.format_url(request.url)
|
|
12008
|
+
|
|
12009
|
+
_stream = False
|
|
12010
|
+
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
|
12011
|
+
request, stream=_stream, **kwargs
|
|
12012
|
+
)
|
|
12013
|
+
|
|
12014
|
+
response = pipeline_response.http_response
|
|
12015
|
+
|
|
12016
|
+
if response.status_code not in [204]:
|
|
12017
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
12018
|
+
raise HttpResponseError(response=response)
|
|
12019
|
+
|
|
12020
|
+
if cls:
|
|
12021
|
+
return cls(pipeline_response, None, {})
|
|
12022
|
+
|
|
12023
|
+
@distributed_trace
|
|
12024
|
+
def list_available_tags_for_document_type(self, id: str, **kwargs: Any) -> List[str]:
|
|
12025
|
+
"""list_available_tags_for_document_type.
|
|
12026
|
+
|
|
12027
|
+
:param id: Required.
|
|
12028
|
+
:type id: str
|
|
12029
|
+
:return: list of str
|
|
12030
|
+
:rtype: list[str]
|
|
12031
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
12032
|
+
"""
|
|
12033
|
+
error_map = {
|
|
12034
|
+
401: ClientAuthenticationError,
|
|
12035
|
+
404: ResourceNotFoundError,
|
|
12036
|
+
409: ResourceExistsError,
|
|
12037
|
+
304: ResourceNotModifiedError,
|
|
12038
|
+
}
|
|
12039
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
12040
|
+
|
|
12041
|
+
_headers = kwargs.pop("headers", {}) or {}
|
|
12042
|
+
_params = kwargs.pop("params", {}) or {}
|
|
12043
|
+
|
|
12044
|
+
cls: ClsType[List[str]] = kwargs.pop("cls", None)
|
|
12045
|
+
|
|
12046
|
+
request = build_document_types_list_available_tags_for_document_type_request(
|
|
12047
|
+
id=id,
|
|
12048
|
+
headers=_headers,
|
|
12049
|
+
params=_params,
|
|
12050
|
+
)
|
|
12051
|
+
request.url = self._client.format_url(request.url)
|
|
12052
|
+
|
|
12053
|
+
_stream = False
|
|
12054
|
+
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
|
12055
|
+
request, stream=_stream, **kwargs
|
|
12056
|
+
)
|
|
12057
|
+
|
|
12058
|
+
response = pipeline_response.http_response
|
|
12059
|
+
|
|
12060
|
+
if response.status_code not in [200]:
|
|
12061
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
12062
|
+
raise HttpResponseError(response=response)
|
|
12063
|
+
|
|
12064
|
+
deserialized = self._deserialize("[str]", pipeline_response)
|
|
12065
|
+
|
|
12066
|
+
if cls:
|
|
12067
|
+
return cls(pipeline_response, deserialized, {})
|
|
12068
|
+
|
|
12069
|
+
return deserialized
|
|
12070
|
+
|
|
12071
|
+
|
|
12072
|
+
class CustomerOrdersOperations:
|
|
12073
|
+
"""
|
|
12074
|
+
.. warning::
|
|
12075
|
+
**DO NOT** instantiate this class directly.
|
|
12076
|
+
|
|
12077
|
+
Instead, you should access the following operations through
|
|
12078
|
+
:class:`~ignos.api.client.IgnosPortal`'s
|
|
12079
|
+
:attr:`customer_orders` attribute.
|
|
12080
|
+
"""
|
|
12081
|
+
|
|
12082
|
+
models = _models
|
|
12083
|
+
|
|
12084
|
+
def __init__(self, *args, **kwargs):
|
|
12085
|
+
input_args = list(args)
|
|
12086
|
+
self._client = input_args.pop(0) if input_args else kwargs.pop("client")
|
|
12087
|
+
self._config = input_args.pop(0) if input_args else kwargs.pop("config")
|
|
12088
|
+
self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
|
12089
|
+
self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
|
12090
|
+
|
|
12091
|
+
@overload
|
|
12092
|
+
def upsert_customer_order( # pylint: disable=inconsistent-return-statements
|
|
12093
|
+
self,
|
|
12094
|
+
id: str,
|
|
12095
|
+
body: Optional[_models.UpsertCustomerOrderRequest] = None,
|
|
12096
|
+
*,
|
|
12097
|
+
content_type: str = "application/json",
|
|
12098
|
+
**kwargs: Any
|
|
12099
|
+
) -> None:
|
|
12100
|
+
"""Upsert a customer order.
|
|
12101
|
+
|
|
12102
|
+
Upsert a customer order.
|
|
12103
|
+
|
|
12104
|
+
:param id: Customer order id. Required.
|
|
12105
|
+
:type id: str
|
|
12106
|
+
:param body: Order details. Default value is None.
|
|
12107
|
+
:type body: ~ignos.api.client.models.UpsertCustomerOrderRequest
|
|
12108
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
|
12109
|
+
Default value is "application/json".
|
|
12110
|
+
:paramtype content_type: str
|
|
12111
|
+
:return: None
|
|
12112
|
+
:rtype: None
|
|
12113
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
12114
|
+
"""
|
|
12115
|
+
|
|
12116
|
+
@overload
|
|
12117
|
+
def upsert_customer_order( # pylint: disable=inconsistent-return-statements
|
|
12118
|
+
self, id: str, body: Optional[IO] = None, *, content_type: str = "application/json", **kwargs: Any
|
|
12119
|
+
) -> None:
|
|
12120
|
+
"""Upsert a customer order.
|
|
12121
|
+
|
|
12122
|
+
Upsert a customer order.
|
|
12123
|
+
|
|
12124
|
+
:param id: Customer order id. Required.
|
|
12125
|
+
:type id: str
|
|
12126
|
+
:param body: Order details. Default value is None.
|
|
12127
|
+
:type body: IO
|
|
12128
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
|
12129
|
+
Known values are: 'application/*+json', 'application/json', 'text/json'. Default value is
|
|
12130
|
+
"application/json".
|
|
12131
|
+
:paramtype content_type: str
|
|
12132
|
+
:return: None
|
|
12133
|
+
:rtype: None
|
|
12134
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
12135
|
+
"""
|
|
12136
|
+
|
|
12137
|
+
@distributed_trace
|
|
12138
|
+
def upsert_customer_order( # pylint: disable=inconsistent-return-statements
|
|
12139
|
+
self, id: str, body: Optional[Union[_models.UpsertCustomerOrderRequest, IO]] = None, **kwargs: Any
|
|
12140
|
+
) -> None:
|
|
12141
|
+
"""Upsert a customer order.
|
|
12142
|
+
|
|
12143
|
+
Upsert a customer order.
|
|
12144
|
+
|
|
12145
|
+
:param id: Customer order id. Required.
|
|
12146
|
+
:type id: str
|
|
12147
|
+
:param body: Order details. Is either a UpsertCustomerOrderRequest type or a IO type. Default
|
|
12148
|
+
value is None.
|
|
12149
|
+
:type body: ~ignos.api.client.models.UpsertCustomerOrderRequest or IO
|
|
12150
|
+
:keyword content_type: Body Parameter content-type. Known values are: 'application/*+json',
|
|
12151
|
+
'application/json', 'text/json'. Default value is None.
|
|
12152
|
+
:paramtype content_type: str
|
|
12153
|
+
:return: None
|
|
12154
|
+
:rtype: None
|
|
12155
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
12156
|
+
"""
|
|
12157
|
+
error_map = {
|
|
12158
|
+
401: ClientAuthenticationError,
|
|
12159
|
+
404: ResourceNotFoundError,
|
|
12160
|
+
409: ResourceExistsError,
|
|
12161
|
+
304: ResourceNotModifiedError,
|
|
12162
|
+
}
|
|
12163
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
12164
|
+
|
|
12165
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
12166
|
+
_params = kwargs.pop("params", {}) or {}
|
|
12167
|
+
|
|
12168
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
12169
|
+
cls: ClsType[None] = kwargs.pop("cls", None)
|
|
12170
|
+
|
|
12171
|
+
content_type = content_type or "application/json"
|
|
12172
|
+
_json = None
|
|
12173
|
+
_content = None
|
|
12174
|
+
if isinstance(body, (IOBase, bytes)):
|
|
12175
|
+
_content = body
|
|
12176
|
+
else:
|
|
12177
|
+
if body is not None:
|
|
12178
|
+
_json = self._serialize.body(body, "UpsertCustomerOrderRequest")
|
|
12179
|
+
else:
|
|
12180
|
+
_json = None
|
|
12181
|
+
|
|
12182
|
+
request = build_customer_orders_upsert_customer_order_request(
|
|
12183
|
+
id=id,
|
|
12184
|
+
content_type=content_type,
|
|
12185
|
+
json=_json,
|
|
12186
|
+
content=_content,
|
|
12187
|
+
headers=_headers,
|
|
12188
|
+
params=_params,
|
|
12189
|
+
)
|
|
12190
|
+
request.url = self._client.format_url(request.url)
|
|
12191
|
+
|
|
12192
|
+
_stream = False
|
|
12193
|
+
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
|
12194
|
+
request, stream=_stream, **kwargs
|
|
12195
|
+
)
|
|
12196
|
+
|
|
12197
|
+
response = pipeline_response.http_response
|
|
12198
|
+
|
|
12199
|
+
if response.status_code not in [204]:
|
|
12200
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
12201
|
+
raise HttpResponseError(response=response)
|
|
12202
|
+
|
|
12203
|
+
if cls:
|
|
12204
|
+
return cls(pipeline_response, None, {})
|
|
12205
|
+
|
|
12206
|
+
@overload
|
|
12207
|
+
def upsert_customer_order_line( # pylint: disable=inconsistent-return-statements
|
|
12208
|
+
self,
|
|
12209
|
+
id: str,
|
|
12210
|
+
line: int,
|
|
12211
|
+
body: Optional[_models.CustomerOrderLineDto] = None,
|
|
12212
|
+
*,
|
|
12213
|
+
content_type: str = "application/json",
|
|
12214
|
+
**kwargs: Any
|
|
12215
|
+
) -> None:
|
|
12216
|
+
"""Upsert a customer order line. Customer order must exist.
|
|
12217
|
+
|
|
12218
|
+
Upsert a customer order line. Customer order must exist.
|
|
12219
|
+
|
|
12220
|
+
:param id: Customer order id. Required.
|
|
12221
|
+
:type id: str
|
|
12222
|
+
:param line: Customer order line. Required.
|
|
12223
|
+
:type line: int
|
|
12224
|
+
:param body: Order line details. Default value is None.
|
|
12225
|
+
:type body: ~ignos.api.client.models.CustomerOrderLineDto
|
|
12226
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
|
12227
|
+
Default value is "application/json".
|
|
12228
|
+
:paramtype content_type: str
|
|
12229
|
+
:return: None
|
|
12230
|
+
:rtype: None
|
|
12231
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
12232
|
+
"""
|
|
12233
|
+
|
|
12234
|
+
@overload
|
|
12235
|
+
def upsert_customer_order_line( # pylint: disable=inconsistent-return-statements
|
|
12236
|
+
self, id: str, line: int, body: Optional[IO] = None, *, content_type: str = "application/json", **kwargs: Any
|
|
12237
|
+
) -> None:
|
|
12238
|
+
"""Upsert a customer order line. Customer order must exist.
|
|
12239
|
+
|
|
12240
|
+
Upsert a customer order line. Customer order must exist.
|
|
12241
|
+
|
|
12242
|
+
:param id: Customer order id. Required.
|
|
12243
|
+
:type id: str
|
|
12244
|
+
:param line: Customer order line. Required.
|
|
12245
|
+
:type line: int
|
|
12246
|
+
:param body: Order line details. Default value is None.
|
|
12247
|
+
:type body: IO
|
|
12248
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
|
12249
|
+
Known values are: 'application/*+json', 'application/json', 'text/json'. Default value is
|
|
12250
|
+
"application/json".
|
|
12251
|
+
:paramtype content_type: str
|
|
12252
|
+
:return: None
|
|
12253
|
+
:rtype: None
|
|
12254
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
12255
|
+
"""
|
|
12256
|
+
|
|
12257
|
+
@distributed_trace
|
|
12258
|
+
def upsert_customer_order_line( # pylint: disable=inconsistent-return-statements
|
|
12259
|
+
self, id: str, line: int, body: Optional[Union[_models.CustomerOrderLineDto, IO]] = None, **kwargs: Any
|
|
12260
|
+
) -> None:
|
|
12261
|
+
"""Upsert a customer order line. Customer order must exist.
|
|
12262
|
+
|
|
12263
|
+
Upsert a customer order line. Customer order must exist.
|
|
12264
|
+
|
|
12265
|
+
:param id: Customer order id. Required.
|
|
11380
12266
|
:type id: str
|
|
11381
12267
|
:param line: Customer order line. Required.
|
|
11382
12268
|
:type line: int
|
|
@@ -11562,6 +12448,108 @@ class WorkordersOperations:
|
|
|
11562
12448
|
if cls:
|
|
11563
12449
|
return cls(pipeline_response, None, {})
|
|
11564
12450
|
|
|
12451
|
+
@overload
|
|
12452
|
+
def upsert_workorder_v2( # pylint: disable=inconsistent-return-statements
|
|
12453
|
+
self, body: Optional[_models.UpsertWorkorderV2] = None, *, content_type: str = "application/json", **kwargs: Any
|
|
12454
|
+
) -> None:
|
|
12455
|
+
"""Create or update a workorder.
|
|
12456
|
+
|
|
12457
|
+
Create or update a workorder.
|
|
12458
|
+
|
|
12459
|
+
:param body: Default value is None.
|
|
12460
|
+
:type body: ~ignos.api.client.models.UpsertWorkorderV2
|
|
12461
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
|
12462
|
+
Default value is "application/json".
|
|
12463
|
+
:paramtype content_type: str
|
|
12464
|
+
:return: None
|
|
12465
|
+
:rtype: None
|
|
12466
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
12467
|
+
"""
|
|
12468
|
+
|
|
12469
|
+
@overload
|
|
12470
|
+
def upsert_workorder_v2( # pylint: disable=inconsistent-return-statements
|
|
12471
|
+
self, body: Optional[IO] = None, *, content_type: str = "application/json", **kwargs: Any
|
|
12472
|
+
) -> None:
|
|
12473
|
+
"""Create or update a workorder.
|
|
12474
|
+
|
|
12475
|
+
Create or update a workorder.
|
|
12476
|
+
|
|
12477
|
+
:param body: Default value is None.
|
|
12478
|
+
:type body: IO
|
|
12479
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
|
12480
|
+
Known values are: 'application/*+json', 'application/json', 'text/json'. Default value is
|
|
12481
|
+
"application/json".
|
|
12482
|
+
:paramtype content_type: str
|
|
12483
|
+
:return: None
|
|
12484
|
+
:rtype: None
|
|
12485
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
12486
|
+
"""
|
|
12487
|
+
|
|
12488
|
+
@distributed_trace
|
|
12489
|
+
def upsert_workorder_v2( # pylint: disable=inconsistent-return-statements
|
|
12490
|
+
self, body: Optional[Union[_models.UpsertWorkorderV2, IO]] = None, **kwargs: Any
|
|
12491
|
+
) -> None:
|
|
12492
|
+
"""Create or update a workorder.
|
|
12493
|
+
|
|
12494
|
+
Create or update a workorder.
|
|
12495
|
+
|
|
12496
|
+
:param body: Is either a UpsertWorkorderV2 type or a IO type. Default value is None.
|
|
12497
|
+
:type body: ~ignos.api.client.models.UpsertWorkorderV2 or IO
|
|
12498
|
+
:keyword content_type: Body Parameter content-type. Known values are: 'application/*+json',
|
|
12499
|
+
'application/json', 'text/json'. Default value is None.
|
|
12500
|
+
:paramtype content_type: str
|
|
12501
|
+
:return: None
|
|
12502
|
+
:rtype: None
|
|
12503
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
12504
|
+
"""
|
|
12505
|
+
error_map = {
|
|
12506
|
+
401: ClientAuthenticationError,
|
|
12507
|
+
404: ResourceNotFoundError,
|
|
12508
|
+
409: ResourceExistsError,
|
|
12509
|
+
304: ResourceNotModifiedError,
|
|
12510
|
+
}
|
|
12511
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
12512
|
+
|
|
12513
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
12514
|
+
_params = kwargs.pop("params", {}) or {}
|
|
12515
|
+
|
|
12516
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
12517
|
+
cls: ClsType[None] = kwargs.pop("cls", None)
|
|
12518
|
+
|
|
12519
|
+
content_type = content_type or "application/json"
|
|
12520
|
+
_json = None
|
|
12521
|
+
_content = None
|
|
12522
|
+
if isinstance(body, (IOBase, bytes)):
|
|
12523
|
+
_content = body
|
|
12524
|
+
else:
|
|
12525
|
+
if body is not None:
|
|
12526
|
+
_json = self._serialize.body(body, "UpsertWorkorderV2")
|
|
12527
|
+
else:
|
|
12528
|
+
_json = None
|
|
12529
|
+
|
|
12530
|
+
request = build_workorders_upsert_workorder_v2_request(
|
|
12531
|
+
content_type=content_type,
|
|
12532
|
+
json=_json,
|
|
12533
|
+
content=_content,
|
|
12534
|
+
headers=_headers,
|
|
12535
|
+
params=_params,
|
|
12536
|
+
)
|
|
12537
|
+
request.url = self._client.format_url(request.url)
|
|
12538
|
+
|
|
12539
|
+
_stream = False
|
|
12540
|
+
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
|
12541
|
+
request, stream=_stream, **kwargs
|
|
12542
|
+
)
|
|
12543
|
+
|
|
12544
|
+
response = pipeline_response.http_response
|
|
12545
|
+
|
|
12546
|
+
if response.status_code not in [204]:
|
|
12547
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
12548
|
+
raise HttpResponseError(response=response)
|
|
12549
|
+
|
|
12550
|
+
if cls:
|
|
12551
|
+
return cls(pipeline_response, None, {})
|
|
12552
|
+
|
|
11565
12553
|
@distributed_trace
|
|
11566
12554
|
def list_workorders(
|
|
11567
12555
|
self,
|
|
@@ -11632,6 +12620,121 @@ class WorkordersOperations:
|
|
|
11632
12620
|
|
|
11633
12621
|
return deserialized
|
|
11634
12622
|
|
|
12623
|
+
@overload
|
|
12624
|
+
def upsert_workorder_consumption( # pylint: disable=inconsistent-return-statements
|
|
12625
|
+
self,
|
|
12626
|
+
id: str,
|
|
12627
|
+
body: Optional[_models.UpsertWorkOrderConsumptionsRequest] = None,
|
|
12628
|
+
*,
|
|
12629
|
+
content_type: str = "application/json",
|
|
12630
|
+
**kwargs: Any
|
|
12631
|
+
) -> None:
|
|
12632
|
+
"""Update consumed materials on work order.
|
|
12633
|
+
|
|
12634
|
+
Update consumed materials on work order.
|
|
12635
|
+
|
|
12636
|
+
:param id: Work order id. Required.
|
|
12637
|
+
:type id: str
|
|
12638
|
+
:param body: Consumption details. Default value is None.
|
|
12639
|
+
:type body: ~ignos.api.client.models.UpsertWorkOrderConsumptionsRequest
|
|
12640
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
|
12641
|
+
Default value is "application/json".
|
|
12642
|
+
:paramtype content_type: str
|
|
12643
|
+
:return: None
|
|
12644
|
+
:rtype: None
|
|
12645
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
12646
|
+
"""
|
|
12647
|
+
|
|
12648
|
+
@overload
|
|
12649
|
+
def upsert_workorder_consumption( # pylint: disable=inconsistent-return-statements
|
|
12650
|
+
self, id: str, body: Optional[IO] = None, *, content_type: str = "application/json", **kwargs: Any
|
|
12651
|
+
) -> None:
|
|
12652
|
+
"""Update consumed materials on work order.
|
|
12653
|
+
|
|
12654
|
+
Update consumed materials on work order.
|
|
12655
|
+
|
|
12656
|
+
:param id: Work order id. Required.
|
|
12657
|
+
:type id: str
|
|
12658
|
+
:param body: Consumption details. Default value is None.
|
|
12659
|
+
:type body: IO
|
|
12660
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
|
12661
|
+
Known values are: 'application/*+json', 'application/json', 'text/json'. Default value is
|
|
12662
|
+
"application/json".
|
|
12663
|
+
:paramtype content_type: str
|
|
12664
|
+
:return: None
|
|
12665
|
+
:rtype: None
|
|
12666
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
12667
|
+
"""
|
|
12668
|
+
|
|
12669
|
+
@distributed_trace
|
|
12670
|
+
def upsert_workorder_consumption( # pylint: disable=inconsistent-return-statements
|
|
12671
|
+
self, id: str, body: Optional[Union[_models.UpsertWorkOrderConsumptionsRequest, IO]] = None, **kwargs: Any
|
|
12672
|
+
) -> None:
|
|
12673
|
+
"""Update consumed materials on work order.
|
|
12674
|
+
|
|
12675
|
+
Update consumed materials on work order.
|
|
12676
|
+
|
|
12677
|
+
:param id: Work order id. Required.
|
|
12678
|
+
:type id: str
|
|
12679
|
+
:param body: Consumption details. Is either a UpsertWorkOrderConsumptionsRequest type or a IO
|
|
12680
|
+
type. Default value is None.
|
|
12681
|
+
:type body: ~ignos.api.client.models.UpsertWorkOrderConsumptionsRequest or IO
|
|
12682
|
+
:keyword content_type: Body Parameter content-type. Known values are: 'application/*+json',
|
|
12683
|
+
'application/json', 'text/json'. Default value is None.
|
|
12684
|
+
:paramtype content_type: str
|
|
12685
|
+
:return: None
|
|
12686
|
+
:rtype: None
|
|
12687
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
12688
|
+
"""
|
|
12689
|
+
error_map = {
|
|
12690
|
+
401: ClientAuthenticationError,
|
|
12691
|
+
404: ResourceNotFoundError,
|
|
12692
|
+
409: ResourceExistsError,
|
|
12693
|
+
304: ResourceNotModifiedError,
|
|
12694
|
+
}
|
|
12695
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
12696
|
+
|
|
12697
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
12698
|
+
_params = kwargs.pop("params", {}) or {}
|
|
12699
|
+
|
|
12700
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
12701
|
+
cls: ClsType[None] = kwargs.pop("cls", None)
|
|
12702
|
+
|
|
12703
|
+
content_type = content_type or "application/json"
|
|
12704
|
+
_json = None
|
|
12705
|
+
_content = None
|
|
12706
|
+
if isinstance(body, (IOBase, bytes)):
|
|
12707
|
+
_content = body
|
|
12708
|
+
else:
|
|
12709
|
+
if body is not None:
|
|
12710
|
+
_json = self._serialize.body(body, "UpsertWorkOrderConsumptionsRequest")
|
|
12711
|
+
else:
|
|
12712
|
+
_json = None
|
|
12713
|
+
|
|
12714
|
+
request = build_workorders_upsert_workorder_consumption_request(
|
|
12715
|
+
id=id,
|
|
12716
|
+
content_type=content_type,
|
|
12717
|
+
json=_json,
|
|
12718
|
+
content=_content,
|
|
12719
|
+
headers=_headers,
|
|
12720
|
+
params=_params,
|
|
12721
|
+
)
|
|
12722
|
+
request.url = self._client.format_url(request.url)
|
|
12723
|
+
|
|
12724
|
+
_stream = False
|
|
12725
|
+
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
|
12726
|
+
request, stream=_stream, **kwargs
|
|
12727
|
+
)
|
|
12728
|
+
|
|
12729
|
+
response = pipeline_response.http_response
|
|
12730
|
+
|
|
12731
|
+
if response.status_code not in [204]:
|
|
12732
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
12733
|
+
raise HttpResponseError(response=response)
|
|
12734
|
+
|
|
12735
|
+
if cls:
|
|
12736
|
+
return cls(pipeline_response, None, {})
|
|
12737
|
+
|
|
11635
12738
|
@overload
|
|
11636
12739
|
def upsert_workorder_traces( # pylint: disable=inconsistent-return-statements
|
|
11637
12740
|
self,
|
|
@@ -14661,7 +15764,6 @@ class MachineAlarmsOperations:
|
|
|
14661
15764
|
*,
|
|
14662
15765
|
start_time: Optional[datetime.datetime] = None,
|
|
14663
15766
|
end_time: Optional[datetime.datetime] = None,
|
|
14664
|
-
asset_id: Optional[int] = None,
|
|
14665
15767
|
**kwargs: Any
|
|
14666
15768
|
) -> List[_models.MachineAlarmSummaryDto]:
|
|
14667
15769
|
"""list_alarms_per_machine.
|
|
@@ -14670,8 +15772,6 @@ class MachineAlarmsOperations:
|
|
|
14670
15772
|
:paramtype start_time: ~datetime.datetime
|
|
14671
15773
|
:keyword end_time: Default value is None.
|
|
14672
15774
|
:paramtype end_time: ~datetime.datetime
|
|
14673
|
-
:keyword asset_id: Default value is None.
|
|
14674
|
-
:paramtype asset_id: int
|
|
14675
15775
|
:return: list of MachineAlarmSummaryDto
|
|
14676
15776
|
:rtype: list[~ignos.api.client.models.MachineAlarmSummaryDto]
|
|
14677
15777
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
@@ -14692,7 +15792,6 @@ class MachineAlarmsOperations:
|
|
|
14692
15792
|
request = build_machine_alarms_list_alarms_per_machine_request(
|
|
14693
15793
|
start_time=start_time,
|
|
14694
15794
|
end_time=end_time,
|
|
14695
|
-
asset_id=asset_id,
|
|
14696
15795
|
headers=_headers,
|
|
14697
15796
|
params=_params,
|
|
14698
15797
|
)
|
|
@@ -14722,7 +15821,6 @@ class MachineAlarmsOperations:
|
|
|
14722
15821
|
*,
|
|
14723
15822
|
start_time: Optional[datetime.datetime] = None,
|
|
14724
15823
|
end_time: Optional[datetime.datetime] = None,
|
|
14725
|
-
asset_id: Optional[int] = None,
|
|
14726
15824
|
**kwargs: Any
|
|
14727
15825
|
) -> List[_models.MachineAlarmSeverityOccurenceDto]:
|
|
14728
15826
|
"""list_alarm_severity_occurrences.
|
|
@@ -14731,8 +15829,6 @@ class MachineAlarmsOperations:
|
|
|
14731
15829
|
:paramtype start_time: ~datetime.datetime
|
|
14732
15830
|
:keyword end_time: Default value is None.
|
|
14733
15831
|
:paramtype end_time: ~datetime.datetime
|
|
14734
|
-
:keyword asset_id: Default value is None.
|
|
14735
|
-
:paramtype asset_id: int
|
|
14736
15832
|
:return: list of MachineAlarmSeverityOccurenceDto
|
|
14737
15833
|
:rtype: list[~ignos.api.client.models.MachineAlarmSeverityOccurenceDto]
|
|
14738
15834
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
@@ -14753,7 +15849,6 @@ class MachineAlarmsOperations:
|
|
|
14753
15849
|
request = build_machine_alarms_list_alarm_severity_occurrences_request(
|
|
14754
15850
|
start_time=start_time,
|
|
14755
15851
|
end_time=end_time,
|
|
14756
|
-
asset_id=asset_id,
|
|
14757
15852
|
headers=_headers,
|
|
14758
15853
|
params=_params,
|
|
14759
15854
|
)
|
|
@@ -24394,10 +25489,265 @@ class MeasuringToolsOperations: # pylint: disable=too-many-public-methods
|
|
|
24394
25489
|
) -> None:
|
|
24395
25490
|
"""deprecate_tool.
|
|
24396
25491
|
|
|
24397
|
-
:param id: Required.
|
|
24398
|
-
:type id: str
|
|
24399
|
-
:param body: Is either a DeprecateToolRequest type or a IO type. Default value is None.
|
|
24400
|
-
:type body: ~ignos.api.client.models.DeprecateToolRequest or IO
|
|
25492
|
+
:param id: Required.
|
|
25493
|
+
:type id: str
|
|
25494
|
+
:param body: Is either a DeprecateToolRequest type or a IO type. Default value is None.
|
|
25495
|
+
:type body: ~ignos.api.client.models.DeprecateToolRequest or IO
|
|
25496
|
+
:keyword content_type: Body Parameter content-type. Known values are: 'application/*+json',
|
|
25497
|
+
'application/json', 'text/json'. Default value is None.
|
|
25498
|
+
:paramtype content_type: str
|
|
25499
|
+
:return: None
|
|
25500
|
+
:rtype: None
|
|
25501
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
25502
|
+
"""
|
|
25503
|
+
error_map = {
|
|
25504
|
+
401: ClientAuthenticationError,
|
|
25505
|
+
404: ResourceNotFoundError,
|
|
25506
|
+
409: ResourceExistsError,
|
|
25507
|
+
304: ResourceNotModifiedError,
|
|
25508
|
+
}
|
|
25509
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
25510
|
+
|
|
25511
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
25512
|
+
_params = kwargs.pop("params", {}) or {}
|
|
25513
|
+
|
|
25514
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
25515
|
+
cls: ClsType[None] = kwargs.pop("cls", None)
|
|
25516
|
+
|
|
25517
|
+
content_type = content_type or "application/json"
|
|
25518
|
+
_json = None
|
|
25519
|
+
_content = None
|
|
25520
|
+
if isinstance(body, (IOBase, bytes)):
|
|
25521
|
+
_content = body
|
|
25522
|
+
else:
|
|
25523
|
+
if body is not None:
|
|
25524
|
+
_json = self._serialize.body(body, "DeprecateToolRequest")
|
|
25525
|
+
else:
|
|
25526
|
+
_json = None
|
|
25527
|
+
|
|
25528
|
+
request = build_measuring_tools_deprecate_tool_request(
|
|
25529
|
+
id=id,
|
|
25530
|
+
content_type=content_type,
|
|
25531
|
+
json=_json,
|
|
25532
|
+
content=_content,
|
|
25533
|
+
headers=_headers,
|
|
25534
|
+
params=_params,
|
|
25535
|
+
)
|
|
25536
|
+
request.url = self._client.format_url(request.url)
|
|
25537
|
+
|
|
25538
|
+
_stream = False
|
|
25539
|
+
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
|
25540
|
+
request, stream=_stream, **kwargs
|
|
25541
|
+
)
|
|
25542
|
+
|
|
25543
|
+
response = pipeline_response.http_response
|
|
25544
|
+
|
|
25545
|
+
if response.status_code not in [204]:
|
|
25546
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
25547
|
+
raise HttpResponseError(response=response)
|
|
25548
|
+
|
|
25549
|
+
if cls:
|
|
25550
|
+
return cls(pipeline_response, None, {})
|
|
25551
|
+
|
|
25552
|
+
@distributed_trace
|
|
25553
|
+
def get_calibration_list(
|
|
25554
|
+
self, *, status: Optional[Union[str, _models.CalibrationListStatus]] = None, **kwargs: Any
|
|
25555
|
+
) -> List[_models.CalibrationListToolDto]:
|
|
25556
|
+
"""get_calibration_list.
|
|
25557
|
+
|
|
25558
|
+
:keyword status: Known values are: "SoonDue" and "Expired". Default value is None.
|
|
25559
|
+
:paramtype status: str or ~ignos.api.client.models.CalibrationListStatus
|
|
25560
|
+
:return: list of CalibrationListToolDto
|
|
25561
|
+
:rtype: list[~ignos.api.client.models.CalibrationListToolDto]
|
|
25562
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
25563
|
+
"""
|
|
25564
|
+
error_map = {
|
|
25565
|
+
401: ClientAuthenticationError,
|
|
25566
|
+
404: ResourceNotFoundError,
|
|
25567
|
+
409: ResourceExistsError,
|
|
25568
|
+
304: ResourceNotModifiedError,
|
|
25569
|
+
}
|
|
25570
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
25571
|
+
|
|
25572
|
+
_headers = kwargs.pop("headers", {}) or {}
|
|
25573
|
+
_params = kwargs.pop("params", {}) or {}
|
|
25574
|
+
|
|
25575
|
+
cls: ClsType[List[_models.CalibrationListToolDto]] = kwargs.pop("cls", None)
|
|
25576
|
+
|
|
25577
|
+
request = build_measuring_tools_get_calibration_list_request(
|
|
25578
|
+
status=status,
|
|
25579
|
+
headers=_headers,
|
|
25580
|
+
params=_params,
|
|
25581
|
+
)
|
|
25582
|
+
request.url = self._client.format_url(request.url)
|
|
25583
|
+
|
|
25584
|
+
_stream = False
|
|
25585
|
+
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
|
25586
|
+
request, stream=_stream, **kwargs
|
|
25587
|
+
)
|
|
25588
|
+
|
|
25589
|
+
response = pipeline_response.http_response
|
|
25590
|
+
|
|
25591
|
+
if response.status_code not in [200]:
|
|
25592
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
25593
|
+
raise HttpResponseError(response=response)
|
|
25594
|
+
|
|
25595
|
+
deserialized = self._deserialize("[CalibrationListToolDto]", pipeline_response)
|
|
25596
|
+
|
|
25597
|
+
if cls:
|
|
25598
|
+
return cls(pipeline_response, deserialized, {})
|
|
25599
|
+
|
|
25600
|
+
return deserialized
|
|
25601
|
+
|
|
25602
|
+
@overload
|
|
25603
|
+
def import_measuring_tool(
|
|
25604
|
+
self,
|
|
25605
|
+
body: Optional[_models.ImportMeasuringTool] = None,
|
|
25606
|
+
*,
|
|
25607
|
+
content_type: str = "application/json",
|
|
25608
|
+
**kwargs: Any
|
|
25609
|
+
) -> _models.MeasuringToolDetailDto:
|
|
25610
|
+
"""import_measuring_tool.
|
|
25611
|
+
|
|
25612
|
+
:param body: Default value is None.
|
|
25613
|
+
:type body: ~ignos.api.client.models.ImportMeasuringTool
|
|
25614
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
|
25615
|
+
Default value is "application/json".
|
|
25616
|
+
:paramtype content_type: str
|
|
25617
|
+
:return: MeasuringToolDetailDto
|
|
25618
|
+
:rtype: ~ignos.api.client.models.MeasuringToolDetailDto
|
|
25619
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
25620
|
+
"""
|
|
25621
|
+
|
|
25622
|
+
@overload
|
|
25623
|
+
def import_measuring_tool(
|
|
25624
|
+
self, body: Optional[IO] = None, *, content_type: str = "application/json", **kwargs: Any
|
|
25625
|
+
) -> _models.MeasuringToolDetailDto:
|
|
25626
|
+
"""import_measuring_tool.
|
|
25627
|
+
|
|
25628
|
+
:param body: Default value is None.
|
|
25629
|
+
:type body: IO
|
|
25630
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
|
25631
|
+
Known values are: 'application/*+json', 'application/json', 'text/json'. Default value is
|
|
25632
|
+
"application/json".
|
|
25633
|
+
:paramtype content_type: str
|
|
25634
|
+
:return: MeasuringToolDetailDto
|
|
25635
|
+
:rtype: ~ignos.api.client.models.MeasuringToolDetailDto
|
|
25636
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
25637
|
+
"""
|
|
25638
|
+
|
|
25639
|
+
@distributed_trace
|
|
25640
|
+
def import_measuring_tool(
|
|
25641
|
+
self, body: Optional[Union[_models.ImportMeasuringTool, IO]] = None, **kwargs: Any
|
|
25642
|
+
) -> _models.MeasuringToolDetailDto:
|
|
25643
|
+
"""import_measuring_tool.
|
|
25644
|
+
|
|
25645
|
+
:param body: Is either a ImportMeasuringTool type or a IO type. Default value is None.
|
|
25646
|
+
:type body: ~ignos.api.client.models.ImportMeasuringTool or IO
|
|
25647
|
+
:keyword content_type: Body Parameter content-type. Known values are: 'application/*+json',
|
|
25648
|
+
'application/json', 'text/json'. Default value is None.
|
|
25649
|
+
:paramtype content_type: str
|
|
25650
|
+
:return: MeasuringToolDetailDto
|
|
25651
|
+
:rtype: ~ignos.api.client.models.MeasuringToolDetailDto
|
|
25652
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
25653
|
+
"""
|
|
25654
|
+
error_map = {
|
|
25655
|
+
401: ClientAuthenticationError,
|
|
25656
|
+
404: ResourceNotFoundError,
|
|
25657
|
+
409: ResourceExistsError,
|
|
25658
|
+
304: ResourceNotModifiedError,
|
|
25659
|
+
}
|
|
25660
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
25661
|
+
|
|
25662
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
25663
|
+
_params = kwargs.pop("params", {}) or {}
|
|
25664
|
+
|
|
25665
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
25666
|
+
cls: ClsType[_models.MeasuringToolDetailDto] = kwargs.pop("cls", None)
|
|
25667
|
+
|
|
25668
|
+
content_type = content_type or "application/json"
|
|
25669
|
+
_json = None
|
|
25670
|
+
_content = None
|
|
25671
|
+
if isinstance(body, (IOBase, bytes)):
|
|
25672
|
+
_content = body
|
|
25673
|
+
else:
|
|
25674
|
+
if body is not None:
|
|
25675
|
+
_json = self._serialize.body(body, "ImportMeasuringTool")
|
|
25676
|
+
else:
|
|
25677
|
+
_json = None
|
|
25678
|
+
|
|
25679
|
+
request = build_measuring_tools_import_measuring_tool_request(
|
|
25680
|
+
content_type=content_type,
|
|
25681
|
+
json=_json,
|
|
25682
|
+
content=_content,
|
|
25683
|
+
headers=_headers,
|
|
25684
|
+
params=_params,
|
|
25685
|
+
)
|
|
25686
|
+
request.url = self._client.format_url(request.url)
|
|
25687
|
+
|
|
25688
|
+
_stream = False
|
|
25689
|
+
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
|
25690
|
+
request, stream=_stream, **kwargs
|
|
25691
|
+
)
|
|
25692
|
+
|
|
25693
|
+
response = pipeline_response.http_response
|
|
25694
|
+
|
|
25695
|
+
if response.status_code not in [200]:
|
|
25696
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
25697
|
+
raise HttpResponseError(response=response)
|
|
25698
|
+
|
|
25699
|
+
deserialized = self._deserialize("MeasuringToolDetailDto", pipeline_response)
|
|
25700
|
+
|
|
25701
|
+
if cls:
|
|
25702
|
+
return cls(pipeline_response, deserialized, {})
|
|
25703
|
+
|
|
25704
|
+
return deserialized
|
|
25705
|
+
|
|
25706
|
+
@overload
|
|
25707
|
+
def update_measuring_tool_settings( # pylint: disable=inconsistent-return-statements
|
|
25708
|
+
self,
|
|
25709
|
+
body: Optional[_models.UpdateMeasuringToolSettings] = None,
|
|
25710
|
+
*,
|
|
25711
|
+
content_type: str = "application/json",
|
|
25712
|
+
**kwargs: Any
|
|
25713
|
+
) -> None:
|
|
25714
|
+
"""update_measuring_tool_settings.
|
|
25715
|
+
|
|
25716
|
+
:param body: Default value is None.
|
|
25717
|
+
:type body: ~ignos.api.client.models.UpdateMeasuringToolSettings
|
|
25718
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
|
25719
|
+
Default value is "application/json".
|
|
25720
|
+
:paramtype content_type: str
|
|
25721
|
+
:return: None
|
|
25722
|
+
:rtype: None
|
|
25723
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
25724
|
+
"""
|
|
25725
|
+
|
|
25726
|
+
@overload
|
|
25727
|
+
def update_measuring_tool_settings( # pylint: disable=inconsistent-return-statements
|
|
25728
|
+
self, body: Optional[IO] = None, *, content_type: str = "application/json", **kwargs: Any
|
|
25729
|
+
) -> None:
|
|
25730
|
+
"""update_measuring_tool_settings.
|
|
25731
|
+
|
|
25732
|
+
:param body: Default value is None.
|
|
25733
|
+
:type body: IO
|
|
25734
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
|
25735
|
+
Known values are: 'application/*+json', 'application/json', 'text/json'. Default value is
|
|
25736
|
+
"application/json".
|
|
25737
|
+
:paramtype content_type: str
|
|
25738
|
+
:return: None
|
|
25739
|
+
:rtype: None
|
|
25740
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
25741
|
+
"""
|
|
25742
|
+
|
|
25743
|
+
@distributed_trace
|
|
25744
|
+
def update_measuring_tool_settings( # pylint: disable=inconsistent-return-statements
|
|
25745
|
+
self, body: Optional[Union[_models.UpdateMeasuringToolSettings, IO]] = None, **kwargs: Any
|
|
25746
|
+
) -> None:
|
|
25747
|
+
"""update_measuring_tool_settings.
|
|
25748
|
+
|
|
25749
|
+
:param body: Is either a UpdateMeasuringToolSettings type or a IO type. Default value is None.
|
|
25750
|
+
:type body: ~ignos.api.client.models.UpdateMeasuringToolSettings or IO
|
|
24401
25751
|
:keyword content_type: Body Parameter content-type. Known values are: 'application/*+json',
|
|
24402
25752
|
'application/json', 'text/json'. Default value is None.
|
|
24403
25753
|
:paramtype content_type: str
|
|
@@ -24426,12 +25776,11 @@ class MeasuringToolsOperations: # pylint: disable=too-many-public-methods
|
|
|
24426
25776
|
_content = body
|
|
24427
25777
|
else:
|
|
24428
25778
|
if body is not None:
|
|
24429
|
-
_json = self._serialize.body(body, "
|
|
25779
|
+
_json = self._serialize.body(body, "UpdateMeasuringToolSettings")
|
|
24430
25780
|
else:
|
|
24431
25781
|
_json = None
|
|
24432
25782
|
|
|
24433
|
-
request =
|
|
24434
|
-
id=id,
|
|
25783
|
+
request = build_measuring_tools_update_measuring_tool_settings_request(
|
|
24435
25784
|
content_type=content_type,
|
|
24436
25785
|
json=_json,
|
|
24437
25786
|
content=_content,
|
|
@@ -24455,15 +25804,11 @@ class MeasuringToolsOperations: # pylint: disable=too-many-public-methods
|
|
|
24455
25804
|
return cls(pipeline_response, None, {})
|
|
24456
25805
|
|
|
24457
25806
|
@distributed_trace
|
|
24458
|
-
def
|
|
24459
|
-
|
|
24460
|
-
) -> List[_models.CalibrationListToolDto]:
|
|
24461
|
-
"""get_calibration_list.
|
|
25807
|
+
def get_measuring_tool_settings(self, **kwargs: Any) -> _models.MeasuringToolSettingsDto:
|
|
25808
|
+
"""get_measuring_tool_settings.
|
|
24462
25809
|
|
|
24463
|
-
:
|
|
24464
|
-
:
|
|
24465
|
-
:return: list of CalibrationListToolDto
|
|
24466
|
-
:rtype: list[~ignos.api.client.models.CalibrationListToolDto]
|
|
25810
|
+
:return: MeasuringToolSettingsDto
|
|
25811
|
+
:rtype: ~ignos.api.client.models.MeasuringToolSettingsDto
|
|
24467
25812
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
24468
25813
|
"""
|
|
24469
25814
|
error_map = {
|
|
@@ -24477,10 +25822,9 @@ class MeasuringToolsOperations: # pylint: disable=too-many-public-methods
|
|
|
24477
25822
|
_headers = kwargs.pop("headers", {}) or {}
|
|
24478
25823
|
_params = kwargs.pop("params", {}) or {}
|
|
24479
25824
|
|
|
24480
|
-
cls: ClsType[
|
|
25825
|
+
cls: ClsType[_models.MeasuringToolSettingsDto] = kwargs.pop("cls", None)
|
|
24481
25826
|
|
|
24482
|
-
request =
|
|
24483
|
-
status=status,
|
|
25827
|
+
request = build_measuring_tools_get_measuring_tool_settings_request(
|
|
24484
25828
|
headers=_headers,
|
|
24485
25829
|
params=_params,
|
|
24486
25830
|
)
|
|
@@ -24497,7 +25841,72 @@ class MeasuringToolsOperations: # pylint: disable=too-many-public-methods
|
|
|
24497
25841
|
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
24498
25842
|
raise HttpResponseError(response=response)
|
|
24499
25843
|
|
|
24500
|
-
deserialized = self._deserialize("
|
|
25844
|
+
deserialized = self._deserialize("MeasuringToolSettingsDto", pipeline_response)
|
|
25845
|
+
|
|
25846
|
+
if cls:
|
|
25847
|
+
return cls(pipeline_response, deserialized, {})
|
|
25848
|
+
|
|
25849
|
+
return deserialized
|
|
25850
|
+
|
|
25851
|
+
|
|
25852
|
+
class MesOperations:
|
|
25853
|
+
"""
|
|
25854
|
+
.. warning::
|
|
25855
|
+
**DO NOT** instantiate this class directly.
|
|
25856
|
+
|
|
25857
|
+
Instead, you should access the following operations through
|
|
25858
|
+
:class:`~ignos.api.client.IgnosPortal`'s
|
|
25859
|
+
:attr:`mes` attribute.
|
|
25860
|
+
"""
|
|
25861
|
+
|
|
25862
|
+
models = _models
|
|
25863
|
+
|
|
25864
|
+
def __init__(self, *args, **kwargs):
|
|
25865
|
+
input_args = list(args)
|
|
25866
|
+
self._client = input_args.pop(0) if input_args else kwargs.pop("client")
|
|
25867
|
+
self._config = input_args.pop(0) if input_args else kwargs.pop("config")
|
|
25868
|
+
self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
|
25869
|
+
self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
|
25870
|
+
|
|
25871
|
+
@distributed_trace
|
|
25872
|
+
def list_production_companies(self, **kwargs: Any) -> List[_models.ProductionCompanyDto]:
|
|
25873
|
+
"""list_production_companies.
|
|
25874
|
+
|
|
25875
|
+
:return: list of ProductionCompanyDto
|
|
25876
|
+
:rtype: list[~ignos.api.client.models.ProductionCompanyDto]
|
|
25877
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
25878
|
+
"""
|
|
25879
|
+
error_map = {
|
|
25880
|
+
401: ClientAuthenticationError,
|
|
25881
|
+
404: ResourceNotFoundError,
|
|
25882
|
+
409: ResourceExistsError,
|
|
25883
|
+
304: ResourceNotModifiedError,
|
|
25884
|
+
}
|
|
25885
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
25886
|
+
|
|
25887
|
+
_headers = kwargs.pop("headers", {}) or {}
|
|
25888
|
+
_params = kwargs.pop("params", {}) or {}
|
|
25889
|
+
|
|
25890
|
+
cls: ClsType[List[_models.ProductionCompanyDto]] = kwargs.pop("cls", None)
|
|
25891
|
+
|
|
25892
|
+
request = build_mes_list_production_companies_request(
|
|
25893
|
+
headers=_headers,
|
|
25894
|
+
params=_params,
|
|
25895
|
+
)
|
|
25896
|
+
request.url = self._client.format_url(request.url)
|
|
25897
|
+
|
|
25898
|
+
_stream = False
|
|
25899
|
+
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
|
25900
|
+
request, stream=_stream, **kwargs
|
|
25901
|
+
)
|
|
25902
|
+
|
|
25903
|
+
response = pipeline_response.http_response
|
|
25904
|
+
|
|
25905
|
+
if response.status_code not in [200]:
|
|
25906
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
25907
|
+
raise HttpResponseError(response=response)
|
|
25908
|
+
|
|
25909
|
+
deserialized = self._deserialize("[ProductionCompanyDto]", pipeline_response)
|
|
24501
25910
|
|
|
24502
25911
|
if cls:
|
|
24503
25912
|
return cls(pipeline_response, deserialized, {})
|
|
@@ -24505,30 +25914,30 @@ class MeasuringToolsOperations: # pylint: disable=too-many-public-methods
|
|
|
24505
25914
|
return deserialized
|
|
24506
25915
|
|
|
24507
25916
|
@overload
|
|
24508
|
-
def
|
|
25917
|
+
def set_current_production_company(
|
|
24509
25918
|
self,
|
|
24510
|
-
body: Optional[_models.
|
|
25919
|
+
body: Optional[_models.SetCurrentProductionCompany] = None,
|
|
24511
25920
|
*,
|
|
24512
25921
|
content_type: str = "application/json",
|
|
24513
25922
|
**kwargs: Any
|
|
24514
|
-
) -> _models.
|
|
24515
|
-
"""
|
|
25923
|
+
) -> _models.ProductionCompanyDto:
|
|
25924
|
+
"""set_current_production_company.
|
|
24516
25925
|
|
|
24517
25926
|
:param body: Default value is None.
|
|
24518
|
-
:type body: ~ignos.api.client.models.
|
|
25927
|
+
:type body: ~ignos.api.client.models.SetCurrentProductionCompany
|
|
24519
25928
|
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
|
24520
25929
|
Default value is "application/json".
|
|
24521
25930
|
:paramtype content_type: str
|
|
24522
|
-
:return:
|
|
24523
|
-
:rtype: ~ignos.api.client.models.
|
|
25931
|
+
:return: ProductionCompanyDto
|
|
25932
|
+
:rtype: ~ignos.api.client.models.ProductionCompanyDto
|
|
24524
25933
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
24525
25934
|
"""
|
|
24526
25935
|
|
|
24527
25936
|
@overload
|
|
24528
|
-
def
|
|
25937
|
+
def set_current_production_company(
|
|
24529
25938
|
self, body: Optional[IO] = None, *, content_type: str = "application/json", **kwargs: Any
|
|
24530
|
-
) -> _models.
|
|
24531
|
-
"""
|
|
25939
|
+
) -> _models.ProductionCompanyDto:
|
|
25940
|
+
"""set_current_production_company.
|
|
24532
25941
|
|
|
24533
25942
|
:param body: Default value is None.
|
|
24534
25943
|
:type body: IO
|
|
@@ -24536,24 +25945,24 @@ class MeasuringToolsOperations: # pylint: disable=too-many-public-methods
|
|
|
24536
25945
|
Known values are: 'application/*+json', 'application/json', 'text/json'. Default value is
|
|
24537
25946
|
"application/json".
|
|
24538
25947
|
:paramtype content_type: str
|
|
24539
|
-
:return:
|
|
24540
|
-
:rtype: ~ignos.api.client.models.
|
|
25948
|
+
:return: ProductionCompanyDto
|
|
25949
|
+
:rtype: ~ignos.api.client.models.ProductionCompanyDto
|
|
24541
25950
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
24542
25951
|
"""
|
|
24543
25952
|
|
|
24544
25953
|
@distributed_trace
|
|
24545
|
-
def
|
|
24546
|
-
self, body: Optional[Union[_models.
|
|
24547
|
-
) -> _models.
|
|
24548
|
-
"""
|
|
25954
|
+
def set_current_production_company(
|
|
25955
|
+
self, body: Optional[Union[_models.SetCurrentProductionCompany, IO]] = None, **kwargs: Any
|
|
25956
|
+
) -> _models.ProductionCompanyDto:
|
|
25957
|
+
"""set_current_production_company.
|
|
24549
25958
|
|
|
24550
|
-
:param body: Is either a
|
|
24551
|
-
:type body: ~ignos.api.client.models.
|
|
25959
|
+
:param body: Is either a SetCurrentProductionCompany type or a IO type. Default value is None.
|
|
25960
|
+
:type body: ~ignos.api.client.models.SetCurrentProductionCompany or IO
|
|
24552
25961
|
:keyword content_type: Body Parameter content-type. Known values are: 'application/*+json',
|
|
24553
25962
|
'application/json', 'text/json'. Default value is None.
|
|
24554
25963
|
:paramtype content_type: str
|
|
24555
|
-
:return:
|
|
24556
|
-
:rtype: ~ignos.api.client.models.
|
|
25964
|
+
:return: ProductionCompanyDto
|
|
25965
|
+
:rtype: ~ignos.api.client.models.ProductionCompanyDto
|
|
24557
25966
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
24558
25967
|
"""
|
|
24559
25968
|
error_map = {
|
|
@@ -24568,7 +25977,7 @@ class MeasuringToolsOperations: # pylint: disable=too-many-public-methods
|
|
|
24568
25977
|
_params = kwargs.pop("params", {}) or {}
|
|
24569
25978
|
|
|
24570
25979
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
24571
|
-
cls: ClsType[_models.
|
|
25980
|
+
cls: ClsType[_models.ProductionCompanyDto] = kwargs.pop("cls", None)
|
|
24572
25981
|
|
|
24573
25982
|
content_type = content_type or "application/json"
|
|
24574
25983
|
_json = None
|
|
@@ -24577,11 +25986,11 @@ class MeasuringToolsOperations: # pylint: disable=too-many-public-methods
|
|
|
24577
25986
|
_content = body
|
|
24578
25987
|
else:
|
|
24579
25988
|
if body is not None:
|
|
24580
|
-
_json = self._serialize.body(body, "
|
|
25989
|
+
_json = self._serialize.body(body, "SetCurrentProductionCompany")
|
|
24581
25990
|
else:
|
|
24582
25991
|
_json = None
|
|
24583
25992
|
|
|
24584
|
-
request =
|
|
25993
|
+
request = build_mes_set_current_production_company_request(
|
|
24585
25994
|
content_type=content_type,
|
|
24586
25995
|
json=_json,
|
|
24587
25996
|
content=_content,
|
|
@@ -24601,63 +26010,89 @@ class MeasuringToolsOperations: # pylint: disable=too-many-public-methods
|
|
|
24601
26010
|
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
24602
26011
|
raise HttpResponseError(response=response)
|
|
24603
26012
|
|
|
24604
|
-
deserialized = self._deserialize("
|
|
26013
|
+
deserialized = self._deserialize("ProductionCompanyDto", pipeline_response)
|
|
24605
26014
|
|
|
24606
26015
|
if cls:
|
|
24607
26016
|
return cls(pipeline_response, deserialized, {})
|
|
24608
26017
|
|
|
24609
26018
|
return deserialized
|
|
24610
26019
|
|
|
24611
|
-
@
|
|
24612
|
-
def
|
|
24613
|
-
|
|
24614
|
-
body: Optional[_models.UpdateMeasuringToolSettings] = None,
|
|
24615
|
-
*,
|
|
24616
|
-
content_type: str = "application/json",
|
|
24617
|
-
**kwargs: Any
|
|
24618
|
-
) -> None:
|
|
24619
|
-
"""update_measuring_tool_settings.
|
|
26020
|
+
@distributed_trace
|
|
26021
|
+
def list_employees(self, *, company_id: Optional[str] = None, **kwargs: Any) -> List[_models.ProductionEmployeeDto]:
|
|
26022
|
+
"""list_employees.
|
|
24620
26023
|
|
|
24621
|
-
:
|
|
24622
|
-
:
|
|
24623
|
-
:
|
|
24624
|
-
|
|
24625
|
-
:paramtype content_type: str
|
|
24626
|
-
:return: None
|
|
24627
|
-
:rtype: None
|
|
26024
|
+
:keyword company_id: Default value is None.
|
|
26025
|
+
:paramtype company_id: str
|
|
26026
|
+
:return: list of ProductionEmployeeDto
|
|
26027
|
+
:rtype: list[~ignos.api.client.models.ProductionEmployeeDto]
|
|
24628
26028
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
24629
26029
|
"""
|
|
26030
|
+
error_map = {
|
|
26031
|
+
401: ClientAuthenticationError,
|
|
26032
|
+
404: ResourceNotFoundError,
|
|
26033
|
+
409: ResourceExistsError,
|
|
26034
|
+
304: ResourceNotModifiedError,
|
|
26035
|
+
}
|
|
26036
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
24630
26037
|
|
|
24631
|
-
|
|
24632
|
-
|
|
24633
|
-
self, body: Optional[IO] = None, *, content_type: str = "application/json", **kwargs: Any
|
|
24634
|
-
) -> None:
|
|
24635
|
-
"""update_measuring_tool_settings.
|
|
26038
|
+
_headers = kwargs.pop("headers", {}) or {}
|
|
26039
|
+
_params = kwargs.pop("params", {}) or {}
|
|
24636
26040
|
|
|
24637
|
-
:
|
|
24638
|
-
|
|
24639
|
-
|
|
24640
|
-
|
|
24641
|
-
|
|
24642
|
-
|
|
24643
|
-
|
|
24644
|
-
|
|
24645
|
-
|
|
24646
|
-
|
|
26041
|
+
cls: ClsType[List[_models.ProductionEmployeeDto]] = kwargs.pop("cls", None)
|
|
26042
|
+
|
|
26043
|
+
request = build_mes_list_employees_request(
|
|
26044
|
+
company_id=company_id,
|
|
26045
|
+
headers=_headers,
|
|
26046
|
+
params=_params,
|
|
26047
|
+
)
|
|
26048
|
+
request.url = self._client.format_url(request.url)
|
|
26049
|
+
|
|
26050
|
+
_stream = False
|
|
26051
|
+
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
|
26052
|
+
request, stream=_stream, **kwargs
|
|
26053
|
+
)
|
|
26054
|
+
|
|
26055
|
+
response = pipeline_response.http_response
|
|
26056
|
+
|
|
26057
|
+
if response.status_code not in [200]:
|
|
26058
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
26059
|
+
raise HttpResponseError(response=response)
|
|
26060
|
+
|
|
26061
|
+
deserialized = self._deserialize("[ProductionEmployeeDto]", pipeline_response)
|
|
26062
|
+
|
|
26063
|
+
if cls:
|
|
26064
|
+
return cls(pipeline_response, deserialized, {})
|
|
26065
|
+
|
|
26066
|
+
return deserialized
|
|
26067
|
+
|
|
26068
|
+
|
|
26069
|
+
class MesProductionOrderOperations:
|
|
26070
|
+
"""
|
|
26071
|
+
.. warning::
|
|
26072
|
+
**DO NOT** instantiate this class directly.
|
|
26073
|
+
|
|
26074
|
+
Instead, you should access the following operations through
|
|
26075
|
+
:class:`~ignos.api.client.IgnosPortal`'s
|
|
26076
|
+
:attr:`mes_production_order` attribute.
|
|
26077
|
+
"""
|
|
26078
|
+
|
|
26079
|
+
models = _models
|
|
26080
|
+
|
|
26081
|
+
def __init__(self, *args, **kwargs):
|
|
26082
|
+
input_args = list(args)
|
|
26083
|
+
self._client = input_args.pop(0) if input_args else kwargs.pop("client")
|
|
26084
|
+
self._config = input_args.pop(0) if input_args else kwargs.pop("config")
|
|
26085
|
+
self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
|
26086
|
+
self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
|
24647
26087
|
|
|
24648
26088
|
@distributed_trace
|
|
24649
|
-
def
|
|
24650
|
-
|
|
24651
|
-
) -> None:
|
|
24652
|
-
"""update_measuring_tool_settings.
|
|
26089
|
+
def get_production_order(self, id: str, **kwargs: Any) -> _models.ProductionOrderDto:
|
|
26090
|
+
"""get_production_order.
|
|
24653
26091
|
|
|
24654
|
-
:param
|
|
24655
|
-
:type
|
|
24656
|
-
:
|
|
24657
|
-
|
|
24658
|
-
:paramtype content_type: str
|
|
24659
|
-
:return: None
|
|
24660
|
-
:rtype: None
|
|
26092
|
+
:param id: Required.
|
|
26093
|
+
:type id: str
|
|
26094
|
+
:return: ProductionOrderDto
|
|
26095
|
+
:rtype: ~ignos.api.client.models.ProductionOrderDto
|
|
24661
26096
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
24662
26097
|
"""
|
|
24663
26098
|
error_map = {
|
|
@@ -24668,27 +26103,13 @@ class MeasuringToolsOperations: # pylint: disable=too-many-public-methods
|
|
|
24668
26103
|
}
|
|
24669
26104
|
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
24670
26105
|
|
|
24671
|
-
_headers =
|
|
26106
|
+
_headers = kwargs.pop("headers", {}) or {}
|
|
24672
26107
|
_params = kwargs.pop("params", {}) or {}
|
|
24673
26108
|
|
|
24674
|
-
|
|
24675
|
-
cls: ClsType[None] = kwargs.pop("cls", None)
|
|
24676
|
-
|
|
24677
|
-
content_type = content_type or "application/json"
|
|
24678
|
-
_json = None
|
|
24679
|
-
_content = None
|
|
24680
|
-
if isinstance(body, (IOBase, bytes)):
|
|
24681
|
-
_content = body
|
|
24682
|
-
else:
|
|
24683
|
-
if body is not None:
|
|
24684
|
-
_json = self._serialize.body(body, "UpdateMeasuringToolSettings")
|
|
24685
|
-
else:
|
|
24686
|
-
_json = None
|
|
26109
|
+
cls: ClsType[_models.ProductionOrderDto] = kwargs.pop("cls", None)
|
|
24687
26110
|
|
|
24688
|
-
request =
|
|
24689
|
-
|
|
24690
|
-
json=_json,
|
|
24691
|
-
content=_content,
|
|
26111
|
+
request = build_mes_production_order_get_production_order_request(
|
|
26112
|
+
id=id,
|
|
24692
26113
|
headers=_headers,
|
|
24693
26114
|
params=_params,
|
|
24694
26115
|
)
|
|
@@ -24701,19 +26122,49 @@ class MeasuringToolsOperations: # pylint: disable=too-many-public-methods
|
|
|
24701
26122
|
|
|
24702
26123
|
response = pipeline_response.http_response
|
|
24703
26124
|
|
|
24704
|
-
if response.status_code not in [
|
|
26125
|
+
if response.status_code not in [200]:
|
|
24705
26126
|
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
24706
26127
|
raise HttpResponseError(response=response)
|
|
24707
26128
|
|
|
26129
|
+
deserialized = self._deserialize("ProductionOrderDto", pipeline_response)
|
|
26130
|
+
|
|
24708
26131
|
if cls:
|
|
24709
|
-
return cls(pipeline_response,
|
|
26132
|
+
return cls(pipeline_response, deserialized, {})
|
|
26133
|
+
|
|
26134
|
+
return deserialized
|
|
26135
|
+
|
|
26136
|
+
|
|
26137
|
+
class MesProductionScheduleOperations:
|
|
26138
|
+
"""
|
|
26139
|
+
.. warning::
|
|
26140
|
+
**DO NOT** instantiate this class directly.
|
|
26141
|
+
|
|
26142
|
+
Instead, you should access the following operations through
|
|
26143
|
+
:class:`~ignos.api.client.IgnosPortal`'s
|
|
26144
|
+
:attr:`mes_production_schedule` attribute.
|
|
26145
|
+
"""
|
|
26146
|
+
|
|
26147
|
+
models = _models
|
|
26148
|
+
|
|
26149
|
+
def __init__(self, *args, **kwargs):
|
|
26150
|
+
input_args = list(args)
|
|
26151
|
+
self._client = input_args.pop(0) if input_args else kwargs.pop("client")
|
|
26152
|
+
self._config = input_args.pop(0) if input_args else kwargs.pop("config")
|
|
26153
|
+
self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
|
26154
|
+
self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
|
24710
26155
|
|
|
24711
26156
|
@distributed_trace
|
|
24712
|
-
def
|
|
24713
|
-
|
|
26157
|
+
def list_production_schedule_operations(
|
|
26158
|
+
self, *, resource_group: Optional[str] = None, resource_id: Optional[str] = None, **kwargs: Any
|
|
26159
|
+
) -> List[_models.ProductionScheduleOperationDto]:
|
|
26160
|
+
"""list_production_schedule_operations.
|
|
24714
26161
|
|
|
24715
|
-
:
|
|
24716
|
-
:
|
|
26162
|
+
:keyword resource_group: Default value is None.
|
|
26163
|
+
:paramtype resource_group: str
|
|
26164
|
+
:keyword resource_id: Default value is None.
|
|
26165
|
+
:paramtype resource_id: str
|
|
26166
|
+
:return: list of ProductionScheduleOperationDto
|
|
26167
|
+
:rtype: list[~ignos.api.client.models.ProductionScheduleOperationDto]
|
|
24717
26168
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
24718
26169
|
"""
|
|
24719
26170
|
error_map = {
|
|
@@ -24727,9 +26178,11 @@ class MeasuringToolsOperations: # pylint: disable=too-many-public-methods
|
|
|
24727
26178
|
_headers = kwargs.pop("headers", {}) or {}
|
|
24728
26179
|
_params = kwargs.pop("params", {}) or {}
|
|
24729
26180
|
|
|
24730
|
-
cls: ClsType[_models.
|
|
26181
|
+
cls: ClsType[List[_models.ProductionScheduleOperationDto]] = kwargs.pop("cls", None)
|
|
24731
26182
|
|
|
24732
|
-
request =
|
|
26183
|
+
request = build_mes_production_schedule_list_production_schedule_operations_request(
|
|
26184
|
+
resource_group=resource_group,
|
|
26185
|
+
resource_id=resource_id,
|
|
24733
26186
|
headers=_headers,
|
|
24734
26187
|
params=_params,
|
|
24735
26188
|
)
|
|
@@ -24746,7 +26199,7 @@ class MeasuringToolsOperations: # pylint: disable=too-many-public-methods
|
|
|
24746
26199
|
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
24747
26200
|
raise HttpResponseError(response=response)
|
|
24748
26201
|
|
|
24749
|
-
deserialized = self._deserialize("
|
|
26202
|
+
deserialized = self._deserialize("[ProductionScheduleOperationDto]", pipeline_response)
|
|
24750
26203
|
|
|
24751
26204
|
if cls:
|
|
24752
26205
|
return cls(pipeline_response, deserialized, {})
|
|
@@ -24754,14 +26207,14 @@ class MeasuringToolsOperations: # pylint: disable=too-many-public-methods
|
|
|
24754
26207
|
return deserialized
|
|
24755
26208
|
|
|
24756
26209
|
|
|
24757
|
-
class
|
|
26210
|
+
class MesResourceOperations:
|
|
24758
26211
|
"""
|
|
24759
26212
|
.. warning::
|
|
24760
26213
|
**DO NOT** instantiate this class directly.
|
|
24761
26214
|
|
|
24762
26215
|
Instead, you should access the following operations through
|
|
24763
26216
|
:class:`~ignos.api.client.IgnosPortal`'s
|
|
24764
|
-
:attr:`
|
|
26217
|
+
:attr:`mes_resource` attribute.
|
|
24765
26218
|
"""
|
|
24766
26219
|
|
|
24767
26220
|
models = _models
|
|
@@ -24774,11 +26227,13 @@ class MesOperations:
|
|
|
24774
26227
|
self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
|
24775
26228
|
|
|
24776
26229
|
@distributed_trace
|
|
24777
|
-
def
|
|
24778
|
-
"""
|
|
26230
|
+
def list_resource_groups(self, *, include_resources: bool = False, **kwargs: Any) -> List[_models.ResourceGroupDto]:
|
|
26231
|
+
"""list_resource_groups.
|
|
24779
26232
|
|
|
24780
|
-
:
|
|
24781
|
-
:
|
|
26233
|
+
:keyword include_resources: Default value is False.
|
|
26234
|
+
:paramtype include_resources: bool
|
|
26235
|
+
:return: list of ResourceGroupDto
|
|
26236
|
+
:rtype: list[~ignos.api.client.models.ResourceGroupDto]
|
|
24782
26237
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
24783
26238
|
"""
|
|
24784
26239
|
error_map = {
|
|
@@ -24792,9 +26247,10 @@ class MesOperations:
|
|
|
24792
26247
|
_headers = kwargs.pop("headers", {}) or {}
|
|
24793
26248
|
_params = kwargs.pop("params", {}) or {}
|
|
24794
26249
|
|
|
24795
|
-
cls: ClsType[List[_models.
|
|
26250
|
+
cls: ClsType[List[_models.ResourceGroupDto]] = kwargs.pop("cls", None)
|
|
24796
26251
|
|
|
24797
|
-
request =
|
|
26252
|
+
request = build_mes_resource_list_resource_groups_request(
|
|
26253
|
+
include_resources=include_resources,
|
|
24798
26254
|
headers=_headers,
|
|
24799
26255
|
params=_params,
|
|
24800
26256
|
)
|
|
@@ -24811,63 +26267,138 @@ class MesOperations:
|
|
|
24811
26267
|
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
24812
26268
|
raise HttpResponseError(response=response)
|
|
24813
26269
|
|
|
24814
|
-
deserialized = self._deserialize("[
|
|
26270
|
+
deserialized = self._deserialize("[ResourceGroupDto]", pipeline_response)
|
|
26271
|
+
|
|
26272
|
+
if cls:
|
|
26273
|
+
return cls(pipeline_response, deserialized, {})
|
|
26274
|
+
|
|
26275
|
+
return deserialized
|
|
26276
|
+
|
|
26277
|
+
@distributed_trace
|
|
26278
|
+
def list_resource_group_resources(self, id: str, **kwargs: Any) -> List[_models.ProductionResourceDto]:
|
|
26279
|
+
"""list_resource_group_resources.
|
|
26280
|
+
|
|
26281
|
+
:param id: Required.
|
|
26282
|
+
:type id: str
|
|
26283
|
+
:return: list of ProductionResourceDto
|
|
26284
|
+
:rtype: list[~ignos.api.client.models.ProductionResourceDto]
|
|
26285
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
26286
|
+
"""
|
|
26287
|
+
error_map = {
|
|
26288
|
+
401: ClientAuthenticationError,
|
|
26289
|
+
404: ResourceNotFoundError,
|
|
26290
|
+
409: ResourceExistsError,
|
|
26291
|
+
304: ResourceNotModifiedError,
|
|
26292
|
+
}
|
|
26293
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
26294
|
+
|
|
26295
|
+
_headers = kwargs.pop("headers", {}) or {}
|
|
26296
|
+
_params = kwargs.pop("params", {}) or {}
|
|
26297
|
+
|
|
26298
|
+
cls: ClsType[List[_models.ProductionResourceDto]] = kwargs.pop("cls", None)
|
|
26299
|
+
|
|
26300
|
+
request = build_mes_resource_list_resource_group_resources_request(
|
|
26301
|
+
id=id,
|
|
26302
|
+
headers=_headers,
|
|
26303
|
+
params=_params,
|
|
26304
|
+
)
|
|
26305
|
+
request.url = self._client.format_url(request.url)
|
|
26306
|
+
|
|
26307
|
+
_stream = False
|
|
26308
|
+
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
|
26309
|
+
request, stream=_stream, **kwargs
|
|
26310
|
+
)
|
|
26311
|
+
|
|
26312
|
+
response = pipeline_response.http_response
|
|
26313
|
+
|
|
26314
|
+
if response.status_code not in [200]:
|
|
26315
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
26316
|
+
raise HttpResponseError(response=response)
|
|
26317
|
+
|
|
26318
|
+
deserialized = self._deserialize("[ProductionResourceDto]", pipeline_response)
|
|
24815
26319
|
|
|
24816
26320
|
if cls:
|
|
24817
26321
|
return cls(pipeline_response, deserialized, {})
|
|
24818
26322
|
|
|
24819
26323
|
return deserialized
|
|
24820
26324
|
|
|
26325
|
+
|
|
26326
|
+
class MrbOperations:
|
|
26327
|
+
"""
|
|
26328
|
+
.. warning::
|
|
26329
|
+
**DO NOT** instantiate this class directly.
|
|
26330
|
+
|
|
26331
|
+
Instead, you should access the following operations through
|
|
26332
|
+
:class:`~ignos.api.client.IgnosPortal`'s
|
|
26333
|
+
:attr:`mrb` attribute.
|
|
26334
|
+
"""
|
|
26335
|
+
|
|
26336
|
+
models = _models
|
|
26337
|
+
|
|
26338
|
+
def __init__(self, *args, **kwargs):
|
|
26339
|
+
input_args = list(args)
|
|
26340
|
+
self._client = input_args.pop(0) if input_args else kwargs.pop("client")
|
|
26341
|
+
self._config = input_args.pop(0) if input_args else kwargs.pop("config")
|
|
26342
|
+
self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
|
26343
|
+
self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
|
26344
|
+
|
|
24821
26345
|
@overload
|
|
24822
|
-
def
|
|
26346
|
+
def attach_pdf( # pylint: disable=inconsistent-return-statements
|
|
24823
26347
|
self,
|
|
24824
|
-
|
|
26348
|
+
template_id: str,
|
|
26349
|
+
body: Optional[_models.AttachPdfRequest] = None,
|
|
24825
26350
|
*,
|
|
24826
26351
|
content_type: str = "application/json",
|
|
24827
26352
|
**kwargs: Any
|
|
24828
|
-
) ->
|
|
24829
|
-
"""
|
|
26353
|
+
) -> None:
|
|
26354
|
+
"""attach_pdf.
|
|
24830
26355
|
|
|
26356
|
+
:param template_id: Required.
|
|
26357
|
+
:type template_id: str
|
|
24831
26358
|
:param body: Default value is None.
|
|
24832
|
-
:type body: ~ignos.api.client.models.
|
|
26359
|
+
:type body: ~ignos.api.client.models.AttachPdfRequest
|
|
24833
26360
|
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
|
24834
26361
|
Default value is "application/json".
|
|
24835
26362
|
:paramtype content_type: str
|
|
24836
|
-
:return:
|
|
24837
|
-
:rtype:
|
|
26363
|
+
:return: None
|
|
26364
|
+
:rtype: None
|
|
24838
26365
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
24839
26366
|
"""
|
|
24840
26367
|
|
|
24841
26368
|
@overload
|
|
24842
|
-
def
|
|
24843
|
-
self, body: Optional[IO] = None, *, content_type: str = "application/json", **kwargs: Any
|
|
24844
|
-
) ->
|
|
24845
|
-
"""
|
|
26369
|
+
def attach_pdf( # pylint: disable=inconsistent-return-statements
|
|
26370
|
+
self, template_id: str, body: Optional[IO] = None, *, content_type: str = "application/json", **kwargs: Any
|
|
26371
|
+
) -> None:
|
|
26372
|
+
"""attach_pdf.
|
|
24846
26373
|
|
|
26374
|
+
:param template_id: Required.
|
|
26375
|
+
:type template_id: str
|
|
24847
26376
|
:param body: Default value is None.
|
|
24848
26377
|
:type body: IO
|
|
24849
26378
|
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
|
24850
26379
|
Known values are: 'application/*+json', 'application/json', 'text/json'. Default value is
|
|
24851
26380
|
"application/json".
|
|
24852
26381
|
:paramtype content_type: str
|
|
24853
|
-
:return:
|
|
24854
|
-
:rtype:
|
|
26382
|
+
:return: None
|
|
26383
|
+
:rtype: None
|
|
24855
26384
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
24856
26385
|
"""
|
|
24857
26386
|
|
|
24858
26387
|
@distributed_trace
|
|
24859
|
-
def
|
|
24860
|
-
self, body: Optional[Union[_models.
|
|
24861
|
-
) ->
|
|
24862
|
-
"""
|
|
26388
|
+
def attach_pdf( # pylint: disable=inconsistent-return-statements
|
|
26389
|
+
self, template_id: str, body: Optional[Union[_models.AttachPdfRequest, IO]] = None, **kwargs: Any
|
|
26390
|
+
) -> None:
|
|
26391
|
+
"""attach_pdf.
|
|
24863
26392
|
|
|
24864
|
-
:param
|
|
24865
|
-
:type
|
|
26393
|
+
:param template_id: Required.
|
|
26394
|
+
:type template_id: str
|
|
26395
|
+
:param body: Is either a AttachPdfRequest type or a IO type. Default value is None.
|
|
26396
|
+
:type body: ~ignos.api.client.models.AttachPdfRequest or IO
|
|
24866
26397
|
:keyword content_type: Body Parameter content-type. Known values are: 'application/*+json',
|
|
24867
26398
|
'application/json', 'text/json'. Default value is None.
|
|
24868
26399
|
:paramtype content_type: str
|
|
24869
|
-
:return:
|
|
24870
|
-
:rtype:
|
|
26400
|
+
:return: None
|
|
26401
|
+
:rtype: None
|
|
24871
26402
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
24872
26403
|
"""
|
|
24873
26404
|
error_map = {
|
|
@@ -24882,7 +26413,7 @@ class MesOperations:
|
|
|
24882
26413
|
_params = kwargs.pop("params", {}) or {}
|
|
24883
26414
|
|
|
24884
26415
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
24885
|
-
cls: ClsType[
|
|
26416
|
+
cls: ClsType[None] = kwargs.pop("cls", None)
|
|
24886
26417
|
|
|
24887
26418
|
content_type = content_type or "application/json"
|
|
24888
26419
|
_json = None
|
|
@@ -24891,11 +26422,12 @@ class MesOperations:
|
|
|
24891
26422
|
_content = body
|
|
24892
26423
|
else:
|
|
24893
26424
|
if body is not None:
|
|
24894
|
-
_json = self._serialize.body(body, "
|
|
26425
|
+
_json = self._serialize.body(body, "AttachPdfRequest")
|
|
24895
26426
|
else:
|
|
24896
26427
|
_json = None
|
|
24897
26428
|
|
|
24898
|
-
request =
|
|
26429
|
+
request = build_mrb_attach_pdf_request(
|
|
26430
|
+
template_id=template_id,
|
|
24899
26431
|
content_type=content_type,
|
|
24900
26432
|
json=_json,
|
|
24901
26433
|
content=_content,
|
|
@@ -24915,21 +26447,19 @@ class MesOperations:
|
|
|
24915
26447
|
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
24916
26448
|
raise HttpResponseError(response=response)
|
|
24917
26449
|
|
|
24918
|
-
deserialized = self._deserialize("ProductionCompanyDto", pipeline_response)
|
|
24919
|
-
|
|
24920
26450
|
if cls:
|
|
24921
|
-
return cls(pipeline_response,
|
|
24922
|
-
|
|
24923
|
-
return deserialized
|
|
26451
|
+
return cls(pipeline_response, None, {})
|
|
24924
26452
|
|
|
24925
26453
|
@distributed_trace
|
|
24926
|
-
def
|
|
24927
|
-
"""
|
|
26454
|
+
def get_mrb_template(self, template_id: str, **kwargs: Any) -> _models.MrbTemplateDto:
|
|
26455
|
+
"""Get a single MRB template by id.
|
|
24928
26456
|
|
|
24929
|
-
|
|
24930
|
-
|
|
24931
|
-
:
|
|
24932
|
-
:
|
|
26457
|
+
Get a single MRB template by id.
|
|
26458
|
+
|
|
26459
|
+
:param template_id: Required.
|
|
26460
|
+
:type template_id: str
|
|
26461
|
+
:return: MrbTemplateDto
|
|
26462
|
+
:rtype: ~ignos.api.client.models.MrbTemplateDto
|
|
24933
26463
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
24934
26464
|
"""
|
|
24935
26465
|
error_map = {
|
|
@@ -24943,10 +26473,10 @@ class MesOperations:
|
|
|
24943
26473
|
_headers = kwargs.pop("headers", {}) or {}
|
|
24944
26474
|
_params = kwargs.pop("params", {}) or {}
|
|
24945
26475
|
|
|
24946
|
-
cls: ClsType[
|
|
26476
|
+
cls: ClsType[_models.MrbTemplateDto] = kwargs.pop("cls", None)
|
|
24947
26477
|
|
|
24948
|
-
request =
|
|
24949
|
-
|
|
26478
|
+
request = build_mrb_get_mrb_template_request(
|
|
26479
|
+
template_id=template_id,
|
|
24950
26480
|
headers=_headers,
|
|
24951
26481
|
params=_params,
|
|
24952
26482
|
)
|
|
@@ -24963,41 +26493,27 @@ class MesOperations:
|
|
|
24963
26493
|
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
24964
26494
|
raise HttpResponseError(response=response)
|
|
24965
26495
|
|
|
24966
|
-
deserialized = self._deserialize("
|
|
26496
|
+
deserialized = self._deserialize("MrbTemplateDto", pipeline_response)
|
|
24967
26497
|
|
|
24968
26498
|
if cls:
|
|
24969
26499
|
return cls(pipeline_response, deserialized, {})
|
|
24970
26500
|
|
|
24971
26501
|
return deserialized
|
|
24972
26502
|
|
|
24973
|
-
|
|
24974
|
-
class MesProductionOrderOperations:
|
|
24975
|
-
"""
|
|
24976
|
-
.. warning::
|
|
24977
|
-
**DO NOT** instantiate this class directly.
|
|
24978
|
-
|
|
24979
|
-
Instead, you should access the following operations through
|
|
24980
|
-
:class:`~ignos.api.client.IgnosPortal`'s
|
|
24981
|
-
:attr:`mes_production_order` attribute.
|
|
24982
|
-
"""
|
|
24983
|
-
|
|
24984
|
-
models = _models
|
|
24985
|
-
|
|
24986
|
-
def __init__(self, *args, **kwargs):
|
|
24987
|
-
input_args = list(args)
|
|
24988
|
-
self._client = input_args.pop(0) if input_args else kwargs.pop("client")
|
|
24989
|
-
self._config = input_args.pop(0) if input_args else kwargs.pop("config")
|
|
24990
|
-
self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
|
24991
|
-
self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
|
24992
|
-
|
|
24993
26503
|
@distributed_trace
|
|
24994
|
-
def
|
|
24995
|
-
|
|
26504
|
+
def list_mrb_templates(
|
|
26505
|
+
self, *, customer_id: Optional[str] = None, customer_group_id: Optional[str] = None, **kwargs: Any
|
|
26506
|
+
) -> List[_models.MrbTemplateDto]:
|
|
26507
|
+
"""Get a list of MRB templates.
|
|
24996
26508
|
|
|
24997
|
-
|
|
24998
|
-
|
|
24999
|
-
:
|
|
25000
|
-
:
|
|
26509
|
+
Get a list of MRB templates.
|
|
26510
|
+
|
|
26511
|
+
:keyword customer_id: Default value is None.
|
|
26512
|
+
:paramtype customer_id: str
|
|
26513
|
+
:keyword customer_group_id: Default value is None.
|
|
26514
|
+
:paramtype customer_group_id: str
|
|
26515
|
+
:return: list of MrbTemplateDto
|
|
26516
|
+
:rtype: list[~ignos.api.client.models.MrbTemplateDto]
|
|
25001
26517
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
25002
26518
|
"""
|
|
25003
26519
|
error_map = {
|
|
@@ -25011,10 +26527,11 @@ class MesProductionOrderOperations:
|
|
|
25011
26527
|
_headers = kwargs.pop("headers", {}) or {}
|
|
25012
26528
|
_params = kwargs.pop("params", {}) or {}
|
|
25013
26529
|
|
|
25014
|
-
cls: ClsType[_models.
|
|
26530
|
+
cls: ClsType[List[_models.MrbTemplateDto]] = kwargs.pop("cls", None)
|
|
25015
26531
|
|
|
25016
|
-
request =
|
|
25017
|
-
|
|
26532
|
+
request = build_mrb_list_mrb_templates_request(
|
|
26533
|
+
customer_id=customer_id,
|
|
26534
|
+
customer_group_id=customer_group_id,
|
|
25018
26535
|
headers=_headers,
|
|
25019
26536
|
params=_params,
|
|
25020
26537
|
)
|
|
@@ -25031,45 +26548,69 @@ class MesProductionOrderOperations:
|
|
|
25031
26548
|
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
25032
26549
|
raise HttpResponseError(response=response)
|
|
25033
26550
|
|
|
25034
|
-
deserialized = self._deserialize("
|
|
26551
|
+
deserialized = self._deserialize("[MrbTemplateDto]", pipeline_response)
|
|
25035
26552
|
|
|
25036
26553
|
if cls:
|
|
25037
26554
|
return cls(pipeline_response, deserialized, {})
|
|
25038
26555
|
|
|
25039
26556
|
return deserialized
|
|
25040
26557
|
|
|
26558
|
+
@overload
|
|
26559
|
+
def create_mrb_template(
|
|
26560
|
+
self,
|
|
26561
|
+
body: Optional[_models.CreateMrbTemplateRequest] = None,
|
|
26562
|
+
*,
|
|
26563
|
+
content_type: str = "application/json",
|
|
26564
|
+
**kwargs: Any
|
|
26565
|
+
) -> _models.MrbTemplateDto:
|
|
26566
|
+
"""Create a new MRB template.
|
|
25041
26567
|
|
|
25042
|
-
|
|
25043
|
-
|
|
25044
|
-
|
|
25045
|
-
|
|
26568
|
+
Create a new MRB template.
|
|
26569
|
+
|
|
26570
|
+
:param body: Default value is None.
|
|
26571
|
+
:type body: ~ignos.api.client.models.CreateMrbTemplateRequest
|
|
26572
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
|
26573
|
+
Default value is "application/json".
|
|
26574
|
+
:paramtype content_type: str
|
|
26575
|
+
:return: MrbTemplateDto
|
|
26576
|
+
:rtype: ~ignos.api.client.models.MrbTemplateDto
|
|
26577
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
26578
|
+
"""
|
|
25046
26579
|
|
|
25047
|
-
|
|
25048
|
-
|
|
25049
|
-
:
|
|
25050
|
-
|
|
26580
|
+
@overload
|
|
26581
|
+
def create_mrb_template(
|
|
26582
|
+
self, body: Optional[IO] = None, *, content_type: str = "application/json", **kwargs: Any
|
|
26583
|
+
) -> _models.MrbTemplateDto:
|
|
26584
|
+
"""Create a new MRB template.
|
|
25051
26585
|
|
|
25052
|
-
|
|
26586
|
+
Create a new MRB template.
|
|
25053
26587
|
|
|
25054
|
-
|
|
25055
|
-
|
|
25056
|
-
|
|
25057
|
-
|
|
25058
|
-
|
|
25059
|
-
|
|
26588
|
+
:param body: Default value is None.
|
|
26589
|
+
:type body: IO
|
|
26590
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
|
26591
|
+
Known values are: 'application/*+json', 'application/json', 'text/json'. Default value is
|
|
26592
|
+
"application/json".
|
|
26593
|
+
:paramtype content_type: str
|
|
26594
|
+
:return: MrbTemplateDto
|
|
26595
|
+
:rtype: ~ignos.api.client.models.MrbTemplateDto
|
|
26596
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
26597
|
+
"""
|
|
25060
26598
|
|
|
25061
26599
|
@distributed_trace
|
|
25062
|
-
def
|
|
25063
|
-
self,
|
|
25064
|
-
) ->
|
|
25065
|
-
"""
|
|
26600
|
+
def create_mrb_template(
|
|
26601
|
+
self, body: Optional[Union[_models.CreateMrbTemplateRequest, IO]] = None, **kwargs: Any
|
|
26602
|
+
) -> _models.MrbTemplateDto:
|
|
26603
|
+
"""Create a new MRB template.
|
|
25066
26604
|
|
|
25067
|
-
|
|
25068
|
-
|
|
25069
|
-
:
|
|
25070
|
-
:
|
|
25071
|
-
:
|
|
25072
|
-
|
|
26605
|
+
Create a new MRB template.
|
|
26606
|
+
|
|
26607
|
+
:param body: Is either a CreateMrbTemplateRequest type or a IO type. Default value is None.
|
|
26608
|
+
:type body: ~ignos.api.client.models.CreateMrbTemplateRequest or IO
|
|
26609
|
+
:keyword content_type: Body Parameter content-type. Known values are: 'application/*+json',
|
|
26610
|
+
'application/json', 'text/json'. Default value is None.
|
|
26611
|
+
:paramtype content_type: str
|
|
26612
|
+
:return: MrbTemplateDto
|
|
26613
|
+
:rtype: ~ignos.api.client.models.MrbTemplateDto
|
|
25073
26614
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
25074
26615
|
"""
|
|
25075
26616
|
error_map = {
|
|
@@ -25080,14 +26621,27 @@ class MesProductionScheduleOperations:
|
|
|
25080
26621
|
}
|
|
25081
26622
|
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
25082
26623
|
|
|
25083
|
-
_headers = kwargs.pop("headers", {}) or {}
|
|
26624
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
25084
26625
|
_params = kwargs.pop("params", {}) or {}
|
|
25085
26626
|
|
|
25086
|
-
|
|
26627
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
26628
|
+
cls: ClsType[_models.MrbTemplateDto] = kwargs.pop("cls", None)
|
|
25087
26629
|
|
|
25088
|
-
|
|
25089
|
-
|
|
25090
|
-
|
|
26630
|
+
content_type = content_type or "application/json"
|
|
26631
|
+
_json = None
|
|
26632
|
+
_content = None
|
|
26633
|
+
if isinstance(body, (IOBase, bytes)):
|
|
26634
|
+
_content = body
|
|
26635
|
+
else:
|
|
26636
|
+
if body is not None:
|
|
26637
|
+
_json = self._serialize.body(body, "CreateMrbTemplateRequest")
|
|
26638
|
+
else:
|
|
26639
|
+
_json = None
|
|
26640
|
+
|
|
26641
|
+
request = build_mrb_create_mrb_template_request(
|
|
26642
|
+
content_type=content_type,
|
|
26643
|
+
json=_json,
|
|
26644
|
+
content=_content,
|
|
25091
26645
|
headers=_headers,
|
|
25092
26646
|
params=_params,
|
|
25093
26647
|
)
|
|
@@ -25104,41 +26658,69 @@ class MesProductionScheduleOperations:
|
|
|
25104
26658
|
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
25105
26659
|
raise HttpResponseError(response=response)
|
|
25106
26660
|
|
|
25107
|
-
deserialized = self._deserialize("
|
|
26661
|
+
deserialized = self._deserialize("MrbTemplateDto", pipeline_response)
|
|
25108
26662
|
|
|
25109
26663
|
if cls:
|
|
25110
26664
|
return cls(pipeline_response, deserialized, {})
|
|
25111
26665
|
|
|
25112
26666
|
return deserialized
|
|
25113
26667
|
|
|
26668
|
+
@overload
|
|
26669
|
+
def update_mrb_template(
|
|
26670
|
+
self,
|
|
26671
|
+
body: Optional[_models.UpdateMrbTemplateRequest] = None,
|
|
26672
|
+
*,
|
|
26673
|
+
content_type: str = "application/json",
|
|
26674
|
+
**kwargs: Any
|
|
26675
|
+
) -> _models.MrbTemplateDto:
|
|
26676
|
+
"""Update an MRB template.
|
|
25114
26677
|
|
|
25115
|
-
|
|
25116
|
-
"""
|
|
25117
|
-
.. warning::
|
|
25118
|
-
**DO NOT** instantiate this class directly.
|
|
26678
|
+
Update an MRB template.
|
|
25119
26679
|
|
|
25120
|
-
|
|
25121
|
-
:
|
|
25122
|
-
:
|
|
25123
|
-
|
|
26680
|
+
:param body: Default value is None.
|
|
26681
|
+
:type body: ~ignos.api.client.models.UpdateMrbTemplateRequest
|
|
26682
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
|
26683
|
+
Default value is "application/json".
|
|
26684
|
+
:paramtype content_type: str
|
|
26685
|
+
:return: MrbTemplateDto
|
|
26686
|
+
:rtype: ~ignos.api.client.models.MrbTemplateDto
|
|
26687
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
26688
|
+
"""
|
|
25124
26689
|
|
|
25125
|
-
|
|
26690
|
+
@overload
|
|
26691
|
+
def update_mrb_template(
|
|
26692
|
+
self, body: Optional[IO] = None, *, content_type: str = "application/json", **kwargs: Any
|
|
26693
|
+
) -> _models.MrbTemplateDto:
|
|
26694
|
+
"""Update an MRB template.
|
|
25126
26695
|
|
|
25127
|
-
|
|
25128
|
-
|
|
25129
|
-
|
|
25130
|
-
|
|
25131
|
-
|
|
25132
|
-
|
|
26696
|
+
Update an MRB template.
|
|
26697
|
+
|
|
26698
|
+
:param body: Default value is None.
|
|
26699
|
+
:type body: IO
|
|
26700
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
|
26701
|
+
Known values are: 'application/*+json', 'application/json', 'text/json'. Default value is
|
|
26702
|
+
"application/json".
|
|
26703
|
+
:paramtype content_type: str
|
|
26704
|
+
:return: MrbTemplateDto
|
|
26705
|
+
:rtype: ~ignos.api.client.models.MrbTemplateDto
|
|
26706
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
26707
|
+
"""
|
|
25133
26708
|
|
|
25134
26709
|
@distributed_trace
|
|
25135
|
-
def
|
|
25136
|
-
|
|
26710
|
+
def update_mrb_template(
|
|
26711
|
+
self, body: Optional[Union[_models.UpdateMrbTemplateRequest, IO]] = None, **kwargs: Any
|
|
26712
|
+
) -> _models.MrbTemplateDto:
|
|
26713
|
+
"""Update an MRB template.
|
|
25137
26714
|
|
|
25138
|
-
|
|
25139
|
-
|
|
25140
|
-
:
|
|
25141
|
-
:
|
|
26715
|
+
Update an MRB template.
|
|
26716
|
+
|
|
26717
|
+
:param body: Is either a UpdateMrbTemplateRequest type or a IO type. Default value is None.
|
|
26718
|
+
:type body: ~ignos.api.client.models.UpdateMrbTemplateRequest or IO
|
|
26719
|
+
:keyword content_type: Body Parameter content-type. Known values are: 'application/*+json',
|
|
26720
|
+
'application/json', 'text/json'. Default value is None.
|
|
26721
|
+
:paramtype content_type: str
|
|
26722
|
+
:return: MrbTemplateDto
|
|
26723
|
+
:rtype: ~ignos.api.client.models.MrbTemplateDto
|
|
25142
26724
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
25143
26725
|
"""
|
|
25144
26726
|
error_map = {
|
|
@@ -25149,13 +26731,27 @@ class MesResourceOperations:
|
|
|
25149
26731
|
}
|
|
25150
26732
|
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
25151
26733
|
|
|
25152
|
-
_headers = kwargs.pop("headers", {}) or {}
|
|
26734
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
25153
26735
|
_params = kwargs.pop("params", {}) or {}
|
|
25154
26736
|
|
|
25155
|
-
|
|
26737
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
26738
|
+
cls: ClsType[_models.MrbTemplateDto] = kwargs.pop("cls", None)
|
|
25156
26739
|
|
|
25157
|
-
|
|
25158
|
-
|
|
26740
|
+
content_type = content_type or "application/json"
|
|
26741
|
+
_json = None
|
|
26742
|
+
_content = None
|
|
26743
|
+
if isinstance(body, (IOBase, bytes)):
|
|
26744
|
+
_content = body
|
|
26745
|
+
else:
|
|
26746
|
+
if body is not None:
|
|
26747
|
+
_json = self._serialize.body(body, "UpdateMrbTemplateRequest")
|
|
26748
|
+
else:
|
|
26749
|
+
_json = None
|
|
26750
|
+
|
|
26751
|
+
request = build_mrb_update_mrb_template_request(
|
|
26752
|
+
content_type=content_type,
|
|
26753
|
+
json=_json,
|
|
26754
|
+
content=_content,
|
|
25159
26755
|
headers=_headers,
|
|
25160
26756
|
params=_params,
|
|
25161
26757
|
)
|
|
@@ -25172,21 +26768,69 @@ class MesResourceOperations:
|
|
|
25172
26768
|
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
25173
26769
|
raise HttpResponseError(response=response)
|
|
25174
26770
|
|
|
25175
|
-
deserialized = self._deserialize("
|
|
26771
|
+
deserialized = self._deserialize("MrbTemplateDto", pipeline_response)
|
|
25176
26772
|
|
|
25177
26773
|
if cls:
|
|
25178
26774
|
return cls(pipeline_response, deserialized, {})
|
|
25179
26775
|
|
|
25180
26776
|
return deserialized
|
|
25181
26777
|
|
|
26778
|
+
@overload
|
|
26779
|
+
def delete_mrb_template( # pylint: disable=inconsistent-return-statements
|
|
26780
|
+
self,
|
|
26781
|
+
body: Optional[_models.DeleteMrbTemplateRequest] = None,
|
|
26782
|
+
*,
|
|
26783
|
+
content_type: str = "application/json",
|
|
26784
|
+
**kwargs: Any
|
|
26785
|
+
) -> None:
|
|
26786
|
+
"""Delete an MRB template.
|
|
26787
|
+
|
|
26788
|
+
Delete an MRB template.
|
|
26789
|
+
|
|
26790
|
+
:param body: Default value is None.
|
|
26791
|
+
:type body: ~ignos.api.client.models.DeleteMrbTemplateRequest
|
|
26792
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
|
26793
|
+
Default value is "application/json".
|
|
26794
|
+
:paramtype content_type: str
|
|
26795
|
+
:return: None
|
|
26796
|
+
:rtype: None
|
|
26797
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
26798
|
+
"""
|
|
26799
|
+
|
|
26800
|
+
@overload
|
|
26801
|
+
def delete_mrb_template( # pylint: disable=inconsistent-return-statements
|
|
26802
|
+
self, body: Optional[IO] = None, *, content_type: str = "application/json", **kwargs: Any
|
|
26803
|
+
) -> None:
|
|
26804
|
+
"""Delete an MRB template.
|
|
26805
|
+
|
|
26806
|
+
Delete an MRB template.
|
|
26807
|
+
|
|
26808
|
+
:param body: Default value is None.
|
|
26809
|
+
:type body: IO
|
|
26810
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
|
26811
|
+
Known values are: 'application/*+json', 'application/json', 'text/json'. Default value is
|
|
26812
|
+
"application/json".
|
|
26813
|
+
:paramtype content_type: str
|
|
26814
|
+
:return: None
|
|
26815
|
+
:rtype: None
|
|
26816
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
26817
|
+
"""
|
|
26818
|
+
|
|
25182
26819
|
@distributed_trace
|
|
25183
|
-
def
|
|
25184
|
-
|
|
26820
|
+
def delete_mrb_template( # pylint: disable=inconsistent-return-statements
|
|
26821
|
+
self, body: Optional[Union[_models.DeleteMrbTemplateRequest, IO]] = None, **kwargs: Any
|
|
26822
|
+
) -> None:
|
|
26823
|
+
"""Delete an MRB template.
|
|
25185
26824
|
|
|
25186
|
-
|
|
25187
|
-
|
|
25188
|
-
:
|
|
25189
|
-
:
|
|
26825
|
+
Delete an MRB template.
|
|
26826
|
+
|
|
26827
|
+
:param body: Is either a DeleteMrbTemplateRequest type or a IO type. Default value is None.
|
|
26828
|
+
:type body: ~ignos.api.client.models.DeleteMrbTemplateRequest or IO
|
|
26829
|
+
:keyword content_type: Body Parameter content-type. Known values are: 'application/*+json',
|
|
26830
|
+
'application/json', 'text/json'. Default value is None.
|
|
26831
|
+
:paramtype content_type: str
|
|
26832
|
+
:return: None
|
|
26833
|
+
:rtype: None
|
|
25190
26834
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
25191
26835
|
"""
|
|
25192
26836
|
error_map = {
|
|
@@ -25197,13 +26841,27 @@ class MesResourceOperations:
|
|
|
25197
26841
|
}
|
|
25198
26842
|
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
25199
26843
|
|
|
25200
|
-
_headers = kwargs.pop("headers", {}) or {}
|
|
26844
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
25201
26845
|
_params = kwargs.pop("params", {}) or {}
|
|
25202
26846
|
|
|
25203
|
-
|
|
26847
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
26848
|
+
cls: ClsType[None] = kwargs.pop("cls", None)
|
|
25204
26849
|
|
|
25205
|
-
|
|
25206
|
-
|
|
26850
|
+
content_type = content_type or "application/json"
|
|
26851
|
+
_json = None
|
|
26852
|
+
_content = None
|
|
26853
|
+
if isinstance(body, (IOBase, bytes)):
|
|
26854
|
+
_content = body
|
|
26855
|
+
else:
|
|
26856
|
+
if body is not None:
|
|
26857
|
+
_json = self._serialize.body(body, "DeleteMrbTemplateRequest")
|
|
26858
|
+
else:
|
|
26859
|
+
_json = None
|
|
26860
|
+
|
|
26861
|
+
request = build_mrb_delete_mrb_template_request(
|
|
26862
|
+
content_type=content_type,
|
|
26863
|
+
json=_json,
|
|
26864
|
+
content=_content,
|
|
25207
26865
|
headers=_headers,
|
|
25208
26866
|
params=_params,
|
|
25209
26867
|
)
|
|
@@ -25220,12 +26878,8 @@ class MesResourceOperations:
|
|
|
25220
26878
|
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
25221
26879
|
raise HttpResponseError(response=response)
|
|
25222
26880
|
|
|
25223
|
-
deserialized = self._deserialize("[ProductionResourceDto]", pipeline_response)
|
|
25224
|
-
|
|
25225
26881
|
if cls:
|
|
25226
|
-
return cls(pipeline_response,
|
|
25227
|
-
|
|
25228
|
-
return deserialized
|
|
26882
|
+
return cls(pipeline_response, None, {})
|
|
25229
26883
|
|
|
25230
26884
|
|
|
25231
26885
|
class OperatorCalculatorsOperations:
|
|
@@ -26819,6 +28473,74 @@ class SystemHealthDashboardOperations:
|
|
|
26819
28473
|
return deserialized
|
|
26820
28474
|
|
|
26821
28475
|
|
|
28476
|
+
class TraceOperations:
|
|
28477
|
+
"""
|
|
28478
|
+
.. warning::
|
|
28479
|
+
**DO NOT** instantiate this class directly.
|
|
28480
|
+
|
|
28481
|
+
Instead, you should access the following operations through
|
|
28482
|
+
:class:`~ignos.api.client.IgnosPortal`'s
|
|
28483
|
+
:attr:`trace` attribute.
|
|
28484
|
+
"""
|
|
28485
|
+
|
|
28486
|
+
models = _models
|
|
28487
|
+
|
|
28488
|
+
def __init__(self, *args, **kwargs):
|
|
28489
|
+
input_args = list(args)
|
|
28490
|
+
self._client = input_args.pop(0) if input_args else kwargs.pop("client")
|
|
28491
|
+
self._config = input_args.pop(0) if input_args else kwargs.pop("config")
|
|
28492
|
+
self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
|
28493
|
+
self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
|
28494
|
+
|
|
28495
|
+
@distributed_trace
|
|
28496
|
+
def get_work_order_trace(self, id: str, **kwargs: Any) -> _models.TraceDto:
|
|
28497
|
+
"""get_work_order_trace.
|
|
28498
|
+
|
|
28499
|
+
:param id: Required.
|
|
28500
|
+
:type id: str
|
|
28501
|
+
:return: TraceDto
|
|
28502
|
+
:rtype: ~ignos.api.client.models.TraceDto
|
|
28503
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
28504
|
+
"""
|
|
28505
|
+
error_map = {
|
|
28506
|
+
401: ClientAuthenticationError,
|
|
28507
|
+
404: ResourceNotFoundError,
|
|
28508
|
+
409: ResourceExistsError,
|
|
28509
|
+
304: ResourceNotModifiedError,
|
|
28510
|
+
}
|
|
28511
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
28512
|
+
|
|
28513
|
+
_headers = kwargs.pop("headers", {}) or {}
|
|
28514
|
+
_params = kwargs.pop("params", {}) or {}
|
|
28515
|
+
|
|
28516
|
+
cls: ClsType[_models.TraceDto] = kwargs.pop("cls", None)
|
|
28517
|
+
|
|
28518
|
+
request = build_trace_get_work_order_trace_request(
|
|
28519
|
+
id=id,
|
|
28520
|
+
headers=_headers,
|
|
28521
|
+
params=_params,
|
|
28522
|
+
)
|
|
28523
|
+
request.url = self._client.format_url(request.url)
|
|
28524
|
+
|
|
28525
|
+
_stream = False
|
|
28526
|
+
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
|
28527
|
+
request, stream=_stream, **kwargs
|
|
28528
|
+
)
|
|
28529
|
+
|
|
28530
|
+
response = pipeline_response.http_response
|
|
28531
|
+
|
|
28532
|
+
if response.status_code not in [200]:
|
|
28533
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
28534
|
+
raise HttpResponseError(response=response)
|
|
28535
|
+
|
|
28536
|
+
deserialized = self._deserialize("TraceDto", pipeline_response)
|
|
28537
|
+
|
|
28538
|
+
if cls:
|
|
28539
|
+
return cls(pipeline_response, deserialized, {})
|
|
28540
|
+
|
|
28541
|
+
return deserialized
|
|
28542
|
+
|
|
28543
|
+
|
|
26822
28544
|
class UploadOperations:
|
|
26823
28545
|
"""
|
|
26824
28546
|
.. warning::
|