diff --git a/sdk/healthcareapis/azure-mgmt-healthcareapis/azure/mgmt/healthcareapis/_healthcare_apis_management_client.py b/sdk/healthcareapis/azure-mgmt-healthcareapis/azure/mgmt/healthcareapis/_healthcare_apis_management_client.py index 61807f835bc4..f9b79f316c3b 100644 --- a/sdk/healthcareapis/azure-mgmt-healthcareapis/azure/mgmt/healthcareapis/_healthcare_apis_management_client.py +++ b/sdk/healthcareapis/azure-mgmt-healthcareapis/azure/mgmt/healthcareapis/_healthcare_apis_management_client.py @@ -47,7 +47,7 @@ def __init__( super(HealthcareApisManagementClient, self).__init__(self.config.credentials, self.config) client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} - self.api_version = '2018-08-20-preview' + self.api_version = '2019-09-16' self._serialize = Serializer(client_models) self._deserialize = Deserializer(client_models) diff --git a/sdk/healthcareapis/azure-mgmt-healthcareapis/azure/mgmt/healthcareapis/models/__init__.py b/sdk/healthcareapis/azure-mgmt-healthcareapis/azure/mgmt/healthcareapis/models/__init__.py index cb27d5affb6e..ff2fac0eb192 100644 --- a/sdk/healthcareapis/azure-mgmt-healthcareapis/azure/mgmt/healthcareapis/models/__init__.py +++ b/sdk/healthcareapis/azure-mgmt-healthcareapis/azure/mgmt/healthcareapis/models/__init__.py @@ -17,6 +17,7 @@ from ._models_py3 import OperationDisplay from ._models_py3 import OperationResultsDescription from ._models_py3 import Resource + from ._models_py3 import ResourceIdentity from ._models_py3 import ServiceAccessPolicyEntry from ._models_py3 import ServiceAuthenticationConfigurationInfo from ._models_py3 import ServiceCorsConfigurationInfo @@ -33,6 +34,7 @@ from ._models import OperationDisplay from ._models import OperationResultsDescription from ._models import Resource + from ._models import ResourceIdentity from ._models import ServiceAccessPolicyEntry from ._models import ServiceAuthenticationConfigurationInfo from ._models import ServiceCorsConfigurationInfo @@ -46,6 +48,7 @@ from ._healthcare_apis_management_client_enums import ( ProvisioningState, Kind, + ManagedServiceIdentityType, ServiceNameUnavailabilityReason, OperationResultStatus, ) @@ -58,6 +61,7 @@ 'OperationDisplay', 'OperationResultsDescription', 'Resource', + 'ResourceIdentity', 'ServiceAccessPolicyEntry', 'ServiceAuthenticationConfigurationInfo', 'ServiceCorsConfigurationInfo', @@ -70,6 +74,7 @@ 'OperationPaged', 'ProvisioningState', 'Kind', + 'ManagedServiceIdentityType', 'ServiceNameUnavailabilityReason', 'OperationResultStatus', ] diff --git a/sdk/healthcareapis/azure-mgmt-healthcareapis/azure/mgmt/healthcareapis/models/_healthcare_apis_management_client_enums.py b/sdk/healthcareapis/azure-mgmt-healthcareapis/azure/mgmt/healthcareapis/models/_healthcare_apis_management_client_enums.py index a910aebf78d1..a029f7e08634 100644 --- a/sdk/healthcareapis/azure-mgmt-healthcareapis/azure/mgmt/healthcareapis/models/_healthcare_apis_management_client_enums.py +++ b/sdk/healthcareapis/azure-mgmt-healthcareapis/azure/mgmt/healthcareapis/models/_healthcare_apis_management_client_enums.py @@ -32,6 +32,12 @@ class Kind(str, Enum): fhir_r4 = "fhir-R4" +class ManagedServiceIdentityType(str, Enum): + + system_assigned = "SystemAssigned" + none = "None" + + class ServiceNameUnavailabilityReason(str, Enum): invalid = "Invalid" diff --git a/sdk/healthcareapis/azure-mgmt-healthcareapis/azure/mgmt/healthcareapis/models/_models.py b/sdk/healthcareapis/azure-mgmt-healthcareapis/azure/mgmt/healthcareapis/models/_models.py index 5993183ed587..b3d9a6522255 100644 --- a/sdk/healthcareapis/azure-mgmt-healthcareapis/azure/mgmt/healthcareapis/models/_models.py +++ b/sdk/healthcareapis/azure-mgmt-healthcareapis/azure/mgmt/healthcareapis/models/_models.py @@ -240,9 +240,8 @@ class Resource(Model): :vartype name: str :ivar type: The resource type. :vartype type: str - :param kind: Required. The kind of the service. Valid values are: fhir, - fhir-Stu3 and fhir-R4. Possible values include: 'fhir', 'fhir-Stu3', - 'fhir-R4' + :param kind: Required. The kind of the service. Possible values include: + 'fhir', 'fhir-Stu3', 'fhir-R4' :type kind: str or ~azure.mgmt.healthcareapis.models.Kind :param location: Required. The resource location. :type location: str @@ -251,6 +250,9 @@ class Resource(Model): :param etag: An etag associated with the resource, used for optimistic concurrency when editing it. :type etag: str + :param identity: Setting indicating whether the service has a managed + identity associated with it. + :type identity: ~azure.mgmt.healthcareapis.models.ResourceIdentity """ _validation = { @@ -269,6 +271,7 @@ class Resource(Model): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'etag': {'key': 'etag', 'type': 'str'}, + 'identity': {'key': 'identity', 'type': 'ResourceIdentity'}, } def __init__(self, **kwargs): @@ -280,6 +283,26 @@ def __init__(self, **kwargs): self.location = kwargs.get('location', None) self.tags = kwargs.get('tags', None) self.etag = kwargs.get('etag', None) + self.identity = kwargs.get('identity', None) + + +class ResourceIdentity(Model): + """Setting indicating whether the service has a managed identity associated + with it. + + :param type: Type of identity being specified, currently SystemAssigned + and None are allowed. Possible values include: 'SystemAssigned', 'None' + :type type: str or + ~azure.mgmt.healthcareapis.models.ManagedServiceIdentityType + """ + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ResourceIdentity, self).__init__(**kwargs) + self.type = kwargs.get('type', None) class ServiceAccessPolicyEntry(Model): @@ -287,8 +310,8 @@ class ServiceAccessPolicyEntry(Model): All required parameters must be populated in order to send to Azure. - :param object_id: Required. An object ID that is allowed access to the - FHIR service. + :param object_id: Required. An Azure AD object ID (User or Apps) that is + allowed access to the FHIR service. :type object_id: str """ @@ -400,9 +423,8 @@ class ServicesDescription(Resource): :vartype name: str :ivar type: The resource type. :vartype type: str - :param kind: Required. The kind of the service. Valid values are: fhir, - fhir-Stu3 and fhir-R4. Possible values include: 'fhir', 'fhir-Stu3', - 'fhir-R4' + :param kind: Required. The kind of the service. Possible values include: + 'fhir', 'fhir-Stu3', 'fhir-R4' :type kind: str or ~azure.mgmt.healthcareapis.models.Kind :param location: Required. The resource location. :type location: str @@ -411,6 +433,9 @@ class ServicesDescription(Resource): :param etag: An etag associated with the resource, used for optimistic concurrency when editing it. :type etag: str + :param identity: Setting indicating whether the service has a managed + identity associated with it. + :type identity: ~azure.mgmt.healthcareapis.models.ResourceIdentity :param properties: The common properties of a service. :type properties: ~azure.mgmt.healthcareapis.models.ServicesProperties """ @@ -431,6 +456,7 @@ class ServicesDescription(Resource): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'etag': {'key': 'etag', 'type': 'str'}, + 'identity': {'key': 'identity', 'type': 'ResourceIdentity'}, 'properties': {'key': 'properties', 'type': 'ServicesProperties'}, } diff --git a/sdk/healthcareapis/azure-mgmt-healthcareapis/azure/mgmt/healthcareapis/models/_models_py3.py b/sdk/healthcareapis/azure-mgmt-healthcareapis/azure/mgmt/healthcareapis/models/_models_py3.py index 8070f9eec9dc..af6402244c61 100644 --- a/sdk/healthcareapis/azure-mgmt-healthcareapis/azure/mgmt/healthcareapis/models/_models_py3.py +++ b/sdk/healthcareapis/azure-mgmt-healthcareapis/azure/mgmt/healthcareapis/models/_models_py3.py @@ -240,9 +240,8 @@ class Resource(Model): :vartype name: str :ivar type: The resource type. :vartype type: str - :param kind: Required. The kind of the service. Valid values are: fhir, - fhir-Stu3 and fhir-R4. Possible values include: 'fhir', 'fhir-Stu3', - 'fhir-R4' + :param kind: Required. The kind of the service. Possible values include: + 'fhir', 'fhir-Stu3', 'fhir-R4' :type kind: str or ~azure.mgmt.healthcareapis.models.Kind :param location: Required. The resource location. :type location: str @@ -251,6 +250,9 @@ class Resource(Model): :param etag: An etag associated with the resource, used for optimistic concurrency when editing it. :type etag: str + :param identity: Setting indicating whether the service has a managed + identity associated with it. + :type identity: ~azure.mgmt.healthcareapis.models.ResourceIdentity """ _validation = { @@ -269,9 +271,10 @@ class Resource(Model): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'etag': {'key': 'etag', 'type': 'str'}, + 'identity': {'key': 'identity', 'type': 'ResourceIdentity'}, } - def __init__(self, *, kind, location: str, tags=None, etag: str=None, **kwargs) -> None: + def __init__(self, *, kind, location: str, tags=None, etag: str=None, identity=None, **kwargs) -> None: super(Resource, self).__init__(**kwargs) self.id = None self.name = None @@ -280,6 +283,26 @@ def __init__(self, *, kind, location: str, tags=None, etag: str=None, **kwargs) self.location = location self.tags = tags self.etag = etag + self.identity = identity + + +class ResourceIdentity(Model): + """Setting indicating whether the service has a managed identity associated + with it. + + :param type: Type of identity being specified, currently SystemAssigned + and None are allowed. Possible values include: 'SystemAssigned', 'None' + :type type: str or + ~azure.mgmt.healthcareapis.models.ManagedServiceIdentityType + """ + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, *, type=None, **kwargs) -> None: + super(ResourceIdentity, self).__init__(**kwargs) + self.type = type class ServiceAccessPolicyEntry(Model): @@ -287,8 +310,8 @@ class ServiceAccessPolicyEntry(Model): All required parameters must be populated in order to send to Azure. - :param object_id: Required. An object ID that is allowed access to the - FHIR service. + :param object_id: Required. An Azure AD object ID (User or Apps) that is + allowed access to the FHIR service. :type object_id: str """ @@ -400,9 +423,8 @@ class ServicesDescription(Resource): :vartype name: str :ivar type: The resource type. :vartype type: str - :param kind: Required. The kind of the service. Valid values are: fhir, - fhir-Stu3 and fhir-R4. Possible values include: 'fhir', 'fhir-Stu3', - 'fhir-R4' + :param kind: Required. The kind of the service. Possible values include: + 'fhir', 'fhir-Stu3', 'fhir-R4' :type kind: str or ~azure.mgmt.healthcareapis.models.Kind :param location: Required. The resource location. :type location: str @@ -411,6 +433,9 @@ class ServicesDescription(Resource): :param etag: An etag associated with the resource, used for optimistic concurrency when editing it. :type etag: str + :param identity: Setting indicating whether the service has a managed + identity associated with it. + :type identity: ~azure.mgmt.healthcareapis.models.ResourceIdentity :param properties: The common properties of a service. :type properties: ~azure.mgmt.healthcareapis.models.ServicesProperties """ @@ -431,11 +456,12 @@ class ServicesDescription(Resource): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'etag': {'key': 'etag', 'type': 'str'}, + 'identity': {'key': 'identity', 'type': 'ResourceIdentity'}, 'properties': {'key': 'properties', 'type': 'ServicesProperties'}, } - def __init__(self, *, kind, location: str, tags=None, etag: str=None, properties=None, **kwargs) -> None: - super(ServicesDescription, self).__init__(kind=kind, location=location, tags=tags, etag=etag, **kwargs) + def __init__(self, *, kind, location: str, tags=None, etag: str=None, identity=None, properties=None, **kwargs) -> None: + super(ServicesDescription, self).__init__(kind=kind, location=location, tags=tags, etag=etag, identity=identity, **kwargs) self.properties = properties diff --git a/sdk/healthcareapis/azure-mgmt-healthcareapis/azure/mgmt/healthcareapis/operations/_operation_results_operations.py b/sdk/healthcareapis/azure-mgmt-healthcareapis/azure/mgmt/healthcareapis/operations/_operation_results_operations.py index 7050fa3cc564..ef3a56b62b47 100644 --- a/sdk/healthcareapis/azure-mgmt-healthcareapis/azure/mgmt/healthcareapis/operations/_operation_results_operations.py +++ b/sdk/healthcareapis/azure-mgmt-healthcareapis/azure/mgmt/healthcareapis/operations/_operation_results_operations.py @@ -24,7 +24,7 @@ class OperationResultsOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The version of the API. Constant value: "2018-08-20-preview". + :ivar api_version: Client Api Version. Constant value: "2019-09-16". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2018-08-20-preview" + self.api_version = "2019-09-16" self.config = config @@ -67,7 +67,7 @@ def get( # Construct parameters query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str', min_length=10) + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') # Construct headers header_parameters = {} diff --git a/sdk/healthcareapis/azure-mgmt-healthcareapis/azure/mgmt/healthcareapis/operations/_operations.py b/sdk/healthcareapis/azure-mgmt-healthcareapis/azure/mgmt/healthcareapis/operations/_operations.py index e60e1aff1e7d..8182301e6ab9 100644 --- a/sdk/healthcareapis/azure-mgmt-healthcareapis/azure/mgmt/healthcareapis/operations/_operations.py +++ b/sdk/healthcareapis/azure-mgmt-healthcareapis/azure/mgmt/healthcareapis/operations/_operations.py @@ -24,7 +24,7 @@ class Operations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The version of the API. Constant value: "2018-08-20-preview". + :ivar api_version: Client Api Version. Constant value: "2019-09-16". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2018-08-20-preview" + self.api_version = "2019-09-16" self.config = config @@ -60,7 +60,7 @@ def prepare_request(next_link=None): # Construct parameters query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str', min_length=10) + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') else: url = next_link diff --git a/sdk/healthcareapis/azure-mgmt-healthcareapis/azure/mgmt/healthcareapis/operations/_services_operations.py b/sdk/healthcareapis/azure-mgmt-healthcareapis/azure/mgmt/healthcareapis/operations/_services_operations.py index 76ee198c35a8..91f769486647 100644 --- a/sdk/healthcareapis/azure-mgmt-healthcareapis/azure/mgmt/healthcareapis/operations/_services_operations.py +++ b/sdk/healthcareapis/azure-mgmt-healthcareapis/azure/mgmt/healthcareapis/operations/_services_operations.py @@ -26,7 +26,7 @@ class ServicesOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The version of the API. Constant value: "2018-08-20-preview". + :ivar api_version: Client Api Version. Constant value: "2019-09-16". """ models = models @@ -36,7 +36,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2018-08-20-preview" + self.api_version = "2019-09-16" self.config = config @@ -71,7 +71,7 @@ def get( # Construct parameters query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str', min_length=10) + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') # Construct headers header_parameters = {} @@ -115,7 +115,7 @@ def _create_or_update_initial( # Construct parameters query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str', min_length=10) + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') # Construct headers header_parameters = {} @@ -220,7 +220,7 @@ def _update_initial( # Construct parameters query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str', min_length=10) + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') # Construct headers header_parameters = {} @@ -320,7 +320,7 @@ def _delete_initial( # Construct parameters query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str', min_length=10) + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') # Construct headers header_parameters = {} @@ -411,7 +411,7 @@ def prepare_request(next_link=None): # Construct parameters query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str', min_length=10) + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') else: url = next_link @@ -480,7 +480,7 @@ def prepare_request(next_link=None): # Construct parameters query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str', min_length=10) + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') else: url = next_link @@ -550,7 +550,7 @@ def check_name_availability( # Construct parameters query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str', min_length=10) + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') # Construct headers header_parameters = {}