Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR track2_azure-mgmt-healthcareapis] [Hub Generated] Review request for Microsoft.HealthcareApis to add version stable/2023-12-01 #5458

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions sdk/healthcareapis/azure-mgmt-healthcareapis/_meta.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"commit": "583e15ceb4cf23dc23b2300bd352f16d781e69ac",
"commit": "e94340e5bf9f4cf92e10f2722924a2d27ecb8f7e",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest": "3.9.7",
"use": [
"@autorest/[email protected]",
"@autorest/[email protected]"
],
"autorest_command": "autorest specification/healthcareapis/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/[email protected] --use=@autorest/[email protected] --version=3.9.7 --version-tolerant=False",
"autorest_command": "autorest specification/healthcareapis/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --use=@autorest/[email protected] --use=@autorest/[email protected] --version=3.9.7 --version-tolerant=False",
"readme": "specification/healthcareapis/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ class HealthcareApisManagementClientConfiguration(Configuration): # pylint: dis
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The ID of the target subscription. Required.
:type subscription_id: str
:keyword api_version: Api Version. Default value is "2023-11-01". Note that overriding this
:keyword api_version: Api Version. Default value is "2023-12-01". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
"""

def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
super(HealthcareApisManagementClientConfiguration, self).__init__(**kwargs)
api_version: str = kwargs.pop("api_version", "2023-11-01")
api_version: str = kwargs.pop("api_version", "2023-12-01")

if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class HealthcareApisManagementClient: # pylint: disable=client-accepts-api-vers
:type subscription_id: str
:param base_url: Service URL. Default value is "https://management.azure.com".
:type base_url: str
:keyword api_version: Api Version. Default value is "2023-11-01". Note that overriding this
:keyword api_version: Api Version. Default value is "2023-12-01". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "2.0.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ class HealthcareApisManagementClientConfiguration(Configuration): # pylint: dis
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
:param subscription_id: The ID of the target subscription. Required.
:type subscription_id: str
:keyword api_version: Api Version. Default value is "2023-11-01". Note that overriding this
:keyword api_version: Api Version. Default value is "2023-12-01". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
"""

def __init__(self, credential: "AsyncTokenCredential", subscription_id: str, **kwargs: Any) -> None:
super(HealthcareApisManagementClientConfiguration, self).__init__(**kwargs)
api_version: str = kwargs.pop("api_version", "2023-11-01")
api_version: str = kwargs.pop("api_version", "2023-12-01")

