Skip to content

Commit

Permalink
[AutoRelease] t2-healthcareapis-2021-08-26-27542 (#20422)
Browse files Browse the repository at this point in the history
* CodeGen from PR 15381 in Azure/azure-rest-api-specs
Update readme.md (#15381)

* version,CHANGELOG

Co-authored-by: SDKAuto <[email protected]>
Co-authored-by: PythonSdkPipelines <PythonSdkPipelines>
  • Loading branch information
Azure CLI Bot and SDKAuto authored Aug 26, 2021
1 parent d4f5703 commit 0bd5491
Show file tree
Hide file tree
Showing 36 changed files with 8,515 additions and 292 deletions.
11 changes: 11 additions & 0 deletions sdk/healthcareapis/azure-mgmt-healthcareapis/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Release History

## 1.1.0b1 (2021-08-26)

**Features**

- Added operation group IotConnectorFhirDestinationOperations
- Added operation group WorkspacesOperations
- Added operation group FhirDestinationsOperations
- Added operation group DicomServicesOperations
- Added operation group FhirServicesOperations
- Added operation group IotConnectorsOperations

## 1.0.0 (2021-04-12)

**Features**
Expand Down
11 changes: 7 additions & 4 deletions sdk/healthcareapis/azure-mgmt-healthcareapis/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
{
"autorest": "3.0.6369",
"use": "@autorest/[email protected]",
"commit": "273cebe601c137222c802504425047845d4be409",
"autorest": "3.4.5",
"use": [
"@autorest/[email protected]",
"@autorest/[email protected]"
],
"commit": "84d82e9a8f422a930f4e0ffbe037ae9dce5fce3f",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/healthcareapis/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.6.2 --version=3.0.6369",
"autorest_command": "autorest specification/healthcareapis/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.8.4 --use=@autorest/[email protected].2 --version=3.4.5",
"readme": "specification/healthcareapis/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def __init__(

self.credential = credential
self.subscription_id = subscription_id
self.api_version = "2021-01-11"
self.api_version = "2021-06-01-preview"
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
kwargs.setdefault('sdk_moniker', 'mgmt-healthcareapis/{}'.format(VERSION))
self._configure(**kwargs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,20 @@
from typing import Any, Optional

from azure.core.credentials import TokenCredential
from azure.core.pipeline.transport import HttpRequest, HttpResponse

from ._configuration import HealthcareApisManagementClientConfiguration
from .operations import ServicesOperations
from .operations import Operations
from .operations import OperationResultsOperations
from .operations import PrivateEndpointConnectionsOperations
from .operations import PrivateLinkResourcesOperations
from .operations import WorkspacesOperations
from .operations import DicomServicesOperations
from .operations import IotConnectorsOperations
from .operations import FhirDestinationsOperations
from .operations import IotConnectorFhirDestinationOperations
from .operations import FhirServicesOperations
from .operations import Operations
from .operations import OperationResultsOperations
from . import models


Expand All @@ -31,14 +38,26 @@ class HealthcareApisManagementClient(object):
:ivar services: ServicesOperations operations
:vartype services: azure.mgmt.healthcareapis.operations.ServicesOperations
:ivar operations: Operations operations
:vartype operations: azure.mgmt.healthcareapis.operations.Operations
:ivar operation_results: OperationResultsOperations operations
:vartype operation_results: azure.mgmt.healthcareapis.operations.OperationResultsOperations
:ivar private_endpoint_connections: PrivateEndpointConnectionsOperations operations
:vartype private_endpoint_connections: azure.mgmt.healthcareapis.operations.PrivateEndpointConnectionsOperations
:ivar private_link_resources: PrivateLinkResourcesOperations operations
:vartype private_link_resources: azure.mgmt.healthcareapis.operations.PrivateLinkResourcesOperations
:ivar workspaces: WorkspacesOperations operations
:vartype workspaces: azure.mgmt.healthcareapis.operations.WorkspacesOperations
:ivar dicom_services: DicomServicesOperations operations
:vartype dicom_services: azure.mgmt.healthcareapis.operations.DicomServicesOperations
:ivar iot_connectors: IotConnectorsOperations operations
:vartype iot_connectors: azure.mgmt.healthcareapis.operations.IotConnectorsOperations
:ivar fhir_destinations: FhirDestinationsOperations operations
:vartype fhir_destinations: azure.mgmt.healthcareapis.operations.FhirDestinationsOperations
:ivar iot_connector_fhir_destination: IotConnectorFhirDestinationOperations operations
:vartype iot_connector_fhir_destination: azure.mgmt.healthcareapis.operations.IotConnectorFhirDestinationOperations
:ivar fhir_services: FhirServicesOperations operations
:vartype fhir_services: azure.mgmt.healthcareapis.operations.FhirServicesOperations
:ivar operations: Operations operations
:vartype operations: azure.mgmt.healthcareapis.operations.Operations
:ivar operation_results: OperationResultsOperations operations
:vartype operation_results: azure.mgmt.healthcareapis.operations.OperationResultsOperations
:param credential: Credential needed for the client to connect to Azure.
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The subscription identifier.
Expand Down Expand Up @@ -67,14 +86,44 @@ def __init__(

self.services = ServicesOperations(
self._client, self._config, self._serialize, self._deserialize)
self.operations = Operations(
self._client, self._config, self._serialize, self._deserialize)
self.operation_results = OperationResultsOperations(
self._client, self._config, self._serialize, self._deserialize)
self.private_endpoint_connections = PrivateEndpointConnectionsOperations(
self._client, self._config, self._serialize, self._deserialize)
self.private_link_resources = PrivateLinkResourcesOperations(
self._client, self._config, self._serialize, self._deserialize)
self.workspaces = WorkspacesOperations(
self._client, self._config, self._serialize, self._deserialize)
self.dicom_services = DicomServicesOperations(
self._client, self._config, self._serialize, self._deserialize)
self.iot_connectors = IotConnectorsOperations(
self._client, self._config, self._serialize, self._deserialize)
self.fhir_destinations = FhirDestinationsOperations(
self._client, self._config, self._serialize, self._deserialize)
self.iot_connector_fhir_destination = IotConnectorFhirDestinationOperations(
self._client, self._config, self._serialize, self._deserialize)
self.fhir_services = FhirServicesOperations(
self._client, self._config, self._serialize, self._deserialize)
self.operations = Operations(
self._client, self._config, self._serialize, self._deserialize)
self.operation_results = OperationResultsOperations(
self._client, self._config, self._serialize, self._deserialize)

def _send_request(self, http_request, **kwargs):
# type: (HttpRequest, Any) -> HttpResponse
"""Runs the network request through the client's chained policies.
:param http_request: The network request you want to make. Required.
:type http_request: ~azure.core.pipeline.transport.HttpRequest
:keyword bool stream: Whether the response payload will be streamed. Defaults to True.
:return: The response of your network call. Does not do error handling on your response.
:rtype: ~azure.core.pipeline.transport.HttpResponse
"""
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'),
}
http_request.url = self._client.format_url(http_request.url, **path_format_arguments)
stream = kwargs.pop("stream", True)
pipeline_response = self._client._pipeline.run(http_request, stream=stream, **kwargs)
return pipeline_response.http_response

def close(self):
# type: () -> None
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"chosen_version": "2021-01-11",
"total_api_version_list": ["2021-01-11"],
"chosen_version": "2021-06-01-preview",
"total_api_version_list": ["2021-06-01-preview"],
"client": {
"name": "HealthcareApisManagementClient",
"filename": "_healthcare_apis_management_client",
Expand All @@ -10,8 +10,8 @@
"azure_arm": true,
"has_lro_operations": true,
"client_side_validation": false,
"sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"HealthcareApisManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}",
"async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"HealthcareApisManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}"
"sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"HealthcareApisManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"HttpRequest\", \"HttpResponse\"]}}}",
"async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"HealthcareApisManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"AsyncHttpResponse\", \"HttpRequest\"]}}}"
},
"global_parameters": {
"sync": {
Expand Down Expand Up @@ -99,15 +99,15 @@
},
"operation_groups": {
"services": "ServicesOperations",
"operations": "Operations",
"operation_results": "OperationResultsOperations",
"private_endpoint_connections": "PrivateEndpointConnectionsOperations",
"private_link_resources": "PrivateLinkResourcesOperations"
},
"operation_mixins": {
"sync_imports": "None",
"async_imports": "None",
"operations": {
}
"private_link_resources": "PrivateLinkResourcesOperations",
"workspaces": "WorkspacesOperations",
"dicom_services": "DicomServicesOperations",
"iot_connectors": "IotConnectorsOperations",
"fhir_destinations": "FhirDestinationsOperations",
"iot_connector_fhir_destination": "IotConnectorFhirDestinationOperations",
"fhir_services": "FhirServicesOperations",
"operations": "Operations",
"operation_results": "OperationResultsOperations"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "1.0.0"
VERSION = "1.1.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def __init__(

self.credential = credential
self.subscription_id = subscription_id
self.api_version = "2021-01-11"
self.api_version = "2021-06-01-preview"
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
kwargs.setdefault('sdk_moniker', 'mgmt-healthcareapis/{}'.format(VERSION))
self._configure(**kwargs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

from typing import Any, Optional, TYPE_CHECKING

from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest
from azure.mgmt.core import AsyncARMPipelineClient
from msrest import Deserializer, Serializer

Expand All @@ -17,10 +18,16 @@

from ._configuration import HealthcareApisManagementClientConfiguration
from .operations import ServicesOperations
from .operations import Operations
from .operations import OperationResultsOperations
from .operations import PrivateEndpointConnectionsOperations
from .operations import PrivateLinkResourcesOperations
from .operations import WorkspacesOperations
from .operations import DicomServicesOperations
from .operations import IotConnectorsOperations
from .operations import FhirDestinationsOperations
from .operations import IotConnectorFhirDestinationOperations
from .operations import FhirServicesOperations
from .operations import Operations
from .operations import OperationResultsOperations
from .. import models


Expand All @@ -29,14 +36,26 @@ class HealthcareApisManagementClient(object):
:ivar services: ServicesOperations operations
:vartype services: azure.mgmt.healthcareapis.aio.operations.ServicesOperations
:ivar operations: Operations operations
:vartype operations: azure.mgmt.healthcareapis.aio.operations.Operations
:ivar operation_results: OperationResultsOperations operations
:vartype operation_results: azure.mgmt.healthcareapis.aio.operations.OperationResultsOperations
:ivar private_endpoint_connections: PrivateEndpointConnectionsOperations operations
:vartype private_endpoint_connections: azure.mgmt.healthcareapis.aio.operations.PrivateEndpointConnectionsOperations
:ivar private_link_resources: PrivateLinkResourcesOperations operations
:vartype private_link_resources: azure.mgmt.healthcareapis.aio.operations.PrivateLinkResourcesOperations
:ivar workspaces: WorkspacesOperations operations
:vartype workspaces: azure.mgmt.healthcareapis.aio.operations.WorkspacesOperations
:ivar dicom_services: DicomServicesOperations operations
:vartype dicom_services: azure.mgmt.healthcareapis.aio.operations.DicomServicesOperations
:ivar iot_connectors: IotConnectorsOperations operations
:vartype iot_connectors: azure.mgmt.healthcareapis.aio.operations.IotConnectorsOperations
:ivar fhir_destinations: FhirDestinationsOperations operations
:vartype fhir_destinations: azure.mgmt.healthcareapis.aio.operations.FhirDestinationsOperations
:ivar iot_connector_fhir_destination: IotConnectorFhirDestinationOperations operations
:vartype iot_connector_fhir_destination: azure.mgmt.healthcareapis.aio.operations.IotConnectorFhirDestinationOperations
:ivar fhir_services: FhirServicesOperations operations
:vartype fhir_services: azure.mgmt.healthcareapis.aio.operations.FhirServicesOperations
:ivar operations: Operations operations
:vartype operations: azure.mgmt.healthcareapis.aio.operations.Operations
:ivar operation_results: OperationResultsOperations operations
:vartype operation_results: azure.mgmt.healthcareapis.aio.operations.OperationResultsOperations
:param credential: Credential needed for the client to connect to Azure.
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
:param subscription_id: The subscription identifier.
Expand Down Expand Up @@ -64,14 +83,43 @@ def __init__(

self.services = ServicesOperations(
self._client, self._config, self._serialize, self._deserialize)
self.operations = Operations(
self._client, self._config, self._serialize, self._deserialize)
self.operation_results = OperationResultsOperations(
self._client, self._config, self._serialize, self._deserialize)
self.private_endpoint_connections = PrivateEndpointConnectionsOperations(
self._client, self._config, self._serialize, self._deserialize)
self.private_link_resources = PrivateLinkResourcesOperations(
self._client, self._config, self._serialize, self._deserialize)
self.workspaces = WorkspacesOperations(
self._client, self._config, self._serialize, self._deserialize)
self.dicom_services = DicomServicesOperations(
self._client, self._config, self._serialize, self._deserialize)
self.iot_connectors = IotConnectorsOperations(
self._client, self._config, self._serialize, self._deserialize)
self.fhir_destinations = FhirDestinationsOperations(
self._client, self._config, self._serialize, self._deserialize)
self.iot_connector_fhir_destination = IotConnectorFhirDestinationOperations(
self._client, self._config, self._serialize, self._deserialize)
self.fhir_services = FhirServicesOperations(
self._client, self._config, self._serialize, self._deserialize)
self.operations = Operations(
self._client, self._config, self._serialize, self._deserialize)
self.operation_results = OperationResultsOperations(
self._client, self._config, self._serialize, self._deserialize)

async def _send_request(self, http_request: HttpRequest, **kwargs: Any) -> AsyncHttpResponse:
"""Runs the network request through the client's chained policies.
:param http_request: The network request you want to make. Required.
:type http_request: ~azure.core.pipeline.transport.HttpRequest
:keyword bool stream: Whether the response payload will be streamed. Defaults to True.
:return: The response of your network call. Does not do error handling on your response.
:rtype: ~azure.core.pipeline.transport.AsyncHttpResponse
"""
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'),
}
http_request.url = self._client.format_url(http_request.url, **path_format_arguments)
stream = kwargs.pop("stream", True)
pipeline_response = await self._client._pipeline.run(http_request, stream=stream, **kwargs)
return pipeline_response.http_response

async def close(self) -> None:
await self._client.close()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,27 @@
# --------------------------------------------------------------------------

from ._services_operations import ServicesOperations
from ._operations import Operations
from ._operation_results_operations import OperationResultsOperations
from ._private_endpoint_connections_operations import PrivateEndpointConnectionsOperations
from ._private_link_resources_operations import PrivateLinkResourcesOperations
from ._workspaces_operations import WorkspacesOperations
from ._dicom_services_operations import DicomServicesOperations
from ._iot_connectors_operations import IotConnectorsOperations
from ._fhir_destinations_operations import FhirDestinationsOperations
from ._iot_connector_fhir_destination_operations import IotConnectorFhirDestinationOperations
from ._fhir_services_operations import FhirServicesOperations
from ._operations import Operations
from ._operation_results_operations import OperationResultsOperations

__all__ = [
'ServicesOperations',
'Operations',
'OperationResultsOperations',
'PrivateEndpointConnectionsOperations',
'PrivateLinkResourcesOperations',
'WorkspacesOperations',
'DicomServicesOperations',
'IotConnectorsOperations',
'FhirDestinationsOperations',
'IotConnectorFhirDestinationOperations',
'FhirServicesOperations',
'Operations',
'OperationResultsOperations',
]
Loading

0 comments on commit 0bd5491

Please sign in to comment.