Skip to content

Commit 0aa7d91

Browse files
committed
regen
1 parent 3ba12f6 commit 0aa7d91

File tree

6 files changed

+91
-53
lines changed

6 files changed

+91
-53
lines changed

sdk/healthinsights/azure-healthinsights-radiologyinsights/apiview-properties.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
"azure.healthinsights.radiologyinsights.models.QualityMeasureOptions": "AzureHealthInsights.QualityMeasureOptions",
4949
"azure.healthinsights.radiologyinsights.models.Quantity": "Fhir.R4.Quantity",
5050
"azure.healthinsights.radiologyinsights.models.RadiologyCodeWithTypes": "AzureHealthInsights.RadiologyCodeWithTypes",
51+
"azure.healthinsights.radiologyinsights.models.RadiologyInsightsCustomInferenceResponse": "AzureHealthInsights.RadiologyInsightsCustomInferenceResponse",
5152
"azure.healthinsights.radiologyinsights.models.RadiologyInsightsData": "AzureHealthInsights.RadiologyInsightsData",
5253
"azure.healthinsights.radiologyinsights.models.RadiologyInsightsInferenceOptions": "AzureHealthInsights.RadiologyInsightsInferenceOptions",
5354
"azure.healthinsights.radiologyinsights.models.RadiologyInsightsInferenceResult": "AzureHealthInsights.RadiologyInsightsInferenceResult",

sdk/healthinsights/azure-healthinsights-radiologyinsights/azure/healthinsights/radiologyinsights/_operations/_operations.py

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
1+
# pylint: disable=line-too-long,useless-suppression
12
# coding=utf-8
23
# --------------------------------------------------------------------------
34
# Copyright (c) Microsoft Corporation. All rights reserved.
45
# Licensed under the MIT License. See License.txt in the project root for license information.
56
# Code generated by Microsoft (R) Python Code Generator.
67
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
78
# --------------------------------------------------------------------------
8-
try:
9-
from collections.abc import MutableMapping
10-
except ImportError:
11-
from collections import MutableMapping # pylint: disable=deprecated-class
9+
from collections.abc import MutableMapping
1210
from io import IOBase
1311
import json
1412
from typing import Any, Callable, Dict, IO, Iterator, List, Optional, TypeVar, Union, cast, overload
@@ -429,7 +427,7 @@ def begin_infer_from_custom_model_id(
429427
content_type: str = "application/json",
430428
id: Optional[List[str]] = None,
431429
**kwargs: Any,
432-
) -> LROPoller[_models.RadiologyInsightsInferenceResult]:
430+
) -> LROPoller[_models.RadiologyInsightsCustomInferenceResponse]:
433431
"""Infer radiology insights using a custom model.
434432
435433
:keyword inference_data: Contains the list of patients, and configuration data. Required.
@@ -440,46 +438,46 @@ def begin_infer_from_custom_model_id(
440438
:keyword id: Models to be used for inference. If this is not specified, the model will use the
441439
default model for inference. Default value is None.
442440
:paramtype id: list[str]
443-
:return: An instance of LROPoller that returns RadiologyInsightsInferenceResult. The
444-
RadiologyInsightsInferenceResult is compatible with MutableMapping
441+
:return: An instance of LROPoller that returns RadiologyInsightsCustomInferenceResponse. The
442+
RadiologyInsightsCustomInferenceResponse is compatible with MutableMapping
445443
:rtype:
446-
~azure.core.polling.LROPoller[~azure.healthinsights.radiologyinsights.models.RadiologyInsightsInferenceResult]
444+
~azure.core.polling.LROPoller[~azure.healthinsights.radiologyinsights.models.RadiologyInsightsCustomInferenceResponse]
447445
:raises ~azure.core.exceptions.HttpResponseError:
448446
"""
449447

