Skip to content

Commit 1beb772

Browse files
author
SDKAuto
committed
CodeGen from PR 34498 in Azure/azure-rest-api-specs
Merge d1d2aa5b640dd868064d9d44acca625471c824c8 into 941fa4f0e3a86094c9e0fe61698c0646497d0753
1 parent 595c58a commit 1beb772

File tree

56 files changed

+2787
-1400
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+2787
-1400
lines changed

sdk/healthinsights/azure-healthinsights-radiologyinsights/MANIFEST.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ include azure/healthinsights/radiologyinsights/py.typed
44
recursive-include tests *.py
55
recursive-include samples *.py *.md
66
include azure/__init__.py
7-
include azure/healthinsights/__init__.py
7+
include azure/healthinsights/__init__.py
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"commit": "b21d3a9d67eaa53f6aa9a2781f4e7fd32df7ed87",
3+
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
4+
"typespec_src": "specification/ai/HealthInsights/HealthInsights.RadiologyInsights",
5+
"@azure-tools/typespec-python": "0.44.2"
6+
}
Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
{
2+
"CrossLanguagePackageId": "AzureHealthInsights",
3+
"CrossLanguageDefinitionId": {
4+
"azure.healthinsights.radiologyinsights.models.RadiologyInsightsInference": "AzureHealthInsights.RadiologyInsightsInference",
5+
"azure.healthinsights.radiologyinsights.models.AgeMismatchInference": "AzureHealthInsights.AgeMismatchInference",
6+
"azure.healthinsights.radiologyinsights.models.Element": "Fhir.R4.Element",
7+
"azure.healthinsights.radiologyinsights.models.Annotation": "Fhir.R4.Annotation",
8+
"azure.healthinsights.radiologyinsights.models.AssessmentValueRange": "AzureHealthInsights.AssessmentValueRange",
9+
"azure.healthinsights.radiologyinsights.models.CodeableConcept": "Fhir.R4.CodeableConcept",
10+
"azure.healthinsights.radiologyinsights.models.Coding": "Fhir.R4.Coding",
11+
"azure.healthinsights.radiologyinsights.models.CompleteOrderDiscrepancyInference": "AzureHealthInsights.CompleteOrderDiscrepancyInference",
12+
"azure.healthinsights.radiologyinsights.models.CriticalResult": "AzureHealthInsights.CriticalResult",
13+
"azure.healthinsights.radiologyinsights.models.CriticalResultInference": "AzureHealthInsights.CriticalResultInference",
14+
"azure.healthinsights.radiologyinsights.models.DocumentAdministrativeMetadata": "AzureHealthInsights.DocumentAdministrativeMetadata",
15+
"azure.healthinsights.radiologyinsights.models.DocumentAuthor": "AzureHealthInsights.DocumentAuthor",
16+
"azure.healthinsights.radiologyinsights.models.DocumentContent": "AzureHealthInsights.DocumentContent",
17+
"azure.healthinsights.radiologyinsights.models.Resource": "Fhir.R4.Resource",
18+
"azure.healthinsights.radiologyinsights.models.DomainResource": "Fhir.R4.DomainResource",
19+
"azure.healthinsights.radiologyinsights.models.Extension": "Fhir.R4.Extension",
20+
"azure.healthinsights.radiologyinsights.models.FindingInference": "AzureHealthInsights.FindingInference",
21+
"azure.healthinsights.radiologyinsights.models.FindingOptions": "AzureHealthInsights.FindingOptions",
22+
"azure.healthinsights.radiologyinsights.models.FollowupCommunicationInference": "AzureHealthInsights.FollowupCommunicationInference",
23+
"azure.healthinsights.radiologyinsights.models.FollowupRecommendationInference": "AzureHealthInsights.FollowupRecommendationInference",
24+
"azure.healthinsights.radiologyinsights.models.FollowupRecommendationOptions": "AzureHealthInsights.FollowupRecommendationOptions",
25+
"azure.healthinsights.radiologyinsights.models.ProcedureRecommendation": "AzureHealthInsights.ProcedureRecommendation",
26+
"azure.healthinsights.radiologyinsights.models.GenericProcedureRecommendation": "AzureHealthInsights.GenericProcedureRecommendation",
27+
"azure.healthinsights.radiologyinsights.models.GuidanceInference": "AzureHealthInsights.GuidanceInference",
28+
"azure.healthinsights.radiologyinsights.models.GuidanceOptions": "AzureHealthInsights.GuidanceOptions",
29+
"azure.healthinsights.radiologyinsights.models.HealthInsightsErrorResponse": "AzureHealthInsights.HealthInsightsErrorResponse",
30+
"azure.healthinsights.radiologyinsights.models.Identifier": "Fhir.R4.Identifier",
31+
"azure.healthinsights.radiologyinsights.models.ImagingProcedure": "AzureHealthInsights.ImagingProcedure",
32+
"azure.healthinsights.radiologyinsights.models.ImagingProcedureRecommendation": "AzureHealthInsights.ImagingProcedureRecommendation",
33+
"azure.healthinsights.radiologyinsights.models.LateralityDiscrepancyInference": "AzureHealthInsights.LateralityDiscrepancyInference",
34+
"azure.healthinsights.radiologyinsights.models.LimitedOrderDiscrepancyInference": "AzureHealthInsights.LimitedOrderDiscrepancyInference",
35+
"azure.healthinsights.radiologyinsights.models.Meta": "Fhir.R4.Meta",
36+
"azure.healthinsights.radiologyinsights.models.Narrative": "Fhir.R4.Narrative",
37+
"azure.healthinsights.radiologyinsights.models.Observation": "Fhir.R4.Observation",
38+
"azure.healthinsights.radiologyinsights.models.ObservationComponent": "Fhir.R4.ObservationComponent",
39+
"azure.healthinsights.radiologyinsights.models.ObservationReferenceRange": "Fhir.R4.ObservationReferenceRange",
40+
"azure.healthinsights.radiologyinsights.models.OrderedProcedure": "AzureHealthInsights.OrderedProcedure",
41+
"azure.healthinsights.radiologyinsights.models.PatientDetails": "AzureHealthInsights.PatientDetails",
42+
"azure.healthinsights.radiologyinsights.models.PatientDocument": "AzureHealthInsights.PatientDocument",
43+
"azure.healthinsights.radiologyinsights.models.PatientEncounter": "AzureHealthInsights.PatientEncounter",
44+
"azure.healthinsights.radiologyinsights.models.PatientRecord": "AzureHealthInsights.PatientRecord",
45+
"azure.healthinsights.radiologyinsights.models.Period": "Fhir.R4.Period",
46+
"azure.healthinsights.radiologyinsights.models.PresentGuidanceInformation": "AzureHealthInsights.PresentGuidanceInformation",
47+
"azure.healthinsights.radiologyinsights.models.QualityMeasureInference": "AzureHealthInsights.QualityMeasureInference",
48+
"azure.healthinsights.radiologyinsights.models.QualityMeasureOptions": "AzureHealthInsights.QualityMeasureOptions",
49+
"azure.healthinsights.radiologyinsights.models.Quantity": "Fhir.R4.Quantity",
50+
"azure.healthinsights.radiologyinsights.models.RadiologyCodeWithTypes": "AzureHealthInsights.RadiologyCodeWithTypes",
51+
"azure.healthinsights.radiologyinsights.models.RadiologyInsightsData": "AzureHealthInsights.RadiologyInsightsData",
52+
"azure.healthinsights.radiologyinsights.models.RadiologyInsightsInferenceOptions": "AzureHealthInsights.RadiologyInsightsInferenceOptions",
53+
"azure.healthinsights.radiologyinsights.models.RadiologyInsightsInferenceResult": "AzureHealthInsights.RadiologyInsightsInferenceResult",
54+
"azure.healthinsights.radiologyinsights.models.RadiologyInsightsJob": "AzureHealthInsights.RadiologyInsightsJob",
55+
"azure.healthinsights.radiologyinsights.models.RadiologyInsightsModelConfiguration": "AzureHealthInsights.RadiologyInsightsModelConfiguration",
56+
"azure.healthinsights.radiologyinsights.models.RadiologyInsightsPatientResult": "AzureHealthInsights.RadiologyInsightsPatientResult",
57+
"azure.healthinsights.radiologyinsights.models.RadiologyProcedureInference": "AzureHealthInsights.RadiologyProcedureInference",
58+
"azure.healthinsights.radiologyinsights.models.Range": "Fhir.R4.Range",
59+
"azure.healthinsights.radiologyinsights.models.Ratio": "Fhir.R4.Ratio",
60+
"azure.healthinsights.radiologyinsights.models.RecommendationFinding": "AzureHealthInsights.RecommendationFinding",
61+
"azure.healthinsights.radiologyinsights.models.Reference": "Fhir.R4.Reference",
62+
"azure.healthinsights.radiologyinsights.models.SampledData": "Fhir.R4.SampledData",
63+
"azure.healthinsights.radiologyinsights.models.ScoringAndAssessmentInference": "AzureHealthInsights.ScoringAndAssessmentInference",
64+
"azure.healthinsights.radiologyinsights.models.SexMismatchInference": "AzureHealthInsights.SexMismatchInference",
65+
"azure.healthinsights.radiologyinsights.models.TimePeriod": "AzureHealthInsights.TimePeriod",
66+
"azure.healthinsights.radiologyinsights.models.PatientSex": "AzureHealthInsights.PatientSex",
67+
"azure.healthinsights.radiologyinsights.models.EncounterClass": "AzureHealthInsights.EncounterClass",
68+
"azure.healthinsights.radiologyinsights.models.DocumentType": "AzureHealthInsights.DocumentType",
69+
"azure.healthinsights.radiologyinsights.models.ClinicalDocumentType": "AzureHealthInsights.ClinicalDocumentType",
70+
"azure.healthinsights.radiologyinsights.models.SpecialtyType": "AzureHealthInsights.SpecialtyType",
71+
"azure.healthinsights.radiologyinsights.models.DocumentContentSourceType": "AzureHealthInsights.DocumentContentSourceType",
72+
"azure.healthinsights.radiologyinsights.models.RadiologyInsightsInferenceType": "AzureHealthInsights.RadiologyInsightsInferenceType",
73+
"azure.healthinsights.radiologyinsights.models.QualityMeasureType": "AzureHealthInsights.QualityMeasureType",
74+
"azure.healthinsights.radiologyinsights.models.ResearchStudyStatusCodeType": "Fhir.R4.ResearchStudyStatusCodeType",
75+
"azure.healthinsights.radiologyinsights.models.ContactPointSystem": "Fhir.R4.ContactPointSystem",
76+
"azure.healthinsights.radiologyinsights.models.ContactPointUse": "Fhir.R4.ContactPointUse",
77+
"azure.healthinsights.radiologyinsights.models.ObservationStatusCodeType": "Fhir.R4.ObservationStatusCodeType",
78+
"azure.healthinsights.radiologyinsights.models.MedicalProfessionalType": "AzureHealthInsights.MedicalProfessionalType",
79+
"azure.healthinsights.radiologyinsights.models.RecommendationFindingStatusType": "AzureHealthInsights.RecommendationFindingStatusType",
80+
"azure.healthinsights.radiologyinsights.models.GuidanceRankingType": "AzureHealthInsights.GuidanceRankingType",
81+
"azure.healthinsights.radiologyinsights.models.LateralityDiscrepancyType": "AzureHealthInsights.LateralityDiscrepancyType",
82+
"azure.healthinsights.radiologyinsights.models.QualityMeasureComplianceType": "AzureHealthInsights.QualityMeasureComplianceType",
83+
"azure.healthinsights.radiologyinsights.models.ScoringAndAssessmentCategoryType": "AzureHealthInsights.ScoringAndAssessmentCategoryType",
84+
"azure.healthinsights.radiologyinsights.models.JobStatus": "AzureHealthInsights.JobStatus",
85+
"azure.healthinsights.radiologyinsights.RadiologyInsightsClient.begin_infer_radiology_insights": "ClientForAzureHealthInsights.RadiologyInsightsClient.inferRadiologyInsights",
86+
"azure.healthinsights.radiologyinsights.aio.RadiologyInsightsClient.begin_infer_radiology_insights": "ClientForAzureHealthInsights.RadiologyInsightsClient.inferRadiologyInsights"
87+
}
88+
}

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

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,28 @@
55
# Code generated by Microsoft (R) Python Code Generator.
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
8+
# pylint: disable=wrong-import-position
89

