diff --git a/sdk/healthcareapis/azure-mgmt-healthcareapis/MANIFEST.in b/sdk/healthcareapis/azure-mgmt-healthcareapis/MANIFEST.in index a3cb07df8765..3a9b6517412b 100644 --- a/sdk/healthcareapis/azure-mgmt-healthcareapis/MANIFEST.in +++ b/sdk/healthcareapis/azure-mgmt-healthcareapis/MANIFEST.in @@ -1,3 +1,4 @@ +include _meta.json recursive-include tests *.py *.yaml include *.md include azure/__init__.py diff --git a/sdk/healthcareapis/azure-mgmt-healthcareapis/_meta.json b/sdk/healthcareapis/azure-mgmt-healthcareapis/_meta.json new file mode 100644 index 000000000000..1d9892844f3f --- /dev/null +++ b/sdk/healthcareapis/azure-mgmt-healthcareapis/_meta.json @@ -0,0 +1,8 @@ +{ + "autorest": "V2", + "use": "@microsoft.azure/autorest.python@~4.0.71", + "commit": "273cebe601c137222c802504425047845d4be409", + "repository_url": "https://github.com/Azure/azure-rest-api-specs", + "autorest_command": "autorest specification/healthcareapis/resource-manager/readme.md --keep-version-file --multiapi --no-async --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --use=@microsoft.azure/autorest.python@~4.0.71 --version=V2", + "readme": "specification/healthcareapis/resource-manager/readme.md" +} \ No newline at end of file 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 19bb1ab7c1d7..665e3757c1b3 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 @@ -53,7 +53,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 = '2020-03-30' + self.api_version = '2021-01-11' 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 f3c49c7ac97d..2ef8b20412c6 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 @@ -19,12 +19,15 @@ from ._models_py3 import OperationResultsDescription from ._models_py3 import PrivateEndpoint from ._models_py3 import PrivateEndpointConnection + from ._models_py3 import PrivateEndpointConnectionDescription from ._models_py3 import PrivateLinkResource - from ._models_py3 import PrivateLinkResourceListResult + from ._models_py3 import PrivateLinkResourceDescription + from ._models_py3 import PrivateLinkResourceListResultDescription from ._models_py3 import PrivateLinkServiceConnectionState from ._models_py3 import ProxyResource from ._models_py3 import Resource from ._models_py3 import ServiceAccessPolicyEntry + from ._models_py3 import ServiceAcrConfigurationInfo from ._models_py3 import ServiceAuthenticationConfigurationInfo from ._models_py3 import ServiceCorsConfigurationInfo from ._models_py3 import ServiceCosmosDbConfigurationInfo @@ -35,6 +38,7 @@ from ._models_py3 import ServicesProperties from ._models_py3 import ServicesResource from ._models_py3 import ServicesResourceIdentity + from ._models_py3 import SystemData from ._models_py3 import TrackedResource except (SyntaxError, ImportError): from ._models import AzureEntityResource @@ -46,12 +50,15 @@ from ._models import OperationResultsDescription from ._models import PrivateEndpoint from ._models import PrivateEndpointConnection + from ._models import PrivateEndpointConnectionDescription from ._models import PrivateLinkResource - from ._models import PrivateLinkResourceListResult + from ._models import PrivateLinkResourceDescription + from ._models import PrivateLinkResourceListResultDescription from ._models import PrivateLinkServiceConnectionState from ._models import ProxyResource from ._models import Resource from ._models import ServiceAccessPolicyEntry + from ._models import ServiceAcrConfigurationInfo from ._models import ServiceAuthenticationConfigurationInfo from ._models import ServiceCorsConfigurationInfo from ._models import ServiceCosmosDbConfigurationInfo @@ -62,15 +69,17 @@ from ._models import ServicesProperties from ._models import ServicesResource from ._models import ServicesResourceIdentity + from ._models import SystemData from ._models import TrackedResource from ._paged_models import OperationPaged -from ._paged_models import PrivateEndpointConnectionPaged +from ._paged_models import PrivateEndpointConnectionDescriptionPaged from ._paged_models import ServicesDescriptionPaged from ._healthcare_apis_management_client_enums import ( ProvisioningState, PrivateEndpointServiceConnectionStatus, PrivateEndpointConnectionProvisioningState, PublicNetworkAccess, + CreatedByType, Kind, ManagedServiceIdentityType, ServiceNameUnavailabilityReason, @@ -87,12 +96,15 @@ 'OperationResultsDescription', 'PrivateEndpoint', 'PrivateEndpointConnection', + 'PrivateEndpointConnectionDescription', 'PrivateLinkResource', - 'PrivateLinkResourceListResult', + 'PrivateLinkResourceDescription', + 'PrivateLinkResourceListResultDescription', 'PrivateLinkServiceConnectionState', 'ProxyResource', 'Resource', 'ServiceAccessPolicyEntry', + 'ServiceAcrConfigurationInfo', 'ServiceAuthenticationConfigurationInfo', 'ServiceCorsConfigurationInfo', 'ServiceCosmosDbConfigurationInfo', @@ -103,14 +115,16 @@ 'ServicesProperties', 'ServicesResource', 'ServicesResourceIdentity', + 'SystemData', 'TrackedResource', 'ServicesDescriptionPaged', 'OperationPaged', - 'PrivateEndpointConnectionPaged', + 'PrivateEndpointConnectionDescriptionPaged', 'ProvisioningState', 'PrivateEndpointServiceConnectionStatus', 'PrivateEndpointConnectionProvisioningState', 'PublicNetworkAccess', + 'CreatedByType', 'Kind', 'ManagedServiceIdentityType', 'ServiceNameUnavailabilityReason', 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 8732899f1fac..e7eb76a896c0 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 @@ -46,6 +46,14 @@ class PublicNetworkAccess(str, Enum): disabled = "Disabled" +class CreatedByType(str, Enum): + + user = "User" + application = "Application" + managed_identity = "ManagedIdentity" + key = "Key" + + class Kind(str, Enum): fhir = "fhir" 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 86c1441f9498..163e954027ba 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 @@ -16,16 +16,19 @@ class Resource(Model): """Resource. + Common fields that are returned in the response for all Azure Resource + Manager resources. + Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Fully qualified resource Id for the resource. Ex - + :ivar id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str :ivar name: The name of the resource :vartype name: str - :ivar type: The type of the resource. Ex- - Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str """ @@ -49,19 +52,21 @@ def __init__(self, **kwargs): class AzureEntityResource(Resource): - """The resource model definition for a Azure Resource Manager resource with an - etag. + """Entity Resource. + + The resource model definition for an Azure Resource Manager resource with + an etag. Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Fully qualified resource Id for the resource. Ex - + :ivar id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str :ivar name: The name of the resource :vartype name: str - :ivar type: The type of the resource. Ex- - Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :ivar etag: Resource Etag. :vartype etag: str @@ -330,13 +335,13 @@ class PrivateEndpointConnection(Resource): All required parameters must be populated in order to send to Azure. - :ivar id: Fully qualified resource Id for the resource. Ex - + :ivar id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str :ivar name: The name of the resource :vartype name: str - :ivar type: The type of the resource. Ex- - Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param private_endpoint: The resource of private end point. :type private_endpoint: ~azure.mgmt.healthcareapis.models.PrivateEndpoint @@ -375,19 +380,73 @@ def __init__(self, **kwargs): self.provisioning_state = kwargs.get('provisioning_state', None) +class PrivateEndpointConnectionDescription(PrivateEndpointConnection): + """The Private Endpoint Connection resource. + + 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 id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + :vartype type: str + :param private_endpoint: The resource of private end point. + :type private_endpoint: ~azure.mgmt.healthcareapis.models.PrivateEndpoint + :param private_link_service_connection_state: Required. A collection of + information about the state of the connection between service consumer and + provider. + :type private_link_service_connection_state: + ~azure.mgmt.healthcareapis.models.PrivateLinkServiceConnectionState + :param provisioning_state: The provisioning state of the private endpoint + connection resource. Possible values include: 'Succeeded', 'Creating', + 'Deleting', 'Failed' + :type provisioning_state: str or + ~azure.mgmt.healthcareapis.models.PrivateEndpointConnectionProvisioningState + :param system_data: System metadata for this resource. + :type system_data: ~azure.mgmt.healthcareapis.models.SystemData + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'private_link_service_connection_state': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'private_endpoint': {'key': 'properties.privateEndpoint', 'type': 'PrivateEndpoint'}, + 'private_link_service_connection_state': {'key': 'properties.privateLinkServiceConnectionState', 'type': 'PrivateLinkServiceConnectionState'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, + } + + def __init__(self, **kwargs): + super(PrivateEndpointConnectionDescription, self).__init__(**kwargs) + self.system_data = kwargs.get('system_data', None) + + class PrivateLinkResource(Resource): """A private link resource. Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Fully qualified resource Id for the resource. Ex - + :ivar id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str :ivar name: The name of the resource :vartype name: str - :ivar type: The type of the resource. Ex- - Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :ivar group_id: The private link resource group id. :vartype group_id: str @@ -422,19 +481,68 @@ def __init__(self, **kwargs): self.required_zone_names = kwargs.get('required_zone_names', None) -class PrivateLinkResourceListResult(Model): +class PrivateLinkResourceDescription(PrivateLinkResource): + """The Private Endpoint Connection resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + :vartype type: str + :ivar group_id: The private link resource group id. + :vartype group_id: str + :ivar required_members: The private link resource required member names. + :vartype required_members: list[str] + :param required_zone_names: The private link resource Private link DNS + zone name. + :type required_zone_names: list[str] + :param system_data: System metadata for this resource. + :type system_data: ~azure.mgmt.healthcareapis.models.SystemData + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'group_id': {'readonly': True}, + 'required_members': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'group_id': {'key': 'properties.groupId', 'type': 'str'}, + 'required_members': {'key': 'properties.requiredMembers', 'type': '[str]'}, + 'required_zone_names': {'key': 'properties.requiredZoneNames', 'type': '[str]'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, + } + + def __init__(self, **kwargs): + super(PrivateLinkResourceDescription, self).__init__(**kwargs) + self.system_data = kwargs.get('system_data', None) + + +class PrivateLinkResourceListResultDescription(Model): """A list of private link resources. :param value: Array of private link resources - :type value: list[~azure.mgmt.healthcareapis.models.PrivateLinkResource] + :type value: + list[~azure.mgmt.healthcareapis.models.PrivateLinkResourceDescription] """ _attribute_map = { - 'value': {'key': 'value', 'type': '[PrivateLinkResource]'}, + 'value': {'key': 'value', 'type': '[PrivateLinkResourceDescription]'}, } def __init__(self, **kwargs): - super(PrivateLinkResourceListResult, self).__init__(**kwargs) + super(PrivateLinkResourceListResultDescription, self).__init__(**kwargs) self.value = kwargs.get('value', None) @@ -468,19 +576,21 @@ def __init__(self, **kwargs): class ProxyResource(Resource): - """The resource model definition for a ARM proxy resource. It will have - everything other than required location and tags. + """Proxy Resource. + + The resource model definition for a Azure Resource Manager proxy resource. + It will not have tags and a location. Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Fully qualified resource Id for the resource. Ex - + :ivar id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str :ivar name: The name of the resource :vartype name: str - :ivar type: The type of the resource. Ex- - Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str """ @@ -523,6 +633,22 @@ def __init__(self, **kwargs): self.object_id = kwargs.get('object_id', None) +class ServiceAcrConfigurationInfo(Model): + """Azure container registry configuration information. + + :param login_servers: The list of the ACR login servers. + :type login_servers: list[str] + """ + + _attribute_map = { + 'login_servers': {'key': 'loginServers', 'type': '[str]'}, + } + + def __init__(self, **kwargs): + super(ServiceAcrConfigurationInfo, self).__init__(**kwargs) + self.login_servers = kwargs.get('login_servers', None) + + class ServiceAuthenticationConfigurationInfo(Model): """Authentication configuration information. @@ -715,6 +841,8 @@ class ServicesDescription(ServicesResource): :type identity: ~azure.mgmt.healthcareapis.models.ServicesResourceIdentity :param properties: The common properties of a service. :type properties: ~azure.mgmt.healthcareapis.models.ServicesProperties + :param system_data: + :type system_data: ~azure.mgmt.healthcareapis.models.SystemData """ _validation = { @@ -735,11 +863,13 @@ class ServicesDescription(ServicesResource): 'etag': {'key': 'etag', 'type': 'str'}, 'identity': {'key': 'identity', 'type': 'ServicesResourceIdentity'}, 'properties': {'key': 'properties', 'type': 'ServicesProperties'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, } def __init__(self, **kwargs): super(ServicesDescription, self).__init__(**kwargs) self.properties = kwargs.get('properties', None) + self.system_data = kwargs.get('system_data', None) class ServicesNameAvailabilityInfo(Model): @@ -839,6 +969,10 @@ class ServicesProperties(Model): values include: 'Enabled', 'Disabled' :type public_network_access: str or ~azure.mgmt.healthcareapis.models.PublicNetworkAccess + :param acr_configuration: The azure container registry settings used for + convert data operation of the service instance. + :type acr_configuration: + ~azure.mgmt.healthcareapis.models.ServiceAcrConfigurationInfo """ _validation = { @@ -854,6 +988,7 @@ class ServicesProperties(Model): 'export_configuration': {'key': 'exportConfiguration', 'type': 'ServiceExportConfigurationInfo'}, 'private_endpoint_connections': {'key': 'privateEndpointConnections', 'type': '[PrivateEndpointConnection]'}, 'public_network_access': {'key': 'publicNetworkAccess', 'type': 'str'}, + 'acr_configuration': {'key': 'acrConfiguration', 'type': 'ServiceAcrConfigurationInfo'}, } def __init__(self, **kwargs): @@ -866,6 +1001,7 @@ def __init__(self, **kwargs): self.export_configuration = kwargs.get('export_configuration', None) self.private_endpoint_connections = kwargs.get('private_endpoint_connections', None) self.public_network_access = kwargs.get('public_network_access', None) + self.acr_configuration = kwargs.get('acr_configuration', None) class ServicesResourceIdentity(Model): @@ -903,21 +1039,65 @@ def __init__(self, **kwargs): self.type = kwargs.get('type', None) +class SystemData(Model): + """Metadata pertaining to creation and last modification of the resource. + + :param created_by: The identity that created the resource. + :type created_by: str + :param created_by_type: The type of identity that created the resource. + Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key' + :type created_by_type: str or + ~azure.mgmt.healthcareapis.models.CreatedByType + :param created_at: The timestamp of resource creation (UTC). + :type created_at: datetime + :param last_modified_by: The identity that last modified the resource. + :type last_modified_by: str + :param last_modified_by_type: The type of identity that last modified the + resource. Possible values include: 'User', 'Application', + 'ManagedIdentity', 'Key' + :type last_modified_by_type: str or + ~azure.mgmt.healthcareapis.models.CreatedByType + :param last_modified_at: The timestamp of resource last modification (UTC) + :type last_modified_at: datetime + """ + + _attribute_map = { + 'created_by': {'key': 'createdBy', 'type': 'str'}, + 'created_by_type': {'key': 'createdByType', 'type': 'str'}, + 'created_at': {'key': 'createdAt', 'type': 'iso-8601'}, + 'last_modified_by': {'key': 'lastModifiedBy', 'type': 'str'}, + 'last_modified_by_type': {'key': 'lastModifiedByType', 'type': 'str'}, + 'last_modified_at': {'key': 'lastModifiedAt', 'type': 'iso-8601'}, + } + + def __init__(self, **kwargs): + super(SystemData, self).__init__(**kwargs) + self.created_by = kwargs.get('created_by', None) + self.created_by_type = kwargs.get('created_by_type', None) + self.created_at = kwargs.get('created_at', None) + self.last_modified_by = kwargs.get('last_modified_by', None) + self.last_modified_by_type = kwargs.get('last_modified_by_type', None) + self.last_modified_at = kwargs.get('last_modified_at', None) + + class TrackedResource(Resource): - """The resource model definition for a ARM tracked top level resource. + """Tracked Resource. + + The resource model definition for an Azure Resource Manager tracked top + level resource which has 'tags' and a 'location'. 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 id: Fully qualified resource Id for the resource. Ex - + :ivar id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str :ivar name: The name of the resource :vartype name: str - :ivar type: The type of the resource. Ex- - Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param tags: Resource tags. :type tags: dict[str, str] 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 2cbb07d2611e..78347f8e61d7 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 @@ -16,16 +16,19 @@ class Resource(Model): """Resource. + Common fields that are returned in the response for all Azure Resource + Manager resources. + Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Fully qualified resource Id for the resource. Ex - + :ivar id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str :ivar name: The name of the resource :vartype name: str - :ivar type: The type of the resource. Ex- - Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str """ @@ -49,19 +52,21 @@ def __init__(self, **kwargs) -> None: class AzureEntityResource(Resource): - """The resource model definition for a Azure Resource Manager resource with an - etag. + """Entity Resource. + + The resource model definition for an Azure Resource Manager resource with + an etag. Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Fully qualified resource Id for the resource. Ex - + :ivar id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str :ivar name: The name of the resource :vartype name: str - :ivar type: The type of the resource. Ex- - Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :ivar etag: Resource Etag. :vartype etag: str @@ -330,13 +335,13 @@ class PrivateEndpointConnection(Resource): All required parameters must be populated in order to send to Azure. - :ivar id: Fully qualified resource Id for the resource. Ex - + :ivar id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str :ivar name: The name of the resource :vartype name: str - :ivar type: The type of the resource. Ex- - Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param private_endpoint: The resource of private end point. :type private_endpoint: ~azure.mgmt.healthcareapis.models.PrivateEndpoint @@ -375,19 +380,73 @@ def __init__(self, *, private_link_service_connection_state, private_endpoint=No self.provisioning_state = provisioning_state +class PrivateEndpointConnectionDescription(PrivateEndpointConnection): + """The Private Endpoint Connection resource. + + 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 id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + :vartype type: str + :param private_endpoint: The resource of private end point. + :type private_endpoint: ~azure.mgmt.healthcareapis.models.PrivateEndpoint + :param private_link_service_connection_state: Required. A collection of + information about the state of the connection between service consumer and + provider. + :type private_link_service_connection_state: + ~azure.mgmt.healthcareapis.models.PrivateLinkServiceConnectionState + :param provisioning_state: The provisioning state of the private endpoint + connection resource. Possible values include: 'Succeeded', 'Creating', + 'Deleting', 'Failed' + :type provisioning_state: str or + ~azure.mgmt.healthcareapis.models.PrivateEndpointConnectionProvisioningState + :param system_data: System metadata for this resource. + :type system_data: ~azure.mgmt.healthcareapis.models.SystemData + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'private_link_service_connection_state': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'private_endpoint': {'key': 'properties.privateEndpoint', 'type': 'PrivateEndpoint'}, + 'private_link_service_connection_state': {'key': 'properties.privateLinkServiceConnectionState', 'type': 'PrivateLinkServiceConnectionState'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, + } + + def __init__(self, *, private_link_service_connection_state, private_endpoint=None, provisioning_state=None, system_data=None, **kwargs) -> None: + super(PrivateEndpointConnectionDescription, self).__init__(private_endpoint=private_endpoint, private_link_service_connection_state=private_link_service_connection_state, provisioning_state=provisioning_state, **kwargs) + self.system_data = system_data + + class PrivateLinkResource(Resource): """A private link resource. Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Fully qualified resource Id for the resource. Ex - + :ivar id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str :ivar name: The name of the resource :vartype name: str - :ivar type: The type of the resource. Ex- - Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :ivar group_id: The private link resource group id. :vartype group_id: str @@ -422,19 +481,68 @@ def __init__(self, *, required_zone_names=None, **kwargs) -> None: self.required_zone_names = required_zone_names -class PrivateLinkResourceListResult(Model): +class PrivateLinkResourceDescription(PrivateLinkResource): + """The Private Endpoint Connection resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + :vartype type: str + :ivar group_id: The private link resource group id. + :vartype group_id: str + :ivar required_members: The private link resource required member names. + :vartype required_members: list[str] + :param required_zone_names: The private link resource Private link DNS + zone name. + :type required_zone_names: list[str] + :param system_data: System metadata for this resource. + :type system_data: ~azure.mgmt.healthcareapis.models.SystemData + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'group_id': {'readonly': True}, + 'required_members': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'group_id': {'key': 'properties.groupId', 'type': 'str'}, + 'required_members': {'key': 'properties.requiredMembers', 'type': '[str]'}, + 'required_zone_names': {'key': 'properties.requiredZoneNames', 'type': '[str]'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, + } + + def __init__(self, *, required_zone_names=None, system_data=None, **kwargs) -> None: + super(PrivateLinkResourceDescription, self).__init__(required_zone_names=required_zone_names, **kwargs) + self.system_data = system_data + + +class PrivateLinkResourceListResultDescription(Model): """A list of private link resources. :param value: Array of private link resources - :type value: list[~azure.mgmt.healthcareapis.models.PrivateLinkResource] + :type value: + list[~azure.mgmt.healthcareapis.models.PrivateLinkResourceDescription] """ _attribute_map = { - 'value': {'key': 'value', 'type': '[PrivateLinkResource]'}, + 'value': {'key': 'value', 'type': '[PrivateLinkResourceDescription]'}, } def __init__(self, *, value=None, **kwargs) -> None: - super(PrivateLinkResourceListResult, self).__init__(**kwargs) + super(PrivateLinkResourceListResultDescription, self).__init__(**kwargs) self.value = value @@ -468,19 +576,21 @@ def __init__(self, *, status=None, description: str=None, actions_required: str= class ProxyResource(Resource): - """The resource model definition for a ARM proxy resource. It will have - everything other than required location and tags. + """Proxy Resource. + + The resource model definition for a Azure Resource Manager proxy resource. + It will not have tags and a location. Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Fully qualified resource Id for the resource. Ex - + :ivar id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str :ivar name: The name of the resource :vartype name: str - :ivar type: The type of the resource. Ex- - Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str """ @@ -523,6 +633,22 @@ def __init__(self, *, object_id: str, **kwargs) -> None: self.object_id = object_id +class ServiceAcrConfigurationInfo(Model): + """Azure container registry configuration information. + + :param login_servers: The list of the ACR login servers. + :type login_servers: list[str] + """ + + _attribute_map = { + 'login_servers': {'key': 'loginServers', 'type': '[str]'}, + } + + def __init__(self, *, login_servers=None, **kwargs) -> None: + super(ServiceAcrConfigurationInfo, self).__init__(**kwargs) + self.login_servers = login_servers + + class ServiceAuthenticationConfigurationInfo(Model): """Authentication configuration information. @@ -715,6 +841,8 @@ class ServicesDescription(ServicesResource): :type identity: ~azure.mgmt.healthcareapis.models.ServicesResourceIdentity :param properties: The common properties of a service. :type properties: ~azure.mgmt.healthcareapis.models.ServicesProperties + :param system_data: + :type system_data: ~azure.mgmt.healthcareapis.models.SystemData """ _validation = { @@ -735,11 +863,13 @@ class ServicesDescription(ServicesResource): 'etag': {'key': 'etag', 'type': 'str'}, 'identity': {'key': 'identity', 'type': 'ServicesResourceIdentity'}, 'properties': {'key': 'properties', 'type': 'ServicesProperties'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, } - def __init__(self, *, kind, location: str, tags=None, etag: str=None, identity=None, properties=None, **kwargs) -> None: + def __init__(self, *, kind, location: str, tags=None, etag: str=None, identity=None, properties=None, system_data=None, **kwargs) -> None: super(ServicesDescription, self).__init__(kind=kind, location=location, tags=tags, etag=etag, identity=identity, **kwargs) self.properties = properties + self.system_data = system_data class ServicesNameAvailabilityInfo(Model): @@ -839,6 +969,10 @@ class ServicesProperties(Model): values include: 'Enabled', 'Disabled' :type public_network_access: str or ~azure.mgmt.healthcareapis.models.PublicNetworkAccess + :param acr_configuration: The azure container registry settings used for + convert data operation of the service instance. + :type acr_configuration: + ~azure.mgmt.healthcareapis.models.ServiceAcrConfigurationInfo """ _validation = { @@ -854,9 +988,10 @@ class ServicesProperties(Model): 'export_configuration': {'key': 'exportConfiguration', 'type': 'ServiceExportConfigurationInfo'}, 'private_endpoint_connections': {'key': 'privateEndpointConnections', 'type': '[PrivateEndpointConnection]'}, 'public_network_access': {'key': 'publicNetworkAccess', 'type': 'str'}, + 'acr_configuration': {'key': 'acrConfiguration', 'type': 'ServiceAcrConfigurationInfo'}, } - def __init__(self, *, access_policies=None, cosmos_db_configuration=None, authentication_configuration=None, cors_configuration=None, export_configuration=None, private_endpoint_connections=None, public_network_access=None, **kwargs) -> None: + def __init__(self, *, access_policies=None, cosmos_db_configuration=None, authentication_configuration=None, cors_configuration=None, export_configuration=None, private_endpoint_connections=None, public_network_access=None, acr_configuration=None, **kwargs) -> None: super(ServicesProperties, self).__init__(**kwargs) self.provisioning_state = None self.access_policies = access_policies @@ -866,6 +1001,7 @@ def __init__(self, *, access_policies=None, cosmos_db_configuration=None, authen self.export_configuration = export_configuration self.private_endpoint_connections = private_endpoint_connections self.public_network_access = public_network_access + self.acr_configuration = acr_configuration class ServicesResourceIdentity(Model): @@ -903,21 +1039,65 @@ def __init__(self, *, type=None, **kwargs) -> None: self.type = type +class SystemData(Model): + """Metadata pertaining to creation and last modification of the resource. + + :param created_by: The identity that created the resource. + :type created_by: str + :param created_by_type: The type of identity that created the resource. + Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key' + :type created_by_type: str or + ~azure.mgmt.healthcareapis.models.CreatedByType + :param created_at: The timestamp of resource creation (UTC). + :type created_at: datetime + :param last_modified_by: The identity that last modified the resource. + :type last_modified_by: str + :param last_modified_by_type: The type of identity that last modified the + resource. Possible values include: 'User', 'Application', + 'ManagedIdentity', 'Key' + :type last_modified_by_type: str or + ~azure.mgmt.healthcareapis.models.CreatedByType + :param last_modified_at: The timestamp of resource last modification (UTC) + :type last_modified_at: datetime + """ + + _attribute_map = { + 'created_by': {'key': 'createdBy', 'type': 'str'}, + 'created_by_type': {'key': 'createdByType', 'type': 'str'}, + 'created_at': {'key': 'createdAt', 'type': 'iso-8601'}, + 'last_modified_by': {'key': 'lastModifiedBy', 'type': 'str'}, + 'last_modified_by_type': {'key': 'lastModifiedByType', 'type': 'str'}, + 'last_modified_at': {'key': 'lastModifiedAt', 'type': 'iso-8601'}, + } + + def __init__(self, *, created_by: str=None, created_by_type=None, created_at=None, last_modified_by: str=None, last_modified_by_type=None, last_modified_at=None, **kwargs) -> None: + super(SystemData, self).__init__(**kwargs) + self.created_by = created_by + self.created_by_type = created_by_type + self.created_at = created_at + self.last_modified_by = last_modified_by + self.last_modified_by_type = last_modified_by_type + self.last_modified_at = last_modified_at + + class TrackedResource(Resource): - """The resource model definition for a ARM tracked top level resource. + """Tracked Resource. + + The resource model definition for an Azure Resource Manager tracked top + level resource which has 'tags' and a 'location'. 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 id: Fully qualified resource Id for the resource. Ex - + :ivar id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str :ivar name: The name of the resource :vartype name: str - :ivar type: The type of the resource. Ex- - Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param tags: Resource tags. :type tags: dict[str, str] diff --git a/sdk/healthcareapis/azure-mgmt-healthcareapis/azure/mgmt/healthcareapis/models/_paged_models.py b/sdk/healthcareapis/azure-mgmt-healthcareapis/azure/mgmt/healthcareapis/models/_paged_models.py index d5962601e97d..72fe62d68a5c 100644 --- a/sdk/healthcareapis/azure-mgmt-healthcareapis/azure/mgmt/healthcareapis/models/_paged_models.py +++ b/sdk/healthcareapis/azure-mgmt-healthcareapis/azure/mgmt/healthcareapis/models/_paged_models.py @@ -38,16 +38,16 @@ class OperationPaged(Paged): def __init__(self, *args, **kwargs): super(OperationPaged, self).__init__(*args, **kwargs) -class PrivateEndpointConnectionPaged(Paged): +class PrivateEndpointConnectionDescriptionPaged(Paged): """ - A paging container for iterating over a list of :class:`PrivateEndpointConnection ` object + A paging container for iterating over a list of :class:`PrivateEndpointConnectionDescription ` object """ _attribute_map = { 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[PrivateEndpointConnection]'} + 'current_page': {'key': 'value', 'type': '[PrivateEndpointConnectionDescription]'} } def __init__(self, *args, **kwargs): - super(PrivateEndpointConnectionPaged, self).__init__(*args, **kwargs) + super(PrivateEndpointConnectionDescriptionPaged, self).__init__(*args, **kwargs) 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 d5634ea93687..ca02c26f198c 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: Client Api Version. Constant value: "2020-03-30". + :ivar api_version: Client Api Version. Constant value: "2021-01-11". """ 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 = "2020-03-30" + self.api_version = "2021-01-11" self.config = config 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 d5a6c91f93eb..ec5db4877190 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: Client Api Version. Constant value: "2020-03-30". + :ivar api_version: Client Api Version. Constant value: "2021-01-11". """ 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 = "2020-03-30" + self.api_version = "2021-01-11" self.config = config diff --git a/sdk/healthcareapis/azure-mgmt-healthcareapis/azure/mgmt/healthcareapis/operations/_private_endpoint_connections_operations.py b/sdk/healthcareapis/azure-mgmt-healthcareapis/azure/mgmt/healthcareapis/operations/_private_endpoint_connections_operations.py index e813e4d88885..8e903239fd18 100644 --- a/sdk/healthcareapis/azure-mgmt-healthcareapis/azure/mgmt/healthcareapis/operations/_private_endpoint_connections_operations.py +++ b/sdk/healthcareapis/azure-mgmt-healthcareapis/azure/mgmt/healthcareapis/operations/_private_endpoint_connections_operations.py @@ -26,7 +26,7 @@ class PrivateEndpointConnectionsOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client Api Version. Constant value: "2020-03-30". + :ivar api_version: Client Api Version. Constant value: "2021-01-11". """ 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 = "2020-03-30" + self.api_version = "2021-01-11" self.config = config @@ -54,9 +54,10 @@ def list_by_service( deserialized response :param operation_config: :ref:`Operation configuration overrides`. - :return: An iterator like instance of PrivateEndpointConnection + :return: An iterator like instance of + PrivateEndpointConnectionDescription :rtype: - ~azure.mgmt.healthcareapis.models.PrivateEndpointConnectionPaged[~azure.mgmt.healthcareapis.models.PrivateEndpointConnection] + ~azure.mgmt.healthcareapis.models.PrivateEndpointConnectionDescriptionPaged[~azure.mgmt.healthcareapis.models.PrivateEndpointConnectionDescription] :raises: :class:`ErrorDetailsException` """ @@ -107,7 +108,7 @@ def internal_paging(next_link=None): header_dict = None if raw: header_dict = {} - deserialized = models.PrivateEndpointConnectionPaged(internal_paging, self._deserialize.dependencies, header_dict) + deserialized = models.PrivateEndpointConnectionDescriptionPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_by_service.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateEndpointConnections'} @@ -130,9 +131,11 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. - :return: PrivateEndpointConnection or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.healthcareapis.models.PrivateEndpointConnection or - ~msrest.pipeline.ClientRawResponse + :return: PrivateEndpointConnectionDescription or ClientRawResponse if + raw=true + :rtype: + ~azure.mgmt.healthcareapis.models.PrivateEndpointConnectionDescription + or ~msrest.pipeline.ClientRawResponse :raises: :class:`ErrorDetailsException` """ @@ -169,7 +172,7 @@ def get( deserialized = None if response.status_code == 200: - deserialized = self._deserialize('PrivateEndpointConnection', response) + deserialized = self._deserialize('PrivateEndpointConnectionDescription', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) @@ -219,7 +222,7 @@ def _create_or_update_initial( deserialized = None if response.status_code == 200: - deserialized = self._deserialize('PrivateEndpointConnection', response) + deserialized = self._deserialize('PrivateEndpointConnectionDescription', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) @@ -249,12 +252,12 @@ def create_or_update( :param polling: True for ARMPolling, False for no polling, or a polling object for personal polling strategy :return: An instance of LROPoller that returns - PrivateEndpointConnection or - ClientRawResponse if raw==True + PrivateEndpointConnectionDescription or + ClientRawResponse if raw==True :rtype: - ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.healthcareapis.models.PrivateEndpointConnection] + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.healthcareapis.models.PrivateEndpointConnectionDescription] or - ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.healthcareapis.models.PrivateEndpointConnection]] + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.healthcareapis.models.PrivateEndpointConnectionDescription]] :raises: :class:`ErrorDetailsException` """ @@ -269,7 +272,7 @@ def create_or_update( ) def get_long_running_output(response): - deserialized = self._deserialize('PrivateEndpointConnection', response) + deserialized = self._deserialize('PrivateEndpointConnectionDescription', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) diff --git a/sdk/healthcareapis/azure-mgmt-healthcareapis/azure/mgmt/healthcareapis/operations/_private_link_resources_operations.py b/sdk/healthcareapis/azure-mgmt-healthcareapis/azure/mgmt/healthcareapis/operations/_private_link_resources_operations.py index 731407758a0c..25bddc09b7d3 100644 --- a/sdk/healthcareapis/azure-mgmt-healthcareapis/azure/mgmt/healthcareapis/operations/_private_link_resources_operations.py +++ b/sdk/healthcareapis/azure-mgmt-healthcareapis/azure/mgmt/healthcareapis/operations/_private_link_resources_operations.py @@ -24,7 +24,7 @@ class PrivateLinkResourcesOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client Api Version. Constant value: "2020-03-30". + :ivar api_version: Client Api Version. Constant value: "2021-01-11". """ 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 = "2020-03-30" + self.api_version = "2021-01-11" self.config = config @@ -52,11 +52,11 @@ def list_by_service( deserialized response :param operation_config: :ref:`Operation configuration overrides`. - :return: PrivateLinkResourceListResult or ClientRawResponse if - raw=true + :return: PrivateLinkResourceListResultDescription or ClientRawResponse + if raw=true :rtype: - ~azure.mgmt.healthcareapis.models.PrivateLinkResourceListResult or - ~msrest.pipeline.ClientRawResponse + ~azure.mgmt.healthcareapis.models.PrivateLinkResourceListResultDescription + or ~msrest.pipeline.ClientRawResponse :raises: :class:`ErrorDetailsException` """ @@ -92,7 +92,7 @@ def list_by_service( deserialized = None if response.status_code == 200: - deserialized = self._deserialize('PrivateLinkResourceListResult', response) + deserialized = self._deserialize('PrivateLinkResourceListResultDescription', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) @@ -117,8 +117,10 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. - :return: PrivateLinkResource or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.healthcareapis.models.PrivateLinkResource or + :return: PrivateLinkResourceDescription or ClientRawResponse if + raw=true + :rtype: + ~azure.mgmt.healthcareapis.models.PrivateLinkResourceDescription or ~msrest.pipeline.ClientRawResponse :raises: :class:`ErrorDetailsException` @@ -156,7 +158,7 @@ def get( deserialized = None if response.status_code == 200: - deserialized = self._deserialize('PrivateLinkResource', response) + deserialized = self._deserialize('PrivateLinkResourceDescription', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) 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 1939600079a3..402e4fd28324 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: Client Api Version. Constant value: "2020-03-30". + :ivar api_version: Client Api Version. Constant value: "2021-01-11". """ 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 = "2020-03-30" + self.api_version = "2021-01-11" self.config = config