450448
@overload
451449
def begin_infer_from_custom_model_id(
452450
self, body: JSON, *, content_type: str = "application/json", **kwargs: Any
453-
) -> LROPoller[_models.RadiologyInsightsInferenceResult]:
451+
) -> LROPoller[_models.RadiologyInsightsCustomInferenceResponse]:
454452
"""Infer radiology insights using a custom model.
455453
456454
:param body: Required.
457455
:type body: JSON
458456
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
459457
Default value is "application/json".
460458
:paramtype content_type: str
461-
:return: An instance of LROPoller that returns RadiologyInsightsInferenceResult. The
462-
RadiologyInsightsInferenceResult is compatible with MutableMapping
459+
:return: An instance of LROPoller that returns RadiologyInsightsCustomInferenceResponse. The
460+
RadiologyInsightsCustomInferenceResponse is compatible with MutableMapping
463461
:rtype:
464-
~azure.core.polling.LROPoller[~azure.healthinsights.radiologyinsights.models.RadiologyInsightsInferenceResult]
462+
~azure.core.polling.LROPoller[~azure.healthinsights.radiologyinsights.models.RadiologyInsightsCustomInferenceResponse]
465463
:raises ~azure.core.exceptions.HttpResponseError:
466464
"""
467465

468466
@overload
469467
def begin_infer_from_custom_model_id(
470468
self, body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any
471-
) -> LROPoller[_models.RadiologyInsightsInferenceResult]:
469+
) -> LROPoller[_models.RadiologyInsightsCustomInferenceResponse]:
472470
"""Infer radiology insights using a custom model.
473471
474472
:param body: Required.
475473
:type body: IO[bytes]
476474
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
477475
Default value is "application/json".
478476
:paramtype content_type: str
479-
:return: An instance of LROPoller that returns RadiologyInsightsInferenceResult. The
480-
RadiologyInsightsInferenceResult is compatible with MutableMapping
477+
:return: An instance of LROPoller that returns RadiologyInsightsCustomInferenceResponse. The
478+
RadiologyInsightsCustomInferenceResponse is compatible with MutableMapping
481479
:rtype:
482-
~azure.core.polling.LROPoller[~azure.healthinsights.radiologyinsights.models.RadiologyInsightsInferenceResult]
480+
~azure.core.polling.LROPoller[~azure.healthinsights.radiologyinsights.models.RadiologyInsightsCustomInferenceResponse]
483481
:raises ~azure.core.exceptions.HttpResponseError:
484482
"""
485483

@@ -491,7 +489,7 @@ def begin_infer_from_custom_model_id(
491489
inference_data: _models.RadiologyInsightsData = _Unset,
492490
id: Optional[List[str]] = None,
493491
**kwargs: Any,
494-
) -> LROPoller[_models.RadiologyInsightsInferenceResult]:
492+
) -> LROPoller[_models.RadiologyInsightsCustomInferenceResponse]:
495493
"""Infer radiology insights using a custom model.
496494
497495
:param body: Is either a JSON type or a IO[bytes] type. Required.
@@ -501,17 +499,17 @@ def begin_infer_from_custom_model_id(
501499
:keyword id: Models to be used for inference. If this is not specified, the model will use the
502500
default model for inference. Default value is None.
503501
:paramtype id: list[str]
504-
:return: An instance of LROPoller that returns RadiologyInsightsInferenceResult. The
505-
RadiologyInsightsInferenceResult is compatible with MutableMapping
502+
:return: An instance of LROPoller that returns RadiologyInsightsCustomInferenceResponse. The
503+
RadiologyInsightsCustomInferenceResponse is compatible with MutableMapping
506504
:rtype:
507-
~azure.core.polling.LROPoller[~azure.healthinsights.radiologyinsights.models.RadiologyInsightsInferenceResult]
505+
~azure.core.polling.LROPoller[~azure.healthinsights.radiologyinsights.models.RadiologyInsightsCustomInferenceResponse]
508506
:raises ~azure.core.exceptions.HttpResponseError:
509507
"""
510508
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
511509
_params = kwargs.pop("params", {}) or {}
512510

