diff --git a/sdk/healthcareapis/azure-mgmt-healthcareapis/README.md b/sdk/healthcareapis/azure-mgmt-healthcareapis/README.md index b8354473f458..539d59d859cf 100644 --- a/sdk/healthcareapis/azure-mgmt-healthcareapis/README.md +++ b/sdk/healthcareapis/azure-mgmt-healthcareapis/README.md @@ -1,29 +1,21 @@ -## Microsoft Azure SDK for Python +# Microsoft Azure SDK for Python This is the Microsoft Azure MyService Management Client Library. +This package has been tested with Python 2.7, 3.5, 3.6, 3.7 and 3.8. +For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all). -Azure Resource Manager (ARM) is the next generation of management APIs -that replace the old Azure Service Management (ASM). -This package has been tested with Python 2.7, 3.5, 3.6 and 3.7. +# Usage -For the older Azure Service Management (ASM) libraries, see -[azure-servicemanagement-legacy](https://pypi.python.org/pypi/azure-servicemanagement-legacy) -library. +For code examples, see [MyService Management](https://docs.microsoft.com/python/api/overview/azure/) +on docs.microsoft.com. -For a more complete set of Azure libraries, see the -[azure sdk python release](https://aka.ms/azsdk/python/all). -## Usage +# Provide Feedback -For code examples, see [MyService -Management](https://docs.microsoft.com/python/api/overview/azure/) on -docs.microsoft.com. - -## Provide Feedback - -If you encounter any bugs or have suggestions, please file an issue in -the [Issues](https://github.com/Azure/azure-sdk-for-python/issues) +If you encounter any bugs or have suggestions, please file an issue in the +[Issues](https://github.com/Azure/azure-sdk-for-python/issues) section of the project. -![image](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-mgmt-healthcareapis%2FREADME.png) + +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-mgmt-healthcareapis%2FREADME.png) 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..c541639bead8 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 = '2020-03-15' 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..3b5701e86a9e 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,10 +17,12 @@ 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 from ._models_py3 import ServiceCosmosDbConfigurationInfo + from ._models_py3 import ServiceExportConfigurationInfo from ._models_py3 import ServicesDescription from ._models_py3 import ServicesNameAvailabilityInfo from ._models_py3 import ServicesPatchDescription @@ -33,10 +35,12 @@ 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 from ._models import ServiceCosmosDbConfigurationInfo + from ._models import ServiceExportConfigurationInfo from ._models import ServicesDescription from ._models import ServicesNameAvailabilityInfo from ._models import ServicesPatchDescription @@ -46,6 +50,7 @@ from ._healthcare_apis_management_client_enums import ( ProvisioningState, Kind, + ManagedServiceIdentityType, ServiceNameUnavailabilityReason, OperationResultStatus, ) @@ -58,10 +63,12 @@ 'OperationDisplay', 'OperationResultsDescription', 'Resource', + 'ResourceIdentity', 'ServiceAccessPolicyEntry', 'ServiceAuthenticationConfigurationInfo', 'ServiceCorsConfigurationInfo', 'ServiceCosmosDbConfigurationInfo', + 'ServiceExportConfigurationInfo', 'ServicesDescription', 'ServicesNameAvailabilityInfo', 'ServicesPatchDescription', @@ -70,6 +77,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..85e5bf3ed632 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,42 @@ 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. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar principal_id: The principal ID of the resource identity. + :vartype principal_id: str + :ivar tenant_id: The tenant ID of the resource. + :vartype tenant_id: str + :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 + """ + + _validation = { + 'principal_id': {'readonly': True}, + 'tenant_id': {'readonly': True}, + } + + _attribute_map = { + 'principal_id': {'key': 'principalId', 'type': 'str'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ResourceIdentity, self).__init__(**kwargs) + self.principal_id = None + self.tenant_id = None + self.type = kwargs.get('type', None) class ServiceAccessPolicyEntry(Model): @@ -287,8 +326,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 """ @@ -371,6 +410,9 @@ class ServiceCosmosDbConfigurationInfo(Model): :param offer_throughput: The provisioned throughput for the backing database. :type offer_throughput: int + :param key_vault_key_uri: The URI of the customer-managed key for the + backing database. + :type key_vault_key_uri: str """ _validation = { @@ -379,11 +421,30 @@ class ServiceCosmosDbConfigurationInfo(Model): _attribute_map = { 'offer_throughput': {'key': 'offerThroughput', 'type': 'int'}, + 'key_vault_key_uri': {'key': 'keyVaultKeyUri', 'type': 'str'}, } def __init__(self, **kwargs): super(ServiceCosmosDbConfigurationInfo, self).__init__(**kwargs) self.offer_throughput = kwargs.get('offer_throughput', None) + self.key_vault_key_uri = kwargs.get('key_vault_key_uri', None) + + +class ServiceExportConfigurationInfo(Model): + """Export operation configuration information. + + :param storage_account_name: The name of the default export storage + account. + :type storage_account_name: str + """ + + _attribute_map = { + 'storage_account_name': {'key': 'storageAccountName', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ServiceExportConfigurationInfo, self).__init__(**kwargs) + self.storage_account_name = kwargs.get('storage_account_name', None) class ServicesDescription(Resource): @@ -400,9 +461,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 +471,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 +494,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'}, } @@ -496,15 +560,12 @@ class ServicesProperties(Model): Variables are only populated by the server, and will be ignored when sending a request. - All required parameters must be populated in order to send to Azure. - :ivar provisioning_state: The provisioning state. Possible values include: 'Deleting', 'Succeeded', 'Creating', 'Accepted', 'Verifying', 'Updating', 'Failed', 'Canceled', 'Deprovisioned' :vartype provisioning_state: str or ~azure.mgmt.healthcareapis.models.ProvisioningState - :param access_policies: Required. The access policies of the service - instance. + :param access_policies: The access policies of the service instance. :type access_policies: list[~azure.mgmt.healthcareapis.models.ServiceAccessPolicyEntry] :param cosmos_db_configuration: The settings for the Cosmos DB database @@ -519,11 +580,14 @@ class ServicesProperties(Model): service instance. :type cors_configuration: ~azure.mgmt.healthcareapis.models.ServiceCorsConfigurationInfo + :param export_configuration: The settings for the export operation of the + service instance. + :type export_configuration: + ~azure.mgmt.healthcareapis.models.ServiceExportConfigurationInfo """ _validation = { 'provisioning_state': {'readonly': True}, - 'access_policies': {'required': True}, } _attribute_map = { @@ -532,6 +596,7 @@ class ServicesProperties(Model): 'cosmos_db_configuration': {'key': 'cosmosDbConfiguration', 'type': 'ServiceCosmosDbConfigurationInfo'}, 'authentication_configuration': {'key': 'authenticationConfiguration', 'type': 'ServiceAuthenticationConfigurationInfo'}, 'cors_configuration': {'key': 'corsConfiguration', 'type': 'ServiceCorsConfigurationInfo'}, + 'export_configuration': {'key': 'exportConfiguration', 'type': 'ServiceExportConfigurationInfo'}, } def __init__(self, **kwargs): @@ -541,3 +606,4 @@ def __init__(self, **kwargs): self.cosmos_db_configuration = kwargs.get('cosmos_db_configuration', None) self.authentication_configuration = kwargs.get('authentication_configuration', None) self.cors_configuration = kwargs.get('cors_configuration', None) + self.export_configuration = kwargs.get('export_configuration', None) 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..f1a2615a7540 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,42 @@ 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. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar principal_id: The principal ID of the resource identity. + :vartype principal_id: str + :ivar tenant_id: The tenant ID of the resource. + :vartype tenant_id: str + :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 + """ + + _validation = { + 'principal_id': {'readonly': True}, + 'tenant_id': {'readonly': True}, + } + + _attribute_map = { + 'principal_id': {'key': 'principalId', 'type': 'str'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, *, type=None, **kwargs) -> None: + super(ResourceIdentity, self).__init__(**kwargs) + self.principal_id = None + self.tenant_id = None + self.type = type class ServiceAccessPolicyEntry(Model): @@ -287,8 +326,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 """ @@ -371,6 +410,9 @@ class ServiceCosmosDbConfigurationInfo(Model): :param offer_throughput: The provisioned throughput for the backing database. :type offer_throughput: int + :param key_vault_key_uri: The URI of the customer-managed key for the + backing database. + :type key_vault_key_uri: str """ _validation = { @@ -379,11 +421,30 @@ class ServiceCosmosDbConfigurationInfo(Model): _attribute_map = { 'offer_throughput': {'key': 'offerThroughput', 'type': 'int'}, + 'key_vault_key_uri': {'key': 'keyVaultKeyUri', 'type': 'str'}, } - def __init__(self, *, offer_throughput: int=None, **kwargs) -> None: + def __init__(self, *, offer_throughput: int=None, key_vault_key_uri: str=None, **kwargs) -> None: super(ServiceCosmosDbConfigurationInfo, self).__init__(**kwargs) self.offer_throughput = offer_throughput + self.key_vault_key_uri = key_vault_key_uri + + +class ServiceExportConfigurationInfo(Model): + """Export operation configuration information. + + :param storage_account_name: The name of the default export storage + account. + :type storage_account_name: str + """ + + _attribute_map = { + 'storage_account_name': {'key': 'storageAccountName', 'type': 'str'}, + } + + def __init__(self, *, storage_account_name: str=None, **kwargs) -> None: + super(ServiceExportConfigurationInfo, self).__init__(**kwargs) + self.storage_account_name = storage_account_name class ServicesDescription(Resource): @@ -400,9 +461,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 +471,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 +494,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 @@ -496,15 +560,12 @@ class ServicesProperties(Model): Variables are only populated by the server, and will be ignored when sending a request. - All required parameters must be populated in order to send to Azure. - :ivar provisioning_state: The provisioning state. Possible values include: 'Deleting', 'Succeeded', 'Creating', 'Accepted', 'Verifying', 'Updating', 'Failed', 'Canceled', 'Deprovisioned' :vartype provisioning_state: str or ~azure.mgmt.healthcareapis.models.ProvisioningState - :param access_policies: Required. The access policies of the service - instance. + :param access_policies: The access policies of the service instance. :type access_policies: list[~azure.mgmt.healthcareapis.models.ServiceAccessPolicyEntry] :param cosmos_db_configuration: The settings for the Cosmos DB database @@ -519,11 +580,14 @@ class ServicesProperties(Model): service instance. :type cors_configuration: ~azure.mgmt.healthcareapis.models.ServiceCorsConfigurationInfo + :param export_configuration: The settings for the export operation of the + service instance. + :type export_configuration: + ~azure.mgmt.healthcareapis.models.ServiceExportConfigurationInfo """ _validation = { 'provisioning_state': {'readonly': True}, - 'access_policies': {'required': True}, } _attribute_map = { @@ -532,12 +596,14 @@ class ServicesProperties(Model): 'cosmos_db_configuration': {'key': 'cosmosDbConfiguration', 'type': 'ServiceCosmosDbConfigurationInfo'}, 'authentication_configuration': {'key': 'authenticationConfiguration', 'type': 'ServiceAuthenticationConfigurationInfo'}, 'cors_configuration': {'key': 'corsConfiguration', 'type': 'ServiceCorsConfigurationInfo'}, + 'export_configuration': {'key': 'exportConfiguration', 'type': 'ServiceExportConfigurationInfo'}, } - def __init__(self, *, access_policies, cosmos_db_configuration=None, authentication_configuration=None, cors_configuration=None, **kwargs) -> None: + def __init__(self, *, access_policies=None, cosmos_db_configuration=None, authentication_configuration=None, cors_configuration=None, export_configuration=None, **kwargs) -> None: super(ServicesProperties, self).__init__(**kwargs) self.provisioning_state = None self.access_policies = access_policies self.cosmos_db_configuration = cosmos_db_configuration self.authentication_configuration = authentication_configuration self.cors_configuration = cors_configuration + self.export_configuration = export_configuration 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..165e95301bc6 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: "2020-03-15". """ 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 = "2020-03-15" 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..a650f3cf9b28 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: "2020-03-15". """ 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 = "2020-03-15" 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..a342b208953d 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: "2020-03-15". """ 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 = "2020-03-15" 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 = {} diff --git a/sdk/healthcareapis/azure-mgmt-healthcareapis/setup.py b/sdk/healthcareapis/azure-mgmt-healthcareapis/setup.py index dd69baa72137..61ddf28b3a20 100644 --- a/sdk/healthcareapis/azure-mgmt-healthcareapis/setup.py +++ b/sdk/healthcareapis/azure-mgmt-healthcareapis/setup.py @@ -36,7 +36,9 @@ pass # Version extraction inspired from 'requests' -with open(os.path.join(package_folder_path, 'version.py'), 'r') as fd: +with open(os.path.join(package_folder_path, 'version.py') + if os.path.exists(os.path.join(package_folder_path, 'version.py')) + else os.path.join(package_folder_path, '_version.py'), 'r') as fd: version = re.search(r'^VERSION\s*=\s*[\'"]([^\'"]*)[\'"]', fd.read(), re.MULTILINE).group(1) @@ -67,6 +69,7 @@ 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: 3.8', 'License :: OSI Approved :: MIT License', ], zip_safe=False,