ignos-api-client 2023.12.22.7919__py3-none-any.whl → 2023.12.29.7935__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ignos/api/client/_version.py +1 -1
- ignos/api/client/aio/operations/_operations.py +1949 -61
- ignos/api/client/models/__init__.py +34 -0
- ignos/api/client/models/_models.py +1071 -0
- ignos/api/client/operations/_operations.py +2330 -130
- {ignos_api_client-2023.12.22.7919.dist-info → ignos_api_client-2023.12.29.7935.dist-info}/METADATA +1 -1
- {ignos_api_client-2023.12.22.7919.dist-info → ignos_api_client-2023.12.29.7935.dist-info}/RECORD +9 -9
- {ignos_api_client-2023.12.22.7919.dist-info → ignos_api_client-2023.12.29.7935.dist-info}/WHEEL +0 -0
- {ignos_api_client-2023.12.22.7919.dist-info → ignos_api_client-2023.12.29.7935.dist-info}/top_level.txt +0 -0
|
@@ -85,6 +85,8 @@ from ...operations._operations import (
|
|
|
85
85
|
build_cnc_setup_list_cnc_tool_by_cnc_machine_request,
|
|
86
86
|
build_cnc_setup_list_cnc_tool_by_operation_request,
|
|
87
87
|
build_cnc_setup_list_cnc_tool_types_request,
|
|
88
|
+
build_cnc_setup_post_list_cnc_machine_operations_request,
|
|
89
|
+
build_cnc_setup_post_list_cnc_parts_request,
|
|
88
90
|
build_cnc_setup_update_cnc_machine_communication_settings_request,
|
|
89
91
|
build_cnc_setup_update_cnc_machine_operation_request,
|
|
90
92
|
build_cnc_setup_update_cnc_machine_operation_tool_request,
|
|
@@ -96,6 +98,7 @@ from ...operations._operations import (
|
|
|
96
98
|
build_customer_orders_get_customer_order_request,
|
|
97
99
|
build_customer_orders_list_customer_order_lines_request,
|
|
98
100
|
build_customer_orders_list_customer_orders_request,
|
|
101
|
+
build_customer_orders_post_list_customer_orders_request,
|
|
99
102
|
build_customer_orders_upsert_customer_order_line_request,
|
|
100
103
|
build_customer_orders_upsert_customer_order_request,
|
|
101
104
|
build_customers_create_customer_mapping_request,
|
|
@@ -105,6 +108,7 @@ from ...operations._operations import (
|
|
|
105
108
|
build_customers_get_current_customer_request,
|
|
106
109
|
build_customers_list_customer_groups_request,
|
|
107
110
|
build_customers_list_customers_request,
|
|
111
|
+
build_customers_post_list_customers_request,
|
|
108
112
|
build_customers_upsert_customer_request,
|
|
109
113
|
build_document_types_activate_document_type_request,
|
|
110
114
|
build_document_types_create_document_type_request,
|
|
@@ -117,6 +121,7 @@ from ...operations._operations import (
|
|
|
117
121
|
build_document_types_list_document_types_request,
|
|
118
122
|
build_document_types_update_document_type_request,
|
|
119
123
|
build_document_types_update_document_type_rules_request,
|
|
124
|
+
build_documents_check_if_imported_document_exists_request,
|
|
120
125
|
build_documents_import_document_request,
|
|
121
126
|
build_electrical_create_electrical_iot_config_request,
|
|
122
127
|
build_electrical_delete_electrical_iot_config_request,
|
|
@@ -195,6 +200,12 @@ from ...operations._operations import (
|
|
|
195
200
|
build_measurement_form_schemas_list_measurment_form_schemas_request,
|
|
196
201
|
build_measurement_form_schemas_list_measurment_form_schemas_with_history_request,
|
|
197
202
|
build_measurement_form_schemas_list_resource_types_for_needs_generator_request,
|
|
203
|
+
build_measurement_form_schemas_post_list_linkable_measurement_form_schemas_request,
|
|
204
|
+
build_measurement_form_schemas_post_list_measurement_form_instance_schema_feedback_request,
|
|
205
|
+
build_measurement_form_schemas_post_list_measurement_form_needs_request,
|
|
206
|
+
build_measurement_form_schemas_post_list_measurement_form_schemas_not_needed_request,
|
|
207
|
+
build_measurement_form_schemas_post_list_measurement_form_schemas_request,
|
|
208
|
+
build_measurement_form_schemas_post_list_measurement_form_schemas_with_history_request,
|
|
198
209
|
build_measurement_form_schemas_release_schema_request,
|
|
199
210
|
build_measurement_form_schemas_revoke_schema_request,
|
|
200
211
|
build_measurement_form_schemas_set_measurement_form_instance_schema_feedback_user_request,
|
|
@@ -228,6 +239,8 @@ from ...operations._operations import (
|
|
|
228
239
|
build_measurement_forms_instances_list_measurement_forms_by_status_request,
|
|
229
240
|
build_measurement_forms_instances_list_measurement_forms_request,
|
|
230
241
|
build_measurement_forms_instances_list_supplier_measurement_form_instances_request,
|
|
242
|
+
build_measurement_forms_instances_post_list_measurement_forms_by_status_request,
|
|
243
|
+
build_measurement_forms_instances_post_list_measurement_forms_request,
|
|
231
244
|
build_measurement_forms_instances_reactivate_measurement_form_instance_request,
|
|
232
245
|
build_measurement_forms_instances_remove_supplier_from_measurment_form_instance_request,
|
|
233
246
|
build_measurement_forms_instances_save_comment_request,
|
|
@@ -283,6 +296,7 @@ from ...operations._operations import (
|
|
|
283
296
|
build_mes_production_order_post_material_pick_list_request,
|
|
284
297
|
build_mes_production_schedule_list_my_current_work_activities_request,
|
|
285
298
|
build_mes_production_schedule_list_production_schedule_operations_request,
|
|
299
|
+
build_mes_production_schedule_post_list_production_schedule_operations_request,
|
|
286
300
|
build_mes_production_schedule_report_operation_progress_request,
|
|
287
301
|
build_mes_production_schedule_start_operations_request,
|
|
288
302
|
build_mes_resource_list_resource_group_resources_request,
|
|
@@ -310,6 +324,7 @@ from ...operations._operations import (
|
|
|
310
324
|
build_mrb_list_mrb_templates_request,
|
|
311
325
|
build_mrb_list_recent_mrb_intances_request,
|
|
312
326
|
build_mrb_mark_mrb_revision_as_sent_request,
|
|
327
|
+
build_mrb_post_list_mrb_instance_reports_request,
|
|
313
328
|
build_mrb_refresh_mrb_revision_content_request,
|
|
314
329
|
build_mrb_reject_mrb_revision_request,
|
|
315
330
|
build_mrb_update_mrb_template_request,
|
|
@@ -343,9 +358,11 @@ from ...operations._operations import (
|
|
|
343
358
|
build_trace_get_trace_request,
|
|
344
359
|
build_trace_list_customer_order_line_traces_request,
|
|
345
360
|
build_trace_list_trace_workorders_request,
|
|
361
|
+
build_trace_post_list_trace_workorders_request,
|
|
346
362
|
build_trace_update_trace_request,
|
|
347
363
|
build_upload_create_upload_info_request,
|
|
348
364
|
build_users_list_users_request,
|
|
365
|
+
build_users_post_list_users_request,
|
|
349
366
|
build_welding_create_welding_iot_config_request,
|
|
350
367
|
build_welding_delete_welding_iot_config_request,
|
|
351
368
|
build_welding_list_electrical_data_configs_request,
|
|
@@ -360,6 +377,7 @@ from ...operations._operations import (
|
|
|
360
377
|
build_workorders_get_workorder_request,
|
|
361
378
|
build_workorders_list_active_workorder_operations_request,
|
|
362
379
|
build_workorders_list_workorders_request,
|
|
380
|
+
build_workorders_post_list_workorders_request,
|
|
363
381
|
build_workorders_register_workorder_operation_event_request,
|
|
364
382
|
build_workorders_set_workorder_customer_order_reference_request,
|
|
365
383
|
build_workorders_start_workorder_operation_request,
|
|
@@ -2989,6 +3007,112 @@ class CncSetupOperations: # pylint: disable=too-many-public-methods
|
|
|
2989
3007
|
|
|
2990
3008
|
return deserialized # type: ignore
|
|
2991
3009
|
|
|
3010
|
+
@overload
|
|
3011
|
+
async def post_list_cnc_parts(
|
|
3012
|
+
self,
|
|
3013
|
+
body: Optional[_models.ListCncPartsRequest] = None,
|
|
3014
|
+
*,
|
|
3015
|
+
content_type: str = "application/json",
|
|
3016
|
+
**kwargs: Any
|
|
3017
|
+
) -> _models.CncPartListDtoPagedResult:
|
|
3018
|
+
"""post_list_cnc_parts.
|
|
3019
|
+
|
|
3020
|
+
:param body: Default value is None.
|
|
3021
|
+
:type body: ~ignos.api.client.models.ListCncPartsRequest
|
|
3022
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
|
3023
|
+
Default value is "application/json".
|
|
3024
|
+
:paramtype content_type: str
|
|
3025
|
+
:return: CncPartListDtoPagedResult
|
|
3026
|
+
:rtype: ~ignos.api.client.models.CncPartListDtoPagedResult
|
|
3027
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
3028
|
+
"""
|
|
3029
|
+
|
|
3030
|
+
@overload
|
|
3031
|
+
async def post_list_cnc_parts(
|
|
3032
|
+
self, body: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any
|
|
3033
|
+
) -> _models.CncPartListDtoPagedResult:
|
|
3034
|
+
"""post_list_cnc_parts.
|
|
3035
|
+
|
|
3036
|
+
:param body: Default value is None.
|
|
3037
|
+
:type body: IO[bytes]
|
|
3038
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
|
3039
|
+
Known values are: 'application/*+json', 'application/json', 'text/json'. Default value is
|
|
3040
|
+
"application/json".
|
|
3041
|
+
:paramtype content_type: str
|
|
3042
|
+
:return: CncPartListDtoPagedResult
|
|
3043
|
+
:rtype: ~ignos.api.client.models.CncPartListDtoPagedResult
|
|
3044
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
3045
|
+
"""
|
|
3046
|
+
|
|
3047
|
+
@distributed_trace_async
|
|
3048
|
+
async def post_list_cnc_parts(
|
|
3049
|
+
self, body: Optional[Union[_models.ListCncPartsRequest, IO[bytes]]] = None, **kwargs: Any
|
|
3050
|
+
) -> _models.CncPartListDtoPagedResult:
|
|
3051
|
+
"""post_list_cnc_parts.
|
|
3052
|
+
|
|
3053
|
+
:param body: Is either a ListCncPartsRequest type or a IO[bytes] type. Default value is None.
|
|
3054
|
+
:type body: ~ignos.api.client.models.ListCncPartsRequest or IO[bytes]
|
|
3055
|
+
:keyword content_type: Body Parameter content-type. Known values are: 'application/*+json',
|
|
3056
|
+
'application/json', 'text/json'. Default value is None.
|
|
3057
|
+
:paramtype content_type: str
|
|
3058
|
+
:return: CncPartListDtoPagedResult
|
|
3059
|
+
:rtype: ~ignos.api.client.models.CncPartListDtoPagedResult
|
|
3060
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
3061
|
+
"""
|
|
3062
|
+
error_map = {
|
|
3063
|
+
401: ClientAuthenticationError,
|
|
3064
|
+
404: ResourceNotFoundError,
|
|
3065
|
+
409: ResourceExistsError,
|
|
3066
|
+
304: ResourceNotModifiedError,
|
|
3067
|
+
}
|
|
3068
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
3069
|
+
|
|
3070
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
3071
|
+
_params = kwargs.pop("params", {}) or {}
|
|
3072
|
+
|
|
3073
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
3074
|
+
cls: ClsType[_models.CncPartListDtoPagedResult] = kwargs.pop("cls", None)
|
|
3075
|
+
|
|
3076
|
+
content_type = content_type or "application/json"
|
|
3077
|
+
_json = None
|
|
3078
|
+
_content = None
|
|
3079
|
+
if isinstance(body, (IOBase, bytes)):
|
|
3080
|
+
_content = body
|
|
3081
|
+
else:
|
|
3082
|
+
if body is not None:
|
|
3083
|
+
_json = self._serialize.body(body, "ListCncPartsRequest")
|
|
3084
|
+
else:
|
|
3085
|
+
_json = None
|
|
3086
|
+
|
|
3087
|
+
_request = build_cnc_setup_post_list_cnc_parts_request(
|
|
3088
|
+
content_type=content_type,
|
|
3089
|
+
json=_json,
|
|
3090
|
+
content=_content,
|
|
3091
|
+
headers=_headers,
|
|
3092
|
+
params=_params,
|
|
3093
|
+
)
|
|
3094
|
+
_request.url = self._client.format_url(_request.url)
|
|
3095
|
+
|
|
3096
|
+
_stream = False
|
|
3097
|
+
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
|
3098
|
+
_request, stream=_stream, **kwargs
|
|
3099
|
+
)
|
|
3100
|
+
|
|
3101
|
+
response = pipeline_response.http_response
|
|
3102
|
+
|
|
3103
|
+
if response.status_code not in [200]:
|
|
3104
|
+
if _stream:
|
|
3105
|
+
await response.read() # Load the body in memory and close the socket
|
|
3106
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
3107
|
+
raise HttpResponseError(response=response)
|
|
3108
|
+
|
|
3109
|
+
deserialized = self._deserialize("CncPartListDtoPagedResult", pipeline_response)
|
|
3110
|
+
|
|
3111
|
+
if cls:
|
|
3112
|
+
return cls(pipeline_response, deserialized, {}) # type: ignore
|
|
3113
|
+
|
|
3114
|
+
return deserialized # type: ignore
|
|
3115
|
+
|
|
2992
3116
|
@overload
|
|
2993
3117
|
async def copy_cnc_part(
|
|
2994
3118
|
self, body: Optional[_models.CopyCncPart] = None, *, content_type: str = "application/json", **kwargs: Any
|
|
@@ -3573,6 +3697,113 @@ class CncSetupOperations: # pylint: disable=too-many-public-methods
|
|
|
3573
3697
|
|
|
3574
3698
|
return deserialized # type: ignore
|
|
3575
3699
|
|
|
3700
|
+
@overload
|
|
3701
|
+
async def post_list_cnc_machine_operations(
|
|
3702
|
+
self,
|
|
3703
|
+
body: Optional[_models.ListCncMachineOperationsRequest] = None,
|
|
3704
|
+
*,
|
|
3705
|
+
content_type: str = "application/json",
|
|
3706
|
+
**kwargs: Any
|
|
3707
|
+
) -> _models.CncMachineOperationSearchResultDtoPagedResult:
|
|
3708
|
+
"""post_list_cnc_machine_operations.
|
|
3709
|
+
|
|
3710
|
+
:param body: Default value is None.
|
|
3711
|
+
:type body: ~ignos.api.client.models.ListCncMachineOperationsRequest
|
|
3712
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
|
3713
|
+
Default value is "application/json".
|
|
3714
|
+
:paramtype content_type: str
|
|
3715
|
+
:return: CncMachineOperationSearchResultDtoPagedResult
|
|
3716
|
+
:rtype: ~ignos.api.client.models.CncMachineOperationSearchResultDtoPagedResult
|
|
3717
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
3718
|
+
"""
|
|
3719
|
+
|
|
3720
|
+
@overload
|
|
3721
|
+
async def post_list_cnc_machine_operations(
|
|
3722
|
+
self, body: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any
|
|
3723
|
+
) -> _models.CncMachineOperationSearchResultDtoPagedResult:
|
|
3724
|
+
"""post_list_cnc_machine_operations.
|
|
3725
|
+
|
|
3726
|
+
:param body: Default value is None.
|
|
3727
|
+
:type body: IO[bytes]
|
|
3728
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
|
3729
|
+
Known values are: 'application/*+json', 'application/json', 'text/json'. Default value is
|
|
3730
|
+
"application/json".
|
|
3731
|
+
:paramtype content_type: str
|
|
3732
|
+
:return: CncMachineOperationSearchResultDtoPagedResult
|
|
3733
|
+
:rtype: ~ignos.api.client.models.CncMachineOperationSearchResultDtoPagedResult
|
|
3734
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
3735
|
+
"""
|
|
3736
|
+
|
|
3737
|
+
@distributed_trace_async
|
|
3738
|
+
async def post_list_cnc_machine_operations(
|
|
3739
|
+
self, body: Optional[Union[_models.ListCncMachineOperationsRequest, IO[bytes]]] = None, **kwargs: Any
|
|
3740
|
+
) -> _models.CncMachineOperationSearchResultDtoPagedResult:
|
|
3741
|
+
"""post_list_cnc_machine_operations.
|
|
3742
|
+
|
|
3743
|
+
:param body: Is either a ListCncMachineOperationsRequest type or a IO[bytes] type. Default
|
|
3744
|
+
value is None.
|
|
3745
|
+
:type body: ~ignos.api.client.models.ListCncMachineOperationsRequest or IO[bytes]
|
|
3746
|
+
:keyword content_type: Body Parameter content-type. Known values are: 'application/*+json',
|
|
3747
|
+
'application/json', 'text/json'. Default value is None.
|
|
3748
|
+
:paramtype content_type: str
|
|
3749
|
+
:return: CncMachineOperationSearchResultDtoPagedResult
|
|
3750
|
+
:rtype: ~ignos.api.client.models.CncMachineOperationSearchResultDtoPagedResult
|
|
3751
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
3752
|
+
"""
|
|
3753
|
+
error_map = {
|
|
3754
|
+
401: ClientAuthenticationError,
|
|
3755
|
+
404: ResourceNotFoundError,
|
|
3756
|
+
409: ResourceExistsError,
|
|
3757
|
+
304: ResourceNotModifiedError,
|
|
3758
|
+
}
|
|
3759
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
3760
|
+
|
|
3761
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
3762
|
+
_params = kwargs.pop("params", {}) or {}
|
|
3763
|
+
|
|
3764
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
3765
|
+
cls: ClsType[_models.CncMachineOperationSearchResultDtoPagedResult] = kwargs.pop("cls", None)
|
|
3766
|
+
|
|
3767
|
+
content_type = content_type or "application/json"
|
|
3768
|
+
_json = None
|
|
3769
|
+
_content = None
|
|
3770
|
+
if isinstance(body, (IOBase, bytes)):
|
|
3771
|
+
_content = body
|
|
3772
|
+
else:
|
|
3773
|
+
if body is not None:
|
|
3774
|
+
_json = self._serialize.body(body, "ListCncMachineOperationsRequest")
|
|
3775
|
+
else:
|
|
3776
|
+
_json = None
|
|
3777
|
+
|
|
3778
|
+
_request = build_cnc_setup_post_list_cnc_machine_operations_request(
|
|
3779
|
+
content_type=content_type,
|
|
3780
|
+
json=_json,
|
|
3781
|
+
content=_content,
|
|
3782
|
+
headers=_headers,
|
|
3783
|
+
params=_params,
|
|
3784
|
+
)
|
|
3785
|
+
_request.url = self._client.format_url(_request.url)
|
|
3786
|
+
|
|
3787
|
+
_stream = False
|
|
3788
|
+
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
|
3789
|
+
_request, stream=_stream, **kwargs
|
|
3790
|
+
)
|
|
3791
|
+
|
|
3792
|
+
response = pipeline_response.http_response
|
|
3793
|
+
|
|
3794
|
+
if response.status_code not in [200]:
|
|
3795
|
+
if _stream:
|
|
3796
|
+
await response.read() # Load the body in memory and close the socket
|
|
3797
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
3798
|
+
raise HttpResponseError(response=response)
|
|
3799
|
+
|
|
3800
|
+
deserialized = self._deserialize("CncMachineOperationSearchResultDtoPagedResult", pipeline_response)
|
|
3801
|
+
|
|
3802
|
+
if cls:
|
|
3803
|
+
return cls(pipeline_response, deserialized, {}) # type: ignore
|
|
3804
|
+
|
|
3805
|
+
return deserialized # type: ignore
|
|
3806
|
+
|
|
3576
3807
|
@overload
|
|
3577
3808
|
async def update_cnc_machine_operation(
|
|
3578
3809
|
self,
|
|
@@ -6078,14 +6309,56 @@ class CustomersOperations:
|
|
|
6078
6309
|
|
|
6079
6310
|
return deserialized # type: ignore
|
|
6080
6311
|
|
|
6081
|
-
@
|
|
6082
|
-
async def
|
|
6083
|
-
|
|
6312
|
+
@overload
|
|
6313
|
+
async def post_list_customers(
|
|
6314
|
+
self,
|
|
6315
|
+
body: Optional[_models.ListCustomersRequest] = None,
|
|
6316
|
+
*,
|
|
6317
|
+
content_type: str = "application/json",
|
|
6318
|
+
**kwargs: Any
|
|
6319
|
+
) -> _models.CustomerDtoPagedResult:
|
|
6320
|
+
"""post_list_customers.
|
|
6084
6321
|
|
|
6085
|
-
|
|
6322
|
+
:param body: Default value is None.
|
|
6323
|
+
:type body: ~ignos.api.client.models.ListCustomersRequest
|
|
6324
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
|
6325
|
+
Default value is "application/json".
|
|
6326
|
+
:paramtype content_type: str
|
|
6327
|
+
:return: CustomerDtoPagedResult
|
|
6328
|
+
:rtype: ~ignos.api.client.models.CustomerDtoPagedResult
|
|
6329
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
6330
|
+
"""
|
|
6086
6331
|
|
|
6087
|
-
|
|
6088
|
-
|
|
6332
|
+
@overload
|
|
6333
|
+
async def post_list_customers(
|
|
6334
|
+
self, body: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any
|
|
6335
|
+
) -> _models.CustomerDtoPagedResult:
|
|
6336
|
+
"""post_list_customers.
|
|
6337
|
+
|
|
6338
|
+
:param body: Default value is None.
|
|
6339
|
+
:type body: IO[bytes]
|
|
6340
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
|
6341
|
+
Known values are: 'application/*+json', 'application/json', 'text/json'. Default value is
|
|
6342
|
+
"application/json".
|
|
6343
|
+
:paramtype content_type: str
|
|
6344
|
+
:return: CustomerDtoPagedResult
|
|
6345
|
+
:rtype: ~ignos.api.client.models.CustomerDtoPagedResult
|
|
6346
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
6347
|
+
"""
|
|
6348
|
+
|
|
6349
|
+
@distributed_trace_async
|
|
6350
|
+
async def post_list_customers(
|
|
6351
|
+
self, body: Optional[Union[_models.ListCustomersRequest, IO[bytes]]] = None, **kwargs: Any
|
|
6352
|
+
) -> _models.CustomerDtoPagedResult:
|
|
6353
|
+
"""post_list_customers.
|
|
6354
|
+
|
|
6355
|
+
:param body: Is either a ListCustomersRequest type or a IO[bytes] type. Default value is None.
|
|
6356
|
+
:type body: ~ignos.api.client.models.ListCustomersRequest or IO[bytes]
|
|
6357
|
+
:keyword content_type: Body Parameter content-type. Known values are: 'application/*+json',
|
|
6358
|
+
'application/json', 'text/json'. Default value is None.
|
|
6359
|
+
:paramtype content_type: str
|
|
6360
|
+
:return: CustomerDtoPagedResult
|
|
6361
|
+
:rtype: ~ignos.api.client.models.CustomerDtoPagedResult
|
|
6089
6362
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
6090
6363
|
"""
|
|
6091
6364
|
error_map = {
|
|
@@ -6096,12 +6369,27 @@ class CustomersOperations:
|
|
|
6096
6369
|
}
|
|
6097
6370
|
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
6098
6371
|
|
|
6099
|
-
_headers = kwargs.pop("headers", {}) or {}
|
|
6372
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
6100
6373
|
_params = kwargs.pop("params", {}) or {}
|
|
6101
6374
|
|
|
6102
|
-
|
|
6375
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
6376
|
+
cls: ClsType[_models.CustomerDtoPagedResult] = kwargs.pop("cls", None)
|
|
6103
6377
|
|
|
6104
|
-
|
|
6378
|
+
content_type = content_type or "application/json"
|
|
6379
|
+
_json = None
|
|
6380
|
+
_content = None
|
|
6381
|
+
if isinstance(body, (IOBase, bytes)):
|
|
6382
|
+
_content = body
|
|
6383
|
+
else:
|
|
6384
|
+
if body is not None:
|
|
6385
|
+
_json = self._serialize.body(body, "ListCustomersRequest")
|
|
6386
|
+
else:
|
|
6387
|
+
_json = None
|
|
6388
|
+
|
|
6389
|
+
_request = build_customers_post_list_customers_request(
|
|
6390
|
+
content_type=content_type,
|
|
6391
|
+
json=_json,
|
|
6392
|
+
content=_content,
|
|
6105
6393
|
headers=_headers,
|
|
6106
6394
|
params=_params,
|
|
6107
6395
|
)
|
|
@@ -6120,7 +6408,7 @@ class CustomersOperations:
|
|
|
6120
6408
|
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
6121
6409
|
raise HttpResponseError(response=response)
|
|
6122
6410
|
|
|
6123
|
-
deserialized = self._deserialize("
|
|
6411
|
+
deserialized = self._deserialize("CustomerDtoPagedResult", pipeline_response)
|
|
6124
6412
|
|
|
6125
6413
|
if cls:
|
|
6126
6414
|
return cls(pipeline_response, deserialized, {}) # type: ignore
|
|
@@ -6128,10 +6416,59 @@ class CustomersOperations:
|
|
|
6128
6416
|
return deserialized # type: ignore
|
|
6129
6417
|
|
|
6130
6418
|
@distributed_trace_async
|
|
6131
|
-
async def
|
|
6132
|
-
"""
|
|
6419
|
+
async def list_customer_groups(self, **kwargs: Any) -> List[_models.CustomerGroupDto]:
|
|
6420
|
+
"""List customer groups.
|
|
6133
6421
|
|
|
6134
|
-
|
|
6422
|
+
List customer groups.
|
|
6423
|
+
|
|
6424
|
+
:return: list of CustomerGroupDto
|
|
6425
|
+
:rtype: list[~ignos.api.client.models.CustomerGroupDto]
|
|
6426
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
6427
|
+
"""
|
|
6428
|
+
error_map = {
|
|
6429
|
+
401: ClientAuthenticationError,
|
|
6430
|
+
404: ResourceNotFoundError,
|
|
6431
|
+
409: ResourceExistsError,
|
|
6432
|
+
304: ResourceNotModifiedError,
|
|
6433
|
+
}
|
|
6434
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
6435
|
+
|
|
6436
|
+
_headers = kwargs.pop("headers", {}) or {}
|
|
6437
|
+
_params = kwargs.pop("params", {}) or {}
|
|
6438
|
+
|
|
6439
|
+
cls: ClsType[List[_models.CustomerGroupDto]] = kwargs.pop("cls", None)
|
|
6440
|
+
|
|
6441
|
+
_request = build_customers_list_customer_groups_request(
|
|
6442
|
+
headers=_headers,
|
|
6443
|
+
params=_params,
|
|
6444
|
+
)
|
|
6445
|
+
_request.url = self._client.format_url(_request.url)
|
|
6446
|
+
|
|
6447
|
+
_stream = False
|
|
6448
|
+
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
|
6449
|
+
_request, stream=_stream, **kwargs
|
|
6450
|
+
)
|
|
6451
|
+
|
|
6452
|
+
response = pipeline_response.http_response
|
|
6453
|
+
|
|
6454
|
+
if response.status_code not in [200]:
|
|
6455
|
+
if _stream:
|
|
6456
|
+
await response.read() # Load the body in memory and close the socket
|
|
6457
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
6458
|
+
raise HttpResponseError(response=response)
|
|
6459
|
+
|
|
6460
|
+
deserialized = self._deserialize("[CustomerGroupDto]", pipeline_response)
|
|
6461
|
+
|
|
6462
|
+
if cls:
|
|
6463
|
+
return cls(pipeline_response, deserialized, {}) # type: ignore
|
|
6464
|
+
|
|
6465
|
+
return deserialized # type: ignore
|
|
6466
|
+
|
|
6467
|
+
@distributed_trace_async
|
|
6468
|
+
async def deactivate_customer(self, id: str, **kwargs: Any) -> _models.ProblemDetails:
|
|
6469
|
+
"""Deactivates an existing customer.
|
|
6470
|
+
|
|
6471
|
+
Deactivates an existing customer.
|
|
6135
6472
|
|
|
6136
6473
|
:param id: Customer id. Required.
|
|
6137
6474
|
:type id: str
|
|
@@ -6460,6 +6797,60 @@ class DocumentsOperations:
|
|
|
6460
6797
|
|
|
6461
6798
|
return deserialized # type: ignore
|
|
6462
6799
|
|
|
6800
|
+
@distributed_trace_async
|
|
6801
|
+
async def check_if_imported_document_exists(
|
|
6802
|
+
self, *, imported_reference: Optional[str] = None, **kwargs: Any
|
|
6803
|
+
) -> str:
|
|
6804
|
+
"""Checks if a document exists with import reference. Returns document id if document exists.
|
|
6805
|
+
|
|
6806
|
+
Checks if a document exists with import reference. Returns document id if document exists.
|
|
6807
|
+
|
|
6808
|
+
:keyword imported_reference: Default value is None.
|
|
6809
|
+
:paramtype imported_reference: str
|
|
6810
|
+
:return: str
|
|
6811
|
+
:rtype: str
|
|
6812
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
6813
|
+
"""
|
|
6814
|
+
error_map = {
|
|
6815
|
+
401: ClientAuthenticationError,
|
|
6816
|
+
404: ResourceNotFoundError,
|
|
6817
|
+
409: ResourceExistsError,
|
|
6818
|
+
304: ResourceNotModifiedError,
|
|
6819
|
+
}
|
|
6820
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
6821
|
+
|
|
6822
|
+
_headers = kwargs.pop("headers", {}) or {}
|
|
6823
|
+
_params = kwargs.pop("params", {}) or {}
|
|
6824
|
+
|
|
6825
|
+
cls: ClsType[str] = kwargs.pop("cls", None)
|
|
6826
|
+
|
|
6827
|
+
_request = build_documents_check_if_imported_document_exists_request(
|
|
6828
|
+
imported_reference=imported_reference,
|
|
6829
|
+
headers=_headers,
|
|
6830
|
+
params=_params,
|
|
6831
|
+
)
|
|
6832
|
+
_request.url = self._client.format_url(_request.url)
|
|
6833
|
+
|
|
6834
|
+
_stream = False
|
|
6835
|
+
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
|
6836
|
+
_request, stream=_stream, **kwargs
|
|
6837
|
+
)
|
|
6838
|
+
|
|
6839
|
+
response = pipeline_response.http_response
|
|
6840
|
+
|
|
6841
|
+
if response.status_code not in [200]:
|
|
6842
|
+
if _stream:
|
|
6843
|
+
await response.read() # Load the body in memory and close the socket
|
|
6844
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
6845
|
+
raise HttpResponseError(response=response)
|
|
6846
|
+
|
|
6847
|
+
deserialized = self._deserialize("str", pipeline_response)
|
|
6848
|
+
|
|
6849
|
+
if cls:
|
|
6850
|
+
return cls(pipeline_response, deserialized, {}) # type: ignore
|
|
6851
|
+
|
|
6852
|
+
return deserialized # type: ignore
|
|
6853
|
+
|
|
6463
6854
|
|
|
6464
6855
|
class DocumentTypesOperations:
|
|
6465
6856
|
"""
|
|
@@ -7589,6 +7980,113 @@ class CustomerOrdersOperations:
|
|
|
7589
7980
|
|
|
7590
7981
|
return deserialized # type: ignore
|
|
7591
7982
|
|
|
7983
|
+
@overload
|
|
7984
|
+
async def post_list_customer_orders(
|
|
7985
|
+
self,
|
|
7986
|
+
body: Optional[_models.ListCustomerOrdersRequest] = None,
|
|
7987
|
+
*,
|
|
7988
|
+
content_type: str = "application/json",
|
|
7989
|
+
**kwargs: Any
|
|
7990
|
+
) -> _models.CustomerOrderDtoPagedResult:
|
|
7991
|
+
"""post_list_customer_orders.
|
|
7992
|
+
|
|
7993
|
+
:param body: Default value is None.
|
|
7994
|
+
:type body: ~ignos.api.client.models.ListCustomerOrdersRequest
|
|
7995
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
|
7996
|
+
Default value is "application/json".
|
|
7997
|
+
:paramtype content_type: str
|
|
7998
|
+
:return: CustomerOrderDtoPagedResult
|
|
7999
|
+
:rtype: ~ignos.api.client.models.CustomerOrderDtoPagedResult
|
|
8000
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
8001
|
+
"""
|
|
8002
|
+
|
|
8003
|
+
@overload
|
|
8004
|
+
async def post_list_customer_orders(
|
|
8005
|
+
self, body: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any
|
|
8006
|
+
) -> _models.CustomerOrderDtoPagedResult:
|
|
8007
|
+
"""post_list_customer_orders.
|
|
8008
|
+
|
|
8009
|
+
:param body: Default value is None.
|
|
8010
|
+
:type body: IO[bytes]
|
|
8011
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
|
8012
|
+
Known values are: 'application/*+json', 'application/json', 'text/json'. Default value is
|
|
8013
|
+
"application/json".
|
|
8014
|
+
:paramtype content_type: str
|
|
8015
|
+
:return: CustomerOrderDtoPagedResult
|
|
8016
|
+
:rtype: ~ignos.api.client.models.CustomerOrderDtoPagedResult
|
|
8017
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
8018
|
+
"""
|
|
8019
|
+
|
|
8020
|
+
@distributed_trace_async
|
|
8021
|
+
async def post_list_customer_orders(
|
|
8022
|
+
self, body: Optional[Union[_models.ListCustomerOrdersRequest, IO[bytes]]] = None, **kwargs: Any
|
|
8023
|
+
) -> _models.CustomerOrderDtoPagedResult:
|
|
8024
|
+
"""post_list_customer_orders.
|
|
8025
|
+
|
|
8026
|
+
:param body: Is either a ListCustomerOrdersRequest type or a IO[bytes] type. Default value is
|
|
8027
|
+
None.
|
|
8028
|
+
:type body: ~ignos.api.client.models.ListCustomerOrdersRequest or IO[bytes]
|
|
8029
|
+
:keyword content_type: Body Parameter content-type. Known values are: 'application/*+json',
|
|
8030
|
+
'application/json', 'text/json'. Default value is None.
|
|
8031
|
+
:paramtype content_type: str
|
|
8032
|
+
:return: CustomerOrderDtoPagedResult
|
|
8033
|
+
:rtype: ~ignos.api.client.models.CustomerOrderDtoPagedResult
|
|
8034
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
8035
|
+
"""
|
|
8036
|
+
error_map = {
|
|
8037
|
+
401: ClientAuthenticationError,
|
|
8038
|
+
404: ResourceNotFoundError,
|
|
8039
|
+
409: ResourceExistsError,
|
|
8040
|
+
304: ResourceNotModifiedError,
|
|
8041
|
+
}
|
|
8042
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
8043
|
+
|
|
8044
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
8045
|
+
_params = kwargs.pop("params", {}) or {}
|
|
8046
|
+
|
|
8047
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
8048
|
+
cls: ClsType[_models.CustomerOrderDtoPagedResult] = kwargs.pop("cls", None)
|
|
8049
|
+
|
|
8050
|
+
content_type = content_type or "application/json"
|
|
8051
|
+
_json = None
|
|
8052
|
+
_content = None
|
|
8053
|
+
if isinstance(body, (IOBase, bytes)):
|
|
8054
|
+
_content = body
|
|
8055
|
+
else:
|
|
8056
|
+
if body is not None:
|
|
8057
|
+
_json = self._serialize.body(body, "ListCustomerOrdersRequest")
|
|
8058
|
+
else:
|
|
8059
|
+
_json = None
|
|
8060
|
+
|
|
8061
|
+
_request = build_customer_orders_post_list_customer_orders_request(
|
|
8062
|
+
content_type=content_type,
|
|
8063
|
+
json=_json,
|
|
8064
|
+
content=_content,
|
|
8065
|
+
headers=_headers,
|
|
8066
|
+
params=_params,
|
|
8067
|
+
)
|
|
8068
|
+
_request.url = self._client.format_url(_request.url)
|
|
8069
|
+
|
|
8070
|
+
_stream = False
|
|
8071
|
+
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
|
8072
|
+
_request, stream=_stream, **kwargs
|
|
8073
|
+
)
|
|
8074
|
+
|
|
8075
|
+
response = pipeline_response.http_response
|
|
8076
|
+
|
|
8077
|
+
if response.status_code not in [200]:
|
|
8078
|
+
if _stream:
|
|
8079
|
+
await response.read() # Load the body in memory and close the socket
|
|
8080
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
8081
|
+
raise HttpResponseError(response=response)
|
|
8082
|
+
|
|
8083
|
+
deserialized = self._deserialize("CustomerOrderDtoPagedResult", pipeline_response)
|
|
8084
|
+
|
|
8085
|
+
if cls:
|
|
8086
|
+
return cls(pipeline_response, deserialized, {}) # type: ignore
|
|
8087
|
+
|
|
8088
|
+
return deserialized # type: ignore
|
|
8089
|
+
|
|
7592
8090
|
@distributed_trace_async
|
|
7593
8091
|
async def list_customer_order_lines(self, id: str, **kwargs: Any) -> List[_models.CustomerOrderLineDto]:
|
|
7594
8092
|
"""list_customer_order_lines.
|
|
@@ -9288,16 +9786,56 @@ class WorkordersOperations: # pylint: disable=too-many-public-methods
|
|
|
9288
9786
|
if cls:
|
|
9289
9787
|
return cls(pipeline_response, None, {}) # type: ignore
|
|
9290
9788
|
|
|
9291
|
-
@
|
|
9292
|
-
async def
|
|
9293
|
-
|
|
9789
|
+
@overload
|
|
9790
|
+
async def post_list_workorders(
|
|
9791
|
+
self,
|
|
9792
|
+
body: Optional[_models.ListWorkOrdersRequest] = None,
|
|
9793
|
+
*,
|
|
9794
|
+
content_type: str = "application/json",
|
|
9795
|
+
**kwargs: Any
|
|
9796
|
+
) -> _models.WorkorderListDtoPagedResult:
|
|
9797
|
+
"""post_list_workorders.
|
|
9294
9798
|
|
|
9295
|
-
|
|
9799
|
+
:param body: Default value is None.
|
|
9800
|
+
:type body: ~ignos.api.client.models.ListWorkOrdersRequest
|
|
9801
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
|
9802
|
+
Default value is "application/json".
|
|
9803
|
+
:paramtype content_type: str
|
|
9804
|
+
:return: WorkorderListDtoPagedResult
|
|
9805
|
+
:rtype: ~ignos.api.client.models.WorkorderListDtoPagedResult
|
|
9806
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
9807
|
+
"""
|
|
9296
9808
|
|
|
9297
|
-
|
|
9298
|
-
|
|
9299
|
-
:
|
|
9300
|
-
|
|
9809
|
+
@overload
|
|
9810
|
+
async def post_list_workorders(
|
|
9811
|
+
self, body: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any
|
|
9812
|
+
) -> _models.WorkorderListDtoPagedResult:
|
|
9813
|
+
"""post_list_workorders.
|
|
9814
|
+
|
|
9815
|
+
:param body: Default value is None.
|
|
9816
|
+
:type body: IO[bytes]
|
|
9817
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
|
9818
|
+
Known values are: 'application/*+json', 'application/json', 'text/json'. Default value is
|
|
9819
|
+
"application/json".
|
|
9820
|
+
:paramtype content_type: str
|
|
9821
|
+
:return: WorkorderListDtoPagedResult
|
|
9822
|
+
:rtype: ~ignos.api.client.models.WorkorderListDtoPagedResult
|
|
9823
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
9824
|
+
"""
|
|
9825
|
+
|
|
9826
|
+
@distributed_trace_async
|
|
9827
|
+
async def post_list_workorders(
|
|
9828
|
+
self, body: Optional[Union[_models.ListWorkOrdersRequest, IO[bytes]]] = None, **kwargs: Any
|
|
9829
|
+
) -> _models.WorkorderListDtoPagedResult:
|
|
9830
|
+
"""post_list_workorders.
|
|
9831
|
+
|
|
9832
|
+
:param body: Is either a ListWorkOrdersRequest type or a IO[bytes] type. Default value is None.
|
|
9833
|
+
:type body: ~ignos.api.client.models.ListWorkOrdersRequest or IO[bytes]
|
|
9834
|
+
:keyword content_type: Body Parameter content-type. Known values are: 'application/*+json',
|
|
9835
|
+
'application/json', 'text/json'. Default value is None.
|
|
9836
|
+
:paramtype content_type: str
|
|
9837
|
+
:return: WorkorderListDtoPagedResult
|
|
9838
|
+
:rtype: ~ignos.api.client.models.WorkorderListDtoPagedResult
|
|
9301
9839
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
9302
9840
|
"""
|
|
9303
9841
|
error_map = {
|
|
@@ -9308,13 +9846,27 @@ class WorkordersOperations: # pylint: disable=too-many-public-methods
|
|
|
9308
9846
|
}
|
|
9309
9847
|
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
9310
9848
|
|
|
9311
|
-
_headers = kwargs.pop("headers", {}) or {}
|
|
9849
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
9312
9850
|
_params = kwargs.pop("params", {}) or {}
|
|
9313
9851
|
|
|
9314
|
-
|
|
9852
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
9853
|
+
cls: ClsType[_models.WorkorderListDtoPagedResult] = kwargs.pop("cls", None)
|
|
9315
9854
|
|
|
9316
|
-
|
|
9317
|
-
|
|
9855
|
+
content_type = content_type or "application/json"
|
|
9856
|
+
_json = None
|
|
9857
|
+
_content = None
|
|
9858
|
+
if isinstance(body, (IOBase, bytes)):
|
|
9859
|
+
_content = body
|
|
9860
|
+
else:
|
|
9861
|
+
if body is not None:
|
|
9862
|
+
_json = self._serialize.body(body, "ListWorkOrdersRequest")
|
|
9863
|
+
else:
|
|
9864
|
+
_json = None
|
|
9865
|
+
|
|
9866
|
+
_request = build_workorders_post_list_workorders_request(
|
|
9867
|
+
content_type=content_type,
|
|
9868
|
+
json=_json,
|
|
9869
|
+
content=_content,
|
|
9318
9870
|
headers=_headers,
|
|
9319
9871
|
params=_params,
|
|
9320
9872
|
)
|
|
@@ -9333,7 +9885,59 @@ class WorkordersOperations: # pylint: disable=too-many-public-methods
|
|
|
9333
9885
|
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
9334
9886
|
raise HttpResponseError(response=response)
|
|
9335
9887
|
|
|
9336
|
-
deserialized = self._deserialize("
|
|
9888
|
+
deserialized = self._deserialize("WorkorderListDtoPagedResult", pipeline_response)
|
|
9889
|
+
|
|
9890
|
+
if cls:
|
|
9891
|
+
return cls(pipeline_response, deserialized, {}) # type: ignore
|
|
9892
|
+
|
|
9893
|
+
return deserialized # type: ignore
|
|
9894
|
+
|
|
9895
|
+
@distributed_trace_async
|
|
9896
|
+
async def get_workorder_operation_event(self, event_id: str, **kwargs: Any) -> _models.WorkorderOperationEventDto:
|
|
9897
|
+
"""Get a specific work order operation event.
|
|
9898
|
+
|
|
9899
|
+
Get a specific work order operation event.
|
|
9900
|
+
|
|
9901
|
+
:param event_id: The ID of the event. Required.
|
|
9902
|
+
:type event_id: str
|
|
9903
|
+
:return: WorkorderOperationEventDto
|
|
9904
|
+
:rtype: ~ignos.api.client.models.WorkorderOperationEventDto
|
|
9905
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
9906
|
+
"""
|
|
9907
|
+
error_map = {
|
|
9908
|
+
401: ClientAuthenticationError,
|
|
9909
|
+
404: ResourceNotFoundError,
|
|
9910
|
+
409: ResourceExistsError,
|
|
9911
|
+
304: ResourceNotModifiedError,
|
|
9912
|
+
}
|
|
9913
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
9914
|
+
|
|
9915
|
+
_headers = kwargs.pop("headers", {}) or {}
|
|
9916
|
+
_params = kwargs.pop("params", {}) or {}
|
|
9917
|
+
|
|
9918
|
+
cls: ClsType[_models.WorkorderOperationEventDto] = kwargs.pop("cls", None)
|
|
9919
|
+
|
|
9920
|
+
_request = build_workorders_get_workorder_operation_event_request(
|
|
9921
|
+
event_id=event_id,
|
|
9922
|
+
headers=_headers,
|
|
9923
|
+
params=_params,
|
|
9924
|
+
)
|
|
9925
|
+
_request.url = self._client.format_url(_request.url)
|
|
9926
|
+
|
|
9927
|
+
_stream = False
|
|
9928
|
+
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
|
9929
|
+
_request, stream=_stream, **kwargs
|
|
9930
|
+
)
|
|
9931
|
+
|
|
9932
|
+
response = pipeline_response.http_response
|
|
9933
|
+
|
|
9934
|
+
if response.status_code not in [200]:
|
|
9935
|
+
if _stream:
|
|
9936
|
+
await response.read() # Load the body in memory and close the socket
|
|
9937
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
9938
|
+
raise HttpResponseError(response=response)
|
|
9939
|
+
|
|
9940
|
+
deserialized = self._deserialize("WorkorderOperationEventDto", pipeline_response)
|
|
9337
9941
|
|
|
9338
9942
|
if cls:
|
|
9339
9943
|
return cls(pipeline_response, deserialized, {}) # type: ignore
|
|
@@ -13313,6 +13917,113 @@ class MeasurementFormSchemasOperations: # pylint: disable=too-many-public-metho
|
|
|
13313
13917
|
|
|
13314
13918
|
return deserialized # type: ignore
|
|
13315
13919
|
|
|
13920
|
+
@overload
|
|
13921
|
+
async def post_list_measurement_form_schemas(
|
|
13922
|
+
self,
|
|
13923
|
+
body: Optional[_models.ListMeasurementFormSchemasRequest] = None,
|
|
13924
|
+
*,
|
|
13925
|
+
content_type: str = "application/json",
|
|
13926
|
+
**kwargs: Any
|
|
13927
|
+
) -> _models.MeasurementFormListDtoPagedResult:
|
|
13928
|
+
"""post_list_measurement_form_schemas.
|
|
13929
|
+
|
|
13930
|
+
:param body: Default value is None.
|
|
13931
|
+
:type body: ~ignos.api.client.models.ListMeasurementFormSchemasRequest
|
|
13932
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
|
13933
|
+
Default value is "application/json".
|
|
13934
|
+
:paramtype content_type: str
|
|
13935
|
+
:return: MeasurementFormListDtoPagedResult
|
|
13936
|
+
:rtype: ~ignos.api.client.models.MeasurementFormListDtoPagedResult
|
|
13937
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
13938
|
+
"""
|
|
13939
|
+
|
|
13940
|
+
@overload
|
|
13941
|
+
async def post_list_measurement_form_schemas(
|
|
13942
|
+
self, body: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any
|
|
13943
|
+
) -> _models.MeasurementFormListDtoPagedResult:
|
|
13944
|
+
"""post_list_measurement_form_schemas.
|
|
13945
|
+
|
|
13946
|
+
:param body: Default value is None.
|
|
13947
|
+
:type body: IO[bytes]
|
|
13948
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
|
13949
|
+
Known values are: 'application/*+json', 'application/json', 'text/json'. Default value is
|
|
13950
|
+
"application/json".
|
|
13951
|
+
:paramtype content_type: str
|
|
13952
|
+
:return: MeasurementFormListDtoPagedResult
|
|
13953
|
+
:rtype: ~ignos.api.client.models.MeasurementFormListDtoPagedResult
|
|
13954
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
13955
|
+
"""
|
|
13956
|
+
|
|
13957
|
+
@distributed_trace_async
|
|
13958
|
+
async def post_list_measurement_form_schemas(
|
|
13959
|
+
self, body: Optional[Union[_models.ListMeasurementFormSchemasRequest, IO[bytes]]] = None, **kwargs: Any
|
|
13960
|
+
) -> _models.MeasurementFormListDtoPagedResult:
|
|
13961
|
+
"""post_list_measurement_form_schemas.
|
|
13962
|
+
|
|
13963
|
+
:param body: Is either a ListMeasurementFormSchemasRequest type or a IO[bytes] type. Default
|
|
13964
|
+
value is None.
|
|
13965
|
+
:type body: ~ignos.api.client.models.ListMeasurementFormSchemasRequest or IO[bytes]
|
|
13966
|
+
:keyword content_type: Body Parameter content-type. Known values are: 'application/*+json',
|
|
13967
|
+
'application/json', 'text/json'. Default value is None.
|
|
13968
|
+
:paramtype content_type: str
|
|
13969
|
+
:return: MeasurementFormListDtoPagedResult
|
|
13970
|
+
:rtype: ~ignos.api.client.models.MeasurementFormListDtoPagedResult
|
|
13971
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
13972
|
+
"""
|
|
13973
|
+
error_map = {
|
|
13974
|
+
401: ClientAuthenticationError,
|
|
13975
|
+
404: ResourceNotFoundError,
|
|
13976
|
+
409: ResourceExistsError,
|
|
13977
|
+
304: ResourceNotModifiedError,
|
|
13978
|
+
}
|
|
13979
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
13980
|
+
|
|
13981
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
13982
|
+
_params = kwargs.pop("params", {}) or {}
|
|
13983
|
+
|
|
13984
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
13985
|
+
cls: ClsType[_models.MeasurementFormListDtoPagedResult] = kwargs.pop("cls", None)
|
|
13986
|
+
|
|
13987
|
+
content_type = content_type or "application/json"
|
|
13988
|
+
_json = None
|
|
13989
|
+
_content = None
|
|
13990
|
+
if isinstance(body, (IOBase, bytes)):
|
|
13991
|
+
_content = body
|
|
13992
|
+
else:
|
|
13993
|
+
if body is not None:
|
|
13994
|
+
_json = self._serialize.body(body, "ListMeasurementFormSchemasRequest")
|
|
13995
|
+
else:
|
|
13996
|
+
_json = None
|
|
13997
|
+
|
|
13998
|
+
_request = build_measurement_form_schemas_post_list_measurement_form_schemas_request(
|
|
13999
|
+
content_type=content_type,
|
|
14000
|
+
json=_json,
|
|
14001
|
+
content=_content,
|
|
14002
|
+
headers=_headers,
|
|
14003
|
+
params=_params,
|
|
14004
|
+
)
|
|
14005
|
+
_request.url = self._client.format_url(_request.url)
|
|
14006
|
+
|
|
14007
|
+
_stream = False
|
|
14008
|
+
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
|
14009
|
+
_request, stream=_stream, **kwargs
|
|
14010
|
+
)
|
|
14011
|
+
|
|
14012
|
+
response = pipeline_response.http_response
|
|
14013
|
+
|
|
14014
|
+
if response.status_code not in [200]:
|
|
14015
|
+
if _stream:
|
|
14016
|
+
await response.read() # Load the body in memory and close the socket
|
|
14017
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
14018
|
+
raise HttpResponseError(response=response)
|
|
14019
|
+
|
|
14020
|
+
deserialized = self._deserialize("MeasurementFormListDtoPagedResult", pipeline_response)
|
|
14021
|
+
|
|
14022
|
+
if cls:
|
|
14023
|
+
return cls(pipeline_response, deserialized, {}) # type: ignore
|
|
14024
|
+
|
|
14025
|
+
return deserialized # type: ignore
|
|
14026
|
+
|
|
13316
14027
|
@distributed_trace_async
|
|
13317
14028
|
async def get_measurement_form_schema(self, id: str, **kwargs: Any) -> _models.MeasurementFormSchemaDto:
|
|
13318
14029
|
"""get_measurement_form_schema.
|
|
@@ -14060,6 +14771,113 @@ class MeasurementFormSchemasOperations: # pylint: disable=too-many-public-metho
|
|
|
14060
14771
|
|
|
14061
14772
|
return deserialized # type: ignore
|
|
14062
14773
|
|
|
14774
|
+
@overload
|
|
14775
|
+
async def post_list_linkable_measurement_form_schemas( # pylint: disable=name-too-long
|
|
14776
|
+
self,
|
|
14777
|
+
body: Optional[_models.ListLinkableMeasurementFormSchemasRequest] = None,
|
|
14778
|
+
*,
|
|
14779
|
+
content_type: str = "application/json",
|
|
14780
|
+
**kwargs: Any
|
|
14781
|
+
) -> _models.MeasurementFormListDtoPagedResult:
|
|
14782
|
+
"""post_list_linkable_measurement_form_schemas.
|
|
14783
|
+
|
|
14784
|
+
:param body: Default value is None.
|
|
14785
|
+
:type body: ~ignos.api.client.models.ListLinkableMeasurementFormSchemasRequest
|
|
14786
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
|
14787
|
+
Default value is "application/json".
|
|
14788
|
+
:paramtype content_type: str
|
|
14789
|
+
:return: MeasurementFormListDtoPagedResult
|
|
14790
|
+
:rtype: ~ignos.api.client.models.MeasurementFormListDtoPagedResult
|
|
14791
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
14792
|
+
"""
|
|
14793
|
+
|
|
14794
|
+
@overload
|
|
14795
|
+
async def post_list_linkable_measurement_form_schemas( # pylint: disable=name-too-long
|
|
14796
|
+
self, body: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any
|
|
14797
|
+
) -> _models.MeasurementFormListDtoPagedResult:
|
|
14798
|
+
"""post_list_linkable_measurement_form_schemas.
|
|
14799
|
+
|
|
14800
|
+
:param body: Default value is None.
|
|
14801
|
+
:type body: IO[bytes]
|
|
14802
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
|
14803
|
+
Known values are: 'application/*+json', 'application/json', 'text/json'. Default value is
|
|
14804
|
+
"application/json".
|
|
14805
|
+
:paramtype content_type: str
|
|
14806
|
+
:return: MeasurementFormListDtoPagedResult
|
|
14807
|
+
:rtype: ~ignos.api.client.models.MeasurementFormListDtoPagedResult
|
|
14808
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
14809
|
+
"""
|
|
14810
|
+
|
|
14811
|
+
@distributed_trace_async
|
|
14812
|
+
async def post_list_linkable_measurement_form_schemas( # pylint: disable=name-too-long
|
|
14813
|
+
self, body: Optional[Union[_models.ListLinkableMeasurementFormSchemasRequest, IO[bytes]]] = None, **kwargs: Any
|
|
14814
|
+
) -> _models.MeasurementFormListDtoPagedResult:
|
|
14815
|
+
"""post_list_linkable_measurement_form_schemas.
|
|
14816
|
+
|
|
14817
|
+
:param body: Is either a ListLinkableMeasurementFormSchemasRequest type or a IO[bytes] type.
|
|
14818
|
+
Default value is None.
|
|
14819
|
+
:type body: ~ignos.api.client.models.ListLinkableMeasurementFormSchemasRequest or IO[bytes]
|
|
14820
|
+
:keyword content_type: Body Parameter content-type. Known values are: 'application/*+json',
|
|
14821
|
+
'application/json', 'text/json'. Default value is None.
|
|
14822
|
+
:paramtype content_type: str
|
|
14823
|
+
:return: MeasurementFormListDtoPagedResult
|
|
14824
|
+
:rtype: ~ignos.api.client.models.MeasurementFormListDtoPagedResult
|
|
14825
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
14826
|
+
"""
|
|
14827
|
+
error_map = {
|
|
14828
|
+
401: ClientAuthenticationError,
|
|
14829
|
+
404: ResourceNotFoundError,
|
|
14830
|
+
409: ResourceExistsError,
|
|
14831
|
+
304: ResourceNotModifiedError,
|
|
14832
|
+
}
|
|
14833
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
14834
|
+
|
|
14835
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
14836
|
+
_params = kwargs.pop("params", {}) or {}
|
|
14837
|
+
|
|
14838
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
14839
|
+
cls: ClsType[_models.MeasurementFormListDtoPagedResult] = kwargs.pop("cls", None)
|
|
14840
|
+
|
|
14841
|
+
content_type = content_type or "application/json"
|
|
14842
|
+
_json = None
|
|
14843
|
+
_content = None
|
|
14844
|
+
if isinstance(body, (IOBase, bytes)):
|
|
14845
|
+
_content = body
|
|
14846
|
+
else:
|
|
14847
|
+
if body is not None:
|
|
14848
|
+
_json = self._serialize.body(body, "ListLinkableMeasurementFormSchemasRequest")
|
|
14849
|
+
else:
|
|
14850
|
+
_json = None
|
|
14851
|
+
|
|
14852
|
+
_request = build_measurement_form_schemas_post_list_linkable_measurement_form_schemas_request(
|
|
14853
|
+
content_type=content_type,
|
|
14854
|
+
json=_json,
|
|
14855
|
+
content=_content,
|
|
14856
|
+
headers=_headers,
|
|
14857
|
+
params=_params,
|
|
14858
|
+
)
|
|
14859
|
+
_request.url = self._client.format_url(_request.url)
|
|
14860
|
+
|
|
14861
|
+
_stream = False
|
|
14862
|
+
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
|
14863
|
+
_request, stream=_stream, **kwargs
|
|
14864
|
+
)
|
|
14865
|
+
|
|
14866
|
+
response = pipeline_response.http_response
|
|
14867
|
+
|
|
14868
|
+
if response.status_code not in [200]:
|
|
14869
|
+
if _stream:
|
|
14870
|
+
await response.read() # Load the body in memory and close the socket
|
|
14871
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
14872
|
+
raise HttpResponseError(response=response)
|
|
14873
|
+
|
|
14874
|
+
deserialized = self._deserialize("MeasurementFormListDtoPagedResult", pipeline_response)
|
|
14875
|
+
|
|
14876
|
+
if cls:
|
|
14877
|
+
return cls(pipeline_response, deserialized, {}) # type: ignore
|
|
14878
|
+
|
|
14879
|
+
return deserialized # type: ignore
|
|
14880
|
+
|
|
14063
14881
|
@overload
|
|
14064
14882
|
async def create_measurement_form_schema_link(
|
|
14065
14883
|
self,
|
|
@@ -15507,32 +16325,139 @@ class MeasurementFormSchemasOperations: # pylint: disable=too-many-public-metho
|
|
|
15507
16325
|
return deserialized # type: ignore
|
|
15508
16326
|
|
|
15509
16327
|
@overload
|
|
15510
|
-
async def
|
|
16328
|
+
async def post_list_measurement_form_needs(
|
|
15511
16329
|
self,
|
|
15512
|
-
|
|
15513
|
-
body: Optional[_models.SetMeasurementFormNeedUserRequest] = None,
|
|
16330
|
+
body: Optional[_models.ListMeasurementFormNeedsRequest] = None,
|
|
15514
16331
|
*,
|
|
15515
16332
|
content_type: str = "application/json",
|
|
15516
16333
|
**kwargs: Any
|
|
15517
|
-
) ->
|
|
15518
|
-
"""
|
|
16334
|
+
) -> _models.MeasurementFormNeedDtoPagedResult:
|
|
16335
|
+
"""post_list_measurement_form_needs.
|
|
15519
16336
|
|
|
15520
|
-
:param id: Required.
|
|
15521
|
-
:type id: str
|
|
15522
16337
|
:param body: Default value is None.
|
|
15523
|
-
:type body: ~ignos.api.client.models.
|
|
16338
|
+
:type body: ~ignos.api.client.models.ListMeasurementFormNeedsRequest
|
|
15524
16339
|
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
|
15525
16340
|
Default value is "application/json".
|
|
15526
16341
|
:paramtype content_type: str
|
|
15527
|
-
:return:
|
|
15528
|
-
:rtype:
|
|
16342
|
+
:return: MeasurementFormNeedDtoPagedResult
|
|
16343
|
+
:rtype: ~ignos.api.client.models.MeasurementFormNeedDtoPagedResult
|
|
15529
16344
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
15530
16345
|
"""
|
|
15531
16346
|
|
|
15532
16347
|
@overload
|
|
15533
|
-
async def
|
|
15534
|
-
self,
|
|
15535
|
-
) ->
|
|
16348
|
+
async def post_list_measurement_form_needs(
|
|
16349
|
+
self, body: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any
|
|
16350
|
+
) -> _models.MeasurementFormNeedDtoPagedResult:
|
|
16351
|
+
"""post_list_measurement_form_needs.
|
|
16352
|
+
|
|
16353
|
+
:param body: Default value is None.
|
|
16354
|
+
:type body: IO[bytes]
|
|
16355
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
|
16356
|
+
Known values are: 'application/*+json', 'application/json', 'text/json'. Default value is
|
|
16357
|
+
"application/json".
|
|
16358
|
+
:paramtype content_type: str
|
|
16359
|
+
:return: MeasurementFormNeedDtoPagedResult
|
|
16360
|
+
:rtype: ~ignos.api.client.models.MeasurementFormNeedDtoPagedResult
|
|
16361
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
16362
|
+
"""
|
|
16363
|
+
|
|
16364
|
+
@distributed_trace_async
|
|
16365
|
+
async def post_list_measurement_form_needs(
|
|
16366
|
+
self, body: Optional[Union[_models.ListMeasurementFormNeedsRequest, IO[bytes]]] = None, **kwargs: Any
|
|
16367
|
+
) -> _models.MeasurementFormNeedDtoPagedResult:
|
|
16368
|
+
"""post_list_measurement_form_needs.
|
|
16369
|
+
|
|
16370
|
+
:param body: Is either a ListMeasurementFormNeedsRequest type or a IO[bytes] type. Default
|
|
16371
|
+
value is None.
|
|
16372
|
+
:type body: ~ignos.api.client.models.ListMeasurementFormNeedsRequest or IO[bytes]
|
|
16373
|
+
:keyword content_type: Body Parameter content-type. Known values are: 'application/*+json',
|
|
16374
|
+
'application/json', 'text/json'. Default value is None.
|
|
16375
|
+
:paramtype content_type: str
|
|
16376
|
+
:return: MeasurementFormNeedDtoPagedResult
|
|
16377
|
+
:rtype: ~ignos.api.client.models.MeasurementFormNeedDtoPagedResult
|
|
16378
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
16379
|
+
"""
|
|
16380
|
+
error_map = {
|
|
16381
|
+
401: ClientAuthenticationError,
|
|
16382
|
+
404: ResourceNotFoundError,
|
|
16383
|
+
409: ResourceExistsError,
|
|
16384
|
+
304: ResourceNotModifiedError,
|
|
16385
|
+
}
|
|
16386
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
16387
|
+
|
|
16388
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
16389
|
+
_params = kwargs.pop("params", {}) or {}
|
|
16390
|
+
|
|
16391
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
16392
|
+
cls: ClsType[_models.MeasurementFormNeedDtoPagedResult] = kwargs.pop("cls", None)
|
|
16393
|
+
|
|
16394
|
+
content_type = content_type or "application/json"
|
|
16395
|
+
_json = None
|
|
16396
|
+
_content = None
|
|
16397
|
+
if isinstance(body, (IOBase, bytes)):
|
|
16398
|
+
_content = body
|
|
16399
|
+
else:
|
|
16400
|
+
if body is not None:
|
|
16401
|
+
_json = self._serialize.body(body, "ListMeasurementFormNeedsRequest")
|
|
16402
|
+
else:
|
|
16403
|
+
_json = None
|
|
16404
|
+
|
|
16405
|
+
_request = build_measurement_form_schemas_post_list_measurement_form_needs_request(
|
|
16406
|
+
content_type=content_type,
|
|
16407
|
+
json=_json,
|
|
16408
|
+
content=_content,
|
|
16409
|
+
headers=_headers,
|
|
16410
|
+
params=_params,
|
|
16411
|
+
)
|
|
16412
|
+
_request.url = self._client.format_url(_request.url)
|
|
16413
|
+
|
|
16414
|
+
_stream = False
|
|
16415
|
+
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
|
16416
|
+
_request, stream=_stream, **kwargs
|
|
16417
|
+
)
|
|
16418
|
+
|
|
16419
|
+
response = pipeline_response.http_response
|
|
16420
|
+
|
|
16421
|
+
if response.status_code not in [200]:
|
|
16422
|
+
if _stream:
|
|
16423
|
+
await response.read() # Load the body in memory and close the socket
|
|
16424
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
16425
|
+
raise HttpResponseError(response=response)
|
|
16426
|
+
|
|
16427
|
+
deserialized = self._deserialize("MeasurementFormNeedDtoPagedResult", pipeline_response)
|
|
16428
|
+
|
|
16429
|
+
if cls:
|
|
16430
|
+
return cls(pipeline_response, deserialized, {}) # type: ignore
|
|
16431
|
+
|
|
16432
|
+
return deserialized # type: ignore
|
|
16433
|
+
|
|
16434
|
+
@overload
|
|
16435
|
+
async def set_measurement_form_need_user( # pylint: disable=inconsistent-return-statements
|
|
16436
|
+
self,
|
|
16437
|
+
id: str,
|
|
16438
|
+
body: Optional[_models.SetMeasurementFormNeedUserRequest] = None,
|
|
16439
|
+
*,
|
|
16440
|
+
content_type: str = "application/json",
|
|
16441
|
+
**kwargs: Any
|
|
16442
|
+
) -> None:
|
|
16443
|
+
"""set_measurement_form_need_user.
|
|
16444
|
+
|
|
16445
|
+
:param id: Required.
|
|
16446
|
+
:type id: str
|
|
16447
|
+
:param body: Default value is None.
|
|
16448
|
+
:type body: ~ignos.api.client.models.SetMeasurementFormNeedUserRequest
|
|
16449
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
|
16450
|
+
Default value is "application/json".
|
|
16451
|
+
:paramtype content_type: str
|
|
16452
|
+
:return: None
|
|
16453
|
+
:rtype: None
|
|
16454
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
16455
|
+
"""
|
|
16456
|
+
|
|
16457
|
+
@overload
|
|
16458
|
+
async def set_measurement_form_need_user( # pylint: disable=inconsistent-return-statements
|
|
16459
|
+
self, id: str, body: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any
|
|
16460
|
+
) -> None:
|
|
15536
16461
|
"""set_measurement_form_need_user.
|
|
15537
16462
|
|
|
15538
16463
|
:param id: Required.
|
|
@@ -15986,6 +16911,113 @@ class MeasurementFormSchemasOperations: # pylint: disable=too-many-public-metho
|
|
|
15986
16911
|
|
|
15987
16912
|
return deserialized # type: ignore
|
|
15988
16913
|
|
|
16914
|
+
@overload
|
|
16915
|
+
async def post_list_measurement_form_schemas_not_needed( # pylint: disable=name-too-long
|
|
16916
|
+
self,
|
|
16917
|
+
body: Optional[_models.ListMeasurementFormSchemasNotNeededRequest] = None,
|
|
16918
|
+
*,
|
|
16919
|
+
content_type: str = "application/json",
|
|
16920
|
+
**kwargs: Any
|
|
16921
|
+
) -> _models.MeasurementFormSchemaNotNeededDtoPagedResult:
|
|
16922
|
+
"""post_list_measurement_form_schemas_not_needed.
|
|
16923
|
+
|
|
16924
|
+
:param body: Default value is None.
|
|
16925
|
+
:type body: ~ignos.api.client.models.ListMeasurementFormSchemasNotNeededRequest
|
|
16926
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
|
16927
|
+
Default value is "application/json".
|
|
16928
|
+
:paramtype content_type: str
|
|
16929
|
+
:return: MeasurementFormSchemaNotNeededDtoPagedResult
|
|
16930
|
+
:rtype: ~ignos.api.client.models.MeasurementFormSchemaNotNeededDtoPagedResult
|
|
16931
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
16932
|
+
"""
|
|
16933
|
+
|
|
16934
|
+
@overload
|
|
16935
|
+
async def post_list_measurement_form_schemas_not_needed( # pylint: disable=name-too-long
|
|
16936
|
+
self, body: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any
|
|
16937
|
+
) -> _models.MeasurementFormSchemaNotNeededDtoPagedResult:
|
|
16938
|
+
"""post_list_measurement_form_schemas_not_needed.
|
|
16939
|
+
|
|
16940
|
+
:param body: Default value is None.
|
|
16941
|
+
:type body: IO[bytes]
|
|
16942
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
|
16943
|
+
Known values are: 'application/*+json', 'application/json', 'text/json'. Default value is
|
|
16944
|
+
"application/json".
|
|
16945
|
+
:paramtype content_type: str
|
|
16946
|
+
:return: MeasurementFormSchemaNotNeededDtoPagedResult
|
|
16947
|
+
:rtype: ~ignos.api.client.models.MeasurementFormSchemaNotNeededDtoPagedResult
|
|
16948
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
16949
|
+
"""
|
|
16950
|
+
|
|
16951
|
+
@distributed_trace_async
|
|
16952
|
+
async def post_list_measurement_form_schemas_not_needed( # pylint: disable=name-too-long
|
|
16953
|
+
self, body: Optional[Union[_models.ListMeasurementFormSchemasNotNeededRequest, IO[bytes]]] = None, **kwargs: Any
|
|
16954
|
+
) -> _models.MeasurementFormSchemaNotNeededDtoPagedResult:
|
|
16955
|
+
"""post_list_measurement_form_schemas_not_needed.
|
|
16956
|
+
|
|
16957
|
+
:param body: Is either a ListMeasurementFormSchemasNotNeededRequest type or a IO[bytes] type.
|
|
16958
|
+
Default value is None.
|
|
16959
|
+
:type body: ~ignos.api.client.models.ListMeasurementFormSchemasNotNeededRequest or IO[bytes]
|
|
16960
|
+
:keyword content_type: Body Parameter content-type. Known values are: 'application/*+json',
|
|
16961
|
+
'application/json', 'text/json'. Default value is None.
|
|
16962
|
+
:paramtype content_type: str
|
|
16963
|
+
:return: MeasurementFormSchemaNotNeededDtoPagedResult
|
|
16964
|
+
:rtype: ~ignos.api.client.models.MeasurementFormSchemaNotNeededDtoPagedResult
|
|
16965
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
16966
|
+
"""
|
|
16967
|
+
error_map = {
|
|
16968
|
+
401: ClientAuthenticationError,
|
|
16969
|
+
404: ResourceNotFoundError,
|
|
16970
|
+
409: ResourceExistsError,
|
|
16971
|
+
304: ResourceNotModifiedError,
|
|
16972
|
+
}
|
|
16973
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
16974
|
+
|
|
16975
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
16976
|
+
_params = kwargs.pop("params", {}) or {}
|
|
16977
|
+
|
|
16978
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
16979
|
+
cls: ClsType[_models.MeasurementFormSchemaNotNeededDtoPagedResult] = kwargs.pop("cls", None)
|
|
16980
|
+
|
|
16981
|
+
content_type = content_type or "application/json"
|
|
16982
|
+
_json = None
|
|
16983
|
+
_content = None
|
|
16984
|
+
if isinstance(body, (IOBase, bytes)):
|
|
16985
|
+
_content = body
|
|
16986
|
+
else:
|
|
16987
|
+
if body is not None:
|
|
16988
|
+
_json = self._serialize.body(body, "ListMeasurementFormSchemasNotNeededRequest")
|
|
16989
|
+
else:
|
|
16990
|
+
_json = None
|
|
16991
|
+
|
|
16992
|
+
_request = build_measurement_form_schemas_post_list_measurement_form_schemas_not_needed_request(
|
|
16993
|
+
content_type=content_type,
|
|
16994
|
+
json=_json,
|
|
16995
|
+
content=_content,
|
|
16996
|
+
headers=_headers,
|
|
16997
|
+
params=_params,
|
|
16998
|
+
)
|
|
16999
|
+
_request.url = self._client.format_url(_request.url)
|
|
17000
|
+
|
|
17001
|
+
_stream = False
|
|
17002
|
+
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
|
17003
|
+
_request, stream=_stream, **kwargs
|
|
17004
|
+
)
|
|
17005
|
+
|
|
17006
|
+
response = pipeline_response.http_response
|
|
17007
|
+
|
|
17008
|
+
if response.status_code not in [200]:
|
|
17009
|
+
if _stream:
|
|
17010
|
+
await response.read() # Load the body in memory and close the socket
|
|
17011
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
17012
|
+
raise HttpResponseError(response=response)
|
|
17013
|
+
|
|
17014
|
+
deserialized = self._deserialize("MeasurementFormSchemaNotNeededDtoPagedResult", pipeline_response)
|
|
17015
|
+
|
|
17016
|
+
if cls:
|
|
17017
|
+
return cls(pipeline_response, deserialized, {}) # type: ignore
|
|
17018
|
+
|
|
17019
|
+
return deserialized # type: ignore
|
|
17020
|
+
|
|
15989
17021
|
@distributed_trace_async
|
|
15990
17022
|
async def delete_measurment_form_schemas_not_needed( # pylint: disable=inconsistent-return-statements,name-too-long
|
|
15991
17023
|
self, id: str, **kwargs: Any
|
|
@@ -16348,6 +17380,116 @@ class MeasurementFormSchemasOperations: # pylint: disable=too-many-public-metho
|
|
|
16348
17380
|
|
|
16349
17381
|
return deserialized # type: ignore
|
|
16350
17382
|
|
|
17383
|
+
@overload
|
|
17384
|
+
async def post_list_measurement_form_instance_schema_feedback( # pylint: disable=name-too-long
|
|
17385
|
+
self,
|
|
17386
|
+
body: Optional[_models.ListMeasurementFormInstanceSchemaFeedbackRequest] = None,
|
|
17387
|
+
*,
|
|
17388
|
+
content_type: str = "application/json",
|
|
17389
|
+
**kwargs: Any
|
|
17390
|
+
) -> _models.SchemaFeedbackDtoPagedResult:
|
|
17391
|
+
"""post_list_measurement_form_instance_schema_feedback.
|
|
17392
|
+
|
|
17393
|
+
:param body: Default value is None.
|
|
17394
|
+
:type body: ~ignos.api.client.models.ListMeasurementFormInstanceSchemaFeedbackRequest
|
|
17395
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
|
17396
|
+
Default value is "application/json".
|
|
17397
|
+
:paramtype content_type: str
|
|
17398
|
+
:return: SchemaFeedbackDtoPagedResult
|
|
17399
|
+
:rtype: ~ignos.api.client.models.SchemaFeedbackDtoPagedResult
|
|
17400
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
17401
|
+
"""
|
|
17402
|
+
|
|
17403
|
+
@overload
|
|
17404
|
+
async def post_list_measurement_form_instance_schema_feedback( # pylint: disable=name-too-long
|
|
17405
|
+
self, body: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any
|
|
17406
|
+
) -> _models.SchemaFeedbackDtoPagedResult:
|
|
17407
|
+
"""post_list_measurement_form_instance_schema_feedback.
|
|
17408
|
+
|
|
17409
|
+
:param body: Default value is None.
|
|
17410
|
+
:type body: IO[bytes]
|
|
17411
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
|
17412
|
+
Known values are: 'application/*+json', 'application/json', 'text/json'. Default value is
|
|
17413
|
+
"application/json".
|
|
17414
|
+
:paramtype content_type: str
|
|
17415
|
+
:return: SchemaFeedbackDtoPagedResult
|
|
17416
|
+
:rtype: ~ignos.api.client.models.SchemaFeedbackDtoPagedResult
|
|
17417
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
17418
|
+
"""
|
|
17419
|
+
|
|
17420
|
+
@distributed_trace_async
|
|
17421
|
+
async def post_list_measurement_form_instance_schema_feedback( # pylint: disable=name-too-long
|
|
17422
|
+
self,
|
|
17423
|
+
body: Optional[Union[_models.ListMeasurementFormInstanceSchemaFeedbackRequest, IO[bytes]]] = None,
|
|
17424
|
+
**kwargs: Any
|
|
17425
|
+
) -> _models.SchemaFeedbackDtoPagedResult:
|
|
17426
|
+
"""post_list_measurement_form_instance_schema_feedback.
|
|
17427
|
+
|
|
17428
|
+
:param body: Is either a ListMeasurementFormInstanceSchemaFeedbackRequest type or a IO[bytes]
|
|
17429
|
+
type. Default value is None.
|
|
17430
|
+
:type body: ~ignos.api.client.models.ListMeasurementFormInstanceSchemaFeedbackRequest or
|
|
17431
|
+
IO[bytes]
|
|
17432
|
+
:keyword content_type: Body Parameter content-type. Known values are: 'application/*+json',
|
|
17433
|
+
'application/json', 'text/json'. Default value is None.
|
|
17434
|
+
:paramtype content_type: str
|
|
17435
|
+
:return: SchemaFeedbackDtoPagedResult
|
|
17436
|
+
:rtype: ~ignos.api.client.models.SchemaFeedbackDtoPagedResult
|
|
17437
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
17438
|
+
"""
|
|
17439
|
+
error_map = {
|
|
17440
|
+
401: ClientAuthenticationError,
|
|
17441
|
+
404: ResourceNotFoundError,
|
|
17442
|
+
409: ResourceExistsError,
|
|
17443
|
+
304: ResourceNotModifiedError,
|
|
17444
|
+
}
|
|
17445
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
17446
|
+
|
|
17447
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
17448
|
+
_params = kwargs.pop("params", {}) or {}
|
|
17449
|
+
|
|
17450
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
17451
|
+
cls: ClsType[_models.SchemaFeedbackDtoPagedResult] = kwargs.pop("cls", None)
|
|
17452
|
+
|
|
17453
|
+
content_type = content_type or "application/json"
|
|
17454
|
+
_json = None
|
|
17455
|
+
_content = None
|
|
17456
|
+
if isinstance(body, (IOBase, bytes)):
|
|
17457
|
+
_content = body
|
|
17458
|
+
else:
|
|
17459
|
+
if body is not None:
|
|
17460
|
+
_json = self._serialize.body(body, "ListMeasurementFormInstanceSchemaFeedbackRequest")
|
|
17461
|
+
else:
|
|
17462
|
+
_json = None
|
|
17463
|
+
|
|
17464
|
+
_request = build_measurement_form_schemas_post_list_measurement_form_instance_schema_feedback_request(
|
|
17465
|
+
content_type=content_type,
|
|
17466
|
+
json=_json,
|
|
17467
|
+
content=_content,
|
|
17468
|
+
headers=_headers,
|
|
17469
|
+
params=_params,
|
|
17470
|
+
)
|
|
17471
|
+
_request.url = self._client.format_url(_request.url)
|
|
17472
|
+
|
|
17473
|
+
_stream = False
|
|
17474
|
+
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
|
17475
|
+
_request, stream=_stream, **kwargs
|
|
17476
|
+
)
|
|
17477
|
+
|
|
17478
|
+
response = pipeline_response.http_response
|
|
17479
|
+
|
|
17480
|
+
if response.status_code not in [200]:
|
|
17481
|
+
if _stream:
|
|
17482
|
+
await response.read() # Load the body in memory and close the socket
|
|
17483
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
17484
|
+
raise HttpResponseError(response=response)
|
|
17485
|
+
|
|
17486
|
+
deserialized = self._deserialize("SchemaFeedbackDtoPagedResult", pipeline_response)
|
|
17487
|
+
|
|
17488
|
+
if cls:
|
|
17489
|
+
return cls(pipeline_response, deserialized, {}) # type: ignore
|
|
17490
|
+
|
|
17491
|
+
return deserialized # type: ignore
|
|
17492
|
+
|
|
16351
17493
|
@distributed_trace_async
|
|
16352
17494
|
async def get_measurement_form_instance_schema_feedback( # pylint: disable=name-too-long
|
|
16353
17495
|
self, id: str, **kwargs: Any
|
|
@@ -16645,6 +17787,115 @@ class MeasurementFormSchemasOperations: # pylint: disable=too-many-public-metho
|
|
|
16645
17787
|
|
|
16646
17788
|
return deserialized # type: ignore
|
|
16647
17789
|
|
|
17790
|
+
@overload
|
|
17791
|
+
async def post_list_measurement_form_schemas_with_history( # pylint: disable=name-too-long
|
|
17792
|
+
self,
|
|
17793
|
+
body: Optional[_models.ListMeasurementFormSchemasWithHistoryRequest] = None,
|
|
17794
|
+
*,
|
|
17795
|
+
content_type: str = "application/json",
|
|
17796
|
+
**kwargs: Any
|
|
17797
|
+
) -> _models.MeasurementFormListDtoPagedResult:
|
|
17798
|
+
"""post_list_measurement_form_schemas_with_history.
|
|
17799
|
+
|
|
17800
|
+
:param body: Default value is None.
|
|
17801
|
+
:type body: ~ignos.api.client.models.ListMeasurementFormSchemasWithHistoryRequest
|
|
17802
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
|
17803
|
+
Default value is "application/json".
|
|
17804
|
+
:paramtype content_type: str
|
|
17805
|
+
:return: MeasurementFormListDtoPagedResult
|
|
17806
|
+
:rtype: ~ignos.api.client.models.MeasurementFormListDtoPagedResult
|
|
17807
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
17808
|
+
"""
|
|
17809
|
+
|
|
17810
|
+
@overload
|
|
17811
|
+
async def post_list_measurement_form_schemas_with_history( # pylint: disable=name-too-long
|
|
17812
|
+
self, body: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any
|
|
17813
|
+
) -> _models.MeasurementFormListDtoPagedResult:
|
|
17814
|
+
"""post_list_measurement_form_schemas_with_history.
|
|
17815
|
+
|
|
17816
|
+
:param body: Default value is None.
|
|
17817
|
+
:type body: IO[bytes]
|
|
17818
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
|
17819
|
+
Known values are: 'application/*+json', 'application/json', 'text/json'. Default value is
|
|
17820
|
+
"application/json".
|
|
17821
|
+
:paramtype content_type: str
|
|
17822
|
+
:return: MeasurementFormListDtoPagedResult
|
|
17823
|
+
:rtype: ~ignos.api.client.models.MeasurementFormListDtoPagedResult
|
|
17824
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
17825
|
+
"""
|
|
17826
|
+
|
|
17827
|
+
@distributed_trace_async
|
|
17828
|
+
async def post_list_measurement_form_schemas_with_history( # pylint: disable=name-too-long
|
|
17829
|
+
self,
|
|
17830
|
+
body: Optional[Union[_models.ListMeasurementFormSchemasWithHistoryRequest, IO[bytes]]] = None,
|
|
17831
|
+
**kwargs: Any
|
|
17832
|
+
) -> _models.MeasurementFormListDtoPagedResult:
|
|
17833
|
+
"""post_list_measurement_form_schemas_with_history.
|
|
17834
|
+
|
|
17835
|
+
:param body: Is either a ListMeasurementFormSchemasWithHistoryRequest type or a IO[bytes] type.
|
|
17836
|
+
Default value is None.
|
|
17837
|
+
:type body: ~ignos.api.client.models.ListMeasurementFormSchemasWithHistoryRequest or IO[bytes]
|
|
17838
|
+
:keyword content_type: Body Parameter content-type. Known values are: 'application/*+json',
|
|
17839
|
+
'application/json', 'text/json'. Default value is None.
|
|
17840
|
+
:paramtype content_type: str
|
|
17841
|
+
:return: MeasurementFormListDtoPagedResult
|
|
17842
|
+
:rtype: ~ignos.api.client.models.MeasurementFormListDtoPagedResult
|
|
17843
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
17844
|
+
"""
|
|
17845
|
+
error_map = {
|
|
17846
|
+
401: ClientAuthenticationError,
|
|
17847
|
+
404: ResourceNotFoundError,
|
|
17848
|
+
409: ResourceExistsError,
|
|
17849
|
+
304: ResourceNotModifiedError,
|
|
17850
|
+
}
|
|
17851
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
17852
|
+
|
|
17853
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
17854
|
+
_params = kwargs.pop("params", {}) or {}
|
|
17855
|
+
|
|
17856
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
17857
|
+
cls: ClsType[_models.MeasurementFormListDtoPagedResult] = kwargs.pop("cls", None)
|
|
17858
|
+
|
|
17859
|
+
content_type = content_type or "application/json"
|
|
17860
|
+
_json = None
|
|
17861
|
+
_content = None
|
|
17862
|
+
if isinstance(body, (IOBase, bytes)):
|
|
17863
|
+
_content = body
|
|
17864
|
+
else:
|
|
17865
|
+
if body is not None:
|
|
17866
|
+
_json = self._serialize.body(body, "ListMeasurementFormSchemasWithHistoryRequest")
|
|
17867
|
+
else:
|
|
17868
|
+
_json = None
|
|
17869
|
+
|
|
17870
|
+
_request = build_measurement_form_schemas_post_list_measurement_form_schemas_with_history_request(
|
|
17871
|
+
content_type=content_type,
|
|
17872
|
+
json=_json,
|
|
17873
|
+
content=_content,
|
|
17874
|
+
headers=_headers,
|
|
17875
|
+
params=_params,
|
|
17876
|
+
)
|
|
17877
|
+
_request.url = self._client.format_url(_request.url)
|
|
17878
|
+
|
|
17879
|
+
_stream = False
|
|
17880
|
+
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
|
17881
|
+
_request, stream=_stream, **kwargs
|
|
17882
|
+
)
|
|
17883
|
+
|
|
17884
|
+
response = pipeline_response.http_response
|
|
17885
|
+
|
|
17886
|
+
if response.status_code not in [200]:
|
|
17887
|
+
if _stream:
|
|
17888
|
+
await response.read() # Load the body in memory and close the socket
|
|
17889
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
17890
|
+
raise HttpResponseError(response=response)
|
|
17891
|
+
|
|
17892
|
+
deserialized = self._deserialize("MeasurementFormListDtoPagedResult", pipeline_response)
|
|
17893
|
+
|
|
17894
|
+
if cls:
|
|
17895
|
+
return cls(pipeline_response, deserialized, {}) # type: ignore
|
|
17896
|
+
|
|
17897
|
+
return deserialized # type: ignore
|
|
17898
|
+
|
|
16648
17899
|
|
|
16649
17900
|
class MeasurementFormsInstancesOperations: # pylint: disable=too-many-public-methods
|
|
16650
17901
|
"""
|
|
@@ -16708,13 +17959,120 @@ class MeasurementFormsInstancesOperations: # pylint: disable=too-many-public-me
|
|
|
16708
17959
|
|
|
16709
17960
|
cls: ClsType[_models.MeasurementFormInstanceOverviewDtoPagedResult] = kwargs.pop("cls", None)
|
|
16710
17961
|
|
|
16711
|
-
_request = build_measurement_forms_instances_list_measurement_forms_request(
|
|
16712
|
-
page_size=page_size,
|
|
16713
|
-
search=search,
|
|
16714
|
-
continuation_token_parameter=continuation_token_parameter,
|
|
16715
|
-
tenant_id=tenant_id,
|
|
16716
|
-
inactive=inactive,
|
|
16717
|
-
include_inactive_supplier_access=include_inactive_supplier_access,
|
|
17962
|
+
_request = build_measurement_forms_instances_list_measurement_forms_request(
|
|
17963
|
+
page_size=page_size,
|
|
17964
|
+
search=search,
|
|
17965
|
+
continuation_token_parameter=continuation_token_parameter,
|
|
17966
|
+
tenant_id=tenant_id,
|
|
17967
|
+
inactive=inactive,
|
|
17968
|
+
include_inactive_supplier_access=include_inactive_supplier_access,
|
|
17969
|
+
headers=_headers,
|
|
17970
|
+
params=_params,
|
|
17971
|
+
)
|
|
17972
|
+
_request.url = self._client.format_url(_request.url)
|
|
17973
|
+
|
|
17974
|
+
_stream = False
|
|
17975
|
+
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
|
17976
|
+
_request, stream=_stream, **kwargs
|
|
17977
|
+
)
|
|
17978
|
+
|
|
17979
|
+
response = pipeline_response.http_response
|
|
17980
|
+
|
|
17981
|
+
if response.status_code not in [200]:
|
|
17982
|
+
if _stream:
|
|
17983
|
+
await response.read() # Load the body in memory and close the socket
|
|
17984
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
17985
|
+
raise HttpResponseError(response=response)
|
|
17986
|
+
|
|
17987
|
+
deserialized = self._deserialize("MeasurementFormInstanceOverviewDtoPagedResult", pipeline_response)
|
|
17988
|
+
|
|
17989
|
+
if cls:
|
|
17990
|
+
return cls(pipeline_response, deserialized, {}) # type: ignore
|
|
17991
|
+
|
|
17992
|
+
return deserialized # type: ignore
|
|
17993
|
+
|
|
17994
|
+
@overload
|
|
17995
|
+
async def post_list_measurement_forms(
|
|
17996
|
+
self,
|
|
17997
|
+
body: Optional[_models.ListMeasurementFormsRequest] = None,
|
|
17998
|
+
*,
|
|
17999
|
+
content_type: str = "application/json",
|
|
18000
|
+
**kwargs: Any
|
|
18001
|
+
) -> _models.MeasurementFormInstanceOverviewDtoPagedResult:
|
|
18002
|
+
"""post_list_measurement_forms.
|
|
18003
|
+
|
|
18004
|
+
:param body: Default value is None.
|
|
18005
|
+
:type body: ~ignos.api.client.models.ListMeasurementFormsRequest
|
|
18006
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
|
18007
|
+
Default value is "application/json".
|
|
18008
|
+
:paramtype content_type: str
|
|
18009
|
+
:return: MeasurementFormInstanceOverviewDtoPagedResult
|
|
18010
|
+
:rtype: ~ignos.api.client.models.MeasurementFormInstanceOverviewDtoPagedResult
|
|
18011
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
18012
|
+
"""
|
|
18013
|
+
|
|
18014
|
+
@overload
|
|
18015
|
+
async def post_list_measurement_forms(
|
|
18016
|
+
self, body: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any
|
|
18017
|
+
) -> _models.MeasurementFormInstanceOverviewDtoPagedResult:
|
|
18018
|
+
"""post_list_measurement_forms.
|
|
18019
|
+
|
|
18020
|
+
:param body: Default value is None.
|
|
18021
|
+
:type body: IO[bytes]
|
|
18022
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
|
18023
|
+
Known values are: 'application/*+json', 'application/json', 'text/json'. Default value is
|
|
18024
|
+
"application/json".
|
|
18025
|
+
:paramtype content_type: str
|
|
18026
|
+
:return: MeasurementFormInstanceOverviewDtoPagedResult
|
|
18027
|
+
:rtype: ~ignos.api.client.models.MeasurementFormInstanceOverviewDtoPagedResult
|
|
18028
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
18029
|
+
"""
|
|
18030
|
+
|
|
18031
|
+
@distributed_trace_async
|
|
18032
|
+
async def post_list_measurement_forms(
|
|
18033
|
+
self, body: Optional[Union[_models.ListMeasurementFormsRequest, IO[bytes]]] = None, **kwargs: Any
|
|
18034
|
+
) -> _models.MeasurementFormInstanceOverviewDtoPagedResult:
|
|
18035
|
+
"""post_list_measurement_forms.
|
|
18036
|
+
|
|
18037
|
+
:param body: Is either a ListMeasurementFormsRequest type or a IO[bytes] type. Default value is
|
|
18038
|
+
None.
|
|
18039
|
+
:type body: ~ignos.api.client.models.ListMeasurementFormsRequest or IO[bytes]
|
|
18040
|
+
:keyword content_type: Body Parameter content-type. Known values are: 'application/*+json',
|
|
18041
|
+
'application/json', 'text/json'. Default value is None.
|
|
18042
|
+
:paramtype content_type: str
|
|
18043
|
+
:return: MeasurementFormInstanceOverviewDtoPagedResult
|
|
18044
|
+
:rtype: ~ignos.api.client.models.MeasurementFormInstanceOverviewDtoPagedResult
|
|
18045
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
18046
|
+
"""
|
|
18047
|
+
error_map = {
|
|
18048
|
+
401: ClientAuthenticationError,
|
|
18049
|
+
404: ResourceNotFoundError,
|
|
18050
|
+
409: ResourceExistsError,
|
|
18051
|
+
304: ResourceNotModifiedError,
|
|
18052
|
+
}
|
|
18053
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
18054
|
+
|
|
18055
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
18056
|
+
_params = kwargs.pop("params", {}) or {}
|
|
18057
|
+
|
|
18058
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
18059
|
+
cls: ClsType[_models.MeasurementFormInstanceOverviewDtoPagedResult] = kwargs.pop("cls", None)
|
|
18060
|
+
|
|
18061
|
+
content_type = content_type or "application/json"
|
|
18062
|
+
_json = None
|
|
18063
|
+
_content = None
|
|
18064
|
+
if isinstance(body, (IOBase, bytes)):
|
|
18065
|
+
_content = body
|
|
18066
|
+
else:
|
|
18067
|
+
if body is not None:
|
|
18068
|
+
_json = self._serialize.body(body, "ListMeasurementFormsRequest")
|
|
18069
|
+
else:
|
|
18070
|
+
_json = None
|
|
18071
|
+
|
|
18072
|
+
_request = build_measurement_forms_instances_post_list_measurement_forms_request(
|
|
18073
|
+
content_type=content_type,
|
|
18074
|
+
json=_json,
|
|
18075
|
+
content=_content,
|
|
16718
18076
|
headers=_headers,
|
|
16719
18077
|
params=_params,
|
|
16720
18078
|
)
|
|
@@ -16816,6 +18174,113 @@ class MeasurementFormsInstancesOperations: # pylint: disable=too-many-public-me
|
|
|
16816
18174
|
|
|
16817
18175
|
return deserialized # type: ignore
|
|
16818
18176
|
|
|
18177
|
+
@overload
|
|
18178
|
+
async def post_list_measurement_forms_by_status(
|
|
18179
|
+
self,
|
|
18180
|
+
body: Optional[_models.ListMeasurementFormsByStatusRequest] = None,
|
|
18181
|
+
*,
|
|
18182
|
+
content_type: str = "application/json",
|
|
18183
|
+
**kwargs: Any
|
|
18184
|
+
) -> _models.MeasurementFormInstanceDtoPagedResult:
|
|
18185
|
+
"""post_list_measurement_forms_by_status.
|
|
18186
|
+
|
|
18187
|
+
:param body: Default value is None.
|
|
18188
|
+
:type body: ~ignos.api.client.models.ListMeasurementFormsByStatusRequest
|
|
18189
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
|
18190
|
+
Default value is "application/json".
|
|
18191
|
+
:paramtype content_type: str
|
|
18192
|
+
:return: MeasurementFormInstanceDtoPagedResult
|
|
18193
|
+
:rtype: ~ignos.api.client.models.MeasurementFormInstanceDtoPagedResult
|
|
18194
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
18195
|
+
"""
|
|
18196
|
+
|
|
18197
|
+
@overload
|
|
18198
|
+
async def post_list_measurement_forms_by_status(
|
|
18199
|
+
self, body: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any
|
|
18200
|
+
) -> _models.MeasurementFormInstanceDtoPagedResult:
|
|
18201
|
+
"""post_list_measurement_forms_by_status.
|
|
18202
|
+
|
|
18203
|
+
:param body: Default value is None.
|
|
18204
|
+
:type body: IO[bytes]
|
|
18205
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
|
18206
|
+
Known values are: 'application/*+json', 'application/json', 'text/json'. Default value is
|
|
18207
|
+
"application/json".
|
|
18208
|
+
:paramtype content_type: str
|
|
18209
|
+
:return: MeasurementFormInstanceDtoPagedResult
|
|
18210
|
+
:rtype: ~ignos.api.client.models.MeasurementFormInstanceDtoPagedResult
|
|
18211
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
18212
|
+
"""
|
|
18213
|
+
|
|
18214
|
+
@distributed_trace_async
|
|
18215
|
+
async def post_list_measurement_forms_by_status(
|
|
18216
|
+
self, body: Optional[Union[_models.ListMeasurementFormsByStatusRequest, IO[bytes]]] = None, **kwargs: Any
|
|
18217
|
+
) -> _models.MeasurementFormInstanceDtoPagedResult:
|
|
18218
|
+
"""post_list_measurement_forms_by_status.
|
|
18219
|
+
|
|
18220
|
+
:param body: Is either a ListMeasurementFormsByStatusRequest type or a IO[bytes] type. Default
|
|
18221
|
+
value is None.
|
|
18222
|
+
:type body: ~ignos.api.client.models.ListMeasurementFormsByStatusRequest or IO[bytes]
|
|
18223
|
+
:keyword content_type: Body Parameter content-type. Known values are: 'application/*+json',
|
|
18224
|
+
'application/json', 'text/json'. Default value is None.
|
|
18225
|
+
:paramtype content_type: str
|
|
18226
|
+
:return: MeasurementFormInstanceDtoPagedResult
|
|
18227
|
+
:rtype: ~ignos.api.client.models.MeasurementFormInstanceDtoPagedResult
|
|
18228
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
18229
|
+
"""
|
|
18230
|
+
error_map = {
|
|
18231
|
+
401: ClientAuthenticationError,
|
|
18232
|
+
404: ResourceNotFoundError,
|
|
18233
|
+
409: ResourceExistsError,
|
|
18234
|
+
304: ResourceNotModifiedError,
|
|
18235
|
+
}
|
|
18236
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
18237
|
+
|
|
18238
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
18239
|
+
_params = kwargs.pop("params", {}) or {}
|
|
18240
|
+
|
|
18241
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
18242
|
+
cls: ClsType[_models.MeasurementFormInstanceDtoPagedResult] = kwargs.pop("cls", None)
|
|
18243
|
+
|
|
18244
|
+
content_type = content_type or "application/json"
|
|
18245
|
+
_json = None
|
|
18246
|
+
_content = None
|
|
18247
|
+
if isinstance(body, (IOBase, bytes)):
|
|
18248
|
+
_content = body
|
|
18249
|
+
else:
|
|
18250
|
+
if body is not None:
|
|
18251
|
+
_json = self._serialize.body(body, "ListMeasurementFormsByStatusRequest")
|
|
18252
|
+
else:
|
|
18253
|
+
_json = None
|
|
18254
|
+
|
|
18255
|
+
_request = build_measurement_forms_instances_post_list_measurement_forms_by_status_request(
|
|
18256
|
+
content_type=content_type,
|
|
18257
|
+
json=_json,
|
|
18258
|
+
content=_content,
|
|
18259
|
+
headers=_headers,
|
|
18260
|
+
params=_params,
|
|
18261
|
+
)
|
|
18262
|
+
_request.url = self._client.format_url(_request.url)
|
|
18263
|
+
|
|
18264
|
+
_stream = False
|
|
18265
|
+
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
|
18266
|
+
_request, stream=_stream, **kwargs
|
|
18267
|
+
)
|
|
18268
|
+
|
|
18269
|
+
response = pipeline_response.http_response
|
|
18270
|
+
|
|
18271
|
+
if response.status_code not in [200]:
|
|
18272
|
+
if _stream:
|
|
18273
|
+
await response.read() # Load the body in memory and close the socket
|
|
18274
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
18275
|
+
raise HttpResponseError(response=response)
|
|
18276
|
+
|
|
18277
|
+
deserialized = self._deserialize("MeasurementFormInstanceDtoPagedResult", pipeline_response)
|
|
18278
|
+
|
|
18279
|
+
if cls:
|
|
18280
|
+
return cls(pipeline_response, deserialized, {}) # type: ignore
|
|
18281
|
+
|
|
18282
|
+
return deserialized # type: ignore
|
|
18283
|
+
|
|
16819
18284
|
@distributed_trace_async
|
|
16820
18285
|
async def get_measurement_form_instance(
|
|
16821
18286
|
self, id: str, *, tenant_id: Optional[str] = None, **kwargs: Any
|
|
@@ -22749,6 +24214,113 @@ class MesProductionScheduleOperations:
|
|
|
22749
24214
|
|
|
22750
24215
|
return deserialized # type: ignore
|
|
22751
24216
|
|
|
24217
|
+
@overload
|
|
24218
|
+
async def post_list_production_schedule_operations(
|
|
24219
|
+
self,
|
|
24220
|
+
body: Optional[_models.ListProductionScheduleOperationsRequest] = None,
|
|
24221
|
+
*,
|
|
24222
|
+
content_type: str = "application/json",
|
|
24223
|
+
**kwargs: Any
|
|
24224
|
+
) -> _models.ProductionScheduleOperationDtoPagedResult:
|
|
24225
|
+
"""post_list_production_schedule_operations.
|
|
24226
|
+
|
|
24227
|
+
:param body: Default value is None.
|
|
24228
|
+
:type body: ~ignos.api.client.models.ListProductionScheduleOperationsRequest
|
|
24229
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
|
24230
|
+
Default value is "application/json".
|
|
24231
|
+
:paramtype content_type: str
|
|
24232
|
+
:return: ProductionScheduleOperationDtoPagedResult
|
|
24233
|
+
:rtype: ~ignos.api.client.models.ProductionScheduleOperationDtoPagedResult
|
|
24234
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
24235
|
+
"""
|
|
24236
|
+
|
|
24237
|
+
@overload
|
|
24238
|
+
async def post_list_production_schedule_operations(
|
|
24239
|
+
self, body: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any
|
|
24240
|
+
) -> _models.ProductionScheduleOperationDtoPagedResult:
|
|
24241
|
+
"""post_list_production_schedule_operations.
|
|
24242
|
+
|
|
24243
|
+
:param body: Default value is None.
|
|
24244
|
+
:type body: IO[bytes]
|
|
24245
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
|
24246
|
+
Known values are: 'application/*+json', 'application/json', 'text/json'. Default value is
|
|
24247
|
+
"application/json".
|
|
24248
|
+
:paramtype content_type: str
|
|
24249
|
+
:return: ProductionScheduleOperationDtoPagedResult
|
|
24250
|
+
:rtype: ~ignos.api.client.models.ProductionScheduleOperationDtoPagedResult
|
|
24251
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
24252
|
+
"""
|
|
24253
|
+
|
|
24254
|
+
@distributed_trace_async
|
|
24255
|
+
async def post_list_production_schedule_operations(
|
|
24256
|
+
self, body: Optional[Union[_models.ListProductionScheduleOperationsRequest, IO[bytes]]] = None, **kwargs: Any
|
|
24257
|
+
) -> _models.ProductionScheduleOperationDtoPagedResult:
|
|
24258
|
+
"""post_list_production_schedule_operations.
|
|
24259
|
+
|
|
24260
|
+
:param body: Is either a ListProductionScheduleOperationsRequest type or a IO[bytes] type.
|
|
24261
|
+
Default value is None.
|
|
24262
|
+
:type body: ~ignos.api.client.models.ListProductionScheduleOperationsRequest or IO[bytes]
|
|
24263
|
+
:keyword content_type: Body Parameter content-type. Known values are: 'application/*+json',
|
|
24264
|
+
'application/json', 'text/json'. Default value is None.
|
|
24265
|
+
:paramtype content_type: str
|
|
24266
|
+
:return: ProductionScheduleOperationDtoPagedResult
|
|
24267
|
+
:rtype: ~ignos.api.client.models.ProductionScheduleOperationDtoPagedResult
|
|
24268
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
24269
|
+
"""
|
|
24270
|
+
error_map = {
|
|
24271
|
+
401: ClientAuthenticationError,
|
|
24272
|
+
404: ResourceNotFoundError,
|
|
24273
|
+
409: ResourceExistsError,
|
|
24274
|
+
304: ResourceNotModifiedError,
|
|
24275
|
+
}
|
|
24276
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
24277
|
+
|
|
24278
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
24279
|
+
_params = kwargs.pop("params", {}) or {}
|
|
24280
|
+
|
|
24281
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
24282
|
+
cls: ClsType[_models.ProductionScheduleOperationDtoPagedResult] = kwargs.pop("cls", None)
|
|
24283
|
+
|
|
24284
|
+
content_type = content_type or "application/json"
|
|
24285
|
+
_json = None
|
|
24286
|
+
_content = None
|
|
24287
|
+
if isinstance(body, (IOBase, bytes)):
|
|
24288
|
+
_content = body
|
|
24289
|
+
else:
|
|
24290
|
+
if body is not None:
|
|
24291
|
+
_json = self._serialize.body(body, "ListProductionScheduleOperationsRequest")
|
|
24292
|
+
else:
|
|
24293
|
+
_json = None
|
|
24294
|
+
|
|
24295
|
+
_request = build_mes_production_schedule_post_list_production_schedule_operations_request(
|
|
24296
|
+
content_type=content_type,
|
|
24297
|
+
json=_json,
|
|
24298
|
+
content=_content,
|
|
24299
|
+
headers=_headers,
|
|
24300
|
+
params=_params,
|
|
24301
|
+
)
|
|
24302
|
+
_request.url = self._client.format_url(_request.url)
|
|
24303
|
+
|
|
24304
|
+
_stream = False
|
|
24305
|
+
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
|
24306
|
+
_request, stream=_stream, **kwargs
|
|
24307
|
+
)
|
|
24308
|
+
|
|
24309
|
+
response = pipeline_response.http_response
|
|
24310
|
+
|
|
24311
|
+
if response.status_code not in [200]:
|
|
24312
|
+
if _stream:
|
|
24313
|
+
await response.read() # Load the body in memory and close the socket
|
|
24314
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
24315
|
+
raise HttpResponseError(response=response)
|
|
24316
|
+
|
|
24317
|
+
deserialized = self._deserialize("ProductionScheduleOperationDtoPagedResult", pipeline_response)
|
|
24318
|
+
|
|
24319
|
+
if cls:
|
|
24320
|
+
return cls(pipeline_response, deserialized, {}) # type: ignore
|
|
24321
|
+
|
|
24322
|
+
return deserialized # type: ignore
|
|
24323
|
+
|
|
22752
24324
|
@distributed_trace_async
|
|
22753
24325
|
async def list_my_current_work_activities(self, **kwargs: Any) -> List[_models.CurrentWorkActivityDto]:
|
|
22754
24326
|
"""list_my_current_work_activities.
|
|
@@ -24380,10 +25952,65 @@ class MrbOperations: # pylint: disable=too-many-public-methods
|
|
|
24380
25952
|
_headers = kwargs.pop("headers", {}) or {}
|
|
24381
25953
|
_params = kwargs.pop("params", {}) or {}
|
|
24382
25954
|
|
|
24383
|
-
cls: ClsType[_models.MrbPdfExportJobDto] = kwargs.pop("cls", None)
|
|
25955
|
+
cls: ClsType[_models.MrbPdfExportJobDto] = kwargs.pop("cls", None)
|
|
25956
|
+
|
|
25957
|
+
_request = build_mrb_get_mrb_pdf_export_job_status_request(
|
|
25958
|
+
job_id=job_id,
|
|
25959
|
+
headers=_headers,
|
|
25960
|
+
params=_params,
|
|
25961
|
+
)
|
|
25962
|
+
_request.url = self._client.format_url(_request.url)
|
|
25963
|
+
|
|
25964
|
+
_stream = False
|
|
25965
|
+
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
|
25966
|
+
_request, stream=_stream, **kwargs
|
|
25967
|
+
)
|
|
25968
|
+
|
|
25969
|
+
response = pipeline_response.http_response
|
|
25970
|
+
|
|
25971
|
+
if response.status_code not in [200]:
|
|
25972
|
+
if _stream:
|
|
25973
|
+
await response.read() # Load the body in memory and close the socket
|
|
25974
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
25975
|
+
raise HttpResponseError(response=response)
|
|
25976
|
+
|
|
25977
|
+
deserialized = self._deserialize("MrbPdfExportJobDto", pipeline_response)
|
|
25978
|
+
|
|
25979
|
+
if cls:
|
|
25980
|
+
return cls(pipeline_response, deserialized, {}) # type: ignore
|
|
25981
|
+
|
|
25982
|
+
return deserialized # type: ignore
|
|
25983
|
+
|
|
25984
|
+
@distributed_trace_async
|
|
25985
|
+
async def list_mrb_instance_reports(
|
|
25986
|
+
self, *, page_size: int = 50, continuation_token_parameter: Optional[str] = None, **kwargs: Any
|
|
25987
|
+
) -> _models.MrbInstanceReportDtoPagedResult:
|
|
25988
|
+
"""list_mrb_instance_reports.
|
|
25989
|
+
|
|
25990
|
+
:keyword page_size: Default value is 50.
|
|
25991
|
+
:paramtype page_size: int
|
|
25992
|
+
:keyword continuation_token_parameter: Default value is None.
|
|
25993
|
+
:paramtype continuation_token_parameter: str
|
|
25994
|
+
:return: MrbInstanceReportDtoPagedResult
|
|
25995
|
+
:rtype: ~ignos.api.client.models.MrbInstanceReportDtoPagedResult
|
|
25996
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
25997
|
+
"""
|
|
25998
|
+
error_map = {
|
|
25999
|
+
401: ClientAuthenticationError,
|
|
26000
|
+
404: ResourceNotFoundError,
|
|
26001
|
+
409: ResourceExistsError,
|
|
26002
|
+
304: ResourceNotModifiedError,
|
|
26003
|
+
}
|
|
26004
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
26005
|
+
|
|
26006
|
+
_headers = kwargs.pop("headers", {}) or {}
|
|
26007
|
+
_params = kwargs.pop("params", {}) or {}
|
|
26008
|
+
|
|
26009
|
+
cls: ClsType[_models.MrbInstanceReportDtoPagedResult] = kwargs.pop("cls", None)
|
|
24384
26010
|
|
|
24385
|
-
_request =
|
|
24386
|
-
|
|
26011
|
+
_request = build_mrb_list_mrb_instance_reports_request(
|
|
26012
|
+
page_size=page_size,
|
|
26013
|
+
continuation_token_parameter=continuation_token_parameter,
|
|
24387
26014
|
headers=_headers,
|
|
24388
26015
|
params=_params,
|
|
24389
26016
|
)
|
|
@@ -24402,23 +26029,62 @@ class MrbOperations: # pylint: disable=too-many-public-methods
|
|
|
24402
26029
|
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
24403
26030
|
raise HttpResponseError(response=response)
|
|
24404
26031
|
|
|
24405
|
-
deserialized = self._deserialize("
|
|
26032
|
+
deserialized = self._deserialize("MrbInstanceReportDtoPagedResult", pipeline_response)
|
|
24406
26033
|
|
|
24407
26034
|
if cls:
|
|
24408
26035
|
return cls(pipeline_response, deserialized, {}) # type: ignore
|
|
24409
26036
|
|
|
24410
26037
|
return deserialized # type: ignore
|
|
24411
26038
|
|
|
26039
|
+
@overload
|
|
26040
|
+
async def post_list_mrb_instance_reports(
|
|
26041
|
+
self,
|
|
26042
|
+
body: Optional[_models.ListMrbInstanceReportsRequest] = None,
|
|
26043
|
+
*,
|
|
26044
|
+
content_type: str = "application/json",
|
|
26045
|
+
**kwargs: Any
|
|
26046
|
+
) -> _models.MrbInstanceReportDtoPagedResult:
|
|
26047
|
+
"""post_list_mrb_instance_reports.
|
|
26048
|
+
|
|
26049
|
+
:param body: Default value is None.
|
|
26050
|
+
:type body: ~ignos.api.client.models.ListMrbInstanceReportsRequest
|
|
26051
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
|
26052
|
+
Default value is "application/json".
|
|
26053
|
+
:paramtype content_type: str
|
|
26054
|
+
:return: MrbInstanceReportDtoPagedResult
|
|
26055
|
+
:rtype: ~ignos.api.client.models.MrbInstanceReportDtoPagedResult
|
|
26056
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
26057
|
+
"""
|
|
26058
|
+
|
|
26059
|
+
@overload
|
|
26060
|
+
async def post_list_mrb_instance_reports(
|
|
26061
|
+
self, body: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any
|
|
26062
|
+
) -> _models.MrbInstanceReportDtoPagedResult:
|
|
26063
|
+
"""post_list_mrb_instance_reports.
|
|
26064
|
+
|
|
26065
|
+
:param body: Default value is None.
|
|
26066
|
+
:type body: IO[bytes]
|
|
26067
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
|
26068
|
+
Known values are: 'application/*+json', 'application/json', 'text/json'. Default value is
|
|
26069
|
+
"application/json".
|
|
26070
|
+
:paramtype content_type: str
|
|
26071
|
+
:return: MrbInstanceReportDtoPagedResult
|
|
26072
|
+
:rtype: ~ignos.api.client.models.MrbInstanceReportDtoPagedResult
|
|
26073
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
26074
|
+
"""
|
|
26075
|
+
|
|
24412
26076
|
@distributed_trace_async
|
|
24413
|
-
async def
|
|
24414
|
-
self,
|
|
26077
|
+
async def post_list_mrb_instance_reports(
|
|
26078
|
+
self, body: Optional[Union[_models.ListMrbInstanceReportsRequest, IO[bytes]]] = None, **kwargs: Any
|
|
24415
26079
|
) -> _models.MrbInstanceReportDtoPagedResult:
|
|
24416
|
-
"""
|
|
26080
|
+
"""post_list_mrb_instance_reports.
|
|
24417
26081
|
|
|
24418
|
-
:
|
|
24419
|
-
|
|
24420
|
-
:
|
|
24421
|
-
:
|
|
26082
|
+
:param body: Is either a ListMrbInstanceReportsRequest type or a IO[bytes] type. Default value
|
|
26083
|
+
is None.
|
|
26084
|
+
:type body: ~ignos.api.client.models.ListMrbInstanceReportsRequest or IO[bytes]
|
|
26085
|
+
:keyword content_type: Body Parameter content-type. Known values are: 'application/*+json',
|
|
26086
|
+
'application/json', 'text/json'. Default value is None.
|
|
26087
|
+
:paramtype content_type: str
|
|
24422
26088
|
:return: MrbInstanceReportDtoPagedResult
|
|
24423
26089
|
:rtype: ~ignos.api.client.models.MrbInstanceReportDtoPagedResult
|
|
24424
26090
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
@@ -24431,14 +26097,27 @@ class MrbOperations: # pylint: disable=too-many-public-methods
|
|
|
24431
26097
|
}
|
|
24432
26098
|
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
24433
26099
|
|
|
24434
|
-
_headers = kwargs.pop("headers", {}) or {}
|
|
26100
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
24435
26101
|
_params = kwargs.pop("params", {}) or {}
|
|
24436
26102
|
|
|
26103
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
24437
26104
|
cls: ClsType[_models.MrbInstanceReportDtoPagedResult] = kwargs.pop("cls", None)
|
|
24438
26105
|
|
|
24439
|
-
|
|
24440
|
-
|
|
24441
|
-
|
|
26106
|
+
content_type = content_type or "application/json"
|
|
26107
|
+
_json = None
|
|
26108
|
+
_content = None
|
|
26109
|
+
if isinstance(body, (IOBase, bytes)):
|
|
26110
|
+
_content = body
|
|
26111
|
+
else:
|
|
26112
|
+
if body is not None:
|
|
26113
|
+
_json = self._serialize.body(body, "ListMrbInstanceReportsRequest")
|
|
26114
|
+
else:
|
|
26115
|
+
_json = None
|
|
26116
|
+
|
|
26117
|
+
_request = build_mrb_post_list_mrb_instance_reports_request(
|
|
26118
|
+
content_type=content_type,
|
|
26119
|
+
json=_json,
|
|
26120
|
+
content=_content,
|
|
24442
26121
|
headers=_headers,
|
|
24443
26122
|
params=_params,
|
|
24444
26123
|
)
|
|
@@ -27434,6 +29113,113 @@ class TraceOperations:
|
|
|
27434
29113
|
|
|
27435
29114
|
return deserialized # type: ignore
|
|
27436
29115
|
|
|
29116
|
+
@overload
|
|
29117
|
+
async def post_list_trace_workorders(
|
|
29118
|
+
self,
|
|
29119
|
+
body: Optional[_models.ListTraceWorkordersRequest] = None,
|
|
29120
|
+
*,
|
|
29121
|
+
content_type: str = "application/json",
|
|
29122
|
+
**kwargs: Any
|
|
29123
|
+
) -> _models.TraceWorkOrderListDtoPagedResult:
|
|
29124
|
+
"""post_list_trace_workorders.
|
|
29125
|
+
|
|
29126
|
+
:param body: Default value is None.
|
|
29127
|
+
:type body: ~ignos.api.client.models.ListTraceWorkordersRequest
|
|
29128
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
|
29129
|
+
Default value is "application/json".
|
|
29130
|
+
:paramtype content_type: str
|
|
29131
|
+
:return: TraceWorkOrderListDtoPagedResult
|
|
29132
|
+
:rtype: ~ignos.api.client.models.TraceWorkOrderListDtoPagedResult
|
|
29133
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
29134
|
+
"""
|
|
29135
|
+
|
|
29136
|
+
@overload
|
|
29137
|
+
async def post_list_trace_workorders(
|
|
29138
|
+
self, body: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any
|
|
29139
|
+
) -> _models.TraceWorkOrderListDtoPagedResult:
|
|
29140
|
+
"""post_list_trace_workorders.
|
|
29141
|
+
|
|
29142
|
+
:param body: Default value is None.
|
|
29143
|
+
:type body: IO[bytes]
|
|
29144
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
|
29145
|
+
Known values are: 'application/*+json', 'application/json', 'text/json'. Default value is
|
|
29146
|
+
"application/json".
|
|
29147
|
+
:paramtype content_type: str
|
|
29148
|
+
:return: TraceWorkOrderListDtoPagedResult
|
|
29149
|
+
:rtype: ~ignos.api.client.models.TraceWorkOrderListDtoPagedResult
|
|
29150
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
29151
|
+
"""
|
|
29152
|
+
|
|
29153
|
+
@distributed_trace_async
|
|
29154
|
+
async def post_list_trace_workorders(
|
|
29155
|
+
self, body: Optional[Union[_models.ListTraceWorkordersRequest, IO[bytes]]] = None, **kwargs: Any
|
|
29156
|
+
) -> _models.TraceWorkOrderListDtoPagedResult:
|
|
29157
|
+
"""post_list_trace_workorders.
|
|
29158
|
+
|
|
29159
|
+
:param body: Is either a ListTraceWorkordersRequest type or a IO[bytes] type. Default value is
|
|
29160
|
+
None.
|
|
29161
|
+
:type body: ~ignos.api.client.models.ListTraceWorkordersRequest or IO[bytes]
|
|
29162
|
+
:keyword content_type: Body Parameter content-type. Known values are: 'application/*+json',
|
|
29163
|
+
'application/json', 'text/json'. Default value is None.
|
|
29164
|
+
:paramtype content_type: str
|
|
29165
|
+
:return: TraceWorkOrderListDtoPagedResult
|
|
29166
|
+
:rtype: ~ignos.api.client.models.TraceWorkOrderListDtoPagedResult
|
|
29167
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
29168
|
+
"""
|
|
29169
|
+
error_map = {
|
|
29170
|
+
401: ClientAuthenticationError,
|
|
29171
|
+
404: ResourceNotFoundError,
|
|
29172
|
+
409: ResourceExistsError,
|
|
29173
|
+
304: ResourceNotModifiedError,
|
|
29174
|
+
}
|
|
29175
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
29176
|
+
|
|
29177
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
29178
|
+
_params = kwargs.pop("params", {}) or {}
|
|
29179
|
+
|
|
29180
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
29181
|
+
cls: ClsType[_models.TraceWorkOrderListDtoPagedResult] = kwargs.pop("cls", None)
|
|
29182
|
+
|
|
29183
|
+
content_type = content_type or "application/json"
|
|
29184
|
+
_json = None
|
|
29185
|
+
_content = None
|
|
29186
|
+
if isinstance(body, (IOBase, bytes)):
|
|
29187
|
+
_content = body
|
|
29188
|
+
else:
|
|
29189
|
+
if body is not None:
|
|
29190
|
+
_json = self._serialize.body(body, "ListTraceWorkordersRequest")
|
|
29191
|
+
else:
|
|
29192
|
+
_json = None
|
|
29193
|
+
|
|
29194
|
+
_request = build_trace_post_list_trace_workorders_request(
|
|
29195
|
+
content_type=content_type,
|
|
29196
|
+
json=_json,
|
|
29197
|
+
content=_content,
|
|
29198
|
+
headers=_headers,
|
|
29199
|
+
params=_params,
|
|
29200
|
+
)
|
|
29201
|
+
_request.url = self._client.format_url(_request.url)
|
|
29202
|
+
|
|
29203
|
+
_stream = False
|
|
29204
|
+
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
|
29205
|
+
_request, stream=_stream, **kwargs
|
|
29206
|
+
)
|
|
29207
|
+
|
|
29208
|
+
response = pipeline_response.http_response
|
|
29209
|
+
|
|
29210
|
+
if response.status_code not in [200]:
|
|
29211
|
+
if _stream:
|
|
29212
|
+
await response.read() # Load the body in memory and close the socket
|
|
29213
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
29214
|
+
raise HttpResponseError(response=response)
|
|
29215
|
+
|
|
29216
|
+
deserialized = self._deserialize("TraceWorkOrderListDtoPagedResult", pipeline_response)
|
|
29217
|
+
|
|
29218
|
+
if cls:
|
|
29219
|
+
return cls(pipeline_response, deserialized, {}) # type: ignore
|
|
29220
|
+
|
|
29221
|
+
return deserialized # type: ignore
|
|
29222
|
+
|
|
27437
29223
|
|
|
27438
29224
|
class UploadOperations:
|
|
27439
29225
|
"""
|
|
@@ -27584,6 +29370,108 @@ class UsersOperations:
|
|
|
27584
29370
|
|
|
27585
29371
|
return deserialized # type: ignore
|
|
27586
29372
|
|
|
29373
|
+
@overload
|
|
29374
|
+
async def post_list_users(
|
|
29375
|
+
self, body: Optional[_models.ListUsersRequest] = None, *, content_type: str = "application/json", **kwargs: Any
|
|
29376
|
+
) -> _models.UserDtoPagedResult:
|
|
29377
|
+
"""post_list_users.
|
|
29378
|
+
|
|
29379
|
+
:param body: Default value is None.
|
|
29380
|
+
:type body: ~ignos.api.client.models.ListUsersRequest
|
|
29381
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
|
29382
|
+
Default value is "application/json".
|
|
29383
|
+
:paramtype content_type: str
|
|
29384
|
+
:return: UserDtoPagedResult
|
|
29385
|
+
:rtype: ~ignos.api.client.models.UserDtoPagedResult
|
|
29386
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
29387
|
+
"""
|
|
29388
|
+
|
|
29389
|
+
@overload
|
|
29390
|
+
async def post_list_users(
|
|
29391
|
+
self, body: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any
|
|
29392
|
+
) -> _models.UserDtoPagedResult:
|
|
29393
|
+
"""post_list_users.
|
|
29394
|
+
|
|
29395
|
+
:param body: Default value is None.
|
|
29396
|
+
:type body: IO[bytes]
|
|
29397
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
|
29398
|
+
Known values are: 'application/*+json', 'application/json', 'text/json'. Default value is
|
|
29399
|
+
"application/json".
|
|
29400
|
+
:paramtype content_type: str
|
|
29401
|
+
:return: UserDtoPagedResult
|
|
29402
|
+
:rtype: ~ignos.api.client.models.UserDtoPagedResult
|
|
29403
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
29404
|
+
"""
|
|
29405
|
+
|
|
29406
|
+
@distributed_trace_async
|
|
29407
|
+
async def post_list_users(
|
|
29408
|
+
self, body: Optional[Union[_models.ListUsersRequest, IO[bytes]]] = None, **kwargs: Any
|
|
29409
|
+
) -> _models.UserDtoPagedResult:
|
|
29410
|
+
"""post_list_users.
|
|
29411
|
+
|
|
29412
|
+
:param body: Is either a ListUsersRequest type or a IO[bytes] type. Default value is None.
|
|
29413
|
+
:type body: ~ignos.api.client.models.ListUsersRequest or IO[bytes]
|
|
29414
|
+
:keyword content_type: Body Parameter content-type. Known values are: 'application/*+json',
|
|
29415
|
+
'application/json', 'text/json'. Default value is None.
|
|
29416
|
+
:paramtype content_type: str
|
|
29417
|
+
:return: UserDtoPagedResult
|
|
29418
|
+
:rtype: ~ignos.api.client.models.UserDtoPagedResult
|
|
29419
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
29420
|
+
"""
|
|
29421
|
+
error_map = {
|
|
29422
|
+
401: ClientAuthenticationError,
|
|
29423
|
+
404: ResourceNotFoundError,
|
|
29424
|
+
409: ResourceExistsError,
|
|
29425
|
+
304: ResourceNotModifiedError,
|
|
29426
|
+
}
|
|
29427
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
29428
|
+
|
|
29429
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
29430
|
+
_params = kwargs.pop("params", {}) or {}
|
|
29431
|
+
|
|
29432
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
29433
|
+
cls: ClsType[_models.UserDtoPagedResult] = kwargs.pop("cls", None)
|
|
29434
|
+
|
|
29435
|
+
content_type = content_type or "application/json"
|
|
29436
|
+
_json = None
|
|
29437
|
+
_content = None
|
|
29438
|
+
if isinstance(body, (IOBase, bytes)):
|
|
29439
|
+
_content = body
|
|
29440
|
+
else:
|
|
29441
|
+
if body is not None:
|
|
29442
|
+
_json = self._serialize.body(body, "ListUsersRequest")
|
|
29443
|
+
else:
|
|
29444
|
+
_json = None
|
|
29445
|
+
|
|
29446
|
+
_request = build_users_post_list_users_request(
|
|
29447
|
+
content_type=content_type,
|
|
29448
|
+
json=_json,
|
|
29449
|
+
content=_content,
|
|
29450
|
+
headers=_headers,
|
|
29451
|
+
params=_params,
|
|
29452
|
+
)
|
|
29453
|
+
_request.url = self._client.format_url(_request.url)
|
|
29454
|
+
|
|
29455
|
+
_stream = False
|
|
29456
|
+
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
|
29457
|
+
_request, stream=_stream, **kwargs
|
|
29458
|
+
)
|
|
29459
|
+
|
|
29460
|
+
response = pipeline_response.http_response
|
|
29461
|
+
|
|
29462
|
+
if response.status_code not in [200]:
|
|
29463
|
+
if _stream:
|
|
29464
|
+
await response.read() # Load the body in memory and close the socket
|
|
29465
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
29466
|
+
raise HttpResponseError(response=response)
|
|
29467
|
+
|
|
29468
|
+
deserialized = self._deserialize("UserDtoPagedResult", pipeline_response)
|
|
29469
|
+
|
|
29470
|
+
if cls:
|
|
29471
|
+
return cls(pipeline_response, deserialized, {}) # type: ignore
|
|
29472
|
+
|
|
29473
|
+
return deserialized # type: ignore
|
|
29474
|
+
|
|
27587
29475
|
|
|
27588
29476
|
class WorkspacesOperations:
|
|
27589
29477
|
"""
|