513511
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
514-
cls: ClsType[_models.RadiologyInsightsInferenceResult] = kwargs.pop("cls", None)
512+
cls: ClsType[_models.RadiologyInsightsCustomInferenceResponse] = kwargs.pop("cls", None)
515513
polling: Union[bool, PollingMethod] = kwargs.pop("polling", True)
516514
lro_delay = kwargs.pop("polling_interval", self._config.polling_interval)
517515
cont_token: Optional[str] = kwargs.pop("continuation_token", None)
@@ -536,7 +534,9 @@ def get_long_running_output(pipeline_response):
536534
"str", response.headers.get("Operation-Location")
537535
)
538536

539-
deserialized = _deserialize(_models.RadiologyInsightsInferenceResult, response.json().get("result", {}))
537+
deserialized = _deserialize(
538+
_models.RadiologyInsightsCustomInferenceResponse, response.json().get("result", {})
539+
)
540540
if cls:
541541
return cls(pipeline_response, deserialized, response_headers) # type: ignore
542542
return deserialized
@@ -554,12 +554,12 @@ def get_long_running_output(pipeline_response):
554554
else:
555555
polling_method = polling
556556
if cont_token:
557-
return LROPoller[_models.RadiologyInsightsInferenceResult].from_continuation_token(
557+
return LROPoller[_models.RadiologyInsightsCustomInferenceResponse].from_continuation_token(
558558
polling_method=polling_method,
559559
continuation_token=cont_token,
560560
client=self._client,
561561
deserialization_callback=get_long_running_output,
562562
)
563-
return LROPoller[_models.RadiologyInsightsInferenceResult](
563+
return LROPoller[_models.RadiologyInsightsCustomInferenceResponse](
564564
self._client, raw_result, get_long_running_output, polling_method # type: ignore
565565
)

sdk/healthinsights/azure-healthinsights-radiologyinsights/azure/healthinsights/radiologyinsights/_utils/model_base.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,7 @@
2222
from datetime import datetime, date, time, timedelta, timezone
2323
from json import JSONEncoder
2424
import xml.etree.ElementTree as ET
25-
try:
26-
from collections.abc import MutableMapping
27-
except ImportError:
28-
from collections import MutableMapping # pylint: disable=deprecated-class
25+
from collections.abc import MutableMapping
2926
from typing_extensions import Self
3027
import isodate
3128
from azure.core.exceptions import DeserializationError
@@ -644,7 +641,7 @@ def __new__(cls, *args: typing.Any, **kwargs: typing.Any) -> Self:
644641
cls._attr_to_rest_field: typing.Dict[str, _RestField] = dict(attr_to_rest_field.items())
645642
cls._calculated.add(f"{cls.__module__}.{cls.__qualname__}")
646643

647-
return super().__new__(cls) # pylint: disable=no-value-for-parameter
644+
return super().__new__(cls)
648645

649646
def __init_subclass__(cls, discriminator: typing.Optional[str] = None) -> None:
650647
for base in cls.__bases__:

sdk/healthinsights/azure-healthinsights-radiologyinsights/azure/healthinsights/radiologyinsights/aio/_operations/_operations.py

Lines changed: 23 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,7 @@
66
# Code generated by Microsoft (R) Python Code Generator.
77
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
88
# --------------------------------------------------------------------------
9-
try:
10-
from collections.abc import MutableMapping
11-
except ImportError:
12-
from collections import MutableMapping # pylint: disable=deprecated-class
9+
from collections.abc import MutableMapping
1310
from io import IOBase
1411
import json
1512
from typing import Any, AsyncIterator, Callable, Dict, IO, List, Optional, TypeVar, Union, cast, overload
@@ -376,7 +373,7 @@ async def begin_infer_from_custom_model_id(
376373
content_type: str = "application/json",
377374
id: Optional[List[str]] = None,
378375
**kwargs: Any
379-
) -> AsyncLROPoller[_models.RadiologyInsightsInferenceResult]:
376+
) -> AsyncLROPoller[_models.RadiologyInsightsCustomInferenceResponse]:
380377
"""Infer radiology insights using a custom model.
381378
382379
:keyword inference_data: Contains the list of patients, and configuration data. Required.
@@ -387,46 +384,46 @@ async def begin_infer_from_custom_model_id(
387384
:keyword id: Models to be used for inference. If this is not specified, the model will use the
388385
default model for inference. Default value is None.
389386
:paramtype id: list[str]
390-
:return: An instance of AsyncLROPoller that returns RadiologyInsightsInferenceResult. The
391-
RadiologyInsightsInferenceResult is compatible with MutableMapping
387+
:return: An instance of AsyncLROPoller that returns RadiologyInsightsCustomInferenceResponse.
388+
The RadiologyInsightsCustomInferenceResponse is compatible with MutableMapping
392389
:rtype:
393-
~azure.core.polling.AsyncLROPoller[~azure.healthinsights.radiologyinsights.models.RadiologyInsightsInferenceResult]
390+
~azure.core.polling.AsyncLROPoller[~azure.healthinsights.radiologyinsights.models.RadiologyInsightsCustomInferenceResponse]
394391
:raises ~azure.core.exceptions.HttpResponseError:
395392
"""
396393

397394
@overload
398395
async def begin_infer_from_custom_model_id(
399396
self, body: JSON, *, content_type: str = "application/json", **kwargs: Any
400-
) -> AsyncLROPoller[_models.RadiologyInsightsInferenceResult]:
397+
) -> AsyncLROPoller[_models.RadiologyInsightsCustomInferenceResponse]:
401398
"""Infer radiology insights using a custom model.
402399
403400
:param body: Required.
404401
:type body: JSON
405402
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
406403
Default value is "application/json".
407404
:paramtype content_type: str
408-
:return: An instance of AsyncLROPoller that returns RadiologyInsightsInferenceResult. The
409-
RadiologyInsightsInferenceResult is compatible with MutableMapping
405+
:return: An instance of AsyncLROPoller that returns RadiologyInsightsCustomInferenceResponse.
406+
The RadiologyInsightsCustomInferenceResponse is compatible with MutableMapping
410407
:rtype:
411-
~azure.core.polling.AsyncLROPoller[~azure.healthinsights.radiologyinsights.models.RadiologyInsightsInferenceResult]
408+
~azure.core.polling.AsyncLROPoller[~azure.healthinsights.radiologyinsights.models.RadiologyInsightsCustomInferenceResponse]
412409
:raises ~azure.core.exceptions.HttpResponseError:
413410
"""
414411

