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
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 = '2019-09-16'
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,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
Expand All @@ -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
Expand All @@ -46,6 +48,7 @@
from ._healthcare_apis_management_client_enums import (
ProvisioningState,
Kind,
ManagedServiceIdentityType,
ServiceNameUnavailabilityReason,
OperationResultStatus,
)
Expand All @@ -58,6 +61,7 @@
'OperationDisplay',
'OperationResultsDescription',
'Resource',
'ResourceIdentity',
'ServiceAccessPolicyEntry',
'ServiceAuthenticationConfigurationInfo',
'ServiceCorsConfigurationInfo',
Expand All @@ -70,6 +74,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,35 @@ 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):
"""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 @@ -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
Expand All @@ -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
"""
Expand All @@ -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'},
}

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,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
Expand All @@ -280,15 +283,35 @@ 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):
"""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 @@ -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
Expand All @@ -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
"""
Expand All @@ -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


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down Expand Up @@ -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 = {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand All @@ -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
Expand Down
Loading