9-
from ._patch import RadiologyInsightsClient
10+
from typing import TYPE_CHECKING
11+
12+
if TYPE_CHECKING:
13+
from ._patch import * # pylint: disable=unused-wildcard-import
14+
15+
from ._client import RadiologyInsightsClient # type: ignore
1016
from ._version import VERSION
1117

1218
__version__ = VERSION
1319

14-
20+
try:
21+
from ._patch import __all__ as _patch_all
22+
from ._patch import *
23+
except ImportError:
24+
_patch_all = []
1525
from ._patch import patch_sdk as _patch_sdk
1626

1727
__all__ = [
1828
"RadiologyInsightsClient",
1929
]
20-
30+
__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore
2131

2232
_patch_sdk()

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

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,26 +17,24 @@
1717

1818
from ._configuration import RadiologyInsightsClientConfiguration
1919
from ._operations import RadiologyInsightsClientOperationsMixin
20-
from ._serialization import Deserializer, Serializer
20+
from ._utils.serialization import Deserializer, Serializer
2121

2222
if TYPE_CHECKING:
23-
# pylint: disable=unused-import,ungrouped-imports
2423
from azure.core.credentials import TokenCredential
2524

2625

27-
class RadiologyInsightsClient(
28-
RadiologyInsightsClientOperationsMixin
29-
): # pylint: disable=client-accepts-api-version-keyword
26+
class RadiologyInsightsClient(RadiologyInsightsClientOperationsMixin):
3027
"""RadiologyInsightsClient.
3128
3229
:param endpoint: Supported Cognitive Services endpoints (protocol and hostname, for example:
33-
https://westus2.api.cognitive.microsoft.com). Required.
30+
`https://westus2.api.cognitive.microsoft.com <https://westus2.api.cognitive.microsoft.com>`_).
31+
Required.
3432
:type endpoint: str
35-
:param credential: Credential used to authenticate requests to the service. Is either a
36-
AzureKeyCredential type or a TokenCredential type. Required.
33+
:param credential: Credential used to authenticate requests to the service. Is either a key
34+
credential type or a token credential type. Required.
3735
:type credential: ~azure.core.credentials.AzureKeyCredential or
3836
~azure.core.credentials.TokenCredential
39-
:keyword api_version: The API version to use for this operation. Default value is "2024-04-01".
37+
:keyword api_version: The API version to use for this operation. Default value is "2024-10-01".
4038
Note that overriding this default value may result in unsupported behavior.
4139
:paramtype api_version: str
4240
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
@@ -46,6 +44,7 @@ class RadiologyInsightsClient(
4644
def __init__(self, endpoint: str, credential: Union[AzureKeyCredential, "TokenCredential"], **kwargs: Any) -> None:
4745
_endpoint = "{endpoint}/health-insights"
4846
self._config = RadiologyInsightsClientConfiguration(endpoint=endpoint, credential=credential, **kwargs)
47+
4948
_policies = kwargs.pop("policies", None)
5049
if _policies is None:
5150
_policies = [

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,30 +14,30 @@
1414
from ._version import VERSION
1515

1616
if TYPE_CHECKING:
17-
# pylint: disable=unused-import,ungrouped-imports
1817
from azure.core.credentials import TokenCredential
1918

2019

21-
class RadiologyInsightsClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long
20+
class RadiologyInsightsClientConfiguration: # pylint: disable=too-many-instance-attributes
2221
"""Configuration for RadiologyInsightsClient.
2322
2423
Note that all parameters used to create this instance are saved as instance
2524
attributes.
2625
2726
:param endpoint: Supported Cognitive Services endpoints (protocol and hostname, for example:
28-
https://westus2.api.cognitive.microsoft.com). Required.
27+
`https://westus2.api.cognitive.microsoft.com <https://westus2.api.cognitive.microsoft.com>`_).
28+
Required.
2929
:type endpoint: str
30-
:param credential: Credential used to authenticate requests to the service. Is either a
31-
AzureKeyCredential type or a TokenCredential type. Required.
30+
:param credential: Credential used to authenticate requests to the service. Is either a key
31+
credential type or a token credential type. Required.
3232
:type credential: ~azure.core.credentials.AzureKeyCredential or
3333
~azure.core.credentials.TokenCredential
34-
:keyword api_version: The API version to use for this operation. Default value is "2024-04-01".
34+
:keyword api_version: The API version to use for this operation. Default value is "2024-10-01".
3535
Note that overriding this default value may result in unsupported behavior.
3636
:paramtype api_version: str
3737
"""
3838

3939
def __init__(self, endpoint: str, credential: Union[AzureKeyCredential, "TokenCredential"], **kwargs: Any) -> None:
40-
api_version: str = kwargs.pop("api_version", "2024-04-01")
40+
api_version: str = kwargs.pop("api_version", "2024-10-01")
4141

4242
if endpoint is None:
4343
raise ValueError("Parameter 'endpoint' must not be None.")

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

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,21 @@
55
# Code generated by Microsoft (R) Python Code Generator.
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
8+
# pylint: disable=wrong-import-position
89

9-
from ._operations import RadiologyInsightsClientOperationsMixin
10+
from typing import TYPE_CHECKING
11+
12+
if TYPE_CHECKING:
13+
from ._patch import * # pylint: disable=unused-wildcard-import
14+
15+
from ._operations import RadiologyInsightsClientOperationsMixin # type: ignore
1016

1117
from ._patch import __all__ as _patch_all
12-
from ._patch import * # pylint: disable=unused-wildcard-import
18+
from ._patch import *
1319
from ._patch import patch_sdk as _patch_sdk
1420

1521
__all__ = [
1622
"RadiologyInsightsClientOperationsMixin",
1723
]
18-
__all__.extend([p for p in _patch_all if p not in __all__])
24+
__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore
1925
_patch_sdk()

0 commit comments

Comments
 (0)