415412
@overload
416413
async def begin_infer_from_custom_model_id(
417414
self, body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any
418-
) -> AsyncLROPoller[_models.RadiologyInsightsInferenceResult]:
415+
) -> AsyncLROPoller[_models.RadiologyInsightsCustomInferenceResponse]:
419416
"""Infer radiology insights using a custom model.
420417
421418
:param body: Required.
422419
:type body: IO[bytes]
423420
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
424421
Default value is "application/json".
425422
:paramtype content_type: str
426-
:return: An instance of AsyncLROPoller that returns RadiologyInsightsInferenceResult. The
427-
RadiologyInsightsInferenceResult is compatible with MutableMapping
423+
:return: An instance of AsyncLROPoller that returns RadiologyInsightsCustomInferenceResponse.
424+
The RadiologyInsightsCustomInferenceResponse is compatible with MutableMapping
428425
:rtype:
429-
~azure.core.polling.AsyncLROPoller[~azure.healthinsights.radiologyinsights.models.RadiologyInsightsInferenceResult]
426+
~azure.core.polling.AsyncLROPoller[~azure.healthinsights.radiologyinsights.models.RadiologyInsightsCustomInferenceResponse]
430427
:raises ~azure.core.exceptions.HttpResponseError:
431428
"""
432429

@@ -438,7 +435,7 @@ async def begin_infer_from_custom_model_id(
438435
inference_data: _models.RadiologyInsightsData = _Unset,
439436
id: Optional[List[str]] = None,
440437
**kwargs: Any
441-
) -> AsyncLROPoller[_models.RadiologyInsightsInferenceResult]:
438+
) -> AsyncLROPoller[_models.RadiologyInsightsCustomInferenceResponse]:
442439
"""Infer radiology insights using a custom model.
443440
444441
:param body: Is either a JSON type or a IO[bytes] type. Required.
@@ -448,17 +445,17 @@ async def begin_infer_from_custom_model_id(
448445
:keyword id: Models to be used for inference. If this is not specified, the model will use the
449446
default model for inference. Default value is None.
450447
:paramtype id: list[str]
451-
:return: An instance of AsyncLROPoller that returns RadiologyInsightsInferenceResult. The
452-
RadiologyInsightsInferenceResult is compatible with MutableMapping
448+
:return: An instance of AsyncLROPoller that returns RadiologyInsightsCustomInferenceResponse.
449+
The RadiologyInsightsCustomInferenceResponse is compatible with MutableMapping
453450
:rtype:
454-
~azure.core.polling.AsyncLROPoller[~azure.healthinsights.radiologyinsights.models.RadiologyInsightsInferenceResult]
451+
~azure.core.polling.AsyncLROPoller[~azure.healthinsights.radiologyinsights.models.RadiologyInsightsCustomInferenceResponse]
455452
:raises ~azure.core.exceptions.HttpResponseError:
456453
"""
457454
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
458455
_params = kwargs.pop("params", {}) or {}
459456

