Skip to content
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
30 changes: 11 additions & 19 deletions sdk/healthcareapis/azure-mgmt-healthcareapis/README.md
Original file line number Diff line number Diff line change
@@ -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)
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -46,6 +50,7 @@
from ._healthcare_apis_management_client_enums import (
ProvisioningState,
Kind,
ManagedServiceIdentityType,
ServiceNameUnavailabilityReason,
OperationResultStatus,
)
Expand All @@ -58,10 +63,12 @@
'OperationDisplay',
'OperationResultsDescription',
'Resource',
'ResourceIdentity',
'ServiceAccessPolicyEntry',
'ServiceAuthenticationConfigurationInfo',
'ServiceCorsConfigurationInfo',
'ServiceCosmosDbConfigurationInfo',
'ServiceExportConfigurationInfo',
'ServicesDescription',
'ServicesNameAvailabilityInfo',
'ServicesPatchDescription',
Expand All @@ -70,6 +77,7 @@
'OperationPaged',
'ProvisioningState',
'Kind',
'ManagedServiceIdentityType',
'ServiceNameUnavailabilityReason',
'OperationResultStatus',
]
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 = {
Expand All @@ -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):
Expand All @@ -280,15 +283,51 @@ 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):
"""An access policy entry.

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
"""

Expand Down Expand Up @@ -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 = {
Expand All @@ -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):
Expand All @@ -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
Expand All @@ -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
"""
Expand All @@ -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'},
}

Expand Down Expand Up @@ -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
Expand All @@ -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 = {
Expand All @@ -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):
Expand All @@ -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)
Loading