if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class HealthcareApisManagementClient: # pylint: disable=client-accepts-api-vers
:type subscription_id: str
:param base_url: Service URL. Default value is "https://management.azure.com".
:type base_url: str
:keyword api_version: Api Version. Default value is "2023-11-01". Note that overriding this
:keyword api_version: Api Version. Default value is "2023-12-01". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@
from ._models_py3 import ServicesProperties
from ._models_py3 import ServicesResource
from ._models_py3 import ServicesResourceIdentity
from ._models_py3 import SmartIdentityProviderApplication
from ._models_py3 import SmartIdentityProviderConfiguration
from ._models_py3 import SystemData
from ._models_py3 import TaggedResource
from ._models_py3 import UserAssignedIdentity
Expand All @@ -98,6 +100,7 @@
from ._healthcare_apis_management_client_enums import ServiceEventState
from ._healthcare_apis_management_client_enums import ServiceManagedIdentityType
from ._healthcare_apis_management_client_enums import ServiceNameUnavailabilityReason
from ._healthcare_apis_management_client_enums import SmartDataActions
from ._patch import __all__ as _patch_all
from ._patch import * # pylint: disable=unused-wildcard-import
from ._patch import patch_sdk as _patch_sdk
Expand Down Expand Up @@ -172,6 +175,8 @@
"ServicesProperties",
"ServicesResource",
"ServicesResourceIdentity",
"SmartIdentityProviderApplication",
"SmartIdentityProviderConfiguration",
"SystemData",
"TaggedResource",
"UserAssignedIdentity",
Expand All @@ -194,6 +199,7 @@
"ServiceEventState",
"ServiceManagedIdentityType",
"ServiceNameUnavailabilityReason",
"SmartDataActions",
]
__all__.extend([p for p in _patch_all if p not in __all__])
_patch_sdk()
Original file line number Diff line number Diff line change
Expand Up @@ -138,3 +138,9 @@ class ServiceNameUnavailabilityReason(str, Enum, metaclass=CaseInsensitiveEnumMe

INVALID = "Invalid"
ALREADY_EXISTS = "AlreadyExists"


class SmartDataActions(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""The Data Actions that can be enabled for a Smart Identity Provider Application."""

READ = "Read"
Original file line number Diff line number Diff line change
Expand Up @@ -882,12 +882,17 @@ class FhirServiceAuthenticationConfiguration(_serialization.Model):
:vartype audience: str
:ivar smart_proxy_enabled: If the SMART on FHIR proxy is enabled.
:vartype smart_proxy_enabled: bool
:ivar smart_identity_providers: The array of identity provider configurations for SMART on FHIR
authentication.
:vartype smart_identity_providers:
list[~azure.mgmt.healthcareapis.models.SmartIdentityProviderConfiguration]
"""

_attribute_map = {
"authority": {"key": "authority", "type": "str"},
"audience": {"key": "audience", "type": "str"},
"smart_proxy_enabled": {"key": "smartProxyEnabled", "type": "bool"},
"smart_identity_providers": {"key": "smartIdentityProviders", "type": "[SmartIdentityProviderConfiguration]"},
}

def __init__(
Expand All @@ -896,6 +901,7 @@ def __init__(
authority: Optional[str] = None,
audience: Optional[str] = None,
smart_proxy_enabled: Optional[bool] = None,
smart_identity_providers: Optional[List["_models.SmartIdentityProviderConfiguration"]] = None,
**kwargs: Any
) -> None:
"""
Expand All @@ -905,11 +911,16 @@ def __init__(
:paramtype audience: str
:keyword smart_proxy_enabled: If the SMART on FHIR proxy is enabled.
:paramtype smart_proxy_enabled: bool
:keyword smart_identity_providers: The array of identity provider configurations for SMART on
FHIR authentication.
:paramtype smart_identity_providers:
list[~azure.mgmt.healthcareapis.models.SmartIdentityProviderConfiguration]
"""
super().__init__(**kwargs)
self.authority = authority
self.audience = audience
self.smart_proxy_enabled = smart_proxy_enabled
self.smart_identity_providers = smart_identity_providers


class FhirServiceCollection(_serialization.Model):
Expand Down Expand Up @@ -3226,6 +3237,89 @@ def __init__(
self.type = type


class SmartIdentityProviderApplication(_serialization.Model):
"""An Application configured in the Identity Provider used to access FHIR resources.

:ivar client_id: The application client id defined in the identity provider. This value will be
used to validate bearer tokens against the given authority.
:vartype client_id: str
:ivar audience: The audience that will be used to validate bearer tokens against the given
authority.
:vartype audience: str
:ivar allowed_data_actions: The actions that are permitted to be performed on FHIR resources
for the application.
:vartype allowed_data_actions: list[str or ~azure.mgmt.healthcareapis.models.SmartDataActions]
"""

_attribute_map = {
"client_id": {"key": "clientId", "type": "str"},
"audience": {"key": "audience", "type": "str"},
"allowed_data_actions": {"key": "allowedDataActions", "type": "[str]"},
}

def __init__(
self,
*,
client_id: Optional[str] = None,
audience: Optional[str] = None,
allowed_data_actions: Optional[List[Union[str, "_models.SmartDataActions"]]] = None,
**kwargs: Any
) -> None:
"""
:keyword client_id: The application client id defined in the identity provider. This value will
be used to validate bearer tokens against the given authority.
:paramtype client_id: str
:keyword audience: The audience that will be used to validate bearer tokens against the given
authority.
:paramtype audience: str
:keyword allowed_data_actions: The actions that are permitted to be performed on FHIR resources
for the application.
:paramtype allowed_data_actions: list[str or
~azure.mgmt.healthcareapis.models.SmartDataActions]
"""
super().__init__(**kwargs)
self.client_id = client_id
self.audience = audience
self.allowed_data_actions = allowed_data_actions


class SmartIdentityProviderConfiguration(_serialization.Model):
"""An object to configure an identity provider for use with SMART on FHIR authentication.

:ivar authority: The identity provider token authority also known as the token issuing
authority.
:vartype authority: str
:ivar applications: The array of identity provider applications for SMART on FHIR
authentication.
:vartype applications: list[~azure.mgmt.healthcareapis.models.SmartIdentityProviderApplication]
"""

_attribute_map = {
"authority": {"key": "authority", "type": "str"},
"applications": {"key": "applications", "type": "[SmartIdentityProviderApplication]"},
}

def __init__(
self,
*,
authority: Optional[str] = None,
applications: Optional[List["_models.SmartIdentityProviderApplication"]] = None,
**kwargs: Any
) -> None:
"""
:keyword authority: The identity provider token authority also known as the token issuing
authority.
:paramtype authority: str
:keyword applications: The array of identity provider applications for SMART on FHIR
authentication.
:paramtype applications:
list[~azure.mgmt.healthcareapis.models.SmartIdentityProviderApplication]
"""
super().__init__(**kwargs)
self.authority = authority
self.applications = applications


class SystemData(_serialization.Model):
"""Metadata pertaining to creation and last modification of the resource.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def build_list_by_workspace_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01"))
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-12-01"))
accept = _headers.pop("Accept", "application/json")

# Construct URL
Expand Down Expand Up @@ -78,7 +78,7 @@ def build_get_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01"))
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-12-01"))
accept = _headers.pop("Accept", "application/json")

# Construct URL
Expand Down Expand Up @@ -114,7 +114,7 @@ def build_create_or_update_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01"))
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-12-01"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")

Expand Down Expand Up @@ -153,7 +153,7 @@ def build_update_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01"))
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-12-01"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")

Expand Down Expand Up @@ -192,7 +192,7 @@ def build_delete_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01"))
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-12-01"))
accept = _headers.pop("Accept", "application/json")

# Construct URL
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def build_list_by_iot_connector_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01"))
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-12-01"))
accept = _headers.pop("Accept", "application/json")

# Construct URL
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def build_list_by_workspace_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01"))
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-12-01"))
accept = _headers.pop("Accept", "application/json")

# Construct URL
Expand Down Expand Up @@ -78,7 +78,7 @@ def build_get_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01"))
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-12-01"))
accept = _headers.pop("Accept", "application/json")

# Construct URL
Expand Down Expand Up @@ -112,7 +112,7 @@ def build_create_or_update_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01"))
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-12-01"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")

Expand Down Expand Up @@ -149,7 +149,7 @@ def build_update_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01"))
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-12-01"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")

Expand Down Expand Up @@ -186,7 +186,7 @@ def build_delete_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01"))
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-12-01"))
accept = _headers.pop("Accept", "application/json")

# Construct URL
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def build_get_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01"))
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-12-01"))
accept = _headers.pop("Accept", "application/json")

# Construct URL
Expand Down Expand Up @@ -92,7 +92,7 @@ def build_create_or_update_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01"))
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-12-01"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")

Expand Down Expand Up @@ -139,7 +139,7 @@ def build_delete_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01"))
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-12-01"))
accept = _headers.pop("Accept", "application/json")

# Construct URL
Expand Down
Loading
Loading