460457
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
461-
cls: ClsType[_models.RadiologyInsightsInferenceResult] = kwargs.pop("cls", None)
458+
cls: ClsType[_models.RadiologyInsightsCustomInferenceResponse] = kwargs.pop("cls", None)
462459
polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True)
463460
lro_delay = kwargs.pop("polling_interval", self._config.polling_interval)
464461
cont_token: Optional[str] = kwargs.pop("continuation_token", None)
@@ -483,7 +480,9 @@ def get_long_running_output(pipeline_response):
483480
"str", response.headers.get("Operation-Location")
484481
)
485482

486-
deserialized = _deserialize(_models.RadiologyInsightsInferenceResult, response.json().get("result", {}))
483+
deserialized = _deserialize(
484+
_models.RadiologyInsightsCustomInferenceResponse, response.json().get("result", {})
485+
)
487486
if cls:
488487
return cls(pipeline_response, deserialized, response_headers) # type: ignore
489488
return deserialized
@@ -502,12 +501,12 @@ def get_long_running_output(pipeline_response):
502501
else:
503502
polling_method = polling
504503
if cont_token:
505-
return AsyncLROPoller[_models.RadiologyInsightsInferenceResult].from_continuation_token(
504+
return AsyncLROPoller[_models.RadiologyInsightsCustomInferenceResponse].from_continuation_token(
506505
polling_method=polling_method,
507506
continuation_token=cont_token,
508507
client=self._client,
509508
deserialization_callback=get_long_running_output,
510509
)
511-
return AsyncLROPoller[_models.RadiologyInsightsInferenceResult](
510+
return AsyncLROPoller[_models.RadiologyInsightsCustomInferenceResponse](
512511
self._client, raw_result, get_long_running_output, polling_method # type: ignore
513512
)

sdk/healthinsights/azure-healthinsights-radiologyinsights/azure/healthinsights/radiologyinsights/models/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
QualityMeasureOptions,
6060
Quantity,
6161
RadiologyCodeWithTypes,
62+
RadiologyInsightsCustomInferenceResponse,
6263
RadiologyInsightsData,
6364
RadiologyInsightsInference,
6465
RadiologyInsightsInferenceOptions,
@@ -149,6 +150,7 @@
149150
"QualityMeasureOptions",
150151
"Quantity",
151152
"RadiologyCodeWithTypes",
153+
"RadiologyInsightsCustomInferenceResponse",
152154
"RadiologyInsightsData",
153155
"RadiologyInsightsInference",
154156
"RadiologyInsightsInferenceOptions",

0 commit comments

Comments
 (0)